diff --git a/public/app.css b/public/app.css index ec52869..c257bd3 100644 --- a/public/app.css +++ b/public/app.css @@ -108,8 +108,9 @@ svg { flex-direction: column; } -.code .cm-editor { +.code .cm-container { flex: 1; + overflow: hidden; } .game { diff --git a/public/app.js b/public/app.js index 235ae9c..1dc5d81 100644 --- a/public/app.js +++ b/public/app.js @@ -1,59 +1,59 @@ -(()=>{var wN=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});function Ii(r){let e=r.length;for(;--e>=0;)r[e]=0}var kN=0,_1=1,AN=2,PN=3,TN=258,Jc=29,ja=256,Ia=ja+1+Jc,Ti=30,ef=19,I1=2*Ia+1,Us=15,Dc=16,DN=7,tf=256,F1=16,R1=17,B1=18,Vc=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),rl=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),_N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),N1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),IN=512,ns=new Array((Ia+2)*2);Ii(ns);var Ta=new Array(Ti*2);Ii(Ta);var Fa=new Array(IN);Ii(Fa);var Ra=new Array(TN-PN+1);Ii(Ra);var rf=new Array(Jc);Ii(rf);var nl=new Array(Ti);Ii(nl);function _c(r,e,t,s,n){this.static_tree=r,this.extra_bits=e,this.extra_base=t,this.elems=s,this.max_length=n,this.has_stree=r&&r.length}var L1,$1,M1;function Ic(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}var j1=r=>r<256?Fa[r]:Fa[256+(r>>>7)],Ba=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},Mr=(r,e,t)=>{r.bi_valid>Dc-t?(r.bi_buf|=e<>Dc-r.bi_valid,r.bi_valid+=t-Dc):(r.bi_buf|=e<{Mr(r,t[e*2],t[e*2+1])},q1=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},FN=r=>{r.bi_valid===16?(Ba(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},RN=(r,e)=>{let t=e.dyn_tree,s=e.max_code,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,o=e.stat_desc.max_length,u,c,p,h,f,d,m=0;for(h=0;h<=Us;h++)r.bl_count[h]=0;for(t[r.heap[r.heap_max]*2+1]=0,u=r.heap_max+1;uo&&(h=o,m++),t[c*2+1]=h,!(c>s)&&(r.bl_count[h]++,f=0,c>=l&&(f=a[c-l]),d=t[c*2],r.opt_len+=d*(h+f),i&&(r.static_len+=d*(n[c*2+1]+f)));if(m!==0){do{for(h=o-1;r.bl_count[h]===0;)h--;r.bl_count[h]--,r.bl_count[h+1]+=2,r.bl_count[o]--,m-=2}while(m>0);for(h=o;h!==0;h--)for(c=r.bl_count[h];c!==0;)p=r.heap[--u],!(p>s)&&(t[p*2+1]!==h&&(r.opt_len+=(h-t[p*2+1])*t[p*2],t[p*2+1]=h),c--)}},Q1=(r,e,t)=>{let s=new Array(Us+1),n=0,i,a;for(i=1;i<=Us;i++)n=n+t[i-1]<<1,s[i]=n;for(a=0;a<=e;a++){let l=r[a*2+1];l!==0&&(r[a*2]=q1(s[l]++,l))}},BN=()=>{let r,e,t,s,n,i=new Array(Us+1);for(t=0,s=0;s>=7;s{let e;for(e=0;e{r.bi_valid>8?Ba(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},zO=(r,e,t,s)=>{let n=e*2,i=t*2;return r[n]{let s=r.heap[t],n=t<<1;for(;n<=r.heap_len&&(n{let s,n,i=0,a,l;if(r.sym_next!==0)do s=r.pending_buf[r.sym_buf+i++]&255,s+=(r.pending_buf[r.sym_buf+i++]&255)<<8,n=r.pending_buf[r.sym_buf+i++],s===0?_n(r,n,e):(a=Ra[n],_n(r,a+ja+1,e),l=Vc[a],l!==0&&(n-=rf[a],Mr(r,n,l)),s--,a=j1(s),_n(r,a,t),l=rl[a],l!==0&&(s-=nl[a],Mr(r,s,l)));while(i{let t=e.dyn_tree,s=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.elems,a,l,o=-1,u;for(r.heap_len=0,r.heap_max=I1,a=0;a>1;a>=1;a--)Fc(r,t,a);u=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],Fc(r,t,1),l=r.heap[1],r.heap[--r.heap_max]=a,r.heap[--r.heap_max]=l,t[u*2]=t[a*2]+t[l*2],r.depth[u]=(r.depth[a]>=r.depth[l]?r.depth[a]:r.depth[l])+1,t[a*2+1]=t[l*2+1]=u,r.heap[1]=u++,Fc(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],RN(r,e),Q1(t,o,r.bl_count)},GO=(r,e,t)=>{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),e[(t+1)*2+1]=65535,s=0;s<=t;s++)i=a,a=e[(s+1)*2+1],!(++l{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),s=0;s<=t;s++)if(i=a,a=e[(s+1)*2+1],!(++l{let e;for(GO(r,r.dyn_ltree,r.l_desc.max_code),GO(r,r.dyn_dtree,r.d_desc.max_code),Wc(r,r.bl_desc),e=ef-1;e>=3&&r.bl_tree[N1[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},LN=(r,e,t,s)=>{let n;for(Mr(r,e-257,5),Mr(r,t-1,5),Mr(r,s-4,4),n=0;n{let e=4093624447,t;for(t=0;t<=31;t++,e>>>=1)if(e&1&&r.dyn_ltree[t*2]!==0)return 0;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return 1;for(t=32;t{HO||(BN(),HO=!0),r.l_desc=new Ic(r.dyn_ltree,L1),r.d_desc=new Ic(r.dyn_dtree,$1),r.bl_desc=new Ic(r.bl_tree,M1),r.bi_buf=0,r.bi_valid=0,U1(r)},W1=(r,e,t,s)=>{Mr(r,(kN<<1)+(s?1:0),3),V1(r),Ba(r,t),Ba(r,~t),t&&r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},jN=r=>{Mr(r,_1<<1,3),_n(r,tf,ns),FN(r)},qN=(r,e,t,s)=>{let n,i,a=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=$N(r)),Wc(r,r.l_desc),Wc(r,r.d_desc),a=NN(r),n=r.opt_len+3+7>>>3,i=r.static_len+3+7>>>3,i<=n&&(n=i)):n=i=t+5,t+4<=n&&e!==-1?W1(r,e,t,s):r.strategy===4||i===n?(Mr(r,(_1<<1)+(s?1:0),3),XO(r,ns,Ta)):(Mr(r,(AN<<1)+(s?1:0),3),LN(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),XO(r,r.dyn_ltree,r.dyn_dtree)),U1(r),s&&V1(r)},QN=(r,e,t)=>(r.pending_buf[r.sym_buf+r.sym_next++]=e,r.pending_buf[r.sym_buf+r.sym_next++]=e>>8,r.pending_buf[r.sym_buf+r.sym_next++]=t,e===0?r.dyn_ltree[t*2]++:(r.matches++,e--,r.dyn_ltree[(Ra[t]+ja+1)*2]++,r.dyn_dtree[j1(e)*2]++),r.sym_next===r.sym_end),UN=MN,VN=W1,WN=qN,ZN=QN,zN=jN,XN={_tr_init:UN,_tr_stored_block:VN,_tr_flush_block:WN,_tr_tally:ZN,_tr_align:zN},GN=(r,e,t,s)=>{let n=r&65535|0,i=r>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do n=n+e[s++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0},Na=GN,YN=()=>{let r,e=[];for(var t=0;t<256;t++){r=t;for(var s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e},HN=new Uint32Array(YN()),KN=(r,e,t,s)=>{let n=HN,i=s+t;r^=-1;for(let a=s;a>>8^n[(r^e[a])&255];return r^-1},yr=KN,Zs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Gs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:JN,_tr_stored_block:Zc,_tr_flush_block:eL,_tr_tally:vs,_tr_align:tL}=XN,{Z_NO_FLUSH:Os,Z_PARTIAL_FLUSH:rL,Z_FULL_FLUSH:nL,Z_FINISH:rn,Z_BLOCK:KO,Z_OK:Sr,Z_STREAM_END:JO,Z_STREAM_ERROR:In,Z_DATA_ERROR:sL,Z_BUF_ERROR:Rc,Z_DEFAULT_COMPRESSION:iL,Z_FILTERED:aL,Z_HUFFMAN_ONLY:Ho,Z_RLE:oL,Z_FIXED:lL,Z_DEFAULT_STRATEGY:uL,Z_UNKNOWN:cL,Z_DEFLATED:al}=Gs,fL=9,pL=15,hL=8,dL=29,mL=256,zc=mL+1+dL,gL=30,yL=19,xL=2*zc+1,bL=15,Rt=3,bs=258,Fn=bs+Rt+1,vL=32,Di=42,nf=57,Xc=69,Gc=73,Yc=91,Hc=103,Vs=113,Aa=666,_r=1,Fi=2,zs=3,Ri=4,OL=3,Ws=(r,e)=>(r.msg=Zs[e],e),e1=r=>r*2-(r>4?9:0),xs=r=>{let e=r.length;for(;--e>=0;)r[e]=0},SL=r=>{let e,t,s,n=r.w_size;e=r.hash_size,s=e;do t=r.head[--s],r.head[s]=t>=n?t-n:0;while(--e);e=n,s=e;do t=r.prev[--s],r.prev[s]=t>=n?t-n:0;while(--e)},EL=(r,e,t)=>(e<{let e=r.state,t=e.pending;t>r.avail_out&&(t=r.avail_out),t!==0&&(r.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+t),r.next_out),r.next_out+=t,e.pending_out+=t,r.total_out+=t,r.avail_out-=t,e.pending-=t,e.pending===0&&(e.pending_out=0))},zr=(r,e)=>{eL(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,Zr(r.strm)},jt=(r,e)=>{r.pending_buf[r.pending++]=e},ka=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},Kc=(r,e,t,s)=>{let n=r.avail_in;return n>s&&(n=s),n===0?0:(r.avail_in-=n,e.set(r.input.subarray(r.next_in,r.next_in+n),t),r.state.wrap===1?r.adler=Na(r.adler,e,n,t):r.state.wrap===2&&(r.adler=yr(r.adler,e,n,t)),r.next_in+=n,r.total_in+=n,n)},Z1=(r,e)=>{let t=r.max_chain_length,s=r.strstart,n,i,a=r.prev_length,l=r.nice_match,o=r.strstart>r.w_size-Fn?r.strstart-(r.w_size-Fn):0,u=r.window,c=r.w_mask,p=r.prev,h=r.strstart+bs,f=u[s+a-1],d=u[s+a];r.prev_length>=r.good_match&&(t>>=2),l>r.lookahead&&(l=r.lookahead);do if(n=e,!(u[n+a]!==d||u[n+a-1]!==f||u[n]!==u[s]||u[++n]!==u[s+1])){s+=2,n++;do;while(u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&sa){if(r.match_start=e,a=i,i>=l)break;f=u[s+a-1],d=u[s+a]}}while((e=p[e&c])>o&&--t!==0);return a<=r.lookahead?a:r.lookahead},_i=r=>{let e=r.w_size,t,s,n;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-Fn)&&(r.window.set(r.window.subarray(e,e+e-s),0),r.match_start-=e,r.strstart-=e,r.block_start-=e,r.insert>r.strstart&&(r.insert=r.strstart),SL(r),s+=e),r.strm.avail_in===0)break;if(t=Kc(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=t,r.lookahead+r.insert>=Rt)for(n=r.strstart-r.insert,r.ins_h=r.window[n],r.ins_h=Ss(r,r.ins_h,r.window[n+1]);r.insert&&(r.ins_h=Ss(r,r.ins_h,r.window[n+Rt-1]),r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,r.insert--,!(r.lookahead+r.insert{let t=r.pending_buf_size-5>r.w_size?r.w_size:r.pending_buf_size-5,s,n,i,a=0,l=r.strm.avail_in;do{if(s=65535,i=r.bi_valid+42>>3,r.strm.avail_outn+r.strm.avail_in&&(s=n+r.strm.avail_in),s>i&&(s=i),s>8,r.pending_buf[r.pending-2]=~s,r.pending_buf[r.pending-1]=~s>>8,Zr(r.strm),n&&(n>s&&(n=s),r.strm.output.set(r.window.subarray(r.block_start,r.block_start+n),r.strm.next_out),r.strm.next_out+=n,r.strm.avail_out-=n,r.strm.total_out+=n,r.block_start+=n,s-=n),s&&(Kc(r.strm,r.strm.output,r.strm.next_out,s),r.strm.next_out+=s,r.strm.avail_out-=s,r.strm.total_out+=s)}while(a===0);return l-=r.strm.avail_in,l&&(l>=r.w_size?(r.matches=2,r.window.set(r.strm.input.subarray(r.strm.next_in-r.w_size,r.strm.next_in),0),r.strstart=r.w_size,r.insert=r.strstart):(r.window_size-r.strstart<=l&&(r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,r.insert>r.strstart&&(r.insert=r.strstart)),r.window.set(r.strm.input.subarray(r.strm.next_in-l,r.strm.next_in),r.strstart),r.strstart+=l,r.insert+=l>r.w_size-r.insert?r.w_size-r.insert:l),r.block_start=r.strstart),r.high_wateri&&r.block_start>=r.w_size&&(r.block_start-=r.w_size,r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,i+=r.w_size,r.insert>r.strstart&&(r.insert=r.strstart)),i>r.strm.avail_in&&(i=r.strm.avail_in),i&&(Kc(r.strm,r.window,r.strstart,i),r.strstart+=i,r.insert+=i>r.w_size-r.insert?r.w_size-r.insert:i),r.high_water>3,i=r.pending_buf_size-i>65535?65535:r.pending_buf_size-i,t=i>r.w_size?r.w_size:i,n=r.strstart-r.block_start,(n>=t||(n||e===rn)&&e!==Os&&r.strm.avail_in===0&&n<=i)&&(s=n>i?i:n,a=e===rn&&r.strm.avail_in===0&&s===n?1:0,Zc(r,r.block_start,s,a),r.block_start+=s,Zr(r.strm)),a?zs:_r)},Bc=(r,e)=>{let t,s;for(;;){if(r.lookahead=Rt&&(r.ins_h=Ss(r,r.ins_h,r.window[r.strstart+Rt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),t!==0&&r.strstart-t<=r.w_size-Fn&&(r.match_length=Z1(r,t)),r.match_length>=Rt)if(s=vs(r,r.strstart-r.match_start,r.match_length-Rt),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=Rt){r.match_length--;do r.strstart++,r.ins_h=Ss(r,r.ins_h,r.window[r.strstart+Rt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=Ss(r,r.ins_h,r.window[r.strstart+1]);else s=vs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(s&&(zr(r,!1),r.strm.avail_out===0))return _r}return r.insert=r.strstart{let t,s,n;for(;;){if(r.lookahead=Rt&&(r.ins_h=Ss(r,r.ins_h,r.window[r.strstart+Rt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=Rt-1,t!==0&&r.prev_length4096)&&(r.match_length=Rt-1)),r.prev_length>=Rt&&r.match_length<=r.prev_length){n=r.strstart+r.lookahead-Rt,s=vs(r,r.strstart-1-r.prev_match,r.prev_length-Rt),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=n&&(r.ins_h=Ss(r,r.ins_h,r.window[r.strstart+Rt-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=Rt-1,r.strstart++,s&&(zr(r,!1),r.strm.avail_out===0))return _r}else if(r.match_available){if(s=vs(r,0,r.window[r.strstart-1]),s&&zr(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return _r}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(s=vs(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart{let t,s,n,i,a=r.window;for(;;){if(r.lookahead<=bs){if(_i(r),r.lookahead<=bs&&e===Os)return _r;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=Rt&&r.strstart>0&&(n=r.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){i=r.strstart+bs;do;while(s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&nr.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=Rt?(t=vs(r,1,r.match_length-Rt),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=vs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(zr(r,!1),r.strm.avail_out===0))return _r}return r.insert=0,e===rn?(zr(r,!0),r.strm.avail_out===0?zs:Ri):r.sym_next&&(zr(r,!1),r.strm.avail_out===0)?_r:Fi},wL=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(_i(r),r.lookahead===0)){if(e===Os)return _r;break}if(r.match_length=0,t=vs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(zr(r,!1),r.strm.avail_out===0))return _r}return r.insert=0,e===rn?(zr(r,!0),r.strm.avail_out===0?zs:Ri):r.sym_next&&(zr(r,!1),r.strm.avail_out===0)?_r:Fi};function Dn(r,e,t,s,n){this.good_length=r,this.max_lazy=e,this.nice_length=t,this.max_chain=s,this.func=n}var Pa=[new Dn(0,0,0,0,z1),new Dn(4,4,8,4,Bc),new Dn(4,5,16,8,Bc),new Dn(4,6,32,32,Bc),new Dn(4,4,16,16,Ai),new Dn(8,16,32,32,Ai),new Dn(8,16,128,128,Ai),new Dn(8,32,128,256,Ai),new Dn(32,128,258,1024,Ai),new Dn(32,258,258,4096,Ai)],kL=r=>{r.window_size=2*r.w_size,xs(r.head),r.max_lazy_match=Pa[r.level].max_lazy,r.good_match=Pa[r.level].good_length,r.nice_match=Pa[r.level].nice_length,r.max_chain_length=Pa[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=Rt-1,r.match_available=0,r.ins_h=0};function AL(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=al,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(xL*2),this.dyn_dtree=new Uint16Array((2*gL+1)*2),this.bl_tree=new Uint16Array((2*yL+1)*2),xs(this.dyn_ltree),xs(this.dyn_dtree),xs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(bL+1),this.heap=new Uint16Array(2*zc+1),xs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zc+1),xs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var qa=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.status!==Di&&e.status!==nf&&e.status!==Xc&&e.status!==Gc&&e.status!==Yc&&e.status!==Hc&&e.status!==Vs&&e.status!==Aa?1:0},X1=r=>{if(qa(r))return Ws(r,In);r.total_in=r.total_out=0,r.data_type=cL;let e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?nf:e.wrap?Di:Vs,r.adler=e.wrap===2?0:1,e.last_flush=-2,JN(e),Sr},G1=r=>{let e=X1(r);return e===Sr&&kL(r.state),e},PL=(r,e)=>qa(r)||r.state.wrap!==2?In:(r.state.gzhead=e,Sr),Y1=(r,e,t,s,n,i)=>{if(!r)return In;let a=1;if(e===iL&&(e=6),s<0?(a=0,s=-s):s>15&&(a=2,s-=16),n<1||n>fL||t!==al||s<8||s>15||e<0||e>9||i<0||i>lL||s===8&&a!==1)return Ws(r,In);s===8&&(s=9);let l=new AL;return r.state=l,l.strm=r,l.status=Di,l.wrap=a,l.gzhead=null,l.w_bits=s,l.w_size=1<Y1(r,e,al,pL,hL,uL),DL=(r,e)=>{if(qa(r)||e>KO||e<0)return r?Ws(r,In):In;let t=r.state;if(!r.output||r.avail_in!==0&&!r.input||t.status===Aa&&e!==rn)return Ws(r,r.avail_out===0?Rc:In);let s=t.last_flush;if(t.last_flush=e,t.pending!==0){if(Zr(r),r.avail_out===0)return t.last_flush=-1,Sr}else if(r.avail_in===0&&e1(e)<=e1(s)&&e!==rn)return Ws(r,Rc);if(t.status===Aa&&r.avail_in!==0)return Ws(r,Rc);if(t.status===Di&&t.wrap===0&&(t.status=Vs),t.status===Di){let n=al+(t.w_bits-8<<4)<<8,i=-1;if(t.strategy>=Ho||t.level<2?i=0:t.level<6?i=1:t.level===6?i=2:i=3,n|=i<<6,t.strstart!==0&&(n|=vL),n+=31-n%31,ka(t,n),t.strstart!==0&&(ka(t,r.adler>>>16),ka(t,r.adler&65535)),r.adler=1,t.status=Vs,Zr(r),t.pending!==0)return t.last_flush=-1,Sr}if(t.status===nf){if(r.adler=0,jt(t,31),jt(t,139),jt(t,8),t.gzhead)jt(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),jt(t,t.gzhead.time&255),jt(t,t.gzhead.time>>8&255),jt(t,t.gzhead.time>>16&255),jt(t,t.gzhead.time>>24&255),jt(t,t.level===9?2:t.strategy>=Ho||t.level<2?4:0),jt(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(jt(t,t.gzhead.extra.length&255),jt(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(r.adler=yr(r.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Xc;else if(jt(t,0),jt(t,0),jt(t,0),jt(t,0),jt(t,0),jt(t,t.level===9?2:t.strategy>=Ho||t.level<2?4:0),jt(t,OL),t.status=Vs,Zr(r),t.pending!==0)return t.last_flush=-1,Sr}if(t.status===Xc){if(t.gzhead.extra){let n=t.pending,i=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+i>t.pending_buf_size;){let l=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+l),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>n&&(r.adler=yr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex+=l,Zr(r),t.pending!==0)return t.last_flush=-1,Sr;n=0,i-=l}let a=new Uint8Array(t.gzhead.extra);t.pending_buf.set(a.subarray(t.gzindex,t.gzindex+i),t.pending),t.pending+=i,t.gzhead.hcrc&&t.pending>n&&(r.adler=yr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=Gc}if(t.status===Gc){if(t.gzhead.name){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=yr(r.adler,t.pending_buf,t.pending-n,n)),Zr(r),t.pending!==0)return t.last_flush=-1,Sr;n=0}t.gzindexn&&(r.adler=yr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=Yc}if(t.status===Yc){if(t.gzhead.comment){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=yr(r.adler,t.pending_buf,t.pending-n,n)),Zr(r),t.pending!==0)return t.last_flush=-1,Sr;n=0}t.gzindexn&&(r.adler=yr(r.adler,t.pending_buf,t.pending-n,n))}t.status=Hc}if(t.status===Hc){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Zr(r),t.pending!==0))return t.last_flush=-1,Sr;jt(t,r.adler&255),jt(t,r.adler>>8&255),r.adler=0}if(t.status=Vs,Zr(r),t.pending!==0)return t.last_flush=-1,Sr}if(r.avail_in!==0||t.lookahead!==0||e!==Os&&t.status!==Aa){let n=t.level===0?z1(t,e):t.strategy===Ho?wL(t,e):t.strategy===oL?CL(t,e):Pa[t.level].func(t,e);if((n===zs||n===Ri)&&(t.status=Aa),n===_r||n===zs)return r.avail_out===0&&(t.last_flush=-1),Sr;if(n===Fi&&(e===rL?tL(t):e!==KO&&(Zc(t,0,0,!1),e===nL&&(xs(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Zr(r),r.avail_out===0))return t.last_flush=-1,Sr}return e!==rn?Sr:t.wrap<=0?JO:(t.wrap===2?(jt(t,r.adler&255),jt(t,r.adler>>8&255),jt(t,r.adler>>16&255),jt(t,r.adler>>24&255),jt(t,r.total_in&255),jt(t,r.total_in>>8&255),jt(t,r.total_in>>16&255),jt(t,r.total_in>>24&255)):(ka(t,r.adler>>>16),ka(t,r.adler&65535)),Zr(r),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?Sr:JO)},_L=r=>{if(qa(r))return In;let e=r.state.status;return r.state=null,e===Vs?Ws(r,sL):Sr},IL=(r,e)=>{let t=e.length;if(qa(r))return In;let s=r.state,n=s.wrap;if(n===2||n===1&&s.status!==Di||s.lookahead)return In;if(n===1&&(r.adler=Na(r.adler,e,t,0)),s.wrap=0,t>=s.w_size){n===0&&(xs(s.head),s.strstart=0,s.block_start=0,s.insert=0);let o=new Uint8Array(s.w_size);o.set(e.subarray(t-s.w_size,t),0),e=o,t=s.w_size}let i=r.avail_in,a=r.next_in,l=r.input;for(r.avail_in=t,r.next_in=0,r.input=e,_i(s);s.lookahead>=Rt;){let o=s.strstart,u=s.lookahead-(Rt-1);do s.ins_h=Ss(s,s.ins_h,s.window[o+Rt-1]),s.prev[o&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=o,o++;while(--u);s.strstart=o,s.lookahead=Rt-1,_i(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=Rt-1,s.match_available=0,r.next_in=a,r.input=l,r.avail_in=i,s.wrap=n,Sr},FL=TL,RL=Y1,BL=G1,NL=X1,LL=PL,$L=DL,ML=_L,jL=IL,qL="pako deflate (from Nodeca project)",Da={deflateInit:FL,deflateInit2:RL,deflateReset:BL,deflateResetKeep:NL,deflateSetHeader:LL,deflate:$L,deflateEnd:ML,deflateSetDictionary:jL,deflateInfo:qL},QL=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),UL=function(r){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(let s in t)QL(t,s)&&(r[s]=t[s])}}return r},VL=r=>{let e=0;for(let s=0,n=r.length;s=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;La[254]=La[254]=1;var WL=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let e,t,s,n,i,a=r.length,l=0;for(n=0;n>>6,e[i++]=128|t&63):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|t&63):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|t&63);return e},ZL=(r,e)=>{if(e<65534&&r.subarray&&H1)return String.fromCharCode.apply(null,r.length===e?r:r.subarray(0,e));let t="";for(let s=0;s{let t=e||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,e));let s,n,i=new Array(t*2);for(n=0,s=0;s4){i[n++]=65533,s+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&s1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return ZL(i,n)},XL=(r,e)=>{e=e||r.length,e>r.length&&(e=r.length);let t=e-1;for(;t>=0&&(r[t]&192)===128;)t--;return t<0||t===0?e:t+La[r[t]]>e?t:e},$a={string2buf:WL,buf2string:zL,utf8border:XL};function GL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var K1=GL,J1=Object.prototype.toString,{Z_NO_FLUSH:YL,Z_SYNC_FLUSH:HL,Z_FULL_FLUSH:KL,Z_FINISH:JL,Z_OK:sl,Z_STREAM_END:e$,Z_DEFAULT_COMPRESSION:t$,Z_DEFAULT_STRATEGY:r$,Z_DEFLATED:n$}=Gs;function Qa(r){this.options=ol.assign({level:t$,method:n$,chunkSize:16384,windowBits:15,memLevel:8,strategy:r$},r||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new K1,this.strm.avail_out=0;let t=Da.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==sl)throw new Error(Zs[t]);if(e.header&&Da.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=$a.string2buf(e.dictionary):J1.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,t=Da.deflateSetDictionary(this.strm,s),t!==sl)throw new Error(Zs[t]);this._dict_set=!0}}Qa.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?JL:YL,typeof r=="string"?t.input=$a.string2buf(r):J1.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),(i===HL||i===KL)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=Da.deflate(t,i),n===e$)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=Da.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===sl;if(t.avail_out===0){this.onData(t.output);continue}if(i>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Qa.prototype.onData=function(r){this.chunks.push(r)};Qa.prototype.onEnd=function(r){r===sl&&(this.result=ol.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function sf(r,e){let t=new Qa(e);if(t.push(r,!0),t.err)throw t.msg||Zs[t.err];return t.result}function s$(r,e){return e=e||{},e.raw=!0,sf(r,e)}function i$(r,e){return e=e||{},e.gzip=!0,sf(r,e)}var a$=Qa,o$=sf,l$=s$,u$=i$,c$=Gs,f$={Deflate:a$,deflate:o$,deflateRaw:l$,gzip:u$,constants:c$},Ko=16209,p$=16191,h$=function(e,t){let s,n,i,a,l,o,u,c,p,h,f,d,m,g,b,O,S,C,k,E,A,w,P,T,I=e.state;s=e.next_in,P=e.input,n=s+(e.avail_in-5),i=e.next_out,T=e.output,a=i-(t-e.avail_out),l=i+(e.avail_out-257),o=I.dmax,u=I.wsize,c=I.whave,p=I.wnext,h=I.window,f=I.hold,d=I.bits,m=I.lencode,g=I.distcode,b=(1<>>24,f>>>=C,d-=C,C=S>>>16&255,C===0)T[i++]=S&65535;else if(C&16){k=S&65535,C&=15,C&&(d>>=C,d-=C),d<15&&(f+=P[s++]<>>24,f>>>=C,d-=C,C=S>>>16&255,C&16){if(E=S&65535,C&=15,do){e.msg="invalid distance too far back",I.mode=Ko;break e}if(f>>>=C,d-=C,C=i-a,E>C){if(C=E-C,C>c&&I.sane){e.msg="invalid distance too far back",I.mode=Ko;break e}if(A=0,w=h,p===0){if(A+=u-C,C2;)T[i++]=w[A++],T[i++]=w[A++],T[i++]=w[A++],k-=3;k&&(T[i++]=w[A++],k>1&&(T[i++]=w[A++]))}else{A=i-E;do T[i++]=T[A++],T[i++]=T[A++],T[i++]=T[A++],k-=3;while(k>2);k&&(T[i++]=T[A++],k>1&&(T[i++]=T[A++]))}}else if(C&64){e.msg="invalid distance code",I.mode=Ko;break e}else{S=g[(S&65535)+(f&(1<>3,s-=k,d-=k<<3,f&=(1<{let o=l.bits,u=0,c=0,p=0,h=0,f=0,d=0,m=0,g=0,b=0,O=0,S,C,k,E,A,w=null,P,T=new Uint16Array(Pi+1),I=new Uint16Array(Pi+1),F=null,L,_,B;for(u=0;u<=Pi;u++)T[u]=0;for(c=0;c=1&&T[h]===0;h--);if(f>h&&(f=h),h===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(r===n1||h!==1))return-1;for(I[1]=0,u=1;ut1||r===s1&&b>r1)return 1;for(;;){L=u-m,a[c]+1=P?(_=F[a[c]-P],B=w[a[c]-P]):(_=96,B=0),S=1<>m)+C]=L<<24|_<<16|B|0;while(C!==0);for(S=1<>=1;if(S!==0?(O&=S-1,O+=S):O=0,c++,--T[u]===0){if(u===h)break;u=e[t+a[c]]}if(u>f&&(O&E)!==k){for(m===0&&(m=f),A+=p,d=u-m,g=1<t1||r===s1&&b>r1)return 1;k=O&E,n[k]=f<<24|d<<16|A-i|0}}return O!==0&&(n[A+O]=u-m<<24|64<<16|0),l.bits=f,0},_a=x$,b$=0,eS=1,tS=2,{Z_FINISH:i1,Z_BLOCK:v$,Z_TREES:Jo,Z_OK:Xs,Z_STREAM_END:O$,Z_NEED_DICT:S$,Z_STREAM_ERROR:nn,Z_DATA_ERROR:rS,Z_MEM_ERROR:nS,Z_BUF_ERROR:E$,Z_DEFLATED:a1}=Gs,ll=16180,o1=16181,l1=16182,u1=16183,c1=16184,f1=16185,p1=16186,h1=16187,d1=16188,m1=16189,il=16190,rs=16191,Lc=16192,g1=16193,$c=16194,y1=16195,x1=16196,b1=16197,v1=16198,el=16199,tl=16200,O1=16201,S1=16202,E1=16203,C1=16204,w1=16205,Mc=16206,k1=16207,A1=16208,nr=16209,sS=16210,iS=16211,C$=852,w$=592,k$=15,A$=k$,P1=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function P$(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Ys=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.modeiS?1:0},aS=r=>{if(Ys(r))return nn;let e=r.state;return r.total_in=r.total_out=e.total=0,r.msg="",e.wrap&&(r.adler=e.wrap&1),e.mode=ll,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(C$),e.distcode=e.distdyn=new Int32Array(w$),e.sane=1,e.back=-1,Xs},oS=r=>{if(Ys(r))return nn;let e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,aS(r)},lS=(r,e)=>{let t;if(Ys(r))return nn;let s=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?nn:(s.window!==null&&s.wbits!==e&&(s.window=null),s.wrap=t,s.wbits=e,oS(r))},uS=(r,e)=>{if(!r)return nn;let t=new P$;r.state=t,t.strm=r,t.window=null,t.mode=ll;let s=lS(r,e);return s!==Xs&&(r.state=null),s},T$=r=>uS(r,A$),T1=!0,jc,qc,D$=r=>{if(T1){jc=new Int32Array(512),qc=new Int32Array(32);let e=0;for(;e<144;)r.lens[e++]=8;for(;e<256;)r.lens[e++]=9;for(;e<280;)r.lens[e++]=7;for(;e<288;)r.lens[e++]=8;for(_a(eS,r.lens,0,288,jc,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;_a(tS,r.lens,0,32,qc,0,r.work,{bits:5}),T1=!1}r.lencode=jc,r.lenbits=9,r.distcode=qc,r.distbits=5},cS=(r,e,t,s)=>{let n,i=r.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>s&&(n=s),i.window.set(e.subarray(t-s,t-s+n),i.wnext),s-=n,s?(i.window.set(e.subarray(t-s,t),0),i.wnext=s,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let t,s,n,i,a,l,o,u,c,p,h,f,d,m,g=0,b,O,S,C,k,E,A,w,P=new Uint8Array(4),T,I,F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ys(r)||!r.output||!r.input&&r.avail_in!==0)return nn;t=r.state,t.mode===rs&&(t.mode=Lc),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,p=l,h=o,w=Xs;e:for(;;)switch(t.mode){case ll:if(t.wrap===0){t.mode=Lc;break}for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=yr(t.check,P,2,0),u=0,c=0,t.mode=o1;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((u&255)<<8)+(u>>8))%31){r.msg="incorrect header check",t.mode=nr;break}if((u&15)!==a1){r.msg="unknown compression method",t.mode=nr;break}if(u>>>=4,c-=4,A=(u&15)+8,t.wbits===0&&(t.wbits=A),A>15||A>t.wbits){r.msg="invalid window size",t.mode=nr;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,t.check=yr(t.check,P,2,0)),u=0,c=0,t.mode=l1;case l1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>8&255,P[2]=u>>>16&255,P[3]=u>>>24&255,t.check=yr(t.check,P,4,0)),u=0,c=0,t.mode=u1;case u1:for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>8),t.flags&512&&t.wrap&4&&(P[0]=u&255,P[1]=u>>>8&255,t.check=yr(t.check,P,2,0)),u=0,c=0,t.mode=c1;case c1:if(t.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=yr(t.check,P,2,0)),u=0,c=0}else t.head&&(t.head.extra=null);t.mode=f1;case f1:if(t.flags&1024&&(f=t.length,f>l&&(f=l),f&&(t.head&&(A=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(s.subarray(i,i+f),A)),t.flags&512&&t.wrap&4&&(t.check=yr(t.check,s,f,i)),l-=f,i+=f,t.length-=f),t.length))break e;t.length=0,t.mode=p1;case p1:if(t.flags&2048){if(l===0)break e;f=0;do A=s[i+f++],t.head&&A&&t.length<65536&&(t.head.name+=String.fromCharCode(A));while(A&&f>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=rs;break;case m1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>=c&7,c-=c&7,t.mode=Mc;break}for(;c<3;){if(l===0)break e;l--,u+=s[i++]<>>=1,c-=1,u&3){case 0:t.mode=g1;break;case 1:if(D$(t),t.mode=el,e===Jo){u>>>=2,c-=2;break e}break;case 2:t.mode=x1;break;case 3:r.msg="invalid block type",t.mode=nr}u>>>=2,c-=2;break;case g1:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=s[i++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=nr;break}if(t.length=u&65535,u=0,c=0,t.mode=$c,e===Jo)break e;case $c:t.mode=y1;case y1:if(f=t.length,f){if(f>l&&(f=l),f>o&&(f=o),f===0)break e;n.set(s.subarray(i,i+f),a),l-=f,i+=f,o-=f,a+=f,t.length-=f;break}t.mode=rs;break;case x1:for(;c<14;){if(l===0)break e;l--,u+=s[i++]<>>=5,c-=5,t.ndist=(u&31)+1,u>>>=5,c-=5,t.ncode=(u&15)+4,u>>>=4,c-=4,t.nlen>286||t.ndist>30){r.msg="too many length or distance symbols",t.mode=nr;break}t.have=0,t.mode=b1;case b1:for(;t.have>>=3,c-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,T={bits:t.lenbits},w=_a(b$,t.lens,0,19,t.lencode,0,t.work,T),t.lenbits=T.bits,w){r.msg="invalid code lengths set",t.mode=nr;break}t.have=0,t.mode=v1;case v1:for(;t.have>>24,O=g>>>16&255,S=g&65535,!(b<=c);){if(l===0)break e;l--,u+=s[i++]<>>=b,c-=b,t.lens[t.have++]=S;else{if(S===16){for(I=b+2;c>>=b,c-=b,t.have===0){r.msg="invalid bit length repeat",t.mode=nr;break}A=t.lens[t.have-1],f=3+(u&3),u>>>=2,c-=2}else if(S===17){for(I=b+3;c>>=b,c-=b,A=0,f=3+(u&7),u>>>=3,c-=3}else{for(I=b+7;c>>=b,c-=b,A=0,f=11+(u&127),u>>>=7,c-=7}if(t.have+f>t.nlen+t.ndist){r.msg="invalid bit length repeat",t.mode=nr;break}for(;f--;)t.lens[t.have++]=A}}if(t.mode===nr)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=nr;break}if(t.lenbits=9,T={bits:t.lenbits},w=_a(eS,t.lens,0,t.nlen,t.lencode,0,t.work,T),t.lenbits=T.bits,w){r.msg="invalid literal/lengths set",t.mode=nr;break}if(t.distbits=6,t.distcode=t.distdyn,T={bits:t.distbits},w=_a(tS,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,T),t.distbits=T.bits,w){r.msg="invalid distances set",t.mode=nr;break}if(t.mode=el,e===Jo)break e;case el:t.mode=tl;case tl:if(l>=6&&o>=258){r.next_out=a,r.avail_out=o,r.next_in=i,r.avail_in=l,t.hold=u,t.bits=c,h$(r,h),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,t.mode===rs&&(t.back=-1);break}for(t.back=0;g=t.lencode[u&(1<>>24,O=g>>>16&255,S=g&65535,!(b<=c);){if(l===0)break e;l--,u+=s[i++]<>C)],b=g>>>24,O=g>>>16&255,S=g&65535,!(C+b<=c);){if(l===0)break e;l--,u+=s[i++]<>>=C,c-=C,t.back+=C}if(u>>>=b,c-=b,t.back+=b,t.length=S,O===0){t.mode=w1;break}if(O&32){t.back=-1,t.mode=rs;break}if(O&64){r.msg="invalid literal/length code",t.mode=nr;break}t.extra=O&15,t.mode=O1;case O1:if(t.extra){for(I=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=S1;case S1:for(;g=t.distcode[u&(1<>>24,O=g>>>16&255,S=g&65535,!(b<=c);){if(l===0)break e;l--,u+=s[i++]<>C)],b=g>>>24,O=g>>>16&255,S=g&65535,!(C+b<=c);){if(l===0)break e;l--,u+=s[i++]<>>=C,c-=C,t.back+=C}if(u>>>=b,c-=b,t.back+=b,O&64){r.msg="invalid distance code",t.mode=nr;break}t.offset=S,t.extra=O&15,t.mode=E1;case E1:if(t.extra){for(I=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){r.msg="invalid distance too far back",t.mode=nr;break}t.mode=C1;case C1:if(o===0)break e;if(f=h-o,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=nr;break}f>t.wnext?(f-=t.wnext,d=t.wsize-f):d=t.wnext-f,f>t.length&&(f=t.length),m=t.window}else m=n,d=a-t.offset,f=t.length;f>o&&(f=o),o-=f,t.length-=f;do n[a++]=m[d++];while(--f);t.length===0&&(t.mode=tl);break;case w1:if(o===0)break e;n[a++]=t.length,o--,t.mode=tl;break;case Mc:if(t.wrap){for(;c<32;){if(l===0)break e;l--,u|=s[i++]<{if(Ys(r))return nn;let e=r.state;return e.window&&(e.window=null),r.state=null,Xs},F$=(r,e)=>{if(Ys(r))return nn;let t=r.state;return t.wrap&2?(t.head=e,e.done=!1,Xs):nn},R$=(r,e)=>{let t=e.length,s,n,i;return Ys(r)||(s=r.state,s.wrap!==0&&s.mode!==il)?nn:s.mode===il&&(n=1,n=Na(n,e,t,0),n!==s.check)?rS:(i=cS(r,e,t,t),i?(s.mode=sS,nS):(s.havedict=1,Xs))},B$=oS,N$=lS,L$=aS,$$=T$,M$=uS,j$=_$,q$=I$,Q$=F$,U$=R$,V$="pako inflate (from Nodeca project)",ss={inflateReset:B$,inflateReset2:N$,inflateResetKeep:L$,inflateInit:$$,inflateInit2:M$,inflate:j$,inflateEnd:q$,inflateGetHeader:Q$,inflateSetDictionary:U$,inflateInfo:V$};function W$(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Z$=W$,fS=Object.prototype.toString,{Z_NO_FLUSH:z$,Z_FINISH:X$,Z_OK:Ma,Z_STREAM_END:Qc,Z_NEED_DICT:Uc,Z_STREAM_ERROR:G$,Z_DATA_ERROR:D1,Z_MEM_ERROR:Y$}=Gs;function Ua(r){this.options=ol.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(r&&r.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new K1,this.strm.avail_out=0;let t=ss.inflateInit2(this.strm,e.windowBits);if(t!==Ma)throw new Error(Zs[t]);if(this.header=new Z$,ss.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=$a.string2buf(e.dictionary):fS.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=ss.inflateSetDictionary(this.strm,e.dictionary),t!==Ma)))throw new Error(Zs[t])}Ua.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n=this.options.dictionary,i,a,l;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?X$:z$,fS.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),i=ss.inflate(t,a),i===Uc&&n&&(i=ss.inflateSetDictionary(t,n),i===Ma?i=ss.inflate(t,a):i===D1&&(i=Uc));t.avail_in>0&&i===Qc&&t.state.wrap>0&&r[t.next_in]!==0;)ss.inflateReset(t),i=ss.inflate(t,a);switch(i){case G$:case D1:case Uc:case Y$:return this.onEnd(i),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||i===Qc))if(this.options.to==="string"){let o=$a.utf8border(t.output,t.next_out),u=t.next_out-o,c=$a.buf2string(t.output,o);t.next_out=u,t.avail_out=s-u,u&&t.output.set(t.output.subarray(o,o+u),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(i===Ma&&l===0)){if(i===Qc)return i=ss.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Ua.prototype.onData=function(r){this.chunks.push(r)};Ua.prototype.onEnd=function(r){r===Ma&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ol.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function af(r,e){let t=new Ua(e);if(t.push(r),t.err)throw t.msg||Zs[t.err];return t.result}function H$(r,e){return e=e||{},e.raw=!0,af(r,e)}var K$=Ua,J$=af,e3=H$,t3=af,r3=Gs,n3={Inflate:K$,inflate:J$,inflateRaw:e3,ungzip:t3,constants:r3},{Deflate:s3,deflate:i3,deflateRaw:a3,gzip:o3}=f$,{Inflate:l3,inflate:u3,inflateRaw:c3,ungzip:f3}=n3,p3=s3,h3=i3,d3=a3,m3=o3,g3=l3,y3=u3,x3=c3,b3=f3,v3=Gs,of={Deflate:p3,deflate:h3,deflateRaw:d3,gzip:m3,Inflate:g3,inflate:y3,inflateRaw:x3,ungzip:b3,constants:v3};var Bt=class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,s){[e,t]=ji(this,e,t);let n=[];return this.decompose(0,e,n,2),s.length&&s.decompose(0,s.length,n,3),this.decompose(t,this.length,n,1),Ni.from(n,this.length-(t-e)+s.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ji(this,e,t);let s=[];return this.decompose(e,t,s,0),Ni.from(s,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),s=this.length-this.scanIdentical(e,-1),n=new Js(this),i=new Js(e);for(let a=t,l=t;;){if(n.next(a),i.next(a),a=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(l+=n.value.length,n.done||l>=s)return!0}}iter(e=1){return new Js(this,e)}iterRange(e,t=this.length){return new pl(this,e,t)}iterLines(e,t){let s;if(e==null)s=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;s=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new hl(s)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?r.empty:e.length<=32?new Xr(e):Ni.from(Xr.split(e,[]))}},Xr=class r extends Bt{constructor(e,t=O3(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.text[i],l=n+a.length;if((t?s:l)>=e)return new uf(n,l,s,a);n=l+1,s++}}decompose(e,t,s,n){let i=e<=0&&t>=this.length?this:new r(pS(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let a=s.pop(),l=fl(i.text,a.text.slice(),0,i.length);if(l.length<=32)s.push(new r(l,a.length+i.length));else{let o=l.length>>1;s.push(new r(l.slice(0,o)),new r(l.slice(o)))}}else s.push(i)}replace(e,t,s){if(!(s instanceof r))return super.replace(e,t,s);[e,t]=ji(this,e,t);let n=fl(this.text,fl(s.text,pS(this.text,0,e)),t),i=this.length+s.length-(t-e);return n.length<=32?new r(n,i):Ni.from(r.split(n,[]),i)}sliceString(e,t=this.length,s=` -`){[e,t]=ji(this,e,t);let n="";for(let i=0,a=0;i<=t&&ae&&a&&(n+=s),ei&&(n+=l.slice(Math.max(0,e-i),t-i)),i=o+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let s=[],n=-1;for(let i of e)s.push(i),n+=i.length+1,s.length==32&&(t.push(new r(s,n)),s=[],n=-1);return n>-1&&t.push(new r(s,n)),t}},Ni=class r extends Bt{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let s of e)this.lines+=s.lines}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.children[i],l=n+a.length,o=s+a.lines-1;if((t?o:l)>=e)return a.lineInner(e,t,s,n);n=l+1,s=o+1}}decompose(e,t,s,n){for(let i=0,a=0;a<=t&&i=a){let u=n&((a<=e?1:0)|(o>=t?2:0));a>=e&&o<=t&&!u?s.push(l):l.decompose(e-a,t-a,s,u)}a=o+1}}replace(e,t,s){if([e,t]=ji(this,e,t),s.lines=i&&t<=l){let o=a.replace(e-i,t-i,s),u=this.lines-a.lines+o.lines;if(o.lines>4&&o.lines>u>>6){let c=this.children.slice();return c[n]=o,new r(c,this.length-(t-e)+s.length)}return super.replace(i,l,o)}i=l+1}return super.replace(e,t,s)}sliceString(e,t=this.length,s=` -`){[e,t]=ji(this,e,t);let n="";for(let i=0,a=0;ie&&i&&(n+=s),ea&&(n+=l.sliceString(e-a,t-a,s)),a=o+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof r))return 0;let s=0,[n,i,a,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==a||i==l)return s;let o=this.children[n],u=e.children[i];if(o!=u)return s+o.scanIdentical(u,t);s+=o.length+1}}static from(e,t=e.reduce((s,n)=>s+n.length+1,-1)){let s=0;for(let f of e)s+=f.lines;if(s<32){let f=[];for(let d of e)d.flatten(f);return new Xr(f,t)}let n=Math.max(32,s>>5),i=n<<1,a=n>>1,l=[],o=0,u=-1,c=[];function p(f){let d;if(f.lines>i&&f instanceof r)for(let m of f.children)p(m);else f.lines>a&&(o>a||!o)?(h(),l.push(f)):f instanceof Xr&&o&&(d=c[c.length-1])instanceof Xr&&f.lines+d.lines<=32?(o+=f.lines,u+=f.length+1,c[c.length-1]=new Xr(d.text.concat(f.text),d.length+1+f.length)):(o+f.lines>n&&h(),o+=f.lines,u+=f.length+1,c.push(f))}function h(){o!=0&&(l.push(c.length==1?c[0]:r.from(c,u)),u=-1,o=c.length=0)}for(let f of e)p(f);return h(),l.length==1?l[0]:new r(l,t)}};Bt.empty=new Xr([""],0);function O3(r){let e=-1;for(let t of r)e+=t.length+1;return e}function fl(r,e,t=0,s=1e9){for(let n=0,i=0,a=!0;i=t&&(o>s&&(l=l.slice(0,s-n)),n0?1:(e instanceof Xr?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,n=this.nodes[s],i=this.offsets[s],a=i>>1,l=n instanceof Xr?n.text.length:n.children.length;if(a==(t>0?l:0)){if(s==0)return this.done=!0,this.value="",this;t>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[s]+=t,e==0)return this.lineBreak=!0,this.value=` -`,this;e--}else if(n instanceof Xr){let o=n.text[a+(t<0?-1:0)];if(this.offsets[s]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=n.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[s]+=t):(t<0&&this.offsets[s]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof Xr?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},pl=class{constructor(e,t,s){this.value="",this.done=!1,this.cursor=new Js(e,t>s?-1:1),this.pos=t>s?e.length:0,this.from=Math.min(t,s),this.to=Math.max(t,s)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let s=t<0?this.pos-this.from:this.to-this.pos;e>s&&(e=s),s-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=s?n:t<0?n.slice(n.length-s):n.slice(0,s),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},hl=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:s,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):s?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Bt.prototype[Symbol.iterator]=function(){return this.iter()},Js.prototype[Symbol.iterator]=pl.prototype[Symbol.iterator]=hl.prototype[Symbol.iterator]=function(){return this});var uf=class{constructor(e,t,s,n){this.from=e,this.to=t,this.number=s,this.text=n}get length(){return this.to-this.from}};function ji(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}var Li="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(r=>r?parseInt(r,36):1);for(let r=1;rr)return Li[e-1]<=r;return!1}function hS(r){return r>=127462&&r<=127487}var dS=8205;function fr(r,e,t=!0,s=!0){return(t?vS:E3)(r,e,s)}function vS(r,e,t){if(e==r.length)return e;e&&OS(r.charCodeAt(e))&&SS(r.charCodeAt(e-1))&&e--;let s=xr(r,e);for(e+=jr(s);e=0&&hS(xr(r,a));)i++,a-=2;if(i%2==0)break;e+=2}else break}return e}function E3(r,e,t){for(;e>0;){let s=vS(r,e-2,t);if(s=56320&&r<57344}function SS(r){return r>=55296&&r<56320}function xr(r,e){let t=r.charCodeAt(e);if(!SS(t)||e+1==r.length)return t;let s=r.charCodeAt(e+1);return OS(s)?(t-55296<<10)+(s-56320)+65536:t}function Ga(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function jr(r){return r<65536?1:2}var cf=/\r\n?|\n/,hr=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(hr||(hr={})),is=class r{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-n);i+=l}else{if(s!=hr.Simple&&u>=e&&(s==hr.TrackDel&&ne||s==hr.TrackBefore&&ne))return null;if(u>e||u==e&&t<0&&!l)return e==n||t<0?i:i+o;i+=o}n=u}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,t=e){for(let s=0,n=0;s=0&&n<=t&&l>=e)return nt?"cover":!0;n=l}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new r(e)}static create(e){return new r(e)}},Ir=class r extends is{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ff(this,(t,s,n,i,a)=>e=e.replace(n,n+(s-t),a),!1),e}mapDesc(e,t=!1){return pf(this,e,t,!0)}invert(e){let t=this.sections.slice(),s=[];for(let n=0,i=0;n=0){t[n]=l,t[n+1]=a;let o=n>>1;for(;s.length0&&Es(s,t,i.text),i.forward(c),l+=c}let u=e[a++];for(;l>1].toJSON()))}return e}static of(e,t,s){let n=[],i=[],a=0,l=null;function o(c=!1){if(!c&&!n.length)return;ah||p<0||h>t)throw new RangeError(`Invalid change range ${p} to ${h} (in doc of length ${t})`);let d=f?typeof f=="string"?Bt.of(f.split(s||cf)):f:Bt.empty,m=d.length;if(p==h&&m==0)return;pa&&Ar(n,p-a,-1),Ar(n,h-p,m),Es(i,n,d),a=h}}return u(e),o(!l),l}static empty(e){return new r(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],s=[];for(let n=0;nl&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)t.push(i[0],0);else{for(;s.length=0&&t<=0&&t==r[n+1]?r[n]+=e:e==0&&r[n]==0?r[n+1]+=t:s?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function Es(r,e,t){if(t.length==0)return;let s=e.length-2>>1;if(s>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)l=r.sections[a++],o=r.sections[a++];e(n,u,i,c,p),n=u,i=c}}}function pf(r,e,t,s=!1){let n=[],i=s?[]:null,a=new ei(r),l=new ei(e);for(let o=-1;;)if(a.ins==-1&&l.ins==-1){let u=Math.min(a.len,l.len);Ar(n,u,-1),a.forward(u),l.forward(u)}else if(l.ins>=0&&(a.ins<0||o==a.i||a.off==0&&(l.len=0&&o=0){let u=0,c=a.len;for(;c;)if(l.ins==-1){let p=Math.min(c,l.len);u+=p,c-=p,l.forward(p)}else if(l.ins==0&&l.leno||a.ins>=0&&a.len>o)&&(l||s.length>u),i.forward2(o),a.forward(o)}}}}var ei=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Bt.empty:e[t]}textBit(e){let{inserted:t}=this.set,s=this.i-2>>1;return s>=t.length&&!e?Bt.empty:t[s].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Bi=class r{constructor(e,t,s){this.from=e,this.to=t,this.flags=s}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let s,n;return this.empty?s=n=e.mapPos(this.from,t):(s=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),s==this.from&&n==this.to?this:new r(s,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Xe.range(e,t);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Xe.range(this.anchor,s)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Xe.range(e.anchor,e.head)}static create(e,t,s){return new r(e,t,s)}},Xe=class r{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:r.create(this.ranges.map(s=>s.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let s=0;se.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new r(e.ranges.map(t=>Bi.fromJSON(t)),e.main)}static single(e,t=e){return new r([r.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let s=0,n=0;ne?8:0)|i)}static normalized(e,t=0){let s=e[t];e.sort((n,i)=>n.from-i.from),t=e.indexOf(s);for(let n=1;ni.head?r.range(o,l):r.range(l,o))}}return new r(e,t)}};function CS(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var Sf=0,pt=class r{constructor(e,t,s,n,i){this.combine=e,this.compareInput=t,this.compare=s,this.isStatic=n,this.id=Sf++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new r(e.combine||(t=>t),e.compareInput||((t,s)=>t===s),e.compare||(e.combine?(t,s)=>t===s:Ef),!!e.static,e.enables)}of(e){return new $i([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new $i(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new $i(e,this,2,t)}from(e,t){return t||(t=s=>s),this.compute([e],s=>t(s.field(e)))}};function Ef(r,e){return r==e||r.length==e.length&&r.every((t,s)=>t===e[s])}var $i=class{constructor(e,t,s,n){this.dependencies=e,this.facet=t,this.type=s,this.value=n,this.id=Sf++}dynamicSlot(e){var t;let s=this.value,n=this.facet.compareInput,i=this.id,a=e[i]>>1,l=this.type==2,o=!1,u=!1,c=[];for(let p of this.dependencies)p=="doc"?o=!0:p=="selection"?u=!0:((t=e[p.id])!==null&&t!==void 0?t:1)&1||c.push(e[p.id]);return{create(p){return p.values[a]=s(p),1},update(p,h){if(o&&h.docChanged||u&&(h.docChanged||h.selection)||hf(p,c)){let f=s(p);if(l?!mS(f,p.values[a],n):!n(f,p.values[a]))return p.values[a]=f,1}return 0},reconfigure:(p,h)=>{let f,d=h.config.address[i];if(d!=null){let m=yl(h,d);if(this.dependencies.every(g=>g instanceof pt?h.facet(g)===p.facet(g):g instanceof Kt?h.field(g,!1)==p.field(g,!1):!0)||(l?mS(f=s(p),m,n):n(f=s(p),m)))return p.values[a]=m,0}else f=s(p);return p.values[a]=f,1}}}};function mS(r,e,t){if(r.length!=e.length)return!1;for(let s=0;sr[o.id]),n=t.map(o=>o.type),i=s.filter(o=>!(o&1)),a=r[e.id]>>1;function l(o){let u=[];for(let c=0;cs===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(gS).find(s=>s.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:s=>(s.values[t]=this.create(s),1),update:(s,n)=>{let i=s.values[t],a=this.updateF(i,n);return this.compareF(i,a)?0:(s.values[t]=a,1)},reconfigure:(s,n)=>n.config.address[this.id]!=null?(s.values[t]=n.field(this),0):(s.values[t]=this.create(s),1)}}init(e){return[this,gS.of({field:this,create:e})]}get extension(){return this}},Hs={lowest:4,low:3,default:2,high:1,highest:0};function Va(r){return e=>new dl(e,r)}var sn={highest:Va(Hs.highest),high:Va(Hs.high),default:Va(Hs.default),low:Va(Hs.low),lowest:Va(Hs.lowest)},dl=class{constructor(e,t){this.inner=e,this.prec=t}},ml=class r{of(e){return new Za(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Za=class{constructor(e,t){this.compartment=e,this.inner=t}},gl=class r{constructor(e,t,s,n,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=s,this.address=n,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,s){let n=[],i=Object.create(null),a=new Map;for(let h of w3(e,t,a))h instanceof Kt?n.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let l=Object.create(null),o=[],u=[];for(let h of n)l[h.id]=u.length<<1,u.push(f=>h.slot(f));let c=s?.config.facets;for(let h in i){let f=i[h],d=f[0].facet,m=c&&c[h]||[];if(f.every(g=>g.type==0))if(l[d.id]=o.length<<1|1,Ef(m,f))o.push(s.facet(d));else{let g=d.combine(f.map(b=>b.value));o.push(s&&d.compare(g,s.facet(d))?s.facet(d):g)}else{for(let g of f)g.type==0?(l[g.id]=o.length<<1|1,o.push(g.value)):(l[g.id]=u.length<<1,u.push(b=>g.dynamicSlot(b)));l[d.id]=u.length<<1,u.push(g=>C3(g,d,f))}}let p=u.map(h=>h(l));return new r(e,a,p,l,o,i)}};function w3(r,e,t){let s=[[],[],[],[],[]],n=new Map;function i(a,l){let o=n.get(a);if(o!=null){if(o<=l)return;let u=s[o].indexOf(a);u>-1&&s[o].splice(u,1),a instanceof Za&&t.delete(a.compartment)}if(n.set(a,l),Array.isArray(a))for(let u of a)i(u,l);else if(a instanceof Za){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;t.set(a.compartment,u),i(u,l)}else if(a instanceof dl)i(a.inner,a.prec);else if(a instanceof Kt)s[l].push(a),a.provides&&i(a.provides,l);else if(a instanceof $i)s[l].push(a),a.facet.extensions&&i(a.facet.extensions,Hs.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,l)}}return i(r,Hs.default),s.reduce((a,l)=>a.concat(l))}function Wa(r,e){if(e&1)return 2;let t=e>>1,s=r.status[t];if(s==4)throw new Error("Cyclic dependency between fields and/or facets");if(s&2)return s;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function yl(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var wS=pt.define(),df=pt.define({combine:r=>r.some(e=>e),static:!0}),kS=pt.define({combine:r=>r.length?r[0]:void 0,static:!0}),AS=pt.define(),PS=pt.define(),TS=pt.define(),DS=pt.define({combine:r=>r.length?r[0]:!1}),qr=class{constructor(e,t){this.type=e,this.value=t}static define(){return new mf}},mf=class{of(e){return new qr(this,e)}},gf=class{constructor(e){this.map=e}of(e){return new At(this,e)}},At=class r{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new r(this.type,t)}is(e){return this.type==e}static define(e={}){return new gf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let s=[];for(let n of e){let i=n.map(t);i&&s.push(i)}return s}};At.reconfigure=At.define();At.appendConfig=At.define();var cr=class r{constructor(e,t,s,n,i,a){this.startState=e,this.changes=t,this.selection=s,this.effects=n,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,s&&CS(s,t.newLength),i.some(l=>l.type==r.time)||(this.annotations=i.concat(r.time.of(Date.now())))}static create(e,t,s,n,i,a){return new r(e,t,s,n,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(r.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};cr.time=qr.define();cr.userEvent=qr.define();cr.addToHistory=qr.define();cr.remote=qr.define();function k3(r,e){let t=[];for(let s=0,n=0;;){let i,a;if(s=r[s]))i=r[s++],a=r[s++];else if(n=0;n--){let i=s[n](r);i instanceof cr?r=i:Array.isArray(i)&&i.length==1&&i[0]instanceof cr?r=i[0]:r=IS(e,Mi(i),!1)}return r}function P3(r){let e=r.startState,t=e.facet(TS),s=r;for(let n=t.length-1;n>=0;n--){let i=t[n](r);i&&Object.keys(i).length&&(s=_S(s,yf(e,i,r.changes.newLength),!0))}return s==r?r:cr.create(e,r.changes,r.selection,s.effects,s.annotations,s.scrollIntoView)}var T3=[];function Mi(r){return r==null?T3:Array.isArray(r)?r:[r]}var zt=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(zt||(zt={})),D3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,xf;try{xf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function _3(r){if(xf)return xf.test(r);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||D3.test(t)))return!0}return!1}function I3(r){return e=>{if(!/\S/.test(e))return zt.Space;if(_3(e))return zt.Word;for(let t=0;t-1)return zt.Word;return zt.Other}}var Wt=class r{constructor(e,t,s,n,i,a){this.config=e,this.doc=t,this.selection=s,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let l=0;ln.set(u,o)),t=null),n.set(l.value.compartment,l.value.extension)):l.is(At.reconfigure)?(t=null,s=l.value):l.is(At.appendConfig)&&(t=null,s=Mi(s).concat(l.value));let i;t?i=e.startState.values.slice():(t=gl.resolve(s,n,this),i=new r(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(o,u)=>u.reconfigure(o,this),null).values);let a=e.startState.facet(df)?e.newSelection:e.newSelection.asSingle();new r(t,e.newDoc,a,i,(l,o)=>o.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Xe.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,s=e(t.ranges[0]),n=this.changes(s.changes),i=[s.range],a=Mi(s.effects);for(let l=1;la.spec.fromJSON(l,o)))}}return r.create({doc:e.doc,selection:Xe.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=gl.resolve(e.extensions||[],new Map),s=e.doc instanceof Bt?e.doc:Bt.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||cf)),n=e.selection?e.selection instanceof Xe?e.selection:Xe.single(e.selection.anchor,e.selection.head):Xe.single(0);return CS(n,s.length),t.staticFacet(df)||(n=n.asSingle()),new r(t,s,n,t.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(r.tabSize)}get lineBreak(){return this.facet(r.lineSeparator)||` -`}get readOnly(){return this.facet(DS)}phrase(e,...t){for(let s of this.facet(r.phrases))if(Object.prototype.hasOwnProperty.call(s,e)){e=s[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(s,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>t.length?s:t[i-1]})),e}languageDataAt(e,t,s=-1){let n=[];for(let i of this.facet(wS))for(let a of i(this,t,s))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){return I3(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:s,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-s,l=e-s;for(;a>0;){let o=fr(t,a,!1);if(i(t.slice(o,a))!=zt.Word)break;a=o}for(;lr.length?r[0]:4});Wt.lineSeparator=kS;Wt.readOnly=DS;Wt.phrases=pt.define({compare(r,e){let t=Object.keys(r),s=Object.keys(e);return t.length==s.length&&t.every(n=>r[n]==e[n])}});Wt.languageData=wS;Wt.changeFilter=AS;Wt.transactionFilter=PS;Wt.transactionExtender=TS;ml.reconfigure=At.define();function Pr(r,e,t={}){let s={};for(let n of r)for(let i of Object.keys(n)){let a=n[i],l=s[i];if(l===void 0)s[i]=a;else if(!(l===a||a===void 0))if(Object.hasOwnProperty.call(t,i))s[i]=t[i](l,a);else throw new Error("Config merge conflict for field "+i)}for(let n in e)s[n]===void 0&&(s[n]=e[n]);return s}var bn=class{eq(e){return this==e}range(e,t=e){return za.create(e,t,this)}};bn.prototype.startSide=bn.prototype.endSide=0;bn.prototype.point=!1;bn.prototype.mapMode=hr.TrackDel;var za=class r{constructor(e,t,s){this.from=e,this.to=t,this.value=s}static create(e,t,s){return new r(e,t,s)}};function bf(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var vf=class r{constructor(e,t,s,n){this.from=e,this.to=t,this.value=s,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,s,n=0){let i=s?this.to:this.from;for(let a=n,l=i.length;;){if(a==l)return a;let o=a+l>>1,u=i[o]-e||(s?this.value[o].endSide:this.value[o].startSide)-t;if(o==a)return u>=0?a:l;u>=0?l=o:a=o+1}}between(e,t,s,n){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(s,1e9,!1,i);if||h==f&&u.startSide>0&&u.endSide<=0)continue;(f-h||u.endSide-u.startSide)<0||(a<0&&(a=h),u.point&&(l=Math.max(l,f-h)),s.push(u),n.push(h-a),i.push(f-a))}return{mapped:s.length?new r(n,i,s,l):null,pos:a}}},qt=class r{constructor(e,t,s,n){this.chunkPos=e,this.chunk=t,this.nextLayer=s,this.maxPoint=n}static create(e,t,s,n){return new r(e,t,s,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:s=!1,filterFrom:n=0,filterTo:i=this.length}=e,a=e.filter;if(t.length==0&&!a)return this;if(s&&(t=t.slice().sort(bf)),this.isEmpty)return t.length?r.of(t):this;let l=new xl(this,null,-1).goto(0),o=0,u=[],c=new Rn;for(;l.value||o=0){let p=t[o++];c.addInner(p.from,p.to,p.value)||u.push(p)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||il.to||i=i&&e<=i+a.length&&a.between(i,e-i,t-i,s)===!1)return}this.nextLayer.between(e,t,s)}}iter(e=0){return Xa.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Xa.from(e).goto(t)}static compare(e,t,s,n,i=-1){let a=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),l=t.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),o=yS(a,l,s),u=new Ks(a,o,i),c=new Ks(l,o,i);s.iterGaps((p,h,f)=>xS(u,p,c,h,f,n)),s.empty&&s.length==0&&xS(u,0,c,0,0,n)}static eq(e,t,s=0,n){n==null&&(n=999999999);let i=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),a=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let l=yS(i,a),o=new Ks(i,l,0).goto(s),u=new Ks(a,l,0).goto(s);for(;;){if(o.to!=u.to||!Of(o.active,u.active)||o.point&&(!u.point||!o.point.eq(u.point)))return!1;if(o.to>n)return!0;o.next(),u.next()}}static spans(e,t,s,n,i=-1){let a=new Ks(e,null,i).goto(t),l=t,o=a.openStart;for(;;){let u=Math.min(a.to,s);if(a.point){let c=a.activeForPoint(a.to),p=a.pointFroml&&(n.span(l,u,a.active,o),o=a.openEnd(u));if(a.to>s)return o+(a.point&&a.to>s?1:0);l=a.to,a.next()}}static of(e,t=!1){let s=new Rn;for(let n of e instanceof za?[e]:t?F3(e):e)s.add(n.from,n.to,n.value);return s.finish()}static join(e){if(!e.length)return r.empty;let t=e[e.length-1];for(let s=e.length-2;s>=0;s--)for(let n=e[s];n!=r.empty;n=n.nextLayer)t=new r(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}};qt.empty=new qt([],[],null,-1);function F3(r){if(r.length>1)for(let e=r[0],t=1;t0)return r.slice().sort(bf);e=s}return r}qt.empty.nextLayer=qt.empty;var Rn=class r{finishChunk(e){this.chunks.push(new vf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,s){this.addInner(e,t,s)||(this.nextLayer||(this.nextLayer=new r)).add(e,t,s)}addInner(e,t,s){let n=e-this.lastTo||s.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||s.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=s,this.lastFrom=e,this.lastTo=t,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let s=t.value.length-1;return this.last=t.value[s],this.lastFrom=t.from[s]+e,this.lastTo=t.to[s]+e,!0}finish(){return this.finishInner(qt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=qt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function yS(r,e,t){let s=new Map;for(let i of r)for(let a=0;a=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=s&&n.push(new xl(a,t,s,i));return n.length==1?n[0]:new r(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let s of this.heap)s.goto(e,t);for(let s=this.heap.length>>1;s>=0;s--)lf(this.heap,s);return this.next(),this}forward(e,t){for(let s of this.heap)s.forward(e,t);for(let s=this.heap.length>>1;s>=0;s--)lf(this.heap,s);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),lf(this.heap,0)}}};function lf(r,e){for(let t=r[e];;){let s=(e<<1)+1;if(s>=r.length)break;let n=r[s];if(s+1=0&&(n=r[s+1],s++),t.compare(n)<0)break;r[s]=t,r[e]=n,e=s}}var Ks=class{constructor(e,t,s){this.minPoint=s,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Xa.from(e,t,s)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ul(this.active,e),ul(this.activeTo,e),ul(this.activeRank,e),this.minActive=bS(this.active,this.activeTo)}addActive(e){let t=0,{value:s,to:n,rank:i}=this.cursor;for(;t0;)t++;cl(this.active,t,s),cl(this.activeTo,t,n),cl(this.activeRank,t,i),e&&cl(e,t,this.cursor.from),this.minActive=bS(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let s=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),s&&ul(s,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(s),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&s[n]=0&&!(this.activeRank[s]e||this.activeTo[s]==e&&this.active[s].endSide>=this.point.endSide)&&t.push(this.active[s]);return t.reverse()}openEnd(e){let t=0;for(let s=this.activeTo.length-1;s>=0&&this.activeTo[s]>e;s--)t++;return t}};function xS(r,e,t,s,n,i){r.goto(e),t.goto(s);let a=s+n,l=s,o=s-e;for(;;){let u=r.to+o-t.to||r.endSide-t.endSide,c=u<0?r.to+o:t.to,p=Math.min(c,a);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&Of(r.activeForPoint(r.to),t.activeForPoint(t.to))||i.comparePoint(l,p,r.point,t.point):p>l&&!Of(r.active,t.active)&&i.compareRange(l,p,r.active,t.active),c>a)break;l=c,u<=0&&r.next(),u>=0&&t.next()}}function Of(r,e){if(r.length!=e.length)return!1;for(let t=0;t=e;s--)r[s+1]=r[s];r[e]=t}function bS(r,e){let t=-1,s=1e9;for(let n=0;n=e)return n;if(n==r.length)break;i+=r.charCodeAt(n)==9?t-i%t:1,n=fr(r,n)}return s===!0?-1:r.length}var Cf="\u037C",FS=typeof Symbol>"u"?"__"+Cf:Symbol.for(Cf),wf=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),RS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},an=class{constructor(e,t){this.rules=[];let{finish:s}=t||{};function n(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function i(a,l,o,u){let c=[],p=/^@(\w+)\b/.exec(a[0]),h=p&&p[1]=="keyframes";if(p&&l==null)return o.push(a[0]+";");for(let f in l){let d=l[f];if(/&/.test(f))i(f.split(/,\s*/).map(m=>a.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),d,o);else if(d&&typeof d=="object"){if(!p)throw new RangeError("The value of a property ("+f+") should be a primitive value.");i(n(f),d,c,h)}else d!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+d+";")}(c.length||h)&&o.push((s&&!p&&!u?a.map(s):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)i(n(a),e[a],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let e=RS[FS]||1;return RS[FS]=e+1,Cf+e.toString(36)}static mount(e,t,s){let n=e[wf],i=s&&s.nonce;n?i&&n.setNonce(i):n=new kf(e,i),n.mount(Array.isArray(t)?t:[t],e)}},BS=new Map,kf=class{constructor(e,t){let s=e.ownerDocument||e,n=s.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let i=BS.get(s);if(i)return e[wf]=i;this.sheet=new n.CSSStyleSheet,BS.set(s,this)}else this.styleTag=s.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[wf]=this}mount(e,t){let s=this.sheet,n=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,l),s)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},R3=typeof navigator<"u"&&/Mac/.test(navigator.platform),B3=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(pr=0;pr<10;pr++)os[48+pr]=os[96+pr]=String(pr);var pr;for(pr=1;pr<=24;pr++)os[pr+111]="F"+pr;var pr;for(pr=65;pr<=90;pr++)os[pr]=String.fromCharCode(pr+32),qi[pr]=String.fromCharCode(pr);var pr;for(vl in os)qi.hasOwnProperty(vl)||(qi[vl]=os[vl]);var vl;function NS(r){var e=R3&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||B3&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?qi:os)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Nl(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function Rf(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function N3(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Dl(r,e){if(!e.anchorNode)return!1;try{return Rf(r,e.anchorNode)}catch{return!1}}function uo(r){return r.nodeType==3?ri(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function ro(r,e,t,s){return t?LS(r,e,t,s,-1)||LS(r,e,t,s,1):!1}function ti(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Ll(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function LS(r,e,t,s,n){for(;;){if(r==t&&e==s)return!0;if(e==(n<0?0:ls(r))){if(r.nodeName=="DIV")return!1;let i=r.parentNode;if(!i||i.nodeType!=1)return!1;e=ti(r)+(n<0?0:1),r=i}else if(r.nodeType==1){if(r=r.childNodes[e+(n<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=n<0?ls(r):0}else return!1}}function ls(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Op(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function L3(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function EE(r,e){let t=e.width/r.offsetWidth,s=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-r.offsetHeight)<1)&&(s=1),{scaleX:t,scaleY:s}}function $3(r,e,t,s,n,i,a,l){let o=r.ownerDocument,u=o.defaultView||window;for(let c=r,p=!1;c&&!p;)if(c.nodeType==1){let h,f=c==o.body,d=1,m=1;if(f)h=L3(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(p=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let O=c.getBoundingClientRect();({scaleX:d,scaleY:m}=EE(c,O)),h={left:O.left,right:O.left+c.clientWidth*d,top:O.top,bottom:O.top+c.clientHeight*m}}let g=0,b=0;if(n=="nearest")e.top0&&e.bottom>h.bottom+b&&(b=e.bottom-h.bottom+b+a)):e.bottom>h.bottom&&(b=e.bottom-h.bottom+a,t<0&&e.top-b0&&e.right>h.right+g&&(g=e.right-h.right+g+i)):e.right>h.right&&(g=e.right-h.right+i,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}var Bf=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:s}=e;this.set(t,Math.min(e.anchorOffset,t?ls(t):0),s,Math.min(e.focusOffset,s?ls(s):0))}set(e,t,s,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=s,this.focusOffset=n}},Qi=null;function CE(r){if(r.setActive)return r.setActive();if(Qi)return r.focus(Qi);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(Qi==null?{get preventScroll(){return Qi={preventScroll:!0},!0}}:void 0),!Qi){Qi=!1;for(let t=0;tMath.max(1,r.scrollHeight-r.clientHeight-4)}function AE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&s>0)return{node:t,offset:s};if(t.nodeType==1&&s>0){if(t.contentEditable=="false")return null;t=t.childNodes[s-1],s=ls(t)}else if(t.parentNode&&!Ll(t))s=ti(t),t=t.parentNode;else return null}}function PE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&st)return p.domBoundsAround(e,t,u);if(h>=e&&n==-1&&(n=o,i=u),u>t&&p.dom.parentNode==this.dom){a=o,l=c;break}c=h,u=h+p.breakAfter}return{from:i,to:l<0?s+this.length:l,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,s=Sp){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let s=this.children[--this.i];this.pos-=s.length+s.breakAfter}}};function TE(r,e,t,s,n,i,a,l,o){let{children:u}=r,c=u.length?u[e]:null,p=i.length?i[i.length-1]:null,h=p?p.breakAfter:a;if(!(e==s&&c&&!a&&!h&&i.length<2&&c.merge(t,n,i.length?p:null,t==0,l,o))){if(s0&&(!a&&i.length&&c.merge(t,c.length,i[0],!1,l,0)?c.breakAfter=i.shift().breakAfter:(t2),ht={mac:QS||/Mac/.test(Gr.platform),windows:/Win/.test(Gr.platform),linux:/Linux|X11/.test(Gr.platform),ie:Hl,ie_version:_E?Nf.documentMode||6:$f?+$f[1]:Lf?+Lf[1]:0,gecko:jS,gecko_version:jS?+(/Firefox\/(\d+)/.exec(Gr.userAgent)||[0,0])[1]:0,chrome:!!Af,chrome_version:Af?+Af[1]:0,ios:QS,android:/Android\b/.test(Gr.userAgent),webkit:qS,safari:IE,webkit_version:qS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Nf.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},Q3=256,Mn=class r extends Ht{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,s){return this.flags&8||s&&(!(s instanceof r)||this.length-(t-e)+s.length>Q3||s.flags&8)?!1:(this.text=this.text.slice(0,e)+(s?s.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new r(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new Fr(this.dom,e)}domBoundsAround(e,t,s){return{from:s,to:s+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return U3(this.dom,e,t)}},ks=class r extends Ht{constructor(e,t=[],s=0){super(),this.mark=e,this.children=t,this.length=s;for(let n of t)n.setParent(this)}setAttrs(e){if(wE(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,s,n,i,a){return s&&(!(s instanceof r&&s.mark.eq(this.mark))||e&&i<=0||te&&t.push(s=e&&(n=i),s=o,i++}let a=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new r(this.mark,t,a)}domAtPos(e){return FE(this,e)}coordsAt(e,t){return BE(this,e,t)}};function U3(r,e,t){let s=r.nodeValue.length;e>s&&(e=s);let n=e,i=e,a=0;e==0&&t<0||e==s&&t>=0?ht.chrome||ht.gecko||(e?(n--,a=1):i=0)?0:l.length-1];return ht.safari&&!a&&o.width==0&&(o=Array.prototype.find.call(l,u=>u.width)||o),a?Op(o,a<0):o||null}var co=class r extends Ht{static create(e,t,s){return new r(e,t,s)}constructor(e,t,s){super(),this.widget=e,this.length=t,this.side=s,this.prevWidget=null}split(e){let t=r.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0)?Fr.before(this.dom):Fr.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;let n=this.dom.getClientRects(),i=null;if(!n.length)return null;let a=this.side?this.side<0:e>0;for(let l=a?n.length-1:0;i=n[l],!(e>0?l==0:l==n.length-1||i.top0?Fr.before(this.dom):Fr.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Bt.empty}get isHidden(){return!0}};Mn.prototype.children=co.prototype.children=fo.prototype.children=Sp;function FE(r,e){let t=r.dom,{children:s}=r,n=0;for(let i=0;ni&&e0;i--){let a=s[i-1];if(a.dom.parentNode==t)return a.domAtPos(a.length)}for(let i=n;i0&&e instanceof ks&&n.length&&(s=n[n.length-1])instanceof ks&&s.mark.eq(e.mark)?RE(s,e.children[0],t-1):(n.push(e),e.setParent(r)),r.length+=e.length}function BE(r,e,t){let s=null,n=-1,i=null,a=-1;function l(u,c){for(let p=0,h=0;p=c&&(f.children.length?l(f,c-h):(!i||i.isHidden&&t>0)&&(d>c||h==d&&f.getSide()>0)?(i=f,a=c-h):(h-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let i of s)if(i!=t&&(n.indexOf(i)==-1||r[i]!==e[i]))return!1;return!0}function jf(r,e,t){let s=!1;if(e)for(let n in e)t&&n in t||(s=!0,n=="style"?r.style.cssText="":r.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(s=!0,n=="style"?r.style.cssText=t[n]:r.setAttribute(n,t[n]));return s}function W3(r){let e=Object.create(null);for(let t=0;t0&&this.children[s-1].length==0;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Ep(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){RE(this,e,t)}addLineDeco(e){let t=e.spec.attributes,s=e.spec.class;t&&(this.attrs=Mf(t,this.attrs||{})),s&&(this.attrs=Mf({class:s},this.attrs||{}))}domAtPos(e){return FE(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var s;this.dom?this.flags&4&&(wE(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(jf(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&Ht.get(n)instanceof ks;)n=n.lastChild;if(!n||!this.length||n.nodeName!="BR"&&((s=Ht.get(n))===null||s===void 0?void 0:s.isEditable)==!1&&(!ht.ios||!this.children.some(i=>i instanceof Mn))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let s of this.children){if(!(s instanceof Mn)||/[^ -~]/.test(s.text))return null;let n=uo(s.dom);if(n.length!=1)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let s=BE(this,e,t);if(!this.children.length&&s&&this.parent){let{heightOracle:n}=this.parent.view.viewState,i=s.bottom-s.top;if(Math.abs(i-n.lineHeight)<2&&n.textHeight=t){if(i instanceof r)return i;if(a>t)break}n=a+i.breakAfter}return null}},zi=class r extends Ht{constructor(e,t,s){super(),this.widget=e,this.length=t,this.deco=s,this.breakAfter=0,this.prevWidget=null}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0}},ln=class{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,s){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},Rr=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(Rr||(Rr={})),bt=class extends bn{constructor(e,t,s,n){super(),this.startSide=e,this.endSide=t,this.widget=s,this.spec=n}get heightRelevant(){return!1}static mark(e){return new po(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),s=!!e.block;return t+=s&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new As(e,t,t,s,e.widget||null,!1)}static replace(e){let t=!!e.block,s,n;if(e.isBlockGap)s=-5e8,n=4e8;else{let{start:i,end:a}=NE(e,t);s=(i?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new As(e,s,n,t,e.widget||null,!0)}static line(e){return new ho(e)}static set(e,t=!1){return qt.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};bt.none=qt.empty;var po=class r extends bt{constructor(e){let{start:t,end:s}=NE(e);super(t?-1:5e8,s?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,s;return this==e||e instanceof r&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((s=e.attrs)===null||s===void 0?void 0:s.class))&&Ep(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}};po.prototype.point=!1;var ho=class r extends bt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&Ep(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}};ho.prototype.mapMode=hr.TrackBefore;ho.prototype.point=!0;var As=class r extends bt{constructor(e,t,s,n,i,a){super(t,s,i,e),this.block=n,this.isReplace=a,this.mapMode=n?t<=0?hr.TrackBefore:hr.TrackAfter:hr.TrackDel}get type(){return this.startSide!=this.endSide?Rr.WidgetRange:this.startSide<=0?Rr.WidgetBefore:Rr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof r&&Z3(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}};As.prototype.point=!0;function NE(r,e=!1){let{inclusiveStart:t,inclusiveEnd:s}=r;return t==null&&(t=r.inclusive),s==null&&(s=r.inclusive),{start:t??e,end:s??e}}function Z3(r,e){return r==e||!!(r&&e&&r.compare(e))}function qf(r,e,t,s=0){let n=t.length-1;n>=0&&t[n]+s>=r?t[n]=Math.max(t[n],e):t.push(r,e)}var no=class r{constructor(e,t,s,n){this.doc=e,this.pos=t,this.end=s,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof zi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Er),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Ol(new fo(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof zi)&&this.getLine()}buildText(e,t,s){for(;e>0;){if(this.textOff==this.text.length){let{value:i,lineBreak:a,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=i,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-s)),this.getLine().append(Ol(new Mn(this.text.slice(this.textOff,this.textOff+n)),t),s),this.atCursorPos=!0,this.textOff+=n,e-=n,s=0}}span(e,t,s,n){this.buildText(t-e,s,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,s,n,i,a){if(this.disallowBlockEffectsFor[a]&&s instanceof As){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(s instanceof As)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new zi(s.widget||Ps.block,l,s));else{let o=co.create(s.widget||Ps.inline,l,l?0:s.startSide),u=this.atCursorPos&&!o.isEditable&&i<=n.length&&(e0),c=!o.isEditable&&(en.length||s.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!u&&!o.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),u&&(p.append(Ol(new fo(1),n),i),i=n.length+Math.max(0,i-n.length)),p.append(Ol(o,n),i),this.atCursorPos=c,this.pendingBuffer=c?en.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(s);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,s,n,i){let a=new r(e,t,s,i);return a.openEnd=qt.spans(n,t,s,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}};function Ol(r,e){for(let t of e)r=new ks(t,[r],r.length);return r}var Ps=class extends ln{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};Ps.inline=new Ps("span");Ps.block=new Ps("div");var Xt=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(Xt||(Xt={})),ni=Xt.LTR,Cp=Xt.RTL;function LE(r){let e=[];for(let t=0;t=t){if(l.level==s)return a;(i<0||(n!=0?n<0?l.fromt:e[i].level>l.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}};function ME(r,e){if(r.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(Bn[m+1]==-f){let g=Bn[m+2],b=g&2?n:g&4?g&1?i:n:0;b&&(Yt[p]=Yt[Bn[m]]=b),l=m;break}}else{if(Bn.length==189)break;Bn[l++]=p,Bn[l++]=h,Bn[l++]=o}else if((d=Yt[p])==2||d==1){let m=d==n;o=m?0:1;for(let g=l-3;g>=0;g-=3){let b=Bn[g+2];if(b&2)break;if(m)Bn[g+2]|=2;else{if(b&4)break;Bn[g+2]|=4}}}}}function K3(r,e,t,s){for(let n=0,i=s;n<=t.length;n++){let a=n?t[n-1].to:r,l=no;)d==g&&(d=t[--m].from,g=m?t[m-1].to:r),Yt[--d]=f;o=c}else i=u,o++}}}function Uf(r,e,t,s,n,i,a){let l=s%2?2:1;if(s%2==n%2)for(let o=e,u=0;oo&&a.push(new Ln(o,m.from,f));let g=m.direction==ni!=!(f%2);Vf(r,g?s+1:s,n,m.inner,m.from,m.to,a),o=m.to}d=m.to}else{if(d==t||(c?Yt[d]!=l:Yt[d]==l))break;d++}h?Uf(r,o,d,s+1,n,h,a):oe;){let c=!0,p=!1;if(!u||o>i[u-1].to){let m=Yt[o-1];m!=l&&(c=!1,p=m==16)}let h=!c&&l==1?[]:null,f=c?s:s+1,d=o;e:for(;;)if(u&&d==i[u-1].to){if(p)break e;let m=i[--u];if(!c)for(let g=m.from,b=u;;){if(g==e)break e;if(b&&i[b-1].to==g)g=i[--b].from;else{if(Yt[g-1]==l)break e;break}}if(h)h.push(m);else{m.toYt.length;)Yt[Yt.length]=256;let s=[],n=e==ni?0:1;return Vf(r,n,n,t,0,r.length,s),s}function jE(r){return[new Ln(0,r,0)]}var qE="";function eM(r,e,t,s,n){var i;let a=s.head-r.from,l=Ln.find(e,a,(i=s.bidiLevel)!==null&&i!==void 0?i:-1,s.assoc),o=e[l],u=o.side(n,t);if(a==u){let h=l+=n?1:-1;if(h<0||h>=e.length)return null;o=e[l=h],a=o.side(!n,t),u=o.side(n,t)}let c=fr(r.text,a,o.forward(n,t));(co.to)&&(c=u),qE=r.text.slice(Math.min(a,c),Math.max(a,c));let p=l==(n?e.length-1:0)?null:e[l+(n?1:-1)];return p&&c==u&&p.level+(n?0:1)r.some(e=>e)}),GE=pt.define({combine:r=>r.some(e=>e)}),YE=pt.define(),so=class r{constructor(e,t="nearest",s="nearest",n=5,i=5,a=!1){this.range=e,this.y=t,this.x=s,this.yMargin=n,this.xMargin=i,this.isSnapshot=a}map(e){return e.empty?this:new r(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new r(Xe.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Sl=At.define({map:(r,e)=>r.map(e)});function br(r,e,t){let s=r.facet(WE);s.length?s[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}var Kl=pt.define({combine:r=>r.length?r[0]:!0}),rM=0,Ha=pt.define(),sr=class r{constructor(e,t,s,n,i){this.id=e,this.create=t,this.domEventHandlers=s,this.domEventObservers=n,this.extension=i(this)}static define(e,t){let{eventHandlers:s,eventObservers:n,provide:i,decorations:a}=t||{};return new r(rM++,e,s,n,l=>{let o=[Ha.of(l)];return a&&o.push(mo.of(u=>{let c=u.plugin(l);return c?a(c):bt.none})),i&&o.push(i(l)),o})}static fromClass(e,t){return r.define(s=>new e(s),t)}},io=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(s){if(br(t.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){br(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(s){br(e.state,s,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},HE=pt.define(),wp=pt.define(),mo=pt.define(),KE=pt.define(),kp=pt.define(),JE=pt.define();function VS(r,e){let t=r.state.facet(JE);if(!t.length)return t;let s=t.map(i=>i instanceof Function?i(r):i),n=[];return qt.spans(s,e.from,e.to,{point(){},span(i,a,l,o){let u=i-e.from,c=a-e.from,p=n;for(let h=l.length-1;h>=0;h--,o--){let f=l[h].spec.bidiIsolate,d;if(f==null&&(f=tM(e.text,u,c)),o>0&&p.length&&(d=p[p.length-1]).to==u&&d.direction==f)d.to=c,p=d.inner;else{let m={from:u,to:c,direction:f,inner:[]};p.push(m),p=m.inner}}}}),n}var eC=pt.define();function tC(r){let e=0,t=0,s=0,n=0;for(let i of r.state.facet(eC)){let a=i(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(s=Math.max(s,a.top)),a.bottom!=null&&(n=Math.max(n,a.bottom)))}return{left:e,right:t,top:s,bottom:n}}var Ka=pt.define(),$n=class r{constructor(e,t,s,n){this.fromA=e,this.toA=t,this.fromB=s,this.toB=n}join(e){return new r(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,s=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>s.toA)){if(n.toAc)break;i+=2}if(!o)return s;new r(o.fromA,o.toA,o.fromB,o.toB).addToSet(s),a=o.toA,l=o.toB}}},Ml=class r{constructor(e,t,s){this.view=e,this.state=t,this.transactions=s,this.flags=0,this.startState=e.state,this.changes=Ir.empty(this.startState.doc.length);for(let i of s)this.changes=this.changes.compose(i.changes);let n=[];this.changes.iterChangedRanges((i,a,l,o)=>n.push(new $n(i,a,l,o))),this.changedRanges=n}static create(e,t,s){return new r(e,t,s)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},jl=class extends Ht{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Er],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new $n(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let s=e.changedRanges;this.minWidth>0&&s.length&&(s.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!uM(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?sM(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;s=new $n(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(s.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(ht.ie||ht.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,l=this.updateDeco(),o=oM(a,l,e.changes);return s=$n.extendWithRanges(s,o),!(this.flags&7)&&s.length==0?!1:(this.updateInner(s,e.startState.doc.length,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,s){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,s);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=ht.chrome||ht.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||n.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to=0?n[a]:null;if(!l)break;let{fromA:o,toA:u,fromB:c,toB:p}=l,h,f,d,m;if(s&&s.range.fromBc){let C=no.build(this.view.state.doc,c,s.range.fromB,this.decorations,this.dynamicDecorationMap),k=no.build(this.view.state.doc,s.range.toB,p,this.decorations,this.dynamicDecorationMap);f=C.breakAtStart,d=C.openStart,m=k.openEnd;let E=this.compositionView(s);k.breakAtStart?E.breakAfter=1:k.content.length&&E.merge(E.length,E.length,k.content[0],!1,k.openStart,0)&&(E.breakAfter=k.content[0].breakAfter,k.content.shift()),C.content.length&&E.merge(0,0,C.content[C.content.length-1],!0,0,C.openEnd)&&C.content.pop(),h=C.content.concat(E).concat(k.content)}else({content:h,breakAtStart:f,openStart:d,openEnd:m}=no.build(this.view.state.doc,c,p,this.decorations,this.dynamicDecorationMap));let{i:g,off:b}=i.findPos(u,1),{i:O,off:S}=i.findPos(o,-1);TE(this,O,S,g,b,h,f,d,m)}s&&this.fixCompositionDOM(s)}compositionView(e){let t=new Mn(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new ks(n,[t],t.length);let s=new Er;return s.append(t,0),s}fixCompositionDOM(e){let t=(i,a)=>{a.flags|=8|(a.children.some(o=>o.flags&7)?1:0),this.markedForComposition.add(a);let l=Ht.get(i);l&&l!=a&&(l.dom=null),a.setDOM(i)},s=this.childPos(e.range.fromB,1),n=this.children[s.i];t(e.line,n);for(let i=e.marks.length-1;i>=-1;i--)s=n.childPos(s.off,1),n=n.children[s.i],t(i>=0?e.marks[i].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let s=this.view.root.activeElement,n=s==this.dom,i=!n&&Dl(this.dom,this.view.observer.selectionRange)&&!(s&&this.dom.contains(s));if(!(n||t||i))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,o=this.moveToLine(this.domAtPos(l.anchor)),u=l.empty?o:this.moveToLine(this.domAtPos(l.head));if(ht.gecko&&l.empty&&!this.hasComposition&&nM(o)){let p=document.createTextNode("");this.view.observer.ignore(()=>o.node.insertBefore(p,o.node.childNodes[o.offset]||null)),o=u=new Fr(p,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!ro(o.node,o.offset,c.anchorNode,c.anchorOffset)||!ro(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{ht.android&&ht.chrome&&this.dom.contains(c.focusNode)&&lM(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=Nl(this.view.root);if(p)if(l.empty){if(ht.gecko){let h=iM(o.node,o.offset);if(h&&h!=3){let f=(h==1?AE:PE)(o.node,o.offset);f&&(o=new Fr(f.node,f.offset))}}p.collapse(o.node,o.offset),l.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=l.bidiLevel)}else if(p.extend){p.collapse(o.node,o.offset);try{p.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();l.anchor>l.head&&([o,u]=[u,o]),h.setEnd(u.node,u.offset),h.setStart(o.node,o.offset),p.removeAllRanges(),p.addRange(h)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(o,u)),this.impreciseAnchor=o.precise?null:new Fr(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new Fr(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&ro(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,s=Nl(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!s||!t.empty||!t.assoc||!s.modify)return;let a=Er.find(this,t.head);if(!a)return;let l=a.posAtStart;if(t.head==l||t.head==l+a.length)return;let o=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(!o||!u||o.bottom>u.top)return;let c=this.domAtPos(t.head+t.assoc);s.collapse(c.node,c.offset),s.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=t.from&&s.collapse(n,i)}moveToLine(e){let t=this.dom,s;if(e.node!=t)return e;for(let n=e.offset;!s&&n=0;n--){let i=Ht.get(t.childNodes[n]);i instanceof Er&&(s=i.domAtPos(i.length))}return s?new Fr(s.node,s.offset,!0):e}nearest(e){for(let t=e;t;){let s=Ht.get(t);if(s&&s.rootView==this)return s;t=t.parentNode}return null}posFromDOM(e,t){let s=this.nearest(e);if(!s)throw new RangeError("Trying to find position for a DOM position outside of the document");return s.localPosFromDOM(e,t)+s.posAtStart}domAtPos(e){let{i:t,off:s}=this.childCursor().findPos(e,-1);for(;t=0;a--){let l=this.children[a],o=i-l.breakAfter,u=o-l.length;if(oe||l.covers(1))&&(!s||l instanceof Er&&!(s instanceof Er&&t>=0))&&(s=l,n=u),i=u}return s?s.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:s}=this.childPos(e,1),n=this.children[t];if(!(n instanceof Er))return null;for(;n.children.length;){let{i:l,off:o}=n.childPos(s,1);for(;;l++){if(l==n.children.length)return null;if((n=n.children[l]).length)break}s=o}if(!(n instanceof Mn))return null;let i=fr(n.text,s);if(i==s)return null;let a=ri(n.dom,s,i).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,o=this.view.textDirection==Xt.LTR;for(let u=0,c=0;cn)break;if(u>=s){let f=p.dom.getBoundingClientRect();if(t.push(f.height),a){let d=p.dom.lastChild,m=d?uo(d):[];if(m.length){let g=m[m.length-1],b=o?g.right-f.left:f.right-g.left;b>l&&(l=b,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+p.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Xt.RTL:Xt.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Er){let a=i.measureTextSize();if(a)return a}let e=document.createElement("div"),t,s,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let i=uo(e.firstChild)[0];t=e.getBoundingClientRect().height,s=i?i.width/27:7,n=i?i.height:t,e.remove()}),{lineHeight:t,charWidth:s,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new $l(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let s=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n],a=i?i.from-1:this.length;if(a>s){let l=(t.lineBlockAt(a).bottom-t.lineBlockAt(s).top)/this.view.scaleY;e.push(bt.replace({widget:new ql(l),block:!0,inclusive:!0,isBlockGap:!0}).range(s,a))}if(!i)break;s=i.to+1}return bt.set(e)}updateDeco(){let e=0,t=this.view.state.facet(mo).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),s=!1,n=this.view.state.facet(KE).map((i,a)=>{let l=typeof i=="function";return l&&(s=!0),l?i(this.view):i});for(n.length&&(this.dynamicDecorationMap[e++]=s,t.push(qt.join(n))),this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),n;if(!s)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(s={left:Math.min(s.left,n.left),top:Math.min(s.top,n.top),right:Math.max(s.right,n.right),bottom:Math.max(s.bottom,n.bottom)});let i=tC(this.view),a={left:s.left-i.left,top:s.top-i.top,right:s.right+i.right,bottom:s.bottom+i.bottom},{offsetWidth:l,offsetHeight:o}=this.view.scrollDOM;$3(this.view.scrollDOM,a,t.head{se.from&&(t=!0)}),t}function cM(r,e,t=1){let s=r.charCategorizer(e),n=r.doc.lineAt(e),i=e-n.from;if(n.length==0)return Xe.cursor(e);i==0?t=1:i==n.length&&(t=-1);let a=i,l=i;t<0?a=fr(n.text,i,!1):l=fr(n.text,i);let o=s(n.text.slice(a,l));for(;a>0;){let u=fr(n.text,a,!1);if(s(n.text.slice(u,a))!=o)break;a=u}for(;lr?e.left-r:Math.max(0,r-e.right)}function pM(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function Pf(r,e){return r.tope.top+1}function WS(r,e){return er.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Zf(r,e,t){let s,n,i,a,l=!1,o,u,c,p;for(let d=r.firstChild;d;d=d.nextSibling){let m=uo(d);for(let g=0;gS||a==S&&i>O){s=d,n=b,i=O,a=S;let C=S?t0?g0)}O==0?t>b.bottom&&(!c||c.bottomb.top)&&(u=d,p=b):c&&Pf(c,b)?c=ZS(c,b.bottom):p&&Pf(p,b)&&(p=WS(p,b.top))}}if(c&&c.bottom>=t?(s=o,n=c):p&&p.top<=t&&(s=u,n=p),!s)return{node:r,offset:0};let h=Math.max(n.left,Math.min(n.right,e));if(s.nodeType==3)return zS(s,h,t);if(l&&s.contentEditable!="false")return Zf(s,h,t);let f=Array.prototype.indexOf.call(r.childNodes,s)+(e>=(n.left+n.right)/2?1:0);return{node:r,offset:f}}function zS(r,e,t){let s=r.nodeValue.length,n=-1,i=1e9,a=0;for(let l=0;lt?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&p=(c.left+c.right)/2,f=h;if((ht.chrome||ht.gecko)&&ri(r,l).getBoundingClientRect().left==c.right&&(f=!h),p<=0)return{node:r,offset:l+(f?1:0)};n=l+(f?1:0),i=p}}}return{node:r,offset:n>-1?n:a>0?r.nodeValue.length:0}}function nC(r,e,t,s=-1){var n,i;let a=r.contentDOM.getBoundingClientRect(),l=a.top+r.viewState.paddingTop,o,{docHeight:u}=r.viewState,{x:c,y:p}=e,h=p-l;if(h<0)return 0;if(h>u)return r.state.doc.length;for(let C=r.viewState.heightOracle.textHeight/2,k=!1;o=r.elementAtHeight(h),o.type!=Rr.Text;)for(;h=s>0?o.bottom+C:o.top-C,!(h>=0&&h<=u);){if(k)return t?null:0;k=!0,s=-s}p=l+h;let f=o.from;if(fr.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:XS(r,a,o,c,p);let d=r.dom.ownerDocument,m=r.root.elementFromPoint?r.root:d,g=m.elementFromPoint(c,p);g&&!r.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,p),g&&!r.contentDOM.contains(g)&&(g=null));let b,O=-1;if(g&&((n=r.docView.nearest(g))===null||n===void 0?void 0:n.isEditable)!=!1){if(d.caretPositionFromPoint){let C=d.caretPositionFromPoint(c,p);C&&({offsetNode:b,offset:O}=C)}else if(d.caretRangeFromPoint){let C=d.caretRangeFromPoint(c,p);C&&({startContainer:b,startOffset:O}=C,(!r.contentDOM.contains(b)||ht.safari&&hM(b,O,c)||ht.chrome&&dM(b,O,c))&&(b=void 0))}}if(!b||!r.docView.dom.contains(b)){let C=Er.find(r.docView,f);if(!C)return h>o.top+o.height/2?o.to:o.from;({node:b,offset:O}=Zf(C.dom,c,p))}let S=r.docView.nearest(b);if(!S)return null;if(S.isWidget&&((i=S.dom)===null||i===void 0?void 0:i.nodeType)==1){let C=S.dom.getBoundingClientRect();return e.yr.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,o=Math.floor((n-t.top-(r.defaultLineHeight-l)*.5)/l);i+=o*r.viewState.heightOracle.lineLength}let a=r.state.sliceDoc(t.from,t.to);return t.from+bl(a,i,r.state.tabSize)}function hM(r,e,t){let s;if(r.nodeType!=3||e!=(s=r.nodeValue.length))return!1;for(let n=r.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return ri(r,s-1,s).getBoundingClientRect().left>t}function dM(r,e,t){if(e!=0)return!1;for(let n=r;;){let i=n.parentNode;if(!i||i.nodeType!=1||i.firstChild!=n)return!1;if(i.classList.contains("cm-line"))break;n=i}let s=r.nodeType==1?r.getBoundingClientRect():ri(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-s.left>5}function zf(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let s of t.type)if(s.to>e||s.to==e&&(s.to==t.to||s.type==Rr.Text))return s}return t}function mM(r,e,t,s){let n=zf(r,e.head),i=!s||n.type!=Rr.Text||!(r.lineWrapping||n.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(i){let a=r.dom.getBoundingClientRect(),l=r.textDirectionAt(n.from),o=r.posAtCoords({x:t==(l==Xt.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(o!=null)return Xe.cursor(o,t?-1:1)}return Xe.cursor(t?n.to:n.from,t?-1:1)}function GS(r,e,t,s){let n=r.state.doc.lineAt(e.head),i=r.bidiSpans(n),a=r.textDirectionAt(n.from);for(let l=e,o=null;;){let u=eM(n,i,a,l,t),c=qE;if(!u){if(n.number==(t?r.state.doc.lines:1))return l;c=` -`,n=r.state.doc.line(n.number+(t?1:-1)),i=r.bidiSpans(n),u=r.visualLineSide(n,!t)}if(o){if(!o(c))return l}else{if(!s)return u;o=s(c)}l=u}}function gM(r,e,t){let s=r.state.charCategorizer(e),n=s(t);return i=>{let a=s(i);return n==zt.Space&&(n=a),n==a}}function yM(r,e,t,s){let n=e.head,i=t?1:-1;if(n==(t?r.state.doc.length:0))return Xe.cursor(n,e.assoc);let a=e.goalColumn,l,o=r.contentDOM.getBoundingClientRect(),u=r.coordsAtPos(n,e.assoc||-1),c=r.documentTop;if(u)a==null&&(a=u.left-o.left),l=i<0?u.top:u.bottom;else{let f=r.viewState.lineBlockAt(n);a==null&&(a=Math.min(o.right-o.left,r.defaultCharacterWidth*(n-f.from))),l=(i<0?f.top:f.bottom)+c}let p=o.left+a,h=s??r.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let d=l+(h+f)*i,m=nC(r,{x:p,y:d},!1,i);if(do.bottom||(i<0?mn)){let g=r.docView.coordsForChar(m),b=!g||d{if(e>i&&en(r)),t.from,e.head>t.from?-1:1);return s==t.from?t:Xe.cursor(s,snull),ht.gecko&&IM(e.contentDOM.ownerDocument)}handleEvent(e){!CM(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let s=this.handlers[e];if(s){for(let n of s.observers)n(this.view,t);for(let n of s.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=xM(e),s=this.handlers,n=this.view.contentDOM;for(let i in t)if(i!="scroll"){let a=!t[i].handlers.length,l=s[i];l&&a!=!l.handlers.length&&(n.removeEventListener(i,this.handleEvent),l=null),l||n.addEventListener(i,this.handleEvent,{passive:a})}for(let i in s)i!="scroll"&&!t[i]&&n.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()s.keyCode==e.keyCode))&&!e.ctrlKey||bM.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:ht.safari&&!ht.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function YS(r,e){return(t,s)=>{try{return e.call(r,s,t)}catch(n){br(t.state,n)}}}function xM(r){let e=Object.create(null);function t(s){return e[s]||(e[s]={observers:[],handlers:[]})}for(let s of r){let n=s.spec;if(n&&n.domEventHandlers)for(let i in n.domEventHandlers){let a=n.domEventHandlers[i];a&&t(i).handlers.push(YS(s.value,a))}if(n&&n.domEventObservers)for(let i in n.domEventObservers){let a=n.domEventObservers[i];a&&t(i).observers.push(YS(s.value,a))}}for(let s in vn)t(s).handlers.push(vn[s]);for(let s in un)t(s).observers.push(un[s]);return e}var sC=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],bM="dthko",iC=[16,17,18,20,91,92,224,225],El=6;function Cl(r){return Math.max(0,r)*.7+8}function vM(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var Gf=class{constructor(e,t,s,n){this.view=e,this.startEvent=t,this.style=s,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=M3(e.contentDOM),this.atoms=e.state.facet(kp).map(a=>a(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Wt.allowMultipleSelections)&&OM(e,t),this.dragging=EM(e,t)&&uC(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&vM(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let s=0,n=0,i=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=tC(this.view);e.clientX-a.left<=i.left+El?s=-Cl(i.left-e.clientX):e.clientX+a.right>=i.right-El&&(s=Cl(e.clientX-i.right)),e.clientY-a.top<=i.top+El?n=-Cl(i.top-e.clientY):e.clientY+a.bottom>=i.bottom-El&&(n=Cl(e.clientY-i.bottom)),this.setScrollSpeed(s,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let s=0;sthis.select(this.lastEvent),20)}};function OM(r,e){let t=r.state.facet(QE);return t.length?t[0](e):ht.mac?e.metaKey:e.ctrlKey}function SM(r,e){let t=r.state.facet(UE);return t.length?t[0](e):ht.mac?!e.altKey:!e.ctrlKey}function EM(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let s=Nl(r.root);if(!s||s.rangeCount==0)return!0;let n=s.getRangeAt(0).getClientRects();for(let i=0;i=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function CM(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,s;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(s=Ht.get(t))&&s.ignoreEvent(e))return!1;return!0}var vn=Object.create(null),un=Object.create(null),aC=ht.ie&&ht.ie_version<15||ht.ios&&ht.webkit_version<604;function wM(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),oC(r,t.value)},50)}function oC(r,e){let{state:t}=r,s,n=1,i=t.toText(e),a=i.lines==t.selection.ranges.length;if(Yf!=null&&t.selection.ranges.every(o=>o.empty)&&Yf==i.toString()){let o=-1;s=t.changeByRange(u=>{let c=t.doc.lineAt(u.from);if(c.from==o)return{range:u};o=c.from;let p=t.toText((a?i.line(n++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:p},range:Xe.cursor(u.from+p.length)}})}else a?s=t.changeByRange(o=>{let u=i.line(n++);return{changes:{from:o.from,to:o.to,insert:u.text},range:Xe.cursor(o.from+u.length)}}):s=t.replaceSelection(i);r.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}un.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};vn.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);un.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};un.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};vn.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let s of r.state.facet(VE))if(t=s(r,e),t)break;if(!t&&e.button==0&&(t=PM(r,e)),t){let s=!r.hasFocus;r.inputState.startMouseSelection(new Gf(r,e,t,s)),s&&r.observer.ignore(()=>CE(r.contentDOM));let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function HS(r,e,t,s){if(s==1)return Xe.cursor(e,t);if(s==2)return cM(r.state,e,t);{let n=Er.find(r.docView,e),i=r.state.doc.lineAt(n?n.posAtEnd:e),a=n?n.posAtStart:i.from,l=n?n.posAtEnd:i.to;return lr>=e.top&&r<=e.bottom,KS=(r,e,t)=>lC(e,t)&&r>=t.left&&r<=t.right;function kM(r,e,t,s){let n=Er.find(r.docView,e);if(!n)return 1;let i=e-n.posAtStart;if(i==0)return 1;if(i==n.length)return-1;let a=n.coordsAt(i,-1);if(a&&KS(t,s,a))return-1;let l=n.coordsAt(i,1);return l&&KS(t,s,l)?1:a&&lC(s,a)?-1:1}function JS(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:kM(r,t,e.clientX,e.clientY)}}var AM=ht.ie&&ht.ie_version<=11,eE=null,tE=0,rE=0;function uC(r){if(!AM)return r.detail;let e=eE,t=rE;return eE=r,rE=Date.now(),tE=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(tE+1)%3:1}function PM(r,e){let t=JS(r,e),s=uC(e),n=r.state.selection;return{update(i){i.docChanged&&(t.pos=i.changes.mapPos(t.pos),n=n.map(i.changes))},get(i,a,l){let o=JS(r,i),u,c=HS(r,o.pos,o.bias,s);if(t.pos!=o.pos&&!a){let p=HS(r,t.pos,t.bias,s),h=Math.min(p.from,c.from),f=Math.max(p.to,c.to);c=h1&&(u=TM(n,o.pos))?u:l?n.addRange(c):Xe.create([c])}}}function TM(r,e){for(let t=0;t=e)return Xe.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}vn.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let n=r.docView.nearest(e.target);if(n&&n.isWidget){let i=n.posAtStart,a=i+n.length;(i>=t.to||a<=t.from)&&(t=Xe.range(i,a))}}let{inputState:s}=r;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};vn.dragend=r=>(r.inputState.draggedContent=null,!1);function nE(r,e,t,s){if(!t)return;let n=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=r.inputState,a=s&&i&&SM(r,e)?{from:i.from,to:i.to}:null,l={from:n,insert:t},o=r.state.changes(a?[a,l]:l);r.focus(),r.dispatch({changes:o,selection:{anchor:o.mapPos(n,-1),head:o.mapPos(n,1)},userEvent:a?"move.drop":"input.drop"}),r.inputState.draggedContent=null}vn.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let s=Array(t.length),n=0,i=()=>{++n==t.length&&nE(r,e,s.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[a]=l.result),i()},l.readAsText(t[a])}return!0}else{let s=e.dataTransfer.getData("Text");if(s)return nE(r,e,s,!0),!0}return!1};vn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=aC?null:e.clipboardData;return t?(oC(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(wM(r),!1)};function DM(r,e){let t=r.dom.parentNode;if(!t)return;let s=t.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),r.focus()},50)}function _M(r){let e=[],t=[],s=!1;for(let n of r.selection.ranges)n.empty||(e.push(r.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:i}of r.selection.ranges){let a=r.doc.lineAt(i);a.number>n&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),n=a.number}s=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:s}}var Yf=null;vn.copy=vn.cut=(r,e)=>{let{text:t,ranges:s,linewise:n}=_M(r.state);if(!t&&!n)return!1;Yf=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let i=aC?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",t),!0):(DM(r,t),!1)};var cC=qr.define();function fC(r,e){let t=[];for(let s of r.facet(zE)){let n=s(r,e);n&&t.push(n)}return t?r.update({effects:t,annotations:cC.of(!0)}):null}function pC(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=fC(r.state,e);t?r.dispatch(t):r.update([])}},10)}un.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),pC(r)};un.blur=r=>{r.observer.clearSelectionRange(),pC(r)};un.compositionstart=un.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};un.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,ht.chrome&&ht.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};un.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};vn.beforeinput=(r,e)=>{var t;let s;if(ht.chrome&&ht.android&&(s=sC.find(n=>n.inputType==e.inputType))&&(r.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let n=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>n+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return ht.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),ht.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>un.compositionend(r,e),20),!1};var sE=new Set;function IM(r){sE.has(r)||(sE.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var iE=["pre-wrap","normal","pre-line","break-spaces"],Hf=class{constructor(e){this.lineWrapping=e,this.doc=Bt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let s=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(s+=Math.max(0,Math.ceil((t-e-s*this.lineLength*.5)/this.lineLength))),this.lineHeight*s}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return iE.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let s=0;s-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=s,this.textHeight=n,this.lineLength=i,o){this.heightSamples={};for(let u=0;u0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Il&&(e.heightChanged=!0),this.height=t)}replace(e,t,s){return r.of(s)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,s,n){let i=this,a=s.doc;for(let l=n.length-1;l>=0;l--){let{fromA:o,toA:u,fromB:c,toB:p}=n[l],h=i.lineAt(o,Jt.ByPosNoHeight,s.setDoc(t),0,0),f=h.to>=u?h:i.lineAt(u,Jt.ByPosNoHeight,s,0,0);for(p+=f.to-u,u=f.to;l>0&&h.from<=n[l-1].toA;)o=n[l-1].fromA,c=n[l-1].fromB,l--,oi*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),s+=1+l.break,n-=l.size}else if(i>n*2){let l=e[s];l.break?e.splice(s,1,l.left,null,l.right):e.splice(s,1,l.left,l.right),s+=2+l.break,i-=l.size}else break;else if(n=i&&a(this.blockAt(0,s,n,i))}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},on=class r extends Ql{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,s,n){return new Nn(n,this.length,s,this.height,this.breaks)}replace(e,t,s){let n=s[0];return s.length==1&&(n instanceof r||n instanceof ws&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof ws?n=new r(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Yr.of(s)}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(s||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},ws=class r extends Yr{constructor(e){super(e,0)}heightMetrics(e,t){let s=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,i=n-s+1,a,l=0;if(e.lineWrapping){let o=Math.min(this.height,e.lineHeight*i);a=o/i,this.length>i+1&&(l=(this.height-o)/(this.length-i-1))}else a=this.height/i;return{firstLine:s,lastLine:n,perLine:a,perChar:l}}blockAt(e,t,s,n){let{firstLine:i,lastLine:a,perLine:l,perChar:o}=this.heightMetrics(t,n);if(t.lineWrapping){let u=n+(e0){let i=s[s.length-1];i instanceof r?s[s.length-1]=new r(i.length+n):s.push(null,new r(n-1))}if(e>0){let i=s[0];i instanceof r?s[0]=new r(e+i.length):s.unshift(new r(e-1),null)}return Yr.of(s)}decomposeLeft(e,t){t.push(new r(e-1),null)}decomposeRight(e,t){t.push(null,new r(this.length-e-1))}updateHeight(e,t=0,s=!1,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let a=[],l=Math.max(t,n.from),o=-1;for(n.from>t&&a.push(new r(n.from-t-1).updateHeight(e,t));l<=i&&n.more;){let c=e.doc.lineAt(l).length;a.length&&a.push(null);let p=n.heights[n.index++];o==-1?o=p:Math.abs(p-o)>=Il&&(o=-2);let h=new on(c,p);h.outdated=!1,a.push(h),l+=c+1}l<=i&&a.push(null,new r(i-l).updateHeight(e,l));let u=Yr.of(a);return(o<0||Math.abs(u.height-this.height)>=Il||Math.abs(o-this.heightMetrics(e,t).perLine)>=Il)&&(e.heightChanged=!0),u}else(s||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Jf=class extends Yr{constructor(e,t,s){super(e.length+t+s.length,e.height+s.height,t|(e.outdated||s.outdated?2:0)),this.left=e,this.right=s,this.size=e.size+s.size}get break(){return this.flags&1}blockAt(e,t,s,n){let i=s+this.left.height;return el))return u;let c=t==Jt.ByPosNoHeight?Jt.ByPosNoHeight:Jt.ByPos;return o?u.join(this.right.lineAt(l,c,s,a,l)):this.left.lineAt(l,c,s,n,i).join(u)}forEachLine(e,t,s,n,i,a){let l=n+this.left.height,o=i+this.left.length+this.break;if(this.break)e=o&&this.right.forEachLine(e,t,s,l,o,a);else{let u=this.lineAt(o,Jt.ByPos,s,n,i);e=e&&u.from<=t&&a(u),t>u.to&&this.right.forEachLine(u.to+1,t,s,l,o,a)}}replace(e,t,s){let n=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,s));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let l of s)i.push(l);if(e>0&&aE(i,a-1),t=s&&t.push(null)),e>s&&this.right.decomposeLeft(e-s,t)}decomposeRight(e,t){let s=this.left.length,n=s+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e2*t.size||t.size>2*e.size?Yr.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,s=!1,n){let{left:i,right:a}=this,l=t+i.length+this.break,o=null;return n&&n.from<=t+i.length&&n.more?o=i=i.updateHeight(e,t,s,n):i.updateHeight(e,t,s),n&&n.from<=l+a.length&&n.more?o=a=a.updateHeight(e,l,s,n):a.updateHeight(e,l,s),o?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function aE(r,e){let t,s;r[e]==null&&(t=r[e-1])instanceof ws&&(s=r[e+1])instanceof ws&&r.splice(e-1,3,new ws(t.length+1+s.length))}var FM=5,ep=class r{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let s=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof on?n.length+=s-this.pos:(s>this.pos||!this.isCovered)&&this.nodes.push(new on(s-this.pos,-1)),this.writtenTo=s,t>s&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,s){if(e=FM)&&this.addLineDeco(n,i,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new on(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let s=new ws(t-e);return this.oracle.doc.lineAt(e).to==t&&(s.flags|=4),s}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof on)return e;let t=new on(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,s){let n=this.ensureLine();n.length+=s,n.collapsed+=s,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+s}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof on)&&!this.isCovered?this.nodes.push(new on(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&p.overflow!="visible"){let h=c.getBoundingClientRect();i=Math.max(i,h.left),a=Math.min(a,h.right),l=Math.max(l,h.top),o=u==r.parentNode?h.bottom:Math.min(o,h.bottom)}u=p.position=="absolute"||p.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-t.left,right:Math.max(i,a)-t.left,top:l-(t.top+e),bottom:Math.max(l,o)-(t.top+e)}}function NM(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var ao=class{constructor(e,t,s){this.from=e,this.to=t,this.size=s}static same(e,t){if(e.length!=t.length)return!1;for(let s=0;stypeof s!="function"&&s.class=="cm-lineWrapping");this.heightOracle=new Hf(t),this.stateDeco=e.facet(mo).filter(s=>typeof s!="function"),this.heightMap=Yr.empty().applyChanges(this.stateDeco,Bt.empty,this.heightOracle.setDoc(e.doc),[new $n(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=bt.set(this.lineGaps.map(s=>s.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let s=0;s<=1;s++){let n=s?t.head:t.anchor;if(!e.some(({from:i,to:a})=>n>=i&&n<=a)){let{from:i,to:a}=this.lineBlockAt(n);e.push(new Ui(i,a))}}this.viewports=e.sort((s,n)=>s.from-n.from),this.scaler=this.heightMap.height<=7e6?oE:new np(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Ja(e,this.scaler))})}update(e,t=null){this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(mo).filter(c=>typeof c!="function");let n=e.changedRanges,i=$n.extendWithRanges(n,RM(s,this.stateDeco,e?e.changes:Ir.empty(this.state.doc.length))),a=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let o=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heado.to)||!this.viewportIsAppropriate(o))&&(o=this.getViewport(0,t));let u=!e.changes.empty||e.flags&2||o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(GE)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,s=window.getComputedStyle(t),n=this.heightOracle,i=s.whiteSpace;this.defaultTextDirection=s.direction=="rtl"?Xt.RTL:Xt.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),l=t.getBoundingClientRect(),o=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let u=0,c=0;if(l.width&&l.height){let{scaleX:C,scaleY:k}=EE(t,l);(C>.005&&Math.abs(this.scaleX-C)>.005||k>.005&&Math.abs(this.scaleY-k)>.005)&&(this.scaleX=C,this.scaleY=k,u|=8,a=o=!0)}let p=(parseInt(s.paddingTop)||0)*this.scaleY,h=(parseInt(s.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=h)&&(this.paddingTop=p,this.paddingBottom=h,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=kE(e.scrollDOM);let d=(this.printing?NM:BM)(t,this.paddingTop),m=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(o=!0)),!this.inView&&!this.scrollTarget)return 0;let O=l.width;if((this.contentDOMWidth!=O||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),o){let C=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(C)&&(a=!0),a||n.lineWrapping&&Math.abs(O-this.contentDOMWidth)>n.charWidth){let{lineHeight:k,charWidth:E,textHeight:A}=e.docView.measureTextSize();a=k>0&&n.refresh(i,k,E,A,O/E,C),a&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),n.heightChanged=!1;for(let k of this.viewports){let E=k.from==this.viewport.from?C:e.docView.measureVisibleLineHeights(k);this.heightMap=(a?Yr.empty().applyChanges(this.stateDeco,Bt.empty,this.heightOracle,[new $n(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,a,new Kf(k.from,E))}n.heightChanged&&(u|=2)}let S=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let s=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:l}=this,o=new Ui(n.lineAt(a-s*1e3,Jt.ByHeight,i,0,0).from,n.lineAt(l+(1-s)*1e3,Jt.ByHeight,i,0,0).to);if(t){let{head:u}=t.range;if(uo.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=n.lineAt(u,Jt.ByPos,i,0,0),h;t.y=="center"?h=(p.top+p.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&u=l+Math.max(10,Math.min(s,250)))&&n>a-2*1e3&&i>1,a=n<<1;if(this.defaultTextDirection!=Xt.LTR&&!s)return[];let l=[],o=(u,c,p,h)=>{if(c-uu&&gg.from>=p.from&&g.to<=p.to&&Math.abs(g.from-u)g.fromb));if(!m){if(cg.from<=c&&g.to>=c)){let g=t.moveToLineBoundary(Xe.cursor(c),!1,!0).head;g>u&&(c=g)}m=new ao(u,c,this.gapSize(p,u,c,h))}l.push(m)};for(let u of this.viewportLines){if(u.lengthu.from&&o(u.from,h,u,c),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];qt.spans(e,this.viewport.from,this.viewport.to,{span(n,i){t.push({from:n,to:i})},point(){}},20);let s=t.length!=this.visibleRanges.length||this.visibleRanges.some((n,i)=>n.from!=t[i].from||n.to!=t[i].to);return this.visibleRanges=t,s?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ja(this.heightMap.lineAt(e,Jt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Ja(this.heightMap.lineAt(this.scaler.fromDOM(e),Jt.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ja(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Ui=class{constructor(e,t){this.from=e,this.to=t}};function LM(r,e,t){let s=[],n=r,i=0;return qt.spans(t,r,e,{span(){},point(a,l){a>n&&(s.push({from:n,to:a}),i+=a-n),n=l}},20),n=1)return e[e.length-1].to;let s=Math.floor(r*t);for(let n=0;;n++){let{from:i,to:a}=e[n],l=a-i;if(s<=l)return i+s;s-=l}}function kl(r,e){let t=0;for(let{from:s,to:n}of r.ranges){if(e<=n){t+=e-s;break}t+=n-s}return t/r.total}function $M(r,e){for(let t of r)if(e(t))return t}var oE={toDOM(r){return r},fromDOM(r){return r},scale:1},np=class{constructor(e,t,s){let n=0,i=0,a=0;this.viewports=s.map(({from:l,to:o})=>{let u=t.lineAt(l,Jt.ByPos,e,0,0).top,c=t.lineAt(o,Jt.ByPos,e,0,0).bottom;return n+=c-u,{from:l,to:o,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let l of this.viewports)l.domTop=a+(l.top-i)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),i=l.bottom}toDOM(e){for(let t=0,s=0,n=0;;t++){let i=tJa(n,e)):r._content)}var Al=pt.define({combine:r=>r.join(" ")}),sp=pt.define({combine:r=>r.indexOf(!0)>-1}),ip=an.newName(),hC=an.newName(),dC=an.newName(),mC={"&light":"."+hC,"&dark":"."+dC};function ap(r,e,t){return new an(e,{finish(s){return/&/.test(s)?s.replace(/&\w*/,n=>{if(n=="&")return r;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):r+" "+s}})}var MM=ap("."+ip,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},mC),eo="\uFFFF",op=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Wt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=eo}readRange(e,t){if(!e)return this;let s=e.parentNode;for(let n=e;;){this.findPointBefore(s,n);let i=this.text.length;this.readNode(n);let a=n.nextSibling;if(a==t)break;let l=Ht.get(n),o=Ht.get(a);(l&&o?l.breakAfter:(l?l.breakAfter:Ll(n))||Ll(a)&&(n.nodeName!="BR"||n.cmIgnore)&&this.text.length>i)&&this.lineBreak(),n=a}return this.findPointBefore(s,t),this}readTextNode(e){let t=e.nodeValue;for(let s of this.points)s.node==e&&(s.pos=this.text.length+Math.min(s.offset,t.length));for(let s=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,l;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,s),a=this.lineSeparator.length):(l=n.exec(t))&&(i=l.index,a=l[0].length),this.append(t.slice(s,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let o of this.points)o.node==e&&o.pos>this.text.length&&(o.pos-=a-1);s=i+a}}readNode(e){if(e.cmIgnore)return;let t=Ht.get(e),s=t&&t.overrideDOMText;if(s!=null){this.findPointInside(e,s.length);for(let n=s.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let s of this.points)s.node==e&&e.childNodes[s.offset]==t&&(s.pos=this.text.length)}findPointInside(e,t){for(let s of this.points)(e.nodeType==3?s.node==e:e.contains(s.node))&&(s.pos=this.text.length+(jM(e,s.node,s.offset)?t:0))}};function jM(r,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,s,0))){let l=i||a?[]:UM(e),o=new op(l,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=VM(l,this.bounds.from)}else{let l=e.observer.selectionRange,o=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!Rf(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),u=a&&a.node==l.anchorNode&&a.offset==l.anchorOffset||!Rf(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((ht.ios||ht.chrome)&&e.state.selection.main.empty&&o!=u&&(c.from>0||c.toDate.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,o=n.from,u=null;(i===8||ht.android&&e.text.length=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:r.state.doc.slice(n.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,n.to))}:(ht.mac||ht.android)&&t&&t.from==t.to&&t.from==n.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(s&&t.insert.length==2&&(s=Xe.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Bt.of([" "])}):ht.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==` - `&&r.lineWrapping&&(s&&(s=Xe.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Bt.of([" "])}),t){if(ht.ios&&r.inputState.flushIOSKey(t)||ht.android&&(t.to==n.to&&(t.from==n.from||t.from==n.from-1&&r.state.sliceDoc(t.from,n.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Zi(r.contentDOM,"Enter",13)||(t.from==n.from-1&&t.to==n.to&&t.insert.length==0||i==8&&t.insert.lengthn.head)&&Zi(r.contentDOM,"Backspace",8)||t.from==n.from&&t.to==n.to+1&&t.insert.length==0&&Zi(r.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,o=()=>l||(l=qM(r,t,s));return r.state.facet(ZE).some(u=>u(r,t.from,t.to,a,o))||r.dispatch(o()),!0}else if(s&&!s.main.eq(n)){let a=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(a=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:s,scrollIntoView:a,userEvent:l}),!0}else return!1}function qM(r,e,t){let s,n=r.state,i=n.selection.main;if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=i.frome.to?n.sliceDoc(e.to,i.to):"";s=n.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+o))}else{let l=n.changes(e),o=t&&t.main.to<=l.newLength?t.main:void 0;if(n.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=i.to&&e.to>=i.to-10){let u=r.state.sliceDoc(e.from,e.to),c,p=t&&rC(r,t.main.head);if(p){let d=e.insert.length-(e.to-e.from);c={from:p.from,to:p.to-d}}else c=r.state.doc.lineAt(i.head);let h=i.to-e.to,f=i.to-i.from;s=n.changeByRange(d=>{if(d.from==i.from&&d.to==i.to)return{changes:l,range:o||d.map(l)};let m=d.to-h,g=m-u.length;if(d.to-d.from!=f||r.state.sliceDoc(g,m)!=u||d.to>=c.from&&d.from<=c.to)return{range:d};let b=n.changes({from:g,to:m,insert:e.insert}),O=d.to-i.to;return{changes:b,range:o?Xe.range(Math.max(0,o.anchor+O),Math.max(0,o.head+O)):d.map(b)}})}else s={changes:l,selection:o&&n.selection.replaceRange(o)}}let a="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,a+=".compose",r.inputState.compositionFirstChange&&(a+=".start",r.inputState.compositionFirstChange=!1)),n.update(s,{userEvent:a,scrollIntoView:!0})}function QM(r,e,t,s){let n=Math.min(r.length,e.length),i=0;for(;i0&&l>0&&r.charCodeAt(a-1)==e.charCodeAt(l-1);)a--,l--;if(s=="end"){let o=Math.max(0,i-Math.min(a,l));t-=a+o-i}if(a=a?i-t:0;i-=o,l=i+(l-a),a=i}else if(l=l?i-t:0;i-=o,a=i+(a-l),l=i}return{from:i,toA:a,toB:l}}function UM(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}=r.observer.selectionRange;return t&&(e.push(new Vl(t,s)),(n!=t||i!=s)&&e.push(new Vl(n,i))),e}function VM(r,e){if(r.length==0)return null;let t=r[0].pos,s=r.length==2?r[1].pos:t;return t>-1&&s>-1?Xe.single(t+e,s+e):null}var WM={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Df=ht.ie&&ht.ie_version<=11,up=class{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Bf,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let s of t)this.queue.push(s);(ht.ie&&ht.ie_version<=11||ht.ios&&e.composing)&&t.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():this.flush()}),Df&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,s)=>t!=e[s]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:s}=this,n=this.selectionRange;if(s.state.facet(Kl)?s.root.activeElement!=this.dom:!Dl(s.dom,n))return;let i=n.anchorNode&&s.docView.nearest(n.anchorNode);if(i&&i.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(ht.ie&&ht.ie_version<=11||ht.android&&ht.chrome)&&!s.state.selection.main.empty&&n.focusNode&&ro(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Nl(e.root);if(!t)return!1;let s=ht.safari&&e.root.nodeType==11&&N3(this.dom.ownerDocument)==this.dom&&ZM(this.view,t)||t;if(!s||this.selectionRange.eq(s))return!1;let n=Dl(this.dom,s);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Zi(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,s=-1,n=!1;for(let i of e){let a=this.readMutation(i);a&&(a.typeOver&&(n=!0),t==-1?{from:t,to:s}=a:(t=Math.min(a.from,t),s=Math.max(a.to,s)))}return{from:t,to:s,typeOver:n}}readChange(){let{from:e,to:t,typeOver:s}=this.processRecords(),n=this.selectionChanged&&Dl(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new lp(this.view,e,t,s);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let s=this.view.state,n=gC(this.view,t);return this.view.state==s&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let s=lE(t,e.previousSibling||e.target.previousSibling,-1),n=lE(t,e.nextSibling||e.target.nextSibling,1);return{from:s?t.posAfter(s):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,s;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(s=this.resizeScroll)===null||s===void 0||s.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};function lE(r,e,t){for(;e;){let s=Ht.get(e);if(s&&s.parent==r)return s;let n=e.parentNode;e=n!=r.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function uE(r,e){let t=e.startContainer,s=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.docView.domAtPos(r.state.selection.main.anchor);return ro(a.node,a.offset,n,i)&&([t,s,n,i]=[n,i,t,s]),{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}}function ZM(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return uE(r,n)}let t=null;function s(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),t?uE(r,t):null}var lt=class r{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(s=>s.forEach(n=>t(n,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||j3(e.parent)||document,this.viewState=new Ul(e.state||Wt.create(e)),e.scrollTo&&e.scrollTo.is(Sl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ha).map(s=>new io(s));for(let s of this.plugins)s.update(this);this.observer=new up(this),this.inputState=new Xf(this),this.inputState.ensureHandlers(this.plugins),this.docView=new jl(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof cr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,s=!1,n,i=this.state;for(let h of e){if(h.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=h.state}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,l=0,o=null;e.some(h=>h.annotation(cC))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,o=fC(i,a),o||(l=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Wt.phrases)!=this.state.facet(Wt.phrases))return this.setState(i);n=Ml.create(this,i,e),n.flags|=l;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(p&&(p=p.map(h.changes)),h.scrollIntoView){let{main:f}=h.state.selection;p=new so(f.empty?f:Xe.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(Sl)&&(p=f.value.clip(this.state))}this.viewState.update(n,p),this.bidiCache=Wl.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(Ka)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(Al)!=n.state.facet(Al)&&(this.viewState.mustMeasureContent=!0),(t||s||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let h of this.state.facet(Wf))try{h(n)}catch(f){br(this.state,f,"update listener")}(o||c)&&Promise.resolve().then(()=>{o&&this.state==o.startState&&this.dispatch(o),c&&!gC(this,c)&&u.force&&Zi(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let s of this.plugins)s.destroy(this);this.viewState=new Ul(e),this.plugins=e.facet(Ha).map(s=>new io(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new jl(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ha),s=e.state.facet(Ha);if(t!=s){let n=[];for(let i of s){let a=t.indexOf(i);if(a<0)n.push(new io(i));else{let l=this.plugins[a];l.mustUpdate=e,n.push(l)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,s=this.scrollDOM,n=s.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(kE(s))i=-1,a=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(n);i=f.from,a=f.top}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];o&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(f=>{try{return f.read(this)}catch(d){return br(this.state,d),cE}}),p=Ml.create(this,this.state,[]),h=!1;p.flags|=o,t?t.flags|=o:t=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),h=this.docView.update(p),h&&this.docViewUpdate());for(let f=0;f1||d<-1){n=n+d,s.scrollTop=n/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Wf))l(t)}get themeClasses(){return ip+" "+(this.state.facet(sp)?dC:hC)+" "+this.state.facet(Al)}updateAttrs(){let e=fE(this,HE,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Kl)?"true":"false",class:"cm-content",style:`${ht.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),fE(this,wp,t);let s=this.observer.ignore(()=>{let n=jf(this.contentDOM,this.contentAttrs,t),i=jf(this.dom,this.editorAttrs,e);return n||i});return this.editorAttrs=e,this.contentAttrs=t,s}showAnnouncements(e){let t=!0;for(let s of e)for(let n of s.effects)if(n.is(r.announce)){t&&(this.announceDOM.textContent=""),t=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(Ka);let e=this.state.facet(r.cspNonce);an.mount(this.root,this.styleModules.concat(MM).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ts.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,s){return Tf(this,e,GS(this,e,t,s))}moveByGroup(e,t){return Tf(this,e,GS(this,e,t,s=>gM(this,e.head,s)))}visualLineSide(e,t){let s=this.bidiSpans(e),n=this.textDirectionAt(e.from),i=s[t?s.length-1:0];return Xe.cursor(i.side(t,n)+e.from,i.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,s=!0){return mM(this,e,t,s)}moveVertically(e,t,s){return Tf(this,e,yM(this,e,t,s))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),nC(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let s=this.docView.coordsAt(e,t);if(!s||s.left==s.right)return s;let n=this.state.doc.lineAt(e),i=this.bidiSpans(n),a=i[Ln.find(i,e-n.from,-1,t)];return Op(s,a.dir==Xt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(XE)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>zM)return jE(e.length);let t=this.textDirectionAt(e.from),s;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t&&(i.fresh||ME(i.isolates,s=VS(this,e))))return i.order;s||(s=VS(this,e));let n=J3(e.text,t,s);return this.bidiCache.push(new Wl(e.from,e.to,t,s,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ht.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{CE(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Sl.of(new so(typeof e=="number"?Xe.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,s=this.viewState.scrollAnchorAt(e);return Sl.of(new so(Xe.cursor(s.from),"start","start",s.top-e,t,!0))}static domEventHandlers(e){return sr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return sr.define(()=>({}),{eventObservers:e})}static theme(e,t){let s=an.newName(),n=[Al.of(s),Ka.of(ap(`.${s}`,e))];return t&&t.dark&&n.push(sp.of(!0)),n}static baseTheme(e){return sn.lowest(Ka.of(ap("."+ip,e,mC)))}static findFromDOM(e){var t;let s=e.querySelector(".cm-content"),n=s&&Ht.get(s)||Ht.get(e);return((t=n?.rootView)===null||t===void 0?void 0:t.view)||null}};lt.styleModule=Ka;lt.inputHandler=ZE;lt.scrollHandler=YE;lt.focusChangeEffect=zE;lt.perLineTextDirection=XE;lt.exceptionSink=WE;lt.updateListener=Wf;lt.editable=Kl;lt.mouseSelectionStyle=VE;lt.dragMovesSelection=UE;lt.clickAddsSelectionRange=QE;lt.decorations=mo;lt.outerDecorations=KE;lt.atomicRanges=kp;lt.bidiIsolatedRanges=JE;lt.scrollMargins=eC;lt.darkTheme=sp;lt.cspNonce=pt.define({combine:r=>r.length?r[0]:""});lt.contentAttributes=wp;lt.editorAttributes=HE;lt.lineWrapping=lt.contentAttributes.of({class:"cm-lineWrapping"});lt.announce=At.define();var zM=4096,cE={},Wl=class r{constructor(e,t,s,n,i,a){this.from=e,this.to=t,this.dir=s,this.isolates=n,this.fresh=i,this.order=a}static update(e,t){if(t.empty&&!e.some(i=>i.fresh))return e;let s=[],n=e.length?e[e.length-1].dir:Xt.LTR;for(let i=Math.max(0,e.length-10);i=0;n--){let i=s[n],a=typeof i=="function"?i(r):i;a&&Mf(a,t)}return t}var XM=ht.mac?"mac":ht.windows?"win":ht.linux?"linux":"key";function GM(r,e){let t=r.split(/-(?!$)/),s=t[t.length-1];s=="Space"&&(s=" ");let n,i,a,l;for(let o=0;os.concat(n),[]))),t}function xC(r,e,t){return bC(yC(r.state),e,r,t)}var Cs=null,HM=4e3;function KM(r,e=XM){let t=Object.create(null),s=Object.create(null),n=(a,l)=>{let o=s[a];if(o==null)s[a]=l;else if(o!=l)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},i=(a,l,o,u,c)=>{var p,h;let f=t[a]||(t[a]=Object.create(null)),d=l.split(/ (?!$)/).map(b=>GM(b,e));for(let b=1;b{let C=Cs={view:S,prefix:O,scope:a};return setTimeout(()=>{Cs==C&&(Cs=null)},HM),!0}]})}let m=d.join(" ");n(m,!1);let g=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((h=(p=f._any)===null||p===void 0?void 0:p.run)===null||h===void 0?void 0:h.slice())||[]});o&&g.run.push(o),u&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let a of r){let l=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of l){let c=t[u]||(t[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let p in c)c[p].run.push(a.any)}let o=a[e]||a.key;if(o)for(let u of l)i(u,o,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(u,"Shift-"+o,a.shift,a.preventDefault,a.stopPropagation)}return t}function bC(r,e,t,s){let n=NS(e),i=xr(n,0),a=jr(i)==n.length&&n!=" ",l="",o=!1,u=!1,c=!1;Cs&&Cs.view==t&&Cs.scope==s&&(l=Cs.prefix+" ",iC.indexOf(e.keyCode)<0&&(u=!0,Cs=null));let p=new Set,h=g=>{if(g){for(let b of g.run)if(!p.has(b)&&(p.add(b),b(t,e)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),u=!0)}return!1},f=r[s],d,m;return f&&(h(f[l+Pl(n,e,!a)])?o=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ht.windows&&e.ctrlKey&&e.altKey)&&(d=os[e.keyCode])&&d!=n?(h(f[l+Pl(d,e,!0)])||e.shiftKey&&(m=qi[e.keyCode])!=n&&m!=d&&h(f[l+Pl(m,e,!1)]))&&(o=!0):a&&e.shiftKey&&h(f[l+Pl(n,e,!0)])&&(o=!0),!o&&h(f._any)&&(o=!0)),u&&(o=!0),o&&c&&e.stopPropagation(),o}var go=class r{constructor(e,t,s,n,i){this.className=e,this.left=t,this.top=s,this.width=n,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,s){if(s.empty){let n=e.coordsAtPos(s.head,s.assoc||1);if(!n)return[];let i=vC(e);return[new r(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}else return JM(e,t,s)}};function vC(r){let e=r.scrollDOM.getBoundingClientRect();return{left:(r.textDirection==Xt.LTR?e.left:e.right-r.scrollDOM.clientWidth*r.scaleX)-r.scrollDOM.scrollLeft*r.scaleX,top:e.top-r.scrollDOM.scrollTop*r.scaleY}}function hE(r,e,t){let s=Xe.cursor(e);return{from:Math.max(t.from,r.moveToLineBoundary(s,!1,!0).from),to:Math.min(t.to,r.moveToLineBoundary(s,!0,!0).from),type:Rr.Text}}function JM(r,e,t){if(t.to<=r.viewport.from||t.from>=r.viewport.to)return[];let s=Math.max(t.from,r.viewport.from),n=Math.min(t.to,r.viewport.to),i=r.textDirection==Xt.LTR,a=r.contentDOM,l=a.getBoundingClientRect(),o=vC(r),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),p=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=l.right-(c?parseInt(c.paddingRight):0),f=zf(r,s),d=zf(r,n),m=f.type==Rr.Text?f:null,g=d.type==Rr.Text?d:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=hE(r,s,m)),g&&(r.lineWrapping||d.widgetLineBreaks)&&(g=hE(r,n,g)),m&&g&&m.from==g.from)return O(S(t.from,t.to,m));{let k=m?S(t.from,null,m):C(f,!1),E=g?S(null,t.to,g):C(d,!0),A=[];return(m||f).to<(g||d).from-(m&&g?1:0)||f.widgetLineBreaks>1&&k.bottom+r.defaultLineHeight/2F&&_.from=Q)break;N>B&&I(Math.max($,B),k==null&&$<=F,Math.min(N,Q),E==null&&N>=L,R.dir)}if(B=V.to+1,B>=Q)break}return T.length==0&&I(F,k==null,L,E==null,r.textDirection),{top:w,bottom:P,horizontal:T}}function C(k,E){let A=l.top+(E?k.top:k.bottom);return{top:A,bottom:A,horizontal:[]}}}function ej(r,e){return r.constructor==e.constructor&&r.eq(e)}var cp=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Fl)!=e.state.facet(Fl)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,s=e.facet(Fl);for(;t!ej(t,this.drawn[s]))){let t=this.dom.firstChild,s=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[s].constructor&&n.update(t,this.drawn[s])?(t=t.nextSibling,s++):this.dom.insertBefore(n.draw(),t);for(;t;){let n=t.nextSibling;t.remove(),t=n}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},Fl=pt.define();function OC(r){return[sr.define(e=>new cp(e,r)),Fl.of(r)]}var SC=!ht.ios,yo=pt.define({combine(r){return Pr(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function EC(r={}){return[yo.of(r),tj,rj,nj,GE.of(!0)]}function CC(r){return r.startState.facet(yo)!=r.state.facet(yo)}var tj=OC({above:!0,markers(r){let{state:e}=r,t=e.facet(yo),s=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||SC:t.drawRangeCursor){let a=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=n.empty?n:Xe.cursor(n.head,n.head>n.anchor?-1:1);for(let o of go.forRange(r,a,l))s.push(o)}}return s},update(r,e){r.transactions.some(s=>s.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=CC(r);return t&&dE(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){dE(e.state,r)},class:"cm-cursorLayer"});function dE(r,e){e.style.animationDuration=r.facet(yo).cursorBlinkRate+"ms"}var rj=OC({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:go.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||CC(r)},class:"cm-selectionLayer"}),fp={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};SC&&(fp[".cm-line"].caretColor="transparent !important",fp[".cm-content"]={caretColor:"transparent !important"});var nj=sn.highest(lt.theme(fp)),wC=At.define({map(r,e){return r==null?null:e.mapPos(r)}}),to=Kt.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,s)=>s.is(wC)?s.value:t,r)}}),sj=sr.fromClass(class{constructor(r){this.view=r,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(r){var e;let t=r.state.field(to);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(r.startState.field(to)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(to),t=e!=null&&r.coordsAtPos(e);if(!t)return null;let s=r.scrollDOM.getBoundingClientRect();return{left:t.left-s.left+r.scrollDOM.scrollLeft*r.scaleX,top:t.top-s.top+r.scrollDOM.scrollTop*r.scaleY,height:t.bottom-t.top}}drawCursor(r){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;r?(this.cursor.style.left=r.left/e+"px",this.cursor.style.top=r.top/t+"px",this.cursor.style.height=r.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(r){this.view.state.field(to)!=r&&this.view.dispatch({effects:wC.of(r)})}},{eventObservers:{dragover(r){this.setDropPos(this.view.posAtCoords({x:r.clientX,y:r.clientY}))},dragleave(r){(r.target==this.view.contentDOM||!this.view.contentDOM.contains(r.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function kC(){return[to,sj]}function mE(r,e,t,s,n){e.lastIndex=0;for(let i=r.iterRange(t,s),a=t,l;!i.next().done;a+=i.value.length)if(!i.lineBreak)for(;l=e.exec(i.value);)n(a+l.index,l)}function ij(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let s=[];for(let{from:n,to:i}of t)n=Math.max(r.state.doc.lineAt(n).from,n-e),i=Math.min(r.state.doc.lineAt(i).to,i+e),s.length&&s[s.length-1].to>=n?s[s.length-1].to=i:s.push({from:n,to:i});return s}var pp=class{constructor(e){let{regexp:t,decoration:s,decorate:n,boundary:i,maxLength:a=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(l,o,u,c)=>n(c,u,u+l[0].length,l,o);else if(typeof s=="function")this.addMatch=(l,o,u,c)=>{let p=s(l,o,u);p&&c(u,u+l[0].length,p)};else if(s)this.addMatch=(l,o,u,c)=>c(u,u+l[0].length,s);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=a}createDeco(e){let t=new Rn,s=t.add.bind(t);for(let{from:n,to:i}of ij(e,this.maxLength))mE(e.state.doc,this.regexp,n,i,(a,l)=>this.addMatch(l,e,a,s));return t.finish()}updateDeco(e,t){let s=1e9,n=-1;return e.docChanged&&e.changes.iterChanges((i,a,l,o)=>{o>e.view.viewport.from&&l1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),s,n):t}updateRange(e,t,s,n){for(let i of e.visibleRanges){let a=Math.max(i.from,s),l=Math.min(i.to,n);if(l>a){let o=e.state.doc.lineAt(a),u=o.too.from;a--)if(this.boundary.test(o.text[a-1-o.from])){c=a;break}for(;lh.push(b.range(m,g));if(o==u)for(this.regexp.lastIndex=c-o.from;(f=this.regexp.exec(o.text))&&f.indexthis.addMatch(g,e,m,d));t=t.update({filterFrom:c,filterTo:p,filter:(m,g)=>mp,add:h})}}return t}},hp=/x/.unicode!=null?"gu":"g",aj=new RegExp(`[\0-\b --\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,hp),oj={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},_f=null;function lj(){var r;if(_f==null&&typeof document<"u"&&document.body){let e=document.body.style;_f=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return _f||!1}var Rl=pt.define({combine(r){let e=Pr(r,{render:null,specialChars:aj,addSpecialChars:null});return(e.replaceTabs=!lj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,hp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,hp)),e}});function AC(r={}){return[Rl.of(r),uj()]}var gE=null;function uj(){return gE||(gE=sr.fromClass(class{constructor(r){this.view=r,this.decorations=bt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Rl)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new pp({regexp:r.specialChars,decoration:(e,t,s)=>{let{doc:n}=t.state,i=xr(e[0],0);if(i==9){let a=n.lineAt(s),l=t.state.tabSize,o=as(a.text,l,s-a.from);return bt.replace({widget:new mp((l-o%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=bt.replace({widget:new dp(r,i)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Rl);r.startState.facet(Rl)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}var cj="\u2022";function fj(r){return r>=32?cj:r==10?"\u2424":String.fromCharCode(9216+r)}var dp=class extends ln{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=fj(this.code),s=e.state.phrase("Control character")+" "+(oj[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,s,t);if(n)return n;let i=document.createElement("span");return i.textContent=t,i.title=s,i.setAttribute("aria-label",s),i.className="cm-specialChar",i}ignoreEvent(){return!1}},mp=class extends ln{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function PC(){return hj}var pj=bt.line({class:"cm-activeLine"}),hj=sr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let s of r.state.selection.ranges){let n=r.lineBlockAt(s.head);n.from>e&&(t.push(pj.range(n.from)),e=n.from)}return bt.set(t)}},{decorations:r=>r.decorations});var gp=2e3;function dj(r,e,t){let s=Math.min(e.line,t.line),n=Math.max(e.line,t.line),i=[];if(e.off>gp||t.off>gp||e.col<0||t.col<0){let a=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let o=s;o<=n;o++){let u=r.doc.line(o);u.length<=l&&i.push(Xe.range(u.from+a,u.to+l))}}else{let a=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let o=s;o<=n;o++){let u=r.doc.line(o),c=bl(u.text,a,r.tabSize,!0);if(c<0)i.push(Xe.cursor(u.to));else{let p=bl(u.text,l,r.tabSize);i.push(Xe.range(u.from+c,u.from+p))}}}return i}function mj(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function yE(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),s=r.state.doc.lineAt(t),n=t-s.from,i=n>gp?-1:n==s.length?mj(r,e.clientX):as(s.text,r.state.tabSize,t-s.from);return{line:s.number,col:i,off:n}}function gj(r,e){let t=yE(r,e),s=r.state.selection;return t?{update(n){if(n.docChanged){let i=n.changes.mapPos(n.startState.doc.line(t.line).from),a=n.state.doc.lineAt(i);t={line:a.number,col:t.col,off:Math.min(t.off,a.length)},s=s.map(n.changes)}},get(n,i,a){let l=yE(r,n);if(!l)return s;let o=dj(r.state,t,l);return o.length?a?Xe.create(o.concat(s.ranges)):Xe.create(o):s}}:null}function TC(r){let e=r?.eventFilter||(t=>t.altKey&&t.button==0);return lt.mouseSelectionStyle.of((t,s)=>e(s)?gj(t,s):null)}var yj={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},xj={style:"cursor: crosshair"};function DC(r={}){let[e,t]=yj[r.key||"Alt"],s=sr.fromClass(class{constructor(n){this.view=n,this.isDown=!1}set(n){this.isDown!=n&&(this.isDown=n,this.view.update([]))}},{eventObservers:{keydown(n){this.set(n.keyCode==e||t(n))},keyup(n){(n.keyCode==e||!t(n))&&this.set(!1)},mousemove(n){this.set(t(n))}}});return[s,lt.contentAttributes.of(n=>{var i;return!((i=n.plugin(s))===null||i===void 0)&&i.isDown?xj:null})]}var Ya="-10000px",Zl=class{constructor(e,t,s,n){this.facet=t,this.createTooltipView=s,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(a=>a);let i=null;this.tooltipViews=this.tooltips.map(a=>i=s(a,i))}update(e,t){var s;let n=e.state.facet(this.facet),i=n.filter(o=>o);if(n===this.input){for(let o of this.tooltipViews)o.update&&o.update(e);return!1}let a=[],l=t?[]:null;for(let o=0;ot[u]=o),t.length=l.length),this.input=n,this.tooltips=i,this.tooltipViews=a,!0}};function bj(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}var If=pt.define({combine:r=>{var e,t,s;return{position:ht.ios?"absolute":((e=r.find(n=>n.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(n=>n.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((s=r.find(n=>n.tooltipSpace))===null||s===void 0?void 0:s.tooltipSpace)||bj}}}),xE=new WeakMap,Ap=sr.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(If);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Zl(r,Xi,(t,s)=>this.createTooltip(t,s),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,s=r.state.facet(If);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;t=!0}if(s.parent!=this.parent){this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),s=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=Ya,t.dom.style.left="0px",this.container.insertBefore(t.dom,s),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews)s.dom.remove(),(r=s.destroy)===null||r===void 0||r.call(s);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,s=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:n}=this.manager.tooltipViews[0];if(ht.gecko)s=n.offsetParent!=this.container.ownerDocument.body;else if(n.style.top==Ya&&n.style.left=="0px"){let i=n.getBoundingClientRect();s=Math.abs(i.top+1e4)>1||Math.abs(i.left)>1}}if(s||this.position=="absolute")if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((n,i)=>{let a=this.manager.tooltipViews[i];return a.getCoords?a.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(If).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:s}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:s,scaleX:n,scaleY:i}=r,a=[];for(let l=0;l=Math.min(t.bottom,s.bottom)||p.rightMath.min(t.right,s.right)+.1){c.style.top=Ya;continue}let f=o.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,m=h.right-h.left,g=(e=xE.get(u))!==null&&e!==void 0?e:h.bottom-h.top,b=u.offset||Oj,O=this.view.textDirection==Xt.LTR,S=h.width>s.right-s.left?O?s.left:s.right-h.width:O?Math.min(p.left-(f?14:0)+b.x,s.right-m):Math.max(s.left,p.left-m+(f?14:0)-b.x),C=this.above[l];!o.strictSide&&(C?p.top-(h.bottom-h.top)-b.ys.bottom)&&C==s.bottom-p.bottom>p.top-s.top&&(C=this.above[l]=!C);let k=(C?p.top-s.top:s.bottom-p.bottom)-d;if(kS&&w.topE&&(E=C?w.top-g-2-d:w.bottom+d+2);if(this.position=="absolute"?(c.style.top=(E-r.parent.top)/i+"px",c.style.left=(S-r.parent.left)/n+"px"):(c.style.top=E/i+"px",c.style.left=S/n+"px"),f){let w=p.left+(O?b.x:-b.x)-(S+14-7);f.style.left=w/n+"px"}u.overlap!==!0&&a.push({left:S,top:E,right:A,bottom:E+g}),c.classList.toggle("cm-tooltip-above",C),c.classList.toggle("cm-tooltip-below",!C),u.positioned&&u.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=Ya}},{eventObservers:{scroll(){this.maybeMeasure()}}}),vj=lt.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Oj={x:0,y:0},Xi=pt.define({enables:[Ap,vj]}),zl=pt.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),Xl=class r{static create(e){return new r(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Zl(e,zl,(t,s)=>this.createHostedView(t,s),t=>t.dom.remove())}createHostedView(e,t){let s=e.create(this.view);return s.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(s.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&s.mount&&s.mount(this.view),s}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let s of this.manager.tooltipViews){let n=s[e];if(n!==void 0){if(t===void 0)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},Sj=Xi.compute([zl],r=>{let e=r.facet(zl);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var s;return(s=t.end)!==null&&s!==void 0?s:t.pos})),create:Xl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),yp=class{constructor(e,t,s,n,i){this.view=e,this.source=t,this.field=s,this.setHover=n,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;el.bottom||t.xl.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(n)).find(c=>c.from<=n&&c.to>=n),u=o&&o.dir==Xt.RTL?-1:1;i=t.x{this.pending==l&&(this.pending=null,o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])}))},o=>br(e.state,o,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(Ap),t=e?e.manager.tooltips.findIndex(s=>s.create==Xl.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,s;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:i}=this;if(n.length&&i&&!Ej(i.dom,e)||this.pending){let{pos:a}=n[0]||this.pending,l=(s=(t=n[0])===null||t===void 0?void 0:t.end)!==null&&s!==void 0?s:a;(a==l?this.view.posAtCoords(this.lastMove)!=a:!Cj(this.view,a,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:s}=this;s&&s.dom.contains(e.relatedTarget)?this.watchTooltipLeave(s.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=s=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(s.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},Tl=4;function Ej(r,e){let t=r.getBoundingClientRect();return e.clientX>=t.left-Tl&&e.clientX<=t.right+Tl&&e.clientY>=t.top-Tl&&e.clientY<=t.bottom+Tl}function Cj(r,e,t,s,n,i){let a=r.scrollDOM.getBoundingClientRect(),l=r.documentTop+r.documentPadding.top+r.contentHeight;if(a.left>s||a.rightn||Math.min(a.bottom,l)=e&&o<=t}function _C(r,e={}){let t=At.define(),s=Kt.define({create(){return[]},update(n,i){if(n.length&&(e.hideOnChange&&(i.docChanged||i.selection)?n=[]:e.hideOn&&(n=n.filter(a=>!e.hideOn(i,a))),i.docChanged)){let a=[];for(let l of n){let o=i.changes.mapPos(l.pos,-1,hr.TrackDel);if(o!=null){let u=Object.assign(Object.create(null),l);u.pos=o,u.end!=null&&(u.end=i.changes.mapPos(u.end)),a.push(u)}}n=a}for(let a of i.effects)a.is(t)&&(n=a.value),a.is(wj)&&(n=[]);return n},provide:n=>zl.from(n)});return[s,sr.define(n=>new yp(n,r,s,t,e.hoverTime||300)),Sj]}function Pp(r,e){let t=r.plugin(Ap);if(!t)return null;let s=t.manager.tooltips.indexOf(e);return s<0?null:t.manager.tooltipViews[s]}var wj=At.define();var bE=pt.define({combine(r){let e,t;for(let s of r)e=e||s.topContainer,t=t||s.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Gi(r,e){let t=r.plugin(IC),s=t?t.specs.indexOf(e):-1;return s>-1?t.panels[s]:null}var IC=sr.fromClass(class{constructor(r){this.input=r.state.facet(si),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(bE);this.top=new Vi(r,!0,e.topContainer),this.bottom=new Vi(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(bE);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Vi(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Vi(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(si);if(t!=this.input){let s=t.filter(o=>o),n=[],i=[],a=[],l=[];for(let o of s){let u=this.specs.indexOf(o),c;u<0?(c=o(r.view),l.push(c)):(c=this.panels[u],c.update&&c.update(r)),n.push(c),(c.top?i:a).push(c)}this.specs=s,this.panels=n,this.top.sync(i),this.bottom.sync(a);for(let o of l)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}else for(let s of this.panels)s.update&&s.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>lt.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})}),Vi=class{constructor(e,t,s){this.view=e,this.top=t,this.container=s,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=vE(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=vE(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function vE(r){let e=r.nextSibling;return r.remove(),e}var si=pt.define({enables:IC}),Hr=class extends bn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Hr.prototype.elementClass="";Hr.prototype.toDOM=void 0;Hr.prototype.mapMode=hr.TrackBefore;Hr.prototype.startSide=Hr.prototype.endSide=-1;Hr.prototype.point=!0;var Bl=pt.define(),kj={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>qt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},oo=pt.define();function Tp(r){return[FC(),oo.of(Object.assign(Object.assign({},kj),r))]}var xp=pt.define({combine:r=>r.some(e=>e)});function FC(r){let e=[Aj];return r&&r.fixed===!1&&e.push(xp.of(!0)),e}var Aj=sr.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(oo).map(e=>new Gl(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(xp),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,s=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(s<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(xp)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=qt.iter(this.view.state.facet(Bl),this.view.viewport.from),s=[],n=this.gutters.map(i=>new vp(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(i.type)){let a=!0;for(let l of i.type)if(l.type==Rr.Text&&a){bp(t,s,l.from);for(let o of n)o.line(this.view,l,s);a=!1}else if(l.widget)for(let o of n)o.widget(this.view,l)}else if(i.type==Rr.Text){bp(t,s,i.from);for(let a of n)a.line(this.view,i,s)}else if(i.widget)for(let a of n)a.widget(this.view,i);for(let i of n)i.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(oo),t=r.state.facet(oo),s=r.docChanged||r.heightChanged||r.viewportChanged||!qt.eq(r.startState.facet(Bl),r.state.facet(Bl),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(r)&&(s=!0);else{s=!0;let n=[];for(let i of t){let a=e.indexOf(i);a<0?n.push(new Gl(this.view,i)):(this.gutters[a].update(r),n.push(this.gutters[a]))}for(let i of this.gutters)i.dom.remove(),n.indexOf(i)<0&&i.destroy();for(let i of n)this.dom.appendChild(i.dom);this.gutters=n}return s}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>lt.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Xt.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function OE(r){return Array.isArray(r)?r:[r]}function bp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var vp=class{constructor(e,t,s){this.gutter=e,this.height=s,this.i=0,this.cursor=qt.iter(e.markers,t.from)}addElement(e,t,s){let{gutter:n}=this,i=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==n.elements.length){let l=new Yl(e,a,i,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(e,a,i,s);this.height=t.bottom,this.i++}line(e,t,s){let n=[];bp(this.cursor,n,t.from),s.length&&(n=n.concat(s));let i=this.gutter.config.lineMarker(e,t,n);i&&n.unshift(i);let a=this.gutter;n.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let s=this.gutter.config.widgetMarker(e,t.widget,t);s&&this.addElement(e,t,[s])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},Gl=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let s in t.domEventHandlers)this.dom.addEventListener(s,n=>{let i=n.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let o=i.getBoundingClientRect();a=(o.top+o.bottom)/2}else a=n.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[s](e,l,n)&&n.preventDefault()});this.markers=OE(t.markers(e)),t.initialSpacer&&(this.spacer=new Yl(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=OE(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let s=e.view.viewport;return!qt.eq(this.markers,t,s.from,s.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},Yl=class{constructor(e,t,s,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,s,n)}update(e,t,s,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=s&&(this.dom.style.marginTop=(this.above=s)?s+"px":""),Pj(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let s="cm-gutterElement",n=this.dom.firstChild;for(let i=0,a=0;;){let l=a,o=ii(l,o,u)||a(l,o,u):a}return s}})}}),lo=class extends Hr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function Ff(r,e){return r.state.facet(Wi).formatNumber(e,r.state)}var Dj=oo.compute([Wi],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Tj)},lineMarker(e,t,s){return s.some(n=>n.toDOM)?null:new lo(Ff(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Wi)!=e.state.facet(Wi),initialSpacer(e){return new lo(Ff(e,SE(e.state.doc.lines)))},updateSpacer(e,t){let s=Ff(t.view,SE(t.view.state.doc.lines));return s==e.number?e:new lo(s)},domEventHandlers:r.facet(Wi).domEventHandlers}));function RC(r={}){return[Wi.of(r),FC(),Dj]}function SE(r){let e=9;for(;e{let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.head).from;n>t&&(t=n,e.push(_j.range(n)))}return qt.of(e)});function BC(){return Ij}var Fj=0,xo=class{constructor(e,t){this.from=e,this.to=t}},Pt=class{constructor(e={}){this.id=Fj++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Tr.match(e)),t=>{let s=e(t);return s===void 0?null:[this,s]}}};Pt.closedBy=new Pt({deserialize:r=>r.split(" ")});Pt.openedBy=new Pt({deserialize:r=>r.split(" ")});Pt.group=new Pt({deserialize:r=>r.split(" ")});Pt.isolate=new Pt({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});Pt.contextHash=new Pt({perNode:!0});Pt.lookAhead=new Pt({perNode:!0});Pt.mounted=new Pt({perNode:!0});var Yi=class{constructor(e,t,s){this.tree=e,this.overlay=t,this.parser=s}static get(e){return e&&e.props&&e.props[Pt.mounted.id]}},Rj=Object.create(null),Tr=class r{constructor(e,t,s,n=0){this.name=e,this.props=t,this.id=s,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Rj,s=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new r(e.name||"",t,e.id,s);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(Pt.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let s in e)for(let n of s.split(" "))t[n]=e[s];return s=>{for(let n=s.prop(Pt.group),i=-1;i<(n?n.length:0);i++){let a=t[i<0?s.name:n[i]];if(a)return a}}}};Tr.none=new Tr("",Object.create(null),0,8);var bo=class r{constructor(e){this.types=e;for(let t=0;t0;for(let o=this.cursor(a|ir.IncludeAnonymous);;){let u=!1;if(o.from<=i&&o.to>=n&&(!l&&o.type.isAnonymous||t(o)!==!1)){if(o.firstChild())continue;u=!0}for(;u&&s&&(l||!o.type.isAnonymous)&&s(o),!o.nextSibling();){if(!o.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Np(Tr.none,this.children,this.positions,0,this.children.length,0,this.length,(t,s,n)=>new r(this.type,t,s,n,this.propValues),e.makeTree||((t,s,n)=>new r(Tr.none,t,s,n)))}static build(e){return Nj(e)}};ur.empty=new ur(Tr.none,[],[],0);var Dp=class r{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new r(this.buffer,this.index)}},Ds=class r{constructor(e,t,s){this.buffer=e,this.length=t,this.set=s}get type(){return Tr.none}toString(){let e=[];for(let t=0;t0));o=a[o+3]);return l}slice(e,t,s){let n=this.buffer,i=new Uint16Array(t-e),a=0;for(let l=e,o=0;l=e&&te;case 1:return t<=e&&s>e;case 2:return s>e;case 4:return!0}}function vo(r,e,t,s){for(var n;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to0?l.length:-1;e!=u;e+=t){let c=l[e],p=o[e]+a.from;if(MC(n,s,p,p+c.length)){if(c instanceof Ds){if(i&ir.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,t,s-p,n);if(h>-1)return new ii(new Ip(a,c,e,p),null,h)}else if(i&ir.IncludeAnonymous||!c.type.isAnonymous||Bp(c)){let h;if(!(i&ir.IgnoreMounts)&&(h=Yi.get(c))&&!h.overlay)return new r(h.tree,p,e,a);let f=new r(c,p,e,a);return i&ir.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?c.children.length-1:0,t,s,n)}}}if(i&ir.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,s=0){let n;if(!(s&ir.IgnoreOverlays)&&(n=Yi.get(this._tree))&&n.overlay){let i=e-this.from;for(let{from:a,to:l}of n.overlay)if((t>0?a<=i:a=i:l>i))return new r(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,s)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function LC(r,e,t,s){let n=r.cursor(),i=[];if(!n.firstChild())return i;if(t!=null){for(let a=!1;!a;)if(a=n.type.is(t),!n.nextSibling())return i}for(;;){if(s!=null&&n.type.is(s))return i;if(n.type.is(e)&&i.push(n.node),!n.nextSibling())return s==null?i:[]}}function _p(r,e,t=e.length-1){for(let s=r.parent;t>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(e[t]&&e[t]!=s.name)return!1;t--}}return!0}var Ip=class{constructor(e,t,s,n){this.parent=e,this.buffer=t,this.index=s,this.start=n}},ii=class r extends tu{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,s){super(),this.context=e,this._parent=t,this.index=s,this.type=e.buffer.set.types[e.buffer.buffer[s]]}child(e,t,s){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,s);return i<0?null:new r(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,s=0){if(s&ir.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new r(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:s}=this.context,n=this.index+4,i=s.buffer[this.index+3];if(i>n){let a=s.buffer[this.index+1];e.push(s.slice(n,i,a)),t.push(0)}return new ur(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function jC(r){if(!r.length)return null;let e=0,t=r[0];for(let i=1;it.from||a.to=e){let l=new cn(a.tree,a.overlay[0].from+i.from,-1,i);(n||(n=[s])).push(vo(l,e,t,!1))}}return n?jC(n):s}var Oo=class{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof cn)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let s=e._parent;s;s=s._parent)this.stack.unshift(s.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:s,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=s+n.buffer[e+1],this.to=s+n.buffer[e+2],!0}yield(e){return e?e instanceof cn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,s){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,s,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,s);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,s=this.mode){return this.buffer?s&ir.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,s))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ir.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ir.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,s=this.stack.length-1;if(e<0){let n=s<0?0:this.stack[s]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(s<0?t.buffer.length:t.buffer[this.stack[s]+3]))return this.yieldBuf(n)}return s<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,s,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let i=t+e,a=e<0?-1:s._tree.children.length;i!=a;i+=e){let l=s._tree.children[i];if(this.mode&ir.IncludeAnonymous||l instanceof Ds||!l.type.isAnonymous||Bp(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==n){if(n==this.index)return a;t=a,s=i+1;break e}n=this.stack[--i]}for(let n=s;n=0;i--){if(i<0)return _p(this.node,e,n);let a=s[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[n]&&e[n]!=a.name)return!1;n--}}return!0}};function Bp(r){return r.children.some(e=>e instanceof Ds||!e.type.isAnonymous||Bp(e))}function Nj(r){var e;let{buffer:t,nodeSet:s,maxBufferLength:n=1024,reused:i=[],minRepeatType:a=s.types.length}=r,l=Array.isArray(t)?new Dp(t,t.length):t,o=s.types,u=0,c=0;function p(k,E,A,w,P,T){let{id:I,start:F,end:L,size:_}=l,B=c;for(;_<0;)if(l.next(),_==-1){let N=i[I];A.push(N),w.push(F-k);return}else if(_==-3){u=I;return}else if(_==-4){c=I;return}else throw new RangeError(`Unrecognized record size: ${_}`);let Q=o[I],V,R,$=F-k;if(L-F<=n&&(R=g(l.pos-E,P))){let N=new Uint16Array(R.size-R.skip),W=l.pos-R.size,Z=N.length;for(;l.pos>W;)Z=b(R.start,N,Z);V=new Ds(N,L-R.start,s),$=R.start-k}else{let N=l.pos-_;l.next();let W=[],Z=[],le=I>=a?I:-1,ae=0,Se=L;for(;l.pos>N;)le>=0&&l.id==le&&l.size>=0?(l.end<=Se-n&&(d(W,Z,F,ae,l.end,Se,le,B),ae=W.length,Se=l.end),l.next()):T>2500?h(F,N,W,Z):p(F,N,W,Z,le,T+1);if(le>=0&&ae>0&&ae-1&&ae>0){let J=f(Q);V=Np(Q,W,Z,0,W.length,0,L-F,J,J)}else V=m(Q,W,Z,L-F,B-L)}A.push(V),w.push($)}function h(k,E,A,w){let P=[],T=0,I=-1;for(;l.pos>E;){let{id:F,start:L,end:_,size:B}=l;if(B>4)l.next();else{if(I>-1&&L=0;_-=3)F[B++]=P[_],F[B++]=P[_+1]-L,F[B++]=P[_+2]-L,F[B++]=B;A.push(new Ds(F,P[2]-L,s)),w.push(L-k)}}function f(k){return(E,A,w)=>{let P=0,T=E.length-1,I,F;if(T>=0&&(I=E[T])instanceof ur){if(!T&&I.type==k&&I.length==w)return I;(F=I.prop(Pt.lookAhead))&&(P=A[T]+I.length+F)}return m(k,E,A,w,P)}}function d(k,E,A,w,P,T,I,F){let L=[],_=[];for(;k.length>w;)L.push(k.pop()),_.push(E.pop()+A-P);k.push(m(s.types[I],L,_,T-P,F-T)),E.push(P-A)}function m(k,E,A,w,P=0,T){if(u){let I=[Pt.contextHash,u];T=T?[I].concat(T):[I]}if(P>25){let I=[Pt.lookAhead,P];T=T?[I].concat(T):[I]}return new ur(k,E,A,w,T)}function g(k,E){let A=l.fork(),w=0,P=0,T=0,I=A.end-n,F={size:0,start:0,skip:0};e:for(let L=A.pos-k;A.pos>L;){let _=A.size;if(A.id==E&&_>=0){F.size=w,F.start=P,F.skip=T,T+=4,w+=4,A.next();continue}let B=A.pos-_;if(_<0||B=a?4:0,V=A.start;for(A.next();A.pos>B;){if(A.size<0)if(A.size==-3)Q+=4;else break e;else A.id>=a&&(Q+=4);A.next()}P=V,w+=_,T+=Q}return(E<0||w==k)&&(F.size=w,F.start=P,F.skip=T),F.size>4?F:void 0}function b(k,E,A){let{id:w,start:P,end:T,size:I}=l;if(l.next(),I>=0&&w4){let L=l.pos-(I-4);for(;l.pos>L;)A=b(k,E,A)}E[--A]=F,E[--A]=T-k,E[--A]=P-k,E[--A]=w}else I==-3?u=w:I==-4&&(c=w);return A}let O=[],S=[];for(;l.pos>0;)p(r.start||0,r.bufferStart||0,O,S,-1,0);let C=(e=r.length)!==null&&e!==void 0?e:O.length?S[0]+O[0].length:0;return new ur(o[r.topID],O.reverse(),S.reverse(),C)}var $C=new WeakMap;function eu(r,e){if(!r.isAnonymous||e instanceof Ds||e.type!=r)return 1;let t=$C.get(e);if(t==null){t=1;for(let s of e.children){if(s.type!=r||!(s instanceof ur)){t=1;break}t+=eu(r,s)}$C.set(e,t)}return t}function Np(r,e,t,s,n,i,a,l,o){let u=0;for(let d=s;d=c)break;E+=A}if(S==C+1){if(E>c){let A=d[C];f(A.children,A.positions,0,A.children.length,m[C]+O);continue}p.push(d[C])}else{let A=m[S-1]+d[S-1].length-k;p.push(Np(r,d,m,C,S,k,A,null,o))}h.push(k+O-i)}}return f(e,t,s,n,0),(l||o)(p,h,a)}var ru=class{constructor(){this.map=new WeakMap}setBuffer(e,t,s){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,s)}getBuffer(e,t){let s=this.map.get(e);return s&&s.get(t)}set(e,t){e instanceof ii?this.setBuffer(e.context.buffer,e.index,t):e instanceof cn&&this.map.set(e.tree,t)}get(e){return e instanceof ii?this.getBuffer(e.context.buffer,e.index):e instanceof cn?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},ai=class r{constructor(e,t,s,n,i=!1,a=!1){this.from=e,this.to=t,this.tree=s,this.offset=n,this.open=(i?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],s=!1){let n=[new r(0,e.length,e,0,!1,s)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,s=128){if(!t.length)return e;let n=[],i=1,a=e.length?e[0]:null;for(let l=0,o=0,u=0;;l++){let c=l=s)for(;a&&a.from=h.from||p<=h.to||u){let f=Math.max(h.from,o)-u,d=Math.min(h.to,p)-u;h=f>=d?null:new r(f,d,h.tree,h.offset+u,l>0,!!c)}if(h&&n.push(h),a.to>p)break;a=inew xo(n.from,n.to)):[new xo(0,0)]:[new xo(0,e.length)],this.createParse(e,t||[],s)}parse(e,t,s){let n=this.startParse(e,t,s);for(;;){let i=n.advance();if(i)return i}}},Rp=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};var RG=new Pt({perNode:!0});var Lj=0,Un=class r{constructor(e,t,s){this.set=e,this.base=t,this.modified=s,this.id=Lj++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let t=new r([],null,[]);if(t.set.push(t),e)for(let s of e.set)t.set.push(s);return t}static defineModifier(){let e=new au;return t=>t.modified.indexOf(e)>-1?t:au.get(t.base||t,t.modified.concat(e).sort((s,n)=>s.id-n.id))}},$j=0,au=class r{constructor(){this.instances=[],this.id=$j++}static get(e,t){if(!t.length)return e;let s=t[0].instances.find(l=>l.base==e&&Mj(t,l.modified));if(s)return s;let n=[],i=new Un(n,e,t);for(let l of t)l.instances.push(i);let a=jj(t);for(let l of e.set)if(!l.modified.length)for(let o of a)n.push(r.get(l,o));return i}};function Mj(r,e){return r.length==e.length&&r.every((t,s)=>t==e[s])}function jj(r){let e=[[]];for(let t=0;ts.length-t.length)}function ou(r){let e=Object.create(null);for(let t in r){let s=r[t];Array.isArray(s)||(s=[s]);for(let n of t.split(" "))if(n){let i=[],a=2,l=n;for(let p=0;;){if(l=="..."&&p>0&&p+3==n.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!h)throw new RangeError("Invalid path: "+n);if(i.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),p+=h[0].length,p==n.length)break;let f=n[p++];if(p==n.length&&f=="!"){a=0;break}if(f!="/")throw new RangeError("Invalid path: "+n);l=n.slice(p)}let o=i.length-1,u=i[o];if(!u)throw new RangeError("Invalid path: "+n);let c=new Ki(s,a,o>0?i.slice(0,o):null);e[u]=c.sort(e[u])}}return UC.add(e)}var UC=new Pt,Ki=class{constructor(e,t,s,n){this.tags=e,this.mode=t,this.context=s,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let a=n;for(let l of i)for(let o of l.set){let u=t[o.id];if(u){a=a?a+" "+u:u;break}}return a},scope:s}}function qj(r,e){let t=null;for(let s of r){let n=s.style(e);n&&(t=t?t+" "+n:n)}return t}function VC(r,e,t,s=0,n=r.length){let i=new $p(s,Array.isArray(e)?e:[e],t);i.highlightRange(r.cursor(),s,n,"",i.highlighters),i.flush(n)}var $p=class{constructor(e,t,s){this.at=e,this.highlighters=t,this.span=s,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,s,n,i){let{type:a,from:l,to:o}=e;if(l>=s||o<=t)return;a.isTop&&(i=this.highlighters.filter(f=>!f.scope||f.scope(a)));let u=n,c=Qj(e)||Ki.empty,p=qj(i,c.tags);if(p&&(u&&(u+=" "),u+=p,c.mode==1&&(n+=(n?" ":"")+p)),this.startSpan(Math.max(t,l),u),c.opaque)return;let h=e.tree&&e.tree.prop(Pt.mounted);if(h&&h.overlay){let f=e.node.enter(h.overlay[0].from+l,1),d=this.highlighters.filter(g=>!g.scope||g.scope(h.tree.type)),m=e.firstChild();for(let g=0,b=l;;g++){let O=g=S||!e.nextSibling())););if(!O||S>s)break;b=O.to+l,b>t&&(this.highlightRange(f.cursor(),Math.max(t,O.from+l),Math.min(s,b),"",d),this.startSpan(Math.min(s,b),u))}m&&e.parent()}else if(e.firstChild()){h&&(n="");do if(!(e.to<=t)){if(e.from>=s)break;this.highlightRange(e,t,s,n,i),this.startSpan(Math.min(s,e.to),u)}while(e.nextSibling());e.parent()}}};function Qj(r){let e=r.type.prop(UC);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}var ct=Un.define,nu=ct(),_s=ct(),qC=ct(_s),QC=ct(_s),Is=ct(),su=ct(Is),Lp=ct(Is),Qn=ct(),oi=ct(Qn),jn=ct(),qn=ct(),Mp=ct(),So=ct(Mp),iu=ct(),Pe={comment:nu,lineComment:ct(nu),blockComment:ct(nu),docComment:ct(nu),name:_s,variableName:ct(_s),typeName:qC,tagName:ct(qC),propertyName:QC,attributeName:ct(QC),className:ct(_s),labelName:ct(_s),namespace:ct(_s),macroName:ct(_s),literal:Is,string:su,docString:ct(su),character:ct(su),attributeValue:ct(su),number:Lp,integer:ct(Lp),float:ct(Lp),bool:ct(Is),regexp:ct(Is),escape:ct(Is),color:ct(Is),url:ct(Is),keyword:jn,self:ct(jn),null:ct(jn),atom:ct(jn),unit:ct(jn),modifier:ct(jn),operatorKeyword:ct(jn),controlKeyword:ct(jn),definitionKeyword:ct(jn),moduleKeyword:ct(jn),operator:qn,derefOperator:ct(qn),arithmeticOperator:ct(qn),logicOperator:ct(qn),bitwiseOperator:ct(qn),compareOperator:ct(qn),updateOperator:ct(qn),definitionOperator:ct(qn),typeOperator:ct(qn),controlOperator:ct(qn),punctuation:Mp,separator:ct(Mp),bracket:So,angleBracket:ct(So),squareBracket:ct(So),paren:ct(So),brace:ct(So),content:Qn,heading:oi,heading1:ct(oi),heading2:ct(oi),heading3:ct(oi),heading4:ct(oi),heading5:ct(oi),heading6:ct(oi),contentSeparator:ct(Qn),list:ct(Qn),quote:ct(Qn),emphasis:ct(Qn),strong:ct(Qn),link:ct(Qn),monospace:ct(Qn),strikethrough:ct(Qn),inserted:ct(),deleted:ct(),changed:ct(),invalid:ct(),meta:iu,documentMeta:ct(iu),annotation:ct(iu),processingInstruction:ct(iu),definition:Un.defineModifier(),constant:Un.defineModifier(),function:Un.defineModifier(),standard:Un.defineModifier(),local:Un.defineModifier(),special:Un.defineModifier()},LG=jp([{tag:Pe.link,class:"tok-link"},{tag:Pe.heading,class:"tok-heading"},{tag:Pe.emphasis,class:"tok-emphasis"},{tag:Pe.strong,class:"tok-strong"},{tag:Pe.keyword,class:"tok-keyword"},{tag:Pe.atom,class:"tok-atom"},{tag:Pe.bool,class:"tok-bool"},{tag:Pe.url,class:"tok-url"},{tag:Pe.labelName,class:"tok-labelName"},{tag:Pe.inserted,class:"tok-inserted"},{tag:Pe.deleted,class:"tok-deleted"},{tag:Pe.literal,class:"tok-literal"},{tag:Pe.string,class:"tok-string"},{tag:Pe.number,class:"tok-number"},{tag:[Pe.regexp,Pe.escape,Pe.special(Pe.string)],class:"tok-string2"},{tag:Pe.variableName,class:"tok-variableName"},{tag:Pe.local(Pe.variableName),class:"tok-variableName tok-local"},{tag:Pe.definition(Pe.variableName),class:"tok-variableName tok-definition"},{tag:Pe.special(Pe.variableName),class:"tok-variableName2"},{tag:Pe.definition(Pe.propertyName),class:"tok-propertyName tok-definition"},{tag:Pe.typeName,class:"tok-typeName"},{tag:Pe.namespace,class:"tok-namespace"},{tag:Pe.className,class:"tok-className"},{tag:Pe.macroName,class:"tok-macroName"},{tag:Pe.propertyName,class:"tok-propertyName"},{tag:Pe.operator,class:"tok-operator"},{tag:Pe.comment,class:"tok-comment"},{tag:Pe.meta,class:"tok-meta"},{tag:Pe.invalid,class:"tok-invalid"},{tag:Pe.punctuation,class:"tok-punctuation"}]);var qp,Ji=new Pt;function Kp(r){return pt.define({combine:r?e=>e.concat(r):void 0})}var cu=new Pt,Kr=class{constructor(e,t,s=[],n=""){this.data=e,this.name=n,Wt.prototype.hasOwnProperty("tree")||Object.defineProperty(Wt.prototype,"tree",{get(){return dr(this)}}),this.parser=t,this.extension=[ea.of(this),Wt.languageData.of((i,a,l)=>{let o=WC(i,a,l),u=o.type.prop(Ji);if(!u)return[];let c=i.facet(u),p=o.type.prop(cu);if(p){let h=o.resolve(a-o.from,l);for(let f of p)if(f.test(h,i)){let d=i.facet(f.facet);return f.type=="replace"?d:d.concat(c)}}return c})].concat(s)}isActiveAt(e,t,s=-1){return WC(e,t,s).type.prop(Ji)==this.data}findRegions(e){let t=e.facet(ea);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let s=[],n=(i,a)=>{if(i.prop(Ji)==this.data){s.push({from:a,to:a+i.length});return}let l=i.prop(Pt.mounted);if(l){if(l.tree.prop(Ji)==this.data){if(l.overlay)for(let o of l.overlay)s.push({from:o.from+a,to:o.to+a});else s.push({from:a,to:a+i.length});return}else if(l.overlay){let o=s.length;if(n(l.tree,l.overlay[0].from+a),s.length>o)return}}for(let o=0;os.isTop?t:void 0)]}),e.name)}configure(e,t){return new r(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function dr(r){let e=r.field(Kr.state,!1);return e?e.tree:ur.empty}var Wp=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let s=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-s,t-s)}},Eo=null,Zp=class r{constructor(e,t,s=[],n,i,a,l,o){this.parser=e,this.state=t,this.fragments=s,this.tree=n,this.treeLen=i,this.viewport=a,this.skipped=l,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,s){return new r(e,t,[],ur.empty,0,s,[],null)}startParse(){return this.parser.startParse(new Wp(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=ur.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var s;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ai.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Eo;Eo=this;try{return e()}finally{Eo=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=ZC(e,t.from,t.to);return e}changes(e,t){let{fragments:s,tree:n,treeLen:i,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let o=[];if(e.iterChangedRanges((u,c,p,h)=>o.push({fromA:u,toA:c,fromB:p,toB:h})),s=ai.applyChanges(s,o),n=ur.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),p=e.mapPos(u.to,-1);ce.from&&(this.fragments=ZC(this.fragments,n,i),this.skipped.splice(s--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Hi{createParse(t,s,n){let i=n[0].from,a=n[n.length-1].to;return{parsedPos:i,advance(){let o=Eo;if(o){for(let u of n)o.tempSkipped.push(u);e&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,e]):e)}return this.parsedPos=a,new ur(Tr.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Eo}};function ZC(r,e,t){return ai.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var Co=class r{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),s=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,s)||t.takeTree(),new r(t)}static init(e){let t=Math.min(3e3,e.doc.length),s=Zp.create(e.facet(ea).parser,e,{from:0,to:t});return s.work(20,t)||s.takeTree(),new r(s)}};Kr.state=Kt.define({create:Co.init,update(r,e){for(let t of e.effects)if(t.is(Kr.setState))return t.value;return e.startState.facet(ea)!=e.state.facet(ea)?Co.init(e.state):r.apply(e)}});var YC=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(YC=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var Qp=typeof navigator<"u"&&(!((qp=navigator.scheduling)===null||qp===void 0)&&qp.isInputPending)?()=>navigator.scheduling.isInputPending():null,Uj=sr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Kr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Kr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=YC(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,o=i.context.work(()=>Qp&&Qp()||Date.now()>a,n+(l?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Kr.setState.of(new Co(i.context))})),this.chunkBudget>0&&!(o&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>br(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ea=pt.define({combine(r){return r.length?r[0]:null},enables:r=>[Kr.state,Uj,lt.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]}),uu=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};var Vj=pt.define(),ra=pt.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function wo(r){let e=r.facet(ra);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function na(r,e){let t="",s=r.tabSize,n=r.facet(ra)[0];if(n==" "){for(;e>=s;)t+=" ",e-=s;n=" "}for(let i=0;i=e?Wj(r,t,e):null}var li=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=wo(e)}lineAt(e,t=1){let s=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return n!=null&&n>=s.from&&n<=s.to?i&&n==e?{text:"",from:e}:(t<0?n-1&&(i+=a-this.countColumn(s,s.search(/\S|$/))),i}countColumn(e,t=e.length){return as(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:s,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let a=i(n);if(a>-1)return a}return this.countColumn(s,s.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Jp=new Pt;function Wj(r,e,t){let s=e.resolveStack(t),n=s.node.enterUnfinishedNodesBefore(t);if(n!=s.node){let i=[];for(let a=n;a!=s.node;a=a.parent)i.push(a);for(let a=i.length-1;a>=0;a--)s={node:i[a],next:s}}return HC(s,r,t)}function HC(r,e,t){for(let s=r;s;s=s.next){let n=zj(s.node);if(n)return n(zp.create(e,t,s))}return 0}function Zj(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function zj(r){let e=r.type.prop(Jp);if(e)return e;let t=r.firstChild,s;if(t&&(s=t.type.prop(Pt.closedBy))){let n=r.lastChild,i=n&&s.indexOf(n.name)>-1;return a=>JC(a,!0,1,void 0,i&&!Zj(a)?n.from:void 0)}return r.parent==null?Xj:null}function Xj(){return 0}var zp=class r extends li{constructor(e,t,s){super(e.state,e.options),this.base=e,this.pos=t,this.context=s}get node(){return this.context.node}static create(e,t,s){return new r(e,t,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let s=e.resolve(t.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(Gj(s,e))break;t=this.state.doc.lineAt(s.from)}return this.lineIndent(t.from)}continue(){return HC(this.context.next,this.base,this.pos)}};function Gj(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function Yj(r){let e=r.node,t=e.childAfter(e.from),s=e.lastChild;if(!t)return null;let n=r.options.simulateBreak,i=r.state.doc.lineAt(t.from),a=n==null||n<=i.from?i.to:Math.min(i.to,n);for(let l=t.to;;){let o=e.childAfter(l);if(!o||o==s)return null;if(!o.type.isSkipped)return o.fromJC(s,e,t,r)}function JC(r,e,t,s,n){let i=r.textAfter,a=i.match(/^\s*/)[0].length,l=s&&i.slice(a,a+s.length)==s||n==r.pos+a,o=e?Yj(r):null;return o?l?r.column(o.from):r.column(o.to):r.baseIndent+(l?0:r.unit*t)}var ew=r=>r.baseIndent;function pu({except:r,units:e=1}={}){return t=>{let s=r&&r.test(t.textAfter);return t.baseIndent+(s?0:e*t.unit)}}var Hj=200;function tw(){return Wt.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:s}=r.newSelection.main,n=t.lineAt(s);if(s>n.from+Hj)return r;let i=t.sliceString(n.from,s);if(!e.some(u=>u.test(i)))return r;let{state:a}=r,l=-1,o=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==l)continue;l=c.from;let p=fu(a,c.from);if(p==null)continue;let h=/^\s*/.exec(c.text)[0],f=na(a,p);h!=f&&o.push({from:c.from,to:c.from+h.length,insert:f})}return o.length?[r,{changes:o,sequential:!0}]:r})}var rw=new Pt;function nw(r){let e=r.firstChild,t=r.lastChild;return e&&e.tol.prop(Ji)==a.data:a?l=>l==a:void 0,this.style=jp(e.map(l=>({tag:l.tag,class:l.class||n(Object.assign({},l,{tag:null}))})),{all:i}).style,this.module=s?new an(s):null,this.themeType=t.themeType}static define(e,t){return new r(e,t||{})}},Xp=pt.define(),sw=pt.define({combine(r){return r.length?[r[0]]:null}});function Up(r){let e=r.facet(Xp);return e.length?e:r.facet(sw)}function hu(r,e){let t=[Kj],s;return r instanceof ta&&(r.module&&t.push(lt.styleModule.of(r.module)),s=r.themeType),e?.fallback?t.push(sw.of(r)):s?t.push(Xp.computeN([lt.darkTheme],n=>n.facet(lt.darkTheme)==(s=="dark")?[r]:[])):t.push(Xp.of(r)),t}var Gp=class{constructor(e){this.markCache=Object.create(null),this.tree=dr(e.state),this.decorations=this.buildDeco(e,Up(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=dr(e.state),s=Up(e.state),n=s!=Up(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,s),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return bt.none;let s=new Rn;for(let{from:n,to:i}of e.visibleRanges)VC(this.tree,t,(a,l,o)=>{s.add(a,l,this.markCache[o]||(this.markCache[o]=bt.mark({class:o})))},n,i);return s.finish()}},Kj=sn.high(sr.fromClass(Gp,{decorations:r=>r.decorations})),iw=ta.define([{tag:Pe.meta,color:"#404740"},{tag:Pe.link,textDecoration:"underline"},{tag:Pe.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Pe.emphasis,fontStyle:"italic"},{tag:Pe.strong,fontWeight:"bold"},{tag:Pe.strikethrough,textDecoration:"line-through"},{tag:Pe.keyword,color:"#708"},{tag:[Pe.atom,Pe.bool,Pe.url,Pe.contentSeparator,Pe.labelName],color:"#219"},{tag:[Pe.literal,Pe.inserted],color:"#164"},{tag:[Pe.string,Pe.deleted],color:"#a11"},{tag:[Pe.regexp,Pe.escape,Pe.special(Pe.string)],color:"#e40"},{tag:Pe.definition(Pe.variableName),color:"#00f"},{tag:Pe.local(Pe.variableName),color:"#30a"},{tag:[Pe.typeName,Pe.namespace],color:"#085"},{tag:Pe.className,color:"#167"},{tag:[Pe.special(Pe.variableName),Pe.macroName],color:"#256"},{tag:Pe.definition(Pe.propertyName),color:"#00c"},{tag:Pe.comment,color:"#940"},{tag:Pe.invalid,color:"#f00"}]),Jj=lt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),aw=1e4,ow="()[]{}",lw=pt.define({combine(r){return Pr(r,{afterCursor:!0,brackets:ow,maxScanDistance:aw,renderMatch:rq})}}),eq=bt.mark({class:"cm-matchingBracket"}),tq=bt.mark({class:"cm-nonmatchingBracket"});function rq(r){let e=[],t=r.matched?eq:tq;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}var nq=Kt.define({create(){return bt.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],s=e.state.facet(lw);for(let n of e.state.selection.ranges){if(!n.empty)continue;let i=On(e.state,n.head,-1,s)||n.head>0&&On(e.state,n.head-1,1,s)||s.afterCursor&&(On(e.state,n.head,1,s)||n.headlt.decorations.from(r)}),sq=[nq,Jj];function uw(r={}){return[lw.of(r),sq]}var iq=new Pt;function Yp(r,e,t){let s=r.prop(e<0?Pt.openedBy:Pt.closedBy);if(s)return s;if(r.name.length==1){let n=t.indexOf(r.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function Hp(r){let e=r.type.prop(iq);return e?e(r.node):r}function On(r,e,t,s={}){let n=s.maxScanDistance||aw,i=s.brackets||ow,a=dr(r),l=a.resolveInner(e,t);for(let o=l;o;o=o.parent){let u=Yp(o.type,t,i);if(u&&o.from0?e>=c.from&&ec.from&&e<=c.to))return aq(r,e,t,o,c,u,i)}}return oq(r,e,t,a,l.type,n,i)}function aq(r,e,t,s,n,i,a){let l=s.parent,o={from:n.from,to:n.to},u=0,c=l?.cursor();if(c&&(t<0?c.childBefore(s.from):c.childAfter(s.to)))do if(t<0?c.to<=s.from:c.from>=s.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:t<0?e-1:e,to:t>0?e+1:e},c=r.doc.iterRange(e,t>0?r.doc.length:0),p=0;for(let h=0;!c.next().done&&h<=i;){let f=c.value;t<0&&(h+=f.length);let d=e+h*t;for(let m=t>0?0:f.length-1,g=t>0?f.length:-1;m!=g;m+=t){let b=a.indexOf(f[m]);if(!(b<0||s.resolveInner(d+m,1).type!=n))if(b%2==0==t>0)p++;else{if(p==1)return{start:u,end:{from:d+m,to:d+m+1},matched:b>>1==o>>1};p--}}t>0&&(h+=f.length)}return c.done?{start:u,matched:!1}:null}var lq=Object.create(null),zC=[Tr.none];var XC=[],GC=Object.create(null),uq=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])uq[r]=cq(lq,e);function Vp(r,e){XC.indexOf(r)>-1||(XC.push(r),console.warn(e))}function cq(r,e){let t=[];for(let l of e.split(" ")){let o=[];for(let u of l.split(".")){let c=r[u]||Pe[u];c?typeof c=="function"?o.length?o=o.map(c):Vp(u,`Modifier ${u} used at start of tag`):o.length?Vp(u,`Tag ${u} used as modifier`):o=Array.isArray(c)?c:[c]:Vp(u,`Unknown highlighting tag ${u}`)}for(let u of o)t.push(u)}if(!t.length)return 0;let s=e.replace(/ /g,"_"),n=s+" "+t.map(l=>l.id),i=GC[n];if(i)return i.id;let a=GC[n]=Tr.define({id:zC.length,name:s,props:[ou({[s]:t})]});return zC.push(a),a.id}var WG={rtl:bt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:Xt.RTL}),ltr:bt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:Xt.LTR}),auto:bt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var sh=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),s=ah(r.state,t.from);return s.line?fq(r):s.block?hq(r):!1};function ih(r,e){return({state:t,dispatch:s})=>{if(t.readOnly)return!1;let n=r(e,t);return n?(s(t.update(n)),!0):!1}}var fq=ih(gq,0);var pq=ih(yw,0);var hq=ih((r,e)=>yw(r,e,mq(e)),0);function ah(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}var ko=50;function dq(r,{open:e,close:t},s,n){let i=r.sliceDoc(s-ko,s),a=r.sliceDoc(n,n+ko),l=/\s*$/.exec(i)[0].length,o=/^\s*/.exec(a)[0].length,u=i.length-l;if(i.slice(u-e.length,u)==e&&a.slice(o,o+t.length)==t)return{open:{pos:s-l,margin:l&&1},close:{pos:n+o,margin:o&&1}};let c,p;n-s<=2*ko?c=p=r.sliceDoc(s,n):(c=r.sliceDoc(s,s+ko),p=r.sliceDoc(n-ko,n));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(p)[0].length,d=p.length-f-t.length;return c.slice(h,h+e.length)==e&&p.slice(d,d+t.length)==t?{open:{pos:s+h+e.length,margin:/\s/.test(c.charAt(h+e.length))?1:0},close:{pos:n-f-t.length,margin:/\s/.test(p.charAt(d-1))?1:0}}:null}function mq(r){let e=[];for(let t of r.selection.ranges){let s=r.doc.lineAt(t.from),n=t.to<=s.to?s:r.doc.lineAt(t.to),i=e.length-1;i>=0&&e[i].to>s.from?e[i].to=n.to:e.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:n.to})}return e}function yw(r,e,t=e.selection.ranges){let s=t.map(i=>ah(e,i.from).block);if(!s.every(i=>i))return null;let n=t.map((i,a)=>dq(e,s[a],i.from,i.to));if(r!=2&&!n.every(i=>i))return{changes:e.changes(t.map((i,a)=>n[a]?[]:[{from:i.from,insert:s[a].open+" "},{from:i.to,insert:" "+s[a].close}]))};if(r!=1&&n.some(i=>i)){let i=[];for(let a=0,l;an&&(i==a||a>p.from)){n=p.from;let h=/^\s*/.exec(p.text)[0].length,f=h==p.length,d=p.text.slice(h,h+u.length)==u?h:-1;hi.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:l,token:o,indent:u,empty:c,single:p}of s)(p||!c)&&i.push({from:l.from+u,insert:o+" "});let a=e.changes(i);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&s.some(i=>i.comment>=0)){let i=[];for(let{line:a,comment:l,token:o}of s)if(l>=0){let u=a.from+l,c=u+o.length;a.text[c-a.from]==" "&&c++,i.push({from:u,to:c})}return{changes:i}}return null}var th=qr.define(),yq=qr.define(),xq=pt.define(),xw=pt.define({combine(r){return Pr(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(s,n)=>e(s,n)||t(s,n)})}}),bw=Kt.define({create(){return ui.empty},update(r,e){let t=e.state.facet(xw),s=e.annotation(th);if(s){let o=Sn.fromTransaction(e,s.selection),u=s.side,c=u==0?r.undone:r.done;return o?c=mu(c,c.length,t.minDepth,o):c=Sw(c,e.startState.selection),new ui(u==0?s.rest:c,u==0?c:s.rest)}let n=e.annotation(yq);if((n=="full"||n=="before")&&(r=r.isolate()),e.annotation(cr.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let i=Sn.fromTransaction(e),a=e.annotation(cr.time),l=e.annotation(cr.userEvent);return i?r=r.addChanges(i,a,l,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,l,t.newGroupDelay)),(n=="full"||n=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new ui(r.done.map(Sn.fromJSON),r.undone.map(Sn.fromJSON))}});function vw(r={}){return[bw,xw.of(r),lt.domEventHandlers({beforeinput(e,t){let s=e.inputType=="historyUndo"?yu:e.inputType=="historyRedo"?Ao:null;return s?(e.preventDefault(),s(t)):!1}})]}function gu(r,e){return function({state:t,dispatch:s}){if(!e&&t.readOnly)return!1;let n=t.field(bw,!1);if(!n)return!1;let i=n.pop(r,t,e);return i?(s(i),!0):!1}}var yu=gu(0,!1),Ao=gu(1,!1),bq=gu(0,!0),vq=gu(1,!0);var Sn=class r{constructor(e,t,s,n,i){this.changes=e,this.effects=t,this.mapped=s,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new r(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,s;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(s=this.startSelection)===null||s===void 0?void 0:s.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new r(e.changes&&Ir.fromJSON(e.changes),[],e.mapped&&is.fromJSON(e.mapped),e.startSelection&&Xe.fromJSON(e.startSelection),e.selectionsAfter.map(Xe.fromJSON))}static fromTransaction(e,t){let s=fn;for(let n of e.startState.facet(xq)){let i=n(e);i.length&&(s=s.concat(i))}return!s.length&&e.changes.empty?null:new r(e.changes.invert(e.startState.doc),s,void 0,t||e.startState.selection,fn)}static selection(e){return new r(void 0,fn,void 0,void 0,e)}};function mu(r,e,t,s){let n=e+1>t+20?e-t-1:0,i=r.slice(n,e);return i.push(s),i}function Oq(r,e){let t=[],s=!1;return r.iterChangedRanges((n,i)=>t.push(n,i)),e.iterChangedRanges((n,i,a,l)=>{for(let o=0;o=u&&a<=c&&(s=!0)}}),s}function Sq(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,s)=>t.empty!=e.ranges[s].empty).length===0}function Ow(r,e){return r.length?e.length?r.concat(e):r:e}var fn=[],Eq=200;function Sw(r,e){if(r.length){let t=r[r.length-1],s=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Eq));return s.length&&s[s.length-1].eq(e)?r:(s.push(e),mu(r,r.length-1,1e9,t.setSelAfter(s)))}else return[Sn.selection([e])]}function Cq(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function eh(r,e){if(!r.length)return r;let t=r.length,s=fn;for(;t;){let n=wq(r[t-1],e,s);if(n.changes&&!n.changes.empty||n.effects.length){let i=r.slice(0,t);return i[t-1]=n,i}else e=n.mapped,t--,s=n.selectionsAfter}return s.length?[Sn.selection(s)]:fn}function wq(r,e,t){let s=Ow(r.selectionsAfter.length?r.selectionsAfter.map(l=>l.map(e)):fn,t);if(!r.changes)return Sn.selection(s);let n=r.changes.map(e),i=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(i):i;return new Sn(n,At.mapEffects(r.effects,e),a,r.startSelection.map(i),s)}var kq=/^(input\.type|delete)($|\.)/,ui=class r{constructor(e,t,s=0,n=void 0){this.done=e,this.undone=t,this.prevTime=s,this.prevUserEvent=n}isolate(){return this.prevTime?new r(this.done,this.undone):this}addChanges(e,t,s,n,i){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!s||kq.test(s))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?r.moveByChar(t,e):xu(t,e))}function Dr(r){return r.textDirectionAt(r.state.selection.main.head)==Xt.LTR}var ww=r=>Cw(r,!Dr(r)),kw=r=>Cw(r,Dr(r));function Aw(r,e){return En(r,t=>t.empty?r.moveByGroup(t,e):xu(t,e))}var Aq=r=>Aw(r,!Dr(r)),Pq=r=>Aw(r,Dr(r));var KG=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Tq(r,e,t){if(e.type.prop(t))return!0;let s=e.to-e.from;return s&&(s>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function bu(r,e,t){let s=dr(r).resolveInner(e.head),n=t?Pt.closedBy:Pt.openedBy;for(let o=e.head;;){let u=t?s.childAfter(o):s.childBefore(o);if(!u)break;Tq(r,u,n)?s=u:o=t?u.to:u.from}let i=s.type.prop(n),a,l;return i&&(a=t?On(r,s.from,1):On(r,s.to,-1))&&a.matched?l=t?a.end.to:a.end.from:l=t?s.to:s.from,Xe.cursor(l,t?-1:1)}var Dq=r=>En(r,e=>bu(r.state,e,!Dr(r))),_q=r=>En(r,e=>bu(r.state,e,Dr(r)));function Pw(r,e){return En(r,t=>{if(!t.empty)return xu(t,e);let s=r.moveVertically(t,e);return s.head!=t.head?s:r.moveToLineBoundary(t,e)})}var Tw=r=>Pw(r,!1),Dw=r=>Pw(r,!0);function _w(r){let e=r.scrollDOM.clientHeighta.empty?r.moveVertically(a,e,t.height):xu(a,e));if(n.eq(s.selection))return!1;let i;if(t.selfScroll){let a=r.coordsAtPos(s.selection.main.head),l=r.scrollDOM.getBoundingClientRect(),o=l.top+t.marginTop,u=l.bottom-t.marginBottom;a&&a.top>o&&a.bottomIw(r,!1),rh=r=>Iw(r,!0);function Fs(r,e,t){let s=r.lineBlockAt(e.head),n=r.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?s.to:s.from)&&(n=r.moveToLineBoundary(e,t,!1)),!t&&n.head==s.from&&s.length){let i=/^\s*/.exec(r.state.sliceDoc(s.from,Math.min(s.from+100,s.to)))[0].length;i&&e.head!=s.from+i&&(n=Xe.cursor(s.from+i))}return n}var Iq=r=>En(r,e=>Fs(r,e,!0)),Fq=r=>En(r,e=>Fs(r,e,!1)),Rq=r=>En(r,e=>Fs(r,e,!Dr(r))),Bq=r=>En(r,e=>Fs(r,e,Dr(r))),Nq=r=>En(r,e=>Xe.cursor(r.lineBlockAt(e.head).from,1)),Lq=r=>En(r,e=>Xe.cursor(r.lineBlockAt(e.head).to,-1));function $q(r,e,t){let s=!1,n=sa(r.selection,i=>{let a=On(r,i.head,-1)||On(r,i.head,1)||i.head>0&&On(r,i.head-1,1)||i.head$q(r,e,!1);function pn(r,e){let t=sa(r.state.selection,s=>{let n=e(s);return Xe.range(s.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(Vn(r.state,t)),!0)}function Fw(r,e){return pn(r,t=>r.moveByChar(t,e))}var Rw=r=>Fw(r,!Dr(r)),Bw=r=>Fw(r,Dr(r));function Nw(r,e){return pn(r,t=>r.moveByGroup(t,e))}var jq=r=>Nw(r,!Dr(r)),qq=r=>Nw(r,Dr(r));var Qq=r=>pn(r,e=>bu(r.state,e,!Dr(r))),Uq=r=>pn(r,e=>bu(r.state,e,Dr(r)));function Lw(r,e){return pn(r,t=>r.moveVertically(t,e))}var $w=r=>Lw(r,!1),Mw=r=>Lw(r,!0);function jw(r,e){return pn(r,t=>r.moveVertically(t,e,_w(r).height))}var fw=r=>jw(r,!1),pw=r=>jw(r,!0),Vq=r=>pn(r,e=>Fs(r,e,!0)),Wq=r=>pn(r,e=>Fs(r,e,!1)),Zq=r=>pn(r,e=>Fs(r,e,!Dr(r))),zq=r=>pn(r,e=>Fs(r,e,Dr(r))),Xq=r=>pn(r,e=>Xe.cursor(r.lineBlockAt(e.head).from)),Gq=r=>pn(r,e=>Xe.cursor(r.lineBlockAt(e.head).to)),hw=({state:r,dispatch:e})=>(e(Vn(r,{anchor:0})),!0),dw=({state:r,dispatch:e})=>(e(Vn(r,{anchor:r.doc.length})),!0),mw=({state:r,dispatch:e})=>(e(Vn(r,{anchor:r.selection.main.anchor,head:0})),!0),gw=({state:r,dispatch:e})=>(e(Vn(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),Yq=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),Hq=({state:r,dispatch:e})=>{let t=vu(r).map(({from:s,to:n})=>Xe.range(s,Math.min(n+1,r.doc.length)));return e(r.update({selection:Xe.create(t),userEvent:"select"})),!0},Kq=({state:r,dispatch:e})=>{let t=sa(r.selection,s=>{var n;let i=dr(r).resolveStack(s.from,1);for(let a=i;a;a=a.next){let{node:l}=a;if((l.from=s.to||l.to>s.to&&l.from<=s.from)&&(!((n=l.parent)===null||n===void 0)&&n.parent))return Xe.range(l.to,l.from)}return s});return e(Vn(r,t)),!0},Jq=({state:r,dispatch:e})=>{let t=r.selection,s=null;return t.ranges.length>1?s=Xe.create([t.main]):t.main.empty||(s=Xe.create([Xe.cursor(t.main.head)])),s?(e(Vn(r,s)),!0):!1};function Po(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:s}=r,n=s.changeByRange(i=>{let{from:a,to:l}=i;if(a==l){let o=e(i);oa&&(t="delete.forward",o=du(r,o,!0)),a=Math.min(a,o),l=Math.max(l,o)}else a=du(r,a,!1),l=du(r,l,!0);return a==l?{range:i}:{changes:{from:a,to:l},range:Xe.cursor(a,an(r)))s.between(e,e,(n,i)=>{ne&&(e=t?i:n)});return e}var qw=(r,e,t)=>Po(r,s=>{let n=s.from,{state:i}=r,a=i.doc.lineAt(n),l,o;if(t&&!e&&n>a.from&&nqw(r,!1,!0);var Qw=r=>qw(r,!0,!1),Uw=(r,e)=>Po(r,t=>{let s=t.head,{state:n}=r,i=n.doc.lineAt(s),a=n.charCategorizer(s);for(let l=null;;){if(s==(e?i.to:i.from)){s==t.head&&i.number!=(e?n.doc.lines:1)&&(s+=e?1:-1);break}let o=fr(i.text,s-i.from,e)+i.from,u=i.text.slice(Math.min(s,o)-i.from,Math.max(s,o)-i.from),c=a(u);if(l!=null&&c!=l)break;(u!=" "||s!=t.head)&&(l=c),s=o}return s}),Vw=r=>Uw(r,!1),e5=r=>Uw(r,!0),t5=r=>Po(r,e=>{let t=r.lineBlockAt(e.head).to;return e.headPo(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),n5=r=>Po(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head{if(r.readOnly)return!1;let t=r.changeByRange(s=>({changes:{from:s.from,to:s.to,insert:Bt.of(["",""])},range:Xe.cursor(s.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},i5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(s=>{if(!s.empty||s.from==0||s.from==r.doc.length)return{range:s};let n=s.from,i=r.doc.lineAt(n),a=n==i.from?n-1:fr(i.text,n-i.from,!1)+i.from,l=n==i.to?n+1:fr(i.text,n-i.from,!0)+i.from;return{changes:{from:a,to:l,insert:r.doc.slice(n,l).append(r.doc.slice(a,n))},range:Xe.cursor(l)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function vu(r){let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.from),i=r.doc.lineAt(s.to);if(!s.empty&&s.to==i.from&&(i=r.doc.lineAt(s.to-1)),t>=n.number){let a=e[e.length-1];a.to=i.to,a.ranges.push(s)}else e.push({from:n.from,to:i.to,ranges:[s]});t=i.number+1}return e}function Ww(r,e,t){if(r.readOnly)return!1;let s=[],n=[];for(let i of vu(r)){if(t?i.to==r.doc.length:i.from==0)continue;let a=r.doc.lineAt(t?i.to+1:i.from-1),l=a.length+1;if(t){s.push({from:i.to,to:a.to},{from:i.from,insert:a.text+r.lineBreak});for(let o of i.ranges)n.push(Xe.range(Math.min(r.doc.length,o.anchor+l),Math.min(r.doc.length,o.head+l)))}else{s.push({from:a.from,to:i.from},{from:i.to,insert:r.lineBreak+a.text});for(let o of i.ranges)n.push(Xe.range(o.anchor-l,o.head-l))}}return s.length?(e(r.update({changes:s,scrollIntoView:!0,selection:Xe.create(n,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}var a5=({state:r,dispatch:e})=>Ww(r,e,!1),o5=({state:r,dispatch:e})=>Ww(r,e,!0);function Zw(r,e,t){if(r.readOnly)return!1;let s=[];for(let n of vu(r))t?s.push({from:n.from,insert:r.doc.slice(n.from,n.to)+r.lineBreak}):s.push({from:n.to,insert:r.lineBreak+r.doc.slice(n.from,n.to)});return e(r.update({changes:s,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var l5=({state:r,dispatch:e})=>Zw(r,e,!1),u5=({state:r,dispatch:e})=>Zw(r,e,!0),c5=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(vu(e).map(({from:n,to:i})=>(n>0?n--:i{let i;if(r.lineWrapping){let a=r.lineBlockAt(n.head),l=r.coordsAtPos(n.head,n.assoc||1);l&&(i=a.bottom+r.documentTop-l.bottom+r.defaultLineHeight/2)}return r.moveVertically(n,!0,i)}).map(t);return r.dispatch({changes:t,selection:s,scrollIntoView:!0,userEvent:"delete.line"}),!0};function f5(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=dr(r).resolveInner(e),s=t.childBefore(e),n=t.childAfter(e),i;return s&&n&&s.to<=e&&n.from>=e&&(i=s.type.prop(Pt.closedBy))&&i.indexOf(n.name)>-1&&r.doc.lineAt(s.to).from==r.doc.lineAt(n.from).from&&!/\S/.test(r.sliceDoc(s.to,n.from))?{from:s.to,to:n.from}:null}var p5=zw(!1),h5=zw(!0);function zw(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let s=e.changeByRange(n=>{let{from:i,to:a}=n,l=e.doc.lineAt(i),o=!r&&i==a&&f5(e,i);r&&(i=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new li(e,{simulateBreak:i,simulateDoubleBreak:!!o}),c=fu(u,i);for(c==null&&(c=as(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));al.from&&i{let n=[];for(let a=s.from;a<=s.to;){let l=r.doc.lineAt(a);l.number>t&&(s.empty||s.to>l.from)&&(e(l,n,s),t=l.number),a=l.to+1}let i=r.changes(n);return{changes:n,range:Xe.range(i.mapPos(s.anchor,1),i.mapPos(s.head,1))}})}var d5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),s=new li(r,{overrideIndentation:i=>{let a=t[i];return a??-1}}),n=oh(r,(i,a,l)=>{let o=fu(s,i.from);if(o==null)return;/\S/.test(i.text)||(o=0);let u=/^\s*/.exec(i.text)[0],c=na(r,o);(u!=c||l.fromr.readOnly?!1:(e(r.update(oh(r,(t,s)=>{s.push({from:t.from,insert:r.facet(ra)})}),{userEvent:"input.indent"})),!0),Xw=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(oh(r,(t,s)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=as(n,r.tabSize),a=0,l=na(r,Math.max(0,i-wo(r)));for(;a({mac:r.key,run:r.run,shift:r.shift}))),Gw=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Dq,shift:Qq},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:_q,shift:Uq},{key:"Alt-ArrowUp",run:a5},{key:"Shift-Alt-ArrowUp",run:l5},{key:"Alt-ArrowDown",run:o5},{key:"Shift-Alt-ArrowDown",run:u5},{key:"Escape",run:Jq},{key:"Mod-Enter",run:h5},{key:"Alt-l",mac:"Ctrl-l",run:Hq},{key:"Mod-i",run:Kq,preventDefault:!0},{key:"Mod-[",run:Xw},{key:"Mod-]",run:Ou},{key:"Mod-Alt-\\",run:d5},{key:"Shift-Mod-k",run:c5},{key:"Shift-Mod-\\",run:Mq},{key:"Mod-/",run:sh},{key:"Alt-A",run:pq}].concat(g5),Yw={key:"Tab",run:Ou,shift:Xw};function Zt(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];typeof n=="string"?r.setAttribute(s,n):n!=null&&(r[s]=n)}e++}for(;er.normalize("NFKD"):r=>r,Bs=class{constructor(e,t,s=0,n=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(s,n),this.bufferStart=s,this.normalize=i?l=>i(Kw(l)):Kw,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return xr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=Ga(e),s=this.bufferStart+this.bufferPos;this.bufferPos+=jr(e);let n=this.normalize(t);for(let i=0,a=s;;i++){let l=n.charCodeAt(i),o=this.match(l,a,this.bufferPos+this.bufferStart);if(i==n.length-1){if(o)return this.value=o,this;break}a==s&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let s=this.curLineStart+t.index,n=s+t[0].length;if(this.matchPos=Au(this.text,n+(s==n?1:0)),s==this.curLineStart+this.curLine.length&&this.nextLine(),(sthis.value.to)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=s||n.to<=t){let l=new r(t,e.sliceString(t,s));return lh.set(e,l),l}if(n.from==t&&n.to==s)return n;let{text:i,from:a}=n;return a>t&&(i=e.sliceString(t,a)+i,a=t),n.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let s=this.flat.from+t.index,n=s+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this.matchPos=Au(this.text,n+(s==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=wu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Cu.prototype[Symbol.iterator]=ku.prototype[Symbol.iterator]=function(){return this});function y5(r){try{return new RegExp(r,dh),!0}catch{return!1}}function Au(r,e){if(e>=r.length)return e;let t=r.lineAt(e),s;for(;e=56320&&s<57344;)e++;return e}function uh(r){let e=String(r.state.doc.lineAt(r.state.selection.main.head).number),t=Zt("input",{class:"cm-textfield",name:"line",value:e}),s=Zt("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),r.dispatch({effects:Pu.of(!1)}),r.focus()):i.keyCode==13&&(i.preventDefault(),n())},onsubmit:i=>{i.preventDefault(),n()}},Zt("label",r.state.phrase("Go to line"),": ",t)," ",Zt("button",{class:"cm-button",type:"submit"},r.state.phrase("go")));function n(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!i)return;let{state:a}=r,l=a.doc.lineAt(a.selection.main.head),[,o,u,c,p]=i,h=c?+c.slice(1):0,f=u?+u:l.number;if(u&&p){let g=f/100;o&&(g=g*(o=="-"?-1:1)+l.number/a.doc.lines),f=Math.round(a.doc.lines*g)}else u&&o&&(f=f*(o=="-"?-1:1)+l.number);let d=a.doc.line(Math.max(1,Math.min(a.doc.lines,f))),m=Xe.cursor(d.from+Math.max(0,Math.min(h,d.length)));r.dispatch({effects:[Pu.of(!1),lt.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:s}}var Pu=At.define(),Jw=Kt.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(Pu)&&(r=t.value);return r},provide:r=>si.from(r,e=>e?uh:null)}),x5=r=>{let e=Gi(r,uh);if(!e){let t=[Pu.of(!0)];r.state.field(Jw,!1)==null&&t.push(At.appendConfig.of([Jw,b5])),r.dispatch({effects:t}),e=Gi(r,uh)}return e&&e.dom.querySelector("input").select(),!0},b5=lt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),v5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},nk=pt.define({combine(r){return Pr(r,v5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function sk(r){let e=[w5,C5];return r&&e.push(nk.of(r)),e}var O5=bt.mark({class:"cm-selectionMatch"}),S5=bt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function ek(r,e,t,s){return(t==0||r(e.sliceDoc(t-1,t))!=zt.Word)&&(s==e.doc.length||r(e.sliceDoc(s,s+1))!=zt.Word)}function E5(r,e,t,s){return r(e.sliceDoc(t,t+1))==zt.Word&&r(e.sliceDoc(s-1,s))==zt.Word}var C5=sr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(nk),{state:t}=r,s=t.selection;if(s.ranges.length>1)return bt.none;let n=s.main,i,a=null;if(n.empty){if(!e.highlightWordAroundCursor)return bt.none;let o=t.wordAt(n.head);if(!o)return bt.none;a=t.charCategorizer(n.head),i=t.sliceDoc(o.from,o.to)}else{let o=n.to-n.from;if(o200)return bt.none;if(e.wholeWords){if(i=t.sliceDoc(n.from,n.to),a=t.charCategorizer(n.head),!(ek(a,t,n.from,n.to)&&E5(a,t,n.from,n.to)))return bt.none}else if(i=t.sliceDoc(n.from,n.to),!i)return bt.none}let l=[];for(let o of r.visibleRanges){let u=new Bs(t.doc,i,o.from,o.to);for(;!u.next().done;){let{from:c,to:p}=u.value;if((!a||ek(a,t,c,p))&&(n.empty&&c<=n.from&&p>=n.to?l.push(S5.range(c,p)):(c>=n.to||p<=n.from)&&l.push(O5.range(c,p)),l.length>e.maxMatches))return bt.none}}return bt.set(l)}},{decorations:r=>r.decorations}),w5=lt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),k5=({state:r,dispatch:e})=>{let{selection:t}=r,s=Xe.create(t.ranges.map(n=>r.wordAt(n.head)||Xe.cursor(n.head)),t.mainIndex);return s.eq(t)?!1:(e(r.update({selection:s})),!0)};function A5(r,e){let{main:t,ranges:s}=r.selection,n=r.wordAt(t.head),i=n&&n.from==t.from&&n.to==t.to;for(let a=!1,l=new Bs(r.doc,e,s[s.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Bs(r.doc,e,0,Math.max(0,s[s.length-1].from-1)),a=!0}else{if(a&&s.some(o=>o.from==l.value.from))continue;if(i){let o=r.wordAt(l.value.from);if(!o||o.from!=l.value.from||o.to!=l.value.to)continue}return l.value}}var P5=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(i=>i.from===i.to))return k5({state:r,dispatch:e});let s=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(i=>r.sliceDoc(i.from,i.to)!=s))return!1;let n=A5(r,s);return n?(e(r.update({selection:r.selection.addRange(Xe.range(n.from,n.to),!1),effects:lt.scrollIntoView(n.to)})),!0):!1},oa=pt.define({combine(r){return Pr(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new hh(e),scrollToMatch:e=>lt.scrollIntoView(e)})}});var Tu=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||y5(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,s)=>s=="n"?` -`:s=="r"?"\r":s=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new fh(this):new ch(this)}getCursor(e,t=0,s){let n=e.doc?e:Wt.create({doc:e});return s==null&&(s=n.doc.length),this.regexp?aa(this,n,t,s):ia(this,n,t,s)}},Du=class{constructor(e){this.spec=e}};function ia(r,e,t,s){return new Bs(e.doc,r.unquoted,t,s,r.caseSensitive?void 0:n=>n.toLowerCase(),r.wholeWord?T5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function T5(r,e){return(t,s,n,i)=>((i>t||i+n.length=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=ia(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(s+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}};function aa(r,e,t,s){return new Cu(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?D5(e.charCategorizer(e.selection.main.head)):void 0},t,s)}function _u(r,e){return r.slice(fr(r,e,!1),e)}function Iu(r,e){return r.slice(e,fr(r,e))}function D5(r){return(e,t,s)=>!s[0].length||(r(_u(s.input,s.index))!=zt.Word||r(Iu(s.input,s.index))!=zt.Word)&&(r(Iu(s.input,s.index+s[0].length))!=zt.Word||r(_u(s.input,s.index+s[0].length))!=zt.Word)}var fh=class extends Du{nextMatch(e,t,s){let n=aa(this.spec,e,s,e.doc.length).next();return n.done&&(n=aa(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,s){for(let n=1;;n++){let i=Math.max(t,s-n*1e4),a=aa(this.spec,e,i,s),l=null;for(;!a.next().done;)l=a.value;if(l&&(i==t||l.from>i+10))return l;if(i==t)return null}}prevMatch(e,t,s){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,s,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,s)=>s=="$"?"$":s=="&"?e.match[0]:s!="0"&&+s=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=aa(this.spec,e,Math.max(0,t-250),Math.min(s+250,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}},Do=At.define(),mh=At.define(),Rs=Kt.define({create(r){return new To(ph(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Do)?r=new To(t.value.create(),r.panel):t.is(mh)&&(r=new To(r.query,t.value?gh:null));return r},provide:r=>si.from(r,e=>e.panel)});var To=class{constructor(e,t){this.query=e,this.panel=t}},_5=bt.mark({class:"cm-searchMatch"}),I5=bt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),F5=sr.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Rs))}update(r){let e=r.state.field(Rs);(e!=r.startState.field(Rs)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return bt.none;let{view:t}=this,s=new Rn;for(let n=0,i=t.visibleRanges,a=i.length;ni[n+1].from-2*250;)o=i[++n].to;r.highlight(t.state,l,o,(u,c)=>{let p=t.state.selection.ranges.some(h=>h.from==u&&h.to==c);s.add(u,c,p?I5:_5)})}return s.finish()}},{decorations:r=>r.decorations});function _o(r){return e=>{let t=e.state.field(Rs,!1);return t&&t.query.spec.valid?r(e,t):ok(e)}}var Fu=_o((r,{query:e})=>{let{to:t}=r.state.selection.main,s=e.nextMatch(r.state,t,t);if(!s)return!1;let n=Xe.single(s.from,s.to),i=r.state.facet(oa);return r.dispatch({selection:n,effects:[yh(r,s),i.scrollToMatch(n.main,r)],userEvent:"select.search"}),ak(r),!0}),Ru=_o((r,{query:e})=>{let{state:t}=r,{from:s}=t.selection.main,n=e.prevMatch(t,s,s);if(!n)return!1;let i=Xe.single(n.from,n.to),a=r.state.facet(oa);return r.dispatch({selection:i,effects:[yh(r,n),a.scrollToMatch(i.main,r)],userEvent:"select.search"}),ak(r),!0}),R5=_o((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:Xe.create(t.map(s=>Xe.range(s.from,s.to))),userEvent:"select.search.matches"}),!0)}),B5=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:s,to:n}=t.main,i=[],a=0;for(let l=new Bs(r.doc,r.sliceDoc(s,n));!l.next().done;){if(i.length>1e3)return!1;l.value.from==s&&(a=i.length),i.push(Xe.range(l.value.from,l.value.to))}return e(r.update({selection:Xe.create(i,a),userEvent:"select.search.matches"})),!0},tk=_o((r,{query:e})=>{let{state:t}=r,{from:s,to:n}=t.selection.main;if(t.readOnly)return!1;let i=e.nextMatch(t,s,s);if(!i)return!1;let a=[],l,o,u=[];if(i.from==s&&i.to==n&&(o=t.toText(e.getReplacement(i)),a.push({from:i.from,to:i.to,insert:o}),i=e.nextMatch(t,i.from,i.to),u.push(lt.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(s).number)+"."))),i){let c=a.length==0||a[0].from>=i.to?0:i.to-i.from-o.length;l=Xe.single(i.from-c,i.to-c),u.push(yh(r,i)),u.push(t.facet(oa).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),N5=_o((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(n=>{let{from:i,to:a}=n;return{from:i,to:a,insert:e.getReplacement(n)}});if(!t.length)return!1;let s=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:lt.announce.of(s),userEvent:"input.replace.all"}),!0});function gh(r){return r.state.facet(oa).createPanel(r)}function ph(r,e){var t,s,n,i,a;let l=r.selection.main,o=l.empty||l.to>l.from+100?"":r.sliceDoc(l.from,l.to);if(e&&!o)return e;let u=r.facet(oa);return new Tu({search:((t=e?.literal)!==null&&t!==void 0?t:u.literal)?o:o.replace(/\n/g,"\\n"),caseSensitive:(s=e?.caseSensitive)!==null&&s!==void 0?s:u.caseSensitive,literal:(n=e?.literal)!==null&&n!==void 0?n:u.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=e?.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function ik(r){let e=Gi(r,gh);return e&&e.dom.querySelector("[main-field]")}function ak(r){let e=ik(r);e&&e==r.root.activeElement&&e.select()}var ok=r=>{let e=r.state.field(Rs,!1);if(e&&e.panel){let t=ik(r);if(t&&t!=r.root.activeElement){let s=ph(r.state,e.query.spec);s.valid&&r.dispatch({effects:Do.of(s)}),t.focus(),t.select()}}else r.dispatch({effects:[mh.of(!0),e?Do.of(ph(r.state,e.query.spec)):At.appendConfig.of($5)]});return!0},lk=r=>{let e=r.state.field(Rs,!1);if(!e||!e.panel)return!1;let t=Gi(r,gh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:mh.of(!1)}),!0},uk=[{key:"Mod-f",run:ok,scope:"editor search-panel"},{key:"F3",run:Fu,shift:Ru,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Fu,shift:Ru,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:lk,scope:"editor search-panel"},{key:"Mod-Shift-l",run:B5},{key:"Mod-Alt-g",run:x5},{key:"Mod-d",run:P5,preventDefault:!0}],hh=class{constructor(e){this.view=e;let t=this.query=e.state.field(Rs).query.spec;this.commit=this.commit.bind(this),this.searchField=Zt("input",{value:t.search,placeholder:Jr(e,"Find"),"aria-label":Jr(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Zt("input",{value:t.replace,placeholder:Jr(e,"Replace"),"aria-label":Jr(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Zt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Zt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Zt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function s(n,i,a){return Zt("button",{class:"cm-button",name:n,onclick:i,type:"button"},a)}this.dom=Zt("div",{onkeydown:n=>this.keydown(n),class:"cm-search"},[this.searchField,s("next",()=>Fu(e),[Jr(e,"next")]),s("prev",()=>Ru(e),[Jr(e,"previous")]),s("select",()=>R5(e),[Jr(e,"all")]),Zt("label",null,[this.caseField,Jr(e,"match case")]),Zt("label",null,[this.reField,Jr(e,"regexp")]),Zt("label",null,[this.wordField,Jr(e,"by word")]),...e.state.readOnly?[]:[Zt("br"),this.replaceField,s("replace",()=>tk(e),[Jr(e,"replace")]),s("replaceAll",()=>N5(e),[Jr(e,"replace all")])],Zt("button",{name:"close",onclick:()=>lk(e),"aria-label":Jr(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Tu({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Do.of(e)}))}keydown(e){xC(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Ru:Fu)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),tk(this.view))}update(e){for(let t of e.transactions)for(let s of t.effects)s.is(Do)&&!s.value.eq(this.query)&&this.setQuery(s.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(oa).top}};function Jr(r,e){return r.state.phrase(e)}var Su=30,Eu=/[\s\.,:;?!]/;function yh(r,{from:e,to:t}){let s=r.state.doc.lineAt(e),n=r.state.doc.lineAt(t).to,i=Math.max(s.from,e-Su),a=Math.min(n,t+Su),l=r.state.sliceDoc(i,a);if(i!=s.from){for(let o=0;ol.length-Su;o--)if(!Eu.test(l[o-1])&&Eu.test(l[o])){l=l.slice(0,o);break}}return lt.announce.of(`${r.state.phrase("current match")}. ${l} ${r.state.phrase("on line")} ${s.number}.`)}var L5=lt.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),$5=[Rs,sn.low(F5),L5];var Nu=class{constructor(e,t,s){this.state=e,this.pos=t,this.explicit=s,this.abortListeners=[]}tokenBefore(e){let t=dr(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),s=Math.max(t.from,this.pos-250),n=t.text.slice(s-t.from,this.pos-t.from),i=n.search(bk(e,!1));return i<0?null:{from:s+i,to:this.pos,text:n.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}};function ck(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function M5(r){let e=Object.create(null),t=Object.create(null);for(let{label:n}of r){e[n[0]]=!0;for(let i=1;itypeof n=="string"?{label:n}:n),[t,s]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:M5(e);return n=>{let i=n.matchBefore(s);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:t}:null}}function xk(r,e){return t=>{for(let s=dr(t.state).resolveInner(t.pos,-1);s;s=s.parent){if(r.indexOf(s.name)>-1)return null;if(s.type.isTop)break}return e(t)}}var Lu=class{constructor(e,t,s,n){this.completion=e,this.source=t,this.match=s,this.score=n}};function Ns(r){return r.selection.main.from}function bk(r,e){var t;let{source:s}=r,n=e&&s[0]!="^",i=s[s.length-1]!="$";return!n&&!i?r:new RegExp(`${n?"^":""}(?:${s})${i?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}var _h=qr.define();function j5(r,e,t,s){let{main:n}=r.selection,i=t-n.from,a=s-n.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=n&&t!=s&&r.sliceDoc(l.from+i,l.from+a)!=r.sliceDoc(t,s)?{range:l}:{changes:{from:l.from+i,to:s==n.from?l.to:l.from+a,insert:e},range:Xe.cursor(l.from+i+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}var fk=new WeakMap;function q5(r){if(!Array.isArray(r))return r;let e=fk.get(r);return e||fk.set(r,e=Dh(r)),e}var $u=At.define(),Io=At.define(),vh=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&k<=57||k>=97&&k<=122?2:k>=65&&k<=90?1:0:(E=Ga(k))!=E.toLowerCase()?1:E!=E.toUpperCase()?2:0;(!O||A==1&&g||C==0&&A!=0)&&(t[p]==k||s[p]==k&&(h=!0)?a[p++]=O:a.length&&(b=!1)),C=A,O+=jr(k)}return p==o&&a[0]==0&&b?this.result(-100+(h?-200:0),a,e):f==o&&d==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):f==o?this.ret(-900-e.length,[d,m]):p==o?this.result(-100+(h?-200:0)+-700+(b?0:-1100),a,e):t.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,s){let n=[],i=0;for(let a of t){let l=a+(this.astral?jr(xr(s,a)):1);i&&n[i-1]==a?n[i-1]=l:(n[i++]=a,n[i++]=l)}return this.ret(e-s.length,n)}},Oh=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Q5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>s=>pk(e(s),t(s)),optionClass:(e,t)=>s=>pk(e(s),t(s)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function pk(r,e){return r?e?r+" "+e:r:e}function Q5(r,e,t,s,n,i){let a=r.textDirection==Xt.RTL,l=a,o=!1,u="top",c,p,h=e.left-n.left,f=n.right-e.right,d=s.right-s.left,m=s.bottom-s.top;if(l&&h=m||O>e.top?c=t.bottom-e.top:(u="bottom",c=e.bottom-t.top)}let g=(e.bottom-e.top)/i.offsetHeight,b=(e.right-e.left)/i.offsetWidth;return{style:`${u}: ${c/g}px; max-width: ${p/b}px`,class:"cm-completionInfo-"+(o?a?"left-narrow":"right-narrow":l?"left":"right")}}function U5(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let s=document.createElement("div");return s.classList.add("cm-completionIcon"),t.type&&s.classList.add(...t.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),s.setAttribute("aria-hidden","true"),s},position:20}),e.push({render(t,s,n,i){let a=document.createElement("span");a.className="cm-completionLabel";let l=t.displayLabel||t.label,o=0;for(let u=0;uo&&a.appendChild(document.createTextNode(l.slice(o,c)));let h=a.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(l.slice(c,p))),h.className="cm-completionMatchedText",o=p}return ot.position-s.position).map(t=>t.render)}function xh(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let n=Math.floor(e/t);return{from:n*t,to:(n+1)*t}}let s=Math.floor((r-e)/t);return{from:r-(s+1)*t,to:r-s*t}}var Sh=class{constructor(e,t,s){this.view=e,this.stateField=t,this.applyCompletion=s,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:o=>this.placeInfo(o),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:a}=n.open,l=e.state.facet(Cr);this.optionContent=U5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=xh(i.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",o=>{let{options:u}=e.state.field(t).open;for(let c=o.target,p;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(p=/-(\d+)$/.exec(c.id))&&+p[1]{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(Cr).closeOnBlur&&o.relatedTarget!=e.contentDOM&&e.dispatch({effects:Io.of(null)})}),this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let s=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),s!=n){let{options:i,selected:a,disabled:l}=s.open;(!n.open||n.open.options!=i)&&(this.range=xh(i.length,a,e.state.facet(Cr).maxRenderedOptions),this.showOptions(i,s.id)),this.updateSel(),l!=((t=n.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let s of this.currentClass.split(" "))s&&this.dom.classList.remove(s);for(let s of t.split(" "))s&&this.dom.classList.add(s);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=xh(t.options.length,t.selected,this.view.state.facet(Cr).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:s}=t.options[t.selected],{info:n}=s;if(!n)return;let i=typeof n=="string"?document.createTextNode(n):n(s);if(!i)return;"then"in i?i.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,s)}).catch(a=>br(this.view.state,a,"completion info")):this.addInfoPane(i,s)}}addInfoPane(e,t){this.destroyInfo();let s=this.info=document.createElement("div");if(s.className="cm-tooltip cm-completionInfo",e.nodeType!=null)s.appendChild(e),this.infoDestroy=null;else{let{dom:n,destroy:i}=e;s.appendChild(n),this.infoDestroy=i||null}this.dom.appendChild(s),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let s=this.list.firstChild,n=this.range.from;s;s=s.nextSibling,n++)s.nodeName!="LI"||!s.id?n--:n==e?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),t=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected");return t&&W5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),s=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottoms.from||s.from==0))if(i=h,typeof u!="string"&&u.header)n.appendChild(u.header(u));else{let f=n.appendChild(document.createElement("completion-section"));f.textContent=h}}let c=n.appendChild(document.createElement("li"));c.id=t+"-"+a,c.setAttribute("role","option");let p=this.optionClass(l);p&&(c.className=p);for(let h of this.optionContent){let f=h(l,this.view.state,this.view,o);f&&c.appendChild(f)}}return s.from&&n.classList.add("cm-completionListIncompleteTop"),s.tonew Sh(t,r,e)}function W5(r,e){let t=r.getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.height/r.offsetHeight;s.topt.bottom&&(r.scrollTop+=(s.bottom-t.bottom)/n)}function hk(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function Z5(r,e){let t=[],s=null,n=u=>{t.push(u);let{section:c}=u.completion;if(c){s||(s=[]);let p=typeof c=="string"?c:c.name;s.some(h=>h.name==p)||s.push(typeof c=="string"?{name:p}:c)}},i=e.facet(Cr);for(let u of r)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let p of u.result.options)n(new Lu(p,u.source,c?c(p):[],1e9-t.length));else{let p=e.sliceDoc(u.from,u.to),h,f=i.filterStrict?new Oh(p):new vh(p);for(let d of u.result.options)if(h=f.match(d.label)){let m=d.displayLabel?c?c(d,h.matched):[]:h.matched;n(new Lu(d,u.source,m,h.score+(d.boost||0)))}}}if(s){let u=Object.create(null),c=0,p=(h,f)=>{var d,m;return((d=h.rank)!==null&&d!==void 0?d:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(h.namep.score-c.score||o(c.completion,p.completion))){let c=u.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?a.push(u):hk(u.completion)>hk(l)&&(a[a.length-1]=u),l=u.completion}return a}var Eh=class r{constructor(e,t,s,n,i,a){this.options=e,this.attrs=t,this.tooltip=s,this.timestamp=n,this.selected=i,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new r(this.options,dk(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,s,n,i){let a=Z5(e,t);if(!a.length)return n&&e.some(o=>o.state==1)?new r(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let l=t.facet(Cr).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let o=n.options[n.selected].completion;for(let u=0;uu.hasResult()?Math.min(o,u.from):o,1e8),create:H5,above:i.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(e){return new r(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}},Ch=class r{constructor(e,t,s){this.active=e,this.id=t,this.open=s}static start(){return new r(G5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,s=t.facet(Cr),i=(s.override||t.languageDataAt("autocomplete",Ns(t)).map(q5)).map(l=>(this.active.find(u=>u.source==l)||new Wn(l,this.active.some(u=>u.state!=0)?1:0)).update(e,s));i.length==this.active.length&&i.every((l,o)=>l==this.active[o])&&(i=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||i.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!z5(i,this.active)?a=Eh.build(i,t,this.id,a,s):a&&a.disabled&&!i.some(l=>l.state==1)&&(a=null),!a&&i.every(l=>l.state!=1)&&i.some(l=>l.hasResult())&&(i=i.map(l=>l.hasResult()?new Wn(l.source,0):l));for(let l of e.effects)l.is(Ok)&&(a=a&&a.setSelected(l.value,this.id));return i==this.active&&a==this.open?this:new r(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:X5}};function z5(r,e){if(r==e)return!0;for(let t=0,s=0;;){for(;t-1&&(t["aria-activedescendant"]=r+"-"+e),t}var G5=[];function wh(r,e){if(r.isUserEvent("input.complete")){let t=r.annotation(_h);if(t&&e.activateOnCompletion(t))return"input"}return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}var Wn=class r{constructor(e,t,s=-1){this.source=e,this.state=t,this.explicitPos=s}hasResult(){return!1}update(e,t){let s=wh(e,t),n=this;s?n=n.handleUserEvent(e,s,t):e.docChanged?n=n.handleChange(e):e.selection&&n.state!=0&&(n=new r(n.source,0));for(let i of e.effects)if(i.is($u))n=new r(n.source,1,i.value?Ns(e.state):-1);else if(i.is(Io))n=new r(n.source,0);else if(i.is(vk))for(let a of i.value)a.source==n.source&&(n=a);return n}handleUserEvent(e,t,s){return t=="delete"||!s.activateOnTyping?this.map(e.changes):new r(this.source,1)}handleChange(e){return e.changes.touchesRange(Ns(e.startState))?new r(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new r(this.source,this.state,e.mapPos(this.explicitPos))}},Mu=class r extends Wn{constructor(e,t,s,n,i){super(e,2,t),this.result=s,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,s){var n;let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let a=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),o=Ns(e.state);if((this.explicitPos<0?o<=a:ol||!i||t=="delete"&&Ns(e.startState)==this.from)return new Wn(this.source,t=="input"&&s.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return Y5(i.validFor,e.state,a,l)?new r(this.source,u,i,a,l):i.update&&(i=i.update(i,a,l,new Nu(e.state,o,u>=0)))?new r(this.source,u,i,i.from,(n=i.to)!==null&&n!==void 0?n:Ns(e.state)):new Wn(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Wn(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new r(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Wn(this.source,0)}};function Y5(r,e,t,s){if(!r)return!1;let n=e.sliceDoc(t,s);return typeof r=="function"?r(n,t,s,e):bk(r,!0).test(n)}var vk=At.define({map(r,e){return r.map(t=>t.map(e))}}),Ok=At.define(),Qr=Kt.define({create(){return Ch.start()},update(r,e){return r.update(e)},provide:r=>[Xi.from(r,e=>e.tooltip),lt.contentAttributes.from(r,e=>e.attrs)]});function Ih(r,e){let t=e.completion.apply||e.completion.label,s=r.state.field(Qr).active.find(n=>n.source==e.source);return s instanceof Mu?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},j5(r.state,t,s.from,s.to)),{annotations:_h.of(e.completion)})):t(r,e.completion,s.from,s.to),!0):!1}var H5=V5(Qr,Ih);function Bu(r,e="option"){return t=>{let s=t.state.field(Qr,!1);if(!s||!s.open||s.open.disabled||Date.now()-s.open.timestamp-1?s.open.selected+n*(r?1:-1):r?0:a-1;return l<0?l=e=="page"?0:a-1:l>=a&&(l=e=="page"?a-1:0),t.dispatch({effects:Ok.of(l)}),!0}}var K5=r=>{let e=r.state.field(Qr,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampr.state.field(Qr,!1)?(r.dispatch({effects:$u.of(!0)}),!0):!1,e8=r=>{let e=r.state.field(Qr,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Io.of(null)}),!0)},kh=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},t8=50,r8=1e3,n8=sr.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(Qr).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(Qr),t=r.state.facet(Cr);if(!r.selectionSet&&!r.docChanged&&r.startState.field(Qr)==e)return;let s=r.transactions.some(i=>(i.selection||i.docChanged)&&!wh(i,t));for(let i=0;it8&&Date.now()-a.time>r8){for(let l of a.context.abortListeners)try{l()}catch(o){br(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(i=>i.effects.some(a=>a.is($u)))&&(this.pendingStart=!0);let n=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let i of r.transactions)wh(i,t)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(Qr);for(let t of e.active)t.state==1&&!this.running.some(s=>s.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=Ns(e),s=new Nu(e,t,r.explicitPos==t),n=new kh(r,s);this.running.push(n),Promise.resolve(r.source(s)).then(i=>{n.context.aborted||(n.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:Io.of(null)}),br(this.view.state,i)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Cr).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Cr);for(let s=0;sa.source==n.active.source);if(i&&i.state==1)if(n.done==null){let a=new Wn(n.active.source,0);for(let l of n.updates)a=a.update(l,t);a.state!=1&&e.push(a)}else this.startQuery(i)}e.length&&this.view.dispatch({effects:vk.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(Qr,!1);if(e&&e.tooltip&&this.view.state.facet(Cr).closeOnBlur){let t=e.open&&Pp(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Io.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:$u.of(!1)}),20),this.composing=0}}}),s8=typeof navigator=="object"&&/Win/.test(navigator.platform),i8=sn.highest(lt.domEventHandlers({keydown(r,e){let t=e.state.field(Qr,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(s8&&r.altKey)||r.metaKey)return!1;let s=t.open.options[t.open.selected],n=t.active.find(a=>a.source==s.source),i=s.completion.commitCharacters||n.result.commitCharacters;return i&&i.indexOf(r.key)>-1&&Ih(e,s),!1}})),Sk=lt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),Ah=class{constructor(e,t,s,n){this.field=e,this.line=t,this.from=s,this.to=n}},Ph=class r{constructor(e,t,s){this.field=e,this.from=t,this.to=s}map(e){let t=e.mapPos(this.from,-1,hr.TrackDel),s=e.mapPos(this.to,1,hr.TrackDel);return t==null||s==null?null:new r(this.field,t,s)}},Th=class r{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let s=[],n=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let o of this.lines){if(s.length){let u=a,c=/^\t*/.exec(o)[0].length;for(let p=0;pnew Ph(o.field,n[o.line]+o.from,n[o.line]+o.to));return{text:s,ranges:l}}static parse(e){let t=[],s=[],n=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let l=i[1]?+i[1]:null,o=i[2]||i[3]||"",u=-1;for(let c=0;c=u&&p.field++}n.push(new Ah(u,s.length,i.index,i.index+o.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}for(let l;l=/\\([{}])/.exec(a);){a=a.slice(0,l.index)+l[1]+a.slice(l.index+l[0].length);for(let o of n)o.line==s.length&&o.from>l.index&&(o.from--,o.to--)}s.push(a)}return new r(s,n)}},a8=bt.widget({widget:new class extends ln{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),o8=bt.mark({class:"cm-snippetField"}),la=class r{constructor(e,t){this.ranges=e,this.active=t,this.deco=bt.set(e.map(s=>(s.from==s.to?a8:o8).range(s.from,s.to)))}map(e){let t=[];for(let s of this.ranges){let n=s.map(e);if(!n)return null;t.push(n)}return new r(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(s=>s.field==this.active&&s.from<=t.from&&s.to>=t.to))}},Ro=At.define({map(r,e){return r&&r.map(e)}}),l8=At.define(),Fo=Kt.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Ro))return t.value;if(t.is(l8)&&r)return new la(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>lt.decorations.from(r,e=>e?e.deco:bt.none)});function Fh(r,e){return Xe.create(r.filter(t=>t.field==e).map(t=>Xe.range(t.from,t.to)))}function u8(r){let e=Th.parse(r);return(t,s,n,i)=>{let{text:a,ranges:l}=e.instantiate(t.state,n),o={changes:{from:n,to:i,insert:Bt.of(a)},scrollIntoView:!0,annotations:s?[_h.of(s),cr.userEvent.of("input.complete")]:void 0};if(l.length&&(o.selection=Fh(l,0)),l.some(u=>u.field>0)){let u=new la(l,0),c=o.effects=[Ro.of(u)];t.state.field(Fo,!1)===void 0&&c.push(At.appendConfig.of([Fo,d8,m8,Sk]))}t.dispatch(t.state.update(o))}}function Ek(r){return({state:e,dispatch:t})=>{let s=e.field(Fo,!1);if(!s||r<0&&s.active==0)return!1;let n=s.active+r,i=r>0&&!s.ranges.some(a=>a.field==n+r);return t(e.update({selection:Fh(s.ranges,n),effects:Ro.of(i?null:new la(s.ranges,n)),scrollIntoView:!0})),!0}}var c8=({state:r,dispatch:e})=>r.field(Fo,!1)?(e(r.update({effects:Ro.of(null)})),!0):!1,f8=Ek(1),p8=Ek(-1);var h8=[{key:"Tab",run:f8,shift:p8},{key:"Escape",run:c8}],mk=pt.define({combine(r){return r.length?r[0]:h8}}),d8=sn.highest(Ts.compute([mk],r=>r.facet(mk)));function Br(r,e){return Object.assign(Object.assign({},e),{apply:u8(r)})}var m8=lt.domEventHandlers({mousedown(r,e){let t=e.state.field(Fo,!1),s;if(!t||(s=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let n=t.ranges.find(i=>i.from<=s&&i.to>=s);return!n||n.field==t.active?!1:(e.dispatch({selection:Fh(t.ranges,n.field),effects:Ro.of(t.ranges.some(i=>i.field>n.field)?new la(t.ranges,n.field):null),scrollIntoView:!0}),!0)}});var ju={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ci=At.define({map(r,e){let t=e.mapPos(r,-1,hr.TrackAfter);return t??void 0}}),Rh=new class extends bn{};Rh.startSide=1;Rh.endSide=-1;var Ck=Kt.define({create(){return qt.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:s=>s>=t.from&&s<=t.to})}for(let t of e.effects)t.is(ci)&&(r=r.update({add:[Rh.range(t.value,t.value+1)]}));return r}});function wk(){return[b8,Ck]}var bh="()[]{}<>";function g8(r){for(let e=0;e{if((x8?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let n=r.state.selection.main;if(s.length>2||s.length==2&&jr(xr(s,0))==1||e!=n.from||t!=n.to)return!1;let i=v8(r.state,s);return i?(r.dispatch(i),!0):!1});function v8(r,e){let t=y8(r,r.selection.main.head),s=t.brackets||ju.brackets;for(let n of s){let i=g8(xr(n,0));if(e==n)return i==n?E8(r,n,s.indexOf(n+n+n)>-1,t):O8(r,n,i,t.before||ju.before);if(e==i&&kk(r,r.selection.main.from))return S8(r,n,i)}return null}function kk(r,e){let t=!1;return r.field(Ck).between(0,r.doc.length,s=>{s==e&&(t=!0)}),t}function Bh(r,e){let t=r.sliceString(e,e+2);return t.slice(0,jr(xr(t,0)))}function O8(r,e,t,s){let n=null,i=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:ci.of(a.to+e.length),range:Xe.range(a.anchor+e.length,a.head+e.length)};let l=Bh(r.doc,a.head);return!l||/\s/.test(l)||s.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:ci.of(a.head+e.length),range:Xe.cursor(a.head+e.length)}:{range:n=a}});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function S8(r,e,t){let s=null,n=r.changeByRange(i=>i.empty&&Bh(r.doc,i.head)==t?{changes:{from:i.head,to:i.head+t.length,insert:t},range:Xe.cursor(i.head+t.length)}:s={range:i});return s?null:r.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function E8(r,e,t,s){let n=s.stringPrefixes||ju.stringPrefixes,i=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:ci.of(l.to+e.length),range:Xe.range(l.anchor+e.length,l.head+e.length)};let o=l.head,u=Bh(r.doc,o),c;if(u==e){if(gk(r,o))return{changes:{insert:e+e,from:o},effects:ci.of(o+e.length),range:Xe.cursor(o+e.length)};if(kk(r,o)){let h=t&&r.sliceDoc(o,o+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:o,to:o+h.length,insert:h},range:Xe.cursor(o+h.length)}}}else{if(t&&r.sliceDoc(o-2*e.length,o)==e+e&&(c=yk(r,o-2*e.length,n))>-1&&gk(r,c))return{changes:{insert:e+e+e+e,from:o},effects:ci.of(o+e.length),range:Xe.cursor(o+e.length)};if(r.charCategorizer(o)(u)!=zt.Word&&yk(r,o,n)>-1&&!C8(r,o,e,n))return{changes:{insert:e+e,from:o},effects:ci.of(o+e.length),range:Xe.cursor(o+e.length)}}return{range:i=l}});return i?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function gk(r,e){let t=dr(r).resolveInner(e+1);return t.parent&&t.from==e}function C8(r,e,t,s){let n=dr(r).resolveInner(e,-1),i=s.reduce((a,l)=>Math.max(a,l.length),0);for(let a=0;a<5;a++){let l=r.sliceDoc(n.from,Math.min(n.to,n.from+t.length+i)),o=l.indexOf(t);if(!o||o>-1&&s.indexOf(l.slice(0,o))>-1){let c=n.firstChild;for(;c&&c.from==n.from&&c.to-c.from>t.length+o;){if(r.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let u=n.to==e&&n.parent;if(!u)break;n=u}return!1}function yk(r,e,t){let s=r.charCategorizer(e);if(s(r.sliceDoc(e-1,e))!=zt.Word)return e;for(let n of t){let i=e-n.length;if(r.sliceDoc(i,e)==n&&s(r.sliceDoc(i-1,i))!=zt.Word)return i}return-1}function Ak(r={}){return[i8,Qr,Cr.of(r),n8,k8,Sk]}var w8=[{key:"Ctrl-Space",run:J5},{key:"Escape",run:e8},{key:"ArrowDown",run:Bu(!0)},{key:"ArrowUp",run:Bu(!1)},{key:"PageDown",run:Bu(!0,"page")},{key:"PageUp",run:Bu(!1,"page")},{key:"Enter",run:K5}],k8=sn.highest(Ts.computeN([Cr],r=>r.facet(Cr).defaultKeymap?[w8]:[]));var Nh=class{constructor(e,t,s){this.from=e,this.to=t,this.diagnostic=s}},fi=class r{constructor(e,t,s){this.diagnostics=e,this.panel=t,this.selected=s}static init(e,t,s){let n=e,i=s.facet(Ls).markerFilter;i&&(n=i(n,s));let a=bt.set(n.map(l=>l.from==l.to||l.from==l.to-1&&s.doc.lineAt(l.from).to==l.from?bt.widget({widget:new Lh(l),diagnostic:l}).range(l.from):bt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l,inclusive:!0}).range(l.from,l.to)),!0);return new r(a,t,ua(a))}};function ua(r,e=null,t=0){let s=null;return r.between(t,1e9,(n,i,{spec:a})=>{if(!(e&&a.diagnostic!=e))return s=new Nh(n,i,a.diagnostic),!1}),s}function Dk(r,e){let t=e.pos,s=e.end||t,n=r.state.facet(Ls).hideOn(r,t,s);if(n!=null)return n;let i=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(a=>a.is(Vu))||r.changes.touchesRange(i.from,Math.max(i.to,s)))}function A8(r,e){return r.field(Cn,!1)?e:e.concat(At.appendConfig.of(Mk))}function P8(r,e){return{effects:A8(r,[Vu.of(e)])}}var Vu=At.define(),_k=At.define(),Ik=At.define(),Cn=Kt.define({create(){return new fi(bt.none,null,null)},update(r,e){if(e.docChanged){let t=r.diagnostics.map(e.changes),s=null;if(r.selected){let n=e.changes.mapPos(r.selected.from,1);s=ua(t,r.selected.diagnostic,n)||ua(t,null,n)}r=new fi(t,r.panel,s)}for(let t of e.effects)t.is(Vu)?r=fi.init(t.value,r.panel,e.state):t.is(_k)?r=new fi(r.diagnostics,t.value?$h.open:null,r.selected):t.is(Ik)&&(r=new fi(r.diagnostics,r.panel,t.value));return r},provide:r=>[si.from(r,e=>e.panel),lt.decorations.from(r,e=>e.diagnostics)]});var T8=bt.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function D8(r,e,t){let{diagnostics:s}=r.state.field(Cn),n=[],i=2e8,a=0;s.between(e-(t<0?1:0),e+(t>0?1:0),(o,u,{spec:c})=>{e>=o&&e<=u&&(o==u||(e>o||t>0)&&(eNk(r,t,!1)))}var Pk=r=>{let e=r.state.field(Cn,!1);return!e||!e.panel?!1:(r.dispatch({effects:_k.of(!1)}),!0)};var _8=sr.fromClass(class{constructor(r){this.view=r,this.timeout=-1,this.set=!0;let{delay:e}=r.state.facet(Ls);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let r=Date.now();if(rPromise.resolve(s(this.view)))).then(s=>{let n=s.reduce((i,a)=>i.concat(a));this.view.state.doc==e.doc&&this.view.dispatch(P8(this.view.state,n))},s=>{br(this.view.state,s)})}}update(r){let e=r.state.facet(Ls);(r.docChanged||e!=r.startState.facet(Ls)||e.needsRefresh&&e.needsRefresh(r))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Ls=pt.define({combine(r){return Object.assign({sources:r.map(e=>e.source).filter(e=>e!=null)},Pr(r.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?s=>e(s)||t(s):e:t}))}});function Rk(r,e={}){return[Ls.of({source:r,config:e}),_8,Mk]}function Bk(r){let e=[];if(r)e:for(let{name:t}of r){for(let s=0;si.toLowerCase()==n.toLowerCase())){e.push(n);continue e}}e.push("")}return e}function Nk(r,e,t){var s;let n=t?Bk(e.actions):[];return Zt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Zt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(r):e.message),(s=e.actions)===null||s===void 0?void 0:s.map((i,a)=>{let l=!1,o=h=>{if(h.preventDefault(),l)return;l=!0;let f=ua(r.state.field(Cn).diagnostics,e);f&&i.apply(r,f.from,f.to)},{name:u}=i,c=n[a]?u.indexOf(n[a]):-1,p=c<0?u:[u.slice(0,c),Zt("u",u.slice(c,c+1)),u.slice(c+1)];return Zt("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${u}${c<0?"":` (access key "${n[a]})"`}.`},p)}),e.source&&Zt("div",{class:"cm-diagnosticSource"},e.source))}var Lh=class extends ln{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Zt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}},Uu=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Nk(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},$h=class r{constructor(e){this.view=e,this.items=[];let t=n=>{if(n.keyCode==27)Pk(this.view),this.view.focus();else if(n.keyCode==38||n.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(n.keyCode==40||n.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(n.keyCode==36)this.moveSelection(0);else if(n.keyCode==35)this.moveSelection(this.items.length-1);else if(n.keyCode==13)this.view.focus();else if(n.keyCode>=65&&n.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],a=Bk(i.actions);for(let l=0;l{for(let i=0;iPk(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(Cn).selected;if(!e)return-1;for(let t=0;t{let u=-1,c;for(let p=s;ps&&(this.items.splice(s,u-s),n=!0)),t&&c.diagnostic==t.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),i=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),s++});s({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let o=l.height/this.list.offsetHeight;a.topl.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/o)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let s=e;e=s.nextSibling,s.remove()}for(let s of this.items)if(s.dom.parentNode==this.list){for(;e!=s.dom;)t();e=s.dom.nextSibling}else this.list.insertBefore(s.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Cn),s=ua(t.diagnostics,this.items[e].diagnostic);s&&this.view.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:Ik.of(s)})}static open(e){return new r(e)}};function Qu(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(r)}')`}function qu(r){return Qu(``,'width="6" height="3"')}var I8=lt.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:qu("#d11")},".cm-lintRange-warning":{backgroundImage:qu("orange")},".cm-lintRange-info":{backgroundImage:qu("#999")},".cm-lintRange-hint":{backgroundImage:qu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Tk(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}var Mh=class extends Hr{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((t,s)=>Tk(t)R8(e,t,s)),t}};function F8(r,e){let t=s=>{let n=e.getBoundingClientRect();if(!(s.clientX>n.left-10&&s.clientXn.top-10&&s.clientYe.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,F8(r,e)}let{hoverTime:n}=r.state.facet(Wu),i=setTimeout(s,n);e.onmouseout=()=>{clearTimeout(i),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(i),i=setTimeout(s,n)}}function B8(r,e){let t=Object.create(null);for(let n of e){let i=r.lineAt(n.from);(t[i.from]||(t[i.from]=[])).push(n)}let s=[];for(let n in t)s.push(new Mh(t[n]).range(+n));return qt.of(s,!0)}var N8=Tp({class:"cm-gutter-lint",markers:r=>r.state.field(Lk)}),Lk=Kt.define({create(){return qt.empty},update(r,e){r=r.map(e.changes);let t=e.state.facet(Wu).markerFilter;for(let s of e.effects)if(s.is(Vu)){let n=s.value;t&&(n=t(n||[],e.state)),r=B8(e.state.doc,n.slice(0))}return r}}),jh=At.define(),$k=Kt.define({create(){return null},update(r,e){return r&&e.docChanged&&(r=Dk(e,r)?null:Object.assign(Object.assign({},r),{pos:e.changes.mapPos(r.pos)})),e.effects.reduce((t,s)=>s.is(jh)?s.value:t,r)},provide:r=>Xi.from(r)}),L8=lt.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:Qu('')},".cm-lint-marker-warning":{content:Qu('')},".cm-lint-marker-error":{content:Qu('')}}),Mk=[Cn,lt.decorations.compute([Cn],r=>{let{selected:e,panel:t}=r.field(Cn);return!e||!t||e.from==e.to?bt.none:bt.set([T8.range(e.from,e.to)])}),_C(D8,{hideOn:Dk}),I8],Wu=pt.define({combine(r){return Pr(r,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function jk(r={}){return[Wu.of(r),Lk,N8,L8,$k]}var Uh=class r{constructor(e,t,s,n,i,a,l,o,u,c=0,p){this.p=e,this.stack=t,this.state=s,this.reducePos=n,this.pos=i,this.score=a,this.buffer=l,this.bufferBase=o,this.curContext=u,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,s=0){let n=e.parser.context;return new r(e,[],t,s,s,0,[],0,n?new Zu(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let s=e>>19,n=e&65535,{parser:i}=this.p,a=i.dynamicPrecedence(n);if(a&&(this.score+=a),s==0){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n=2e3&&!(!((t=this.p.parser.nodeSet.types[n])===null||t===void 0)&&t.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,s,n=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[l-4]==0&&a.buffer[l-1]>-1){if(t==s)return;if(a.buffer[l-2]>=t){a.buffer[l-2]=s;return}}}if(!i||this.pos==s)this.buffer.push(e,t,s,n);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>s;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,n>4&&(n-=4);this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=s,this.buffer[a+3]=n}}shift(e,t,s,n){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,s),t<=this.p.parser.maxNode&&this.buffer.push(t,s,n,4);else{let i=e,{parser:a}=this.p;(n>this.pos||t<=a.maxNode)&&(this.pos=n,a.stateFlag(i,1)||(this.reducePos=n)),this.pushState(i,s),this.shiftContext(t,s),t<=a.maxNode&&this.buffer.push(t,s,n,4)}}apply(e,t,s,n){e&65536?this.reduce(e):this.shift(e,t,s,n)}useNode(e,t){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=e)&&(this.p.reused.push(e),s++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(s,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let s=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let s=e<=this.p.parser.maxNode;s&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,s?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Vh(this);;){let s=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(s==0)return!1;if(!(s&65536))return!0;t.reduce(s)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,a;io&1&&l==a)||n.push(t[i],a)}t=n}let s=[];for(let n=0;n>19,n=t&65535,i=this.stack.length-s*3;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;t=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],s=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,a=>{if(!(a&393216))if(a&65536){let l=(a>>19)-i;if(l>1){let o=a&65535,u=this.stack.length-l*3;if(u>=0&&e.getGoto(this.stack[u],o,!1)>=0)return l<<19|65536|o}}else{let l=s(a,i+1);if(l!=null)return l}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Zu=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Vh=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,s=e>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}},Wh=class r{constructor(e,t,s){this.stack=e,this.pos=t,this.index=s,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new r(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new r(this.stack,this.pos,this.index)}};function Bo(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let s=0,n=0;s=92&&a--,a>=34&&a--;let o=a-32;if(o>=46&&(o-=46,l=!0),i+=o,l)break;i*=46}t?t[n++]=i:t=new e(i)}return t}var ca=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},qk=new ca,Zh=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qk,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let s=this.range,n=this.rangeIndex,i=this.pos+e;for(;is.to:i>=s.to;){if(n==this.ranges.length-1)return null;let a=this.ranges[++n];i+=a.from-s.to,s=a}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,s,n;if(t>=0&&t=this.chunk2Pos&&sl.to&&(this.chunk2=this.chunk2.slice(0,l.to-s)),n=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),n}acceptToken(e,t=0){let s=t?this.resolveOffset(t,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=qk,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let s="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(s+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return s}},$s=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:s}=t.p;Zk(this.data,e,t,this.id,s.data,s.tokenPrecTable)}};$s.prototype.contextual=$s.prototype.fallback=$s.prototype.extend=!1;var fa=class{constructor(e,t,s){this.precTable=t,this.elseToken=s,this.data=typeof e=="string"?Bo(e):e}token(e,t){let s=e.pos,n=0;for(;;){let i=e.next<0,a=e.resolveOffset(1,1);if(Zk(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||n++,a==null)break;e.reset(a,e.token)}n&&(e.reset(s,e.token),e.acceptToken(this.elseToken,n))}};fa.prototype.contextual=$s.prototype.fallback=$s.prototype.extend=!1;var pi=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Zk(r,e,t,s,n,i){let a=0,l=1<0){let d=r[f];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||M8(d,e.token.value,n,i))){e.acceptToken(d);break}}let c=e.next,p=0,h=r[a+2];if(e.next<0&&h>p&&r[u+h*3-3]==65535){a=r[u+h*3-1];continue e}for(;p>1,d=u+f+(f<<1),m=r[d],g=r[d+1]||65536;if(c=g)p=f+1;else{a=r[d+2],e.advance();continue e}}break}}function Qk(r,e,t){for(let s=e,n;(n=r[s])!=65535;s++)if(n==t)return s-e;return-1}function M8(r,e,t,s){let n=Qk(t,s,e);return n<0||Qk(t,s,r)e)&&!s.type.isError)return t<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(r.length,Math.max(s.from+1,e+25));if(t<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return t<0?0:r.length}}var zh=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Uk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Uk(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(i instanceof ur){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}},Xh=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(s=>new ca)}getActions(e){let t=0,s=null,{parser:n}=e.p,{tokenizers:i}=n,a=n.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,o=0;for(let u=0;up.end+25&&(o=Math.max(p.lookAhead,o)),p.value!=0)){let h=t;if(p.extended>-1&&(t=this.addActions(e,p.extended,p.end,t)),t=this.addActions(e,p.value,p.end,t),!c.extend&&(s=p,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return o&&e.setLookAhead(o),!s&&e.pos==this.stream.end&&(s=new ca,s.value=e.p.parser.eofTerm,s.start=s.end=e.pos,t=this.addActions(e,s.value,s.end,t)),this.mainToken=s,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new ca,{pos:s,p:n}=e;return t.start=s,t.end=Math.min(s+1,n.stream.end),t.value=s==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,s){let n=this.stream.clipPos(s.pos);if(t.token(this.stream.reset(n,e),s),e.value>-1){let{parser:i}=s.p;for(let a=0;a=0&&s.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,s,n){for(let i=0;ie.bufferLength*4?new zh(s,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,s=this.stacks=[],n,i;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;at)s.push(l);else{if(this.advanceStack(l,s,e))continue;{n||(n=[],i=[]),n.push(l);let o=this.tokens.getMainToken(l);i.push(o.value,o.end)}}break}}if(!s.length){let a=n&&j8(n);if(a)return en&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw en&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n){let a=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,i,s);if(a)return en&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(s.length>a)for(s.sort((l,o)=>o.score-l.score);s.length>a;)s.pop();s.some(l=>l.reducePos>t)&&this.recovering--}else if(s.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((l.score-u.score||l.buffer.length-u.buffer.length)>0)s.splice(o--,1);else{s.splice(a--,1);continue e}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let p=this.fragments.nodeAt(n);p;){let h=this.parser.nodeSet.types[p.type.id]==p.type?i.getGoto(e.state,p.type.id):-1;if(h>-1&&p.length&&(!u||(p.prop(Pt.contextHash)||0)==c))return e.useNode(p,h),en&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(p.type.id)})`),!0;if(!(p instanceof ur)||p.children.length==0||p.positions[0]>0)break;let f=p.children[0];if(f instanceof ur&&p.positions[0]==0)p=f;else break}}let l=i.stateSlot(e.state,4);if(l>0)return e.reduce(l),en&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let u=0;un?t.push(d):s.push(d)}return!1}advanceFully(e,t){let s=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>s)return Vk(e,t),!0}}runRecovery(e,t,s){let n=null,i=!1;for(let a=0;a ":"";if(l.deadEnd&&(i||(i=!0,l.restart(),en&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,s))))continue;let p=l.split(),h=c;for(let f=0;p.forceReduce()&&f<10&&(en&&console.log(h+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,s));f++)en&&(h=this.stackID(p)+" -> ");for(let f of l.recoverByInsert(o))en&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,s);this.stream.end>l.pos?(u==l.pos&&(u++,o=0),l.recoverByDelete(o,u),en&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(o)})`),Vk(l,s)):(!n||n.scorer,zu=class{constructor(e){this.start=e.start,this.shift=e.shift||Qh,this.reduce=e.reduce||Qh,this.reuse=e.reuse||Qh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Xu=class r extends Hi{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[l][1]),n=[];for(let l=0;l=0)i(c,o,l[u++]);else{let p=l[u+-c];for(let h=-c;h>0;h--)i(l[u++],o,p);u++}}}this.nodeSet=new bo(t.map((l,o)=>Tr.define({name:o>=this.minRepeatTerm?void 0:l,id:o,props:n[o],top:s.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=Bo(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new $s(a,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,s){let n=new Gh(this,e,t,s);for(let i of this.wrappers)n=i(n,e,t,s);return n}getGoto(e,t,s=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let a=n[i++],l=a&1,o=n[i++];if(l&&s)return o;for(let u=i+(a>>1);i0}validAction(e,t){return!!this.allActions(e,s=>s==t?!0:null)}allActions(e,t){let s=this.stateSlot(e,4),n=s?t(s):void 0;for(let i=this.stateSlot(e,1);n==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=us(this.data,i+2);else break;n=t(us(this.data,i+1))}return n}nextStates(e){let t=[];for(let s=this.stateSlot(e,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=us(this.data,s+2);else break;if(!(this.data[s+2]&1)){let n=this.data[s+1];t.some((i,a)=>a&1&&i==n)||t.push(this.data[s],n)}}return t}configure(e){let t=Object.assign(Object.create(r.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let s=this.topRules[e.top];if(!s)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=s}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(s=>{let n=e.tokenizers.find(i=>i.from==s);return n?n.to:s})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((s,n)=>{let i=e.specializers.find(l=>l.from==s.external);if(!i)return s;let a=Object.assign(Object.assign({},s),{external:i.to});return t.specializers[n]=Wk(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),s=t.map(()=>!1);if(e)for(let i of e.split(" ")){let a=t.indexOf(i);a>=0&&(s[a]=!0)}let n=null;for(let i=0;is)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scorer.external(t,s)<<1|e}return r.get}var q8=310,zk=1,Q8=2,U8=3,V8=311,W8=313,Z8=314,z8=4,X8=5,G8=0,Kh=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Xk=125,Y8=59,Jh=47,H8=42,K8=43,J8=45,e6=60,t6=44,r6=new zu({start:!1,shift(r,e){return e==z8||e==X8||e==W8?r:e==Z8},strict:!1}),n6=new pi((r,e)=>{let{next:t}=r;(t==Xk||t==-1||e.context)&&r.acceptToken(V8)},{contextual:!0,fallback:!0}),s6=new pi((r,e)=>{let{next:t}=r,s;Kh.indexOf(t)>-1||t==Jh&&((s=r.peek(1))==Jh||s==H8)||t!=Xk&&t!=Y8&&t!=-1&&!e.context&&r.acceptToken(q8)},{contextual:!0}),i6=new pi((r,e)=>{let{next:t}=r;if((t==K8||t==J8)&&(r.advance(),t==r.next)){r.advance();let s=!e.context&&e.canShift(zk);r.acceptToken(s?zk:Q8)}},{contextual:!0});function Hh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}var a6=new pi((r,e)=>{if(r.next!=e6||!e.dialectEnabled(G8)||(r.advance(),r.next==Jh))return;let t=0;for(;Kh.indexOf(r.next)>-1;)r.advance(),t++;if(Hh(r.next,!0)){for(r.advance(),t++;Hh(r.next,!1);)r.advance(),t++;for(;Kh.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==t6)return;for(let s=0;;s++){if(s==7){if(!Hh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(s))break;r.advance(),t++}}r.acceptToken(U8,-t)}),o6=ou({"get set async static":Pe.modifier,"for while do if else switch try catch finally return throw break continue default case":Pe.controlKeyword,"in of await yield void typeof delete instanceof":Pe.operatorKeyword,"let var const using function class extends":Pe.definitionKeyword,"import export from":Pe.moduleKeyword,"with debugger as new":Pe.keyword,TemplateString:Pe.special(Pe.string),super:Pe.atom,BooleanLiteral:Pe.bool,this:Pe.self,null:Pe.null,Star:Pe.modifier,VariableName:Pe.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Pe.function(Pe.variableName),VariableDefinition:Pe.definition(Pe.variableName),Label:Pe.labelName,PropertyName:Pe.propertyName,PrivatePropertyName:Pe.special(Pe.propertyName),"CallExpression/MemberExpression/PropertyName":Pe.function(Pe.propertyName),"FunctionDeclaration/VariableDefinition":Pe.function(Pe.definition(Pe.variableName)),"ClassDeclaration/VariableDefinition":Pe.definition(Pe.className),PropertyDefinition:Pe.definition(Pe.propertyName),PrivatePropertyDefinition:Pe.definition(Pe.special(Pe.propertyName)),UpdateOp:Pe.updateOperator,"LineComment Hashbang":Pe.lineComment,BlockComment:Pe.blockComment,Number:Pe.number,String:Pe.string,Escape:Pe.escape,ArithOp:Pe.arithmeticOperator,LogicOp:Pe.logicOperator,BitOp:Pe.bitwiseOperator,CompareOp:Pe.compareOperator,RegExp:Pe.regexp,Equals:Pe.definitionOperator,Arrow:Pe.function(Pe.punctuation),": Spread":Pe.punctuation,"( )":Pe.paren,"[ ]":Pe.squareBracket,"{ }":Pe.brace,"InterpolationStart InterpolationEnd":Pe.special(Pe.brace),".":Pe.derefOperator,", ;":Pe.separator,"@":Pe.meta,TypeName:Pe.typeName,TypeDefinition:Pe.definition(Pe.typeName),"type enum interface implements namespace module declare":Pe.definitionKeyword,"abstract global Privacy readonly override":Pe.modifier,"is keyof unique infer":Pe.operatorKeyword,JSXAttributeValue:Pe.attributeValue,JSXText:Pe.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Pe.angleBracket,"JSXIdentifier JSXNameSpacedName":Pe.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Pe.attributeName,"JSXBuiltin/JSXIdentifier":Pe.standard(Pe.tagName)}),l6={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:154,yield:163,await:167,class:172,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:288,keyof:341,unique:345,infer:351,is:387,abstract:407,implements:409,type:411,let:414,var:416,using:419,interface:425,enum:429,namespace:435,module:437,declare:441,global:445,for:464,of:473,while:476,with:480,do:484,if:488,else:490,switch:494,case:500,try:506,catch:510,finally:514,return:518,throw:522,break:526,continue:530,debugger:534},u6={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:391},c6={__proto__:null,"<":145},Gk=Xu.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DzO0fQ^O'#ESOOQ?Mr'#E['#E[O1PQWO'#EXOOQO'#Em'#EmOOQO'#If'#IfO1XQWO'#GnO1dQWO'#ElO1iQWO'#ElO3kQ?NdO'#JjO6[Q?NdO'#JkO6xQWO'#F[O6}Q&jO'#FrOOQ?Mr'#Fd'#FdO7YO,YO'#FdO7hQ7[O'#FyO9UQWO'#FxOOQ?Mr'#Jk'#JkOOQ?Mp'#Jj'#JjO9ZQWO'#GrOOQU'#KW'#KWO9fQWO'#ISO9kQ?MxO'#ITOOQU'#JX'#JXOOQU'#IX'#IXQ`Q^OOO`Q^OOO9sQMnO'#DsO9zQ^O'#EOO:RQ^O'#EQO9aQWO'#GnO:YQ7[O'#CnO:hQWO'#EkO:sQWO'#EvO:xQ7[O'#FcO;gQWO'#GnOOQO'#KX'#KXO;lQWO'#KXO;zQWO'#GvO;zQWO'#GwO;zQWO'#GyO9aQWO'#G|OYQWO'#CdO>jQWO'#H]O>rQWO'#HcO>rQWO'#HeO`Q^O'#HgO>rQWO'#HiO>rQWO'#HlO>wQWO'#HrO>|Q?MyO'#HxO%[Q^O'#HzO?XQ?MyO'#H|O?dQ?MyO'#IOO9kQ?MxO'#IQO?oQ?NdO'#ChO@qQ`O'#DiQOQWOOO%[Q^O'#EQOAXQWO'#ETO:YQ7[O'#EkOAdQWO'#EkOAoQpO'#FcOOQU'#Cf'#CfOOQ?Mp'#Dn'#DnOOQ?Mp'#Jn'#JnO%[Q^O'#JnOOQO'#Jr'#JrOOQO'#Ic'#IcOBoQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Ju'#JuOCkQ?NQO'#EdOCuQ`O'#EWOOQO'#Jq'#JqODZQ`O'#JrOEhQ`O'#EWOCuQ`O'#EdPEuO#@ItO'#CaPOOO)CDv)CDvOOOO'#IY'#IYOFQO!bO,59TOOQ?Mr,59T,59TOOOO'#IZ'#IZOF`O#tO,59TO%[Q^O'#D`OOOO'#I]'#I]OFnO!0LbO,59xOOQ?Mr,59x,59xOF|Q^O'#I^OGaQWO'#JlOIcQrO'#JlO+}Q^O'#JlOIjQWO,5:OOJQQWO'#EmOJ_QWO'#J{OJjQWO'#JzOJjQWO'#JzOJrQWO,5;ZOJwQWO'#JyOOQ?Mv,5:Z,5:ZOKOQ^O,5:ZOMPQ?NdO,5:fOMpQWO,5:nONZQ?MxO'#JxONbQWO'#JwO9ZQWO'#JwONvQWO'#JwO! OQWO,5;YO! TQWO'#JwO!#]QrO'#JkOOQ?Mr'#Ch'#ChO%[Q^O'#ESO!#{QpO,5:sOOQO'#Js'#JsOOQO-EnOOQU'#Ja'#JaOOQU,5>o,5>oOOQU-EfQ?NdO,5:jO%[Q^O,5:jO!APQ?NdO,5:lOOQO,5@s,5@sO!ApQ7[O,5=YO!BOQ?MxO'#JbO9UQWO'#JbO!BaQ?MxO,59YO!BlQ`O,59YO!BtQ7[O,59YO:YQ7[O,59YO!CPQWO,5;WO!CXQWO'#H[O!CmQWO'#K]O%[Q^O,5;{O!9jQ`O,5;}O!CuQWO,5=uO!CzQWO,5=uO!DPQWO,5=uO9kQ?MxO,5=uO;zQWO,5=eOOQO'#Cu'#CuO!D_Q`O,5=bO!DgQ7[O,5=cO!DrQWO,5=eO!DwQpO,5=hO!EPQWO'#KXO>wQWO'#HRO9aQWO'#HTO!EUQWO'#HTO:YQ7[O'#HVO!EZQWO'#HVOOQU,5=k,5=kO!E`QWO'#HWO!EqQWO'#CnO!EvQWO,59OO!FQQWO,59OO!HVQ^O,59OOOQU,59O,59OO!HgQ?MxO,59OO%[Q^O,59OO!JrQ^O'#H_OOQU'#H`'#H`OOQU'#Ha'#HaO`Q^O,5=wO!KYQWO,5=wO`Q^O,5=}O`Q^O,5>PO!K_QWO,5>RO`Q^O,5>TO!KdQWO,5>WO!KiQ^O,5>^OOQU,5>d,5>dO%[Q^O,5>dO9kQ?MxO,5>fOOQU,5>h,5>hO# sQWO,5>hOOQU,5>j,5>jO# sQWO,5>jOOQU,5>l,5>lO#!aQ`O'#D[O%[Q^O'#JnO#!kQ`O'#JnO##YQ`O'#DjO##kQ`O'#DjO#%|Q^O'#DjO#&TQWO'#JmO#&]QWO,5:TO#&bQWO'#EqO#&pQWO'#J|O#&xQWO,5;[O#&}Q`O'#DjO#'[Q`O'#EVOOQ?Mr,5:o,5:oO%[Q^O,5:oO#'cQWO,5:oO>wQWO,5;VO!BlQ`O,5;VO!BtQ7[O,5;VO:YQ7[O,5;VO#'kQWO,5@YO#'pQ(CWO,5:sOOQO-ExO+}Q^O,5>xOOQO,5?O,5?OO#*xQ^O'#I^OOQO-E<[-E<[O#+VQWO,5@WO#+_QrO,5@WO#+fQWO,5@fOOQ?Mr1G/j1G/jO%[Q^O,5@gO#+nQWO'#IdOOQO-ErQWO1G3mO$5xQ^O1G3oO$9|Q^O'#HnOOQU1G3r1G3rO$:ZQWO'#HtO>wQWO'#HvOOQU1G3x1G3xO$:cQ^O1G3xO9kQ?MxO1G4OOOQU1G4Q1G4QOOQ?Mp'#GZ'#GZO9kQ?MxO1G4SO9kQ?MxO1G4UO$>jQWO,5@YO!*mQ^O,5;]O9ZQWO,5;]O>wQWO,5:UO!*mQ^O,5:UO!BlQ`O,5:UO$>oQ07bO,5:UOOQO,5;],5;]O$>yQ`O'#I_O$?aQWO,5@XOOQ?Mr1G/o1G/oO$?iQ`O'#IeO$?sQWO,5@hOOQ?Mp1G0v1G0vO##kQ`O,5:UOOQO'#Ib'#IbO$?{Q`O,5:qOOQ?Mv,5:q,5:qO#'fQWO1G0ZOOQ?Mr1G0Z1G0ZO%[Q^O1G0ZOOQ?Mr1G0q1G0qO>wQWO1G0qO!BlQ`O1G0qO!BtQ7[O1G0qOOQ?Mp1G5t1G5tO!BaQ?MxO1G0^OOQO1G0j1G0jO%[Q^O1G0jO$@SQ?MxO1G0jO$@_Q?MxO1G0jO!BlQ`O1G0^OCuQ`O1G0^O$@mQ?MxO1G0jOOQO1G0^1G0^O$ARQ?NdO1G0jPOOO-ExO$AoQWO1G5rO$AwQWO1G6QO$BPQrO1G6RO9ZQWO,5?OO$BZQ?NdO1G6OO%[Q^O1G6OO$BkQ?MxO1G6OO$B|QWO1G5}O$B|QWO1G5}O9ZQWO1G5}O$CUQWO,5?RO9ZQWO,5?ROOQO,5?R,5?RO$CjQWO,5?RO$*oQWO,5?ROOQO-EYOOQU,5>Y,5>YO%[Q^O'#HoO%;tQWO'#HqOOQU,5>`,5>`O9ZQWO,5>`OOQU,5>b,5>bOOQU7+)d7+)dOOQU7+)j7+)jOOQU7+)n7+)nOOQU7+)p7+)pO%;yQ`O1G5tO%<_Q07bO1G0wO%wQWO1G/pO!*mQ^O'#DjOOQO,5>y,5>yOOQO-E<]-E<]OOQO,5?P,5?POOQO-EwQWO7+&]O!BlQ`O7+&]OOQO7+%x7+%xO$ARQ?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%=OQ?MxO7+&UO!BaQ?MxO7+%xO!BlQ`O7+%xO%=ZQ?MxO7+&UO%=iQ?NdO7++jO%[Q^O7++jO%=yQWO7++iO%=yQWO7++iOOQO1G4m1G4mO9ZQWO1G4mO%>RQWO1G4mOOQO7+%}7+%}O#'fQWO<aQWO<iQWO<tQ?NdO,5?ZO%APQ?NdO,5?]O%C[Q?NdO1G2[O%EmQ?NdO1G2nO%GxQ?NdO1G2pO%JTQ7[O,5>zOOQO-E<^-E<^O%J_QrO,5>{O%[Q^O,5>{OOQO-E<_-E<_O%JiQWO1G5vOOQ?Mr<ZOOQU,5>],5>]O&wQWO7+%[OOQ?Mr<wQWO<wQWO7+)fO'*yQWO<PO#w$WO(q#}O(r$OO~P#>POP$^OZ$eOn$RO|#zO}#{O!P#|O!i$TO!j#xO!l#yO!p$^O#k$PO#l$QO#m$QO#n$QO#o$SO#p$TO#q$TO#r$dO#s$TO#u$UO#w$WO#y$YO(YVO(q#}O(r$OO~O`#ji!Y#ji#z#ji's#ji(j#ji'q#ji!V#ji!k#jir#ji![#ji%d#ji!d#ji~P#@wOP[XZ[Xn[X|[X}[X!P[X!i[X!j[X!l[X!p[X#][X#heX#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#s[X#u[X#w[X#y[X#z[X$P[X(Y[X(j[X(q[X(r[X!Y[X!Z[X~O#}[X~P#CbOP$^OZ;SOn:vO|#zO}#{O!P#|O!i:xO!j#xO!l#yO!p$^O#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O#z;OO(YVO(j$[O(q#}O(r$OO~O#}.xO~P#EoO#];TO$P;TO#}(_X!Z(_X~P! cO`'^a!Y'^a's'^a'q'^a!k'^a!V'^ar'^a!['^a%d'^a!d'^a~P!:ROP#jiZ#ji`#jin#ji}#ji!Y#ji!i#ji!j#ji!l#ji!p#ji#k#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji's#ji(Y#ji(j#ji'q#ji!V#ji!k#jir#ji![#ji%d#ji!d#ji~P#/OO`$Oi!Y$Oi's$Oi'q$Oi!V$Oi!k$Oir$Oi![$Oi%d$Oi!d$Oi~P!:RO$Z.}O$].}O~O$Z/OO$]/OO~O!d)eO#]/PO![$aX$X$aX$Z$aX$]$aX$d$aX~O!X/QO~O![)hO$X/SO$Z)gO$])gO$d/TO~O!Y;PO!Z(^X~P#EoO!Z/UO~O!d)eO$d(sX~O$d/WO~Ot)wO(Z)xO([/ZO~O!V/_O~P!&kO(q%OOj%[a|%[a!P%[a(r%[a!Y%[a#]%[a~Of%[a#}%[a~P#NPO(r%QOj%^a|%^a!P%^a(q%^a!Y%^a#]%^a~Of%^a#}%^a~P#NrO!YeX!deX!keX!k$vX(jeX~P!/{O!X/hO!Y(YO'|/gO!V(nP!V(xP~P!1sOn*pO!_*nO!`*gO!a*gO!l*_O#X*oO%Z*jO'}!lO~Oo'XO!P/iO!X+VO!Z*mO(OTO(RUO(];cO!Z(pP~P$!]O!k/jO~P#/OO!Y/kO!d#vO(j'mO!k(wX~O!k/pO~O!P%fO!X*[O![%gO'|%eO!k(wP~O#h/rO~O!V$vX!Y$vX!d$}X~P!/{O!Y/sO!V(xX~P#/OO!d/uO~O!V/wO~Og%WOn/{O!d#vO!l%cO(j'mO~O'|/}O~O!d+eO~O`%lO!Y0RO's%lO~O!Z0TO~P!5gO!`0UO!a0UO'}!lO(]!mO~O!P0WO(]!mO~O#X0XO~Of%[a!Y%[a#]%[a#}%[a~P!1UOf%^a!Y%^a#]%^a#}%^a~P!1UO'|&WOf'gX!Y'gX~O!Y*vOf(Va~Of0bO~O|0cO}0cO!P0dOjya(qya(rya!Yya#]ya~Ofya#}ya~P$(OO|)|O!P)}Oj$oa(q$oa(r$oa!Y$oa#]$oa~Of$oa#}$oa~P$(tO|)|O!P)}Oj$qa(q$qa(r$qa!Y$qa#]$qa~Of$qa#}$qa~P$)gO#h0fO~Of%Pa!Y%Pa#]%Pa#}%Pa~P!1UO!d#vO~O#h0iO~O!Y+XO`(|a's(|a~O|#zO}#{O!P#|O!j#xO!l#yO(YVOP!riZ!rin!ri!Y!ri!i!ri!p!ri#k!ri#l!ri#m!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#u!ri#w!ri#y!ri#z!ri(j!ri(q!ri(r!ri~O`!ri's!ri'q!ri!V!ri!k!rir!ri![!ri%d!ri!d!ri~P$+UOg%WOn$uOo$tOp$tOv%YOx%ZOz;YO!P$|O![$}O!fX#>_#>e#>s#?Y#@w#AV#A^#Br#CQ#Dl#Dz#EQ#EW#E^#Eh#En#Et#FO#Fb#FhPPPPPPPPPP#FnPPPPPPP#Gc#Jj#Ky#LQ#LYPPPP$#`$&W$,p$,s$,v$-c$-f$-i$-p$-xP$.OP$.l$.p$/h$0v$0{$1cPP$1h$1n$1rP$1u$1y$1}$2s$3[$3s$3w$3z$3}$4T$4W$4[$4`R!|RoqOXst!Z#d%k&o&q&r&t,m,r2P2SY!vQ']-_1d5fQ%rvQ%zyQ&R|Q&g!VS'T!e-VQ'c!iS'i!r!yU*g$}*X*lQ+k%{Q+x&TQ,^&aQ-]'[Q-g'dQ-o'jQ0U*nQ1n,_R;b:o%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#y#|$P$Q$R$S$T$U$V$W$X$Y$Z$b$f%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(x(|){+S+W,j,m,r-c-k-y.P.q.x/i0d0i0y1g1w1x1z1|2P2S2U2u2{3c5c5m5}6O6R6f8P8U8e8oS#q]:l!r)^$]$n'U)p-O-R/Q2e3x5a6]9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:373,context:r6,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,202,206,210,211,213,216,219,229,231,237,239,241,243,246,252,258,260,262,264,266,268,269,"Statement",-33,12,13,28,31,32,38,48,51,52,54,59,67,69,76,80,82,84,85,107,108,117,118,135,138,140,141,142,143,145,146,165,166,168,"Expression",-23,27,29,33,37,39,41,169,171,173,174,176,177,178,180,181,182,184,185,186,196,198,200,201,"Type",-3,88,100,106,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",73,"(",158,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",74,")",163,"JSXEndTag"]],propSources:[o6],skippedNodes:[0,4,5,272],repeatNodeCount:37,tokenData:"$HR07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$.S!c!}Er!}#O$/^#O#P$0h#P#Q$6P#Q#R$7Z#R#SEr#S#T$8h#T#o$9r#o#p$>S#p#q$>x#q#r$@Y#r#s$Af#s$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$I|Er$I|$I}$E{$I}$JO$E{$JO$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr(n%d_$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$g&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$g&j(S!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(S!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$g&j(PpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(PpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Pp(S!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$g&j(Pp(S!b'u0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(Q#S$g&j'v0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$g&j(Pp(S!b'v0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$g&j!p),Q(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(O':f$g&j(S!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$g&j(S!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$g&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$b`$g&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$b``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$b`$g&j(S!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(S!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$b`(S!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$g&j(Pp(S!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$g&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(S!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$g&j(PpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(PpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Pp(S!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$g&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$g&j(S!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(S!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(S!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(S!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$g&j(S!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$g&j#})Lv(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_`l$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^g#)`!i-PP;=`<%l$9r#Jf$>]X![#Hb(Pp(S!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$?Ta(q+JY$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$,u#q;'S%Z;'S;=`+a<%lO%Z(Kd$@g_!Z(Cdr`$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$Aq_!q7`$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$CR|$g&j(Pp(S!b'u0/l$Z#t'|,2j(]$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr07[$F^k$g&j(Pp(S!b'v0/l$Z#t'|,2j(]$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[s6,i6,a6,2,3,4,5,6,7,8,9,10,11,12,13,14,n6,new fa("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO([~~",141,333),new fa("j~RQYZXz{^~^O'y~~aP!P!Qd~iO'z~~",25,316)],topRules:{Script:[0,6],SingleExpression:[1,270],SingleClassItem:[2,271]},dialects:{jsx:0,ts:14840},dynamicPrecedences:{70:1,80:1,82:1,166:1,194:1},specialized:[{term:320,get:r=>l6[r]||-1},{term:335,get:r=>u6[r]||-1},{term:71,get:r=>c6[r]||-1}],tokenPrec:14864});var eA=[Br("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Br("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Br("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Br("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Br("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Br(`try { +(()=>{var EN=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});function Di(r){let e=r.length;for(;--e>=0;)r[e]=0}var CN=0,T1=1,wN=2,kN=3,AN=258,Hc=29,$a=256,Da=$a+1+Hc,Ai=30,Kc=19,D1=2*Da+1,qs=15,Pc=16,PN=7,Jc=256,_1=16,I1=17,F1=18,Qc=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),el=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),TN=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),R1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DN=512,ts=new Array((Da+2)*2);Di(ts);var Aa=new Array(Ai*2);Di(Aa);var _a=new Array(DN);Di(_a);var Ia=new Array(AN-kN+1);Di(Ia);var ef=new Array(Hc);Di(ef);var tl=new Array(Ai);Di(tl);function Tc(r,e,t,s,n){this.static_tree=r,this.extra_bits=e,this.extra_base=t,this.elems=s,this.max_length=n,this.has_stree=r&&r.length}var B1,N1,L1;function Dc(r,e){this.dyn_tree=r,this.max_code=0,this.stat_desc=e}var $1=r=>r<256?_a[r]:_a[256+(r>>>7)],Fa=(r,e)=>{r.pending_buf[r.pending++]=e&255,r.pending_buf[r.pending++]=e>>>8&255},Lr=(r,e,t)=>{r.bi_valid>Pc-t?(r.bi_buf|=e<>Pc-r.bi_valid,r.bi_valid+=t-Pc):(r.bi_buf|=e<{Lr(r,t[e*2],t[e*2+1])},M1=(r,e)=>{let t=0;do t|=r&1,r>>>=1,t<<=1;while(--e>0);return t>>>1},_N=r=>{r.bi_valid===16?(Fa(r,r.bi_buf),r.bi_buf=0,r.bi_valid=0):r.bi_valid>=8&&(r.pending_buf[r.pending++]=r.bi_buf&255,r.bi_buf>>=8,r.bi_valid-=8)},IN=(r,e)=>{let t=e.dyn_tree,s=e.max_code,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,a=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,o=e.stat_desc.max_length,u,c,p,h,f,d,m=0;for(h=0;h<=qs;h++)r.bl_count[h]=0;for(t[r.heap[r.heap_max]*2+1]=0,u=r.heap_max+1;uo&&(h=o,m++),t[c*2+1]=h,!(c>s)&&(r.bl_count[h]++,f=0,c>=l&&(f=a[c-l]),d=t[c*2],r.opt_len+=d*(h+f),i&&(r.static_len+=d*(n[c*2+1]+f)));if(m!==0){do{for(h=o-1;r.bl_count[h]===0;)h--;r.bl_count[h]--,r.bl_count[h+1]+=2,r.bl_count[o]--,m-=2}while(m>0);for(h=o;h!==0;h--)for(c=r.bl_count[h];c!==0;)p=r.heap[--u],!(p>s)&&(t[p*2+1]!==h&&(r.opt_len+=(h-t[p*2+1])*t[p*2],t[p*2+1]=h),c--)}},j1=(r,e,t)=>{let s=new Array(qs+1),n=0,i,a;for(i=1;i<=qs;i++)n=n+t[i-1]<<1,s[i]=n;for(a=0;a<=e;a++){let l=r[a*2+1];l!==0&&(r[a*2]=M1(s[l]++,l))}},FN=()=>{let r,e,t,s,n,i=new Array(qs+1);for(t=0,s=0;s>=7;s{let e;for(e=0;e{r.bi_valid>8?Fa(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},WO=(r,e,t,s)=>{let n=e*2,i=t*2;return r[n]{let s=r.heap[t],n=t<<1;for(;n<=r.heap_len&&(n{let s,n,i=0,a,l;if(r.sym_next!==0)do s=r.pending_buf[r.sym_buf+i++]&255,s+=(r.pending_buf[r.sym_buf+i++]&255)<<8,n=r.pending_buf[r.sym_buf+i++],s===0?Tn(r,n,e):(a=Ia[n],Tn(r,a+$a+1,e),l=Qc[a],l!==0&&(n-=ef[a],Lr(r,n,l)),s--,a=$1(s),Tn(r,a,t),l=el[a],l!==0&&(s-=tl[a],Lr(r,s,l)));while(i{let t=e.dyn_tree,s=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.elems,a,l,o=-1,u;for(r.heap_len=0,r.heap_max=D1,a=0;a>1;a>=1;a--)_c(r,t,a);u=i;do a=r.heap[1],r.heap[1]=r.heap[r.heap_len--],_c(r,t,1),l=r.heap[1],r.heap[--r.heap_max]=a,r.heap[--r.heap_max]=l,t[u*2]=t[a*2]+t[l*2],r.depth[u]=(r.depth[a]>=r.depth[l]?r.depth[a]:r.depth[l])+1,t[a*2+1]=t[l*2+1]=u,r.heap[1]=u++,_c(r,t,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],IN(r,e),j1(t,o,r.bl_count)},zO=(r,e,t)=>{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),e[(t+1)*2+1]=65535,s=0;s<=t;s++)i=a,a=e[(s+1)*2+1],!(++l{let s,n=-1,i,a=e[0*2+1],l=0,o=7,u=4;for(a===0&&(o=138,u=3),s=0;s<=t;s++)if(i=a,a=e[(s+1)*2+1],!(++l{let e;for(zO(r,r.dyn_ltree,r.l_desc.max_code),zO(r,r.dyn_dtree,r.d_desc.max_code),Uc(r,r.bl_desc),e=Kc-1;e>=3&&r.bl_tree[R1[e]*2+1]===0;e--);return r.opt_len+=3*(e+1)+5+5+4,e},BN=(r,e,t,s)=>{let n;for(Lr(r,e-257,5),Lr(r,t-1,5),Lr(r,s-4,4),n=0;n{let e=4093624447,t;for(t=0;t<=31;t++,e>>>=1)if(e&1&&r.dyn_ltree[t*2]!==0)return 0;if(r.dyn_ltree[9*2]!==0||r.dyn_ltree[10*2]!==0||r.dyn_ltree[13*2]!==0)return 1;for(t=32;t<$a;t++)if(r.dyn_ltree[t*2]!==0)return 1;return 0},GO=!1,LN=r=>{GO||(FN(),GO=!0),r.l_desc=new Dc(r.dyn_ltree,B1),r.d_desc=new Dc(r.dyn_dtree,N1),r.bl_desc=new Dc(r.bl_tree,L1),r.bi_buf=0,r.bi_valid=0,q1(r)},U1=(r,e,t,s)=>{Lr(r,(CN<<1)+(s?1:0),3),Q1(r),Fa(r,t),Fa(r,~t),t&&r.pending_buf.set(r.window.subarray(e,e+t),r.pending),r.pending+=t},$N=r=>{Lr(r,T1<<1,3),Tn(r,Jc,ts),_N(r)},MN=(r,e,t,s)=>{let n,i,a=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=NN(r)),Uc(r,r.l_desc),Uc(r,r.d_desc),a=RN(r),n=r.opt_len+3+7>>>3,i=r.static_len+3+7>>>3,i<=n&&(n=i)):n=i=t+5,t+4<=n&&e!==-1?U1(r,e,t,s):r.strategy===4||i===n?(Lr(r,(T1<<1)+(s?1:0),3),ZO(r,ts,Aa)):(Lr(r,(wN<<1)+(s?1:0),3),BN(r,r.l_desc.max_code+1,r.d_desc.max_code+1,a+1),ZO(r,r.dyn_ltree,r.dyn_dtree)),q1(r),s&&Q1(r)},jN=(r,e,t)=>(r.pending_buf[r.sym_buf+r.sym_next++]=e,r.pending_buf[r.sym_buf+r.sym_next++]=e>>8,r.pending_buf[r.sym_buf+r.sym_next++]=t,e===0?r.dyn_ltree[t*2]++:(r.matches++,e--,r.dyn_ltree[(Ia[t]+$a+1)*2]++,r.dyn_dtree[$1(e)*2]++),r.sym_next===r.sym_end),qN=LN,QN=U1,UN=MN,VN=jN,WN=$N,ZN={_tr_init:qN,_tr_stored_block:QN,_tr_flush_block:UN,_tr_tally:VN,_tr_align:WN},zN=(r,e,t,s)=>{let n=r&65535|0,i=r>>>16&65535|0,a=0;for(;t!==0;){a=t>2e3?2e3:t,t-=a;do n=n+e[s++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0},Ra=zN,XN=()=>{let r,e=[];for(var t=0;t<256;t++){r=t;for(var s=0;s<8;s++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e},GN=new Uint32Array(XN()),YN=(r,e,t,s)=>{let n=GN,i=s+t;r^=-1;for(let a=s;a>>8^n[(r^e[a])&255];return r^-1},mr=YN,Vs={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},zs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:HN,_tr_stored_block:Vc,_tr_flush_block:KN,_tr_tally:xs,_tr_align:JN}=ZN,{Z_NO_FLUSH:bs,Z_PARTIAL_FLUSH:eL,Z_FULL_FLUSH:tL,Z_FINISH:en,Z_BLOCK:YO,Z_OK:vr,Z_STREAM_END:HO,Z_STREAM_ERROR:Dn,Z_DATA_ERROR:rL,Z_BUF_ERROR:Ic,Z_DEFAULT_COMPRESSION:nL,Z_FILTERED:sL,Z_HUFFMAN_ONLY:Go,Z_RLE:iL,Z_FIXED:aL,Z_DEFAULT_STRATEGY:oL,Z_UNKNOWN:lL,Z_DEFLATED:sl}=zs,uL=9,cL=15,fL=8,pL=29,hL=256,Wc=hL+1+pL,dL=30,mL=19,gL=2*Wc+1,yL=15,It=3,ys=258,_n=ys+It+1,xL=32,Pi=42,tf=57,Zc=69,zc=73,Xc=91,Gc=103,Qs=113,wa=666,Tr=1,_i=2,Ws=3,Ii=4,bL=3,Us=(r,e)=>(r.msg=Vs[e],e),KO=r=>r*2-(r>4?9:0),gs=r=>{let e=r.length;for(;--e>=0;)r[e]=0},vL=r=>{let e,t,s,n=r.w_size;e=r.hash_size,s=e;do t=r.head[--s],r.head[s]=t>=n?t-n:0;while(--e);e=n,s=e;do t=r.prev[--s],r.prev[s]=t>=n?t-n:0;while(--e)},OL=(r,e,t)=>(e<{let e=r.state,t=e.pending;t>r.avail_out&&(t=r.avail_out),t!==0&&(r.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+t),r.next_out),r.next_out+=t,e.pending_out+=t,r.total_out+=t,r.avail_out-=t,e.pending-=t,e.pending===0&&(e.pending_out=0))},Wr=(r,e)=>{KN(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,e),r.block_start=r.strstart,Vr(r.strm)},$t=(r,e)=>{r.pending_buf[r.pending++]=e},Ca=(r,e)=>{r.pending_buf[r.pending++]=e>>>8&255,r.pending_buf[r.pending++]=e&255},Yc=(r,e,t,s)=>{let n=r.avail_in;return n>s&&(n=s),n===0?0:(r.avail_in-=n,e.set(r.input.subarray(r.next_in,r.next_in+n),t),r.state.wrap===1?r.adler=Ra(r.adler,e,n,t):r.state.wrap===2&&(r.adler=mr(r.adler,e,n,t)),r.next_in+=n,r.total_in+=n,n)},V1=(r,e)=>{let t=r.max_chain_length,s=r.strstart,n,i,a=r.prev_length,l=r.nice_match,o=r.strstart>r.w_size-_n?r.strstart-(r.w_size-_n):0,u=r.window,c=r.w_mask,p=r.prev,h=r.strstart+ys,f=u[s+a-1],d=u[s+a];r.prev_length>=r.good_match&&(t>>=2),l>r.lookahead&&(l=r.lookahead);do if(n=e,!(u[n+a]!==d||u[n+a-1]!==f||u[n]!==u[s]||u[++n]!==u[s+1])){s+=2,n++;do;while(u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&u[++s]===u[++n]&&sa){if(r.match_start=e,a=i,i>=l)break;f=u[s+a-1],d=u[s+a]}}while((e=p[e&c])>o&&--t!==0);return a<=r.lookahead?a:r.lookahead},Ti=r=>{let e=r.w_size,t,s,n;do{if(s=r.window_size-r.lookahead-r.strstart,r.strstart>=e+(e-_n)&&(r.window.set(r.window.subarray(e,e+e-s),0),r.match_start-=e,r.strstart-=e,r.block_start-=e,r.insert>r.strstart&&(r.insert=r.strstart),vL(r),s+=e),r.strm.avail_in===0)break;if(t=Yc(r.strm,r.window,r.strstart+r.lookahead,s),r.lookahead+=t,r.lookahead+r.insert>=It)for(n=r.strstart-r.insert,r.ins_h=r.window[n],r.ins_h=vs(r,r.ins_h,r.window[n+1]);r.insert&&(r.ins_h=vs(r,r.ins_h,r.window[n+It-1]),r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,r.insert--,!(r.lookahead+r.insert{let t=r.pending_buf_size-5>r.w_size?r.w_size:r.pending_buf_size-5,s,n,i,a=0,l=r.strm.avail_in;do{if(s=65535,i=r.bi_valid+42>>3,r.strm.avail_outn+r.strm.avail_in&&(s=n+r.strm.avail_in),s>i&&(s=i),s>8,r.pending_buf[r.pending-2]=~s,r.pending_buf[r.pending-1]=~s>>8,Vr(r.strm),n&&(n>s&&(n=s),r.strm.output.set(r.window.subarray(r.block_start,r.block_start+n),r.strm.next_out),r.strm.next_out+=n,r.strm.avail_out-=n,r.strm.total_out+=n,r.block_start+=n,s-=n),s&&(Yc(r.strm,r.strm.output,r.strm.next_out,s),r.strm.next_out+=s,r.strm.avail_out-=s,r.strm.total_out+=s)}while(a===0);return l-=r.strm.avail_in,l&&(l>=r.w_size?(r.matches=2,r.window.set(r.strm.input.subarray(r.strm.next_in-r.w_size,r.strm.next_in),0),r.strstart=r.w_size,r.insert=r.strstart):(r.window_size-r.strstart<=l&&(r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,r.insert>r.strstart&&(r.insert=r.strstart)),r.window.set(r.strm.input.subarray(r.strm.next_in-l,r.strm.next_in),r.strstart),r.strstart+=l,r.insert+=l>r.w_size-r.insert?r.w_size-r.insert:l),r.block_start=r.strstart),r.high_wateri&&r.block_start>=r.w_size&&(r.block_start-=r.w_size,r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,i+=r.w_size,r.insert>r.strstart&&(r.insert=r.strstart)),i>r.strm.avail_in&&(i=r.strm.avail_in),i&&(Yc(r.strm,r.window,r.strstart,i),r.strstart+=i,r.insert+=i>r.w_size-r.insert?r.w_size-r.insert:i),r.high_water>3,i=r.pending_buf_size-i>65535?65535:r.pending_buf_size-i,t=i>r.w_size?r.w_size:i,n=r.strstart-r.block_start,(n>=t||(n||e===en)&&e!==bs&&r.strm.avail_in===0&&n<=i)&&(s=n>i?i:n,a=e===en&&r.strm.avail_in===0&&s===n?1:0,Vc(r,r.block_start,s,a),r.block_start+=s,Vr(r.strm)),a?Ws:Tr)},Fc=(r,e)=>{let t,s;for(;;){if(r.lookahead<_n){if(Ti(r),r.lookahead<_n&&e===bs)return Tr;if(r.lookahead===0)break}if(t=0,r.lookahead>=It&&(r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),t!==0&&r.strstart-t<=r.w_size-_n&&(r.match_length=V1(r,t)),r.match_length>=It)if(s=xs(r,r.strstart-r.match_start,r.match_length-It),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=It){r.match_length--;do r.strstart++,r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!==0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=vs(r,r.ins_h,r.window[r.strstart+1]);else s=xs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(s&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=r.strstart{let t,s,n;for(;;){if(r.lookahead<_n){if(Ti(r),r.lookahead<_n&&e===bs)return Tr;if(r.lookahead===0)break}if(t=0,r.lookahead>=It&&(r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=It-1,t!==0&&r.prev_length4096)&&(r.match_length=It-1)),r.prev_length>=It&&r.match_length<=r.prev_length){n=r.strstart+r.lookahead-It,s=xs(r,r.strstart-1-r.prev_match,r.prev_length-It),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=n&&(r.ins_h=vs(r,r.ins_h,r.window[r.strstart+It-1]),t=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!==0);if(r.match_available=0,r.match_length=It-1,r.strstart++,s&&(Wr(r,!1),r.strm.avail_out===0))return Tr}else if(r.match_available){if(s=xs(r,0,r.window[r.strstart-1]),s&&Wr(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return Tr}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(s=xs(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart{let t,s,n,i,a=r.window;for(;;){if(r.lookahead<=ys){if(Ti(r),r.lookahead<=ys&&e===bs)return Tr;if(r.lookahead===0)break}if(r.match_length=0,r.lookahead>=It&&r.strstart>0&&(n=r.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){i=r.strstart+ys;do;while(s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&nr.lookahead&&(r.match_length=r.lookahead)}if(r.match_length>=It?(t=xs(r,1,r.match_length-It),r.lookahead-=r.match_length,r.strstart+=r.match_length,r.match_length=0):(t=xs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++),t&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Wr(r,!0),r.strm.avail_out===0?Ws:Ii):r.sym_next&&(Wr(r,!1),r.strm.avail_out===0)?Tr:_i},EL=(r,e)=>{let t;for(;;){if(r.lookahead===0&&(Ti(r),r.lookahead===0)){if(e===bs)return Tr;break}if(r.match_length=0,t=xs(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++,t&&(Wr(r,!1),r.strm.avail_out===0))return Tr}return r.insert=0,e===en?(Wr(r,!0),r.strm.avail_out===0?Ws:Ii):r.sym_next&&(Wr(r,!1),r.strm.avail_out===0)?Tr:_i};function Pn(r,e,t,s,n){this.good_length=r,this.max_lazy=e,this.nice_length=t,this.max_chain=s,this.func=n}var ka=[new Pn(0,0,0,0,W1),new Pn(4,4,8,4,Fc),new Pn(4,5,16,8,Fc),new Pn(4,6,32,32,Fc),new Pn(4,4,16,16,wi),new Pn(8,16,32,32,wi),new Pn(8,16,128,128,wi),new Pn(8,32,128,256,wi),new Pn(32,128,258,1024,wi),new Pn(32,258,258,4096,wi)],CL=r=>{r.window_size=2*r.w_size,gs(r.head),r.max_lazy_match=ka[r.level].max_lazy,r.good_match=ka[r.level].good_length,r.nice_match=ka[r.level].nice_length,r.max_chain_length=ka[r.level].max_chain,r.strstart=0,r.block_start=0,r.lookahead=0,r.insert=0,r.match_length=r.prev_length=It-1,r.match_available=0,r.ins_h=0};function wL(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=sl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(gL*2),this.dyn_dtree=new Uint16Array((2*dL+1)*2),this.bl_tree=new Uint16Array((2*mL+1)*2),gs(this.dyn_ltree),gs(this.dyn_dtree),gs(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(yL+1),this.heap=new Uint16Array(2*Wc+1),gs(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Wc+1),gs(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ma=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.status!==Pi&&e.status!==tf&&e.status!==Zc&&e.status!==zc&&e.status!==Xc&&e.status!==Gc&&e.status!==Qs&&e.status!==wa?1:0},Z1=r=>{if(Ma(r))return Us(r,Dn);r.total_in=r.total_out=0,r.data_type=lL;let e=r.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?tf:e.wrap?Pi:Qs,r.adler=e.wrap===2?0:1,e.last_flush=-2,HN(e),vr},z1=r=>{let e=Z1(r);return e===vr&&CL(r.state),e},kL=(r,e)=>Ma(r)||r.state.wrap!==2?Dn:(r.state.gzhead=e,vr),X1=(r,e,t,s,n,i)=>{if(!r)return Dn;let a=1;if(e===nL&&(e=6),s<0?(a=0,s=-s):s>15&&(a=2,s-=16),n<1||n>uL||t!==sl||s<8||s>15||e<0||e>9||i<0||i>aL||s===8&&a!==1)return Us(r,Dn);s===8&&(s=9);let l=new wL;return r.state=l,l.strm=r,l.status=Pi,l.wrap=a,l.gzhead=null,l.w_bits=s,l.w_size=1<X1(r,e,sl,cL,fL,oL),PL=(r,e)=>{if(Ma(r)||e>YO||e<0)return r?Us(r,Dn):Dn;let t=r.state;if(!r.output||r.avail_in!==0&&!r.input||t.status===wa&&e!==en)return Us(r,r.avail_out===0?Ic:Dn);let s=t.last_flush;if(t.last_flush=e,t.pending!==0){if(Vr(r),r.avail_out===0)return t.last_flush=-1,vr}else if(r.avail_in===0&&KO(e)<=KO(s)&&e!==en)return Us(r,Ic);if(t.status===wa&&r.avail_in!==0)return Us(r,Ic);if(t.status===Pi&&t.wrap===0&&(t.status=Qs),t.status===Pi){let n=sl+(t.w_bits-8<<4)<<8,i=-1;if(t.strategy>=Go||t.level<2?i=0:t.level<6?i=1:t.level===6?i=2:i=3,n|=i<<6,t.strstart!==0&&(n|=xL),n+=31-n%31,Ca(t,n),t.strstart!==0&&(Ca(t,r.adler>>>16),Ca(t,r.adler&65535)),r.adler=1,t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===tf){if(r.adler=0,$t(t,31),$t(t,139),$t(t,8),t.gzhead)$t(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),$t(t,t.gzhead.time&255),$t(t,t.gzhead.time>>8&255),$t(t,t.gzhead.time>>16&255),$t(t,t.gzhead.time>>24&255),$t(t,t.level===9?2:t.strategy>=Go||t.level<2?4:0),$t(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&($t(t,t.gzhead.extra.length&255),$t(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(r.adler=mr(r.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Zc;else if($t(t,0),$t(t,0),$t(t,0),$t(t,0),$t(t,0),$t(t,t.level===9?2:t.strategy>=Go||t.level<2?4:0),$t(t,bL),t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,vr}if(t.status===Zc){if(t.gzhead.extra){let n=t.pending,i=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+i>t.pending_buf_size;){let l=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+l),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex+=l,Vr(r),t.pending!==0)return t.last_flush=-1,vr;n=0,i-=l}let a=new Uint8Array(t.gzhead.extra);t.pending_buf.set(a.subarray(t.gzindex,t.gzindex+i),t.pending),t.pending+=i,t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=zc}if(t.status===zc){if(t.gzhead.name){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),Vr(r),t.pending!==0)return t.last_flush=-1,vr;n=0}t.gzindexn&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),t.gzindex=0}t.status=Xc}if(t.status===Xc){if(t.gzhead.comment){let n=t.pending,i;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>n&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n)),Vr(r),t.pending!==0)return t.last_flush=-1,vr;n=0}t.gzindexn&&(r.adler=mr(r.adler,t.pending_buf,t.pending-n,n))}t.status=Gc}if(t.status===Gc){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(Vr(r),t.pending!==0))return t.last_flush=-1,vr;$t(t,r.adler&255),$t(t,r.adler>>8&255),r.adler=0}if(t.status=Qs,Vr(r),t.pending!==0)return t.last_flush=-1,vr}if(r.avail_in!==0||t.lookahead!==0||e!==bs&&t.status!==wa){let n=t.level===0?W1(t,e):t.strategy===Go?EL(t,e):t.strategy===iL?SL(t,e):ka[t.level].func(t,e);if((n===Ws||n===Ii)&&(t.status=wa),n===Tr||n===Ws)return r.avail_out===0&&(t.last_flush=-1),vr;if(n===_i&&(e===eL?JN(t):e!==YO&&(Vc(t,0,0,!1),e===tL&&(gs(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),Vr(r),r.avail_out===0))return t.last_flush=-1,vr}return e!==en?vr:t.wrap<=0?HO:(t.wrap===2?($t(t,r.adler&255),$t(t,r.adler>>8&255),$t(t,r.adler>>16&255),$t(t,r.adler>>24&255),$t(t,r.total_in&255),$t(t,r.total_in>>8&255),$t(t,r.total_in>>16&255),$t(t,r.total_in>>24&255)):(Ca(t,r.adler>>>16),Ca(t,r.adler&65535)),Vr(r),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?vr:HO)},TL=r=>{if(Ma(r))return Dn;let e=r.state.status;return r.state=null,e===Qs?Us(r,rL):vr},DL=(r,e)=>{let t=e.length;if(Ma(r))return Dn;let s=r.state,n=s.wrap;if(n===2||n===1&&s.status!==Pi||s.lookahead)return Dn;if(n===1&&(r.adler=Ra(r.adler,e,t,0)),s.wrap=0,t>=s.w_size){n===0&&(gs(s.head),s.strstart=0,s.block_start=0,s.insert=0);let o=new Uint8Array(s.w_size);o.set(e.subarray(t-s.w_size,t),0),e=o,t=s.w_size}let i=r.avail_in,a=r.next_in,l=r.input;for(r.avail_in=t,r.next_in=0,r.input=e,Ti(s);s.lookahead>=It;){let o=s.strstart,u=s.lookahead-(It-1);do s.ins_h=vs(s,s.ins_h,s.window[o+It-1]),s.prev[o&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=o,o++;while(--u);s.strstart=o,s.lookahead=It-1,Ti(s)}return s.strstart+=s.lookahead,s.block_start=s.strstart,s.insert=s.lookahead,s.lookahead=0,s.match_length=s.prev_length=It-1,s.match_available=0,r.next_in=a,r.input=l,r.avail_in=i,s.wrap=n,vr},_L=AL,IL=X1,FL=z1,RL=Z1,BL=kL,NL=PL,LL=TL,$L=DL,ML="pako deflate (from Nodeca project)",Pa={deflateInit:_L,deflateInit2:IL,deflateReset:FL,deflateResetKeep:RL,deflateSetHeader:BL,deflate:NL,deflateEnd:LL,deflateSetDictionary:$L,deflateInfo:ML},jL=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),qL=function(r){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(let s in t)jL(t,s)&&(r[s]=t[s])}}return r},QL=r=>{let e=0;for(let s=0,n=r.length;s=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;Ba[254]=Ba[254]=1;var UL=r=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);let e,t,s,n,i,a=r.length,l=0;for(n=0;n>>6,e[i++]=128|t&63):t<65536?(e[i++]=224|t>>>12,e[i++]=128|t>>>6&63,e[i++]=128|t&63):(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63,e[i++]=128|t>>>6&63,e[i++]=128|t&63);return e},VL=(r,e)=>{if(e<65534&&r.subarray&&G1)return String.fromCharCode.apply(null,r.length===e?r:r.subarray(0,e));let t="";for(let s=0;s{let t=e||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,e));let s,n,i=new Array(t*2);for(n=0,s=0;s4){i[n++]=65533,s+=l-1;continue}for(a&=l===2?31:l===3?15:7;l>1&&s1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return VL(i,n)},ZL=(r,e)=>{e=e||r.length,e>r.length&&(e=r.length);let t=e-1;for(;t>=0&&(r[t]&192)===128;)t--;return t<0||t===0?e:t+Ba[r[t]]>e?t:e},Na={string2buf:UL,buf2string:WL,utf8border:ZL};function zL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Y1=zL,H1=Object.prototype.toString,{Z_NO_FLUSH:XL,Z_SYNC_FLUSH:GL,Z_FULL_FLUSH:YL,Z_FINISH:HL,Z_OK:rl,Z_STREAM_END:KL,Z_DEFAULT_COMPRESSION:JL,Z_DEFAULT_STRATEGY:e$,Z_DEFLATED:t$}=zs;function ja(r){this.options=il.assign({level:JL,method:t$,chunkSize:16384,windowBits:15,memLevel:8,strategy:e$},r||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y1,this.strm.avail_out=0;let t=Pa.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(t!==rl)throw new Error(Vs[t]);if(e.header&&Pa.deflateSetHeader(this.strm,e.header),e.dictionary){let s;if(typeof e.dictionary=="string"?s=Na.string2buf(e.dictionary):H1.call(e.dictionary)==="[object ArrayBuffer]"?s=new Uint8Array(e.dictionary):s=e.dictionary,t=Pa.deflateSetDictionary(this.strm,s),t!==rl)throw new Error(Vs[t]);this._dict_set=!0}}ja.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?HL:XL,typeof r=="string"?t.input=Na.string2buf(r):H1.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),(i===GL||i===YL)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(n=Pa.deflate(t,i),n===KL)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),n=Pa.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===rl;if(t.avail_out===0){this.onData(t.output);continue}if(i>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};ja.prototype.onData=function(r){this.chunks.push(r)};ja.prototype.onEnd=function(r){r===rl&&(this.result=il.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function rf(r,e){let t=new ja(e);if(t.push(r,!0),t.err)throw t.msg||Vs[t.err];return t.result}function r$(r,e){return e=e||{},e.raw=!0,rf(r,e)}function n$(r,e){return e=e||{},e.gzip=!0,rf(r,e)}var s$=ja,i$=rf,a$=r$,o$=n$,l$=zs,u$={Deflate:s$,deflate:i$,deflateRaw:a$,gzip:o$,constants:l$},Yo=16209,c$=16191,f$=function(e,t){let s,n,i,a,l,o,u,c,p,h,f,d,m,g,y,b,v,S,C,O,w,E,k,A,D=e.state;s=e.next_in,k=e.input,n=s+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),l=i+(e.avail_out-257),o=D.dmax,u=D.wsize,c=D.whave,p=D.wnext,h=D.window,f=D.hold,d=D.bits,m=D.lencode,g=D.distcode,y=(1<>>24,f>>>=S,d-=S,S=v>>>16&255,S===0)A[i++]=v&65535;else if(S&16){C=v&65535,S&=15,S&&(d>>=S,d-=S),d<15&&(f+=k[s++]<>>24,f>>>=S,d-=S,S=v>>>16&255,S&16){if(O=v&65535,S&=15,do){e.msg="invalid distance too far back",D.mode=Yo;break e}if(f>>>=S,d-=S,S=i-a,O>S){if(S=O-S,S>c&&D.sane){e.msg="invalid distance too far back",D.mode=Yo;break e}if(w=0,E=h,p===0){if(w+=u-S,S2;)A[i++]=E[w++],A[i++]=E[w++],A[i++]=E[w++],C-=3;C&&(A[i++]=E[w++],C>1&&(A[i++]=E[w++]))}else{w=i-O;do A[i++]=A[w++],A[i++]=A[w++],A[i++]=A[w++],C-=3;while(C>2);C&&(A[i++]=A[w++],C>1&&(A[i++]=A[w++]))}}else if(S&64){e.msg="invalid distance code",D.mode=Yo;break e}else{v=g[(v&65535)+(f&(1<>3,s-=C,d-=C<<3,f&=(1<{let o=l.bits,u=0,c=0,p=0,h=0,f=0,d=0,m=0,g=0,y=0,b=0,v,S,C,O,w,E=null,k,A=new Uint16Array(ki+1),D=new Uint16Array(ki+1),_=null,B,T,F;for(u=0;u<=ki;u++)A[u]=0;for(c=0;c=1&&A[h]===0;h--);if(f>h&&(f=h),h===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(r===t1||h!==1))return-1;for(D[1]=0,u=1;uJO||r===r1&&y>e1)return 1;for(;;){B=u-m,a[c]+1=k?(T=_[a[c]-k],F=E[a[c]-k]):(T=96,F=0),v=1<>m)+S]=B<<24|T<<16|F|0;while(S!==0);for(v=1<>=1;if(v!==0?(b&=v-1,b+=v):b=0,c++,--A[u]===0){if(u===h)break;u=e[t+a[c]]}if(u>f&&(b&O)!==C){for(m===0&&(m=f),w+=p,d=u-m,g=1<JO||r===r1&&y>e1)return 1;C=b&O,n[C]=f<<24|d<<16|w-i|0}}return b!==0&&(n[w+b]=u-m<<24|64<<16|0),l.bits=f,0},Ta=g$,y$=0,K1=1,J1=2,{Z_FINISH:n1,Z_BLOCK:x$,Z_TREES:Ho,Z_OK:Zs,Z_STREAM_END:b$,Z_NEED_DICT:v$,Z_STREAM_ERROR:tn,Z_DATA_ERROR:eS,Z_MEM_ERROR:tS,Z_BUF_ERROR:O$,Z_DEFLATED:s1}=zs,al=16180,i1=16181,a1=16182,o1=16183,l1=16184,u1=16185,c1=16186,f1=16187,p1=16188,h1=16189,nl=16190,es=16191,Bc=16192,d1=16193,Nc=16194,m1=16195,g1=16196,y1=16197,x1=16198,Ko=16199,Jo=16200,b1=16201,v1=16202,O1=16203,S1=16204,E1=16205,Lc=16206,C1=16207,w1=16208,tr=16209,rS=16210,nS=16211,S$=852,E$=592,C$=15,w$=C$,k1=r=>(r>>>24&255)+(r>>>8&65280)+((r&65280)<<8)+((r&255)<<24);function k$(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Xs=r=>{if(!r)return 1;let e=r.state;return!e||e.strm!==r||e.modenS?1:0},sS=r=>{if(Xs(r))return tn;let e=r.state;return r.total_in=r.total_out=e.total=0,r.msg="",e.wrap&&(r.adler=e.wrap&1),e.mode=al,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(S$),e.distcode=e.distdyn=new Int32Array(E$),e.sane=1,e.back=-1,Zs},iS=r=>{if(Xs(r))return tn;let e=r.state;return e.wsize=0,e.whave=0,e.wnext=0,sS(r)},aS=(r,e)=>{let t;if(Xs(r))return tn;let s=r.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?tn:(s.window!==null&&s.wbits!==e&&(s.window=null),s.wrap=t,s.wbits=e,iS(r))},oS=(r,e)=>{if(!r)return tn;let t=new k$;r.state=t,t.strm=r,t.window=null,t.mode=al;let s=aS(r,e);return s!==Zs&&(r.state=null),s},A$=r=>oS(r,w$),A1=!0,$c,Mc,P$=r=>{if(A1){$c=new Int32Array(512),Mc=new Int32Array(32);let e=0;for(;e<144;)r.lens[e++]=8;for(;e<256;)r.lens[e++]=9;for(;e<280;)r.lens[e++]=7;for(;e<288;)r.lens[e++]=8;for(Ta(K1,r.lens,0,288,$c,0,r.work,{bits:9}),e=0;e<32;)r.lens[e++]=5;Ta(J1,r.lens,0,32,Mc,0,r.work,{bits:5}),A1=!1}r.lencode=$c,r.lenbits=9,r.distcode=Mc,r.distbits=5},lS=(r,e,t,s)=>{let n,i=r.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(e.subarray(t-i.wsize,t),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>s&&(n=s),i.window.set(e.subarray(t-s,t-s+n),i.wnext),s-=n,s?(i.window.set(e.subarray(t-s,t),0),i.wnext=s,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let t,s,n,i,a,l,o,u,c,p,h,f,d,m,g=0,y,b,v,S,C,O,w,E,k=new Uint8Array(4),A,D,_=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Xs(r)||!r.output||!r.input&&r.avail_in!==0)return tn;t=r.state,t.mode===es&&(t.mode=Bc),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,p=l,h=o,E=Zs;e:for(;;)switch(t.mode){case al:if(t.wrap===0){t.mode=Bc;break}for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=mr(t.check,k,2,0),u=0,c=0,t.mode=i1;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((u&255)<<8)+(u>>8))%31){r.msg="incorrect header check",t.mode=tr;break}if((u&15)!==s1){r.msg="unknown compression method",t.mode=tr;break}if(u>>>=4,c-=4,w=(u&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){r.msg="invalid window size",t.mode=tr;break}t.dmax=1<>8&1),t.flags&512&&t.wrap&4&&(k[0]=u&255,k[1]=u>>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0,t.mode=a1;case a1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>8&255,k[2]=u>>>16&255,k[3]=u>>>24&255,t.check=mr(t.check,k,4,0)),u=0,c=0,t.mode=o1;case o1:for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>8),t.flags&512&&t.wrap&4&&(k[0]=u&255,k[1]=u>>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0,t.mode=l1;case l1:if(t.flags&1024){for(;c<16;){if(l===0)break e;l--,u+=s[i++]<>>8&255,t.check=mr(t.check,k,2,0)),u=0,c=0}else t.head&&(t.head.extra=null);t.mode=u1;case u1:if(t.flags&1024&&(f=t.length,f>l&&(f=l),f&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(s.subarray(i,i+f),w)),t.flags&512&&t.wrap&4&&(t.check=mr(t.check,s,f,i)),l-=f,i+=f,t.length-=f),t.length))break e;t.length=0,t.mode=c1;case c1:if(t.flags&2048){if(l===0)break e;f=0;do w=s[i+f++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&f>9&1,t.head.done=!0),r.adler=t.check=0,t.mode=es;break;case h1:for(;c<32;){if(l===0)break e;l--,u+=s[i++]<>>=c&7,c-=c&7,t.mode=Lc;break}for(;c<3;){if(l===0)break e;l--,u+=s[i++]<>>=1,c-=1,u&3){case 0:t.mode=d1;break;case 1:if(P$(t),t.mode=Ko,e===Ho){u>>>=2,c-=2;break e}break;case 2:t.mode=g1;break;case 3:r.msg="invalid block type",t.mode=tr}u>>>=2,c-=2;break;case d1:for(u>>>=c&7,c-=c&7;c<32;){if(l===0)break e;l--,u+=s[i++]<>>16^65535)){r.msg="invalid stored block lengths",t.mode=tr;break}if(t.length=u&65535,u=0,c=0,t.mode=Nc,e===Ho)break e;case Nc:t.mode=m1;case m1:if(f=t.length,f){if(f>l&&(f=l),f>o&&(f=o),f===0)break e;n.set(s.subarray(i,i+f),a),l-=f,i+=f,o-=f,a+=f,t.length-=f;break}t.mode=es;break;case g1:for(;c<14;){if(l===0)break e;l--,u+=s[i++]<>>=5,c-=5,t.ndist=(u&31)+1,u>>>=5,c-=5,t.ncode=(u&15)+4,u>>>=4,c-=4,t.nlen>286||t.ndist>30){r.msg="too many length or distance symbols",t.mode=tr;break}t.have=0,t.mode=y1;case y1:for(;t.have>>=3,c-=3}for(;t.have<19;)t.lens[_[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,A={bits:t.lenbits},E=Ta(y$,t.lens,0,19,t.lencode,0,t.work,A),t.lenbits=A.bits,E){r.msg="invalid code lengths set",t.mode=tr;break}t.have=0,t.mode=x1;case x1:for(;t.have>>24,b=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=y,c-=y,t.lens[t.have++]=v;else{if(v===16){for(D=y+2;c>>=y,c-=y,t.have===0){r.msg="invalid bit length repeat",t.mode=tr;break}w=t.lens[t.have-1],f=3+(u&3),u>>>=2,c-=2}else if(v===17){for(D=y+3;c>>=y,c-=y,w=0,f=3+(u&7),u>>>=3,c-=3}else{for(D=y+7;c>>=y,c-=y,w=0,f=11+(u&127),u>>>=7,c-=7}if(t.have+f>t.nlen+t.ndist){r.msg="invalid bit length repeat",t.mode=tr;break}for(;f--;)t.lens[t.have++]=w}}if(t.mode===tr)break;if(t.lens[256]===0){r.msg="invalid code -- missing end-of-block",t.mode=tr;break}if(t.lenbits=9,A={bits:t.lenbits},E=Ta(K1,t.lens,0,t.nlen,t.lencode,0,t.work,A),t.lenbits=A.bits,E){r.msg="invalid literal/lengths set",t.mode=tr;break}if(t.distbits=6,t.distcode=t.distdyn,A={bits:t.distbits},E=Ta(J1,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,A),t.distbits=A.bits,E){r.msg="invalid distances set",t.mode=tr;break}if(t.mode=Ko,e===Ho)break e;case Ko:t.mode=Jo;case Jo:if(l>=6&&o>=258){r.next_out=a,r.avail_out=o,r.next_in=i,r.avail_in=l,t.hold=u,t.bits=c,f$(r,h),a=r.next_out,n=r.output,o=r.avail_out,i=r.next_in,s=r.input,l=r.avail_in,u=t.hold,c=t.bits,t.mode===es&&(t.back=-1);break}for(t.back=0;g=t.lencode[u&(1<>>24,b=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,b=g>>>16&255,v=g&65535,!(S+y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=S,c-=S,t.back+=S}if(u>>>=y,c-=y,t.back+=y,t.length=v,b===0){t.mode=E1;break}if(b&32){t.back=-1,t.mode=es;break}if(b&64){r.msg="invalid literal/length code",t.mode=tr;break}t.extra=b&15,t.mode=b1;case b1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=v1;case v1:for(;g=t.distcode[u&(1<>>24,b=g>>>16&255,v=g&65535,!(y<=c);){if(l===0)break e;l--,u+=s[i++]<>S)],y=g>>>24,b=g>>>16&255,v=g&65535,!(S+y<=c);){if(l===0)break e;l--,u+=s[i++]<>>=S,c-=S,t.back+=S}if(u>>>=y,c-=y,t.back+=y,b&64){r.msg="invalid distance code",t.mode=tr;break}t.offset=v,t.extra=b&15,t.mode=O1;case O1:if(t.extra){for(D=t.extra;c>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){r.msg="invalid distance too far back",t.mode=tr;break}t.mode=S1;case S1:if(o===0)break e;if(f=h-o,t.offset>f){if(f=t.offset-f,f>t.whave&&t.sane){r.msg="invalid distance too far back",t.mode=tr;break}f>t.wnext?(f-=t.wnext,d=t.wsize-f):d=t.wnext-f,f>t.length&&(f=t.length),m=t.window}else m=n,d=a-t.offset,f=t.length;f>o&&(f=o),o-=f,t.length-=f;do n[a++]=m[d++];while(--f);t.length===0&&(t.mode=Jo);break;case E1:if(o===0)break e;n[a++]=t.length,o--,t.mode=Jo;break;case Lc:if(t.wrap){for(;c<32;){if(l===0)break e;l--,u|=s[i++]<{if(Xs(r))return tn;let e=r.state;return e.window&&(e.window=null),r.state=null,Zs},_$=(r,e)=>{if(Xs(r))return tn;let t=r.state;return t.wrap&2?(t.head=e,e.done=!1,Zs):tn},I$=(r,e)=>{let t=e.length,s,n,i;return Xs(r)||(s=r.state,s.wrap!==0&&s.mode!==nl)?tn:s.mode===nl&&(n=1,n=Ra(n,e,t,0),n!==s.check)?eS:(i=lS(r,e,t,t),i?(s.mode=rS,tS):(s.havedict=1,Zs))},F$=iS,R$=aS,B$=sS,N$=A$,L$=oS,$$=T$,M$=D$,j$=_$,q$=I$,Q$="pako inflate (from Nodeca project)",rs={inflateReset:F$,inflateReset2:R$,inflateResetKeep:B$,inflateInit:N$,inflateInit2:L$,inflate:$$,inflateEnd:M$,inflateGetHeader:j$,inflateSetDictionary:q$,inflateInfo:Q$};function U$(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var V$=U$,uS=Object.prototype.toString,{Z_NO_FLUSH:W$,Z_FINISH:Z$,Z_OK:La,Z_STREAM_END:jc,Z_NEED_DICT:qc,Z_STREAM_ERROR:z$,Z_DATA_ERROR:P1,Z_MEM_ERROR:X$}=zs;function qa(r){this.options=il.assign({chunkSize:1024*64,windowBits:15,to:""},r||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(r&&r.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15||(e.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Y1,this.strm.avail_out=0;let t=rs.inflateInit2(this.strm,e.windowBits);if(t!==La)throw new Error(Vs[t]);if(this.header=new V$,rs.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Na.string2buf(e.dictionary):uS.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=rs.inflateSetDictionary(this.strm,e.dictionary),t!==La)))throw new Error(Vs[t])}qa.prototype.push=function(r,e){let t=this.strm,s=this.options.chunkSize,n=this.options.dictionary,i,a,l;if(this.ended)return!1;for(e===~~e?a=e:a=e===!0?Z$:W$,uS.call(r)==="[object ArrayBuffer]"?t.input=new Uint8Array(r):t.input=r,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(s),t.next_out=0,t.avail_out=s),i=rs.inflate(t,a),i===qc&&n&&(i=rs.inflateSetDictionary(t,n),i===La?i=rs.inflate(t,a):i===P1&&(i=qc));t.avail_in>0&&i===jc&&t.state.wrap>0&&r[t.next_in]!==0;)rs.inflateReset(t),i=rs.inflate(t,a);switch(i){case z$:case P1:case qc:case X$:return this.onEnd(i),this.ended=!0,!1}if(l=t.avail_out,t.next_out&&(t.avail_out===0||i===jc))if(this.options.to==="string"){let o=Na.utf8border(t.output,t.next_out),u=t.next_out-o,c=Na.buf2string(t.output,o);t.next_out=u,t.avail_out=s-u,u&&t.output.set(t.output.subarray(o,o+u),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(i===La&&l===0)){if(i===jc)return i=rs.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};qa.prototype.onData=function(r){this.chunks.push(r)};qa.prototype.onEnd=function(r){r===La&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=il.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};function nf(r,e){let t=new qa(e);if(t.push(r),t.err)throw t.msg||Vs[t.err];return t.result}function G$(r,e){return e=e||{},e.raw=!0,nf(r,e)}var Y$=qa,H$=nf,K$=G$,J$=nf,e3=zs,t3={Inflate:Y$,inflate:H$,inflateRaw:K$,ungzip:J$,constants:e3},{Deflate:r3,deflate:n3,deflateRaw:s3,gzip:i3}=u$,{Inflate:a3,inflate:o3,inflateRaw:l3,ungzip:u3}=t3,c3=r3,f3=n3,p3=s3,h3=i3,d3=a3,m3=o3,g3=l3,y3=u3,x3=zs,sf={Deflate:c3,deflate:f3,deflateRaw:p3,gzip:h3,Inflate:d3,inflate:m3,inflateRaw:g3,ungzip:y3,constants:x3};var Ft=class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,s){[e,t]=$i(this,e,t);let n=[];return this.decompose(0,e,n,2),s.length&&s.decompose(0,s.length,n,3),this.decompose(t,this.length,n,1),Ri.from(n,this.length-(t-e)+s.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=$i(this,e,t);let s=[];return this.decompose(e,t,s,0),Ri.from(s,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),s=this.length-this.scanIdentical(e,-1),n=new Hs(this),i=new Hs(e);for(let a=t,l=t;;){if(n.next(a),i.next(a),a=0,n.lineBreak!=i.lineBreak||n.done!=i.done||n.value!=i.value)return!1;if(l+=n.value.length,n.done||l>=s)return!0}}iter(e=1){return new Hs(this,e)}iterRange(e,t=this.length){return new cl(this,e,t)}iterLines(e,t){let s;if(e==null)s=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;s=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new fl(s)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?r.empty:e.length<=32?new Zr(e):Ri.from(Zr.split(e,[]))}},Zr=class r extends Ft{constructor(e,t=b3(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.text[i],l=n+a.length;if((t?s:l)>=e)return new of(n,l,s,a);n=l+1,s++}}decompose(e,t,s,n){let i=e<=0&&t>=this.length?this:new r(cS(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let a=s.pop(),l=ul(i.text,a.text.slice(),0,i.length);if(l.length<=32)s.push(new r(l,a.length+i.length));else{let o=l.length>>1;s.push(new r(l.slice(0,o)),new r(l.slice(o)))}}else s.push(i)}replace(e,t,s){if(!(s instanceof r))return super.replace(e,t,s);[e,t]=$i(this,e,t);let n=ul(this.text,ul(s.text,cS(this.text,0,e)),t),i=this.length+s.length-(t-e);return n.length<=32?new r(n,i):Ri.from(r.split(n,[]),i)}sliceString(e,t=this.length,s=` +`){[e,t]=$i(this,e,t);let n="";for(let i=0,a=0;i<=t&&ae&&a&&(n+=s),ei&&(n+=l.slice(Math.max(0,e-i),t-i)),i=o+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let s=[],n=-1;for(let i of e)s.push(i),n+=i.length+1,s.length==32&&(t.push(new r(s,n)),s=[],n=-1);return n>-1&&t.push(new r(s,n)),t}},Ri=class r extends Ft{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let s of e)this.lines+=s.lines}lineInner(e,t,s,n){for(let i=0;;i++){let a=this.children[i],l=n+a.length,o=s+a.lines-1;if((t?o:l)>=e)return a.lineInner(e,t,s,n);n=l+1,s=o+1}}decompose(e,t,s,n){for(let i=0,a=0;a<=t&&i=a){let u=n&((a<=e?1:0)|(o>=t?2:0));a>=e&&o<=t&&!u?s.push(l):l.decompose(e-a,t-a,s,u)}a=o+1}}replace(e,t,s){if([e,t]=$i(this,e,t),s.lines=i&&t<=l){let o=a.replace(e-i,t-i,s),u=this.lines-a.lines+o.lines;if(o.lines>4&&o.lines>u>>6){let c=this.children.slice();return c[n]=o,new r(c,this.length-(t-e)+s.length)}return super.replace(i,l,o)}i=l+1}return super.replace(e,t,s)}sliceString(e,t=this.length,s=` +`){[e,t]=$i(this,e,t);let n="";for(let i=0,a=0;ie&&i&&(n+=s),ea&&(n+=l.sliceString(e-a,t-a,s)),a=o+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof r))return 0;let s=0,[n,i,a,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,i+=t){if(n==a||i==l)return s;let o=this.children[n],u=e.children[i];if(o!=u)return s+o.scanIdentical(u,t);s+=o.length+1}}static from(e,t=e.reduce((s,n)=>s+n.length+1,-1)){let s=0;for(let f of e)s+=f.lines;if(s<32){let f=[];for(let d of e)d.flatten(f);return new Zr(f,t)}let n=Math.max(32,s>>5),i=n<<1,a=n>>1,l=[],o=0,u=-1,c=[];function p(f){let d;if(f.lines>i&&f instanceof r)for(let m of f.children)p(m);else f.lines>a&&(o>a||!o)?(h(),l.push(f)):f instanceof Zr&&o&&(d=c[c.length-1])instanceof Zr&&f.lines+d.lines<=32?(o+=f.lines,u+=f.length+1,c[c.length-1]=new Zr(d.text.concat(f.text),d.length+1+f.length)):(o+f.lines>n&&h(),o+=f.lines,u+=f.length+1,c.push(f))}function h(){o!=0&&(l.push(c.length==1?c[0]:r.from(c,u)),u=-1,o=c.length=0)}for(let f of e)p(f);return h(),l.length==1?l[0]:new r(l,t)}};Ft.empty=new Zr([""],0);function b3(r){let e=-1;for(let t of r)e+=t.length+1;return e}function ul(r,e,t=0,s=1e9){for(let n=0,i=0,a=!0;i=t&&(o>s&&(l=l.slice(0,s-n)),n0?1:(e instanceof Zr?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,n=this.nodes[s],i=this.offsets[s],a=i>>1,l=n instanceof Zr?n.text.length:n.children.length;if(a==(t>0?l:0)){if(s==0)return this.done=!0,this.value="",this;t>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(t>0?0:1)){if(this.offsets[s]+=t,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(n instanceof Zr){let o=n.text[a+(t<0?-1:0)];if(this.offsets[s]+=t,o.length>Math.max(0,e))return this.value=e==0?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=n.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[s]+=t):(t<0&&this.offsets[s]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof Zr?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},cl=class{constructor(e,t,s){this.value="",this.done=!1,this.cursor=new Hs(e,t>s?-1:1),this.pos=t>s?e.length:0,this.from=Math.min(t,s),this.to=Math.max(t,s)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let s=t<0?this.pos-this.from:this.to-this.pos;e>s&&(e=s),s-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=s?n:t<0?n.slice(n.length-s):n.slice(0,s),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},fl=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:s,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):s?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(Ft.prototype[Symbol.iterator]=function(){return this.iter()},Hs.prototype[Symbol.iterator]=cl.prototype[Symbol.iterator]=fl.prototype[Symbol.iterator]=function(){return this});var of=class{constructor(e,t,s,n){this.from=e,this.to=t,this.number=s,this.text=n}get length(){return this.to-this.from}};function $i(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}var Bi="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(r=>r?parseInt(r,36):1);for(let r=1;rr)return Bi[e-1]<=r;return!1}function fS(r){return r>=127462&&r<=127487}var pS=8205;function ur(r,e,t=!0,s=!0){return(t?xS:O3)(r,e,s)}function xS(r,e,t){if(e==r.length)return e;e&&bS(r.charCodeAt(e))&&vS(r.charCodeAt(e-1))&&e--;let s=gr(r,e);for(e+=$r(s);e=0&&fS(gr(r,a));)i++,a-=2;if(i%2==0)break;e+=2}else break}return e}function O3(r,e,t){for(;e>0;){let s=xS(r,e-2,t);if(s=56320&&r<57344}function vS(r){return r>=55296&&r<56320}function gr(r,e){let t=r.charCodeAt(e);if(!vS(t)||e+1==r.length)return t;let s=r.charCodeAt(e+1);return bS(s)?(t-55296<<10)+(s-56320)+65536:t}function za(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function $r(r){return r<65536?1:2}var lf=/\r\n?|\n/,fr=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(fr||(fr={})),ns=class r{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return i+(e-n);i+=l}else{if(s!=fr.Simple&&u>=e&&(s==fr.TrackDel&&ne||s==fr.TrackBefore&&ne))return null;if(u>e||u==e&&t<0&&!l)return e==n||t<0?i:i+o;i+=o}n=u}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return i}touchesRange(e,t=e){for(let s=0,n=0;s=0&&n<=t&&l>=e)return nt?"cover":!0;n=l}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new r(e)}static create(e){return new r(e)}},Dr=class r extends ns{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return uf(this,(t,s,n,i,a)=>e=e.replace(n,n+(s-t),a),!1),e}mapDesc(e,t=!1){return cf(this,e,t,!0)}invert(e){let t=this.sections.slice(),s=[];for(let n=0,i=0;n=0){t[n]=l,t[n+1]=a;let o=n>>1;for(;s.length0&&Os(s,t,i.text),i.forward(c),l+=c}let u=e[a++];for(;l>1].toJSON()))}return e}static of(e,t,s){let n=[],i=[],a=0,l=null;function o(c=!1){if(!c&&!n.length)return;ah||p<0||h>t)throw new RangeError(`Invalid change range ${p} to ${h} (in doc of length ${t})`);let d=f?typeof f=="string"?Ft.of(f.split(s||lf)):f:Ft.empty,m=d.length;if(p==h&&m==0)return;pa&&wr(n,p-a,-1),wr(n,h-p,m),Os(i,n,d),a=h}}return u(e),o(!l),l}static empty(e){return new r(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],s=[];for(let n=0;nl&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)t.push(i[0],0);else{for(;s.length=0&&t<=0&&t==r[n+1]?r[n]+=e:e==0&&r[n]==0?r[n+1]+=t:s?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function Os(r,e,t){if(t.length==0)return;let s=e.length-2>>1;if(s>1])),!(t||a==r.sections.length||r.sections[a+1]<0);)l=r.sections[a++],o=r.sections[a++];e(n,u,i,c,p),n=u,i=c}}}function cf(r,e,t,s=!1){let n=[],i=s?[]:null,a=new Ks(r),l=new Ks(e);for(let o=-1;;)if(a.ins==-1&&l.ins==-1){let u=Math.min(a.len,l.len);wr(n,u,-1),a.forward(u),l.forward(u)}else if(l.ins>=0&&(a.ins<0||o==a.i||a.off==0&&(l.len=0&&o=0){let u=0,c=a.len;for(;c;)if(l.ins==-1){let p=Math.min(c,l.len);u+=p,c-=p,l.forward(p)}else if(l.ins==0&&l.leno||a.ins>=0&&a.len>o)&&(l||s.length>u),i.forward2(o),a.forward(o)}}}}var Ks=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Ft.empty:e[t]}textBit(e){let{inserted:t}=this.set,s=this.i-2>>1;return s>=t.length&&!e?Ft.empty:t[s].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Fi=class r{constructor(e,t,s){this.from=e,this.to=t,this.flags=s}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let s,n;return this.empty?s=n=e.mapPos(this.from,t):(s=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),s==this.from&&n==this.to?this:new r(s,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Ze.range(e,t);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Ze.range(this.anchor,s)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ze.range(e.anchor,e.head)}static create(e,t,s){return new r(e,t,s)}},Ze=class r{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:r.create(this.ranges.map(s=>s.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let s=0;se.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new r(e.ranges.map(t=>Fi.fromJSON(t)),e.main)}static single(e,t=e){return new r([r.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let s=0,n=0;ne?8:0)|i)}static normalized(e,t=0){let s=e[t];e.sort((n,i)=>n.from-i.from),t=e.indexOf(s);for(let n=1;ni.head?r.range(o,l):r.range(l,o))}}return new r(e,t)}};function SS(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var vf=0,ct=class r{constructor(e,t,s,n,i){this.combine=e,this.compareInput=t,this.compare=s,this.isStatic=n,this.id=vf++,this.default=e([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(e={}){return new r(e.combine||(t=>t),e.compareInput||((t,s)=>t===s),e.compare||(e.combine?(t,s)=>t===s:Of),!!e.static,e.enables)}of(e){return new Ni([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ni(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ni(e,this,2,t)}from(e,t){return t||(t=s=>s),this.compute([e],s=>t(s.field(e)))}};function Of(r,e){return r==e||r.length==e.length&&r.every((t,s)=>t===e[s])}var Ni=class{constructor(e,t,s,n){this.dependencies=e,this.facet=t,this.type=s,this.value=n,this.id=vf++}dynamicSlot(e){var t;let s=this.value,n=this.facet.compareInput,i=this.id,a=e[i]>>1,l=this.type==2,o=!1,u=!1,c=[];for(let p of this.dependencies)p=="doc"?o=!0:p=="selection"?u=!0:((t=e[p.id])!==null&&t!==void 0?t:1)&1||c.push(e[p.id]);return{create(p){return p.values[a]=s(p),1},update(p,h){if(o&&h.docChanged||u&&(h.docChanged||h.selection)||ff(p,c)){let f=s(p);if(l?!hS(f,p.values[a],n):!n(f,p.values[a]))return p.values[a]=f,1}return 0},reconfigure:(p,h)=>{let f,d=h.config.address[i];if(d!=null){let m=ml(h,d);if(this.dependencies.every(g=>g instanceof ct?h.facet(g)===p.facet(g):g instanceof Yt?h.field(g,!1)==p.field(g,!1):!0)||(l?hS(f=s(p),m,n):n(f=s(p),m)))return p.values[a]=m,0}else f=s(p);return p.values[a]=f,1}}}};function hS(r,e,t){if(r.length!=e.length)return!1;for(let s=0;sr[o.id]),n=t.map(o=>o.type),i=s.filter(o=>!(o&1)),a=r[e.id]>>1;function l(o){let u=[];for(let c=0;cs===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(dS).find(s=>s.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:s=>(s.values[t]=this.create(s),1),update:(s,n)=>{let i=s.values[t],a=this.updateF(i,n);return this.compareF(i,a)?0:(s.values[t]=a,1)},reconfigure:(s,n)=>n.config.address[this.id]!=null?(s.values[t]=n.field(this),0):(s.values[t]=this.create(s),1)}}init(e){return[this,dS.of({field:this,create:e})]}get extension(){return this}},Gs={lowest:4,low:3,default:2,high:1,highest:0};function Qa(r){return e=>new pl(e,r)}var rn={highest:Qa(Gs.highest),high:Qa(Gs.high),default:Qa(Gs.default),low:Qa(Gs.low),lowest:Qa(Gs.lowest)},pl=class{constructor(e,t){this.inner=e,this.prec=t}},hl=class r{of(e){return new Va(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},Va=class{constructor(e,t){this.compartment=e,this.inner=t}},dl=class r{constructor(e,t,s,n,i,a){for(this.base=e,this.compartments=t,this.dynamicSlots=s,this.address=n,this.staticValues=i,this.facets=a,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,s){let n=[],i=Object.create(null),a=new Map;for(let h of E3(e,t,a))h instanceof Yt?n.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let l=Object.create(null),o=[],u=[];for(let h of n)l[h.id]=u.length<<1,u.push(f=>h.slot(f));let c=s?.config.facets;for(let h in i){let f=i[h],d=f[0].facet,m=c&&c[h]||[];if(f.every(g=>g.type==0))if(l[d.id]=o.length<<1|1,Of(m,f))o.push(s.facet(d));else{let g=d.combine(f.map(y=>y.value));o.push(s&&d.compare(g,s.facet(d))?s.facet(d):g)}else{for(let g of f)g.type==0?(l[g.id]=o.length<<1|1,o.push(g.value)):(l[g.id]=u.length<<1,u.push(y=>g.dynamicSlot(y)));l[d.id]=u.length<<1,u.push(g=>S3(g,d,f))}}let p=u.map(h=>h(l));return new r(e,a,p,l,o,i)}};function E3(r,e,t){let s=[[],[],[],[],[]],n=new Map;function i(a,l){let o=n.get(a);if(o!=null){if(o<=l)return;let u=s[o].indexOf(a);u>-1&&s[o].splice(u,1),a instanceof Va&&t.delete(a.compartment)}if(n.set(a,l),Array.isArray(a))for(let u of a)i(u,l);else if(a instanceof Va){if(t.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;t.set(a.compartment,u),i(u,l)}else if(a instanceof pl)i(a.inner,a.prec);else if(a instanceof Yt)s[l].push(a),a.provides&&i(a.provides,l);else if(a instanceof Ni)s[l].push(a),a.facet.extensions&&i(a.facet.extensions,Gs.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(u,l)}}return i(r,Gs.default),s.reduce((a,l)=>a.concat(l))}function Ua(r,e){if(e&1)return 2;let t=e>>1,s=r.status[t];if(s==4)throw new Error("Cyclic dependency between fields and/or facets");if(s&2)return s;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function ml(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var ES=ct.define(),pf=ct.define({combine:r=>r.some(e=>e),static:!0}),CS=ct.define({combine:r=>r.length?r[0]:void 0,static:!0}),wS=ct.define(),kS=ct.define(),AS=ct.define(),PS=ct.define({combine:r=>r.length?r[0]:!1}),Mr=class{constructor(e,t){this.type=e,this.value=t}static define(){return new hf}},hf=class{of(e){return new Mr(this,e)}},df=class{constructor(e){this.map=e}of(e){return new wt(this,e)}},wt=class r{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new r(this.type,t)}is(e){return this.type==e}static define(e={}){return new df(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let s=[];for(let n of e){let i=n.map(t);i&&s.push(i)}return s}};wt.reconfigure=wt.define();wt.appendConfig=wt.define();var lr=class r{constructor(e,t,s,n,i,a){this.startState=e,this.changes=t,this.selection=s,this.effects=n,this.annotations=i,this.scrollIntoView=a,this._doc=null,this._state=null,s&&SS(s,t.newLength),i.some(l=>l.type==r.time)||(this.annotations=i.concat(r.time.of(Date.now())))}static create(e,t,s,n,i,a){return new r(e,t,s,n,i,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(r.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};lr.time=Mr.define();lr.userEvent=Mr.define();lr.addToHistory=Mr.define();lr.remote=Mr.define();function C3(r,e){let t=[];for(let s=0,n=0;;){let i,a;if(s=r[s]))i=r[s++],a=r[s++];else if(n=0;n--){let i=s[n](r);i instanceof lr?r=i:Array.isArray(i)&&i.length==1&&i[0]instanceof lr?r=i[0]:r=DS(e,Li(i),!1)}return r}function k3(r){let e=r.startState,t=e.facet(AS),s=r;for(let n=t.length-1;n>=0;n--){let i=t[n](r);i&&Object.keys(i).length&&(s=TS(s,mf(e,i,r.changes.newLength),!0))}return s==r?r:lr.create(e,r.changes,r.selection,s.effects,s.annotations,s.scrollIntoView)}var A3=[];function Li(r){return r==null?A3:Array.isArray(r)?r:[r]}var Wt=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(Wt||(Wt={})),P3=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,gf;try{gf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function T3(r){if(gf)return gf.test(r);for(let e=0;e"\x80"&&(t.toUpperCase()!=t.toLowerCase()||P3.test(t)))return!0}return!1}function D3(r){return e=>{if(!/\S/.test(e))return Wt.Space;if(T3(e))return Wt.Word;for(let t=0;t-1)return Wt.Word;return Wt.Other}}var Ut=class r{constructor(e,t,s,n,i,a){this.config=e,this.doc=t,this.selection=s,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=i,a&&(a._state=this);for(let l=0;ln.set(u,o)),t=null),n.set(l.value.compartment,l.value.extension)):l.is(wt.reconfigure)?(t=null,s=l.value):l.is(wt.appendConfig)&&(t=null,s=Li(s).concat(l.value));let i;t?i=e.startState.values.slice():(t=dl.resolve(s,n,this),i=new r(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(o,u)=>u.reconfigure(o,this),null).values);let a=e.startState.facet(pf)?e.newSelection:e.newSelection.asSingle();new r(t,e.newDoc,a,i,(l,o)=>o.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Ze.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,s=e(t.ranges[0]),n=this.changes(s.changes),i=[s.range],a=Li(s.effects);for(let l=1;la.spec.fromJSON(l,o)))}}return r.create({doc:e.doc,selection:Ze.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=dl.resolve(e.extensions||[],new Map),s=e.doc instanceof Ft?e.doc:Ft.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||lf)),n=e.selection?e.selection instanceof Ze?e.selection:Ze.single(e.selection.anchor,e.selection.head):Ze.single(0);return SS(n,s.length),t.staticFacet(pf)||(n=n.asSingle()),new r(t,s,n,t.dynamicSlots.map(()=>null),(i,a)=>a.create(i),null)}get tabSize(){return this.facet(r.tabSize)}get lineBreak(){return this.facet(r.lineSeparator)||` +`}get readOnly(){return this.facet(PS)}phrase(e,...t){for(let s of this.facet(r.phrases))if(Object.prototype.hasOwnProperty.call(s,e)){e=s[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(s,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>t.length?s:t[i-1]})),e}languageDataAt(e,t,s=-1){let n=[];for(let i of this.facet(ES))for(let a of i(this,t,s))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){return D3(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:s,length:n}=this.doc.lineAt(e),i=this.charCategorizer(e),a=e-s,l=e-s;for(;a>0;){let o=ur(t,a,!1);if(i(t.slice(o,a))!=Wt.Word)break;a=o}for(;lr.length?r[0]:4});Ut.lineSeparator=CS;Ut.readOnly=PS;Ut.phrases=ct.define({compare(r,e){let t=Object.keys(r),s=Object.keys(e);return t.length==s.length&&t.every(n=>r[n]==e[n])}});Ut.languageData=ES;Ut.changeFilter=wS;Ut.transactionFilter=kS;Ut.transactionExtender=AS;hl.reconfigure=wt.define();function kr(r,e,t={}){let s={};for(let n of r)for(let i of Object.keys(n)){let a=n[i],l=s[i];if(l===void 0)s[i]=a;else if(!(l===a||a===void 0))if(Object.hasOwnProperty.call(t,i))s[i]=t[i](l,a);else throw new Error("Config merge conflict for field "+i)}for(let n in e)s[n]===void 0&&(s[n]=e[n]);return s}var yn=class{eq(e){return this==e}range(e,t=e){return Wa.create(e,t,this)}};yn.prototype.startSide=yn.prototype.endSide=0;yn.prototype.point=!1;yn.prototype.mapMode=fr.TrackDel;var Wa=class r{constructor(e,t,s){this.from=e,this.to=t,this.value=s}static create(e,t,s){return new r(e,t,s)}};function yf(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var xf=class r{constructor(e,t,s,n){this.from=e,this.to=t,this.value=s,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,s,n=0){let i=s?this.to:this.from;for(let a=n,l=i.length;;){if(a==l)return a;let o=a+l>>1,u=i[o]-e||(s?this.value[o].endSide:this.value[o].startSide)-t;if(o==a)return u>=0?a:l;u>=0?l=o:a=o+1}}between(e,t,s,n){for(let i=this.findIndex(t,-1e9,!0),a=this.findIndex(s,1e9,!1,i);if||h==f&&u.startSide>0&&u.endSide<=0)continue;(f-h||u.endSide-u.startSide)<0||(a<0&&(a=h),u.point&&(l=Math.max(l,f-h)),s.push(u),n.push(h-a),i.push(f-a))}return{mapped:s.length?new r(n,i,s,l):null,pos:a}}},Mt=class r{constructor(e,t,s,n){this.chunkPos=e,this.chunk=t,this.nextLayer=s,this.maxPoint=n}static create(e,t,s,n){return new r(e,t,s,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:s=!1,filterFrom:n=0,filterTo:i=this.length}=e,a=e.filter;if(t.length==0&&!a)return this;if(s&&(t=t.slice().sort(yf)),this.isEmpty)return t.length?r.of(t):this;let l=new gl(this,null,-1).goto(0),o=0,u=[],c=new In;for(;l.value||o=0){let p=t[o++];c.addInner(p.from,p.to,p.value)||u.push(p)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||il.to||i=i&&e<=i+a.length&&a.between(i,e-i,t-i,s)===!1)return}this.nextLayer.between(e,t,s)}}iter(e=0){return Za.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Za.from(e).goto(t)}static compare(e,t,s,n,i=-1){let a=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),l=t.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=i),o=mS(a,l,s),u=new Ys(a,o,i),c=new Ys(l,o,i);s.iterGaps((p,h,f)=>gS(u,p,c,h,f,n)),s.empty&&s.length==0&&gS(u,0,c,0,0,n)}static eq(e,t,s=0,n){n==null&&(n=999999999);let i=e.filter(c=>!c.isEmpty&&t.indexOf(c)<0),a=t.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(i.length!=a.length)return!1;if(!i.length)return!0;let l=mS(i,a),o=new Ys(i,l,0).goto(s),u=new Ys(a,l,0).goto(s);for(;;){if(o.to!=u.to||!bf(o.active,u.active)||o.point&&(!u.point||!o.point.eq(u.point)))return!1;if(o.to>n)return!0;o.next(),u.next()}}static spans(e,t,s,n,i=-1){let a=new Ys(e,null,i).goto(t),l=t,o=a.openStart;for(;;){let u=Math.min(a.to,s);if(a.point){let c=a.activeForPoint(a.to),p=a.pointFroml&&(n.span(l,u,a.active,o),o=a.openEnd(u));if(a.to>s)return o+(a.point&&a.to>s?1:0);l=a.to,a.next()}}static of(e,t=!1){let s=new In;for(let n of e instanceof Wa?[e]:t?_3(e):e)s.add(n.from,n.to,n.value);return s.finish()}static join(e){if(!e.length)return r.empty;let t=e[e.length-1];for(let s=e.length-2;s>=0;s--)for(let n=e[s];n!=r.empty;n=n.nextLayer)t=new r(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}};Mt.empty=new Mt([],[],null,-1);function _3(r){if(r.length>1)for(let e=r[0],t=1;t0)return r.slice().sort(yf);e=s}return r}Mt.empty.nextLayer=Mt.empty;var In=class r{finishChunk(e){this.chunks.push(new xf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,s){this.addInner(e,t,s)||(this.nextLayer||(this.nextLayer=new r)).add(e,t,s)}addInner(e,t,s){let n=e-this.lastTo||s.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||s.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=s,this.lastFrom=e,this.lastTo=t,this.value.push(s),s.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let s=t.value.length-1;return this.last=t.value[s],this.lastFrom=t.from[s]+e,this.lastTo=t.to[s]+e,!0}finish(){return this.finishInner(Mt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=Mt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function mS(r,e,t){let s=new Map;for(let i of r)for(let a=0;a=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=s&&n.push(new gl(a,t,s,i));return n.length==1?n[0]:new r(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let s of this.heap)s.goto(e,t);for(let s=this.heap.length>>1;s>=0;s--)af(this.heap,s);return this.next(),this}forward(e,t){for(let s of this.heap)s.forward(e,t);for(let s=this.heap.length>>1;s>=0;s--)af(this.heap,s);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),af(this.heap,0)}}};function af(r,e){for(let t=r[e];;){let s=(e<<1)+1;if(s>=r.length)break;let n=r[s];if(s+1=0&&(n=r[s+1],s++),t.compare(n)<0)break;r[s]=t,r[e]=n,e=s}}var Ys=class{constructor(e,t,s){this.minPoint=s,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Za.from(e,t,s)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ol(this.active,e),ol(this.activeTo,e),ol(this.activeRank,e),this.minActive=yS(this.active,this.activeTo)}addActive(e){let t=0,{value:s,to:n,rank:i}=this.cursor;for(;t0;)t++;ll(this.active,t,s),ll(this.activeTo,t,n),ll(this.activeRank,t,i),e&&ll(e,t,this.cursor.from),this.minActive=yS(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let s=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),s&&ol(s,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(s),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from=0&&s[n]=0&&!(this.activeRank[s]e||this.activeTo[s]==e&&this.active[s].endSide>=this.point.endSide)&&t.push(this.active[s]);return t.reverse()}openEnd(e){let t=0;for(let s=this.activeTo.length-1;s>=0&&this.activeTo[s]>e;s--)t++;return t}};function gS(r,e,t,s,n,i){r.goto(e),t.goto(s);let a=s+n,l=s,o=s-e;for(;;){let u=r.to+o-t.to||r.endSide-t.endSide,c=u<0?r.to+o:t.to,p=Math.min(c,a);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&bf(r.activeForPoint(r.to),t.activeForPoint(t.to))||i.comparePoint(l,p,r.point,t.point):p>l&&!bf(r.active,t.active)&&i.compareRange(l,p,r.active,t.active),c>a)break;l=c,u<=0&&r.next(),u>=0&&t.next()}}function bf(r,e){if(r.length!=e.length)return!1;for(let t=0;t=e;s--)r[s+1]=r[s];r[e]=t}function yS(r,e){let t=-1,s=1e9;for(let n=0;n=e)return n;if(n==r.length)break;i+=r.charCodeAt(n)==9?t-i%t:1,n=ur(r,n)}return s===!0?-1:r.length}var Sf="\u037C",_S=typeof Symbol>"u"?"__"+Sf:Symbol.for(Sf),Ef=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),IS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},nn=class{constructor(e,t){this.rules=[];let{finish:s}=t||{};function n(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function i(a,l,o,u){let c=[],p=/^@(\w+)\b/.exec(a[0]),h=p&&p[1]=="keyframes";if(p&&l==null)return o.push(a[0]+";");for(let f in l){let d=l[f];if(/&/.test(f))i(f.split(/,\s*/).map(m=>a.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),d,o);else if(d&&typeof d=="object"){if(!p)throw new RangeError("The value of a property ("+f+") should be a primitive value.");i(n(f),d,c,h)}else d!=null&&c.push(f.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+d+";")}(c.length||h)&&o.push((s&&!p&&!u?a.map(s):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)i(n(a),e[a],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=IS[_S]||1;return IS[_S]=e+1,Sf+e.toString(36)}static mount(e,t,s){let n=e[Ef],i=s&&s.nonce;n?i&&n.setNonce(i):n=new Cf(e,i),n.mount(Array.isArray(t)?t:[t],e)}},FS=new Map,Cf=class{constructor(e,t){let s=e.ownerDocument||e,n=s.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let i=FS.get(s);if(i)return e[Ef]=i;this.sheet=new n.CSSStyleSheet,FS.set(s,this)}else this.styleTag=s.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Ef]=this}mount(e,t){let s=this.sheet,n=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,l),s)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},I3=typeof navigator<"u"&&/Mac/.test(navigator.platform),F3=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(cr=0;cr<10;cr++)is[48+cr]=is[96+cr]=String(cr);var cr;for(cr=1;cr<=24;cr++)is[cr+111]="F"+cr;var cr;for(cr=65;cr<=90;cr++)is[cr]=String.fromCharCode(cr+32),Mi[cr]=String.fromCharCode(cr);var cr;for(xl in is)Mi.hasOwnProperty(xl)||(Mi[xl]=is[xl]);var xl;function RS(r){var e=I3&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||F3&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?Mi:is)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function Rl(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function If(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function R3(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Pl(r,e){if(!e.anchorNode)return!1;try{return If(r,e.anchorNode)}catch{return!1}}function oo(r){return r.nodeType==3?ei(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function eo(r,e,t,s){return t?BS(r,e,t,s,-1)||BS(r,e,t,s,1):!1}function Js(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Bl(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function BS(r,e,t,s,n){for(;;){if(r==t&&e==s)return!0;if(e==(n<0?0:as(r))){if(r.nodeName=="DIV")return!1;let i=r.parentNode;if(!i||i.nodeType!=1)return!1;e=Js(r)+(n<0?0:1),r=i}else if(r.nodeType==1){if(r=r.childNodes[e+(n<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=n<0?as(r):0}else return!1}}function as(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function bp(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function B3(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function OE(r,e){let t=e.width/r.offsetWidth,s=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-r.offsetHeight)<1)&&(s=1),{scaleX:t,scaleY:s}}function N3(r,e,t,s,n,i,a,l){let o=r.ownerDocument,u=o.defaultView||window;for(let c=r,p=!1;c&&!p;)if(c.nodeType==1){let h,f=c==o.body,d=1,m=1;if(f)h=B3(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(p=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:d,scaleY:m}=OE(c,b)),h={left:b.left,right:b.left+c.clientWidth*d,top:b.top,bottom:b.top+c.clientHeight*m}}let g=0,y=0;if(n=="nearest")e.top0&&e.bottom>h.bottom+y&&(y=e.bottom-h.bottom+y+a)):e.bottom>h.bottom&&(y=e.bottom-h.bottom+a,t<0&&e.top-y0&&e.right>h.right+g&&(g=e.right-h.right+g+i)):e.right>h.right&&(g=e.right-h.right+i,t<0&&e.leftt.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}var Ff=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:s}=e;this.set(t,Math.min(e.anchorOffset,t?as(t):0),s,Math.min(e.focusOffset,s?as(s):0))}set(e,t,s,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=s,this.focusOffset=n}},ji=null;function SE(r){if(r.setActive)return r.setActive();if(ji)return r.focus(ji);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(ji==null?{get preventScroll(){return ji={preventScroll:!0},!0}}:void 0),!ji){ji=!1;for(let t=0;tMath.max(1,r.scrollHeight-r.clientHeight-4)}function wE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&s>0)return{node:t,offset:s};if(t.nodeType==1&&s>0){if(t.contentEditable=="false")return null;t=t.childNodes[s-1],s=as(t)}else if(t.parentNode&&!Bl(t))s=Js(t),t=t.parentNode;else return null}}function kE(r,e){for(let t=r,s=e;;){if(t.nodeType==3&&st)return p.domBoundsAround(e,t,u);if(h>=e&&n==-1&&(n=o,i=u),u>t&&p.dom.parentNode==this.dom){a=o,l=c;break}c=h,u=h+p.breakAfter}return{from:i,to:l<0?s+this.length:l,startDOM:(n?this.children[n-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,s=vp){this.markDirty();for(let n=e;nthis.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let s=this.children[--this.i];this.pos-=s.length+s.breakAfter}}};function AE(r,e,t,s,n,i,a,l,o){let{children:u}=r,c=u.length?u[e]:null,p=i.length?i[i.length-1]:null,h=p?p.breakAfter:a;if(!(e==s&&c&&!a&&!h&&i.length<2&&c.merge(t,n,i.length?p:null,t==0,l,o))){if(s0&&(!a&&i.length&&c.merge(t,c.length,i[0],!1,l,0)?c.breakAfter=i.shift().breakAfter:(t2),ft={mac:jS||/Mac/.test(zr.platform),windows:/Win/.test(zr.platform),linux:/Linux|X11/.test(zr.platform),ie:Gl,ie_version:TE?Rf.documentMode||6:Nf?+Nf[1]:Bf?+Bf[1]:0,gecko:$S,gecko_version:$S?+(/Firefox\/(\d+)/.exec(zr.userAgent)||[0,0])[1]:0,chrome:!!wf,chrome_version:wf?+wf[1]:0,ios:jS,android:/Android\b/.test(zr.userAgent),webkit:MS,safari:DE,webkit_version:MS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:Rf.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"},j3=256,Ln=class r extends Gt{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,s){return this.flags&8||s&&(!(s instanceof r)||this.length-(t-e)+s.length>j3||s.flags&8)?!1:(this.text=this.text.slice(0,e)+(s?s.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new r(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new _r(this.dom,e)}domBoundsAround(e,t,s){return{from:s,to:s+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return q3(this.dom,e,t)}},Cs=class r extends Gt{constructor(e,t=[],s=0){super(),this.mark=e,this.children=t,this.length=s;for(let n of t)n.setParent(this)}setAttrs(e){if(EE(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,s,n,i,a){return s&&(!(s instanceof r&&s.mark.eq(this.mark))||e&&i<=0||te&&t.push(s=e&&(n=i),s=o,i++}let a=this.length-e;return this.length=e,n>-1&&(this.children.length=n,this.markDirty()),new r(this.mark,t,a)}domAtPos(e){return _E(this,e)}coordsAt(e,t){return FE(this,e,t)}};function q3(r,e,t){let s=r.nodeValue.length;e>s&&(e=s);let n=e,i=e,a=0;e==0&&t<0||e==s&&t>=0?ft.chrome||ft.gecko||(e?(n--,a=1):i=0)?0:l.length-1];return ft.safari&&!a&&o.width==0&&(o=Array.prototype.find.call(l,u=>u.width)||o),a?bp(o,a<0):o||null}var lo=class r extends Gt{static create(e,t,s){return new r(e,t,s)}constructor(e,t,s){super(),this.widget=e,this.length=t,this.side=s,this.prevWidget=null}split(e){let t=r.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0)?_r.before(this.dom):_r.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let s=this.widget.coordsAt(this.dom,e,t);if(s)return s;let n=this.dom.getClientRects(),i=null;if(!n.length)return null;let a=this.side?this.side<0:e>0;for(let l=a?n.length-1:0;i=n[l],!(e>0?l==0:l==n.length-1||i.top0?_r.before(this.dom):_r.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ft.empty}get isHidden(){return!0}};Ln.prototype.children=lo.prototype.children=uo.prototype.children=vp;function _E(r,e){let t=r.dom,{children:s}=r,n=0;for(let i=0;ni&&e0;i--){let a=s[i-1];if(a.dom.parentNode==t)return a.domAtPos(a.length)}for(let i=n;i0&&e instanceof Cs&&n.length&&(s=n[n.length-1])instanceof Cs&&s.mark.eq(e.mark)?IE(s,e.children[0],t-1):(n.push(e),e.setParent(r)),r.length+=e.length}function FE(r,e,t){let s=null,n=-1,i=null,a=-1;function l(u,c){for(let p=0,h=0;p=c&&(f.children.length?l(f,c-h):(!i||i.isHidden&&t>0)&&(d>c||h==d&&f.getSide()>0)?(i=f,a=c-h):(h-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let i of s)if(i!=t&&(n.indexOf(i)==-1||r[i]!==e[i]))return!1;return!0}function $f(r,e,t){let s=!1;if(e)for(let n in e)t&&n in t||(s=!0,n=="style"?r.style.cssText="":r.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(s=!0,n=="style"?r.style.cssText=t[n]:r.setAttribute(n,t[n]));return s}function U3(r){let e=Object.create(null);for(let t=0;t0&&this.children[s-1].length==0;)this.children[--s].destroy();return this.children.length=s,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Op(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){IE(this,e,t)}addLineDeco(e){let t=e.spec.attributes,s=e.spec.class;t&&(this.attrs=Lf(t,this.attrs||{})),s&&(this.attrs=Lf({class:s},this.attrs||{}))}domAtPos(e){return _E(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var s;this.dom?this.flags&4&&(EE(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&($f(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let n=this.dom.lastChild;for(;n&&Gt.get(n)instanceof Cs;)n=n.lastChild;if(!n||!this.length||n.nodeName!="BR"&&((s=Gt.get(n))===null||s===void 0?void 0:s.isEditable)==!1&&(!ft.ios||!this.children.some(i=>i instanceof Ln))){let i=document.createElement("BR");i.cmIgnore=!0,this.dom.appendChild(i)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let s of this.children){if(!(s instanceof Ln)||/[^ -~]/.test(s.text))return null;let n=oo(s.dom);if(n.length!=1)return null;e+=n[0].width,t=n[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let s=FE(this,e,t);if(!this.children.length&&s&&this.parent){let{heightOracle:n}=this.parent.view.viewState,i=s.bottom-s.top;if(Math.abs(i-n.lineHeight)<2&&n.textHeight=t){if(i instanceof r)return i;if(a>t)break}n=a+i.breakAfter}return null}},Wi=class r extends Gt{constructor(e,t,s){super(),this.widget=e,this.length=t,this.deco=s,this.breakAfter=0,this.prevWidget=null}merge(e,t,s,n,i,a){return s&&(!(s instanceof r)||!this.widget.compare(s.widget)||e>0&&i<=0||t0}},an=class{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,s){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},Ir=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(Ir||(Ir={})),yt=class extends yn{constructor(e,t,s,n){super(),this.startSide=e,this.endSide=t,this.widget=s,this.spec=n}get heightRelevant(){return!1}static mark(e){return new co(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),s=!!e.block;return t+=s&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new ws(e,t,t,s,e.widget||null,!1)}static replace(e){let t=!!e.block,s,n;if(e.isBlockGap)s=-5e8,n=4e8;else{let{start:i,end:a}=RE(e,t);s=(i?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new ws(e,s,n,t,e.widget||null,!0)}static line(e){return new fo(e)}static set(e,t=!1){return Mt.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};yt.none=Mt.empty;var co=class r extends yt{constructor(e){let{start:t,end:s}=RE(e);super(t?-1:5e8,s?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,s;return this==e||e instanceof r&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((s=e.attrs)===null||s===void 0?void 0:s.class))&&Op(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}};co.prototype.point=!1;var fo=class r extends yt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&Op(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}};fo.prototype.mapMode=fr.TrackBefore;fo.prototype.point=!0;var ws=class r extends yt{constructor(e,t,s,n,i,a){super(t,s,i,e),this.block=n,this.isReplace=a,this.mapMode=n?t<=0?fr.TrackBefore:fr.TrackAfter:fr.TrackDel}get type(){return this.startSide!=this.endSide?Ir.WidgetRange:this.startSide<=0?Ir.WidgetBefore:Ir.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof r&&V3(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}};ws.prototype.point=!0;function RE(r,e=!1){let{inclusiveStart:t,inclusiveEnd:s}=r;return t==null&&(t=r.inclusive),s==null&&(s=r.inclusive),{start:t??e,end:s??e}}function V3(r,e){return r==e||!!(r&&e&&r.compare(e))}function Mf(r,e,t,s=0){let n=t.length-1;n>=0&&t[n]+s>=r?t[n]=Math.max(t[n],e):t.push(r,e)}var to=class r{constructor(e,t,s,n){this.doc=e,this.pos=t,this.end=s,this.disallowBlockEffectsFor=n,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Wi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Or),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(bl(new uo(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Wi)&&this.getLine()}buildText(e,t,s){for(;e>0;){if(this.textOff==this.text.length){let{value:i,lineBreak:a,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=i,this.textOff=0}let n=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-s)),this.getLine().append(bl(new Ln(this.text.slice(this.textOff,this.textOff+n)),t),s),this.atCursorPos=!0,this.textOff+=n,e-=n,s=0}}span(e,t,s,n){this.buildText(t-e,s,n),this.pos=t,this.openStart<0&&(this.openStart=n)}point(e,t,s,n,i,a){if(this.disallowBlockEffectsFor[a]&&s instanceof ws){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(s instanceof ws)if(s.block)s.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Wi(s.widget||ks.block,l,s));else{let o=lo.create(s.widget||ks.inline,l,l?0:s.startSide),u=this.atCursorPos&&!o.isEditable&&i<=n.length&&(e0),c=!o.isEditable&&(en.length||s.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!u&&!o.isEditable&&(this.pendingBuffer=0),this.flushBuffer(n),u&&(p.append(bl(new uo(1),n),i),i=n.length+Math.max(0,i-n.length)),p.append(bl(o,n),i),this.atCursorPos=c,this.pendingBuffer=c?en.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=n.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(s);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,s,n,i){let a=new r(e,t,s,i);return a.openEnd=Mt.spans(n,t,s,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}};function bl(r,e){for(let t of e)r=new Cs(t,[r],r.length);return r}var ks=class extends an{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};ks.inline=new ks("span");ks.block=new ks("div");var Zt=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(Zt||(Zt={})),ti=Zt.LTR,Sp=Zt.RTL;function BE(r){let e=[];for(let t=0;t=t){if(l.level==s)return a;(i<0||(n!=0?n<0?l.fromt:e[i].level>l.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}};function LE(r,e){if(r.length!=e.length)return!1;for(let t=0;t=0;m-=3)if(Fn[m+1]==-f){let g=Fn[m+2],y=g&2?n:g&4?g&1?i:n:0;y&&(Xt[p]=Xt[Fn[m]]=y),l=m;break}}else{if(Fn.length==189)break;Fn[l++]=p,Fn[l++]=h,Fn[l++]=o}else if((d=Xt[p])==2||d==1){let m=d==n;o=m?0:1;for(let g=l-3;g>=0;g-=3){let y=Fn[g+2];if(y&2)break;if(m)Fn[g+2]|=2;else{if(y&4)break;Fn[g+2]|=4}}}}}function Y3(r,e,t,s){for(let n=0,i=s;n<=t.length;n++){let a=n?t[n-1].to:r,l=no;)d==g&&(d=t[--m].from,g=m?t[m-1].to:r),Xt[--d]=f;o=c}else i=u,o++}}}function qf(r,e,t,s,n,i,a){let l=s%2?2:1;if(s%2==n%2)for(let o=e,u=0;oo&&a.push(new Bn(o,m.from,f));let g=m.direction==ti!=!(f%2);Qf(r,g?s+1:s,n,m.inner,m.from,m.to,a),o=m.to}d=m.to}else{if(d==t||(c?Xt[d]!=l:Xt[d]==l))break;d++}h?qf(r,o,d,s+1,n,h,a):oe;){let c=!0,p=!1;if(!u||o>i[u-1].to){let m=Xt[o-1];m!=l&&(c=!1,p=m==16)}let h=!c&&l==1?[]:null,f=c?s:s+1,d=o;e:for(;;)if(u&&d==i[u-1].to){if(p)break e;let m=i[--u];if(!c)for(let g=m.from,y=u;;){if(g==e)break e;if(y&&i[y-1].to==g)g=i[--y].from;else{if(Xt[g-1]==l)break e;break}}if(h)h.push(m);else{m.toXt.length;)Xt[Xt.length]=256;let s=[],n=e==ti?0:1;return Qf(r,n,n,t,0,r.length,s),s}function $E(r){return[new Bn(0,r,0)]}var ME="";function K3(r,e,t,s,n){var i;let a=s.head-r.from,l=Bn.find(e,a,(i=s.bidiLevel)!==null&&i!==void 0?i:-1,s.assoc),o=e[l],u=o.side(n,t);if(a==u){let h=l+=n?1:-1;if(h<0||h>=e.length)return null;o=e[l=h],a=o.side(!n,t),u=o.side(n,t)}let c=ur(r.text,a,o.forward(n,t));(co.to)&&(c=u),ME=r.text.slice(Math.min(a,c),Math.max(a,c));let p=l==(n?e.length-1:0)?null:e[l+(n?1:-1)];return p&&c==u&&p.level+(n?0:1)r.some(e=>e)}),zE=ct.define({combine:r=>r.some(e=>e)}),XE=ct.define(),ro=class r{constructor(e,t="nearest",s="nearest",n=5,i=5,a=!1){this.range=e,this.y=t,this.x=s,this.yMargin=n,this.xMargin=i,this.isSnapshot=a}map(e){return e.empty?this:new r(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new r(Ze.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},vl=wt.define({map:(r,e)=>r.map(e)});function yr(r,e,t){let s=r.facet(UE);s.length?s[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}var Yl=ct.define({combine:r=>r.length?r[0]:!0}),eM=0,Ga=ct.define(),rr=class r{constructor(e,t,s,n,i){this.id=e,this.create=t,this.domEventHandlers=s,this.domEventObservers=n,this.extension=i(this)}static define(e,t){let{eventHandlers:s,eventObservers:n,provide:i,decorations:a}=t||{};return new r(eM++,e,s,n,l=>{let o=[Ga.of(l)];return a&&o.push(po.of(u=>{let c=u.plugin(l);return c?a(c):yt.none})),i&&o.push(i(l)),o})}static fromClass(e,t){return r.define(s=>new e(s),t)}},no=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(s){if(yr(t.state,s,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){yr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(s){yr(e.state,s,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},GE=ct.define(),Ep=ct.define(),po=ct.define(),YE=ct.define(),Cp=ct.define(),HE=ct.define();function QS(r,e){let t=r.state.facet(HE);if(!t.length)return t;let s=t.map(i=>i instanceof Function?i(r):i),n=[];return Mt.spans(s,e.from,e.to,{point(){},span(i,a,l,o){let u=i-e.from,c=a-e.from,p=n;for(let h=l.length-1;h>=0;h--,o--){let f=l[h].spec.bidiIsolate,d;if(f==null&&(f=J3(e.text,u,c)),o>0&&p.length&&(d=p[p.length-1]).to==u&&d.direction==f)d.to=c,p=d.inner;else{let m={from:u,to:c,direction:f,inner:[]};p.push(m),p=m.inner}}}}),n}var KE=ct.define();function JE(r){let e=0,t=0,s=0,n=0;for(let i of r.state.facet(KE)){let a=i(r);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(t=Math.max(t,a.right)),a.top!=null&&(s=Math.max(s,a.top)),a.bottom!=null&&(n=Math.max(n,a.bottom)))}return{left:e,right:t,top:s,bottom:n}}var Ya=ct.define(),Nn=class r{constructor(e,t,s,n){this.fromA=e,this.toA=t,this.fromB=s,this.toB=n}join(e){return new r(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,s=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>s.toA)){if(n.toAc)break;i+=2}if(!o)return s;new r(o.fromA,o.toA,o.fromB,o.toB).addToSet(s),a=o.toA,l=o.toB}}},Ll=class r{constructor(e,t,s){this.view=e,this.state=t,this.transactions=s,this.flags=0,this.startState=e.state,this.changes=Dr.empty(this.startState.doc.length);for(let i of s)this.changes=this.changes.compose(i.changes);let n=[];this.changes.iterChangedRanges((i,a,l,o)=>n.push(new Nn(i,a,l,o))),this.changedRanges=n}static create(e,t,s){return new r(e,t,s)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},$l=class extends Gt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Or],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Nn(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let s=e.changedRanges;this.minWidth>0&&s.length&&(s.every(({fromA:u,toA:c})=>cthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let n=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!oM(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let i=n>-1?rM(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;s=new Nn(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(s.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(ft.ie||ft.chrome)&&!i&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,l=this.updateDeco(),o=iM(a,l,e.changes);return s=Nn.extendWithRanges(s,o),!(this.flags&7)&&s.length==0?!1:(this.updateInner(s,e.startState.doc.length,i),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,s){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,s);let{observer:n}=this.view;n.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=ft.chrome||ft.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||n.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let i=[];if(this.view.viewport.from||this.view.viewport.to=0?n[a]:null;if(!l)break;let{fromA:o,toA:u,fromB:c,toB:p}=l,h,f,d,m;if(s&&s.range.fromBc){let S=to.build(this.view.state.doc,c,s.range.fromB,this.decorations,this.dynamicDecorationMap),C=to.build(this.view.state.doc,s.range.toB,p,this.decorations,this.dynamicDecorationMap);f=S.breakAtStart,d=S.openStart,m=C.openEnd;let O=this.compositionView(s);C.breakAtStart?O.breakAfter=1:C.content.length&&O.merge(O.length,O.length,C.content[0],!1,C.openStart,0)&&(O.breakAfter=C.content[0].breakAfter,C.content.shift()),S.content.length&&O.merge(0,0,S.content[S.content.length-1],!0,0,S.openEnd)&&S.content.pop(),h=S.content.concat(O).concat(C.content)}else({content:h,breakAtStart:f,openStart:d,openEnd:m}=to.build(this.view.state.doc,c,p,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=i.findPos(u,1),{i:b,off:v}=i.findPos(o,-1);AE(this,b,v,g,y,h,f,d,m)}s&&this.fixCompositionDOM(s)}compositionView(e){let t=new Ln(e.text.nodeValue);t.flags|=8;for(let{deco:n}of e.marks)t=new Cs(n,[t],t.length);let s=new Or;return s.append(t,0),s}fixCompositionDOM(e){let t=(i,a)=>{a.flags|=8|(a.children.some(o=>o.flags&7)?1:0),this.markedForComposition.add(a);let l=Gt.get(i);l&&l!=a&&(l.dom=null),a.setDOM(i)},s=this.childPos(e.range.fromB,1),n=this.children[s.i];t(e.line,n);for(let i=e.marks.length-1;i>=-1;i--)s=n.childPos(s.off,1),n=n.children[s.i],t(i>=0?e.marks[i].node:e.text,n)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let s=this.view.root.activeElement,n=s==this.dom,i=!n&&Pl(this.dom,this.view.observer.selectionRange)&&!(s&&this.dom.contains(s));if(!(n||t||i))return;let a=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,o=this.moveToLine(this.domAtPos(l.anchor)),u=l.empty?o:this.moveToLine(this.domAtPos(l.head));if(ft.gecko&&l.empty&&!this.hasComposition&&tM(o)){let p=document.createTextNode("");this.view.observer.ignore(()=>o.node.insertBefore(p,o.node.childNodes[o.offset]||null)),o=u=new _r(p,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!eo(o.node,o.offset,c.anchorNode,c.anchorOffset)||!eo(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,l))&&(this.view.observer.ignore(()=>{ft.android&&ft.chrome&&this.dom.contains(c.focusNode)&&aM(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=Rl(this.view.root);if(p)if(l.empty){if(ft.gecko){let h=nM(o.node,o.offset);if(h&&h!=3){let f=(h==1?wE:kE)(o.node,o.offset);f&&(o=new _r(f.node,f.offset))}}p.collapse(o.node,o.offset),l.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=l.bidiLevel)}else if(p.extend){p.collapse(o.node,o.offset);try{p.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();l.anchor>l.head&&([o,u]=[u,o]),h.setEnd(u.node,u.offset),h.setStart(o.node,o.offset),p.removeAllRanges(),p.addRange(h)}i&&this.view.root.activeElement==this.dom&&(this.dom.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(o,u)),this.impreciseAnchor=o.precise?null:new _r(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new _r(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&eo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,s=Rl(e.root),{anchorNode:n,anchorOffset:i}=e.observer.selectionRange;if(!s||!t.empty||!t.assoc||!s.modify)return;let a=Or.find(this,t.head);if(!a)return;let l=a.posAtStart;if(t.head==l||t.head==l+a.length)return;let o=this.coordsAt(t.head,-1),u=this.coordsAt(t.head,1);if(!o||!u||o.bottom>u.top)return;let c=this.domAtPos(t.head+t.assoc);s.collapse(c.node,c.offset),s.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=t.from&&s.collapse(n,i)}moveToLine(e){let t=this.dom,s;if(e.node!=t)return e;for(let n=e.offset;!s&&n=0;n--){let i=Gt.get(t.childNodes[n]);i instanceof Or&&(s=i.domAtPos(i.length))}return s?new _r(s.node,s.offset,!0):e}nearest(e){for(let t=e;t;){let s=Gt.get(t);if(s&&s.rootView==this)return s;t=t.parentNode}return null}posFromDOM(e,t){let s=this.nearest(e);if(!s)throw new RangeError("Trying to find position for a DOM position outside of the document");return s.localPosFromDOM(e,t)+s.posAtStart}domAtPos(e){let{i:t,off:s}=this.childCursor().findPos(e,-1);for(;t=0;a--){let l=this.children[a],o=i-l.breakAfter,u=o-l.length;if(oe||l.covers(1))&&(!s||l instanceof Or&&!(s instanceof Or&&t>=0))&&(s=l,n=u),i=u}return s?s.coordsAt(e-n,t):null}coordsForChar(e){let{i:t,off:s}=this.childPos(e,1),n=this.children[t];if(!(n instanceof Or))return null;for(;n.children.length;){let{i:l,off:o}=n.childPos(s,1);for(;;l++){if(l==n.children.length)return null;if((n=n.children[l]).length)break}s=o}if(!(n instanceof Ln))return null;let i=ur(n.text,s);if(i==s)return null;let a=ei(n.dom,s,i).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,o=this.view.textDirection==Zt.LTR;for(let u=0,c=0;cn)break;if(u>=s){let f=p.dom.getBoundingClientRect();if(t.push(f.height),a){let d=p.dom.lastChild,m=d?oo(d):[];if(m.length){let g=m[m.length-1],y=o?g.right-f.left:f.right-g.left;y>l&&(l=y,this.minWidth=i,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+p.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?Zt.RTL:Zt.LTR}measureTextSize(){for(let i of this.children)if(i instanceof Or){let a=i.measureTextSize();if(a)return a}let e=document.createElement("div"),t,s,n;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let i=oo(e.firstChild)[0];t=e.getBoundingClientRect().height,s=i?i.width/27:7,n=i?i.height:t,e.remove()}),{lineHeight:t,charWidth:s,textHeight:n}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Nl(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let s=0,n=0;;n++){let i=n==t.viewports.length?null:t.viewports[n],a=i?i.from-1:this.length;if(a>s){let l=(t.lineBlockAt(a).bottom-t.lineBlockAt(s).top)/this.view.scaleY;e.push(yt.replace({widget:new Ml(l),block:!0,inclusive:!0,isBlockGap:!0}).range(s,a))}if(!i)break;s=i.to+1}return yt.set(e)}updateDeco(){let e=0,t=this.view.state.facet(po).map(i=>(this.dynamicDecorationMap[e++]=typeof i=="function")?i(this.view):i),s=!1,n=this.view.state.facet(YE).map((i,a)=>{let l=typeof i=="function";return l&&(s=!0),l?i(this.view):i});for(n.length&&(this.dynamicDecorationMap[e++]=s,t.push(Mt.join(n))),this.decorations=[...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];et.anchor?-1:1),n;if(!s)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(s={left:Math.min(s.left,n.left),top:Math.min(s.top,n.top),right:Math.max(s.right,n.right),bottom:Math.max(s.bottom,n.bottom)});let i=JE(this.view),a={left:s.left-i.left,top:s.top-i.top,right:s.right+i.right,bottom:s.bottom+i.bottom},{offsetWidth:l,offsetHeight:o}=this.view.scrollDOM;N3(this.view.scrollDOM,a,t.head{se.from&&(t=!0)}),t}function lM(r,e,t=1){let s=r.charCategorizer(e),n=r.doc.lineAt(e),i=e-n.from;if(n.length==0)return Ze.cursor(e);i==0?t=1:i==n.length&&(t=-1);let a=i,l=i;t<0?a=ur(n.text,i,!1):l=ur(n.text,i);let o=s(n.text.slice(a,l));for(;a>0;){let u=ur(n.text,a,!1);if(s(n.text.slice(u,a))!=o)break;a=u}for(;lr?e.left-r:Math.max(0,r-e.right)}function cM(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function kf(r,e){return r.tope.top+1}function US(r,e){return er.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Vf(r,e,t){let s,n,i,a,l=!1,o,u,c,p;for(let d=r.firstChild;d;d=d.nextSibling){let m=oo(d);for(let g=0;gv||a==v&&i>b){s=d,n=y,i=b,a=v;let S=v?t0?g0)}b==0?t>y.bottom&&(!c||c.bottomy.top)&&(u=d,p=y):c&&kf(c,y)?c=VS(c,y.bottom):p&&kf(p,y)&&(p=US(p,y.top))}}if(c&&c.bottom>=t?(s=o,n=c):p&&p.top<=t&&(s=u,n=p),!s)return{node:r,offset:0};let h=Math.max(n.left,Math.min(n.right,e));if(s.nodeType==3)return WS(s,h,t);if(l&&s.contentEditable!="false")return Vf(s,h,t);let f=Array.prototype.indexOf.call(r.childNodes,s)+(e>=(n.left+n.right)/2?1:0);return{node:r,offset:f}}function WS(r,e,t){let s=r.nodeValue.length,n=-1,i=1e9,a=0;for(let l=0;lt?c.top-t:t-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&p=(c.left+c.right)/2,f=h;if((ft.chrome||ft.gecko)&&ei(r,l).getBoundingClientRect().left==c.right&&(f=!h),p<=0)return{node:r,offset:l+(f?1:0)};n=l+(f?1:0),i=p}}}return{node:r,offset:n>-1?n:a>0?r.nodeValue.length:0}}function tC(r,e,t,s=-1){var n,i;let a=r.contentDOM.getBoundingClientRect(),l=a.top+r.viewState.paddingTop,o,{docHeight:u}=r.viewState,{x:c,y:p}=e,h=p-l;if(h<0)return 0;if(h>u)return r.state.doc.length;for(let S=r.viewState.heightOracle.textHeight/2,C=!1;o=r.elementAtHeight(h),o.type!=Ir.Text;)for(;h=s>0?o.bottom+S:o.top-S,!(h>=0&&h<=u);){if(C)return t?null:0;C=!0,s=-s}p=l+h;let f=o.from;if(fr.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:ZS(r,a,o,c,p);let d=r.dom.ownerDocument,m=r.root.elementFromPoint?r.root:d,g=m.elementFromPoint(c,p);g&&!r.contentDOM.contains(g)&&(g=null),g||(c=Math.max(a.left+1,Math.min(a.right-1,c)),g=m.elementFromPoint(c,p),g&&!r.contentDOM.contains(g)&&(g=null));let y,b=-1;if(g&&((n=r.docView.nearest(g))===null||n===void 0?void 0:n.isEditable)!=!1){if(d.caretPositionFromPoint){let S=d.caretPositionFromPoint(c,p);S&&({offsetNode:y,offset:b}=S)}else if(d.caretRangeFromPoint){let S=d.caretRangeFromPoint(c,p);S&&({startContainer:y,startOffset:b}=S,(!r.contentDOM.contains(y)||ft.safari&&fM(y,b,c)||ft.chrome&&pM(y,b,c))&&(y=void 0))}}if(!y||!r.docView.dom.contains(y)){let S=Or.find(r.docView,f);if(!S)return h>o.top+o.height/2?o.to:o.from;({node:y,offset:b}=Vf(S.dom,c,p))}let v=r.docView.nearest(y);if(!v)return null;if(v.isWidget&&((i=v.dom)===null||i===void 0?void 0:i.nodeType)==1){let S=v.dom.getBoundingClientRect();return e.yr.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,o=Math.floor((n-t.top-(r.defaultLineHeight-l)*.5)/l);i+=o*r.viewState.heightOracle.lineLength}let a=r.state.sliceDoc(t.from,t.to);return t.from+yl(a,i,r.state.tabSize)}function fM(r,e,t){let s;if(r.nodeType!=3||e!=(s=r.nodeValue.length))return!1;for(let n=r.nextSibling;n;n=n.nextSibling)if(n.nodeType!=1||n.nodeName!="BR")return!1;return ei(r,s-1,s).getBoundingClientRect().left>t}function pM(r,e,t){if(e!=0)return!1;for(let n=r;;){let i=n.parentNode;if(!i||i.nodeType!=1||i.firstChild!=n)return!1;if(i.classList.contains("cm-line"))break;n=i}let s=r.nodeType==1?r.getBoundingClientRect():ei(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-s.left>5}function Wf(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let s of t.type)if(s.to>e||s.to==e&&(s.to==t.to||s.type==Ir.Text))return s}return t}function hM(r,e,t,s){let n=Wf(r,e.head),i=!s||n.type!=Ir.Text||!(r.lineWrapping||n.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(i){let a=r.dom.getBoundingClientRect(),l=r.textDirectionAt(n.from),o=r.posAtCoords({x:t==(l==Zt.LTR)?a.right-1:a.left+1,y:(i.top+i.bottom)/2});if(o!=null)return Ze.cursor(o,t?-1:1)}return Ze.cursor(t?n.to:n.from,t?-1:1)}function zS(r,e,t,s){let n=r.state.doc.lineAt(e.head),i=r.bidiSpans(n),a=r.textDirectionAt(n.from);for(let l=e,o=null;;){let u=K3(n,i,a,l,t),c=ME;if(!u){if(n.number==(t?r.state.doc.lines:1))return l;c=` +`,n=r.state.doc.line(n.number+(t?1:-1)),i=r.bidiSpans(n),u=r.visualLineSide(n,!t)}if(o){if(!o(c))return l}else{if(!s)return u;o=s(c)}l=u}}function dM(r,e,t){let s=r.state.charCategorizer(e),n=s(t);return i=>{let a=s(i);return n==Wt.Space&&(n=a),n==a}}function mM(r,e,t,s){let n=e.head,i=t?1:-1;if(n==(t?r.state.doc.length:0))return Ze.cursor(n,e.assoc);let a=e.goalColumn,l,o=r.contentDOM.getBoundingClientRect(),u=r.coordsAtPos(n,e.assoc||-1),c=r.documentTop;if(u)a==null&&(a=u.left-o.left),l=i<0?u.top:u.bottom;else{let f=r.viewState.lineBlockAt(n);a==null&&(a=Math.min(o.right-o.left,r.defaultCharacterWidth*(n-f.from))),l=(i<0?f.top:f.bottom)+c}let p=o.left+a,h=s??r.viewState.heightOracle.textHeight>>1;for(let f=0;;f+=10){let d=l+(h+f)*i,m=tC(r,{x:p,y:d},!1,i);if(do.bottom||(i<0?mn)){let g=r.docView.coordsForChar(m),y=!g||d{if(e>i&&en(r)),t.from,e.head>t.from?-1:1);return s==t.from?t:Ze.cursor(s,snull),ft.gecko&&DM(e.contentDOM.ownerDocument)}handleEvent(e){!SM(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let s=this.handlers[e];if(s){for(let n of s.observers)n(this.view,t);for(let n of s.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=gM(e),s=this.handlers,n=this.view.contentDOM;for(let i in t)if(i!="scroll"){let a=!t[i].handlers.length,l=s[i];l&&a!=!l.handlers.length&&(n.removeEventListener(i,this.handleEvent),l=null),l||n.addEventListener(i,this.handleEvent,{passive:a})}for(let i in s)i!="scroll"&&!t[i]&&n.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()s.keyCode==e.keyCode))&&!e.ctrlKey||yM.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from0?!0:ft.safari&&!ft.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function XS(r,e){return(t,s)=>{try{return e.call(r,s,t)}catch(n){yr(t.state,n)}}}function gM(r){let e=Object.create(null);function t(s){return e[s]||(e[s]={observers:[],handlers:[]})}for(let s of r){let n=s.spec;if(n&&n.domEventHandlers)for(let i in n.domEventHandlers){let a=n.domEventHandlers[i];a&&t(i).handlers.push(XS(s.value,a))}if(n&&n.domEventObservers)for(let i in n.domEventObservers){let a=n.domEventObservers[i];a&&t(i).observers.push(XS(s.value,a))}}for(let s in xn)t(s).handlers.push(xn[s]);for(let s in on)t(s).observers.push(on[s]);return e}var rC=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],yM="dthko",nC=[16,17,18,20,91,92,224,225],Ol=6;function Sl(r){return Math.max(0,r)*.7+8}function xM(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var zf=class{constructor(e,t,s,n){this.view=e,this.startEvent=t,this.style=s,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=L3(e.contentDOM),this.atoms=e.state.facet(Cp).map(a=>a(e));let i=e.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Ut.allowMultipleSelections)&&bM(e,t),this.dragging=OM(e,t)&&oC(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&xM(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let s=0,n=0,i=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=JE(this.view);e.clientX-a.left<=i.left+Ol?s=-Sl(i.left-e.clientX):e.clientX+a.right>=i.right-Ol&&(s=Sl(e.clientX-i.right)),e.clientY-a.top<=i.top+Ol?n=-Sl(i.top-e.clientY):e.clientY+a.bottom>=i.bottom-Ol&&(n=Sl(e.clientY-i.bottom)),this.setScrollSpeed(s,n)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let s=0;sthis.select(this.lastEvent),20)}};function bM(r,e){let t=r.state.facet(jE);return t.length?t[0](e):ft.mac?e.metaKey:e.ctrlKey}function vM(r,e){let t=r.state.facet(qE);return t.length?t[0](e):ft.mac?!e.altKey:!e.ctrlKey}function OM(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let s=Rl(r.root);if(!s||s.rangeCount==0)return!0;let n=s.getRangeAt(0).getClientRects();for(let i=0;i=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function SM(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,s;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(s=Gt.get(t))&&s.ignoreEvent(e))return!1;return!0}var xn=Object.create(null),on=Object.create(null),sC=ft.ie&&ft.ie_version<15||ft.ios&&ft.webkit_version<604;function EM(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),iC(r,t.value)},50)}function iC(r,e){let{state:t}=r,s,n=1,i=t.toText(e),a=i.lines==t.selection.ranges.length;if(Xf!=null&&t.selection.ranges.every(o=>o.empty)&&Xf==i.toString()){let o=-1;s=t.changeByRange(u=>{let c=t.doc.lineAt(u.from);if(c.from==o)return{range:u};o=c.from;let p=t.toText((a?i.line(n++).text:e)+t.lineBreak);return{changes:{from:c.from,insert:p},range:Ze.cursor(u.from+p.length)}})}else a?s=t.changeByRange(o=>{let u=i.line(n++);return{changes:{from:o.from,to:o.to,insert:u.text},range:Ze.cursor(o.from+u.length)}}):s=t.replaceSelection(i);r.dispatch(s,{userEvent:"input.paste",scrollIntoView:!0})}on.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};xn.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);on.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};on.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};xn.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let s of r.state.facet(QE))if(t=s(r,e),t)break;if(!t&&e.button==0&&(t=kM(r,e)),t){let s=!r.hasFocus;r.inputState.startMouseSelection(new zf(r,e,t,s)),s&&r.observer.ignore(()=>SE(r.contentDOM));let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}return!1};function GS(r,e,t,s){if(s==1)return Ze.cursor(e,t);if(s==2)return lM(r.state,e,t);{let n=Or.find(r.docView,e),i=r.state.doc.lineAt(n?n.posAtEnd:e),a=n?n.posAtStart:i.from,l=n?n.posAtEnd:i.to;return lr>=e.top&&r<=e.bottom,YS=(r,e,t)=>aC(e,t)&&r>=t.left&&r<=t.right;function CM(r,e,t,s){let n=Or.find(r.docView,e);if(!n)return 1;let i=e-n.posAtStart;if(i==0)return 1;if(i==n.length)return-1;let a=n.coordsAt(i,-1);if(a&&YS(t,s,a))return-1;let l=n.coordsAt(i,1);return l&&YS(t,s,l)?1:a&&aC(s,a)?-1:1}function HS(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:CM(r,t,e.clientX,e.clientY)}}var wM=ft.ie&&ft.ie_version<=11,KS=null,JS=0,eE=0;function oC(r){if(!wM)return r.detail;let e=KS,t=eE;return KS=r,eE=Date.now(),JS=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(JS+1)%3:1}function kM(r,e){let t=HS(r,e),s=oC(e),n=r.state.selection;return{update(i){i.docChanged&&(t.pos=i.changes.mapPos(t.pos),n=n.map(i.changes))},get(i,a,l){let o=HS(r,i),u,c=GS(r,o.pos,o.bias,s);if(t.pos!=o.pos&&!a){let p=GS(r,t.pos,t.bias,s),h=Math.min(p.from,c.from),f=Math.max(p.to,c.to);c=h1&&(u=AM(n,o.pos))?u:l?n.addRange(c):Ze.create([c])}}}function AM(r,e){for(let t=0;t=e)return Ze.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}xn.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let n=r.docView.nearest(e.target);if(n&&n.isWidget){let i=n.posAtStart,a=i+n.length;(i>=t.to||a<=t.from)&&(t=Ze.range(i,a))}}let{inputState:s}=r;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};xn.dragend=r=>(r.inputState.draggedContent=null,!1);function tE(r,e,t,s){if(!t)return;let n=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:i}=r.inputState,a=s&&i&&vM(r,e)?{from:i.from,to:i.to}:null,l={from:n,insert:t},o=r.state.changes(a?[a,l]:l);r.focus(),r.dispatch({changes:o,selection:{anchor:o.mapPos(n,-1),head:o.mapPos(n,1)},userEvent:a?"move.drop":"input.drop"}),r.inputState.draggedContent=null}xn.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let s=Array(t.length),n=0,i=()=>{++n==t.length&&tE(r,e,s.filter(a=>a!=null).join(r.state.lineBreak),!1)};for(let a=0;a{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(s[a]=l.result),i()},l.readAsText(t[a])}return!0}else{let s=e.dataTransfer.getData("Text");if(s)return tE(r,e,s,!0),!0}return!1};xn.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=sC?null:e.clipboardData;return t?(iC(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(EM(r),!1)};function PM(r,e){let t=r.dom.parentNode;if(!t)return;let s=t.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),r.focus()},50)}function TM(r){let e=[],t=[],s=!1;for(let n of r.selection.ranges)n.empty||(e.push(r.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:i}of r.selection.ranges){let a=r.doc.lineAt(i);a.number>n&&(e.push(a.text),t.push({from:a.from,to:Math.min(r.doc.length,a.to+1)})),n=a.number}s=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:s}}var Xf=null;xn.copy=xn.cut=(r,e)=>{let{text:t,ranges:s,linewise:n}=TM(r.state);if(!t&&!n)return!1;Xf=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let i=sC?null:e.clipboardData;return i?(i.clearData(),i.setData("text/plain",t),!0):(PM(r,t),!1)};var lC=Mr.define();function uC(r,e){let t=[];for(let s of r.facet(WE)){let n=s(r,e);n&&t.push(n)}return t?r.update({effects:t,annotations:lC.of(!0)}):null}function cC(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=uC(r.state,e);t?r.dispatch(t):r.update([])}},10)}on.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),cC(r)};on.blur=r=>{r.observer.clearSelectionRange(),cC(r)};on.compositionstart=on.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};on.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,ft.chrome&&ft.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};on.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};xn.beforeinput=(r,e)=>{var t;let s;if(ft.chrome&&ft.android&&(s=rC.find(n=>n.inputType==e.inputType))&&(r.observer.delayAndroidKey(s.key,s.keyCode),s.key=="Backspace"||s.key=="Delete")){let n=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var i;(((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>n+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return ft.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),ft.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>on.compositionend(r,e),20),!1};var rE=new Set;function DM(r){rE.has(r)||(rE.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var nE=["pre-wrap","normal","pre-line","break-spaces"],Gf=class{constructor(e){this.lineWrapping=e,this.doc=Ft.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let s=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(s+=Math.max(0,Math.ceil((t-e-s*this.lineLength*.5)/this.lineLength))),this.lineHeight*s}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return nE.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let s=0;s-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=s,this.textHeight=n,this.lineLength=i,o){this.heightSamples={};for(let u=0;u0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Dl&&(e.heightChanged=!0),this.height=t)}replace(e,t,s){return r.of(s)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,s,n){let i=this,a=s.doc;for(let l=n.length-1;l>=0;l--){let{fromA:o,toA:u,fromB:c,toB:p}=n[l],h=i.lineAt(o,Ht.ByPosNoHeight,s.setDoc(t),0,0),f=h.to>=u?h:i.lineAt(u,Ht.ByPosNoHeight,s,0,0);for(p+=f.to-u,u=f.to;l>0&&h.from<=n[l-1].toA;)o=n[l-1].fromA,c=n[l-1].fromB,l--,oi*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),s+=1+l.break,n-=l.size}else if(i>n*2){let l=e[s];l.break?e.splice(s,1,l.left,null,l.right):e.splice(s,1,l.left,l.right),s+=2+l.break,i-=l.size}else break;else if(n=i&&a(this.blockAt(0,s,n,i))}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}},sn=class r extends jl{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,s,n){return new Rn(n,this.length,s,this.height,this.breaks)}replace(e,t,s){let n=s[0];return s.length==1&&(n instanceof r||n instanceof Es&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof Es?n=new r(n.length,this.height):n.height=this.height,this.outdated||(n.outdated=!1),n):Xr.of(s)}updateHeight(e,t=0,s=!1,n){return n&&n.from<=t&&n.more?this.setHeight(e,n.heights[n.index++]):(s||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},Es=class r extends Xr{constructor(e){super(e,0)}heightMetrics(e,t){let s=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,i=n-s+1,a,l=0;if(e.lineWrapping){let o=Math.min(this.height,e.lineHeight*i);a=o/i,this.length>i+1&&(l=(this.height-o)/(this.length-i-1))}else a=this.height/i;return{firstLine:s,lastLine:n,perLine:a,perChar:l}}blockAt(e,t,s,n){let{firstLine:i,lastLine:a,perLine:l,perChar:o}=this.heightMetrics(t,n);if(t.lineWrapping){let u=n+(e0){let i=s[s.length-1];i instanceof r?s[s.length-1]=new r(i.length+n):s.push(null,new r(n-1))}if(e>0){let i=s[0];i instanceof r?s[0]=new r(e+i.length):s.unshift(new r(e-1),null)}return Xr.of(s)}decomposeLeft(e,t){t.push(new r(e-1),null)}decomposeRight(e,t){t.push(null,new r(this.length-e-1))}updateHeight(e,t=0,s=!1,n){let i=t+this.length;if(n&&n.from<=t+this.length&&n.more){let a=[],l=Math.max(t,n.from),o=-1;for(n.from>t&&a.push(new r(n.from-t-1).updateHeight(e,t));l<=i&&n.more;){let c=e.doc.lineAt(l).length;a.length&&a.push(null);let p=n.heights[n.index++];o==-1?o=p:Math.abs(p-o)>=Dl&&(o=-2);let h=new sn(c,p);h.outdated=!1,a.push(h),l+=c+1}l<=i&&a.push(null,new r(i-l).updateHeight(e,l));let u=Xr.of(a);return(o<0||Math.abs(u.height-this.height)>=Dl||Math.abs(o-this.heightMetrics(e,t).perLine)>=Dl)&&(e.heightChanged=!0),u}else(s||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Hf=class extends Xr{constructor(e,t,s){super(e.length+t+s.length,e.height+s.height,t|(e.outdated||s.outdated?2:0)),this.left=e,this.right=s,this.size=e.size+s.size}get break(){return this.flags&1}blockAt(e,t,s,n){let i=s+this.left.height;return el))return u;let c=t==Ht.ByPosNoHeight?Ht.ByPosNoHeight:Ht.ByPos;return o?u.join(this.right.lineAt(l,c,s,a,l)):this.left.lineAt(l,c,s,n,i).join(u)}forEachLine(e,t,s,n,i,a){let l=n+this.left.height,o=i+this.left.length+this.break;if(this.break)e=o&&this.right.forEachLine(e,t,s,l,o,a);else{let u=this.lineAt(o,Ht.ByPos,s,n,i);e=e&&u.from<=t&&a(u),t>u.to&&this.right.forEachLine(u.to+1,t,s,l,o,a)}}replace(e,t,s){let n=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,s));let i=[];e>0&&this.decomposeLeft(e,i);let a=i.length;for(let l of s)i.push(l);if(e>0&&sE(i,a-1),t=s&&t.push(null)),e>s&&this.right.decomposeLeft(e-s,t)}decomposeRight(e,t){let s=this.left.length,n=s+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e2*t.size||t.size>2*e.size?Xr.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,s=!1,n){let{left:i,right:a}=this,l=t+i.length+this.break,o=null;return n&&n.from<=t+i.length&&n.more?o=i=i.updateHeight(e,t,s,n):i.updateHeight(e,t,s),n&&n.from<=l+a.length&&n.more?o=a=a.updateHeight(e,l,s,n):a.updateHeight(e,l,s),o?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function sE(r,e){let t,s;r[e]==null&&(t=r[e-1])instanceof Es&&(s=r[e+1])instanceof Es&&r.splice(e-1,3,new Es(t.length+1+s.length))}var _M=5,Kf=class r{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let s=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof sn?n.length+=s-this.pos:(s>this.pos||!this.isCovered)&&this.nodes.push(new sn(s-this.pos,-1)),this.writtenTo=s,t>s&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,s){if(e=_M)&&this.addLineDeco(n,i,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new sn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let s=new Es(t-e);return this.oracle.doc.lineAt(e).to==t&&(s.flags|=4),s}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof sn)return e;let t=new sn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,s){let n=this.ensureLine();n.length+=s,n.collapsed+=s,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+s}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof sn)&&!this.isCovered?this.nodes.push(new sn(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&p.overflow!="visible"){let h=c.getBoundingClientRect();i=Math.max(i,h.left),a=Math.min(a,h.right),l=Math.max(l,h.top),o=u==r.parentNode?h.bottom:Math.min(o,h.bottom)}u=p.position=="absolute"||p.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:i-t.left,right:Math.max(i,a)-t.left,top:l-(t.top+e),bottom:Math.max(l,o)-(t.top+e)}}function RM(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var so=class{constructor(e,t,s){this.from=e,this.to=t,this.size=s}static same(e,t){if(e.length!=t.length)return!1;for(let s=0;stypeof s!="function"&&s.class=="cm-lineWrapping");this.heightOracle=new Gf(t),this.stateDeco=e.facet(po).filter(s=>typeof s!="function"),this.heightMap=Xr.empty().applyChanges(this.stateDeco,Ft.empty,this.heightOracle.setDoc(e.doc),[new Nn(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=yt.set(this.lineGaps.map(s=>s.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let s=0;s<=1;s++){let n=s?t.head:t.anchor;if(!e.some(({from:i,to:a})=>n>=i&&n<=a)){let{from:i,to:a}=this.lineBlockAt(n);e.push(new qi(i,a))}}this.viewports=e.sort((s,n)=>s.from-n.from),this.scaler=this.heightMap.height<=7e6?iE:new tp(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Ha(e,this.scaler))})}update(e,t=null){this.state=e.state;let s=this.stateDeco;this.stateDeco=this.state.facet(po).filter(c=>typeof c!="function");let n=e.changedRanges,i=Nn.extendWithRanges(n,IM(s,this.stateDeco,e?e.changes:Dr.empty(this.state.doc.length))),a=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),i),this.heightMap.height!=a&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let o=i.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.heado.to)||!this.viewportIsAppropriate(o))&&(o=this.getViewport(0,t));let u=!e.changes.empty||e.flags&2||o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(zE)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,s=window.getComputedStyle(t),n=this.heightOracle,i=s.whiteSpace;this.defaultTextDirection=s.direction=="rtl"?Zt.RTL:Zt.LTR;let a=this.heightOracle.mustRefreshForWrapping(i),l=t.getBoundingClientRect(),o=a||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let u=0,c=0;if(l.width&&l.height){let{scaleX:S,scaleY:C}=OE(t,l);(S>.005&&Math.abs(this.scaleX-S)>.005||C>.005&&Math.abs(this.scaleY-C)>.005)&&(this.scaleX=S,this.scaleY=C,u|=8,a=o=!0)}let p=(parseInt(s.paddingTop)||0)*this.scaleY,h=(parseInt(s.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=h)&&(this.paddingTop=p,this.paddingBottom=h,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=CE(e.scrollDOM);let d=(this.printing?RM:FM)(t,this.paddingTop),m=d.top-this.pixelViewport.top,g=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(o=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),o){let S=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(S)&&(a=!0),a||n.lineWrapping&&Math.abs(b-this.contentDOMWidth)>n.charWidth){let{lineHeight:C,charWidth:O,textHeight:w}=e.docView.measureTextSize();a=C>0&&n.refresh(i,C,O,w,b/O,S),a&&(e.docView.minWidth=0,u|=8)}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),n.heightChanged=!1;for(let C of this.viewports){let O=C.from==this.viewport.from?S:e.docView.measureVisibleLineHeights(C);this.heightMap=(a?Xr.empty().applyChanges(this.stateDeco,Ft.empty,this.heightOracle,[new Nn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,a,new Yf(C.from,O))}n.heightChanged&&(u|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return v&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let s=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,i=this.heightOracle,{visibleTop:a,visibleBottom:l}=this,o=new qi(n.lineAt(a-s*1e3,Ht.ByHeight,i,0,0).from,n.lineAt(l+(1-s)*1e3,Ht.ByHeight,i,0,0).to);if(t){let{head:u}=t.range;if(uo.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=n.lineAt(u,Ht.ByPos,i,0,0),h;t.y=="center"?h=(p.top+p.bottom)/2-c/2:t.y=="start"||t.y=="nearest"&&u=l+Math.max(10,Math.min(s,250)))&&n>a-2*1e3&&i>1,a=n<<1;if(this.defaultTextDirection!=Zt.LTR&&!s)return[];let l=[],o=(u,c,p,h)=>{if(c-uu&&gg.from>=p.from&&g.to<=p.to&&Math.abs(g.from-u)g.fromy));if(!m){if(cg.from<=c&&g.to>=c)){let g=t.moveToLineBoundary(Ze.cursor(c),!1,!0).head;g>u&&(c=g)}m=new so(u,c,this.gapSize(p,u,c,h))}l.push(m)};for(let u of this.viewportLines){if(u.lengthu.from&&o(u.from,h,u,c),ft.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];Mt.spans(e,this.viewport.from,this.viewport.to,{span(n,i){t.push({from:n,to:i})},point(){}},20);let s=t.length!=this.visibleRanges.length||this.visibleRanges.some((n,i)=>n.from!=t[i].from||n.to!=t[i].to);return this.visibleRanges=t,s?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Ha(this.heightMap.lineAt(e,Ht.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Ha(this.heightMap.lineAt(this.scaler.fromDOM(e),Ht.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Ha(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},qi=class{constructor(e,t){this.from=e,this.to=t}};function BM(r,e,t){let s=[],n=r,i=0;return Mt.spans(t,r,e,{span(){},point(a,l){a>n&&(s.push({from:n,to:a}),i+=a-n),n=l}},20),n=1)return e[e.length-1].to;let s=Math.floor(r*t);for(let n=0;;n++){let{from:i,to:a}=e[n],l=a-i;if(s<=l)return i+s;s-=l}}function Cl(r,e){let t=0;for(let{from:s,to:n}of r.ranges){if(e<=n){t+=e-s;break}t+=n-s}return t/r.total}function NM(r,e){for(let t of r)if(e(t))return t}var iE={toDOM(r){return r},fromDOM(r){return r},scale:1},tp=class{constructor(e,t,s){let n=0,i=0,a=0;this.viewports=s.map(({from:l,to:o})=>{let u=t.lineAt(l,Ht.ByPos,e,0,0).top,c=t.lineAt(o,Ht.ByPos,e,0,0).bottom;return n+=c-u,{from:l,to:o,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let l of this.viewports)l.domTop=a+(l.top-i)*this.scale,a=l.domBottom=l.domTop+(l.bottom-l.top),i=l.bottom}toDOM(e){for(let t=0,s=0,n=0;;t++){let i=tHa(n,e)):r._content)}var wl=ct.define({combine:r=>r.join(" ")}),rp=ct.define({combine:r=>r.indexOf(!0)>-1}),np=nn.newName(),fC=nn.newName(),pC=nn.newName(),hC={"&light":"."+fC,"&dark":"."+pC};function sp(r,e,t){return new nn(e,{finish(s){return/&/.test(s)?s.replace(/&\w*/,n=>{if(n=="&")return r;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):r+" "+s}})}var LM=sp("."+np,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},hC),Ka="\uFFFF",ip=class{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(Ut.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ka}readRange(e,t){if(!e)return this;let s=e.parentNode;for(let n=e;;){this.findPointBefore(s,n);let i=this.text.length;this.readNode(n);let a=n.nextSibling;if(a==t)break;let l=Gt.get(n),o=Gt.get(a);(l&&o?l.breakAfter:(l?l.breakAfter:Bl(n))||Bl(a)&&(n.nodeName!="BR"||n.cmIgnore)&&this.text.length>i)&&this.lineBreak(),n=a}return this.findPointBefore(s,t),this}readTextNode(e){let t=e.nodeValue;for(let s of this.points)s.node==e&&(s.pos=this.text.length+Math.min(s.offset,t.length));for(let s=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,a=1,l;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,s),a=this.lineSeparator.length):(l=n.exec(t))&&(i=l.index,a=l[0].length),this.append(t.slice(s,i<0?t.length:i)),i<0)break;if(this.lineBreak(),a>1)for(let o of this.points)o.node==e&&o.pos>this.text.length&&(o.pos-=a-1);s=i+a}}readNode(e){if(e.cmIgnore)return;let t=Gt.get(e),s=t&&t.overrideDOMText;if(s!=null){this.findPointInside(e,s.length);for(let n=s.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let s of this.points)s.node==e&&e.childNodes[s.offset]==t&&(s.pos=this.text.length)}findPointInside(e,t){for(let s of this.points)(e.nodeType==3?s.node==e:e.contains(s.node))&&(s.pos=this.text.length+($M(e,s.node,s.offset)?t:0))}};function $M(r,e,t){for(;;){if(!e||t-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,s,0))){let l=i||a?[]:qM(e),o=new ip(l,e.state);o.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=o.text,this.newSel=QM(l,this.bounds.from)}else{let l=e.observer.selectionRange,o=i&&i.node==l.focusNode&&i.offset==l.focusOffset||!If(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),u=a&&a.node==l.anchorNode&&a.offset==l.anchorOffset||!If(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),c=e.viewport;if((ft.ios||ft.chrome)&&e.state.selection.main.empty&&o!=u&&(c.from>0||c.toDate.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:l}=e.bounds,o=n.from,u=null;(i===8||ft.android&&e.text.length=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:r.state.doc.slice(n.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,n.to))}:(ft.mac||ft.android)&&t&&t.from==t.to&&t.from==n.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(s&&t.insert.length==2&&(s=Ze.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Ft.of([" "])}):ft.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==` + `&&r.lineWrapping&&(s&&(s=Ze.single(s.main.anchor-1,s.main.head-1)),t={from:n.from,to:n.to,insert:Ft.of([" "])}),t){if(ft.ios&&r.inputState.flushIOSKey(t)||ft.android&&(t.to==n.to&&(t.from==n.from||t.from==n.from-1&&r.state.sliceDoc(t.from,n.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Vi(r.contentDOM,"Enter",13)||(t.from==n.from-1&&t.to==n.to&&t.insert.length==0||i==8&&t.insert.lengthn.head)&&Vi(r.contentDOM,"Backspace",8)||t.from==n.from&&t.to==n.to+1&&t.insert.length==0&&Vi(r.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,o=()=>l||(l=MM(r,t,s));return r.state.facet(VE).some(u=>u(r,t.from,t.to,a,o))||r.dispatch(o()),!0}else if(s&&!s.main.eq(n)){let a=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(a=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:s,scrollIntoView:a,userEvent:l}),!0}else return!1}function MM(r,e,t){let s,n=r.state,i=n.selection.main;if(e.from>=i.from&&e.to<=i.to&&e.to-e.from>=(i.to-i.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=i.frome.to?n.sliceDoc(e.to,i.to):"";s=n.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+o))}else{let l=n.changes(e),o=t&&t.main.to<=l.newLength?t.main:void 0;if(n.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=i.to&&e.to>=i.to-10){let u=r.state.sliceDoc(e.from,e.to),c,p=t&&eC(r,t.main.head);if(p){let d=e.insert.length-(e.to-e.from);c={from:p.from,to:p.to-d}}else c=r.state.doc.lineAt(i.head);let h=i.to-e.to,f=i.to-i.from;s=n.changeByRange(d=>{if(d.from==i.from&&d.to==i.to)return{changes:l,range:o||d.map(l)};let m=d.to-h,g=m-u.length;if(d.to-d.from!=f||r.state.sliceDoc(g,m)!=u||d.to>=c.from&&d.from<=c.to)return{range:d};let y=n.changes({from:g,to:m,insert:e.insert}),b=d.to-i.to;return{changes:y,range:o?Ze.range(Math.max(0,o.anchor+b),Math.max(0,o.head+b)):d.map(y)}})}else s={changes:l,selection:o&&n.selection.replaceRange(o)}}let a="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,a+=".compose",r.inputState.compositionFirstChange&&(a+=".start",r.inputState.compositionFirstChange=!1)),n.update(s,{userEvent:a,scrollIntoView:!0})}function jM(r,e,t,s){let n=Math.min(r.length,e.length),i=0;for(;i0&&l>0&&r.charCodeAt(a-1)==e.charCodeAt(l-1);)a--,l--;if(s=="end"){let o=Math.max(0,i-Math.min(a,l));t-=a+o-i}if(a=a?i-t:0;i-=o,l=i+(l-a),a=i}else if(l=l?i-t:0;i-=o,a=i+(a-l),l=i}return{from:i,toA:a,toB:l}}function qM(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}=r.observer.selectionRange;return t&&(e.push(new Ql(t,s)),(n!=t||i!=s)&&e.push(new Ql(n,i))),e}function QM(r,e){if(r.length==0)return null;let t=r[0].pos,s=r.length==2?r[1].pos:t;return t>-1&&s>-1?Ze.single(t+e,s+e):null}var UM={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Pf=ft.ie&&ft.ie_version<=11,op=class{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Ff,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let s of t)this.queue.push(s);(ft.ie&&ft.ie_version<=11||ft.ios&&e.composing)&&t.some(s=>s.type=="childList"&&s.removedNodes.length||s.type=="characterData"&&s.oldValue.length>s.target.nodeValue.length)?this.flushSoon():this.flush()}),Pf&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,s)=>t!=e[s]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:s}=this,n=this.selectionRange;if(s.state.facet(Yl)?s.root.activeElement!=this.dom:!Pl(s.dom,n))return;let i=n.anchorNode&&s.docView.nearest(n.anchorNode);if(i&&i.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(ft.ie&&ft.ie_version<=11||ft.android&&ft.chrome)&&!s.state.selection.main.empty&&n.focusNode&&eo(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Rl(e.root);if(!t)return!1;let s=ft.safari&&e.root.nodeType==11&&R3(this.dom.ownerDocument)==this.dom&&VM(this.view,t)||t;if(!s||this.selectionRange.eq(s))return!1;let n=Pl(this.dom,s);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&Vi(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,s=-1,n=!1;for(let i of e){let a=this.readMutation(i);a&&(a.typeOver&&(n=!0),t==-1?{from:t,to:s}=a:(t=Math.min(a.from,t),s=Math.max(a.to,s)))}return{from:t,to:s,typeOver:n}}readChange(){let{from:e,to:t,typeOver:s}=this.processRecords(),n=this.selectionChanged&&Pl(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new ap(this.view,e,t,s);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let s=this.view.state,n=dC(this.view,t);return this.view.state==s&&this.view.update([]),n}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let s=aE(t,e.previousSibling||e.target.previousSibling,-1),n=aE(t,e.nextSibling||e.target.nextSibling,1);return{from:s?t.posAfter(s):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,s;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(s=this.resizeScroll)===null||s===void 0||s.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}};function aE(r,e,t){for(;e;){let s=Gt.get(e);if(s&&s.parent==r)return s;let n=e.parentNode;e=n!=r.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function oE(r,e){let t=e.startContainer,s=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.docView.domAtPos(r.state.selection.main.anchor);return eo(a.node,a.offset,n,i)&&([t,s,n,i]=[n,i,t,s]),{anchorNode:t,anchorOffset:s,focusNode:n,focusOffset:i}}function VM(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return oE(r,n)}let t=null;function s(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",s,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",s,!0),t?oE(r,t):null}var at=class r{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(s=>s.forEach(n=>t(n,this)))||(s=>this.update(s)),this.dispatch=this.dispatch.bind(this),this._root=e.root||$3(e.parent)||document,this.viewState=new ql(e.state||Ut.create(e)),e.scrollTo&&e.scrollTo.is(vl)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ga).map(s=>new no(s));for(let s of this.plugins)s.update(this);this.observer=new op(this),this.inputState=new Zf(this),this.inputState.ensureHandlers(this.plugins),this.docView=new $l(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof lr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,s=!1,n,i=this.state;for(let h of e){if(h.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=h.state}if(this.destroyed){this.viewState.state=i;return}let a=this.hasFocus,l=0,o=null;e.some(h=>h.annotation(lC))?(this.inputState.notifiedFocused=a,l=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,o=uC(i,a),o||(l=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(c=null)):this.observer.clear(),i.facet(Ut.phrases)!=this.state.facet(Ut.phrases))return this.setState(i);n=Ll.create(this,i,e),n.flags|=l;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(p&&(p=p.map(h.changes)),h.scrollIntoView){let{main:f}=h.state.selection;p=new ro(f.empty?f:Ze.cursor(f.head,f.head>f.anchor?-1:1))}for(let f of h.effects)f.is(vl)&&(p=f.value.clip(this.state))}this.viewState.update(n,p),this.bidiCache=Ul.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(Ya)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(wl)!=n.state.facet(wl)&&(this.viewState.mustMeasureContent=!0),(t||s||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let h of this.state.facet(Uf))try{h(n)}catch(f){yr(this.state,f,"update listener")}(o||c)&&Promise.resolve().then(()=>{o&&this.state==o.startState&&this.dispatch(o),c&&!dC(this,c)&&u.force&&Vi(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let s of this.plugins)s.destroy(this);this.viewState=new ql(e),this.plugins=e.facet(Ga).map(s=>new no(s)),this.pluginMap.clear();for(let s of this.plugins)s.update(this);this.docView.destroy(),this.docView=new $l(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ga),s=e.state.facet(Ga);if(t!=s){let n=[];for(let i of s){let a=t.indexOf(i);if(a<0)n.push(new no(i));else{let l=this.plugins[a];l.mustUpdate=e,n.push(l)}}for(let i of this.plugins)i.mustUpdate!=e&&i.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,s=this.scrollDOM,n=s.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:a}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(a<0)if(CE(s))i=-1,a=this.viewState.heightMap.height;else{let f=this.viewState.scrollAnchorAt(n);i=f.from,a=f.top}this.updateState=1;let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];o&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(f=>{try{return f.read(this)}catch(d){return yr(this.state,d),lE}}),p=Ll.create(this,this.state,[]),h=!1;p.flags|=o,t?t.flags|=o:t=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),h=this.docView.update(p),h&&this.docViewUpdate());for(let f=0;f1||d<-1){n=n+d,s.scrollTop=n/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Uf))l(t)}get themeClasses(){return np+" "+(this.state.facet(rp)?pC:fC)+" "+this.state.facet(wl)}updateAttrs(){let e=uE(this,GE,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Yl)?"true":"false",class:"cm-content",style:`${ft.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),uE(this,Ep,t);let s=this.observer.ignore(()=>{let n=$f(this.contentDOM,this.contentAttrs,t),i=$f(this.dom,this.editorAttrs,e);return n||i});return this.editorAttrs=e,this.contentAttrs=t,s}showAnnouncements(e){let t=!0;for(let s of e)for(let n of s.effects)if(n.is(r.announce)){t&&(this.announceDOM.textContent=""),t=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(Ya);let e=this.state.facet(r.cspNonce);nn.mount(this.root,this.styleModules.concat(LM).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;ts.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,s){return Af(this,e,zS(this,e,t,s))}moveByGroup(e,t){return Af(this,e,zS(this,e,t,s=>dM(this,e.head,s)))}visualLineSide(e,t){let s=this.bidiSpans(e),n=this.textDirectionAt(e.from),i=s[t?s.length-1:0];return Ze.cursor(i.side(t,n)+e.from,i.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,s=!0){return hM(this,e,t,s)}moveVertically(e,t,s){return Af(this,e,mM(this,e,t,s))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),tC(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let s=this.docView.coordsAt(e,t);if(!s||s.left==s.right)return s;let n=this.state.doc.lineAt(e),i=this.bidiSpans(n),a=i[Bn.find(i,e-n.from,-1,t)];return bp(s,a.dir==Zt.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(ZE)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>WM)return $E(e.length);let t=this.textDirectionAt(e.from),s;for(let i of this.bidiCache)if(i.from==e.from&&i.dir==t&&(i.fresh||LE(i.isolates,s=QS(this,e))))return i.order;s||(s=QS(this,e));let n=H3(e.text,t,s);return this.bidiCache.push(new Ul(e.from,e.to,t,s,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||ft.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{SE(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return vl.of(new ro(typeof e=="number"?Ze.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,s=this.viewState.scrollAnchorAt(e);return vl.of(new ro(Ze.cursor(s.from),"start","start",s.top-e,t,!0))}static domEventHandlers(e){return rr.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rr.define(()=>({}),{eventObservers:e})}static theme(e,t){let s=nn.newName(),n=[wl.of(s),Ya.of(sp(`.${s}`,e))];return t&&t.dark&&n.push(rp.of(!0)),n}static baseTheme(e){return rn.lowest(Ya.of(sp("."+np,e,hC)))}static findFromDOM(e){var t;let s=e.querySelector(".cm-content"),n=s&&Gt.get(s)||Gt.get(e);return((t=n?.rootView)===null||t===void 0?void 0:t.view)||null}};at.styleModule=Ya;at.inputHandler=VE;at.scrollHandler=XE;at.focusChangeEffect=WE;at.perLineTextDirection=ZE;at.exceptionSink=UE;at.updateListener=Uf;at.editable=Yl;at.mouseSelectionStyle=QE;at.dragMovesSelection=qE;at.clickAddsSelectionRange=jE;at.decorations=po;at.outerDecorations=YE;at.atomicRanges=Cp;at.bidiIsolatedRanges=HE;at.scrollMargins=KE;at.darkTheme=rp;at.cspNonce=ct.define({combine:r=>r.length?r[0]:""});at.contentAttributes=Ep;at.editorAttributes=GE;at.lineWrapping=at.contentAttributes.of({class:"cm-lineWrapping"});at.announce=wt.define();var WM=4096,lE={},Ul=class r{constructor(e,t,s,n,i,a){this.from=e,this.to=t,this.dir=s,this.isolates=n,this.fresh=i,this.order=a}static update(e,t){if(t.empty&&!e.some(i=>i.fresh))return e;let s=[],n=e.length?e[e.length-1].dir:Zt.LTR;for(let i=Math.max(0,e.length-10);i=0;n--){let i=s[n],a=typeof i=="function"?i(r):i;a&&Lf(a,t)}return t}var ZM=ft.mac?"mac":ft.windows?"win":ft.linux?"linux":"key";function zM(r,e){let t=r.split(/-(?!$)/),s=t[t.length-1];s=="Space"&&(s=" ");let n,i,a,l;for(let o=0;os.concat(n),[]))),t}function gC(r,e,t){return yC(mC(r.state),e,r,t)}var Ss=null,GM=4e3;function YM(r,e=ZM){let t=Object.create(null),s=Object.create(null),n=(a,l)=>{let o=s[a];if(o==null)s[a]=l;else if(o!=l)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},i=(a,l,o,u,c)=>{var p,h;let f=t[a]||(t[a]=Object.create(null)),d=l.split(/ (?!$)/).map(y=>zM(y,e));for(let y=1;y{let S=Ss={view:v,prefix:b,scope:a};return setTimeout(()=>{Ss==S&&(Ss=null)},GM),!0}]})}let m=d.join(" ");n(m,!1);let g=f[m]||(f[m]={preventDefault:!1,stopPropagation:!1,run:((h=(p=f._any)===null||p===void 0?void 0:p.run)===null||h===void 0?void 0:h.slice())||[]});o&&g.run.push(o),u&&(g.preventDefault=!0),c&&(g.stopPropagation=!0)};for(let a of r){let l=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of l){let c=t[u]||(t[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let p in c)c[p].run.push(a.any)}let o=a[e]||a.key;if(o)for(let u of l)i(u,o,a.run,a.preventDefault,a.stopPropagation),a.shift&&i(u,"Shift-"+o,a.shift,a.preventDefault,a.stopPropagation)}return t}function yC(r,e,t,s){let n=RS(e),i=gr(n,0),a=$r(i)==n.length&&n!=" ",l="",o=!1,u=!1,c=!1;Ss&&Ss.view==t&&Ss.scope==s&&(l=Ss.prefix+" ",nC.indexOf(e.keyCode)<0&&(u=!0,Ss=null));let p=new Set,h=g=>{if(g){for(let y of g.run)if(!p.has(y)&&(p.add(y),y(t,e)))return g.stopPropagation&&(c=!0),!0;g.preventDefault&&(g.stopPropagation&&(c=!0),u=!0)}return!1},f=r[s],d,m;return f&&(h(f[l+kl(n,e,!a)])?o=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(ft.windows&&e.ctrlKey&&e.altKey)&&(d=is[e.keyCode])&&d!=n?(h(f[l+kl(d,e,!0)])||e.shiftKey&&(m=Mi[e.keyCode])!=n&&m!=d&&h(f[l+kl(m,e,!1)]))&&(o=!0):a&&e.shiftKey&&h(f[l+kl(n,e,!0)])&&(o=!0),!o&&h(f._any)&&(o=!0)),u&&(o=!0),o&&c&&e.stopPropagation(),o}var ho=class r{constructor(e,t,s,n,i){this.className=e,this.left=t,this.top=s,this.width=n,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,s){if(s.empty){let n=e.coordsAtPos(s.head,s.assoc||1);if(!n)return[];let i=xC(e);return[new r(t,n.left-i.left,n.top-i.top,null,n.bottom-n.top)]}else return HM(e,t,s)}};function xC(r){let e=r.scrollDOM.getBoundingClientRect();return{left:(r.textDirection==Zt.LTR?e.left:e.right-r.scrollDOM.clientWidth*r.scaleX)-r.scrollDOM.scrollLeft*r.scaleX,top:e.top-r.scrollDOM.scrollTop*r.scaleY}}function fE(r,e,t){let s=Ze.cursor(e);return{from:Math.max(t.from,r.moveToLineBoundary(s,!1,!0).from),to:Math.min(t.to,r.moveToLineBoundary(s,!0,!0).from),type:Ir.Text}}function HM(r,e,t){if(t.to<=r.viewport.from||t.from>=r.viewport.to)return[];let s=Math.max(t.from,r.viewport.from),n=Math.min(t.to,r.viewport.to),i=r.textDirection==Zt.LTR,a=r.contentDOM,l=a.getBoundingClientRect(),o=xC(r),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),p=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=l.right-(c?parseInt(c.paddingRight):0),f=Wf(r,s),d=Wf(r,n),m=f.type==Ir.Text?f:null,g=d.type==Ir.Text?d:null;if(m&&(r.lineWrapping||f.widgetLineBreaks)&&(m=fE(r,s,m)),g&&(r.lineWrapping||d.widgetLineBreaks)&&(g=fE(r,n,g)),m&&g&&m.from==g.from)return b(v(t.from,t.to,m));{let C=m?v(t.from,null,m):S(f,!1),O=g?v(null,t.to,g):S(d,!0),w=[];return(m||f).to<(g||d).from-(m&&g?1:0)||f.widgetLineBreaks>1&&C.bottom+r.defaultLineHeight/2_&&T.from=j)break;R>F&&D(Math.max(N,F),C==null&&N<=_,Math.min(R,j),O==null&&R>=B,I.dir)}if(F=Q.to+1,F>=j)break}return A.length==0&&D(_,C==null,B,O==null,r.textDirection),{top:E,bottom:k,horizontal:A}}function S(C,O){let w=l.top+(O?C.top:C.bottom);return{top:w,bottom:w,horizontal:[]}}}function KM(r,e){return r.constructor==e.constructor&&r.eq(e)}var lp=class{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(_l)!=e.state.facet(_l)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,s=e.facet(_l);for(;t!KM(t,this.drawn[s]))){let t=this.dom.firstChild,s=0;for(let n of e)n.update&&t&&n.constructor&&this.drawn[s].constructor&&n.update(t,this.drawn[s])?(t=t.nextSibling,s++):this.dom.insertBefore(n.draw(),t);for(;t;){let n=t.nextSibling;t.remove(),t=n}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},_l=ct.define();function bC(r){return[rr.define(e=>new lp(e,r)),_l.of(r)]}var vC=!ft.ios,mo=ct.define({combine(r){return kr(r,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function OC(r={}){return[mo.of(r),JM,ej,tj,zE.of(!0)]}function SC(r){return r.startState.facet(mo)!=r.state.facet(mo)}var JM=bC({above:!0,markers(r){let{state:e}=r,t=e.facet(mo),s=[];for(let n of e.selection.ranges){let i=n==e.selection.main;if(n.empty?!i||vC:t.drawRangeCursor){let a=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=n.empty?n:Ze.cursor(n.head,n.head>n.anchor?-1:1);for(let o of ho.forRange(r,a,l))s.push(o)}}return s},update(r,e){r.transactions.some(s=>s.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=SC(r);return t&&pE(r.state,e),r.docChanged||r.selectionSet||t},mount(r,e){pE(e.state,r)},class:"cm-cursorLayer"});function pE(r,e){e.style.animationDuration=r.facet(mo).cursorBlinkRate+"ms"}var ej=bC({above:!1,markers(r){return r.state.selection.ranges.map(e=>e.empty?[]:ho.forRange(r,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(r,e){return r.docChanged||r.selectionSet||r.viewportChanged||SC(r)},class:"cm-selectionLayer"}),up={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};vC&&(up[".cm-line"].caretColor="transparent !important",up[".cm-content"]={caretColor:"transparent !important"});var tj=rn.highest(at.theme(up)),EC=wt.define({map(r,e){return r==null?null:e.mapPos(r)}}),Ja=Yt.define({create(){return null},update(r,e){return r!=null&&(r=e.changes.mapPos(r)),e.effects.reduce((t,s)=>s.is(EC)?s.value:t,r)}}),rj=rr.fromClass(class{constructor(r){this.view=r,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(r){var e;let t=r.state.field(Ja);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(r.startState.field(Ja)!=t||r.docChanged||r.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:r}=this,e=r.state.field(Ja),t=e!=null&&r.coordsAtPos(e);if(!t)return null;let s=r.scrollDOM.getBoundingClientRect();return{left:t.left-s.left+r.scrollDOM.scrollLeft*r.scaleX,top:t.top-s.top+r.scrollDOM.scrollTop*r.scaleY,height:t.bottom-t.top}}drawCursor(r){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;r?(this.cursor.style.left=r.left/e+"px",this.cursor.style.top=r.top/t+"px",this.cursor.style.height=r.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(r){this.view.state.field(Ja)!=r&&this.view.dispatch({effects:EC.of(r)})}},{eventObservers:{dragover(r){this.setDropPos(this.view.posAtCoords({x:r.clientX,y:r.clientY}))},dragleave(r){(r.target==this.view.contentDOM||!this.view.contentDOM.contains(r.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function CC(){return[Ja,rj]}function hE(r,e,t,s,n){e.lastIndex=0;for(let i=r.iterRange(t,s),a=t,l;!i.next().done;a+=i.value.length)if(!i.lineBreak)for(;l=e.exec(i.value);)n(a+l.index,l)}function nj(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let s=[];for(let{from:n,to:i}of t)n=Math.max(r.state.doc.lineAt(n).from,n-e),i=Math.min(r.state.doc.lineAt(i).to,i+e),s.length&&s[s.length-1].to>=n?s[s.length-1].to=i:s.push({from:n,to:i});return s}var cp=class{constructor(e){let{regexp:t,decoration:s,decorate:n,boundary:i,maxLength:a=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(l,o,u,c)=>n(c,u,u+l[0].length,l,o);else if(typeof s=="function")this.addMatch=(l,o,u,c)=>{let p=s(l,o,u);p&&c(u,u+l[0].length,p)};else if(s)this.addMatch=(l,o,u,c)=>c(u,u+l[0].length,s);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=a}createDeco(e){let t=new In,s=t.add.bind(t);for(let{from:n,to:i}of nj(e,this.maxLength))hE(e.state.doc,this.regexp,n,i,(a,l)=>this.addMatch(l,e,a,s));return t.finish()}updateDeco(e,t){let s=1e9,n=-1;return e.docChanged&&e.changes.iterChanges((i,a,l,o)=>{o>e.view.viewport.from&&l1e3?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),s,n):t}updateRange(e,t,s,n){for(let i of e.visibleRanges){let a=Math.max(i.from,s),l=Math.min(i.to,n);if(l>a){let o=e.state.doc.lineAt(a),u=o.too.from;a--)if(this.boundary.test(o.text[a-1-o.from])){c=a;break}for(;lh.push(y.range(m,g));if(o==u)for(this.regexp.lastIndex=c-o.from;(f=this.regexp.exec(o.text))&&f.indexthis.addMatch(g,e,m,d));t=t.update({filterFrom:c,filterTo:p,filter:(m,g)=>mp,add:h})}}return t}},fp=/x/.unicode!=null?"gu":"g",sj=new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,fp),ij={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},Tf=null;function aj(){var r;if(Tf==null&&typeof document<"u"&&document.body){let e=document.body.style;Tf=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return Tf||!1}var Il=ct.define({combine(r){let e=kr(r,{render:null,specialChars:sj,addSpecialChars:null});return(e.replaceTabs=!aj())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,fp)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,fp)),e}});function wC(r={}){return[Il.of(r),oj()]}var dE=null;function oj(){return dE||(dE=rr.fromClass(class{constructor(r){this.view=r,this.decorations=yt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Il)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new cp({regexp:r.specialChars,decoration:(e,t,s)=>{let{doc:n}=t.state,i=gr(e[0],0);if(i==9){let a=n.lineAt(s),l=t.state.tabSize,o=ss(a.text,l,s-a.from);return yt.replace({widget:new hp((l-o%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=yt.replace({widget:new pp(r,i)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Il);r.startState.facet(Il)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}var lj="\u2022";function uj(r){return r>=32?lj:r==10?"\u2424":String.fromCharCode(9216+r)}var pp=class extends an{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=uj(this.code),s=e.state.phrase("Control character")+" "+(ij[this.code]||"0x"+this.code.toString(16)),n=this.options.render&&this.options.render(this.code,s,t);if(n)return n;let i=document.createElement("span");return i.textContent=t,i.title=s,i.setAttribute("aria-label",s),i.className="cm-specialChar",i}ignoreEvent(){return!1}},hp=class extends an{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}};function kC(){return fj}var cj=yt.line({class:"cm-activeLine"}),fj=rr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let s of r.state.selection.ranges){let n=r.lineBlockAt(s.head);n.from>e&&(t.push(cj.range(n.from)),e=n.from)}return yt.set(t)}},{decorations:r=>r.decorations});var dp=2e3;function pj(r,e,t){let s=Math.min(e.line,t.line),n=Math.max(e.line,t.line),i=[];if(e.off>dp||t.off>dp||e.col<0||t.col<0){let a=Math.min(e.off,t.off),l=Math.max(e.off,t.off);for(let o=s;o<=n;o++){let u=r.doc.line(o);u.length<=l&&i.push(Ze.range(u.from+a,u.to+l))}}else{let a=Math.min(e.col,t.col),l=Math.max(e.col,t.col);for(let o=s;o<=n;o++){let u=r.doc.line(o),c=yl(u.text,a,r.tabSize,!0);if(c<0)i.push(Ze.cursor(u.to));else{let p=yl(u.text,l,r.tabSize);i.push(Ze.range(u.from+c,u.from+p))}}}return i}function hj(r,e){let t=r.coordsAtPos(r.viewport.from);return t?Math.round(Math.abs((t.left-e)/r.defaultCharacterWidth)):-1}function mE(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1),s=r.state.doc.lineAt(t),n=t-s.from,i=n>dp?-1:n==s.length?hj(r,e.clientX):ss(s.text,r.state.tabSize,t-s.from);return{line:s.number,col:i,off:n}}function dj(r,e){let t=mE(r,e),s=r.state.selection;return t?{update(n){if(n.docChanged){let i=n.changes.mapPos(n.startState.doc.line(t.line).from),a=n.state.doc.lineAt(i);t={line:a.number,col:t.col,off:Math.min(t.off,a.length)},s=s.map(n.changes)}},get(n,i,a){let l=mE(r,n);if(!l)return s;let o=pj(r.state,t,l);return o.length?a?Ze.create(o.concat(s.ranges)):Ze.create(o):s}}:null}function AC(r){let e=r?.eventFilter||(t=>t.altKey&&t.button==0);return at.mouseSelectionStyle.of((t,s)=>e(s)?dj(t,s):null)}var mj={Alt:[18,r=>!!r.altKey],Control:[17,r=>!!r.ctrlKey],Shift:[16,r=>!!r.shiftKey],Meta:[91,r=>!!r.metaKey]},gj={style:"cursor: crosshair"};function PC(r={}){let[e,t]=mj[r.key||"Alt"],s=rr.fromClass(class{constructor(n){this.view=n,this.isDown=!1}set(n){this.isDown!=n&&(this.isDown=n,this.view.update([]))}},{eventObservers:{keydown(n){this.set(n.keyCode==e||t(n))},keyup(n){(n.keyCode==e||!t(n))&&this.set(!1)},mousemove(n){this.set(t(n))}}});return[s,at.contentAttributes.of(n=>{var i;return!((i=n.plugin(s))===null||i===void 0)&&i.isDown?gj:null})]}var Xa="-10000px",Vl=class{constructor(e,t,s,n){this.facet=t,this.createTooltipView=s,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(a=>a);let i=null;this.tooltipViews=this.tooltips.map(a=>i=s(a,i))}update(e,t){var s;let n=e.state.facet(this.facet),i=n.filter(o=>o);if(n===this.input){for(let o of this.tooltipViews)o.update&&o.update(e);return!1}let a=[],l=t?[]:null;for(let o=0;ot[u]=o),t.length=l.length),this.input=n,this.tooltips=i,this.tooltipViews=a,!0}};function yj(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}var Df=ct.define({combine:r=>{var e,t,s;return{position:ft.ios?"absolute":((e=r.find(n=>n.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(n=>n.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((s=r.find(n=>n.tooltipSpace))===null||s===void 0?void 0:s.tooltipSpace)||yj}}}),gE=new WeakMap,wp=rr.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(Df);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new Vl(r,Zi,(t,s)=>this.createTooltip(t,s),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,s=r.state.facet(Df);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;t=!0}if(s.parent!=this.parent){this.parent&&this.container.remove(),this.parent=s.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),s=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=Xa,t.dom.style.left="0px",this.container.insertBefore(t.dom,s),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews)s.dom.remove(),(r=s.destroy)===null||r===void 0||r.call(s);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,s=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:n}=this.manager.tooltipViews[0];if(ft.gecko)s=n.offsetParent!=this.container.ownerDocument.body;else if(n.style.top==Xa&&n.style.left=="0px"){let i=n.getBoundingClientRect();s=Math.abs(i.top+1e4)>1||Math.abs(i.left)>1}}if(s||this.position=="absolute")if(this.parent){let n=this.parent.getBoundingClientRect();n.width&&n.height&&(e=n.width/this.parent.offsetWidth,t=n.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((n,i)=>{let a=this.manager.tooltipViews[i];return a.getCoords?a.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(Df).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:s}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:s,scaleX:n,scaleY:i}=r,a=[];for(let l=0;l=Math.min(t.bottom,s.bottom)||p.rightMath.min(t.right,s.right)+.1){c.style.top=Xa;continue}let f=o.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,d=f?7:0,m=h.right-h.left,g=(e=gE.get(u))!==null&&e!==void 0?e:h.bottom-h.top,y=u.offset||bj,b=this.view.textDirection==Zt.LTR,v=h.width>s.right-s.left?b?s.left:s.right-h.width:b?Math.min(p.left-(f?14:0)+y.x,s.right-m):Math.max(s.left,p.left-m+(f?14:0)-y.x),S=this.above[l];!o.strictSide&&(S?p.top-(h.bottom-h.top)-y.ys.bottom)&&S==s.bottom-p.bottom>p.top-s.top&&(S=this.above[l]=!S);let C=(S?p.top-s.top:s.bottom-p.bottom)-d;if(Cv&&E.topO&&(O=S?E.top-g-2-d:E.bottom+d+2);if(this.position=="absolute"?(c.style.top=(O-r.parent.top)/i+"px",c.style.left=(v-r.parent.left)/n+"px"):(c.style.top=O/i+"px",c.style.left=v/n+"px"),f){let E=p.left+(b?y.x:-y.x)-(v+14-7);f.style.left=E/n+"px"}u.overlap!==!0&&a.push({left:v,top:O,right:w,bottom:O+g}),c.classList.toggle("cm-tooltip-above",S),c.classList.toggle("cm-tooltip-below",!S),u.positioned&&u.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=Xa}},{eventObservers:{scroll(){this.maybeMeasure()}}}),xj=at.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),bj={x:0,y:0},Zi=ct.define({enables:[wp,xj]}),Wl=ct.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),Zl=class r{static create(e){return new r(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Vl(e,Wl,(t,s)=>this.createHostedView(t,s),t=>t.dom.remove())}createHostedView(e,t){let s=e.create(this.view);return s.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(s.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&s.mount&&s.mount(this.view),s}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let s of this.manager.tooltipViews){let n=s[e];if(n!==void 0){if(t===void 0)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},vj=Zi.compute([Wl],r=>{let e=r.facet(Wl);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var s;return(s=t.end)!==null&&s!==void 0?s:t.pos})),create:Zl.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),mp=class{constructor(e,t,s,n,i){this.view=e,this.source=t,this.field=s,this.setHover=n,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;el.bottom||t.xl.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(n)).find(c=>c.from<=n&&c.to>=n),u=o&&o.dir==Zt.RTL?-1:1;i=t.x{this.pending==l&&(this.pending=null,o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])}))},o=>yr(e.state,o,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(wp),t=e?e.manager.tooltips.findIndex(s=>s.create==Zl.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,s;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:i}=this;if(n.length&&i&&!Oj(i.dom,e)||this.pending){let{pos:a}=n[0]||this.pending,l=(s=(t=n[0])===null||t===void 0?void 0:t.end)!==null&&s!==void 0?s:a;(a==l?this.view.posAtCoords(this.lastMove)!=a:!Sj(this.view,a,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:s}=this;s&&s.dom.contains(e.relatedTarget)?this.watchTooltipLeave(s.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=s=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(s.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},Al=4;function Oj(r,e){let t=r.getBoundingClientRect();return e.clientX>=t.left-Al&&e.clientX<=t.right+Al&&e.clientY>=t.top-Al&&e.clientY<=t.bottom+Al}function Sj(r,e,t,s,n,i){let a=r.scrollDOM.getBoundingClientRect(),l=r.documentTop+r.documentPadding.top+r.contentHeight;if(a.left>s||a.rightn||Math.min(a.bottom,l)=e&&o<=t}function TC(r,e={}){let t=wt.define(),s=Yt.define({create(){return[]},update(n,i){if(n.length&&(e.hideOnChange&&(i.docChanged||i.selection)?n=[]:e.hideOn&&(n=n.filter(a=>!e.hideOn(i,a))),i.docChanged)){let a=[];for(let l of n){let o=i.changes.mapPos(l.pos,-1,fr.TrackDel);if(o!=null){let u=Object.assign(Object.create(null),l);u.pos=o,u.end!=null&&(u.end=i.changes.mapPos(u.end)),a.push(u)}}n=a}for(let a of i.effects)a.is(t)&&(n=a.value),a.is(Ej)&&(n=[]);return n},provide:n=>Wl.from(n)});return[s,rr.define(n=>new mp(n,r,s,t,e.hoverTime||300)),vj]}function kp(r,e){let t=r.plugin(wp);if(!t)return null;let s=t.manager.tooltips.indexOf(e);return s<0?null:t.manager.tooltipViews[s]}var Ej=wt.define();var yE=ct.define({combine(r){let e,t;for(let s of r)e=e||s.topContainer,t=t||s.bottomContainer;return{topContainer:e,bottomContainer:t}}});function zi(r,e){let t=r.plugin(DC),s=t?t.specs.indexOf(e):-1;return s>-1?t.panels[s]:null}var DC=rr.fromClass(class{constructor(r){this.input=r.state.facet(ri),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(r));let e=r.state.facet(yE);this.top=new Qi(r,!0,e.topContainer),this.bottom=new Qi(r,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(r){let e=r.state.facet(yE);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Qi(r.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Qi(r.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=r.state.facet(ri);if(t!=this.input){let s=t.filter(o=>o),n=[],i=[],a=[],l=[];for(let o of s){let u=this.specs.indexOf(o),c;u<0?(c=o(r.view),l.push(c)):(c=this.panels[u],c.update&&c.update(r)),n.push(c),(c.top?i:a).push(c)}this.specs=s,this.panels=n,this.top.sync(i),this.bottom.sync(a);for(let o of l)o.dom.classList.add("cm-panel"),o.mount&&o.mount()}else for(let s of this.panels)s.update&&s.update(r)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:r=>at.scrollMargins.of(e=>{let t=e.plugin(r);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})}),Qi=class{constructor(e,t,s){this.view=e,this.top=t,this.container=s,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=xE(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=xE(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}};function xE(r){let e=r.nextSibling;return r.remove(),e}var ri=ct.define({enables:DC}),Gr=class extends yn{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};Gr.prototype.elementClass="";Gr.prototype.toDOM=void 0;Gr.prototype.mapMode=fr.TrackBefore;Gr.prototype.startSide=Gr.prototype.endSide=-1;Gr.prototype.point=!0;var Fl=ct.define(),Cj={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Mt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},io=ct.define();function Ap(r){return[_C(),io.of(Object.assign(Object.assign({},Cj),r))]}var gp=ct.define({combine:r=>r.some(e=>e)});function _C(r){let e=[wj];return r&&r.fixed===!1&&e.push(gp.of(!0)),e}var wj=rr.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(io).map(e=>new zl(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(gp),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,s=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(s<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(gp)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=Mt.iter(this.view.state.facet(Fl),this.view.viewport.from),s=[],n=this.gutters.map(i=>new xp(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(i.type)){let a=!0;for(let l of i.type)if(l.type==Ir.Text&&a){yp(t,s,l.from);for(let o of n)o.line(this.view,l,s);a=!1}else if(l.widget)for(let o of n)o.widget(this.view,l)}else if(i.type==Ir.Text){yp(t,s,i.from);for(let a of n)a.line(this.view,i,s)}else if(i.widget)for(let a of n)a.widget(this.view,i);for(let i of n)i.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(io),t=r.state.facet(io),s=r.docChanged||r.heightChanged||r.viewportChanged||!Mt.eq(r.startState.facet(Fl),r.state.facet(Fl),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(r)&&(s=!0);else{s=!0;let n=[];for(let i of t){let a=e.indexOf(i);a<0?n.push(new zl(this.view,i)):(this.gutters[a].update(r),n.push(this.gutters[a]))}for(let i of this.gutters)i.dom.remove(),n.indexOf(i)<0&&i.destroy();for(let i of n)this.dom.appendChild(i.dom);this.gutters=n}return s}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>at.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==Zt.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function bE(r){return Array.isArray(r)?r:[r]}function yp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var xp=class{constructor(e,t,s){this.gutter=e,this.height=s,this.i=0,this.cursor=Mt.iter(e.markers,t.from)}addElement(e,t,s){let{gutter:n}=this,i=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==n.elements.length){let l=new Xl(e,a,i,s);n.elements.push(l),n.dom.appendChild(l.dom)}else n.elements[this.i].update(e,a,i,s);this.height=t.bottom,this.i++}line(e,t,s){let n=[];yp(this.cursor,n,t.from),s.length&&(n=n.concat(s));let i=this.gutter.config.lineMarker(e,t,n);i&&n.unshift(i);let a=this.gutter;n.length==0&&!a.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let s=this.gutter.config.widgetMarker(e,t.widget,t);s&&this.addElement(e,t,[s])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},zl=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let s in t.domEventHandlers)this.dom.addEventListener(s,n=>{let i=n.target,a;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let o=i.getBoundingClientRect();a=(o.top+o.bottom)/2}else a=n.clientY;let l=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[s](e,l,n)&&n.preventDefault()});this.markers=bE(t.markers(e)),t.initialSpacer&&(this.spacer=new Xl(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=bE(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let s=e.view.viewport;return!Mt.eq(this.markers,t,s.from,s.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},Xl=class{constructor(e,t,s,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,s,n)}update(e,t,s,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=s&&(this.dom.style.marginTop=(this.above=s)?s+"px":""),kj(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let s="cm-gutterElement",n=this.dom.firstChild;for(let i=0,a=0;;){let l=a,o=ii(l,o,u)||a(l,o,u):a}return s}})}}),ao=class extends Gr{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function _f(r,e){return r.state.facet(Ui).formatNumber(e,r.state)}var Pj=io.compute([Ui],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(Aj)},lineMarker(e,t,s){return s.some(n=>n.toDOM)?null:new ao(_f(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Ui)!=e.state.facet(Ui),initialSpacer(e){return new ao(_f(e,vE(e.state.doc.lines)))},updateSpacer(e,t){let s=_f(t.view,vE(t.view.state.doc.lines));return s==e.number?e:new ao(s)},domEventHandlers:r.facet(Ui).domEventHandlers}));function IC(r={}){return[Ui.of(r),_C(),Pj]}function vE(r){let e=9;for(;e{let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.head).from;n>t&&(t=n,e.push(Tj.range(n)))}return Mt.of(e)});function FC(){return Dj}var _j=0,go=class{constructor(e,t){this.from=e,this.to=t}},kt=class{constructor(e={}){this.id=_j++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Ar.match(e)),t=>{let s=e(t);return s===void 0?null:[this,s]}}};kt.closedBy=new kt({deserialize:r=>r.split(" ")});kt.openedBy=new kt({deserialize:r=>r.split(" ")});kt.group=new kt({deserialize:r=>r.split(" ")});kt.isolate=new kt({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});kt.contextHash=new kt({perNode:!0});kt.lookAhead=new kt({perNode:!0});kt.mounted=new kt({perNode:!0});var Xi=class{constructor(e,t,s){this.tree=e,this.overlay=t,this.parser=s}static get(e){return e&&e.props&&e.props[kt.mounted.id]}},Ij=Object.create(null),Ar=class r{constructor(e,t,s,n=0){this.name=e,this.props=t,this.id=s,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):Ij,s=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new r(e.name||"",t,e.id,s);if(e.props){for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(kt.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let s in e)for(let n of s.split(" "))t[n]=e[s];return s=>{for(let n=s.prop(kt.group),i=-1;i<(n?n.length:0);i++){let a=t[i<0?s.name:n[i]];if(a)return a}}}};Ar.none=new Ar("",Object.create(null),0,8);var yo=class r{constructor(e){this.types=e;for(let t=0;t0;for(let o=this.cursor(a|nr.IncludeAnonymous);;){let u=!1;if(o.from<=i&&o.to>=n&&(!l&&o.type.isAnonymous||t(o)!==!1)){if(o.firstChild())continue;u=!0}for(;u&&s&&(l||!o.type.isAnonymous)&&s(o),!o.nextSibling();){if(!o.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Rp(Ar.none,this.children,this.positions,0,this.children.length,0,this.length,(t,s,n)=>new r(this.type,t,s,n,this.propValues),e.makeTree||((t,s,n)=>new r(Ar.none,t,s,n)))}static build(e){return Rj(e)}};or.empty=new or(Ar.none,[],[],0);var Pp=class r{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new r(this.buffer,this.index)}},Ps=class r{constructor(e,t,s){this.buffer=e,this.length=t,this.set=s}get type(){return Ar.none}toString(){let e=[];for(let t=0;t0));o=a[o+3]);return l}slice(e,t,s){let n=this.buffer,i=new Uint16Array(t-e),a=0;for(let l=e,o=0;l=e&&te;case 1:return t<=e&&s>e;case 2:return s>e;case 4:return!0}}function xo(r,e,t,s){for(var n;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to0?l.length:-1;e!=u;e+=t){let c=l[e],p=o[e]+a.from;if(LC(n,s,p,p+c.length)){if(c instanceof Ps){if(i&nr.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,t,s-p,n);if(h>-1)return new ni(new Dp(a,c,e,p),null,h)}else if(i&nr.IncludeAnonymous||!c.type.isAnonymous||Fp(c)){let h;if(!(i&nr.IgnoreMounts)&&(h=Xi.get(c))&&!h.overlay)return new r(h.tree,p,e,a);let f=new r(c,p,e,a);return i&nr.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?c.children.length-1:0,t,s,n)}}}if(i&nr.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+t:e=t<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,s=0){let n;if(!(s&nr.IgnoreOverlays)&&(n=Xi.get(this._tree))&&n.overlay){let i=e-this.from;for(let{from:a,to:l}of n.overlay)if((t>0?a<=i:a=i:l>i))return new r(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,s)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function BC(r,e,t,s){let n=r.cursor(),i=[];if(!n.firstChild())return i;if(t!=null){for(let a=!1;!a;)if(a=n.type.is(t),!n.nextSibling())return i}for(;;){if(s!=null&&n.type.is(s))return i;if(n.type.is(e)&&i.push(n.node),!n.nextSibling())return s==null?i:[]}}function Tp(r,e,t=e.length-1){for(let s=r.parent;t>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(e[t]&&e[t]!=s.name)return!1;t--}}return!0}var Dp=class{constructor(e,t,s,n){this.parent=e,this.buffer=t,this.index=s,this.start=n}},ni=class r extends Jl{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,s){super(),this.context=e,this._parent=t,this.index=s,this.type=e.buffer.set.types[e.buffer.buffer[s]]}child(e,t,s){let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,s);return i<0?null:new r(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,s=0){if(s&nr.ExcludeBuffers)return null;let{buffer:n}=this.context,i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new r(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:s}=this.context,n=this.index+4,i=s.buffer[this.index+3];if(i>n){let a=s.buffer[this.index+1];e.push(s.slice(n,i,a)),t.push(0)}return new or(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function $C(r){if(!r.length)return null;let e=0,t=r[0];for(let i=1;it.from||a.to=e){let l=new ln(a.tree,a.overlay[0].from+i.from,-1,i);(n||(n=[s])).push(xo(l,e,t,!1))}}return n?$C(n):s}var bo=class{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ln)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let s=e._parent;s;s=s._parent)this.stack.unshift(s.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:s,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=s+n.buffer[e+1],this.to=s+n.buffer[e+2],!0}yield(e){return e?e instanceof ln?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,s){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,s,this.mode));let{buffer:n}=this.buffer,i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,s);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,s=this.mode){return this.buffer?s&nr.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,s))}parent(){if(!this.buffer)return this.yieldNode(this.mode&nr.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&nr.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,s=this.stack.length-1;if(e<0){let n=s<0?0:this.stack[s]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(s<0?t.buffer.length:t.buffer[this.stack[s]+3]))return this.yieldBuf(n)}return s<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,s,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let i=t+e,a=e<0?-1:s._tree.children.length;i!=a;i+=e){let l=s._tree.children[i];if(this.mode&nr.IncludeAnonymous||l instanceof Ps||!l.type.isAnonymous||Fp(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let a=e;a;a=a._parent)if(a.index==n){if(n==this.index)return a;t=a,s=i+1;break e}n=this.stack[--i]}for(let n=s;n=0;i--){if(i<0)return Tp(this.node,e,n);let a=s[t.buffer[this.stack[i]]];if(!a.isAnonymous){if(e[n]&&e[n]!=a.name)return!1;n--}}return!0}};function Fp(r){return r.children.some(e=>e instanceof Ps||!e.type.isAnonymous||Fp(e))}function Rj(r){var e;let{buffer:t,nodeSet:s,maxBufferLength:n=1024,reused:i=[],minRepeatType:a=s.types.length}=r,l=Array.isArray(t)?new Pp(t,t.length):t,o=s.types,u=0,c=0;function p(C,O,w,E,k,A){let{id:D,start:_,end:B,size:T}=l,F=c;for(;T<0;)if(l.next(),T==-1){let R=i[D];w.push(R),E.push(_-C);return}else if(T==-3){u=D;return}else if(T==-4){c=D;return}else throw new RangeError(`Unrecognized record size: ${T}`);let j=o[D],Q,I,N=_-C;if(B-_<=n&&(I=g(l.pos-O,k))){let R=new Uint16Array(I.size-I.skip),U=l.pos-I.size,V=R.length;for(;l.pos>U;)V=y(I.start,R,V);Q=new Ps(R,B-I.start,s),N=I.start-C}else{let R=l.pos-T;l.next();let U=[],V=[],ae=D>=a?D:-1,se=0,ve=B;for(;l.pos>R;)ae>=0&&l.id==ae&&l.size>=0?(l.end<=ve-n&&(d(U,V,_,se,l.end,ve,ae,F),se=U.length,ve=l.end),l.next()):A>2500?h(_,R,U,V):p(_,R,U,V,ae,A+1);if(ae>=0&&se>0&&se-1&&se>0){let H=f(j);Q=Rp(j,U,V,0,U.length,0,B-_,H,H)}else Q=m(j,U,V,B-_,F-B)}w.push(Q),E.push(N)}function h(C,O,w,E){let k=[],A=0,D=-1;for(;l.pos>O;){let{id:_,start:B,end:T,size:F}=l;if(F>4)l.next();else{if(D>-1&&B=0;T-=3)_[F++]=k[T],_[F++]=k[T+1]-B,_[F++]=k[T+2]-B,_[F++]=F;w.push(new Ps(_,k[2]-B,s)),E.push(B-C)}}function f(C){return(O,w,E)=>{let k=0,A=O.length-1,D,_;if(A>=0&&(D=O[A])instanceof or){if(!A&&D.type==C&&D.length==E)return D;(_=D.prop(kt.lookAhead))&&(k=w[A]+D.length+_)}return m(C,O,w,E,k)}}function d(C,O,w,E,k,A,D,_){let B=[],T=[];for(;C.length>E;)B.push(C.pop()),T.push(O.pop()+w-k);C.push(m(s.types[D],B,T,A-k,_-A)),O.push(k-w)}function m(C,O,w,E,k=0,A){if(u){let D=[kt.contextHash,u];A=A?[D].concat(A):[D]}if(k>25){let D=[kt.lookAhead,k];A=A?[D].concat(A):[D]}return new or(C,O,w,E,A)}function g(C,O){let w=l.fork(),E=0,k=0,A=0,D=w.end-n,_={size:0,start:0,skip:0};e:for(let B=w.pos-C;w.pos>B;){let T=w.size;if(w.id==O&&T>=0){_.size=E,_.start=k,_.skip=A,A+=4,E+=4,w.next();continue}let F=w.pos-T;if(T<0||F=a?4:0,Q=w.start;for(w.next();w.pos>F;){if(w.size<0)if(w.size==-3)j+=4;else break e;else w.id>=a&&(j+=4);w.next()}k=Q,E+=T,A+=j}return(O<0||E==C)&&(_.size=E,_.start=k,_.skip=A),_.size>4?_:void 0}function y(C,O,w){let{id:E,start:k,end:A,size:D}=l;if(l.next(),D>=0&&E4){let B=l.pos-(D-4);for(;l.pos>B;)w=y(C,O,w)}O[--w]=_,O[--w]=A-C,O[--w]=k-C,O[--w]=E}else D==-3?u=E:D==-4&&(c=E);return w}let b=[],v=[];for(;l.pos>0;)p(r.start||0,r.bufferStart||0,b,v,-1,0);let S=(e=r.length)!==null&&e!==void 0?e:b.length?v[0]+b[0].length:0;return new or(o[r.topID],b.reverse(),v.reverse(),S)}var NC=new WeakMap;function Kl(r,e){if(!r.isAnonymous||e instanceof Ps||e.type!=r)return 1;let t=NC.get(e);if(t==null){t=1;for(let s of e.children){if(s.type!=r||!(s instanceof or)){t=1;break}t+=Kl(r,s)}NC.set(e,t)}return t}function Rp(r,e,t,s,n,i,a,l,o){let u=0;for(let d=s;d=c)break;O+=w}if(v==S+1){if(O>c){let w=d[S];f(w.children,w.positions,0,w.children.length,m[S]+b);continue}p.push(d[S])}else{let w=m[v-1]+d[v-1].length-C;p.push(Rp(r,d,m,S,v,C,w,null,o))}h.push(C+b-i)}}return f(e,t,s,n,0),(l||o)(p,h,a)}var eu=class{constructor(){this.map=new WeakMap}setBuffer(e,t,s){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,s)}getBuffer(e,t){let s=this.map.get(e);return s&&s.get(t)}set(e,t){e instanceof ni?this.setBuffer(e.context.buffer,e.index,t):e instanceof ln&&this.map.set(e.tree,t)}get(e){return e instanceof ni?this.getBuffer(e.context.buffer,e.index):e instanceof ln?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}},si=class r{constructor(e,t,s,n,i=!1,a=!1){this.from=e,this.to=t,this.tree=s,this.offset=n,this.open=(i?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],s=!1){let n=[new r(0,e.length,e,0,!1,s)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,s=128){if(!t.length)return e;let n=[],i=1,a=e.length?e[0]:null;for(let l=0,o=0,u=0;;l++){let c=l=s)for(;a&&a.from=h.from||p<=h.to||u){let f=Math.max(h.from,o)-u,d=Math.min(h.to,p)-u;h=f>=d?null:new r(f,d,h.tree,h.offset+u,l>0,!!c)}if(h&&n.push(h),a.to>p)break;a=inew go(n.from,n.to)):[new go(0,0)]:[new go(0,e.length)],this.createParse(e,t||[],s)}parse(e,t,s){let n=this.startParse(e,t,s);for(;;){let i=n.advance();if(i)return i}}},Ip=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};var IG=new kt({perNode:!0});var Bj=0,qn=class r{constructor(e,t,s){this.set=e,this.base=t,this.modified=s,this.id=Bj++}static define(e){if(e?.base)throw new Error("Can not derive from a modified tag");let t=new r([],null,[]);if(t.set.push(t),e)for(let s of e.set)t.set.push(s);return t}static defineModifier(){let e=new su;return t=>t.modified.indexOf(e)>-1?t:su.get(t.base||t,t.modified.concat(e).sort((s,n)=>s.id-n.id))}},Nj=0,su=class r{constructor(){this.instances=[],this.id=Nj++}static get(e,t){if(!t.length)return e;let s=t[0].instances.find(l=>l.base==e&&Lj(t,l.modified));if(s)return s;let n=[],i=new qn(n,e,t);for(let l of t)l.instances.push(i);let a=$j(t);for(let l of e.set)if(!l.modified.length)for(let o of a)n.push(r.get(l,o));return i}};function Lj(r,e){return r.length==e.length&&r.every((t,s)=>t==e[s])}function $j(r){let e=[[]];for(let t=0;ts.length-t.length)}function iu(r){let e=Object.create(null);for(let t in r){let s=r[t];Array.isArray(s)||(s=[s]);for(let n of t.split(" "))if(n){let i=[],a=2,l=n;for(let p=0;;){if(l=="..."&&p>0&&p+3==n.length){a=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!h)throw new RangeError("Invalid path: "+n);if(i.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),p+=h[0].length,p==n.length)break;let f=n[p++];if(p==n.length&&f=="!"){a=0;break}if(f!="/")throw new RangeError("Invalid path: "+n);l=n.slice(p)}let o=i.length-1,u=i[o];if(!u)throw new RangeError("Invalid path: "+n);let c=new Yi(s,a,o>0?i.slice(0,o):null);e[u]=c.sort(e[u])}}return qC.add(e)}var qC=new kt,Yi=class{constructor(e,t,s,n){this.tags=e,this.mode=t,this.context=s,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let a=n;for(let l of i)for(let o of l.set){let u=t[o.id];if(u){a=a?a+" "+u:u;break}}return a},scope:s}}function Mj(r,e){let t=null;for(let s of r){let n=s.style(e);n&&(t=t?t+" "+n:n)}return t}function QC(r,e,t,s=0,n=r.length){let i=new Np(s,Array.isArray(e)?e:[e],t);i.highlightRange(r.cursor(),s,n,"",i.highlighters),i.flush(n)}var Np=class{constructor(e,t,s){this.at=e,this.highlighters=t,this.span=s,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,s,n,i){let{type:a,from:l,to:o}=e;if(l>=s||o<=t)return;a.isTop&&(i=this.highlighters.filter(f=>!f.scope||f.scope(a)));let u=n,c=jj(e)||Yi.empty,p=Mj(i,c.tags);if(p&&(u&&(u+=" "),u+=p,c.mode==1&&(n+=(n?" ":"")+p)),this.startSpan(Math.max(t,l),u),c.opaque)return;let h=e.tree&&e.tree.prop(kt.mounted);if(h&&h.overlay){let f=e.node.enter(h.overlay[0].from+l,1),d=this.highlighters.filter(g=>!g.scope||g.scope(h.tree.type)),m=e.firstChild();for(let g=0,y=l;;g++){let b=g=v||!e.nextSibling())););if(!b||v>s)break;y=b.to+l,y>t&&(this.highlightRange(f.cursor(),Math.max(t,b.from+l),Math.min(s,y),"",d),this.startSpan(Math.min(s,y),u))}m&&e.parent()}else if(e.firstChild()){h&&(n="");do if(!(e.to<=t)){if(e.from>=s)break;this.highlightRange(e,t,s,n,i),this.startSpan(Math.min(s,e.to),u)}while(e.nextSibling());e.parent()}}};function jj(r){let e=r.type.prop(qC);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}var lt=qn.define,tu=lt(),Ts=lt(),MC=lt(Ts),jC=lt(Ts),Ds=lt(),ru=lt(Ds),Bp=lt(Ds),jn=lt(),ii=lt(jn),$n=lt(),Mn=lt(),Lp=lt(),vo=lt(Lp),nu=lt(),ke={comment:tu,lineComment:lt(tu),blockComment:lt(tu),docComment:lt(tu),name:Ts,variableName:lt(Ts),typeName:MC,tagName:lt(MC),propertyName:jC,attributeName:lt(jC),className:lt(Ts),labelName:lt(Ts),namespace:lt(Ts),macroName:lt(Ts),literal:Ds,string:ru,docString:lt(ru),character:lt(ru),attributeValue:lt(ru),number:Bp,integer:lt(Bp),float:lt(Bp),bool:lt(Ds),regexp:lt(Ds),escape:lt(Ds),color:lt(Ds),url:lt(Ds),keyword:$n,self:lt($n),null:lt($n),atom:lt($n),unit:lt($n),modifier:lt($n),operatorKeyword:lt($n),controlKeyword:lt($n),definitionKeyword:lt($n),moduleKeyword:lt($n),operator:Mn,derefOperator:lt(Mn),arithmeticOperator:lt(Mn),logicOperator:lt(Mn),bitwiseOperator:lt(Mn),compareOperator:lt(Mn),updateOperator:lt(Mn),definitionOperator:lt(Mn),typeOperator:lt(Mn),controlOperator:lt(Mn),punctuation:Lp,separator:lt(Lp),bracket:vo,angleBracket:lt(vo),squareBracket:lt(vo),paren:lt(vo),brace:lt(vo),content:jn,heading:ii,heading1:lt(ii),heading2:lt(ii),heading3:lt(ii),heading4:lt(ii),heading5:lt(ii),heading6:lt(ii),contentSeparator:lt(jn),list:lt(jn),quote:lt(jn),emphasis:lt(jn),strong:lt(jn),link:lt(jn),monospace:lt(jn),strikethrough:lt(jn),inserted:lt(),deleted:lt(),changed:lt(),invalid:lt(),meta:nu,documentMeta:lt(nu),annotation:lt(nu),processingInstruction:lt(nu),definition:qn.defineModifier(),constant:qn.defineModifier(),function:qn.defineModifier(),standard:qn.defineModifier(),local:qn.defineModifier(),special:qn.defineModifier()},BG=$p([{tag:ke.link,class:"tok-link"},{tag:ke.heading,class:"tok-heading"},{tag:ke.emphasis,class:"tok-emphasis"},{tag:ke.strong,class:"tok-strong"},{tag:ke.keyword,class:"tok-keyword"},{tag:ke.atom,class:"tok-atom"},{tag:ke.bool,class:"tok-bool"},{tag:ke.url,class:"tok-url"},{tag:ke.labelName,class:"tok-labelName"},{tag:ke.inserted,class:"tok-inserted"},{tag:ke.deleted,class:"tok-deleted"},{tag:ke.literal,class:"tok-literal"},{tag:ke.string,class:"tok-string"},{tag:ke.number,class:"tok-number"},{tag:[ke.regexp,ke.escape,ke.special(ke.string)],class:"tok-string2"},{tag:ke.variableName,class:"tok-variableName"},{tag:ke.local(ke.variableName),class:"tok-variableName tok-local"},{tag:ke.definition(ke.variableName),class:"tok-variableName tok-definition"},{tag:ke.special(ke.variableName),class:"tok-variableName2"},{tag:ke.definition(ke.propertyName),class:"tok-propertyName tok-definition"},{tag:ke.typeName,class:"tok-typeName"},{tag:ke.namespace,class:"tok-namespace"},{tag:ke.className,class:"tok-className"},{tag:ke.macroName,class:"tok-macroName"},{tag:ke.propertyName,class:"tok-propertyName"},{tag:ke.operator,class:"tok-operator"},{tag:ke.comment,class:"tok-comment"},{tag:ke.meta,class:"tok-meta"},{tag:ke.invalid,class:"tok-invalid"},{tag:ke.punctuation,class:"tok-punctuation"}]);var Mp,Hi=new kt;function Yp(r){return ct.define({combine:r?e=>e.concat(r):void 0})}var lu=new kt,Yr=class{constructor(e,t,s=[],n=""){this.data=e,this.name=n,Ut.prototype.hasOwnProperty("tree")||Object.defineProperty(Ut.prototype,"tree",{get(){return pr(this)}}),this.parser=t,this.extension=[Ki.of(this),Ut.languageData.of((i,a,l)=>{let o=UC(i,a,l),u=o.type.prop(Hi);if(!u)return[];let c=i.facet(u),p=o.type.prop(lu);if(p){let h=o.resolve(a-o.from,l);for(let f of p)if(f.test(h,i)){let d=i.facet(f.facet);return f.type=="replace"?d:d.concat(c)}}return c})].concat(s)}isActiveAt(e,t,s=-1){return UC(e,t,s).type.prop(Hi)==this.data}findRegions(e){let t=e.facet(Ki);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let s=[],n=(i,a)=>{if(i.prop(Hi)==this.data){s.push({from:a,to:a+i.length});return}let l=i.prop(kt.mounted);if(l){if(l.tree.prop(Hi)==this.data){if(l.overlay)for(let o of l.overlay)s.push({from:o.from+a,to:o.to+a});else s.push({from:a,to:a+i.length});return}else if(l.overlay){let o=s.length;if(n(l.tree,l.overlay[0].from+a),s.length>o)return}}for(let o=0;os.isTop?t:void 0)]}),e.name)}configure(e,t){return new r(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function pr(r){let e=r.field(Yr.state,!1);return e?e.tree:or.empty}var Up=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let s=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-s,t-s)}},Oo=null,Vp=class r{constructor(e,t,s=[],n,i,a,l,o){this.parser=e,this.state=t,this.fragments=s,this.tree=n,this.treeLen=i,this.viewport=a,this.skipped=l,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,s){return new r(e,t,[],or.empty,0,s,[],null)}startParse(){return this.parser.startParse(new Up(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=or.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var s;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(si.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Oo;Oo=this;try{return e()}finally{Oo=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=VC(e,t.from,t.to);return e}changes(e,t){let{fragments:s,tree:n,treeLen:i,viewport:a,skipped:l}=this;if(this.takeTree(),!e.empty){let o=[];if(e.iterChangedRanges((u,c,p,h)=>o.push({fromA:u,toA:c,fromB:p,toB:h})),s=si.applyChanges(s,o),n=or.empty,i=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){l=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),p=e.mapPos(u.to,-1);ce.from&&(this.fragments=VC(this.fragments,n,i),this.skipped.splice(s--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Gi{createParse(t,s,n){let i=n[0].from,a=n[n.length-1].to;return{parsedPos:i,advance(){let o=Oo;if(o){for(let u of n)o.tempSkipped.push(u);e&&(o.scheduleOn=o.scheduleOn?Promise.all([o.scheduleOn,e]):e)}return this.parsedPos=a,new or(Ar.none,[],[],a-i)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Oo}};function VC(r,e,t){return si.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var So=class r{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),s=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,s)||t.takeTree(),new r(t)}static init(e){let t=Math.min(3e3,e.doc.length),s=Vp.create(e.facet(Ki).parser,e,{from:0,to:t});return s.work(20,t)||s.takeTree(),new r(s)}};Yr.state=Yt.define({create:So.init,update(r,e){for(let t of e.effects)if(t.is(Yr.setState))return t.value;return e.startState.facet(Ki)!=e.state.facet(Ki)?So.init(e.state):r.apply(e)}});var XC=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(XC=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var jp=typeof navigator<"u"&&(!((Mp=navigator.scheduling)===null||Mp===void 0)&&Mp.isInputPending)?()=>navigator.scheduling.isInputPending():null,qj=rr.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Yr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Yr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=XC(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndn+1e3,o=i.context.work(()=>jp&&jp()||Date.now()>a,n+(l?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Yr.setState.of(new So(i.context))})),this.chunkBudget>0&&!(o&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>yr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ki=ct.define({combine(r){return r.length?r[0]:null},enables:r=>[Yr.state,qj,at.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]}),ou=class{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};var Qj=ct.define(),ea=ct.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Eo(r){let e=r.facet(ea);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function ta(r,e){let t="",s=r.tabSize,n=r.facet(ea)[0];if(n==" "){for(;e>=s;)t+=" ",e-=s;n=" "}for(let i=0;i=e?Uj(r,t,e):null}var ai=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=Eo(e)}lineAt(e,t=1){let s=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:i}=this.options;return n!=null&&n>=s.from&&n<=s.to?i&&n==e?{text:"",from:e}:(t<0?n-1&&(i+=a-this.countColumn(s,s.search(/\S|$/))),i}countColumn(e,t=e.length){return ss(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:s,from:n}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let a=i(n);if(a>-1)return a}return this.countColumn(s,s.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},Hp=new kt;function Uj(r,e,t){let s=e.resolveStack(t),n=s.node.enterUnfinishedNodesBefore(t);if(n!=s.node){let i=[];for(let a=n;a!=s.node;a=a.parent)i.push(a);for(let a=i.length-1;a>=0;a--)s={node:i[a],next:s}}return GC(s,r,t)}function GC(r,e,t){for(let s=r;s;s=s.next){let n=Wj(s.node);if(n)return n(Wp.create(e,t,s))}return 0}function Vj(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function Wj(r){let e=r.type.prop(Hp);if(e)return e;let t=r.firstChild,s;if(t&&(s=t.type.prop(kt.closedBy))){let n=r.lastChild,i=n&&s.indexOf(n.name)>-1;return a=>HC(a,!0,1,void 0,i&&!Vj(a)?n.from:void 0)}return r.parent==null?Zj:null}function Zj(){return 0}var Wp=class r extends ai{constructor(e,t,s){super(e.state,e.options),this.base=e,this.pos=t,this.context=s}get node(){return this.context.node}static create(e,t,s){return new r(e,t,s)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let s=e.resolve(t.from);for(;s.parent&&s.parent.from==s.from;)s=s.parent;if(zj(s,e))break;t=this.state.doc.lineAt(s.from)}return this.lineIndent(t.from)}continue(){return GC(this.context.next,this.base,this.pos)}};function zj(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function Xj(r){let e=r.node,t=e.childAfter(e.from),s=e.lastChild;if(!t)return null;let n=r.options.simulateBreak,i=r.state.doc.lineAt(t.from),a=n==null||n<=i.from?i.to:Math.min(i.to,n);for(let l=t.to;;){let o=e.childAfter(l);if(!o||o==s)return null;if(!o.type.isSkipped)return o.fromHC(s,e,t,r)}function HC(r,e,t,s,n){let i=r.textAfter,a=i.match(/^\s*/)[0].length,l=s&&i.slice(a,a+s.length)==s||n==r.pos+a,o=e?Xj(r):null;return o?l?r.column(o.from):r.column(o.to):r.baseIndent+(l?0:r.unit*t)}var KC=r=>r.baseIndent;function cu({except:r,units:e=1}={}){return t=>{let s=r&&r.test(t.textAfter);return t.baseIndent+(s?0:e*t.unit)}}var Gj=200;function JC(){return Ut.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:s}=r.newSelection.main,n=t.lineAt(s);if(s>n.from+Gj)return r;let i=t.sliceString(n.from,s);if(!e.some(u=>u.test(i)))return r;let{state:a}=r,l=-1,o=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==l)continue;l=c.from;let p=uu(a,c.from);if(p==null)continue;let h=/^\s*/.exec(c.text)[0],f=ta(a,p);h!=f&&o.push({from:c.from,to:c.from+h.length,insert:f})}return o.length?[r,{changes:o,sequential:!0}]:r})}var ew=new kt;function tw(r){let e=r.firstChild,t=r.lastChild;return e&&e.tol.prop(Hi)==a.data:a?l=>l==a:void 0,this.style=$p(e.map(l=>({tag:l.tag,class:l.class||n(Object.assign({},l,{tag:null}))})),{all:i}).style,this.module=s?new nn(s):null,this.themeType=t.themeType}static define(e,t){return new r(e,t||{})}},Zp=ct.define(),rw=ct.define({combine(r){return r.length?[r[0]]:null}});function qp(r){let e=r.facet(Zp);return e.length?e:r.facet(rw)}function fu(r,e){let t=[Yj],s;return r instanceof Ji&&(r.module&&t.push(at.styleModule.of(r.module)),s=r.themeType),e?.fallback?t.push(rw.of(r)):s?t.push(Zp.computeN([at.darkTheme],n=>n.facet(at.darkTheme)==(s=="dark")?[r]:[])):t.push(Zp.of(r)),t}var zp=class{constructor(e){this.markCache=Object.create(null),this.tree=pr(e.state),this.decorations=this.buildDeco(e,qp(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pr(e.state),s=qp(e.state),n=s!=qp(e.startState),{viewport:i}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length=i.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,s),this.decoratedTo=i.to)}buildDeco(e,t){if(!t||!this.tree.length)return yt.none;let s=new In;for(let{from:n,to:i}of e.visibleRanges)QC(this.tree,t,(a,l,o)=>{s.add(a,l,this.markCache[o]||(this.markCache[o]=yt.mark({class:o})))},n,i);return s.finish()}},Yj=rn.high(rr.fromClass(zp,{decorations:r=>r.decorations})),nw=Ji.define([{tag:ke.meta,color:"#404740"},{tag:ke.link,textDecoration:"underline"},{tag:ke.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strong,fontWeight:"bold"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.keyword,color:"#708"},{tag:[ke.atom,ke.bool,ke.url,ke.contentSeparator,ke.labelName],color:"#219"},{tag:[ke.literal,ke.inserted],color:"#164"},{tag:[ke.string,ke.deleted],color:"#a11"},{tag:[ke.regexp,ke.escape,ke.special(ke.string)],color:"#e40"},{tag:ke.definition(ke.variableName),color:"#00f"},{tag:ke.local(ke.variableName),color:"#30a"},{tag:[ke.typeName,ke.namespace],color:"#085"},{tag:ke.className,color:"#167"},{tag:[ke.special(ke.variableName),ke.macroName],color:"#256"},{tag:ke.definition(ke.propertyName),color:"#00c"},{tag:ke.comment,color:"#940"},{tag:ke.invalid,color:"#f00"}]),Hj=at.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),sw=1e4,iw="()[]{}",aw=ct.define({combine(r){return kr(r,{afterCursor:!0,brackets:iw,maxScanDistance:sw,renderMatch:eq})}}),Kj=yt.mark({class:"cm-matchingBracket"}),Jj=yt.mark({class:"cm-nonmatchingBracket"});function eq(r){let e=[],t=r.matched?Kj:Jj;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}var tq=Yt.define({create(){return yt.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],s=e.state.facet(aw);for(let n of e.state.selection.ranges){if(!n.empty)continue;let i=bn(e.state,n.head,-1,s)||n.head>0&&bn(e.state,n.head-1,1,s)||s.afterCursor&&(bn(e.state,n.head,1,s)||n.headat.decorations.from(r)}),rq=[tq,Hj];function ow(r={}){return[aw.of(r),rq]}var nq=new kt;function Xp(r,e,t){let s=r.prop(e<0?kt.openedBy:kt.closedBy);if(s)return s;if(r.name.length==1){let n=t.indexOf(r.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function Gp(r){let e=r.type.prop(nq);return e?e(r.node):r}function bn(r,e,t,s={}){let n=s.maxScanDistance||sw,i=s.brackets||iw,a=pr(r),l=a.resolveInner(e,t);for(let o=l;o;o=o.parent){let u=Xp(o.type,t,i);if(u&&o.from0?e>=c.from&&ec.from&&e<=c.to))return sq(r,e,t,o,c,u,i)}}return iq(r,e,t,a,l.type,n,i)}function sq(r,e,t,s,n,i,a){let l=s.parent,o={from:n.from,to:n.to},u=0,c=l?.cursor();if(c&&(t<0?c.childBefore(s.from):c.childAfter(s.to)))do if(t<0?c.to<=s.from:c.from>=s.to){if(u==0&&i.indexOf(c.type.name)>-1&&c.from0)return null;let u={from:t<0?e-1:e,to:t>0?e+1:e},c=r.doc.iterRange(e,t>0?r.doc.length:0),p=0;for(let h=0;!c.next().done&&h<=i;){let f=c.value;t<0&&(h+=f.length);let d=e+h*t;for(let m=t>0?0:f.length-1,g=t>0?f.length:-1;m!=g;m+=t){let y=a.indexOf(f[m]);if(!(y<0||s.resolveInner(d+m,1).type!=n))if(y%2==0==t>0)p++;else{if(p==1)return{start:u,end:{from:d+m,to:d+m+1},matched:y>>1==o>>1};p--}}t>0&&(h+=f.length)}return c.done?{start:u,matched:!1}:null}var aq=Object.create(null),WC=[Ar.none];var ZC=[],zC=Object.create(null),oq=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])oq[r]=lq(aq,e);function Qp(r,e){ZC.indexOf(r)>-1||(ZC.push(r),console.warn(e))}function lq(r,e){let t=[];for(let l of e.split(" ")){let o=[];for(let u of l.split(".")){let c=r[u]||ke[u];c?typeof c=="function"?o.length?o=o.map(c):Qp(u,`Modifier ${u} used at start of tag`):o.length?Qp(u,`Tag ${u} used as modifier`):o=Array.isArray(c)?c:[c]:Qp(u,`Unknown highlighting tag ${u}`)}for(let u of o)t.push(u)}if(!t.length)return 0;let s=e.replace(/ /g,"_"),n=s+" "+t.map(l=>l.id),i=zC[n];if(i)return i.id;let a=zC[n]=Ar.define({id:WC.length,name:s,props:[iu({[s]:t})]});return WC.push(a),a.id}var UG={rtl:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:Zt.RTL}),ltr:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:Zt.LTR}),auto:yt.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var rh=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),s=sh(r.state,t.from);return s.line?uq(r):s.block?fq(r):!1};function nh(r,e){return({state:t,dispatch:s})=>{if(t.readOnly)return!1;let n=r(e,t);return n?(s(t.update(n)),!0):!1}}var uq=nh(dq,0);var cq=nh(mw,0);var fq=nh((r,e)=>mw(r,e,hq(e)),0);function sh(r,e){let t=r.languageDataAt("commentTokens",e);return t.length?t[0]:{}}var Co=50;function pq(r,{open:e,close:t},s,n){let i=r.sliceDoc(s-Co,s),a=r.sliceDoc(n,n+Co),l=/\s*$/.exec(i)[0].length,o=/^\s*/.exec(a)[0].length,u=i.length-l;if(i.slice(u-e.length,u)==e&&a.slice(o,o+t.length)==t)return{open:{pos:s-l,margin:l&&1},close:{pos:n+o,margin:o&&1}};let c,p;n-s<=2*Co?c=p=r.sliceDoc(s,n):(c=r.sliceDoc(s,s+Co),p=r.sliceDoc(n-Co,n));let h=/^\s*/.exec(c)[0].length,f=/\s*$/.exec(p)[0].length,d=p.length-f-t.length;return c.slice(h,h+e.length)==e&&p.slice(d,d+t.length)==t?{open:{pos:s+h+e.length,margin:/\s/.test(c.charAt(h+e.length))?1:0},close:{pos:n-f-t.length,margin:/\s/.test(p.charAt(d-1))?1:0}}:null}function hq(r){let e=[];for(let t of r.selection.ranges){let s=r.doc.lineAt(t.from),n=t.to<=s.to?s:r.doc.lineAt(t.to),i=e.length-1;i>=0&&e[i].to>s.from?e[i].to=n.to:e.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:n.to})}return e}function mw(r,e,t=e.selection.ranges){let s=t.map(i=>sh(e,i.from).block);if(!s.every(i=>i))return null;let n=t.map((i,a)=>pq(e,s[a],i.from,i.to));if(r!=2&&!n.every(i=>i))return{changes:e.changes(t.map((i,a)=>n[a]?[]:[{from:i.from,insert:s[a].open+" "},{from:i.to,insert:" "+s[a].close}]))};if(r!=1&&n.some(i=>i)){let i=[];for(let a=0,l;an&&(i==a||a>p.from)){n=p.from;let h=/^\s*/.exec(p.text)[0].length,f=h==p.length,d=p.text.slice(h,h+u.length)==u?h:-1;hi.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:l,token:o,indent:u,empty:c,single:p}of s)(p||!c)&&i.push({from:l.from+u,insert:o+" "});let a=e.changes(i);return{changes:a,selection:e.selection.map(a,1)}}else if(r!=1&&s.some(i=>i.comment>=0)){let i=[];for(let{line:a,comment:l,token:o}of s)if(l>=0){let u=a.from+l,c=u+o.length;a.text[c-a.from]==" "&&c++,i.push({from:u,to:c})}return{changes:i}}return null}var Jp=Mr.define(),mq=Mr.define(),gq=ct.define(),gw=ct.define({combine(r){return kr(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(s,n)=>e(s,n)||t(s,n)})}}),yw=Yt.define({create(){return oi.empty},update(r,e){let t=e.state.facet(gw),s=e.annotation(Jp);if(s){let o=vn.fromTransaction(e,s.selection),u=s.side,c=u==0?r.undone:r.done;return o?c=hu(c,c.length,t.minDepth,o):c=vw(c,e.startState.selection),new oi(u==0?s.rest:c,u==0?c:s.rest)}let n=e.annotation(mq);if((n=="full"||n=="before")&&(r=r.isolate()),e.annotation(lr.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let i=vn.fromTransaction(e),a=e.annotation(lr.time),l=e.annotation(lr.userEvent);return i?r=r.addChanges(i,a,l,t,e):e.selection&&(r=r.addSelection(e.startState.selection,a,l,t.newGroupDelay)),(n=="full"||n=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new oi(r.done.map(vn.fromJSON),r.undone.map(vn.fromJSON))}});function xw(r={}){return[yw,gw.of(r),at.domEventHandlers({beforeinput(e,t){let s=e.inputType=="historyUndo"?mu:e.inputType=="historyRedo"?wo:null;return s?(e.preventDefault(),s(t)):!1}})]}function du(r,e){return function({state:t,dispatch:s}){if(!e&&t.readOnly)return!1;let n=t.field(yw,!1);if(!n)return!1;let i=n.pop(r,t,e);return i?(s(i),!0):!1}}var mu=du(0,!1),wo=du(1,!1),yq=du(0,!0),xq=du(1,!0);var vn=class r{constructor(e,t,s,n,i){this.changes=e,this.effects=t,this.mapped=s,this.startSelection=n,this.selectionsAfter=i}setSelAfter(e){return new r(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,s;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(s=this.startSelection)===null||s===void 0?void 0:s.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new r(e.changes&&Dr.fromJSON(e.changes),[],e.mapped&&ns.fromJSON(e.mapped),e.startSelection&&Ze.fromJSON(e.startSelection),e.selectionsAfter.map(Ze.fromJSON))}static fromTransaction(e,t){let s=un;for(let n of e.startState.facet(gq)){let i=n(e);i.length&&(s=s.concat(i))}return!s.length&&e.changes.empty?null:new r(e.changes.invert(e.startState.doc),s,void 0,t||e.startState.selection,un)}static selection(e){return new r(void 0,un,void 0,void 0,e)}};function hu(r,e,t,s){let n=e+1>t+20?e-t-1:0,i=r.slice(n,e);return i.push(s),i}function bq(r,e){let t=[],s=!1;return r.iterChangedRanges((n,i)=>t.push(n,i)),e.iterChangedRanges((n,i,a,l)=>{for(let o=0;o=u&&a<=c&&(s=!0)}}),s}function vq(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,s)=>t.empty!=e.ranges[s].empty).length===0}function bw(r,e){return r.length?e.length?r.concat(e):r:e}var un=[],Oq=200;function vw(r,e){if(r.length){let t=r[r.length-1],s=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-Oq));return s.length&&s[s.length-1].eq(e)?r:(s.push(e),hu(r,r.length-1,1e9,t.setSelAfter(s)))}else return[vn.selection([e])]}function Sq(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function Kp(r,e){if(!r.length)return r;let t=r.length,s=un;for(;t;){let n=Eq(r[t-1],e,s);if(n.changes&&!n.changes.empty||n.effects.length){let i=r.slice(0,t);return i[t-1]=n,i}else e=n.mapped,t--,s=n.selectionsAfter}return s.length?[vn.selection(s)]:un}function Eq(r,e,t){let s=bw(r.selectionsAfter.length?r.selectionsAfter.map(l=>l.map(e)):un,t);if(!r.changes)return vn.selection(s);let n=r.changes.map(e),i=e.mapDesc(r.changes,!0),a=r.mapped?r.mapped.composeDesc(i):i;return new vn(n,wt.mapEffects(r.effects,e),a,r.startSelection.map(i),s)}var Cq=/^(input\.type|delete)($|\.)/,oi=class r{constructor(e,t,s=0,n=void 0){this.done=e,this.undone=t,this.prevTime=s,this.prevUserEvent=n}isolate(){return this.prevTime?new r(this.done,this.undone):this}addChanges(e,t,s,n,i){let a=this.done,l=a[a.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!s||Cq.test(s))&&(!l.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimet.empty?r.moveByChar(t,e):gu(t,e))}function Pr(r){return r.textDirectionAt(r.state.selection.main.head)==Zt.LTR}var Ew=r=>Sw(r,!Pr(r)),Cw=r=>Sw(r,Pr(r));function ww(r,e){return On(r,t=>t.empty?r.moveByGroup(t,e):gu(t,e))}var wq=r=>ww(r,!Pr(r)),kq=r=>ww(r,Pr(r));var YG=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function Aq(r,e,t){if(e.type.prop(t))return!0;let s=e.to-e.from;return s&&(s>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function yu(r,e,t){let s=pr(r).resolveInner(e.head),n=t?kt.closedBy:kt.openedBy;for(let o=e.head;;){let u=t?s.childAfter(o):s.childBefore(o);if(!u)break;Aq(r,u,n)?s=u:o=t?u.to:u.from}let i=s.type.prop(n),a,l;return i&&(a=t?bn(r,s.from,1):bn(r,s.to,-1))&&a.matched?l=t?a.end.to:a.end.from:l=t?s.to:s.from,Ze.cursor(l,t?-1:1)}var Pq=r=>On(r,e=>yu(r.state,e,!Pr(r))),Tq=r=>On(r,e=>yu(r.state,e,Pr(r)));function kw(r,e){return On(r,t=>{if(!t.empty)return gu(t,e);let s=r.moveVertically(t,e);return s.head!=t.head?s:r.moveToLineBoundary(t,e)})}var Aw=r=>kw(r,!1),Pw=r=>kw(r,!0);function Tw(r){let e=r.scrollDOM.clientHeighta.empty?r.moveVertically(a,e,t.height):gu(a,e));if(n.eq(s.selection))return!1;let i;if(t.selfScroll){let a=r.coordsAtPos(s.selection.main.head),l=r.scrollDOM.getBoundingClientRect(),o=l.top+t.marginTop,u=l.bottom-t.marginBottom;a&&a.top>o&&a.bottomDw(r,!1),eh=r=>Dw(r,!0);function _s(r,e,t){let s=r.lineBlockAt(e.head),n=r.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?s.to:s.from)&&(n=r.moveToLineBoundary(e,t,!1)),!t&&n.head==s.from&&s.length){let i=/^\s*/.exec(r.state.sliceDoc(s.from,Math.min(s.from+100,s.to)))[0].length;i&&e.head!=s.from+i&&(n=Ze.cursor(s.from+i))}return n}var Dq=r=>On(r,e=>_s(r,e,!0)),_q=r=>On(r,e=>_s(r,e,!1)),Iq=r=>On(r,e=>_s(r,e,!Pr(r))),Fq=r=>On(r,e=>_s(r,e,Pr(r))),Rq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).from,1)),Bq=r=>On(r,e=>Ze.cursor(r.lineBlockAt(e.head).to,-1));function Nq(r,e,t){let s=!1,n=ra(r.selection,i=>{let a=bn(r,i.head,-1)||bn(r,i.head,1)||i.head>0&&bn(r,i.head-1,1)||i.headNq(r,e,!1);function cn(r,e){let t=ra(r.state.selection,s=>{let n=e(s);return Ze.range(s.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(Qn(r.state,t)),!0)}function _w(r,e){return cn(r,t=>r.moveByChar(t,e))}var Iw=r=>_w(r,!Pr(r)),Fw=r=>_w(r,Pr(r));function Rw(r,e){return cn(r,t=>r.moveByGroup(t,e))}var $q=r=>Rw(r,!Pr(r)),Mq=r=>Rw(r,Pr(r));var jq=r=>cn(r,e=>yu(r.state,e,!Pr(r))),qq=r=>cn(r,e=>yu(r.state,e,Pr(r)));function Bw(r,e){return cn(r,t=>r.moveVertically(t,e))}var Nw=r=>Bw(r,!1),Lw=r=>Bw(r,!0);function $w(r,e){return cn(r,t=>r.moveVertically(t,e,Tw(r).height))}var uw=r=>$w(r,!1),cw=r=>$w(r,!0),Qq=r=>cn(r,e=>_s(r,e,!0)),Uq=r=>cn(r,e=>_s(r,e,!1)),Vq=r=>cn(r,e=>_s(r,e,!Pr(r))),Wq=r=>cn(r,e=>_s(r,e,Pr(r))),Zq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).from)),zq=r=>cn(r,e=>Ze.cursor(r.lineBlockAt(e.head).to)),fw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:0})),!0),pw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.doc.length})),!0),hw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.selection.main.anchor,head:0})),!0),dw=({state:r,dispatch:e})=>(e(Qn(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),Xq=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),Gq=({state:r,dispatch:e})=>{let t=xu(r).map(({from:s,to:n})=>Ze.range(s,Math.min(n+1,r.doc.length)));return e(r.update({selection:Ze.create(t),userEvent:"select"})),!0},Yq=({state:r,dispatch:e})=>{let t=ra(r.selection,s=>{var n;let i=pr(r).resolveStack(s.from,1);for(let a=i;a;a=a.next){let{node:l}=a;if((l.from=s.to||l.to>s.to&&l.from<=s.from)&&(!((n=l.parent)===null||n===void 0)&&n.parent))return Ze.range(l.to,l.from)}return s});return e(Qn(r,t)),!0},Hq=({state:r,dispatch:e})=>{let t=r.selection,s=null;return t.ranges.length>1?s=Ze.create([t.main]):t.main.empty||(s=Ze.create([Ze.cursor(t.main.head)])),s?(e(Qn(r,s)),!0):!1};function ko(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:s}=r,n=s.changeByRange(i=>{let{from:a,to:l}=i;if(a==l){let o=e(i);oa&&(t="delete.forward",o=pu(r,o,!0)),a=Math.min(a,o),l=Math.max(l,o)}else a=pu(r,a,!1),l=pu(r,l,!0);return a==l?{range:i}:{changes:{from:a,to:l},range:Ze.cursor(a,an(r)))s.between(e,e,(n,i)=>{ne&&(e=t?i:n)});return e}var Mw=(r,e,t)=>ko(r,s=>{let n=s.from,{state:i}=r,a=i.doc.lineAt(n),l,o;if(t&&!e&&n>a.from&&nMw(r,!1,!0);var jw=r=>Mw(r,!0,!1),qw=(r,e)=>ko(r,t=>{let s=t.head,{state:n}=r,i=n.doc.lineAt(s),a=n.charCategorizer(s);for(let l=null;;){if(s==(e?i.to:i.from)){s==t.head&&i.number!=(e?n.doc.lines:1)&&(s+=e?1:-1);break}let o=ur(i.text,s-i.from,e)+i.from,u=i.text.slice(Math.min(s,o)-i.from,Math.max(s,o)-i.from),c=a(u);if(l!=null&&c!=l)break;(u!=" "||s!=t.head)&&(l=c),s=o}return s}),Qw=r=>qw(r,!1),Kq=r=>qw(r,!0),Jq=r=>ko(r,e=>{let t=r.lineBlockAt(e.head).to;return e.headko(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),t5=r=>ko(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head{if(r.readOnly)return!1;let t=r.changeByRange(s=>({changes:{from:s.from,to:s.to,insert:Ft.of(["",""])},range:Ze.cursor(s.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},n5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(s=>{if(!s.empty||s.from==0||s.from==r.doc.length)return{range:s};let n=s.from,i=r.doc.lineAt(n),a=n==i.from?n-1:ur(i.text,n-i.from,!1)+i.from,l=n==i.to?n+1:ur(i.text,n-i.from,!0)+i.from;return{changes:{from:a,to:l,insert:r.doc.slice(n,l).append(r.doc.slice(a,n))},range:Ze.cursor(l)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function xu(r){let e=[],t=-1;for(let s of r.selection.ranges){let n=r.doc.lineAt(s.from),i=r.doc.lineAt(s.to);if(!s.empty&&s.to==i.from&&(i=r.doc.lineAt(s.to-1)),t>=n.number){let a=e[e.length-1];a.to=i.to,a.ranges.push(s)}else e.push({from:n.from,to:i.to,ranges:[s]});t=i.number+1}return e}function Uw(r,e,t){if(r.readOnly)return!1;let s=[],n=[];for(let i of xu(r)){if(t?i.to==r.doc.length:i.from==0)continue;let a=r.doc.lineAt(t?i.to+1:i.from-1),l=a.length+1;if(t){s.push({from:i.to,to:a.to},{from:i.from,insert:a.text+r.lineBreak});for(let o of i.ranges)n.push(Ze.range(Math.min(r.doc.length,o.anchor+l),Math.min(r.doc.length,o.head+l)))}else{s.push({from:a.from,to:i.from},{from:i.to,insert:r.lineBreak+a.text});for(let o of i.ranges)n.push(Ze.range(o.anchor-l,o.head-l))}}return s.length?(e(r.update({changes:s,scrollIntoView:!0,selection:Ze.create(n,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}var s5=({state:r,dispatch:e})=>Uw(r,e,!1),i5=({state:r,dispatch:e})=>Uw(r,e,!0);function Vw(r,e,t){if(r.readOnly)return!1;let s=[];for(let n of xu(r))t?s.push({from:n.from,insert:r.doc.slice(n.from,n.to)+r.lineBreak}):s.push({from:n.to,insert:r.lineBreak+r.doc.slice(n.from,n.to)});return e(r.update({changes:s,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var a5=({state:r,dispatch:e})=>Vw(r,e,!1),o5=({state:r,dispatch:e})=>Vw(r,e,!0),l5=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(xu(e).map(({from:n,to:i})=>(n>0?n--:i{let i;if(r.lineWrapping){let a=r.lineBlockAt(n.head),l=r.coordsAtPos(n.head,n.assoc||1);l&&(i=a.bottom+r.documentTop-l.bottom+r.defaultLineHeight/2)}return r.moveVertically(n,!0,i)}).map(t);return r.dispatch({changes:t,selection:s,scrollIntoView:!0,userEvent:"delete.line"}),!0};function u5(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=pr(r).resolveInner(e),s=t.childBefore(e),n=t.childAfter(e),i;return s&&n&&s.to<=e&&n.from>=e&&(i=s.type.prop(kt.closedBy))&&i.indexOf(n.name)>-1&&r.doc.lineAt(s.to).from==r.doc.lineAt(n.from).from&&!/\S/.test(r.sliceDoc(s.to,n.from))?{from:s.to,to:n.from}:null}var c5=Ww(!1),f5=Ww(!0);function Ww(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let s=e.changeByRange(n=>{let{from:i,to:a}=n,l=e.doc.lineAt(i),o=!r&&i==a&&u5(e,i);r&&(i=a=(a<=l.to?l:e.doc.lineAt(a)).to);let u=new ai(e,{simulateBreak:i,simulateDoubleBreak:!!o}),c=uu(u,i);for(c==null&&(c=ss(/^\s*/.exec(e.doc.lineAt(i).text)[0],e.tabSize));al.from&&i{let n=[];for(let a=s.from;a<=s.to;){let l=r.doc.lineAt(a);l.number>t&&(s.empty||s.to>l.from)&&(e(l,n,s),t=l.number),a=l.to+1}let i=r.changes(n);return{changes:n,range:Ze.range(i.mapPos(s.anchor,1),i.mapPos(s.head,1))}})}var p5=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),s=new ai(r,{overrideIndentation:i=>{let a=t[i];return a??-1}}),n=ih(r,(i,a,l)=>{let o=uu(s,i.from);if(o==null)return;/\S/.test(i.text)||(o=0);let u=/^\s*/.exec(i.text)[0],c=ta(r,o);(u!=c||l.fromr.readOnly?!1:(e(r.update(ih(r,(t,s)=>{s.push({from:t.from,insert:r.facet(ea)})}),{userEvent:"input.indent"})),!0),Zw=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(ih(r,(t,s)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let i=ss(n,r.tabSize),a=0,l=ta(r,Math.max(0,i-Eo(r)));for(;a({mac:r.key,run:r.run,shift:r.shift}))),zw=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Pq,shift:jq},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Tq,shift:qq},{key:"Alt-ArrowUp",run:s5},{key:"Shift-Alt-ArrowUp",run:a5},{key:"Alt-ArrowDown",run:i5},{key:"Shift-Alt-ArrowDown",run:o5},{key:"Escape",run:Hq},{key:"Mod-Enter",run:f5},{key:"Alt-l",mac:"Ctrl-l",run:Gq},{key:"Mod-i",run:Yq,preventDefault:!0},{key:"Mod-[",run:Zw},{key:"Mod-]",run:bu},{key:"Mod-Alt-\\",run:p5},{key:"Shift-Mod-k",run:l5},{key:"Shift-Mod-\\",run:Lq},{key:"Mod-/",run:rh},{key:"Alt-A",run:cq}].concat(d5),Xw={key:"Tab",run:bu,shift:Zw};function Vt(){var r=arguments[0];typeof r=="string"&&(r=document.createElement(r));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var n=t[s];typeof n=="string"?r.setAttribute(s,n):n!=null&&(r[s]=n)}e++}for(;er.normalize("NFKD"):r=>r,Fs=class{constructor(e,t,s=0,n=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(s,n),this.bufferStart=s,this.normalize=i?l=>i(Yw(l)):Yw,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return gr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=za(e),s=this.bufferStart+this.bufferPos;this.bufferPos+=$r(e);let n=this.normalize(t);for(let i=0,a=s;;i++){let l=n.charCodeAt(i),o=this.match(l,a,this.bufferPos+this.bufferStart);if(i==n.length-1){if(o)return this.value=o,this;break}a==s&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let s=this.curLineStart+t.index,n=s+t[0].length;if(this.matchPos=wu(this.text,n+(s==n?1:0)),s==this.curLineStart+this.curLine.length&&this.nextLine(),(sthis.value.to)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=s||n.to<=t){let l=new r(t,e.sliceString(t,s));return ah.set(e,l),l}if(n.from==t&&n.to==s)return n;let{text:i,from:a}=n;return a>t&&(i=e.sliceString(t,a)+i,a=t),n.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let s=this.flat.from+t.index,n=s+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(s,n,t)))return this.value={from:s,to:n,match:t},this.matchPos=wu(this.text,n+(s==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Eu.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(Su.prototype[Symbol.iterator]=Cu.prototype[Symbol.iterator]=function(){return this});function m5(r){try{return new RegExp(r,ph),!0}catch{return!1}}function wu(r,e){if(e>=r.length)return e;let t=r.lineAt(e),s;for(;e=56320&&s<57344;)e++;return e}function oh(r){let e=String(r.state.doc.lineAt(r.state.selection.main.head).number),t=Vt("input",{class:"cm-textfield",name:"line",value:e}),s=Vt("form",{class:"cm-gotoLine",onkeydown:i=>{i.keyCode==27?(i.preventDefault(),r.dispatch({effects:ku.of(!1)}),r.focus()):i.keyCode==13&&(i.preventDefault(),n())},onsubmit:i=>{i.preventDefault(),n()}},Vt("label",r.state.phrase("Go to line"),": ",t)," ",Vt("button",{class:"cm-button",type:"submit"},r.state.phrase("go")));function n(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!i)return;let{state:a}=r,l=a.doc.lineAt(a.selection.main.head),[,o,u,c,p]=i,h=c?+c.slice(1):0,f=u?+u:l.number;if(u&&p){let g=f/100;o&&(g=g*(o=="-"?-1:1)+l.number/a.doc.lines),f=Math.round(a.doc.lines*g)}else u&&o&&(f=f*(o=="-"?-1:1)+l.number);let d=a.doc.line(Math.max(1,Math.min(a.doc.lines,f))),m=Ze.cursor(d.from+Math.max(0,Math.min(h,d.length)));r.dispatch({effects:[ku.of(!1),at.scrollIntoView(m.from,{y:"center"})],selection:m}),r.focus()}return{dom:s}}var ku=wt.define(),Hw=Yt.define({create(){return!0},update(r,e){for(let t of e.effects)t.is(ku)&&(r=t.value);return r},provide:r=>ri.from(r,e=>e?oh:null)}),g5=r=>{let e=zi(r,oh);if(!e){let t=[ku.of(!0)];r.state.field(Hw,!1)==null&&t.push(wt.appendConfig.of([Hw,y5])),r.dispatch({effects:t}),e=zi(r,oh)}return e&&e.dom.querySelector("input").select(),!0},y5=at.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),x5={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},tk=ct.define({combine(r){return kr(r,x5,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function rk(r){let e=[E5,S5];return r&&e.push(tk.of(r)),e}var b5=yt.mark({class:"cm-selectionMatch"}),v5=yt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Kw(r,e,t,s){return(t==0||r(e.sliceDoc(t-1,t))!=Wt.Word)&&(s==e.doc.length||r(e.sliceDoc(s,s+1))!=Wt.Word)}function O5(r,e,t,s){return r(e.sliceDoc(t,t+1))==Wt.Word&&r(e.sliceDoc(s-1,s))==Wt.Word}var S5=rr.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.selectionSet||r.docChanged||r.viewportChanged)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=r.state.facet(tk),{state:t}=r,s=t.selection;if(s.ranges.length>1)return yt.none;let n=s.main,i,a=null;if(n.empty){if(!e.highlightWordAroundCursor)return yt.none;let o=t.wordAt(n.head);if(!o)return yt.none;a=t.charCategorizer(n.head),i=t.sliceDoc(o.from,o.to)}else{let o=n.to-n.from;if(o200)return yt.none;if(e.wholeWords){if(i=t.sliceDoc(n.from,n.to),a=t.charCategorizer(n.head),!(Kw(a,t,n.from,n.to)&&O5(a,t,n.from,n.to)))return yt.none}else if(i=t.sliceDoc(n.from,n.to),!i)return yt.none}let l=[];for(let o of r.visibleRanges){let u=new Fs(t.doc,i,o.from,o.to);for(;!u.next().done;){let{from:c,to:p}=u.value;if((!a||Kw(a,t,c,p))&&(n.empty&&c<=n.from&&p>=n.to?l.push(v5.range(c,p)):(c>=n.to||p<=n.from)&&l.push(b5.range(c,p)),l.length>e.maxMatches))return yt.none}}return yt.set(l)}},{decorations:r=>r.decorations}),E5=at.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),C5=({state:r,dispatch:e})=>{let{selection:t}=r,s=Ze.create(t.ranges.map(n=>r.wordAt(n.head)||Ze.cursor(n.head)),t.mainIndex);return s.eq(t)?!1:(e(r.update({selection:s})),!0)};function w5(r,e){let{main:t,ranges:s}=r.selection,n=r.wordAt(t.head),i=n&&n.from==t.from&&n.to==t.to;for(let a=!1,l=new Fs(r.doc,e,s[s.length-1].to);;)if(l.next(),l.done){if(a)return null;l=new Fs(r.doc,e,0,Math.max(0,s[s.length-1].from-1)),a=!0}else{if(a&&s.some(o=>o.from==l.value.from))continue;if(i){let o=r.wordAt(l.value.from);if(!o||o.from!=l.value.from||o.to!=l.value.to)continue}return l.value}}var k5=({state:r,dispatch:e})=>{let{ranges:t}=r.selection;if(t.some(i=>i.from===i.to))return C5({state:r,dispatch:e});let s=r.sliceDoc(t[0].from,t[0].to);if(r.selection.ranges.some(i=>r.sliceDoc(i.from,i.to)!=s))return!1;let n=w5(r,s);return n?(e(r.update({selection:r.selection.addRange(Ze.range(n.from,n.to),!1),effects:at.scrollIntoView(n.to)})),!0):!1},ia=ct.define({combine(r){return kr(r,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new fh(e),scrollToMatch:e=>at.scrollIntoView(e)})}});var Au=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||m5(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,s)=>s=="n"?` +`:s=="r"?"\r":s=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new uh(this):new lh(this)}getCursor(e,t=0,s){let n=e.doc?e:Ut.create({doc:e});return s==null&&(s=n.doc.length),this.regexp?sa(this,n,t,s):na(this,n,t,s)}},Pu=class{constructor(e){this.spec=e}};function na(r,e,t,s){return new Fs(e.doc,r.unquoted,t,s,r.caseSensitive?void 0:n=>n.toLowerCase(),r.wholeWord?A5(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function A5(r,e){return(t,s,n,i)=>((i>t||i+n.length=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=na(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(s+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}};function sa(r,e,t,s){return new Su(e.doc,r.search,{ignoreCase:!r.caseSensitive,test:r.wholeWord?P5(e.charCategorizer(e.selection.main.head)):void 0},t,s)}function Tu(r,e){return r.slice(ur(r,e,!1),e)}function Du(r,e){return r.slice(e,ur(r,e))}function P5(r){return(e,t,s)=>!s[0].length||(r(Tu(s.input,s.index))!=Wt.Word||r(Du(s.input,s.index))!=Wt.Word)&&(r(Du(s.input,s.index+s[0].length))!=Wt.Word||r(Tu(s.input,s.index+s[0].length))!=Wt.Word)}var uh=class extends Pu{nextMatch(e,t,s){let n=sa(this.spec,e,s,e.doc.length).next();return n.done&&(n=sa(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,s){for(let n=1;;n++){let i=Math.max(t,s-n*1e4),a=sa(this.spec,e,i,s),l=null;for(;!a.next().done;)l=a.value;if(l&&(i==t||l.from>i+10))return l;if(i==t)return null}}prevMatch(e,t,s){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,s,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,s)=>s=="$"?"$":s=="&"?e.match[0]:s!="0"&&+s=t)return null;n.push(s.value)}return n}highlight(e,t,s,n){let i=sa(this.spec,e,Math.max(0,t-250),Math.min(s+250,e.doc.length));for(;!i.next().done;)n(i.value.from,i.value.to)}},Po=wt.define(),hh=wt.define(),Is=Yt.define({create(r){return new Ao(ch(r).create(),null)},update(r,e){for(let t of e.effects)t.is(Po)?r=new Ao(t.value.create(),r.panel):t.is(hh)&&(r=new Ao(r.query,t.value?dh:null));return r},provide:r=>ri.from(r,e=>e.panel)});var Ao=class{constructor(e,t){this.query=e,this.panel=t}},T5=yt.mark({class:"cm-searchMatch"}),D5=yt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),_5=rr.fromClass(class{constructor(r){this.view=r,this.decorations=this.highlight(r.state.field(Is))}update(r){let e=r.state.field(Is);(e!=r.startState.field(Is)||r.docChanged||r.selectionSet||r.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:r,panel:e}){if(!e||!r.spec.valid)return yt.none;let{view:t}=this,s=new In;for(let n=0,i=t.visibleRanges,a=i.length;ni[n+1].from-2*250;)o=i[++n].to;r.highlight(t.state,l,o,(u,c)=>{let p=t.state.selection.ranges.some(h=>h.from==u&&h.to==c);s.add(u,c,p?D5:T5)})}return s.finish()}},{decorations:r=>r.decorations});function To(r){return e=>{let t=e.state.field(Is,!1);return t&&t.query.spec.valid?r(e,t):ik(e)}}var _u=To((r,{query:e})=>{let{to:t}=r.state.selection.main,s=e.nextMatch(r.state,t,t);if(!s)return!1;let n=Ze.single(s.from,s.to),i=r.state.facet(ia);return r.dispatch({selection:n,effects:[mh(r,s),i.scrollToMatch(n.main,r)],userEvent:"select.search"}),sk(r),!0}),Iu=To((r,{query:e})=>{let{state:t}=r,{from:s}=t.selection.main,n=e.prevMatch(t,s,s);if(!n)return!1;let i=Ze.single(n.from,n.to),a=r.state.facet(ia);return r.dispatch({selection:i,effects:[mh(r,n),a.scrollToMatch(i.main,r)],userEvent:"select.search"}),sk(r),!0}),I5=To((r,{query:e})=>{let t=e.matchAll(r.state,1e3);return!t||!t.length?!1:(r.dispatch({selection:Ze.create(t.map(s=>Ze.range(s.from,s.to))),userEvent:"select.search.matches"}),!0)}),F5=({state:r,dispatch:e})=>{let t=r.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:s,to:n}=t.main,i=[],a=0;for(let l=new Fs(r.doc,r.sliceDoc(s,n));!l.next().done;){if(i.length>1e3)return!1;l.value.from==s&&(a=i.length),i.push(Ze.range(l.value.from,l.value.to))}return e(r.update({selection:Ze.create(i,a),userEvent:"select.search.matches"})),!0},Jw=To((r,{query:e})=>{let{state:t}=r,{from:s,to:n}=t.selection.main;if(t.readOnly)return!1;let i=e.nextMatch(t,s,s);if(!i)return!1;let a=[],l,o,u=[];if(i.from==s&&i.to==n&&(o=t.toText(e.getReplacement(i)),a.push({from:i.from,to:i.to,insert:o}),i=e.nextMatch(t,i.from,i.to),u.push(at.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(s).number)+"."))),i){let c=a.length==0||a[0].from>=i.to?0:i.to-i.from-o.length;l=Ze.single(i.from-c,i.to-c),u.push(mh(r,i)),u.push(t.facet(ia).scrollToMatch(l.main,r))}return r.dispatch({changes:a,selection:l,effects:u,userEvent:"input.replace"}),!0}),R5=To((r,{query:e})=>{if(r.state.readOnly)return!1;let t=e.matchAll(r.state,1e9).map(n=>{let{from:i,to:a}=n;return{from:i,to:a,insert:e.getReplacement(n)}});if(!t.length)return!1;let s=r.state.phrase("replaced $ matches",t.length)+".";return r.dispatch({changes:t,effects:at.announce.of(s),userEvent:"input.replace.all"}),!0});function dh(r){return r.state.facet(ia).createPanel(r)}function ch(r,e){var t,s,n,i,a;let l=r.selection.main,o=l.empty||l.to>l.from+100?"":r.sliceDoc(l.from,l.to);if(e&&!o)return e;let u=r.facet(ia);return new Au({search:((t=e?.literal)!==null&&t!==void 0?t:u.literal)?o:o.replace(/\n/g,"\\n"),caseSensitive:(s=e?.caseSensitive)!==null&&s!==void 0?s:u.caseSensitive,literal:(n=e?.literal)!==null&&n!==void 0?n:u.literal,regexp:(i=e?.regexp)!==null&&i!==void 0?i:u.regexp,wholeWord:(a=e?.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function nk(r){let e=zi(r,dh);return e&&e.dom.querySelector("[main-field]")}function sk(r){let e=nk(r);e&&e==r.root.activeElement&&e.select()}var ik=r=>{let e=r.state.field(Is,!1);if(e&&e.panel){let t=nk(r);if(t&&t!=r.root.activeElement){let s=ch(r.state,e.query.spec);s.valid&&r.dispatch({effects:Po.of(s)}),t.focus(),t.select()}}else r.dispatch({effects:[hh.of(!0),e?Po.of(ch(r.state,e.query.spec)):wt.appendConfig.of(N5)]});return!0},ak=r=>{let e=r.state.field(Is,!1);if(!e||!e.panel)return!1;let t=zi(r,dh);return t&&t.dom.contains(r.root.activeElement)&&r.focus(),r.dispatch({effects:hh.of(!1)}),!0},ok=[{key:"Mod-f",run:ik,scope:"editor search-panel"},{key:"F3",run:_u,shift:Iu,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:_u,shift:Iu,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ak,scope:"editor search-panel"},{key:"Mod-Shift-l",run:F5},{key:"Mod-Alt-g",run:g5},{key:"Mod-d",run:k5,preventDefault:!0}],fh=class{constructor(e){this.view=e;let t=this.query=e.state.field(Is).query.spec;this.commit=this.commit.bind(this),this.searchField=Vt("input",{value:t.search,placeholder:Hr(e,"Find"),"aria-label":Hr(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Vt("input",{value:t.replace,placeholder:Hr(e,"Replace"),"aria-label":Hr(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Vt("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Vt("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Vt("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function s(n,i,a){return Vt("button",{class:"cm-button",name:n,onclick:i,type:"button"},a)}this.dom=Vt("div",{onkeydown:n=>this.keydown(n),class:"cm-search"},[this.searchField,s("next",()=>_u(e),[Hr(e,"next")]),s("prev",()=>Iu(e),[Hr(e,"previous")]),s("select",()=>I5(e),[Hr(e,"all")]),Vt("label",null,[this.caseField,Hr(e,"match case")]),Vt("label",null,[this.reField,Hr(e,"regexp")]),Vt("label",null,[this.wordField,Hr(e,"by word")]),...e.state.readOnly?[]:[Vt("br"),this.replaceField,s("replace",()=>Jw(e),[Hr(e,"replace")]),s("replaceAll",()=>R5(e),[Hr(e,"replace all")])],Vt("button",{name:"close",onclick:()=>ak(e),"aria-label":Hr(e,"close"),type:"button"},["\xD7"])])}commit(){let e=new Au({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Po.of(e)}))}keydown(e){gC(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Iu:_u)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Jw(this.view))}update(e){for(let t of e.transactions)for(let s of t.effects)s.is(Po)&&!s.value.eq(this.query)&&this.setQuery(s.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ia).top}};function Hr(r,e){return r.state.phrase(e)}var vu=30,Ou=/[\s\.,:;?!]/;function mh(r,{from:e,to:t}){let s=r.state.doc.lineAt(e),n=r.state.doc.lineAt(t).to,i=Math.max(s.from,e-vu),a=Math.min(n,t+vu),l=r.state.sliceDoc(i,a);if(i!=s.from){for(let o=0;ol.length-vu;o--)if(!Ou.test(l[o-1])&&Ou.test(l[o])){l=l.slice(0,o);break}}return at.announce.of(`${r.state.phrase("current match")}. ${l} ${r.state.phrase("on line")} ${s.number}.`)}var B5=at.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),N5=[Is,rn.low(_5),B5];var Ru=class{constructor(e,t,s){this.state=e,this.pos=t,this.explicit=s,this.abortListeners=[]}tokenBefore(e){let t=pr(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),s=Math.max(t.from,this.pos-250),n=t.text.slice(s-t.from,this.pos-t.from),i=n.search(yk(e,!1));return i<0?null:{from:s+i,to:this.pos,text:n.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}};function lk(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function L5(r){let e=Object.create(null),t=Object.create(null);for(let{label:n}of r){e[n[0]]=!0;for(let i=1;itypeof n=="string"?{label:n}:n),[t,s]=e.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:L5(e);return n=>{let i=n.matchBefore(s);return i||n.explicit?{from:i?i.from:n.pos,options:e,validFor:t}:null}}function gk(r,e){return t=>{for(let s=pr(t.state).resolveInner(t.pos,-1);s;s=s.parent){if(r.indexOf(s.name)>-1)return null;if(s.type.isTop)break}return e(t)}}var Bu=class{constructor(e,t,s,n){this.completion=e,this.source=t,this.match=s,this.score=n}};function Rs(r){return r.selection.main.from}function yk(r,e){var t;let{source:s}=r,n=e&&s[0]!="^",i=s[s.length-1]!="$";return!n&&!i?r:new RegExp(`${n?"^":""}(?:${s})${i?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}var Th=Mr.define();function $5(r,e,t,s){let{main:n}=r.selection,i=t-n.from,a=s-n.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=n&&t!=s&&r.sliceDoc(l.from+i,l.from+a)!=r.sliceDoc(t,s)?{range:l}:{changes:{from:l.from+i,to:s==n.from?l.to:l.from+a,insert:e},range:Ze.cursor(l.from+i+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}var uk=new WeakMap;function M5(r){if(!Array.isArray(r))return r;let e=uk.get(r);return e||uk.set(r,e=Ph(r)),e}var Nu=wt.define(),Do=wt.define(),xh=class{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&C<=57||C>=97&&C<=122?2:C>=65&&C<=90?1:0:(O=za(C))!=O.toLowerCase()?1:O!=O.toUpperCase()?2:0;(!b||w==1&&g||S==0&&w!=0)&&(t[p]==C||s[p]==C&&(h=!0)?a[p++]=b:a.length&&(y=!1)),S=w,b+=$r(C)}return p==o&&a[0]==0&&y?this.result(-100+(h?-200:0),a,e):f==o&&d==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):f==o?this.ret(-900-e.length,[d,m]):p==o?this.result(-100+(h?-200:0)+-700+(y?0:-1100),a,e):t.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,s){let n=[],i=0;for(let a of t){let l=a+(this.astral?$r(gr(s,a)):1);i&&n[i-1]==a?n[i-1]=l:(n[i++]=a,n[i++]=l)}return this.ret(e-s.length,n)}},bh=class{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:j5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>s=>ck(e(s),t(s)),optionClass:(e,t)=>s=>ck(e(s),t(s)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function ck(r,e){return r?e?r+" "+e:r:e}function j5(r,e,t,s,n,i){let a=r.textDirection==Zt.RTL,l=a,o=!1,u="top",c,p,h=e.left-n.left,f=n.right-e.right,d=s.right-s.left,m=s.bottom-s.top;if(l&&h=m||b>e.top?c=t.bottom-e.top:(u="bottom",c=e.bottom-t.top)}let g=(e.bottom-e.top)/i.offsetHeight,y=(e.right-e.left)/i.offsetWidth;return{style:`${u}: ${c/g}px; max-width: ${p/y}px`,class:"cm-completionInfo-"+(o?a?"left-narrow":"right-narrow":l?"left":"right")}}function q5(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let s=document.createElement("div");return s.classList.add("cm-completionIcon"),t.type&&s.classList.add(...t.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),s.setAttribute("aria-hidden","true"),s},position:20}),e.push({render(t,s,n,i){let a=document.createElement("span");a.className="cm-completionLabel";let l=t.displayLabel||t.label,o=0;for(let u=0;uo&&a.appendChild(document.createTextNode(l.slice(o,c)));let h=a.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(l.slice(c,p))),h.className="cm-completionMatchedText",o=p}return ot.position-s.position).map(t=>t.render)}function gh(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let n=Math.floor(e/t);return{from:n*t,to:(n+1)*t}}let s=Math.floor((r-e)/t);return{from:r-(s+1)*t,to:r-s*t}}var vh=class{constructor(e,t,s){this.view=e,this.stateField=t,this.applyCompletion=s,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:o=>this.placeInfo(o),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:i,selected:a}=n.open,l=e.state.facet(Sr);this.optionContent=q5(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=gh(i.length,a,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",o=>{let{options:u}=e.state.field(t).open;for(let c=o.target,p;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(p=/-(\d+)$/.exec(c.id))&&+p[1]{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(Sr).closeOnBlur&&o.relatedTarget!=e.contentDOM&&e.dispatch({effects:Do.of(null)})}),this.showOptions(i,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let s=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),s!=n){let{options:i,selected:a,disabled:l}=s.open;(!n.open||n.open.options!=i)&&(this.range=gh(i.length,a,e.state.facet(Sr).maxRenderedOptions),this.showOptions(i,s.id)),this.updateSel(),l!=((t=n.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let s of this.currentClass.split(" "))s&&this.dom.classList.remove(s);for(let s of t.split(" "))s&&this.dom.classList.add(s);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=gh(t.options.length,t.selected,this.view.state.facet(Sr).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:s}=t.options[t.selected],{info:n}=s;if(!n)return;let i=typeof n=="string"?document.createTextNode(n):n(s);if(!i)return;"then"in i?i.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,s)}).catch(a=>yr(this.view.state,a,"completion info")):this.addInfoPane(i,s)}}addInfoPane(e,t){this.destroyInfo();let s=this.info=document.createElement("div");if(s.className="cm-tooltip cm-completionInfo",e.nodeType!=null)s.appendChild(e),this.infoDestroy=null;else{let{dom:n,destroy:i}=e;s.appendChild(n),this.infoDestroy=i||null}this.dom.appendChild(s),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let s=this.list.firstChild,n=this.range.from;s;s=s.nextSibling,n++)s.nodeName!="LI"||!s.id?n--:n==e?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),t=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected");return t&&U5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),s=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),i=this.space;if(!i){let a=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return n.top>Math.min(i.bottom,t.bottom)-10||n.bottoms.from||s.from==0))if(i=h,typeof u!="string"&&u.header)n.appendChild(u.header(u));else{let f=n.appendChild(document.createElement("completion-section"));f.textContent=h}}let c=n.appendChild(document.createElement("li"));c.id=t+"-"+a,c.setAttribute("role","option");let p=this.optionClass(l);p&&(c.className=p);for(let h of this.optionContent){let f=h(l,this.view.state,this.view,o);f&&c.appendChild(f)}}return s.from&&n.classList.add("cm-completionListIncompleteTop"),s.tonew vh(t,r,e)}function U5(r,e){let t=r.getBoundingClientRect(),s=e.getBoundingClientRect(),n=t.height/r.offsetHeight;s.topt.bottom&&(r.scrollTop+=(s.bottom-t.bottom)/n)}function fk(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function V5(r,e){let t=[],s=null,n=u=>{t.push(u);let{section:c}=u.completion;if(c){s||(s=[]);let p=typeof c=="string"?c:c.name;s.some(h=>h.name==p)||s.push(typeof c=="string"?{name:p}:c)}},i=e.facet(Sr);for(let u of r)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let p of u.result.options)n(new Bu(p,u.source,c?c(p):[],1e9-t.length));else{let p=e.sliceDoc(u.from,u.to),h,f=i.filterStrict?new bh(p):new xh(p);for(let d of u.result.options)if(h=f.match(d.label)){let m=d.displayLabel?c?c(d,h.matched):[]:h.matched;n(new Bu(d,u.source,m,h.score+(d.boost||0)))}}}if(s){let u=Object.create(null),c=0,p=(h,f)=>{var d,m;return((d=h.rank)!==null&&d!==void 0?d:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(h.namep.score-c.score||o(c.completion,p.completion))){let c=u.completion;!l||l.label!=c.label||l.detail!=c.detail||l.type!=null&&c.type!=null&&l.type!=c.type||l.apply!=c.apply||l.boost!=c.boost?a.push(u):fk(u.completion)>fk(l)&&(a[a.length-1]=u),l=u.completion}return a}var Oh=class r{constructor(e,t,s,n,i,a){this.options=e,this.attrs=t,this.tooltip=s,this.timestamp=n,this.selected=i,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new r(this.options,pk(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,s,n,i){let a=V5(e,t);if(!a.length)return n&&e.some(o=>o.state==1)?new r(n.options,n.attrs,n.tooltip,n.timestamp,n.selected,!0):null;let l=t.facet(Sr).selectOnOpen?0:-1;if(n&&n.selected!=l&&n.selected!=-1){let o=n.options[n.selected].completion;for(let u=0;uu.hasResult()?Math.min(o,u.from):o,1e8),create:G5,above:i.aboveCursor},n?n.timestamp:Date.now(),l,!1)}map(e){return new r(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}},Sh=class r{constructor(e,t,s){this.active=e,this.id=t,this.open=s}static start(){return new r(z5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,s=t.facet(Sr),i=(s.override||t.languageDataAt("autocomplete",Rs(t)).map(M5)).map(l=>(this.active.find(u=>u.source==l)||new Un(l,this.active.some(u=>u.state!=0)?1:0)).update(e,s));i.length==this.active.length&&i.every((l,o)=>l==this.active[o])&&(i=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||i.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!W5(i,this.active)?a=Oh.build(i,t,this.id,a,s):a&&a.disabled&&!i.some(l=>l.state==1)&&(a=null),!a&&i.every(l=>l.state!=1)&&i.some(l=>l.hasResult())&&(i=i.map(l=>l.hasResult()?new Un(l.source,0):l));for(let l of e.effects)l.is(bk)&&(a=a&&a.setSelected(l.value,this.id));return i==this.active&&a==this.open?this:new r(i,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Z5}};function W5(r,e){if(r==e)return!0;for(let t=0,s=0;;){for(;t-1&&(t["aria-activedescendant"]=r+"-"+e),t}var z5=[];function Eh(r,e){if(r.isUserEvent("input.complete")){let t=r.annotation(Th);if(t&&e.activateOnCompletion(t))return"input"}return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}var Un=class r{constructor(e,t,s=-1){this.source=e,this.state=t,this.explicitPos=s}hasResult(){return!1}update(e,t){let s=Eh(e,t),n=this;s?n=n.handleUserEvent(e,s,t):e.docChanged?n=n.handleChange(e):e.selection&&n.state!=0&&(n=new r(n.source,0));for(let i of e.effects)if(i.is(Nu))n=new r(n.source,1,i.value?Rs(e.state):-1);else if(i.is(Do))n=new r(n.source,0);else if(i.is(xk))for(let a of i.value)a.source==n.source&&(n=a);return n}handleUserEvent(e,t,s){return t=="delete"||!s.activateOnTyping?this.map(e.changes):new r(this.source,1)}handleChange(e){return e.changes.touchesRange(Rs(e.startState))?new r(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new r(this.source,this.state,e.mapPos(this.explicitPos))}},Lu=class r extends Un{constructor(e,t,s,n,i){super(e,2,t),this.result=s,this.from=n,this.to=i}hasResult(){return!0}handleUserEvent(e,t,s){var n;let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let a=e.changes.mapPos(this.from),l=e.changes.mapPos(this.to,1),o=Rs(e.state);if((this.explicitPos<0?o<=a:ol||!i||t=="delete"&&Rs(e.startState)==this.from)return new Un(this.source,t=="input"&&s.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return X5(i.validFor,e.state,a,l)?new r(this.source,u,i,a,l):i.update&&(i=i.update(i,a,l,new Ru(e.state,o,u>=0)))?new r(this.source,u,i,i.from,(n=i.to)!==null&&n!==void 0?n:Rs(e.state)):new Un(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Un(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new r(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Un(this.source,0)}};function X5(r,e,t,s){if(!r)return!1;let n=e.sliceDoc(t,s);return typeof r=="function"?r(n,t,s,e):yk(r,!0).test(n)}var xk=wt.define({map(r,e){return r.map(t=>t.map(e))}}),bk=wt.define(),jr=Yt.define({create(){return Sh.start()},update(r,e){return r.update(e)},provide:r=>[Zi.from(r,e=>e.tooltip),at.contentAttributes.from(r,e=>e.attrs)]});function Dh(r,e){let t=e.completion.apply||e.completion.label,s=r.state.field(jr).active.find(n=>n.source==e.source);return s instanceof Lu?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},$5(r.state,t,s.from,s.to)),{annotations:Th.of(e.completion)})):t(r,e.completion,s.from,s.to),!0):!1}var G5=Q5(jr,Dh);function Fu(r,e="option"){return t=>{let s=t.state.field(jr,!1);if(!s||!s.open||s.open.disabled||Date.now()-s.open.timestamp-1?s.open.selected+n*(r?1:-1):r?0:a-1;return l<0?l=e=="page"?0:a-1:l>=a&&(l=e=="page"?a-1:0),t.dispatch({effects:bk.of(l)}),!0}}var Y5=r=>{let e=r.state.field(jr,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampr.state.field(jr,!1)?(r.dispatch({effects:Nu.of(!0)}),!0):!1,K5=r=>{let e=r.state.field(jr,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:Do.of(null)}),!0)},Ch=class{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}},J5=50,e8=1e3,t8=rr.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(jr).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(jr),t=r.state.facet(Sr);if(!r.selectionSet&&!r.docChanged&&r.startState.field(jr)==e)return;let s=r.transactions.some(i=>(i.selection||i.docChanged)&&!Eh(i,t));for(let i=0;iJ5&&Date.now()-a.time>e8){for(let l of a.context.abortListeners)try{l()}catch(o){yr(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(i=>i.effects.some(a=>a.is(Nu)))&&(this.pendingStart=!0);let n=this.pendingStart?50:t.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let i of r.transactions)Eh(i,t)=="input"?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(jr);for(let t of e.active)t.state==1&&!this.running.some(s=>s.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=Rs(e),s=new Ru(e,t,r.explicitPos==t),n=new Ch(r,s);this.running.push(n),Promise.resolve(r.source(s)).then(i=>{n.context.aborted||(n.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:Do.of(null)}),yr(this.view.state,i)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Sr).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(Sr);for(let s=0;sa.source==n.active.source);if(i&&i.state==1)if(n.done==null){let a=new Un(n.active.source,0);for(let l of n.updates)a=a.update(l,t);a.state!=1&&e.push(a)}else this.startQuery(i)}e.length&&this.view.dispatch({effects:xk.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(jr,!1);if(e&&e.tooltip&&this.view.state.facet(Sr).closeOnBlur){let t=e.open&&kp(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Do.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Nu.of(!1)}),20),this.composing=0}}}),r8=typeof navigator=="object"&&/Win/.test(navigator.platform),n8=rn.highest(at.domEventHandlers({keydown(r,e){let t=e.state.field(jr,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||r.key.length>1||r.ctrlKey&&!(r8&&r.altKey)||r.metaKey)return!1;let s=t.open.options[t.open.selected],n=t.active.find(a=>a.source==s.source),i=s.completion.commitCharacters||n.result.commitCharacters;return i&&i.indexOf(r.key)>-1&&Dh(e,s),!1}})),vk=at.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),wh=class{constructor(e,t,s,n){this.field=e,this.line=t,this.from=s,this.to=n}},kh=class r{constructor(e,t,s){this.field=e,this.from=t,this.to=s}map(e){let t=e.mapPos(this.from,-1,fr.TrackDel),s=e.mapPos(this.to,1,fr.TrackDel);return t==null||s==null?null:new r(this.field,t,s)}},Ah=class r{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let s=[],n=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let o of this.lines){if(s.length){let u=a,c=/^\t*/.exec(o)[0].length;for(let p=0;pnew kh(o.field,n[o.line]+o.from,n[o.line]+o.to));return{text:s,ranges:l}}static parse(e){let t=[],s=[],n=[],i;for(let a of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(a);){let l=i[1]?+i[1]:null,o=i[2]||i[3]||"",u=-1;for(let c=0;c=u&&p.field++}n.push(new wh(u,s.length,i.index,i.index+o.length)),a=a.slice(0,i.index)+o+a.slice(i.index+i[0].length)}for(let l;l=/\\([{}])/.exec(a);){a=a.slice(0,l.index)+l[1]+a.slice(l.index+l[0].length);for(let o of n)o.line==s.length&&o.from>l.index&&(o.from--,o.to--)}s.push(a)}return new r(s,n)}},s8=yt.widget({widget:new class extends an{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),i8=yt.mark({class:"cm-snippetField"}),aa=class r{constructor(e,t){this.ranges=e,this.active=t,this.deco=yt.set(e.map(s=>(s.from==s.to?s8:i8).range(s.from,s.to)))}map(e){let t=[];for(let s of this.ranges){let n=s.map(e);if(!n)return null;t.push(n)}return new r(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(s=>s.field==this.active&&s.from<=t.from&&s.to>=t.to))}},Io=wt.define({map(r,e){return r&&r.map(e)}}),a8=wt.define(),_o=Yt.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Io))return t.value;if(t.is(a8)&&r)return new aa(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>at.decorations.from(r,e=>e?e.deco:yt.none)});function _h(r,e){return Ze.create(r.filter(t=>t.field==e).map(t=>Ze.range(t.from,t.to)))}function o8(r){let e=Ah.parse(r);return(t,s,n,i)=>{let{text:a,ranges:l}=e.instantiate(t.state,n),o={changes:{from:n,to:i,insert:Ft.of(a)},scrollIntoView:!0,annotations:s?[Th.of(s),lr.userEvent.of("input.complete")]:void 0};if(l.length&&(o.selection=_h(l,0)),l.some(u=>u.field>0)){let u=new aa(l,0),c=o.effects=[Io.of(u)];t.state.field(_o,!1)===void 0&&c.push(wt.appendConfig.of([_o,p8,h8,vk]))}t.dispatch(t.state.update(o))}}function Ok(r){return({state:e,dispatch:t})=>{let s=e.field(_o,!1);if(!s||r<0&&s.active==0)return!1;let n=s.active+r,i=r>0&&!s.ranges.some(a=>a.field==n+r);return t(e.update({selection:_h(s.ranges,n),effects:Io.of(i?null:new aa(s.ranges,n)),scrollIntoView:!0})),!0}}var l8=({state:r,dispatch:e})=>r.field(_o,!1)?(e(r.update({effects:Io.of(null)})),!0):!1,u8=Ok(1),c8=Ok(-1);var f8=[{key:"Tab",run:u8,shift:c8},{key:"Escape",run:l8}],hk=ct.define({combine(r){return r.length?r[0]:f8}}),p8=rn.highest(As.compute([hk],r=>r.facet(hk)));function Fr(r,e){return Object.assign(Object.assign({},e),{apply:o8(r)})}var h8=at.domEventHandlers({mousedown(r,e){let t=e.state.field(_o,!1),s;if(!t||(s=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let n=t.ranges.find(i=>i.from<=s&&i.to>=s);return!n||n.field==t.active?!1:(e.dispatch({selection:_h(t.ranges,n.field),effects:Io.of(t.ranges.some(i=>i.field>n.field)?new aa(t.ranges,n.field):null),scrollIntoView:!0}),!0)}});var $u={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},li=wt.define({map(r,e){let t=e.mapPos(r,-1,fr.TrackAfter);return t??void 0}}),Ih=new class extends yn{};Ih.startSide=1;Ih.endSide=-1;var Sk=Yt.define({create(){return Mt.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:s=>s>=t.from&&s<=t.to})}for(let t of e.effects)t.is(li)&&(r=r.update({add:[Ih.range(t.value,t.value+1)]}));return r}});function Ek(){return[y8,Sk]}var yh="()[]{}<>";function d8(r){for(let e=0;e{if((g8?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let n=r.state.selection.main;if(s.length>2||s.length==2&&$r(gr(s,0))==1||e!=n.from||t!=n.to)return!1;let i=x8(r.state,s);return i?(r.dispatch(i),!0):!1});function x8(r,e){let t=m8(r,r.selection.main.head),s=t.brackets||$u.brackets;for(let n of s){let i=d8(gr(n,0));if(e==n)return i==n?O8(r,n,s.indexOf(n+n+n)>-1,t):b8(r,n,i,t.before||$u.before);if(e==i&&Ck(r,r.selection.main.from))return v8(r,n,i)}return null}function Ck(r,e){let t=!1;return r.field(Sk).between(0,r.doc.length,s=>{s==e&&(t=!0)}),t}function Fh(r,e){let t=r.sliceString(e,e+2);return t.slice(0,$r(gr(t,0)))}function b8(r,e,t,s){let n=null,i=r.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:t,from:a.to}],effects:li.of(a.to+e.length),range:Ze.range(a.anchor+e.length,a.head+e.length)};let l=Fh(r.doc,a.head);return!l||/\s/.test(l)||s.indexOf(l)>-1?{changes:{insert:e+t,from:a.head},effects:li.of(a.head+e.length),range:Ze.cursor(a.head+e.length)}:{range:n=a}});return n?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function v8(r,e,t){let s=null,n=r.changeByRange(i=>i.empty&&Fh(r.doc,i.head)==t?{changes:{from:i.head,to:i.head+t.length,insert:t},range:Ze.cursor(i.head+t.length)}:s={range:i});return s?null:r.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function O8(r,e,t,s){let n=s.stringPrefixes||$u.stringPrefixes,i=null,a=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:li.of(l.to+e.length),range:Ze.range(l.anchor+e.length,l.head+e.length)};let o=l.head,u=Fh(r.doc,o),c;if(u==e){if(dk(r,o))return{changes:{insert:e+e,from:o},effects:li.of(o+e.length),range:Ze.cursor(o+e.length)};if(Ck(r,o)){let h=t&&r.sliceDoc(o,o+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:o,to:o+h.length,insert:h},range:Ze.cursor(o+h.length)}}}else{if(t&&r.sliceDoc(o-2*e.length,o)==e+e&&(c=mk(r,o-2*e.length,n))>-1&&dk(r,c))return{changes:{insert:e+e+e+e,from:o},effects:li.of(o+e.length),range:Ze.cursor(o+e.length)};if(r.charCategorizer(o)(u)!=Wt.Word&&mk(r,o,n)>-1&&!S8(r,o,e,n))return{changes:{insert:e+e,from:o},effects:li.of(o+e.length),range:Ze.cursor(o+e.length)}}return{range:i=l}});return i?null:r.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function dk(r,e){let t=pr(r).resolveInner(e+1);return t.parent&&t.from==e}function S8(r,e,t,s){let n=pr(r).resolveInner(e,-1),i=s.reduce((a,l)=>Math.max(a,l.length),0);for(let a=0;a<5;a++){let l=r.sliceDoc(n.from,Math.min(n.to,n.from+t.length+i)),o=l.indexOf(t);if(!o||o>-1&&s.indexOf(l.slice(0,o))>-1){let c=n.firstChild;for(;c&&c.from==n.from&&c.to-c.from>t.length+o;){if(r.sliceDoc(c.to-t.length,c.to)==t)return!1;c=c.firstChild}return!0}let u=n.to==e&&n.parent;if(!u)break;n=u}return!1}function mk(r,e,t){let s=r.charCategorizer(e);if(s(r.sliceDoc(e-1,e))!=Wt.Word)return e;for(let n of t){let i=e-n.length;if(r.sliceDoc(i,e)==n&&s(r.sliceDoc(i-1,i))!=Wt.Word)return i}return-1}function wk(r={}){return[n8,jr,Sr.of(r),t8,C8,vk]}var E8=[{key:"Ctrl-Space",run:H5},{key:"Escape",run:K5},{key:"ArrowDown",run:Fu(!0)},{key:"ArrowUp",run:Fu(!1)},{key:"PageDown",run:Fu(!0,"page")},{key:"PageUp",run:Fu(!1,"page")},{key:"Enter",run:Y5}],C8=rn.highest(As.computeN([Sr],r=>r.facet(Sr).defaultKeymap?[E8]:[]));var Rh=class{constructor(e,t,s){this.from=e,this.to=t,this.diagnostic=s}},ui=class r{constructor(e,t,s){this.diagnostics=e,this.panel=t,this.selected=s}static init(e,t,s){let n=e,i=s.facet(Bs).markerFilter;i&&(n=i(n,s));let a=yt.set(n.map(l=>l.from==l.to||l.from==l.to-1&&s.doc.lineAt(l.from).to==l.from?yt.widget({widget:new Bh(l),diagnostic:l}).range(l.from):yt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+l.severity+(l.markClass?" "+l.markClass:"")},diagnostic:l,inclusive:!0}).range(l.from,l.to)),!0);return new r(a,t,oa(a))}};function oa(r,e=null,t=0){let s=null;return r.between(t,1e9,(n,i,{spec:a})=>{if(!(e&&a.diagnostic!=e))return s=new Rh(n,i,a.diagnostic),!1}),s}function Pk(r,e){let t=e.pos,s=e.end||t,n=r.state.facet(Bs).hideOn(r,t,s);if(n!=null)return n;let i=r.startState.doc.lineAt(e.pos);return!!(r.effects.some(a=>a.is(Qu))||r.changes.touchesRange(i.from,Math.max(i.to,s)))}function w8(r,e){return r.field(Sn,!1)?e:e.concat(wt.appendConfig.of(Lk))}function k8(r,e){return{effects:w8(r,[Qu.of(e)])}}var Qu=wt.define(),Tk=wt.define(),Dk=wt.define(),Sn=Yt.define({create(){return new ui(yt.none,null,null)},update(r,e){if(e.docChanged){let t=r.diagnostics.map(e.changes),s=null;if(r.selected){let n=e.changes.mapPos(r.selected.from,1);s=oa(t,r.selected.diagnostic,n)||oa(t,null,n)}r=new ui(t,r.panel,s)}for(let t of e.effects)t.is(Qu)?r=ui.init(t.value,r.panel,e.state):t.is(Tk)?r=new ui(r.diagnostics,t.value?Nh.open:null,r.selected):t.is(Dk)&&(r=new ui(r.diagnostics,r.panel,t.value));return r},provide:r=>[ri.from(r,e=>e.panel),at.decorations.from(r,e=>e.diagnostics)]});var A8=yt.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function P8(r,e,t){let{diagnostics:s}=r.state.field(Sn),n=[],i=2e8,a=0;s.between(e-(t<0?1:0),e+(t>0?1:0),(o,u,{spec:c})=>{e>=o&&e<=u&&(o==u||(e>o||t>0)&&(eRk(r,t,!1)))}var kk=r=>{let e=r.state.field(Sn,!1);return!e||!e.panel?!1:(r.dispatch({effects:Tk.of(!1)}),!0)};var T8=rr.fromClass(class{constructor(r){this.view=r,this.timeout=-1,this.set=!0;let{delay:e}=r.state.facet(Bs);this.lintTime=Date.now()+e,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,e)}run(){let r=Date.now();if(rPromise.resolve(s(this.view)))).then(s=>{let n=s.reduce((i,a)=>i.concat(a));this.view.state.doc==e.doc&&this.view.dispatch(k8(this.view.state,n))},s=>{yr(this.view.state,s)})}}update(r){let e=r.state.facet(Bs);(r.docChanged||e!=r.startState.facet(Bs)||e.needsRefresh&&e.needsRefresh(r))&&(this.lintTime=Date.now()+e.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,e.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Bs=ct.define({combine(r){return Object.assign({sources:r.map(e=>e.source).filter(e=>e!=null)},kr(r.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?s=>e(s)||t(s):e:t}))}});function Ik(r,e={}){return[Bs.of({source:r,config:e}),T8,Lk]}function Fk(r){let e=[];if(r)e:for(let{name:t}of r){for(let s=0;si.toLowerCase()==n.toLowerCase())){e.push(n);continue e}}e.push("")}return e}function Rk(r,e,t){var s;let n=t?Fk(e.actions):[];return Vt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Vt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(r):e.message),(s=e.actions)===null||s===void 0?void 0:s.map((i,a)=>{let l=!1,o=h=>{if(h.preventDefault(),l)return;l=!0;let f=oa(r.state.field(Sn).diagnostics,e);f&&i.apply(r,f.from,f.to)},{name:u}=i,c=n[a]?u.indexOf(n[a]):-1,p=c<0?u:[u.slice(0,c),Vt("u",u.slice(c,c+1)),u.slice(c+1)];return Vt("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${u}${c<0?"":` (access key "${n[a]})"`}.`},p)}),e.source&&Vt("div",{class:"cm-diagnosticSource"},e.source))}var Bh=class extends an{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Vt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}},qu=class{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Rk(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}},Nh=class r{constructor(e){this.view=e,this.items=[];let t=n=>{if(n.keyCode==27)kk(this.view),this.view.focus();else if(n.keyCode==38||n.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(n.keyCode==40||n.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(n.keyCode==36)this.moveSelection(0);else if(n.keyCode==35)this.moveSelection(this.items.length-1);else if(n.keyCode==13)this.view.focus();else if(n.keyCode>=65&&n.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],a=Fk(i.actions);for(let l=0;l{for(let i=0;ikk(this.view)},"\xD7")),this.update()}get selectedIndex(){let e=this.view.state.field(Sn).selected;if(!e)return-1;for(let t=0;t{let u=-1,c;for(let p=s;ps&&(this.items.splice(s,u-s),n=!0)),t&&c.diagnostic==t.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),i=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),s++});s({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let o=l.height/this.list.offsetHeight;a.topl.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/o)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let s=e;e=s.nextSibling,s.remove()}for(let s of this.items)if(s.dom.parentNode==this.list){for(;e!=s.dom;)t();e=s.dom.nextSibling}else this.list.insertBefore(s.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Sn),s=oa(t.diagnostics,this.items[e].diagnostic);s&&this.view.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:Dk.of(s)})}static open(e){return new r(e)}};function ju(r,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(r)}')`}function Mu(r){return ju(``,'width="6" height="3"')}var D8=at.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Mu("#d11")},".cm-lintRange-warning":{backgroundImage:Mu("orange")},".cm-lintRange-info":{backgroundImage:Mu("#999")},".cm-lintRange-hint":{backgroundImage:Mu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function Ak(r){return r=="error"?4:r=="warning"?3:r=="info"?2:1}var Lh=class extends Gr{constructor(e){super(),this.diagnostics=e,this.severity=e.reduce((t,s)=>Ak(t)I8(e,t,s)),t}};function _8(r,e){let t=s=>{let n=e.getBoundingClientRect();if(!(s.clientX>n.left-10&&s.clientXn.top-10&&s.clientYe.getBoundingClientRect()}}})}),e.onmouseout=e.onmousemove=null,_8(r,e)}let{hoverTime:n}=r.state.facet(Uu),i=setTimeout(s,n);e.onmouseout=()=>{clearTimeout(i),e.onmouseout=e.onmousemove=null},e.onmousemove=()=>{clearTimeout(i),i=setTimeout(s,n)}}function F8(r,e){let t=Object.create(null);for(let n of e){let i=r.lineAt(n.from);(t[i.from]||(t[i.from]=[])).push(n)}let s=[];for(let n in t)s.push(new Lh(t[n]).range(+n));return Mt.of(s,!0)}var R8=Ap({class:"cm-gutter-lint",markers:r=>r.state.field(Bk)}),Bk=Yt.define({create(){return Mt.empty},update(r,e){r=r.map(e.changes);let t=e.state.facet(Uu).markerFilter;for(let s of e.effects)if(s.is(Qu)){let n=s.value;t&&(n=t(n||[],e.state)),r=F8(e.state.doc,n.slice(0))}return r}}),$h=wt.define(),Nk=Yt.define({create(){return null},update(r,e){return r&&e.docChanged&&(r=Pk(e,r)?null:Object.assign(Object.assign({},r),{pos:e.changes.mapPos(r.pos)})),e.effects.reduce((t,s)=>s.is($h)?s.value:t,r)},provide:r=>Zi.from(r)}),B8=at.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:ju('')},".cm-lint-marker-warning":{content:ju('')},".cm-lint-marker-error":{content:ju('')}}),Lk=[Sn,at.decorations.compute([Sn],r=>{let{selected:e,panel:t}=r.field(Sn);return!e||!t||e.from==e.to?yt.none:yt.set([A8.range(e.from,e.to)])}),TC(P8,{hideOn:Pk}),D8],Uu=ct.define({combine(r){return kr(r,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function $k(r={}){return[Uu.of(r),Bk,R8,B8,Nk]}var qh=class r{constructor(e,t,s,n,i,a,l,o,u,c=0,p){this.p=e,this.stack=t,this.state=s,this.reducePos=n,this.pos=i,this.score=a,this.buffer=l,this.bufferBase=o,this.curContext=u,this.lookAhead=c,this.parent=p}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,s=0){let n=e.parser.context;return new r(e,[],t,s,s,0,[],0,n?new Vu(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let s=e>>19,n=e&65535,{parser:i}=this.p,a=i.dynamicPrecedence(n);if(a&&(this.score+=a),s==0){this.pushState(i.getGoto(this.state,n,!0),this.reducePos),n=2e3&&!(!((t=this.p.parser.nodeSet.types[n])===null||t===void 0)&&t.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(n,o)}storeNode(e,t,s,n=4,i=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&a.buffer[l-4]==0&&a.buffer[l-1]>-1){if(t==s)return;if(a.buffer[l-2]>=t){a.buffer[l-2]=s;return}}}if(!i||this.pos==s)this.buffer.push(e,t,s,n);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>s;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,n>4&&(n-=4);this.buffer[a]=e,this.buffer[a+1]=t,this.buffer[a+2]=s,this.buffer[a+3]=n}}shift(e,t,s,n){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=n,this.shiftContext(t,s),t<=this.p.parser.maxNode&&this.buffer.push(t,s,n,4);else{let i=e,{parser:a}=this.p;(n>this.pos||t<=a.maxNode)&&(this.pos=n,a.stateFlag(i,1)||(this.reducePos=n)),this.pushState(i,s),this.shiftContext(t,s),t<=a.maxNode&&this.buffer.push(t,s,n,4)}}apply(e,t,s,n){e&65536?this.reduce(e):this.shift(e,t,s,n)}useNode(e,t){let s=this.p.reused.length-1;(s<0||this.p.reused[s]!=e)&&(this.p.reused.push(e),s++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(s,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let s=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let s=e<=this.p.parser.maxNode;s&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,s?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Qh(this);;){let s=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(s==0)return!1;if(!(s&65536))return!0;t.reduce(s)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,a;io&1&&l==a)||n.push(t[i],a)}t=n}let s=[];for(let n=0;n>19,n=t&65535,i=this.stack.length-s*3;if(i<0||e.getGoto(this.stack[i],n,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;t=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],s=(n,i)=>{if(!t.includes(n))return t.push(n),e.allActions(n,a=>{if(!(a&393216))if(a&65536){let l=(a>>19)-i;if(l>1){let o=a&65535,u=this.stack.length-l*3;if(u>=0&&e.getGoto(this.stack[u],o,!1)>=0)return l<<19|65536|o}}else{let l=s(a,i+1);if(l!=null)return l}})};return s(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;tthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}},Vu=class{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}},Qh=class{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,s=e>>19;s==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(s-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}},Uh=class r{constructor(e,t,s){this.stack=e,this.pos=t,this.index=s,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new r(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new r(this.stack,this.pos,this.index)}};function Fo(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let s=0,n=0;s=92&&a--,a>=34&&a--;let o=a-32;if(o>=46&&(o-=46,l=!0),i+=o,l)break;i*=46}t?t[n++]=i:t=new e(i)}return t}var la=class{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}},Mk=new la,Vh=class{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Mk,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let s=this.range,n=this.rangeIndex,i=this.pos+e;for(;is.to:i>=s.to;){if(n==this.ranges.length-1)return null;let a=this.ranges[++n];i+=a.from-s.to,s=a}return i}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,s,n;if(t>=0&&t=this.chunk2Pos&&sl.to&&(this.chunk2=this.chunk2.slice(0,l.to-s)),n=this.chunk2.charCodeAt(0)}}return s>=this.token.lookAhead&&(this.token.lookAhead=s+1),n}acceptToken(e,t=0){let s=t?this.resolveOffset(t,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Mk,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let s="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(s+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return s}},Ns=class{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:s}=t.p;Vk(this.data,e,t,this.id,s.data,s.tokenPrecTable)}};Ns.prototype.contextual=Ns.prototype.fallback=Ns.prototype.extend=!1;var ua=class{constructor(e,t,s){this.precTable=t,this.elseToken=s,this.data=typeof e=="string"?Fo(e):e}token(e,t){let s=e.pos,n=0;for(;;){let i=e.next<0,a=e.resolveOffset(1,1);if(Vk(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(i||n++,a==null)break;e.reset(a,e.token)}n&&(e.reset(s,e.token),e.acceptToken(this.elseToken,n))}};ua.prototype.contextual=Ns.prototype.fallback=Ns.prototype.extend=!1;var ci=class{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}};function Vk(r,e,t,s,n,i){let a=0,l=1<0){let d=r[f];if(o.allows(d)&&(e.token.value==-1||e.token.value==d||L8(d,e.token.value,n,i))){e.acceptToken(d);break}}let c=e.next,p=0,h=r[a+2];if(e.next<0&&h>p&&r[u+h*3-3]==65535){a=r[u+h*3-1];continue e}for(;p>1,d=u+f+(f<<1),m=r[d],g=r[d+1]||65536;if(c=g)p=f+1;else{a=r[d+2],e.advance();continue e}}break}}function jk(r,e,t){for(let s=e,n;(n=r[s])!=65535;s++)if(n==t)return s-e;return-1}function L8(r,e,t,s){let n=jk(t,s,e);return n<0||jk(t,s,r)e)&&!s.type.isError)return t<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(r.length,Math.max(s.from+1,e+25));if(t<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return t<0?0:r.length}}var Wh=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?qk(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?qk(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=a,null;if(i instanceof or){if(a==e){if(a=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}},Zh=class{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(s=>new la)}getActions(e){let t=0,s=null,{parser:n}=e.p,{tokenizers:i}=n,a=n.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,o=0;for(let u=0;up.end+25&&(o=Math.max(p.lookAhead,o)),p.value!=0)){let h=t;if(p.extended>-1&&(t=this.addActions(e,p.extended,p.end,t)),t=this.addActions(e,p.value,p.end,t),!c.extend&&(s=p,t>h))break}}for(;this.actions.length>t;)this.actions.pop();return o&&e.setLookAhead(o),!s&&e.pos==this.stream.end&&(s=new la,s.value=e.p.parser.eofTerm,s.start=s.end=e.pos,t=this.addActions(e,s.value,s.end,t)),this.mainToken=s,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new la,{pos:s,p:n}=e;return t.start=s,t.end=Math.min(s+1,n.stream.end),t.value=s==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,s){let n=this.stream.clipPos(s.pos);if(t.token(this.stream.reset(n,e),s),e.value>-1){let{parser:i}=s.p;for(let a=0;a=0&&s.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,s,n){for(let i=0;ie.bufferLength*4?new Wh(s,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,s=this.stacks=[],n,i;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;at)s.push(l);else{if(this.advanceStack(l,s,e))continue;{n||(n=[],i=[]),n.push(l);let o=this.tokens.getMainToken(l);i.push(o.value,o.end)}}break}}if(!s.length){let a=n&&$8(n);if(a)return Kr&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Kr&&n&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n){let a=this.stoppedAt!=null&&n[0].pos>this.stoppedAt?n[0]:this.runRecovery(n,i,s);if(a)return Kr&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(s.length>a)for(s.sort((l,o)=>o.score-l.score);s.length>a;)s.pop();s.some(l=>l.reducePos>t)&&this.recovering--}else if(s.length>1){e:for(let a=0;a500&&u.buffer.length>500)if((l.score-u.score||l.buffer.length-u.buffer.length)>0)s.splice(o--,1);else{s.splice(a--,1);continue e}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let a=1;a ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let p=this.fragments.nodeAt(n);p;){let h=this.parser.nodeSet.types[p.type.id]==p.type?i.getGoto(e.state,p.type.id):-1;if(h>-1&&p.length&&(!u||(p.prop(kt.contextHash)||0)==c))return e.useNode(p,h),Kr&&console.log(a+this.stackID(e)+` (via reuse of ${i.getName(p.type.id)})`),!0;if(!(p instanceof or)||p.children.length==0||p.positions[0]>0)break;let f=p.children[0];if(f instanceof or&&p.positions[0]==0)p=f;else break}}let l=i.stateSlot(e.state,4);if(l>0)return e.reduce(l),Kr&&console.log(a+this.stackID(e)+` (via always-reduce ${i.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let u=0;un?t.push(d):s.push(d)}return!1}advanceFully(e,t){let s=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>s)return Qk(e,t),!0}}runRecovery(e,t,s){let n=null,i=!1;for(let a=0;a ":"";if(l.deadEnd&&(i||(i=!0,l.restart(),Kr&&console.log(c+this.stackID(l)+" (restarted)"),this.advanceFully(l,s))))continue;let p=l.split(),h=c;for(let f=0;p.forceReduce()&&f<10&&(Kr&&console.log(h+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,s));f++)Kr&&(h=this.stackID(p)+" -> ");for(let f of l.recoverByInsert(o))Kr&&console.log(c+this.stackID(f)+" (via recover-insert)"),this.advanceFully(f,s);this.stream.end>l.pos?(u==l.pos&&(u++,o=0),l.recoverByDelete(o,u),Kr&&console.log(c+this.stackID(l)+` (via recover-delete ${this.parser.getName(o)})`),Qk(l,s)):(!n||n.scorer,Wu=class{constructor(e){this.start=e.start,this.shift=e.shift||jh,this.reduce=e.reduce||jh,this.reuse=e.reuse||jh,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}},Zu=class r extends Gi{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;le.topRules[l][1]),n=[];for(let l=0;l=0)i(c,o,l[u++]);else{let p=l[u+-c];for(let h=-c;h>0;h--)i(l[u++],o,p);u++}}}this.nodeSet=new yo(t.map((l,o)=>Ar.define({name:o>=this.minRepeatTerm?void 0:l,id:o,props:n[o],top:s.indexOf(o)>-1,error:o==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=Fo(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Ns(a,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,s){let n=new zh(this,e,t,s);for(let i of this.wrappers)n=i(n,e,t,s);return n}getGoto(e,t,s=!1){let n=this.goto;if(t>=n[0])return-1;for(let i=n[t+1];;){let a=n[i++],l=a&1,o=n[i++];if(l&&s)return o;for(let u=i+(a>>1);i0}validAction(e,t){return!!this.allActions(e,s=>s==t?!0:null)}allActions(e,t){let s=this.stateSlot(e,4),n=s?t(s):void 0;for(let i=this.stateSlot(e,1);n==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=os(this.data,i+2);else break;n=t(os(this.data,i+1))}return n}nextStates(e){let t=[];for(let s=this.stateSlot(e,1);;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=os(this.data,s+2);else break;if(!(this.data[s+2]&1)){let n=this.data[s+1];t.some((i,a)=>a&1&&i==n)||t.push(this.data[s],n)}}return t}configure(e){let t=Object.assign(Object.create(r.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let s=this.topRules[e.top];if(!s)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=s}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(s=>{let n=e.tokenizers.find(i=>i.from==s);return n?n.to:s})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((s,n)=>{let i=e.specializers.find(l=>l.from==s.external);if(!i)return s;let a=Object.assign(Object.assign({},s),{external:i.to});return t.specializers[n]=Uk(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),s=t.map(()=>!1);if(e)for(let i of e.split(" ")){let a=t.indexOf(i);a>=0&&(s[a]=!0)}let n=null;for(let i=0;is)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.scorer.external(t,s)<<1|e}return r.get}var M8=310,Wk=1,j8=2,q8=3,Q8=311,U8=313,V8=314,W8=4,Z8=5,z8=0,Yh=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Zk=125,X8=59,Hh=47,G8=42,Y8=43,H8=45,K8=60,J8=44,e6=new Wu({start:!1,shift(r,e){return e==W8||e==Z8||e==U8?r:e==V8},strict:!1}),t6=new ci((r,e)=>{let{next:t}=r;(t==Zk||t==-1||e.context)&&r.acceptToken(Q8)},{contextual:!0,fallback:!0}),r6=new ci((r,e)=>{let{next:t}=r,s;Yh.indexOf(t)>-1||t==Hh&&((s=r.peek(1))==Hh||s==G8)||t!=Zk&&t!=X8&&t!=-1&&!e.context&&r.acceptToken(M8)},{contextual:!0}),n6=new ci((r,e)=>{let{next:t}=r;if((t==Y8||t==H8)&&(r.advance(),t==r.next)){r.advance();let s=!e.context&&e.canShift(Wk);r.acceptToken(s?Wk:j8)}},{contextual:!0});function Gh(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}var s6=new ci((r,e)=>{if(r.next!=K8||!e.dialectEnabled(z8)||(r.advance(),r.next==Hh))return;let t=0;for(;Yh.indexOf(r.next)>-1;)r.advance(),t++;if(Gh(r.next,!0)){for(r.advance(),t++;Gh(r.next,!1);)r.advance(),t++;for(;Yh.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==J8)return;for(let s=0;;s++){if(s==7){if(!Gh(r.next,!0))return;break}if(r.next!="extends".charCodeAt(s))break;r.advance(),t++}}r.acceptToken(q8,-t)}),i6=iu({"get set async static":ke.modifier,"for while do if else switch try catch finally return throw break continue default case":ke.controlKeyword,"in of await yield void typeof delete instanceof":ke.operatorKeyword,"let var const using function class extends":ke.definitionKeyword,"import export from":ke.moduleKeyword,"with debugger as new":ke.keyword,TemplateString:ke.special(ke.string),super:ke.atom,BooleanLiteral:ke.bool,this:ke.self,null:ke.null,Star:ke.modifier,VariableName:ke.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ke.function(ke.variableName),VariableDefinition:ke.definition(ke.variableName),Label:ke.labelName,PropertyName:ke.propertyName,PrivatePropertyName:ke.special(ke.propertyName),"CallExpression/MemberExpression/PropertyName":ke.function(ke.propertyName),"FunctionDeclaration/VariableDefinition":ke.function(ke.definition(ke.variableName)),"ClassDeclaration/VariableDefinition":ke.definition(ke.className),PropertyDefinition:ke.definition(ke.propertyName),PrivatePropertyDefinition:ke.definition(ke.special(ke.propertyName)),UpdateOp:ke.updateOperator,"LineComment Hashbang":ke.lineComment,BlockComment:ke.blockComment,Number:ke.number,String:ke.string,Escape:ke.escape,ArithOp:ke.arithmeticOperator,LogicOp:ke.logicOperator,BitOp:ke.bitwiseOperator,CompareOp:ke.compareOperator,RegExp:ke.regexp,Equals:ke.definitionOperator,Arrow:ke.function(ke.punctuation),": Spread":ke.punctuation,"( )":ke.paren,"[ ]":ke.squareBracket,"{ }":ke.brace,"InterpolationStart InterpolationEnd":ke.special(ke.brace),".":ke.derefOperator,", ;":ke.separator,"@":ke.meta,TypeName:ke.typeName,TypeDefinition:ke.definition(ke.typeName),"type enum interface implements namespace module declare":ke.definitionKeyword,"abstract global Privacy readonly override":ke.modifier,"is keyof unique infer":ke.operatorKeyword,JSXAttributeValue:ke.attributeValue,JSXText:ke.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ke.angleBracket,"JSXIdentifier JSXNameSpacedName":ke.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ke.attributeName,"JSXBuiltin/JSXIdentifier":ke.standard(ke.tagName)}),a6={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:154,yield:163,await:167,class:172,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:288,keyof:341,unique:345,infer:351,is:387,abstract:407,implements:409,type:411,let:414,var:416,using:419,interface:425,enum:429,namespace:435,module:437,declare:441,global:445,for:464,of:473,while:476,with:480,do:484,if:488,else:490,switch:494,case:500,try:506,catch:510,finally:514,return:518,throw:522,break:526,continue:530,debugger:534},o6={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:391},l6={__proto__:null,"<":145},zk=Zu.deserialize({version:14,states:"$=dO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DzO0fQ^O'#ESOOQ?Mr'#E['#E[O1PQWO'#EXOOQO'#Em'#EmOOQO'#If'#IfO1XQWO'#GnO1dQWO'#ElO1iQWO'#ElO3kQ?NdO'#JjO6[Q?NdO'#JkO6xQWO'#F[O6}Q&jO'#FrOOQ?Mr'#Fd'#FdO7YO,YO'#FdO7hQ7[O'#FyO9UQWO'#FxOOQ?Mr'#Jk'#JkOOQ?Mp'#Jj'#JjO9ZQWO'#GrOOQU'#KW'#KWO9fQWO'#ISO9kQ?MxO'#ITOOQU'#JX'#JXOOQU'#IX'#IXQ`Q^OOO`Q^OOO9sQMnO'#DsO9zQ^O'#EOO:RQ^O'#EQO9aQWO'#GnO:YQ7[O'#CnO:hQWO'#EkO:sQWO'#EvO:xQ7[O'#FcO;gQWO'#GnOOQO'#KX'#KXO;lQWO'#KXO;zQWO'#GvO;zQWO'#GwO;zQWO'#GyO9aQWO'#G|OYQWO'#CdO>jQWO'#H]O>rQWO'#HcO>rQWO'#HeO`Q^O'#HgO>rQWO'#HiO>rQWO'#HlO>wQWO'#HrO>|Q?MyO'#HxO%[Q^O'#HzO?XQ?MyO'#H|O?dQ?MyO'#IOO9kQ?MxO'#IQO?oQ?NdO'#ChO@qQ`O'#DiQOQWOOO%[Q^O'#EQOAXQWO'#ETO:YQ7[O'#EkOAdQWO'#EkOAoQpO'#FcOOQU'#Cf'#CfOOQ?Mp'#Dn'#DnOOQ?Mp'#Jn'#JnO%[Q^O'#JnOOQO'#Jr'#JrOOQO'#Ic'#IcOBoQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Ju'#JuOCkQ?NQO'#EdOCuQ`O'#EWOOQO'#Jq'#JqODZQ`O'#JrOEhQ`O'#EWOCuQ`O'#EdPEuO#@ItO'#CaPOOO)CDv)CDvOOOO'#IY'#IYOFQO!bO,59TOOQ?Mr,59T,59TOOOO'#IZ'#IZOF`O#tO,59TO%[Q^O'#D`OOOO'#I]'#I]OFnO!0LbO,59xOOQ?Mr,59x,59xOF|Q^O'#I^OGaQWO'#JlOIcQrO'#JlO+}Q^O'#JlOIjQWO,5:OOJQQWO'#EmOJ_QWO'#J{OJjQWO'#JzOJjQWO'#JzOJrQWO,5;ZOJwQWO'#JyOOQ?Mv,5:Z,5:ZOKOQ^O,5:ZOMPQ?NdO,5:fOMpQWO,5:nONZQ?MxO'#JxONbQWO'#JwO9ZQWO'#JwONvQWO'#JwO! OQWO,5;YO! TQWO'#JwO!#]QrO'#JkOOQ?Mr'#Ch'#ChO%[Q^O'#ESO!#{QpO,5:sOOQO'#Js'#JsOOQO-EnOOQU'#Ja'#JaOOQU,5>o,5>oOOQU-EfQ?NdO,5:jO%[Q^O,5:jO!APQ?NdO,5:lOOQO,5@s,5@sO!ApQ7[O,5=YO!BOQ?MxO'#JbO9UQWO'#JbO!BaQ?MxO,59YO!BlQ`O,59YO!BtQ7[O,59YO:YQ7[O,59YO!CPQWO,5;WO!CXQWO'#H[O!CmQWO'#K]O%[Q^O,5;{O!9jQ`O,5;}O!CuQWO,5=uO!CzQWO,5=uO!DPQWO,5=uO9kQ?MxO,5=uO;zQWO,5=eOOQO'#Cu'#CuO!D_Q`O,5=bO!DgQ7[O,5=cO!DrQWO,5=eO!DwQpO,5=hO!EPQWO'#KXO>wQWO'#HRO9aQWO'#HTO!EUQWO'#HTO:YQ7[O'#HVO!EZQWO'#HVOOQU,5=k,5=kO!E`QWO'#HWO!EqQWO'#CnO!EvQWO,59OO!FQQWO,59OO!HVQ^O,59OOOQU,59O,59OO!HgQ?MxO,59OO%[Q^O,59OO!JrQ^O'#H_OOQU'#H`'#H`OOQU'#Ha'#HaO`Q^O,5=wO!KYQWO,5=wO`Q^O,5=}O`Q^O,5>PO!K_QWO,5>RO`Q^O,5>TO!KdQWO,5>WO!KiQ^O,5>^OOQU,5>d,5>dO%[Q^O,5>dO9kQ?MxO,5>fOOQU,5>h,5>hO# sQWO,5>hOOQU,5>j,5>jO# sQWO,5>jOOQU,5>l,5>lO#!aQ`O'#D[O%[Q^O'#JnO#!kQ`O'#JnO##YQ`O'#DjO##kQ`O'#DjO#%|Q^O'#DjO#&TQWO'#JmO#&]QWO,5:TO#&bQWO'#EqO#&pQWO'#J|O#&xQWO,5;[O#&}Q`O'#DjO#'[Q`O'#EVOOQ?Mr,5:o,5:oO%[Q^O,5:oO#'cQWO,5:oO>wQWO,5;VO!BlQ`O,5;VO!BtQ7[O,5;VO:YQ7[O,5;VO#'kQWO,5@YO#'pQ(CWO,5:sOOQO-ExO+}Q^O,5>xOOQO,5?O,5?OO#*xQ^O'#I^OOQO-E<[-E<[O#+VQWO,5@WO#+_QrO,5@WO#+fQWO,5@fOOQ?Mr1G/j1G/jO%[Q^O,5@gO#+nQWO'#IdOOQO-ErQWO1G3mO$5xQ^O1G3oO$9|Q^O'#HnOOQU1G3r1G3rO$:ZQWO'#HtO>wQWO'#HvOOQU1G3x1G3xO$:cQ^O1G3xO9kQ?MxO1G4OOOQU1G4Q1G4QOOQ?Mp'#GZ'#GZO9kQ?MxO1G4SO9kQ?MxO1G4UO$>jQWO,5@YO!*mQ^O,5;]O9ZQWO,5;]O>wQWO,5:UO!*mQ^O,5:UO!BlQ`O,5:UO$>oQ07bO,5:UOOQO,5;],5;]O$>yQ`O'#I_O$?aQWO,5@XOOQ?Mr1G/o1G/oO$?iQ`O'#IeO$?sQWO,5@hOOQ?Mp1G0v1G0vO##kQ`O,5:UOOQO'#Ib'#IbO$?{Q`O,5:qOOQ?Mv,5:q,5:qO#'fQWO1G0ZOOQ?Mr1G0Z1G0ZO%[Q^O1G0ZOOQ?Mr1G0q1G0qO>wQWO1G0qO!BlQ`O1G0qO!BtQ7[O1G0qOOQ?Mp1G5t1G5tO!BaQ?MxO1G0^OOQO1G0j1G0jO%[Q^O1G0jO$@SQ?MxO1G0jO$@_Q?MxO1G0jO!BlQ`O1G0^OCuQ`O1G0^O$@mQ?MxO1G0jOOQO1G0^1G0^O$ARQ?NdO1G0jPOOO-ExO$AoQWO1G5rO$AwQWO1G6QO$BPQrO1G6RO9ZQWO,5?OO$BZQ?NdO1G6OO%[Q^O1G6OO$BkQ?MxO1G6OO$B|QWO1G5}O$B|QWO1G5}O9ZQWO1G5}O$CUQWO,5?RO9ZQWO,5?ROOQO,5?R,5?RO$CjQWO,5?RO$*oQWO,5?ROOQO-EYOOQU,5>Y,5>YO%[Q^O'#HoO%;tQWO'#HqOOQU,5>`,5>`O9ZQWO,5>`OOQU,5>b,5>bOOQU7+)d7+)dOOQU7+)j7+)jOOQU7+)n7+)nOOQU7+)p7+)pO%;yQ`O1G5tO%<_Q07bO1G0wO%wQWO1G/pO!*mQ^O'#DjOOQO,5>y,5>yOOQO-E<]-E<]OOQO,5?P,5?POOQO-EwQWO7+&]O!BlQ`O7+&]OOQO7+%x7+%xO$ARQ?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%=OQ?MxO7+&UO!BaQ?MxO7+%xO!BlQ`O7+%xO%=ZQ?MxO7+&UO%=iQ?NdO7++jO%[Q^O7++jO%=yQWO7++iO%=yQWO7++iOOQO1G4m1G4mO9ZQWO1G4mO%>RQWO1G4mOOQO7+%}7+%}O#'fQWO<aQWO<iQWO<tQ?NdO,5?ZO%APQ?NdO,5?]O%C[Q?NdO1G2[O%EmQ?NdO1G2nO%GxQ?NdO1G2pO%JTQ7[O,5>zOOQO-E<^-E<^O%J_QrO,5>{O%[Q^O,5>{OOQO-E<_-E<_O%JiQWO1G5vOOQ?Mr<ZOOQU,5>],5>]O&wQWO7+%[OOQ?Mr<wQWO<wQWO7+)fO'*yQWO<PO#w$WO(q#}O(r$OO~P#>POP$^OZ$eOn$RO|#zO}#{O!P#|O!i$TO!j#xO!l#yO!p$^O#k$PO#l$QO#m$QO#n$QO#o$SO#p$TO#q$TO#r$dO#s$TO#u$UO#w$WO#y$YO(YVO(q#}O(r$OO~O`#ji!Y#ji#z#ji's#ji(j#ji'q#ji!V#ji!k#jir#ji![#ji%d#ji!d#ji~P#@wOP[XZ[Xn[X|[X}[X!P[X!i[X!j[X!l[X!p[X#][X#heX#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#s[X#u[X#w[X#y[X#z[X$P[X(Y[X(j[X(q[X(r[X!Y[X!Z[X~O#}[X~P#CbOP$^OZ;SOn:vO|#zO}#{O!P#|O!i:xO!j#xO!l#yO!p$^O#k:tO#l:uO#m:uO#n:uO#o:wO#p:xO#q:xO#r;RO#s:xO#u:yO#w:{O#y:}O#z;OO(YVO(j$[O(q#}O(r$OO~O#}.xO~P#EoO#];TO$P;TO#}(_X!Z(_X~P! cO`'^a!Y'^a's'^a'q'^a!k'^a!V'^ar'^a!['^a%d'^a!d'^a~P!:ROP#jiZ#ji`#jin#ji}#ji!Y#ji!i#ji!j#ji!l#ji!p#ji#k#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji's#ji(Y#ji(j#ji'q#ji!V#ji!k#jir#ji![#ji%d#ji!d#ji~P#/OO`$Oi!Y$Oi's$Oi'q$Oi!V$Oi!k$Oir$Oi![$Oi%d$Oi!d$Oi~P!:RO$Z.}O$].}O~O$Z/OO$]/OO~O!d)eO#]/PO![$aX$X$aX$Z$aX$]$aX$d$aX~O!X/QO~O![)hO$X/SO$Z)gO$])gO$d/TO~O!Y;PO!Z(^X~P#EoO!Z/UO~O!d)eO$d(sX~O$d/WO~Ot)wO(Z)xO([/ZO~O!V/_O~P!&kO(q%OOj%[a|%[a!P%[a(r%[a!Y%[a#]%[a~Of%[a#}%[a~P#NPO(r%QOj%^a|%^a!P%^a(q%^a!Y%^a#]%^a~Of%^a#}%^a~P#NrO!YeX!deX!keX!k$vX(jeX~P!/{O!X/hO!Y(YO'|/gO!V(nP!V(xP~P!1sOn*pO!_*nO!`*gO!a*gO!l*_O#X*oO%Z*jO'}!lO~Oo'XO!P/iO!X+VO!Z*mO(OTO(RUO(];cO!Z(pP~P$!]O!k/jO~P#/OO!Y/kO!d#vO(j'mO!k(wX~O!k/pO~O!P%fO!X*[O![%gO'|%eO!k(wP~O#h/rO~O!V$vX!Y$vX!d$}X~P!/{O!Y/sO!V(xX~P#/OO!d/uO~O!V/wO~Og%WOn/{O!d#vO!l%cO(j'mO~O'|/}O~O!d+eO~O`%lO!Y0RO's%lO~O!Z0TO~P!5gO!`0UO!a0UO'}!lO(]!mO~O!P0WO(]!mO~O#X0XO~Of%[a!Y%[a#]%[a#}%[a~P!1UOf%^a!Y%^a#]%^a#}%^a~P!1UO'|&WOf'gX!Y'gX~O!Y*vOf(Va~Of0bO~O|0cO}0cO!P0dOjya(qya(rya!Yya#]ya~Ofya#}ya~P$(OO|)|O!P)}Oj$oa(q$oa(r$oa!Y$oa#]$oa~Of$oa#}$oa~P$(tO|)|O!P)}Oj$qa(q$qa(r$qa!Y$qa#]$qa~Of$qa#}$qa~P$)gO#h0fO~Of%Pa!Y%Pa#]%Pa#}%Pa~P!1UO!d#vO~O#h0iO~O!Y+XO`(|a's(|a~O|#zO}#{O!P#|O!j#xO!l#yO(YVOP!riZ!rin!ri!Y!ri!i!ri!p!ri#k!ri#l!ri#m!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#u!ri#w!ri#y!ri#z!ri(j!ri(q!ri(r!ri~O`!ri's!ri'q!ri!V!ri!k!rir!ri![!ri%d!ri!d!ri~P$+UOg%WOn$uOo$tOp$tOv%YOx%ZOz;YO!P$|O![$}O!fX#>_#>e#>s#?Y#@w#AV#A^#Br#CQ#Dl#Dz#EQ#EW#E^#Eh#En#Et#FO#Fb#FhPPPPPPPPPP#FnPPPPPPP#Gc#Jj#Ky#LQ#LYPPPP$#`$&W$,p$,s$,v$-c$-f$-i$-p$-xP$.OP$.l$.p$/h$0v$0{$1cPP$1h$1n$1rP$1u$1y$1}$2s$3[$3s$3w$3z$3}$4T$4W$4[$4`R!|RoqOXst!Z#d%k&o&q&r&t,m,r2P2SY!vQ']-_1d5fQ%rvQ%zyQ&R|Q&g!VS'T!e-VQ'c!iS'i!r!yU*g$}*X*lQ+k%{Q+x&TQ,^&aQ-]'[Q-g'dQ-o'jQ0U*nQ1n,_R;b:o%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#y#|$P$Q$R$S$T$U$V$W$X$Y$Z$b$f%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(x(|){+S+W,j,m,r-c-k-y.P.q.x/i0d0i0y1g1w1x1z1|2P2S2U2u2{3c5c5m5}6O6R6f8P8U8e8oS#q]:l!r)^$]$n'U)p-O-R/Q2e3x5a6]9`9q:k:n:o:r:s:t:u:v:w:x:y:z:{:|:};O;P;T;b;d;e;g;o;p;y;z < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:373,context:e6,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,202,206,210,211,213,216,219,229,231,237,239,241,243,246,252,258,260,262,264,266,268,269,"Statement",-33,12,13,28,31,32,38,48,51,52,54,59,67,69,76,80,82,84,85,107,108,117,118,135,138,140,141,142,143,145,146,165,166,168,"Expression",-23,27,29,33,37,39,41,169,171,173,174,176,177,178,180,181,182,184,185,186,196,198,200,201,"Type",-3,88,100,106,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",73,"(",158,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",74,")",163,"JSXEndTag"]],propSources:[i6],skippedNodes:[0,4,5,272],repeatNodeCount:37,tokenData:"$HR07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$.S!c!}Er!}#O$/^#O#P$0h#P#Q$6P#Q#R$7Z#R#SEr#S#T$8h#T#o$9r#o#p$>S#p#q$>x#q#r$@Y#r#s$Af#s$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$I|Er$I|$I}$E{$I}$JO$E{$JO$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr(n%d_$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$g&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$g&j(S!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(S!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$g&j(PpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(PpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Pp(S!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$g&j(Pp(S!b'u0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(Q#S$g&j'v0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$g&j(Pp(S!b'v0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$g&j!p),Q(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(O':f$g&j(S!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$g&j(S!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$g&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$b`$g&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$b``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$b`$g&j(S!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(S!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$b`(S!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$g&j(Pp(S!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$g&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(S!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$g&j(PpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(PpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Pp(S!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$g&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$g&j(S!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(S!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(S!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(S!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$g&j(S!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$g&j(Pp(S!bo'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$g&j#})Lv(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_`l$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^g#)`!i-PP;=`<%l$9r#Jf$>]X![#Hb(Pp(S!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$?Ta(q+JY$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$,u#q;'S%Z;'S;=`+a<%lO%Z(Kd$@g_!Z(Cdr`$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$Aq_!q7`$g&j(Pp(S!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$CR|$g&j(Pp(S!b'u0/l$Z#t'|,2j(]$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$Bp#BZ$ISEr$IS$I_$Bp$I_$JTEr$JT$JU$Bp$JU$KVEr$KV$KW$Bp$KW&FUEr&FU&FV$Bp&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$Bp?HUOEr07[$F^k$g&j(Pp(S!b'v0/l$Z#t'|,2j(]$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[r6,n6,s6,2,3,4,5,6,7,8,9,10,11,12,13,14,t6,new ua("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO([~~",141,333),new ua("j~RQYZXz{^~^O'y~~aP!P!Qd~iO'z~~",25,316)],topRules:{Script:[0,6],SingleExpression:[1,270],SingleClassItem:[2,271]},dialects:{jsx:0,ts:14840},dynamicPrecedences:{70:1,80:1,82:1,166:1,194:1},specialized:[{term:320,get:r=>a6[r]||-1},{term:335,get:r=>o6[r]||-1},{term:71,get:r=>l6[r]||-1}],tokenPrec:14864});var Kk=[Fr("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Fr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Fr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Fr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Fr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Fr(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),Br("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Br(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Fr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Fr(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Br(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Fr(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Br('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Br('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],f6=eA.concat([Br("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Br("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Br("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Yk=new ru,tA=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function No(r){return(e,t)=>{let s=e.node.getChild("VariableDefinition");return s&&t(s,r),!0}}var p6=["FunctionDeclaration"],h6={FunctionDeclaration:No("function"),ClassDeclaration:No("class"),ClassExpression:()=>!0,EnumDeclaration:No("constant"),TypeAliasDeclaration:No("type"),NamespaceDeclaration:No("namespace"),VariableDefinition(r,e){r.matchContext(p6)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function rA(r,e){let t=Yk.get(e);if(t)return t;let s=[],n=!0;function i(a,l){let o=r.sliceString(a.from,a.to);s.push({label:o,type:l})}return e.cursor(ir.IncludeAnonymous).iterate(a=>{if(n)n=!1;else if(a.name){let l=h6[a.name];if(l&&l(a,i)||tA.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of rA(r,a.node))s.push(l);return!1}}),Yk.set(e,s),s}var Hk=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,nA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function d6(r){let e=dr(r.state).resolveInner(r.pos,-1);if(nA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Hk.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let s=[];for(let n=e;n;n=n.parent)tA.has(n.name)&&(s=s.concat(rA(r.state.doc,n)));return{options:s,from:t?e.from:r.pos,validFor:Hk}}var Zn=lu.define({name:"javascript",parser:Gk.configure({props:[Jp.add({IfStatement:pu({except:/^\s*({|else\b)/}),TryStatement:pu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:ew,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),s=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:s?1:2)*r.unit},Block:KC({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":pu({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),rw.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":nw,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),sA={test:r=>/^JSX/.test(r.name),facet:Kp({commentTokens:{block:{open:"{/*",close:"*/}"}}})},m6=Zn.configure({dialect:"ts"},"typescript"),g6=Zn.configure({dialect:"jsx",props:[cu.add(r=>r.isTop?[sA]:void 0)]}),y6=Zn.configure({dialect:"jsx ts",props:[cu.add(r=>r.isTop?[sA]:void 0)]},"typescript"),iA=r=>({label:r,type:"keyword"}),aA="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(iA),x6=aA.concat(["declare","implements","private","protected","public"].map(iA));function oA(r={}){let e=r.jsx?r.typescript?y6:g6:r.typescript?m6:Zn,t=r.typescript?f6.concat(x6):eA.concat(aA);return new uu(e,[Zn.data.of({autocomplete:xk(nA,Dh(t))}),Zn.data.of({autocomplete:d6}),r.jsx?O6:[]])}function b6(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function Kk(r,e,t=r.length){for(let s=e?.firstChild;s;s=s.nextSibling)if(s.name=="JSXIdentifier"||s.name=="JSXBuiltin"||s.name=="JSXNamespacedName"||s.name=="JSXMemberExpression")return r.sliceString(s.from,Math.min(s.to,t));return""}var v6=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),O6=lt.inputHandler.of((r,e,t,s,n)=>{if((v6?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||s!=">"&&s!="/"||!Zn.isActiveAt(r.state,e,-1))return!1;let i=n(),{state:a}=i,l=a.changeByRange(o=>{var u;let{head:c}=o,p=dr(a).resolveInner(c-1,-1),h;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(c-1,c)!=s||p.name=="JSXAttributeValue"&&p.to>c)){if(s==">"&&p.name=="JSXFragmentTag")return{range:o,changes:{from:c,insert:""}};if(s=="/"&&p.name=="JSXStartCloseTag"){let f=p.parent,d=f.parent;if(d&&f.from==c-2&&((h=Kk(a.doc,d.firstChild,c))||((u=d.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${h}>`;return{range:Xe.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(s==">"){let f=b6(p);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=Kk(a.doc,f,c)))return{range:o,changes:{from:c,insert:``}}}}return{range:o}});return l.changes.empty?!1:(r.dispatch([i,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function lA(r,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},r.getRules().forEach((t,s)=>{t.meta.docs.recommended&&(e.rules[s]=2)})),t=>{let{state:s}=t,n=[];for(let{from:i,to:a}of Zn.findRegions(s)){let l=s.doc.lineAt(i),o={line:l.number-1,col:i-l.from,pos:i};for(let u of r.verify(s.sliceDoc(i,a),e))n.push(S6(u,s.doc,o))}return n}}function Jk(r,e,t,s){return t.line(r+s.line).from+e+(r==1?s.col-1:-1)}function S6(r,e,t){let s=Jk(r.line,r.column,e,t),n={from:s,to:r.endLine!=null&&r.endColumn!=1?Jk(r.endLine,r.endColumn,e,t):s,message:r.message,source:r.ruleId?"eslint:"+r.ruleId:"eslint",severity:r.severity==1?"warning":"error"};if(r.fix){let{range:i,text:a}=r.fix,l=i[0]+t.pos-s,o=i[1]+t.pos-s;n.actions=[{name:"fix",apply(u,c){u.dispatch({changes:{from:c+l,to:c+o,insert:a},scrollIntoView:!0})}}]}return n}var E6="#e5c07b",uA="#e06c75",C6="#56b6c2",w6="#ffffff",Gu="#abb2bf",td="#7d8799",k6="#61afef",A6="#98c379",cA="#d19a66",P6="#c678dd",T6="#21252b",fA="#2c313a",pA="#282c34",ed="#353a42",D6="#3E4451",hA="#528bff";var _6=lt.theme({"&":{color:Gu,backgroundColor:pA},".cm-content":{caretColor:hA},".cm-cursor, .cm-dropCursor":{borderLeftColor:hA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:D6},".cm-panels":{backgroundColor:T6,color:Gu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:pA,color:td,border:"none"},".cm-activeLineGutter":{backgroundColor:fA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:ed},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:ed,borderBottomColor:ed},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:fA,color:Gu}}},{dark:!0}),I6=ta.define([{tag:Pe.keyword,color:P6},{tag:[Pe.name,Pe.deleted,Pe.character,Pe.propertyName,Pe.macroName],color:uA},{tag:[Pe.function(Pe.variableName),Pe.labelName],color:k6},{tag:[Pe.color,Pe.constant(Pe.name),Pe.standard(Pe.name)],color:cA},{tag:[Pe.definition(Pe.name),Pe.separator],color:Gu},{tag:[Pe.typeName,Pe.className,Pe.number,Pe.changed,Pe.annotation,Pe.modifier,Pe.self,Pe.namespace],color:E6},{tag:[Pe.operator,Pe.operatorKeyword,Pe.url,Pe.escape,Pe.regexp,Pe.link,Pe.special(Pe.string)],color:C6},{tag:[Pe.meta,Pe.comment],color:td},{tag:Pe.strong,fontWeight:"bold"},{tag:Pe.emphasis,fontStyle:"italic"},{tag:Pe.strikethrough,textDecoration:"line-through"},{tag:Pe.link,color:td,textDecoration:"underline"},{tag:Pe.heading,fontWeight:"bold",color:uA},{tag:[Pe.atom,Pe.bool,Pe.special(Pe.variableName)],color:cA},{tag:[Pe.processingInstruction,Pe.string,Pe.inserted],color:A6},{tag:Pe.invalid,color:w6}]),dA=[_6,hu(I6)];ic||(ic=globalThis||window);var ic;function pc(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var F6={},tn=typeof ic<"u"?ic:typeof self<"u"?self:typeof window<"u"?window:{};function WR(){throw new Error("setTimeout has not been defined")}function ZR(){throw new Error("clearTimeout has not been defined")}var Ms=WR,js=ZR;typeof tn.setTimeout=="function"&&(Ms=setTimeout);typeof tn.clearTimeout=="function"&&(js=clearTimeout);function zR(r){if(Ms===setTimeout)return setTimeout(r,0);if((Ms===WR||!Ms)&&setTimeout)return Ms=setTimeout,setTimeout(r,0);try{return Ms(r,0)}catch{try{return Ms.call(null,r,0)}catch{return Ms.call(this,r,0)}}}function R6(r){if(js===clearTimeout)return clearTimeout(r);if((js===ZR||!js)&&clearTimeout)return js=clearTimeout,clearTimeout(r);try{return js(r)}catch{try{return js.call(null,r)}catch{return js.call(this,r)}}}var fs=[],ya=!1,mi,sc=-1;function B6(){!ya||!mi||(ya=!1,mi.length?fs=mi.concat(fs):sc=-1,fs.length&&XR())}function XR(){if(!ya){var r=zR(B6);ya=!0;for(var e=fs.length;e;){for(mi=fs,fs=[];++sc1)for(var t=1;t=0;s--){var n=r[s];n==="."?r.splice(s,1):n===".."?(r.splice(s,1),t++):t&&(r.splice(s,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var oQ=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,iO=function(r){return oQ.exec(r).slice(1)};function ac(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var s=t>=0?arguments[t]:"/";if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;r=s+"/"+r,e=s.charAt(0)==="/"}return r=YR(lO(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."}function aO(r){var e=oO(r),t=uQ(r,-1)==="/";return r=YR(lO(r.split("/"),function(s){return!!s}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function oO(r){return r.charAt(0)==="/"}function HR(){var r=Array.prototype.slice.call(arguments,0);return aO(lO(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function KR(r,e){r=ac(r).substr(1),e=ac(e).substr(1);function t(u){for(var c=0;c=0&&u[p]==="";p--);return c>p?[]:u.slice(c,p-c+1)}for(var s=t(r.split("/")),n=t(e.split("/")),i=Math.min(s.length,n.length),a=i,l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");i=r[l-2]==="="?2:r[l-1]==="="?1:0,a=new fQ(l*3/4-i),s=i>0?l-4:l;var o=0;for(e=0,t=0;e>16&255,a[o++]=n>>8&255,a[o++]=n&255;return i===2?(n=dn[r.charCodeAt(e)]<<2|dn[r.charCodeAt(e+1)]>>4,a[o++]=n&255):i===1&&(n=dn[r.charCodeAt(e)]<<10|dn[r.charCodeAt(e+1)]<<4|dn[r.charCodeAt(e+2)]>>2,a[o++]=n>>8&255,a[o++]=n&255),a}function hQ(r){return zn[r>>18&63]+zn[r>>12&63]+zn[r>>6&63]+zn[r&63]}function dQ(r,e,t){for(var s,n=[],i=e;io?o:l+a));return s===1?(e=r[t-1],n+=zn[e>>2],n+=zn[e<<4&63],n+="=="):s===2&&(e=(r[t-2]<<8)+r[t-1],n+=zn[e>>10],n+=zn[e>>4&63],n+=zn[e<<2&63],n+="="),i.push(n),i.join("")}function dc(r,e,t,s,n){var i,a,l=n*8-s-1,o=(1<>1,c=-7,p=t?n-1:0,h=t?-1:1,f=r[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=l;c>0;i=i*256+r[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=s;c>0;a=a*256+r[e+p],p+=h,c-=8);if(i===0)i=1-u;else{if(i===o)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,s),i=i-u}return(f?-1:1)*a*Math.pow(2,i-s)}function iB(r,e,t,s,n,i){var a,l,o,u=i*8-n-1,c=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:i-1,d=s?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+p>=1?e+=h/o:e+=h*Math.pow(2,1-p),e*o>=2&&(a++,o/=2),a+p>=c?(l=0,a=c):a+p>=1?(l=(e*o-1)*Math.pow(2,n),a=a+p):(l=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;r[t+f]=l&255,f+=d,l/=256,n-=8);for(a=a<0;r[t+f]=a&255,f+=d,a/=256,u-=8);r[t+f-d]|=m*128}var mQ={}.toString,aB=Array.isArray||function(r){return mQ.call(r)=="[object Array]"};var gQ=50;Ye.TYPED_ARRAY_SUPPORT=tn.TYPED_ARRAY_SUPPORT!==void 0?tn.TYPED_ARRAY_SUPPORT:!0;oc();function oc(){return Ye.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ps(r,e){if(oc()=oc())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oc().toString(16)+" bytes");return r|0}Ye.isBuffer=ga;function Gn(r){return!!(r!=null&&r._isBuffer)}Ye.compare=function(e,t){if(!Gn(e)||!Gn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var s=e.length,n=t.length,i=0,a=Math.min(s,n);i>>1;case"base64":return gB(r).length;default:if(s)return lc(r).length;e=(""+e).toLowerCase(),s=!0}}Ye.byteLength=uB;function OQ(r,e,t){var s=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return _Q(this,e,t);case"utf8":case"utf-8":return pB(this,e,t);case"ascii":return TQ(this,e,t);case"latin1":case"binary":return DQ(this,e,t);case"base64":return AQ(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return IQ(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}Ye.prototype._isBuffer=!0;function gi(r,e,t){var s=r[e];r[e]=r[t],r[t]=s}Ye.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 t=0;t0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""};Ye.prototype.compare=function(e,t,s,n,i){if(!Gn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||s>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=s)return 0;if(n>=i)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,l=s-t,o=Math.min(a,l),u=this.slice(n,i),c=e.slice(t,s),p=0;p2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=Ye.from(e,s)),Gn(e))return e.length===0?-1:gA(r,e,t,s,n);if(typeof e=="number")return e=e&255,Ye.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):gA(r,[e],t,s,n);throw new TypeError("val must be string, number or Buffer")}function gA(r,e,t,s,n){var i=1,a=r.length,l=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,a/=2,l/=2,t/=2}function o(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}var u;if(n){var c=-1;for(u=t;ua&&(t=a-l),u=t;u>=0;u--){for(var p=!0,h=0;hn&&(s=n)):s=n;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");s>i/2&&(s=i/2);for(var a=0;ai)&&(s=i),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return SQ(this,e,t,s);case"utf8":case"utf-8":return EQ(this,e,t,s);case"ascii":return fB(this,e,t,s);case"latin1":case"binary":return CQ(this,e,t,s);case"base64":return wQ(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kQ(this,e,t,s);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};Ye.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function AQ(r,e,t){return e===0&&t===r.length?mA(r):mA(r.slice(e,t))}function pB(r,e,t){t=Math.min(r.length,t);for(var s=[],n=e;n239?4:i>223?3:i>191?2:1;if(n+l<=t){var o,u,c,p;switch(l){case 1:i<128&&(a=i);break;case 2:o=r[n+1],(o&192)===128&&(p=(i&31)<<6|o&63,p>127&&(a=p));break;case 3:o=r[n+1],u=r[n+2],(o&192)===128&&(u&192)===128&&(p=(i&15)<<12|(o&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:o=r[n+1],u=r[n+2],c=r[n+3],(o&192)===128&&(u&192)===128&&(c&192)===128&&(p=(i&15)<<18|(o&63)<<12|(u&63)<<6|c&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,s.push(a>>>10&1023|55296),a=56320|a&1023),s.push(a),n+=l}return PQ(s)}var yA=4096;function PQ(r){var e=r.length;if(e<=yA)return String.fromCharCode.apply(String,r);for(var t="",s=0;ss)&&(t=s);for(var n="",i=e;is&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),tt)throw new RangeError("Trying to access beyond buffer length")}Ye.prototype.readUIntLE=function(e,t,s){e=e|0,t=t|0,s||vr(e,t,this.length);for(var n=this[e],i=1,a=0;++a0&&(i*=256);)n+=this[e+--t]*i;return n};Ye.prototype.readUInt8=function(e,t){return t||vr(e,1,this.length),this[e]};Ye.prototype.readUInt16LE=function(e,t){return t||vr(e,2,this.length),this[e]|this[e+1]<<8};Ye.prototype.readUInt16BE=function(e,t){return t||vr(e,2,this.length),this[e]<<8|this[e+1]};Ye.prototype.readUInt32LE=function(e,t){return t||vr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Ye.prototype.readUInt32BE=function(e,t){return t||vr(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Ye.prototype.readIntLE=function(e,t,s){e=e|0,t=t|0,s||vr(e,t,this.length);for(var n=this[e],i=1,a=0;++a=i&&(n-=Math.pow(2,8*t)),n};Ye.prototype.readIntBE=function(e,t,s){e=e|0,t=t|0,s||vr(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a};Ye.prototype.readInt8=function(e,t){return t||vr(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Ye.prototype.readInt16LE=function(e,t){t||vr(e,2,this.length);var s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s};Ye.prototype.readInt16BE=function(e,t){t||vr(e,2,this.length);var s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s};Ye.prototype.readInt32LE=function(e,t){return t||vr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Ye.prototype.readInt32BE=function(e,t){return t||vr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Ye.prototype.readFloatLE=function(e,t){return t||vr(e,4,this.length),dc(this,e,!0,23,4)};Ye.prototype.readFloatBE=function(e,t){return t||vr(e,4,this.length),dc(this,e,!1,23,4)};Ye.prototype.readDoubleLE=function(e,t){return t||vr(e,8,this.length),dc(this,e,!0,52,8)};Ye.prototype.readDoubleBE=function(e,t){return t||vr(e,8,this.length),dc(this,e,!1,52,8)};function Ur(r,e,t,s,n,i){if(!Gn(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||er.length)throw new RangeError("Index out of range")}Ye.prototype.writeUIntLE=function(e,t,s,n){if(e=+e,t=t|0,s=s|0,!n){var i=Math.pow(2,8*s)-1;Ur(this,e,t,s,i,0)}var a=1,l=0;for(this[t]=e&255;++l=0&&(l*=256);)this[t+a]=e/l&255;return t+s};Ye.prototype.writeUInt8=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,1,255,0),Ye.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e&255,t+1};function mc(r,e,t,s){e<0&&(e=65535+e+1);for(var n=0,i=Math.min(r.length-t,2);n>>(s?n:1-n)*8}Ye.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,2,65535,0),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):mc(this,e,t,!0),t+2};Ye.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,2,65535,0),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):mc(this,e,t,!1),t+2};function gc(r,e,t,s){e<0&&(e=4294967295+e+1);for(var n=0,i=Math.min(r.length-t,4);n>>(s?n:3-n)*8&255}Ye.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,4,4294967295,0),Ye.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255):gc(this,e,t,!0),t+4};Ye.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,4,4294967295,0),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):gc(this,e,t,!1),t+4};Ye.prototype.writeIntLE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);Ur(this,e,t,s,i-1,-i)}var a=0,l=1,o=0;for(this[t]=e&255;++a>0)-o&255;return t+s};Ye.prototype.writeIntBE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);Ur(this,e,t,s,i-1,-i)}var a=s-1,l=1,o=0;for(this[t+a]=e&255;--a>=0&&(l*=256);)e<0&&o===0&&this[t+a+1]!==0&&(o=1),this[t+a]=(e/l>>0)-o&255;return t+s};Ye.prototype.writeInt8=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,1,127,-128),Ye.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e&255,t+1};Ye.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,2,32767,-32768),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):mc(this,e,t,!0),t+2};Ye.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,2,32767,-32768),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):mc(this,e,t,!1),t+2};Ye.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,4,2147483647,-2147483648),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):gc(this,e,t,!0),t+4};Ye.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t|0,s||Ur(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ye.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):gc(this,e,t,!1),t+4};function hB(r,e,t,s,n,i){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function dB(r,e,t,s,n){return n||hB(r,e,t,4),iB(r,e,t,s,23,4),t+4}Ye.prototype.writeFloatLE=function(e,t,s){return dB(this,e,t,!0,s)};Ye.prototype.writeFloatBE=function(e,t,s){return dB(this,e,t,!1,s)};function mB(r,e,t,s,n){return n||hB(r,e,t,8),iB(r,e,t,s,52,8),t+8}Ye.prototype.writeDoubleLE=function(e,t,s){return mB(this,e,t,!0,s)};Ye.prototype.writeDoubleBE=function(e,t,s){return mB(this,e,t,!1,s)};Ye.prototype.copy=function(e,t,s,n){if(s||(s=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+s];else if(i<1e3||!Ye.TYPED_ARRAY_SUPPORT)for(a=0;a>>0,s=s===void 0?this.length:s>>>0,e||(e=0);var a;if(typeof e=="number")for(a=t;a55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===s){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function LQ(r){for(var e=[],t=0;t>8,n=t%256,i.push(n),i.push(s);return i}function gB(r){return pQ(RQ(r))}function yc(r,e,t,s){for(var n=0;n=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function MQ(r){return r!==r}function ga(r){return r!=null&&(!!r._isBuffer||yB(r)||jQ(r))}function yB(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function jQ(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&yB(r.slice(0,0))}var eO;typeof Object.create=="function"?eO=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:eO=function(e,t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e};var pO=eO,xB=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),s={},n=0;n=n)return l;switch(l){case"%s":return String(s[t++]);case"%d":return Number(s[t++]);case"%j":try{return JSON.stringify(s[t++])}catch{return"[Circular]"}default:return l}}),a=s[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),bc(e)?t.showHidden=e:e&&yO(t,e),Xn(t.showHidden)&&(t.showHidden=!1),Xn(t.depth)&&(t.depth=2),Xn(t.colors)&&(t.colors=!1),Xn(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=QQ),uc(t,r,t.depth)}An.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]};An.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function QQ(r,e){var t=An.styles[e];return t?"\x1B["+An.colors[t][0]+"m"+r+"\x1B["+An.colors[t][1]+"m":r}function UQ(r,e){return r}function VQ(r){var e={};return r.forEach(function(t,s){e[t]=!0}),e}function uc(r,e,t){if(r.customInspect&&e&&xi(e.inspect)&&e.inspect!==An&&!(e.constructor&&e.constructor.prototype===e)){var s=e.inspect(t,r);return Wo(s)||(s=uc(r,s,t)),s}var n=WQ(r,e);if(n)return n;var i=Object.keys(e),a=VQ(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),xa(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return nd(e);if(i.length===0){if(xi(e)){var l=e.name?": "+e.name:"";return r.stylize("[Function"+l+"]","special")}if(yi(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(ba(e))return r.stylize(Date.prototype.toString.call(e),"date");if(xa(e))return nd(e)}var o="",u=!1,c=["{","}"];if(dO(e)&&(u=!0,c=["[","]"]),xi(e)){var p=e.name?": "+e.name:"";o=" [Function"+p+"]"}if(yi(e)&&(o=" "+RegExp.prototype.toString.call(e)),ba(e)&&(o=" "+Date.prototype.toUTCString.call(e)),xa(e)&&(o=" "+nd(e)),i.length===0&&(!u||e.length==0))return c[0]+o+c[1];if(t<0)return yi(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=ZQ(r,e,t,a,i):h=i.map(function(f){return tO(r,e,t,a,f,u)}),r.seen.pop(),zQ(h,o,c)}function WQ(r,e){if(Xn(e))return r.stylize("undefined","undefined");if(Wo(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(mO(e))return r.stylize(""+e,"number");if(bc(e))return r.stylize(""+e,"boolean");if(Vo(e))return r.stylize("null","null")}function nd(r){return"["+Error.prototype.toString.call(r)+"]"}function ZQ(r,e,t,s,n){for(var i=[],a=0,l=e.length;a{let s=e.node.getChild("VariableDefinition");return s&&t(s,r),!0}}var c6=["FunctionDeclaration"],f6={FunctionDeclaration:Ro("function"),ClassDeclaration:Ro("class"),ClassExpression:()=>!0,EnumDeclaration:Ro("constant"),TypeAliasDeclaration:Ro("type"),NamespaceDeclaration:Ro("namespace"),VariableDefinition(r,e){r.matchContext(c6)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function eA(r,e){let t=Xk.get(e);if(t)return t;let s=[],n=!0;function i(a,l){let o=r.sliceString(a.from,a.to);s.push({label:o,type:l})}return e.cursor(nr.IncludeAnonymous).iterate(a=>{if(n)n=!1;else if(a.name){let l=f6[a.name];if(l&&l(a,i)||Jk.has(a.name))return!1}else if(a.to-a.from>8192){for(let l of eA(r,a.node))s.push(l);return!1}}),Xk.set(e,s),s}var Gk=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,tA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function p6(r){let e=pr(r.state).resolveInner(r.pos,-1);if(tA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Gk.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let s=[];for(let n=e;n;n=n.parent)Jk.has(n.name)&&(s=s.concat(eA(r.state.doc,n)));return{options:s,from:t?e.from:r.pos,validFor:Gk}}var Vn=au.define({name:"javascript",parser:zk.configure({props:[Hp.add({IfStatement:cu({except:/^\s*({|else\b)/}),TryStatement:cu({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:KC,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),s=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:s?1:2)*r.unit},Block:YC({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":cu({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),ew.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":tw,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),rA={test:r=>/^JSX/.test(r.name),facet:Yp({commentTokens:{block:{open:"{/*",close:"*/}"}}})},h6=Vn.configure({dialect:"ts"},"typescript"),d6=Vn.configure({dialect:"jsx",props:[lu.add(r=>r.isTop?[rA]:void 0)]}),m6=Vn.configure({dialect:"jsx ts",props:[lu.add(r=>r.isTop?[rA]:void 0)]},"typescript"),nA=r=>({label:r,type:"keyword"}),sA="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(nA),g6=sA.concat(["declare","implements","private","protected","public"].map(nA));function iA(r={}){let e=r.jsx?r.typescript?m6:d6:r.typescript?h6:Vn,t=r.typescript?u6.concat(g6):Kk.concat(sA);return new ou(e,[Vn.data.of({autocomplete:gk(tA,Ph(t))}),Vn.data.of({autocomplete:p6}),r.jsx?b6:[]])}function y6(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function Yk(r,e,t=r.length){for(let s=e?.firstChild;s;s=s.nextSibling)if(s.name=="JSXIdentifier"||s.name=="JSXBuiltin"||s.name=="JSXNamespacedName"||s.name=="JSXMemberExpression")return r.sliceString(s.from,Math.min(s.to,t));return""}var x6=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),b6=at.inputHandler.of((r,e,t,s,n)=>{if((x6?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||s!=">"&&s!="/"||!Vn.isActiveAt(r.state,e,-1))return!1;let i=n(),{state:a}=i,l=a.changeByRange(o=>{var u;let{head:c}=o,p=pr(a).resolveInner(c-1,-1),h;if(p.name=="JSXStartTag"&&(p=p.parent),!(a.doc.sliceString(c-1,c)!=s||p.name=="JSXAttributeValue"&&p.to>c)){if(s==">"&&p.name=="JSXFragmentTag")return{range:o,changes:{from:c,insert:""}};if(s=="/"&&p.name=="JSXStartCloseTag"){let f=p.parent,d=f.parent;if(d&&f.from==c-2&&((h=Yk(a.doc,d.firstChild,c))||((u=d.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let m=`${h}>`;return{range:Ze.cursor(c+m.length,-1),changes:{from:c,insert:m}}}}else if(s==">"){let f=y6(p);if(f&&f.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(h=Yk(a.doc,f,c)))return{range:o,changes:{from:c,insert:``}}}}return{range:o}});return l.changes.empty?!1:(r.dispatch([i,a.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function aA(r,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},r.getRules().forEach((t,s)=>{t.meta.docs.recommended&&(e.rules[s]=2)})),t=>{let{state:s}=t,n=[];for(let{from:i,to:a}of Vn.findRegions(s)){let l=s.doc.lineAt(i),o={line:l.number-1,col:i-l.from,pos:i};for(let u of r.verify(s.sliceDoc(i,a),e))n.push(v6(u,s.doc,o))}return n}}function Hk(r,e,t,s){return t.line(r+s.line).from+e+(r==1?s.col-1:-1)}function v6(r,e,t){let s=Hk(r.line,r.column,e,t),n={from:s,to:r.endLine!=null&&r.endColumn!=1?Hk(r.endLine,r.endColumn,e,t):s,message:r.message,source:r.ruleId?"eslint:"+r.ruleId:"eslint",severity:r.severity==1?"warning":"error"};if(r.fix){let{range:i,text:a}=r.fix,l=i[0]+t.pos-s,o=i[1]+t.pos-s;n.actions=[{name:"fix",apply(u,c){u.dispatch({changes:{from:c+l,to:c+o,insert:a},scrollIntoView:!0})}}]}return n}var O6="#e5c07b",oA="#e06c75",S6="#56b6c2",E6="#ffffff",zu="#abb2bf",Jh="#7d8799",C6="#61afef",w6="#98c379",lA="#d19a66",k6="#c678dd",A6="#21252b",uA="#2c313a",cA="#282c34",Kh="#353a42",P6="#3E4451",fA="#528bff";var T6=at.theme({"&":{color:zu,backgroundColor:cA},".cm-content":{caretColor:fA},".cm-cursor, .cm-dropCursor":{borderLeftColor:fA},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:P6},".cm-panels":{backgroundColor:A6,color:zu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:cA,color:Jh,border:"none"},".cm-activeLineGutter":{backgroundColor:uA},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Kh},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Kh,borderBottomColor:Kh},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:uA,color:zu}}},{dark:!0}),D6=Ji.define([{tag:ke.keyword,color:k6},{tag:[ke.name,ke.deleted,ke.character,ke.propertyName,ke.macroName],color:oA},{tag:[ke.function(ke.variableName),ke.labelName],color:C6},{tag:[ke.color,ke.constant(ke.name),ke.standard(ke.name)],color:lA},{tag:[ke.definition(ke.name),ke.separator],color:zu},{tag:[ke.typeName,ke.className,ke.number,ke.changed,ke.annotation,ke.modifier,ke.self,ke.namespace],color:O6},{tag:[ke.operator,ke.operatorKeyword,ke.url,ke.escape,ke.regexp,ke.link,ke.special(ke.string)],color:S6},{tag:[ke.meta,ke.comment],color:Jh},{tag:ke.strong,fontWeight:"bold"},{tag:ke.emphasis,fontStyle:"italic"},{tag:ke.strikethrough,textDecoration:"line-through"},{tag:ke.link,color:Jh,textDecoration:"underline"},{tag:ke.heading,fontWeight:"bold",color:oA},{tag:[ke.atom,ke.bool,ke.special(ke.variableName)],color:lA},{tag:[ke.processingInstruction,ke.string,ke.inserted],color:w6},{tag:ke.invalid,color:E6}]),pA=[T6,fu(D6)];nc||(nc=globalThis||window);var nc;function cc(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var _6={},Jr=typeof nc<"u"?nc:typeof self<"u"?self:typeof window<"u"?window:{};function UR(){throw new Error("setTimeout has not been defined")}function VR(){throw new Error("clearTimeout has not been defined")}var Ls=UR,$s=VR;typeof Jr.setTimeout=="function"&&(Ls=setTimeout);typeof Jr.clearTimeout=="function"&&($s=clearTimeout);function WR(r){if(Ls===setTimeout)return setTimeout(r,0);if((Ls===UR||!Ls)&&setTimeout)return Ls=setTimeout,setTimeout(r,0);try{return Ls(r,0)}catch{try{return Ls.call(null,r,0)}catch{return Ls.call(this,r,0)}}}function I6(r){if($s===clearTimeout)return clearTimeout(r);if(($s===VR||!$s)&&clearTimeout)return $s=clearTimeout,clearTimeout(r);try{return $s(r)}catch{try{return $s.call(null,r)}catch{return $s.call(this,r)}}}var us=[],ma=!1,hi,rc=-1;function F6(){!ma||!hi||(ma=!1,hi.length?us=hi.concat(us):rc=-1,us.length&&ZR())}function ZR(){if(!ma){var r=WR(F6);ma=!0;for(var e=us.length;e;){for(hi=us,us=[];++rc1)for(var t=1;t=0;s--){var n=r[s];n==="."?r.splice(s,1):n===".."?(r.splice(s,1),t++):t&&(r.splice(s,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}var iQ=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,nO=function(r){return iQ.exec(r).slice(1)};function sc(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var s=t>=0?arguments[t]:"/";if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)continue;r=s+"/"+r,e=s.charAt(0)==="/"}return r=XR(aO(r.split("/"),function(n){return!!n}),!e).join("/"),(e?"/":"")+r||"."}function sO(r){var e=iO(r),t=oQ(r,-1)==="/";return r=XR(aO(r.split("/"),function(s){return!!s}),!e).join("/"),!r&&!e&&(r="."),r&&t&&(r+="/"),(e?"/":"")+r}function iO(r){return r.charAt(0)==="/"}function GR(){var r=Array.prototype.slice.call(arguments,0);return sO(aO(r,function(e,t){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function YR(r,e){r=sc(r).substr(1),e=sc(e).substr(1);function t(u){for(var c=0;c=0&&u[p]==="";p--);return c>p?[]:u.slice(c,p-c+1)}for(var s=t(r.split("/")),n=t(e.split("/")),i=Math.min(s.length,n.length),a=i,l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");i=r[l-2]==="="?2:r[l-1]==="="?1:0,a=new uQ(l*3/4-i),s=i>0?l-4:l;var o=0;for(e=0,t=0;e>16&255,a[o++]=n>>8&255,a[o++]=n&255;return i===2?(n=pn[r.charCodeAt(e)]<<2|pn[r.charCodeAt(e+1)]>>4,a[o++]=n&255):i===1&&(n=pn[r.charCodeAt(e)]<<10|pn[r.charCodeAt(e+1)]<<4|pn[r.charCodeAt(e+2)]>>2,a[o++]=n>>8&255,a[o++]=n&255),a}function fQ(r){return Wn[r>>18&63]+Wn[r>>12&63]+Wn[r>>6&63]+Wn[r&63]}function pQ(r,e,t){for(var s,n=[],i=e;io?o:l+a));return s===1?(e=r[t-1],n+=Wn[e>>2],n+=Wn[e<<4&63],n+="=="):s===2&&(e=(r[t-2]<<8)+r[t-1],n+=Wn[e>>10],n+=Wn[e>>4&63],n+=Wn[e<<2&63],n+="="),i.push(n),i.join("")}function pc(r,e,t,s,n){var i,a,l=n*8-s-1,o=(1<>1,c=-7,p=t?n-1:0,h=t?-1:1,f=r[e+p];for(p+=h,i=f&(1<<-c)-1,f>>=-c,c+=l;c>0;i=i*256+r[e+p],p+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=s;c>0;a=a*256+r[e+p],p+=h,c-=8);if(i===0)i=1-u;else{if(i===o)return a?NaN:(f?-1:1)*(1/0);a=a+Math.pow(2,s),i=i-u}return(f?-1:1)*a*Math.pow(2,i-s)}function nB(r,e,t,s,n,i){var a,l,o,u=i*8-n-1,c=(1<>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,f=s?0:i-1,d=s?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+p>=1?e+=h/o:e+=h*Math.pow(2,1-p),e*o>=2&&(a++,o/=2),a+p>=c?(l=0,a=c):a+p>=1?(l=(e*o-1)*Math.pow(2,n),a=a+p):(l=e*Math.pow(2,p-1)*Math.pow(2,n),a=0));n>=8;r[t+f]=l&255,f+=d,l/=256,n-=8);for(a=a<0;r[t+f]=a&255,f+=d,a/=256,u-=8);r[t+f-d]|=m*128}var hQ={}.toString,sB=Array.isArray||function(r){return hQ.call(r)=="[object Array]"};var dQ=50;Xe.TYPED_ARRAY_SUPPORT=Jr.TYPED_ARRAY_SUPPORT!==void 0?Jr.TYPED_ARRAY_SUPPORT:!0;ic();function ic(){return Xe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function cs(r,e){if(ic()=ic())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ic().toString(16)+" bytes");return r|0}Xe.isBuffer=da;function zn(r){return!!(r!=null&&r._isBuffer)}Xe.compare=function(e,t){if(!zn(e)||!zn(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var s=e.length,n=t.length,i=0,a=Math.min(s,n);i>>1;case"base64":return dB(r).length;default:if(s)return ac(r).length;e=(""+e).toLowerCase(),s=!0}}Xe.byteLength=oB;function bQ(r,e,t){var s=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return TQ(this,e,t);case"utf8":case"utf-8":return cB(this,e,t);case"ascii":return AQ(this,e,t);case"latin1":case"binary":return PQ(this,e,t);case"base64":return wQ(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return DQ(this,e,t);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),s=!0}}Xe.prototype._isBuffer=!0;function di(r,e,t){var s=r[e];r[e]=r[t],r[t]=s}Xe.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 t=0;t0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""};Xe.prototype.compare=function(e,t,s,n,i){if(!zn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),s===void 0&&(s=e?e.length:0),n===void 0&&(n=0),i===void 0&&(i=this.length),t<0||s>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=s)return 0;if(n>=i)return-1;if(t>=s)return 1;if(t>>>=0,s>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,l=s-t,o=Math.min(a,l),u=this.slice(n,i),c=e.slice(t,s),p=0;p2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0)if(n)t=0;else return-1;if(typeof e=="string"&&(e=Xe.from(e,s)),zn(e))return e.length===0?-1:dA(r,e,t,s,n);if(typeof e=="number")return e=e&255,Xe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):dA(r,[e],t,s,n);throw new TypeError("val must be string, number or Buffer")}function dA(r,e,t,s,n){var i=1,a=r.length,l=e.length;if(s!==void 0&&(s=String(s).toLowerCase(),s==="ucs2"||s==="ucs-2"||s==="utf16le"||s==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,a/=2,l/=2,t/=2}function o(f,d){return i===1?f[d]:f.readUInt16BE(d*i)}var u;if(n){var c=-1;for(u=t;ua&&(t=a-l),u=t;u>=0;u--){for(var p=!0,h=0;hn&&(s=n)):s=n;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");s>i/2&&(s=i/2);for(var a=0;ai)&&(s=i),e.length>0&&(s<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return vQ(this,e,t,s);case"utf8":case"utf-8":return OQ(this,e,t,s);case"ascii":return uB(this,e,t,s);case"latin1":case"binary":return SQ(this,e,t,s);case"base64":return EQ(this,e,t,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CQ(this,e,t,s);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}};Xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function wQ(r,e,t){return e===0&&t===r.length?hA(r):hA(r.slice(e,t))}function cB(r,e,t){t=Math.min(r.length,t);for(var s=[],n=e;n239?4:i>223?3:i>191?2:1;if(n+l<=t){var o,u,c,p;switch(l){case 1:i<128&&(a=i);break;case 2:o=r[n+1],(o&192)===128&&(p=(i&31)<<6|o&63,p>127&&(a=p));break;case 3:o=r[n+1],u=r[n+2],(o&192)===128&&(u&192)===128&&(p=(i&15)<<12|(o&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(a=p));break;case 4:o=r[n+1],u=r[n+2],c=r[n+3],(o&192)===128&&(u&192)===128&&(c&192)===128&&(p=(i&15)<<18|(o&63)<<12|(u&63)<<6|c&63,p>65535&&p<1114112&&(a=p))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,s.push(a>>>10&1023|55296),a=56320|a&1023),s.push(a),n+=l}return kQ(s)}var mA=4096;function kQ(r){var e=r.length;if(e<=mA)return String.fromCharCode.apply(String,r);for(var t="",s=0;ss)&&(t=s);for(var n="",i=e;is&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),tt)throw new RangeError("Trying to access beyond buffer length")}Xe.prototype.readUIntLE=function(e,t,s){e=e|0,t=t|0,s||xr(e,t,this.length);for(var n=this[e],i=1,a=0;++a0&&(i*=256);)n+=this[e+--t]*i;return n};Xe.prototype.readUInt8=function(e,t){return t||xr(e,1,this.length),this[e]};Xe.prototype.readUInt16LE=function(e,t){return t||xr(e,2,this.length),this[e]|this[e+1]<<8};Xe.prototype.readUInt16BE=function(e,t){return t||xr(e,2,this.length),this[e]<<8|this[e+1]};Xe.prototype.readUInt32LE=function(e,t){return t||xr(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Xe.prototype.readUInt32BE=function(e,t){return t||xr(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Xe.prototype.readIntLE=function(e,t,s){e=e|0,t=t|0,s||xr(e,t,this.length);for(var n=this[e],i=1,a=0;++a=i&&(n-=Math.pow(2,8*t)),n};Xe.prototype.readIntBE=function(e,t,s){e=e|0,t=t|0,s||xr(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a};Xe.prototype.readInt8=function(e,t){return t||xr(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Xe.prototype.readInt16LE=function(e,t){t||xr(e,2,this.length);var s=this[e]|this[e+1]<<8;return s&32768?s|4294901760:s};Xe.prototype.readInt16BE=function(e,t){t||xr(e,2,this.length);var s=this[e+1]|this[e]<<8;return s&32768?s|4294901760:s};Xe.prototype.readInt32LE=function(e,t){return t||xr(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Xe.prototype.readInt32BE=function(e,t){return t||xr(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Xe.prototype.readFloatLE=function(e,t){return t||xr(e,4,this.length),pc(this,e,!0,23,4)};Xe.prototype.readFloatBE=function(e,t){return t||xr(e,4,this.length),pc(this,e,!1,23,4)};Xe.prototype.readDoubleLE=function(e,t){return t||xr(e,8,this.length),pc(this,e,!0,52,8)};Xe.prototype.readDoubleBE=function(e,t){return t||xr(e,8,this.length),pc(this,e,!1,52,8)};function qr(r,e,t,s,n,i){if(!zn(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||er.length)throw new RangeError("Index out of range")}Xe.prototype.writeUIntLE=function(e,t,s,n){if(e=+e,t=t|0,s=s|0,!n){var i=Math.pow(2,8*s)-1;qr(this,e,t,s,i,0)}var a=1,l=0;for(this[t]=e&255;++l=0&&(l*=256);)this[t+a]=e/l&255;return t+s};Xe.prototype.writeUInt8=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,1,255,0),Xe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=e&255,t+1};function hc(r,e,t,s){e<0&&(e=65535+e+1);for(var n=0,i=Math.min(r.length-t,2);n>>(s?n:1-n)*8}Xe.prototype.writeUInt16LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,65535,0),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):hc(this,e,t,!0),t+2};Xe.prototype.writeUInt16BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,65535,0),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):hc(this,e,t,!1),t+2};function dc(r,e,t,s){e<0&&(e=4294967295+e+1);for(var n=0,i=Math.min(r.length-t,4);n>>(s?n:3-n)*8&255}Xe.prototype.writeUInt32LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,4294967295,0),Xe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255):dc(this,e,t,!0),t+4};Xe.prototype.writeUInt32BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,4294967295,0),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):dc(this,e,t,!1),t+4};Xe.prototype.writeIntLE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);qr(this,e,t,s,i-1,-i)}var a=0,l=1,o=0;for(this[t]=e&255;++a>0)-o&255;return t+s};Xe.prototype.writeIntBE=function(e,t,s,n){if(e=+e,t=t|0,!n){var i=Math.pow(2,8*s-1);qr(this,e,t,s,i-1,-i)}var a=s-1,l=1,o=0;for(this[t+a]=e&255;--a>=0&&(l*=256);)e<0&&o===0&&this[t+a+1]!==0&&(o=1),this[t+a]=(e/l>>0)-o&255;return t+s};Xe.prototype.writeInt8=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,1,127,-128),Xe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=e&255,t+1};Xe.prototype.writeInt16LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,32767,-32768),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8):hc(this,e,t,!0),t+2};Xe.prototype.writeInt16BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,2,32767,-32768),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=e&255):hc(this,e,t,!1),t+2};Xe.prototype.writeInt32LE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,2147483647,-2147483648),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):dc(this,e,t,!0),t+4};Xe.prototype.writeInt32BE=function(e,t,s){return e=+e,t=t|0,s||qr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Xe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255):dc(this,e,t,!1),t+4};function fB(r,e,t,s,n,i){if(t+s>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function pB(r,e,t,s,n){return n||fB(r,e,t,4),nB(r,e,t,s,23,4),t+4}Xe.prototype.writeFloatLE=function(e,t,s){return pB(this,e,t,!0,s)};Xe.prototype.writeFloatBE=function(e,t,s){return pB(this,e,t,!1,s)};function hB(r,e,t,s,n){return n||fB(r,e,t,8),nB(r,e,t,s,52,8),t+8}Xe.prototype.writeDoubleLE=function(e,t,s){return hB(this,e,t,!0,s)};Xe.prototype.writeDoubleBE=function(e,t,s){return hB(this,e,t,!1,s)};Xe.prototype.copy=function(e,t,s,n){if(s||(s=0),!n&&n!==0&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+s];else if(i<1e3||!Xe.TYPED_ARRAY_SUPPORT)for(a=0;a>>0,s=s===void 0?this.length:s>>>0,e||(e=0);var a;if(typeof e=="number")for(a=t;a55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(a+1===s){(e-=3)>-1&&i.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),n=t;continue}t=(n-55296<<10|t-56320)+65536}else n&&(e-=3)>-1&&i.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function BQ(r){for(var e=[],t=0;t>8,n=t%256,i.push(n),i.push(s);return i}function dB(r){return cQ(IQ(r))}function mc(r,e,t,s){for(var n=0;n=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function LQ(r){return r!==r}function da(r){return r!=null&&(!!r._isBuffer||mB(r)||$Q(r))}function mB(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function $Q(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&mB(r.slice(0,0))}var Kv;typeof Object.create=="function"?Kv=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Kv=function(e,t){e.super_=t;var s=function(){};s.prototype=t.prototype,e.prototype=new s,e.prototype.constructor=e};var cO=Kv,gB=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),s={},n=0;n=n)return l;switch(l){case"%s":return String(s[t++]);case"%d":return Number(s[t++]);case"%j":try{return JSON.stringify(s[t++])}catch{return"[Circular]"}default:return l}}),a=s[t];t=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),yc(e)?t.showHidden=e:e&&mO(t,e),Zn(t.showHidden)&&(t.showHidden=!1),Zn(t.depth)&&(t.depth=2),Zn(t.colors)&&(t.colors=!1),Zn(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=jQ),oc(t,r,t.depth)}wn.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]};wn.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function jQ(r,e){var t=wn.styles[e];return t?"\x1B["+wn.colors[t][0]+"m"+r+"\x1B["+wn.colors[t][1]+"m":r}function qQ(r,e){return r}function QQ(r){var e={};return r.forEach(function(t,s){e[t]=!0}),e}function oc(r,e,t){if(r.customInspect&&e&&gi(e.inspect)&&e.inspect!==wn&&!(e.constructor&&e.constructor.prototype===e)){var s=e.inspect(t,r);return Uo(s)||(s=oc(r,s,t)),s}var n=UQ(r,e);if(n)return n;var i=Object.keys(e),a=QQ(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),ga(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return td(e);if(i.length===0){if(gi(e)){var l=e.name?": "+e.name:"";return r.stylize("[Function"+l+"]","special")}if(mi(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(ya(e))return r.stylize(Date.prototype.toString.call(e),"date");if(ga(e))return td(e)}var o="",u=!1,c=["{","}"];if(pO(e)&&(u=!0,c=["[","]"]),gi(e)){var p=e.name?": "+e.name:"";o=" [Function"+p+"]"}if(mi(e)&&(o=" "+RegExp.prototype.toString.call(e)),ya(e)&&(o=" "+Date.prototype.toUTCString.call(e)),ga(e)&&(o=" "+td(e)),i.length===0&&(!u||e.length==0))return c[0]+o+c[1];if(t<0)return mi(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=VQ(r,e,t,a,i):h=i.map(function(f){return Jv(r,e,t,a,f,u)}),r.seen.pop(),WQ(h,o,c)}function UQ(r,e){if(Zn(e))return r.stylize("undefined","undefined");if(Uo(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(hO(e))return r.stylize(""+e,"number");if(yc(e))return r.stylize(""+e,"boolean");if(Qo(e))return r.stylize("null","null")}function td(r){return"["+Error.prototype.toString.call(r)+"]"}function VQ(r,e,t,s,n){for(var i=[],a=0,l=e.length;a-1&&(i?l=l.split(` `).map(function(u){return" "+u}).join(` `).substr(2):l=` `+l.split(` `).map(function(u){return" "+u}).join(` -`))):l=r.stylize("[Circular]","special")),Xn(a)){if(i&&n.match(/^\d+$/))return l;a=JSON.stringify(""+n),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=r.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=r.stylize(a,"string"))}return a+": "+l}function zQ(r,e,t){var s=r.reduce(function(n,i){return i.indexOf(` +`))):l=r.stylize("[Circular]","special")),Zn(a)){if(i&&n.match(/^\d+$/))return l;a=JSON.stringify(""+n),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=r.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=r.stylize(a,"string"))}return a+": "+l}function WQ(r,e,t){var s=r.reduce(function(n,i){return i.indexOf(` `)>=0,n+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return s>60?t[0]+(e===""?"":e+` `)+" "+r.join(`, - `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}function dO(r){return Array.isArray(r)}function bc(r){return typeof r=="boolean"}function Vo(r){return r===null}function vB(r){return r==null}function mO(r){return typeof r=="number"}function Wo(r){return typeof r=="string"}function OB(r){return typeof r=="symbol"}function Xn(r){return r===void 0}function yi(r){return vi(r)&&gO(r)==="[object RegExp]"}function vi(r){return typeof r=="object"&&r!==null}function ba(r){return vi(r)&&gO(r)==="[object Date]"}function xa(r){return vi(r)&&(gO(r)==="[object Error]"||r instanceof Error)}function xi(r){return typeof r=="function"}function cc(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}function SB(r){return Ye.isBuffer(r)}function gO(r){return Object.prototype.toString.call(r)}function sd(r){return r<10?"0"+r.toString(10):r.toString(10)}var XQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function GQ(){var r=new Date,e=[sd(r.getHours()),sd(r.getMinutes()),sd(r.getSeconds())].join(":");return[r.getDate(),XQ[r.getMonth()],e].join(" ")}function EB(){console.log("%s - %s",GQ(),xc.apply(null,arguments))}function yO(r,e){if(!e||!vi(e))return r;for(var t=Object.keys(e),s=t.length;s--;)r[t[s]]=e[t[s]];return r}function CB(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var hi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function xO(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(hi&&r[hi]){var e=r[hi];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,hi,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var t,s,n=new Promise(function(l,o){t=l,s=o}),i=[],a=0;a"u"}function vB(r){return Xe.isBuffer(r)}function dO(r){return Object.prototype.toString.call(r)}function rd(r){return r<10?"0"+r.toString(10):r.toString(10)}var ZQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zQ(){var r=new Date,e=[rd(r.getHours()),rd(r.getMinutes()),rd(r.getSeconds())].join(":");return[r.getDate(),ZQ[r.getMonth()],e].join(" ")}function OB(){console.log("%s - %s",zQ(),gc.apply(null,arguments))}function mO(r,e){if(!e||!xi(e))return r;for(var t=Object.keys(e),s=t.length;s--;)r[t[s]]=e[t[s]];return r}function SB(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var fi=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function gO(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(fi&&r[fi]){var e=r[fi];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,fi,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var t,s,n=new Promise(function(l,o){t=l,s=o}),i=[],a=0;a=0){var a=s.indexOf(` -`,i+1);s=s.substring(a+1)}this.stack=s}}}pO(vc,Error);function EA(r,e){return typeof r=="string"?r.length=0;u--)if(a[u]!==l[u])return!1;for(u=a.length-1;u>=0;u--)if(o=a[u],!va(r[o],e[o],t,s))return!1;return!0}Lr.notDeepEqual=EO;function EO(r,e,t){va(r,e,!1)&&Nr(r,e,t,"notDeepEqual",EO)}Lr.notDeepStrictEqual=CO;function CO(r,e,t){va(r,e,!0)&&Nr(r,e,t,"notDeepStrictEqual",CO)}Lr.strictEqual=wO;function wO(r,e,t){r!==e&&Nr(r,e,t,"===",wO)}Lr.notStrictEqual=kO;function kO(r,e,t){r===e&&Nr(r,e,t,"!==",kO)}function kA(r,e){if(!r||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(r);try{if(r instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},r)===!0}function n9(r){var e;try{r()}catch(t){e=t}return e}function PB(r,e,t,s){var n;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof t=="string"&&(s=t,t=null),n=n9(e),s=(t&&t.name?" ("+t.name+").":".")+(s?" "+s:"."),r&&!n&&Nr(n,t,"Missing expected exception"+s);var i=typeof s=="string",a=!r&&xa(n),l=!r&&n&&!t;if((a&&i&&kA(n,t)||l)&&Nr(n,t,"Got unwanted exception"+s),r&&n&&t&&!kA(n,t)||!r&&n)throw n}Lr.throws=TB;function TB(r,e,t){PB(!0,r,e,t)}Lr.doesNotThrow=DB;function DB(r,e,t){PB(!1,r,e,t)}Lr.ifError=_B;function _B(r){if(r)throw r}var s9=Object.freeze({__proto__:null,AssertionError:vc,assert:Qo,deepEqual:OO,deepStrictEqual:SO,default:Lr,doesNotThrow:DB,equal:bO,fail:Nr,ifError:_B,notDeepEqual:EO,notDeepStrictEqual:CO,notEqual:vO,notStrictEqual:kO,ok:Qo,strictEqual:wO,throws:TB}),Zo=pc(s9),ad={},AA;function IB(){return AA||(AA=1,function(r){(function e(t){var s,n,i,a,l,o;function u(k){var E={},A,w;for(A in k)k.hasOwnProperty(A)&&(w=k[A],typeof w=="object"&&w!==null?E[A]=u(w):E[A]=w);return E}function c(k,E){var A,w,P,T;for(w=k.length,P=0;w;)A=w>>>1,T=P+A,E(k[T])?w=A:(P=T+1,w-=A+1);return P}s={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"},i={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"]},a={},l={},o={},n={Break:a,Skip:l,Remove:o};function p(k,E){this.parent=k,this.key=E}p.prototype.replace=function(E){this.parent[this.key]=E},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(k,E,A,w){this.node=k,this.path=E,this.wrap=A,this.ref=w}function f(){}f.prototype.path=function(){var E,A,w,P,T,I;function F(L,_){if(Array.isArray(_))for(w=0,P=_.length;w=0;--A)if(k[A].node===E)return!0;return!1}f.prototype.traverse=function(E,A){var w,P,T,I,F,L,_,B,Q,V,R,$;for(this.__initialize(E,A),$={},w=this.__worklist,P=this.__leavelist,w.push(new h(E,null,null,null)),P.push(new h(null,null,null,null));w.length;){if(T=w.pop(),T===$){if(T=P.pop(),L=this.__execute(A.leave,T),this.__state===a||L===a)return;continue}if(T.node){if(L=this.__execute(A.enter,T),this.__state===a||L===a)return;if(w.push($),P.push(T),this.__state===l||L===l)continue;if(I=T.node,F=I.type||T.wrap,V=this.__keys[F],!V)if(this.__fallback)V=this.__fallback(I);else throw new Error("Unknown node type "+F+".");for(B=V.length;(B-=1)>=0;)if(_=V[B],R=I[_],!!R){if(Array.isArray(R)){for(Q=R.length;(Q-=1)>=0;)if(R[Q]&&!g(P,R[Q])){if(m(F,V[B]))T=new h(R[Q],[_,Q],"Property",null);else if(d(R[Q]))T=new h(R[Q],[_,Q],null,null);else continue;w.push(T)}}else if(d(R)){if(g(P,R))continue;w.push(new h(R,_,null,null))}}}}},f.prototype.replace=function(E,A){var w,P,T,I,F,L,_,B,Q,V,R,$,N;function W(Z){var le,ae,Se,J;if(Z.ref.remove()){for(ae=Z.ref.key,J=Z.ref.parent,le=w.length;le--;)if(Se=w[le],Se.ref&&Se.ref.parent===J){if(Se.ref.key=0;)if(N=Q[_],V=T[N],!!V)if(Array.isArray(V)){for(B=V.length;(B-=1)>=0;)if(V[B]){if(m(I,Q[_]))L=new h(V[B],[N,B],"Property",new p(V,B));else if(d(V[B]))L=new h(V[B],[N,B],null,new p(V,B));else continue;w.push(L)}}else d(V)&&w.push(new h(V,N,null,new p(T,N)))}}return $.root};function b(k,E){var A=new f;return A.traverse(k,E)}function O(k,E){var A=new f;return A.replace(k,E)}function S(k,E){var A;return A=c(E,function(P){return P.range[0]>k.range[0]}),k.extendedRange=[k.range[0],k.range[1]],A!==E.length&&(k.extendedRange[1]=E[A].range[0]),A-=1,A>=0&&(k.extendedRange[0]=E[A].range[1]),k}function C(k,E,A){var w=[],P,T,I,F;if(!k.range)throw new Error("attachComments needs range information");if(!A.length){if(E.length){for(I=0,T=E.length;IL.range[0]));)_.extendedRange[1]===L.range[0]?(L.leadingComments||(L.leadingComments=[]),L.leadingComments.push(_),w.splice(F,1)):F+=1;if(F===w.length)return n.Break;if(w[F].extendedRange[0]>L.range[1])return n.Skip}}),F=0,b(k,{leave:function(L){for(var _;FL.range[1])return n.Skip}}),k}return t.Syntax=s,t.traverse=b,t.replace=O,t.attachComments=C,t.VisitorKeys=i,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(r)}(ad)),ad}var Lo={},i9="esrecurse",a9="ECMAScript AST recursive visitor",o9="https://github.com/estools/esrecurse",l9="esrecurse.js",u9="4.3.0",c9={node:">=4.0"},f9=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],p9={type:"git",url:"https://github.com/estools/esrecurse.git"},h9={estraverse:"^5.2.0"},d9={"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"},m9="BSD-2-Clause",g9={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},y9={presets:["es2015"]},x9={name:i9,description:a9,homepage:o9,main:l9,version:u9,engines:c9,maintainers:f9,repository:p9,dependencies:h9,devDependencies:d9,license:m9,scripts:g9,babel:y9},PA;function b9(){return PA||(PA=1,function(){var r=IB();function e(n){return n==null?!1:typeof n=="object"&&typeof n.type=="string"}function t(n,i){return(n===r.Syntax.ObjectExpression||n===r.Syntax.ObjectPattern)&&i==="properties"}function s(n,i){i=i||{},this.__visitor=n||this,this.__childVisitorKeys=i.childVisitorKeys?Object.assign({},r.VisitorKeys,i.childVisitorKeys):r.VisitorKeys,i.fallback==="iteration"?this.__fallback=Object.keys:typeof i.fallback=="function"&&(this.__fallback=i.fallback)}s.prototype.visitChildren=function(n){var i,a,l,o,u,c,p;if(n!=null){if(i=n.type||r.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(n);else throw new Error("Unknown node type "+i+".");for(l=0,o=a.length;l0&&ce.every(b)}__staticCloseRef(j){this.__resolve(j)||this.__delegateToUpperScope(j)}__dynamicCloseRef(j){let de=this;do de.through.push(j),de=de.upper;while(de)}__globalCloseRef(j){this.__shouldStaticallyCloseForGlobal(j)?this.__staticCloseRef(j):this.__dynamicCloseRef(j)}__close(j){let de;this.__shouldStaticallyClose(j)?de=this.__staticCloseRef:this.type!=="global"?de=this.__dynamicCloseRef:de=this.__globalCloseRef;for(let ee=0,ce=this.__left.length;eece.name.range[0]>=ee))}}class I extends O{constructor(j,de,ee){super(j,"for",de,ee,!1)}}class F extends O{constructor(j,de,ee){super(j,"class",de,ee,!1)}}class L extends O{constructor(j,de,ee){super(j,"class-field-initializer",de,ee,!0)}}class _ extends O{constructor(j,de,ee){super(j,"class-static-block",de,ee,!0)}}class B{constructor(j){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=j,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}isGlobalReturn(){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(j){return this.__nodeToScope.get(j)}getDeclaredVariables(j){return this.__declaredVariables.get(j)||[]}acquire(j,de){function ee(ve){return!(ve.type==="function"&&ve.functionExpressionScope)}let ce=this.__get(j);if(!ce||ce.length===0)return null;if(ce.length===1)return ce[0];if(de)for(let ve=ce.length-1;ve>=0;--ve){let Me=ce[ve];if(ee(Me))return Me}else for(let ve=0,Me=ce.length;ve=6}}let{Syntax:Q}=i.default;function V(me){return me[me.length-1]||null}class R extends a.default.Visitor{static isPattern(j){let de=j.type;return de===Q.Identifier||de===Q.ObjectPattern||de===Q.ArrayPattern||de===Q.SpreadElement||de===Q.RestElement||de===Q.AssignmentPattern}constructor(j,de,ee){super(null,j),this.rootPattern=de,this.callback=ee,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(j){let de=V(this.restElements);this.callback(j,{topLevel:j===this.rootPattern,rest:de!=null&&de.argument===j,assignments:this.assignments})}Property(j){j.computed&&this.rightHandNodes.push(j.key),this.visit(j.value)}ArrayPattern(j){for(let de=0,ee=j.elements.length;de{this.rightHandNodes.push(de)}),this.visit(j.callee)}}let{Syntax:$}=i.default;function N(me,j,de,ee){let ce=new R(me,j,ee);ce.visit(j),de!=null&&ce.rightHandNodes.forEach(de.visit,de)}class W extends a.default.Visitor{constructor(j,de){super(null,de.options),this.declaration=j,this.referencer=de}visitImport(j,de){this.referencer.visitPattern(j,ee=>{this.referencer.currentScope().__define(ee,new h(p.ImportBinding,ee,de,this.declaration,null,null))})}ImportNamespaceSpecifier(j){let de=j.local||j.id;de&&this.visitImport(de,j)}ImportDefaultSpecifier(j){let de=j.local||j.id;this.visitImport(de,j)}ImportSpecifier(j){let de=j.local||j.id;j.name?this.visitImport(j.name,j):this.visitImport(de,j)}}class Z extends a.default.Visitor{constructor(j,de){super(null,j),this.options=j,this.scopeManager=de,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(j){for(;this.currentScope()&&j===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(j){let de=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=j,de}popInnerMethodDefinition(j){this.isInnerMethodDefinition=j}referencingDefaultValue(j,de,ee,ce){let ve=this.currentScope();de.forEach(Me=>{ve.__referencing(j,c.WRITE,Me.right,ee,j!==Me.left,ce)})}visitPattern(j,de,ee){let ce=de,ve=ee;typeof de=="function"&&(ve=de,ce={processRightHandNodes:!1}),N(this.options,j,ce.processRightHandNodes?this:null,ve)}visitFunction(j){let de,ee;j.type===$.FunctionDeclaration&&this.currentScope().__define(j.id,new h(p.FunctionName,j.id,j,null,null,null)),j.type===$.FunctionExpression&&j.id&&this.scopeManager.__nestFunctionExpressionNameScope(j),this.scopeManager.__nestFunctionScope(j,this.isInnerMethodDefinition);let ce=this;function ve(Me,Ue){ce.currentScope().__define(Me,new f(Me,j,de,Ue.rest)),ce.referencingDefaultValue(Me,Ue.assignments,null,!0)}for(de=0,ee=j.params.length;de{this.currentScope().__define(Me,new f(Me,j,j.params.length,!0))}),j.body&&(j.body.type===$.BlockStatement?this.visitChildren(j.body):this.visit(j.body)),this.close(j)}visitClass(j){j.type===$.ClassDeclaration&&this.currentScope().__define(j.id,new h(p.ClassName,j.id,j,null,null,null)),this.scopeManager.__nestClassScope(j),j.id&&this.currentScope().__define(j.id,new h(p.ClassName,j.id,j)),this.visit(j.superClass),this.visit(j.body),this.close(j)}visitProperty(j){let de;j.computed&&this.visit(j.key);let ee=j.type===$.MethodDefinition;ee&&(de=this.pushInnerMethodDefinition(!0)),this.visit(j.value),ee&&this.popInnerMethodDefinition(de)}visitForIn(j){j.left.type===$.VariableDeclaration&&j.left.kind!=="var"&&this.scopeManager.__nestForScope(j),j.left.type===$.VariableDeclaration?(this.visit(j.left),this.visitPattern(j.left.declarations[0].id,de=>{this.currentScope().__referencing(de,c.WRITE,j.right,null,!0,!0)})):this.visitPattern(j.left,{processRightHandNodes:!0},(de,ee)=>{let ce=null;this.currentScope().isStrict||(ce={pattern:de,node:j}),this.referencingDefaultValue(de,ee.assignments,ce,!1),this.currentScope().__referencing(de,c.WRITE,j.right,ce,!0,!1)}),this.visit(j.right),this.visit(j.body),this.close(j)}visitVariableDeclaration(j,de,ee,ce){let ve=ee.declarations[ce],Me=ve.init;this.visitPattern(ve.id,{processRightHandNodes:!0},(Ue,st)=>{j.__define(Ue,new h(de,Ue,ve,ee,ce,ee.kind)),this.referencingDefaultValue(Ue,st.assignments,null,!0),Me&&this.currentScope().__referencing(Ue,c.WRITE,Me,null,!st.topLevel,!0)})}AssignmentExpression(j){R.isPattern(j.left)?j.operator==="="?this.visitPattern(j.left,{processRightHandNodes:!0},(de,ee)=>{let ce=null;this.currentScope().isStrict||(ce={pattern:de,node:j}),this.referencingDefaultValue(de,ee.assignments,ce,!1),this.currentScope().__referencing(de,c.WRITE,j.right,ce,!ee.topLevel,!1)}):this.currentScope().__referencing(j.left,c.RW,j.right):this.visit(j.left),this.visit(j.right)}CatchClause(j){this.scopeManager.__nestCatchScope(j),this.visitPattern(j.param,{processRightHandNodes:!0},(de,ee)=>{this.currentScope().__define(de,new h(p.CatchClause,j.param,j,null,null,null)),this.referencingDefaultValue(de,ee.assignments,null,!0)}),this.visit(j.body),this.close(j)}Program(j){this.scopeManager.__nestGlobalScope(j),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(j,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(j),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(j),this.close(j)}Identifier(j){this.currentScope().__referencing(j)}PrivateIdentifier(){}UpdateExpression(j){R.isPattern(j.argument)?this.currentScope().__referencing(j.argument,c.RW,null):this.visitChildren(j)}MemberExpression(j){this.visit(j.object),j.computed&&this.visit(j.property)}Property(j){this.visitProperty(j)}PropertyDefinition(j){let{computed:de,key:ee,value:ce}=j;de&&this.visit(ee),ce&&(this.scopeManager.__nestClassFieldInitializerScope(ce),this.visit(ce),this.close(ce))}StaticBlock(j){this.scopeManager.__nestClassStaticBlockScope(j),this.visitChildren(j),this.close(j)}MethodDefinition(j){this.visitProperty(j)}BreakStatement(){}ContinueStatement(){}LabeledStatement(j){this.visit(j.body)}ForStatement(j){j.init&&j.init.type===$.VariableDeclaration&&j.init.kind!=="var"&&this.scopeManager.__nestForScope(j),this.visitChildren(j),this.close(j)}ClassExpression(j){this.visitClass(j)}ClassDeclaration(j){this.visitClass(j)}CallExpression(j){!this.scopeManager.__ignoreEval()&&j.callee.type===$.Identifier&&j.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren(j)}BlockStatement(j){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(j),this.visitChildren(j),this.close(j)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(j){this.visit(j.object),this.scopeManager.__nestWithScope(j),this.visit(j.body),this.close(j)}VariableDeclaration(j){let de=j.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let ee=0,ce=j.declarations.length;eev)return!1;if(U+=D[G+1],U>=v)return!0}return!1}function d(v,D){return v<65?v===36:v<91?!0:v<97?v===95:v<123?!0:v<=65535?v>=170&&p.test(String.fromCharCode(v)):D===!1?!1:f(v,n)}function m(v,D){return v<48?v===36:v<58?!0:v<65?!1:v<91?!0:v<97?v===95:v<123?!0:v<=65535?v>=170&&h.test(String.fromCharCode(v)):D===!1?!1:f(v,n)||f(v,s)}var g=function(D,U){U===void 0&&(U={}),this.label=D,this.keyword=U.keyword,this.beforeExpr=!!U.beforeExpr,this.startsExpr=!!U.startsExpr,this.isLoop=!!U.isLoop,this.isAssign=!!U.isAssign,this.prefix=!!U.prefix,this.postfix=!!U.postfix,this.binop=U.binop||null,this.updateContext=null};function b(v,D){return new g(v,{beforeExpr:!0,binop:D})}var O={beforeExpr:!0},S={startsExpr:!0},C={};function k(v,D){return D===void 0&&(D={}),D.keyword=v,C[v]=new g(v,D)}var E={num:new g("num",S),regexp:new g("regexp",S),string:new g("string",S),name:new g("name",S),privateId:new g("privateId",S),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",O),semi:new g(";",O),colon:new g(":",O),dot:new g("."),question:new g("?",O),questionDot:new g("?."),arrow:new g("=>",O),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",O),backQuote:new g("`",S),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:b("||",1),logicalAND:b("&&",2),bitwiseOR:b("|",3),bitwiseXOR:b("^",4),bitwiseAND:b("&",5),equality:b("==/!=/===/!==",6),relational:b("/<=/>=",7),bitShift:b("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:b("%",10),star:b("*",10),slash:b("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:b("??",1),_break:k("break"),_case:k("case",O),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",O),_do:k("do",{isLoop:!0,beforeExpr:!0}),_else:k("else",O),_finally:k("finally"),_for:k("for",{isLoop:!0}),_function:k("function",S),_if:k("if"),_return:k("return",O),_switch:k("switch"),_throw:k("throw",O),_try:k("try"),_var:k("var"),_const:k("const"),_while:k("while",{isLoop:!0}),_with:k("with"),_new:k("new",{beforeExpr:!0,startsExpr:!0}),_this:k("this",S),_super:k("super",S),_class:k("class",S),_extends:k("extends",O),_export:k("export"),_import:k("import",S),_null:k("null",S),_true:k("true",S),_false:k("false",S),_in:k("in",{beforeExpr:!0,binop:7}),_instanceof:k("instanceof",{beforeExpr:!0,binop:7}),_typeof:k("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:k("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:k("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},A=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(A.source,"g");function P(v){return v===10||v===13||v===8232||v===8233}function T(v,D,U){U===void 0&&(U=v.length);for(var G=D;G>10)+55296,(v&1023)+56320))}var W=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Z=function(D,U){this.line=D,this.column=U};Z.prototype.offset=function(D){return new Z(this.line,this.column+D)};var le=function(D,U,G){this.start=U,this.end=G,D.sourceFile!==null&&(this.source=D.sourceFile)};function ae(v,D){for(var U=1,G=0;;){var xe=T(v,G,D);if(xe<0)return new Z(U,D-G);++U,G=xe}}var Se={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},J=!1;function me(v){var D={};for(var U in Se)D[U]=v&&Q(v,U)?v[U]:Se[U];if(D.ecmaVersion==="latest"?D.ecmaVersion=1e8:D.ecmaVersion==null?(!J&&typeof console=="object"&&console.warn&&(J=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. -Defaulting to 2020, but this will stop working in the future.`)),D.ecmaVersion=11):D.ecmaVersion>=2015&&(D.ecmaVersion-=2009),D.allowReserved==null&&(D.allowReserved=D.ecmaVersion<5),(!v||v.allowHashBang==null)&&(D.allowHashBang=D.ecmaVersion>=14),V(D.onToken)){var G=D.onToken;D.onToken=function(xe){return G.push(xe)}}return V(D.onComment)&&(D.onComment=j(D,D.onComment)),D}function j(v,D){return function(U,G,xe,Be,$e,Je){var tt={type:U?"Block":"Line",value:G,start:xe,end:Be};v.locations&&(tt.loc=new le(this,$e,Je)),v.ranges&&(tt.range=[xe,Be]),D.push(tt)}}var de=1,ee=2,ce=4,ve=8,Me=16,Ue=32,st=64,mt=128,dt=256,wt=de|ee|dt;function Y(v,D){return ee|(v?ce:0)|(D?ve:0)}var Ae=0,Ze=1,rt=2,ot=3,at=4,kt=5,Ot=function(D,U,G){this.options=D=me(D),this.sourceFile=D.sourceFile,this.keywords=$(u[D.ecmaVersion>=6?6:D.sourceType==="module"?"5module":5]);var xe="";D.allowReserved!==!0&&(xe=l[D.ecmaVersion>=6?6:D.ecmaVersion===5?5:3],D.sourceType==="module"&&(xe+=" await")),this.reservedWords=$(xe);var Be=(xe?xe+" ":"")+l.strict;this.reservedWordsStrict=$(Be),this.reservedWordsStrictBind=$(Be+" "+l.strictBind),this.input=String(U),this.containsEsc=!1,G?(this.pos=G,this.lineStart=this.input.lastIndexOf(` -`,G-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(A).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=E.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=D.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&&D.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(de),this.regexpState=null,this.privateNameStack=[]},It={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}};Ot.prototype.parse=function(){var D=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(D)},It.inFunction.get=function(){return(this.currentVarScope().flags&ee)>0},It.inGenerator.get=function(){return(this.currentVarScope().flags&ve)>0&&!this.currentVarScope().inClassFieldInit},It.inAsync.get=function(){return(this.currentVarScope().flags&ce)>0&&!this.currentVarScope().inClassFieldInit},It.canAwait.get=function(){for(var v=this.scopeStack.length-1;v>=0;v--){var D=this.scopeStack[v];if(D.inClassFieldInit||D.flags&dt)return!1;if(D.flags&ee)return(D.flags&ce)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},It.allowSuper.get=function(){var v=this.currentThisScope(),D=v.flags,U=v.inClassFieldInit;return(D&st)>0||U||this.options.allowSuperOutsideMethod},It.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0},It.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},It.allowNewDotTarget.get=function(){var v=this.currentThisScope(),D=v.flags,U=v.inClassFieldInit;return(D&(ee|dt))>0||U},It.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&dt)>0},Ot.extend=function(){for(var D=[],U=arguments.length;U--;)D[U]=arguments[U];for(var G=this,xe=0;xe=,?^&]/.test(xe)||xe==="!"&&this.input.charAt(G+1)==="=")}v+=D[0].length,F.lastIndex=v,v+=F.exec(this.input)[0].length,this.input[v]===";"&&v++}},Ft.eat=function(v){return this.type===v?(this.next(),!0):!1},Ft.isContextual=function(v){return this.type===E.name&&this.value===v&&!this.containsEsc},Ft.eatContextual=function(v){return this.isContextual(v)?(this.next(),!0):!1},Ft.expectContextual=function(v){this.eatContextual(v)||this.unexpected()},Ft.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||A.test(this.input.slice(this.lastTokEnd,this.start))},Ft.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Ft.semicolon=function(){!this.eat(E.semi)&&!this.insertSemicolon()&&this.unexpected()},Ft.afterTrailingComma=function(v,D){if(this.type===v)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),D||this.next(),!0},Ft.expect=function(v){this.eat(v)||this.unexpected()},Ft.unexpected=function(v){this.raise(v??this.start,"Unexpected token")};var St=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ft.checkPatternErrors=function(v,D){if(v){v.trailingComma>-1&&this.raiseRecoverable(v.trailingComma,"Comma is not permitted after the rest element");var U=D?v.parenthesizedAssign:v.parenthesizedBind;U>-1&&this.raiseRecoverable(U,D?"Assigning to rvalue":"Parenthesized pattern")}},Ft.checkExpressionErrors=function(v,D){if(!v)return!1;var U=v.shorthandAssign,G=v.doubleProto;if(!D)return U>=0||G>=0;U>=0&&this.raise(U,"Shorthand property assignments are valid only in destructuring patterns"),G>=0&&this.raiseRecoverable(G,"Redefinition of __proto__ property")},Ft.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&G<56320)return!0;if(d(G,!0)){for(var xe=U+1;m(G=this.input.charCodeAt(xe),!0);)++xe;if(G===92||G>55295&&G<56320)return!0;var Be=this.input.slice(U,xe);if(!c.test(Be))return!0}return!1},Ke.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;F.lastIndex=this.pos;var v=F.exec(this.input),D=this.pos+v[0].length,U;return!A.test(this.input.slice(this.pos,D))&&this.input.slice(D,D+8)==="function"&&(D+8===this.input.length||!(m(U=this.input.charCodeAt(D+8))||U>55295&&U<56320))},Ke.parseStatement=function(v,D,U){var G=this.type,xe=this.startNode(),Be;switch(this.isLet(v)&&(G=E._var,Be="let"),G){case E._break:case E._continue:return this.parseBreakContinueStatement(xe,G.keyword);case E._debugger:return this.parseDebuggerStatement(xe);case E._do:return this.parseDoStatement(xe);case E._for:return this.parseForStatement(xe);case E._function:return v&&(this.strict||v!=="if"&&v!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(xe,!1,!v);case E._class:return v&&this.unexpected(),this.parseClass(xe,!0);case E._if:return this.parseIfStatement(xe);case E._return:return this.parseReturnStatement(xe);case E._switch:return this.parseSwitchStatement(xe);case E._throw:return this.parseThrowStatement(xe);case E._try:return this.parseTryStatement(xe);case E._const:case E._var:return Be=Be||this.value,v&&Be!=="var"&&this.unexpected(),this.parseVarStatement(xe,Be);case E._while:return this.parseWhileStatement(xe);case E._with:return this.parseWithStatement(xe);case E.braceL:return this.parseBlock(!0,xe);case E.semi:return this.parseEmptyStatement(xe);case E._export:case E._import:if(this.options.ecmaVersion>10&&G===E._import){F.lastIndex=this.pos;var $e=F.exec(this.input),Je=this.pos+$e[0].length,tt=this.input.charCodeAt(Je);if(tt===40||tt===46)return this.parseExpressionStatement(xe,this.parseExpression())}return this.options.allowImportExportEverywhere||(D||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===E._import?this.parseImport(xe):this.parseExport(xe,U);default:if(this.isAsyncFunction())return v&&this.unexpected(),this.next(),this.parseFunctionStatement(xe,!0,!v);var Ct=this.value,Tt=this.parseExpression();return G===E.name&&Tt.type==="Identifier"&&this.eat(E.colon)?this.parseLabeledStatement(xe,Ct,Tt,v):this.parseExpressionStatement(xe,Tt)}},Ke.parseBreakContinueStatement=function(v,D){var U=D==="break";this.next(),this.eat(E.semi)||this.insertSemicolon()?v.label=null:this.type!==E.name?this.unexpected():(v.label=this.parseIdent(),this.semicolon());for(var G=0;G=6?this.eat(E.semi):this.semicolon(),this.finishNode(v,"DoWhileStatement")},Ke.parseForStatement=function(v){this.next();var D=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(er),this.enterScope(0),this.expect(E.parenL),this.type===E.semi)return D>-1&&this.unexpected(D),this.parseFor(v,null);var U=this.isLet();if(this.type===E._var||this.type===E._const||U){var G=this.startNode(),xe=U?"let":this.value;return this.next(),this.parseVar(G,!0,xe),this.finishNode(G,"VariableDeclaration"),(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&G.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===E._in?D>-1&&this.unexpected(D):v.await=D>-1),this.parseForIn(v,G)):(D>-1&&this.unexpected(D),this.parseFor(v,G))}var Be=this.isContextual("let"),$e=!1,Je=new St,tt=this.parseExpression(D>-1?"await":!0,Je);return this.type===E._in||($e=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===E._in?D>-1&&this.unexpected(D):v.await=D>-1),Be&&$e&&this.raise(tt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(tt,!1,Je),this.checkLValPattern(tt),this.parseForIn(v,tt)):(this.checkExpressionErrors(Je,!0),D>-1&&this.unexpected(D),this.parseFor(v,tt))},Ke.parseFunctionStatement=function(v,D,U){return this.next(),this.parseFunction(v,ie|(U?0:re),!1,D)},Ke.parseIfStatement=function(v){return this.next(),v.test=this.parseParenExpression(),v.consequent=this.parseStatement("if"),v.alternate=this.eat(E._else)?this.parseStatement("if"):null,this.finishNode(v,"IfStatement")},Ke.parseReturnStatement=function(v){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?v.argument=null:(v.argument=this.parseExpression(),this.semicolon()),this.finishNode(v,"ReturnStatement")},Ke.parseSwitchStatement=function(v){this.next(),v.discriminant=this.parseParenExpression(),v.cases=[],this.expect(E.braceL),this.labels.push(Ie),this.enterScope(0);for(var D,U=!1;this.type!==E.braceR;)if(this.type===E._case||this.type===E._default){var G=this.type===E._case;D&&this.finishNode(D,"SwitchCase"),v.cases.push(D=this.startNode()),D.consequent=[],this.next(),G?D.test=this.parseExpression():(U&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),U=!0,D.test=null),this.expect(E.colon)}else D||this.unexpected(),D.consequent.push(this.parseStatement(null));return this.exitScope(),D&&this.finishNode(D,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(v,"SwitchStatement")},Ke.parseThrowStatement=function(v){return this.next(),A.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),v.argument=this.parseExpression(),this.semicolon(),this.finishNode(v,"ThrowStatement")};var H=[];Ke.parseCatchClauseParam=function(){var v=this.parseBindingAtom(),D=v.type==="Identifier";return this.enterScope(D?Ue:0),this.checkLValPattern(v,D?at:rt),this.expect(E.parenR),v},Ke.parseTryStatement=function(v){if(this.next(),v.block=this.parseBlock(),v.handler=null,this.type===E._catch){var D=this.startNode();this.next(),this.eat(E.parenL)?D.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),D.param=null,this.enterScope(0)),D.body=this.parseBlock(!1),this.exitScope(),v.handler=this.finishNode(D,"CatchClause")}return v.finalizer=this.eat(E._finally)?this.parseBlock():null,!v.handler&&!v.finalizer&&this.raise(v.start,"Missing catch or finally clause"),this.finishNode(v,"TryStatement")},Ke.parseVarStatement=function(v,D,U){return this.next(),this.parseVar(v,!1,D,U),this.semicolon(),this.finishNode(v,"VariableDeclaration")},Ke.parseWhileStatement=function(v){return this.next(),v.test=this.parseParenExpression(),this.labels.push(er),v.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(v,"WhileStatement")},Ke.parseWithStatement=function(v){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),v.object=this.parseParenExpression(),v.body=this.parseStatement("with"),this.finishNode(v,"WithStatement")},Ke.parseEmptyStatement=function(v){return this.next(),this.finishNode(v,"EmptyStatement")},Ke.parseLabeledStatement=function(v,D,U,G){for(var xe=0,Be=this.labels;xe=0;tt--){var Ct=this.labels[tt];if(Ct.statementStart===v.start)Ct.statementStart=this.start,Ct.kind=Je;else break}return this.labels.push({name:D,kind:Je,statementStart:this.start}),v.body=this.parseStatement(G?G.indexOf("label")===-1?G+"label":G:"label"),this.labels.pop(),v.label=U,this.finishNode(v,"LabeledStatement")},Ke.parseExpressionStatement=function(v,D){return v.expression=D,this.semicolon(),this.finishNode(v,"ExpressionStatement")},Ke.parseBlock=function(v,D,U){for(v===void 0&&(v=!0),D===void 0&&(D=this.startNode()),D.body=[],this.expect(E.braceL),v&&this.enterScope(0);this.type!==E.braceR;){var G=this.parseStatement(null);D.body.push(G)}return U&&(this.strict=!1),this.next(),v&&this.exitScope(),this.finishNode(D,"BlockStatement")},Ke.parseFor=function(v,D){return v.init=D,this.expect(E.semi),v.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),v.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),v.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(v,"ForStatement")},Ke.parseForIn=function(v,D){var U=this.type===E._in;return this.next(),D.type==="VariableDeclaration"&&D.declarations[0].init!=null&&(!U||this.options.ecmaVersion<8||this.strict||D.kind!=="var"||D.declarations[0].id.type!=="Identifier")&&this.raise(D.start,(U?"for-in":"for-of")+" loop variable declaration may not have an initializer"),v.left=D,v.right=U?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),v.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(v,U?"ForInStatement":"ForOfStatement")},Ke.parseVar=function(v,D,U,G){for(v.declarations=[],v.kind=U;;){var xe=this.startNode();if(this.parseVarId(xe,U),this.eat(E.eq)?xe.init=this.parseMaybeAssign(D):!G&&U==="const"&&!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!G&&xe.id.type!=="Identifier"&&!(D&&(this.type===E._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):xe.init=null,v.declarations.push(this.finishNode(xe,"VariableDeclarator")),!this.eat(E.comma))break}return v},Ke.parseVarId=function(v,D){v.id=this.parseBindingAtom(),this.checkLValPattern(v.id,D==="var"?Ze:rt,!1)};var ie=1,re=2,ue=4;Ke.parseFunction=function(v,D,U,G,xe){this.initFunction(v),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!G)&&(this.type===E.star&&D&re&&this.unexpected(),v.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(v.async=!!G),D&ie&&(v.id=D&ue&&this.type!==E.name?null:this.parseIdent(),v.id&&!(D&re)&&this.checkLValSimple(v.id,this.strict||v.generator||v.async?this.treatFunctionsAsVar?Ze:rt:ot));var Be=this.yieldPos,$e=this.awaitPos,Je=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Y(v.async,v.generator)),D&ie||(v.id=this.type===E.name?this.parseIdent():null),this.parseFunctionParams(v),this.parseFunctionBody(v,U,!1,xe),this.yieldPos=Be,this.awaitPos=$e,this.awaitIdentPos=Je,this.finishNode(v,D&ie?"FunctionDeclaration":"FunctionExpression")},Ke.parseFunctionParams=function(v){this.expect(E.parenL),v.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ke.parseClass=function(v,D){this.next();var U=this.strict;this.strict=!0,this.parseClassId(v,D),this.parseClassSuper(v);var G=this.enterClassBody(),xe=this.startNode(),Be=!1;for(xe.body=[],this.expect(E.braceL);this.type!==E.braceR;){var $e=this.parseClassElement(v.superClass!==null);$e&&(xe.body.push($e),$e.type==="MethodDefinition"&&$e.kind==="constructor"?(Be&&this.raiseRecoverable($e.start,"Duplicate constructor in the same class"),Be=!0):$e.key&&$e.key.type==="PrivateIdentifier"&&pe(G,$e)&&this.raiseRecoverable($e.key.start,"Identifier '#"+$e.key.name+"' has already been declared"))}return this.strict=U,this.next(),v.body=this.finishNode(xe,"ClassBody"),this.exitClassBody(),this.finishNode(v,D?"ClassDeclaration":"ClassExpression")},Ke.parseClassElement=function(v){if(this.eat(E.semi))return null;var D=this.options.ecmaVersion,U=this.startNode(),G="",xe=!1,Be=!1,$e="method",Je=!1;if(this.eatContextual("static")){if(D>=13&&this.eat(E.braceL))return this.parseClassStaticBlock(U),U;this.isClassElementNameStart()||this.type===E.star?Je=!0:G="static"}if(U.static=Je,!G&&D>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===E.star)&&!this.canInsertSemicolon()?Be=!0:G="async"),!G&&(D>=9||!Be)&&this.eat(E.star)&&(xe=!0),!G&&!Be&&!xe){var tt=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?$e=tt:G=tt)}if(G?(U.computed=!1,U.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),U.key.name=G,this.finishNode(U.key,"Identifier")):this.parseClassElementName(U),D<13||this.type===E.parenL||$e!=="method"||xe||Be){var Ct=!U.static&&X(U,"constructor"),Tt=Ct&&v;Ct&&$e!=="method"&&this.raise(U.key.start,"Constructor can't have get/set modifier"),U.kind=Ct?"constructor":$e,this.parseClassMethod(U,xe,Be,Tt)}else this.parseClassField(U);return U},Ke.isClassElementNameStart=function(){return this.type===E.name||this.type===E.privateId||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword},Ke.parseClassElementName=function(v){this.type===E.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),v.computed=!1,v.key=this.parsePrivateIdent()):this.parsePropertyName(v)},Ke.parseClassMethod=function(v,D,U,G){var xe=v.key;v.kind==="constructor"?(D&&this.raise(xe.start,"Constructor can't be a generator"),U&&this.raise(xe.start,"Constructor can't be an async method")):v.static&&X(v,"prototype")&&this.raise(xe.start,"Classes may not have a static property named prototype");var Be=v.value=this.parseMethod(D,U,G);return v.kind==="get"&&Be.params.length!==0&&this.raiseRecoverable(Be.start,"getter should have no params"),v.kind==="set"&&Be.params.length!==1&&this.raiseRecoverable(Be.start,"setter should have exactly one param"),v.kind==="set"&&Be.params[0].type==="RestElement"&&this.raiseRecoverable(Be.params[0].start,"Setter cannot use rest params"),this.finishNode(v,"MethodDefinition")},Ke.parseClassField=function(v){if(X(v,"constructor")?this.raise(v.key.start,"Classes can't have a field named 'constructor'"):v.static&&X(v,"prototype")&&this.raise(v.key.start,"Classes can't have a static field named 'prototype'"),this.eat(E.eq)){var D=this.currentThisScope(),U=D.inClassFieldInit;D.inClassFieldInit=!0,v.value=this.parseMaybeAssign(),D.inClassFieldInit=U}else v.value=null;return this.semicolon(),this.finishNode(v,"PropertyDefinition")},Ke.parseClassStaticBlock=function(v){v.body=[];var D=this.labels;for(this.labels=[],this.enterScope(dt|st);this.type!==E.braceR;){var U=this.parseStatement(null);v.body.push(U)}return this.next(),this.exitScope(),this.labels=D,this.finishNode(v,"StaticBlock")},Ke.parseClassId=function(v,D){this.type===E.name?(v.id=this.parseIdent(),D&&this.checkLValSimple(v.id,rt,!1)):(D===!0&&this.unexpected(),v.id=null)},Ke.parseClassSuper=function(v){v.superClass=this.eat(E._extends)?this.parseExprSubscripts(null,!1):null},Ke.enterClassBody=function(){var v={declared:Object.create(null),used:[]};return this.privateNameStack.push(v),v.declared},Ke.exitClassBody=function(){var v=this.privateNameStack.pop(),D=v.declared,U=v.used;if(this.options.checkPrivateFields)for(var G=this.privateNameStack.length,xe=G===0?null:this.privateNameStack[G-1],Be=0;Be=11&&(this.eatContextual("as")?(v.exported=this.parseModuleExportName(),this.checkExport(D,v.exported,this.lastTokStart)):v.exported=null),this.expectContextual("from"),this.type!==E.string&&this.unexpected(),v.source=this.parseExprAtom(),this.semicolon(),this.finishNode(v,"ExportAllDeclaration")},Ke.parseExport=function(v,D){if(this.next(),this.eat(E.star))return this.parseExportAllDeclaration(v,D);if(this.eat(E._default))return this.checkExport(D,"default",this.lastTokStart),v.declaration=this.parseExportDefaultDeclaration(),this.finishNode(v,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())v.declaration=this.parseExportDeclaration(v),v.declaration.type==="VariableDeclaration"?this.checkVariableExport(D,v.declaration.declarations):this.checkExport(D,v.declaration.id,v.declaration.id.start),v.specifiers=[],v.source=null;else{if(v.declaration=null,v.specifiers=this.parseExportSpecifiers(D),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),v.source=this.parseExprAtom();else{for(var U=0,G=v.specifiers;U=13&&this.type===E.string){var v=this.parseLiteral(this.value);return W.test(v.value)&&this.raise(v.start,"An export name cannot include a lone surrogate."),v}return this.parseIdent(!0)},Ke.adaptDirectivePrologue=function(v){for(var D=0;D=5&&v.type==="ExpressionStatement"&&v.expression.type==="Literal"&&typeof v.expression.value=="string"&&(this.input[v.start]==='"'||this.input[v.start]==="'")};var te=Ot.prototype;te.toAssignable=function(v,D,U){if(this.options.ecmaVersion>=6&&v)switch(v.type){case"Identifier":this.inAsync&&v.name==="await"&&this.raise(v.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":v.type="ObjectPattern",U&&this.checkPatternErrors(U,!0);for(var G=0,xe=v.properties;G=8&&!Je&&tt.name==="async"&&!this.canInsertSemicolon()&&this.eat(E._function))return this.overrideContext(ge.f_expr),this.parseFunction(this.startNodeAt(Be,$e),0,!1,!0,D);if(xe&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(Be,$e),[tt],!1,D);if(this.options.ecmaVersion>=8&&tt.name==="async"&&this.type===E.name&&!Je&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return tt=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(E.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Be,$e),[tt],!0,D)}return tt;case E.regexp:var Ct=this.value;return G=this.parseLiteral(Ct.value),G.regex={pattern:Ct.pattern,flags:Ct.flags},G;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return G=this.startNode(),G.value=this.type===E._null?null:this.type===E._true,G.raw=this.type.keyword,this.next(),this.finishNode(G,"Literal");case E.parenL:var Tt=this.start,lr=this.parseParenAndDistinguishExpression(xe,D);return v&&(v.parenthesizedAssign<0&&!this.isSimpleAssignTarget(lr)&&(v.parenthesizedAssign=Tt),v.parenthesizedBind<0&&(v.parenthesizedBind=Tt)),lr;case E.bracketL:return G=this.startNode(),this.next(),G.elements=this.parseExprList(E.bracketR,!0,!0,v),this.finishNode(G,"ArrayExpression");case E.braceL:return this.overrideContext(ge.b_expr),this.parseObj(!1,v);case E._function:return G=this.startNode(),this.next(),this.parseFunction(G,0);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();case E._import:return this.options.ecmaVersion>=11?this.parseExprImport(U):this.unexpected();default:return this.parseExprAtomDefault()}},M.parseExprAtomDefault=function(){this.unexpected()},M.parseExprImport=function(v){var D=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===E.parenL&&!v)return this.parseDynamicImport(D);if(this.type===E.dot){var U=this.startNodeAt(D.start,D.loc&&D.loc.start);return U.name="import",D.meta=this.finishNode(U,"Identifier"),this.parseImportMeta(D)}else this.unexpected()},M.parseDynamicImport=function(v){if(this.next(),v.source=this.parseMaybeAssign(),!this.eat(E.parenR)){var D=this.start;this.eat(E.comma)&&this.eat(E.parenR)?this.raiseRecoverable(D,"Trailing comma is not allowed in import()"):this.unexpected(D)}return this.finishNode(v,"ImportExpression")},M.parseImportMeta=function(v){this.next();var D=this.containsEsc;return v.property=this.parseIdent(!0),v.property.name!=="meta"&&this.raiseRecoverable(v.property.start,"The only valid meta property for import is 'import.meta'"),D&&this.raiseRecoverable(v.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(v.start,"Cannot use 'import.meta' outside a module"),this.finishNode(v,"MetaProperty")},M.parseLiteral=function(v){var D=this.startNode();return D.value=v,D.raw=this.input.slice(this.start,this.end),D.raw.charCodeAt(D.raw.length-1)===110&&(D.bigint=D.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(D,"Literal")},M.parseParenExpression=function(){this.expect(E.parenL);var v=this.parseExpression();return this.expect(E.parenR),v},M.shouldParseArrow=function(v){return!this.canInsertSemicolon()},M.parseParenAndDistinguishExpression=function(v,D){var U=this.start,G=this.startLoc,xe,Be=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var $e=this.start,Je=this.startLoc,tt=[],Ct=!0,Tt=!1,lr=new St,Tn=this.yieldPos,Qs=this.awaitPos,es;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;)if(Ct?Ct=!1:this.expect(E.comma),Be&&this.afterTrailingComma(E.parenR,!0)){Tt=!0;break}else if(this.type===E.ellipsis){es=this.start,tt.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else tt.push(this.parseMaybeAssign(!1,lr,this.parseParenItem));var ki=this.lastTokEnd,ys=this.lastTokEndLoc;if(this.expect(E.parenR),v&&this.shouldParseArrow(tt)&&this.eat(E.arrow))return this.checkPatternErrors(lr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Tn,this.awaitPos=Qs,this.parseParenArrowList(U,G,tt,D);(!tt.length||Tt)&&this.unexpected(this.lastTokStart),es&&this.unexpected(es),this.checkExpressionErrors(lr,!0),this.yieldPos=Tn||this.yieldPos,this.awaitPos=Qs||this.awaitPos,tt.length>1?(xe=this.startNodeAt($e,Je),xe.expressions=tt,this.finishNodeAt(xe,"SequenceExpression",ki,ys)):xe=tt[0]}else xe=this.parseParenExpression();if(this.options.preserveParens){var ts=this.startNodeAt(U,G);return ts.expression=xe,this.finishNode(ts,"ParenthesizedExpression")}else return xe},M.parseParenItem=function(v){return v},M.parseParenArrowList=function(v,D,U,G){return this.parseArrowExpression(this.startNodeAt(v,D),U,!1,G)};var _e=[];M.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var v=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===E.dot){var D=this.startNodeAt(v.start,v.loc&&v.loc.start);D.name="new",v.meta=this.finishNode(D,"Identifier"),this.next();var U=this.containsEsc;return v.property=this.parseIdent(!0),v.property.name!=="target"&&this.raiseRecoverable(v.property.start,"The only valid meta property for new is 'new.target'"),U&&this.raiseRecoverable(v.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(v.start,"'new.target' can only be used in functions and class static block"),this.finishNode(v,"MetaProperty")}var G=this.start,xe=this.startLoc;return v.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),G,xe,!0,!1),this.eat(E.parenL)?v.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):v.arguments=_e,this.finishNode(v,"NewExpression")},M.parseTemplateElement=function(v){var D=v.isTagged,U=this.startNode();return this.type===E.invalidTemplate?(D||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),U.value={raw:this.value,cooked:null}):U.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` -`),cooked:this.value},this.next(),U.tail=this.type===E.backQuote,this.finishNode(U,"TemplateElement")},M.parseTemplate=function(v){v===void 0&&(v={});var D=v.isTagged;D===void 0&&(D=!1);var U=this.startNode();this.next(),U.expressions=[];var G=this.parseTemplateElement({isTagged:D});for(U.quasis=[G];!G.tail;)this.type===E.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(E.dollarBraceL),U.expressions.push(this.parseExpression()),this.expect(E.braceR),U.quasis.push(G=this.parseTemplateElement({isTagged:D}));return this.next(),this.finishNode(U,"TemplateLiteral")},M.isAsyncProp=function(v){return!v.computed&&v.key.type==="Identifier"&&v.key.name==="async"&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!A.test(this.input.slice(this.lastTokEnd,this.start))},M.parseObj=function(v,D){var U=this.startNode(),G=!0,xe={};for(U.properties=[],this.next();!this.eat(E.braceR);){if(G)G=!1;else if(this.expect(E.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(E.braceR))break;var Be=this.parseProperty(v,D);v||this.checkPropClash(Be,xe,D),U.properties.push(Be)}return this.finishNode(U,v?"ObjectPattern":"ObjectExpression")},M.parseProperty=function(v,D){var U=this.startNode(),G,xe,Be,$e;if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return v?(U.argument=this.parseIdent(!1),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(U,"RestElement")):(U.argument=this.parseMaybeAssign(!1,D),this.type===E.comma&&D&&D.trailingComma<0&&(D.trailingComma=this.start),this.finishNode(U,"SpreadElement"));this.options.ecmaVersion>=6&&(U.method=!1,U.shorthand=!1,(v||D)&&(Be=this.start,$e=this.startLoc),v||(G=this.eat(E.star)));var Je=this.containsEsc;return this.parsePropertyName(U),!v&&!Je&&this.options.ecmaVersion>=8&&!G&&this.isAsyncProp(U)?(xe=!0,G=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(U)):xe=!1,this.parsePropertyValue(U,v,G,xe,Be,$e,D,Je),this.finishNode(U,"Property")},M.parseGetterSetter=function(v){v.kind=v.key.name,this.parsePropertyName(v),v.value=this.parseMethod(!1);var D=v.kind==="get"?0:1;if(v.value.params.length!==D){var U=v.value.start;v.kind==="get"?this.raiseRecoverable(U,"getter should have no params"):this.raiseRecoverable(U,"setter should have exactly one param")}else v.kind==="set"&&v.value.params[0].type==="RestElement"&&this.raiseRecoverable(v.value.params[0].start,"Setter cannot use rest params")},M.parsePropertyValue=function(v,D,U,G,xe,Be,$e,Je){(U||G)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon)?(v.value=D?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,$e),v.kind="init"):this.options.ecmaVersion>=6&&this.type===E.parenL?(D&&this.unexpected(),v.kind="init",v.method=!0,v.value=this.parseMethod(U,G)):!D&&!Je&&this.options.ecmaVersion>=5&&!v.computed&&v.key.type==="Identifier"&&(v.key.name==="get"||v.key.name==="set")&&this.type!==E.comma&&this.type!==E.braceR&&this.type!==E.eq?((U||G)&&this.unexpected(),this.parseGetterSetter(v)):this.options.ecmaVersion>=6&&!v.computed&&v.key.type==="Identifier"?((U||G)&&this.unexpected(),this.checkUnreserved(v.key),v.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=xe),v.kind="init",D?v.value=this.parseMaybeDefault(xe,Be,this.copyNode(v.key)):this.type===E.eq&&$e?($e.shorthandAssign<0&&($e.shorthandAssign=this.start),v.value=this.parseMaybeDefault(xe,Be,this.copyNode(v.key))):v.value=this.copyNode(v.key),v.shorthand=!0):this.unexpected()},M.parsePropertyName=function(v){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return v.computed=!0,v.key=this.parseMaybeAssign(),this.expect(E.bracketR),v.key;v.computed=!1}return v.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},M.initFunction=function(v){v.id=null,this.options.ecmaVersion>=6&&(v.generator=v.expression=!1),this.options.ecmaVersion>=8&&(v.async=!1)},M.parseMethod=function(v,D,U){var G=this.startNode(),xe=this.yieldPos,Be=this.awaitPos,$e=this.awaitIdentPos;return this.initFunction(G),this.options.ecmaVersion>=6&&(G.generator=v),this.options.ecmaVersion>=8&&(G.async=!!D),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Y(D,G.generator)|st|(U?mt:0)),this.expect(E.parenL),G.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(G,!1,!0,!1),this.yieldPos=xe,this.awaitPos=Be,this.awaitIdentPos=$e,this.finishNode(G,"FunctionExpression")},M.parseArrowExpression=function(v,D,U,G){var xe=this.yieldPos,Be=this.awaitPos,$e=this.awaitIdentPos;return this.enterScope(Y(U,!1)|Me),this.initFunction(v),this.options.ecmaVersion>=8&&(v.async=!!U),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,v.params=this.toAssignableList(D,!0),this.parseFunctionBody(v,!0,!1,G),this.yieldPos=xe,this.awaitPos=Be,this.awaitIdentPos=$e,this.finishNode(v,"ArrowFunctionExpression")},M.parseFunctionBody=function(v,D,U,G){var xe=D&&this.type!==E.braceL,Be=this.strict,$e=!1;if(xe)v.body=this.parseMaybeAssign(G),v.expression=!0,this.checkParams(v,!1);else{var Je=this.options.ecmaVersion>=7&&!this.isSimpleParamList(v.params);(!Be||Je)&&($e=this.strictDirective(this.end),$e&&Je&&this.raiseRecoverable(v.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var tt=this.labels;this.labels=[],$e&&(this.strict=!0),this.checkParams(v,!Be&&!$e&&!D&&!U&&this.isSimpleParamList(v.params)),this.strict&&v.id&&this.checkLValSimple(v.id,kt),v.body=this.parseBlock(!1,void 0,$e&&!Be),v.expression=!1,this.adaptDirectivePrologue(v.body.body),this.labels=tt}this.exitScope()},M.isSimpleParamList=function(v){for(var D=0,U=v;D-1||xe.functions.indexOf(v)>-1||xe.var.indexOf(v)>-1,xe.lexical.push(v),this.inModule&&xe.flags&de&&delete this.undefinedExports[v]}else if(D===at){var Be=this.currentScope();Be.lexical.push(v)}else if(D===ot){var $e=this.currentScope();this.treatFunctionsAsVar?G=$e.lexical.indexOf(v)>-1:G=$e.lexical.indexOf(v)>-1||$e.var.indexOf(v)>-1,$e.functions.push(v)}else for(var Je=this.scopeStack.length-1;Je>=0;--Je){var tt=this.scopeStack[Je];if(tt.lexical.indexOf(v)>-1&&!(tt.flags&Ue&&tt.lexical[0]===v)||!this.treatFunctionsAsVarInScope(tt)&&tt.functions.indexOf(v)>-1){G=!0;break}if(tt.var.push(v),this.inModule&&tt.flags&de&&delete this.undefinedExports[v],tt.flags&wt)break}G&&this.raiseRecoverable(U,"Identifier '"+v+"' has already been declared")},je.checkLocalExport=function(v){this.scopeStack[0].lexical.indexOf(v.name)===-1&&this.scopeStack[0].var.indexOf(v.name)===-1&&(this.undefinedExports[v.name]=v)},je.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},je.currentVarScope=function(){for(var v=this.scopeStack.length-1;;v--){var D=this.scopeStack[v];if(D.flags&wt)return D}},je.currentThisScope=function(){for(var v=this.scopeStack.length-1;;v--){var D=this.scopeStack[v];if(D.flags&wt&&!(D.flags&Me))return D}};var Ee=function(D,U,G){this.type="",this.start=U,this.end=0,D.options.locations&&(this.loc=new le(D,G)),D.options.directSourceFile&&(this.sourceFile=D.options.directSourceFile),D.options.ranges&&(this.range=[U,0])},Re=Ot.prototype;Re.startNode=function(){return new Ee(this,this.start,this.startLoc)},Re.startNodeAt=function(v,D){return new Ee(this,v,D)};function ze(v,D,U,G){return v.type=D,v.end=U,this.options.locations&&(v.loc.end=G),this.options.ranges&&(v.range[1]=U),v}Re.finishNode=function(v,D){return ze.call(this,v,D,this.lastTokEnd,this.lastTokEndLoc)},Re.finishNodeAt=function(v,D,U,G){return ze.call(this,v,D,U,G)},Re.copyNode=function(v){var D=new Ee(this,v.start,this.startLoc);for(var U in v)D[U]=v[U];return D};var Oe="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",se=Oe+" Extended_Pictographic",K=se,he=K+" EBase EComp EMod EPres ExtPict",Ce=he,we=Ce,Ge={9:Oe,10:se,11:K,12:he,13:Ce,14:we},et="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",yt={9:"",10:"",11:"",12:"",13:"",14:et},Et="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",Dt="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",vt=Dt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",We=vt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",it=We+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",He=it+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ve=He+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",ft={9:Dt,10:vt,11:We,12:it,13:He,14:Ve},gt={};function Ut(v){var D=gt[v]={binary:$(Ge[v]+" "+Et),binaryOfStrings:$(yt[v]),nonBinary:{General_Category:$(Et),Script:$(ft[v])}};D.nonBinary.Script_Extensions=D.nonBinary.Script,D.nonBinary.gc=D.nonBinary.General_Category,D.nonBinary.sc=D.nonBinary.Script,D.nonBinary.scx=D.nonBinary.Script_Extensions}for(var Vt=0,Qt=[9,10,11,12,13,14];Vt=6?"uy":"")+(D.options.ecmaVersion>=9?"s":"")+(D.options.ecmaVersion>=13?"d":"")+(D.options.ecmaVersion>=15?"v":""),this.unicodeProperties=gt[D.options.ecmaVersion>=14?14:D.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!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=[]};$t.prototype.reset=function(D,U,G){var xe=G.indexOf("v")!==-1,Be=G.indexOf("u")!==-1;this.start=D|0,this.source=U+"",this.flags=G,xe&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Be&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Be&&this.parser.options.ecmaVersion>=9)},$t.prototype.raise=function(D){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+D)},$t.prototype.at=function(D,U){U===void 0&&(U=!1);var G=this.source,xe=G.length;if(D>=xe)return-1;var Be=G.charCodeAt(D);if(!(U||this.switchU)||Be<=55295||Be>=57344||D+1>=xe)return Be;var $e=G.charCodeAt(D+1);return $e>=56320&&$e<=57343?(Be<<10)+$e-56613888:Be},$t.prototype.nextIndex=function(D,U){U===void 0&&(U=!1);var G=this.source,xe=G.length;if(D>=xe)return xe;var Be=G.charCodeAt(D),$e;return!(U||this.switchU)||Be<=55295||Be>=57344||D+1>=xe||($e=G.charCodeAt(D+1))<56320||$e>57343?D+1:D+2},$t.prototype.current=function(D){return D===void 0&&(D=!1),this.at(this.pos,D)},$t.prototype.lookahead=function(D){return D===void 0&&(D=!1),this.at(this.nextIndex(this.pos,D),D)},$t.prototype.advance=function(D){D===void 0&&(D=!1),this.pos=this.nextIndex(this.pos,D)},$t.prototype.eat=function(D,U){return U===void 0&&(U=!1),this.current(U)===D?(this.advance(U),!0):!1},$t.prototype.eatChars=function(D,U){U===void 0&&(U=!1);for(var G=this.pos,xe=0,Be=D;xe-1&&this.raise(v.start,"Duplicate regular expression flag"),$e==="u"&&(G=!0),$e==="v"&&(xe=!0)}this.options.ecmaVersion>=15&&G&&xe&&this.raise(v.start,"Invalid regular expression flag")},ut.validateRegExpPattern=function(v){this.regexp_pattern(v),!v.switchN&&this.options.ecmaVersion>=9&&v.groupNames.length>0&&(v.switchN=!0,this.regexp_pattern(v))},ut.regexp_pattern=function(v){v.pos=0,v.lastIntValue=0,v.lastStringValue="",v.lastAssertionIsQuantifiable=!1,v.numCapturingParens=0,v.maxBackReference=0,v.groupNames.length=0,v.backReferenceNames.length=0,this.regexp_disjunction(v),v.pos!==v.source.length&&(v.eat(41)&&v.raise("Unmatched ')'"),(v.eat(93)||v.eat(125))&&v.raise("Lone quantifier brackets")),v.maxBackReference>v.numCapturingParens&&v.raise("Invalid escape");for(var D=0,U=v.backReferenceNames;D=9&&(U=v.eat(60)),v.eat(61)||v.eat(33))return this.regexp_disjunction(v),v.eat(41)||v.raise("Unterminated group"),v.lastAssertionIsQuantifiable=!U,!0}return v.pos=D,!1},ut.regexp_eatQuantifier=function(v,D){return D===void 0&&(D=!1),this.regexp_eatQuantifierPrefix(v,D)?(v.eat(63),!0):!1},ut.regexp_eatQuantifierPrefix=function(v,D){return v.eat(42)||v.eat(43)||v.eat(63)||this.regexp_eatBracedQuantifier(v,D)},ut.regexp_eatBracedQuantifier=function(v,D){var U=v.pos;if(v.eat(123)){var G=0,xe=-1;if(this.regexp_eatDecimalDigits(v)&&(G=v.lastIntValue,v.eat(44)&&this.regexp_eatDecimalDigits(v)&&(xe=v.lastIntValue),v.eat(125)))return xe!==-1&&xe=9?this.regexp_groupSpecifier(v):v.current()===63&&v.raise("Invalid group"),this.regexp_disjunction(v),v.eat(41))return v.numCapturingParens+=1,!0;v.raise("Unterminated group")}return!1},ut.regexp_eatExtendedAtom=function(v){return v.eat(46)||this.regexp_eatReverseSolidusAtomEscape(v)||this.regexp_eatCharacterClass(v)||this.regexp_eatUncapturingGroup(v)||this.regexp_eatCapturingGroup(v)||this.regexp_eatInvalidBracedQuantifier(v)||this.regexp_eatExtendedPatternCharacter(v)},ut.regexp_eatInvalidBracedQuantifier=function(v){return this.regexp_eatBracedQuantifier(v,!0)&&v.raise("Nothing to repeat"),!1},ut.regexp_eatSyntaxCharacter=function(v){var D=v.current();return Or(D)?(v.lastIntValue=D,v.advance(),!0):!1};function Or(v){return v===36||v>=40&&v<=43||v===46||v===63||v>=91&&v<=94||v>=123&&v<=125}ut.regexp_eatPatternCharacters=function(v){for(var D=v.pos,U=0;(U=v.current())!==-1&&!Or(U);)v.advance();return v.pos!==D},ut.regexp_eatExtendedPatternCharacter=function(v){var D=v.current();return D!==-1&&D!==36&&!(D>=40&&D<=43)&&D!==46&&D!==63&&D!==91&&D!==94&&D!==124?(v.advance(),!0):!1},ut.regexp_groupSpecifier=function(v){if(v.eat(63)){if(this.regexp_eatGroupName(v)){v.groupNames.indexOf(v.lastStringValue)!==-1&&v.raise("Duplicate capture group name"),v.groupNames.push(v.lastStringValue);return}v.raise("Invalid group")}},ut.regexp_eatGroupName=function(v){if(v.lastStringValue="",v.eat(60)){if(this.regexp_eatRegExpIdentifierName(v)&&v.eat(62))return!0;v.raise("Invalid capture group name")}return!1},ut.regexp_eatRegExpIdentifierName=function(v){if(v.lastStringValue="",this.regexp_eatRegExpIdentifierStart(v)){for(v.lastStringValue+=N(v.lastIntValue);this.regexp_eatRegExpIdentifierPart(v);)v.lastStringValue+=N(v.lastIntValue);return!0}return!1},ut.regexp_eatRegExpIdentifierStart=function(v){var D=v.pos,U=this.options.ecmaVersion>=11,G=v.current(U);return v.advance(U),G===92&&this.regexp_eatRegExpUnicodeEscapeSequence(v,U)&&(G=v.lastIntValue),$r(G)?(v.lastIntValue=G,!0):(v.pos=D,!1)};function $r(v){return d(v,!0)||v===36||v===95}ut.regexp_eatRegExpIdentifierPart=function(v){var D=v.pos,U=this.options.ecmaVersion>=11,G=v.current(U);return v.advance(U),G===92&&this.regexp_eatRegExpUnicodeEscapeSequence(v,U)&&(G=v.lastIntValue),kr(G)?(v.lastIntValue=G,!0):(v.pos=D,!1)};function kr(v){return m(v,!0)||v===36||v===95||v===8204||v===8205}ut.regexp_eatAtomEscape=function(v){return this.regexp_eatBackReference(v)||this.regexp_eatCharacterClassEscape(v)||this.regexp_eatCharacterEscape(v)||v.switchN&&this.regexp_eatKGroupName(v)?!0:(v.switchU&&(v.current()===99&&v.raise("Invalid unicode escape"),v.raise("Invalid escape")),!1)},ut.regexp_eatBackReference=function(v){var D=v.pos;if(this.regexp_eatDecimalEscape(v)){var U=v.lastIntValue;if(v.switchU)return U>v.maxBackReference&&(v.maxBackReference=U),!0;if(U<=v.numCapturingParens)return!0;v.pos=D}return!1},ut.regexp_eatKGroupName=function(v){if(v.eat(107)){if(this.regexp_eatGroupName(v))return v.backReferenceNames.push(v.lastStringValue),!0;v.raise("Invalid named reference")}return!1},ut.regexp_eatCharacterEscape=function(v){return this.regexp_eatControlEscape(v)||this.regexp_eatCControlLetter(v)||this.regexp_eatZero(v)||this.regexp_eatHexEscapeSequence(v)||this.regexp_eatRegExpUnicodeEscapeSequence(v,!1)||!v.switchU&&this.regexp_eatLegacyOctalEscapeSequence(v)||this.regexp_eatIdentityEscape(v)},ut.regexp_eatCControlLetter=function(v){var D=v.pos;if(v.eat(99)){if(this.regexp_eatControlLetter(v))return!0;v.pos=D}return!1},ut.regexp_eatZero=function(v){return v.current()===48&&!yn(v.lookahead())?(v.lastIntValue=0,v.advance(),!0):!1},ut.regexp_eatControlEscape=function(v){var D=v.current();return D===116?(v.lastIntValue=9,v.advance(),!0):D===110?(v.lastIntValue=10,v.advance(),!0):D===118?(v.lastIntValue=11,v.advance(),!0):D===102?(v.lastIntValue=12,v.advance(),!0):D===114?(v.lastIntValue=13,v.advance(),!0):!1},ut.regexp_eatControlLetter=function(v){var D=v.current();return Vr(D)?(v.lastIntValue=D%32,v.advance(),!0):!1};function Vr(v){return v>=65&&v<=90||v>=97&&v<=122}ut.regexp_eatRegExpUnicodeEscapeSequence=function(v,D){D===void 0&&(D=!1);var U=v.pos,G=D||v.switchU;if(v.eat(117)){if(this.regexp_eatFixedHexDigits(v,4)){var xe=v.lastIntValue;if(G&&xe>=55296&&xe<=56319){var Be=v.pos;if(v.eat(92)&&v.eat(117)&&this.regexp_eatFixedHexDigits(v,4)){var $e=v.lastIntValue;if($e>=56320&&$e<=57343)return v.lastIntValue=(xe-55296)*1024+($e-56320)+65536,!0}v.pos=Be,v.lastIntValue=xe}return!0}if(G&&v.eat(123)&&this.regexp_eatHexDigits(v)&&v.eat(125)&&hs(v.lastIntValue))return!0;G&&v.raise("Invalid unicode escape"),v.pos=U}return!1};function hs(v){return v>=0&&v<=1114111}ut.regexp_eatIdentityEscape=function(v){if(v.switchU)return this.regexp_eatSyntaxCharacter(v)?!0:v.eat(47)?(v.lastIntValue=47,!0):!1;var D=v.current();return D!==99&&(!v.switchN||D!==107)?(v.lastIntValue=D,v.advance(),!0):!1},ut.regexp_eatDecimalEscape=function(v){v.lastIntValue=0;var D=v.current();if(D>=49&&D<=57){do v.lastIntValue=10*v.lastIntValue+(D-48),v.advance();while((D=v.current())>=48&&D<=57);return!0}return!1};var Kn=0,gr=1,or=2;ut.regexp_eatCharacterClassEscape=function(v){var D=v.current();if(mn(D))return v.lastIntValue=-1,v.advance(),gr;var U=!1;if(v.switchU&&this.options.ecmaVersion>=9&&((U=D===80)||D===112)){v.lastIntValue=-1,v.advance();var G;if(v.eat(123)&&(G=this.regexp_eatUnicodePropertyValueExpression(v))&&v.eat(125))return U&&G===or&&v.raise("Invalid property name"),G;v.raise("Invalid property name")}return Kn};function mn(v){return v===100||v===68||v===115||v===83||v===119||v===87}ut.regexp_eatUnicodePropertyValueExpression=function(v){var D=v.pos;if(this.regexp_eatUnicodePropertyName(v)&&v.eat(61)){var U=v.lastStringValue;if(this.regexp_eatUnicodePropertyValue(v)){var G=v.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(v,U,G),gr}}if(v.pos=D,this.regexp_eatLoneUnicodePropertyNameOrValue(v)){var xe=v.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(v,xe)}return Kn},ut.regexp_validateUnicodePropertyNameAndValue=function(v,D,U){Q(v.unicodeProperties.nonBinary,D)||v.raise("Invalid property name"),v.unicodeProperties.nonBinary[D].test(U)||v.raise("Invalid property value")},ut.regexp_validateUnicodePropertyNameOrValue=function(v,D){if(v.unicodeProperties.binary.test(D))return gr;if(v.switchV&&v.unicodeProperties.binaryOfStrings.test(D))return or;v.raise("Invalid property name")},ut.regexp_eatUnicodePropertyName=function(v){var D=0;for(v.lastStringValue="";Jn(D=v.current());)v.lastStringValue+=N(D),v.advance();return v.lastStringValue!==""};function Jn(v){return Vr(v)||v===95}ut.regexp_eatUnicodePropertyValue=function(v){var D=0;for(v.lastStringValue="";Pn(D=v.current());)v.lastStringValue+=N(D),v.advance();return v.lastStringValue!==""};function Pn(v){return Jn(v)||yn(v)}ut.regexp_eatLoneUnicodePropertyNameOrValue=function(v){return this.regexp_eatUnicodePropertyValue(v)},ut.regexp_eatCharacterClass=function(v){if(v.eat(91)){var D=v.eat(94),U=this.regexp_classContents(v);return v.eat(93)||v.raise("Unterminated character class"),D&&U===or&&v.raise("Negated character class may contain strings"),!0}return!1},ut.regexp_classContents=function(v){return v.current()===93?gr:v.switchV?this.regexp_classSetExpression(v):(this.regexp_nonEmptyClassRanges(v),gr)},ut.regexp_nonEmptyClassRanges=function(v){for(;this.regexp_eatClassAtom(v);){var D=v.lastIntValue;if(v.eat(45)&&this.regexp_eatClassAtom(v)){var U=v.lastIntValue;v.switchU&&(D===-1||U===-1)&&v.raise("Invalid character class"),D!==-1&&U!==-1&&D>U&&v.raise("Range out of order in character class")}}},ut.regexp_eatClassAtom=function(v){var D=v.pos;if(v.eat(92)){if(this.regexp_eatClassEscape(v))return!0;if(v.switchU){var U=v.current();(U===99||Ci(U))&&v.raise("Invalid class escape"),v.raise("Invalid escape")}v.pos=D}var G=v.current();return G!==93?(v.lastIntValue=G,v.advance(),!0):!1},ut.regexp_eatClassEscape=function(v){var D=v.pos;if(v.eat(98))return v.lastIntValue=8,!0;if(v.switchU&&v.eat(45))return v.lastIntValue=45,!0;if(!v.switchU&&v.eat(99)){if(this.regexp_eatClassControlLetter(v))return!0;v.pos=D}return this.regexp_eatCharacterClassEscape(v)||this.regexp_eatCharacterEscape(v)},ut.regexp_classSetExpression=function(v){var D=gr,U;if(!this.regexp_eatClassSetRange(v))if(U=this.regexp_eatClassSetOperand(v)){U===or&&(D=or);for(var G=v.pos;v.eatChars([38,38]);){if(v.current()!==38&&(U=this.regexp_eatClassSetOperand(v))){U!==or&&(D=gr);continue}v.raise("Invalid character in character class")}if(G!==v.pos)return D;for(;v.eatChars([45,45]);)this.regexp_eatClassSetOperand(v)||v.raise("Invalid character in character class");if(G!==v.pos)return D}else v.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(v)){if(U=this.regexp_eatClassSetOperand(v),!U)return D;U===or&&(D=or)}},ut.regexp_eatClassSetRange=function(v){var D=v.pos;if(this.regexp_eatClassSetCharacter(v)){var U=v.lastIntValue;if(v.eat(45)&&this.regexp_eatClassSetCharacter(v)){var G=v.lastIntValue;return U!==-1&&G!==-1&&U>G&&v.raise("Range out of order in character class"),!0}v.pos=D}return!1},ut.regexp_eatClassSetOperand=function(v){return this.regexp_eatClassSetCharacter(v)?gr:this.regexp_eatClassStringDisjunction(v)||this.regexp_eatNestedClass(v)},ut.regexp_eatNestedClass=function(v){var D=v.pos;if(v.eat(91)){var U=v.eat(94),G=this.regexp_classContents(v);if(v.eat(93))return U&&G===or&&v.raise("Negated character class may contain strings"),G;v.pos=D}if(v.eat(92)){var xe=this.regexp_eatCharacterClassEscape(v);if(xe)return xe;v.pos=D}return null},ut.regexp_eatClassStringDisjunction=function(v){var D=v.pos;if(v.eatChars([92,113])){if(v.eat(123)){var U=this.regexp_classStringDisjunctionContents(v);if(v.eat(125))return U}else v.raise("Invalid escape");v.pos=D}return null},ut.regexp_classStringDisjunctionContents=function(v){for(var D=this.regexp_classString(v);v.eat(124);)this.regexp_classString(v)===or&&(D=or);return D},ut.regexp_classString=function(v){for(var D=0;this.regexp_eatClassSetCharacter(v);)D++;return D===1?gr:or},ut.regexp_eatClassSetCharacter=function(v){var D=v.pos;if(v.eat(92))return this.regexp_eatCharacterEscape(v)||this.regexp_eatClassSetReservedPunctuator(v)?!0:v.eat(98)?(v.lastIntValue=8,!0):(v.pos=D,!1);var U=v.current();return U<0||U===v.lookahead()&&gn(U)||ds(U)?!1:(v.advance(),v.lastIntValue=U,!0)};function gn(v){return v===33||v>=35&&v<=38||v>=42&&v<=44||v===46||v>=58&&v<=64||v===94||v===96||v===126}function ds(v){return v===40||v===41||v===45||v===47||v>=91&&v<=93||v>=123&&v<=125}ut.regexp_eatClassSetReservedPunctuator=function(v){var D=v.current();return qs(D)?(v.lastIntValue=D,v.advance(),!0):!1};function qs(v){return v===33||v===35||v===37||v===38||v===44||v===45||v>=58&&v<=62||v===64||v===96||v===126}ut.regexp_eatClassControlLetter=function(v){var D=v.current();return yn(D)||D===95?(v.lastIntValue=D%32,v.advance(),!0):!1},ut.regexp_eatHexEscapeSequence=function(v){var D=v.pos;if(v.eat(120)){if(this.regexp_eatFixedHexDigits(v,2))return!0;v.switchU&&v.raise("Invalid escape"),v.pos=D}return!1},ut.regexp_eatDecimalDigits=function(v){var D=v.pos,U=0;for(v.lastIntValue=0;yn(U=v.current());)v.lastIntValue=10*v.lastIntValue+(U-48),v.advance();return v.pos!==D};function yn(v){return v>=48&&v<=57}ut.regexp_eatHexDigits=function(v){var D=v.pos,U=0;for(v.lastIntValue=0;Ei(U=v.current());)v.lastIntValue=16*v.lastIntValue+ms(U),v.advance();return v.pos!==D};function Ei(v){return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102}function ms(v){return v>=65&&v<=70?10+(v-65):v>=97&&v<=102?10+(v-97):v-48}ut.regexp_eatLegacyOctalEscapeSequence=function(v){if(this.regexp_eatOctalDigit(v)){var D=v.lastIntValue;if(this.regexp_eatOctalDigit(v)){var U=v.lastIntValue;D<=3&&this.regexp_eatOctalDigit(v)?v.lastIntValue=D*64+U*8+v.lastIntValue:v.lastIntValue=D*8+U}else v.lastIntValue=D;return!0}return!1},ut.regexp_eatOctalDigit=function(v){var D=v.current();return Ci(D)?(v.lastIntValue=D-48,v.advance(),!0):(v.lastIntValue=0,!1)};function Ci(v){return v>=48&&v<=55}ut.regexp_eatFixedHexDigits=function(v,D){var U=v.pos;v.lastIntValue=0;for(var G=0;G=this.input.length)return this.finishToken(E.eof);if(v.override)return v.override(this);this.readToken(this.fullCharCodeAtPos())},_t.readToken=function(v){return d(v,this.options.ecmaVersion>=6)||v===92?this.readWord():this.getTokenFromCode(v)},_t.fullCharCodeAtPos=function(){var v=this.input.charCodeAt(this.pos);if(v<=55295||v>=56320)return v;var D=this.input.charCodeAt(this.pos+1);return D<=56319||D>=57344?v:(v<<10)+D-56613888},_t.skipBlockComment=function(){var v=this.options.onComment&&this.curPosition(),D=this.pos,U=this.input.indexOf("*/",this.pos+=2);if(U===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=U+2,this.options.locations)for(var G=void 0,xe=D;(G=T(this.input,xe,this.pos))>-1;)++this.curLine,xe=this.lineStart=G;this.options.onComment&&this.options.onComment(!0,this.input.slice(D+2,U),D,this.pos,v,this.curPosition())},_t.skipLineComment=function(v){for(var D=this.pos,U=this.options.onComment&&this.curPosition(),G=this.input.charCodeAt(this.pos+=v);this.pos8&&v<14||v>=5760&&I.test(String.fromCharCode(v)))++this.pos;else break e}}},_t.finishToken=function(v,D){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var U=this.type;this.type=v,this.value=D,this.updateContext(U)},_t.readToken_dot=function(){var v=this.input.charCodeAt(this.pos+1);if(v>=48&&v<=57)return this.readNumber(!0);var D=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&v===46&&D===46?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},_t.readToken_slash=function(){var v=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):v===61?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},_t.readToken_mult_modulo_exp=function(v){var D=this.input.charCodeAt(this.pos+1),U=1,G=v===42?E.star:E.modulo;return this.options.ecmaVersion>=7&&v===42&&D===42&&(++U,G=E.starstar,D=this.input.charCodeAt(this.pos+2)),D===61?this.finishOp(E.assign,U+1):this.finishOp(G,U)},_t.readToken_pipe_amp=function(v){var D=this.input.charCodeAt(this.pos+1);if(D===v){if(this.options.ecmaVersion>=12){var U=this.input.charCodeAt(this.pos+2);if(U===61)return this.finishOp(E.assign,3)}return this.finishOp(v===124?E.logicalOR:E.logicalAND,2)}return D===61?this.finishOp(E.assign,2):this.finishOp(v===124?E.bitwiseOR:E.bitwiseAND,1)},_t.readToken_caret=function(){var v=this.input.charCodeAt(this.pos+1);return v===61?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},_t.readToken_plus_min=function(v){var D=this.input.charCodeAt(this.pos+1);return D===v?D===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||A.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(E.incDec,2):D===61?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},_t.readToken_lt_gt=function(v){var D=this.input.charCodeAt(this.pos+1),U=1;return D===v?(U=v===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+U)===61?this.finishOp(E.assign,U+1):this.finishOp(E.bitShift,U)):D===33&&v===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(D===61&&(U=2),this.finishOp(E.relational,U))},_t.readToken_eq_excl=function(v){var D=this.input.charCodeAt(this.pos+1);return D===61?this.finishOp(E.equality,this.input.charCodeAt(this.pos+2)===61?3:2):v===61&&D===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(v===61?E.eq:E.prefix,1)},_t.readToken_question=function(){var v=this.options.ecmaVersion;if(v>=11){var D=this.input.charCodeAt(this.pos+1);if(D===46){var U=this.input.charCodeAt(this.pos+2);if(U<48||U>57)return this.finishOp(E.questionDot,2)}if(D===63){if(v>=12){var G=this.input.charCodeAt(this.pos+2);if(G===61)return this.finishOp(E.assign,3)}return this.finishOp(E.coalesce,2)}}return this.finishOp(E.question,1)},_t.readToken_numberSign=function(){var v=this.options.ecmaVersion,D=35;if(v>=13&&(++this.pos,D=this.fullCharCodeAtPos(),d(D,!0)||D===92))return this.finishToken(E.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+N(D)+"'")},_t.getTokenFromCode=function(v){switch(v){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var D=this.input.charCodeAt(this.pos+1);if(D===120||D===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(D===111||D===79)return this.readRadixNumber(8);if(D===98||D===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(v);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(v);case 124:case 38:return this.readToken_pipe_amp(v);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(v);case 60:case 62:return this.readToken_lt_gt(v);case 61:case 33:return this.readToken_eq_excl(v);case 63:return this.readToken_question();case 126:return this.finishOp(E.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+N(v)+"'")},_t.finishOp=function(v,D){var U=this.input.slice(this.pos,this.pos+D);return this.pos+=D,this.finishToken(v,U)},_t.readRegexp=function(){for(var v,D,U=this.pos;;){this.pos>=this.input.length&&this.raise(U,"Unterminated regular expression");var G=this.input.charAt(this.pos);if(A.test(G)&&this.raise(U,"Unterminated regular expression"),v)v=!1;else{if(G==="[")D=!0;else if(G==="]"&&D)D=!1;else if(G==="/"&&!D)break;v=G==="\\"}++this.pos}var xe=this.input.slice(U,this.pos);++this.pos;var Be=this.pos,$e=this.readWord1();this.containsEsc&&this.unexpected(Be);var Je=this.regexpState||(this.regexpState=new $t(this));Je.reset(U,xe,$e),this.validateRegExpFlags(Je),this.validateRegExpPattern(Je);var tt=null;try{tt=new RegExp(xe,$e)}catch{}return this.finishToken(E.regexp,{pattern:xe,flags:$e,value:tt})},_t.readInt=function(v,D,U){for(var G=this.options.ecmaVersion>=12&&D===void 0,xe=U&&this.input.charCodeAt(this.pos)===48,Be=this.pos,$e=0,Je=0,tt=0,Ct=D??1/0;tt=97?lr=Tt-97+10:Tt>=65?lr=Tt-65+10:Tt>=48&&Tt<=57?lr=Tt-48:lr=1/0,lr>=v)break;Je=Tt,$e=$e*v+lr}return G&&Je===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Be||D!=null&&this.pos-Be!==D?null:$e};function wi(v,D){return D?parseInt(v,8):parseFloat(v.replace(/_/g,""))}function Qe(v){return typeof BigInt!="function"?null:BigInt(v.replace(/_/g,""))}_t.readRadixNumber=function(v){var D=this.pos;this.pos+=2;var U=this.readInt(v);return U==null&&this.raise(this.start+2,"Expected number in radix "+v),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(U=Qe(this.input.slice(D,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,U)},_t.readNumber=function(v){var D=this.pos;!v&&this.readInt(10,void 0,!0)===null&&this.raise(D,"Invalid number");var U=this.pos-D>=2&&this.input.charCodeAt(D)===48;U&&this.strict&&this.raise(D,"Invalid number");var G=this.input.charCodeAt(this.pos);if(!U&&!v&&this.options.ecmaVersion>=11&&G===110){var xe=Qe(this.input.slice(D,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,xe)}U&&/[89]/.test(this.input.slice(D,this.pos))&&(U=!1),G===46&&!U&&(++this.pos,this.readInt(10),G=this.input.charCodeAt(this.pos)),(G===69||G===101)&&!U&&(G=this.input.charCodeAt(++this.pos),(G===43||G===45)&&++this.pos,this.readInt(10)===null&&this.raise(D,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Be=wi(this.input.slice(D,this.pos),U);return this.finishToken(E.num,Be)},_t.readCodePoint=function(){var v=this.input.charCodeAt(this.pos),D;if(v===123){this.options.ecmaVersion<6&&this.unexpected();var U=++this.pos;D=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,D>1114111&&this.invalidStringToken(U,"Code point out of bounds")}else D=this.readHexChar(4);return D},_t.readString=function(v){for(var D="",U=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var G=this.input.charCodeAt(this.pos);if(G===v)break;G===92?(D+=this.input.slice(U,this.pos),D+=this.readEscapedChar(!1),U=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)):(P(G)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return D+=this.input.slice(U,this.pos++),this.finishToken(E.string,D)};var q={};_t.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(v){if(v===q)this.readInvalidTemplateToken();else throw v}this.inTemplateElement=!1},_t.invalidStringToken=function(v,D){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw q;this.raise(v,D)},_t.readTmplToken=function(){for(var v="",D=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var U=this.input.charCodeAt(this.pos);if(U===96||U===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===E.template||this.type===E.invalidTemplate)?U===36?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote)):(v+=this.input.slice(D,this.pos),this.finishToken(E.template,v));if(U===92)v+=this.input.slice(D,this.pos),v+=this.readEscapedChar(!0),D=this.pos;else if(P(U)){switch(v+=this.input.slice(D,this.pos),++this.pos,U){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:v+=` -`;break;default:v+=String.fromCharCode(U);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),D=this.pos}else++this.pos}},_t.readInvalidTemplateToken=function(){for(;this.pos=48&&D<=55){var G=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],xe=parseInt(G,8);return xe>255&&(G=G.slice(0,-1),xe=parseInt(G,8)),this.pos+=G.length-1,D=this.input.charCodeAt(this.pos),(G!=="0"||D===56||D===57)&&(this.strict||v)&&this.invalidStringToken(this.pos-1-G.length,v?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(xe)}return P(D)?"":String.fromCharCode(D)}},_t.readHexChar=function(v){var D=this.pos,U=this.readInt(16,v);return U===null&&this.invalidStringToken(D,"Bad character escape sequence"),U},_t.readWord1=function(){this.containsEsc=!1;for(var v="",D=!0,U=this.pos,G=this.options.ecmaVersion>=6;this.pos",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"}),ld}var FA;function O9(){return FA||(FA=1,function(r){let e=v9(),t=/^[\da-fA-F]+$/,s=/^\d+$/,n=new WeakMap;function i(o){o=o.Parser.acorn||o;let u=n.get(o);if(!u){let c=o.tokTypes,p=o.TokContext,h=o.TokenType,f=new p("...",!0,!0),g={tc_oTag:f,tc_cTag:d,tc_expr:m},b={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};b.jsxTagStart.updateContext=function(){this.context.push(m),this.context.push(f),this.exprAllowed=!1},b.jsxTagEnd.updateContext=function(O){let S=this.context.pop();S===f&&O===c.slash||S===d?(this.context.pop(),this.exprAllowed=this.curContext()===m):this.exprAllowed=!0},u={tokContexts:g,tokTypes:b},n.set(o,u)}return u}function a(o){if(!o)return o;if(o.type==="JSXIdentifier")return o.name;if(o.type==="JSXNamespacedName")return o.namespace.name+":"+o.name.name;if(o.type==="JSXMemberExpression")return a(o.object)+"."+a(o.property)}r.exports=function(o){return o=o||{},function(u){return l({allowNamespaces:o.allowNamespaces!==!1,allowNamespacedObjects:!!o.allowNamespacedObjects},u)}},Object.defineProperty(r.exports,"tokTypes",{get:function(){return i(rO()).tokTypes},configurable:!0,enumerable:!0});function l(o,u){let c=u.acorn||rO(),p=i(c),h=c.tokTypes,f=p.tokTypes,d=c.tokContexts,m=p.tokContexts.tc_oTag,g=p.tokContexts.tc_cTag,b=p.tokContexts.tc_expr,O=c.isNewLine,S=c.isIdentifierStart,C=c.isIdentifierChar;return class extends u{static get acornJsx(){return p}jsx_readToken(){let k="",E=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let A=this.input.charCodeAt(this.pos);switch(A){case 60:case 123:return this.pos===this.start?A===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(A):(k+=this.input.slice(E,this.pos),this.finishToken(f.jsxText,k));case 38:k+=this.input.slice(E,this.pos),k+=this.jsx_readEntity(),E=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(A===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:O(A)?(k+=this.input.slice(E,this.pos),k+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}}jsx_readNewLine(k){let E=this.input.charCodeAt(this.pos),A;return++this.pos,E===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,A=k?` +`,i+1);s=s.substring(a+1)}this.stack=s}}}cO(xc,Error);function OA(r,e){return typeof r=="string"?r.length=0;u--)if(a[u]!==l[u])return!1;for(u=a.length-1;u>=0;u--)if(o=a[u],!xa(r[o],e[o],t,s))return!1;return!0}Br.notDeepEqual=OO;function OO(r,e,t){xa(r,e,!1)&&Rr(r,e,t,"notDeepEqual",OO)}Br.notDeepStrictEqual=SO;function SO(r,e,t){xa(r,e,!0)&&Rr(r,e,t,"notDeepStrictEqual",SO)}Br.strictEqual=EO;function EO(r,e,t){r!==e&&Rr(r,e,t,"===",EO)}Br.notStrictEqual=CO;function CO(r,e,t){r===e&&Rr(r,e,t,"!==",CO)}function CA(r,e){if(!r||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(r);try{if(r instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},r)===!0}function t9(r){var e;try{r()}catch(t){e=t}return e}function kB(r,e,t,s){var n;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof t=="string"&&(s=t,t=null),n=t9(e),s=(t&&t.name?" ("+t.name+").":".")+(s?" "+s:"."),r&&!n&&Rr(n,t,"Missing expected exception"+s);var i=typeof s=="string",a=!r&&ga(n),l=!r&&n&&!t;if((a&&i&&CA(n,t)||l)&&Rr(n,t,"Got unwanted exception"+s),r&&n&&t&&!CA(n,t)||!r&&n)throw n}Br.throws=AB;function AB(r,e,t){kB(!0,r,e,t)}Br.doesNotThrow=PB;function PB(r,e,t){kB(!1,r,e,t)}Br.ifError=TB;function TB(r){if(r)throw r}var r9=Object.freeze({__proto__:null,AssertionError:xc,assert:jo,deepEqual:bO,deepStrictEqual:vO,default:Br,doesNotThrow:PB,equal:yO,fail:Rr,ifError:TB,notDeepEqual:OO,notDeepStrictEqual:SO,notEqual:xO,notStrictEqual:CO,ok:jo,strictEqual:EO,throws:AB}),Vo=cc(r9),sd={},wA;function DB(){return wA||(wA=1,function(r){(function e(t){var s,n,i,a,l,o;function u(C){var O={},w,E;for(w in C)C.hasOwnProperty(w)&&(E=C[w],typeof E=="object"&&E!==null?O[w]=u(E):O[w]=E);return O}function c(C,O){var w,E,k,A;for(E=C.length,k=0;E;)w=E>>>1,A=k+w,O(C[A])?E=w:(k=A+1,E-=w+1);return k}s={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"},i={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"]},a={},l={},o={},n={Break:a,Skip:l,Remove:o};function p(C,O){this.parent=C,this.key=O}p.prototype.replace=function(O){this.parent[this.key]=O},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(C,O,w,E){this.node=C,this.path=O,this.wrap=w,this.ref=E}function f(){}f.prototype.path=function(){var O,w,E,k,A,D;function _(B,T){if(Array.isArray(T))for(E=0,k=T.length;E=0;--w)if(C[w].node===O)return!0;return!1}f.prototype.traverse=function(O,w){var E,k,A,D,_,B,T,F,j,Q,I,N;for(this.__initialize(O,w),N={},E=this.__worklist,k=this.__leavelist,E.push(new h(O,null,null,null)),k.push(new h(null,null,null,null));E.length;){if(A=E.pop(),A===N){if(A=k.pop(),B=this.__execute(w.leave,A),this.__state===a||B===a)return;continue}if(A.node){if(B=this.__execute(w.enter,A),this.__state===a||B===a)return;if(E.push(N),k.push(A),this.__state===l||B===l)continue;if(D=A.node,_=D.type||A.wrap,Q=this.__keys[_],!Q)if(this.__fallback)Q=this.__fallback(D);else throw new Error("Unknown node type "+_+".");for(F=Q.length;(F-=1)>=0;)if(T=Q[F],I=D[T],!!I){if(Array.isArray(I)){for(j=I.length;(j-=1)>=0;)if(I[j]&&!g(k,I[j])){if(m(_,Q[F]))A=new h(I[j],[T,j],"Property",null);else if(d(I[j]))A=new h(I[j],[T,j],null,null);else continue;E.push(A)}}else if(d(I)){if(g(k,I))continue;E.push(new h(I,T,null,null))}}}}},f.prototype.replace=function(O,w){var E,k,A,D,_,B,T,F,j,Q,I,N,R;function U(V){var ae,se,ve,H;if(V.ref.remove()){for(se=V.ref.key,H=V.ref.parent,ae=E.length;ae--;)if(ve=E[ae],ve.ref&&ve.ref.parent===H){if(ve.ref.key=0;)if(R=j[T],Q=A[R],!!Q)if(Array.isArray(Q)){for(F=Q.length;(F-=1)>=0;)if(Q[F]){if(m(D,j[T]))B=new h(Q[F],[R,F],"Property",new p(Q,F));else if(d(Q[F]))B=new h(Q[F],[R,F],null,new p(Q,F));else continue;E.push(B)}}else d(Q)&&E.push(new h(Q,R,null,new p(A,R)))}}return N.root};function y(C,O){var w=new f;return w.traverse(C,O)}function b(C,O){var w=new f;return w.replace(C,O)}function v(C,O){var w;return w=c(O,function(k){return k.range[0]>C.range[0]}),C.extendedRange=[C.range[0],C.range[1]],w!==O.length&&(C.extendedRange[1]=O[w].range[0]),w-=1,w>=0&&(C.extendedRange[0]=O[w].range[1]),C}function S(C,O,w){var E=[],k,A,D,_;if(!C.range)throw new Error("attachComments needs range information");if(!w.length){if(O.length){for(D=0,A=O.length;DB.range[0]));)T.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(T),E.splice(_,1)):_+=1;if(_===E.length)return n.Break;if(E[_].extendedRange[0]>B.range[1])return n.Skip}}),_=0,y(C,{leave:function(B){for(var T;_B.range[1])return n.Skip}}),C}return t.Syntax=s,t.traverse=y,t.replace=b,t.attachComments=S,t.VisitorKeys=i,t.VisitorOption=n,t.Controller=f,t.cloneEnvironment=function(){return e({})},t})(r)}(sd)),sd}var Bo={},n9="esrecurse",s9="ECMAScript AST recursive visitor",i9="https://github.com/estools/esrecurse",a9="esrecurse.js",o9="4.3.0",l9={node:">=4.0"},u9=[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],c9={type:"git",url:"https://github.com/estools/esrecurse.git"},f9={estraverse:"^5.2.0"},p9={"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"},h9="BSD-2-Clause",d9={test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},m9={presets:["es2015"]},g9={name:n9,description:s9,homepage:i9,main:a9,version:o9,engines:l9,maintainers:u9,repository:c9,dependencies:f9,devDependencies:p9,license:h9,scripts:d9,babel:m9},kA;function y9(){return kA||(kA=1,function(){var r=DB();function e(n){return n==null?!1:typeof n=="object"&&typeof n.type=="string"}function t(n,i){return(n===r.Syntax.ObjectExpression||n===r.Syntax.ObjectPattern)&&i==="properties"}function s(n,i){i=i||{},this.__visitor=n||this,this.__childVisitorKeys=i.childVisitorKeys?Object.assign({},r.VisitorKeys,i.childVisitorKeys):r.VisitorKeys,i.fallback==="iteration"?this.__fallback=Object.keys:typeof i.fallback=="function"&&(this.__fallback=i.fallback)}s.prototype.visitChildren=function(n){var i,a,l,o,u,c,p;if(n!=null){if(i=n.type||r.Syntax.Property,a=this.__childVisitorKeys[i],!a)if(this.__fallback)a=this.__fallback(n);else throw new Error("Unknown node type "+i+".");for(l=0,o=a.length;l0&&le.every(y)}__staticCloseRef($){this.__resolve($)||this.__delegateToUpperScope($)}__dynamicCloseRef($){let pe=this;do pe.through.push($),pe=pe.upper;while(pe)}__globalCloseRef($){this.__shouldStaticallyCloseForGlobal($)?this.__staticCloseRef($):this.__dynamicCloseRef($)}__close($){let pe;this.__shouldStaticallyClose($)?pe=this.__staticCloseRef:this.type!=="global"?pe=this.__dynamicCloseRef:pe=this.__globalCloseRef;for(let K=0,le=this.__left.length;Kle.name.range[0]>=K))}}class D extends b{constructor($,pe,K){super($,"for",pe,K,!1)}}class _ extends b{constructor($,pe,K){super($,"class",pe,K,!1)}}class B extends b{constructor($,pe,K){super($,"class-field-initializer",pe,K,!0)}}class T extends b{constructor($,pe,K){super($,"class-static-block",pe,K,!0)}}class F{constructor($){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=$,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}isGlobalReturn(){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($){return this.__nodeToScope.get($)}getDeclaredVariables($){return this.__declaredVariables.get($)||[]}acquire($,pe){function K(xe){return!(xe.type==="function"&&xe.functionExpressionScope)}let le=this.__get($);if(!le||le.length===0)return null;if(le.length===1)return le[0];if(pe)for(let xe=le.length-1;xe>=0;--xe){let Le=le[xe];if(K(Le))return Le}else for(let xe=0,Le=le.length;xe=6}}let{Syntax:j}=i.default;function Q(he){return he[he.length-1]||null}class I extends a.default.Visitor{static isPattern($){let pe=$.type;return pe===j.Identifier||pe===j.ObjectPattern||pe===j.ArrayPattern||pe===j.SpreadElement||pe===j.RestElement||pe===j.AssignmentPattern}constructor($,pe,K){super(null,$),this.rootPattern=pe,this.callback=K,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier($){let pe=Q(this.restElements);this.callback($,{topLevel:$===this.rootPattern,rest:pe!=null&&pe.argument===$,assignments:this.assignments})}Property($){$.computed&&this.rightHandNodes.push($.key),this.visit($.value)}ArrayPattern($){for(let pe=0,K=$.elements.length;pe{this.rightHandNodes.push(pe)}),this.visit($.callee)}}let{Syntax:N}=i.default;function R(he,$,pe,K){let le=new I(he,$,K);le.visit($),pe!=null&&le.rightHandNodes.forEach(pe.visit,pe)}class U extends a.default.Visitor{constructor($,pe){super(null,pe.options),this.declaration=$,this.referencer=pe}visitImport($,pe){this.referencer.visitPattern($,K=>{this.referencer.currentScope().__define(K,new h(p.ImportBinding,K,pe,this.declaration,null,null))})}ImportNamespaceSpecifier($){let pe=$.local||$.id;pe&&this.visitImport(pe,$)}ImportDefaultSpecifier($){let pe=$.local||$.id;this.visitImport(pe,$)}ImportSpecifier($){let pe=$.local||$.id;$.name?this.visitImport($.name,$):this.visitImport(pe,$)}}class V extends a.default.Visitor{constructor($,pe){super(null,$),this.options=$,this.scopeManager=pe,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close($){for(;this.currentScope()&&$===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition($){let pe=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=$,pe}popInnerMethodDefinition($){this.isInnerMethodDefinition=$}referencingDefaultValue($,pe,K,le){let xe=this.currentScope();pe.forEach(Le=>{xe.__referencing($,c.WRITE,Le.right,K,$!==Le.left,le)})}visitPattern($,pe,K){let le=pe,xe=K;typeof pe=="function"&&(xe=pe,le={processRightHandNodes:!1}),R(this.options,$,le.processRightHandNodes?this:null,xe)}visitFunction($){let pe,K;$.type===N.FunctionDeclaration&&this.currentScope().__define($.id,new h(p.FunctionName,$.id,$,null,null,null)),$.type===N.FunctionExpression&&$.id&&this.scopeManager.__nestFunctionExpressionNameScope($),this.scopeManager.__nestFunctionScope($,this.isInnerMethodDefinition);let le=this;function xe(Le,qe){le.currentScope().__define(Le,new f(Le,$,pe,qe.rest)),le.referencingDefaultValue(Le,qe.assignments,null,!0)}for(pe=0,K=$.params.length;pe{this.currentScope().__define(Le,new f(Le,$,$.params.length,!0))}),$.body&&($.body.type===N.BlockStatement?this.visitChildren($.body):this.visit($.body)),this.close($)}visitClass($){$.type===N.ClassDeclaration&&this.currentScope().__define($.id,new h(p.ClassName,$.id,$,null,null,null)),this.scopeManager.__nestClassScope($),$.id&&this.currentScope().__define($.id,new h(p.ClassName,$.id,$)),this.visit($.superClass),this.visit($.body),this.close($)}visitProperty($){let pe;$.computed&&this.visit($.key);let K=$.type===N.MethodDefinition;K&&(pe=this.pushInnerMethodDefinition(!0)),this.visit($.value),K&&this.popInnerMethodDefinition(pe)}visitForIn($){$.left.type===N.VariableDeclaration&&$.left.kind!=="var"&&this.scopeManager.__nestForScope($),$.left.type===N.VariableDeclaration?(this.visit($.left),this.visitPattern($.left.declarations[0].id,pe=>{this.currentScope().__referencing(pe,c.WRITE,$.right,null,!0,!0)})):this.visitPattern($.left,{processRightHandNodes:!0},(pe,K)=>{let le=null;this.currentScope().isStrict||(le={pattern:pe,node:$}),this.referencingDefaultValue(pe,K.assignments,le,!1),this.currentScope().__referencing(pe,c.WRITE,$.right,le,!0,!1)}),this.visit($.right),this.visit($.body),this.close($)}visitVariableDeclaration($,pe,K,le){let xe=K.declarations[le],Le=xe.init;this.visitPattern(xe.id,{processRightHandNodes:!0},(qe,rt)=>{$.__define(qe,new h(pe,qe,xe,K,le,K.kind)),this.referencingDefaultValue(qe,rt.assignments,null,!0),Le&&this.currentScope().__referencing(qe,c.WRITE,Le,null,!rt.topLevel,!0)})}AssignmentExpression($){I.isPattern($.left)?$.operator==="="?this.visitPattern($.left,{processRightHandNodes:!0},(pe,K)=>{let le=null;this.currentScope().isStrict||(le={pattern:pe,node:$}),this.referencingDefaultValue(pe,K.assignments,le,!1),this.currentScope().__referencing(pe,c.WRITE,$.right,le,!K.topLevel,!1)}):this.currentScope().__referencing($.left,c.RW,$.right):this.visit($.left),this.visit($.right)}CatchClause($){this.scopeManager.__nestCatchScope($),this.visitPattern($.param,{processRightHandNodes:!0},(pe,K)=>{this.currentScope().__define(pe,new h(p.CatchClause,$.param,$,null,null,null)),this.referencingDefaultValue(pe,K.assignments,null,!0)}),this.visit($.body),this.close($)}Program($){this.scopeManager.__nestGlobalScope($),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope($,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope($),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren($),this.close($)}Identifier($){this.currentScope().__referencing($)}PrivateIdentifier(){}UpdateExpression($){I.isPattern($.argument)?this.currentScope().__referencing($.argument,c.RW,null):this.visitChildren($)}MemberExpression($){this.visit($.object),$.computed&&this.visit($.property)}Property($){this.visitProperty($)}PropertyDefinition($){let{computed:pe,key:K,value:le}=$;pe&&this.visit(K),le&&(this.scopeManager.__nestClassFieldInitializerScope(le),this.visit(le),this.close(le))}StaticBlock($){this.scopeManager.__nestClassStaticBlockScope($),this.visitChildren($),this.close($)}MethodDefinition($){this.visitProperty($)}BreakStatement(){}ContinueStatement(){}LabeledStatement($){this.visit($.body)}ForStatement($){$.init&&$.init.type===N.VariableDeclaration&&$.init.kind!=="var"&&this.scopeManager.__nestForScope($),this.visitChildren($),this.close($)}ClassExpression($){this.visitClass($)}ClassDeclaration($){this.visitClass($)}CallExpression($){!this.scopeManager.__ignoreEval()&&$.callee.type===N.Identifier&&$.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren($)}BlockStatement($){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope($),this.visitChildren($),this.close($)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement($){this.visit($.object),this.scopeManager.__nestWithScope($),this.visit($.body),this.close($)}VariableDeclaration($){let pe=$.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let K=0,le=$.declarations.length;Kx)return!1;if(q+=P[z+1],q>=x)return!0}return!1}function d(x,P){return x<65?x===36:x<91?!0:x<97?x===95:x<123?!0:x<=65535?x>=170&&p.test(String.fromCharCode(x)):P===!1?!1:f(x,n)}function m(x,P){return x<48?x===36:x<58?!0:x<65?!1:x<91?!0:x<97?x===95:x<123?!0:x<=65535?x>=170&&h.test(String.fromCharCode(x)):P===!1?!1:f(x,n)||f(x,s)}var g=function(P,q){q===void 0&&(q={}),this.label=P,this.keyword=q.keyword,this.beforeExpr=!!q.beforeExpr,this.startsExpr=!!q.startsExpr,this.isLoop=!!q.isLoop,this.isAssign=!!q.isAssign,this.prefix=!!q.prefix,this.postfix=!!q.postfix,this.binop=q.binop||null,this.updateContext=null};function y(x,P){return new g(x,{beforeExpr:!0,binop:P})}var b={beforeExpr:!0},v={startsExpr:!0},S={};function C(x,P){return P===void 0&&(P={}),P.keyword=x,S[x]=new g(x,P)}var O={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),privateId:new g("privateId",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",b),semi:new g(";",b),colon:new g(":",b),dot:new g("."),question:new g("?",b),questionDot:new g("?."),arrow:new g("=>",b),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",b),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:y("||",1),logicalAND:y("&&",2),bitwiseOR:y("|",3),bitwiseXOR:y("^",4),bitwiseAND:y("&",5),equality:y("==/!=/===/!==",6),relational:y("/<=/>=",7),bitShift:y("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:y("%",10),star:y("*",10),slash:y("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:y("??",1),_break:C("break"),_case:C("case",b),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",b),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",b),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",v),_if:C("if"),_return:C("return",b),_switch:C("switch"),_throw:C("throw",b),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",v),_super:C("super",v),_class:C("class",v),_extends:C("extends",b),_export:C("export"),_import:C("import",v),_null:C("null",v),_true:C("true",v),_false:C("false",v),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(w.source,"g");function k(x){return x===10||x===13||x===8232||x===8233}function A(x,P,q){q===void 0&&(q=x.length);for(var z=P;z>10)+55296,(x&1023)+56320))}var U=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,V=function(P,q){this.line=P,this.column=q};V.prototype.offset=function(P){return new V(this.line,this.column+P)};var ae=function(P,q,z){this.start=q,this.end=z,P.sourceFile!==null&&(this.source=P.sourceFile)};function se(x,P){for(var q=1,z=0;;){var ge=A(x,z,P);if(ge<0)return new V(q,P-z);++q,z=ge}}var ve={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},H=!1;function he(x){var P={};for(var q in ve)P[q]=x&&j(x,q)?x[q]:ve[q];if(P.ecmaVersion==="latest"?P.ecmaVersion=1e8:P.ecmaVersion==null?(!H&&typeof console=="object"&&console.warn&&(H=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. +Defaulting to 2020, but this will stop working in the future.`)),P.ecmaVersion=11):P.ecmaVersion>=2015&&(P.ecmaVersion-=2009),P.allowReserved==null&&(P.allowReserved=P.ecmaVersion<5),(!x||x.allowHashBang==null)&&(P.allowHashBang=P.ecmaVersion>=14),Q(P.onToken)){var z=P.onToken;P.onToken=function(ge){return z.push(ge)}}return Q(P.onComment)&&(P.onComment=$(P,P.onComment)),P}function $(x,P){return function(q,z,ge,Fe,Ne,He){var Je={type:q?"Block":"Line",value:z,start:ge,end:Fe};x.locations&&(Je.loc=new ae(this,Ne,He)),x.ranges&&(Je.range=[ge,Fe]),P.push(Je)}}var pe=1,K=2,le=4,xe=8,Le=16,qe=32,rt=64,ht=128,pt=256,Et=pe|K|pt;function X(x,P){return K|(x?le:0)|(P?xe:0)}var we=0,Ve=1,et=2,it=3,st=4,Ct=5,bt=function(P,q,z){this.options=P=he(P),this.sourceFile=P.sourceFile,this.keywords=N(u[P.ecmaVersion>=6?6:P.sourceType==="module"?"5module":5]);var ge="";P.allowReserved!==!0&&(ge=l[P.ecmaVersion>=6?6:P.ecmaVersion===5?5:3],P.sourceType==="module"&&(ge+=" await")),this.reservedWords=N(ge);var Fe=(ge?ge+" ":"")+l.strict;this.reservedWordsStrict=N(Fe),this.reservedWordsStrictBind=N(Fe+" "+l.strictBind),this.input=String(q),this.containsEsc=!1,z?(this.pos=z,this.lineStart=this.input.lastIndexOf(` +`,z-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=O.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=P.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&&P.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(pe),this.regexpState=null,this.privateNameStack=[]},Dt={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}};bt.prototype.parse=function(){var P=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(P)},Dt.inFunction.get=function(){return(this.currentVarScope().flags&K)>0},Dt.inGenerator.get=function(){return(this.currentVarScope().flags&xe)>0&&!this.currentVarScope().inClassFieldInit},Dt.inAsync.get=function(){return(this.currentVarScope().flags&le)>0&&!this.currentVarScope().inClassFieldInit},Dt.canAwait.get=function(){for(var x=this.scopeStack.length-1;x>=0;x--){var P=this.scopeStack[x];if(P.inClassFieldInit||P.flags&pt)return!1;if(P.flags&K)return(P.flags&le)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Dt.allowSuper.get=function(){var x=this.currentThisScope(),P=x.flags,q=x.inClassFieldInit;return(P&rt)>0||q||this.options.allowSuperOutsideMethod},Dt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ht)>0},Dt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Dt.allowNewDotTarget.get=function(){var x=this.currentThisScope(),P=x.flags,q=x.inClassFieldInit;return(P&(K|pt))>0||q},Dt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&pt)>0},bt.extend=function(){for(var P=[],q=arguments.length;q--;)P[q]=arguments[q];for(var z=this,ge=0;ge=,?^&]/.test(ge)||ge==="!"&&this.input.charAt(z+1)==="=")}x+=P[0].length,_.lastIndex=x,x+=_.exec(this.input)[0].length,this.input[x]===";"&&x++}},_t.eat=function(x){return this.type===x?(this.next(),!0):!1},_t.isContextual=function(x){return this.type===O.name&&this.value===x&&!this.containsEsc},_t.eatContextual=function(x){return this.isContextual(x)?(this.next(),!0):!1},_t.expectContextual=function(x){this.eatContextual(x)||this.unexpected()},_t.canInsertSemicolon=function(){return this.type===O.eof||this.type===O.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},_t.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},_t.semicolon=function(){!this.eat(O.semi)&&!this.insertSemicolon()&&this.unexpected()},_t.afterTrailingComma=function(x,P){if(this.type===x)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),P||this.next(),!0},_t.expect=function(x){this.eat(x)||this.unexpected()},_t.unexpected=function(x){this.raise(x??this.start,"Unexpected token")};var vt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};_t.checkPatternErrors=function(x,P){if(x){x.trailingComma>-1&&this.raiseRecoverable(x.trailingComma,"Comma is not permitted after the rest element");var q=P?x.parenthesizedAssign:x.parenthesizedBind;q>-1&&this.raiseRecoverable(q,P?"Assigning to rvalue":"Parenthesized pattern")}},_t.checkExpressionErrors=function(x,P){if(!x)return!1;var q=x.shorthandAssign,z=x.doubleProto;if(!P)return q>=0||z>=0;q>=0&&this.raise(q,"Shorthand property assignments are valid only in destructuring patterns"),z>=0&&this.raiseRecoverable(z,"Redefinition of __proto__ property")},_t.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&z<56320)return!0;if(d(z,!0)){for(var ge=q+1;m(z=this.input.charCodeAt(ge),!0);)++ge;if(z===92||z>55295&&z<56320)return!0;var Fe=this.input.slice(q,ge);if(!c.test(Fe))return!0}return!1},Ye.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;_.lastIndex=this.pos;var x=_.exec(this.input),P=this.pos+x[0].length,q;return!w.test(this.input.slice(this.pos,P))&&this.input.slice(P,P+8)==="function"&&(P+8===this.input.length||!(m(q=this.input.charCodeAt(P+8))||q>55295&&q<56320))},Ye.parseStatement=function(x,P,q){var z=this.type,ge=this.startNode(),Fe;switch(this.isLet(x)&&(z=O._var,Fe="let"),z){case O._break:case O._continue:return this.parseBreakContinueStatement(ge,z.keyword);case O._debugger:return this.parseDebuggerStatement(ge);case O._do:return this.parseDoStatement(ge);case O._for:return this.parseForStatement(ge);case O._function:return x&&(this.strict||x!=="if"&&x!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ge,!1,!x);case O._class:return x&&this.unexpected(),this.parseClass(ge,!0);case O._if:return this.parseIfStatement(ge);case O._return:return this.parseReturnStatement(ge);case O._switch:return this.parseSwitchStatement(ge);case O._throw:return this.parseThrowStatement(ge);case O._try:return this.parseTryStatement(ge);case O._const:case O._var:return Fe=Fe||this.value,x&&Fe!=="var"&&this.unexpected(),this.parseVarStatement(ge,Fe);case O._while:return this.parseWhileStatement(ge);case O._with:return this.parseWithStatement(ge);case O.braceL:return this.parseBlock(!0,ge);case O.semi:return this.parseEmptyStatement(ge);case O._export:case O._import:if(this.options.ecmaVersion>10&&z===O._import){_.lastIndex=this.pos;var Ne=_.exec(this.input),He=this.pos+Ne[0].length,Je=this.input.charCodeAt(He);if(Je===40||Je===46)return this.parseExpressionStatement(ge,this.parseExpression())}return this.options.allowImportExportEverywhere||(P||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'")),z===O._import?this.parseImport(ge):this.parseExport(ge,q);default:if(this.isAsyncFunction())return x&&this.unexpected(),this.next(),this.parseFunctionStatement(ge,!0,!x);var St=this.value,At=this.parseExpression();return z===O.name&&At.type==="Identifier"&&this.eat(O.colon)?this.parseLabeledStatement(ge,St,At,x):this.parseExpressionStatement(ge,At)}},Ye.parseBreakContinueStatement=function(x,P){var q=P==="break";this.next(),this.eat(O.semi)||this.insertSemicolon()?x.label=null:this.type!==O.name?this.unexpected():(x.label=this.parseIdent(),this.semicolon());for(var z=0;z=6?this.eat(O.semi):this.semicolon(),this.finishNode(x,"DoWhileStatement")},Ye.parseForStatement=function(x){this.next();var P=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Kt),this.enterScope(0),this.expect(O.parenL),this.type===O.semi)return P>-1&&this.unexpected(P),this.parseFor(x,null);var q=this.isLet();if(this.type===O._var||this.type===O._const||q){var z=this.startNode(),ge=q?"let":this.value;return this.next(),this.parseVar(z,!0,ge),this.finishNode(z,"VariableDeclaration"),(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&z.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===O._in?P>-1&&this.unexpected(P):x.await=P>-1),this.parseForIn(x,z)):(P>-1&&this.unexpected(P),this.parseFor(x,z))}var Fe=this.isContextual("let"),Ne=!1,He=new vt,Je=this.parseExpression(P>-1?"await":!0,He);return this.type===O._in||(Ne=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===O._in?P>-1&&this.unexpected(P):x.await=P>-1),Fe&&Ne&&this.raise(Je.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Je,!1,He),this.checkLValPattern(Je),this.parseForIn(x,Je)):(this.checkExpressionErrors(He,!0),P>-1&&this.unexpected(P),this.parseFor(x,Je))},Ye.parseFunctionStatement=function(x,P,q){return this.next(),this.parseFunction(x,ne|(q?0:ee),!1,P)},Ye.parseIfStatement=function(x){return this.next(),x.test=this.parseParenExpression(),x.consequent=this.parseStatement("if"),x.alternate=this.eat(O._else)?this.parseStatement("if"):null,this.finishNode(x,"IfStatement")},Ye.parseReturnStatement=function(x){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(O.semi)||this.insertSemicolon()?x.argument=null:(x.argument=this.parseExpression(),this.semicolon()),this.finishNode(x,"ReturnStatement")},Ye.parseSwitchStatement=function(x){this.next(),x.discriminant=this.parseParenExpression(),x.cases=[],this.expect(O.braceL),this.labels.push(De),this.enterScope(0);for(var P,q=!1;this.type!==O.braceR;)if(this.type===O._case||this.type===O._default){var z=this.type===O._case;P&&this.finishNode(P,"SwitchCase"),x.cases.push(P=this.startNode()),P.consequent=[],this.next(),z?P.test=this.parseExpression():(q&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),q=!0,P.test=null),this.expect(O.colon)}else P||this.unexpected(),P.consequent.push(this.parseStatement(null));return this.exitScope(),P&&this.finishNode(P,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(x,"SwitchStatement")},Ye.parseThrowStatement=function(x){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),x.argument=this.parseExpression(),this.semicolon(),this.finishNode(x,"ThrowStatement")};var G=[];Ye.parseCatchClauseParam=function(){var x=this.parseBindingAtom(),P=x.type==="Identifier";return this.enterScope(P?qe:0),this.checkLValPattern(x,P?st:et),this.expect(O.parenR),x},Ye.parseTryStatement=function(x){if(this.next(),x.block=this.parseBlock(),x.handler=null,this.type===O._catch){var P=this.startNode();this.next(),this.eat(O.parenL)?P.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),P.param=null,this.enterScope(0)),P.body=this.parseBlock(!1),this.exitScope(),x.handler=this.finishNode(P,"CatchClause")}return x.finalizer=this.eat(O._finally)?this.parseBlock():null,!x.handler&&!x.finalizer&&this.raise(x.start,"Missing catch or finally clause"),this.finishNode(x,"TryStatement")},Ye.parseVarStatement=function(x,P,q){return this.next(),this.parseVar(x,!1,P,q),this.semicolon(),this.finishNode(x,"VariableDeclaration")},Ye.parseWhileStatement=function(x){return this.next(),x.test=this.parseParenExpression(),this.labels.push(Kt),x.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(x,"WhileStatement")},Ye.parseWithStatement=function(x){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),x.object=this.parseParenExpression(),x.body=this.parseStatement("with"),this.finishNode(x,"WithStatement")},Ye.parseEmptyStatement=function(x){return this.next(),this.finishNode(x,"EmptyStatement")},Ye.parseLabeledStatement=function(x,P,q,z){for(var ge=0,Fe=this.labels;ge=0;Je--){var St=this.labels[Je];if(St.statementStart===x.start)St.statementStart=this.start,St.kind=He;else break}return this.labels.push({name:P,kind:He,statementStart:this.start}),x.body=this.parseStatement(z?z.indexOf("label")===-1?z+"label":z:"label"),this.labels.pop(),x.label=q,this.finishNode(x,"LabeledStatement")},Ye.parseExpressionStatement=function(x,P){return x.expression=P,this.semicolon(),this.finishNode(x,"ExpressionStatement")},Ye.parseBlock=function(x,P,q){for(x===void 0&&(x=!0),P===void 0&&(P=this.startNode()),P.body=[],this.expect(O.braceL),x&&this.enterScope(0);this.type!==O.braceR;){var z=this.parseStatement(null);P.body.push(z)}return q&&(this.strict=!1),this.next(),x&&this.exitScope(),this.finishNode(P,"BlockStatement")},Ye.parseFor=function(x,P){return x.init=P,this.expect(O.semi),x.test=this.type===O.semi?null:this.parseExpression(),this.expect(O.semi),x.update=this.type===O.parenR?null:this.parseExpression(),this.expect(O.parenR),x.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(x,"ForStatement")},Ye.parseForIn=function(x,P){var q=this.type===O._in;return this.next(),P.type==="VariableDeclaration"&&P.declarations[0].init!=null&&(!q||this.options.ecmaVersion<8||this.strict||P.kind!=="var"||P.declarations[0].id.type!=="Identifier")&&this.raise(P.start,(q?"for-in":"for-of")+" loop variable declaration may not have an initializer"),x.left=P,x.right=q?this.parseExpression():this.parseMaybeAssign(),this.expect(O.parenR),x.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(x,q?"ForInStatement":"ForOfStatement")},Ye.parseVar=function(x,P,q,z){for(x.declarations=[],x.kind=q;;){var ge=this.startNode();if(this.parseVarId(ge,q),this.eat(O.eq)?ge.init=this.parseMaybeAssign(P):!z&&q==="const"&&!(this.type===O._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!z&&ge.id.type!=="Identifier"&&!(P&&(this.type===O._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):ge.init=null,x.declarations.push(this.finishNode(ge,"VariableDeclarator")),!this.eat(O.comma))break}return x},Ye.parseVarId=function(x,P){x.id=this.parseBindingAtom(),this.checkLValPattern(x.id,P==="var"?Ve:et,!1)};var ne=1,ee=2,oe=4;Ye.parseFunction=function(x,P,q,z,ge){this.initFunction(x),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!z)&&(this.type===O.star&&P&ee&&this.unexpected(),x.generator=this.eat(O.star)),this.options.ecmaVersion>=8&&(x.async=!!z),P&ne&&(x.id=P&oe&&this.type!==O.name?null:this.parseIdent(),x.id&&!(P&ee)&&this.checkLValSimple(x.id,this.strict||x.generator||x.async?this.treatFunctionsAsVar?Ve:et:it));var Fe=this.yieldPos,Ne=this.awaitPos,He=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(X(x.async,x.generator)),P&ne||(x.id=this.type===O.name?this.parseIdent():null),this.parseFunctionParams(x),this.parseFunctionBody(x,q,!1,ge),this.yieldPos=Fe,this.awaitPos=Ne,this.awaitIdentPos=He,this.finishNode(x,P&ne?"FunctionDeclaration":"FunctionExpression")},Ye.parseFunctionParams=function(x){this.expect(O.parenL),x.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ye.parseClass=function(x,P){this.next();var q=this.strict;this.strict=!0,this.parseClassId(x,P),this.parseClassSuper(x);var z=this.enterClassBody(),ge=this.startNode(),Fe=!1;for(ge.body=[],this.expect(O.braceL);this.type!==O.braceR;){var Ne=this.parseClassElement(x.superClass!==null);Ne&&(ge.body.push(Ne),Ne.type==="MethodDefinition"&&Ne.kind==="constructor"?(Fe&&this.raiseRecoverable(Ne.start,"Duplicate constructor in the same class"),Fe=!0):Ne.key&&Ne.key.type==="PrivateIdentifier"&&ce(z,Ne)&&this.raiseRecoverable(Ne.key.start,"Identifier '#"+Ne.key.name+"' has already been declared"))}return this.strict=q,this.next(),x.body=this.finishNode(ge,"ClassBody"),this.exitClassBody(),this.finishNode(x,P?"ClassDeclaration":"ClassExpression")},Ye.parseClassElement=function(x){if(this.eat(O.semi))return null;var P=this.options.ecmaVersion,q=this.startNode(),z="",ge=!1,Fe=!1,Ne="method",He=!1;if(this.eatContextual("static")){if(P>=13&&this.eat(O.braceL))return this.parseClassStaticBlock(q),q;this.isClassElementNameStart()||this.type===O.star?He=!0:z="static"}if(q.static=He,!z&&P>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===O.star)&&!this.canInsertSemicolon()?Fe=!0:z="async"),!z&&(P>=9||!Fe)&&this.eat(O.star)&&(ge=!0),!z&&!Fe&&!ge){var Je=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Ne=Je:z=Je)}if(z?(q.computed=!1,q.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),q.key.name=z,this.finishNode(q.key,"Identifier")):this.parseClassElementName(q),P<13||this.type===O.parenL||Ne!=="method"||ge||Fe){var St=!q.static&&Z(q,"constructor"),At=St&&x;St&&Ne!=="method"&&this.raise(q.key.start,"Constructor can't have get/set modifier"),q.kind=St?"constructor":Ne,this.parseClassMethod(q,ge,Fe,At)}else this.parseClassField(q);return q},Ye.isClassElementNameStart=function(){return this.type===O.name||this.type===O.privateId||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword},Ye.parseClassElementName=function(x){this.type===O.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),x.computed=!1,x.key=this.parsePrivateIdent()):this.parsePropertyName(x)},Ye.parseClassMethod=function(x,P,q,z){var ge=x.key;x.kind==="constructor"?(P&&this.raise(ge.start,"Constructor can't be a generator"),q&&this.raise(ge.start,"Constructor can't be an async method")):x.static&&Z(x,"prototype")&&this.raise(ge.start,"Classes may not have a static property named prototype");var Fe=x.value=this.parseMethod(P,q,z);return x.kind==="get"&&Fe.params.length!==0&&this.raiseRecoverable(Fe.start,"getter should have no params"),x.kind==="set"&&Fe.params.length!==1&&this.raiseRecoverable(Fe.start,"setter should have exactly one param"),x.kind==="set"&&Fe.params[0].type==="RestElement"&&this.raiseRecoverable(Fe.params[0].start,"Setter cannot use rest params"),this.finishNode(x,"MethodDefinition")},Ye.parseClassField=function(x){if(Z(x,"constructor")?this.raise(x.key.start,"Classes can't have a field named 'constructor'"):x.static&&Z(x,"prototype")&&this.raise(x.key.start,"Classes can't have a static field named 'prototype'"),this.eat(O.eq)){var P=this.currentThisScope(),q=P.inClassFieldInit;P.inClassFieldInit=!0,x.value=this.parseMaybeAssign(),P.inClassFieldInit=q}else x.value=null;return this.semicolon(),this.finishNode(x,"PropertyDefinition")},Ye.parseClassStaticBlock=function(x){x.body=[];var P=this.labels;for(this.labels=[],this.enterScope(pt|rt);this.type!==O.braceR;){var q=this.parseStatement(null);x.body.push(q)}return this.next(),this.exitScope(),this.labels=P,this.finishNode(x,"StaticBlock")},Ye.parseClassId=function(x,P){this.type===O.name?(x.id=this.parseIdent(),P&&this.checkLValSimple(x.id,et,!1)):(P===!0&&this.unexpected(),x.id=null)},Ye.parseClassSuper=function(x){x.superClass=this.eat(O._extends)?this.parseExprSubscripts(null,!1):null},Ye.enterClassBody=function(){var x={declared:Object.create(null),used:[]};return this.privateNameStack.push(x),x.declared},Ye.exitClassBody=function(){var x=this.privateNameStack.pop(),P=x.declared,q=x.used;if(this.options.checkPrivateFields)for(var z=this.privateNameStack.length,ge=z===0?null:this.privateNameStack[z-1],Fe=0;Fe=11&&(this.eatContextual("as")?(x.exported=this.parseModuleExportName(),this.checkExport(P,x.exported,this.lastTokStart)):x.exported=null),this.expectContextual("from"),this.type!==O.string&&this.unexpected(),x.source=this.parseExprAtom(),this.semicolon(),this.finishNode(x,"ExportAllDeclaration")},Ye.parseExport=function(x,P){if(this.next(),this.eat(O.star))return this.parseExportAllDeclaration(x,P);if(this.eat(O._default))return this.checkExport(P,"default",this.lastTokStart),x.declaration=this.parseExportDefaultDeclaration(),this.finishNode(x,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())x.declaration=this.parseExportDeclaration(x),x.declaration.type==="VariableDeclaration"?this.checkVariableExport(P,x.declaration.declarations):this.checkExport(P,x.declaration.id,x.declaration.id.start),x.specifiers=[],x.source=null;else{if(x.declaration=null,x.specifiers=this.parseExportSpecifiers(P),this.eatContextual("from"))this.type!==O.string&&this.unexpected(),x.source=this.parseExprAtom();else{for(var q=0,z=x.specifiers;q=13&&this.type===O.string){var x=this.parseLiteral(this.value);return U.test(x.value)&&this.raise(x.start,"An export name cannot include a lone surrogate."),x}return this.parseIdent(!0)},Ye.adaptDirectivePrologue=function(x){for(var P=0;P=5&&x.type==="ExpressionStatement"&&x.expression.type==="Literal"&&typeof x.expression.value=="string"&&(this.input[x.start]==='"'||this.input[x.start]==="'")};var J=bt.prototype;J.toAssignable=function(x,P,q){if(this.options.ecmaVersion>=6&&x)switch(x.type){case"Identifier":this.inAsync&&x.name==="await"&&this.raise(x.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":x.type="ObjectPattern",q&&this.checkPatternErrors(q,!0);for(var z=0,ge=x.properties;z=8&&!He&&Je.name==="async"&&!this.canInsertSemicolon()&&this.eat(O._function))return this.overrideContext(de.f_expr),this.parseFunction(this.startNodeAt(Fe,Ne),0,!1,!0,P);if(ge&&!this.canInsertSemicolon()){if(this.eat(O.arrow))return this.parseArrowExpression(this.startNodeAt(Fe,Ne),[Je],!1,P);if(this.options.ecmaVersion>=8&&Je.name==="async"&&this.type===O.name&&!He&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Je=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(O.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Fe,Ne),[Je],!0,P)}return Je;case O.regexp:var St=this.value;return z=this.parseLiteral(St.value),z.regex={pattern:St.pattern,flags:St.flags},z;case O.num:case O.string:return this.parseLiteral(this.value);case O._null:case O._true:case O._false:return z=this.startNode(),z.value=this.type===O._null?null:this.type===O._true,z.raw=this.type.keyword,this.next(),this.finishNode(z,"Literal");case O.parenL:var At=this.start,ar=this.parseParenAndDistinguishExpression(ge,P);return x&&(x.parenthesizedAssign<0&&!this.isSimpleAssignTarget(ar)&&(x.parenthesizedAssign=At),x.parenthesizedBind<0&&(x.parenthesizedBind=At)),ar;case O.bracketL:return z=this.startNode(),this.next(),z.elements=this.parseExprList(O.bracketR,!0,!0,x),this.finishNode(z,"ArrayExpression");case O.braceL:return this.overrideContext(de.b_expr),this.parseObj(!1,x);case O._function:return z=this.startNode(),this.next(),this.parseFunction(z,0);case O._class:return this.parseClass(this.startNode(),!1);case O._new:return this.parseNew();case O.backQuote:return this.parseTemplate();case O._import:return this.options.ecmaVersion>=11?this.parseExprImport(q):this.unexpected();default:return this.parseExprAtomDefault()}},L.parseExprAtomDefault=function(){this.unexpected()},L.parseExprImport=function(x){var P=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===O.parenL&&!x)return this.parseDynamicImport(P);if(this.type===O.dot){var q=this.startNodeAt(P.start,P.loc&&P.loc.start);return q.name="import",P.meta=this.finishNode(q,"Identifier"),this.parseImportMeta(P)}else this.unexpected()},L.parseDynamicImport=function(x){if(this.next(),x.source=this.parseMaybeAssign(),!this.eat(O.parenR)){var P=this.start;this.eat(O.comma)&&this.eat(O.parenR)?this.raiseRecoverable(P,"Trailing comma is not allowed in import()"):this.unexpected(P)}return this.finishNode(x,"ImportExpression")},L.parseImportMeta=function(x){this.next();var P=this.containsEsc;return x.property=this.parseIdent(!0),x.property.name!=="meta"&&this.raiseRecoverable(x.property.start,"The only valid meta property for import is 'import.meta'"),P&&this.raiseRecoverable(x.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(x.start,"Cannot use 'import.meta' outside a module"),this.finishNode(x,"MetaProperty")},L.parseLiteral=function(x){var P=this.startNode();return P.value=x,P.raw=this.input.slice(this.start,this.end),P.raw.charCodeAt(P.raw.length-1)===110&&(P.bigint=P.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(P,"Literal")},L.parseParenExpression=function(){this.expect(O.parenL);var x=this.parseExpression();return this.expect(O.parenR),x},L.shouldParseArrow=function(x){return!this.canInsertSemicolon()},L.parseParenAndDistinguishExpression=function(x,P){var q=this.start,z=this.startLoc,ge,Fe=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Ne=this.start,He=this.startLoc,Je=[],St=!0,At=!1,ar=new vt,An=this.yieldPos,js=this.awaitPos,Kn;for(this.yieldPos=0,this.awaitPos=0;this.type!==O.parenR;)if(St?St=!1:this.expect(O.comma),Fe&&this.afterTrailingComma(O.parenR,!0)){At=!0;break}else if(this.type===O.ellipsis){Kn=this.start,Je.push(this.parseParenItem(this.parseRestBinding())),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else Je.push(this.parseMaybeAssign(!1,ar,this.parseParenItem));var Ci=this.lastTokEnd,ms=this.lastTokEndLoc;if(this.expect(O.parenR),x&&this.shouldParseArrow(Je)&&this.eat(O.arrow))return this.checkPatternErrors(ar,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=An,this.awaitPos=js,this.parseParenArrowList(q,z,Je,P);(!Je.length||At)&&this.unexpected(this.lastTokStart),Kn&&this.unexpected(Kn),this.checkExpressionErrors(ar,!0),this.yieldPos=An||this.yieldPos,this.awaitPos=js||this.awaitPos,Je.length>1?(ge=this.startNodeAt(Ne,He),ge.expressions=Je,this.finishNodeAt(ge,"SequenceExpression",Ci,ms)):ge=Je[0]}else ge=this.parseParenExpression();if(this.options.preserveParens){var Jn=this.startNodeAt(q,z);return Jn.expression=ge,this.finishNode(Jn,"ParenthesizedExpression")}else return ge},L.parseParenItem=function(x){return x},L.parseParenArrowList=function(x,P,q,z){return this.parseArrowExpression(this.startNodeAt(x,P),q,!1,z)};var Te=[];L.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var x=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===O.dot){var P=this.startNodeAt(x.start,x.loc&&x.loc.start);P.name="new",x.meta=this.finishNode(P,"Identifier"),this.next();var q=this.containsEsc;return x.property=this.parseIdent(!0),x.property.name!=="target"&&this.raiseRecoverable(x.property.start,"The only valid meta property for new is 'new.target'"),q&&this.raiseRecoverable(x.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(x.start,"'new.target' can only be used in functions and class static block"),this.finishNode(x,"MetaProperty")}var z=this.start,ge=this.startLoc;return x.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),z,ge,!0,!1),this.eat(O.parenL)?x.arguments=this.parseExprList(O.parenR,this.options.ecmaVersion>=8,!1):x.arguments=Te,this.finishNode(x,"NewExpression")},L.parseTemplateElement=function(x){var P=x.isTagged,q=this.startNode();return this.type===O.invalidTemplate?(P||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),q.value={raw:this.value,cooked:null}):q.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,` +`),cooked:this.value},this.next(),q.tail=this.type===O.backQuote,this.finishNode(q,"TemplateElement")},L.parseTemplate=function(x){x===void 0&&(x={});var P=x.isTagged;P===void 0&&(P=!1);var q=this.startNode();this.next(),q.expressions=[];var z=this.parseTemplateElement({isTagged:P});for(q.quasis=[z];!z.tail;)this.type===O.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(O.dollarBraceL),q.expressions.push(this.parseExpression()),this.expect(O.braceR),q.quasis.push(z=this.parseTemplateElement({isTagged:P}));return this.next(),this.finishNode(q,"TemplateLiteral")},L.isAsyncProp=function(x){return!x.computed&&x.key.type==="Identifier"&&x.key.name==="async"&&(this.type===O.name||this.type===O.num||this.type===O.string||this.type===O.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===O.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},L.parseObj=function(x,P){var q=this.startNode(),z=!0,ge={};for(q.properties=[],this.next();!this.eat(O.braceR);){if(z)z=!1;else if(this.expect(O.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(O.braceR))break;var Fe=this.parseProperty(x,P);x||this.checkPropClash(Fe,ge,P),q.properties.push(Fe)}return this.finishNode(q,x?"ObjectPattern":"ObjectExpression")},L.parseProperty=function(x,P){var q=this.startNode(),z,ge,Fe,Ne;if(this.options.ecmaVersion>=9&&this.eat(O.ellipsis))return x?(q.argument=this.parseIdent(!1),this.type===O.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(q,"RestElement")):(q.argument=this.parseMaybeAssign(!1,P),this.type===O.comma&&P&&P.trailingComma<0&&(P.trailingComma=this.start),this.finishNode(q,"SpreadElement"));this.options.ecmaVersion>=6&&(q.method=!1,q.shorthand=!1,(x||P)&&(Fe=this.start,Ne=this.startLoc),x||(z=this.eat(O.star)));var He=this.containsEsc;return this.parsePropertyName(q),!x&&!He&&this.options.ecmaVersion>=8&&!z&&this.isAsyncProp(q)?(ge=!0,z=this.options.ecmaVersion>=9&&this.eat(O.star),this.parsePropertyName(q)):ge=!1,this.parsePropertyValue(q,x,z,ge,Fe,Ne,P,He),this.finishNode(q,"Property")},L.parseGetterSetter=function(x){x.kind=x.key.name,this.parsePropertyName(x),x.value=this.parseMethod(!1);var P=x.kind==="get"?0:1;if(x.value.params.length!==P){var q=x.value.start;x.kind==="get"?this.raiseRecoverable(q,"getter should have no params"):this.raiseRecoverable(q,"setter should have exactly one param")}else x.kind==="set"&&x.value.params[0].type==="RestElement"&&this.raiseRecoverable(x.value.params[0].start,"Setter cannot use rest params")},L.parsePropertyValue=function(x,P,q,z,ge,Fe,Ne,He){(q||z)&&this.type===O.colon&&this.unexpected(),this.eat(O.colon)?(x.value=P?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Ne),x.kind="init"):this.options.ecmaVersion>=6&&this.type===O.parenL?(P&&this.unexpected(),x.kind="init",x.method=!0,x.value=this.parseMethod(q,z)):!P&&!He&&this.options.ecmaVersion>=5&&!x.computed&&x.key.type==="Identifier"&&(x.key.name==="get"||x.key.name==="set")&&this.type!==O.comma&&this.type!==O.braceR&&this.type!==O.eq?((q||z)&&this.unexpected(),this.parseGetterSetter(x)):this.options.ecmaVersion>=6&&!x.computed&&x.key.type==="Identifier"?((q||z)&&this.unexpected(),this.checkUnreserved(x.key),x.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=ge),x.kind="init",P?x.value=this.parseMaybeDefault(ge,Fe,this.copyNode(x.key)):this.type===O.eq&&Ne?(Ne.shorthandAssign<0&&(Ne.shorthandAssign=this.start),x.value=this.parseMaybeDefault(ge,Fe,this.copyNode(x.key))):x.value=this.copyNode(x.key),x.shorthand=!0):this.unexpected()},L.parsePropertyName=function(x){if(this.options.ecmaVersion>=6){if(this.eat(O.bracketL))return x.computed=!0,x.key=this.parseMaybeAssign(),this.expect(O.bracketR),x.key;x.computed=!1}return x.key=this.type===O.num||this.type===O.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},L.initFunction=function(x){x.id=null,this.options.ecmaVersion>=6&&(x.generator=x.expression=!1),this.options.ecmaVersion>=8&&(x.async=!1)},L.parseMethod=function(x,P,q){var z=this.startNode(),ge=this.yieldPos,Fe=this.awaitPos,Ne=this.awaitIdentPos;return this.initFunction(z),this.options.ecmaVersion>=6&&(z.generator=x),this.options.ecmaVersion>=8&&(z.async=!!P),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(X(P,z.generator)|rt|(q?ht:0)),this.expect(O.parenL),z.params=this.parseBindingList(O.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(z,!1,!0,!1),this.yieldPos=ge,this.awaitPos=Fe,this.awaitIdentPos=Ne,this.finishNode(z,"FunctionExpression")},L.parseArrowExpression=function(x,P,q,z){var ge=this.yieldPos,Fe=this.awaitPos,Ne=this.awaitIdentPos;return this.enterScope(X(q,!1)|Le),this.initFunction(x),this.options.ecmaVersion>=8&&(x.async=!!q),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,x.params=this.toAssignableList(P,!0),this.parseFunctionBody(x,!0,!1,z),this.yieldPos=ge,this.awaitPos=Fe,this.awaitIdentPos=Ne,this.finishNode(x,"ArrowFunctionExpression")},L.parseFunctionBody=function(x,P,q,z){var ge=P&&this.type!==O.braceL,Fe=this.strict,Ne=!1;if(ge)x.body=this.parseMaybeAssign(z),x.expression=!0,this.checkParams(x,!1);else{var He=this.options.ecmaVersion>=7&&!this.isSimpleParamList(x.params);(!Fe||He)&&(Ne=this.strictDirective(this.end),Ne&&He&&this.raiseRecoverable(x.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Je=this.labels;this.labels=[],Ne&&(this.strict=!0),this.checkParams(x,!Fe&&!Ne&&!P&&!q&&this.isSimpleParamList(x.params)),this.strict&&x.id&&this.checkLValSimple(x.id,Ct),x.body=this.parseBlock(!1,void 0,Ne&&!Fe),x.expression=!1,this.adaptDirectivePrologue(x.body.body),this.labels=Je}this.exitScope()},L.isSimpleParamList=function(x){for(var P=0,q=x;P-1||ge.functions.indexOf(x)>-1||ge.var.indexOf(x)>-1,ge.lexical.push(x),this.inModule&&ge.flags&pe&&delete this.undefinedExports[x]}else if(P===st){var Fe=this.currentScope();Fe.lexical.push(x)}else if(P===it){var Ne=this.currentScope();this.treatFunctionsAsVar?z=Ne.lexical.indexOf(x)>-1:z=Ne.lexical.indexOf(x)>-1||Ne.var.indexOf(x)>-1,Ne.functions.push(x)}else for(var He=this.scopeStack.length-1;He>=0;--He){var Je=this.scopeStack[He];if(Je.lexical.indexOf(x)>-1&&!(Je.flags&qe&&Je.lexical[0]===x)||!this.treatFunctionsAsVarInScope(Je)&&Je.functions.indexOf(x)>-1){z=!0;break}if(Je.var.push(x),this.inModule&&Je.flags&pe&&delete this.undefinedExports[x],Je.flags&Et)break}z&&this.raiseRecoverable(q,"Identifier '"+x+"' has already been declared")},$e.checkLocalExport=function(x){this.scopeStack[0].lexical.indexOf(x.name)===-1&&this.scopeStack[0].var.indexOf(x.name)===-1&&(this.undefinedExports[x.name]=x)},$e.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},$e.currentVarScope=function(){for(var x=this.scopeStack.length-1;;x--){var P=this.scopeStack[x];if(P.flags&Et)return P}},$e.currentThisScope=function(){for(var x=this.scopeStack.length-1;;x--){var P=this.scopeStack[x];if(P.flags&Et&&!(P.flags&Le))return P}};var Oe=function(P,q,z){this.type="",this.start=q,this.end=0,P.options.locations&&(this.loc=new ae(P,z)),P.options.directSourceFile&&(this.sourceFile=P.options.directSourceFile),P.options.ranges&&(this.range=[q,0])},Ie=bt.prototype;Ie.startNode=function(){return new Oe(this,this.start,this.startLoc)},Ie.startNodeAt=function(x,P){return new Oe(this,x,P)};function We(x,P,q,z){return x.type=P,x.end=q,this.options.locations&&(x.loc.end=z),this.options.ranges&&(x.range[1]=q),x}Ie.finishNode=function(x,P){return We.call(this,x,P,this.lastTokEnd,this.lastTokEndLoc)},Ie.finishNodeAt=function(x,P,q,z){return We.call(this,x,P,q,z)},Ie.copyNode=function(x){var P=new Oe(this,x.start,this.startLoc);for(var q in x)P[q]=x[q];return P};var be="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",re=be+" Extended_Pictographic",Y=re,fe=Y+" EBase EComp EMod EPres ExtPict",Se=fe,Ee=Se,ze={9:be,10:re,11:Y,12:fe,13:Se,14:Ee},Ke="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",mt={9:"",10:"",11:"",12:"",13:"",14:Ke},Ot="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",Pt="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",xt=Pt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ue=xt+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nt=Ue+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ge=nt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Qe=Ge+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",ut={9:Pt,10:xt,11:Ue,12:nt,13:Ge,14:Qe},dt={};function qt(x){var P=dt[x]={binary:N(ze[x]+" "+Ot),binaryOfStrings:N(mt[x]),nonBinary:{General_Category:N(Ot),Script:N(ut[x])}};P.nonBinary.Script_Extensions=P.nonBinary.Script,P.nonBinary.gc=P.nonBinary.General_Category,P.nonBinary.sc=P.nonBinary.Script,P.nonBinary.scx=P.nonBinary.Script_Extensions}for(var Qt=0,jt=[9,10,11,12,13,14];Qt=6?"uy":"")+(P.options.ecmaVersion>=9?"s":"")+(P.options.ecmaVersion>=13?"d":"")+(P.options.ecmaVersion>=15?"v":""),this.unicodeProperties=dt[P.options.ecmaVersion>=14?14:P.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!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=[]};Nt.prototype.reset=function(P,q,z){var ge=z.indexOf("v")!==-1,Fe=z.indexOf("u")!==-1;this.start=P|0,this.source=q+"",this.flags=z,ge&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Fe&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Fe&&this.parser.options.ecmaVersion>=9)},Nt.prototype.raise=function(P){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+P)},Nt.prototype.at=function(P,q){q===void 0&&(q=!1);var z=this.source,ge=z.length;if(P>=ge)return-1;var Fe=z.charCodeAt(P);if(!(q||this.switchU)||Fe<=55295||Fe>=57344||P+1>=ge)return Fe;var Ne=z.charCodeAt(P+1);return Ne>=56320&&Ne<=57343?(Fe<<10)+Ne-56613888:Fe},Nt.prototype.nextIndex=function(P,q){q===void 0&&(q=!1);var z=this.source,ge=z.length;if(P>=ge)return ge;var Fe=z.charCodeAt(P),Ne;return!(q||this.switchU)||Fe<=55295||Fe>=57344||P+1>=ge||(Ne=z.charCodeAt(P+1))<56320||Ne>57343?P+1:P+2},Nt.prototype.current=function(P){return P===void 0&&(P=!1),this.at(this.pos,P)},Nt.prototype.lookahead=function(P){return P===void 0&&(P=!1),this.at(this.nextIndex(this.pos,P),P)},Nt.prototype.advance=function(P){P===void 0&&(P=!1),this.pos=this.nextIndex(this.pos,P)},Nt.prototype.eat=function(P,q){return q===void 0&&(q=!1),this.current(q)===P?(this.advance(q),!0):!1},Nt.prototype.eatChars=function(P,q){q===void 0&&(q=!1);for(var z=this.pos,ge=0,Fe=P;ge-1&&this.raise(x.start,"Duplicate regular expression flag"),Ne==="u"&&(z=!0),Ne==="v"&&(ge=!0)}this.options.ecmaVersion>=15&&z&&ge&&this.raise(x.start,"Invalid regular expression flag")},ot.validateRegExpPattern=function(x){this.regexp_pattern(x),!x.switchN&&this.options.ecmaVersion>=9&&x.groupNames.length>0&&(x.switchN=!0,this.regexp_pattern(x))},ot.regexp_pattern=function(x){x.pos=0,x.lastIntValue=0,x.lastStringValue="",x.lastAssertionIsQuantifiable=!1,x.numCapturingParens=0,x.maxBackReference=0,x.groupNames.length=0,x.backReferenceNames.length=0,this.regexp_disjunction(x),x.pos!==x.source.length&&(x.eat(41)&&x.raise("Unmatched ')'"),(x.eat(93)||x.eat(125))&&x.raise("Lone quantifier brackets")),x.maxBackReference>x.numCapturingParens&&x.raise("Invalid escape");for(var P=0,q=x.backReferenceNames;P=9&&(q=x.eat(60)),x.eat(61)||x.eat(33))return this.regexp_disjunction(x),x.eat(41)||x.raise("Unterminated group"),x.lastAssertionIsQuantifiable=!q,!0}return x.pos=P,!1},ot.regexp_eatQuantifier=function(x,P){return P===void 0&&(P=!1),this.regexp_eatQuantifierPrefix(x,P)?(x.eat(63),!0):!1},ot.regexp_eatQuantifierPrefix=function(x,P){return x.eat(42)||x.eat(43)||x.eat(63)||this.regexp_eatBracedQuantifier(x,P)},ot.regexp_eatBracedQuantifier=function(x,P){var q=x.pos;if(x.eat(123)){var z=0,ge=-1;if(this.regexp_eatDecimalDigits(x)&&(z=x.lastIntValue,x.eat(44)&&this.regexp_eatDecimalDigits(x)&&(ge=x.lastIntValue),x.eat(125)))return ge!==-1&&ge=9?this.regexp_groupSpecifier(x):x.current()===63&&x.raise("Invalid group"),this.regexp_disjunction(x),x.eat(41))return x.numCapturingParens+=1,!0;x.raise("Unterminated group")}return!1},ot.regexp_eatExtendedAtom=function(x){return x.eat(46)||this.regexp_eatReverseSolidusAtomEscape(x)||this.regexp_eatCharacterClass(x)||this.regexp_eatUncapturingGroup(x)||this.regexp_eatCapturingGroup(x)||this.regexp_eatInvalidBracedQuantifier(x)||this.regexp_eatExtendedPatternCharacter(x)},ot.regexp_eatInvalidBracedQuantifier=function(x){return this.regexp_eatBracedQuantifier(x,!0)&&x.raise("Nothing to repeat"),!1},ot.regexp_eatSyntaxCharacter=function(x){var P=x.current();return br(P)?(x.lastIntValue=P,x.advance(),!0):!1};function br(x){return x===36||x>=40&&x<=43||x===46||x===63||x>=91&&x<=94||x>=123&&x<=125}ot.regexp_eatPatternCharacters=function(x){for(var P=x.pos,q=0;(q=x.current())!==-1&&!br(q);)x.advance();return x.pos!==P},ot.regexp_eatExtendedPatternCharacter=function(x){var P=x.current();return P!==-1&&P!==36&&!(P>=40&&P<=43)&&P!==46&&P!==63&&P!==91&&P!==94&&P!==124?(x.advance(),!0):!1},ot.regexp_groupSpecifier=function(x){if(x.eat(63)){if(this.regexp_eatGroupName(x)){x.groupNames.indexOf(x.lastStringValue)!==-1&&x.raise("Duplicate capture group name"),x.groupNames.push(x.lastStringValue);return}x.raise("Invalid group")}},ot.regexp_eatGroupName=function(x){if(x.lastStringValue="",x.eat(60)){if(this.regexp_eatRegExpIdentifierName(x)&&x.eat(62))return!0;x.raise("Invalid capture group name")}return!1},ot.regexp_eatRegExpIdentifierName=function(x){if(x.lastStringValue="",this.regexp_eatRegExpIdentifierStart(x)){for(x.lastStringValue+=R(x.lastIntValue);this.regexp_eatRegExpIdentifierPart(x);)x.lastStringValue+=R(x.lastIntValue);return!0}return!1},ot.regexp_eatRegExpIdentifierStart=function(x){var P=x.pos,q=this.options.ecmaVersion>=11,z=x.current(q);return x.advance(q),z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(x,q)&&(z=x.lastIntValue),Nr(z)?(x.lastIntValue=z,!0):(x.pos=P,!1)};function Nr(x){return d(x,!0)||x===36||x===95}ot.regexp_eatRegExpIdentifierPart=function(x){var P=x.pos,q=this.options.ecmaVersion>=11,z=x.current(q);return x.advance(q),z===92&&this.regexp_eatRegExpUnicodeEscapeSequence(x,q)&&(z=x.lastIntValue),Cr(z)?(x.lastIntValue=z,!0):(x.pos=P,!1)};function Cr(x){return m(x,!0)||x===36||x===95||x===8204||x===8205}ot.regexp_eatAtomEscape=function(x){return this.regexp_eatBackReference(x)||this.regexp_eatCharacterClassEscape(x)||this.regexp_eatCharacterEscape(x)||x.switchN&&this.regexp_eatKGroupName(x)?!0:(x.switchU&&(x.current()===99&&x.raise("Invalid unicode escape"),x.raise("Invalid escape")),!1)},ot.regexp_eatBackReference=function(x){var P=x.pos;if(this.regexp_eatDecimalEscape(x)){var q=x.lastIntValue;if(x.switchU)return q>x.maxBackReference&&(x.maxBackReference=q),!0;if(q<=x.numCapturingParens)return!0;x.pos=P}return!1},ot.regexp_eatKGroupName=function(x){if(x.eat(107)){if(this.regexp_eatGroupName(x))return x.backReferenceNames.push(x.lastStringValue),!0;x.raise("Invalid named reference")}return!1},ot.regexp_eatCharacterEscape=function(x){return this.regexp_eatControlEscape(x)||this.regexp_eatCControlLetter(x)||this.regexp_eatZero(x)||this.regexp_eatHexEscapeSequence(x)||this.regexp_eatRegExpUnicodeEscapeSequence(x,!1)||!x.switchU&&this.regexp_eatLegacyOctalEscapeSequence(x)||this.regexp_eatIdentityEscape(x)},ot.regexp_eatCControlLetter=function(x){var P=x.pos;if(x.eat(99)){if(this.regexp_eatControlLetter(x))return!0;x.pos=P}return!1},ot.regexp_eatZero=function(x){return x.current()===48&&!mn(x.lookahead())?(x.lastIntValue=0,x.advance(),!0):!1},ot.regexp_eatControlEscape=function(x){var P=x.current();return P===116?(x.lastIntValue=9,x.advance(),!0):P===110?(x.lastIntValue=10,x.advance(),!0):P===118?(x.lastIntValue=11,x.advance(),!0):P===102?(x.lastIntValue=12,x.advance(),!0):P===114?(x.lastIntValue=13,x.advance(),!0):!1},ot.regexp_eatControlLetter=function(x){var P=x.current();return Qr(P)?(x.lastIntValue=P%32,x.advance(),!0):!1};function Qr(x){return x>=65&&x<=90||x>=97&&x<=122}ot.regexp_eatRegExpUnicodeEscapeSequence=function(x,P){P===void 0&&(P=!1);var q=x.pos,z=P||x.switchU;if(x.eat(117)){if(this.regexp_eatFixedHexDigits(x,4)){var ge=x.lastIntValue;if(z&&ge>=55296&&ge<=56319){var Fe=x.pos;if(x.eat(92)&&x.eat(117)&&this.regexp_eatFixedHexDigits(x,4)){var Ne=x.lastIntValue;if(Ne>=56320&&Ne<=57343)return x.lastIntValue=(ge-55296)*1024+(Ne-56320)+65536,!0}x.pos=Fe,x.lastIntValue=ge}return!0}if(z&&x.eat(123)&&this.regexp_eatHexDigits(x)&&x.eat(125)&&fs(x.lastIntValue))return!0;z&&x.raise("Invalid unicode escape"),x.pos=q}return!1};function fs(x){return x>=0&&x<=1114111}ot.regexp_eatIdentityEscape=function(x){if(x.switchU)return this.regexp_eatSyntaxCharacter(x)?!0:x.eat(47)?(x.lastIntValue=47,!0):!1;var P=x.current();return P!==99&&(!x.switchN||P!==107)?(x.lastIntValue=P,x.advance(),!0):!1},ot.regexp_eatDecimalEscape=function(x){x.lastIntValue=0;var P=x.current();if(P>=49&&P<=57){do x.lastIntValue=10*x.lastIntValue+(P-48),x.advance();while((P=x.current())>=48&&P<=57);return!0}return!1};var Yn=0,dr=1,ir=2;ot.regexp_eatCharacterClassEscape=function(x){var P=x.current();if(hn(P))return x.lastIntValue=-1,x.advance(),dr;var q=!1;if(x.switchU&&this.options.ecmaVersion>=9&&((q=P===80)||P===112)){x.lastIntValue=-1,x.advance();var z;if(x.eat(123)&&(z=this.regexp_eatUnicodePropertyValueExpression(x))&&x.eat(125))return q&&z===ir&&x.raise("Invalid property name"),z;x.raise("Invalid property name")}return Yn};function hn(x){return x===100||x===68||x===115||x===83||x===119||x===87}ot.regexp_eatUnicodePropertyValueExpression=function(x){var P=x.pos;if(this.regexp_eatUnicodePropertyName(x)&&x.eat(61)){var q=x.lastStringValue;if(this.regexp_eatUnicodePropertyValue(x)){var z=x.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(x,q,z),dr}}if(x.pos=P,this.regexp_eatLoneUnicodePropertyNameOrValue(x)){var ge=x.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(x,ge)}return Yn},ot.regexp_validateUnicodePropertyNameAndValue=function(x,P,q){j(x.unicodeProperties.nonBinary,P)||x.raise("Invalid property name"),x.unicodeProperties.nonBinary[P].test(q)||x.raise("Invalid property value")},ot.regexp_validateUnicodePropertyNameOrValue=function(x,P){if(x.unicodeProperties.binary.test(P))return dr;if(x.switchV&&x.unicodeProperties.binaryOfStrings.test(P))return ir;x.raise("Invalid property name")},ot.regexp_eatUnicodePropertyName=function(x){var P=0;for(x.lastStringValue="";Hn(P=x.current());)x.lastStringValue+=R(P),x.advance();return x.lastStringValue!==""};function Hn(x){return Qr(x)||x===95}ot.regexp_eatUnicodePropertyValue=function(x){var P=0;for(x.lastStringValue="";kn(P=x.current());)x.lastStringValue+=R(P),x.advance();return x.lastStringValue!==""};function kn(x){return Hn(x)||mn(x)}ot.regexp_eatLoneUnicodePropertyNameOrValue=function(x){return this.regexp_eatUnicodePropertyValue(x)},ot.regexp_eatCharacterClass=function(x){if(x.eat(91)){var P=x.eat(94),q=this.regexp_classContents(x);return x.eat(93)||x.raise("Unterminated character class"),P&&q===ir&&x.raise("Negated character class may contain strings"),!0}return!1},ot.regexp_classContents=function(x){return x.current()===93?dr:x.switchV?this.regexp_classSetExpression(x):(this.regexp_nonEmptyClassRanges(x),dr)},ot.regexp_nonEmptyClassRanges=function(x){for(;this.regexp_eatClassAtom(x);){var P=x.lastIntValue;if(x.eat(45)&&this.regexp_eatClassAtom(x)){var q=x.lastIntValue;x.switchU&&(P===-1||q===-1)&&x.raise("Invalid character class"),P!==-1&&q!==-1&&P>q&&x.raise("Range out of order in character class")}}},ot.regexp_eatClassAtom=function(x){var P=x.pos;if(x.eat(92)){if(this.regexp_eatClassEscape(x))return!0;if(x.switchU){var q=x.current();(q===99||Si(q))&&x.raise("Invalid class escape"),x.raise("Invalid escape")}x.pos=P}var z=x.current();return z!==93?(x.lastIntValue=z,x.advance(),!0):!1},ot.regexp_eatClassEscape=function(x){var P=x.pos;if(x.eat(98))return x.lastIntValue=8,!0;if(x.switchU&&x.eat(45))return x.lastIntValue=45,!0;if(!x.switchU&&x.eat(99)){if(this.regexp_eatClassControlLetter(x))return!0;x.pos=P}return this.regexp_eatCharacterClassEscape(x)||this.regexp_eatCharacterEscape(x)},ot.regexp_classSetExpression=function(x){var P=dr,q;if(!this.regexp_eatClassSetRange(x))if(q=this.regexp_eatClassSetOperand(x)){q===ir&&(P=ir);for(var z=x.pos;x.eatChars([38,38]);){if(x.current()!==38&&(q=this.regexp_eatClassSetOperand(x))){q!==ir&&(P=dr);continue}x.raise("Invalid character in character class")}if(z!==x.pos)return P;for(;x.eatChars([45,45]);)this.regexp_eatClassSetOperand(x)||x.raise("Invalid character in character class");if(z!==x.pos)return P}else x.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(x)){if(q=this.regexp_eatClassSetOperand(x),!q)return P;q===ir&&(P=ir)}},ot.regexp_eatClassSetRange=function(x){var P=x.pos;if(this.regexp_eatClassSetCharacter(x)){var q=x.lastIntValue;if(x.eat(45)&&this.regexp_eatClassSetCharacter(x)){var z=x.lastIntValue;return q!==-1&&z!==-1&&q>z&&x.raise("Range out of order in character class"),!0}x.pos=P}return!1},ot.regexp_eatClassSetOperand=function(x){return this.regexp_eatClassSetCharacter(x)?dr:this.regexp_eatClassStringDisjunction(x)||this.regexp_eatNestedClass(x)},ot.regexp_eatNestedClass=function(x){var P=x.pos;if(x.eat(91)){var q=x.eat(94),z=this.regexp_classContents(x);if(x.eat(93))return q&&z===ir&&x.raise("Negated character class may contain strings"),z;x.pos=P}if(x.eat(92)){var ge=this.regexp_eatCharacterClassEscape(x);if(ge)return ge;x.pos=P}return null},ot.regexp_eatClassStringDisjunction=function(x){var P=x.pos;if(x.eatChars([92,113])){if(x.eat(123)){var q=this.regexp_classStringDisjunctionContents(x);if(x.eat(125))return q}else x.raise("Invalid escape");x.pos=P}return null},ot.regexp_classStringDisjunctionContents=function(x){for(var P=this.regexp_classString(x);x.eat(124);)this.regexp_classString(x)===ir&&(P=ir);return P},ot.regexp_classString=function(x){for(var P=0;this.regexp_eatClassSetCharacter(x);)P++;return P===1?dr:ir},ot.regexp_eatClassSetCharacter=function(x){var P=x.pos;if(x.eat(92))return this.regexp_eatCharacterEscape(x)||this.regexp_eatClassSetReservedPunctuator(x)?!0:x.eat(98)?(x.lastIntValue=8,!0):(x.pos=P,!1);var q=x.current();return q<0||q===x.lookahead()&&dn(q)||ps(q)?!1:(x.advance(),x.lastIntValue=q,!0)};function dn(x){return x===33||x>=35&&x<=38||x>=42&&x<=44||x===46||x>=58&&x<=64||x===94||x===96||x===126}function ps(x){return x===40||x===41||x===45||x===47||x>=91&&x<=93||x>=123&&x<=125}ot.regexp_eatClassSetReservedPunctuator=function(x){var P=x.current();return Ms(P)?(x.lastIntValue=P,x.advance(),!0):!1};function Ms(x){return x===33||x===35||x===37||x===38||x===44||x===45||x>=58&&x<=62||x===64||x===96||x===126}ot.regexp_eatClassControlLetter=function(x){var P=x.current();return mn(P)||P===95?(x.lastIntValue=P%32,x.advance(),!0):!1},ot.regexp_eatHexEscapeSequence=function(x){var P=x.pos;if(x.eat(120)){if(this.regexp_eatFixedHexDigits(x,2))return!0;x.switchU&&x.raise("Invalid escape"),x.pos=P}return!1},ot.regexp_eatDecimalDigits=function(x){var P=x.pos,q=0;for(x.lastIntValue=0;mn(q=x.current());)x.lastIntValue=10*x.lastIntValue+(q-48),x.advance();return x.pos!==P};function mn(x){return x>=48&&x<=57}ot.regexp_eatHexDigits=function(x){var P=x.pos,q=0;for(x.lastIntValue=0;Oi(q=x.current());)x.lastIntValue=16*x.lastIntValue+hs(q),x.advance();return x.pos!==P};function Oi(x){return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function hs(x){return x>=65&&x<=70?10+(x-65):x>=97&&x<=102?10+(x-97):x-48}ot.regexp_eatLegacyOctalEscapeSequence=function(x){if(this.regexp_eatOctalDigit(x)){var P=x.lastIntValue;if(this.regexp_eatOctalDigit(x)){var q=x.lastIntValue;P<=3&&this.regexp_eatOctalDigit(x)?x.lastIntValue=P*64+q*8+x.lastIntValue:x.lastIntValue=P*8+q}else x.lastIntValue=P;return!0}return!1},ot.regexp_eatOctalDigit=function(x){var P=x.current();return Si(P)?(x.lastIntValue=P-48,x.advance(),!0):(x.lastIntValue=0,!1)};function Si(x){return x>=48&&x<=55}ot.regexp_eatFixedHexDigits=function(x,P){var q=x.pos;x.lastIntValue=0;for(var z=0;z=this.input.length)return this.finishToken(O.eof);if(x.override)return x.override(this);this.readToken(this.fullCharCodeAtPos())},Tt.readToken=function(x){return d(x,this.options.ecmaVersion>=6)||x===92?this.readWord():this.getTokenFromCode(x)},Tt.fullCharCodeAtPos=function(){var x=this.input.charCodeAt(this.pos);if(x<=55295||x>=56320)return x;var P=this.input.charCodeAt(this.pos+1);return P<=56319||P>=57344?x:(x<<10)+P-56613888},Tt.skipBlockComment=function(){var x=this.options.onComment&&this.curPosition(),P=this.pos,q=this.input.indexOf("*/",this.pos+=2);if(q===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=q+2,this.options.locations)for(var z=void 0,ge=P;(z=A(this.input,ge,this.pos))>-1;)++this.curLine,ge=this.lineStart=z;this.options.onComment&&this.options.onComment(!0,this.input.slice(P+2,q),P,this.pos,x,this.curPosition())},Tt.skipLineComment=function(x){for(var P=this.pos,q=this.options.onComment&&this.curPosition(),z=this.input.charCodeAt(this.pos+=x);this.pos8&&x<14||x>=5760&&D.test(String.fromCharCode(x)))++this.pos;else break e}}},Tt.finishToken=function(x,P){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var q=this.type;this.type=x,this.value=P,this.updateContext(q)},Tt.readToken_dot=function(){var x=this.input.charCodeAt(this.pos+1);if(x>=48&&x<=57)return this.readNumber(!0);var P=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&x===46&&P===46?(this.pos+=3,this.finishToken(O.ellipsis)):(++this.pos,this.finishToken(O.dot))},Tt.readToken_slash=function(){var x=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):x===61?this.finishOp(O.assign,2):this.finishOp(O.slash,1)},Tt.readToken_mult_modulo_exp=function(x){var P=this.input.charCodeAt(this.pos+1),q=1,z=x===42?O.star:O.modulo;return this.options.ecmaVersion>=7&&x===42&&P===42&&(++q,z=O.starstar,P=this.input.charCodeAt(this.pos+2)),P===61?this.finishOp(O.assign,q+1):this.finishOp(z,q)},Tt.readToken_pipe_amp=function(x){var P=this.input.charCodeAt(this.pos+1);if(P===x){if(this.options.ecmaVersion>=12){var q=this.input.charCodeAt(this.pos+2);if(q===61)return this.finishOp(O.assign,3)}return this.finishOp(x===124?O.logicalOR:O.logicalAND,2)}return P===61?this.finishOp(O.assign,2):this.finishOp(x===124?O.bitwiseOR:O.bitwiseAND,1)},Tt.readToken_caret=function(){var x=this.input.charCodeAt(this.pos+1);return x===61?this.finishOp(O.assign,2):this.finishOp(O.bitwiseXOR,1)},Tt.readToken_plus_min=function(x){var P=this.input.charCodeAt(this.pos+1);return P===x?P===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(O.incDec,2):P===61?this.finishOp(O.assign,2):this.finishOp(O.plusMin,1)},Tt.readToken_lt_gt=function(x){var P=this.input.charCodeAt(this.pos+1),q=1;return P===x?(q=x===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+q)===61?this.finishOp(O.assign,q+1):this.finishOp(O.bitShift,q)):P===33&&x===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(P===61&&(q=2),this.finishOp(O.relational,q))},Tt.readToken_eq_excl=function(x){var P=this.input.charCodeAt(this.pos+1);return P===61?this.finishOp(O.equality,this.input.charCodeAt(this.pos+2)===61?3:2):x===61&&P===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(O.arrow)):this.finishOp(x===61?O.eq:O.prefix,1)},Tt.readToken_question=function(){var x=this.options.ecmaVersion;if(x>=11){var P=this.input.charCodeAt(this.pos+1);if(P===46){var q=this.input.charCodeAt(this.pos+2);if(q<48||q>57)return this.finishOp(O.questionDot,2)}if(P===63){if(x>=12){var z=this.input.charCodeAt(this.pos+2);if(z===61)return this.finishOp(O.assign,3)}return this.finishOp(O.coalesce,2)}}return this.finishOp(O.question,1)},Tt.readToken_numberSign=function(){var x=this.options.ecmaVersion,P=35;if(x>=13&&(++this.pos,P=this.fullCharCodeAtPos(),d(P,!0)||P===92))return this.finishToken(O.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+R(P)+"'")},Tt.getTokenFromCode=function(x){switch(x){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(O.parenL);case 41:return++this.pos,this.finishToken(O.parenR);case 59:return++this.pos,this.finishToken(O.semi);case 44:return++this.pos,this.finishToken(O.comma);case 91:return++this.pos,this.finishToken(O.bracketL);case 93:return++this.pos,this.finishToken(O.bracketR);case 123:return++this.pos,this.finishToken(O.braceL);case 125:return++this.pos,this.finishToken(O.braceR);case 58:return++this.pos,this.finishToken(O.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(O.backQuote);case 48:var P=this.input.charCodeAt(this.pos+1);if(P===120||P===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(P===111||P===79)return this.readRadixNumber(8);if(P===98||P===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(x);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(x);case 124:case 38:return this.readToken_pipe_amp(x);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(x);case 60:case 62:return this.readToken_lt_gt(x);case 61:case 33:return this.readToken_eq_excl(x);case 63:return this.readToken_question();case 126:return this.finishOp(O.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+R(x)+"'")},Tt.finishOp=function(x,P){var q=this.input.slice(this.pos,this.pos+P);return this.pos+=P,this.finishToken(x,q)},Tt.readRegexp=function(){for(var x,P,q=this.pos;;){this.pos>=this.input.length&&this.raise(q,"Unterminated regular expression");var z=this.input.charAt(this.pos);if(w.test(z)&&this.raise(q,"Unterminated regular expression"),x)x=!1;else{if(z==="[")P=!0;else if(z==="]"&&P)P=!1;else if(z==="/"&&!P)break;x=z==="\\"}++this.pos}var ge=this.input.slice(q,this.pos);++this.pos;var Fe=this.pos,Ne=this.readWord1();this.containsEsc&&this.unexpected(Fe);var He=this.regexpState||(this.regexpState=new Nt(this));He.reset(q,ge,Ne),this.validateRegExpFlags(He),this.validateRegExpPattern(He);var Je=null;try{Je=new RegExp(ge,Ne)}catch{}return this.finishToken(O.regexp,{pattern:ge,flags:Ne,value:Je})},Tt.readInt=function(x,P,q){for(var z=this.options.ecmaVersion>=12&&P===void 0,ge=q&&this.input.charCodeAt(this.pos)===48,Fe=this.pos,Ne=0,He=0,Je=0,St=P??1/0;Je=97?ar=At-97+10:At>=65?ar=At-65+10:At>=48&&At<=57?ar=At-48:ar=1/0,ar>=x)break;He=At,Ne=Ne*x+ar}return z&&He===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Fe||P!=null&&this.pos-Fe!==P?null:Ne};function Ei(x,P){return P?parseInt(x,8):parseFloat(x.replace(/_/g,""))}function je(x){return typeof BigInt!="function"?null:BigInt(x.replace(/_/g,""))}Tt.readRadixNumber=function(x){var P=this.pos;this.pos+=2;var q=this.readInt(x);return q==null&&this.raise(this.start+2,"Expected number in radix "+x),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(q=je(this.input.slice(P,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,q)},Tt.readNumber=function(x){var P=this.pos;!x&&this.readInt(10,void 0,!0)===null&&this.raise(P,"Invalid number");var q=this.pos-P>=2&&this.input.charCodeAt(P)===48;q&&this.strict&&this.raise(P,"Invalid number");var z=this.input.charCodeAt(this.pos);if(!q&&!x&&this.options.ecmaVersion>=11&&z===110){var ge=je(this.input.slice(P,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(O.num,ge)}q&&/[89]/.test(this.input.slice(P,this.pos))&&(q=!1),z===46&&!q&&(++this.pos,this.readInt(10),z=this.input.charCodeAt(this.pos)),(z===69||z===101)&&!q&&(z=this.input.charCodeAt(++this.pos),(z===43||z===45)&&++this.pos,this.readInt(10)===null&&this.raise(P,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Fe=Ei(this.input.slice(P,this.pos),q);return this.finishToken(O.num,Fe)},Tt.readCodePoint=function(){var x=this.input.charCodeAt(this.pos),P;if(x===123){this.options.ecmaVersion<6&&this.unexpected();var q=++this.pos;P=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,P>1114111&&this.invalidStringToken(q,"Code point out of bounds")}else P=this.readHexChar(4);return P},Tt.readString=function(x){for(var P="",q=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var z=this.input.charCodeAt(this.pos);if(z===x)break;z===92?(P+=this.input.slice(q,this.pos),P+=this.readEscapedChar(!1),q=this.pos):z===8232||z===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(k(z)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return P+=this.input.slice(q,this.pos++),this.finishToken(O.string,P)};var M={};Tt.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(x){if(x===M)this.readInvalidTemplateToken();else throw x}this.inTemplateElement=!1},Tt.invalidStringToken=function(x,P){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw M;this.raise(x,P)},Tt.readTmplToken=function(){for(var x="",P=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var q=this.input.charCodeAt(this.pos);if(q===96||q===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===O.template||this.type===O.invalidTemplate)?q===36?(this.pos+=2,this.finishToken(O.dollarBraceL)):(++this.pos,this.finishToken(O.backQuote)):(x+=this.input.slice(P,this.pos),this.finishToken(O.template,x));if(q===92)x+=this.input.slice(P,this.pos),x+=this.readEscapedChar(!0),P=this.pos;else if(k(q)){switch(x+=this.input.slice(P,this.pos),++this.pos,q){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:x+=` +`;break;default:x+=String.fromCharCode(q);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),P=this.pos}else++this.pos}},Tt.readInvalidTemplateToken=function(){for(;this.pos=48&&P<=55){var z=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ge=parseInt(z,8);return ge>255&&(z=z.slice(0,-1),ge=parseInt(z,8)),this.pos+=z.length-1,P=this.input.charCodeAt(this.pos),(z!=="0"||P===56||P===57)&&(this.strict||x)&&this.invalidStringToken(this.pos-1-z.length,x?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ge)}return k(P)?"":String.fromCharCode(P)}},Tt.readHexChar=function(x){var P=this.pos,q=this.readInt(16,x);return q===null&&this.invalidStringToken(P,"Bad character escape sequence"),q},Tt.readWord1=function(){this.containsEsc=!1;for(var x="",P=!0,q=this.pos,z=this.options.ecmaVersion>=6;this.pos",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"}),ad}var _A;function b9(){return _A||(_A=1,function(r){let e=x9(),t=/^[\da-fA-F]+$/,s=/^\d+$/,n=new WeakMap;function i(o){o=o.Parser.acorn||o;let u=n.get(o);if(!u){let c=o.tokTypes,p=o.TokContext,h=o.TokenType,f=new p("...",!0,!0),g={tc_oTag:f,tc_cTag:d,tc_expr:m},y={jsxName:new h("jsxName"),jsxText:new h("jsxText",{beforeExpr:!0}),jsxTagStart:new h("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new h("jsxTagEnd")};y.jsxTagStart.updateContext=function(){this.context.push(m),this.context.push(f),this.exprAllowed=!1},y.jsxTagEnd.updateContext=function(b){let v=this.context.pop();v===f&&b===c.slash||v===d?(this.context.pop(),this.exprAllowed=this.curContext()===m):this.exprAllowed=!0},u={tokContexts:g,tokTypes:y},n.set(o,u)}return u}function a(o){if(!o)return o;if(o.type==="JSXIdentifier")return o.name;if(o.type==="JSXNamespacedName")return o.namespace.name+":"+o.name.name;if(o.type==="JSXMemberExpression")return a(o.object)+"."+a(o.property)}r.exports=function(o){return o=o||{},function(u){return l({allowNamespaces:o.allowNamespaces!==!1,allowNamespacedObjects:!!o.allowNamespacedObjects},u)}},Object.defineProperty(r.exports,"tokTypes",{get:function(){return i(eO()).tokTypes},configurable:!0,enumerable:!0});function l(o,u){let c=u.acorn||eO(),p=i(c),h=c.tokTypes,f=p.tokTypes,d=c.tokContexts,m=p.tokContexts.tc_oTag,g=p.tokContexts.tc_cTag,y=p.tokContexts.tc_expr,b=c.isNewLine,v=c.isIdentifierStart,S=c.isIdentifierChar;return class extends u{static get acornJsx(){return p}jsx_readToken(){let C="",O=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let w=this.input.charCodeAt(this.pos);switch(w){case 60:case 123:return this.pos===this.start?w===60&&this.exprAllowed?(++this.pos,this.finishToken(f.jsxTagStart)):this.getTokenFromCode(w):(C+=this.input.slice(O,this.pos),this.finishToken(f.jsxText,C));case 38:C+=this.input.slice(O,this.pos),C+=this.jsx_readEntity(),O=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(w===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:b(w)?(C+=this.input.slice(O,this.pos),C+=this.jsx_readNewLine(!0),O=this.pos):++this.pos}}}jsx_readNewLine(C){let O=this.input.charCodeAt(this.pos),w;return++this.pos,O===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,w=C?` `:`\r -`):A=String.fromCharCode(E),this.options.locations&&(++this.curLine,this.lineStart=this.pos),A}jsx_readString(k){let E="",A=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let w=this.input.charCodeAt(this.pos);if(w===k)break;w===38?(E+=this.input.slice(A,this.pos),E+=this.jsx_readEntity(),A=this.pos):O(w)?(E+=this.input.slice(A,this.pos),E+=this.jsx_readNewLine(!1),A=this.pos):++this.pos}return E+=this.input.slice(A,this.pos++),this.finishToken(h.string,E)}jsx_readEntity(){let k="",E=0,A,w=this.input[this.pos];w!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let P=++this.pos;for(;this.pos")}let I=P.name?"Element":"Fragment";return A["opening"+I]=P,A["closing"+I]=T,A.children=w,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(A,"JSX"+I)}jsx_parseText(){let k=this.parseLiteral(this.value);return k.type="JSXText",k}jsx_parseElement(){let k=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(k,E)}parseExprAtom(k){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(k)}readToken(k){let E=this.curContext();if(E===b)return this.jsx_readToken();if(E===m||E===g){if(S(k))return this.jsx_readWord();if(k==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((k===34||k===39)&&E==m)return this.jsx_readString(k)}return k===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(k)}updateContext(k){if(this.type==h.braceL){var E=this.curContext();E==m?this.context.push(d.b_expr):E==b?this.context.push(d.b_tmpl):super.updateContext(k),this.exprAllowed=!0}else if(this.type===h.slash&&k===f.jsxTagStart)this.context.length-=2,this.context.push(g),this.exprAllowed=!1;else return super.updateContext(k)}}}}(od)),od.exports}var ha={},RA;function S9(){if(RA)return ha;RA=1,Object.defineProperty(ha,"__esModule",{value:!0});let r={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],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:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","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"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],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:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],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"]},e=Object.keys(r);for(let a of e)Object.freeze(r[a]);Object.freeze(r);let t=new Set(["parent","leadingComments","trailingComments"]);function s(a){return!t.has(a)&&a[0]!=="_"}function n(a){return Object.keys(a).filter(s)}function i(a){let l=Object.assign({},r);for(let o of Object.keys(a))if(Object.prototype.hasOwnProperty.call(l,o)){let u=new Set(a[o]);for(let c of l[o])u.add(c);l[o]=Object.freeze(Array.from(u))}else l[o]=Object.freeze(Array.from(a[o]));return Object.freeze(l)}return ha.KEYS=r,ha.getKeys=n,ha.unionWith=i,ha}var BA;function Oc(){if(BA)return wn;BA=1,Object.defineProperty(wn,"__esModule",{value:!0});var r=rO(),e=O9(),t=S9();function s(B){return B&&typeof B=="object"&&"default"in B?B:{default:B}}function n(B){if(B&&B.__esModule)return B;var Q=Object.create(null);return B&&Object.keys(B).forEach(function(V){if(V!=="default"){var R=Object.getOwnPropertyDescriptor(B,V);Object.defineProperty(Q,V,R.get?R:{enumerable:!0,get:function(){return B[V]}})}}),Q.default=B,Object.freeze(Q)}var i=n(r),a=s(e),l=n(t);let o={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function u(B,Q){let V=B[0],R=B[B.length-1],$={type:o.Template,value:Q.slice(V.start,R.end)};return V.loc&&($.loc={start:V.loc.start,end:R.loc.end}),V.range&&($.start=V.range[0],$.end=R.range[1],$.range=[$.start,$.end]),$}function c(B,Q){this._acornTokTypes=B,this._tokens=[],this._curlyBrace=null,this._code=Q}c.prototype={constructor:c,translate(B,Q){let V=B.type,R=this._acornTokTypes;if(V===R.name)B.type=o.Identifier,B.value==="static"&&(B.type=o.Keyword),Q.ecmaVersion>5&&(B.value==="yield"||B.value==="let")&&(B.type=o.Keyword);else if(V===R.privateId)B.type=o.PrivateIdentifier;else if(V===R.semi||V===R.comma||V===R.parenL||V===R.parenR||V===R.braceL||V===R.braceR||V===R.dot||V===R.bracketL||V===R.colon||V===R.question||V===R.bracketR||V===R.ellipsis||V===R.arrow||V===R.jsxTagStart||V===R.incDec||V===R.starstar||V===R.jsxTagEnd||V===R.prefix||V===R.questionDot||V.binop&&!V.keyword||V.isAssign)B.type=o.Punctuator,B.value=this._code.slice(B.start,B.end);else if(V===R.jsxName)B.type=o.JSXIdentifier;else if(V.label==="jsxText"||V===R.jsxAttrValueToken)B.type=o.JSXText;else if(V.keyword)V.keyword==="true"||V.keyword==="false"?B.type=o.Boolean:V.keyword==="null"?B.type=o.Null:B.type=o.Keyword;else if(V===R.num)B.type=o.Numeric,B.value=this._code.slice(B.start,B.end);else if(V===R.string)Q.jsxAttrValueToken?(Q.jsxAttrValueToken=!1,B.type=o.JSXText):B.type=o.String,B.value=this._code.slice(B.start,B.end);else if(V===R.regexp){B.type=o.RegularExpression;let $=B.value;B.regex={flags:$.flags,pattern:$.pattern},B.value=`/${$.pattern}/${$.flags}`}return B},onToken(B,Q){let V=this._acornTokTypes,R=Q.tokens,$=this._tokens,N=()=>{R.push(u(this._tokens,this._code)),this._tokens=[]};if(B.type===V.eof){this._curlyBrace&&R.push(this.translate(this._curlyBrace,Q));return}if(B.type===V.backQuote){this._curlyBrace&&(R.push(this.translate(this._curlyBrace,Q)),this._curlyBrace=null),$.push(B),$.length>1&&N();return}if(B.type===V.dollarBraceL){$.push(B),N();return}if(B.type===V.braceR){this._curlyBrace&&R.push(this.translate(this._curlyBrace,Q)),this._curlyBrace=B;return}if(B.type===V.template||B.type===V.invalidTemplate){this._curlyBrace&&($.push(this._curlyBrace),this._curlyBrace=null),$.push(B);return}this._curlyBrace&&(R.push(this.translate(this._curlyBrace,Q)),this._curlyBrace=null),R.push(this.translate(B,Q))}};let p=[3,5,6,7,8,9,10,11,12,13,14,15];function h(){return p[p.length-1]}function f(){return[...p]}function d(B=5){let Q=B==="latest"?h():B;if(typeof Q!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof B} instead.`);if(Q>=2015&&(Q-=2009),!p.includes(Q))throw new Error("Invalid ecmaVersion.");return Q}function m(B="script"){if(B==="script"||B==="module")return B;if(B==="commonjs")return"script";throw new Error("Invalid sourceType.")}function g(B){let Q=d(B.ecmaVersion),V=m(B.sourceType),R=B.range===!0,$=B.loc===!0;if(Q!==3&&B.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof B.allowReserved<"u"&&typeof B.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let N=Q===3?B.allowReserved||"never":!1,W=B.ecmaFeatures||{},Z=B.sourceType==="commonjs"||!!W.globalReturn;if(V==="module"&&Q<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},B,{ecmaVersion:Q,sourceType:V,ranges:R,locations:$,allowReserved:N,allowReturnOutsideFunction:Z})}let b=Symbol("espree's internal state"),O=Symbol("espree's esprimaFinishNode");function S(B,Q,V,R,$,N,W){let Z;B?Z="Block":W.slice(V,V+2)==="#!"?Z="Hashbang":Z="Line";let le={type:Z,value:Q};return typeof V=="number"&&(le.start=V,le.end=R,le.range=[V,R]),typeof $=="object"&&(le.loc={start:$,end:N}),le}var C=()=>B=>{let Q=Object.assign({},B.acorn.tokTypes);return B.acornJsx&&Object.assign(Q,B.acornJsx.tokTypes),class extends B{constructor(R,$){(typeof R!="object"||R===null)&&(R={}),typeof $!="string"&&!($ instanceof String)&&($=String($));let N=R.sourceType,W=g(R),Z=W.ecmaFeatures||{},le=W.tokens===!0?new c(Q,$):null,ae={originalSourceType:N||W.sourceType,tokens:le?[]:null,comments:W.comment===!0?[]:null,impliedStrict:Z.impliedStrict===!0&&W.ecmaVersion>=5,ecmaVersion:W.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:W.ecmaVersion,sourceType:W.sourceType,ranges:W.ranges,locations:W.locations,allowReserved:W.allowReserved,allowReturnOutsideFunction:W.allowReturnOutsideFunction,onToken(Se){le&&le.onToken(Se,ae),Se.type!==Q.eof&&(ae.lastToken=Se)},onComment(Se,J,me,j,de,ee){if(ae.comments){let ce=S(Se,J,me,j,de,ee,$);ae.comments.push(ce)}}},$),this[b]=ae}tokenize(){do this.next();while(this.type!==Q.eof);this.next();let R=this[b],$=R.tokens;return R.comments&&($.comments=R.comments),$}finishNode(...R){let $=super.finishNode(...R);return this[O]($)}finishNodeAt(...R){let $=super.finishNodeAt(...R);return this[O]($)}parse(){let R=this[b],$=super.parse();if($.sourceType=R.originalSourceType,R.comments&&($.comments=R.comments),R.tokens&&($.tokens=R.tokens),$.body.length){let[N]=$.body;$.range&&($.range[0]=N.range[0]),$.loc&&($.loc.start=N.loc.start),$.start=N.start}return R.lastToken&&($.range&&($.range[1]=R.lastToken.range[1]),$.loc&&($.loc.end=R.lastToken.loc.end),$.end=R.lastToken.end),this[b].templateElements.forEach(N=>{let Z=N.tail?1:2;N.start+=-1,N.end+=Z,N.range&&(N.range[0]+=-1,N.range[1]+=Z),N.loc&&(N.loc.start.column+=-1,N.loc.end.column+=Z)}),$}parseTopLevel(R){return this[b].impliedStrict&&(this.strict=!0),super.parseTopLevel(R)}raise(R,$){let N=B.acorn.getLineInfo(this.input,R),W=new SyntaxError($);throw W.index=R,W.lineNumber=N.line,W.column=N.column+1,W}raiseRecoverable(R,$){this.raise(R,$)}unexpected(R){let $="Unexpected token";if(R!=null){if(this.pos=R,this.options.locations)for(;this.posthis.start&&($+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,$)}jsx_readString(R){let $=super.jsx_readString(R);return this.type===Q.string&&(this[b].jsxAttrValueToken=!0),$}[O](R){return R.type==="TemplateElement"&&this[b].templateElements.push(R),R.type.includes("Function")&&!R.generator&&(R.generator=!1),R}}};let k="10.0.1",E={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=i.Parser.extend(C())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=i.Parser.extend(a.default(),C())),this._jsx},get(B){return!!(B&&B.ecmaFeatures&&B.ecmaFeatures.jsx)?this.jsx:this.regular}};function A(B,Q){let V=E.get(Q);return(!Q||Q.tokens!==!0)&&(Q=Object.assign({},Q,{tokens:!0})),new V(Q,B).tokenize()}function w(B,Q){let V=E.get(Q);return new V(Q,B).parse()}let P=k,T="espree",I=function(){return l.KEYS}(),F=function(){let B,Q={};typeof Object.create=="function"&&(Q=Object.create(null));for(B in I)Object.hasOwnProperty.call(I,B)&&(Q[B]=B);return typeof Object.freeze=="function"&&Object.freeze(Q),Q}(),L=h(),_=f();return wn.Syntax=F,wn.VisitorKeys=I,wn.latestEcmaVersion=L,wn.name=T,wn.parse=w,wn.supportedEcmaVersions=_,wn.tokenize=A,wn.version=P,wn}var qo={exports:{}};qo.exports;var NA;function E9(){return NA||(NA=1,function(r,e){var t=200,s="__lodash_hash_undefined__",n=800,i=16,a=9007199254740991,l="[object Arguments]",o="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",p="[object Date]",h="[object Error]",f="[object Function]",d="[object GeneratorFunction]",m="[object Map]",g="[object Number]",b="[object Null]",O="[object Object]",S="[object Proxy]",C="[object RegExp]",k="[object Set]",E="[object String]",A="[object Undefined]",w="[object WeakMap]",P="[object ArrayBuffer]",T="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",L="[object Int8Array]",_="[object Int16Array]",B="[object Int32Array]",Q="[object Uint8Array]",V="[object Uint8ClampedArray]",R="[object Uint16Array]",$="[object Uint32Array]",N=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,le={};le[I]=le[F]=le[L]=le[_]=le[B]=le[Q]=le[V]=le[R]=le[$]=!0,le[l]=le[o]=le[P]=le[c]=le[T]=le[p]=le[h]=le[f]=le[m]=le[g]=le[O]=le[C]=le[k]=le[E]=le[w]=!1;var ae=typeof tn=="object"&&tn&&tn.Object===Object&&tn,Se=typeof self=="object"&&self&&self.Object===Object&&self,J=ae||Se||Function("return this")(),me=e&&!e.nodeType&&e,j=me&&!0&&r&&!r.nodeType&&r,de=j&&j.exports===me,ee=de&&ae.process,ce=function(){try{var be=j&&j.require&&j.require("util").types;return be||ee&&ee.binding&&ee.binding("util")}catch{}}(),ve=ce&&ce.isTypedArray;function Me(be,Te,qe){switch(qe.length){case 0:return be.call(Te);case 1:return be.call(Te,qe[0]);case 2:return be.call(Te,qe[0],qe[1]);case 3:return be.call(Te,qe[0],qe[1],qe[2])}return be.apply(Te,qe)}function Ue(be,Te){for(var qe=-1,xt=Array(be);++qe-1}function se(be,Te){var qe=this.__data__,xt=gt(qe,be);return xt<0?(++this.size,qe.push([be,Te])):qe[xt][1]=Te,this}Ne.prototype.clear=Ee,Ne.prototype.delete=Re,Ne.prototype.get=ze,Ne.prototype.has=Oe,Ne.prototype.set=se;function K(be){var Te=-1,qe=be==null?0:be.length;for(this.clear();++Te1?qe[Nt-1]:void 0,tr=Nt>2?qe[2]:void 0;for(Gt=be.length>3&&typeof Gt=="function"?(Nt--,Gt):void 0,tr&&Ci(qe[0],qe[1],tr)&&(Gt=Nt<3?void 0:Gt,Nt=1),Te=Object(Te);++xt-1&&be%1==0&&be0){if(++Te>=n)return arguments[0]}else Te=0;return be.apply(void 0,arguments)}}function v(be){if(be!=null){try{return rt.call(be)}catch{}try{return be+""}catch{}}return""}function D(be,Te){return be===Te||be!==be&&Te!==Te}var U=ar(function(){return arguments}())?ar:function(be){return Tt(be)&&ot.call(be,"callee")&&!Ie.call(be,"callee")},G=Array.isArray;function xe(be){return be!=null&&tt(be.length)&&!Je(be)}function Be(be){return Tt(be)&&xe(be)}var $e=ue||CN;function Je(be){if(!Ct(be))return!1;var Te=Qt(be);return Te==f||Te==d||Te==u||Te==S}function tt(be){return typeof be=="number"&&be>-1&&be%1==0&&be<=a}function Ct(be){var Te=typeof be;return be!=null&&(Te=="object"||Te=="function")}function Tt(be){return be!=null&&typeof be=="object"}function lr(be){if(!Tt(be)||Qt(be)!=O)return!1;var Te=Ke(be);if(Te===null)return!0;var qe=ot.call(Te,"constructor")&&Te.constructor;return typeof qe=="function"&&qe instanceof qe&&rt.call(qe)==Ot}var Tn=ve?st(ve):$t;function Qs(be){return Jn(be,es(be))}function es(be){return xe(be)?He(be):Or(be)}var ki=Pn(function(be,Te,qe){$r(be,Te,qe)});function ys(be){return function(){return be}}function ts(be){return be}function CN(){return!1}r.exports=ki}(qo,qo.exports)),qo.exports}var C9="eslint",w9="9.1.1",k9="Nicholas C. Zakas ",A9="An AST-based pattern checker for JavaScript.",P9={eslint:"./bin/eslint.js"},T9="./lib/api.js",D9={"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},_9={"build:docs:update-links":"node tools/fetch-docs-links.js","build:site":"node Makefile.js gensite","build:webpack":"node Makefile.js webpack","build:readme":"node tools/update-readme.js","build:rules-index":"node Makefile.js generateRuleIndexPage",lint:"node Makefile.js lint","lint:docs:js":"node Makefile.js lintDocsJS","lint:docs:rule-examples":"node Makefile.js checkRuleExamples","lint:fix":"node Makefile.js lint -- fix","lint:fix:docs:js":"node Makefile.js lintDocsJS -- fix","lint:unused":"knip","release:generate:alpha":"node Makefile.js generatePrerelease -- alpha","release:generate:beta":"node Makefile.js generatePrerelease -- beta","release:generate:latest":"node Makefile.js generateRelease","release:generate:rc":"node Makefile.js generatePrerelease -- rc","release:publish":"node Makefile.js publishRelease",test:"node Makefile.js test","test:browser":"node Makefile.js wdio","test:cli":"mocha","test:fuzz":"node Makefile.js fuzz","test:performance":"node Makefile.js perf","test:emfile":"node tools/check-emfile-handling.js"},I9={"pre-commit":"lint-staged"},F9=["LICENSE","README.md","bin","conf","lib","messages"],R9="eslint/eslint",B9="https://opencollective.com/eslint",N9="https://eslint.org",L9="https://github.com/eslint/eslint/issues/",$9={"@eslint-community/eslint-utils":"^4.2.0","@eslint-community/regexpp":"^4.6.1","@eslint/eslintrc":"^3.0.2","@eslint/js":"9.1.1","@humanwhocodes/config-array":"^0.13.0","@humanwhocodes/module-importer":"^1.0.1","@humanwhocodes/retry":"^0.2.3","@nodelib/fs.walk":"^1.2.8",ajv:"^6.12.4",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2","escape-string-regexp":"^4.0.0","eslint-scope":"^8.0.1","eslint-visitor-keys":"^4.0.0",espree:"^10.0.1",esquery:"^1.4.2",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^8.0.0","find-up":"^5.0.0","glob-parent":"^6.0.2",ignore:"^5.2.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","is-path-inside":"^3.0.3","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.1.2","natural-compare":"^1.4.0",optionator:"^0.9.3","strip-ansi":"^6.0.1","text-table":"^0.2.0"},M9={"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@types/estree":"^1.0.5","@types/node":"^20.11.5","@wdio/browser-runner":"^8.14.6","@wdio/cli":"^8.14.6","@wdio/concise-reporter":"^8.14.0","@wdio/globals":"^8.14.6","@wdio/mocha-framework":"^8.14.0","babel-loader":"^8.0.5",c8:"^7.12.0",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",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":"^6.0.0","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-n":"^16.6.0","eslint-plugin-unicorn":"^49.0.0","eslint-release":"^3.2.2",eslump:"^3.0.0",esprima:"^4.0.1","fast-glob":"^3.2.11","fs-teardown":"^0.1.3",glob:"^10.0.0",globals:"^15.0.0",got:"^11.8.3","gray-matter":"^4.0.3","js-yaml":"^4.1.0",knip:"^5.8.0","lint-staged":"^11.0.0","load-perf":"^0.2.0","markdown-it":"^12.2.0","markdown-it-container":"^3.0.0",markdownlint:"^0.34.0","markdownlint-cli":"^0.39.0",marked:"^4.0.8",metascraper:"^5.25.7","metascraper-description":"^5.25.7","metascraper-image":"^5.29.3","metascraper-logo":"^5.25.7","metascraper-logo-favicon":"^5.25.7","metascraper-title":"^5.25.7",mocha:"^8.3.2","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",pirates:"^4.0.5",progress:"^2.0.3",proxyquire:"^2.0.1",recast:"^0.23.0","regenerator-runtime":"^0.14.0","rollup-plugin-node-polyfills":"^0.2.1",semver:"^7.5.3",shelljs:"^0.8.5",sinon:"^11.0.0",typescript:"^5.3.3","vite-plugin-commonjs":"^0.10.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},j9=["ast","lint","javascript","ecmascript","espree"],q9="MIT",Q9={node:"^18.18.0 || ^20.9.0 || >=21.1.0"},U9={name:C9,version:w9,author:k9,description:A9,bin:P9,main:T9,exports:D9,scripts:_9,gitHooks:I9,"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint --fix","lib/rules/*.js":["node tools/update-eslint-all.js","git add packages/js/src/configs/eslint-all.js"],"docs/src/rules/*.md":["node tools/check-rule-examples.js","node tools/fetch-docs-links.js","git add docs/src/_data/further_reading_links.json"],"docs/**/*.svg":"npx -y svgo -r --multipass"},files:F9,repository:R9,funding:B9,homepage:N9,bugs:L9,dependencies:$9,devDependencies:M9,keywords:j9,license:q9,engines:Q9},ud,LA;function Sc(){if(LA)return ud;LA=1;let r=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,e=/\r\n|[\r\n\u2028\u2029]/u,t=/^#!([^\r\n]+)/u;function s(){return new RegExp(e.source,"gu")}return ud={breakableTypePattern:r,lineBreakPattern:e,createGlobalLinebreakMatcher:s,shebangPattern:t},ud}var cd,$A;function Ec(){return $A||($A=1,cd={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),cd}var Ku={},RB=pc(KQ),Ju={exports:{}};var MA;function V9(){return MA||(MA=1,function(r,e){(function(t,s){s(e)})(this,function(t){function s(){for(var se=arguments.length,K=Array(se),he=0;he1){K[0]=K[0].slice(0,-1);for(var Ce=K.length-1,we=1;we= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=m-g,F=Math.floor,L=String.fromCharCode;function _(se){throw new RangeError(T[se])}function B(se,K){for(var he=[],Ce=se.length;Ce--;)he[Ce]=K(se[Ce]);return he}function Q(se,K){var he=se.split("@"),Ce="";he.length>1&&(Ce=he[0]+"@",se=he[1]),se=se.replace(P,".");var we=se.split("."),Ge=B(we,K).join(".");return Ce+Ge}function V(se){for(var K=[],he=0,Ce=se.length;he=55296&&we<=56319&&he>1,K+=F(K/he);K>I*b>>1;we+=m)K=F(K/I);return F(we+(I+1)*K/(K+O))},Z=function(K){var he=[],Ce=K.length,we=0,Ge=k,et=C,yt=K.lastIndexOf(E);yt<0&&(yt=0);for(var Et=0;Et=128&&_("not-basic"),he.push(K.charCodeAt(Et));for(var Dt=yt>0?yt+1:0;Dt=Ce&&_("invalid-input");var He=$(K.charCodeAt(Dt++));(He>=m||He>F((d-we)/We))&&_("overflow"),we+=He*We;var Ve=it<=et?g:it>=et+b?b:it-et;if(HeF(d/ft)&&_("overflow"),We*=ft}var gt=he.length+1;et=W(we-vt,gt,vt==0),F(we/gt)>d-Ge&&_("overflow"),Ge+=F(we/gt),we%=gt,he.splice(we++,0,Ge)}return String.fromCodePoint.apply(String,he)},le=function(K){var he=[];K=V(K);var Ce=K.length,we=k,Ge=0,et=C,yt=!0,Et=!1,Dt=void 0;try{for(var vt=K[Symbol.iterator](),We;!(yt=(We=vt.next()).done);yt=!0){var it=We.value;it<128&&he.push(L(it))}}catch(gn){Et=!0,Dt=gn}finally{try{!yt&&vt.return&&vt.return()}finally{if(Et)throw Dt}}var He=he.length,Ve=He;for(He&&he.push(E);Ve=we&&utF((d-Ge)/$t)&&_("overflow"),Ge+=(ft-we)*$t,we=ft;var Or=!0,$r=!1,kr=void 0;try{for(var Vr=K[Symbol.iterator](),hs;!(Or=(hs=Vr.next()).done);Or=!0){var Kn=hs.value;if(Knd&&_("overflow"),Kn==we){for(var gr=Ge,or=m;;or+=m){var mn=or<=et?g:or>=et+b?b:or-et;if(gr>6|192).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase():he="%"+(K>>12|224).toString(16).toUpperCase()+"%"+(K>>6&63|128).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase(),he}function de(se){for(var K="",he=0,Ce=se.length;he=194&&we<224){if(Ce-he>=6){var Ge=parseInt(se.substr(he+4,2),16);K+=String.fromCharCode((we&31)<<6|Ge&63)}else K+=se.substr(he,6);he+=6}else if(we>=224){if(Ce-he>=9){var et=parseInt(se.substr(he+4,2),16),yt=parseInt(se.substr(he+7,2),16);K+=String.fromCharCode((we&15)<<12|(et&63)<<6|yt&63)}else K+=se.substr(he,9);he+=9}else K+=se.substr(he,3),he+=3}return K}function ee(se,K){function he(Ce){var we=de(Ce);return we.match(K.UNRESERVED)?we:Ce}return se.scheme&&(se.scheme=String(se.scheme).replace(K.PCT_ENCODED,he).toLowerCase().replace(K.NOT_SCHEME,"")),se.userinfo!==void 0&&(se.userinfo=String(se.userinfo).replace(K.PCT_ENCODED,he).replace(K.NOT_USERINFO,j).replace(K.PCT_ENCODED,a)),se.host!==void 0&&(se.host=String(se.host).replace(K.PCT_ENCODED,he).toLowerCase().replace(K.NOT_HOST,j).replace(K.PCT_ENCODED,a)),se.path!==void 0&&(se.path=String(se.path).replace(K.PCT_ENCODED,he).replace(se.scheme?K.NOT_PATH:K.NOT_PATH_NOSCHEME,j).replace(K.PCT_ENCODED,a)),se.query!==void 0&&(se.query=String(se.query).replace(K.PCT_ENCODED,he).replace(K.NOT_QUERY,j).replace(K.PCT_ENCODED,a)),se.fragment!==void 0&&(se.fragment=String(se.fragment).replace(K.PCT_ENCODED,he).replace(K.NOT_FRAGMENT,j).replace(K.PCT_ENCODED,a)),se}function ce(se){return se.replace(/^0*(.*)/,"$1")||"0"}function ve(se,K){var he=se.match(K.IPV4ADDRESS)||[],Ce=h(he,2),we=Ce[1];return we?we.split(".").map(ce).join("."):se}function Me(se,K){var he=se.match(K.IPV6ADDRESS)||[],Ce=h(he,3),we=Ce[1],Ge=Ce[2];if(we){for(var et=we.toLowerCase().split("::").reverse(),yt=h(et,2),Et=yt[0],Dt=yt[1],vt=Dt?Dt.split(":").map(ce):[],We=Et.split(":").map(ce),it=K.IPV4ADDRESS.test(We[We.length-1]),He=it?7:8,Ve=We.length-He,ft=Array(He),gt=0;gt1){var ar=ft.slice(0,Vt.index),ut=ft.slice(Vt.index+Vt.length);Qt=ar.join(":")+"::"+ut.join(":")}else Qt=ft.join(":");return Ge&&(Qt+="%"+Ge),Qt}else return se}var Ue=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,st="".match(/(){0}/)[1]===void 0;function mt(se){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he={},Ce=K.iri!==!1?p:c;K.reference==="suffix"&&(se=(K.scheme?K.scheme+":":"")+"//"+se);var we=se.match(Ue);if(we){st?(he.scheme=we[1],he.userinfo=we[3],he.host=we[4],he.port=parseInt(we[5],10),he.path=we[6]||"",he.query=we[7],he.fragment=we[8],isNaN(he.port)&&(he.port=we[5])):(he.scheme=we[1]||void 0,he.userinfo=se.indexOf("@")!==-1?we[3]:void 0,he.host=se.indexOf("//")!==-1?we[4]:void 0,he.port=parseInt(we[5],10),he.path=we[6]||"",he.query=se.indexOf("?")!==-1?we[7]:void 0,he.fragment=se.indexOf("#")!==-1?we[8]:void 0,isNaN(he.port)&&(he.port=se.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?we[4]:void 0)),he.host&&(he.host=Me(ve(he.host,Ce),Ce)),he.scheme===void 0&&he.userinfo===void 0&&he.host===void 0&&he.port===void 0&&!he.path&&he.query===void 0?he.reference="same-document":he.scheme===void 0?he.reference="relative":he.fragment===void 0?he.reference="absolute":he.reference="uri",K.reference&&K.reference!=="suffix"&&K.reference!==he.reference&&(he.error=he.error||"URI is not a "+K.reference+" reference.");var Ge=me[(K.scheme||he.scheme||"").toLowerCase()];if(!K.unicodeSupport&&(!Ge||!Ge.unicodeSupport)){if(he.host&&(K.domainHost||Ge&&Ge.domainHost))try{he.host=J.toASCII(he.host.replace(Ce.PCT_ENCODED,de).toLowerCase())}catch(et){he.error=he.error||"Host's domain name can not be converted to ASCII via punycode: "+et}ee(he,c)}else ee(he,Ce);Ge&&Ge.parse&&Ge.parse(he,K)}else he.error=he.error||"URI can not be parsed.";return he}function dt(se,K){var he=K.iri!==!1?p:c,Ce=[];return se.userinfo!==void 0&&(Ce.push(se.userinfo),Ce.push("@")),se.host!==void 0&&Ce.push(Me(ve(String(se.host),he),he).replace(he.IPV6ADDRESS,function(we,Ge,et){return"["+Ge+(et?"%25"+et:"")+"]"})),(typeof se.port=="number"||typeof se.port=="string")&&(Ce.push(":"),Ce.push(String(se.port))),Ce.length?Ce.join(""):void 0}var wt=/^\.\.?\//,Y=/^\/\.(\/|$)/,Ae=/^\/\.\.(\/|$)/,Ze=/^\/?(?:.|\n)*?(?=\/|$)/;function rt(se){for(var K=[];se.length;)if(se.match(wt))se=se.replace(wt,"");else if(se.match(Y))se=se.replace(Y,"/");else if(se.match(Ae))se=se.replace(Ae,"/"),K.pop();else if(se==="."||se==="..")se="";else{var he=se.match(Ze);if(he){var Ce=he[0];se=se.slice(Ce.length),K.push(Ce)}else throw new Error("Unexpected dot segment condition")}return K.join("")}function ot(se){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=K.iri?p:c,Ce=[],we=me[(K.scheme||se.scheme||"").toLowerCase()];if(we&&we.serialize&&we.serialize(se,K),se.host&&!he.IPV6ADDRESS.test(se.host)){if(K.domainHost||we&&we.domainHost)try{se.host=K.iri?J.toUnicode(se.host):J.toASCII(se.host.replace(he.PCT_ENCODED,de).toLowerCase())}catch(yt){se.error=se.error||"Host's domain name can not be converted to "+(K.iri?"Unicode":"ASCII")+" via punycode: "+yt}}ee(se,he),K.reference!=="suffix"&&se.scheme&&(Ce.push(se.scheme),Ce.push(":"));var Ge=dt(se,K);if(Ge!==void 0&&(K.reference!=="suffix"&&Ce.push("//"),Ce.push(Ge),se.path&&se.path.charAt(0)!=="/"&&Ce.push("/")),se.path!==void 0){var et=se.path;!K.absolutePath&&(!we||!we.absolutePath)&&(et=rt(et)),Ge===void 0&&(et=et.replace(/^\/\//,"/%2F")),Ce.push(et)}return se.query!==void 0&&(Ce.push("?"),Ce.push(se.query)),se.fragment!==void 0&&(Ce.push("#"),Ce.push(se.fragment)),Ce.join("")}function at(se,K){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ce=arguments[3],we={};return Ce||(se=mt(ot(se,he),he),K=mt(ot(K,he),he)),he=he||{},!he.tolerant&&K.scheme?(we.scheme=K.scheme,we.userinfo=K.userinfo,we.host=K.host,we.port=K.port,we.path=rt(K.path||""),we.query=K.query):(K.userinfo!==void 0||K.host!==void 0||K.port!==void 0?(we.userinfo=K.userinfo,we.host=K.host,we.port=K.port,we.path=rt(K.path||""),we.query=K.query):(K.path?(K.path.charAt(0)==="/"?we.path=rt(K.path):((se.userinfo!==void 0||se.host!==void 0||se.port!==void 0)&&!se.path?we.path="/"+K.path:se.path?we.path=se.path.slice(0,se.path.lastIndexOf("/")+1)+K.path:we.path=K.path,we.path=rt(we.path)),we.query=K.query):(we.path=se.path,K.query!==void 0?we.query=K.query:we.query=se.query),we.userinfo=se.userinfo,we.host=se.host,we.port=se.port),we.scheme=se.scheme),we.fragment=K.fragment,we}function kt(se,K,he){var Ce=o({scheme:"null"},he);return ot(at(mt(se,Ce),mt(K,Ce),Ce,!0),Ce)}function Ot(se,K){return typeof se=="string"?se=ot(mt(se,K),K):i(se)==="object"&&(se=mt(ot(se,K),K)),se}function It(se,K,he){return typeof se=="string"?se=ot(mt(se,he),he):i(se)==="object"&&(se=ot(se,he)),typeof K=="string"?K=ot(mt(K,he),he):i(K)==="object"&&(K=ot(K,he)),se===K}function Ft(se,K){return se&&se.toString().replace(!K||!K.iri?c.ESCAPE:p.ESCAPE,j)}function z(se,K){return se&&se.toString().replace(!K||!K.iri?c.PCT_ENCODED:p.PCT_ENCODED,de)}var St={scheme:"http",domainHost:!0,parse:function(K,he){return K.host||(K.error=K.error||"HTTP URIs must have a host."),K},serialize:function(K,he){var Ce=String(K.scheme).toLowerCase()==="https";return(K.port===(Ce?443:80)||K.port==="")&&(K.port=void 0),K.path||(K.path="/"),K}},Ke={scheme:"https",domainHost:St.domainHost,parse:St.parse,serialize:St.serialize};function er(se){return typeof se.secure=="boolean"?se.secure:String(se.scheme).toLowerCase()==="wss"}var Ie={scheme:"ws",domainHost:!0,parse:function(K,he){var Ce=K;return Ce.secure=er(Ce),Ce.resourceName=(Ce.path||"/")+(Ce.query?"?"+Ce.query:""),Ce.path=void 0,Ce.query=void 0,Ce},serialize:function(K,he){if((K.port===(er(K)?443:80)||K.port==="")&&(K.port=void 0),typeof K.secure=="boolean"&&(K.scheme=K.secure?"wss":"ws",K.secure=void 0),K.resourceName){var Ce=K.resourceName.split("?"),we=h(Ce,2),Ge=we[0],et=we[1];K.path=Ge&&Ge!=="/"?Ge:void 0,K.query=et,K.resourceName=void 0}return K.fragment=void 0,K}},H={scheme:"wss",domainHost:Ie.domainHost,parse:Ie.parse,serialize:Ie.serialize},ie={},re="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",ue="[0-9A-Fa-f]",pe=n(n("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+n("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+n("%"+ue+ue)),X="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",te="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",oe=s(te,'[\\"\\\\]'),ge="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",ke=new RegExp(re,"g"),M=new RegExp(pe,"g"),fe=new RegExp(s("[^]",X,"[\\.]",'[\\"]',oe),"g"),_e=new RegExp(s("[^]",re,ge),"g"),Le=_e;function je(se){var K=de(se);return K.match(ke)?K:se}var Ne={scheme:"mailto",parse:function(K,he){var Ce=K,we=Ce.to=Ce.path?Ce.path.split(","):[];if(Ce.path=void 0,Ce.query){for(var Ge=!1,et={},yt=Ce.query.split("&"),Et=0,Dt=yt.length;Et=55296&&i<=56319&&n=I)throw new Error("Cannot access property/index "+L+" levels up, current level is "+I);return F[I-L]}if(L>I)throw new Error("Cannot access data "+L+" levels up, current level is "+I);if(B="data"+(I-L||""),!_)return B}for(var V=B,R=_.split("/"),$=0;$=0?{index:C,compiling:!0}:(C=this._compilations.length,this._compilations[C]={schema:b,root:O,baseId:S},{index:C,compiling:!1})}function c(b,O,S){var C=p.call(this,b,O,S);C>=0&&this._compilations.splice(C,1)}function p(b,O,S){for(var C=0;C%\\^`{|}]|%[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,o=/^(?:(?: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,u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,c=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Sd=f;function f(A){return A=A=="full"?"full":"fast",r.copy(f[A])}f.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":l,url:o,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:n,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:E,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h},f.full={date:m,time:g,"date-time":O,uri:C,"uri-reference":a,"uri-template":l,url:o,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:n,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:E,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h};function d(A){return A%4===0&&(A%100!==0||A%400===0)}function m(A){var w=A.match(e);if(!w)return!1;var P=+w[1],T=+w[2],I=+w[3];return T>=1&&T<=12&&I>=1&&I<=(T==2&&d(P)?29:t[T])}function g(A,w){var P=A.match(s);if(!P)return!1;var T=P[1],I=P[2],F=P[3],L=P[5];return(T<=23&&I<=59&&F<=59||T==23&&I==59&&F==60)&&(!w||L)}var b=/t|\s/i;function O(A){var w=A.split(b);return w.length==2&&m(w[0])&&g(w[1],!0)}var S=/\/|:/;function C(A){return S.test(A)&&i.test(A)}var k=/[^\\]\\Z/;function E(A){if(k.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}return Sd}var Ed,KA;function Y9(){return KA||(KA=1,Ed=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(a||""),p="valid"+i,h,f;if(l=="#"||l=="#/")e.isRoot?(h=e.async,f="validate"):(h=e.root.schema.$async===!0,f="root.refVal[0]");else{var d=e.resolveRef(e.baseId,l,e.isRoot);if(d===void 0){var m=e.MissingRefError.message(e.baseId,l);if(e.opts.missingRefs=="fail"){e.logger.error(m);var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",e.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(n+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var b=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),u&&(n+=" if (true) { ");else throw new e.MissingRefError(e.baseId,l,m)}else if(d.inline){var O=e.util.copy(e);O.level++;var S="valid"+O.level;O.schema=d.schema,O.schemaPath="",O.errSchemaPath=l;var C=e.validate(O).replace(/validate\.schema/g,d.code);n+=" "+C+" ",u&&(n+=" if ("+S+") { ")}else h=d.$async===!0||e.async&&d.$async!==!1,f=d.code}if(f){var g=g||[];g.push(n),n="",e.opts.passContext?n+=" "+f+".call(this, ":n+=" "+f+"( ",n+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(n+=" + "+e.errorPath);var k=a?"data"+(a-1||""):"parentData",E=a?e.dataPathArr[a]:"parentDataProperty";n+=" , "+k+" , "+E+", rootData) ";var A=n;if(n=g.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(n+=" var "+p+"; "),n+=" try { await "+A+"; ",u&&(n+=" "+p+" = true; "),n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(n+=" "+p+" = false; "),n+=" } ",u&&(n+=" if ("+p+") { ")}else n+=" if (!"+A+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(n+=" else { ")}return n}),Ed}var Cd,JA;function H9(){return JA||(JA=1,Cd=function(e,t,s){var n=" ",i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,o=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var p="valid"+u.level,h=u.baseId,f=!0,d=i;if(d)for(var m,g=-1,b=d.length-1;g0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,u.schema=m,u.schemaPath=a+"["+g+"]",u.errSchemaPath=l+"/"+g,n+=" "+e.validate(u)+" ",u.baseId=h,o&&(n+=" if ("+p+") { ",c+="}"));return o&&(f?n+=" if (true) { ":n+=" "+c.slice(0,-1)+" "),n}),Cd}var wd,eP;function K9(){return eP||(eP=1,wd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,b=l.every(function(w){return e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all)});if(b){var O=d.baseId;n+=" var "+f+" = errors; var "+h+" = false; ";var S=e.compositeRule;e.compositeRule=d.compositeRule=!0;var C=l;if(C)for(var k,E=-1,A=C.length-1;E0||l===!1:e.util.schemaHasRules(l,e.RULES.all);if(n+="var "+f+" = errors;var "+h+";",k){var E=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+g+" = false; for (var "+b+" = 0; "+b+" < "+p+".length; "+b+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var A=p+"["+b+"]";d.dataPathArr[O]=b;var w=e.validate(d);d.baseId=C,e.util.varOccurences(w,S)<2?n+=" "+e.util.varReplace(w,S,A)+" ":n+=" var "+S+" = "+A+"; "+w+" ",n+=" if ("+g+") break; } ",e.compositeRule=d.compositeRule=E,n+=" "+m+" if (!"+g+") {"}else n+=" if ("+p+".length == 0) {";var P=P||[];P.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var T=n;return n=P.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",k&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}),Pd}var Td,sP;function rU(){return sP||(sP=1,Td=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g={},b={},O=e.opts.ownProperties;for(E in l)if(E!="__proto__"){var S=l[E],C=Array.isArray(S)?b:g;C[E]=S}n+="var "+h+" = errors;";var k=e.errorPath;n+="var missing"+i+";";for(var E in b)if(C=b[E],C.length){if(n+=" if ( "+p+e.util.getProperty(E)+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(E)+"') "),c){n+=" && ( ";var A=C;if(A)for(var w,P=-1,T=A.length-1;P0||S===!1:e.util.schemaHasRules(S,e.RULES.all))&&(n+=" "+m+" = true; if ( "+p+e.util.getProperty(E)+" !== undefined ",O&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(E)+"') "),n+=") { ",f.schema=S,f.schemaPath=o+e.util.getProperty(E),f.errSchemaPath=u+"/"+e.util.escapeFragment(E),n+=" "+e.validate(f)+" ",f.baseId=N,n+=" } ",c&&(n+=" if ("+m+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),Td}var Dd,iP;function nU(){return iP||(iP=1,Dd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&l&&l.$data;f&&(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ");var d="i"+i,m="schema"+i;f||(n+=" var "+m+" = validate.schema"+o+";"),n+="var "+h+";",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=""+h+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+p+", "+m+"["+d+"])) { "+h+" = true; break; }",f&&(n+=" } "),n+=" if (!"+h+") { ";var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}),Dd}var _d,aP;function sU(){return aP||(aP=1,_d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||"");if(e.opts.format===!1)return c&&(n+=" if (true) { "),n;var h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=e.opts.unknownFormats,m=Array.isArray(d);if(h){var g="format"+i,b="isObject"+i,O="formatType"+i;n+=" var "+g+" = formats["+f+"]; var "+b+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+O+" = "+b+" && "+g+".type || 'string'; if ("+b+") { ",e.async&&(n+=" var async"+i+" = "+g+".async; "),n+=" "+g+" = "+g+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (",d!="ignore"&&(n+=" ("+f+" && !"+g+" ",m&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+g+" && "+O+" == '"+s+"' && !(typeof "+g+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+g+"("+p+") : "+g+"("+p+")) ":n+=" "+g+"("+p+") ",n+=" : "+g+".test("+p+"))))) {"}else{var g=e.formats[l];if(!g){if(d=="ignore")return e.logger.warn('unknown format "'+l+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(m&&d.indexOf(l)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+l+'" is used in schema at path "'+e.errSchemaPath+'"')}var b=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,O=b&&g.type||"string";if(b){var S=g.async===!0;g=g.validate}if(O!=s)return c&&(n+=" if (true) { "),n;if(S){if(!e.async)throw new Error("async format in sync schema");var C="formats"+e.util.getProperty(l)+".validate";n+=" if (!(await "+C+"("+p+"))) { "}else{n+=" if (! ";var C="formats"+e.util.getProperty(l);b&&(C+=".validate"),typeof g=="function"?n+=" "+C+"("+p+") ":n+=" "+C+".test("+p+") ",n+=") { "}}var k=k||[];k.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match format "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;return n=k.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),_d}var Id,oP;function iU(){return oP||(oP=1,Id=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e);d.level++;var m="valid"+d.level,g=e.schema.then,b=e.schema.else,O=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),S=b!==void 0&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all)),C=d.baseId;if(O||S){var k;d.createErrors=!1,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+f+" = errors; var "+h+" = true; ";var E=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=C,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=E,O?(n+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=C,n+=" "+h+" = "+m+"; ",O&&S?(k="ifClause"+i,n+=" var "+k+" = 'then'; "):k="'then'",n+=" } ",S&&(n+=" else { ")):n+=" if (!"+m+") { ",S&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=C,n+=" "+h+" = "+m+"; ",O&&S?(k="ifClause"+i,n+=" var "+k+" = 'else'; "):k="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+k+" } ",e.opts.messages!==!1&&(n+=` , message: 'should match "' + `+k+` + '" schema' `),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Id}var Fd,lP;function aU(){return lP||(lP=1,Fd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,b="i"+i,O=d.dataLevel=e.dataLevel+1,S="data"+O,C=e.baseId;if(n+="var "+f+" = errors;var "+h+";",Array.isArray(l)){var k=e.schema.additionalItems;if(k===!1){n+=" "+h+" = "+p+".length <= "+l.length+"; ";var E=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var A=A||[];A.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+l.length+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have more than "+l.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var w=n;n=A.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+w+"]); ":n+=" validate.errors = ["+w+"]; return false; ":n+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=E,c&&(m+="}",n+=" else { ")}var P=l;if(P){for(var T,I=-1,F=P.length-1;I0||T===!1:e.util.schemaHasRules(T,e.RULES.all)){n+=" "+g+" = true; if ("+p+".length > "+I+") { ";var L=p+"["+I+"]";d.schema=T,d.schemaPath=o+"["+I+"]",d.errSchemaPath=u+"/"+I,d.errorPath=e.util.getPathExpr(e.errorPath,I,e.opts.jsonPointers,!0),d.dataPathArr[O]=I;var _=e.validate(d);d.baseId=C,e.util.varOccurences(_,S)<2?n+=" "+e.util.varReplace(_,S,L)+" ":n+=" var "+S+" = "+L+"; "+_+" ",n+=" } ",c&&(n+=" if ("+g+") { ",m+="}")}}if(typeof k=="object"&&(e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,e.RULES.all))){d.schema=k,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+g+" = true; if ("+p+".length > "+l.length+") { for (var "+b+" = "+l.length+"; "+b+" < "+p+".length; "+b+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var L=p+"["+b+"]";d.dataPathArr[O]=b;var _=e.validate(d);d.baseId=C,e.util.varOccurences(_,S)<2?n+=" "+e.util.varReplace(_,S,L)+" ":n+=" var "+S+" = "+L+"; "+_+" ",c&&(n+=" if (!"+g+") break; "),n+=" } } ",c&&(n+=" if ("+g+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" for (var "+b+" = 0; "+b+" < "+p+".length; "+b+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,!0);var L=p+"["+b+"]";d.dataPathArr[O]=b;var _=e.validate(d);d.baseId=C,e.util.varOccurences(_,S)<2?n+=" "+e.util.varReplace(_,S,L)+" ":n+=" var "+S+" = "+L+"; "+_+" ",c&&(n+=" if (!"+g+") break; "),n+=" }"}return c&&(n+=" "+m+" if ("+f+" == errors) {"),n}),Fd}var Rd,uP;function cP(){return uP||(uP=1,Rd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,C,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=t=="maximum",m=d?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[m],b=e.opts.$data&&g&&g.$data,O=d?"<":">",S=d?">":"<",C=void 0;if(!(h||typeof l=="number"||l===void 0))throw new Error(t+" must be number");if(!(b||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(m+" must be number or boolean");if(b){var k=e.util.getData(g.$data,a,e.dataPathArr),E="exclusive"+i,A="exclType"+i,w="exclIsNumber"+i,P="op"+i,T="' + "+P+" + '";n+=" var schemaExcl"+i+" = "+k+"; ",k="schemaExcl"+i,n+=" var "+E+"; var "+A+" = typeof "+k+"; if ("+A+" != 'boolean' && "+A+" != 'undefined' && "+A+" != 'number') { ";var C=m,I=I||[];I.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(C||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var F=n;n=I.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+A+" == 'number' ? ( ("+E+" = "+f+" === undefined || "+k+" "+O+"= "+f+") ? "+p+" "+S+"= "+k+" : "+p+" "+S+" "+f+" ) : ( ("+E+" = "+k+" === true) ? "+p+" "+S+"= "+f+" : "+p+" "+S+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+E+" ? '"+O+"' : '"+O+"='; ",l===void 0&&(C=m,u=e.errSchemaPath+"/"+m,f=k,h=b)}else{var w=typeof g=="number",T=O;if(w&&h){var P="'"+T+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+g+" "+O+"= "+f+" ? "+p+" "+S+"= "+g+" : "+p+" "+S+" "+f+" ) || "+p+" !== "+p+") { "}else{w&&l===void 0?(E=!0,C=m,u=e.errSchemaPath+"/"+m,f=g,S+="="):(w&&(f=Math[d?"min":"max"](g,l)),g===(w?f:!0)?(E=!0,C=m,u=e.errSchemaPath+"/"+m,S+="="):(E=!1,T+="="));var P="'"+T+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+" "+S+" "+f+" || "+p+" !== "+p+") { "}}C=C||t;var I=I||[];I.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(C||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+P+", limit: "+f+", exclusive: "+E+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be "+T+" ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var F=n;return n=I.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Rd}var Bd,fP;function pP(){return fP||(fP=1,Bd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxItems"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+".length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxItems"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Bd}var Nd,hP;function dP(){return hP||(hP=1,Nd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxLength"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be ",t=="maxLength"?n+="longer":n+="shorter",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Nd}var Ld,mP;function gP(){return mP||(mP=1,Ld=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxProperties"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" Object.keys("+p+").length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxProperties"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Ld}var $d,yP;function oU(){return yP||(yP=1,$d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");n+="var division"+i+";if (",h&&(n+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",h&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),$d}var Md,xP;function lU(){return xP||(xP=1,Md=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u,n+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var g;f.opts.allErrors&&(g=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,g&&(f.opts.allErrors=g),e.compositeRule=f.compositeRule=m,n+=" if ("+d+") { ";var b=b||[];b.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var O=n;n=b.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}),Md}var jd,bP;function uU(){return bP||(bP=1,jd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,b=d.baseId,O="prevValid"+i,S="passingSchemas"+i;n+="var "+f+" = errors , "+O+" = false , "+h+" = false , "+S+" = null; ";var C=e.compositeRule;e.compositeRule=d.compositeRule=!0;var k=l;if(k)for(var E,A=-1,w=k.length-1;A0||E===!1:e.util.schemaHasRules(E,e.RULES.all))?(d.schema=E,d.schemaPath=o+"["+A+"]",d.errSchemaPath=u+"/"+A,n+=" "+e.validate(d)+" ",d.baseId=b):n+=" var "+g+" = true; ",A&&(n+=" if ("+g+" && "+O+") { "+h+" = false; "+S+" = ["+S+", "+A+"]; } else { ",m+="}"),n+=" if ("+g+") { "+h+" = "+O+" = true; "+S+" = "+A+"; }";return e.compositeRule=d.compositeRule=C,n+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+S+" } ",e.opts.messages!==!1&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}),jd}var qd,vP;function cU(){return vP||(vP=1,qd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=h?"(new RegExp("+f+"))":e.usePattern(l);n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" !"+d+".test("+p+") ) { ";var m=m||[];m.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match pattern "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),qd}var Qd,OP;function fU(){return OP||(OP=1,Qd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="key"+i,b="idx"+i,O=f.dataLevel=e.dataLevel+1,S="data"+O,C="dataProperties"+i,k=Object.keys(l||{}).filter(R),E=e.schema.patternProperties||{},A=Object.keys(E).filter(R),w=e.schema.additionalProperties,P=k.length||A.length,T=w===!1,I=typeof w=="object"&&Object.keys(w).length,F=e.opts.removeAdditional,L=T||I||F,_=e.opts.ownProperties,B=e.baseId,Q=e.schema.required;if(Q&&!(e.opts.$data&&Q.$data)&&Q.length8)n+=" || validate.schema"+o+".hasOwnProperty("+g+") ";else{var $=k;if($)for(var N,W=-1,Z=$.length-1;W0||Y===!1:e.util.schemaHasRules(Y,e.RULES.all)){var Ae=e.util.getProperty(N),Me=p+Ae,Ze=st&&Y.default!==void 0;f.schema=Y,f.schemaPath=o+Ae,f.errSchemaPath=u+"/"+e.util.escapeFragment(N),f.errorPath=e.util.getPath(e.errorPath,N,e.opts.jsonPointers),f.dataPathArr[O]=e.util.toQuotedString(N);var Ue=e.validate(f);if(f.baseId=B,e.util.varOccurences(Ue,S)<2){Ue=e.util.varReplace(Ue,S,Me);var rt=Me}else{var rt=S;n+=" var "+S+" = "+Me+"; "}if(Ze)n+=" "+Ue+" ";else{if(V&&V[N]){n+=" if ( "+rt+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(N)+"') "),n+=") { "+m+" = false; ";var me=e.errorPath,de=u,ot=e.util.escapeQuotes(N);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(me,N,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var ee=ee||[];ee.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+ot+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+ot+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var ce=n;n=ee.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+ce+"]); ":n+=" validate.errors = ["+ce+"]; return false; ":n+=" var err = "+ce+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=de,e.errorPath=me,n+=" } else { "}else c?(n+=" if ( "+rt+" === undefined ",_&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(N)+"') "),n+=") { "+m+" = true; } else { "):(n+=" if ("+rt+" !== undefined ",_&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(N)+"') "),n+=" ) { ");n+=" "+Ue+" } "}}c&&(n+=" if ("+m+") { ",d+="}")}}if(A.length){var at=A;if(at)for(var ae,kt=-1,Ot=at.length-1;kt0||Y===!1:e.util.schemaHasRules(Y,e.RULES.all)){f.schema=Y,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ae),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ae),_?n+=" "+C+" = "+C+" || Object.keys("+p+"); for (var "+b+"=0; "+b+"<"+C+".length; "+b+"++) { var "+g+" = "+C+"["+b+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" if ("+e.usePattern(ae)+".test("+g+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Me=p+"["+g+"]";f.dataPathArr[O]=g;var Ue=e.validate(f);f.baseId=B,e.util.varOccurences(Ue,S)<2?n+=" "+e.util.varReplace(Ue,S,Me)+" ":n+=" var "+S+" = "+Me+"; "+Ue+" ",c&&(n+=" if (!"+m+") break; "),n+=" } ",c&&(n+=" else "+m+" = true; "),n+=" } ",c&&(n+=" if ("+m+") { ",d+="}")}}}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),Qd}var Ud,SP;function pU(){return SP||(SP=1,Ud=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u;var g="key"+i,b="idx"+i,O="i"+i,S="' + "+g+" + '",C=f.dataLevel=e.dataLevel+1,k="data"+C,E="dataProperties"+i,A=e.opts.ownProperties,w=e.baseId;A&&(n+=" var "+E+" = undefined; "),A?n+=" "+E+" = "+E+" || Object.keys("+p+"); for (var "+b+"=0; "+b+"<"+E+".length; "+b+"++) { var "+g+" = "+E+"["+b+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" var startErrs"+i+" = errors; ";var P=g,T=e.compositeRule;e.compositeRule=f.compositeRule=!0;var I=e.validate(f);f.baseId=w,e.util.varOccurences(I,k)<2?n+=" "+e.util.varReplace(I,k,P)+" ":n+=" var "+k+" = "+P+"; "+I+" ",e.compositeRule=f.compositeRule=T,n+=" if (!"+m+") { for (var "+O+"=startErrs"+i+"; "+O+"0||C===!1:e.util.schemaHasRules(C,e.RULES.all))||(m[m.length]=b)}}else var m=l;if(f||m.length){var k=e.errorPath,E=f||m.length>=e.opts.loopRequired,A=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",E){f||(n+=" var "+d+" = validate.schema"+o+"; ");var w="i"+i,P="schema"+i+"["+w+"]",T="' + "+P+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(k,P,e.opts.jsonPointers)),n+=" var "+h+" = true; ",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+w+" = 0; "+w+" < "+d+".length; "+w+"++) { "+h+" = "+p+"["+d+"["+w+"]] !== undefined ",A&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+d+"["+w+"]) "),n+="; if (!"+h+") break; } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var I=I||[];I.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+T+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+T+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var F=n;n=I.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var L=m;if(L)for(var _,w=-1,B=L.length-1;w 1) { ";var m=e.schema.items&&e.schema.items.type,g=Array.isArray(m);if(!m||m=="object"||m=="array"||g&&(m.indexOf("object")>=0||m.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+h+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var b="checkDataType"+(g?"s":"");n+=" if ("+e.util[b](m,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(n+=` if (typeof item == 'string') item = '"' + item; `),n+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var O=O||[];O.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;n=O.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Wd}var Zd,wP;function mU(){return wP||(wP=1,Zd={$ref:Y9(),allOf:H9(),anyOf:K9(),$comment:J9(),const:eU(),contains:tU(),dependencies:rU(),enum:nU(),format:sU(),if:iU(),items:aU(),maximum:cP(),minimum:cP(),maxItems:pP(),minItems:pP(),maxLength:dP(),minLength:dP(),maxProperties:gP(),minProperties:gP(),multipleOf:oU(),not:lU(),oneOf:uU(),pattern:cU(),properties:fU(),propertyNames:pU(),required:hU(),uniqueItems:dU(),validate:LB()}),Zd}var zd,kP;function gU(){if(kP)return zd;kP=1;var r=mU(),e=Oa().toHash;return zd=function(){var s=[{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"]}],n=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],a=["number","integer","string","array","object","boolean","null"];return s.all=e(n),s.types=e(a),s.forEach(function(l){l.rules=l.rules.map(function(o){var u;if(typeof o=="object"){var c=Object.keys(o)[0];u=o[c],o=c,u.forEach(function(h){n.push(h),s.all[h]=!0})}n.push(o);var p=s.all[o]={keyword:o,code:r[o],implements:u};return p}),s.all.$comment={keyword:"$comment",code:r.$comment},l.type&&(s.types[l.type]=l)}),s.keywords=e(n.concat(i)),s.custom={},s},zd}var Xd,AP;function yU(){if(AP)return Xd;AP=1;var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Xd=function(e,t){for(var s=0;s(ee[ce]=ve,ee),{}),p=[0,1,2,"off","warn","error"];function h(ee){let ce=Array.isArray(ee)?ee[0]:ee;return ce===0||ce===1||ce===2?ce:typeof ce=="string"&&c[ce.toLowerCase()]||0}function f(ee){ee.rules&&Object.keys(ee.rules).forEach(ce=>{let ve=ee.rules[ce];typeof ve=="number"?ee.rules[ce]=u[ve]||u[0]:Array.isArray(ve)&&typeof ve[0]=="number"&&(ve[0]=u[ve[0]]||u[0])})}function d(ee){return h(ee)===2}function m(ee){let ce=Array.isArray(ee)?ee[0]:ee;return typeof ce=="string"&&(ce=ce.toLowerCase()),p.indexOf(ce)!==-1}function g(ee){return Object.keys(ee).every(ce=>m(ee[ce]))}function b(ee){switch(ee){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(`'${ee}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var O={__proto__:null,getRuleSeverity:h,normalizeToStrings:f,isErrorSeverity:d,isValidSeverity:m,isEverySeverityValid:g,normalizeConfigGlobal:b};let S={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."},C=new Set;function k(ee,ce){let ve=JSON.stringify({source:ee,errorCode:ce});if(C.has(ve))return;C.add(ve);let Me=a.default.relative(process.cwd(),ee),Ue=S[ce];process.emitWarning(`${Ue} (found in "${Me}")`,"DeprecationWarning",ce)}let E={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 A=(ee={})=>{let ce=new l.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...ee});return ce.addMetaSchema(E),ce._opts.defaultMeta=E.id,ce};let w={$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"}},P={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"},...w},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...w},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function T(ee,ce){let ve={};for(let[Me,Ue]of Object.entries(ee))Object.hasOwnProperty.call(ce,Me)||(ve[Me]=Ue);return ve}let I=T(o.default.es2015,o.default.es5),F={Atomics:!1,SharedArrayBuffer:!1},L={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},_={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var B=new Map(Object.entries({builtin:{globals:o.default.es5},es6:{globals:I,parserOptions:{ecmaVersion:6}},es2015:{globals:I,parserOptions:{ecmaVersion:6}},es2016:{globals:I,parserOptions:{ecmaVersion:7}},es2017:{globals:{...I,...F},parserOptions:{ecmaVersion:8}},es2018:{globals:{...I,...F},parserOptions:{ecmaVersion:9}},es2019:{globals:{...I,...F},parserOptions:{ecmaVersion:10}},es2020:{globals:{...I,...F,...L},parserOptions:{ecmaVersion:11}},es2021:{globals:{...I,...F,...L,..._},parserOptions:{ecmaVersion:12}},es2022:{globals:{...I,...F,...L,..._},parserOptions:{ecmaVersion:13}},es2023:{globals:{...I,...F,...L,..._},parserOptions:{ecmaVersion:14}},es2024:{globals:{...I,...F,...L,..._},parserOptions:{ecmaVersion:15}},browser:{globals:o.default.browser},node:{globals:o.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:o.default["shared-node-browser"]},worker:{globals:o.default.worker},serviceworker:{globals:o.default.serviceworker},commonjs:{globals:o.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:o.default.amd},mocha:{globals:o.default.mocha},jasmine:{globals:o.default.jasmine},jest:{globals:o.default.jest},phantomjs:{globals:o.default.phantomjs},jquery:{globals:o.default.jquery},qunit:{globals:o.default.qunit},prototypejs:{globals:o.default.prototypejs},shelljs:{globals:o.default.shelljs},meteor:{globals:o.default.meteor},mongo:{globals:o.default.mongo},protractor:{globals:o.default.protractor},applescript:{globals:o.default.applescript},nashorn:{globals:o.default.nashorn},atomtest:{globals:o.default.atomtest},embertest:{globals:o.default.embertest},webextensions:{globals:o.default.webextensions},greasemonkey:{globals:o.default.greasemonkey}}));let Q=A(),V=new WeakMap,R=Function.prototype,$,N={error:2,warn:1,off:0},W=new WeakSet,Z=Object.freeze({type:"array",minItems:0,maxItems:0});class le{constructor({builtInRules:ce=new Map}={}){this.builtInRules=ce}getRuleOptionsSchema(ce){if(!ce)return null;if(!ce.meta)return{...Z};let ve=ce.meta.schema;if(typeof ve>"u")return{...Z};if(ve===!1)return null;if(typeof ve!="object"||ve===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(ve)?ve.length?{type:"array",items:ve,minItems:0,maxItems:ve.length}:{...Z}:ve}validateRuleSeverity(ce){let ve=Array.isArray(ce)?ce[0]:ce,Me=typeof ve=="string"?N[ve.toLowerCase()]:ve;if(Me===0||Me===1||Me===2)return Me;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${i.default.inspect(ve).replace(/'/gu,'"').replace(/\n/gu,"")}'). -`)}validateRuleSchema(ce,ve){if(!V.has(ce))try{let Ue=this.getRuleOptionsSchema(ce);Ue&&V.set(ce,Q.compile(Ue))}catch(Ue){let st=new Error(Ue.message,{cause:Ue});throw st.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA",st}let Me=V.get(ce);if(Me&&(Me(ve),Me.errors))throw new Error(Me.errors.map(Ue=>` Value ${JSON.stringify(Ue.data)} ${Ue.message}. -`).join(""))}validateRuleOptions(ce,ve,Me,Ue=null){try{this.validateRuleSeverity(Me)!==0&&this.validateRuleSchema(ce,Array.isArray(Me)?Me.slice(1):[])}catch(st){let mt=st.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"?`Error while processing options validation schema of rule '${ve}': ${st.message}`:`Configuration for rule "${ve}" is invalid: -${st.message}`;typeof Ue=="string"&&(mt=`${Ue}: - ${mt}`);let dt=new Error(mt,{cause:st});throw st.code&&(dt.code=st.code),dt}}validateEnvironment(ce,ve,Me=R){ce&&Object.keys(ce).forEach(Ue=>{if(!(Me(Ue)||B.get(Ue)||null)){let mt=`${ve}: - Environment key "${Ue}" is unknown -`;throw new Error(mt)}})}validateRules(ce,ve,Me=R){ce&&Object.keys(ce).forEach(Ue=>{let st=Me(Ue)||this.builtInRules.get(Ue)||null;this.validateRuleOptions(st,Ue,ce[Ue],ve)})}validateGlobals(ce,ve=null){ce&&Object.entries(ce).forEach(([Me,Ue])=>{try{b(Ue)}catch(st){throw new Error(`ESLint configuration of global '${Me}' in ${ve} is invalid: -${st.message}`)}})}validateProcessor(ce,ve,Me){if(ce&&!Me(ce))throw new Error(`ESLint configuration of processor in '${ve}' is invalid: '${ce}' was not found.`)}formatErrors(ce){return ce.map(ve=>{if(ve.keyword==="additionalProperties")return`Unexpected top-level property "${ve.dataPath.length?`${ve.dataPath.slice(1)}.${ve.params.additionalProperty}`:ve.params.additionalProperty}"`;if(ve.keyword==="type"){let Ue=ve.dataPath.slice(1),st=Array.isArray(ve.schema)?ve.schema.join("/"):ve.schema,mt=JSON.stringify(ve.data);return`Property "${Ue}" is the wrong type (expected ${st} but got \`${mt}\`)`}return`"${ve.dataPath[0]==="."?ve.dataPath.slice(1):ve.dataPath}" ${ve.message}. Value: ${JSON.stringify(ve.data)}`}).map(ve=>` - ${ve}. -`).join("")}validateConfigSchema(ce,ve=null){if($=$||Q.compile(P),!$(ce))throw new Error(`ESLint configuration in ${ve} is invalid: -${this.formatErrors($.errors)}`);Object.hasOwnProperty.call(ce,"ecmaFeatures")&&k(ve,"ESLINT_LEGACY_ECMAFEATURES")}validate(ce,ve,Me,Ue){this.validateConfigSchema(ce,ve),this.validateRules(ce.rules,ve,Me),this.validateEnvironment(ce.env,ve,Ue),this.validateGlobals(ce.globals,ve);for(let st of ce.overrides||[])this.validateRules(st.rules,ve,Me),this.validateEnvironment(st.env,ve,Ue),this.validateGlobals(ce.globals,ve)}validateConfigArray(ce){let ve=Map.prototype.get.bind(ce.pluginEnvironments),Me=Map.prototype.get.bind(ce.pluginProcessors),Ue=Map.prototype.get.bind(ce.pluginRules);for(let st of ce)W.has(st)||(W.add(st),this.validateEnvironment(st.env,st.name,ve),this.validateGlobals(st.globals,st.name),this.validateProcessor(st.processor,st.name,Me),this.validateRules(st.rules,st.name,Ue))}}let ae=/^@.*\//iu;function Se(ee,ce){let ve=ee;if(ve.includes("\\")&&(ve=ve.replace(/\\/gu,"/")),ve.charAt(0)==="@"){let Me=new RegExp(`^(@[^/]+)(?:/(?:${ce})?)?$`,"u"),Ue=new RegExp(`^${ce}(-|$)`,"u");Me.test(ve)?ve=ve.replace(Me,`$1/${ce}`):Ue.test(ve.split("/")[1])||(ve=ve.replace(/^@([^/]+)\/(.*)$/u,`@$1/${ce}-$2`))}else ve.startsWith(`${ce}-`)||(ve=`${ce}-${ve}`);return ve}function J(ee,ce){if(ee[0]==="@"){let ve=new RegExp(`^(@[^/]+)/${ce}$`,"u").exec(ee);if(ve)return ve[1];if(ve=new RegExp(`^(@[^/]+)/${ce}-(.+)$`,"u").exec(ee),ve)return`${ve[1]}/${ve[2]}`}else if(ee.startsWith(`${ce}-`))return ee.slice(ce.length+1);return ee}function me(ee){let ce=ee.match(ae);return ce?ce[0]:""}var j={__proto__:null,normalizePackageName:Se,getShorthandName:J,getNamespaceFromTerm:me};let de={environments:B,ConfigOps:O,ConfigValidator:le,naming:j};return Ku.Legacy=de,Ku}var ec={exports:{}},tc={exports:{}},tm,BP;function b4(){if(BP)return tm;BP=1;var r=1e3,e=r*60,t=e*60,s=t*24,n=s*7,i=s*365.25;tm=function(c,p){p=p||{};var h=typeof c;if(h==="string"&&c.length>0)return a(c);if(h==="number"&&isFinite(c))return p.long?o(c):l(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(p){var h=parseFloat(p[1]),f=(p[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*n;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*t;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function l(c){var p=Math.abs(c);return p>=s?Math.round(c/s)+"d":p>=t?Math.round(c/t)+"h":p>=e?Math.round(c/e)+"m":p>=r?Math.round(c/r)+"s":c+"ms"}function o(c){var p=Math.abs(c);return p>=s?u(c,p,s,"day"):p>=t?u(c,p,t,"hour"):p>=e?u(c,p,e,"minute"):p>=r?u(c,p,r,"second"):c+" ms"}function u(c,p,h,f){var d=p>=h*1.5;return Math.round(c/h)+" "+f+(d?"s":"")}return tm}var rm,NP;function jB(){if(NP)return rm;NP=1;function r(e){s.debug=s,s.default=s,s.coerce=u,s.disable=a,s.enable=i,s.enabled=l,s.humanize=b4(),s.destroy=c,Object.keys(e).forEach(p=>{s[p]=e[p]}),s.names=[],s.skips=[],s.formatters={};function t(p){let h=0;for(let f=0;f{if(A==="%%")return"%";k++;let P=s.formatters[w];if(typeof P=="function"){let T=b[k];A=P.call(O,T),b.splice(k,1),k--}return A}),s.formatArgs.call(O,b),(O.log||s.log).apply(O,b)}return g.namespace=p,g.useColors=s.useColors(),g.color=s.selectColor(p),g.extend=n,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==s.namespaces&&(d=s.namespaces,m=s.enabled(p)),m),set:b=>{f=b}}),typeof s.init=="function"&&s.init(g),g}function n(p,h){let f=s(this.namespace+(typeof h>"u"?":":h)+p);return f.log=this.log,f}function i(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h,f=(typeof p=="string"?p:"").split(/[\s,]+/),d=f.length;for(h=0;h"-"+h)].join(",");return s.enable(""),p}function l(p){if(p[p.length-1]==="*")return!0;let h,f;for(h=0,f=s.skips.length;h{let o=!1;return()=>{o||(o=!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`."))}})(),e.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 t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;o.splice(1,0,u,"color: inherit");let c=0,p=0;o[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(c++,h==="%c"&&(p=c))}),o.splice(p,0,u)}e.log=console.debug||console.log||(()=>{});function n(o){try{o?e.storage.setItem("debug",o):e.storage.removeItem("debug")}catch{}}function i(){let o;try{o=e.storage.getItem("debug")}catch{}return!o&&typeof Lt<"u"&&"env"in Lt&&(o=Lt.env.DEBUG),o}function a(){try{return localStorage}catch{}}r.exports=jB()(e);let{formatters:l}=r.exports;l.j=function(o){try{return JSON.stringify(o)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(tc,tc.exports)),tc.exports}var rc={exports:{}};function qB(){return!1}function QB(){throw new Error("tty.ReadStream is not implemented")}function UB(){throw new Error("tty.ReadStream is not implemented")}var O4={isatty:qB,ReadStream:QB,WriteStream:UB},S4=Object.freeze({__proto__:null,ReadStream:QB,WriteStream:UB,default:O4,isatty:qB}),E4=pc(S4),$P;function C4(){return $P||($P=1,function(r,e){let t=E4,s=RB;e.init=c,e.log=l,e.formatArgs=i,e.save=o,e.load=u,e.useColors=n,e.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let h=wN("supports-color");h&&(h.stderr||h).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(Lt.env).filter(h=>/^debug_/i.test(h)).reduce((h,f)=>{let d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(g,b)=>b.toUpperCase()),m=Lt.env[f];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),h[d]=m,h},{});function n(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(Lt.stderr.fd)}function i(h){let{namespace:f,useColors:d}=this;if(d){let m=this.color,g="\x1B[3"+(m<8?m:"8;5;"+m),b=` ${g};1m${f} \x1B[0m`;h[0]=b+h[0].split(` +`):w=String.fromCharCode(O),this.options.locations&&(++this.curLine,this.lineStart=this.pos),w}jsx_readString(C){let O="",w=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let E=this.input.charCodeAt(this.pos);if(E===C)break;E===38?(O+=this.input.slice(w,this.pos),O+=this.jsx_readEntity(),w=this.pos):b(E)?(O+=this.input.slice(w,this.pos),O+=this.jsx_readNewLine(!1),w=this.pos):++this.pos}return O+=this.input.slice(w,this.pos++),this.finishToken(h.string,O)}jsx_readEntity(){let C="",O=0,w,E=this.input[this.pos];E!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let k=++this.pos;for(;this.pos")}let D=k.name?"Element":"Fragment";return w["opening"+D]=k,w["closing"+D]=A,w.children=E,this.type===h.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(w,"JSX"+D)}jsx_parseText(){let C=this.parseLiteral(this.value);return C.type="JSXText",C}jsx_parseElement(){let C=this.start,O=this.startLoc;return this.next(),this.jsx_parseElementAt(C,O)}parseExprAtom(C){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(C)}readToken(C){let O=this.curContext();if(O===y)return this.jsx_readToken();if(O===m||O===g){if(v(C))return this.jsx_readWord();if(C==62)return++this.pos,this.finishToken(f.jsxTagEnd);if((C===34||C===39)&&O==m)return this.jsx_readString(C)}return C===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(C)}updateContext(C){if(this.type==h.braceL){var O=this.curContext();O==m?this.context.push(d.b_expr):O==y?this.context.push(d.b_tmpl):super.updateContext(C),this.exprAllowed=!0}else if(this.type===h.slash&&C===f.jsxTagStart)this.context.length-=2,this.context.push(g),this.exprAllowed=!1;else return super.updateContext(C)}}}}(id)),id.exports}var fa={},IA;function v9(){if(IA)return fa;IA=1,Object.defineProperty(fa,"__esModule",{value:!0});let r={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],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:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","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"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],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:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],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"]},e=Object.keys(r);for(let a of e)Object.freeze(r[a]);Object.freeze(r);let t=new Set(["parent","leadingComments","trailingComments"]);function s(a){return!t.has(a)&&a[0]!=="_"}function n(a){return Object.keys(a).filter(s)}function i(a){let l=Object.assign({},r);for(let o of Object.keys(a))if(Object.prototype.hasOwnProperty.call(l,o)){let u=new Set(a[o]);for(let c of l[o])u.add(c);l[o]=Object.freeze(Array.from(u))}else l[o]=Object.freeze(Array.from(a[o]));return Object.freeze(l)}return fa.KEYS=r,fa.getKeys=n,fa.unionWith=i,fa}var FA;function bc(){if(FA)return En;FA=1,Object.defineProperty(En,"__esModule",{value:!0});var r=eO(),e=b9(),t=v9();function s(F){return F&&typeof F=="object"&&"default"in F?F:{default:F}}function n(F){if(F&&F.__esModule)return F;var j=Object.create(null);return F&&Object.keys(F).forEach(function(Q){if(Q!=="default"){var I=Object.getOwnPropertyDescriptor(F,Q);Object.defineProperty(j,Q,I.get?I:{enumerable:!0,get:function(){return F[Q]}})}}),j.default=F,Object.freeze(j)}var i=n(r),a=s(e),l=n(t);let o={Boolean:"Boolean",EOF:"",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function u(F,j){let Q=F[0],I=F[F.length-1],N={type:o.Template,value:j.slice(Q.start,I.end)};return Q.loc&&(N.loc={start:Q.loc.start,end:I.loc.end}),Q.range&&(N.start=Q.range[0],N.end=I.range[1],N.range=[N.start,N.end]),N}function c(F,j){this._acornTokTypes=F,this._tokens=[],this._curlyBrace=null,this._code=j}c.prototype={constructor:c,translate(F,j){let Q=F.type,I=this._acornTokTypes;if(Q===I.name)F.type=o.Identifier,F.value==="static"&&(F.type=o.Keyword),j.ecmaVersion>5&&(F.value==="yield"||F.value==="let")&&(F.type=o.Keyword);else if(Q===I.privateId)F.type=o.PrivateIdentifier;else if(Q===I.semi||Q===I.comma||Q===I.parenL||Q===I.parenR||Q===I.braceL||Q===I.braceR||Q===I.dot||Q===I.bracketL||Q===I.colon||Q===I.question||Q===I.bracketR||Q===I.ellipsis||Q===I.arrow||Q===I.jsxTagStart||Q===I.incDec||Q===I.starstar||Q===I.jsxTagEnd||Q===I.prefix||Q===I.questionDot||Q.binop&&!Q.keyword||Q.isAssign)F.type=o.Punctuator,F.value=this._code.slice(F.start,F.end);else if(Q===I.jsxName)F.type=o.JSXIdentifier;else if(Q.label==="jsxText"||Q===I.jsxAttrValueToken)F.type=o.JSXText;else if(Q.keyword)Q.keyword==="true"||Q.keyword==="false"?F.type=o.Boolean:Q.keyword==="null"?F.type=o.Null:F.type=o.Keyword;else if(Q===I.num)F.type=o.Numeric,F.value=this._code.slice(F.start,F.end);else if(Q===I.string)j.jsxAttrValueToken?(j.jsxAttrValueToken=!1,F.type=o.JSXText):F.type=o.String,F.value=this._code.slice(F.start,F.end);else if(Q===I.regexp){F.type=o.RegularExpression;let N=F.value;F.regex={flags:N.flags,pattern:N.pattern},F.value=`/${N.pattern}/${N.flags}`}return F},onToken(F,j){let Q=this._acornTokTypes,I=j.tokens,N=this._tokens,R=()=>{I.push(u(this._tokens,this._code)),this._tokens=[]};if(F.type===Q.eof){this._curlyBrace&&I.push(this.translate(this._curlyBrace,j));return}if(F.type===Q.backQuote){this._curlyBrace&&(I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),N.push(F),N.length>1&&R();return}if(F.type===Q.dollarBraceL){N.push(F),R();return}if(F.type===Q.braceR){this._curlyBrace&&I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=F;return}if(F.type===Q.template||F.type===Q.invalidTemplate){this._curlyBrace&&(N.push(this._curlyBrace),this._curlyBrace=null),N.push(F);return}this._curlyBrace&&(I.push(this.translate(this._curlyBrace,j)),this._curlyBrace=null),I.push(this.translate(F,j))}};let p=[3,5,6,7,8,9,10,11,12,13,14,15];function h(){return p[p.length-1]}function f(){return[...p]}function d(F=5){let j=F==="latest"?h():F;if(typeof j!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof F} instead.`);if(j>=2015&&(j-=2009),!p.includes(j))throw new Error("Invalid ecmaVersion.");return j}function m(F="script"){if(F==="script"||F==="module")return F;if(F==="commonjs")return"script";throw new Error("Invalid sourceType.")}function g(F){let j=d(F.ecmaVersion),Q=m(F.sourceType),I=F.range===!0,N=F.loc===!0;if(j!==3&&F.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof F.allowReserved<"u"&&typeof F.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let R=j===3?F.allowReserved||"never":!1,U=F.ecmaFeatures||{},V=F.sourceType==="commonjs"||!!U.globalReturn;if(Q==="module"&&j<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},F,{ecmaVersion:j,sourceType:Q,ranges:I,locations:N,allowReserved:R,allowReturnOutsideFunction:V})}let y=Symbol("espree's internal state"),b=Symbol("espree's esprimaFinishNode");function v(F,j,Q,I,N,R,U){let V;F?V="Block":U.slice(Q,Q+2)==="#!"?V="Hashbang":V="Line";let ae={type:V,value:j};return typeof Q=="number"&&(ae.start=Q,ae.end=I,ae.range=[Q,I]),typeof N=="object"&&(ae.loc={start:N,end:R}),ae}var S=()=>F=>{let j=Object.assign({},F.acorn.tokTypes);return F.acornJsx&&Object.assign(j,F.acornJsx.tokTypes),class extends F{constructor(I,N){(typeof I!="object"||I===null)&&(I={}),typeof N!="string"&&!(N instanceof String)&&(N=String(N));let R=I.sourceType,U=g(I),V=U.ecmaFeatures||{},ae=U.tokens===!0?new c(j,N):null,se={originalSourceType:R||U.sourceType,tokens:ae?[]:null,comments:U.comment===!0?[]:null,impliedStrict:V.impliedStrict===!0&&U.ecmaVersion>=5,ecmaVersion:U.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:U.ecmaVersion,sourceType:U.sourceType,ranges:U.ranges,locations:U.locations,allowReserved:U.allowReserved,allowReturnOutsideFunction:U.allowReturnOutsideFunction,onToken(ve){ae&&ae.onToken(ve,se),ve.type!==j.eof&&(se.lastToken=ve)},onComment(ve,H,he,$,pe,K){if(se.comments){let le=v(ve,H,he,$,pe,K,N);se.comments.push(le)}}},N),this[y]=se}tokenize(){do this.next();while(this.type!==j.eof);this.next();let I=this[y],N=I.tokens;return I.comments&&(N.comments=I.comments),N}finishNode(...I){let N=super.finishNode(...I);return this[b](N)}finishNodeAt(...I){let N=super.finishNodeAt(...I);return this[b](N)}parse(){let I=this[y],N=super.parse();if(N.sourceType=I.originalSourceType,I.comments&&(N.comments=I.comments),I.tokens&&(N.tokens=I.tokens),N.body.length){let[R]=N.body;N.range&&(N.range[0]=R.range[0]),N.loc&&(N.loc.start=R.loc.start),N.start=R.start}return I.lastToken&&(N.range&&(N.range[1]=I.lastToken.range[1]),N.loc&&(N.loc.end=I.lastToken.loc.end),N.end=I.lastToken.end),this[y].templateElements.forEach(R=>{let V=R.tail?1:2;R.start+=-1,R.end+=V,R.range&&(R.range[0]+=-1,R.range[1]+=V),R.loc&&(R.loc.start.column+=-1,R.loc.end.column+=V)}),N}parseTopLevel(I){return this[y].impliedStrict&&(this.strict=!0),super.parseTopLevel(I)}raise(I,N){let R=F.acorn.getLineInfo(this.input,I),U=new SyntaxError(N);throw U.index=I,U.lineNumber=R.line,U.column=R.column+1,U}raiseRecoverable(I,N){this.raise(I,N)}unexpected(I){let N="Unexpected token";if(I!=null){if(this.pos=I,this.options.locations)for(;this.posthis.start&&(N+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,N)}jsx_readString(I){let N=super.jsx_readString(I);return this.type===j.string&&(this[y].jsxAttrValueToken=!0),N}[b](I){return I.type==="TemplateElement"&&this[y].templateElements.push(I),I.type.includes("Function")&&!I.generator&&(I.generator=!1),I}}};let C="10.0.1",O={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=i.Parser.extend(S())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=i.Parser.extend(a.default(),S())),this._jsx},get(F){return!!(F&&F.ecmaFeatures&&F.ecmaFeatures.jsx)?this.jsx:this.regular}};function w(F,j){let Q=O.get(j);return(!j||j.tokens!==!0)&&(j=Object.assign({},j,{tokens:!0})),new Q(j,F).tokenize()}function E(F,j){let Q=O.get(j);return new Q(j,F).parse()}let k=C,A="espree",D=function(){return l.KEYS}(),_=function(){let F,j={};typeof Object.create=="function"&&(j=Object.create(null));for(F in D)Object.hasOwnProperty.call(D,F)&&(j[F]=F);return typeof Object.freeze=="function"&&Object.freeze(j),j}(),B=h(),T=f();return En.Syntax=_,En.VisitorKeys=D,En.latestEcmaVersion=B,En.name=A,En.parse=E,En.supportedEcmaVersions=T,En.tokenize=w,En.version=k,En}var Mo={exports:{}};Mo.exports;var RA;function O9(){return RA||(RA=1,function(r,e){var t=200,s="__lodash_hash_undefined__",n=800,i=16,a=9007199254740991,l="[object Arguments]",o="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",p="[object Date]",h="[object Error]",f="[object Function]",d="[object GeneratorFunction]",m="[object Map]",g="[object Number]",y="[object Null]",b="[object Object]",v="[object Proxy]",S="[object RegExp]",C="[object Set]",O="[object String]",w="[object Undefined]",E="[object WeakMap]",k="[object ArrayBuffer]",A="[object DataView]",D="[object Float32Array]",_="[object Float64Array]",B="[object Int8Array]",T="[object Int16Array]",F="[object Int32Array]",j="[object Uint8Array]",Q="[object Uint8ClampedArray]",I="[object Uint16Array]",N="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,U=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,ae={};ae[D]=ae[_]=ae[B]=ae[T]=ae[F]=ae[j]=ae[Q]=ae[I]=ae[N]=!0,ae[l]=ae[o]=ae[k]=ae[c]=ae[A]=ae[p]=ae[h]=ae[f]=ae[m]=ae[g]=ae[b]=ae[S]=ae[C]=ae[O]=ae[E]=!1;var se=typeof Jr=="object"&&Jr&&Jr.Object===Object&&Jr,ve=typeof self=="object"&&self&&self.Object===Object&&self,H=se||ve||Function("return this")(),he=e&&!e.nodeType&&e,$=he&&!0&&r&&!r.nodeType&&r,pe=$&&$.exports===he,K=pe&&se.process,le=function(){try{var ye=$&&$.require&&$.require("util").types;return ye||K&&K.binding&&K.binding("util")}catch{}}(),xe=le&&le.isTypedArray;function Le(ye,Ae,Me){switch(Me.length){case 0:return ye.call(Ae);case 1:return ye.call(Ae,Me[0]);case 2:return ye.call(Ae,Me[0],Me[1]);case 3:return ye.call(Ae,Me[0],Me[1],Me[2])}return ye.apply(Ae,Me)}function qe(ye,Ae){for(var Me=-1,gt=Array(ye);++Me-1}function re(ye,Ae){var Me=this.__data__,gt=dt(Me,ye);return gt<0?(++this.size,Me.push([ye,Ae])):Me[gt][1]=Ae,this}Re.prototype.clear=Oe,Re.prototype.delete=Ie,Re.prototype.get=We,Re.prototype.has=be,Re.prototype.set=re;function Y(ye){var Ae=-1,Me=ye==null?0:ye.length;for(this.clear();++Ae1?Me[Rt-1]:void 0,Jt=Rt>2?Me[2]:void 0;for(zt=ye.length>3&&typeof zt=="function"?(Rt--,zt):void 0,Jt&&Si(Me[0],Me[1],Jt)&&(zt=Rt<3?void 0:zt,Rt=1),Ae=Object(Ae);++gt-1&&ye%1==0&&ye0){if(++Ae>=n)return arguments[0]}else Ae=0;return ye.apply(void 0,arguments)}}function x(ye){if(ye!=null){try{return et.call(ye)}catch{}try{return ye+""}catch{}}return""}function P(ye,Ae){return ye===Ae||ye!==ye&&Ae!==Ae}var q=sr(function(){return arguments}())?sr:function(ye){return At(ye)&&it.call(ye,"callee")&&!De.call(ye,"callee")},z=Array.isArray;function ge(ye){return ye!=null&&Je(ye.length)&&!He(ye)}function Fe(ye){return At(ye)&&ge(ye)}var Ne=oe||SN;function He(ye){if(!St(ye))return!1;var Ae=jt(ye);return Ae==f||Ae==d||Ae==u||Ae==v}function Je(ye){return typeof ye=="number"&&ye>-1&&ye%1==0&&ye<=a}function St(ye){var Ae=typeof ye;return ye!=null&&(Ae=="object"||Ae=="function")}function At(ye){return ye!=null&&typeof ye=="object"}function ar(ye){if(!At(ye)||jt(ye)!=b)return!1;var Ae=Ye(ye);if(Ae===null)return!0;var Me=it.call(Ae,"constructor")&&Ae.constructor;return typeof Me=="function"&&Me instanceof Me&&et.call(Me)==bt}var An=xe?rt(xe):Nt;function js(ye){return Hn(ye,Kn(ye))}function Kn(ye){return ge(ye)?Ge(ye):br(ye)}var Ci=kn(function(ye,Ae,Me){Nr(ye,Ae,Me)});function ms(ye){return function(){return ye}}function Jn(ye){return ye}function SN(){return!1}r.exports=Ci}(Mo,Mo.exports)),Mo.exports}var S9="eslint",E9="9.1.1",C9="Nicholas C. Zakas ",w9="An AST-based pattern checker for JavaScript.",k9={eslint:"./bin/eslint.js"},A9="./lib/api.js",P9={"./package.json":"./package.json",".":"./lib/api.js","./use-at-your-own-risk":"./lib/unsupported-api.js"},T9={"build:docs:update-links":"node tools/fetch-docs-links.js","build:site":"node Makefile.js gensite","build:webpack":"node Makefile.js webpack","build:readme":"node tools/update-readme.js","build:rules-index":"node Makefile.js generateRuleIndexPage",lint:"node Makefile.js lint","lint:docs:js":"node Makefile.js lintDocsJS","lint:docs:rule-examples":"node Makefile.js checkRuleExamples","lint:fix":"node Makefile.js lint -- fix","lint:fix:docs:js":"node Makefile.js lintDocsJS -- fix","lint:unused":"knip","release:generate:alpha":"node Makefile.js generatePrerelease -- alpha","release:generate:beta":"node Makefile.js generatePrerelease -- beta","release:generate:latest":"node Makefile.js generateRelease","release:generate:rc":"node Makefile.js generatePrerelease -- rc","release:publish":"node Makefile.js publishRelease",test:"node Makefile.js test","test:browser":"node Makefile.js wdio","test:cli":"mocha","test:fuzz":"node Makefile.js fuzz","test:performance":"node Makefile.js perf","test:emfile":"node tools/check-emfile-handling.js"},D9={"pre-commit":"lint-staged"},_9=["LICENSE","README.md","bin","conf","lib","messages"],I9="eslint/eslint",F9="https://opencollective.com/eslint",R9="https://eslint.org",B9="https://github.com/eslint/eslint/issues/",N9={"@eslint-community/eslint-utils":"^4.2.0","@eslint-community/regexpp":"^4.6.1","@eslint/eslintrc":"^3.0.2","@eslint/js":"9.1.1","@humanwhocodes/config-array":"^0.13.0","@humanwhocodes/module-importer":"^1.0.1","@humanwhocodes/retry":"^0.2.3","@nodelib/fs.walk":"^1.2.8",ajv:"^6.12.4",chalk:"^4.0.0","cross-spawn":"^7.0.2",debug:"^4.3.2","escape-string-regexp":"^4.0.0","eslint-scope":"^8.0.1","eslint-visitor-keys":"^4.0.0",espree:"^10.0.1",esquery:"^1.4.2",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"^8.0.0","find-up":"^5.0.0","glob-parent":"^6.0.2",ignore:"^5.2.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","is-path-inside":"^3.0.3","json-stable-stringify-without-jsonify":"^1.0.1",levn:"^0.4.1","lodash.merge":"^4.6.2",minimatch:"^3.1.2","natural-compare":"^1.4.0",optionator:"^0.9.3","strip-ansi":"^6.0.1","text-table":"^0.2.0"},L9={"@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@types/estree":"^1.0.5","@types/node":"^20.11.5","@wdio/browser-runner":"^8.14.6","@wdio/cli":"^8.14.6","@wdio/concise-reporter":"^8.14.0","@wdio/globals":"^8.14.6","@wdio/mocha-framework":"^8.14.0","babel-loader":"^8.0.5",c8:"^7.12.0",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",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":"^6.0.0","eslint-plugin-internal-rules":"file:tools/internal-rules","eslint-plugin-jsdoc":"^46.9.0","eslint-plugin-n":"^16.6.0","eslint-plugin-unicorn":"^49.0.0","eslint-release":"^3.2.2",eslump:"^3.0.0",esprima:"^4.0.1","fast-glob":"^3.2.11","fs-teardown":"^0.1.3",glob:"^10.0.0",globals:"^15.0.0",got:"^11.8.3","gray-matter":"^4.0.3","js-yaml":"^4.1.0",knip:"^5.8.0","lint-staged":"^11.0.0","load-perf":"^0.2.0","markdown-it":"^12.2.0","markdown-it-container":"^3.0.0",markdownlint:"^0.34.0","markdownlint-cli":"^0.39.0",marked:"^4.0.8",metascraper:"^5.25.7","metascraper-description":"^5.25.7","metascraper-image":"^5.29.3","metascraper-logo":"^5.25.7","metascraper-logo-favicon":"^5.25.7","metascraper-title":"^5.25.7",mocha:"^8.3.2","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",pirates:"^4.0.5",progress:"^2.0.3",proxyquire:"^2.0.1",recast:"^0.23.0","regenerator-runtime":"^0.14.0","rollup-plugin-node-polyfills":"^0.2.1",semver:"^7.5.3",shelljs:"^0.8.5",sinon:"^11.0.0",typescript:"^5.3.3","vite-plugin-commonjs":"^0.10.0",webpack:"^5.23.0","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},$9=["ast","lint","javascript","ecmascript","espree"],M9="MIT",j9={node:"^18.18.0 || ^20.9.0 || >=21.1.0"},q9={name:S9,version:E9,author:C9,description:w9,bin:k9,main:A9,exports:P9,scripts:T9,gitHooks:D9,"lint-staged":{"*.js":"eslint --fix","*.md":"markdownlint --fix","lib/rules/*.js":["node tools/update-eslint-all.js","git add packages/js/src/configs/eslint-all.js"],"docs/src/rules/*.md":["node tools/check-rule-examples.js","node tools/fetch-docs-links.js","git add docs/src/_data/further_reading_links.json"],"docs/**/*.svg":"npx -y svgo -r --multipass"},files:_9,repository:I9,funding:F9,homepage:R9,bugs:B9,dependencies:N9,devDependencies:L9,keywords:$9,license:M9,engines:j9},od,BA;function vc(){if(BA)return od;BA=1;let r=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,e=/\r\n|[\r\n\u2028\u2029]/u,t=/^#!([^\r\n]+)/u;function s(){return new RegExp(e.source,"gu")}return od={breakableTypePattern:r,lineBreakPattern:e,createGlobalLinebreakMatcher:s,shebangPattern:t},od}var ld,NA;function Oc(){return NA||(NA=1,ld={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),ld}var Yu={},IB=cc(YQ),Hu={exports:{}};var LA;function Q9(){return LA||(LA=1,function(r,e){(function(t,s){s(e)})(this,function(t){function s(){for(var re=arguments.length,Y=Array(re),fe=0;fe1){Y[0]=Y[0].slice(0,-1);for(var Se=Y.length-1,Ee=1;Ee= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=m-g,_=Math.floor,B=String.fromCharCode;function T(re){throw new RangeError(A[re])}function F(re,Y){for(var fe=[],Se=re.length;Se--;)fe[Se]=Y(re[Se]);return fe}function j(re,Y){var fe=re.split("@"),Se="";fe.length>1&&(Se=fe[0]+"@",re=fe[1]),re=re.replace(k,".");var Ee=re.split("."),ze=F(Ee,Y).join(".");return Se+ze}function Q(re){for(var Y=[],fe=0,Se=re.length;fe=55296&&Ee<=56319&&fe>1,Y+=_(Y/fe);Y>D*y>>1;Ee+=m)Y=_(Y/D);return _(Ee+(D+1)*Y/(Y+b))},V=function(Y){var fe=[],Se=Y.length,Ee=0,ze=C,Ke=S,mt=Y.lastIndexOf(O);mt<0&&(mt=0);for(var Ot=0;Ot=128&&T("not-basic"),fe.push(Y.charCodeAt(Ot));for(var Pt=mt>0?mt+1:0;Pt=Se&&T("invalid-input");var Ge=N(Y.charCodeAt(Pt++));(Ge>=m||Ge>_((d-Ee)/Ue))&&T("overflow"),Ee+=Ge*Ue;var Qe=nt<=Ke?g:nt>=Ke+y?y:nt-Ke;if(Ge_(d/ut)&&T("overflow"),Ue*=ut}var dt=fe.length+1;Ke=U(Ee-xt,dt,xt==0),_(Ee/dt)>d-ze&&T("overflow"),ze+=_(Ee/dt),Ee%=dt,fe.splice(Ee++,0,ze)}return String.fromCodePoint.apply(String,fe)},ae=function(Y){var fe=[];Y=Q(Y);var Se=Y.length,Ee=C,ze=0,Ke=S,mt=!0,Ot=!1,Pt=void 0;try{for(var xt=Y[Symbol.iterator](),Ue;!(mt=(Ue=xt.next()).done);mt=!0){var nt=Ue.value;nt<128&&fe.push(B(nt))}}catch(dn){Ot=!0,Pt=dn}finally{try{!mt&&xt.return&&xt.return()}finally{if(Ot)throw Pt}}var Ge=fe.length,Qe=Ge;for(Ge&&fe.push(O);Qe=Ee&&ot_((d-ze)/Nt)&&T("overflow"),ze+=(ut-Ee)*Nt,Ee=ut;var br=!0,Nr=!1,Cr=void 0;try{for(var Qr=Y[Symbol.iterator](),fs;!(br=(fs=Qr.next()).done);br=!0){var Yn=fs.value;if(Ynd&&T("overflow"),Yn==Ee){for(var dr=ze,ir=m;;ir+=m){var hn=ir<=Ke?g:ir>=Ke+y?y:ir-Ke;if(dr>6|192).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase():fe="%"+(Y>>12|224).toString(16).toUpperCase()+"%"+(Y>>6&63|128).toString(16).toUpperCase()+"%"+(Y&63|128).toString(16).toUpperCase(),fe}function pe(re){for(var Y="",fe=0,Se=re.length;fe=194&&Ee<224){if(Se-fe>=6){var ze=parseInt(re.substr(fe+4,2),16);Y+=String.fromCharCode((Ee&31)<<6|ze&63)}else Y+=re.substr(fe,6);fe+=6}else if(Ee>=224){if(Se-fe>=9){var Ke=parseInt(re.substr(fe+4,2),16),mt=parseInt(re.substr(fe+7,2),16);Y+=String.fromCharCode((Ee&15)<<12|(Ke&63)<<6|mt&63)}else Y+=re.substr(fe,9);fe+=9}else Y+=re.substr(fe,3),fe+=3}return Y}function K(re,Y){function fe(Se){var Ee=pe(Se);return Ee.match(Y.UNRESERVED)?Ee:Se}return re.scheme&&(re.scheme=String(re.scheme).replace(Y.PCT_ENCODED,fe).toLowerCase().replace(Y.NOT_SCHEME,"")),re.userinfo!==void 0&&(re.userinfo=String(re.userinfo).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_USERINFO,$).replace(Y.PCT_ENCODED,a)),re.host!==void 0&&(re.host=String(re.host).replace(Y.PCT_ENCODED,fe).toLowerCase().replace(Y.NOT_HOST,$).replace(Y.PCT_ENCODED,a)),re.path!==void 0&&(re.path=String(re.path).replace(Y.PCT_ENCODED,fe).replace(re.scheme?Y.NOT_PATH:Y.NOT_PATH_NOSCHEME,$).replace(Y.PCT_ENCODED,a)),re.query!==void 0&&(re.query=String(re.query).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_QUERY,$).replace(Y.PCT_ENCODED,a)),re.fragment!==void 0&&(re.fragment=String(re.fragment).replace(Y.PCT_ENCODED,fe).replace(Y.NOT_FRAGMENT,$).replace(Y.PCT_ENCODED,a)),re}function le(re){return re.replace(/^0*(.*)/,"$1")||"0"}function xe(re,Y){var fe=re.match(Y.IPV4ADDRESS)||[],Se=h(fe,2),Ee=Se[1];return Ee?Ee.split(".").map(le).join("."):re}function Le(re,Y){var fe=re.match(Y.IPV6ADDRESS)||[],Se=h(fe,3),Ee=Se[1],ze=Se[2];if(Ee){for(var Ke=Ee.toLowerCase().split("::").reverse(),mt=h(Ke,2),Ot=mt[0],Pt=mt[1],xt=Pt?Pt.split(":").map(le):[],Ue=Ot.split(":").map(le),nt=Y.IPV4ADDRESS.test(Ue[Ue.length-1]),Ge=nt?7:8,Qe=Ue.length-Ge,ut=Array(Ge),dt=0;dt1){var sr=ut.slice(0,Qt.index),ot=ut.slice(Qt.index+Qt.length);jt=sr.join(":")+"::"+ot.join(":")}else jt=ut.join(":");return ze&&(jt+="%"+ze),jt}else return re}var qe=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,rt="".match(/(){0}/)[1]===void 0;function ht(re){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe={},Se=Y.iri!==!1?p:c;Y.reference==="suffix"&&(re=(Y.scheme?Y.scheme+":":"")+"//"+re);var Ee=re.match(qe);if(Ee){rt?(fe.scheme=Ee[1],fe.userinfo=Ee[3],fe.host=Ee[4],fe.port=parseInt(Ee[5],10),fe.path=Ee[6]||"",fe.query=Ee[7],fe.fragment=Ee[8],isNaN(fe.port)&&(fe.port=Ee[5])):(fe.scheme=Ee[1]||void 0,fe.userinfo=re.indexOf("@")!==-1?Ee[3]:void 0,fe.host=re.indexOf("//")!==-1?Ee[4]:void 0,fe.port=parseInt(Ee[5],10),fe.path=Ee[6]||"",fe.query=re.indexOf("?")!==-1?Ee[7]:void 0,fe.fragment=re.indexOf("#")!==-1?Ee[8]:void 0,isNaN(fe.port)&&(fe.port=re.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Ee[4]:void 0)),fe.host&&(fe.host=Le(xe(fe.host,Se),Se)),fe.scheme===void 0&&fe.userinfo===void 0&&fe.host===void 0&&fe.port===void 0&&!fe.path&&fe.query===void 0?fe.reference="same-document":fe.scheme===void 0?fe.reference="relative":fe.fragment===void 0?fe.reference="absolute":fe.reference="uri",Y.reference&&Y.reference!=="suffix"&&Y.reference!==fe.reference&&(fe.error=fe.error||"URI is not a "+Y.reference+" reference.");var ze=he[(Y.scheme||fe.scheme||"").toLowerCase()];if(!Y.unicodeSupport&&(!ze||!ze.unicodeSupport)){if(fe.host&&(Y.domainHost||ze&&ze.domainHost))try{fe.host=H.toASCII(fe.host.replace(Se.PCT_ENCODED,pe).toLowerCase())}catch(Ke){fe.error=fe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ke}K(fe,c)}else K(fe,Se);ze&&ze.parse&&ze.parse(fe,Y)}else fe.error=fe.error||"URI can not be parsed.";return fe}function pt(re,Y){var fe=Y.iri!==!1?p:c,Se=[];return re.userinfo!==void 0&&(Se.push(re.userinfo),Se.push("@")),re.host!==void 0&&Se.push(Le(xe(String(re.host),fe),fe).replace(fe.IPV6ADDRESS,function(Ee,ze,Ke){return"["+ze+(Ke?"%25"+Ke:"")+"]"})),(typeof re.port=="number"||typeof re.port=="string")&&(Se.push(":"),Se.push(String(re.port))),Se.length?Se.join(""):void 0}var Et=/^\.\.?\//,X=/^\/\.(\/|$)/,we=/^\/\.\.(\/|$)/,Ve=/^\/?(?:.|\n)*?(?=\/|$)/;function et(re){for(var Y=[];re.length;)if(re.match(Et))re=re.replace(Et,"");else if(re.match(X))re=re.replace(X,"/");else if(re.match(we))re=re.replace(we,"/"),Y.pop();else if(re==="."||re==="..")re="";else{var fe=re.match(Ve);if(fe){var Se=fe[0];re=re.slice(Se.length),Y.push(Se)}else throw new Error("Unexpected dot segment condition")}return Y.join("")}function it(re){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=Y.iri?p:c,Se=[],Ee=he[(Y.scheme||re.scheme||"").toLowerCase()];if(Ee&&Ee.serialize&&Ee.serialize(re,Y),re.host&&!fe.IPV6ADDRESS.test(re.host)){if(Y.domainHost||Ee&&Ee.domainHost)try{re.host=Y.iri?H.toUnicode(re.host):H.toASCII(re.host.replace(fe.PCT_ENCODED,pe).toLowerCase())}catch(mt){re.error=re.error||"Host's domain name can not be converted to "+(Y.iri?"Unicode":"ASCII")+" via punycode: "+mt}}K(re,fe),Y.reference!=="suffix"&&re.scheme&&(Se.push(re.scheme),Se.push(":"));var ze=pt(re,Y);if(ze!==void 0&&(Y.reference!=="suffix"&&Se.push("//"),Se.push(ze),re.path&&re.path.charAt(0)!=="/"&&Se.push("/")),re.path!==void 0){var Ke=re.path;!Y.absolutePath&&(!Ee||!Ee.absolutePath)&&(Ke=et(Ke)),ze===void 0&&(Ke=Ke.replace(/^\/\//,"/%2F")),Se.push(Ke)}return re.query!==void 0&&(Se.push("?"),Se.push(re.query)),re.fragment!==void 0&&(Se.push("#"),Se.push(re.fragment)),Se.join("")}function st(re,Y){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=arguments[3],Ee={};return Se||(re=ht(it(re,fe),fe),Y=ht(it(Y,fe),fe)),fe=fe||{},!fe.tolerant&&Y.scheme?(Ee.scheme=Y.scheme,Ee.userinfo=Y.userinfo,Ee.host=Y.host,Ee.port=Y.port,Ee.path=et(Y.path||""),Ee.query=Y.query):(Y.userinfo!==void 0||Y.host!==void 0||Y.port!==void 0?(Ee.userinfo=Y.userinfo,Ee.host=Y.host,Ee.port=Y.port,Ee.path=et(Y.path||""),Ee.query=Y.query):(Y.path?(Y.path.charAt(0)==="/"?Ee.path=et(Y.path):((re.userinfo!==void 0||re.host!==void 0||re.port!==void 0)&&!re.path?Ee.path="/"+Y.path:re.path?Ee.path=re.path.slice(0,re.path.lastIndexOf("/")+1)+Y.path:Ee.path=Y.path,Ee.path=et(Ee.path)),Ee.query=Y.query):(Ee.path=re.path,Y.query!==void 0?Ee.query=Y.query:Ee.query=re.query),Ee.userinfo=re.userinfo,Ee.host=re.host,Ee.port=re.port),Ee.scheme=re.scheme),Ee.fragment=Y.fragment,Ee}function Ct(re,Y,fe){var Se=o({scheme:"null"},fe);return it(st(ht(re,Se),ht(Y,Se),Se,!0),Se)}function bt(re,Y){return typeof re=="string"?re=it(ht(re,Y),Y):i(re)==="object"&&(re=ht(it(re,Y),Y)),re}function Dt(re,Y,fe){return typeof re=="string"?re=it(ht(re,fe),fe):i(re)==="object"&&(re=it(re,fe)),typeof Y=="string"?Y=it(ht(Y,fe),fe):i(Y)==="object"&&(Y=it(Y,fe)),re===Y}function _t(re,Y){return re&&re.toString().replace(!Y||!Y.iri?c.ESCAPE:p.ESCAPE,$)}function W(re,Y){return re&&re.toString().replace(!Y||!Y.iri?c.PCT_ENCODED:p.PCT_ENCODED,pe)}var vt={scheme:"http",domainHost:!0,parse:function(Y,fe){return Y.host||(Y.error=Y.error||"HTTP URIs must have a host."),Y},serialize:function(Y,fe){var Se=String(Y.scheme).toLowerCase()==="https";return(Y.port===(Se?443:80)||Y.port==="")&&(Y.port=void 0),Y.path||(Y.path="/"),Y}},Ye={scheme:"https",domainHost:vt.domainHost,parse:vt.parse,serialize:vt.serialize};function Kt(re){return typeof re.secure=="boolean"?re.secure:String(re.scheme).toLowerCase()==="wss"}var De={scheme:"ws",domainHost:!0,parse:function(Y,fe){var Se=Y;return Se.secure=Kt(Se),Se.resourceName=(Se.path||"/")+(Se.query?"?"+Se.query:""),Se.path=void 0,Se.query=void 0,Se},serialize:function(Y,fe){if((Y.port===(Kt(Y)?443:80)||Y.port==="")&&(Y.port=void 0),typeof Y.secure=="boolean"&&(Y.scheme=Y.secure?"wss":"ws",Y.secure=void 0),Y.resourceName){var Se=Y.resourceName.split("?"),Ee=h(Se,2),ze=Ee[0],Ke=Ee[1];Y.path=ze&&ze!=="/"?ze:void 0,Y.query=Ke,Y.resourceName=void 0}return Y.fragment=void 0,Y}},G={scheme:"wss",domainHost:De.domainHost,parse:De.parse,serialize:De.serialize},ne={},ee="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",oe="[0-9A-Fa-f]",ce=n(n("%[EFef]"+oe+"%"+oe+oe+"%"+oe+oe)+"|"+n("%[89A-Fa-f]"+oe+"%"+oe+oe)+"|"+n("%"+oe+oe)),Z="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",J="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ie=s(J,'[\\"\\\\]'),de="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Ce=new RegExp(ee,"g"),L=new RegExp(ce,"g"),ue=new RegExp(s("[^]",Z,"[\\.]",'[\\"]',ie),"g"),Te=new RegExp(s("[^]",ee,de),"g"),Be=Te;function $e(re){var Y=pe(re);return Y.match(Ce)?Y:re}var Re={scheme:"mailto",parse:function(Y,fe){var Se=Y,Ee=Se.to=Se.path?Se.path.split(","):[];if(Se.path=void 0,Se.query){for(var ze=!1,Ke={},mt=Se.query.split("&"),Ot=0,Pt=mt.length;Ot=55296&&i<=56319&&n=D)throw new Error("Cannot access property/index "+B+" levels up, current level is "+D);return _[D-B]}if(B>D)throw new Error("Cannot access data "+B+" levels up, current level is "+D);if(F="data"+(D-B||""),!T)return F}for(var Q=F,I=T.split("/"),N=0;N=0?{index:S,compiling:!0}:(S=this._compilations.length,this._compilations[S]={schema:y,root:b,baseId:v},{index:S,compiling:!1})}function c(y,b,v){var S=p.call(this,y,b,v);S>=0&&this._compilations.splice(S,1)}function p(y,b,v){for(var S=0;S%\\^`{|}]|%[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,o=/^(?:(?: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,u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,c=/^(?:\/(?:[^~/]|~0|~1)*)*$/,p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;vd=f;function f(w){return w=w=="full"?"full":"fast",r.copy(f[w])}f.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":l,url:o,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:n,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:O,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h},f.full={date:m,time:g,"date-time":b,uri:S,"uri-reference":a,"uri-template":l,url:o,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:n,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:O,uuid:u,"json-pointer":c,"json-pointer-uri-fragment":p,"relative-json-pointer":h};function d(w){return w%4===0&&(w%100!==0||w%400===0)}function m(w){var E=w.match(e);if(!E)return!1;var k=+E[1],A=+E[2],D=+E[3];return A>=1&&A<=12&&D>=1&&D<=(A==2&&d(k)?29:t[A])}function g(w,E){var k=w.match(s);if(!k)return!1;var A=k[1],D=k[2],_=k[3],B=k[5];return(A<=23&&D<=59&&_<=59||A==23&&D==59&&_==60)&&(!E||B)}var y=/t|\s/i;function b(w){var E=w.split(y);return E.length==2&&m(E[0])&&g(E[1],!0)}var v=/\/|:/;function S(w){return v.test(w)&&i.test(w)}var C=/[^\\]\\Z/;function O(w){if(C.test(w))return!1;try{return new RegExp(w),!0}catch{return!1}}return vd}var Od,YA;function X9(){return YA||(YA=1,Od=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,c="data"+(a||""),p="valid"+i,h,f;if(l=="#"||l=="#/")e.isRoot?(h=e.async,f="validate"):(h=e.root.schema.$async===!0,f="root.refVal[0]");else{var d=e.resolveRef(e.baseId,l,e.isRoot);if(d===void 0){var m=e.MissingRefError.message(e.baseId,l);if(e.opts.missingRefs=="fail"){e.logger.error(m);var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(o)+" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",e.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(n+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var y=n;n=g.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),u&&(n+=" if (true) { ");else throw new e.MissingRefError(e.baseId,l,m)}else if(d.inline){var b=e.util.copy(e);b.level++;var v="valid"+b.level;b.schema=d.schema,b.schemaPath="",b.errSchemaPath=l;var S=e.validate(b).replace(/validate\.schema/g,d.code);n+=" "+S+" ",u&&(n+=" if ("+v+") { ")}else h=d.$async===!0||e.async&&d.$async!==!1,f=d.code}if(f){var g=g||[];g.push(n),n="",e.opts.passContext?n+=" "+f+".call(this, ":n+=" "+f+"( ",n+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(n+=" + "+e.errorPath);var C=a?"data"+(a-1||""):"parentData",O=a?e.dataPathArr[a]:"parentDataProperty";n+=" , "+C+" , "+O+", rootData) ";var w=n;if(n=g.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(n+=" var "+p+"; "),n+=" try { await "+w+"; ",u&&(n+=" "+p+" = true; "),n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(n+=" "+p+" = false; "),n+=" } ",u&&(n+=" if ("+p+") { ")}else n+=" if (!"+w+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(n+=" else { ")}return n}),Od}var Sd,HA;function G9(){return HA||(HA=1,Sd=function(e,t,s){var n=" ",i=e.schema[t],a=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,o=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var p="valid"+u.level,h=u.baseId,f=!0,d=i;if(d)for(var m,g=-1,y=d.length-1;g0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(f=!1,u.schema=m,u.schemaPath=a+"["+g+"]",u.errSchemaPath=l+"/"+g,n+=" "+e.validate(u)+" ",u.baseId=h,o&&(n+=" if ("+p+") { ",c+="}"));return o&&(f?n+=" if (true) { ":n+=" "+c.slice(0,-1)+" "),n}),Sd}var Ed,KA;function Y9(){return KA||(KA=1,Ed=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=l.every(function(E){return e.opts.strictKeywords?typeof E=="object"&&Object.keys(E).length>0||E===!1:e.util.schemaHasRules(E,e.RULES.all)});if(y){var b=d.baseId;n+=" var "+f+" = errors; var "+h+" = false; ";var v=e.compositeRule;e.compositeRule=d.compositeRule=!0;var S=l;if(S)for(var C,O=-1,w=S.length-1;O0||l===!1:e.util.schemaHasRules(l,e.RULES.all);if(n+="var "+f+" = errors;var "+h+";",C){var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+g+" = false; for (var "+y+" = 0; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var w=p+"["+y+"]";d.dataPathArr[b]=y;var E=e.validate(d);d.baseId=S,e.util.varOccurences(E,v)<2?n+=" "+e.util.varReplace(E,v,w)+" ":n+=" var "+v+" = "+w+"; "+E+" ",n+=" if ("+g+") break; } ",e.compositeRule=d.compositeRule=O,n+=" "+m+" if (!"+g+") {"}else n+=" if ("+p+".length == 0) {";var k=k||[];k.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var A=n;return n=k.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",C&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}),kd}var Ad,rP;function eU(){return rP||(rP=1,Ad=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g={},y={},b=e.opts.ownProperties;for(O in l)if(O!="__proto__"){var v=l[O],S=Array.isArray(v)?y:g;S[O]=v}n+="var "+h+" = errors;";var C=e.errorPath;n+="var missing"+i+";";for(var O in y)if(S=y[O],S.length){if(n+=" if ( "+p+e.util.getProperty(O)+" !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "),c){n+=" && ( ";var w=S;if(w)for(var E,k=-1,A=w.length-1;k0||v===!1:e.util.schemaHasRules(v,e.RULES.all))&&(n+=" "+m+" = true; if ( "+p+e.util.getProperty(O)+" !== undefined ",b&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "),n+=") { ",f.schema=v,f.schemaPath=o+e.util.getProperty(O),f.errSchemaPath=u+"/"+e.util.escapeFragment(O),n+=" "+e.validate(f)+" ",f.baseId=R,n+=" } ",c&&(n+=" if ("+m+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),Ad}var Pd,nP;function tU(){return nP||(nP=1,Pd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f=e.opts.$data&&l&&l.$data;f&&(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ");var d="i"+i,m="schema"+i;f||(n+=" var "+m+" = validate.schema"+o+";"),n+="var "+h+";",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=""+h+" = false;for (var "+d+"=0; "+d+"<"+m+".length; "+d+"++) if (equal("+p+", "+m+"["+d+"])) { "+h+" = true; break; }",f&&(n+=" } "),n+=" if (!"+h+") { ";var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}),Pd}var Td,sP;function rU(){return sP||(sP=1,Td=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||"");if(e.opts.format===!1)return c&&(n+=" if (true) { "),n;var h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=e.opts.unknownFormats,m=Array.isArray(d);if(h){var g="format"+i,y="isObject"+i,b="formatType"+i;n+=" var "+g+" = formats["+f+"]; var "+y+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+b+" = "+y+" && "+g+".type || 'string'; if ("+y+") { ",e.async&&(n+=" var async"+i+" = "+g+".async; "),n+=" "+g+" = "+g+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (",d!="ignore"&&(n+=" ("+f+" && !"+g+" ",m&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+g+" && "+b+" == '"+s+"' && !(typeof "+g+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+g+"("+p+") : "+g+"("+p+")) ":n+=" "+g+"("+p+") ",n+=" : "+g+".test("+p+"))))) {"}else{var g=e.formats[l];if(!g){if(d=="ignore")return e.logger.warn('unknown format "'+l+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(m&&d.indexOf(l)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+l+'" is used in schema at path "'+e.errSchemaPath+'"')}var y=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,b=y&&g.type||"string";if(y){var v=g.async===!0;g=g.validate}if(b!=s)return c&&(n+=" if (true) { "),n;if(v){if(!e.async)throw new Error("async format in sync schema");var S="formats"+e.util.getProperty(l)+".validate";n+=" if (!(await "+S+"("+p+"))) { "}else{n+=" if (! ";var S="formats"+e.util.getProperty(l);y&&(S+=".validate"),typeof g=="function"?n+=" "+S+"("+p+") ":n+=" "+S+".test("+p+") ",n+=") { "}}var C=C||[];C.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match format "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var O=n;return n=C.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+O+"]); ":n+=" validate.errors = ["+O+"]; return false; ":n+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Td}var Dd,iP;function nU(){return iP||(iP=1,Dd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e);d.level++;var m="valid"+d.level,g=e.schema.then,y=e.schema.else,b=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),S=d.baseId;if(b||v){var C;d.createErrors=!1,d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" var "+f+" = errors; var "+h+" = true; ";var O=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=S,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=O,b?(n+=" if ("+m+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+m+"; ",b&&v?(C="ifClause"+i,n+=" var "+C+" = 'then'; "):C="'then'",n+=" } ",v&&(n+=" else { ")):n+=" if (!"+m+") { ",v&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+m+"; ",b&&v?(C="ifClause"+i,n+=" var "+C+" = 'else'; "):C="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+C+" } ",e.opts.messages!==!1&&(n+=` , message: 'should match "' + `+C+` + '" schema' `),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Dd}var _d,aP;function sU(){return aP||(aP=1,_d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y="i"+i,b=d.dataLevel=e.dataLevel+1,v="data"+b,S=e.baseId;if(n+="var "+f+" = errors;var "+h+";",Array.isArray(l)){var C=e.schema.additionalItems;if(C===!1){n+=" "+h+" = "+p+".length <= "+l.length+"; ";var O=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var w=w||[];w.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+l.length+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have more than "+l.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var E=n;n=w.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+E+"]); ":n+=" validate.errors = ["+E+"]; return false; ":n+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=O,c&&(m+="}",n+=" else { ")}var k=l;if(k){for(var A,D=-1,_=k.length-1;D<_;)if(A=k[D+=1],e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)){n+=" "+g+" = true; if ("+p+".length > "+D+") { ";var B=p+"["+D+"]";d.schema=A,d.schemaPath=o+"["+D+"]",d.errSchemaPath=u+"/"+D,d.errorPath=e.util.getPathExpr(e.errorPath,D,e.opts.jsonPointers,!0),d.dataPathArr[b]=D;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,B)+" ":n+=" var "+v+" = "+B+"; "+T+" ",n+=" } ",c&&(n+=" if ("+g+") { ",m+="}")}}if(typeof C=="object"&&(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all))){d.schema=C,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+g+" = true; if ("+p+".length > "+l.length+") { for (var "+y+" = "+l.length+"; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var B=p+"["+y+"]";d.dataPathArr[b]=y;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,B)+" ":n+=" var "+v+" = "+B+"; "+T+" ",c&&(n+=" if (!"+g+") break; "),n+=" } } ",c&&(n+=" if ("+g+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){d.schema=l,d.schemaPath=o,d.errSchemaPath=u,n+=" for (var "+y+" = 0; "+y+" < "+p+".length; "+y+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers,!0);var B=p+"["+y+"]";d.dataPathArr[b]=y;var T=e.validate(d);d.baseId=S,e.util.varOccurences(T,v)<2?n+=" "+e.util.varReplace(T,v,B)+" ":n+=" var "+v+" = "+B+"; "+T+" ",c&&(n+=" if (!"+g+") break; "),n+=" }"}return c&&(n+=" "+m+" if ("+f+" == errors) {"),n}),_d}var Id,oP;function lP(){return oP||(oP=1,Id=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,S,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=t=="maximum",m=d?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[m],y=e.opts.$data&&g&&g.$data,b=d?"<":">",v=d?">":"<",S=void 0;if(!(h||typeof l=="number"||l===void 0))throw new Error(t+" must be number");if(!(y||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(m+" must be number or boolean");if(y){var C=e.util.getData(g.$data,a,e.dataPathArr),O="exclusive"+i,w="exclType"+i,E="exclIsNumber"+i,k="op"+i,A="' + "+k+" + '";n+=" var schemaExcl"+i+" = "+C+"; ",C="schemaExcl"+i,n+=" var "+O+"; var "+w+" = typeof "+C+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var S=m,D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(S||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+w+" == 'number' ? ( ("+O+" = "+f+" === undefined || "+C+" "+b+"= "+f+") ? "+p+" "+v+"= "+C+" : "+p+" "+v+" "+f+" ) : ( ("+O+" = "+C+" === true) ? "+p+" "+v+"= "+f+" : "+p+" "+v+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+O+" ? '"+b+"' : '"+b+"='; ",l===void 0&&(S=m,u=e.errSchemaPath+"/"+m,f=C,h=y)}else{var E=typeof g=="number",A=b;if(E&&h){var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+g+" "+b+"= "+f+" ? "+p+" "+v+"= "+g+" : "+p+" "+v+" "+f+" ) || "+p+" !== "+p+") { "}else{E&&l===void 0?(O=!0,S=m,u=e.errSchemaPath+"/"+m,f=g,v+="="):(E&&(f=Math[d?"min":"max"](g,l)),g===(E?f:!0)?(O=!0,S=m,u=e.errSchemaPath+"/"+m,v+="="):(O=!1,A+="="));var k="'"+A+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+" "+v+" "+f+" || "+p+" !== "+p+") { "}}S=S||t;var D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(S||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+k+", limit: "+f+", exclusive: "+O+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be "+A+" ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;return n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}),Id}var Fd,uP;function cP(){return uP||(uP=1,Fd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxItems"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+".length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxItems"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Fd}var Rd,fP;function pP(){return fP||(fP=1,Rd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxLength"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be ",t=="maxLength"?n+="longer":n+="shorter",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Rd}var Bd,hP;function dP(){return hP||(hP=1,Bd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,m,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");var d=t=="maxProperties"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" Object.keys("+p+").length "+d+" "+f+") { ";var m=t,g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",t=="maxProperties"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+l,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Bd}var Nd,mP;function iU(){return mP||(mP=1,Nd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l,!(h||typeof l=="number"))throw new Error(t+" must be number");n+="var division"+i+";if (",h&&(n+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",h&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var m=n;return n=d.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+m+"]); ":n+=" validate.errors = ["+m+"]; return false; ":n+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Nd}var Ld,gP;function aU(){return gP||(gP=1,Ld=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u,n+=" var "+h+" = errors; ";var m=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var g;f.opts.allErrors&&(g=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,g&&(f.opts.allErrors=g),e.compositeRule=f.compositeRule=m,n+=" if ("+d+") { ";var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;n=y.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}),Ld}var $d,yP;function oU(){return yP||(yP=1,$d=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),m="";d.level++;var g="valid"+d.level,y=d.baseId,b="prevValid"+i,v="passingSchemas"+i;n+="var "+f+" = errors , "+b+" = false , "+h+" = false , "+v+" = null; ";var S=e.compositeRule;e.compositeRule=d.compositeRule=!0;var C=l;if(C)for(var O,w=-1,E=C.length-1;w0||O===!1:e.util.schemaHasRules(O,e.RULES.all))?(d.schema=O,d.schemaPath=o+"["+w+"]",d.errSchemaPath=u+"/"+w,n+=" "+e.validate(d)+" ",d.baseId=y):n+=" var "+g+" = true; ",w&&(n+=" if ("+g+" && "+b+") { "+h+" = false; "+v+" = ["+v+", "+w+"]; } else { ",m+="}"),n+=" if ("+g+") { "+h+" = "+b+" = true; "+v+" = "+w+"; }";return e.compositeRule=d.compositeRule=S,n+=""+m+"if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+v+" } ",e.opts.messages!==!1&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}),$d}var Md,xP;function lU(){return xP||(xP=1,Md=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h=e.opts.$data&&l&&l.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(l.$data,a,e.dataPathArr)+"; ",f="schema"+i):f=l;var d=h?"(new RegExp("+f+"))":e.usePattern(l);n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" !"+d+".test("+p+") ) { ";var m=m||[];m.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",h?n+=""+f:n+=""+e.util.toQuotedString(l),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match pattern "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(l),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+o:n+=""+e.util.toQuotedString(l),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=m.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}),Md}var jd,bP;function uU(){return bP||(bP=1,jd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level,g="key"+i,y="idx"+i,b=f.dataLevel=e.dataLevel+1,v="data"+b,S="dataProperties"+i,C=Object.keys(l||{}).filter(I),O=e.schema.patternProperties||{},w=Object.keys(O).filter(I),E=e.schema.additionalProperties,k=C.length||w.length,A=E===!1,D=typeof E=="object"&&Object.keys(E).length,_=e.opts.removeAdditional,B=A||D||_,T=e.opts.ownProperties,F=e.baseId,j=e.schema.required;if(j&&!(e.opts.$data&&j.$data)&&j.length8)n+=" || validate.schema"+o+".hasOwnProperty("+g+") ";else{var N=C;if(N)for(var R,U=-1,V=N.length-1;U0||X===!1:e.util.schemaHasRules(X,e.RULES.all)){var we=e.util.getProperty(R),Le=p+we,Ve=rt&&X.default!==void 0;f.schema=X,f.schemaPath=o+we,f.errSchemaPath=u+"/"+e.util.escapeFragment(R),f.errorPath=e.util.getPath(e.errorPath,R,e.opts.jsonPointers),f.dataPathArr[b]=e.util.toQuotedString(R);var qe=e.validate(f);if(f.baseId=F,e.util.varOccurences(qe,v)<2){qe=e.util.varReplace(qe,v,Le);var et=Le}else{var et=v;n+=" var "+v+" = "+Le+"; "}if(Ve)n+=" "+qe+" ";else{if(Q&&Q[R]){n+=" if ( "+et+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=") { "+m+" = false; ";var he=e.errorPath,pe=u,it=e.util.escapeQuotes(R);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(he,R,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var K=K||[];K.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+it+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+it+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var le=n;n=K.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+le+"]); ":n+=" validate.errors = ["+le+"]; return false; ":n+=" var err = "+le+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=pe,e.errorPath=he,n+=" } else { "}else c?(n+=" if ( "+et+" === undefined ",T&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=") { "+m+" = true; } else { "):(n+=" if ("+et+" !== undefined ",T&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=" ) { ");n+=" "+qe+" } "}}c&&(n+=" if ("+m+") { ",d+="}")}}if(w.length){var st=w;if(st)for(var se,Ct=-1,bt=st.length-1;Ct0||X===!1:e.util.schemaHasRules(X,e.RULES.all)){f.schema=X,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(se),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(se),T?n+=" "+S+" = "+S+" || Object.keys("+p+"); for (var "+y+"=0; "+y+"<"+S+".length; "+y+"++) { var "+g+" = "+S+"["+y+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" if ("+e.usePattern(se)+".test("+g+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Le=p+"["+g+"]";f.dataPathArr[b]=g;var qe=e.validate(f);f.baseId=F,e.util.varOccurences(qe,v)<2?n+=" "+e.util.varReplace(qe,v,Le)+" ":n+=" var "+v+" = "+Le+"; "+qe+" ",c&&(n+=" if (!"+m+") break; "),n+=" } ",c&&(n+=" else "+m+" = true; "),n+=" } ",c&&(n+=" if ("+m+") { ",d+="}")}}}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}),jd}var qd,vP;function cU(){return vP||(vP=1,qd=function(e,t,s){var n=" ",i=e.level,a=e.dataLevel,l=e.schema[t],o=e.schemaPath+e.util.getProperty(t),u=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var m="valid"+f.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?typeof l=="object"&&Object.keys(l).length>0||l===!1:e.util.schemaHasRules(l,e.RULES.all)){f.schema=l,f.schemaPath=o,f.errSchemaPath=u;var g="key"+i,y="idx"+i,b="i"+i,v="' + "+g+" + '",S=f.dataLevel=e.dataLevel+1,C="data"+S,O="dataProperties"+i,w=e.opts.ownProperties,E=e.baseId;w&&(n+=" var "+O+" = undefined; "),w?n+=" "+O+" = "+O+" || Object.keys("+p+"); for (var "+y+"=0; "+y+"<"+O+".length; "+y+"++) { var "+g+" = "+O+"["+y+"]; ":n+=" for (var "+g+" in "+p+") { ",n+=" var startErrs"+i+" = errors; ";var k=g,A=e.compositeRule;e.compositeRule=f.compositeRule=!0;var D=e.validate(f);f.baseId=E,e.util.varOccurences(D,C)<2?n+=" "+e.util.varReplace(D,C,k)+" ":n+=" var "+C+" = "+k+"; "+D+" ",e.compositeRule=f.compositeRule=A,n+=" if (!"+m+") { for (var "+b+"=startErrs"+i+"; "+b+"0||S===!1:e.util.schemaHasRules(S,e.RULES.all))||(m[m.length]=y)}}else var m=l;if(f||m.length){var C=e.errorPath,O=f||m.length>=e.opts.loopRequired,w=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",O){f||(n+=" var "+d+" = validate.schema"+o+"; ");var E="i"+i,k="schema"+i+"["+E+"]",A="' + "+k+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,k,e.opts.jsonPointers)),n+=" var "+h+" = true; ",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+E+" = 0; "+E+" < "+d+".length; "+E+"++) { "+h+" = "+p+"["+d+"["+E+"]] !== undefined ",w&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+d+"["+E+"]) "),n+="; if (!"+h+") break; } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var D=D||[];D.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+A+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+A+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+o+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var _=n;n=D.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+_+"]); ":n+=" validate.errors = ["+_+"]; return false; ":n+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var B=m;if(B)for(var T,E=-1,F=B.length-1;E 1) { ";var m=e.schema.items&&e.schema.items.type,g=Array.isArray(m);if(!m||m=="object"||m=="array"||g&&(m.indexOf("object")>=0||m.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+h+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var y="checkDataType"+(g?"s":"");n+=" if ("+e.util[y](m,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(n+=` if (typeof item == 'string') item = '"' + item; `),n+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var b=b||[];b.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+o:n+=""+l,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;n=b.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}),Ud}var Vd,EP;function hU(){return EP||(EP=1,Vd={$ref:X9(),allOf:G9(),anyOf:Y9(),$comment:H9(),const:K9(),contains:J9(),dependencies:eU(),enum:tU(),format:rU(),if:nU(),items:sU(),maximum:lP(),minimum:lP(),maxItems:cP(),minItems:cP(),maxLength:pP(),minLength:pP(),maxProperties:dP(),minProperties:dP(),multipleOf:iU(),not:aU(),oneOf:oU(),pattern:lU(),properties:uU(),propertyNames:cU(),required:fU(),uniqueItems:pU(),validate:BB()}),Vd}var Wd,CP;function dU(){if(CP)return Wd;CP=1;var r=hU(),e=ba().toHash;return Wd=function(){var s=[{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"]}],n=["type","$comment"],i=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],a=["number","integer","string","array","object","boolean","null"];return s.all=e(n),s.types=e(a),s.forEach(function(l){l.rules=l.rules.map(function(o){var u;if(typeof o=="object"){var c=Object.keys(o)[0];u=o[c],o=c,u.forEach(function(h){n.push(h),s.all[h]=!0})}n.push(o);var p=s.all[o]={keyword:o,code:r[o],implements:u};return p}),s.all.$comment={keyword:"$comment",code:r.$comment},l.type&&(s.types[l.type]=l)}),s.keywords=e(n.concat(i)),s.custom={},s},Wd}var Zd,wP;function mU(){if(wP)return Zd;wP=1;var r=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Zd=function(e,t){for(var s=0;s(K[le]=xe,K),{}),p=[0,1,2,"off","warn","error"];function h(K){let le=Array.isArray(K)?K[0]:K;return le===0||le===1||le===2?le:typeof le=="string"&&c[le.toLowerCase()]||0}function f(K){K.rules&&Object.keys(K.rules).forEach(le=>{let xe=K.rules[le];typeof xe=="number"?K.rules[le]=u[xe]||u[0]:Array.isArray(xe)&&typeof xe[0]=="number"&&(xe[0]=u[xe[0]]||u[0])})}function d(K){return h(K)===2}function m(K){let le=Array.isArray(K)?K[0]:K;return typeof le=="string"&&(le=le.toLowerCase()),p.indexOf(le)!==-1}function g(K){return Object.keys(K).every(le=>m(K[le]))}function y(K){switch(K){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(`'${K}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var b={__proto__:null,getRuleSeverity:h,normalizeToStrings:f,isErrorSeverity:d,isValidSeverity:m,isEverySeverityValid:g,normalizeConfigGlobal:y};let v={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."},S=new Set;function C(K,le){let xe=JSON.stringify({source:K,errorCode:le});if(S.has(xe))return;S.add(xe);let Le=a.default.relative(process.cwd(),K),qe=v[le];process.emitWarning(`${qe} (found in "${Le}")`,"DeprecationWarning",le)}let O={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 w=(K={})=>{let le=new l.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...K});return le.addMetaSchema(O),le._opts.defaultMeta=O.id,le};let E={$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"}},k={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"},...E},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...E},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function A(K,le){let xe={};for(let[Le,qe]of Object.entries(K))Object.hasOwnProperty.call(le,Le)||(xe[Le]=qe);return xe}let D=A(o.default.es2015,o.default.es5),_={Atomics:!1,SharedArrayBuffer:!1},B={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},T={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var F=new Map(Object.entries({builtin:{globals:o.default.es5},es6:{globals:D,parserOptions:{ecmaVersion:6}},es2015:{globals:D,parserOptions:{ecmaVersion:6}},es2016:{globals:D,parserOptions:{ecmaVersion:7}},es2017:{globals:{...D,..._},parserOptions:{ecmaVersion:8}},es2018:{globals:{...D,..._},parserOptions:{ecmaVersion:9}},es2019:{globals:{...D,..._},parserOptions:{ecmaVersion:10}},es2020:{globals:{...D,..._,...B},parserOptions:{ecmaVersion:11}},es2021:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:12}},es2022:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:13}},es2023:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:14}},es2024:{globals:{...D,..._,...B,...T},parserOptions:{ecmaVersion:15}},browser:{globals:o.default.browser},node:{globals:o.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:o.default["shared-node-browser"]},worker:{globals:o.default.worker},serviceworker:{globals:o.default.serviceworker},commonjs:{globals:o.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:o.default.amd},mocha:{globals:o.default.mocha},jasmine:{globals:o.default.jasmine},jest:{globals:o.default.jest},phantomjs:{globals:o.default.phantomjs},jquery:{globals:o.default.jquery},qunit:{globals:o.default.qunit},prototypejs:{globals:o.default.prototypejs},shelljs:{globals:o.default.shelljs},meteor:{globals:o.default.meteor},mongo:{globals:o.default.mongo},protractor:{globals:o.default.protractor},applescript:{globals:o.default.applescript},nashorn:{globals:o.default.nashorn},atomtest:{globals:o.default.atomtest},embertest:{globals:o.default.embertest},webextensions:{globals:o.default.webextensions},greasemonkey:{globals:o.default.greasemonkey}}));let j=w(),Q=new WeakMap,I=Function.prototype,N,R={error:2,warn:1,off:0},U=new WeakSet,V=Object.freeze({type:"array",minItems:0,maxItems:0});class ae{constructor({builtInRules:le=new Map}={}){this.builtInRules=le}getRuleOptionsSchema(le){if(!le)return null;if(!le.meta)return{...V};let xe=le.meta.schema;if(typeof xe>"u")return{...V};if(xe===!1)return null;if(typeof xe!="object"||xe===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(xe)?xe.length?{type:"array",items:xe,minItems:0,maxItems:xe.length}:{...V}:xe}validateRuleSeverity(le){let xe=Array.isArray(le)?le[0]:le,Le=typeof xe=="string"?R[xe.toLowerCase()]:xe;if(Le===0||Le===1||Le===2)return Le;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${i.default.inspect(xe).replace(/'/gu,'"').replace(/\n/gu,"")}'). +`)}validateRuleSchema(le,xe){if(!Q.has(le))try{let qe=this.getRuleOptionsSchema(le);qe&&Q.set(le,j.compile(qe))}catch(qe){let rt=new Error(qe.message,{cause:qe});throw rt.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA",rt}let Le=Q.get(le);if(Le&&(Le(xe),Le.errors))throw new Error(Le.errors.map(qe=>` Value ${JSON.stringify(qe.data)} ${qe.message}. +`).join(""))}validateRuleOptions(le,xe,Le,qe=null){try{this.validateRuleSeverity(Le)!==0&&this.validateRuleSchema(le,Array.isArray(Le)?Le.slice(1):[])}catch(rt){let ht=rt.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"?`Error while processing options validation schema of rule '${xe}': ${rt.message}`:`Configuration for rule "${xe}" is invalid: +${rt.message}`;typeof qe=="string"&&(ht=`${qe}: + ${ht}`);let pt=new Error(ht,{cause:rt});throw rt.code&&(pt.code=rt.code),pt}}validateEnvironment(le,xe,Le=I){le&&Object.keys(le).forEach(qe=>{if(!(Le(qe)||F.get(qe)||null)){let ht=`${xe}: + Environment key "${qe}" is unknown +`;throw new Error(ht)}})}validateRules(le,xe,Le=I){le&&Object.keys(le).forEach(qe=>{let rt=Le(qe)||this.builtInRules.get(qe)||null;this.validateRuleOptions(rt,qe,le[qe],xe)})}validateGlobals(le,xe=null){le&&Object.entries(le).forEach(([Le,qe])=>{try{y(qe)}catch(rt){throw new Error(`ESLint configuration of global '${Le}' in ${xe} is invalid: +${rt.message}`)}})}validateProcessor(le,xe,Le){if(le&&!Le(le))throw new Error(`ESLint configuration of processor in '${xe}' is invalid: '${le}' was not found.`)}formatErrors(le){return le.map(xe=>{if(xe.keyword==="additionalProperties")return`Unexpected top-level property "${xe.dataPath.length?`${xe.dataPath.slice(1)}.${xe.params.additionalProperty}`:xe.params.additionalProperty}"`;if(xe.keyword==="type"){let qe=xe.dataPath.slice(1),rt=Array.isArray(xe.schema)?xe.schema.join("/"):xe.schema,ht=JSON.stringify(xe.data);return`Property "${qe}" is the wrong type (expected ${rt} but got \`${ht}\`)`}return`"${xe.dataPath[0]==="."?xe.dataPath.slice(1):xe.dataPath}" ${xe.message}. Value: ${JSON.stringify(xe.data)}`}).map(xe=>` - ${xe}. +`).join("")}validateConfigSchema(le,xe=null){if(N=N||j.compile(k),!N(le))throw new Error(`ESLint configuration in ${xe} is invalid: +${this.formatErrors(N.errors)}`);Object.hasOwnProperty.call(le,"ecmaFeatures")&&C(xe,"ESLINT_LEGACY_ECMAFEATURES")}validate(le,xe,Le,qe){this.validateConfigSchema(le,xe),this.validateRules(le.rules,xe,Le),this.validateEnvironment(le.env,xe,qe),this.validateGlobals(le.globals,xe);for(let rt of le.overrides||[])this.validateRules(rt.rules,xe,Le),this.validateEnvironment(rt.env,xe,qe),this.validateGlobals(le.globals,xe)}validateConfigArray(le){let xe=Map.prototype.get.bind(le.pluginEnvironments),Le=Map.prototype.get.bind(le.pluginProcessors),qe=Map.prototype.get.bind(le.pluginRules);for(let rt of le)U.has(rt)||(U.add(rt),this.validateEnvironment(rt.env,rt.name,xe),this.validateGlobals(rt.globals,rt.name),this.validateProcessor(rt.processor,rt.name,Le),this.validateRules(rt.rules,rt.name,qe))}}let se=/^@.*\//iu;function ve(K,le){let xe=K;if(xe.includes("\\")&&(xe=xe.replace(/\\/gu,"/")),xe.charAt(0)==="@"){let Le=new RegExp(`^(@[^/]+)(?:/(?:${le})?)?$`,"u"),qe=new RegExp(`^${le}(-|$)`,"u");Le.test(xe)?xe=xe.replace(Le,`$1/${le}`):qe.test(xe.split("/")[1])||(xe=xe.replace(/^@([^/]+)\/(.*)$/u,`@$1/${le}-$2`))}else xe.startsWith(`${le}-`)||(xe=`${le}-${xe}`);return xe}function H(K,le){if(K[0]==="@"){let xe=new RegExp(`^(@[^/]+)/${le}$`,"u").exec(K);if(xe)return xe[1];if(xe=new RegExp(`^(@[^/]+)/${le}-(.+)$`,"u").exec(K),xe)return`${xe[1]}/${xe[2]}`}else if(K.startsWith(`${le}-`))return K.slice(le.length+1);return K}function he(K){let le=K.match(se);return le?le[0]:""}var $={__proto__:null,normalizePackageName:ve,getShorthandName:H,getNamespaceFromTerm:he};let pe={environments:F,ConfigOps:b,ConfigValidator:ae,naming:$};return Yu.Legacy=pe,Yu}var Ku={exports:{}},Ju={exports:{}},Jd,FP;function y4(){if(FP)return Jd;FP=1;var r=1e3,e=r*60,t=e*60,s=t*24,n=s*7,i=s*365.25;Jd=function(c,p){p=p||{};var h=typeof c;if(h==="string"&&c.length>0)return a(c);if(h==="number"&&isFinite(c))return p.long?o(c):l(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function a(c){if(c=String(c),!(c.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(p){var h=parseFloat(p[1]),f=(p[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*n;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*t;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function l(c){var p=Math.abs(c);return p>=s?Math.round(c/s)+"d":p>=t?Math.round(c/t)+"h":p>=e?Math.round(c/e)+"m":p>=r?Math.round(c/r)+"s":c+"ms"}function o(c){var p=Math.abs(c);return p>=s?u(c,p,s,"day"):p>=t?u(c,p,t,"hour"):p>=e?u(c,p,e,"minute"):p>=r?u(c,p,r,"second"):c+" ms"}function u(c,p,h,f){var d=p>=h*1.5;return Math.round(c/h)+" "+f+(d?"s":"")}return Jd}var em,RP;function $B(){if(RP)return em;RP=1;function r(e){s.debug=s,s.default=s,s.coerce=u,s.disable=a,s.enable=i,s.enabled=l,s.humanize=y4(),s.destroy=c,Object.keys(e).forEach(p=>{s[p]=e[p]}),s.names=[],s.skips=[],s.formatters={};function t(p){let h=0;for(let f=0;f{if(w==="%%")return"%";C++;let k=s.formatters[E];if(typeof k=="function"){let A=y[C];w=k.call(b,A),y.splice(C,1),C--}return w}),s.formatArgs.call(b,y),(b.log||s.log).apply(b,y)}return g.namespace=p,g.useColors=s.useColors(),g.color=s.selectColor(p),g.extend=n,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(d!==s.namespaces&&(d=s.namespaces,m=s.enabled(p)),m),set:y=>{f=y}}),typeof s.init=="function"&&s.init(g),g}function n(p,h){let f=s(this.namespace+(typeof h>"u"?":":h)+p);return f.log=this.log,f}function i(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h,f=(typeof p=="string"?p:"").split(/[\s,]+/),d=f.length;for(h=0;h"-"+h)].join(",");return s.enable(""),p}function l(p){if(p[p.length-1]==="*")return!0;let h,f;for(h=0,f=s.skips.length;h{let o=!1;return()=>{o||(o=!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`."))}})(),e.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 t(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(o){if(o[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+o[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;let u="color: "+this.color;o.splice(1,0,u,"color: inherit");let c=0,p=0;o[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(c++,h==="%c"&&(p=c))}),o.splice(p,0,u)}e.log=console.debug||console.log||(()=>{});function n(o){try{o?e.storage.setItem("debug",o):e.storage.removeItem("debug")}catch{}}function i(){let o;try{o=e.storage.getItem("debug")}catch{}return!o&&typeof Bt<"u"&&"env"in Bt&&(o=Bt.env.DEBUG),o}function a(){try{return localStorage}catch{}}r.exports=$B()(e);let{formatters:l}=r.exports;l.j=function(o){try{return JSON.stringify(o)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}}(Ju,Ju.exports)),Ju.exports}var ec={exports:{}};function MB(){return!1}function jB(){throw new Error("tty.ReadStream is not implemented")}function qB(){throw new Error("tty.ReadStream is not implemented")}var b4={isatty:MB,ReadStream:jB,WriteStream:qB},v4=Object.freeze({__proto__:null,ReadStream:jB,WriteStream:qB,default:b4,isatty:MB}),O4=cc(v4),NP;function S4(){return NP||(NP=1,function(r,e){let t=O4,s=IB;e.init=c,e.log=l,e.formatArgs=i,e.save=o,e.load=u,e.useColors=n,e.destroy=s.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let h=EN("supports-color");h&&(h.stderr||h).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(Bt.env).filter(h=>/^debug_/i.test(h)).reduce((h,f)=>{let d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(g,y)=>y.toUpperCase()),m=Bt.env[f];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),h[d]=m,h},{});function n(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(Bt.stderr.fd)}function i(h){let{namespace:f,useColors:d}=this;if(d){let m=this.color,g="\x1B[3"+(m<8?m:"8;5;"+m),y=` ${g};1m${f} \x1B[0m`;h[0]=y+h[0].split(` `).join(` -`+b),h.push(g+"m+"+r.exports.humanize(this.diff)+"\x1B[0m")}else h[0]=a()+f+" "+h[0]}function a(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function l(...h){return Lt.stderr.write(s.format(...h)+` -`)}function o(h){h?Lt.env.DEBUG=h:delete Lt.env.DEBUG}function u(){return Lt.env.DEBUG}function c(h){h.inspectOpts={};let f=Object.keys(e.inspectOpts);for(let d=0;df.trim()).join(" ")},p.O=function(h){return this.inspectOpts.colors=this.useColors,s.inspect(h,this.inspectOpts)}}(rc,rc.exports)),rc.exports}var MP;function Oi(){return MP||(MP=1,typeof Lt>"u"||Lt.type==="renderer"||Lt.browser===!0||Lt.__nwjs?ec.exports=v4():ec.exports=C4()),ec.exports}var nm,jP;function IO(){if(jP)return nm;jP=1;let r=AO(),e=Oi()("eslint:traverser");function t(){}function s(a){return a!==null&&typeof a=="object"&&typeof a.type=="string"}function n(a,l){let o=a[l.type];return o||(o=r.getKeys(l),e('Unknown node type "%s": Estimated visitor keys %j',l.type,o)),o}class i{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(l,o){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=o.visitorKeys||r.KEYS,this._enter=o.enter||t,this._leave=o.leave||t,this._traverse(l,null)}_traverse(l,o){if(s(l)){if(this._current=l,this._skipped=!1,this._enter(l,o),!this._skipped&&!this._broken){let u=n(this._visitorKeys,l);if(u.length>=1){this._parents.push(l);for(let c=0;c")}function o(H){return a(H,",")}function u(H){return a(H,";")}function c(H){return a(H,":")}function p(H){return a(H,"(")}function h(H){return a(H,")")}function f(H){return a(H,"[")}function d(H){return a(H,"]")}function m(H){return a(H,"{")}function g(H){return a(H,"}")}function b(H){return["Block","Line","Shebang"].includes(H.type)}let O=i(l),S=i(o),C=i(u),k=i(c),E=i(p),A=i(h),w=i(f),P=i(d),T=i(m),I=i(g),F=i(b);function L(H,ie){return H.id?ie.getTokenAfter(H.id,p):ie.getFirstToken(H,p)}function _(H,ie){let re=H.parent,ue=null,pe=null;if(H.type==="ArrowFunctionExpression"){let X=ie.getTokenBefore(H.body,l);ue=X.loc.start,pe=X.loc.end}else re.type==="Property"||re.type==="MethodDefinition"||re.type==="PropertyDefinition"?(ue=re.loc.start,pe=L(H,ie).loc.start):(ue=H.loc.start,pe=L(H,ie).loc.start);return{start:{...ue},end:{...pe}}}let B=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof tn<"u"?tn:{},Q=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"])),V=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(H=>Math[H]).filter(H=>typeof H=="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(H=>typeof H=="function")),R=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function $(H,ie){let re=H;for(;(typeof re=="object"||typeof re=="function")&&re!==null;){let ue=Object.getOwnPropertyDescriptor(re,ie);if(ue)return ue;re=Object.getPrototypeOf(re)}return null}function N(H,ie){let re=$(H,ie);return re!=null&&re.get!=null}function W(H,ie){let re=[];for(let ue=0;ue":return{value:re.value>ue.value};case">=":return{value:re.value>=ue.value};case"<<":return{value:re.value<>":return{value:re.value>>ue.value};case">>>":return{value:re.value>>>ue.value};case"+":return{value:re.value+ue.value};case"-":return{value:re.value-ue.value};case"*":return{value:re.value*ue.value};case"/":return{value:re.value/ue.value};case"%":return{value:re.value%ue.value};case"**":return{value:re.value**ue.value};case"|":return{value:re.value|ue.value};case"^":return{value:re.value^ue.value};case"&":return{value:re.value&ue.value}}return null},CallExpression(H,ie){let re=H.callee,ue=W(H.arguments,ie);if(ue!=null)if(re.type==="MemberExpression"){if(re.property.type==="PrivateIdentifier")return null;let pe=le(re.object,ie);if(pe!=null){if(pe.value==null&&(pe.optional||H.optional))return{value:void 0,optional:!0};let X=ae(re,ie);if(X!=null){let te=pe.value,oe=X.value;if(V.has(te[oe]))return{value:te[oe](...ue)};if(R.has(te[oe]))return{value:ue[0]}}}}else{let pe=le(re,ie);if(pe!=null){if(pe.value==null&&H.optional)return{value:void 0,optional:!0};let X=pe.value;if(V.has(X))return{value:X(...ue)};if(R.has(X))return{value:ue[0]}}}return null},ConditionalExpression(H,ie){let re=le(H.test,ie);return re!=null?re.value?le(H.consequent,ie):le(H.alternate,ie):null},ExpressionStatement(H,ie){return le(H.expression,ie)},Identifier(H,ie){if(ie!=null){let re=s(ie,H);if(re!=null&&re.defs.length===0&&Q.has(re.name)&&re.name in B)return{value:B[re.name]};if(re!=null&&re.defs.length===1){let ue=re.defs[0];if(ue.parent&&ue.parent.kind==="const"&&ue.node.id.type==="Identifier")return le(ue.node.init,ie)}}return null},Literal(H){return(H.regex!=null||H.bigint!=null)&&H.value==null?null:{value:H.value}},LogicalExpression(H,ie){let re=le(H.left,ie);if(re!=null){if(H.operator==="||"&&re.value||H.operator==="&&"&&!re.value||H.operator==="??"&&re.value!=null)return re;let ue=le(H.right,ie);if(ue!=null)return ue}return null},MemberExpression(H,ie){if(H.property.type==="PrivateIdentifier")return null;let re=le(H.object,ie);if(re!=null){if(re.value==null&&(re.optional||H.optional))return{value:void 0,optional:!0};let ue=ae(H,ie);if(ue!=null&&!N(re.value,ue.value))return{value:re.value[ue.value]}}return null},ChainExpression(H,ie){let re=le(H.expression,ie);return re!=null?{value:re.value}:null},NewExpression(H,ie){let re=le(H.callee,ie),ue=W(H.arguments,ie);if(re!=null&&ue!=null){let pe=re.value;if(V.has(pe))return{value:new pe(...ue)}}return null},ObjectExpression(H,ie){let re={};for(let ue of H.properties)if(ue.type==="Property"){if(ue.kind!=="init")return null;let pe=ae(ue,ie),X=le(ue.value,ie);if(pe==null||X==null)return null;re[pe.value]=X.value}else if(ue.type==="SpreadElement"||ue.type==="ExperimentalSpreadProperty"){let pe=le(ue.argument,ie);if(pe==null)return null;Object.assign(re,pe.value)}else return null;return{value:re}},SequenceExpression(H,ie){let re=H.expressions[H.expressions.length-1];return le(re,ie)},TaggedTemplateExpression(H,ie){let re=le(H.tag,ie),ue=W(H.quasi.expressions,ie);if(re!=null&&ue!=null){let pe=re.value,X=H.quasi.quasis.map(te=>te.value.cooked);if(X.raw=H.quasi.quasis.map(te=>te.value.raw),pe===String.raw)return{value:pe(X,...ue)}}return null},TemplateLiteral(H,ie){let re=W(H.expressions,ie);if(re!=null){let ue=H.quasis[0].value.cooked;for(let pe=0;pe",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),ee=Object.freeze(new Set(["-","+","!","~"]));function ce(H){return H!==null&&typeof H=="object"&&typeof H.type=="string"}let ve=Object.freeze(Object.assign(Object.create(null),{$visit(H,ie,re){let{type:ue}=H;return typeof this[ue]=="function"?this[ue](H,ie,re):this.$visitChildren(H,ie,re)},$visitChildren(H,ie,re){let{type:ue}=H;for(let pe of re[ue]||e.getKeys(H)){let X=H[pe];if(Array.isArray(X)){for(let te of X)if(ce(te)&&this.$visit(te,ie,re))return!0}else if(ce(X)&&this.$visit(X,ie,re))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(H,ie,re){return ie.considerImplicitTypeConversion&&de.has(H.operator)&&(H.left.type!=="Literal"||H.right.type!=="Literal")?!0:this.$visitChildren(H,ie,re)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(H,ie,re){return ie.considerGetters||ie.considerImplicitTypeConversion&&H.computed&&H.property.type!=="Literal"?!0:this.$visitChildren(H,ie,re)},MethodDefinition(H,ie,re){return ie.considerImplicitTypeConversion&&H.computed&&H.key.type!=="Literal"?!0:this.$visitChildren(H,ie,re)},NewExpression(){return!0},Property(H,ie,re){return ie.considerImplicitTypeConversion&&H.computed&&H.key.type!=="Literal"?!0:this.$visitChildren(H,ie,re)},PropertyDefinition(H,ie,re){return ie.considerImplicitTypeConversion&&H.computed&&H.key.type!=="Literal"?!0:this.$visitChildren(H,ie,re)},UnaryExpression(H,ie,re){return H.operator==="delete"||ie.considerImplicitTypeConversion&&ee.has(H.operator)&&H.argument.type!=="Literal"?!0:this.$visitChildren(H,ie,re)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function Me(H,ie,{considerGetters:re=!1,considerImplicitTypeConversion:ue=!1}={}){return ve.$visit(H,{considerGetters:re,considerImplicitTypeConversion:ue},ie.visitorKeys||e.KEYS)}function Ue(H,ie){let re=H.parent;switch(re.type){case"CallExpression":case"NewExpression":return re.arguments.length===1&&re.arguments[0]===H?ie.getTokenAfter(re.callee,p):null;case"DoWhileStatement":return re.test===H?ie.getTokenAfter(re.body,p):null;case"IfStatement":case"WhileStatement":return re.test===H?ie.getFirstToken(re,1):null;case"ImportExpression":return re.source===H?ie.getFirstToken(re,1):null;case"SwitchStatement":return re.discriminant===H?ie.getFirstToken(re,1):null;case"WithStatement":return re.object===H?ie.getFirstToken(re,1):null;default:return null}}function st(H,ie,re){let ue,pe,X,te,oe;if(typeof H=="number"){if(ue=H|0,pe=ie,X=re,!(ue>=1))throw new TypeError("'times' should be a positive integer.")}else ue=1,pe=H,X=ie;if(pe==null||pe.parent==null||pe.parent.type==="CatchClause"&&pe.parent.param===pe)return!1;te=oe=pe;do te=X.getTokenBefore(te),oe=X.getTokenAfter(oe);while(te!=null&&oe!=null&&p(te)&&h(oe)&&te!==Ue(pe,X)&&--ue>0);return ue===0}let mt=/\$(?:[$&`']|[1-9][0-9]?)/gu,dt=new WeakMap;function wt(H,ie){let re=!1;for(let ue=ie-1;ue>=0&&H.charCodeAt(ue)===92;--ue)re=!re;return re}function Y(H,ie,re){let ue=[],pe=0,X=null;function te(oe){switch(oe){case"$$":return"$";case"$&":return X[0];case"$`":return ie.slice(0,X.index);case"$'":return ie.slice(X.index+X[0].length);default:{let ge=oe.slice(1);return ge in X?X[ge]:oe}}}for(X of H.execAll(ie))ue.push(ie.slice(pe,X.index)),ue.push(re.replace(mt,te)),pe=X.index+X[0].length;return ue.push(ie.slice(pe)),ue.join("")}function Ae(H,ie,re){let ue=[],pe=0;for(let X of H.execAll(ie))ue.push(ie.slice(pe,X.index)),ue.push(String(re(...X,X.index,X.input))),pe=X.index+X[0].length;return ue.push(ie.slice(pe)),ue.join("")}class Ze{constructor(ie,{escaped:re=!1}={}){if(!(ie instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!ie.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");dt.set(this,{pattern:new RegExp(ie.source,ie.flags),escaped:!!re})}*execAll(ie){let{pattern:re,escaped:ue}=dt.get(this),pe=null,X=0;for(re.lastIndex=0;(pe=re.exec(ie))!=null;)(ue||!wt(ie,pe.index))&&(X=re.lastIndex,yield pe,re.lastIndex=X)}test(ie){return!this.execAll(ie).next().done}[Symbol.replace](ie,re){return typeof re=="function"?Ae(this,String(ie),re):Y(this,String(ie),String(re))}}let rt=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,ot=Function.call.bind(Object.hasOwnProperty),at=Symbol("read"),kt=Symbol("call"),Ot=Symbol("construct"),It=Symbol("esm"),Ft={require:{[kt]:!0}};function z(H){return H==null||H.defs.length!==0||H.references.some(ie=>ie.isWrite())}function St(H){let ie=H.parent;switch(ie&&ie.type){case"ConditionalExpression":return ie.consequent===H||ie.alternate===H;case"LogicalExpression":return!0;case"SequenceExpression":return ie.expressions[ie.expressions.length-1]===H;case"ChainExpression":return!0;default:return!1}}class Ke{constructor(ie,{mode:re="strict",globalObjectNames:ue=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=ie,this.mode=re,this.globalObjectNames=ue.slice(0)}*iterateGlobalReferences(ie){for(let re of Object.keys(ie)){let ue=ie[re],pe=[re],X=this.globalScope.set.get(re);z(X)||(yield*this._iterateVariableReferences(X,pe,ue,!0))}for(let re of this.globalObjectNames){let ue=[],pe=this.globalScope.set.get(re);z(pe)||(yield*this._iterateVariableReferences(pe,ue,ie,!1))}}*iterateCjsReferences(ie){for(let{node:re}of this.iterateGlobalReferences(Ft)){let ue=J(re.arguments[0]);if(ue==null||!ot(ie,ue))continue;let pe=ie[ue],X=[ue];pe[at]&&(yield{node:re,path:X,type:at,info:pe[at]}),yield*this._iteratePropertyReferences(re,X,pe)}}*iterateEsmReferences(ie){let re=this.globalScope.block;for(let ue of re.body){if(!rt.test(ue.type)||ue.source==null)continue;let pe=ue.source.value;if(!ot(ie,pe))continue;let X=ie[pe],te=[pe];if(X[at]&&(yield{node:ue,path:te,type:at,info:X[at]}),ue.type==="ExportAllDeclaration")for(let oe of Object.keys(X)){let ge=X[oe];ge[at]&&(yield{node:ue,path:te.concat(oe),type:at,info:ge[at]})}else for(let oe of ue.specifiers){let ge=ot(X,It),ke=this._iterateImportReferences(oe,te,ge?X:this.mode==="legacy"?{default:X,...X}:{default:X});if(ge)yield*ke;else for(let M of ke)M.path=M.path.filter(er),(M.path.length>=2||M.type!==at)&&(yield M)}}}*_iterateVariableReferences(ie,re,ue,pe){if(!this.variableStack.includes(ie)){this.variableStack.push(ie);try{for(let X of ie.references){if(!X.isRead())continue;let te=X.identifier;pe&&ue[at]&&(yield{node:te,path:re,type:at,info:ue[at]}),yield*this._iteratePropertyReferences(te,re,ue)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(ie,re,ue){let pe=ie;for(;St(pe);)pe=pe.parent;let X=pe.parent;if(X.type==="MemberExpression"){if(X.object===pe){let te=me(X);if(te==null||!ot(ue,te))return;re=re.concat(te);let oe=ue[te];oe[at]&&(yield{node:X,path:re,type:at,info:oe[at]}),yield*this._iteratePropertyReferences(X,re,oe)}return}if(X.type==="CallExpression"){X.callee===pe&&ue[kt]&&(yield{node:X,path:re,type:kt,info:ue[kt]});return}if(X.type==="NewExpression"){X.callee===pe&&ue[Ot]&&(yield{node:X,path:re,type:Ot,info:ue[Ot]});return}if(X.type==="AssignmentExpression"){X.right===pe&&(yield*this._iterateLhsReferences(X.left,re,ue),yield*this._iteratePropertyReferences(X,re,ue));return}if(X.type==="AssignmentPattern"){X.right===pe&&(yield*this._iterateLhsReferences(X.left,re,ue));return}X.type==="VariableDeclarator"&&X.init===pe&&(yield*this._iterateLhsReferences(X.id,re,ue))}*_iterateLhsReferences(ie,re,ue){if(ie.type==="Identifier"){let pe=s(this.globalScope,ie);pe!=null&&(yield*this._iterateVariableReferences(pe,re,ue,!1));return}if(ie.type==="ObjectPattern"){for(let pe of ie.properties){let X=me(pe);if(X==null||!ot(ue,X))continue;let te=re.concat(X),oe=ue[X];oe[at]&&(yield{node:pe,path:te,type:at,info:oe[at]}),yield*this._iterateLhsReferences(pe.value,te,oe)}return}ie.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(ie.left,re,ue))}*_iterateImportReferences(ie,re,ue){let pe=ie.type;if(pe==="ImportSpecifier"||pe==="ImportDefaultSpecifier"){let X=pe==="ImportDefaultSpecifier"?"default":ie.imported.name;if(!ot(ue,X))return;re=re.concat(X);let te=ue[X];te[at]&&(yield{node:ie,path:re,type:at,info:te[at]}),yield*this._iterateVariableReferences(s(this.globalScope,ie.local),re,te,!1);return}if(pe==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(s(this.globalScope,ie.local),re,ue,!1);return}if(pe==="ExportSpecifier"){let X=ie.local.name;if(!ot(ue,X))return;re=re.concat(X);let te=ue[X];te[at]&&(yield{node:ie,path:re,type:at,info:te[at]})}}}Ke.READ=at,Ke.CALL=kt,Ke.CONSTRUCT=Ot,Ke.ESM=It;function er(H,ie){return!(ie===1&&H==="default")}var Ie={CALL:kt,CONSTRUCT:Ot,ESM:It,findVariable:s,getFunctionHeadLocation:_,getFunctionNameWithKind:j,getInnermostScope:t,getPropertyName:me,getStaticValue:Se,getStringIfConstant:J,hasSideEffect:Me,isArrowToken:l,isClosingBraceToken:g,isClosingBracketToken:d,isClosingParenToken:h,isColonToken:c,isCommaToken:o,isCommentToken:b,isNotArrowToken:O,isNotClosingBraceToken:I,isNotClosingBracketToken:P,isNotClosingParenToken:A,isNotColonToken:k,isNotCommaToken:S,isNotCommentToken:F,isNotOpeningBraceToken:T,isNotOpeningBracketToken:w,isNotOpeningParenToken:E,isNotSemicolonToken:C,isOpeningBraceToken:m,isOpeningBracketToken:f,isOpeningParenToken:p,isParenthesized:st,isSemicolonToken:u,PatternMatcher:Ze,READ:at,ReferenceTracker:Ke};r.CALL=kt,r.CONSTRUCT=Ot,r.ESM=It,r.PatternMatcher=Ze,r.READ=at,r.ReferenceTracker=Ke,r.default=Ie,r.findVariable=s,r.getFunctionHeadLocation=_,r.getFunctionNameWithKind=j,r.getInnermostScope=t,r.getPropertyName=me,r.getStaticValue=Se,r.getStringIfConstant=J,r.hasSideEffect=Me,r.isArrowToken=l,r.isClosingBraceToken=g,r.isClosingBracketToken=d,r.isClosingParenToken=h,r.isColonToken=c,r.isCommaToken=o,r.isCommentToken=b,r.isNotArrowToken=O,r.isNotClosingBraceToken=I,r.isNotClosingBracketToken=P,r.isNotClosingParenToken=A,r.isNotColonToken=k,r.isNotCommaToken=S,r.isNotCommentToken=F,r.isNotOpeningBraceToken=T,r.isNotOpeningBracketToken=w,r.isNotOpeningParenToken=E,r.isNotSemicolonToken=C,r.isOpeningBraceToken=m,r.isOpeningBracketToken=f,r.isOpeningParenToken=p,r.isParenthesized=st,r.isSemicolonToken=u}(sm)),sm}var im,UP;function zo(){return UP||(UP=1,im=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.")}}),im}var $o={},VP;function Xo(){return VP||(VP=1,$o.search=function(e,t){for(let s=0,n=e.length-1;s<=n;){let i=(s+n)/2|0,l=e[i].range[0];if(t<=l){if(i===s)return i;n=i}else s=i+1}return e.length},$o.getFirstIndex=function(e,t,s){if(s in t)return t[s];if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[0]>=s?n:n+1:e.length}return 0},$o.getLastIndex=function(e,t,s){if(s in t)return t[s]-1;if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[1]>s?n-1:n:e.length-1}return e.length-1}),$o}var am,WP;function k4(){if(WP)return am;WP=1;let r=zo(),e=Xo();return am=class extends r{constructor(s,n,i,a,l){super(),this.tokens=s,this.comments=n,this.tokenIndex=e.getLastIndex(s,i,l),this.commentIndex=e.search(n,l)-1,this.border=a}moveNext(){let s=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,n=this.commentIndex>=0?this.comments[this.commentIndex]:null;return s&&(!n||s.range[1]>n.range[1])?(this.current=s,this.tokenIndex-=1):n?(this.current=n,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},am}var om,ZP;function A4(){if(ZP)return om;ZP=1;let r=zo(),{getLastIndex:e,getFirstIndex:t}=Xo();return om=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.index=e(n,a,o),this.indexEnd=t(n,a,l)}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}},om}var lm,zP;function FO(){if(zP)return lm;zP=1;let r=zo();return lm=class extends r{constructor(t){super(),this.cursor=t}moveNext(){let t=this.cursor.moveNext();return this.current=this.cursor.current,t}},lm}var um,XP;function P4(){if(XP)return um;XP=1;let r=FO();return um=class extends r{constructor(t,s){super(t),this.predicate=s}moveNext(){let t=this.predicate;for(;super.moveNext();)if(t(this.current))return!0;return!1}},um}var cm,GP;function T4(){if(GP)return cm;GP=1;let r=zo(),{getFirstIndex:e,search:t}=Xo();return cm=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.comments=i,this.tokenIndex=e(n,a,l),this.commentIndex=t(i,l),this.border=o}moveNext(){let n=this.tokenIndex0?(this.count-=1,super.moveNext()):!1}},pm}var hm,KP;function _4(){if(KP)return hm;KP=1;let r=FO();return hm=class extends r{constructor(t,s){super(t),this.count=s}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}},hm}var dm,JP;function I4(){if(JP)return dm;JP=1;let r=k4(),e=A4(),t=P4(),s=T4(),n=RO(),i=D4(),a=_4();class l{constructor(u,c){this.TokenCursor=u,this.TokenCommentCursor=c}createBaseCursor(u,c,p,h,f,d){let m=d?this.TokenCommentCursor:this.TokenCursor;return new m(u,c,p,h,f)}createCursor(u,c,p,h,f,d,m,g,b){let O=this.createBaseCursor(u,c,p,h,f,d);return m&&(O=new t(O,m)),g>=1&&(O=new a(O,g)),b>=0&&(O=new i(O,b)),O}}return dm={forward:new l(n,s),backward:new l(e,r)},dm}var mm,eT;function F4(){if(eT)return mm;eT=1;let r=RO();return mm=class extends r{constructor(t,s,n,i,a,l,o){super(t,s,n,i,a),this.index=Math.max(0,this.index-l),this.indexEnd=Math.min(t.length-1,this.indexEnd+o)}},mm}var gm,tT;function R4(){if(tT)return gm;tT=1;let r=Zo,{isCommentToken:e}=mr(),t=I4(),s=RO(),n=F4(),i=Xo(),a=Symbol("tokens"),l=Symbol("comments"),o=Symbol("indexMap");function u(d,m){let g=Object.create(null),b=0,O=0,S,C;for(;b=0,"options.skip should be zero or a positive integer."),r(!A||typeof A=="function","options.filter should be a function."),d.createCursor(m,g,b,O,S,k,A,E,-1)}function p(d,m,g,b,O,S,C){let k=!1,E=0,A=!1,w=null;return typeof C=="number"?(E=C|0,A=!0):typeof C=="function"?w=C:C&&(k=!!C.includeComments,E=C.count|0,A=typeof C.count=="number",w=C.filter||null),r(E>=0,"options.count should be zero or a positive integer."),r(!w||typeof w=="function","options.filter should be a function."),d.createCursor(m,g,b,O,S,k,w,0,A?E:-1)}function h(d,m,g,b,O,S,C){return typeof S>"u"&&typeof C>"u"?new s(d,m,g,b,O):typeof S=="number"||typeof S>"u"?new n(d,m,g,b,O,S|0,C|0):p(t.forward,d,m,g,b,O,S)}function f(d){let m=[],g=d.getOneToken();for(;g&&e(g);)m.push(g),g=d.getOneToken();return m}return gm=class{constructor(m,g){this[a]=m,this[l]=g,this[o]=u(m,g)}getTokenByRangeStart(m,g){let b=g&&g.includeComments,O=t.forward.createBaseCursor(this[a],this[l],this[o],m,-1,b).getOneToken();return O&&O.range[0]===m?O:null}getFirstToken(m,g){return c(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getLastToken(m,g){return c(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getTokenBefore(m,g){return c(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getOneToken()}getTokenAfter(m,g){return c(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getOneToken()}getFirstTokenBetween(m,g,b){return c(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],b).getOneToken()}getLastTokenBetween(m,g,b){return c(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],b).getOneToken()}getTokenOrCommentBefore(m,g){return this.getTokenBefore(m,{includeComments:!0,skip:g})}getTokenOrCommentAfter(m,g){return this.getTokenAfter(m,{includeComments:!0,skip:g})}getFirstTokens(m,g){return p(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens()}getLastTokens(m,g){return p(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens().reverse()}getTokensBefore(m,g){return p(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getAllTokens().reverse()}getTokensAfter(m,g){return p(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getAllTokens()}getFirstTokensBetween(m,g,b){return p(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],b).getAllTokens()}getLastTokensBetween(m,g,b){return p(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],b).getAllTokens().reverse()}getTokens(m,g,b){return h(this[a],this[l],this[o],m.range[0],m.range[1],g,b).getAllTokens()}getTokensBetween(m,g,b){return h(this[a],this[l],this[o],m.range[1],g.range[0],b,b).getAllTokens()}commentsExistBetween(m,g){let b=i.search(this[l],m.range[1]);return b=0&&l.nodes[o]===t(s,"enter")?l.nodes[o]=t(s,void 0):l.nodes.push(t(s,"exit"))}else l.nodes.push(t(s,"enter"))}r([`${n.currentSegments.map(e).join(",")})`,`${s.type}${i?":exit":""}`].join(" "))}:r,dumpDot:r.enabled?function(s){let n=` +`+y),h.push(g+"m+"+r.exports.humanize(this.diff)+"\x1B[0m")}else h[0]=a()+f+" "+h[0]}function a(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function l(...h){return Bt.stderr.write(s.format(...h)+` +`)}function o(h){h?Bt.env.DEBUG=h:delete Bt.env.DEBUG}function u(){return Bt.env.DEBUG}function c(h){h.inspectOpts={};let f=Object.keys(e.inspectOpts);for(let d=0;df.trim()).join(" ")},p.O=function(h){return this.inspectOpts.colors=this.useColors,s.inspect(h,this.inspectOpts)}}(ec,ec.exports)),ec.exports}var LP;function bi(){return LP||(LP=1,typeof Bt>"u"||Bt.type==="renderer"||Bt.browser===!0||Bt.__nwjs?Ku.exports=x4():Ku.exports=S4()),Ku.exports}var tm,$P;function DO(){if($P)return tm;$P=1;let r=wO(),e=bi()("eslint:traverser");function t(){}function s(a){return a!==null&&typeof a=="object"&&typeof a.type=="string"}function n(a,l){let o=a[l.type];return o||(o=r.getKeys(l),e('Unknown node type "%s": Estimated visitor keys %j',l.type,o)),o}class i{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(l,o){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=o.visitorKeys||r.KEYS,this._enter=o.enter||t,this._leave=o.leave||t,this._traverse(l,null)}_traverse(l,o){if(s(l)){if(this._current=l,this._skipped=!1,this._enter(l,o),!this._skipped&&!this._broken){let u=n(this._visitorKeys,l);if(u.length>=1){this._parents.push(l);for(let c=0;c")}function o(G){return a(G,",")}function u(G){return a(G,";")}function c(G){return a(G,":")}function p(G){return a(G,"(")}function h(G){return a(G,")")}function f(G){return a(G,"[")}function d(G){return a(G,"]")}function m(G){return a(G,"{")}function g(G){return a(G,"}")}function y(G){return["Block","Line","Shebang"].includes(G.type)}let b=i(l),v=i(o),S=i(u),C=i(c),O=i(p),w=i(h),E=i(f),k=i(d),A=i(m),D=i(g),_=i(y);function B(G,ne){return G.id?ne.getTokenAfter(G.id,p):ne.getFirstToken(G,p)}function T(G,ne){let ee=G.parent,oe=null,ce=null;if(G.type==="ArrowFunctionExpression"){let Z=ne.getTokenBefore(G.body,l);oe=Z.loc.start,ce=Z.loc.end}else ee.type==="Property"||ee.type==="MethodDefinition"||ee.type==="PropertyDefinition"?(oe=ee.loc.start,ce=B(G,ne).loc.start):(oe=G.loc.start,ce=B(G,ne).loc.start);return{start:{...oe},end:{...ce}}}let F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Jr<"u"?Jr:{},j=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"])),Q=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(G=>Math[G]).filter(G=>typeof G=="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(G=>typeof G=="function")),I=new Set([Object.freeze,Object.preventExtensions,Object.seal]);function N(G,ne){let ee=G;for(;(typeof ee=="object"||typeof ee=="function")&&ee!==null;){let oe=Object.getOwnPropertyDescriptor(ee,ne);if(oe)return oe;ee=Object.getPrototypeOf(ee)}return null}function R(G,ne){let ee=N(G,ne);return ee!=null&&ee.get!=null}function U(G,ne){let ee=[];for(let oe=0;oe":return{value:ee.value>oe.value};case">=":return{value:ee.value>=oe.value};case"<<":return{value:ee.value<>":return{value:ee.value>>oe.value};case">>>":return{value:ee.value>>>oe.value};case"+":return{value:ee.value+oe.value};case"-":return{value:ee.value-oe.value};case"*":return{value:ee.value*oe.value};case"/":return{value:ee.value/oe.value};case"%":return{value:ee.value%oe.value};case"**":return{value:ee.value**oe.value};case"|":return{value:ee.value|oe.value};case"^":return{value:ee.value^oe.value};case"&":return{value:ee.value&oe.value}}return null},CallExpression(G,ne){let ee=G.callee,oe=U(G.arguments,ne);if(oe!=null)if(ee.type==="MemberExpression"){if(ee.property.type==="PrivateIdentifier")return null;let ce=ae(ee.object,ne);if(ce!=null){if(ce.value==null&&(ce.optional||G.optional))return{value:void 0,optional:!0};let Z=se(ee,ne);if(Z!=null){let J=ce.value,ie=Z.value;if(Q.has(J[ie]))return{value:J[ie](...oe)};if(I.has(J[ie]))return{value:oe[0]}}}}else{let ce=ae(ee,ne);if(ce!=null){if(ce.value==null&&G.optional)return{value:void 0,optional:!0};let Z=ce.value;if(Q.has(Z))return{value:Z(...oe)};if(I.has(Z))return{value:oe[0]}}}return null},ConditionalExpression(G,ne){let ee=ae(G.test,ne);return ee!=null?ee.value?ae(G.consequent,ne):ae(G.alternate,ne):null},ExpressionStatement(G,ne){return ae(G.expression,ne)},Identifier(G,ne){if(ne!=null){let ee=s(ne,G);if(ee!=null&&ee.defs.length===0&&j.has(ee.name)&&ee.name in F)return{value:F[ee.name]};if(ee!=null&&ee.defs.length===1){let oe=ee.defs[0];if(oe.parent&&oe.parent.kind==="const"&&oe.node.id.type==="Identifier")return ae(oe.node.init,ne)}}return null},Literal(G){return(G.regex!=null||G.bigint!=null)&&G.value==null?null:{value:G.value}},LogicalExpression(G,ne){let ee=ae(G.left,ne);if(ee!=null){if(G.operator==="||"&&ee.value||G.operator==="&&"&&!ee.value||G.operator==="??"&&ee.value!=null)return ee;let oe=ae(G.right,ne);if(oe!=null)return oe}return null},MemberExpression(G,ne){if(G.property.type==="PrivateIdentifier")return null;let ee=ae(G.object,ne);if(ee!=null){if(ee.value==null&&(ee.optional||G.optional))return{value:void 0,optional:!0};let oe=se(G,ne);if(oe!=null&&!R(ee.value,oe.value))return{value:ee.value[oe.value]}}return null},ChainExpression(G,ne){let ee=ae(G.expression,ne);return ee!=null?{value:ee.value}:null},NewExpression(G,ne){let ee=ae(G.callee,ne),oe=U(G.arguments,ne);if(ee!=null&&oe!=null){let ce=ee.value;if(Q.has(ce))return{value:new ce(...oe)}}return null},ObjectExpression(G,ne){let ee={};for(let oe of G.properties)if(oe.type==="Property"){if(oe.kind!=="init")return null;let ce=se(oe,ne),Z=ae(oe.value,ne);if(ce==null||Z==null)return null;ee[ce.value]=Z.value}else if(oe.type==="SpreadElement"||oe.type==="ExperimentalSpreadProperty"){let ce=ae(oe.argument,ne);if(ce==null)return null;Object.assign(ee,ce.value)}else return null;return{value:ee}},SequenceExpression(G,ne){let ee=G.expressions[G.expressions.length-1];return ae(ee,ne)},TaggedTemplateExpression(G,ne){let ee=ae(G.tag,ne),oe=U(G.quasi.expressions,ne);if(ee!=null&&oe!=null){let ce=ee.value,Z=G.quasi.quasis.map(J=>J.value.cooked);if(Z.raw=G.quasi.quasis.map(J=>J.value.raw),ce===String.raw)return{value:ce(Z,...oe)}}return null},TemplateLiteral(G,ne){let ee=U(G.expressions,ne);if(ee!=null){let oe=G.quasis[0].value.cooked;for(let ce=0;ce",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),K=Object.freeze(new Set(["-","+","!","~"]));function le(G){return G!==null&&typeof G=="object"&&typeof G.type=="string"}let xe=Object.freeze(Object.assign(Object.create(null),{$visit(G,ne,ee){let{type:oe}=G;return typeof this[oe]=="function"?this[oe](G,ne,ee):this.$visitChildren(G,ne,ee)},$visitChildren(G,ne,ee){let{type:oe}=G;for(let ce of ee[oe]||e.getKeys(G)){let Z=G[ce];if(Array.isArray(Z)){for(let J of Z)if(le(J)&&this.$visit(J,ne,ee))return!0}else if(le(Z)&&this.$visit(Z,ne,ee))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(G,ne,ee){return ne.considerImplicitTypeConversion&&pe.has(G.operator)&&(G.left.type!=="Literal"||G.right.type!=="Literal")?!0:this.$visitChildren(G,ne,ee)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(G,ne,ee){return ne.considerGetters||ne.considerImplicitTypeConversion&&G.computed&&G.property.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},MethodDefinition(G,ne,ee){return ne.considerImplicitTypeConversion&&G.computed&&G.key.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},NewExpression(){return!0},Property(G,ne,ee){return ne.considerImplicitTypeConversion&&G.computed&&G.key.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},PropertyDefinition(G,ne,ee){return ne.considerImplicitTypeConversion&&G.computed&&G.key.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},UnaryExpression(G,ne,ee){return G.operator==="delete"||ne.considerImplicitTypeConversion&&K.has(G.operator)&&G.argument.type!=="Literal"?!0:this.$visitChildren(G,ne,ee)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function Le(G,ne,{considerGetters:ee=!1,considerImplicitTypeConversion:oe=!1}={}){return xe.$visit(G,{considerGetters:ee,considerImplicitTypeConversion:oe},ne.visitorKeys||e.KEYS)}function qe(G,ne){let ee=G.parent;switch(ee.type){case"CallExpression":case"NewExpression":return ee.arguments.length===1&&ee.arguments[0]===G?ne.getTokenAfter(ee.callee,p):null;case"DoWhileStatement":return ee.test===G?ne.getTokenAfter(ee.body,p):null;case"IfStatement":case"WhileStatement":return ee.test===G?ne.getFirstToken(ee,1):null;case"ImportExpression":return ee.source===G?ne.getFirstToken(ee,1):null;case"SwitchStatement":return ee.discriminant===G?ne.getFirstToken(ee,1):null;case"WithStatement":return ee.object===G?ne.getFirstToken(ee,1):null;default:return null}}function rt(G,ne,ee){let oe,ce,Z,J,ie;if(typeof G=="number"){if(oe=G|0,ce=ne,Z=ee,!(oe>=1))throw new TypeError("'times' should be a positive integer.")}else oe=1,ce=G,Z=ne;if(ce==null||ce.parent==null||ce.parent.type==="CatchClause"&&ce.parent.param===ce)return!1;J=ie=ce;do J=Z.getTokenBefore(J),ie=Z.getTokenAfter(ie);while(J!=null&&ie!=null&&p(J)&&h(ie)&&J!==qe(ce,Z)&&--oe>0);return oe===0}let ht=/\$(?:[$&`']|[1-9][0-9]?)/gu,pt=new WeakMap;function Et(G,ne){let ee=!1;for(let oe=ne-1;oe>=0&&G.charCodeAt(oe)===92;--oe)ee=!ee;return ee}function X(G,ne,ee){let oe=[],ce=0,Z=null;function J(ie){switch(ie){case"$$":return"$";case"$&":return Z[0];case"$`":return ne.slice(0,Z.index);case"$'":return ne.slice(Z.index+Z[0].length);default:{let de=ie.slice(1);return de in Z?Z[de]:ie}}}for(Z of G.execAll(ne))oe.push(ne.slice(ce,Z.index)),oe.push(ee.replace(ht,J)),ce=Z.index+Z[0].length;return oe.push(ne.slice(ce)),oe.join("")}function we(G,ne,ee){let oe=[],ce=0;for(let Z of G.execAll(ne))oe.push(ne.slice(ce,Z.index)),oe.push(String(ee(...Z,Z.index,Z.input))),ce=Z.index+Z[0].length;return oe.push(ne.slice(ce)),oe.join("")}class Ve{constructor(ne,{escaped:ee=!1}={}){if(!(ne instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!ne.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");pt.set(this,{pattern:new RegExp(ne.source,ne.flags),escaped:!!ee})}*execAll(ne){let{pattern:ee,escaped:oe}=pt.get(this),ce=null,Z=0;for(ee.lastIndex=0;(ce=ee.exec(ne))!=null;)(oe||!Et(ne,ce.index))&&(Z=ee.lastIndex,yield ce,ee.lastIndex=Z)}test(ne){return!this.execAll(ne).next().done}[Symbol.replace](ne,ee){return typeof ee=="function"?we(this,String(ne),ee):X(this,String(ne),String(ee))}}let et=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,it=Function.call.bind(Object.hasOwnProperty),st=Symbol("read"),Ct=Symbol("call"),bt=Symbol("construct"),Dt=Symbol("esm"),_t={require:{[Ct]:!0}};function W(G){return G==null||G.defs.length!==0||G.references.some(ne=>ne.isWrite())}function vt(G){let ne=G.parent;switch(ne&&ne.type){case"ConditionalExpression":return ne.consequent===G||ne.alternate===G;case"LogicalExpression":return!0;case"SequenceExpression":return ne.expressions[ne.expressions.length-1]===G;case"ChainExpression":return!0;default:return!1}}class Ye{constructor(ne,{mode:ee="strict",globalObjectNames:oe=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=ne,this.mode=ee,this.globalObjectNames=oe.slice(0)}*iterateGlobalReferences(ne){for(let ee of Object.keys(ne)){let oe=ne[ee],ce=[ee],Z=this.globalScope.set.get(ee);W(Z)||(yield*this._iterateVariableReferences(Z,ce,oe,!0))}for(let ee of this.globalObjectNames){let oe=[],ce=this.globalScope.set.get(ee);W(ce)||(yield*this._iterateVariableReferences(ce,oe,ne,!1))}}*iterateCjsReferences(ne){for(let{node:ee}of this.iterateGlobalReferences(_t)){let oe=H(ee.arguments[0]);if(oe==null||!it(ne,oe))continue;let ce=ne[oe],Z=[oe];ce[st]&&(yield{node:ee,path:Z,type:st,info:ce[st]}),yield*this._iteratePropertyReferences(ee,Z,ce)}}*iterateEsmReferences(ne){let ee=this.globalScope.block;for(let oe of ee.body){if(!et.test(oe.type)||oe.source==null)continue;let ce=oe.source.value;if(!it(ne,ce))continue;let Z=ne[ce],J=[ce];if(Z[st]&&(yield{node:oe,path:J,type:st,info:Z[st]}),oe.type==="ExportAllDeclaration")for(let ie of Object.keys(Z)){let de=Z[ie];de[st]&&(yield{node:oe,path:J.concat(ie),type:st,info:de[st]})}else for(let ie of oe.specifiers){let de=it(Z,Dt),Ce=this._iterateImportReferences(ie,J,de?Z:this.mode==="legacy"?{default:Z,...Z}:{default:Z});if(de)yield*Ce;else for(let L of Ce)L.path=L.path.filter(Kt),(L.path.length>=2||L.type!==st)&&(yield L)}}}*_iterateVariableReferences(ne,ee,oe,ce){if(!this.variableStack.includes(ne)){this.variableStack.push(ne);try{for(let Z of ne.references){if(!Z.isRead())continue;let J=Z.identifier;ce&&oe[st]&&(yield{node:J,path:ee,type:st,info:oe[st]}),yield*this._iteratePropertyReferences(J,ee,oe)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(ne,ee,oe){let ce=ne;for(;vt(ce);)ce=ce.parent;let Z=ce.parent;if(Z.type==="MemberExpression"){if(Z.object===ce){let J=he(Z);if(J==null||!it(oe,J))return;ee=ee.concat(J);let ie=oe[J];ie[st]&&(yield{node:Z,path:ee,type:st,info:ie[st]}),yield*this._iteratePropertyReferences(Z,ee,ie)}return}if(Z.type==="CallExpression"){Z.callee===ce&&oe[Ct]&&(yield{node:Z,path:ee,type:Ct,info:oe[Ct]});return}if(Z.type==="NewExpression"){Z.callee===ce&&oe[bt]&&(yield{node:Z,path:ee,type:bt,info:oe[bt]});return}if(Z.type==="AssignmentExpression"){Z.right===ce&&(yield*this._iterateLhsReferences(Z.left,ee,oe),yield*this._iteratePropertyReferences(Z,ee,oe));return}if(Z.type==="AssignmentPattern"){Z.right===ce&&(yield*this._iterateLhsReferences(Z.left,ee,oe));return}Z.type==="VariableDeclarator"&&Z.init===ce&&(yield*this._iterateLhsReferences(Z.id,ee,oe))}*_iterateLhsReferences(ne,ee,oe){if(ne.type==="Identifier"){let ce=s(this.globalScope,ne);ce!=null&&(yield*this._iterateVariableReferences(ce,ee,oe,!1));return}if(ne.type==="ObjectPattern"){for(let ce of ne.properties){let Z=he(ce);if(Z==null||!it(oe,Z))continue;let J=ee.concat(Z),ie=oe[Z];ie[st]&&(yield{node:ce,path:J,type:st,info:ie[st]}),yield*this._iterateLhsReferences(ce.value,J,ie)}return}ne.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(ne.left,ee,oe))}*_iterateImportReferences(ne,ee,oe){let ce=ne.type;if(ce==="ImportSpecifier"||ce==="ImportDefaultSpecifier"){let Z=ce==="ImportDefaultSpecifier"?"default":ne.imported.name;if(!it(oe,Z))return;ee=ee.concat(Z);let J=oe[Z];J[st]&&(yield{node:ne,path:ee,type:st,info:J[st]}),yield*this._iterateVariableReferences(s(this.globalScope,ne.local),ee,J,!1);return}if(ce==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(s(this.globalScope,ne.local),ee,oe,!1);return}if(ce==="ExportSpecifier"){let Z=ne.local.name;if(!it(oe,Z))return;ee=ee.concat(Z);let J=oe[Z];J[st]&&(yield{node:ne,path:ee,type:st,info:J[st]})}}}Ye.READ=st,Ye.CALL=Ct,Ye.CONSTRUCT=bt,Ye.ESM=Dt;function Kt(G,ne){return!(ne===1&&G==="default")}var De={CALL:Ct,CONSTRUCT:bt,ESM:Dt,findVariable:s,getFunctionHeadLocation:T,getFunctionNameWithKind:$,getInnermostScope:t,getPropertyName:he,getStaticValue:ve,getStringIfConstant:H,hasSideEffect:Le,isArrowToken:l,isClosingBraceToken:g,isClosingBracketToken:d,isClosingParenToken:h,isColonToken:c,isCommaToken:o,isCommentToken:y,isNotArrowToken:b,isNotClosingBraceToken:D,isNotClosingBracketToken:k,isNotClosingParenToken:w,isNotColonToken:C,isNotCommaToken:v,isNotCommentToken:_,isNotOpeningBraceToken:A,isNotOpeningBracketToken:E,isNotOpeningParenToken:O,isNotSemicolonToken:S,isOpeningBraceToken:m,isOpeningBracketToken:f,isOpeningParenToken:p,isParenthesized:rt,isSemicolonToken:u,PatternMatcher:Ve,READ:st,ReferenceTracker:Ye};r.CALL=Ct,r.CONSTRUCT=bt,r.ESM=Dt,r.PatternMatcher=Ve,r.READ=st,r.ReferenceTracker=Ye,r.default=De,r.findVariable=s,r.getFunctionHeadLocation=T,r.getFunctionNameWithKind=$,r.getInnermostScope=t,r.getPropertyName=he,r.getStaticValue=ve,r.getStringIfConstant=H,r.hasSideEffect=Le,r.isArrowToken=l,r.isClosingBraceToken=g,r.isClosingBracketToken=d,r.isClosingParenToken=h,r.isColonToken=c,r.isCommaToken=o,r.isCommentToken=y,r.isNotArrowToken=b,r.isNotClosingBraceToken=D,r.isNotClosingBracketToken=k,r.isNotClosingParenToken=w,r.isNotColonToken=C,r.isNotCommaToken=v,r.isNotCommentToken=_,r.isNotOpeningBraceToken=A,r.isNotOpeningBracketToken=E,r.isNotOpeningParenToken=O,r.isNotSemicolonToken=S,r.isOpeningBraceToken=m,r.isOpeningBracketToken=f,r.isOpeningParenToken=p,r.isParenthesized=rt,r.isSemicolonToken=u}(rm)),rm}var nm,qP;function Wo(){return qP||(qP=1,nm=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.")}}),nm}var No={},QP;function Zo(){return QP||(QP=1,No.search=function(e,t){for(let s=0,n=e.length-1;s<=n;){let i=(s+n)/2|0,l=e[i].range[0];if(t<=l){if(i===s)return i;n=i}else s=i+1}return e.length},No.getFirstIndex=function(e,t,s){if(s in t)return t[s];if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[0]>=s?n:n+1:e.length}return 0},No.getLastIndex=function(e,t,s){if(s in t)return t[s]-1;if(s-1 in t){let n=t[s-1],i=e[n];return i?i.range[1]>s?n-1:n:e.length-1}return e.length-1}),No}var sm,UP;function C4(){if(UP)return sm;UP=1;let r=Wo(),e=Zo();return sm=class extends r{constructor(s,n,i,a,l){super(),this.tokens=s,this.comments=n,this.tokenIndex=e.getLastIndex(s,i,l),this.commentIndex=e.search(n,l)-1,this.border=a}moveNext(){let s=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,n=this.commentIndex>=0?this.comments[this.commentIndex]:null;return s&&(!n||s.range[1]>n.range[1])?(this.current=s,this.tokenIndex-=1):n?(this.current=n,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},sm}var im,VP;function w4(){if(VP)return im;VP=1;let r=Wo(),{getLastIndex:e,getFirstIndex:t}=Zo();return im=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.index=e(n,a,o),this.indexEnd=t(n,a,l)}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}},im}var am,WP;function _O(){if(WP)return am;WP=1;let r=Wo();return am=class extends r{constructor(t){super(),this.cursor=t}moveNext(){let t=this.cursor.moveNext();return this.current=this.cursor.current,t}},am}var om,ZP;function k4(){if(ZP)return om;ZP=1;let r=_O();return om=class extends r{constructor(t,s){super(t),this.predicate=s}moveNext(){let t=this.predicate;for(;super.moveNext();)if(t(this.current))return!0;return!1}},om}var lm,zP;function A4(){if(zP)return lm;zP=1;let r=Wo(),{getFirstIndex:e,search:t}=Zo();return lm=class extends r{constructor(n,i,a,l,o){super(),this.tokens=n,this.comments=i,this.tokenIndex=e(n,a,l),this.commentIndex=t(i,l),this.border=o}moveNext(){let n=this.tokenIndex0?(this.count-=1,super.moveNext()):!1}},cm}var fm,YP;function T4(){if(YP)return fm;YP=1;let r=_O();return fm=class extends r{constructor(t,s){super(t),this.count=s}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}},fm}var pm,HP;function D4(){if(HP)return pm;HP=1;let r=C4(),e=w4(),t=k4(),s=A4(),n=IO(),i=P4(),a=T4();class l{constructor(u,c){this.TokenCursor=u,this.TokenCommentCursor=c}createBaseCursor(u,c,p,h,f,d){let m=d?this.TokenCommentCursor:this.TokenCursor;return new m(u,c,p,h,f)}createCursor(u,c,p,h,f,d,m,g,y){let b=this.createBaseCursor(u,c,p,h,f,d);return m&&(b=new t(b,m)),g>=1&&(b=new a(b,g)),y>=0&&(b=new i(b,y)),b}}return pm={forward:new l(n,s),backward:new l(e,r)},pm}var hm,KP;function _4(){if(KP)return hm;KP=1;let r=IO();return hm=class extends r{constructor(t,s,n,i,a,l,o){super(t,s,n,i,a),this.index=Math.max(0,this.index-l),this.indexEnd=Math.min(t.length-1,this.indexEnd+o)}},hm}var dm,JP;function I4(){if(JP)return dm;JP=1;let r=Vo,{isCommentToken:e}=hr(),t=D4(),s=IO(),n=_4(),i=Zo(),a=Symbol("tokens"),l=Symbol("comments"),o=Symbol("indexMap");function u(d,m){let g=Object.create(null),y=0,b=0,v,S;for(;y=0,"options.skip should be zero or a positive integer."),r(!w||typeof w=="function","options.filter should be a function."),d.createCursor(m,g,y,b,v,C,w,O,-1)}function p(d,m,g,y,b,v,S){let C=!1,O=0,w=!1,E=null;return typeof S=="number"?(O=S|0,w=!0):typeof S=="function"?E=S:S&&(C=!!S.includeComments,O=S.count|0,w=typeof S.count=="number",E=S.filter||null),r(O>=0,"options.count should be zero or a positive integer."),r(!E||typeof E=="function","options.filter should be a function."),d.createCursor(m,g,y,b,v,C,E,0,w?O:-1)}function h(d,m,g,y,b,v,S){return typeof v>"u"&&typeof S>"u"?new s(d,m,g,y,b):typeof v=="number"||typeof v>"u"?new n(d,m,g,y,b,v|0,S|0):p(t.forward,d,m,g,y,b,v)}function f(d){let m=[],g=d.getOneToken();for(;g&&e(g);)m.push(g),g=d.getOneToken();return m}return dm=class{constructor(m,g){this[a]=m,this[l]=g,this[o]=u(m,g)}getTokenByRangeStart(m,g){let y=g&&g.includeComments,b=t.forward.createBaseCursor(this[a],this[l],this[o],m,-1,y).getOneToken();return b&&b.range[0]===m?b:null}getFirstToken(m,g){return c(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getLastToken(m,g){return c(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getOneToken()}getTokenBefore(m,g){return c(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getOneToken()}getTokenAfter(m,g){return c(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getOneToken()}getFirstTokenBetween(m,g,y){return c(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],y).getOneToken()}getLastTokenBetween(m,g,y){return c(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],y).getOneToken()}getTokenOrCommentBefore(m,g){return this.getTokenBefore(m,{includeComments:!0,skip:g})}getTokenOrCommentAfter(m,g){return this.getTokenAfter(m,{includeComments:!0,skip:g})}getFirstTokens(m,g){return p(t.forward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens()}getLastTokens(m,g){return p(t.backward,this[a],this[l],this[o],m.range[0],m.range[1],g).getAllTokens().reverse()}getTokensBefore(m,g){return p(t.backward,this[a],this[l],this[o],-1,m.range[0],g).getAllTokens().reverse()}getTokensAfter(m,g){return p(t.forward,this[a],this[l],this[o],m.range[1],-1,g).getAllTokens()}getFirstTokensBetween(m,g,y){return p(t.forward,this[a],this[l],this[o],m.range[1],g.range[0],y).getAllTokens()}getLastTokensBetween(m,g,y){return p(t.backward,this[a],this[l],this[o],m.range[1],g.range[0],y).getAllTokens().reverse()}getTokens(m,g,y){return h(this[a],this[l],this[o],m.range[0],m.range[1],g,y).getAllTokens()}getTokensBetween(m,g,y){return h(this[a],this[l],this[o],m.range[1],g.range[0],y,y).getAllTokens()}commentsExistBetween(m,g){let y=i.search(this[l],m.range[1]);return y=0&&l.nodes[o]===t(s,"enter")?l.nodes[o]=t(s,void 0):l.nodes.push(t(s,"exit"))}else l.nodes.push(t(s,"enter"))}r([`${n.currentSegments.map(e).join(",")})`,`${s.type}${i?":exit":""}`].join(" "))}:r,dumpDot:r.enabled?function(s){let n=` digraph { node[shape=box,style="rounded,filled",fillcolor=white]; initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25]; @@ -64,92 +64,92 @@ initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.2 `,n+="}",r("DOT",n)}:r,makeDotArrows(s,n){let i=[[s.initialSegment,0]],a=n||Object.create(null),l=s.initialSegment.id,o=`initial->${s.initialSegment.id}`;for(;i.length>0;){let u=i.pop(),c=u[0],p=u[1];if(a[c.id]&&p===0)continue;a[c.id]=c;let h=c.allNextSegments[p];h&&(l===c.id?o+=`->${h.id}`:o+=`; ${c.id}->${h.id}`,l=h.id,i.unshift([c,1+p]),i.push([h,0]))}return s.returnedSegments.forEach(u=>{l===u.id?o+="->final":o+=`; ${u.id}->final`,l=null}),s.thrownSegments.forEach(u=>{l===u.id?o+="->thrown":o+=`; -${u.id}->thrown`,l=null}),`${o};`}},xm}var bm,sT;function BO(){if(sT)return bm;sT=1;let r=WB();function e(s){return s.reachable}class t{constructor(n,i,a){this.id=n,this.nextSegments=[],this.prevSegments=i.filter(e),this.allNextSegments=[],this.allPrevSegments=i,this.reachable=a,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),r.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(n){return this.internal.loopedPrevSegments.includes(n)}static newRoot(n){return new t(n,[],!0)}static newNext(n,i){return new t(n,t.flattenUnusedSegments(i),i.some(e))}static newUnreachable(n,i){let a=new t(n,t.flattenUnusedSegments(i),!1);return t.markUsed(a),a}static newDisconnected(n,i){return new t(n,[],i.some(e))}static markUsed(n){if(n.internal.used)return;n.internal.used=!0;let i;if(n.reachable)for(i=0;i=0?l:c.length+l,h=o>=0?o:c.length+o,f=[];for(let d=0;da.count;){let u=[];for(let c=0,p=Math.floor(o.length/2);c0&&l.some(t)}makeNext(l,o){return s(this,l,o,e.newNext)}makeUnreachable(l,o){return s(this,l,o,e.newUnreachable)}makeDisconnected(l,o){return s(this,l,o,e.newDisconnected)}add(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.push(n(this,l))}replaceHead(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.splice(-1,1,n(this,l))}addAll(l){r(l.count===this.count),this.segmentsList.push(...l.segmentsList)}clear(){this.segmentsList=[]}static newRoot(l){let o=new i(l,null,1);return o.add([e.newRoot(l.next())]),o}static newEmpty(l,o){return new i(l.idGenerator,l,(o?2:1)*l.count)}}return vm=i,vm}var Om,aT;function N4(){if(aT)return Om;aT=1;let r=BO(),e=B4();class t{constructor(w,P,T,I){this.upper=w,this.breakable=P,this.label=T,this.brokenForkContext=e.newEmpty(I)}}class s{constructor(w){this.upper=w,this.choiceContextCount=0}}class n{constructor(w,P,T,I){this.upper=w,this.kind=P,this.isForkingAsResult=T,this.trueForkContext=e.newEmpty(I),this.falseForkContext=e.newEmpty(I),this.nullishForkContext=e.newEmpty(I),this.processed=!1}}class i{constructor(w,P,T,I){this.upper=w,this.type=P,this.label=T,this.brokenForkContext=I.brokenForkContext}}class a extends i{constructor(w,P,T){super(w,"WhileStatement",P,T),this.test=void 0,this.continueDestSegments=null}}class l extends i{constructor(w,P,T,I){super(w,"DoWhileStatement",P,T),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(I)}}class o extends i{constructor(w,P,T){super(w,"ForStatement",P,T),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class u extends i{constructor(w,P,T){super(w,"ForInStatement",P,T),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class c extends i{constructor(w,P,T){super(w,"ForOfStatement",P,T),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class p{constructor(w,P){this.upper=w,this.hasCase=P,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class h{constructor(w,P,T){this.upper=w,this.hasFinalizer=P,this.position="try",this.returnedForkContext=P?e.newEmpty(T):null,this.thrownForkContext=e.newEmpty(T),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function f(A,w,P,T){for(let I=0;I=2&&r.markPrevSegmentAsLooped(B,_),A.notifyLooped(_,B)}}function k(A,w,P){w.processed||(w.trueForkContext.add(P),w.falseForkContext.add(P),w.nullishForkContext.add(P)),A.test!==!0&&A.brokenForkContext.addAll(w.falseForkContext),A.endOfTestSegments=w.trueForkContext.makeNext(0,-1)}class E{constructor(w,P){this.idGenerator=w,this.notifyLooped=P,this.forkContext=e.newRoot(w),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],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let T=this.finalSegments,I=this.returnedForkContext,F=this.thrownForkContext;I.add=f.bind(null,I,F,T),F.add=f.bind(null,F,I,T)}get headSegments(){return this.forkContext.head}get parentForkContext(){let w=this.forkContext;return w&&w.upper}pushForkContext(w){return this.forkContext=e.newEmpty(this.forkContext,w),this.forkContext}popForkContext(){let w=this.forkContext;return this.forkContext=w.upper,this.forkContext.replaceHead(w.makeNext(0,-1)),w}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(w,P){this.choiceContext=new n(this.choiceContext,w,P,this.forkContext)}popChoiceContext(){let w=this.choiceContext,P=this.forkContext,T=P.head;switch(this.choiceContext=w.upper,w.kind){case"&&":case"||":case"??":if(w.processed||(w.trueForkContext.add(T),w.falseForkContext.add(T),w.nullishForkContext.add(T)),w.isForkingAsResult){let F=this.choiceContext;return F.trueForkContext.addAll(w.trueForkContext),F.falseForkContext.addAll(w.falseForkContext),F.nullishForkContext.addAll(w.nullishForkContext),F.processed=!0,w}break;case"test":w.processed?(w.falseForkContext.clear(),w.falseForkContext.add(T)):(w.trueForkContext.clear(),w.trueForkContext.add(T));break;case"loop":return w;default:throw new Error("unreachable")}let I=w.trueForkContext;return I.addAll(w.falseForkContext),P.replaceHead(I.makeNext(0,-1)),w}makeLogicalRight(){let w=this.choiceContext,P=this.forkContext;if(w.processed){let T;switch(w.kind){case"&&":T=w.trueForkContext;break;case"||":T=w.falseForkContext;break;case"??":T=w.nullishForkContext;break;default:throw new Error("unreachable")}P.replaceHead(T.makeNext(0,-1)),T.clear(),w.processed=!1}else{switch(w.kind){case"&&":w.falseForkContext.add(P.head),w.nullishForkContext.add(P.head);break;case"||":w.trueForkContext.add(P.head);break;case"??":w.trueForkContext.add(P.head),w.falseForkContext.add(P.head);break;default:throw new Error("unreachable")}P.replaceHead(P.makeNext(-1,-1))}}makeIfConsequent(){let w=this.choiceContext,P=this.forkContext;w.processed||(w.trueForkContext.add(P.head),w.falseForkContext.add(P.head),w.nullishForkContext.add(P.head)),w.processed=!1,P.replaceHead(w.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let w=this.choiceContext,P=this.forkContext;w.trueForkContext.clear(),w.trueForkContext.add(P.head),w.processed=!0,P.replaceHead(w.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new s(this.chainContext)}popChainContext(){let w=this.chainContext;this.chainContext=w.upper;for(let P=w.choiceContextCount;P>0;--P)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(w,P){this.switchContext=new p(this.switchContext,w),this.pushBreakContext(!0,P)}popSwitchContext(){let w=this.switchContext;this.switchContext=w.upper;let P=this.forkContext,T=this.popBreakContext().brokenForkContext;if(w.forkCount===0){T.empty||(T.add(P.makeNext(-1,-1)),P.replaceHead(T.makeNext(0,-1)));return}let I=P.head;this.forkBypassPath();let F=P.head;T.add(I),w.lastIsDefault||(w.defaultBodySegments?(S(w.defaultSegments,w.defaultBodySegments),C(this,F,w.defaultBodySegments)):T.add(F));for(let L=0;L0&&w[0].reachable&&this.returnedForkContext.add(w)}}return Om=E,Om}var Sm,oT;function ZB(){if(oT)return Sm;oT=1;class r{constructor(t){this.prefix=String(t),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return Sm=r,Sm}var Em,lT;function L4(){if(lT)return Em;lT=1;let r=N4(),e=ZB();class t{constructor({id:n,origin:i,upper:a,onLooped:l}){this.id=n,this.origin=i,this.upper=a,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new r(new e(`${n}_`),l)}),a&&a.childCodePaths.push(this)}static getState(n){return n.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}traverseSegments(n,i){let a,l;typeof n=="function"?(l=n,a={}):(a=n||{},l=i);let o=a.first||this.internal.initialSegment,u=a.last,c,p,h,f=null,d=new Set,m=[[o,0]],g=new Set,b=!1,O={skip(){g.add(f)},break(){b=!0}};function S(k){return d.has(k)||f.isLoopedPrevSegment(k)}function C(k){return g.has(k)||f.isLoopedPrevSegment(k)}for(;m.length>0;){if(c=m.at(-1),f=c[0],p=c[1],p===0){if(d.has(f)){m.pop();continue}if(f!==o&&f.prevSegments.length>0&&!f.prevSegments.every(S)){m.pop();continue}if(d.add(f),g.size>0&&f.prevSegments.length>0&&f.prevSegments.every(C))g.add(f);else if(l.call(this,f,O),f===u&&O.skip(),b)break}h=f.nextSegments.length-1,p=1&&P.arguments[0]===E&&w.makeOptionalRight();break;case"MemberExpression":P.optional===!0&&P.property===E&&w.makeOptionalRight();break;case"LogicalExpression":P.right===E&&o(P.operator)&&w.makeLogicalRight();break;case"AssignmentExpression":P.right===E&&u(P.operator)&&w.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":P.consequent===E?w.makeIfConsequent():P.alternate===E&&w.makeIfAlternate();break;case"SwitchCase":P.consequent[0]===E&&w.makeSwitchCaseBody(!1,!P.test);break;case"TryStatement":P.handler===E?w.makeCatchBlock():P.finalizer===E&&w.makeFinallyBlock();break;case"WhileStatement":P.test===E?w.makeWhileTest(h(E)):(r(P.body===E),w.makeWhileBody());break;case"DoWhileStatement":P.body===E?w.makeDoWhileBody():(r(P.test===E),w.makeDoWhileTest(h(E)));break;case"ForStatement":P.test===E?w.makeForTest(h(E)):P.update===E?w.makeForUpdate():P.body===E&&w.makeForBody();break;case"ForInStatement":case"ForOfStatement":P.left===E?w.makeForInOfLeft():P.right===E?w.makeForInOfRight():(r(P.body===E),w.makeForInOfBody());break;case"AssignmentPattern":P.right===E&&(w.pushForkContext(),w.forkBypassPath(),w.forkPath());break}}function b(k,E){let A=k.codePath,w=A&&t.getState(A),P=E.parent;function T(I){A&&(d(k,E),i.dumpState(E,w,!1)),A=k.codePath=new t({id:k.idGenerator.next(),origin:I,upper:A,onLooped:k.onLooped}),w=t.getState(A),i.dump(`onCodePathStart ${A.id}`),k.emitter.emit("onCodePathStart",A,E)}switch(l(E)&&T("class-field-initializer"),E.type){case"Program":T("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":T("function");break;case"StaticBlock":T("class-static-block");break;case"ChainExpression":w.pushChainContext();break;case"CallExpression":E.optional===!0&&w.makeOptionalNode();break;case"MemberExpression":E.optional===!0&&w.makeOptionalNode();break;case"LogicalExpression":o(E.operator)&&w.pushChoiceContext(E.operator,p(E));break;case"AssignmentExpression":u(E.operator)&&w.pushChoiceContext(E.operator.slice(0,-1),p(E));break;case"ConditionalExpression":case"IfStatement":w.pushChoiceContext("test",!1);break;case"SwitchStatement":w.pushSwitchContext(E.cases.some(a),c(E));break;case"TryStatement":w.pushTryContext(!!E.finalizer);break;case"SwitchCase":P.discriminant!==E&&P.cases[0]!==E&&w.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":w.pushLoopContext(E.type,c(E));break;case"LabeledStatement":e.test(E.body.type)||w.pushBreakContext(!1,E.label.name);break}d(k,E),i.dumpState(E,w,!1)}function O(k,E){let A=k.codePath,w=t.getState(A),P=!1;switch(E.type){case"ChainExpression":w.popChainContext();break;case"IfStatement":case"ConditionalExpression":w.popChoiceContext();break;case"LogicalExpression":o(E.operator)&&w.popChoiceContext();break;case"AssignmentExpression":u(E.operator)&&w.popChoiceContext();break;case"SwitchStatement":w.popSwitchContext();break;case"SwitchCase":E.consequent.length===0&&w.makeSwitchCaseBody(!0,!E.test),w.forkContext.reachable&&(P=!0);break;case"TryStatement":w.popTryContext();break;case"BreakStatement":d(k,E),w.makeBreak(E.label&&E.label.name),P=!0;break;case"ContinueStatement":d(k,E),w.makeContinue(E.label&&E.label.name),P=!0;break;case"ReturnStatement":d(k,E),w.makeReturn(),P=!0;break;case"ThrowStatement":d(k,E),w.makeThrow(),P=!0;break;case"Identifier":f(E)&&(w.makeFirstThrowablePathInTryBlock(),P=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":w.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":w.popLoopContext();break;case"AssignmentPattern":w.popForkContext();break;case"LabeledStatement":e.test(E.body.type)||w.popBreakContext();break}P||d(k,E),i.dumpState(E,w,!0)}function S(k,E){function A(){let w=k.codePath;t.getState(w).makeFinal(),m(k,E),i.dump(`onCodePathEnd ${w.id}`),k.emitter.emit("onCodePathEnd",w,E),i.dumpDot(w),w=k.codePath=k.codePath.upper,w&&i.dumpState(E,t.getState(w),!0)}switch(E.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{A();break}case"CallExpression":E.optional===!0&&E.arguments.length===0&&t.getState(k.codePath).makeOptionalRight();break}l(E)&&A()}class C{constructor(E){this.original=E,this.emitter=E.emitter,this.codePath=null,this.idGenerator=new n("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(E){this.currentNode=E,E.parent&&g(this,E),b(this,E),this.original.enterNode(E),this.currentNode=null}leaveNode(E){this.currentNode=E,O(this,E),this.original.leaveNode(E),S(this,E),this.currentNode=null}onLooped(E,A){E.reachable&&A.reachable&&(i.dump(`onCodePathSegmentLoop ${E.id} -> ${A.id}`),this.emitter.emit("onCodePathSegmentLoop",E,A,this.currentNode))}}return Cm=C,Cm}var wm,cT;function zB(){return cT||(cT=1,wm=()=>{let r=Object.create(null);return Object.freeze({on(e,t){e in r?r[e].push(t):r[e]=[t]},emit(e,...t){e in r&&r[e].forEach(s=>s(...t))},eventNames(){return Object.keys(r)}})}),wm}var km={exports:{}},Am={exports:{}},Pm,fT;function M4(){if(fT)return Pm;fT=1;var r,e,t,s,n,i,a={}.toString;r=l(function(o,u){return o.apply(null,u)}),e=function(o){return l(o)},t=l(function(o,u,c){return o(c,u)}),s=function(o){return function(u){return function(){return o(u(u)).apply(null,arguments)}}(function(u){return function(){return o(u(u)).apply(null,arguments)}})},n=l(function(o,u,c,p){return o(u(c),u(p))}),i=function(o){var u;return u={},function(){var c,p,h,f,d,m;for(p=[],h=0,f=arguments.length;h1?function(){var f=h?h.concat():[];return c=this,f.push.apply(f,arguments)=0;--ge)ke=oe[ge],te=X(ke,te);return te}),E=ie(function(X,te){return k(X,te[te.length-1],te.slice(0,-1))}),A=ie(function(X,te){var oe,ge,ke;for(oe=[],ge=te;(ke=X(ge))!=null;)oe.push(ke[0]),ge=ke[1];return oe}),w=function(X){return[].concat.apply([],X)},P=ie(function(X,te){var oe;return[].concat.apply([],function(){var ge,ke,M,fe=[];for(ge=0,M=(ke=te).length;geoe?1:teX(ge)?1:X(oe)te&&(te=M);return te},j=function(X){var te,oe,ge,ke,M;for(te=X[0],oe=0,ke=(ge=X.slice(1)).length;oeX(oe)&&(oe=fe);return oe}),ee=ie(function(X,te){var oe,ge,ke,M,fe;for(oe=te[0],ge=0,M=(ke=te.slice(1)).length;ge1?function(){var M=ke?ke.concat():[];return oe=this,M.push.apply(M,arguments)>>0;++oe1?function(){var C=S?S.concat():[];return b=this,C.push.apply(C,arguments)thrown`,l=null}),`${o};`}},gm}var ym,rT;function FO(){if(rT)return ym;rT=1;let r=UB();function e(s){return s.reachable}class t{constructor(n,i,a){this.id=n,this.nextSegments=[],this.prevSegments=i.filter(e),this.allNextSegments=[],this.allPrevSegments=i,this.reachable=a,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),r.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(n){return this.internal.loopedPrevSegments.includes(n)}static newRoot(n){return new t(n,[],!0)}static newNext(n,i){return new t(n,t.flattenUnusedSegments(i),i.some(e))}static newUnreachable(n,i){let a=new t(n,t.flattenUnusedSegments(i),!1);return t.markUsed(a),a}static newDisconnected(n,i){return new t(n,[],i.some(e))}static markUsed(n){if(n.internal.used)return;n.internal.used=!0;let i;if(n.reachable)for(i=0;i=0?l:c.length+l,h=o>=0?o:c.length+o,f=[];for(let d=0;da.count;){let u=[];for(let c=0,p=Math.floor(o.length/2);c0&&l.some(t)}makeNext(l,o){return s(this,l,o,e.newNext)}makeUnreachable(l,o){return s(this,l,o,e.newUnreachable)}makeDisconnected(l,o){return s(this,l,o,e.newDisconnected)}add(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.push(n(this,l))}replaceHead(l){r(l.length>=this.count,`${l.length} >= ${this.count}`),this.segmentsList.splice(-1,1,n(this,l))}addAll(l){r(l.count===this.count),this.segmentsList.push(...l.segmentsList)}clear(){this.segmentsList=[]}static newRoot(l){let o=new i(l,null,1);return o.add([e.newRoot(l.next())]),o}static newEmpty(l,o){return new i(l.idGenerator,l,(o?2:1)*l.count)}}return xm=i,xm}var bm,sT;function R4(){if(sT)return bm;sT=1;let r=FO(),e=F4();class t{constructor(E,k,A,D){this.upper=E,this.breakable=k,this.label=A,this.brokenForkContext=e.newEmpty(D)}}class s{constructor(E){this.upper=E,this.choiceContextCount=0}}class n{constructor(E,k,A,D){this.upper=E,this.kind=k,this.isForkingAsResult=A,this.trueForkContext=e.newEmpty(D),this.falseForkContext=e.newEmpty(D),this.nullishForkContext=e.newEmpty(D),this.processed=!1}}class i{constructor(E,k,A,D){this.upper=E,this.type=k,this.label=A,this.brokenForkContext=D.brokenForkContext}}class a extends i{constructor(E,k,A){super(E,"WhileStatement",k,A),this.test=void 0,this.continueDestSegments=null}}class l extends i{constructor(E,k,A,D){super(E,"DoWhileStatement",k,A),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(D)}}class o extends i{constructor(E,k,A){super(E,"ForStatement",k,A),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class u extends i{constructor(E,k,A){super(E,"ForInStatement",k,A),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class c extends i{constructor(E,k,A){super(E,"ForOfStatement",k,A),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class p{constructor(E,k){this.upper=E,this.hasCase=k,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class h{constructor(E,k,A){this.upper=E,this.hasFinalizer=k,this.position="try",this.returnedForkContext=k?e.newEmpty(A):null,this.thrownForkContext=e.newEmpty(A),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function f(w,E,k,A){for(let D=0;D=2&&r.markPrevSegmentAsLooped(F,T),w.notifyLooped(T,F)}}function C(w,E,k){E.processed||(E.trueForkContext.add(k),E.falseForkContext.add(k),E.nullishForkContext.add(k)),w.test!==!0&&w.brokenForkContext.addAll(E.falseForkContext),w.endOfTestSegments=E.trueForkContext.makeNext(0,-1)}class O{constructor(E,k){this.idGenerator=E,this.notifyLooped=k,this.forkContext=e.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],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let A=this.finalSegments,D=this.returnedForkContext,_=this.thrownForkContext;D.add=f.bind(null,D,_,A),_.add=f.bind(null,_,D,A)}get headSegments(){return this.forkContext.head}get parentForkContext(){let E=this.forkContext;return E&&E.upper}pushForkContext(E){return this.forkContext=e.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,k){this.choiceContext=new n(this.choiceContext,E,k,this.forkContext)}popChoiceContext(){let E=this.choiceContext,k=this.forkContext,A=k.head;switch(this.choiceContext=E.upper,E.kind){case"&&":case"||":case"??":if(E.processed||(E.trueForkContext.add(A),E.falseForkContext.add(A),E.nullishForkContext.add(A)),E.isForkingAsResult){let _=this.choiceContext;return _.trueForkContext.addAll(E.trueForkContext),_.falseForkContext.addAll(E.falseForkContext),_.nullishForkContext.addAll(E.nullishForkContext),_.processed=!0,E}break;case"test":E.processed?(E.falseForkContext.clear(),E.falseForkContext.add(A)):(E.trueForkContext.clear(),E.trueForkContext.add(A));break;case"loop":return E;default:throw new Error("unreachable")}let D=E.trueForkContext;return D.addAll(E.falseForkContext),k.replaceHead(D.makeNext(0,-1)),E}makeLogicalRight(){let E=this.choiceContext,k=this.forkContext;if(E.processed){let A;switch(E.kind){case"&&":A=E.trueForkContext;break;case"||":A=E.falseForkContext;break;case"??":A=E.nullishForkContext;break;default:throw new Error("unreachable")}k.replaceHead(A.makeNext(0,-1)),A.clear(),E.processed=!1}else{switch(E.kind){case"&&":E.falseForkContext.add(k.head),E.nullishForkContext.add(k.head);break;case"||":E.trueForkContext.add(k.head);break;case"??":E.trueForkContext.add(k.head),E.falseForkContext.add(k.head);break;default:throw new Error("unreachable")}k.replaceHead(k.makeNext(-1,-1))}}makeIfConsequent(){let E=this.choiceContext,k=this.forkContext;E.processed||(E.trueForkContext.add(k.head),E.falseForkContext.add(k.head),E.nullishForkContext.add(k.head)),E.processed=!1,k.replaceHead(E.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let E=this.choiceContext,k=this.forkContext;E.trueForkContext.clear(),E.trueForkContext.add(k.head),E.processed=!0,k.replaceHead(E.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new s(this.chainContext)}popChainContext(){let E=this.chainContext;this.chainContext=E.upper;for(let k=E.choiceContextCount;k>0;--k)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(E,k){this.switchContext=new p(this.switchContext,E),this.pushBreakContext(!0,k)}popSwitchContext(){let E=this.switchContext;this.switchContext=E.upper;let k=this.forkContext,A=this.popBreakContext().brokenForkContext;if(E.forkCount===0){A.empty||(A.add(k.makeNext(-1,-1)),k.replaceHead(A.makeNext(0,-1)));return}let D=k.head;this.forkBypassPath();let _=k.head;A.add(D),E.lastIsDefault||(E.defaultBodySegments?(v(E.defaultSegments,E.defaultBodySegments),S(this,_,E.defaultBodySegments)):A.add(_));for(let B=0;B0&&E[0].reachable&&this.returnedForkContext.add(E)}}return bm=O,bm}var vm,iT;function VB(){if(iT)return vm;iT=1;class r{constructor(t){this.prefix=String(t),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return vm=r,vm}var Om,aT;function B4(){if(aT)return Om;aT=1;let r=R4(),e=VB();class t{constructor({id:n,origin:i,upper:a,onLooped:l}){this.id=n,this.origin=i,this.upper=a,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new r(new e(`${n}_`),l)}),a&&a.childCodePaths.push(this)}static getState(n){return n.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}traverseSegments(n,i){let a,l;typeof n=="function"?(l=n,a={}):(a=n||{},l=i);let o=a.first||this.internal.initialSegment,u=a.last,c,p,h,f=null,d=new Set,m=[[o,0]],g=new Set,y=!1,b={skip(){g.add(f)},break(){y=!0}};function v(C){return d.has(C)||f.isLoopedPrevSegment(C)}function S(C){return g.has(C)||f.isLoopedPrevSegment(C)}for(;m.length>0;){if(c=m.at(-1),f=c[0],p=c[1],p===0){if(d.has(f)){m.pop();continue}if(f!==o&&f.prevSegments.length>0&&!f.prevSegments.every(v)){m.pop();continue}if(d.add(f),g.size>0&&f.prevSegments.length>0&&f.prevSegments.every(S))g.add(f);else if(l.call(this,f,b),f===u&&b.skip(),y)break}h=f.nextSegments.length-1,p=1&&k.arguments[0]===O&&E.makeOptionalRight();break;case"MemberExpression":k.optional===!0&&k.property===O&&E.makeOptionalRight();break;case"LogicalExpression":k.right===O&&o(k.operator)&&E.makeLogicalRight();break;case"AssignmentExpression":k.right===O&&u(k.operator)&&E.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":k.consequent===O?E.makeIfConsequent():k.alternate===O&&E.makeIfAlternate();break;case"SwitchCase":k.consequent[0]===O&&E.makeSwitchCaseBody(!1,!k.test);break;case"TryStatement":k.handler===O?E.makeCatchBlock():k.finalizer===O&&E.makeFinallyBlock();break;case"WhileStatement":k.test===O?E.makeWhileTest(h(O)):(r(k.body===O),E.makeWhileBody());break;case"DoWhileStatement":k.body===O?E.makeDoWhileBody():(r(k.test===O),E.makeDoWhileTest(h(O)));break;case"ForStatement":k.test===O?E.makeForTest(h(O)):k.update===O?E.makeForUpdate():k.body===O&&E.makeForBody();break;case"ForInStatement":case"ForOfStatement":k.left===O?E.makeForInOfLeft():k.right===O?E.makeForInOfRight():(r(k.body===O),E.makeForInOfBody());break;case"AssignmentPattern":k.right===O&&(E.pushForkContext(),E.forkBypassPath(),E.forkPath());break}}function y(C,O){let w=C.codePath,E=w&&t.getState(w),k=O.parent;function A(D){w&&(d(C,O),i.dumpState(O,E,!1)),w=C.codePath=new t({id:C.idGenerator.next(),origin:D,upper:w,onLooped:C.onLooped}),E=t.getState(w),i.dump(`onCodePathStart ${w.id}`),C.emitter.emit("onCodePathStart",w,O)}switch(l(O)&&A("class-field-initializer"),O.type){case"Program":A("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":A("function");break;case"StaticBlock":A("class-static-block");break;case"ChainExpression":E.pushChainContext();break;case"CallExpression":O.optional===!0&&E.makeOptionalNode();break;case"MemberExpression":O.optional===!0&&E.makeOptionalNode();break;case"LogicalExpression":o(O.operator)&&E.pushChoiceContext(O.operator,p(O));break;case"AssignmentExpression":u(O.operator)&&E.pushChoiceContext(O.operator.slice(0,-1),p(O));break;case"ConditionalExpression":case"IfStatement":E.pushChoiceContext("test",!1);break;case"SwitchStatement":E.pushSwitchContext(O.cases.some(a),c(O));break;case"TryStatement":E.pushTryContext(!!O.finalizer);break;case"SwitchCase":k.discriminant!==O&&k.cases[0]!==O&&E.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":E.pushLoopContext(O.type,c(O));break;case"LabeledStatement":e.test(O.body.type)||E.pushBreakContext(!1,O.label.name);break}d(C,O),i.dumpState(O,E,!1)}function b(C,O){let w=C.codePath,E=t.getState(w),k=!1;switch(O.type){case"ChainExpression":E.popChainContext();break;case"IfStatement":case"ConditionalExpression":E.popChoiceContext();break;case"LogicalExpression":o(O.operator)&&E.popChoiceContext();break;case"AssignmentExpression":u(O.operator)&&E.popChoiceContext();break;case"SwitchStatement":E.popSwitchContext();break;case"SwitchCase":O.consequent.length===0&&E.makeSwitchCaseBody(!0,!O.test),E.forkContext.reachable&&(k=!0);break;case"TryStatement":E.popTryContext();break;case"BreakStatement":d(C,O),E.makeBreak(O.label&&O.label.name),k=!0;break;case"ContinueStatement":d(C,O),E.makeContinue(O.label&&O.label.name),k=!0;break;case"ReturnStatement":d(C,O),E.makeReturn(),k=!0;break;case"ThrowStatement":d(C,O),E.makeThrow(),k=!0;break;case"Identifier":f(O)&&(E.makeFirstThrowablePathInTryBlock(),k=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":E.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":E.popLoopContext();break;case"AssignmentPattern":E.popForkContext();break;case"LabeledStatement":e.test(O.body.type)||E.popBreakContext();break}k||d(C,O),i.dumpState(O,E,!0)}function v(C,O){function w(){let E=C.codePath;t.getState(E).makeFinal(),m(C,O),i.dump(`onCodePathEnd ${E.id}`),C.emitter.emit("onCodePathEnd",E,O),i.dumpDot(E),E=C.codePath=C.codePath.upper,E&&i.dumpState(O,t.getState(E),!0)}switch(O.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{w();break}case"CallExpression":O.optional===!0&&O.arguments.length===0&&t.getState(C.codePath).makeOptionalRight();break}l(O)&&w()}class S{constructor(O){this.original=O,this.emitter=O.emitter,this.codePath=null,this.idGenerator=new n("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(O){this.currentNode=O,O.parent&&g(this,O),y(this,O),this.original.enterNode(O),this.currentNode=null}leaveNode(O){this.currentNode=O,b(this,O),this.original.leaveNode(O),v(this,O),this.currentNode=null}onLooped(O,w){O.reachable&&w.reachable&&(i.dump(`onCodePathSegmentLoop ${O.id} -> ${w.id}`),this.emitter.emit("onCodePathSegmentLoop",O,w,this.currentNode))}}return Sm=S,Sm}var Em,lT;function WB(){return lT||(lT=1,Em=()=>{let r=Object.create(null);return Object.freeze({on(e,t){e in r?r[e].push(t):r[e]=[t]},emit(e,...t){e in r&&r[e].forEach(s=>s(...t))},eventNames(){return Object.keys(r)}})}),Em}var Cm={exports:{}},wm={exports:{}},km,uT;function L4(){if(uT)return km;uT=1;var r,e,t,s,n,i,a={}.toString;r=l(function(o,u){return o.apply(null,u)}),e=function(o){return l(o)},t=l(function(o,u,c){return o(c,u)}),s=function(o){return function(u){return function(){return o(u(u)).apply(null,arguments)}}(function(u){return function(){return o(u(u)).apply(null,arguments)}})},n=l(function(o,u,c,p){return o(u(c),u(p))}),i=function(o){var u;return u={},function(){var c,p,h,f,d,m;for(p=[],h=0,f=arguments.length;h1?function(){var f=h?h.concat():[];return c=this,f.push.apply(f,arguments)=0;--de)Ce=ie[de],J=Z(Ce,J);return J}),O=ne(function(Z,J){return C(Z,J[J.length-1],J.slice(0,-1))}),w=ne(function(Z,J){var ie,de,Ce;for(ie=[],de=J;(Ce=Z(de))!=null;)ie.push(Ce[0]),de=Ce[1];return ie}),E=function(Z){return[].concat.apply([],Z)},k=ne(function(Z,J){var ie;return[].concat.apply([],function(){var de,Ce,L,ue=[];for(de=0,L=(Ce=J).length;deie?1:JZ(de)?1:Z(ie)J&&(J=L);return J},$=function(Z){var J,ie,de,Ce,L;for(J=Z[0],ie=0,Ce=(de=Z.slice(1)).length;ieZ(ie)&&(ie=ue);return ie}),K=ne(function(Z,J){var ie,de,Ce,L,ue;for(ie=J[0],de=0,L=(Ce=J.slice(1)).length;de1?function(){var L=Ce?Ce.concat():[];return ie=this,L.push.apply(L,arguments)>>0;++ie1?function(){var S=v?v.concat():[];return y=this,S.push.apply(S,arguments)1?b:b.toLowerCase())}).replace(/^([A-Z]+)/,function(m,g){return g.length>1?g+"-":g.toLowerCase()})},_m={split:r,join:e,lines:t,unlines:s,words:n,unwords:i,chars:a,unchars:l,reverse:o,repeat:u,capitalize:c,camelize:p,dasherize:h};function f(d,m){var g,b=function(O){return d.length>1?function(){var S=O?O.concat():[];return g=this,S.push.apply(S,arguments)R?V:R}),e=Q(function(V,R){return V0?1:0},i=Q(function(V,R){return~~(V/R)}),a=Q(function(V,R){return V%R}),l=Q(function(V,R){return Math.floor(V/R)}),o=Q(function(V,R){var $;return(V%($=R)+$)%$}),u=function(V){return 1/V},c=Math.PI,p=c*2,h=Math.exp,f=Math.sqrt,d=Math.log,m=Q(function(V,R){return Math.pow(V,R)}),g=Math.sin,b=Math.tan,O=Math.cos,S=Math.asin,C=Math.acos,k=Math.atan,E=Q(function(V,R){return Math.atan2(V,R)}),A=function(V){return~~V},w=Math.round,P=Math.ceil,T=Math.floor,I=function(V){return V!==V},F=function(V){return V%2===0},L=function(V){return V%2!==0},_=Q(function(V,R){var $;for(V=Math.abs(V),R=Math.abs(R);R!==0;)$=V%R,V=R,R=$;return V}),B=Q(function(V,R){return Math.abs(Math.floor(V/_(V,R)*R))}),Im={max:r,min:e,negate:t,abs:s,signum:n,quot:i,rem:a,div:l,mod:o,recip:u,pi:c,tau:p,exp:h,sqrt:f,ln:d,pow:m,sin:g,tan:b,cos:O,acos:C,asin:S,atan:k,atan2:E,truncate:A,round:w,ceiling:P,floor:T,isItNaN:I,even:F,odd:L,gcd:_,lcm:B};function Q(V,R){var $,N=function(W){return V.length>1?function(){var Z=W?W.concat():[];return $=this,Z.push.apply(Z,arguments)1?function(){var g=m?m.concat():[];return f=this,g.push.apply(g,arguments)|"+r.source+"|\\S","g"),Nm.exports=function(d){var m,g;if(!d.length)throw new Error("No type specified.");if(m=d.match(e)||[],f("->",m))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(m)}catch(b){throw g=b,new Error(g.message+" - Remaining tokens: "+JSON.stringify(m)+" - Initial input: '"+d+"'")}};function f(d,m){for(var g=-1,b=m.length>>>0;++g{if(!u)return;let[c,p=null]=u.split(":");l[c]={value:p,comment:a}}),l}parseJsonConfig(i,a){s("Parsing JSON config");try{let o=r.parse("Object",i)||{};if(e.isEverySeverityValid(o))return{success:!0,config:o}}catch{s("Levn parsing failed; falling back to manual parsing.")}let l=i.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{success:!0,config:JSON.parse(`{${l}}`)}}catch(o){return s("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${l}': ${o.message}`,line:a.start.line,column:a.start.column+1,nodeType:null}}}}parseListConfig(i){s("Parsing list config");let a={};return i.split(",").forEach(l=>{let o=l.trim().replace(/^(?['"]?)(?.*)\k$/us,"$");o&&(a[o]=!0)}),a}extractDirectiveComment(i){let a=/\s-{2,}\s/u.exec(i);if(!a)return{directivePart:i.trim(),justificationPart:""};let l=i.slice(0,a.index).trim(),o=i.slice(a.index+a[0].length).trim();return{directivePart:l,justificationPart:o}}parseDirective(i){let{directivePart:a}=this.extractDirectiveComment(i.value),l=t.exec(a),o=l[1],u=a.slice(l.index+o.length);return{directiveText:o,directiveValue:u}}},$m}var Mm,CT;function G4(){if(CT)return Mm;CT=1;let{isCommentToken:r}=mr(),e=R4(),t=Sc(),s=IO(),n=VB(),{directivesPattern:i}=Ec(),a=$4(),l=zB(),o=YB(),u=FB(),c=new o,p=["onCodePathStart","onCodePathEnd","onCodePathSegmentStart","onCodePathSegmentEnd","onCodePathSegmentLoop","onUnreachableCodePathSegmentStart","onUnreachableCodePathSegmentEnd"];function h(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 f(T){switch(T){case 3:return n.es3;case 5:return n.es5;default:return T<2015?n[`es${T+2009}`]:n[`es${T}`]}}function d(T){return T.type==="ExportDefaultDeclaration"||T.type==="ExportNamedDeclaration"||T.type==="ExportAllDeclaration"||T.type==="ExportSpecifier"}function m(T,I){let F=[],L=0,_=0;for(;L=I.length||L=I.range[0]||I.range[0]<=T.range[0]&&I.range[1]>=T.range[0]}function O(T,I,F,L){if(b(I,F))return!1;let[_,B]=I.range[1]<=F.range[0]?[I,F]:[F,I],Q=T.getLastToken(_)||_,V=T.getFirstToken(B)||B,R=Q;for(;R!==V;){let $=T.getTokenAfter(R,{includeComments:!0});if(R.range[1]!==$.range[0]||L&&$!==V&&$.type==="JSXText"&&/\s/u.test($.value))return!0;R=$}return!1}function S(T,I={},F={}){for(let L of new Set([...Object.keys(I),...Object.keys(F)])){let _=I[L]===void 0?void 0:g(I[L]),Q=F[L]&&F[L].value||_,V=F[L]&&F[L].comments;if(Q==="off")continue;let R=T.set.get(L);R||(R=new u.Variable(L,T),T.variables.push(R),T.set.set(L,R)),R.eslintImplicitGlobalSetting=_,R.eslintExplicitGlobal=V!==void 0,R.eslintExplicitGlobalComments=V,R.writeable=Q==="writable"}T.through=T.through.filter(L=>{let _=L.identifier.name,B=T.set.get(_);return B?(L.resolved=B,B.references.push(L),!1):!0})}function C(T,I){Object.keys(I).forEach(F=>{let L=T.set.get(F);L&&(L.eslintUsed=!0,L.eslintExported=!0)})}let k={visit:1,call:2};class E{type;kind;target;phase;args;constructor({type:I,target:F,phase:L,args:_}){this.type=I,this.kind=k[I],this.target=F,this.phase=L,this.args=_}}class A{type;node;value;justification;constructor({type:I,node:F,value:L,justification:_}){this.type=I,this.node=F,this.value=L,this.justification=_}}let w=Symbol("caches");class P extends e{#e;constructor(I,F){let L,_,B,Q,V;typeof I=="string"?(L=I,_=F):typeof I=="object"&&I!==null&&(L=I.text,_=I.ast,B=I.parserServices,Q=I.scopeManager,V=I.visitorKeys),h(_),super(_.tokens,_.comments),this[w]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0]]),this.hasBOM=L.charCodeAt(0)===65279,this.text=this.hasBOM?L.slice(1):L,this.ast=_,this.parserServices=B||{},this.scopeManager=Q||null,this.visitorKeys=V||s.DEFAULT_VISITOR_KEYS;let R=this.text.match(t.shebangPattern);R&&_.comments.length&&_.comments[0].value===R[1]&&(_.comments[0].type="Shebang"),this.tokensAndComments=m(_.tokens,_.comments),this.lines=[],this.lineStartIndices=[0];let N=t.createGlobalLinebreakMatcher(),W;for(;W=N.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),W.index)),this.lineStartIndices.push(W.index+W[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(I){return I.split(t.createGlobalLinebreakMatcher())}getText(I,F,L){return I?this.text.slice(Math.max(I.range[0]-(F||0),0),I.range[1]+(L||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(I){let F=_=>{let B=this.getTokenBefore(_,{includeComments:!0});return B&&r(B)&&B.type==="Block"&&B.value.charAt(0)==="*"&&_.loc.start.line-B.loc.end.line<=1?B:null},L=I.parent;switch(I.type){case"ClassDeclaration":case"FunctionDeclaration":return F(d(L)?L:I);case"ClassExpression":return F(L.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(L.type!=="CallExpression"&&L.type!=="NewExpression"){for(;!this.getCommentsBefore(L).length&&!/Function/u.test(L.type)&&L.type!=="MethodDefinition"&&L.type!=="Property"&&(L=L.parent,!!L););if(L&&L.type!=="FunctionDeclaration"&&L.type!=="Program")return F(L)}return F(I);default:return null}}getNodeByRangeIndex(I){let F=null;return s.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(L){L.range[0]<=I&&Ithis.text.length)throw new RangeError(`Index out of range (requested index ${I}, but source text has length ${this.text.length}).`);if(I===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let F=I>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:this.lineStartIndices.findIndex(L=>Ithis.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${I.line} requested, but only ${this.lineStartIndices.length} lines present).`);let F=this.lineStartIndices[I.line-1],L=I.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[I.line],_=F+I.column;if(I.line===this.lineStartIndices.length&&_>L||I.line=L)throw new RangeError(`Column number out of range (column ${I.column} requested, but the length of line ${I.line} is ${L-F}).`);return _}getScope(I){if(!I)throw new TypeError("Missing required argument: node.");let F=this[w].get("scopes"),L=F.get(I);if(L)return L;let _=I.type!=="Program";for(let B=I;B;B=B.parent){let Q=this.scopeManager.acquire(B,_);if(Q)return Q.type==="function-expression-name"?(F.set(I,Q.childScopes[0]),Q.childScopes[0]):(F.set(I,Q),Q)}return F.set(I,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(I){return this.scopeManager.getDeclaredVariables(I)}getAncestors(I){if(!I)throw new TypeError("Missing required argument: node.");let F=[];for(let L=I.parent;L;L=L.parent)F.push(L);return F.reverse()}markVariableAsUsed(I,F=this.ast){let L=this.getScope(F),_=L;L.type==="global"&&L.childScopes.length>0&&L.childScopes[0].block===this.ast&&(_=L.childScopes[0]);for(let B=_;B;B=B.upper){let Q=B.variables.find(V=>V.name===I);if(Q)return Q.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let I=this[w].get("configNodes");return I||(I=this.ast.comments.filter(F=>{if(F.type==="Shebang")return!1;let{directivePart:L}=c.extractDirectiveComment(F.value),_=i.exec(L);return _?F.type!=="Line"||!!/^eslint-disable-(next-)?line$/u.test(_[1]):!1}),this[w].set("configNodes",I),I)}getDisableDirectives(){let I=this[w].get("disableDirectives");if(I)return I;let F=[],L=[];this.getInlineConfigNodes().forEach(B=>{let{directivePart:Q,justificationPart:V}=c.extractDirectiveComment(B.value),R=i.exec(Q);if(!R)return;let $=R[1],N=/^eslint-disable-(next-)?line$/u.test($);if(B.type==="Line"&&!N)return;if($==="eslint-disable-line"&&B.loc.start.line!==B.loc.end.line){let Z=`${$} comment should not span multiple lines.`;F.push({ruleId:null,message:Z,loc:B.loc});return}let W=Q.slice(R.index+$.length);switch($){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let Z=$.slice(7);L.push(new A({type:Z,node:B,value:W,justification:V}))}}});let _={problems:F,directives:L};return this[w].set("disableDirectives",_),_}applyLanguageOptions(I){let F=Object.assign({},f(I.ecmaVersion),I.sourceType==="commonjs"?n.commonjs:void 0,I.globals);this[w].get("vars").set("configGlobals",F)}applyInlineConfig(){let I=[],F=[],L={},_=Object.create(null);this.getInlineConfigNodes().forEach(Q=>{let{directiveText:V,directiveValue:R}=c.parseDirective(Q);switch(V){case"exported":Object.assign(L,c.parseListConfig(R,Q));break;case"globals":case"global":for(let[$,{value:N}]of Object.entries(c.parseStringConfig(R,Q))){let W;try{W=g(N)}catch(Z){I.push({ruleId:null,loc:Q.loc,message:Z.message});continue}_[$]?(_[$].comments.push(Q),_[$].value=W):_[$]={comments:[Q],value:W}}break;case"eslint":{let $=c.parseJsonConfig(R,Q.loc);$.success?F.push({config:{rules:$.config},node:Q}):I.push($.error);break}}});let B=this[w].get("vars");return B.set("inlineGlobals",_),B.set("exportedVariables",L),{configs:F,problems:I}}finalize(){let I=this[w].get("vars"),F=this.scopeManager.scopes[0],L=I.get("configGlobals"),_=I.get("inlineGlobals"),B=I.get("exportedVariables");S(F,L,_),B&&C(F,B)}traverse(){if(this.#e)return this.#e;let I=this.#e=[],F=l(),L={enterNode(B){I.push(new E({type:"visit",target:B,phase:1,args:[B,B.parent]}))},leaveNode(B){I.push(new E({type:"visit",target:B,phase:2,args:[B,B.parent]}))},emitter:F};return this.ast.type==="Program"&&(L=new a(L),p.forEach(B=>{F.on(B,(...Q)=>{I.push(new E({type:"call",target:B,args:Q}))})})),s.traverse(this.ast,{enter(B,Q){B.parent=Q,L.enterNode(B)},leave(B){L.leaveNode(B)},visitorKeys:this.visitorKeys}),I}}return Mm=P,Mm}var jm,wT;function Y4(){return wT||(wT=1,jm={SourceCode:G4()}),jm}var qm,kT;function Cc(){return kT||(kT=1,qm=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),qm}var Qm,AT;function H4(){if(AT)return Qm;AT=1;let r=Cc(),{Legacy:{ConfigOps:e}}=_O();function t(u,c){return u.line-c.line||u.column-c.column}function s(u){let c=new Map;for(let p of u){let{unprocessedDirective:{parentDirective:h}}=p;c.has(h)?c.get(h).push(p):c.set(h,[p])}return[...c.values()]}function n(u,c){let p=c.range[0]+2,h=/^\s*\S+\s+/u.exec(c.value)[0].length,f=c.value.slice(h).split(/\s-{2,}\s/u)[0].trimEnd();return u.map(d=>{let{ruleId:m}=d,b=new RegExp(String.raw`(?:^|\s*,\s*)(?['"]?)${r(m)}\k(?:\s*,\s*|$)`,"u").exec(f),O=b[0],S=h+b.index,C=S+O.length,k=O.indexOf(","),E=O.lastIndexOf(","),A,w;return k!==E?(A=S+k,w=S+E):(A=S,w=C),{description:`'${m}'`,fix:{range:[p+A,p+w],text:""},unprocessedDirective:d.unprocessedDirective}})}function i(u,c){let{range:p}=c,h=u.filter(f=>f.ruleId).map(f=>`'${f.ruleId}'`);return{description:h.length<=2?h.join(" or "):`${h.slice(0,h.length-1).join(", ")}, or ${h.at(-1)}`,fix:{range:p,text:" "},unprocessedDirective:u[0].unprocessedDirective}}function a(u){return s(u).flatMap(p=>{let{parentDirective:h}=p[0].unprocessedDirective,f=new Set(h.ruleIds);for(let d of p)f.delete(d.ruleId);return f.size?n(p,h.node):[i(p,h.node)]})}function l(u){let c=new Map,p=new Set;for(let h=u.length-1;h>=0;h--){let f=u[h];if(f.type==="disable"){if(c.size===0)continue;if(f.ruleId===null){for(let d of c.values())p.add(d);c.clear()}else{let d=c.get(f.ruleId);if(d)p.add(d);else{let m=c.get(null);m&&p.add(m)}}}else f.type==="enable"&&(f.ruleId===null?(c.clear(),c.set(null,f)):c.set(f.ruleId,f))}return p}function o(u){let c=[],p=new Set;for(let g of u.problems){let b=[],O=0;for(;O0){let S=b.map(C=>({kind:"directive",justification:C.unprocessedDirective.justification}));g.suppressions?g.suppressions=g.suppressions.concat(S):(g.suppressions=S,p.add(b.at(-1)))}c.push(g)}let h=u.directives.filter(g=>g.type==="disable"&&!p.has(g)&&!u.rulesToIgnore.has(g.ruleId)),f=new Set(u.directives.filter(g=>g.unprocessedDirective.type==="enable"&&!u.rulesToIgnore.has(g.ruleId)));if(f.size>0)for(let g of l(u.directives))f.delete(g);let m=a(h).concat(a(f)).map(({description:g,fix:b,unprocessedDirective:O})=>{let{parentDirective:S,type:C,line:k,column:E}=O,A;return C==="enable"?A=g?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${g}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":A=g?`Unused eslint-disable directive (no problems were reported from ${g}).`:"Unused eslint-disable directive (no problems were reported).",{ruleId:null,message:A,line:C==="disable-next-line"?S.node.loc.start.line:k,column:C==="disable-next-line"?S.node.loc.start.column+1:E,severity:u.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...u.disableFixes?{}:{fix:b}}});return{problems:c,unusedDirectives:m}}return Qm=({directives:u,disableFixes:c,problems:p,configuredRules:h,ruleFilter:f,reportUnusedDisableDirectives:d="off"})=>{let m=u.filter(C=>C.type==="disable"||C.type==="enable").map(C=>Object.assign({},C,{unprocessedDirective:C})).sort(t),g=u.flatMap(C=>{switch(C.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:C.line,column:1,ruleId:C.ruleId,unprocessedDirective:C},{type:"enable",line:C.line+1,column:0,ruleId:C.ruleId,unprocessedDirective:C}];case"disable-next-line":return[{type:"disable",line:C.line+1,column:1,ruleId:C.ruleId,unprocessedDirective:C},{type:"enable",line:C.line+2,column:0,ruleId:C.ruleId,unprocessedDirective:C}];default:throw new TypeError(`Unrecognized directive type '${C.type}'`)}}).sort(t),b=h&&f?new Set(Object.keys(h).filter(C=>{let k=e.getRuleSeverity(h[C]);return k===0?!1:!f({severity:k,ruleId:C})})):new Set;b.size>0&&b.add(null);let O=o({problems:p,directives:m,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:b}),S=o({problems:O.problems,directives:g,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:b});return d!=="off"?S.problems.concat(O.unusedDirectives).concat(S.unusedDirectives).sort(t):S.problems},Qm}function Uo(r){return(Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(r)}function NO(r,e){return function(t){if(Array.isArray(t))return t}(r)||function(t,s){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,a,l,o,u=[],c=!0,p=!1;try{if(l=(n=n.call(t)).next,s!==0)for(;!(c=(i=l.call(n)).done)&&(u.push(i.value),u.length!==s);c=!0);}catch(h){p=!0,a=h}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(p)throw a}}return u}}(r,e)||HB(r,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function K4(r){return function(e){if(Array.isArray(e))return nO(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||HB(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function HB(r,e){if(r){if(typeof r=="string")return nO(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?nO(r,e):void 0}}function nO(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t=0;--k)if(S[k].node===C)return!0;return!1}function b(S,C){return new f().traverse(S,C)}function O(S,C){var k;return k=function(E,A){var w,P,T,I;for(P=E.length,T=0;P;)A(E[I=T+(w=P>>>1)])?P=w:(T=I+1,P-=w+1);return T}(C,function(E){return E.range[0]>S.range[0]}),S.extendedRange=[S.range[0],S.range[1]],k!==C.length&&(S.extendedRange[1]=C[k].range[0]),(k-=1)>=0&&(S.extendedRange[0]=C[k].range[1]),S}return n={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"},a={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={Break:l={},Skip:o={},Remove:u={}},p.prototype.replace=function(S){this.parent[this.key]=S},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var S,C,k,E,A;function w(P,T){if(Array.isArray(T))for(k=0,E=T.length;k=0;)if(B=w[I=_[F]]){if(Array.isArray(B)){for(L=B.length;(L-=1)>=0;)if(B[L]&&!g(E,B[L])){if(m(P,_[F]))A=new h(B[L],[I,L],"Property",null);else{if(!d(B[L]))continue;A=new h(B[L],[I,L],null,null)}k.push(A)}}else if(d(B)){if(g(E,B))continue;k.push(new h(B,I,null,null))}}}}else if(A=E.pop(),T=this.__execute(C.leave,A),this.__state===l||T===l)return},f.prototype.replace=function(S,C){var k,E,A,w,P,T,I,F,L,_,B,Q,V;function R($){var N,W,Z,le;if($.ref.remove()){for(W=$.ref.key,le=$.ref.parent,N=k.length;N--;)if((Z=k[N]).ref&&Z.ref.parent===le){if(Z.ref.key=0;)if(_=A[V=L[I]])if(Array.isArray(_)){for(F=_.length;(F-=1)>=0;)if(_[F]){if(m(w,L[I]))T=new h(_[F],[V,F],"Property",new p(_,F));else{if(!d(_[F]))continue;T=new h(_[F],[V,F],null,new p(_,F))}k.push(T)}}else d(_)&&k.push(new h(_,V,null,new p(A,V)))}}else if(T=E.pop(),(P=this.__execute(C.leave,T))!==void 0&&P!==l&&P!==o&&P!==u&&T.ref.replace(P),this.__state!==u&&P!==u||R(T),this.__state===l||P===l)return Q.root;return Q.root},s.Syntax=n,s.traverse=b,s.replace=function(S,C){return new f().replace(S,C)},s.attachComments=function(S,C,k){var E,A,w,P,T=[];if(!S.range)throw new Error("attachComments needs range information");if(!k.length){if(C.length){for(w=0,A=C.length;wI.range[0]);)F.extendedRange[1]===I.range[0]?(I.leadingComments||(I.leadingComments=[]),I.leadingComments.push(F),T.splice(P,1)):P+=1;return P===T.length?i.Break:T[P].extendedRange[0]>I.range[1]?i.Skip:void 0}}),P=0,b(S,{leave:function(I){for(var F;PI.range[1]?i.Skip:void 0}}),S},s.VisitorKeys=a,s.VisitorOption=i,s.Controller=f,s.cloneEnvironment=function(){return t({})},s})(e)}),J4=KB(function(r){r.exports&&(r.exports=function(){function e(t,s,n,i){this.message=t,this.expected=s,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return function(t,s){function n(){this.constructor=t}n.prototype=s.prototype,t.prototype=new n}(e,Error),e.buildMessage=function(t,s){var n={literal:function(o){return'"'+a(o.text)+'"'},class:function(o){var u,c="";for(u=0;u0){for(u=1,c=1;u<~+.]/,f=ie([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),d=H(">",!1),m=H("~",!1),g=H("+",!1),b=H(",",!1),O=H("!",!1),S=H("*",!1),C=H("#",!1),k=H("[",!1),E=H("]",!1),A=/^[>","<","!"],!1,!1),P=H("=",!1),T=function(Ee){return(Ee||"")+"="},I=/^[><]/,F=ie([">","<"],!1,!1),L=H(".",!1),_=function(Ee,Re,ze){return{type:"attribute",name:Ee,operator:Re,value:ze}},B=H('"',!1),Q=/^[^\\"]/,V=ie(["\\",'"'],!0,!1),R=H("\\",!1),$={type:"any"},N=function(Ee,Re){return Ee+Re},W=function(Ee){return{type:"literal",value:(Re=Ee.join(""),Re.replace(/\\(.)/g,function(ze,Oe){switch(Oe){case"b":return"\b";case"f":return"\f";case"n":return` -`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return Oe}}))};var Re},Z=H("'",!1),le=/^[^\\']/,ae=ie(["\\","'"],!0,!1),Se=/^[0-9]/,J=ie([["0","9"]],!1,!1),me=H("type(",!1),j=/^[^ )]/,de=ie([" ",")"],!0,!1),ee=H(")",!1),ce=/^[imsu]/,ve=ie(["i","m","s","u"],!1,!1),Me=H("/",!1),Ue=/^[^\/]/,st=ie(["/"],!0,!1),mt=H(":not(",!1),dt=H(":matches(",!1),wt=H(":has(",!1),Y=H(":first-child",!1),Ae=H(":last-child",!1),Ze=H(":nth-child(",!1),rt=H(":nth-last-child(",!1),ot=H(":",!1),at=H("statement",!0),kt=H("expression",!0),Ot=H("declaration",!0),It=H("function",!0),Ft=H("pattern",!0),z=0,St=[{line:1,column:1}],Ke=0,er=[],Ie={};if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');c=u[s.startRule]}function H(Ee,Re){return{type:"literal",text:Ee,ignoreCase:Re}}function ie(Ee,Re,ze){return{type:"class",parts:Ee,inverted:Re,ignoreCase:ze}}function re(Ee){var Re,ze=St[Ee];if(ze)return ze;for(Re=Ee-1;!St[Re];)Re--;for(ze={line:(ze=St[Re]).line,column:ze.column};ReKe&&(Ke=z,er=[]),er.push(Ee))}function X(){var Ee,Re,ze,Oe,se=30*z+0,K=Ie[se];return K?(z=K.nextPos,K.result):(Ee=z,(Re=te())!==o&&(ze=ke())!==o&&te()!==o?Ee=Re=(Oe=ze).length===1?Oe[0]:{type:"matches",selectors:Oe}:(z=Ee,Ee=o),Ee===o&&(Ee=z,(Re=te())!==o&&(Re=void 0),Ee=Re),Ie[se]={nextPos:z,result:Ee},Ee)}function te(){var Ee,Re,ze=30*z+1,Oe=Ie[ze];if(Oe)return z=Oe.nextPos,Oe.result;for(Ee=[],t.charCodeAt(z)===32?(Re=" ",z++):(Re=o,pe(p));Re!==o;)Ee.push(Re),t.charCodeAt(z)===32?(Re=" ",z++):(Re=o,pe(p));return Ie[ze]={nextPos:z,result:Ee},Ee}function oe(){var Ee,Re,ze,Oe=30*z+2,se=Ie[Oe];if(se)return z=se.nextPos,se.result;if(Re=[],h.test(t.charAt(z))?(ze=t.charAt(z),z++):(ze=o,pe(f)),ze!==o)for(;ze!==o;)Re.push(ze),h.test(t.charAt(z))?(ze=t.charAt(z),z++):(ze=o,pe(f));else Re=o;return Re!==o&&(Re=Re.join("")),Ee=Re,Ie[Oe]={nextPos:z,result:Ee},Ee}function ge(){var Ee,Re,ze,Oe=30*z+3,se=Ie[Oe];return se?(z=se.nextPos,se.result):(Ee=z,(Re=te())!==o?(t.charCodeAt(z)===62?(ze=">",z++):(ze=o,pe(d)),ze!==o&&te()!==o?Ee=Re="child":(z=Ee,Ee=o)):(z=Ee,Ee=o),Ee===o&&(Ee=z,(Re=te())!==o?(t.charCodeAt(z)===126?(ze="~",z++):(ze=o,pe(m)),ze!==o&&te()!==o?Ee=Re="sibling":(z=Ee,Ee=o)):(z=Ee,Ee=o),Ee===o&&(Ee=z,(Re=te())!==o?(t.charCodeAt(z)===43?(ze="+",z++):(ze=o,pe(g)),ze!==o&&te()!==o?Ee=Re="adjacent":(z=Ee,Ee=o)):(z=Ee,Ee=o),Ee===o&&(Ee=z,t.charCodeAt(z)===32?(Re=" ",z++):(Re=o,pe(p)),Re!==o&&(ze=te())!==o?Ee=Re="descendant":(z=Ee,Ee=o)))),Ie[Oe]={nextPos:z,result:Ee},Ee)}function ke(){var Ee,Re,ze,Oe,se,K,he,Ce,we=30*z+4,Ge=Ie[we];if(Ge)return z=Ge.nextPos,Ge.result;if(Ee=z,(Re=M())!==o){for(ze=[],Oe=z,(se=te())!==o?(t.charCodeAt(z)===44?(K=",",z++):(K=o,pe(b)),K!==o&&(he=te())!==o&&(Ce=M())!==o?Oe=se=[se,K,he,Ce]:(z=Oe,Oe=o)):(z=Oe,Oe=o);Oe!==o;)ze.push(Oe),Oe=z,(se=te())!==o?(t.charCodeAt(z)===44?(K=",",z++):(K=o,pe(b)),K!==o&&(he=te())!==o&&(Ce=M())!==o?Oe=se=[se,K,he,Ce]:(z=Oe,Oe=o)):(z=Oe,Oe=o);ze!==o?Ee=Re=[Re].concat(ze.map(function(et){return et[3]})):(z=Ee,Ee=o)}else z=Ee,Ee=o;return Ie[we]={nextPos:z,result:Ee},Ee}function M(){var Ee,Re,ze,Oe,se,K,he,Ce=30*z+5,we=Ie[Ce];if(we)return z=we.nextPos,we.result;if(Ee=z,(Re=fe())!==o){for(ze=[],Oe=z,(se=ge())!==o&&(K=fe())!==o?Oe=se=[se,K]:(z=Oe,Oe=o);Oe!==o;)ze.push(Oe),Oe=z,(se=ge())!==o&&(K=fe())!==o?Oe=se=[se,K]:(z=Oe,Oe=o);ze!==o?(he=Re,Ee=Re=ze.reduce(function(Ge,et){return{type:et[0],left:Ge,right:et[1]}},he)):(z=Ee,Ee=o)}else z=Ee,Ee=o;return Ie[Ce]={nextPos:z,result:Ee},Ee}function fe(){var Ee,Re,ze,Oe,se,K,he,Ce=30*z+6,we=Ie[Ce];if(we)return z=we.nextPos,we.result;if(Ee=z,t.charCodeAt(z)===33?(Re="!",z++):(Re=o,pe(O)),Re===o&&(Re=null),Re!==o){if(ze=[],(Oe=_e())!==o)for(;Oe!==o;)ze.push(Oe),Oe=_e();else ze=o;ze!==o?(se=Re,he=(K=ze).length===1?K[0]:{type:"compound",selectors:K},se&&(he.subject=!0),Ee=Re=he):(z=Ee,Ee=o)}else z=Ee,Ee=o;return Ie[Ce]={nextPos:z,result:Ee},Ee}function _e(){var Ee,Re=30*z+7,ze=Ie[Re];return ze?(z=ze.nextPos,ze.result):((Ee=function(){var Oe,se,K=30*z+8,he=Ie[K];return he?(z=he.nextPos,he.result):(t.charCodeAt(z)===42?(se="*",z++):(se=o,pe(S)),se!==o&&(se={type:"wildcard",value:se}),Oe=se,Ie[K]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K,he=30*z+9,Ce=Ie[he];return Ce?(z=Ce.nextPos,Ce.result):(Oe=z,t.charCodeAt(z)===35?(se="#",z++):(se=o,pe(C)),se===o&&(se=null),se!==o&&(K=oe())!==o?Oe=se={type:"identifier",value:K}:(z=Oe,Oe=o),Ie[he]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K,he,Ce=30*z+10,we=Ie[Ce];return we?(z=we.nextPos,we.result):(Oe=z,t.charCodeAt(z)===91?(se="[",z++):(se=o,pe(k)),se!==o&&te()!==o&&(K=function(){var Ge,et,yt,Et,Dt=30*z+14,vt=Ie[Dt];return vt?(z=vt.nextPos,vt.result):(Ge=z,(et=Le())!==o&&te()!==o&&(yt=function(){var We,it,He,Ve=30*z+12,ft=Ie[Ve];return ft?(z=ft.nextPos,ft.result):(We=z,t.charCodeAt(z)===33?(it="!",z++):(it=o,pe(O)),it===o&&(it=null),it!==o?(t.charCodeAt(z)===61?(He="=",z++):(He=o,pe(P)),He!==o?(it=T(it),We=it):(z=We,We=o)):(z=We,We=o),Ie[Ve]={nextPos:z,result:We},We)}())!==o&&te()!==o?((Et=function(){var We,it,He,Ve,ft,gt=30*z+18,Ut=Ie[gt];if(Ut)return z=Ut.nextPos,Ut.result;if(We=z,t.substr(z,5)==="type("?(it="type(",z+=5):(it=o,pe(me)),it!==o)if(te()!==o){if(He=[],j.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(de)),Ve!==o)for(;Ve!==o;)He.push(Ve),j.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(de));else He=o;He!==o&&(Ve=te())!==o?(t.charCodeAt(z)===41?(ft=")",z++):(ft=o,pe(ee)),ft!==o?(it={type:"type",value:He.join("")},We=it):(z=We,We=o)):(z=We,We=o)}else z=We,We=o;else z=We,We=o;return Ie[gt]={nextPos:z,result:We},We}())===o&&(Et=function(){var We,it,He,Ve,ft,gt,Ut=30*z+20,Vt=Ie[Ut];if(Vt)return z=Vt.nextPos,Vt.result;if(We=z,t.charCodeAt(z)===47?(it="/",z++):(it=o,pe(Me)),it!==o){if(He=[],Ue.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(st)),Ve!==o)for(;Ve!==o;)He.push(Ve),Ue.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(st));else He=o;He!==o?(t.charCodeAt(z)===47?(Ve="/",z++):(Ve=o,pe(Me)),Ve!==o?((ft=function(){var Qt,ar,ut=30*z+19,$t=Ie[ut];if($t)return z=$t.nextPos,$t.result;if(Qt=[],ce.test(t.charAt(z))?(ar=t.charAt(z),z++):(ar=o,pe(ve)),ar!==o)for(;ar!==o;)Qt.push(ar),ce.test(t.charAt(z))?(ar=t.charAt(z),z++):(ar=o,pe(ve));else Qt=o;return Ie[ut]={nextPos:z,result:Qt},Qt}())===o&&(ft=null),ft!==o?(gt=ft,it={type:"regexp",value:new RegExp(He.join(""),gt?gt.join(""):"")},We=it):(z=We,We=o)):(z=We,We=o)):(z=We,We=o)}else z=We,We=o;return Ie[Ut]={nextPos:z,result:We},We}()),Et!==o?(et=_(et,yt,Et),Ge=et):(z=Ge,Ge=o)):(z=Ge,Ge=o),Ge===o&&(Ge=z,(et=Le())!==o&&te()!==o&&(yt=function(){var We,it,He,Ve=30*z+11,ft=Ie[Ve];return ft?(z=ft.nextPos,ft.result):(We=z,A.test(t.charAt(z))?(it=t.charAt(z),z++):(it=o,pe(w)),it===o&&(it=null),it!==o?(t.charCodeAt(z)===61?(He="=",z++):(He=o,pe(P)),He!==o?(it=T(it),We=it):(z=We,We=o)):(z=We,We=o),We===o&&(I.test(t.charAt(z))?(We=t.charAt(z),z++):(We=o,pe(F))),Ie[Ve]={nextPos:z,result:We},We)}())!==o&&te()!==o?((Et=function(){var We,it,He,Ve,ft,gt,Ut=30*z+15,Vt=Ie[Ut];if(Vt)return z=Vt.nextPos,Vt.result;if(We=z,t.charCodeAt(z)===34?(it='"',z++):(it=o,pe(B)),it!==o){for(He=[],Q.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(V)),Ve===o&&(Ve=z,t.charCodeAt(z)===92?(ft="\\",z++):(ft=o,pe(R)),ft!==o?(t.length>z?(gt=t.charAt(z),z++):(gt=o,pe($)),gt!==o?(ft=N(ft,gt),Ve=ft):(z=Ve,Ve=o)):(z=Ve,Ve=o));Ve!==o;)He.push(Ve),Q.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(V)),Ve===o&&(Ve=z,t.charCodeAt(z)===92?(ft="\\",z++):(ft=o,pe(R)),ft!==o?(t.length>z?(gt=t.charAt(z),z++):(gt=o,pe($)),gt!==o?(ft=N(ft,gt),Ve=ft):(z=Ve,Ve=o)):(z=Ve,Ve=o));He!==o?(t.charCodeAt(z)===34?(Ve='"',z++):(Ve=o,pe(B)),Ve!==o?(it=W(He),We=it):(z=We,We=o)):(z=We,We=o)}else z=We,We=o;if(We===o)if(We=z,t.charCodeAt(z)===39?(it="'",z++):(it=o,pe(Z)),it!==o){for(He=[],le.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(ae)),Ve===o&&(Ve=z,t.charCodeAt(z)===92?(ft="\\",z++):(ft=o,pe(R)),ft!==o?(t.length>z?(gt=t.charAt(z),z++):(gt=o,pe($)),gt!==o?(ft=N(ft,gt),Ve=ft):(z=Ve,Ve=o)):(z=Ve,Ve=o));Ve!==o;)He.push(Ve),le.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(ae)),Ve===o&&(Ve=z,t.charCodeAt(z)===92?(ft="\\",z++):(ft=o,pe(R)),ft!==o?(t.length>z?(gt=t.charAt(z),z++):(gt=o,pe($)),gt!==o?(ft=N(ft,gt),Ve=ft):(z=Ve,Ve=o)):(z=Ve,Ve=o));He!==o?(t.charCodeAt(z)===39?(Ve="'",z++):(Ve=o,pe(Z)),Ve!==o?(it=W(He),We=it):(z=We,We=o)):(z=We,We=o)}else z=We,We=o;return Ie[Ut]={nextPos:z,result:We},We}())===o&&(Et=function(){var We,it,He,Ve,ft,gt,Ut,Vt=30*z+16,Qt=Ie[Vt];if(Qt)return z=Qt.nextPos,Qt.result;for(We=z,it=z,He=[],Se.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(J));Ve!==o;)He.push(Ve),Se.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(J));if(He!==o?(t.charCodeAt(z)===46?(Ve=".",z++):(Ve=o,pe(L)),Ve!==o?it=He=[He,Ve]:(z=it,it=o)):(z=it,it=o),it===o&&(it=null),it!==o){if(He=[],Se.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(J)),Ve!==o)for(;Ve!==o;)He.push(Ve),Se.test(t.charAt(z))?(Ve=t.charAt(z),z++):(Ve=o,pe(J));else He=o;He!==o?(gt=He,Ut=(ft=it)?[].concat.apply([],ft).join(""):"",it={type:"literal",value:parseFloat(Ut+gt.join(""))},We=it):(z=We,We=o)}else z=We,We=o;return Ie[Vt]={nextPos:z,result:We},We}())===o&&(Et=function(){var We,it,He=30*z+17,Ve=Ie[He];return Ve?(z=Ve.nextPos,Ve.result):((it=oe())!==o&&(it={type:"literal",value:it}),We=it,Ie[He]={nextPos:z,result:We},We)}()),Et!==o?(et=_(et,yt,Et),Ge=et):(z=Ge,Ge=o)):(z=Ge,Ge=o),Ge===o&&(Ge=z,(et=Le())!==o&&(et={type:"attribute",name:et}),Ge=et)),Ie[Dt]={nextPos:z,result:Ge},Ge)}())!==o&&te()!==o?(t.charCodeAt(z)===93?(he="]",z++):(he=o,pe(E)),he!==o?Oe=se=K:(z=Oe,Oe=o)):(z=Oe,Oe=o),Ie[Ce]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K,he,Ce,we,Ge,et,yt=30*z+21,Et=Ie[yt];if(Et)return z=Et.nextPos,Et.result;if(Oe=z,t.charCodeAt(z)===46?(se=".",z++):(se=o,pe(L)),se!==o)if((K=oe())!==o){for(he=[],Ce=z,t.charCodeAt(z)===46?(we=".",z++):(we=o,pe(L)),we!==o&&(Ge=oe())!==o?Ce=we=[we,Ge]:(z=Ce,Ce=o);Ce!==o;)he.push(Ce),Ce=z,t.charCodeAt(z)===46?(we=".",z++):(we=o,pe(L)),we!==o&&(Ge=oe())!==o?Ce=we=[we,Ge]:(z=Ce,Ce=o);he!==o?(et=K,se={type:"field",name:he.reduce(function(Dt,vt){return Dt+vt[0]+vt[1]},et)},Oe=se):(z=Oe,Oe=o)}else z=Oe,Oe=o;else z=Oe,Oe=o;return Ie[yt]={nextPos:z,result:Oe},Oe}())===o&&(Ee=function(){var Oe,se,K,he,Ce=30*z+22,we=Ie[Ce];return we?(z=we.nextPos,we.result):(Oe=z,t.substr(z,5)===":not("?(se=":not(",z+=5):(se=o,pe(mt)),se!==o&&te()!==o&&(K=ke())!==o&&te()!==o?(t.charCodeAt(z)===41?(he=")",z++):(he=o,pe(ee)),he!==o?Oe=se={type:"not",selectors:K}:(z=Oe,Oe=o)):(z=Oe,Oe=o),Ie[Ce]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K,he,Ce=30*z+23,we=Ie[Ce];return we?(z=we.nextPos,we.result):(Oe=z,t.substr(z,9)===":matches("?(se=":matches(",z+=9):(se=o,pe(dt)),se!==o&&te()!==o&&(K=ke())!==o&&te()!==o?(t.charCodeAt(z)===41?(he=")",z++):(he=o,pe(ee)),he!==o?Oe=se={type:"matches",selectors:K}:(z=Oe,Oe=o)):(z=Oe,Oe=o),Ie[Ce]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K,he,Ce=30*z+24,we=Ie[Ce];return we?(z=we.nextPos,we.result):(Oe=z,t.substr(z,5)===":has("?(se=":has(",z+=5):(se=o,pe(wt)),se!==o&&te()!==o&&(K=ke())!==o&&te()!==o?(t.charCodeAt(z)===41?(he=")",z++):(he=o,pe(ee)),he!==o?Oe=se={type:"has",selectors:K}:(z=Oe,Oe=o)):(z=Oe,Oe=o),Ie[Ce]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K=30*z+25,he=Ie[K];return he?(z=he.nextPos,he.result):(t.substr(z,12)===":first-child"?(se=":first-child",z+=12):(se=o,pe(Y)),se!==o&&(se=je(1)),Oe=se,Ie[K]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K=30*z+26,he=Ie[K];return he?(z=he.nextPos,he.result):(t.substr(z,11)===":last-child"?(se=":last-child",z+=11):(se=o,pe(Ae)),se!==o&&(se=Ne(1)),Oe=se,Ie[K]={nextPos:z,result:Oe},Oe)}())===o&&(Ee=function(){var Oe,se,K,he,Ce,we=30*z+27,Ge=Ie[we];if(Ge)return z=Ge.nextPos,Ge.result;if(Oe=z,t.substr(z,11)===":nth-child("?(se=":nth-child(",z+=11):(se=o,pe(Ze)),se!==o)if(te()!==o){if(K=[],Se.test(t.charAt(z))?(he=t.charAt(z),z++):(he=o,pe(J)),he!==o)for(;he!==o;)K.push(he),Se.test(t.charAt(z))?(he=t.charAt(z),z++):(he=o,pe(J));else K=o;K!==o&&(he=te())!==o?(t.charCodeAt(z)===41?(Ce=")",z++):(Ce=o,pe(ee)),Ce!==o?(se=je(parseInt(K.join(""),10)),Oe=se):(z=Oe,Oe=o)):(z=Oe,Oe=o)}else z=Oe,Oe=o;else z=Oe,Oe=o;return Ie[we]={nextPos:z,result:Oe},Oe}())===o&&(Ee=function(){var Oe,se,K,he,Ce,we=30*z+28,Ge=Ie[we];if(Ge)return z=Ge.nextPos,Ge.result;if(Oe=z,t.substr(z,16)===":nth-last-child("?(se=":nth-last-child(",z+=16):(se=o,pe(rt)),se!==o)if(te()!==o){if(K=[],Se.test(t.charAt(z))?(he=t.charAt(z),z++):(he=o,pe(J)),he!==o)for(;he!==o;)K.push(he),Se.test(t.charAt(z))?(he=t.charAt(z),z++):(he=o,pe(J));else K=o;K!==o&&(he=te())!==o?(t.charCodeAt(z)===41?(Ce=")",z++):(Ce=o,pe(ee)),Ce!==o?(se=Ne(parseInt(K.join(""),10)),Oe=se):(z=Oe,Oe=o)):(z=Oe,Oe=o)}else z=Oe,Oe=o;else z=Oe,Oe=o;return Ie[we]={nextPos:z,result:Oe},Oe}())===o&&(Ee=function(){var Oe,se,K,he=30*z+29,Ce=Ie[he];return Ce?(z=Ce.nextPos,Ce.result):(Oe=z,t.charCodeAt(z)===58?(se=":",z++):(se=o,pe(ot)),se!==o?(t.substr(z,9).toLowerCase()==="statement"?(K=t.substr(z,9),z+=9):(K=o,pe(at)),K===o&&(t.substr(z,10).toLowerCase()==="expression"?(K=t.substr(z,10),z+=10):(K=o,pe(kt)),K===o&&(t.substr(z,11).toLowerCase()==="declaration"?(K=t.substr(z,11),z+=11):(K=o,pe(Ot)),K===o&&(t.substr(z,8).toLowerCase()==="function"?(K=t.substr(z,8),z+=8):(K=o,pe(It)),K===o&&(t.substr(z,7).toLowerCase()==="pattern"?(K=t.substr(z,7),z+=7):(K=o,pe(Ft)))))),K!==o?Oe=se={type:"class",name:K}:(z=Oe,Oe=o)):(z=Oe,Oe=o),Ie[he]={nextPos:z,result:Oe},Oe)}()),Ie[Re]={nextPos:z,result:Ee},Ee)}function Le(){var Ee,Re,ze,Oe,se,K,he,Ce,we=30*z+13,Ge=Ie[we];if(Ge)return z=Ge.nextPos,Ge.result;if(Ee=z,(Re=oe())!==o){for(ze=[],Oe=z,t.charCodeAt(z)===46?(se=".",z++):(se=o,pe(L)),se!==o&&(K=oe())!==o?Oe=se=[se,K]:(z=Oe,Oe=o);Oe!==o;)ze.push(Oe),Oe=z,t.charCodeAt(z)===46?(se=".",z++):(se=o,pe(L)),se!==o&&(K=oe())!==o?Oe=se=[se,K]:(z=Oe,Oe=o);ze!==o?(he=Re,Ce=ze,Ee=Re=[].concat.apply([he],Ce).join("")):(z=Ee,Ee=o)}else z=Ee,Ee=o;return Ie[we]={nextPos:z,result:Ee},Ee}function je(Ee){return{type:"nth-child",index:{type:"literal",value:Ee}}}function Ne(Ee){return{type:"nth-last-child",index:{type:"literal",value:Ee}}}if((n=c())!==o&&z===t.length)return n;throw n!==o&&z0&&o(A,w,P))&&l(w[0],w.slice(1),P)};case"descendant":var u=wr(r.left),c=wr(r.right);return function(A,w,P){if(c(A,w,P)){for(var T=0,I=w.length;T":return function(A){return kn(A,p)>r.value.value};case">=":return function(A){return kn(A,p)>=r.value.value}}throw new Error("Unknown operator: ".concat(r.operator));case"sibling":var d=wr(r.left),m=wr(r.right);return function(A,w,P){return m(A,w,P)&&TT(A,d,w,"LEFT_SIDE",P)||r.left.subject&&d(A,w,P)&&TT(A,m,w,"RIGHT_SIDE",P)};case"adjacent":var g=wr(r.left),b=wr(r.right);return function(A,w,P){return b(A,w,P)&&DT(A,g,w,"LEFT_SIDE",P)||r.right.subject&&g(A,w,P)&&DT(A,b,w,"RIGHT_SIDE",P)};case"nth-child":var O=r.index.value,S=wr(r.right);return function(A,w,P){return S(A,w,P)&&_T(A,w,O,P)};case"nth-last-child":var C=-r.index.value,k=wr(r.right);return function(A,w,P){return k(A,w,P)&&_T(A,w,C,P)};case"class":var E=r.name.toLowerCase();return function(A,w){switch(E){case"statement":if(A.type.slice(-9)==="Statement")return!0;case"declaration":return A.type.slice(-11)==="Declaration";case"pattern":if(A.type.slice(-7)==="Pattern")return!0;case"expression":return A.type.slice(-10)==="Expression"||A.type.slice(-7)==="Literal"||A.type==="Identifier"&&(w.length===0||w[0].type!=="MetaProperty")||A.type==="MetaProperty";case"function":return A.type==="FunctionDeclaration"||A.type==="FunctionExpression"||A.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(r.name))}}throw new Error("Unknown selector type: ".concat(r.type))}function LO(r,e){var t=r.type;return e&&e.visitorKeys&&e.visitorKeys[t]?e.visitorKeys[t]:fc.VisitorKeys[t]?fc.VisitorKeys[t]:e&&typeof e.fallback=="function"?e.fallback(r):Object.keys(r).filter(function(s){return s!=="type"})}function sO(r){return r!==null&&Uo(r)==="object"&&typeof r.type=="string"}function TT(r,e,t,s,n){var i=NO(t,1)[0];if(!i)return!1;for(var a=LO(i,n),l=0;l0&&sO(o[u-1])&&e(o[u-1],t,n)||s==="RIGHT_SIDE"&&u=0&&of.includes(d));return h}function s(p){switch(p.type){case"identifier":return[p.value];case"matches":{let h=p.selectors.map(s);return h.every(Boolean)?e(...h):null}case"compound":{let h=p.selectors.map(s).filter(f=>f);return h.length?t(...h):null}case"child":case"descendant":case"sibling":case"adjacent":return s(p.right);case"class":return p.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function n(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return n(p.left)+n(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+n(f),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function i(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return i(p.left)+i(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+i(f),0);case"identifier":return 1;default:return 0}}function a(p,h){return p.attributeCount-h.attributeCount||p.identifierCount-h.identifierCount||(p.rawSelector<=h.rawSelector?-1:1)}function l(p){try{return r.parse(p.replace(/:exit$/u,""))}catch(h){throw h.location&&h.location.start&&typeof h.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${p}" at position ${h.location.start.offset}: ${h.message}`):h}}let o=new Map;function u(p){if(o.has(p))return o.get(p);let h=l(p),f={rawSelector:p,isExit:p.endsWith(":exit"),parsedSelector:h,listenerTypes:s(h),attributeCount:n(h),identifierCount:i(h)};return o.set(p,f),f}class c{constructor(h,f){this.emitter=h,this.esqueryOptions=f,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],h.eventNames().forEach(d=>{let m=u(d);if(m.listenerTypes){let b=m.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;m.listenerTypes.forEach(O=>{b.has(O)||b.set(O,[]),b.get(O).push(m)});return}(m.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(m)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(d=>d.sort(a)),this.exitSelectorsByNodeType.forEach(d=>d.sort(a))}applySelector(h,f){r.matches(h,f.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(f.rawSelector,h)}applySelectors(h,f){let d=(f?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(h.type)||[],m=f?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,g=0,b=0;for(;g=d.length||b{let l=a.trim();return l in s?s[l]:i})}return Zm={getPlaceholderMatcher:r,interpolate:e},Zm}var zm,BT;function n7(){if(BT)return zm;BT=1;let r=Zo,e=t7(),{interpolate:t}=r7();function s(...d){return d.length===1?Object.assign({},d[0]):typeof d[1]=="string"?{node:d[0],message:d[1],data:d[2],fix:d[3]}:{node:d[0],loc:d[1],message:d[2],data:d[3],fix:d[4]}}function n(d){d.node?r(typeof d.node=="object","Node must be an object"):r(d.loc,"Node must be provided when reporting error if location is not provided")}function i(d){return d.loc?d.loc.start?d.loc:{start:d.loc,end:null}:d.node.loc}function a(d){return d?{range:[d.range[0],d.range[1]],text:d.text}:null}function l(d){d&&r(d.range&&typeof d.range[0]=="number"&&typeof d.range[1]=="number",`Fix has invalid range: ${JSON.stringify(d,null,2)}`)}function o(d,m){return d.range[0]-m.range[0]||d.range[1]-m.range[1]}function u(d,m){for(let k of d)l(k);if(d.length===0)return null;if(d.length===1)return a(d[0]);d.sort(o);let g=m.text,b=d[0].range[0],O=d.at(-1).range[1],S="",C=Number.MIN_SAFE_INTEGER;for(let k of d)r(k.range[0]>=C,"Fix objects must not be overlapped in a report."),k.range[0]>=0&&(S+=g.slice(Math.max(0,b,C),k.range[0])),S+=k.text,C=k.range[1];return S+=g.slice(Math.max(0,b,C),O),{range:[b,O],text:S}}function c(d,m){if(typeof d.fix!="function")return null;let g=d.fix(e);return g&&Symbol.iterator in g?u(Array.from(g),m):(l(g),a(g))}function p(d,m,g){return!d.suggest||!Array.isArray(d.suggest)?[]:d.suggest.map(b=>{let O=b.desc||g[b.messageId];return{...b,desc:t(O,b.data),fix:c(b,m)}}).filter(({fix:b})=>b)}function h(d){let m={ruleId:d.ruleId,severity:d.severity,message:d.message,line:d.loc.start.line,column:d.loc.start.column+1,nodeType:d.node&&d.node.type||null};return d.messageId&&(m.messageId=d.messageId),d.loc.end&&(m.endLine=d.loc.end.line,m.endColumn=d.loc.end.column+1),d.fix&&(m.fix=d.fix),d.suggestions&&d.suggestions.length>0&&(m.suggestions=d.suggestions),m}function f(d,m){d&&Array.isArray(d)&&d.forEach(g=>{if(g.messageId){let{messageId:b}=g;if(!m)throw new TypeError(`context.report() called with a suggest option with a messageId '${b}', but no messages were present in the rule metadata.`);if(!m[b])throw new TypeError(`context.report() called with a suggest option with a messageId '${b}' which is not present in the 'messages' config: ${JSON.stringify(m,null,2)}`);if(g.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(!g.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof g.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${g}`)})}return zm=function(m){return(...g)=>{let b=s(...g),O=m.messageIds;n(b);let S;if(b.messageId){if(!O)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");let C=b.messageId;if(b.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!O||!Object.hasOwn(O,C))throw new TypeError(`context.report() called with a messageId of '${C}' which is not present in the 'messages' config: ${JSON.stringify(O,null,2)}`);S=O[C]}else if(b.message)S=b.message;else throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");return f(b.suggest,O),h({ruleId:m.ruleId,severity:m.severity,node:b.node,message:t(S,b.data),messageId:b.messageId,loc:i(b),fix:m.disableFixes?null:c(b,m.sourceCode),suggestions:m.disableFixes?[]:p(b,m.sourceCode,O)})}},zm}function s7(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Xm,NT;function i7(){if(NT)return Xm;NT=1;let r=Oi()("eslint:rules");class e extends Map{constructor(s){let n=s.length;super(r.enabled?s.map(([i,a])=>{let l=null;return[i,()=>(l||(r("Loading rule %o (remaining=%d)",i,--n),l=a()),l)]}):s),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(s){let n=super.get(s);return n&&n()}*values(){for(let s of super.values())yield s()}*entries(){for(let[s,n]of super.entries())yield[s,n()]}forEach(s,n){for(let[i,a]of super.entries())s.call(n,a(),i,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),Xm={LazyLoadingRuleMap:e},Xm}var Gm={exports:{}},Mo={},Ym={exports:{}},LT;function a7(){return LT||(LT=1,function(){function r(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 t(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 s(a){return t(a)||a!=null&&a.type==="FunctionDeclaration"}function n(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 l;if(a.type!=="IfStatement"||a.alternate==null)return!1;l=a.consequent;do{if(l.type==="IfStatement"&&l.alternate==null)return!0;l=n(l)}while(l);return!1}Ym.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}}()),Ym.exports}var Hm={exports:{}},$T;function rN(){return $T||($T=1,function(){var r,e,t,s,n,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]/},r={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(g){return 48<=g&&g<=57}function l(g){return 48<=g&&g<=57||97<=g&&g<=102||65<=g&&g<=70}function o(g){return g>=48&&g<=55}t=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&t.indexOf(g)>=0}function c(g){return g===10||g===13||g===8232||g===8233}function p(g){if(g<=65535)return String.fromCharCode(g);var b=String.fromCharCode(Math.floor((g-65536)/1024)+55296),O=String.fromCharCode((g-65536)%1024+56320);return b+O}for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function h(g){return g<128?s[g]:e.NonAsciiIdentifierStart.test(p(g))}function f(g){return g<128?n[g]:e.NonAsciiIdentifierPart.test(p(g))}function d(g){return g<128?s[g]:r.NonAsciiIdentifierStart.test(p(g))}function m(g){return g<128?n[g]:r.NonAsciiIdentifierPart.test(p(g))}Hm.exports={isDecimalDigit:a,isHexDigit:l,isOctalDigit:o,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:m}}()),Hm.exports}var Km={exports:{}},MT;function o7(){return MT||(MT=1,function(){var r=rN();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 t(h,f){return!f&&h==="yield"?!1:s(h,f)}function s(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 n(h,f){return h==="null"||h==="true"||h==="false"||t(h,f)}function i(h,f){return h==="null"||h==="true"||h==="false"||s(h,f)}function a(h){return h==="eval"||h==="arguments"}function l(h){var f,d,m;if(h.length===0||(m=h.charCodeAt(0),!r.isIdentifierStartES5(m)))return!1;for(f=1,d=h.length;f=d||(g=h.charCodeAt(f),!(56320<=g&&g<=57343)))return!1;m=o(m,g)}if(!b(m))return!1;b=r.isIdentifierPartES6}return!0}function c(h,f){return l(h)&&!n(h,f)}function p(h,f){return u(h)&&!i(h,f)}Km.exports={isKeywordES5:t,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:l,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}}()),Km.exports}var jT;function nN(){return jT||(jT=1,function(){Mo.ast=a7(),Mo.code=rN(),Mo.keyword=o7()}()),Mo}var Jm,qT;function sN(){return qT||(qT=1,Jm={LATEST_ECMA_VERSION:2024}),Jm}var QT;function De(){return QT||(QT=1,function(r){let{KEYS:e}=AO(),t=nN(),s=Oc(),n=Cc(),{breakableTypePattern:i,createGlobalLinebreakMatcher:a,lineBreakPattern:l,shebangPattern:o}=Sc(),u=VB(),{LATEST_ECMA_VERSION:c}=sN(),p=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,h=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,f=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,d=/Array$/u,m=/^(?:bind|call|apply)$/u,g=/^[\s*]*@this/mu,b=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,O=/^(?:eslint[- ]|(?:globals?|exported) )/u,S=new Set([`\r +`)},n=function(d){return d.length?d.split(/[ ]+/):[]},i=function(d){return d.join(" ")},a=function(d){return d.split("")},l=function(d){return d.join("")},o=function(d){return d.split("").reverse().join("")},u=f(function(d,m){var g,y;for(g="",y=0;y1?y:y.toLowerCase())}).replace(/^([A-Z]+)/,function(m,g){return g.length>1?g+"-":g.toLowerCase()})},Tm={split:r,join:e,lines:t,unlines:s,words:n,unwords:i,chars:a,unchars:l,reverse:o,repeat:u,capitalize:c,camelize:p,dasherize:h};function f(d,m){var g,y=function(b){return d.length>1?function(){var v=b?b.concat():[];return g=this,v.push.apply(v,arguments)I?Q:I}),e=j(function(Q,I){return Q0?1:0},i=j(function(Q,I){return~~(Q/I)}),a=j(function(Q,I){return Q%I}),l=j(function(Q,I){return Math.floor(Q/I)}),o=j(function(Q,I){var N;return(Q%(N=I)+N)%N}),u=function(Q){return 1/Q},c=Math.PI,p=c*2,h=Math.exp,f=Math.sqrt,d=Math.log,m=j(function(Q,I){return Math.pow(Q,I)}),g=Math.sin,y=Math.tan,b=Math.cos,v=Math.asin,S=Math.acos,C=Math.atan,O=j(function(Q,I){return Math.atan2(Q,I)}),w=function(Q){return~~Q},E=Math.round,k=Math.ceil,A=Math.floor,D=function(Q){return Q!==Q},_=function(Q){return Q%2===0},B=function(Q){return Q%2!==0},T=j(function(Q,I){var N;for(Q=Math.abs(Q),I=Math.abs(I);I!==0;)N=Q%I,Q=I,I=N;return Q}),F=j(function(Q,I){return Math.abs(Math.floor(Q/T(Q,I)*I))}),Dm={max:r,min:e,negate:t,abs:s,signum:n,quot:i,rem:a,div:l,mod:o,recip:u,pi:c,tau:p,exp:h,sqrt:f,ln:d,pow:m,sin:g,tan:y,cos:b,acos:S,asin:v,atan:C,atan2:O,truncate:w,round:E,ceiling:k,floor:A,isItNaN:D,even:_,odd:B,gcd:T,lcm:F};function j(Q,I){var N,R=function(U){return Q.length>1?function(){var V=U?U.concat():[];return N=this,V.push.apply(V,arguments)1?function(){var g=m?m.concat():[];return f=this,g.push.apply(g,arguments)|"+r.source+"|\\S","g"),Rm.exports=function(d){var m,g;if(!d.length)throw new Error("No type specified.");if(m=d.match(e)||[],f("->",m))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(m)}catch(y){throw g=y,new Error(g.message+" - Remaining tokens: "+JSON.stringify(m)+" - Initial input: '"+d+"'")}};function f(d,m){for(var g=-1,y=m.length>>>0;++g{if(!u)return;let[c,p=null]=u.split(":");l[c]={value:p,comment:a}}),l}parseJsonConfig(i,a){s("Parsing JSON config");try{let o=r.parse("Object",i)||{};if(e.isEverySeverityValid(o))return{success:!0,config:o}}catch{s("Levn parsing failed; falling back to manual parsing.")}let l=i.replace(/([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/(\]|[0-9])\s+(?=")/u,"$1,");try{return{success:!0,config:JSON.parse(`{${l}}`)}}catch(o){return s("Manual parsing failed."),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:`Failed to parse JSON from '${l}': ${o.message}`,line:a.start.line,column:a.start.column+1,nodeType:null}}}}parseListConfig(i){s("Parsing list config");let a={};return i.split(",").forEach(l=>{let o=l.trim().replace(/^(?['"]?)(?.*)\k$/us,"$");o&&(a[o]=!0)}),a}extractDirectiveComment(i){let a=/\s-{2,}\s/u.exec(i);if(!a)return{directivePart:i.trim(),justificationPart:""};let l=i.slice(0,a.index).trim(),o=i.slice(a.index+a[0].length).trim();return{directivePart:l,justificationPart:o}}parseDirective(i){let{directivePart:a}=this.extractDirectiveComment(i.value),l=t.exec(a),o=l[1],u=a.slice(l.index+o.length);return{directiveText:o,directiveValue:u}}},Nm}var Lm,ST;function z4(){if(ST)return Lm;ST=1;let{isCommentToken:r}=hr(),e=I4(),t=vc(),s=DO(),n=QB(),{directivesPattern:i}=Oc(),a=N4(),l=WB(),o=XB(),u=_B(),c=new o,p=["onCodePathStart","onCodePathEnd","onCodePathSegmentStart","onCodePathSegmentEnd","onCodePathSegmentLoop","onUnreachableCodePathSegmentStart","onUnreachableCodePathSegmentEnd"];function h(A){if(!A.tokens)throw new Error("AST is missing the tokens array.");if(!A.comments)throw new Error("AST is missing the comments array.");if(!A.loc)throw new Error("AST is missing location information.");if(!A.range)throw new Error("AST is missing range information")}function f(A){switch(A){case 3:return n.es3;case 5:return n.es5;default:return A<2015?n[`es${A+2009}`]:n[`es${A}`]}}function d(A){return A.type==="ExportDefaultDeclaration"||A.type==="ExportNamedDeclaration"||A.type==="ExportAllDeclaration"||A.type==="ExportSpecifier"}function m(A,D){let _=[],B=0,T=0;for(;B=D.length||B=D.range[0]||D.range[0]<=A.range[0]&&D.range[1]>=A.range[0]}function b(A,D,_,B){if(y(D,_))return!1;let[T,F]=D.range[1]<=_.range[0]?[D,_]:[_,D],j=A.getLastToken(T)||T,Q=A.getFirstToken(F)||F,I=j;for(;I!==Q;){let N=A.getTokenAfter(I,{includeComments:!0});if(I.range[1]!==N.range[0]||B&&N!==Q&&N.type==="JSXText"&&/\s/u.test(N.value))return!0;I=N}return!1}function v(A,D={},_={}){for(let B of new Set([...Object.keys(D),...Object.keys(_)])){let T=D[B]===void 0?void 0:g(D[B]),j=_[B]&&_[B].value||T,Q=_[B]&&_[B].comments;if(j==="off")continue;let I=A.set.get(B);I||(I=new u.Variable(B,A),A.variables.push(I),A.set.set(B,I)),I.eslintImplicitGlobalSetting=T,I.eslintExplicitGlobal=Q!==void 0,I.eslintExplicitGlobalComments=Q,I.writeable=j==="writable"}A.through=A.through.filter(B=>{let T=B.identifier.name,F=A.set.get(T);return F?(B.resolved=F,F.references.push(B),!1):!0})}function S(A,D){Object.keys(D).forEach(_=>{let B=A.set.get(_);B&&(B.eslintUsed=!0,B.eslintExported=!0)})}let C={visit:1,call:2};class O{type;kind;target;phase;args;constructor({type:D,target:_,phase:B,args:T}){this.type=D,this.kind=C[D],this.target=_,this.phase=B,this.args=T}}class w{type;node;value;justification;constructor({type:D,node:_,value:B,justification:T}){this.type=D,this.node=_,this.value=B,this.justification=T}}let E=Symbol("caches");class k extends e{#e;constructor(D,_){let B,T,F,j,Q;typeof D=="string"?(B=D,T=_):typeof D=="object"&&D!==null&&(B=D.text,T=D.ast,F=D.parserServices,j=D.scopeManager,Q=D.visitorKeys),h(T),super(T.tokens,T.comments),this[E]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0]]),this.hasBOM=B.charCodeAt(0)===65279,this.text=this.hasBOM?B.slice(1):B,this.ast=T,this.parserServices=F||{},this.scopeManager=j||null,this.visitorKeys=Q||s.DEFAULT_VISITOR_KEYS;let I=this.text.match(t.shebangPattern);I&&T.comments.length&&T.comments[0].value===I[1]&&(T.comments[0].type="Shebang"),this.tokensAndComments=m(T.tokens,T.comments),this.lines=[],this.lineStartIndices=[0];let R=t.createGlobalLinebreakMatcher(),U;for(;U=R.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),U.index)),this.lineStartIndices.push(U.index+U[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(D){return D.split(t.createGlobalLinebreakMatcher())}getText(D,_,B){return D?this.text.slice(Math.max(D.range[0]-(_||0),0),D.range[1]+(B||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(D){let _=T=>{let F=this.getTokenBefore(T,{includeComments:!0});return F&&r(F)&&F.type==="Block"&&F.value.charAt(0)==="*"&&T.loc.start.line-F.loc.end.line<=1?F:null},B=D.parent;switch(D.type){case"ClassDeclaration":case"FunctionDeclaration":return _(d(B)?B:D);case"ClassExpression":return _(B.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(B.type!=="CallExpression"&&B.type!=="NewExpression"){for(;!this.getCommentsBefore(B).length&&!/Function/u.test(B.type)&&B.type!=="MethodDefinition"&&B.type!=="Property"&&(B=B.parent,!!B););if(B&&B.type!=="FunctionDeclaration"&&B.type!=="Program")return _(B)}return _(D);default:return null}}getNodeByRangeIndex(D){let _=null;return s.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(B){B.range[0]<=D&&Dthis.text.length)throw new RangeError(`Index out of range (requested index ${D}, but source text has length ${this.text.length}).`);if(D===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let _=D>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:this.lineStartIndices.findIndex(B=>Dthis.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${D.line} requested, but only ${this.lineStartIndices.length} lines present).`);let _=this.lineStartIndices[D.line-1],B=D.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[D.line],T=_+D.column;if(D.line===this.lineStartIndices.length&&T>B||D.line=B)throw new RangeError(`Column number out of range (column ${D.column} requested, but the length of line ${D.line} is ${B-_}).`);return T}getScope(D){if(!D)throw new TypeError("Missing required argument: node.");let _=this[E].get("scopes"),B=_.get(D);if(B)return B;let T=D.type!=="Program";for(let F=D;F;F=F.parent){let j=this.scopeManager.acquire(F,T);if(j)return j.type==="function-expression-name"?(_.set(D,j.childScopes[0]),j.childScopes[0]):(_.set(D,j),j)}return _.set(D,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(D){return this.scopeManager.getDeclaredVariables(D)}getAncestors(D){if(!D)throw new TypeError("Missing required argument: node.");let _=[];for(let B=D.parent;B;B=B.parent)_.push(B);return _.reverse()}markVariableAsUsed(D,_=this.ast){let B=this.getScope(_),T=B;B.type==="global"&&B.childScopes.length>0&&B.childScopes[0].block===this.ast&&(T=B.childScopes[0]);for(let F=T;F;F=F.upper){let j=F.variables.find(Q=>Q.name===D);if(j)return j.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let D=this[E].get("configNodes");return D||(D=this.ast.comments.filter(_=>{if(_.type==="Shebang")return!1;let{directivePart:B}=c.extractDirectiveComment(_.value),T=i.exec(B);return T?_.type!=="Line"||!!/^eslint-disable-(next-)?line$/u.test(T[1]):!1}),this[E].set("configNodes",D),D)}getDisableDirectives(){let D=this[E].get("disableDirectives");if(D)return D;let _=[],B=[];this.getInlineConfigNodes().forEach(F=>{let{directivePart:j,justificationPart:Q}=c.extractDirectiveComment(F.value),I=i.exec(j);if(!I)return;let N=I[1],R=/^eslint-disable-(next-)?line$/u.test(N);if(F.type==="Line"&&!R)return;if(N==="eslint-disable-line"&&F.loc.start.line!==F.loc.end.line){let V=`${N} comment should not span multiple lines.`;_.push({ruleId:null,message:V,loc:F.loc});return}let U=j.slice(I.index+N.length);switch(N){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let V=N.slice(7);B.push(new w({type:V,node:F,value:U,justification:Q}))}}});let T={problems:_,directives:B};return this[E].set("disableDirectives",T),T}applyLanguageOptions(D){let _=Object.assign({},f(D.ecmaVersion),D.sourceType==="commonjs"?n.commonjs:void 0,D.globals);this[E].get("vars").set("configGlobals",_)}applyInlineConfig(){let D=[],_=[],B={},T=Object.create(null);this.getInlineConfigNodes().forEach(j=>{let{directiveText:Q,directiveValue:I}=c.parseDirective(j);switch(Q){case"exported":Object.assign(B,c.parseListConfig(I,j));break;case"globals":case"global":for(let[N,{value:R}]of Object.entries(c.parseStringConfig(I,j))){let U;try{U=g(R)}catch(V){D.push({ruleId:null,loc:j.loc,message:V.message});continue}T[N]?(T[N].comments.push(j),T[N].value=U):T[N]={comments:[j],value:U}}break;case"eslint":{let N=c.parseJsonConfig(I,j.loc);N.success?_.push({config:{rules:N.config},node:j}):D.push(N.error);break}}});let F=this[E].get("vars");return F.set("inlineGlobals",T),F.set("exportedVariables",B),{configs:_,problems:D}}finalize(){let D=this[E].get("vars"),_=this.scopeManager.scopes[0],B=D.get("configGlobals"),T=D.get("inlineGlobals"),F=D.get("exportedVariables");v(_,B,T),F&&S(_,F)}traverse(){if(this.#e)return this.#e;let D=this.#e=[],_=l(),B={enterNode(F){D.push(new O({type:"visit",target:F,phase:1,args:[F,F.parent]}))},leaveNode(F){D.push(new O({type:"visit",target:F,phase:2,args:[F,F.parent]}))},emitter:_};return this.ast.type==="Program"&&(B=new a(B),p.forEach(F=>{_.on(F,(...j)=>{D.push(new O({type:"call",target:F,args:j}))})})),s.traverse(this.ast,{enter(F,j){F.parent=j,B.enterNode(F)},leave(F){B.leaveNode(F)},visitorKeys:this.visitorKeys}),D}}return Lm=k,Lm}var $m,ET;function X4(){return ET||(ET=1,$m={SourceCode:z4()}),$m}var Mm,CT;function Sc(){return CT||(CT=1,Mm=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Mm}var jm,wT;function G4(){if(wT)return jm;wT=1;let r=Sc(),{Legacy:{ConfigOps:e}}=TO();function t(u,c){return u.line-c.line||u.column-c.column}function s(u){let c=new Map;for(let p of u){let{unprocessedDirective:{parentDirective:h}}=p;c.has(h)?c.get(h).push(p):c.set(h,[p])}return[...c.values()]}function n(u,c){let p=c.range[0]+2,h=/^\s*\S+\s+/u.exec(c.value)[0].length,f=c.value.slice(h).split(/\s-{2,}\s/u)[0].trimEnd();return u.map(d=>{let{ruleId:m}=d,y=new RegExp(String.raw`(?:^|\s*,\s*)(?['"]?)${r(m)}\k(?:\s*,\s*|$)`,"u").exec(f),b=y[0],v=h+y.index,S=v+b.length,C=b.indexOf(","),O=b.lastIndexOf(","),w,E;return C!==O?(w=v+C,E=v+O):(w=v,E=S),{description:`'${m}'`,fix:{range:[p+w,p+E],text:""},unprocessedDirective:d.unprocessedDirective}})}function i(u,c){let{range:p}=c,h=u.filter(f=>f.ruleId).map(f=>`'${f.ruleId}'`);return{description:h.length<=2?h.join(" or "):`${h.slice(0,h.length-1).join(", ")}, or ${h.at(-1)}`,fix:{range:p,text:" "},unprocessedDirective:u[0].unprocessedDirective}}function a(u){return s(u).flatMap(p=>{let{parentDirective:h}=p[0].unprocessedDirective,f=new Set(h.ruleIds);for(let d of p)f.delete(d.ruleId);return f.size?n(p,h.node):[i(p,h.node)]})}function l(u){let c=new Map,p=new Set;for(let h=u.length-1;h>=0;h--){let f=u[h];if(f.type==="disable"){if(c.size===0)continue;if(f.ruleId===null){for(let d of c.values())p.add(d);c.clear()}else{let d=c.get(f.ruleId);if(d)p.add(d);else{let m=c.get(null);m&&p.add(m)}}}else f.type==="enable"&&(f.ruleId===null?(c.clear(),c.set(null,f)):c.set(f.ruleId,f))}return p}function o(u){let c=[],p=new Set;for(let g of u.problems){let y=[],b=0;for(;b0){let v=y.map(S=>({kind:"directive",justification:S.unprocessedDirective.justification}));g.suppressions?g.suppressions=g.suppressions.concat(v):(g.suppressions=v,p.add(y.at(-1)))}c.push(g)}let h=u.directives.filter(g=>g.type==="disable"&&!p.has(g)&&!u.rulesToIgnore.has(g.ruleId)),f=new Set(u.directives.filter(g=>g.unprocessedDirective.type==="enable"&&!u.rulesToIgnore.has(g.ruleId)));if(f.size>0)for(let g of l(u.directives))f.delete(g);let m=a(h).concat(a(f)).map(({description:g,fix:y,unprocessedDirective:b})=>{let{parentDirective:v,type:S,line:C,column:O}=b,w;return S==="enable"?w=g?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${g}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":w=g?`Unused eslint-disable directive (no problems were reported from ${g}).`:"Unused eslint-disable directive (no problems were reported).",{ruleId:null,message:w,line:S==="disable-next-line"?v.node.loc.start.line:C,column:S==="disable-next-line"?v.node.loc.start.column+1:O,severity:u.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...u.disableFixes?{}:{fix:y}}});return{problems:c,unusedDirectives:m}}return jm=({directives:u,disableFixes:c,problems:p,configuredRules:h,ruleFilter:f,reportUnusedDisableDirectives:d="off"})=>{let m=u.filter(S=>S.type==="disable"||S.type==="enable").map(S=>Object.assign({},S,{unprocessedDirective:S})).sort(t),g=u.flatMap(S=>{switch(S.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:S.line,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+1,column:0,ruleId:S.ruleId,unprocessedDirective:S}];case"disable-next-line":return[{type:"disable",line:S.line+1,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+2,column:0,ruleId:S.ruleId,unprocessedDirective:S}];default:throw new TypeError(`Unrecognized directive type '${S.type}'`)}}).sort(t),y=h&&f?new Set(Object.keys(h).filter(S=>{let C=e.getRuleSeverity(h[S]);return C===0?!1:!f({severity:C,ruleId:S})})):new Set;y.size>0&&y.add(null);let b=o({problems:p,directives:m,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y}),v=o({problems:b.problems,directives:g,disableFixes:c,reportUnusedDisableDirectives:d,rulesToIgnore:y});return d!=="off"?v.problems.concat(b.unusedDirectives).concat(v.unusedDirectives).sort(t):v.problems},jm}function qo(r){return(qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(r)}function RO(r,e){return function(t){if(Array.isArray(t))return t}(r)||function(t,s){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,a,l,o,u=[],c=!0,p=!1;try{if(l=(n=n.call(t)).next,s!==0)for(;!(c=(i=l.call(n)).done)&&(u.push(i.value),u.length!==s);c=!0);}catch(h){p=!0,a=h}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(p)throw a}}return u}}(r,e)||GB(r,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Y4(r){return function(e){if(Array.isArray(e))return tO(e)}(r)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(r)||GB(r)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function GB(r,e){if(r){if(typeof r=="string")return tO(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?tO(r,e):void 0}}function tO(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t=0;--C)if(v[C].node===S)return!0;return!1}function y(v,S){return new f().traverse(v,S)}function b(v,S){var C;return C=function(O,w){var E,k,A,D;for(k=O.length,A=0;k;)w(O[D=A+(E=k>>>1)])?k=E:(A=D+1,k-=E+1);return A}(S,function(O){return O.range[0]>v.range[0]}),v.extendedRange=[v.range[0],v.range[1]],C!==S.length&&(v.extendedRange[1]=S[C].range[0]),(C-=1)>=0&&(v.extendedRange[0]=S[C].range[1]),v}return n={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"},a={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={Break:l={},Skip:o={},Remove:u={}},p.prototype.replace=function(v){this.parent[this.key]=v},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},f.prototype.path=function(){var v,S,C,O,w;function E(k,A){if(Array.isArray(A))for(C=0,O=A.length;C=0;)if(F=E[D=T[_]]){if(Array.isArray(F)){for(B=F.length;(B-=1)>=0;)if(F[B]&&!g(O,F[B])){if(m(k,T[_]))w=new h(F[B],[D,B],"Property",null);else{if(!d(F[B]))continue;w=new h(F[B],[D,B],null,null)}C.push(w)}}else if(d(F)){if(g(O,F))continue;C.push(new h(F,D,null,null))}}}}else if(w=O.pop(),A=this.__execute(S.leave,w),this.__state===l||A===l)return},f.prototype.replace=function(v,S){var C,O,w,E,k,A,D,_,B,T,F,j,Q;function I(N){var R,U,V,ae;if(N.ref.remove()){for(U=N.ref.key,ae=N.ref.parent,R=C.length;R--;)if((V=C[R]).ref&&V.ref.parent===ae){if(V.ref.key=0;)if(T=w[Q=B[D]])if(Array.isArray(T)){for(_=T.length;(_-=1)>=0;)if(T[_]){if(m(E,B[D]))A=new h(T[_],[Q,_],"Property",new p(T,_));else{if(!d(T[_]))continue;A=new h(T[_],[Q,_],null,new p(T,_))}C.push(A)}}else d(T)&&C.push(new h(T,Q,null,new p(w,Q)))}}else if(A=O.pop(),(k=this.__execute(S.leave,A))!==void 0&&k!==l&&k!==o&&k!==u&&A.ref.replace(k),this.__state!==u&&k!==u||I(A),this.__state===l||k===l)return j.root;return j.root},s.Syntax=n,s.traverse=y,s.replace=function(v,S){return new f().replace(v,S)},s.attachComments=function(v,S,C){var O,w,E,k,A=[];if(!v.range)throw new Error("attachComments needs range information");if(!C.length){if(S.length){for(E=0,w=S.length;ED.range[0]);)_.extendedRange[1]===D.range[0]?(D.leadingComments||(D.leadingComments=[]),D.leadingComments.push(_),A.splice(k,1)):k+=1;return k===A.length?i.Break:A[k].extendedRange[0]>D.range[1]?i.Skip:void 0}}),k=0,y(v,{leave:function(D){for(var _;kD.range[1]?i.Skip:void 0}}),v},s.VisitorKeys=a,s.VisitorOption=i,s.Controller=f,s.cloneEnvironment=function(){return t({})},s})(e)}),H4=YB(function(r){r.exports&&(r.exports=function(){function e(t,s,n,i){this.message=t,this.expected=s,this.found=n,this.location=i,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return function(t,s){function n(){this.constructor=t}n.prototype=s.prototype,t.prototype=new n}(e,Error),e.buildMessage=function(t,s){var n={literal:function(o){return'"'+a(o.text)+'"'},class:function(o){var u,c="";for(u=0;u0){for(u=1,c=1;u<~+.]/,f=ne([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),d=G(">",!1),m=G("~",!1),g=G("+",!1),y=G(",",!1),b=G("!",!1),v=G("*",!1),S=G("#",!1),C=G("[",!1),O=G("]",!1),w=/^[>","<","!"],!1,!1),k=G("=",!1),A=function(Oe){return(Oe||"")+"="},D=/^[><]/,_=ne([">","<"],!1,!1),B=G(".",!1),T=function(Oe,Ie,We){return{type:"attribute",name:Oe,operator:Ie,value:We}},F=G('"',!1),j=/^[^\\"]/,Q=ne(["\\",'"'],!0,!1),I=G("\\",!1),N={type:"any"},R=function(Oe,Ie){return Oe+Ie},U=function(Oe){return{type:"literal",value:(Ie=Oe.join(""),Ie.replace(/\\(.)/g,function(We,be){switch(be){case"b":return"\b";case"f":return"\f";case"n":return` +`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return be}}))};var Ie},V=G("'",!1),ae=/^[^\\']/,se=ne(["\\","'"],!0,!1),ve=/^[0-9]/,H=ne([["0","9"]],!1,!1),he=G("type(",!1),$=/^[^ )]/,pe=ne([" ",")"],!0,!1),K=G(")",!1),le=/^[imsu]/,xe=ne(["i","m","s","u"],!1,!1),Le=G("/",!1),qe=/^[^\/]/,rt=ne(["/"],!0,!1),ht=G(":not(",!1),pt=G(":matches(",!1),Et=G(":has(",!1),X=G(":first-child",!1),we=G(":last-child",!1),Ve=G(":nth-child(",!1),et=G(":nth-last-child(",!1),it=G(":",!1),st=G("statement",!0),Ct=G("expression",!0),bt=G("declaration",!0),Dt=G("function",!0),_t=G("pattern",!0),W=0,vt=[{line:1,column:1}],Ye=0,Kt=[],De={};if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');c=u[s.startRule]}function G(Oe,Ie){return{type:"literal",text:Oe,ignoreCase:Ie}}function ne(Oe,Ie,We){return{type:"class",parts:Oe,inverted:Ie,ignoreCase:We}}function ee(Oe){var Ie,We=vt[Oe];if(We)return We;for(Ie=Oe-1;!vt[Ie];)Ie--;for(We={line:(We=vt[Ie]).line,column:We.column};IeYe&&(Ye=W,Kt=[]),Kt.push(Oe))}function Z(){var Oe,Ie,We,be,re=30*W+0,Y=De[re];return Y?(W=Y.nextPos,Y.result):(Oe=W,(Ie=J())!==o&&(We=Ce())!==o&&J()!==o?Oe=Ie=(be=We).length===1?be[0]:{type:"matches",selectors:be}:(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o&&(Ie=void 0),Oe=Ie),De[re]={nextPos:W,result:Oe},Oe)}function J(){var Oe,Ie,We=30*W+1,be=De[We];if(be)return W=be.nextPos,be.result;for(Oe=[],t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p));Ie!==o;)Oe.push(Ie),t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p));return De[We]={nextPos:W,result:Oe},Oe}function ie(){var Oe,Ie,We,be=30*W+2,re=De[be];if(re)return W=re.nextPos,re.result;if(Ie=[],h.test(t.charAt(W))?(We=t.charAt(W),W++):(We=o,ce(f)),We!==o)for(;We!==o;)Ie.push(We),h.test(t.charAt(W))?(We=t.charAt(W),W++):(We=o,ce(f));else Ie=o;return Ie!==o&&(Ie=Ie.join("")),Oe=Ie,De[be]={nextPos:W,result:Oe},Oe}function de(){var Oe,Ie,We,be=30*W+3,re=De[be];return re?(W=re.nextPos,re.result):(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===62?(We=">",W++):(We=o,ce(d)),We!==o&&J()!==o?Oe=Ie="child":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===126?(We="~",W++):(We=o,ce(m)),We!==o&&J()!==o?Oe=Ie="sibling":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,(Ie=J())!==o?(t.charCodeAt(W)===43?(We="+",W++):(We=o,ce(g)),We!==o&&J()!==o?Oe=Ie="adjacent":(W=Oe,Oe=o)):(W=Oe,Oe=o),Oe===o&&(Oe=W,t.charCodeAt(W)===32?(Ie=" ",W++):(Ie=o,ce(p)),Ie!==o&&(We=J())!==o?Oe=Ie="descendant":(W=Oe,Oe=o)))),De[be]={nextPos:W,result:Oe},Oe)}function Ce(){var Oe,Ie,We,be,re,Y,fe,Se,Ee=30*W+4,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(Oe=W,(Ie=L())!==o){for(We=[],be=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?be=re=[re,Y,fe,Se]:(W=be,be=o)):(W=be,be=o);be!==o;)We.push(be),be=W,(re=J())!==o?(t.charCodeAt(W)===44?(Y=",",W++):(Y=o,ce(y)),Y!==o&&(fe=J())!==o&&(Se=L())!==o?be=re=[re,Y,fe,Se]:(W=be,be=o)):(W=be,be=o);We!==o?Oe=Ie=[Ie].concat(We.map(function(Ke){return Ke[3]})):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Ee]={nextPos:W,result:Oe},Oe}function L(){var Oe,Ie,We,be,re,Y,fe,Se=30*W+5,Ee=De[Se];if(Ee)return W=Ee.nextPos,Ee.result;if(Oe=W,(Ie=ue())!==o){for(We=[],be=W,(re=de())!==o&&(Y=ue())!==o?be=re=[re,Y]:(W=be,be=o);be!==o;)We.push(be),be=W,(re=de())!==o&&(Y=ue())!==o?be=re=[re,Y]:(W=be,be=o);We!==o?(fe=Ie,Oe=Ie=We.reduce(function(ze,Ke){return{type:Ke[0],left:ze,right:Ke[1]}},fe)):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Se]={nextPos:W,result:Oe},Oe}function ue(){var Oe,Ie,We,be,re,Y,fe,Se=30*W+6,Ee=De[Se];if(Ee)return W=Ee.nextPos,Ee.result;if(Oe=W,t.charCodeAt(W)===33?(Ie="!",W++):(Ie=o,ce(b)),Ie===o&&(Ie=null),Ie!==o){if(We=[],(be=Te())!==o)for(;be!==o;)We.push(be),be=Te();else We=o;We!==o?(re=Ie,fe=(Y=We).length===1?Y[0]:{type:"compound",selectors:Y},re&&(fe.subject=!0),Oe=Ie=fe):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Se]={nextPos:W,result:Oe},Oe}function Te(){var Oe,Ie=30*W+7,We=De[Ie];return We?(W=We.nextPos,We.result):((Oe=function(){var be,re,Y=30*W+8,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.charCodeAt(W)===42?(re="*",W++):(re=o,ce(v)),re!==o&&(re={type:"wildcard",value:re}),be=re,De[Y]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe=30*W+9,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(be=W,t.charCodeAt(W)===35?(re="#",W++):(re=o,ce(S)),re===o&&(re=null),re!==o&&(Y=ie())!==o?be=re={type:"identifier",value:Y}:(W=be,be=o),De[fe]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+10,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.charCodeAt(W)===91?(re="[",W++):(re=o,ce(C)),re!==o&&J()!==o&&(Y=function(){var ze,Ke,mt,Ot,Pt=30*W+14,xt=De[Pt];return xt?(W=xt.nextPos,xt.result):(ze=W,(Ke=Be())!==o&&J()!==o&&(mt=function(){var Ue,nt,Ge,Qe=30*W+12,ut=De[Qe];return ut?(W=ut.nextPos,ut.result):(Ue=W,t.charCodeAt(W)===33?(nt="!",W++):(nt=o,ce(b)),nt===o&&(nt=null),nt!==o?(t.charCodeAt(W)===61?(Ge="=",W++):(Ge=o,ce(k)),Ge!==o?(nt=A(nt),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o),De[Qe]={nextPos:W,result:Ue},Ue)}())!==o&&J()!==o?((Ot=function(){var Ue,nt,Ge,Qe,ut,dt=30*W+18,qt=De[dt];if(qt)return W=qt.nextPos,qt.result;if(Ue=W,t.substr(W,5)==="type("?(nt="type(",W+=5):(nt=o,ce(he)),nt!==o)if(J()!==o){if(Ge=[],$.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(pe)),Qe!==o)for(;Qe!==o;)Ge.push(Qe),$.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(pe));else Ge=o;Ge!==o&&(Qe=J())!==o?(t.charCodeAt(W)===41?(ut=")",W++):(ut=o,ce(K)),ut!==o?(nt={type:"type",value:Ge.join("")},Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;else W=Ue,Ue=o;return De[dt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Ge,Qe,ut,dt,qt=30*W+20,Qt=De[qt];if(Qt)return W=Qt.nextPos,Qt.result;if(Ue=W,t.charCodeAt(W)===47?(nt="/",W++):(nt=o,ce(Le)),nt!==o){if(Ge=[],qe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(rt)),Qe!==o)for(;Qe!==o;)Ge.push(Qe),qe.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(rt));else Ge=o;Ge!==o?(t.charCodeAt(W)===47?(Qe="/",W++):(Qe=o,ce(Le)),Qe!==o?((ut=function(){var jt,sr,ot=30*W+19,Nt=De[ot];if(Nt)return W=Nt.nextPos,Nt.result;if(jt=[],le.test(t.charAt(W))?(sr=t.charAt(W),W++):(sr=o,ce(xe)),sr!==o)for(;sr!==o;)jt.push(sr),le.test(t.charAt(W))?(sr=t.charAt(W),W++):(sr=o,ce(xe));else jt=o;return De[ot]={nextPos:W,result:jt},jt}())===o&&(ut=null),ut!==o?(dt=ut,nt={type:"regexp",value:new RegExp(Ge.join(""),dt?dt.join(""):"")},Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[qt]={nextPos:W,result:Ue},Ue}()),Ot!==o?(Ke=T(Ke,mt,Ot),ze=Ke):(W=ze,ze=o)):(W=ze,ze=o),ze===o&&(ze=W,(Ke=Be())!==o&&J()!==o&&(mt=function(){var Ue,nt,Ge,Qe=30*W+11,ut=De[Qe];return ut?(W=ut.nextPos,ut.result):(Ue=W,w.test(t.charAt(W))?(nt=t.charAt(W),W++):(nt=o,ce(E)),nt===o&&(nt=null),nt!==o?(t.charCodeAt(W)===61?(Ge="=",W++):(Ge=o,ce(k)),Ge!==o?(nt=A(nt),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o),Ue===o&&(D.test(t.charAt(W))?(Ue=t.charAt(W),W++):(Ue=o,ce(_))),De[Qe]={nextPos:W,result:Ue},Ue)}())!==o&&J()!==o?((Ot=function(){var Ue,nt,Ge,Qe,ut,dt,qt=30*W+15,Qt=De[qt];if(Qt)return W=Qt.nextPos,Qt.result;if(Ue=W,t.charCodeAt(W)===34?(nt='"',W++):(nt=o,ce(F)),nt!==o){for(Ge=[],j.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(Q)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Qe!==o;)Ge.push(Qe),j.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(Q)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Ge!==o?(t.charCodeAt(W)===34?(Qe='"',W++):(Qe=o,ce(F)),Qe!==o?(nt=U(Ge),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;if(Ue===o)if(Ue=W,t.charCodeAt(W)===39?(nt="'",W++):(nt=o,ce(V)),nt!==o){for(Ge=[],ae.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(se)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Qe!==o;)Ge.push(Qe),ae.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(se)),Qe===o&&(Qe=W,t.charCodeAt(W)===92?(ut="\\",W++):(ut=o,ce(I)),ut!==o?(t.length>W?(dt=t.charAt(W),W++):(dt=o,ce(N)),dt!==o?(ut=R(ut,dt),Qe=ut):(W=Qe,Qe=o)):(W=Qe,Qe=o));Ge!==o?(t.charCodeAt(W)===39?(Qe="'",W++):(Qe=o,ce(V)),Qe!==o?(nt=U(Ge),Ue=nt):(W=Ue,Ue=o)):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[qt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Ge,Qe,ut,dt,qt,Qt=30*W+16,jt=De[Qt];if(jt)return W=jt.nextPos,jt.result;for(Ue=W,nt=W,Ge=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));Qe!==o;)Ge.push(Qe),ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));if(Ge!==o?(t.charCodeAt(W)===46?(Qe=".",W++):(Qe=o,ce(B)),Qe!==o?nt=Ge=[Ge,Qe]:(W=nt,nt=o)):(W=nt,nt=o),nt===o&&(nt=null),nt!==o){if(Ge=[],ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H)),Qe!==o)for(;Qe!==o;)Ge.push(Qe),ve.test(t.charAt(W))?(Qe=t.charAt(W),W++):(Qe=o,ce(H));else Ge=o;Ge!==o?(dt=Ge,qt=(ut=nt)?[].concat.apply([],ut).join(""):"",nt={type:"literal",value:parseFloat(qt+dt.join(""))},Ue=nt):(W=Ue,Ue=o)}else W=Ue,Ue=o;return De[Qt]={nextPos:W,result:Ue},Ue}())===o&&(Ot=function(){var Ue,nt,Ge=30*W+17,Qe=De[Ge];return Qe?(W=Qe.nextPos,Qe.result):((nt=ie())!==o&&(nt={type:"literal",value:nt}),Ue=nt,De[Ge]={nextPos:W,result:Ue},Ue)}()),Ot!==o?(Ke=T(Ke,mt,Ot),ze=Ke):(W=ze,ze=o)):(W=ze,ze=o),ze===o&&(ze=W,(Ke=Be())!==o&&(Ke={type:"attribute",name:Ke}),ze=Ke)),De[Pt]={nextPos:W,result:ze},ze)}())!==o&&J()!==o?(t.charCodeAt(W)===93?(fe="]",W++):(fe=o,ce(O)),fe!==o?be=re=Y:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se,Ee,ze,Ke,mt=30*W+21,Ot=De[mt];if(Ot)return W=Ot.nextPos,Ot.result;if(be=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o)if((Y=ie())!==o){for(fe=[],Se=W,t.charCodeAt(W)===46?(Ee=".",W++):(Ee=o,ce(B)),Ee!==o&&(ze=ie())!==o?Se=Ee=[Ee,ze]:(W=Se,Se=o);Se!==o;)fe.push(Se),Se=W,t.charCodeAt(W)===46?(Ee=".",W++):(Ee=o,ce(B)),Ee!==o&&(ze=ie())!==o?Se=Ee=[Ee,ze]:(W=Se,Se=o);fe!==o?(Ke=Y,re={type:"field",name:fe.reduce(function(Pt,xt){return Pt+xt[0]+xt[1]},Ke)},be=re):(W=be,be=o)}else W=be,be=o;else W=be,be=o;return De[mt]={nextPos:W,result:be},be}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+22,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.substr(W,5)===":not("?(re=":not(",W+=5):(re=o,ce(ht)),re!==o&&J()!==o&&(Y=Ce())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?be=re={type:"not",selectors:Y}:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+23,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.substr(W,9)===":matches("?(re=":matches(",W+=9):(re=o,ce(pt)),re!==o&&J()!==o&&(Y=Ce())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?be=re={type:"matches",selectors:Y}:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se=30*W+24,Ee=De[Se];return Ee?(W=Ee.nextPos,Ee.result):(be=W,t.substr(W,5)===":has("?(re=":has(",W+=5):(re=o,ce(Et)),re!==o&&J()!==o&&(Y=Ce())!==o&&J()!==o?(t.charCodeAt(W)===41?(fe=")",W++):(fe=o,ce(K)),fe!==o?be=re={type:"has",selectors:Y}:(W=be,be=o)):(W=be,be=o),De[Se]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y=30*W+25,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.substr(W,12)===":first-child"?(re=":first-child",W+=12):(re=o,ce(X)),re!==o&&(re=$e(1)),be=re,De[Y]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y=30*W+26,fe=De[Y];return fe?(W=fe.nextPos,fe.result):(t.substr(W,11)===":last-child"?(re=":last-child",W+=11):(re=o,ce(we)),re!==o&&(re=Re(1)),be=re,De[Y]={nextPos:W,result:be},be)}())===o&&(Oe=function(){var be,re,Y,fe,Se,Ee=30*W+27,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(be=W,t.substr(W,11)===":nth-child("?(re=":nth-child(",W+=11):(re=o,ce(Ve)),re!==o)if(J()!==o){if(Y=[],ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H)),fe!==o)for(;fe!==o;)Y.push(fe),ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H));else Y=o;Y!==o&&(fe=J())!==o?(t.charCodeAt(W)===41?(Se=")",W++):(Se=o,ce(K)),Se!==o?(re=$e(parseInt(Y.join(""),10)),be=re):(W=be,be=o)):(W=be,be=o)}else W=be,be=o;else W=be,be=o;return De[Ee]={nextPos:W,result:be},be}())===o&&(Oe=function(){var be,re,Y,fe,Se,Ee=30*W+28,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(be=W,t.substr(W,16)===":nth-last-child("?(re=":nth-last-child(",W+=16):(re=o,ce(et)),re!==o)if(J()!==o){if(Y=[],ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H)),fe!==o)for(;fe!==o;)Y.push(fe),ve.test(t.charAt(W))?(fe=t.charAt(W),W++):(fe=o,ce(H));else Y=o;Y!==o&&(fe=J())!==o?(t.charCodeAt(W)===41?(Se=")",W++):(Se=o,ce(K)),Se!==o?(re=Re(parseInt(Y.join(""),10)),be=re):(W=be,be=o)):(W=be,be=o)}else W=be,be=o;else W=be,be=o;return De[Ee]={nextPos:W,result:be},be}())===o&&(Oe=function(){var be,re,Y,fe=30*W+29,Se=De[fe];return Se?(W=Se.nextPos,Se.result):(be=W,t.charCodeAt(W)===58?(re=":",W++):(re=o,ce(it)),re!==o?(t.substr(W,9).toLowerCase()==="statement"?(Y=t.substr(W,9),W+=9):(Y=o,ce(st)),Y===o&&(t.substr(W,10).toLowerCase()==="expression"?(Y=t.substr(W,10),W+=10):(Y=o,ce(Ct)),Y===o&&(t.substr(W,11).toLowerCase()==="declaration"?(Y=t.substr(W,11),W+=11):(Y=o,ce(bt)),Y===o&&(t.substr(W,8).toLowerCase()==="function"?(Y=t.substr(W,8),W+=8):(Y=o,ce(Dt)),Y===o&&(t.substr(W,7).toLowerCase()==="pattern"?(Y=t.substr(W,7),W+=7):(Y=o,ce(_t)))))),Y!==o?be=re={type:"class",name:Y}:(W=be,be=o)):(W=be,be=o),De[fe]={nextPos:W,result:be},be)}()),De[Ie]={nextPos:W,result:Oe},Oe)}function Be(){var Oe,Ie,We,be,re,Y,fe,Se,Ee=30*W+13,ze=De[Ee];if(ze)return W=ze.nextPos,ze.result;if(Oe=W,(Ie=ie())!==o){for(We=[],be=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?be=re=[re,Y]:(W=be,be=o);be!==o;)We.push(be),be=W,t.charCodeAt(W)===46?(re=".",W++):(re=o,ce(B)),re!==o&&(Y=ie())!==o?be=re=[re,Y]:(W=be,be=o);We!==o?(fe=Ie,Se=We,Oe=Ie=[].concat.apply([fe],Se).join("")):(W=Oe,Oe=o)}else W=Oe,Oe=o;return De[Ee]={nextPos:W,result:Oe},Oe}function $e(Oe){return{type:"nth-child",index:{type:"literal",value:Oe}}}function Re(Oe){return{type:"nth-last-child",index:{type:"literal",value:Oe}}}if((n=c())!==o&&W===t.length)return n;throw n!==o&&W0&&o(w,E,k))&&l(E[0],E.slice(1),k)};case"descendant":var u=Er(r.left),c=Er(r.right);return function(w,E,k){if(c(w,E,k)){for(var A=0,D=E.length;A":return function(w){return Cn(w,p)>r.value.value};case">=":return function(w){return Cn(w,p)>=r.value.value}}throw new Error("Unknown operator: ".concat(r.operator));case"sibling":var d=Er(r.left),m=Er(r.right);return function(w,E,k){return m(w,E,k)&&AT(w,d,E,"LEFT_SIDE",k)||r.left.subject&&d(w,E,k)&&AT(w,m,E,"RIGHT_SIDE",k)};case"adjacent":var g=Er(r.left),y=Er(r.right);return function(w,E,k){return y(w,E,k)&&PT(w,g,E,"LEFT_SIDE",k)||r.right.subject&&g(w,E,k)&&PT(w,y,E,"RIGHT_SIDE",k)};case"nth-child":var b=r.index.value,v=Er(r.right);return function(w,E,k){return v(w,E,k)&&TT(w,E,b,k)};case"nth-last-child":var S=-r.index.value,C=Er(r.right);return function(w,E,k){return C(w,E,k)&&TT(w,E,S,k)};case"class":var O=r.name.toLowerCase();return function(w,E){switch(O){case"statement":if(w.type.slice(-9)==="Statement")return!0;case"declaration":return w.type.slice(-11)==="Declaration";case"pattern":if(w.type.slice(-7)==="Pattern")return!0;case"expression":return w.type.slice(-10)==="Expression"||w.type.slice(-7)==="Literal"||w.type==="Identifier"&&(E.length===0||E[0].type!=="MetaProperty")||w.type==="MetaProperty";case"function":return w.type==="FunctionDeclaration"||w.type==="FunctionExpression"||w.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(r.name))}}throw new Error("Unknown selector type: ".concat(r.type))}function BO(r,e){var t=r.type;return e&&e.visitorKeys&&e.visitorKeys[t]?e.visitorKeys[t]:uc.VisitorKeys[t]?uc.VisitorKeys[t]:e&&typeof e.fallback=="function"?e.fallback(r):Object.keys(r).filter(function(s){return s!=="type"})}function rO(r){return r!==null&&qo(r)==="object"&&typeof r.type=="string"}function AT(r,e,t,s,n){var i=RO(t,1)[0];if(!i)return!1;for(var a=BO(i,n),l=0;l0&&rO(o[u-1])&&e(o[u-1],t,n)||s==="RIGHT_SIDE"&&u=0&&of.includes(d));return h}function s(p){switch(p.type){case"identifier":return[p.value];case"matches":{let h=p.selectors.map(s);return h.every(Boolean)?e(...h):null}case"compound":{let h=p.selectors.map(s).filter(f=>f);return h.length?t(...h):null}case"child":case"descendant":case"sibling":case"adjacent":return s(p.right);case"class":return p.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}function n(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return n(p.left)+n(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+n(f),0);case"attribute":case"field":case"nth-child":case"nth-last-child":return 1;default:return 0}}function i(p){switch(p.type){case"child":case"descendant":case"sibling":case"adjacent":return i(p.left)+i(p.right);case"compound":case"not":case"matches":return p.selectors.reduce((h,f)=>h+i(f),0);case"identifier":return 1;default:return 0}}function a(p,h){return p.attributeCount-h.attributeCount||p.identifierCount-h.identifierCount||(p.rawSelector<=h.rawSelector?-1:1)}function l(p){try{return r.parse(p.replace(/:exit$/u,""))}catch(h){throw h.location&&h.location.start&&typeof h.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${p}" at position ${h.location.start.offset}: ${h.message}`):h}}let o=new Map;function u(p){if(o.has(p))return o.get(p);let h=l(p),f={rawSelector:p,isExit:p.endsWith(":exit"),parsedSelector:h,listenerTypes:s(h),attributeCount:n(h),identifierCount:i(h)};return o.set(p,f),f}class c{constructor(h,f){this.emitter=h,this.esqueryOptions=f,this.currentAncestry=[],this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],h.eventNames().forEach(d=>{let m=u(d);if(m.listenerTypes){let y=m.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;m.listenerTypes.forEach(b=>{y.has(b)||y.set(b,[]),y.get(b).push(m)});return}(m.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(m)}),this.anyTypeEnterSelectors.sort(a),this.anyTypeExitSelectors.sort(a),this.enterSelectorsByNodeType.forEach(d=>d.sort(a)),this.exitSelectorsByNodeType.forEach(d=>d.sort(a))}applySelector(h,f){r.matches(h,f.parsedSelector,this.currentAncestry,this.esqueryOptions)&&this.emitter.emit(f.rawSelector,h)}applySelectors(h,f){let d=(f?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(h.type)||[],m=f?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,g=0,y=0;for(;g=d.length||y{let l=a.trim();return l in s?s[l]:i})}return Vm={getPlaceholderMatcher:r,interpolate:e},Vm}var Wm,FT;function t7(){if(FT)return Wm;FT=1;let r=Vo,e=J4(),{interpolate:t}=e7();function s(...d){return d.length===1?Object.assign({},d[0]):typeof d[1]=="string"?{node:d[0],message:d[1],data:d[2],fix:d[3]}:{node:d[0],loc:d[1],message:d[2],data:d[3],fix:d[4]}}function n(d){d.node?r(typeof d.node=="object","Node must be an object"):r(d.loc,"Node must be provided when reporting error if location is not provided")}function i(d){return d.loc?d.loc.start?d.loc:{start:d.loc,end:null}:d.node.loc}function a(d){return d?{range:[d.range[0],d.range[1]],text:d.text}:null}function l(d){d&&r(d.range&&typeof d.range[0]=="number"&&typeof d.range[1]=="number",`Fix has invalid range: ${JSON.stringify(d,null,2)}`)}function o(d,m){return d.range[0]-m.range[0]||d.range[1]-m.range[1]}function u(d,m){for(let C of d)l(C);if(d.length===0)return null;if(d.length===1)return a(d[0]);d.sort(o);let g=m.text,y=d[0].range[0],b=d.at(-1).range[1],v="",S=Number.MIN_SAFE_INTEGER;for(let C of d)r(C.range[0]>=S,"Fix objects must not be overlapped in a report."),C.range[0]>=0&&(v+=g.slice(Math.max(0,y,S),C.range[0])),v+=C.text,S=C.range[1];return v+=g.slice(Math.max(0,y,S),b),{range:[y,b],text:v}}function c(d,m){if(typeof d.fix!="function")return null;let g=d.fix(e);return g&&Symbol.iterator in g?u(Array.from(g),m):(l(g),a(g))}function p(d,m,g){return!d.suggest||!Array.isArray(d.suggest)?[]:d.suggest.map(y=>{let b=y.desc||g[y.messageId];return{...y,desc:t(b,y.data),fix:c(y,m)}}).filter(({fix:y})=>y)}function h(d){let m={ruleId:d.ruleId,severity:d.severity,message:d.message,line:d.loc.start.line,column:d.loc.start.column+1,nodeType:d.node&&d.node.type||null};return d.messageId&&(m.messageId=d.messageId),d.loc.end&&(m.endLine=d.loc.end.line,m.endColumn=d.loc.end.column+1),d.fix&&(m.fix=d.fix),d.suggestions&&d.suggestions.length>0&&(m.suggestions=d.suggestions),m}function f(d,m){d&&Array.isArray(d)&&d.forEach(g=>{if(g.messageId){let{messageId:y}=g;if(!m)throw new TypeError(`context.report() called with a suggest option with a messageId '${y}', but no messages were present in the rule metadata.`);if(!m[y])throw new TypeError(`context.report() called with a suggest option with a messageId '${y}' which is not present in the 'messages' config: ${JSON.stringify(m,null,2)}`);if(g.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(!g.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof g.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${g}`)})}return Wm=function(m){return(...g)=>{let y=s(...g),b=m.messageIds;n(y);let v;if(y.messageId){if(!b)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");let S=y.messageId;if(y.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!b||!Object.hasOwn(b,S))throw new TypeError(`context.report() called with a messageId of '${S}' which is not present in the 'messages' config: ${JSON.stringify(b,null,2)}`);v=b[S]}else if(y.message)v=y.message;else throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.");return f(y.suggest,b),h({ruleId:m.ruleId,severity:m.severity,node:y.node,message:t(v,y.data),messageId:y.messageId,loc:i(y),fix:m.disableFixes?null:c(y,m.sourceCode),suggestions:m.disableFixes?[]:p(y,m.sourceCode,b)})}},Wm}function r7(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Zm,RT;function n7(){if(RT)return Zm;RT=1;let r=bi()("eslint:rules");class e extends Map{constructor(s){let n=s.length;super(r.enabled?s.map(([i,a])=>{let l=null;return[i,()=>(l||(r("Loading rule %o (remaining=%d)",i,--n),l=a()),l)]}):s),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(s){let n=super.get(s);return n&&n()}*values(){for(let s of super.values())yield s()}*entries(){for(let[s,n]of super.entries())yield[s,n()]}forEach(s,n){for(let[i,a]of super.entries())s.call(n,a(),i,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),Zm={LazyLoadingRuleMap:e},Zm}var zm={exports:{}},Lo={},Xm={exports:{}},BT;function s7(){return BT||(BT=1,function(){function r(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 t(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 s(a){return t(a)||a!=null&&a.type==="FunctionDeclaration"}function n(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 l;if(a.type!=="IfStatement"||a.alternate==null)return!1;l=a.consequent;do{if(l.type==="IfStatement"&&l.alternate==null)return!0;l=n(l)}while(l);return!1}Xm.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}}()),Xm.exports}var Gm={exports:{}},NT;function eN(){return NT||(NT=1,function(){var r,e,t,s,n,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]/},r={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(g){return 48<=g&&g<=57}function l(g){return 48<=g&&g<=57||97<=g&&g<=102||65<=g&&g<=70}function o(g){return g>=48&&g<=55}t=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&t.indexOf(g)>=0}function c(g){return g===10||g===13||g===8232||g===8233}function p(g){if(g<=65535)return String.fromCharCode(g);var y=String.fromCharCode(Math.floor((g-65536)/1024)+55296),b=String.fromCharCode((g-65536)%1024+56320);return y+b}for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function h(g){return g<128?s[g]:e.NonAsciiIdentifierStart.test(p(g))}function f(g){return g<128?n[g]:e.NonAsciiIdentifierPart.test(p(g))}function d(g){return g<128?s[g]:r.NonAsciiIdentifierStart.test(p(g))}function m(g){return g<128?n[g]:r.NonAsciiIdentifierPart.test(p(g))}Gm.exports={isDecimalDigit:a,isHexDigit:l,isOctalDigit:o,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:m}}()),Gm.exports}var Ym={exports:{}},LT;function i7(){return LT||(LT=1,function(){var r=eN();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 t(h,f){return!f&&h==="yield"?!1:s(h,f)}function s(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 n(h,f){return h==="null"||h==="true"||h==="false"||t(h,f)}function i(h,f){return h==="null"||h==="true"||h==="false"||s(h,f)}function a(h){return h==="eval"||h==="arguments"}function l(h){var f,d,m;if(h.length===0||(m=h.charCodeAt(0),!r.isIdentifierStartES5(m)))return!1;for(f=1,d=h.length;f=d||(g=h.charCodeAt(f),!(56320<=g&&g<=57343)))return!1;m=o(m,g)}if(!y(m))return!1;y=r.isIdentifierPartES6}return!0}function c(h,f){return l(h)&&!n(h,f)}function p(h,f){return u(h)&&!i(h,f)}Ym.exports={isKeywordES5:t,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:a,isIdentifierNameES5:l,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}}()),Ym.exports}var $T;function tN(){return $T||($T=1,function(){Lo.ast=s7(),Lo.code=eN(),Lo.keyword=i7()}()),Lo}var Hm,MT;function rN(){return MT||(MT=1,Hm={LATEST_ECMA_VERSION:2024}),Hm}var jT;function Pe(){return jT||(jT=1,function(r){let{KEYS:e}=wO(),t=tN(),s=bc(),n=Sc(),{breakableTypePattern:i,createGlobalLinebreakMatcher:a,lineBreakPattern:l,shebangPattern:o}=vc(),u=QB(),{LATEST_ECMA_VERSION:c}=rN(),p=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,h=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,f=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,d=/Array$/u,m=/^(?:bind|call|apply)$/u,g=/^[\s*]*@this/mu,y=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,b=/^(?:eslint[- ]|(?:globals?|exported) )/u,v=new Set([`\r `,"\r",` -`,"\u2028","\u2029"]),C=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),k=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,E=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,A=new Set(["&&=","||=","??="]),w=u[`es${c}`];function P(M,fe,_e){let Le=M.identifier,je=fe===0||_e[fe-1].identifier!==Le;return Le&&M.init===!1&&M.isWrite()&&je}function T(M){return M[0]!==M[0].toLocaleLowerCase()}function I(M){return M.id&&T(M.id.name)}function F(M){for(let fe=M;fe;fe=fe.parent)if(p.test(fe.type))return fe;return null}function L(M){return!!(M&&p.test(M.type))}function _(M){return!!(M&&h.test(M.type))}function B(M){for(let fe=M;fe&&!L(fe);fe=fe.parent)if(_(fe))return!0;return!1}function Q(M){return M.type==="Literal"&&M.value===null&&!M.regex&&!M.bigint}function V(M){return Q(M)||M.type==="Identifier"&&M.name==="undefined"||M.type==="UnaryExpression"&&M.operator==="void"}function R(M){return M.parent.type==="CallExpression"&&M.parent.callee===M}function $(M){switch(M.type){case"Literal":if(M.value===null){if(Q(M))return String(M.value);if(M.regex)return`/${M.regex.pattern}/${M.regex.flags}`;if(M.bigint)return M.bigint}else return String(M.value);break;case"TemplateLiteral":if(M.expressions.length===0&&M.quasis.length===1)return M.quasis[0].value.cooked;break}return null}function N(M){let fe;switch(M&&M.type){case"ChainExpression":return N(M.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":fe=M.key;break;case"MemberExpression":fe=M.property;break}return fe?fe.type==="Identifier"&&!M.computed?fe.name:$(fe):null}function W(M){return M&&M.type==="ChainExpression"?M.expression:M}function Z(M,fe){return typeof fe=="string"?M===fe:fe.test(M)}function le(M,fe){return M.type==="Identifier"&&Z(M.name,fe)}function ae(M,fe,_e){let Le=W(M);if(Le.type!=="MemberExpression"||fe&&!le(Le.object,fe))return!1;if(_e){let je=N(Le);if(typeof je!="string"||!Z(je,_e))return!1}return!0}function Se(M,fe){return M.regex||fe.regex?!!(M.regex&&fe.regex&&M.regex.pattern===fe.regex.pattern&&M.regex.flags===fe.regex.flags):M.bigint||fe.bigint?M.bigint===fe.bigint:M.value===fe.value}function J(M,fe,_e=!1){if(M.type!==fe.type)return M.type==="ChainExpression"?J(M.expression,fe,_e):fe.type==="ChainExpression"?J(M,fe.expression,_e):!1;switch(M.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return M.name===fe.name;case"Literal":return Se(M,fe);case"ChainExpression":return J(M.expression,fe.expression,_e);case"MemberExpression":{if(!_e){let Le=N(M);if(Le!==null)return J(M.object,fe.object,_e)&&Le===N(fe)}return M.computed===fe.computed&&J(M.object,fe.object,_e)&&J(M.property,fe.property,_e)}default:return!1}}function me(M){return ae(M,"Reflect","apply")}function j(M){return ae(M,d,"from")}function de(M){return ae(M,null,f)}function ee(M){return fe=>!M(fe)}function ce(M,fe){let _e=fe.getJSDocComment(M);return _e&&g.test(_e.value)?!0:fe.getCommentsBefore(M).some(Le=>g.test(Le.value))}function ve(M,fe){let _e=M.getTokenBefore(fe),Le=M.getTokenAfter(fe);return!!(_e&&Le)&&_e.value==="("&&_e.range[1]<=fe.range[0]&&Le.value===")"&&Le.range[0]>=fe.range[1]}function Me(M){return M.value==="="&&M.type==="Punctuator"}function Ue(M){return M.value==="=>"&&M.type==="Punctuator"}function st(M){return M.value===","&&M.type==="Punctuator"}function mt(M){return M.value==="."&&M.type==="Punctuator"}function dt(M){return M.value==="?."&&M.type==="Punctuator"}function wt(M){return M.value===";"&&M.type==="Punctuator"}function Y(M){return M.value===":"&&M.type==="Punctuator"}function Ae(M){return M.value==="("&&M.type==="Punctuator"}function Ze(M){return M.value===")"&&M.type==="Punctuator"}function rt(M){return M.value==="["&&M.type==="Punctuator"}function ot(M){return M.value==="]"&&M.type==="Punctuator"}function at(M){return M.value==="{"&&M.type==="Punctuator"}function kt(M){return M.value==="}"&&M.type==="Punctuator"}function Ot(M){return M.type==="Line"||M.type==="Block"||M.type==="Shebang"}function It(M){return M.type==="Keyword"}function Ft(M,fe){if(M.type==="ArrowFunctionExpression"&&M.params.length===1){let _e=fe.getFirstToken(M.params[0]),Le=fe.getTokenBefore(_e);return Ae(Le)?Le:_e}return M.id?fe.getTokenAfter(M.id,Ae):fe.getFirstToken(M,Ae)}function z(M,fe,_e){let Le=_e.getTokens(M),je=_e.getTokens(fe);if(Le.length!==je.length)return!1;for(let Ne=0;NeLe.identifier===fe);return!!(_e&&_e.resolved&&_e.resolved.scope.type==="global"&&_e.resolved.defs.length===0)}function X(M,fe,_e){if(!fe)return!0;switch(fe.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return _e&&fe.quasis.some(Le=>Le.value.cooked.length)||fe.expressions.every(Le=>X(M,Le,!1));case"ArrayExpression":return _e?!0:fe.elements.every(Le=>X(M,Le,!1));case"UnaryExpression":return fe.operator==="void"||fe.operator==="typeof"&&_e?!0:fe.operator==="!"?X(M,fe.argument,!0):X(M,fe.argument,!1);case"BinaryExpression":return X(M,fe.left,!1)&&X(M,fe.right,!1)&&fe.operator!=="in";case"LogicalExpression":{let Le=X(M,fe.left,_e),je=X(M,fe.right,_e),Ne=Le&&ue(fe.left,fe.operator),Ee=_e&&je&&ue(fe.right,fe.operator);return Le&&je||Ne||Ee}case"NewExpression":return _e;case"AssignmentExpression":return fe.operator==="="?X(M,fe.right,_e):["||=","&&="].includes(fe.operator)&&_e?ue(fe.right,fe.operator.slice(0,-1)):!1;case"SequenceExpression":return X(M,fe.expressions.at(-1),_e);case"SpreadElement":return X(M,fe.argument,_e);case"CallExpression":return fe.callee.type==="Identifier"&&fe.callee.name==="Boolean"&&(fe.arguments.length===0||X(M,fe.arguments[0],!0))?pe(M,fe.callee):!1;case"Identifier":return fe.name==="undefined"&&pe(M,fe)}return!1}function te(M){if(M.type!=="ExpressionStatement")return!1;let fe=M.parent;return fe.type==="Program"||fe.type==="BlockStatement"&&L(fe.parent)}function oe(M){return M.type==="ExpressionStatement"&&typeof M.directive=="string"}function ge(M){let fe=M.range[0],_e=M;for(;(_e=_e.parent)&&_e.range[0]===fe;)if(_e.type==="ExpressionStatement")return!0;return!1}let ke;{let M=new Set(["BreakStatement","ContinueStatement"]),fe=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),_e=new Set(["Identifier","Keyword"]),Le={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},je=new Set([":",";","{","=>","++","--"]),Ne=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]);ke=function(Ee,Re){let ze=Ee.getTokenBefore(Re);if(!ze||ze.type==="Punctuator"&&je.has(ze.value))return!1;let Oe=Ee.getNodeByRangeIndex(ze.range[0]);if(Ze(ze))return!Ne.has(Oe.type);if(kt(ze))return Oe.type==="BlockStatement"&&Oe.parent.type==="FunctionExpression"||Oe.type==="ClassBody"&&Oe.parent.type==="ClassExpression"||Oe.type==="ObjectExpression";if(_e.has(ze.type)){if(M.has(Oe.parent.type))return!1;let se=ze.value,K=Le[se];return Oe.type!==K}return ze.type==="String"?!fe.has(Oe.parent.type):!0}}r.exports={COMMENTS_IGNORE_PATTERN:b,LINEBREAKS:S,LINEBREAK_MATCHER:l,SHEBANG_MATCHER:o,STATEMENT_LIST_PARENTS:C,ECMASCRIPT_GLOBALS:w,isTokenOnSameLine(M,fe){return M.loc.end.line===fe.loc.start.line},isNullOrUndefined:V,isCallee:R,isES5Constructor:I,getUpperFunction:F,isFunction:L,isLoop:_,isInLoop:B,isArrayFromMethod:j,isParenthesised:ve,createGlobalLinebreakMatcher:a,equalTokens:z,isArrowToken:Ue,isClosingBraceToken:kt,isClosingBracketToken:ot,isClosingParenToken:Ze,isColonToken:Y,isCommaToken:st,isCommentToken:Ot,isDotToken:mt,isQuestionDotToken:dt,isKeywordToken:It,isNotClosingBraceToken:ee(kt),isNotClosingBracketToken:ee(ot),isNotClosingParenToken:ee(Ze),isNotColonToken:ee(Y),isNotCommaToken:ee(st),isNotDotToken:ee(mt),isNotQuestionDotToken:ee(dt),isNotOpeningBraceToken:ee(at),isNotOpeningBracketToken:ee(rt),isNotOpeningParenToken:ee(Ae),isNotSemicolonToken:ee(wt),isOpeningBraceToken:at,isOpeningBracketToken:rt,isOpeningParenToken:Ae,isSemicolonToken:wt,isEqToken:Me,isStringLiteral(M){return M.type==="Literal"&&typeof M.value=="string"||M.type==="TemplateLiteral"},isBreakableStatement(M){return i.test(M.type)},getModifyingReferences(M){return M.filter(P)},isSurroundedBy(M,fe){return M[0]===fe&&M.at(-1)===fe},isDirectiveComment(M){let fe=M.value.trim();return M.type==="Line"&&fe.startsWith("eslint-")||M.type==="Block"&&O.test(fe)},getTrailingStatement:t.ast.trailingStatement,getVariableByName(M,fe){let _e=M;for(;_e;){let Le=_e.set.get(fe);if(Le)return Le;_e=_e.upper}return null},isDefaultThisBinding(M,fe,{capIsConstructor:_e=!0}={}){if(M.parent.type==="PropertyDefinition"&&M.parent.value===M||M.type==="StaticBlock"||_e&&I(M)||ce(M,fe))return!1;let Le=M.id===null,je=M;for(;je;){let Ne=je.parent;switch(Ne.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":je=Ne;break;case"ReturnStatement":{let Ee=F(Ne);if(Ee===null||!R(Ee))return!0;je=Ee.parent;break}case"ArrowFunctionExpression":if(je!==Ne.body||!R(Ne))return!0;je=Ne.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return Ne.value!==je;case"AssignmentExpression":case"AssignmentPattern":return!(Ne.left.type==="MemberExpression"||_e&&Le&&Ne.left.type==="Identifier"&&T(Ne.left.name));case"VariableDeclarator":return!(_e&&Le&&Ne.init===je&&Ne.id.type==="Identifier"&&T(Ne.id.name));case"MemberExpression":if(Ne.object===je&&ae(Ne,null,m)){let Ee=Ne.parent.type==="ChainExpression"?Ne.parent:Ne;return!(R(Ee)&&Ee.parent.arguments.length>=1&&!V(Ee.parent.arguments[0]))}return!0;case"CallExpression":return me(Ne.callee)?Ne.arguments.length!==3||Ne.arguments[0]!==je||V(Ne.arguments[1]):j(Ne.callee)?Ne.arguments.length!==3||Ne.arguments[1]!==je||V(Ne.arguments[2]):de(Ne.callee)?Ne.arguments.length!==2||Ne.arguments[0]!==je||V(Ne.arguments[1]):!0;default:return!0}}return!0},getPrecedence(M){switch(M.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(M.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(M.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 M.type in e?20:-1}},isEmptyBlock(M){return!!(M&&M.type==="BlockStatement"&&M.body.length===0)},isEmptyFunction(M){return L(M)&&r.exports.isEmptyBlock(M.body)},getDirectivePrologue(M){let fe=[];if(M.type==="Program"||M.type==="FunctionDeclaration"||M.type==="FunctionExpression"||M.type==="ArrowFunctionExpression"&&M.body.type==="BlockStatement"){let _e=M.type==="Program"?M.body:M.body.body;for(let Le of _e)if(Le.type==="ExpressionStatement"&&Le.expression.type==="Literal")fe.push(Le);else break}return fe},isDecimalInteger(M){return M.type==="Literal"&&typeof M.value=="number"&&k.test(M.raw)},isDecimalIntegerNumericToken(M){return M.type==="Numeric"&&k.test(M.value)},getFunctionNameWithKind(M){let fe=M.parent,_e=[];if((fe.type==="MethodDefinition"||fe.type==="PropertyDefinition")&&(fe.static&&_e.push("static"),!fe.computed&&fe.key.type==="PrivateIdentifier"&&_e.push("private")),M.async&&_e.push("async"),M.generator&&_e.push("generator"),fe.type==="Property"||fe.type==="MethodDefinition"){if(fe.kind==="constructor")return"constructor";fe.kind==="get"?_e.push("getter"):fe.kind==="set"?_e.push("setter"):_e.push("method")}else fe.type==="PropertyDefinition"?_e.push("method"):(M.type==="ArrowFunctionExpression"&&_e.push("arrow"),_e.push("function"));if(fe.type==="Property"||fe.type==="MethodDefinition"||fe.type==="PropertyDefinition")if(!fe.computed&&fe.key.type==="PrivateIdentifier")_e.push(`#${fe.key.name}`);else{let Le=N(fe);Le!==null?_e.push(`'${Le}'`):M.id&&_e.push(`'${M.id.name}'`)}else M.id&&_e.push(`'${M.id.name}'`);return _e.join(" ")},getFunctionHeadLoc(M,fe){let _e=M.parent,Le,je;if(_e.type==="Property"||_e.type==="MethodDefinition"||_e.type==="PropertyDefinition")Le=_e.loc.start,je=Ft(M,fe).loc.start;else if(M.type==="ArrowFunctionExpression"){let Ne=fe.getTokenBefore(M.body,Ue);Le=Ne.loc.start,je=Ne.loc.end}else Le=M.loc.start,je=Ft(M,fe).loc.start;return{start:Object.assign({},Le),end:Object.assign({},je)}},getNextLocation(M,{line:fe,column:_e}){return _eLe.range[0])&&(Le=Re)}}else Le=M;if(Le.type==="Shebang"||Le.type==="Hashbang")return!1;let je;if(typeof fe=="string"){let Ne;try{Ne=s.tokenize(fe,_e)}catch{return!1}let Ee=Ne.comments;if(je=Ne[0],Ee.length){let Re=Ee[0];(!je||Re.range[0]k.type==="Property"))}function g(C){let k=new Set(C.properties.filter(w=>w.type==="Property"&&w.kind==="init"&&!w.computed).map(({key:w})=>w.name)),E=k.has("get"),A=k.has("set");u&&A&&!E&&h(C,"missingGetter"),o&&E&&!A&&h(C,"missingSetter")}function b(C){m(C),i(C)&&g(C)}function O(C){let k=C.body.filter(E=>E.type==="MethodDefinition");d(k.filter(E=>E.static)),d(k.filter(E=>!E.static))}let S={};return(u||o)&&(S.ObjectExpression=b,c&&(S.ClassBody=O)),S}},eg}var tg,VT;function u7(){if(VT)return tg;VT=1;let r=De();return tg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode;function s(c){let p=!1,h=!1,f;return c?c==="consistent"?(p=!0,f=Number.POSITIVE_INFINITY):c==="always"||c.minItems===0?f=0:c==="never"?f=Number.POSITIVE_INFINITY:(h=!!c.multiline,f=c.minItems||Number.POSITIVE_INFINITY):(p=!1,h=!0,f=Number.POSITIVE_INFINITY),{consistent:p,multiline:h,minItems:f}}function n(c){let p=s(c);return{ArrayExpression:p,ArrayPattern:p}}function i(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedOpeningLinebreak",fix(h){let f=t.getTokenAfter(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([p.range[1],f.range[0]])}})}function a(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedClosingLinebreak",fix(h){let f=t.getTokenBefore(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([f.range[1],p.range[0]])}})}function l(c,p){e.report({node:c,loc:p.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(p,` +`,"\u2028","\u2029"]),S=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),C=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,O=/^(?:[^\\]|\\.)*\\(?:[1-9]|0[0-9])/su,w=new Set(["&&=","||=","??="]),E=u[`es${c}`];function k(L,ue,Te){let Be=L.identifier,$e=ue===0||Te[ue-1].identifier!==Be;return Be&&L.init===!1&&L.isWrite()&&$e}function A(L){return L[0]!==L[0].toLocaleLowerCase()}function D(L){return L.id&&A(L.id.name)}function _(L){for(let ue=L;ue;ue=ue.parent)if(p.test(ue.type))return ue;return null}function B(L){return!!(L&&p.test(L.type))}function T(L){return!!(L&&h.test(L.type))}function F(L){for(let ue=L;ue&&!B(ue);ue=ue.parent)if(T(ue))return!0;return!1}function j(L){return L.type==="Literal"&&L.value===null&&!L.regex&&!L.bigint}function Q(L){return j(L)||L.type==="Identifier"&&L.name==="undefined"||L.type==="UnaryExpression"&&L.operator==="void"}function I(L){return L.parent.type==="CallExpression"&&L.parent.callee===L}function N(L){switch(L.type){case"Literal":if(L.value===null){if(j(L))return String(L.value);if(L.regex)return`/${L.regex.pattern}/${L.regex.flags}`;if(L.bigint)return L.bigint}else return String(L.value);break;case"TemplateLiteral":if(L.expressions.length===0&&L.quasis.length===1)return L.quasis[0].value.cooked;break}return null}function R(L){let ue;switch(L&&L.type){case"ChainExpression":return R(L.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":ue=L.key;break;case"MemberExpression":ue=L.property;break}return ue?ue.type==="Identifier"&&!L.computed?ue.name:N(ue):null}function U(L){return L&&L.type==="ChainExpression"?L.expression:L}function V(L,ue){return typeof ue=="string"?L===ue:ue.test(L)}function ae(L,ue){return L.type==="Identifier"&&V(L.name,ue)}function se(L,ue,Te){let Be=U(L);if(Be.type!=="MemberExpression"||ue&&!ae(Be.object,ue))return!1;if(Te){let $e=R(Be);if(typeof $e!="string"||!V($e,Te))return!1}return!0}function ve(L,ue){return L.regex||ue.regex?!!(L.regex&&ue.regex&&L.regex.pattern===ue.regex.pattern&&L.regex.flags===ue.regex.flags):L.bigint||ue.bigint?L.bigint===ue.bigint:L.value===ue.value}function H(L,ue,Te=!1){if(L.type!==ue.type)return L.type==="ChainExpression"?H(L.expression,ue,Te):ue.type==="ChainExpression"?H(L,ue.expression,Te):!1;switch(L.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return L.name===ue.name;case"Literal":return ve(L,ue);case"ChainExpression":return H(L.expression,ue.expression,Te);case"MemberExpression":{if(!Te){let Be=R(L);if(Be!==null)return H(L.object,ue.object,Te)&&Be===R(ue)}return L.computed===ue.computed&&H(L.object,ue.object,Te)&&H(L.property,ue.property,Te)}default:return!1}}function he(L){return se(L,"Reflect","apply")}function $(L){return se(L,d,"from")}function pe(L){return se(L,null,f)}function K(L){return ue=>!L(ue)}function le(L,ue){let Te=ue.getJSDocComment(L);return Te&&g.test(Te.value)?!0:ue.getCommentsBefore(L).some(Be=>g.test(Be.value))}function xe(L,ue){let Te=L.getTokenBefore(ue),Be=L.getTokenAfter(ue);return!!(Te&&Be)&&Te.value==="("&&Te.range[1]<=ue.range[0]&&Be.value===")"&&Be.range[0]>=ue.range[1]}function Le(L){return L.value==="="&&L.type==="Punctuator"}function qe(L){return L.value==="=>"&&L.type==="Punctuator"}function rt(L){return L.value===","&&L.type==="Punctuator"}function ht(L){return L.value==="."&&L.type==="Punctuator"}function pt(L){return L.value==="?."&&L.type==="Punctuator"}function Et(L){return L.value===";"&&L.type==="Punctuator"}function X(L){return L.value===":"&&L.type==="Punctuator"}function we(L){return L.value==="("&&L.type==="Punctuator"}function Ve(L){return L.value===")"&&L.type==="Punctuator"}function et(L){return L.value==="["&&L.type==="Punctuator"}function it(L){return L.value==="]"&&L.type==="Punctuator"}function st(L){return L.value==="{"&&L.type==="Punctuator"}function Ct(L){return L.value==="}"&&L.type==="Punctuator"}function bt(L){return L.type==="Line"||L.type==="Block"||L.type==="Shebang"}function Dt(L){return L.type==="Keyword"}function _t(L,ue){if(L.type==="ArrowFunctionExpression"&&L.params.length===1){let Te=ue.getFirstToken(L.params[0]),Be=ue.getTokenBefore(Te);return we(Be)?Be:Te}return L.id?ue.getTokenAfter(L.id,we):ue.getFirstToken(L,we)}function W(L,ue,Te){let Be=Te.getTokens(L),$e=Te.getTokens(ue);if(Be.length!==$e.length)return!1;for(let Re=0;ReBe.identifier===ue);return!!(Te&&Te.resolved&&Te.resolved.scope.type==="global"&&Te.resolved.defs.length===0)}function Z(L,ue,Te){if(!ue)return!0;switch(ue.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return Te&&ue.quasis.some(Be=>Be.value.cooked.length)||ue.expressions.every(Be=>Z(L,Be,!1));case"ArrayExpression":return Te?!0:ue.elements.every(Be=>Z(L,Be,!1));case"UnaryExpression":return ue.operator==="void"||ue.operator==="typeof"&&Te?!0:ue.operator==="!"?Z(L,ue.argument,!0):Z(L,ue.argument,!1);case"BinaryExpression":return Z(L,ue.left,!1)&&Z(L,ue.right,!1)&&ue.operator!=="in";case"LogicalExpression":{let Be=Z(L,ue.left,Te),$e=Z(L,ue.right,Te),Re=Be&&oe(ue.left,ue.operator),Oe=Te&&$e&&oe(ue.right,ue.operator);return Be&&$e||Re||Oe}case"NewExpression":return Te;case"AssignmentExpression":return ue.operator==="="?Z(L,ue.right,Te):["||=","&&="].includes(ue.operator)&&Te?oe(ue.right,ue.operator.slice(0,-1)):!1;case"SequenceExpression":return Z(L,ue.expressions.at(-1),Te);case"SpreadElement":return Z(L,ue.argument,Te);case"CallExpression":return ue.callee.type==="Identifier"&&ue.callee.name==="Boolean"&&(ue.arguments.length===0||Z(L,ue.arguments[0],!0))?ce(L,ue.callee):!1;case"Identifier":return ue.name==="undefined"&&ce(L,ue)}return!1}function J(L){if(L.type!=="ExpressionStatement")return!1;let ue=L.parent;return ue.type==="Program"||ue.type==="BlockStatement"&&B(ue.parent)}function ie(L){return L.type==="ExpressionStatement"&&typeof L.directive=="string"}function de(L){let ue=L.range[0],Te=L;for(;(Te=Te.parent)&&Te.range[0]===ue;)if(Te.type==="ExpressionStatement")return!0;return!1}let Ce;{let L=new Set(["BreakStatement","ContinueStatement"]),ue=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),Te=new Set(["Identifier","Keyword"]),Be={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},$e=new Set([":",";","{","=>","++","--"]),Re=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]);Ce=function(Oe,Ie){let We=Oe.getTokenBefore(Ie);if(!We||We.type==="Punctuator"&&$e.has(We.value))return!1;let be=Oe.getNodeByRangeIndex(We.range[0]);if(Ve(We))return!Re.has(be.type);if(Ct(We))return be.type==="BlockStatement"&&be.parent.type==="FunctionExpression"||be.type==="ClassBody"&&be.parent.type==="ClassExpression"||be.type==="ObjectExpression";if(Te.has(We.type)){if(L.has(be.parent.type))return!1;let re=We.value,Y=Be[re];return be.type!==Y}return We.type==="String"?!ue.has(be.parent.type):!0}}r.exports={COMMENTS_IGNORE_PATTERN:y,LINEBREAKS:v,LINEBREAK_MATCHER:l,SHEBANG_MATCHER:o,STATEMENT_LIST_PARENTS:S,ECMASCRIPT_GLOBALS:E,isTokenOnSameLine(L,ue){return L.loc.end.line===ue.loc.start.line},isNullOrUndefined:Q,isCallee:I,isES5Constructor:D,getUpperFunction:_,isFunction:B,isLoop:T,isInLoop:F,isArrayFromMethod:$,isParenthesised:xe,createGlobalLinebreakMatcher:a,equalTokens:W,isArrowToken:qe,isClosingBraceToken:Ct,isClosingBracketToken:it,isClosingParenToken:Ve,isColonToken:X,isCommaToken:rt,isCommentToken:bt,isDotToken:ht,isQuestionDotToken:pt,isKeywordToken:Dt,isNotClosingBraceToken:K(Ct),isNotClosingBracketToken:K(it),isNotClosingParenToken:K(Ve),isNotColonToken:K(X),isNotCommaToken:K(rt),isNotDotToken:K(ht),isNotQuestionDotToken:K(pt),isNotOpeningBraceToken:K(st),isNotOpeningBracketToken:K(et),isNotOpeningParenToken:K(we),isNotSemicolonToken:K(Et),isOpeningBraceToken:st,isOpeningBracketToken:et,isOpeningParenToken:we,isSemicolonToken:Et,isEqToken:Le,isStringLiteral(L){return L.type==="Literal"&&typeof L.value=="string"||L.type==="TemplateLiteral"},isBreakableStatement(L){return i.test(L.type)},getModifyingReferences(L){return L.filter(k)},isSurroundedBy(L,ue){return L[0]===ue&&L.at(-1)===ue},isDirectiveComment(L){let ue=L.value.trim();return L.type==="Line"&&ue.startsWith("eslint-")||L.type==="Block"&&b.test(ue)},getTrailingStatement:t.ast.trailingStatement,getVariableByName(L,ue){let Te=L;for(;Te;){let Be=Te.set.get(ue);if(Be)return Be;Te=Te.upper}return null},isDefaultThisBinding(L,ue,{capIsConstructor:Te=!0}={}){if(L.parent.type==="PropertyDefinition"&&L.parent.value===L||L.type==="StaticBlock"||Te&&D(L)||le(L,ue))return!1;let Be=L.id===null,$e=L;for(;$e;){let Re=$e.parent;switch(Re.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":$e=Re;break;case"ReturnStatement":{let Oe=_(Re);if(Oe===null||!I(Oe))return!0;$e=Oe.parent;break}case"ArrowFunctionExpression":if($e!==Re.body||!I(Re))return!0;$e=Re.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return Re.value!==$e;case"AssignmentExpression":case"AssignmentPattern":return!(Re.left.type==="MemberExpression"||Te&&Be&&Re.left.type==="Identifier"&&A(Re.left.name));case"VariableDeclarator":return!(Te&&Be&&Re.init===$e&&Re.id.type==="Identifier"&&A(Re.id.name));case"MemberExpression":if(Re.object===$e&&se(Re,null,m)){let Oe=Re.parent.type==="ChainExpression"?Re.parent:Re;return!(I(Oe)&&Oe.parent.arguments.length>=1&&!Q(Oe.parent.arguments[0]))}return!0;case"CallExpression":return he(Re.callee)?Re.arguments.length!==3||Re.arguments[0]!==$e||Q(Re.arguments[1]):$(Re.callee)?Re.arguments.length!==3||Re.arguments[1]!==$e||Q(Re.arguments[2]):pe(Re.callee)?Re.arguments.length!==2||Re.arguments[0]!==$e||Q(Re.arguments[1]):!0;default:return!0}}return!0},getPrecedence(L){switch(L.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(L.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(L.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 L.type in e?20:-1}},isEmptyBlock(L){return!!(L&&L.type==="BlockStatement"&&L.body.length===0)},isEmptyFunction(L){return B(L)&&r.exports.isEmptyBlock(L.body)},getDirectivePrologue(L){let ue=[];if(L.type==="Program"||L.type==="FunctionDeclaration"||L.type==="FunctionExpression"||L.type==="ArrowFunctionExpression"&&L.body.type==="BlockStatement"){let Te=L.type==="Program"?L.body:L.body.body;for(let Be of Te)if(Be.type==="ExpressionStatement"&&Be.expression.type==="Literal")ue.push(Be);else break}return ue},isDecimalInteger(L){return L.type==="Literal"&&typeof L.value=="number"&&C.test(L.raw)},isDecimalIntegerNumericToken(L){return L.type==="Numeric"&&C.test(L.value)},getFunctionNameWithKind(L){let ue=L.parent,Te=[];if((ue.type==="MethodDefinition"||ue.type==="PropertyDefinition")&&(ue.static&&Te.push("static"),!ue.computed&&ue.key.type==="PrivateIdentifier"&&Te.push("private")),L.async&&Te.push("async"),L.generator&&Te.push("generator"),ue.type==="Property"||ue.type==="MethodDefinition"){if(ue.kind==="constructor")return"constructor";ue.kind==="get"?Te.push("getter"):ue.kind==="set"?Te.push("setter"):Te.push("method")}else ue.type==="PropertyDefinition"?Te.push("method"):(L.type==="ArrowFunctionExpression"&&Te.push("arrow"),Te.push("function"));if(ue.type==="Property"||ue.type==="MethodDefinition"||ue.type==="PropertyDefinition")if(!ue.computed&&ue.key.type==="PrivateIdentifier")Te.push(`#${ue.key.name}`);else{let Be=R(ue);Be!==null?Te.push(`'${Be}'`):L.id&&Te.push(`'${L.id.name}'`)}else L.id&&Te.push(`'${L.id.name}'`);return Te.join(" ")},getFunctionHeadLoc(L,ue){let Te=L.parent,Be,$e;if(Te.type==="Property"||Te.type==="MethodDefinition"||Te.type==="PropertyDefinition")Be=Te.loc.start,$e=_t(L,ue).loc.start;else if(L.type==="ArrowFunctionExpression"){let Re=ue.getTokenBefore(L.body,qe);Be=Re.loc.start,$e=Re.loc.end}else Be=L.loc.start,$e=_t(L,ue).loc.start;return{start:Object.assign({},Be),end:Object.assign({},$e)}},getNextLocation(L,{line:ue,column:Te}){return TeBe.range[0])&&(Be=Ie)}}else Be=L;if(Be.type==="Shebang"||Be.type==="Hashbang")return!1;let $e;if(typeof ue=="string"){let Re;try{Re=s.tokenize(ue,Te)}catch{return!1}let Oe=Re.comments;if($e=Re[0],Oe.length){let Ie=Oe[0];(!$e||Ie.range[0]<$e.range[0])&&($e=Ie)}}else $e=ue;if(Be.type==="Punctuator"||$e.type==="Punctuator"){if(Be.type==="Punctuator"&&$e.type==="Punctuator"){let Re=new Set(["+","++"]),Oe=new Set(["-","--"]);return!(Re.has(Be.value)&&Re.has($e.value)||Oe.has(Be.value)&&Oe.has($e.value))}return Be.type==="Punctuator"&&Be.value==="/"?!["Block","Line","RegularExpression"].includes($e.type):!0}return!!(Be.type==="String"||$e.type==="String"||Be.type==="Template"||$e.type==="Template"||Be.type!=="Numeric"&&$e.type==="Numeric"&&$e.value.startsWith(".")||Be.type==="Block"||$e.type==="Block"||$e.type==="Line"||$e.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(L,ue,Te){let Be=new RegExp(`[\\s,]${n(Te)}(?:$|[\\s,:])`,"gu");Be.lastIndex=ue.value.indexOf("global")+6;let $e=Be.exec(ue.value),Re=L.getLocFromIndex(ue.range[0]+2+($e?$e.index+1:0)),Oe={line:Re.line,column:Re.column+($e?Te.length:1)};return{start:Re,end:Oe}},hasOctalOrNonOctalDecimalEscapeSequence(L){return O.test(L)},isStaticTemplateLiteral(L){return L.type==="TemplateLiteral"&&L.expressions.length===0},isReferenceToGlobalVariable:ce,isLogicalExpression:vt,isCoalesceExpression:Ye,isMixedLogicalAndCoalesceExpressions:Kt,isNullLiteral:j,getStaticStringValue:N,getStaticPropertyName:R,skipChainExpression:U,isSpecificId:ae,isSpecificMemberAccess:se,equalLiteralValue:ve,isSameReference:H,isLogicalAssignmentOperator:De,getSwitchCaseColonToken:G,getModuleExportName:ne,isConstant:Z,isTopLevelExpressionStatement:J,isDirective:ie,isStartOfExpressionStatement:de,needsPrecedingSemicolon:Ce}}(zm)),zm.exports}var Km,qT;function a7(){if(qT)return Km;qT=1;let r=Pe();function e(a,l){if(a.length!==l.length)return!1;for(let o=0;oC.type==="Property"))}function g(S){let C=new Set(S.properties.filter(E=>E.type==="Property"&&E.kind==="init"&&!E.computed).map(({key:E})=>E.name)),O=C.has("get"),w=C.has("set");u&&w&&!O&&h(S,"missingGetter"),o&&O&&!w&&h(S,"missingSetter")}function y(S){m(S),i(S)&&g(S)}function b(S){let C=S.body.filter(O=>O.type==="MethodDefinition");d(C.filter(O=>O.static)),d(C.filter(O=>!O.static))}let v={};return(u||o)&&(v.ObjectExpression=y,c&&(v.ClassBody=b)),v}},Km}var Jm,QT;function o7(){if(QT)return Jm;QT=1;let r=Pe();return Jm={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode;function s(c){let p=!1,h=!1,f;return c?c==="consistent"?(p=!0,f=Number.POSITIVE_INFINITY):c==="always"||c.minItems===0?f=0:c==="never"?f=Number.POSITIVE_INFINITY:(h=!!c.multiline,f=c.minItems||Number.POSITIVE_INFINITY):(p=!1,h=!0,f=Number.POSITIVE_INFINITY),{consistent:p,multiline:h,minItems:f}}function n(c){let p=s(c);return{ArrayExpression:p,ArrayPattern:p}}function i(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedOpeningLinebreak",fix(h){let f=t.getTokenAfter(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([p.range[1],f.range[0]])}})}function a(c,p){e.report({node:c,loc:p.loc,messageId:"unexpectedClosingLinebreak",fix(h){let f=t.getTokenBefore(p,{includeComments:!0});return r.isCommentToken(f)?null:h.removeRange([f.range[1],p.range[0]])}})}function l(c,p){e.report({node:c,loc:p.loc,messageId:"missingOpeningLinebreak",fix(h){return h.insertTextAfter(p,` `)}})}function o(c,p){e.report({node:c,loc:p.loc,messageId:"missingClosingLinebreak",fix(h){return h.insertTextBefore(p,` -`)}})}function u(c){let p=c.elements,f=n(e.options[0])[c.type],d=t.getFirstToken(c),m=t.getLastToken(c),g=t.getTokenAfter(d,{includeComments:!0}),b=t.getTokenBefore(m,{includeComments:!0}),O=t.getTokenAfter(d),S=t.getTokenBefore(m);p.length>=f.minItems||f.multiline&&p.length>0&&g.loc.start.line!==b.loc.end.line||p.length===0&&g.type==="Block"&&g.loc.start.line!==b.loc.end.line&&g===b||f.consistent&&d.loc.end.line!==O.loc.start.line?(r.isTokenOnSameLine(d,O)&&l(c,d),r.isTokenOnSameLine(S,m)&&o(c,m)):(r.isTokenOnSameLine(d,O)||i(c,d),r.isTokenOnSameLine(S,m)||a(c,m))}return{ArrayPattern:u,ArrayExpression:u}}},tg}var rg,WT;function c7(){if(WT)return rg;WT=1;let r=De();return rg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]==="always",s=e.sourceCode;function n(f){return e.options[1]?e.options[1][f]===!t:!1}let i={spaced:t,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function a(f,d){let m=s.getTokenAfter(d);e.report({node:f,loc:{start:d.loc.end,end:m.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:d.value},fix(g){return g.removeRange([d.range[1],m.range[0]])}})}function l(f,d){let m=s.getTokenBefore(d);e.report({node:f,loc:{start:m.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:d.value},fix(g){return g.removeRange([m.range[1],d.range[0]])}})}function o(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceAfter",data:{tokenValue:d.value},fix(m){return m.insertTextAfter(d," ")}})}function u(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceBefore",data:{tokenValue:d.value},fix(m){return m.insertTextBefore(d," ")}})}function c(f){return f&&(f.type==="ObjectExpression"||f.type==="ObjectPattern")}function p(f){return f&&(f.type==="ArrayExpression"||f.type==="ArrayPattern")}function h(f){if(i.spaced&&f.elements.length===0)return;let d=s.getFirstToken(f),m=s.getFirstToken(f,1),g=f.typeAnnotation?s.getTokenBefore(f.typeAnnotation):s.getLastToken(f),b=s.getTokenBefore(g),O=f.elements[0],S=f.elements.at(-1),C=i.objectsInArraysException&&c(O)||i.arraysInArraysException&&p(O)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced,k=i.objectsInArraysException&&c(S)||i.arraysInArraysException&&p(S)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced;r.isTokenOnSameLine(d,m)&&(C&&!s.isSpaceBetweenTokens(d,m)&&o(f,d),!C&&s.isSpaceBetweenTokens(d,m)&&a(f,d)),d!==b&&r.isTokenOnSameLine(b,g)&&(k&&!s.isSpaceBetweenTokens(b,g)&&u(f,g),!k&&s.isSpaceBetweenTokens(b,g)&&l(f,g))}return{ArrayPattern:h,ArrayExpression:h}}},rg}var ng,ZT;function f7(){if(ZT)return ng;ZT=1;let r=De(),e=/^(?:Arrow)?FunctionExpression$/u,t=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function s(c){return r.isSpecificMemberAccess(c,null,t)}function n(c){for(let p of c)if(p.reachable)return!0;return!1}function i(c){return["from","of","isArray"].includes(c)?"Array.".concat(c):"Array.prototype.".concat(c)}function a(c){let p=c;for(;p;){let h=p.parent;switch(h.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":p=h;break;case"ReturnStatement":{let f=r.getUpperFunction(h);if(f===null||!r.isCallee(f))return null;p=f.parent;break}case"CallExpression":return r.isArrayFromMethod(h.callee)&&h.arguments.length>=2&&h.arguments[1]===p?"from":s(h.callee)&&h.arguments.length>=1&&h.arguments[0]===p?r.getStaticPropertyName(h.callee):null;default:return null}}return null}function l(c){return c.type==="UnaryExpression"&&c.operator==="void"}function o(c,p,h){let f=r.getPrecedence(p)b.type==="Keyword"&&b.value==="return"),m=c.getTokenAfter(d),g=d.value==="return"&&d.range[1]===m.range[0];return[h.insertTextBefore(m,`${g?" ":""}void ${f?"(":""}`),h.insertTextAfter(p,f?")":"")]}function u(c,p,h){let f=c.getTokenBefore(p.body,r.isArrowToken),d=c.getTokenAfter(f),m=c.getLastToken(p);return[h.insertTextBefore(d,"{"),h.insertTextAfter(m,"}")]}return ng={meta:{type:"problem",docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1},allowVoid:{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}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(c){let p=c.options[0]||{allowImplicit:!1,checkForEach:!1,allowVoid:!1},h=c.sourceCode,f={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function d(m){if(!f.shouldCheck)return;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.type==="ArrowFunctionExpression"&&m.expression)if(p.allowVoid){if(l(m.body))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(b){return u(h,m,b)}},{messageId:"prependVoid",fix(b){return o(h,m.body,b)}}]}else g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(b){return u(h,m,b)}}]}else m.body.type==="BlockStatement"&&n(f.currentSegments)&&(g.messageId=f.hasReturn?"expectedAtEnd":"expectedInside");if(g.messageId){let b=r.getFunctionNameWithKind(m);c.report({node:m,loc:r.getFunctionHeadLoc(m,h),messageId:g.messageId,data:{name:b,arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})}}return{onCodePathStart(m,g){let b=null;e.test(g.type)&&(b=a(g)),f={arrayMethodName:b,upper:f,codePath:m,hasReturn:!1,shouldCheck:b&&!g.async&&!g.generator,node:g,currentSegments:new Set}},onCodePathEnd(){f=f.upper},onUnreachableCodePathSegmentStart(m){f.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){f.currentSegments.delete(m)},onCodePathSegmentStart(m){f.currentSegments.add(m)},onCodePathSegmentEnd(m){f.currentSegments.delete(m)},ReturnStatement(m){if(!f.shouldCheck)return;f.hasReturn=!0;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.argument)if(p.allowVoid){if(l(m.argument))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"prependVoid",fix(b){return o(h,m.argument,b)}}]}else g.messageId="expectedNoReturnValue"}else!p.allowImplicit&&!m.argument&&(g.messageId="expectedReturnValue");g.messageId&&c.report({node:m,messageId:g.messageId,data:{name:r.getFunctionNameWithKind(f.node),arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})},"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d}}},ng}var sg,zT;function p7(){if(zT)return sg;zT=1;let r=De();return sg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/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}]}},type:"array",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(e){let t=e.sourceCode;function s(o){let u=!1,c=!1,p,h=o||"always";return!h||h==="always"||h.minItems===0?p=0:h==="never"?p=Number.POSITIVE_INFINITY:h==="consistent"?(u=!0,p=Number.POSITIVE_INFINITY):(c=!!h.multiline,p=h.minItems||Number.POSITIVE_INFINITY),{consistent:u,multiline:c,minItems:p}}function n(o){if(o&&(o.ArrayExpression||o.ArrayPattern)){let c,p;return o.ArrayExpression&&(c=s(o.ArrayExpression)),o.ArrayPattern&&(p=s(o.ArrayPattern)),{ArrayExpression:c,ArrayPattern:p}}let u=s(o);return{ArrayExpression:u,ArrayPattern:u}}function i(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"unexpectedLineBreak",fix(c){if(r.isCommentToken(u))return null;if(!r.isTokenOnSameLine(u,o))return c.replaceTextRange([u.range[1],o.range[0]]," ");let p=t.getTokenBefore(u,{includeComments:!0});return r.isCommentToken(p)?null:c.replaceTextRange([p.range[1],u.range[0]],"")}})}function a(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"missingLineBreak",fix(c){return c.replaceTextRange([u.range[1],o.range[0]],` -`)}})}function l(o){let u=o.elements,p=n(e.options[0])[o.type];if(!p)return;let h=!1;p.multiline&&(h=u.filter(m=>m!==null).some(m=>m.loc.start.line!==m.loc.end.line));let f=0;for(let m=0;m=p.minItems||p.multiline&&h||p.consistent&&f>0&&f{let b=u[g-1];if(g===0||m===null||b===null)return;let O=t.getFirstTokenBetween(b,m,r.isCommaToken),S=t.getTokenBefore(O),C=t.getTokenAfter(O);d?r.isTokenOnSameLine(S,C)&&a(C):r.isTokenOnSameLine(S,C)||i(C)})}return{ArrayPattern:l,ArrayExpression:l}}},sg}var ig,XT;function h7(){if(XT)return ig;XT=1;let r=De();return ig={meta:{type:"suggestion",docs:{description:"Require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options,s=t[0]==="always",n=!t[0]||t[0]==="as-needed",i=t[0]==="never",a=t[1]&&t[1].requireReturnForObjectLiteral,l=e.sourceCode,o=null;function u(f){return f&&f.type==="Punctuator"&&/^[([/`+-]/u.test(f.value)}function c(f){let d=f;for(;!r.isParenthesised(l,d);)d=d.parent;return l.getTokenAfter(d)}function p(f){return f&&f.parent?f.parent.type==="ForStatement"&&f.parent.init===f?!0:p(f.parent):!1}function h(f){let d=f.body;if(d.type==="BlockStatement"){let m=d.body;if(m.length!==1&&!i||n&&a&&m[0].type==="ReturnStatement"&&m[0].argument&&m[0].argument.type==="ObjectExpression")return;if(i||n&&m[0].type==="ReturnStatement"){let g;m.length===0?g="unexpectedEmptyBlock":m.length>1?g="unexpectedOtherBlock":m[0].argument===null?g="unexpectedSingleBlock":r.isOpeningBraceToken(l.getFirstToken(m[0],{skip:1}))?g="unexpectedObjectBlock":g="unexpectedSingleBlock",e.report({node:f,loc:d.loc,messageId:g,fix(b){let O=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||u(l.getTokenAfter(d)))return O;let S=l.getFirstToken(d),C=l.getLastToken(d),k=l.getFirstToken(m[0],1),E=l.getLastToken(m[0]);return l.commentsExistBetween(S,k)||l.commentsExistBetween(E,C)?O.push(b.remove(S),b.remove(C),b.remove(l.getTokenAfter(S))):O.push(b.removeRange([S.range[0],k.range[0]]),b.removeRange([E.range[1],C.range[1]])),(r.isOpeningBraceToken(k)||m[0].argument.type==="SequenceExpression"||o.hasInOperator&&p(f))&&(r.isParenthesised(l,m[0].argument)||O.push(b.insertTextBefore(k,"("),b.insertTextAfter(E,")"))),r.isSemicolonToken(E)&&O.push(b.remove(E)),O}})}}else(s||n&&a&&d.type==="ObjectExpression")&&e.report({node:f,loc:d.loc,messageId:"expectedBlock",fix(m){let g=[],b=l.getTokenBefore(d,r.isArrowToken),[O,S]=l.getTokensAfter(b,{count:2}),C=l.getLastToken(f),k=null;if(r.isOpeningParenToken(O)&&r.isOpeningBraceToken(S)){let E=l.getNodeByRangeIndex(S.range[0]);E.type==="ObjectExpression"&&(k=E)}if(k){let E=O,A=S;r.isTokenOnSameLine(E,A)?g.push(m.replaceText(E,"{return ")):g.push(m.replaceText(E,"{"),m.insertTextBefore(A,"return ")),g.push(m.remove(c(k))),g.push(m.insertTextAfter(C,"}"))}else g.push(m.insertTextBefore(O,"{return ")),g.push(m.insertTextAfter(C,"}"));return g}})}return{"BinaryExpression[operator='in']"(){let f=o;for(;f;)f.hasInOperator=!0,f=f.upper},ArrowFunctionExpression(){o={upper:o,hasInOperator:!1}},"ArrowFunctionExpression:exit"(f){h(f),o=o.upper}}}},ig}var ag,GT;function d7(){if(GT)return ag;GT=1;let r=De();function e(t){return t.body.type==="BlockStatement"}return ag={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0]==="as-needed",n=s&&t.options[1]&&t.options[1].requireForBlockBody===!0,i=t.sourceCode;function a(c){let p=i.getTokenBefore(c.params[0]);return p&&r.isOpeningParenToken(p)&&c.range[0]<=p.range[0]?p:null}function l(c){return i.getTokenAfter(c.params[0],r.isClosingParenToken)}function o(c,p){return i.commentsExistBetween(p,l(c))}function u(c,p){let h=c.async?1:0;return i.getFirstToken(c,{skip:h})!==p}return{"ArrowFunctionExpression[params.length=1]"(c){let p=!s||n&&e(c),h=a(c),f=h!==null,[d]=c.params;p&&!f&&t.report({node:c,messageId:n?"expectedParensBlock":"expectedParens",loc:d.loc,*fix(m){yield m.insertTextBefore(d,"("),yield m.insertTextAfter(d,")")}}),!p&&f&&d.type==="Identifier"&&!d.typeAnnotation&&!c.returnType&&!o(c,h)&&!u(c,h)&&t.report({node:c,messageId:n?"unexpectedParensInline":"unexpectedParens",loc:d.loc,*fix(m){let g=i.getTokenBefore(h),b=l(c);g&&g.range[1]===h.range[0]&&!r.canTokensBeAdjacent(g,i.getFirstToken(d))&&(yield m.insertTextBefore(h," ")),yield m.removeRange([h.range[0],d.range[0]]),yield m.removeRange([d.range[1],b.range[1]])}})}}}},ag}var og,YT;function m7(){if(YT)return og;YT=1;let r=De();return og={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=Object.assign({},e.options[0]);t.before=t.before!==!1,t.after=t.after!==!1;let s=e.sourceCode;function n(l){let o=s.getTokenBefore(l.body,r.isArrowToken);return{before:s.getTokenBefore(o),arrow:o,after:s.getTokenAfter(o)}}function i(l){let o=l.arrow.range[0]-l.before.range[1],u=l.after.range[0]-l.arrow.range[1];return{before:o,after:u}}function a(l){let o=n(l),u=i(o);t.before?u.before===0&&e.report({node:o.before,messageId:"expectedBefore",fix(c){return c.insertTextBefore(o.arrow," ")}}):u.before>0&&e.report({node:o.before,messageId:"unexpectedBefore",fix(c){return c.removeRange([o.before.range[1],o.arrow.range[0]])}}),t.after?u.after===0&&e.report({node:o.after,messageId:"expectedAfter",fix(c){return c.insertTextAfter(o.arrow," ")}}):u.after>0&&e.report({node:o.after,messageId:"unexpectedAfter",fix(c){return c.removeRange([o.arrow.range[1],o.after.range[0]])}})}return{ArrowFunctionExpression:a}}},og}var lg,HT;function g7(){return HT||(HT=1,lg={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(r){let e=[],t=r.sourceCode;function s(l){e.push(l.range)}function n(){e.pop()}function i(l,o){let u=l.identifier,c=o.name.loc.start;r.report({node:u,messageId:"outOfScope",data:{name:u.name,definitionLine:c.line,definitionColumn:c.column+1}})}function a(l){if(l.kind!=="var")return;let o=e.at(-1);function u(p){let h=p.identifier.range;return h[0]o[1]}let c=t.getDeclaredVariables(l);for(let p=0;pi(h,c[p].defs.find(f=>f.parent===l)))}return{Program(l){e=[l.range]},BlockStatement:s,"BlockStatement:exit":n,ForStatement:s,"ForStatement:exit":n,ForInStatement:s,"ForInStatement:exit":n,ForOfStatement:s,"ForOfStatement:exit":n,SwitchStatement:s,"SwitchStatement:exit":n,CatchClause:s,"CatchClause:exit":n,StaticBlock:s,"StaticBlock:exit":n,VariableDeclaration:a}}}),lg}var ug,KT;function y7(){if(KT)return ug;KT=1;let r=De();return ug={meta:{deprecated:!0,replacedBy:[],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/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){let t=e.options[0]!=="never",s=t?"missing":"extra",n=e.sourceCode;function i(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 a(o,u){return!r.isTokenOnSameLine(o,u)||n.isSpaceBetweenTokens(o,u)===t}function l(o){let u=i(o),c=n.getLastToken(o),p=n.getTokenAfter(u,{includeComments:!0}),h=n.getTokenBefore(c,{includeComments:!0});if(!(u.type!=="Punctuator"||u.value!=="{"||c.type!=="Punctuator"||c.value!=="}"||p===c)&&!(!t&&p.type==="Line")){if(!a(u,p)){let f=u.loc;s==="extra"&&(f={start:u.loc.end,end:p.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"after",token:u.value},fix(d){return t?d.insertTextBefore(p," "):d.removeRange([u.range[1],p.range[0]])}})}if(!a(h,c)){let f=c.loc;s==="extra"&&(f={start:h.loc.end,end:c.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"before",token:c.value},fix(d){return t?d.insertTextAfter(h," "):d.removeRange([h.range[1],c.range[0]])}})}}}return{BlockStatement:l,StaticBlock:l,SwitchStatement:l}}},ug}var cg,JT;function x7(){if(JT)return cg;JT=1;let r=De();return cg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||"1tbs",s=e.options[1]||{},n=e.sourceCode;function i(o,u){let c=[o.range[1],u.range[0]];return n.text.slice(c[0],c[1]).trim()?null:h=>h.replaceTextRange(c," ")}function a(o,u){let c=n.getTokenBefore(o),p=n.getTokenAfter(o),h=n.getTokenBefore(u),f=s.allowSingleLine&&r.isTokenOnSameLine(o,u);t!=="allman"&&!r.isTokenOnSameLine(c,o)&&e.report({node:o,messageId:"nextLineOpen",fix:i(c,o)}),t==="allman"&&r.isTokenOnSameLine(c,o)&&!f&&e.report({node:o,messageId:"sameLineOpen",fix:d=>d.insertTextBefore(o,` +`)}})}function u(c){let p=c.elements,f=n(e.options[0])[c.type],d=t.getFirstToken(c),m=t.getLastToken(c),g=t.getTokenAfter(d,{includeComments:!0}),y=t.getTokenBefore(m,{includeComments:!0}),b=t.getTokenAfter(d),v=t.getTokenBefore(m);p.length>=f.minItems||f.multiline&&p.length>0&&g.loc.start.line!==y.loc.end.line||p.length===0&&g.type==="Block"&&g.loc.start.line!==y.loc.end.line&&g===y||f.consistent&&d.loc.end.line!==b.loc.start.line?(r.isTokenOnSameLine(d,b)&&l(c,d),r.isTokenOnSameLine(v,m)&&o(c,m)):(r.isTokenOnSameLine(d,b)||i(c,d),r.isTokenOnSameLine(v,m)||a(c,m))}return{ArrayPattern:u,ArrayExpression:u}}},Jm}var eg,UT;function l7(){if(UT)return eg;UT=1;let r=Pe();return eg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]==="always",s=e.sourceCode;function n(f){return e.options[1]?e.options[1][f]===!t:!1}let i={spaced:t,singleElementException:n("singleValue"),objectsInArraysException:n("objectsInArrays"),arraysInArraysException:n("arraysInArrays")};function a(f,d){let m=s.getTokenAfter(d);e.report({node:f,loc:{start:d.loc.end,end:m.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:d.value},fix(g){return g.removeRange([d.range[1],m.range[0]])}})}function l(f,d){let m=s.getTokenBefore(d);e.report({node:f,loc:{start:m.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:d.value},fix(g){return g.removeRange([m.range[1],d.range[0]])}})}function o(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceAfter",data:{tokenValue:d.value},fix(m){return m.insertTextAfter(d," ")}})}function u(f,d){e.report({node:f,loc:d.loc,messageId:"missingSpaceBefore",data:{tokenValue:d.value},fix(m){return m.insertTextBefore(d," ")}})}function c(f){return f&&(f.type==="ObjectExpression"||f.type==="ObjectPattern")}function p(f){return f&&(f.type==="ArrayExpression"||f.type==="ArrayPattern")}function h(f){if(i.spaced&&f.elements.length===0)return;let d=s.getFirstToken(f),m=s.getFirstToken(f,1),g=f.typeAnnotation?s.getTokenBefore(f.typeAnnotation):s.getLastToken(f),y=s.getTokenBefore(g),b=f.elements[0],v=f.elements.at(-1),S=i.objectsInArraysException&&c(b)||i.arraysInArraysException&&p(b)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced,C=i.objectsInArraysException&&c(v)||i.arraysInArraysException&&p(v)||i.singleElementException&&f.elements.length===1?!i.spaced:i.spaced;r.isTokenOnSameLine(d,m)&&(S&&!s.isSpaceBetweenTokens(d,m)&&o(f,d),!S&&s.isSpaceBetweenTokens(d,m)&&a(f,d)),d!==y&&r.isTokenOnSameLine(y,g)&&(C&&!s.isSpaceBetweenTokens(y,g)&&u(f,g),!C&&s.isSpaceBetweenTokens(y,g)&&l(f,g))}return{ArrayPattern:h,ArrayExpression:h}}},eg}var tg,VT;function u7(){if(VT)return tg;VT=1;let r=Pe(),e=/^(?:Arrow)?FunctionExpression$/u,t=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function s(c){return r.isSpecificMemberAccess(c,null,t)}function n(c){for(let p of c)if(p.reachable)return!0;return!1}function i(c){return["from","of","isArray"].includes(c)?"Array.".concat(c):"Array.prototype.".concat(c)}function a(c){let p=c;for(;p;){let h=p.parent;switch(h.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":p=h;break;case"ReturnStatement":{let f=r.getUpperFunction(h);if(f===null||!r.isCallee(f))return null;p=f.parent;break}case"CallExpression":return r.isArrayFromMethod(h.callee)&&h.arguments.length>=2&&h.arguments[1]===p?"from":s(h.callee)&&h.arguments.length>=1&&h.arguments[0]===p?r.getStaticPropertyName(h.callee):null;default:return null}}return null}function l(c){return c.type==="UnaryExpression"&&c.operator==="void"}function o(c,p,h){let f=r.getPrecedence(p)y.type==="Keyword"&&y.value==="return"),m=c.getTokenAfter(d),g=d.value==="return"&&d.range[1]===m.range[0];return[h.insertTextBefore(m,`${g?" ":""}void ${f?"(":""}`),h.insertTextAfter(p,f?")":"")]}function u(c,p,h){let f=c.getTokenBefore(p.body,r.isArrowToken),d=c.getTokenAfter(f),m=c.getLastToken(p);return[h.insertTextBefore(d,"{"),h.insertTextAfter(m,"}")]}return tg={meta:{type:"problem",docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean",default:!1},checkForEach:{type:"boolean",default:!1},allowVoid:{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}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(c){let p=c.options[0]||{allowImplicit:!1,checkForEach:!1,allowVoid:!1},h=c.sourceCode,f={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function d(m){if(!f.shouldCheck)return;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.type==="ArrowFunctionExpression"&&m.expression)if(p.allowVoid){if(l(m.body))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(y){return u(h,m,y)}},{messageId:"prependVoid",fix(y){return o(h,m.body,y)}}]}else g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(y){return u(h,m,y)}}]}else m.body.type==="BlockStatement"&&n(f.currentSegments)&&(g.messageId=f.hasReturn?"expectedAtEnd":"expectedInside");if(g.messageId){let y=r.getFunctionNameWithKind(m);c.report({node:m,loc:r.getFunctionHeadLoc(m,h),messageId:g.messageId,data:{name:y,arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})}}return{onCodePathStart(m,g){let y=null;e.test(g.type)&&(y=a(g)),f={arrayMethodName:y,upper:f,codePath:m,hasReturn:!1,shouldCheck:y&&!g.async&&!g.generator,node:g,currentSegments:new Set}},onCodePathEnd(){f=f.upper},onUnreachableCodePathSegmentStart(m){f.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){f.currentSegments.delete(m)},onCodePathSegmentStart(m){f.currentSegments.add(m)},onCodePathSegmentEnd(m){f.currentSegments.delete(m)},ReturnStatement(m){if(!f.shouldCheck)return;f.hasReturn=!0;let g={messageId:"",suggest:[]};if(f.arrayMethodName==="forEach"){if(p.checkForEach&&m.argument)if(p.allowVoid){if(l(m.argument))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"prependVoid",fix(y){return o(h,m.argument,y)}}]}else g.messageId="expectedNoReturnValue"}else!p.allowImplicit&&!m.argument&&(g.messageId="expectedReturnValue");g.messageId&&c.report({node:m,messageId:g.messageId,data:{name:r.getFunctionNameWithKind(f.node),arrayMethodName:i(f.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})},"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d}}},tg}var rg,WT;function c7(){if(WT)return rg;WT=1;let r=Pe();return rg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/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}]}},type:"array",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(e){let t=e.sourceCode;function s(o){let u=!1,c=!1,p,h=o||"always";return!h||h==="always"||h.minItems===0?p=0:h==="never"?p=Number.POSITIVE_INFINITY:h==="consistent"?(u=!0,p=Number.POSITIVE_INFINITY):(c=!!h.multiline,p=h.minItems||Number.POSITIVE_INFINITY),{consistent:u,multiline:c,minItems:p}}function n(o){if(o&&(o.ArrayExpression||o.ArrayPattern)){let c,p;return o.ArrayExpression&&(c=s(o.ArrayExpression)),o.ArrayPattern&&(p=s(o.ArrayPattern)),{ArrayExpression:c,ArrayPattern:p}}let u=s(o);return{ArrayExpression:u,ArrayPattern:u}}function i(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"unexpectedLineBreak",fix(c){if(r.isCommentToken(u))return null;if(!r.isTokenOnSameLine(u,o))return c.replaceTextRange([u.range[1],o.range[0]]," ");let p=t.getTokenBefore(u,{includeComments:!0});return r.isCommentToken(p)?null:c.replaceTextRange([p.range[1],u.range[0]],"")}})}function a(o){let u=t.getTokenBefore(o,{includeComments:!0});e.report({loc:{start:u.loc.end,end:o.loc.start},messageId:"missingLineBreak",fix(c){return c.replaceTextRange([u.range[1],o.range[0]],` +`)}})}function l(o){let u=o.elements,p=n(e.options[0])[o.type];if(!p)return;let h=!1;p.multiline&&(h=u.filter(m=>m!==null).some(m=>m.loc.start.line!==m.loc.end.line));let f=0;for(let m=0;m=p.minItems||p.multiline&&h||p.consistent&&f>0&&f{let y=u[g-1];if(g===0||m===null||y===null)return;let b=t.getFirstTokenBetween(y,m,r.isCommaToken),v=t.getTokenBefore(b),S=t.getTokenAfter(b);d?r.isTokenOnSameLine(v,S)&&a(S):r.isTokenOnSameLine(v,S)||i(S)})}return{ArrayPattern:l,ArrayExpression:l}}},rg}var ng,ZT;function f7(){if(ZT)return ng;ZT=1;let r=Pe();return ng={meta:{type:"suggestion",docs:{description:"Require braces around arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options,s=t[0]==="always",n=!t[0]||t[0]==="as-needed",i=t[0]==="never",a=t[1]&&t[1].requireReturnForObjectLiteral,l=e.sourceCode,o=null;function u(f){return f&&f.type==="Punctuator"&&/^[([/`+-]/u.test(f.value)}function c(f){let d=f;for(;!r.isParenthesised(l,d);)d=d.parent;return l.getTokenAfter(d)}function p(f){return f&&f.parent?f.parent.type==="ForStatement"&&f.parent.init===f?!0:p(f.parent):!1}function h(f){let d=f.body;if(d.type==="BlockStatement"){let m=d.body;if(m.length!==1&&!i||n&&a&&m[0].type==="ReturnStatement"&&m[0].argument&&m[0].argument.type==="ObjectExpression")return;if(i||n&&m[0].type==="ReturnStatement"){let g;m.length===0?g="unexpectedEmptyBlock":m.length>1?g="unexpectedOtherBlock":m[0].argument===null?g="unexpectedSingleBlock":r.isOpeningBraceToken(l.getFirstToken(m[0],{skip:1}))?g="unexpectedObjectBlock":g="unexpectedSingleBlock",e.report({node:f,loc:d.loc,messageId:g,fix(y){let b=[];if(m.length!==1||m[0].type!=="ReturnStatement"||!m[0].argument||u(l.getTokenAfter(d)))return b;let v=l.getFirstToken(d),S=l.getLastToken(d),C=l.getFirstToken(m[0],1),O=l.getLastToken(m[0]);return l.commentsExistBetween(v,C)||l.commentsExistBetween(O,S)?b.push(y.remove(v),y.remove(S),y.remove(l.getTokenAfter(v))):b.push(y.removeRange([v.range[0],C.range[0]]),y.removeRange([O.range[1],S.range[1]])),(r.isOpeningBraceToken(C)||m[0].argument.type==="SequenceExpression"||o.hasInOperator&&p(f))&&(r.isParenthesised(l,m[0].argument)||b.push(y.insertTextBefore(C,"("),y.insertTextAfter(O,")"))),r.isSemicolonToken(O)&&b.push(y.remove(O)),b}})}}else(s||n&&a&&d.type==="ObjectExpression")&&e.report({node:f,loc:d.loc,messageId:"expectedBlock",fix(m){let g=[],y=l.getTokenBefore(d,r.isArrowToken),[b,v]=l.getTokensAfter(y,{count:2}),S=l.getLastToken(f),C=null;if(r.isOpeningParenToken(b)&&r.isOpeningBraceToken(v)){let O=l.getNodeByRangeIndex(v.range[0]);O.type==="ObjectExpression"&&(C=O)}if(C){let O=b,w=v;r.isTokenOnSameLine(O,w)?g.push(m.replaceText(O,"{return ")):g.push(m.replaceText(O,"{"),m.insertTextBefore(w,"return ")),g.push(m.remove(c(C))),g.push(m.insertTextAfter(S,"}"))}else g.push(m.insertTextBefore(b,"{return ")),g.push(m.insertTextAfter(S,"}"));return g}})}return{"BinaryExpression[operator='in']"(){let f=o;for(;f;)f.hasInOperator=!0,f=f.upper},ArrowFunctionExpression(){o={upper:o,hasInOperator:!1}},"ArrowFunctionExpression:exit"(f){h(f),o=o.upper}}}},ng}var sg,zT;function p7(){if(zT)return sg;zT=1;let r=Pe();function e(t){return t.body.type==="BlockStatement"}return sg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0]==="as-needed",n=s&&t.options[1]&&t.options[1].requireForBlockBody===!0,i=t.sourceCode;function a(c){let p=i.getTokenBefore(c.params[0]);return p&&r.isOpeningParenToken(p)&&c.range[0]<=p.range[0]?p:null}function l(c){return i.getTokenAfter(c.params[0],r.isClosingParenToken)}function o(c,p){return i.commentsExistBetween(p,l(c))}function u(c,p){let h=c.async?1:0;return i.getFirstToken(c,{skip:h})!==p}return{"ArrowFunctionExpression[params.length=1]"(c){let p=!s||n&&e(c),h=a(c),f=h!==null,[d]=c.params;p&&!f&&t.report({node:c,messageId:n?"expectedParensBlock":"expectedParens",loc:d.loc,*fix(m){yield m.insertTextBefore(d,"("),yield m.insertTextAfter(d,")")}}),!p&&f&&d.type==="Identifier"&&!d.typeAnnotation&&!c.returnType&&!o(c,h)&&!u(c,h)&&t.report({node:c,messageId:n?"unexpectedParensInline":"unexpectedParens",loc:d.loc,*fix(m){let g=i.getTokenBefore(h),y=l(c);g&&g.range[1]===h.range[0]&&!r.canTokensBeAdjacent(g,i.getFirstToken(d))&&(yield m.insertTextBefore(h," ")),yield m.removeRange([h.range[0],d.range[0]]),yield m.removeRange([d.range[1],y.range[1]])}})}}}},sg}var ig,XT;function h7(){if(XT)return ig;XT=1;let r=Pe();return ig={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=Object.assign({},e.options[0]);t.before=t.before!==!1,t.after=t.after!==!1;let s=e.sourceCode;function n(l){let o=s.getTokenBefore(l.body,r.isArrowToken);return{before:s.getTokenBefore(o),arrow:o,after:s.getTokenAfter(o)}}function i(l){let o=l.arrow.range[0]-l.before.range[1],u=l.after.range[0]-l.arrow.range[1];return{before:o,after:u}}function a(l){let o=n(l),u=i(o);t.before?u.before===0&&e.report({node:o.before,messageId:"expectedBefore",fix(c){return c.insertTextBefore(o.arrow," ")}}):u.before>0&&e.report({node:o.before,messageId:"unexpectedBefore",fix(c){return c.removeRange([o.before.range[1],o.arrow.range[0]])}}),t.after?u.after===0&&e.report({node:o.after,messageId:"expectedAfter",fix(c){return c.insertTextAfter(o.arrow," ")}}):u.after>0&&e.report({node:o.after,messageId:"unexpectedAfter",fix(c){return c.removeRange([o.arrow.range[1],o.after.range[0]])}})}return{ArrowFunctionExpression:a}}},ig}var ag,GT;function d7(){return GT||(GT=1,ag={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(r){let e=[],t=r.sourceCode;function s(l){e.push(l.range)}function n(){e.pop()}function i(l,o){let u=l.identifier,c=o.name.loc.start;r.report({node:u,messageId:"outOfScope",data:{name:u.name,definitionLine:c.line,definitionColumn:c.column+1}})}function a(l){if(l.kind!=="var")return;let o=e.at(-1);function u(p){let h=p.identifier.range;return h[0]o[1]}let c=t.getDeclaredVariables(l);for(let p=0;pi(h,c[p].defs.find(f=>f.parent===l)))}return{Program(l){e=[l.range]},BlockStatement:s,"BlockStatement:exit":n,ForStatement:s,"ForStatement:exit":n,ForInStatement:s,"ForInStatement:exit":n,ForOfStatement:s,"ForOfStatement:exit":n,SwitchStatement:s,"SwitchStatement:exit":n,CatchClause:s,"CatchClause:exit":n,StaticBlock:s,"StaticBlock:exit":n,VariableDeclaration:a}}}),ag}var og,YT;function m7(){if(YT)return og;YT=1;let r=Pe();return og={meta:{deprecated:!0,replacedBy:[],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/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e){let t=e.options[0]!=="never",s=t?"missing":"extra",n=e.sourceCode;function i(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 a(o,u){return!r.isTokenOnSameLine(o,u)||n.isSpaceBetweenTokens(o,u)===t}function l(o){let u=i(o),c=n.getLastToken(o),p=n.getTokenAfter(u,{includeComments:!0}),h=n.getTokenBefore(c,{includeComments:!0});if(!(u.type!=="Punctuator"||u.value!=="{"||c.type!=="Punctuator"||c.value!=="}"||p===c)&&!(!t&&p.type==="Line")){if(!a(u,p)){let f=u.loc;s==="extra"&&(f={start:u.loc.end,end:p.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"after",token:u.value},fix(d){return t?d.insertTextBefore(p," "):d.removeRange([u.range[1],p.range[0]])}})}if(!a(h,c)){let f=c.loc;s==="extra"&&(f={start:h.loc.end,end:c.loc.start}),e.report({node:o,loc:f,messageId:s,data:{location:"before",token:c.value},fix(d){return t?d.insertTextAfter(h," "):d.removeRange([h.range[1],c.range[0]])}})}}}return{BlockStatement:l,StaticBlock:l,SwitchStatement:l}}},og}var lg,HT;function g7(){if(HT)return lg;HT=1;let r=Pe();return lg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||"1tbs",s=e.options[1]||{},n=e.sourceCode;function i(o,u){let c=[o.range[1],u.range[0]];return n.text.slice(c[0],c[1]).trim()?null:h=>h.replaceTextRange(c," ")}function a(o,u){let c=n.getTokenBefore(o),p=n.getTokenAfter(o),h=n.getTokenBefore(u),f=s.allowSingleLine&&r.isTokenOnSameLine(o,u);t!=="allman"&&!r.isTokenOnSameLine(c,o)&&e.report({node:o,messageId:"nextLineOpen",fix:i(c,o)}),t==="allman"&&r.isTokenOnSameLine(c,o)&&!f&&e.report({node:o,messageId:"sameLineOpen",fix:d=>d.insertTextBefore(o,` `)}),r.isTokenOnSameLine(o,p)&&p!==u&&!f&&e.report({node:o,messageId:"blockSameLine",fix:d=>d.insertTextAfter(o,` `)}),h!==o&&!f&&r.isTokenOnSameLine(h,u)&&e.report({node:u,messageId:"singleLineClose",fix:d=>d.insertTextBefore(u,` `)})}function l(o){let u=n.getTokenAfter(o);t==="1tbs"&&!r.isTokenOnSameLine(o,u)&&e.report({node:o,messageId:"nextLineClose",fix:i(o,u)}),t!=="1tbs"&&r.isTokenOnSameLine(o,u)&&e.report({node:o,messageId:"sameLineClose",fix:c=>c.insertTextAfter(o,` -`)})}return{BlockStatement(o){r.STATEMENT_LIST_PARENTS.has(o.parent.type)||a(n.getFirstToken(o),n.getLastToken(o))},StaticBlock(o){a(n.getFirstToken(o,{skip:1}),n.getLastToken(o))},ClassBody(o){a(n.getFirstToken(o),n.getLastToken(o))},SwitchStatement(o){let u=n.getLastToken(o),c=n.getTokenBefore(o.cases.length?o.cases[0]:u);a(c,u)},IfStatement(o){o.consequent.type==="BlockStatement"&&o.alternate&&l(n.getLastToken(o.consequent))},TryStatement(o){l(n.getLastToken(o.block)),o.handler&&o.finalizer&&l(n.getLastToken(o.handler.body))}}}},cg}var fg,eD;function b7(){return eD||(eD=1,fg={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(r){let e=r.options[0]||["callback","cb","next"],t=r.sourceCode;function s(l,o){return l.parent?o.includes(l.parent.type)?l.parent:s(l.parent,o):null}function n(l){if(l.type==="Identifier")return!0;if(l.type==="MemberExpression"){if(l.object.type==="Identifier")return!0;if(l.object.type==="MemberExpression")return n(l.object)}return!1}function i(l){return n(l.callee)&&e.includes(t.getText(l.callee))}function a(l,o){return!o||o.type!=="ExpressionStatement"?!1:o.expression===l||(o.expression.type==="BinaryExpression"||o.expression.type==="LogicalExpression")&&o.expression.right===l}return{CallExpression(l){if(!i(l))return;let o=s(l,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(o.type!=="ReturnStatement"&&o.type!=="ArrowFunctionExpression"){if(o.type==="BlockStatement"){let u=o.body.at(-1);if(a(l,u)){let c=o.parent.type;if(c==="FunctionExpression"||c==="FunctionDeclaration"||c==="ArrowFunctionExpression")return}if(u.type==="ReturnStatement"&&a(l,o.body.at(-2)))return}s(l,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&r.report({node:l,messageId:"missingReturn"})}}}}}),fg}var pg,tD;function v7(){if(tD)return pg;tD=1;let r=De();return pg={meta:{type:"suggestion",docs:{description:"Enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=t.properties==="never"?"never":"always",n=t.ignoreDestructuring,i=t.ignoreImports,a=t.ignoreGlobals,l=t.allow||[],o=e.sourceCode,u=new Set;function c(b){let O=b.replace(/^_+|_+$/gu,"");return O.includes("_")&&O!==O.toUpperCase()}function p(b){return l.some(O=>b===O||b.match(new RegExp(O,"u")))}function h(b){return!c(b)||p(b)}function f(b){let O=b.parent;switch(O.type){case"AssignmentExpression":case"AssignmentPattern":return O.left===b;case"Property":return O.parent.type==="ObjectPattern"&&O.value===b;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function d(b){let O=b.name,S=b.parent.type==="AssignmentPattern"?b.parent:b,C=S.parent;switch(C.type){case"Property":return(C.parent.type==="ObjectPattern"||C.parent.type==="ObjectExpression")&&C.value===S&&!C.computed&&C.key.type==="Identifier"&&C.key.name===O;case"ImportSpecifier":return C.local===b&&r.getModuleExportName(C.imported)===O;default:return!1}}function m(b){u.has(b.range[0])||(u.add(b.range[0]),e.report({node:b,messageId:b.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:b.name}}))}function g(b){b.parent.type==="CallExpression"||b.parent.type==="NewExpression"||b.parent.type==="AssignmentPattern"&&b.parent.right===b||n&&d(b)||m(b)}return{Program(b){let O=o.getScope(b);if(!a){for(let S of O.variables)if(!(S.identifiers.length>0||h(S.name)))for(let C of S.references)g(C.identifier)}for(let S of O.through){let C=S.identifier;h(C.name)||g(C)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](b){for(let O of o.getDeclaredVariables(b)){if(h(O.name))continue;let S=O.identifiers[0];n&&d(S)||m(S);for(let C of O.references)C.init||g(C.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](b){s==="never"||h(b.name)||m(b)},"MemberExpression[computed!=true] > Identifier.property"(b){s==="never"||!f(b.parent)||h(b.name)||m(b)},ImportDeclaration(b){for(let O of o.getDeclaredVariables(b)){if(h(O.name))continue;let S=O.identifiers[0];i&&d(S)||m(S);for(let C of O.references)g(C.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](b){h(b.name)||m(b)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](b){h(b.name)||m(b)}}}},pg}var hg,rD;function O7(){return rD||(rD=1,hg=/[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),hg}var dg,nD;function S7(){if(nD)return dg;nD=1;let r=O7(),t=De().COMMENTS_IGNORE_PATTERN,s=/\s/gu,n=/^\s*[^:/?#\s]+:\/\/[^?#]/u,i={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},a={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function l(c,p){return Object.assign({},a,c[p]||c)}function o(c={}){return{Line:l(c,"line"),Block:l(c,"block")}}function u(c){Object.keys(c).forEach(p=>{let h=c[p].ignorePattern;if(h){let f=RegExp(`^\\s*(?:${h})`,"u");c[p].ignorePatternRegExp=f}})}return dg={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[i,{type:"object",properties:{line:i,block:i},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(c){let p=c.options[0]||"always",h=o(c.options[1]),f=c.sourceCode;u(h);function d(O){let S=f.getTokenBefore(O,{includeComments:!0}),C=f.getTokenAfter(O,{includeComments:!0});return!!(S&&C&&O.loc.start.line===S.loc.end.line&&O.loc.end.line===C.loc.start.line)}function m(O){let S=f.getTokenBefore(O,{includeComments:!0});return!!(S&&["Block","Line"].includes(S.type))}function g(O,S){if(t.test(O.value))return!0;let C=O.value.replace(/\*/gu,"");if(S.ignorePatternRegExp&&S.ignorePatternRegExp.test(C)||S.ignoreInlineComments&&d(O)||S.ignoreConsecutiveComments&&m(O)||n.test(C))return!0;let k=C.replace(s,"");if(k.length===0)return!0;let E=k[0];if(!r.test(E))return!0;let A=E!==E.toLocaleLowerCase(),w=E!==E.toLocaleUpperCase();return!(p==="always"&&w||p==="never"&&A)}function b(O){let S=h[O.type];if(!g(O,S)){let k=p==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";c.report({node:null,loc:O.loc,messageId:k,fix(E){let A=O.value.match(r);return E.replaceTextRange([O.range[0]+A.index+2,O.range[0]+A.index+3],p==="always"?A[0].toLocaleUpperCase():A[0].toLocaleLowerCase())}})}}return{Program(){f.getAllComments().filter(S=>S.type!=="Shebang").forEach(b)}}}},dg}var mg,sD;function E7(){if(sD)return mg;sD=1;let r=De();return mg={meta:{type:"suggestion",docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=Object.assign({},e.options[0]),s=t.enforceForClassFields!==!1,n=new Set(t.exceptMethods||[]),i=[];function a(){i.push(!1)}function l(){return i.pop()}function o(){a()}function u(f){switch(f.type){case"MethodDefinition":return!f.static&&f.kind!=="constructor";case"PropertyDefinition":return!f.static&&s;default:return!1}}function c(f){if(u(f)){if(f.computed)return!0;let d=f.key.type==="PrivateIdentifier"?"#":"",m=f.key.type==="Literal"?r.getStaticStringValue(f.key):f.key.name||"";return!n.has(d+m)}return!1}function p(f){let d=l();c(f.parent)&&!d&&e.report({node:f,loc:r.getFunctionHeadLoc(f,e.sourceCode),messageId:"missingThis",data:{name:r.getFunctionNameWithKind(f)}})}function h(){i.length&&(i[i.length-1]=!0)}return{FunctionDeclaration:o,"FunctionDeclaration:exit":p,FunctionExpression:o,"FunctionExpression:exit":p,"PropertyDefinition > *.key:exit":a,"PropertyDefinition:exit":l,StaticBlock:a,"StaticBlock:exit":l,ThisExpression:h,Super:h,...s&&{"PropertyDefinition > ArrowFunctionExpression.value":o,"PropertyDefinition > ArrowFunctionExpression.value:exit":p}}}},mg}var gg,iD;function C7(){if(iD)return gg;iD=1;let r=De(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function t(n){return!(n.type==="RestElement"||n.type==="RestProperty"||n.type==="ExperimentalRestProperty")}function s(n,i){return typeof n=="string"?{arrays:n,objects:n,imports:n,exports:n,functions:i<2017?"ignore":n}:typeof n=="object"&&n!==null?{arrays:n.arrays||e.arrays,objects:n.objects||e.objects,imports:n.imports||e.imports,exports:n.exports||e.exports,functions:n.functions||e.functions}:e}return gg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=s(n.options[0],n.languageOptions.ecmaVersion),a=n.sourceCode;function l(m){function g(b){return b.at(-1)}switch(m.type){case"ObjectExpression":case"ObjectPattern":return g(m.properties);case"ArrayExpression":case"ArrayPattern":return g(m.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return g(m.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return g(m.params);case"CallExpression":case"NewExpression":return g(m.arguments);default:return null}}function o(m,g){switch(m.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return a.getLastToken(m,1);default:{let b=a.getTokenAfter(g);return r.isCommaToken(b)?b:a.getLastToken(g)}}}function u(m){let g=l(m);if(!g)return!1;let b=o(m,g);return a.getTokenAfter(b).loc.end.line!==b.loc.end.line}function c(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;let b=o(m,g);r.isCommaToken(b)&&n.report({node:g,loc:b.loc,messageId:"unexpected",*fix(O){yield O.remove(b),yield O.insertTextBefore(a.getTokenBefore(b),""),yield O.insertTextAfter(a.getTokenAfter(b),"")}})}function p(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;if(!t(g)){c(m);return}let b=o(m,g);b.value!==","&&n.report({node:g,loc:{start:b.loc.end,end:r.getNextLocation(a,b.loc.end)},messageId:"missing",*fix(O){yield O.insertTextAfter(b,","),yield O.insertTextBefore(b,""),yield O.insertTextAfter(a.getTokenAfter(b),"")}})}function h(m){u(m)?p(m):c(m)}function f(m){u(m)||c(m)}let d={always:p,"always-multiline":h,"only-multiline":f,never:c,ignore(){}};return{ObjectExpression:d[i.objects],ObjectPattern:d[i.objects],ArrayExpression:d[i.arrays],ArrayPattern:d[i.arrays],ImportDeclaration:d[i.imports],ExportNamedDeclaration:d[i.exports],FunctionDeclaration:d[i.functions],FunctionExpression:d[i.functions],ArrowFunctionExpression:d[i.functions],CallExpression:d[i.functions],NewExpression:d[i.functions]}}},gg}var yg,aD;function w7(){if(aD)return yg;aD=1;let r=De();return yg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=t.tokensAndComments,n={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},i=[];function a(o,u,c){e.report({node:o,fix(p){if(n[u])return u==="before"?p.insertTextBefore(o," "):p.insertTextAfter(o," ");let h,f,d="";return u==="before"?(h=c.range[1],f=o.range[0]):(h=o.range[1],f=c.range[0]),p.replaceTextRange([h,f],d)},messageId:n[u]?"missing":"unexpected",data:{loc:u}})}function l(o){let u=t.getFirstToken(o);o.elements.forEach(c=>{let p;c===null?(p=t.getTokenAfter(u),r.isCommaToken(p)&&i.push(p)):p=t.getTokenAfter(c),u=p})}return{"Program:exit"(){s.forEach((o,u)=>{if(!r.isCommaToken(o))return;let c=s[u-1],p=s[u+1];c&&!r.isCommaToken(c)&&!i.includes(o)&&r.isTokenOnSameLine(c,o)&&n.before!==t.isSpaceBetweenTokens(c,o)&&a(o,"before",c),p&&!r.isCommaToken(p)&&!r.isClosingParenToken(p)&&!r.isClosingBracketToken(p)&&!r.isClosingBraceToken(p)&&!(!n.after&&p.type==="Line")&&r.isTokenOnSameLine(o,p)&&n.after!==t.isSpaceBetweenTokens(o,p)&&a(o,"after",p)})},ArrayExpression:l,ArrayPattern:l}}},yg}var xg,oD;function k7(){if(oD)return xg;oD=1;let r=De();return xg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||"last",s=e.sourceCode,n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){let c=Object.keys(e.options[1].exceptions);for(let p=0;p1||f){let d=s.getFirstToken(c);if(h.forEach(m=>{let g=m?s.getTokenBefore(m):d,b=m?s.getFirstToken(m):s.getTokenAfter(g),O=m||b;if(r.isCommaToken(g)&&l(d,g,b,O),m){let S=s.getTokenAfter(m,r.isNotClosingParenToken);d=S?s.getTokenBefore(S):s.ast.tokens.at(-1)}else d=b}),f){let m=s.getLastToken(c),g=s.getTokenBefore(m);r.isCommaToken(g)&&l(s.getTokenBefore(g),g,m,m)}}}let u={};return n.VariableDeclaration||(u.VariableDeclaration=function(c){o(c,"declarations")}),n.ObjectExpression||(u.ObjectExpression=function(c){o(c,"properties")}),n.ObjectPattern||(u.ObjectPattern=function(c){o(c,"properties")}),n.ArrayExpression||(u.ArrayExpression=function(c){o(c,"elements")}),n.ArrayPattern||(u.ArrayPattern=function(c){o(c,"elements")}),n.FunctionDeclaration||(u.FunctionDeclaration=function(c){o(c,"params")}),n.FunctionExpression||(u.FunctionExpression=function(c){o(c,"params")}),n.ArrowFunctionExpression||(u.ArrowFunctionExpression=function(c){o(c,"params")}),n.CallExpression||(u.CallExpression=function(c){o(c,"arguments")}),n.ImportDeclaration||(u.ImportDeclaration=function(c){o(c,"specifiers")}),n.NewExpression||(u.NewExpression=function(c){o(c,"arguments")}),u}},xg}var bg,lD;function Si(){if(lD)return bg;lD=1;let r=/^[\u0000-\u007f]*$/u,e;function t(n){return n.length<=1?n.toUpperCase():n[0].toUpperCase()+n.slice(1)}function s(n){if(r.test(n))return n.length;e??=new Intl.Segmenter("en-US");let i=0;for(let a of e.segment(n))i++;return i}return bg={upperCaseFirst:t,getGraphemeCount:s},bg}var vg,uD;function A7(){if(uD)return vg;uD=1;let r=De(),{upperCaseFirst:e}=Si();return vg={meta:{type:"suggestion",docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=20;typeof s=="object"&&(Object.hasOwn(s,"maximum")||Object.hasOwn(s,"max"))?n=s.maximum||s.max:typeof s=="number"&&(n=s);let i=[];function a(){i[i.length-1]++}return{onCodePathStart(){i.push(1)},CatchClause:a,ConditionalExpression:a,LogicalExpression:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,IfStatement:a,WhileStatement:a,DoWhileStatement:a,AssignmentPattern:a,"SwitchCase[test]":a,AssignmentExpression(l){r.isLogicalAssignmentOperator(l.operator)&&a()},MemberExpression(l){l.optional===!0&&a()},CallExpression(l){l.optional===!0&&a()},onCodePathEnd(l,o){let u=i.pop();if(!(l.origin!=="function"&&l.origin!=="class-field-initializer"&&l.origin!=="class-static-block")&&u>n){let c;l.origin==="class-field-initializer"?c="class field initializer":l.origin==="class-static-block"?c="class static block":c=r.getFunctionNameWithKind(o),t.report({node:o,messageId:"complex",data:{name:e(c),complexity:u,max:n}})}}}}},vg}var Og,cD;function P7(){if(cD)return Og;cD=1;let r=De();return Og={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]==="always",n=!e.options[1]||e.options[1].enforceForClassMembers;function i(p,h,f){e.report({node:p,loc:{start:h.loc.end,end:f.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(d){return d.removeRange([h.range[1],f.range[0]])}})}function a(p,h,f){e.report({node:p,loc:{start:f.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(d){return d.removeRange([f.range[1],h.range[0]])}})}function l(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(f){return f.insertTextAfter(h," ")}})}function o(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(f){return f.insertTextBefore(h," ")}})}function u(p){return function(h){if(!h.computed)return;let f=h[p],d=t.getTokenBefore(f,r.isOpeningBracketToken),m=t.getTokenAfter(d,{includeComments:!0}),g=t.getTokenAfter(f,r.isClosingBracketToken),b=t.getTokenBefore(g,{includeComments:!0});r.isTokenOnSameLine(d,m)&&(s?!t.isSpaceBetweenTokens(d,m)&&r.isTokenOnSameLine(d,m)&&l(h,d):t.isSpaceBetweenTokens(d,m)&&i(h,d,m)),r.isTokenOnSameLine(b,g)&&(s?!t.isSpaceBetweenTokens(b,g)&&r.isTokenOnSameLine(b,g)&&o(h,g):t.isSpaceBetweenTokens(b,g)&&a(h,g,b))}}let c={Property:u("key"),MemberExpression:u("property")};return n&&(c.MethodDefinition=c.PropertyDefinition=c.Property),c}},Og}var Sg,fD;function T7(){if(fD)return Sg;fD=1;let r=De(),{upperCaseFirst:e}=Si();function t(n){for(let i of n)if(i.reachable)return!1;return!0}function s(n){return n.type==="FunctionExpression"&&n.parent&&n.parent.type==="MethodDefinition"&&n.parent.kind==="constructor"}return Sg={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let a=(n.options[0]||{}).treatUndefinedAsUnspecified===!0,l=null;function o(u){let c,p;!l.hasReturnValue||t(l.currentSegments)||r.isES5Constructor(u)||s(u)||(u.type==="Program"?(c={line:1,column:0},p="program"):u.type==="ArrowFunctionExpression"?c=n.sourceCode.getTokenBefore(u.body,r.isArrowToken).loc:u.parent.type==="MethodDefinition"||u.parent.type==="Property"&&u.parent.method?c=u.parent.key.loc:c=(u.id||n.sourceCode.getFirstToken(u)).loc,p||(p=r.getFunctionNameWithKind(u)),n.report({node:u,loc:c,messageId:"missingReturn",data:{name:p}}))}return{onCodePathStart(u,c){l={upper:l,codePath:u,hasReturn:!1,hasReturnValue:!1,messageId:"",node:c,currentSegments:new Set}},onCodePathEnd(){l=l.upper},onUnreachableCodePathSegmentStart(u){l.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){l.currentSegments.delete(u)},onCodePathSegmentStart(u){l.currentSegments.add(u)},onCodePathSegmentEnd(u){l.currentSegments.delete(u)},ReturnStatement(u){let c=u.argument,p=!!c;a&&p&&(p=!r.isSpecificId(c,"undefined")&&c.operator!=="void"),l.hasReturn?l.hasReturnValue!==p&&n.report({node:u,messageId:l.messageId,data:l.data}):(l.hasReturn=!0,l.hasReturnValue=p,l.messageId=p?"missingReturnValue":"unexpectedReturnValue",l.data={name:l.node.type==="Program"?"Program":e(r.getFunctionNameWithKind(l.node))})},"Program:exit":o,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o}}},Sg}var Eg,pD;function D7(){return pD||(pD=1,Eg={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=[],t=r.sourceCode;r.options.length===0?e.push("that"):e=r.options;function s(l,o){r.report({node:l,messageId:"aliasNotAssignedToThis",data:{name:o}})}function n(l,o,u){let c=u.type==="ThisExpression";e.includes(o)?(!c||l.operator&&l.operator!=="=")&&s(l,o):c&&r.report({node:l,messageId:"unexpectedAlias",data:{name:o}})}function i(l,o){let u=o.set.get(l);u&&(u.defs.some(c=>c.node.type==="VariableDeclarator"&&c.node.init!==null)||u.references.some(c=>{let p=c.writeExpr;return c.from===o&&p&&p.type==="ThisExpression"&&p.parent.operator==="="})||u.defs.map(c=>c.node).forEach(c=>{s(c,l)}))}function a(l){let o=t.getScope(l);e.forEach(u=>{i(u,o)})}return{"Program:exit":a,"FunctionExpression:exit":a,"FunctionDeclaration:exit":a,VariableDeclarator(l){let o=l.id,u=o.type==="ArrayPattern"||o.type==="ObjectPattern";l.init!==null&&!u&&n(l,o.name,l.init)},AssignmentExpression(l){l.left.type==="Identifier"&&n(l,l.left.name,l.right)}}}}),Eg}var Cg,hD;function _7(){if(hD)return Cg;hD=1;function r(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}function e(s){if(!s)return!1;switch(s.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 s.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(s.operator)?e(s.right):["||=","??="].includes(s.operator)?e(s.left)||e(s.right):!1;case"LogicalExpression":return s.operator==="&&"?e(s.right):e(s.left)||e(s.right);case"ConditionalExpression":return e(s.alternate)||e(s.consequent);case"SequenceExpression":{let n=s.expressions.at(-1);return e(n)}default:return!1}}class t{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Cg={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/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."}},create(s){let n=null,i=Object.create(null);function a(u){return u.reachable&&i[u.id].calledInSomePaths}function l(u){return!!i[u.id]}function o(u){return u.reachable&&i[u.id].calledInEveryPaths}return{onCodePathStart(u,c){if(r(c)){let h=c.parent.parent.parent.superClass;n={upper:n,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:u,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:u,currentSegments:new Set}},onCodePathEnd(u,c){let p=n.hasExtends;if(n=n.upper,!p)return;let h=u.returnedSegments,f=h.every(o),d=h.some(a);f||s.report({messageId:d?"missingSome":"missingAll",node:c.parent})},onCodePathSegmentStart(u,c){if(n.currentSegments.add(u),!(n.isConstructor&&n.hasExtends))return;let p=i[u.id]=new t,h=u.prevSegments.filter(l);h.length>0&&(p.calledInSomePaths=h.some(a),p.calledInEveryPaths=h.every(o)),c.parent&&c.parent.type==="ForStatement"&&c.parent.update===c&&(p.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(u){n.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentLoop(u,c){n.isConstructor&&n.hasExtends&&n.codePath.traverseSegments({first:c,last:u},(p,h)=>{let f=i[p.id];if(!f){h.skip();return}let d=p.prevSegments.filter(l),m=d.some(a),g=d.every(o);if(f.calledInSomePaths||=m,f.calledInEveryPaths||=g,m){let b=f.validNodes;f.validNodes=[];for(let O=0;O0}else E=!o(O);else E=!0;return{actual:k,expected:E,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:b,loc:O.loc,messageId:C&&C.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:S},fix:A=>A.replaceText(O,`{${a.getText(O)}}`)}):e.report({node:b,loc:O.loc,messageId:C&&C.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:S},fix(A){let w=b.type==="DoWhileStatement"&&a.getTokenBefore(O).range[1]===O.range[0]&&!r.canTokensBeAdjacent("do",a.getFirstToken(O,{skip:1})),P=a.getFirstToken(O),T=a.getLastToken(O),I=a.getTokenBefore(T);if(h(T))return null;let F=a.getText().slice(P.range[1],I.range[0])+a.getText(I)+a.getText().slice(I.range[1],T.range[0]);return A.replaceText(O,(w?" ":"")+F)}}))}}}function g(b){let O=[];for(let S=b;S;S=S.alternate)if(O.push(m(S,S.consequent,"if",{condition:!0})),S.alternate&&S.alternate.type!=="IfStatement"){O.push(m(S,S.alternate,"else"));break}if(i){let S=O.some(C=>C.expected!==null?C.expected:C.actual);O.forEach(C=>{C.expected=S})}return O}return{IfStatement(b){let O=b.parent;O.type==="IfStatement"&&O.alternate===b||g(b).forEach(C=>{C.check()})},WhileStatement(b){m(b,b.body,"while",{condition:!0}).check()},DoWhileStatement(b){m(b,b.body,"do").check()},ForStatement(b){m(b,b.body,"for",{condition:!0}).check()},ForInStatement(b){m(b,b.body,"for-in").check()},ForOfStatement(b){m(b,b.body,"for-of").check()}}}},wg}var kg,mD;function F7(){if(mD)return kg;mD=1;let r=/^no default$/iu;return kg={meta:{type:"suggestion",docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){let t=e.options[0]||{},s=t.commentPattern?new RegExp(t.commentPattern,"u"):r,n=e.sourceCode;function i(a){return a.at(-1)}return{SwitchStatement(a){if(!a.cases.length)return;if(!a.cases.some(o=>o.test===null)){let o,u=i(a.cases),c=n.getCommentsAfter(u);c.length&&(o=i(c)),(!o||!s.test(o.value.trim()))&&e.report({node:a,messageId:"missingDefaultCase"})}}}}},kg}var Ag,gD;function R7(){return gD||(gD=1,Ag={meta:{type:"suggestion",docs:{description:"Enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(r){return{SwitchStatement(e){let t=e.cases,s=t.findIndex(n=>n.test===null);if(s!==-1&&s!==t.length-1){let n=t[s];r.report({node:n,messageId:"notLast"})}}}}}),Ag}var Pg,yD;function B7(){return yD||(yD=1,Pg={meta:{type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(r){function e(t){let s=!1;for(let n=t.params.length-1;n>=0;n-=1){let i=t.params[n];if(i.type!=="AssignmentPattern"&&i.type!=="RestElement"){s=!0;continue}s&&i.type==="AssignmentPattern"&&r.report({node:i,messageId:"shouldBeLast"})}}return{FunctionDeclaration:e,FunctionExpression:e,ArrowFunctionExpression:e}}}),Pg}var Tg,xD;function N7(){if(xD)return Tg;xD=1;let r=De();return Tg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s=t==="object"||!t,n=e.sourceCode;function i(l){let o=l.property,u=n.getTokenBefore(o);if(s){let c=n.getTokenBefore(u);r.isTokenOnSameLine(c,u)||e.report({node:l,loc:u.loc,messageId:"expectedDotAfterObject",*fix(p){u.value.startsWith(".")&&r.isDecimalIntegerNumericToken(c)?yield p.insertTextAfter(c,` ${u.value}`):yield p.insertTextAfter(c,u.value),yield p.remove(u)}})}else r.isTokenOnSameLine(u,o)||e.report({node:l,loc:u.loc,messageId:"expectedDotBeforeProperty",*fix(c){yield c.remove(u),yield c.insertTextBefore(o,u.value)}})}function a(l){l.computed||i(l)}return{MemberExpression:a}}},Tg}var Dg,bD;function $O(){return bD||(bD=1,Dg=["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"]),Dg}var _g,vD;function L7(){if(vD)return _g;vD=1;let r=De(),e=$O(),t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,s=new Set(["string","boolean"]);return _g={meta:{type:"suggestion",docs:{description:"Enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=n.options[0]||{},a=i.allowKeywords===void 0||i.allowKeywords,l=n.sourceCode,o;i.allowPattern&&(o=new RegExp(i.allowPattern,"u"));function u(c,p){if(t.test(p)&&(a||!e.includes(String(p)))&&!(o&&o.test(p))){let h=c.property.type==="Literal"?JSON.stringify(p):`\`${p}\``;n.report({node:c.property,messageId:"useDot",data:{key:h},*fix(f){let d=l.getTokenAfter(c.object,r.isOpeningBracketToken),m=l.getLastToken(c),g=l.getTokenAfter(c);l.commentsExistBetween(d,m)||(c.optional||(yield f.insertTextBefore(d,r.isDecimalInteger(c.object)?" .":".")),yield f.replaceTextRange([d.range[0],m.range[1]],p),g&&m.range[1]===g.range[0]&&!r.canTokensBeAdjacent(String(p),g)&&(yield f.insertTextAfter(c," ")))}})}}return{MemberExpression(c){c.computed&&c.property.type==="Literal"&&(s.has(typeof c.property.value)||r.isNullLiteral(c.property))&&u(c,c.property.value),c.computed&&r.isStaticTemplateLiteral(c.property)&&u(c,c.property.quasis[0].value.cooked),!a&&!c.computed&&c.property.type==="Identifier"&&e.includes(String(c.property.name))&&n.report({node:c.property,messageId:"useBrackets",data:{key:c.property.name},*fix(p){let h=l.getTokenBefore(c.property);c.object.type==="Identifier"&&c.object.name==="let"&&!c.optional||l.commentsExistBetween(h,c.property)||(c.optional||(yield p.remove(h)),yield p.replaceText(c.property,`["${c.property.name}"]`))}})}}}},_g}var Ig,OD;function $7(){return OD||(OD=1,Ig={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return{Program:function(t){let s=r.sourceCode,n=s.getText(),i=s.lines.at(-1),a={column:i.length,line:s.lines.length},l=` -`,o=`\r${l}`,u=n.endsWith(l);if(!n.length)return;let c=r.options[0]||"always",p=!1;if(c==="unix"&&(c="always"),c==="windows"&&(c="always",p=!0),c==="always"&&!u)r.report({node:t,loc:a,messageId:"missing",fix(h){return h.insertTextAfterRange([0,n.length],p?o:l)}});else if(c==="never"&&u){let h=s.lines.at(-2);r.report({node:t,loc:{start:{line:s.lines.length-1,column:h.length},end:{line:s.lines.length,column:0}},messageId:"unexpected",fix(f){let d=/(?:\r?\n)+$/u,m=d.exec(s.text),g=m.index,b=s.text.length;return f.replaceTextRange([g,b],"")}})}}}}}),Ig}var Fg,SD;function M7(){if(SD)return Fg;SD=1;let r=De();return Fg={meta:{type:"suggestion",docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||"always",s=e.options[1]||{},n=e.sourceCode,i=t==="always"?s.null||"always":"ignore",a=i==="always",l=i==="never";function o(f){return f.type==="UnaryExpression"&&f.operator==="typeof"}function u(f){return o(f.left)||o(f.right)}function c(f){return f.left.type==="Literal"&&f.right.type==="Literal"&&typeof f.left.value==typeof f.right.value}function p(f){return r.isNullLiteral(f.right)||r.isNullLiteral(f.left)}function h(f,d){let m=n.getFirstTokenBetween(f.left,f.right,g=>g.value===f.operator);e.report({node:f,loc:m.loc,messageId:"unexpected",data:{expectedOperator:d,actualOperator:f.operator},fix(g){return u(f)||c(f)?g.replaceText(m,d):null}})}return{BinaryExpression(f){let d=p(f);if(f.operator!=="=="&&f.operator!=="!="){l&&d&&h(f,f.operator.slice(0,-1));return}t==="smart"&&(u(f)||c(f)||d)||!a&&d||h(f,`${f.operator}=`)}}}},Fg}var Rg,ED;function j7(){if(ED)return Rg;ED=1;let{getStaticValue:r}=mr();return Rg={meta:{type:"problem",docs:{description:'Enforce "for" loop update clause moving the counter in the right direction',recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){let{sourceCode:t}=e;function s(l){e.report({node:l,messageId:"incorrectDirection"})}function n(l,o){let u=r(l.right,t.getScope(l));if(u&&["bigint","boolean","number"].includes(typeof u.value)){let c=Math.sign(Number(u.value))||0;return o*c}return 0}function i(l,o){if(l.argument.type==="Identifier"&&l.argument.name===o){if(l.operator==="++")return 1;if(l.operator==="--")return-1}return 0}function a(l,o){if(l.left.name===o){if(l.operator==="+=")return n(l,1);if(l.operator==="-=")return n(l,-1)}return 0}return{ForStatement(l){if(l.test&&l.test.type==="BinaryExpression"&&l.update)for(let o of["left","right"]){if(l.test[o].type!=="Identifier")continue;let u=l.test[o].name,c=l.test.operator,p=l.update,h;if(c==="<"||c==="<=")h=o==="left"?-1:1;else if(c===">"||c===">=")h=o==="left"?1:-1;else return;p.type==="UpdateExpression"?i(p,u)===h&&s(l):p.type==="AssignmentExpression"&&a(p,u)===h&&s(l)}}}}},Rg}var Bg,CD;function q7(){if(CD)return Bg;CD=1;let r=De();return Bg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]!=="always",s=!t&&e.options[1]&&e.options[1].allowNewlines,n=e.sourceCode,i=n.getText();function a(l,o,u){let c=i.slice(o.range[1],u.range[0]).replace(/\/\*.*?\*\//gu,""),p=/\s/u.test(c),h=p&&r.LINEBREAK_MATCHER.test(c);t&&p?e.report({node:l,loc:{start:o.loc.end,end:{line:u.loc.start.line,column:u.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(f){return n.commentsExistBetween(o,u)?null:l.optional?f.replaceTextRange([o.range[1],u.range[0]],"?."):h?null:f.removeRange([o.range[1],u.range[0]])}}):!t&&!p?e.report({node:l,loc:{start:{line:o.loc.end.line,column:o.loc.end.column-1},end:u.loc.start},messageId:"missing",fix(f){return l.optional?null:f.insertTextBefore(u," ")}}):!t&&!s&&h&&e.report({node:l,loc:{start:o.loc.end,end:u.loc.start},messageId:"unexpectedNewline",fix(f){if(!l.optional||n.commentsExistBetween(o,u))return null;let d=[o.range[1],u.range[0]],m=n.getTokenAfter(o);return m.range[0]===o.range[1]?f.replaceTextRange(d,"?. "):m.range[1]===u.range[0]?f.replaceTextRange(d," ?."):f.replaceTextRange(d," ?. ")}})}return{"CallExpression, NewExpression"(l){let o=n.getLastToken(l),u=n.getLastToken(l.callee),c=n.getFirstTokenBetween(u,o,r.isOpeningParenToken),p=c&&n.getTokenBefore(c,r.isNotQuestionDotToken);c&&c.range[1]=2015?e.keyword.isIdentifierES6(a):e.keyword.isIdentifierES5(a)}let n={enum:["always","never"]},i={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Ng={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/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[n,i]},{type:"array",additionalItems:!1,items:[i]}]},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(a){let l=(typeof a.options[0]=="object"?a.options[0]:a.options[1])||{},o=typeof a.options[0]=="string"?a.options[0]:"always",u=l.considerPropertyDescriptor,c=l.includeCommonJSModuleExports,p=a.languageOptions.ecmaVersion;function h(g,b,O){return O?O.type==="CallExpression"&&r.isSpecificMemberAccess(O.callee,g,b):!1}function f(g,b){return o==="always"&&g!==b||o==="never"&&g===b}function d(g,b,O,S){let C;o==="always"&&S?C="matchProperty":o==="always"?C="matchVariable":S?C="notMatchProperty":C="notMatchVariable",a.report({node:g,messageId:C,data:{name:b,funcName:O}})}function m(g){return g.type==="Literal"&&typeof g.value=="string"}return{VariableDeclarator(g){!g.init||g.init.type!=="FunctionExpression"||g.id.type!=="Identifier"||g.init.id&&f(g.id.name,g.init.id.name)&&d(g,g.id.name,g.init.id.name,!1)},AssignmentExpression(g){if(g.right.type!=="FunctionExpression"||g.left.computed&&g.left.property.type!=="Literal"||!c&&t(g.left)||g.left.type!=="Identifier"&&g.left.type!=="MemberExpression")return;let b=g.left.type==="MemberExpression",O=b?r.getStaticPropertyName(g.left):g.left.name;g.right.id&&O&&s(O)&&f(O,g.right.id.name)&&d(g,O,g.right.id.name,b)},"Property, PropertyDefinition[value]"(g){if(g.value.type==="FunctionExpression"&&g.value.id){if(g.key.type==="Identifier"&&!g.computed){let b=g.value.id.name,O=g.key.name;if(u&&O==="value"&&g.parent.type==="ObjectExpression")if(h("Object","defineProperty",g.parent.parent)||h("Reflect","defineProperty",g.parent.parent)){let S=g.parent.parent.arguments[1];m(S)&&f(S.value,b)&&d(g,S.value,b,!0)}else h("Object","defineProperties",g.parent.parent.parent.parent)||h("Object","create",g.parent.parent.parent.parent)?(O=g.parent.parent.key.name,!g.parent.parent.computed&&f(O,b)&&d(g,O,b,!0)):f(O,b)&&d(g,O,b,!0);else f(O,b)&&d(g,O,b,!0);return}m(g.key)&&s(g.key.value,p)&&f(g.key.value,g.value.id.name)&&d(g,g.key.value,g.value.id.name,!0)}}}}},Ng}var Lg,kD;function U7(){if(kD)return Lg;kD=1;let r=De();function e(t){return t&&t.defs[0].type==="FunctionName"}return Lg={meta:{type:"suggestion",docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.sourceCode;function n(c){return c.generator&&t.options.length>1&&t.options[1].generators?t.options[1].generators:t.options[0]||"always"}function i(c){let p=c.parent;return p.type==="MethodDefinition"||p.type==="Property"&&(p.method||p.kind==="get"||p.kind==="set")}function a(c){let p=c.parent;return i(c)||p.type==="VariableDeclarator"&&p.id.type==="Identifier"&&p.init===c||p.type==="Property"&&p.value===c||p.type==="PropertyDefinition"&&p.value===c||p.type==="AssignmentExpression"&&p.left.type==="Identifier"&&p.right===c||p.type==="AssignmentPattern"&&p.left.type==="Identifier"&&p.right===c}function l(c){t.report({node:c,messageId:"unnamed",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function o(c){t.report({node:c,messageId:"named",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function u(c){let p=s.getDeclaredVariables(c)[0];if(e(p)&&p.references.length>0)return;let h=!!(c.id&&c.id.name),f=n(c);f==="never"?h&&c.type!=="FunctionDeclaration"&&o(c):f==="as-needed"?!h&&!a(c)&&l(c):!h&&!i(c)&&l(c)}return{"FunctionExpression:exit":u,"ExportDefaultDeclaration > FunctionDeclaration":u}}},Lg}var $g,AD;function V7(){return AD||(AD=1,$g={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=r.options[1]&&r.options[1].allowArrowFunctions,s=e==="declaration",n=[],i={FunctionDeclaration(a){n.push(!1),!s&&a.parent.type!=="ExportDefaultDeclaration"&&r.report({node:a,messageId:"expression"})},"FunctionDeclaration:exit"(){n.pop()},FunctionExpression(a){n.push(!1),s&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})},"FunctionExpression:exit"(){n.pop()},ThisExpression(){n.length>0&&(n[n.length-1]=!0)}};return t||(i.ArrowFunctionExpression=function(){n.push(!1)},i["ArrowFunctionExpression:exit"]=function(a){let l=n.pop();s&&!l&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})}),i}}),$g}var Mg,PD;function W7(){return PD||(PD=1,Mg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.sourceCode,t={unexpected:{messageId:"unexpectedLineBreak",check:(i,a)=>i.loc.end.line!==a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(i,a)=>i.loc.end.line===a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]],` -`)}};function s(i,a){for(let l=1;lm!==h.length-1&&d.loc.end.line!==h[m+1].loc.start.line):a?f:h.length>=l}function u(h,f){let d=h.leftParen,m=h.rightParen,g=t.getTokenAfter(d),b=t.getTokenBefore(m),O=!r.isTokenOnSameLine(d,g),S=!r.isTokenOnSameLine(b,m),C=o(f,O);O&&!C?e.report({node:d,messageId:"unexpectedAfter",fix(k){return t.getText().slice(d.range[1],g.range[0]).trim()?null:k.removeRange([d.range[1],g.range[0]])}}):!O&&C&&e.report({node:d,messageId:"expectedAfter",fix:k=>k.insertTextAfter(d,` -`)}),S&&!C?e.report({node:m,messageId:"unexpectedBefore",fix(k){return t.getText().slice(b.range[1],m.range[0]).trim()?null:k.removeRange([b.range[1],m.range[0]])}}):!S&&C&&e.report({node:m,messageId:"expectedBefore",fix:k=>k.insertTextBefore(m,` -`)})}function c(h,f){let d=h.leftParen,m=t.getTokenAfter(d),g=!r.isTokenOnSameLine(d,m),b=o(f,g);for(let O=0;O<=f.length-2;O++){let S=f[O],C=f[O+1];!(S.loc.end.line!==C.loc.start.line)&&b&&e.report({node:S,messageId:"expectedBetween",fix:E=>E.insertTextBefore(C,` -`)})}}function p(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(r.isOpeningParenToken(t.getLastToken(h,{skip:1}))&&r.isClosingParenToken(t.getLastToken(h))&&h.callee.range[1]a.identifier.range[0]===n.range[0]&&a.identifier.range[1]===n.range[1]);return i.length===1?i[0]:null}function t(s,n){let i=e(s,n);return i&&i.resolved&&i.resolved.defs.length>0}return Ug={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/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(s){let n=s.sourceCode;return{CallExpression(i){let a=n.getScope(i);i.callee.name==="require"&&!t(a,i.callee)&&(n.getAncestors(i).every(o=>r.has(o.type))||s.report({node:i,messageId:"unexpected"}))}}}},Ug}var Vg,FD;function Y7(){if(FD)return Vg;FD=1;let r=De();function e(n,i){if(n.length!==i.length)return!1;for(let a=0;a1?l("notGrouped",S,C):(i==="getBeforeSet"&&b>O||i==="setBeforeGet"&&bc.type==="Property")},ClassBody(u){o(u.body,c=>c.type==="MethodDefinition"&&!c.static),o(u.body,c=>c.type==="MethodDefinition"&&c.static)}}}},Vg}var Wg,RD;function H7(){return RD||(RD=1,Wg={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return{ForInStatement(e){let t=e.body;if(t.type!=="EmptyStatement"&&t.type!=="IfStatement"&&!(t.type==="BlockStatement"&&t.body.length===0)&&!(t.type==="BlockStatement"&&t.body.length===1&&t.body[0].type==="IfStatement")){if(t.type==="BlockStatement"&&t.body.length>=1&&t.body[0].type==="IfStatement"){let s=t.body[0];if(s.consequent.type==="ContinueStatement"||s.consequent.type==="BlockStatement"&&s.consequent.body.length===1&&s.consequent.body[0].type==="ContinueStatement")return}r.report({node:e,messageId:"wrap"})}}}}}),Wg}var Zg,BD;function K7(){return BD||(BD=1,Zg={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(r){let e=r.options[0]||"err",t=r.sourceCode;function s(l){return l[0]==="^"}function n(l){return s(e)?new RegExp(e,"u").test(l):l===e}function i(l){return l.variables.filter(o=>o.defs[0]&&o.defs[0].type==="Parameter")}function a(l){let o=t.getScope(l),u=i(o),c=u[0];c&&n(c.name)&&c.references.length===0&&r.report({node:l,messageId:"expected"})}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a}}}),Zg}var zg,ND;function J7(){if(ND)return zg;ND=1;function r(n){let i=n.parent;return i.type==="AssignmentExpression"&&i.left===n||i.type==="ArrayPattern"||i.type==="RestElement"||i.type==="Property"&&i.value===n&&i.parent.type==="ObjectPattern"||i.type==="AssignmentPattern"&&i.left===n}function e(n){let i=n.parent;return i.type==="ImportSpecifier"&&i.imported!==i.local&&i.imported===n||i.type==="ExportSpecifier"&&i.parent.source&&i.local!==i.exported&&i.local===n}function t(n){let i=n.parent;return!i.computed&&i.type==="Property"&&i.parent.type==="ObjectPattern"&&i.value!==n&&i.key===n}function s(n){let i=n.parent;return i.type==="Property"&&i.parent.type==="ObjectExpression"&&i.shorthand}return zg={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(n){let i=new Set(n.options),a=new Set,l=n.sourceCode,o;function u(f){return i.has(f)}function c(f){let d=o.set.get(f.name);return d&&d.defs.length===0&&d.references.some(m=>m.identifier===f)}function p(f){let d=f.parent;return d.type==="MemberExpression"&&d.property===f&&!d.computed?r(d):d.type!=="CallExpression"&&d.type!=="NewExpression"&&!e(f)&&!t(f)&&!(c(f)&&!s(f))}function h(f){a.has(f.range.toString())||(n.report({node:f,messageId:"restricted",data:{name:f.name}}),a.add(f.range.toString()))}return{Program(f){o=l.getScope(f)},Identifier(f){u(f.name)&&p(f)&&h(f)}}}},zg}var Xg,LD;function eV(){if(LD)return Xg;LD=1;function r(s){let n=s.parent;return n.type==="AssignmentExpression"&&n.left===s||n.type==="ArrayPattern"||n.type==="RestElement"||n.type==="Property"&&n.value===s&&n.parent.type==="ObjectPattern"||n.type==="AssignmentPattern"&&n.left===s}function e(s){let n=s.parent;return n.type==="ImportSpecifier"&&n.imported!==n.local&&n.imported===s||n.type==="ExportSpecifier"&&n.parent.source&&n.local!==n.exported&&n.local===s}function t(s){let n=s.parent;return!n.computed&&n.type==="Property"&&n.parent.type==="ObjectPattern"&&n.key===s}return Xg={meta:{type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(s){let n=new Set(s.options),i=new Set,a=s.sourceCode,l;function o(h){return n.has(h)}function u(h){let f=l.set.get(h.name);return f&&f.defs.length===0&&f.references.some(d=>d.identifier===h)}function c(h){let f=h.parent;return f.type==="MemberExpression"&&f.property===h&&!f.computed?r(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!e(h)&&!t(h)&&!u(h)}function p(h){if(!i.has(h.range.toString())){let f=h.type==="PrivateIdentifier";s.report({node:h,messageId:f?"restrictedPrivate":"restricted",data:{name:h.name}}),i.add(h.range.toString())}}return{Program(h){l=a.getScope(h)},[["Identifier","PrivateIdentifier"]](h){o(h.name)&&c(h)&&p(h)}}}},Xg}var Gg,$D;function tV(){if($D)return Gg;$D=1;let{getGraphemeCount:r}=Si();return Gg={meta:{type:"suggestion",docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=typeof t.min<"u"?t.min:2,n=typeof t.max<"u"?t.max:1/0,i=t.properties!=="never",a=new Set(t.exceptions),l=(t.exceptionPatterns||[]).map(p=>new RegExp(p,"u")),o=new Set;function u(p){return l.some(h=>h.test(p))}let c={MemberExpression:i&&function(p){return!p.computed&&(p.parent.left===p&&p.parent.type==="AssignmentExpression"||p.parent.type==="Property"&&p.parent.value===p&&p.parent.parent.type==="ObjectPattern"&&p.parent.parent.parent.left===p.parent.parent)},AssignmentPattern(p,h){return p.left===h},VariableDeclarator(p,h){return p.id===h},Property(p,h){if(p.parent.type==="ObjectPattern"){let f=p.value.name===p.key.name;return!f&&p.value===h||f&&p.key===h&&i}return i&&!p.computed&&p.key.name===h.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](p){let h=p.name,f=p.parent,d=r(h),m=dn;if(!(m||g)||a.has(h)||u(h))return;let b=c[f.type];if(b&&!o.has(p.range.toString())&&(b===!0||b(f,p))){o.add(p.range.toString());let O=m?"tooShort":"tooLong";p.type==="PrivateIdentifier"&&(O+="Private"),e.report({node:p,messageId:O,data:{name:h,min:s,max:n}})}}}}},Gg}var Yg,MD;function rV(){return MD||(MD=1,Yg={meta:{type:"suggestion",docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]||"^.+$",t=new RegExp(e,"u"),s=r.options[1]||{},n=!!s.properties,i=!!s.classFields,a=!!s.onlyDeclarations,l=!!s.ignoreDestructuring,o=r.sourceCode,u,c=new Set,p=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),f=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function d(S){let C=u.set.get(S.name);return C&&C.defs.length===0&&C.references.some(k=>k.identifier===S)}function m(S){return!t.test(S)}function g(S){let{parent:C}=S;for(;C;){if(C.type==="ObjectPattern")return!0;C=C.parent}return!1}function b(S,C){return(!a||h.has(S.type))&&!p.has(S.type)&&m(C)}function O(S){if(!c.has(S.range.toString())){let C=S.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";r.report({node:S,messageId:C,data:{name:S.name,pattern:e}}),c.add(S.range.toString())}}return{Program(S){u=o.getScope(S)},Identifier(S){let C=S.name,k=S.parent,E=k.type==="MemberExpression"?k.parent:k;if(!d(S))if(k.type==="MemberExpression"){if(!n)return;k.object.type==="Identifier"&&k.object.name===C||E.type==="AssignmentExpression"&&E.left.type==="MemberExpression"&&E.left.property.name===S.name?m(C)&&O(S):E.type==="AssignmentExpression"&&E.right.type!=="MemberExpression"&&m(C)&&O(S)}else if(k.type==="Property"&&k.parent.type==="ObjectExpression"&&k.key===S&&!k.computed)n&&m(C)&&O(S);else if(k.type==="Property"||k.type==="AssignmentPattern"){if(k.parent&&k.parent.type==="ObjectPattern"){!l&&k.shorthand&&k.value.left&&m(C)&&O(S);let A=k.key.name===k.value.name;if(!A&&k.key===S)return;k.value.name&&m(C)&&!(A&&l)&&O(S)}if(!n&&!k.computed||l&&g(S))return;k.right!==S&&b(E,C)&&O(S)}else f.has(k.type)?k.local&&k.local.name===S.name&&m(C)&&O(S):k.type==="PropertyDefinition"?i&&m(C)&&O(S):b(E,C)&&O(S)},PrivateIdentifier(S){S.parent.type==="PropertyDefinition"&&!i||m(S.name)&&O(S)}}}}),Yg}var Hg,jD;function nV(){if(jD)return Hg;jD=1;let{isCommentToken:r,isNotOpeningParenToken:e}=De();return Hg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.sourceCode,n=t.options[0]||"beside";function i(a){if(a.body.type==="BlockStatement")return;let l=s.getTokenBefore(a.body,e),o=s.getTokenAfter(l);l.loc.end.line===o.loc.start.line&&n==="below"?t.report({node:o,messageId:"expected",fix:u=>u.insertTextBefore(o,` -`)}):l.loc.end.line!==o.loc.start.line&&n==="beside"&&t.report({node:o,messageId:"unexpected",fix(u){return s.getFirstTokenBetween(l,o,{includeComments:!0,filter:r})?null:u.replaceTextRange([l.range[1],o.range[0]]," ")}})}return{ArrowFunctionExpression:a=>i(a)}}},Hg}var Kg,qD;function sV(){if(qD)return Kg;qD=1;let r=De(),e=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"]);class t{constructor(l){this._values=Array(l+1)}insert(l,o){this._values[l]=o}findLastNotAfter(l){let o=this._values;for(let u=l;u>=0;u--){let c=o[u];if(c)return c}}deleteRange(l,o){this._values.fill(void 0,l,o)}}class s{constructor(l){this.sourceCode=l,this.firstTokensByLineNumber=new Map;let o=l.tokensAndComments;for(let u=0;u=l[0]&&o.range[1]<=l[1],d=f&&this._getOffsetDescriptor(o);this._indexMap.deleteRange(l[0]+1,l[1]),this._indexMap.insert(l[0],p),f&&(this._indexMap.insert(o.range[0],d),this._indexMap.insert(o.range[1],p)),this._indexMap.insert(l[1],h)}getDesiredIndent(l){if(!this._desiredIndentCache.has(l))if(this._ignoredTokens.has(l))this._desiredIndentCache.set(l,this._tokenInfo.getTokenIndent(l));else if(this._lockedFirstTokens.has(l)){let o=this._lockedFirstTokens.get(l);this._desiredIndentCache.set(l,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(o))+this._indentType.repeat(o.loc.start.column-this._tokenInfo.getFirstTokenOfLine(o).loc.start.column))}else{let o=this._getOffsetDescriptor(l),u=o.from&&o.from.loc.start.line===l.loc.start.line&&!/^\s*?\n/u.test(l.value)&&!o.force?0:o.offset*this._indentSize;this._desiredIndentCache.set(l,(o.from?this.getDesiredIndent(o.from):"")+this._indentType.repeat(u))}return this._desiredIndentCache.get(l)}ignoreToken(l){this._tokenInfo.isFirstTokenOfLine(l)&&this._ignoredTokens.add(l)}getFirstDependency(l){return this._getOffsetDescriptor(l).from}}let i={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return Kg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[i,{type:"object",properties:{var:i,let:i,const:i},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:i},additionalProperties:!1},ArrayExpression:i,ObjectExpression:i,ImportDeclaration:i,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(a){let c="space",p=4,h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};a.options.length&&(a.options[0]==="tab"?(p=1,c="tab"):(p=a.options[0],c="space"),a.options[1]&&(Object.assign(h,a.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));let f=a.sourceCode,d=new s(f),m=new n(d,p,c==="space"?" ":" ",f.text.length),g=new WeakSet;function b(N,W,Z){let le=`${N} ${c}${N===1?"":"s"}`,ae=`space${W===1?"":"s"}`,Se=`tab${Z===1?"":"s"}`,J;return W>0?J=c==="space"?W:`${W} ${ae}`:Z>0?J=c==="tab"?Z:`${Z} ${Se}`:J="0",{expected:le,actual:J}}function O(N,W){let Z=Array.from(d.getTokenIndent(N)),le=Z.filter(Se=>Se===" ").length,ae=Z.filter(Se=>Se===" ").length;a.report({node:N,messageId:"wrongIndentation",data:b(W.length,le,ae),loc:{start:{line:N.loc.start.line,column:0},end:{line:N.loc.start.line,column:N.loc.start.column}},fix(Se){let J=[N.range[0]-N.loc.start.column,N.range[0]],me=W;return Se.replaceTextRange(J,me)}})}function S(N,W){let Z=d.getTokenIndent(N);return Z===W||Z.includes(" ")&&Z.includes(" ")}function C(N){if(!N.parent||N.parent.type!=="CallExpression"||N.parent.callee!==N)return!1;let W=N.parent&&N.parent.parent;for(;W.type==="UnaryExpression"&&["!","~","+","-"].includes(W.operator)||W.type==="AssignmentExpression"||W.type==="LogicalExpression"||W.type==="SequenceExpression"||W.type==="VariableDeclarator";)W=W.parent;return(W.type==="ExpressionStatement"||W.type==="VariableDeclaration")&&W.parent.type==="Program"}function k(N){let Z=N.match(/\s*$/u)[0].match(r.createGlobalLinebreakMatcher());return Z===null?0:Z.length}function E(N,W,Z,le){function ae(Se){let J=f.getTokenBefore(Se);for(;r.isOpeningParenToken(J)&&J!==W;)J=f.getTokenBefore(J);return f.getTokenAfter(J)}m.setDesiredOffsets([W.range[1],Z.range[0]],W,typeof le=="number"?le:1),m.setDesiredOffset(Z,W,0),!(le==="first"&&N.length&&!N[0])&&N.forEach((Se,J)=>{if(Se&&(le==="off"&&m.ignoreToken(ae(Se)),J!==0))if(le==="first"&&d.isFirstTokenOfLine(ae(Se)))m.matchOffsetOf(ae(N[0]),ae(Se));else{let me=N[J-1],j=me&&ae(me),de=me&&f.getLastToken(me);me&&de.loc.end.line-k(de.value)>W.loc.end.line&&m.setDesiredOffsets([me.range[1],Se.range[1]],j,0)}})}function A(N){if(N.type!=="BlockStatement"){let W=f.getTokenBefore(N,r.isNotOpeningParenToken),Z=f.getFirstToken(N),le=f.getLastToken(N);for(;r.isOpeningParenToken(f.getTokenBefore(Z))&&r.isClosingParenToken(f.getTokenAfter(le));)Z=f.getTokenBefore(Z),le=f.getTokenAfter(le);m.setDesiredOffsets([Z.range[0],le.range[1]],W,1)}}function w(N){let W;N.arguments.length?W=f.getFirstTokenBetween(N.callee,N.arguments[0],r.isOpeningParenToken):W=f.getLastToken(N,1);let Z=f.getLastToken(N);if(g.add(W),g.add(Z),N.optional){let Se=f.getTokenAfter(N.callee,r.isQuestionDotToken),J=f.getTokensBetween(N.callee,Se,{filter:r.isClosingParenToken}).length,me=J?f.getTokenBefore(N.callee,{skip:J-1}):f.getFirstToken(N.callee),j=f.getTokenBefore(Se),de=j.loc.end.line===W.loc.start.line?j:me;m.setDesiredOffset(Se,de,1)}let le=N.callee.type==="TaggedTemplateExpression"?f.getFirstToken(N.callee.quasi):W,ae=f.getTokenBefore(le);m.setDesiredOffset(W,ae,0),E(N.arguments,W,Z,h.CallExpression.arguments)}function P(N){let W=[],Z=[];for(let le=0;le=0;le--){let ae=Z[le].left,Se=Z[le].right;if(!g.has(ae)&&!g.has(Se)){let J=new Set(f.getTokensBetween(ae,Se));J.forEach(me=>{J.has(m.getFirstDependency(me))||m.setDesiredOffset(me,ae,1)})}m.setDesiredOffset(Se,ae,0)}}function T(N){let W=new Set(f.getTokens(N,{includeComments:!0}));W.forEach(Z=>{if(!W.has(m.getFirstDependency(Z))){let le=d.getFirstTokenOfLine(Z);Z===le?m.ignoreToken(Z):m.setDesiredOffset(Z,le,0)}})}function I(N,W){let Z=W;for(;Z.parent&&!Z.parent.type.endsWith("Statement")&&!Z.parent.type.endsWith("Declaration");)Z=Z.parent;return Z=Z.parent,!Z||Z.loc.start.line===N.loc.start.line}function F(N,W){let Z=N.loc.end.line,le=W.loc.start.line;if(Z===le||Z===le-1)return!1;for(let ae=Z+1;aele)||W,r.isClosingBracketToken);E(N.elements,W,Z,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(N){let W=f.getFirstToken(N),Z=f.getTokenAfter(N.properties.length?N.properties.at(-1):W,r.isClosingBraceToken);E(N.properties,W,Z,h.ObjectExpression)},ArrowFunctionExpression(N){let W=f.getFirstToken(N,{skip:N.async?1:0});if(r.isOpeningParenToken(W)){let Z=W,le=f.getTokenBefore(N.body,r.isClosingParenToken);g.add(Z),g.add(le),E(N.params,Z,le,h.FunctionExpression.parameters)}A(N.body)},AssignmentExpression(N){let W=f.getFirstTokenBetween(N.left,N.right,Z=>Z.value===N.operator);m.setDesiredOffsets([W.range[0],N.range[1]],f.getLastToken(N.left),1),m.ignoreToken(W),m.ignoreToken(f.getTokenAfter(W))},"BinaryExpression, LogicalExpression"(N){let W=f.getFirstTokenBetween(N.left,N.right,le=>le.value===N.operator),Z=f.getTokenAfter(W);m.ignoreToken(W),m.ignoreToken(Z),m.setDesiredOffset(Z,W,0)},"BlockStatement, ClassBody"(N){let W;N.parent&&C(N.parent)?W=h.outerIIFEBody:N.parent&&(N.parent.type==="FunctionExpression"||N.parent.type==="ArrowFunctionExpression")?W=h.FunctionExpression.body:N.parent&&N.parent.type==="FunctionDeclaration"?W=h.FunctionDeclaration.body:W=1,r.STATEMENT_LIST_PARENTS.has(N.parent.type)||m.setDesiredOffset(f.getFirstToken(N),f.getFirstToken(N.parent),0),E(N.body,f.getFirstToken(N),f.getLastToken(N),W)},CallExpression:w,"ClassDeclaration[superClass], ClassExpression[superClass]"(N){let W=f.getFirstToken(N),Z=f.getTokenBefore(N.superClass,r.isNotOpeningParenToken);m.setDesiredOffsets([Z.range[0],N.body.range[0]],W,1)},ConditionalExpression(N){let W=f.getFirstToken(N);if(!h.flatTernaryExpressions||!r.isTokenOnSameLine(N.test,N.consequent)||I(W,N)){let Z=f.getFirstTokenBetween(N.test,N.consequent,me=>me.type==="Punctuator"&&me.value==="?"),le=f.getFirstTokenBetween(N.consequent,N.alternate,me=>me.type==="Punctuator"&&me.value===":"),ae=f.getTokenAfter(Z),Se=f.getTokenBefore(le),J=f.getTokenAfter(le);m.setDesiredOffset(Z,W,1),m.setDesiredOffset(le,W,1),m.setDesiredOffset(ae,W,ae.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),Se.loc.end.line===J.loc.start.line?m.setDesiredOffset(J,ae,0):m.setDesiredOffset(J,W,J.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":N=>A(N.body),ExportNamedDeclaration(N){if(N.declaration===null){let W=f.getLastToken(N,r.isClosingBraceToken);E(N.specifiers,f.getFirstToken(N,{skip:1}),W,1),N.source&&m.setDesiredOffsets([W.range[1],N.range[1]],f.getFirstToken(N),1)}},ForStatement(N){let W=f.getFirstToken(N,1);N.init&&m.setDesiredOffsets(N.init.range,W,1),N.test&&m.setDesiredOffsets(N.test.range,W,1),N.update&&m.setDesiredOffsets(N.update.range,W,1),A(N.body)},"FunctionDeclaration, FunctionExpression"(N){let W=f.getTokenBefore(N.body),Z=f.getTokenBefore(N.params.length?N.params[0]:W);g.add(Z),g.add(W),E(N.params,Z,W,h[N.type].parameters)},IfStatement(N){A(N.consequent),N.alternate&&A(N.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(N){let W;N.type==="IfStatement"?(W=[N.consequent],N.alternate&&W.push(N.alternate)):W=[N.body];for(let Z of W){let le=f.getLastToken(Z);if(r.isSemicolonToken(le)){let ae=f.getTokenBefore(le),Se=f.getTokenAfter(le);!r.isTokenOnSameLine(ae,le)&&Se&&r.isTokenOnSameLine(le,Se)&&m.setDesiredOffset(le,f.getFirstToken(N),0)}}},ImportDeclaration(N){if(N.specifiers.some(ae=>ae.type==="ImportSpecifier")){let ae=f.getFirstToken(N,r.isOpeningBraceToken),Se=f.getLastToken(N,r.isClosingBraceToken);E(N.specifiers.filter(J=>J.type==="ImportSpecifier"),ae,Se,h.ImportDeclaration)}let W=f.getLastToken(N,ae=>ae.type==="Identifier"&&ae.value==="from"),Z=f.getLastToken(N,ae=>ae.type==="String"),le=f.getLastToken(N,ae=>ae.type==="Punctuator"&&ae.value===";");if(W){let ae=le&&le.range[1]===Z.range[1]?N.range[1]:Z.range[1];m.setDesiredOffsets([W.range[0],ae],f.getFirstToken(N),1)}},ImportExpression(N){let W=f.getFirstToken(N,1),Z=f.getLastToken(N);g.add(W),g.add(Z),m.setDesiredOffset(W,f.getTokenBefore(W),0),E([N.source],W,Z,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(N){let W=N.type==="MetaProperty"?N.meta:N.object,Z=f.getFirstTokenBetween(W,N.property,r.isNotClosingParenToken),le=f.getTokenAfter(Z),ae=f.getTokensBetween(W,N.property,{filter:r.isClosingParenToken}).length,Se=ae?f.getTokenBefore(W,{skip:ae-1}):f.getFirstToken(W),J=f.getTokenBefore(Z),me=N.computed?Z:le;N.computed&&(m.setDesiredOffset(f.getLastToken(N),Z,0),m.setDesiredOffsets(N.property.range,Z,1));let j=J.loc.end.line===me.loc.start.line?J:Se;typeof h.MemberExpression=="number"?(m.setDesiredOffset(Z,j,h.MemberExpression),m.setDesiredOffset(le,N.computed?Z:j,h.MemberExpression)):(m.ignoreToken(Z),m.ignoreToken(le),m.setDesiredOffset(Z,j,0),m.setDesiredOffset(le,Z,0))},NewExpression(N){(N.arguments.length>0||r.isClosingParenToken(f.getLastToken(N))&&r.isOpeningParenToken(f.getLastToken(N,1)))&&w(N)},Property(N){if(!N.shorthand&&!N.method&&N.kind==="init"){let W=f.getFirstTokenBetween(N.key,N.value,r.isColonToken);m.ignoreToken(f.getTokenAfter(W))}},PropertyDefinition(N){let W=f.getFirstToken(N),Z=f.getLastToken(N),le;if(N.computed){let ae=f.getTokenBefore(N.key,r.isOpeningBracketToken),Se=le=f.getTokenAfter(N.key,r.isClosingBracketToken),J=[ae.range[1],Se.range[0]];ae!==W&&m.setDesiredOffset(ae,W,0),m.setDesiredOffsets(J,ae,1),m.setDesiredOffset(Se,ae,0)}else{let ae=le=f.getFirstToken(N.key);ae!==W&&m.setDesiredOffset(ae,W,1)}if(N.value){let ae=f.getTokenBefore(N.value,r.isEqToken),Se=f.getTokenAfter(ae);m.setDesiredOffset(ae,le,1),m.setDesiredOffset(Se,ae,1),r.isSemicolonToken(Z)&&m.setDesiredOffset(Z,ae,1)}else r.isSemicolonToken(Z)&&m.setDesiredOffset(Z,le,1)},StaticBlock(N){let W=f.getFirstToken(N,{skip:1}),Z=f.getLastToken(N);E(N.body,W,Z,h.StaticBlock.body)},SwitchStatement(N){let W=f.getTokenAfter(N.discriminant,r.isOpeningBraceToken),Z=f.getLastToken(N);m.setDesiredOffsets([W.range[1],Z.range[0]],W,h.SwitchCase),N.cases.length&&f.getTokensBetween(N.cases.at(-1),Z,{includeComments:!0,filter:r.isCommentToken}).forEach(le=>m.ignoreToken(le))},SwitchCase(N){if(!(N.consequent.length===1&&N.consequent[0].type==="BlockStatement")){let W=f.getFirstToken(N),Z=f.getTokenAfter(N);m.setDesiredOffsets([W.range[1],Z.range[0]],W,1)}},TemplateLiteral(N){N.expressions.forEach((W,Z)=>{let le=N.quasis[Z],ae=N.quasis[Z+1],Se=le.loc.start.line===le.loc.end.line?f.getFirstToken(le):null;m.setDesiredOffsets([le.range[1],ae.range[0]],Se,1),m.setDesiredOffset(f.getFirstToken(ae),Se,0)})},VariableDeclaration(N){let W=Object.hasOwn(h.VariableDeclarator,N.kind)?h.VariableDeclarator[N.kind]:1,Z=f.getFirstToken(N),le=f.getLastToken(N);if(h.VariableDeclarator[N.kind]==="first"){if(N.declarations.length>1){E(N.declarations,Z,le,"first");return}W=1}N.declarations.at(-1).loc.start.line>N.loc.start.line?m.setDesiredOffsets(N.range,Z,W,!0):m.setDesiredOffsets(N.range,Z,W),r.isSemicolonToken(le)&&m.ignoreToken(le)},VariableDeclarator(N){if(N.init){let W=f.getTokenBefore(N.init,r.isNotOpeningParenToken),Z=f.getTokenAfter(W);m.ignoreToken(W),m.ignoreToken(Z),m.setDesiredOffsets([Z.range[0],N.range[1]],W,1),m.setDesiredOffset(W,f.getLastToken(N.id),0)}},"JSXAttribute[value]"(N){let W=f.getFirstTokenBetween(N.name,N.value,Z=>Z.type==="Punctuator"&&Z.value==="=");m.setDesiredOffsets([W.range[0],N.value.range[1]],f.getFirstToken(N.name),1)},JSXElement(N){N.closingElement&&E(N.children,f.getFirstToken(N.openingElement),f.getFirstToken(N.closingElement),1)},JSXOpeningElement(N){let W=f.getFirstToken(N),Z;N.selfClosing?(Z=f.getLastToken(N,{skip:1}),m.setDesiredOffset(f.getLastToken(N),Z,0)):Z=f.getLastToken(N),m.setDesiredOffsets(N.name.range,f.getFirstToken(N)),E(N.attributes,W,Z,1)},JSXClosingElement(N){let W=f.getFirstToken(N);m.setDesiredOffsets(N.name.range,W,1)},JSXFragment(N){let W=f.getFirstToken(N.openingFragment),Z=f.getFirstToken(N.closingFragment);E(N.children,W,Z,1)},JSXOpeningFragment(N){let W=f.getFirstToken(N),Z=f.getLastToken(N);m.setDesiredOffsets(N.range,W,1),m.matchOffsetOf(W,Z)},JSXClosingFragment(N){let W=f.getFirstToken(N),Z=f.getLastToken(N,{skip:1}),le=f.getLastToken(N),ae=r.isTokenOnSameLine(Z,le)?Z:le;m.setDesiredOffsets(N.range,W,1),m.matchOffsetOf(W,ae)},JSXExpressionContainer(N){let W=f.getFirstToken(N),Z=f.getLastToken(N);m.setDesiredOffsets([W.range[1],Z.range[0]],W,1)},JSXSpreadAttribute(N){let W=f.getFirstToken(N),Z=f.getLastToken(N);m.setDesiredOffsets([W.range[1],Z.range[0]],W,1)},"*"(N){let W=f.getFirstToken(N);W&&!L.has(W)&&m.setDesiredOffsets(N.range,W,0)}},B=[],Q={};for(let[N,W]of Object.entries(_))Q[N]=Z=>B.push({listener:W,node:Z});let V=new Set;function R(N){V.add(N),L.add(f.getFirstToken(N))}let $=h.ignoredNodes.reduce((N,W)=>Object.assign(N,{[W]:R}),{});return Object.assign(Q,$,{"*:exit"(N){e.has(N.type)||R(N)},"Program:exit"(){h.ignoreComments&&f.getAllComments().forEach(W=>m.ignoreToken(W));for(let W=0;W0&&N>0?ae=`${$} ${Z} and ${N} ${le}`:$>0?ae=i==="space"?$:`${$} ${Z}`:N>0?ae=i==="tab"?N:`${N} ${le}`:ae="0",{expected:W,actual:ae}}function p(R,$,N,W,Z,le){if(N&&W)return;let ae=(i==="space"?" ":" ").repeat($),Se=le?[R.range[1]-R.loc.end.column,R.range[1]-R.loc.end.column+N+W]:[R.range[0]-R.loc.start.column,R.range[0]-R.loc.start.column+N+W];e.report({node:R,loc:Z,messageId:"expected",data:c($,N,W),fix:J=>J.replaceTextRange(Se,ae)})}function h(R,$){let N=$?o.getLastToken(R):o.getFirstToken(R),W=o.getText(N,N.loc.start.column).split(""),Z=W.slice(0,W.findIndex(Se=>Se!==" "&&Se!==" ")),le=Z.filter(Se=>Se===" ").length,ae=Z.filter(Se=>Se===" ").length;return{space:le,tab:ae,goodChar:i==="space"?le:ae,badChar:i==="space"?ae:le}}function f(R,$){let N=$===!0?o.getLastToken(R,1):o.getTokenBefore(R),W=$===!0?R.loc.end.line:R.loc.start.line,Z=N?N.loc.end.line:-1;return W!==Z}function d(R,$){let N=h(R,!1);if(R.type!=="ArrayExpression"&&R.type!=="ObjectExpression"&&(N.goodChar!==$||N.badChar!==0)&&f(R)&&p(R,$,N.space,N.tab),R.type==="IfStatement"&&R.alternate){let W=o.getTokenBefore(R.alternate);d(W,$),f(R.alternate)||d(R.alternate,$)}if(R.type==="TryStatement"&&R.handler){let W=o.getFirstToken(R.handler);d(W,$)}if(R.type==="TryStatement"&&R.finalizer){let W=o.getTokenBefore(R.finalizer);d(W,$)}if(R.type==="DoWhileStatement"){let W=o.getTokenAfter(R.body);d(W,$)}}function m(R,$){R.forEach(N=>d(N,$))}function g(R,$){let N=o.getLastToken(R),W=h(N,!0);(W.goodChar!==$||W.badChar!==0)&&f(R,!0)&&p(R,$,W.space,W.tab,{line:N.loc.start.line,column:N.loc.start.column},!0)}function b(R,$){let N=o.getLastToken(R,r.isClosingParenToken);if(o.getText(N,N.loc.start.column).slice(0,-1).trim())return;let Z=h(N,!0);Z.goodChar!==$&&p(R,$,Z.space,Z.tab,{line:N.loc.start.line,column:N.loc.start.column},!0)}function O(R,$){let N=h(R,!1);(N.goodChar!==$||N.badChar!==0)&&f(R)&&p(R,$,N.space,N.tab,{line:R.loc.start.line,column:R.loc.start.column})}function S(R,$,N){let W=R.parent,Z=new Set(N||["Program"]);for(;W.type!==$&&!Z.has(W.type)&&W.type!=="Program";)W=W.parent;return W.type===$?W:null}function C(R){return S(R,"VariableDeclarator")}function k(R,$){return $&&$.parent.loc.start.line===R.loc.start.line&&$.parent.declarations.length>1}function E(R){let $=R.parent;return $.arguments.length>=2&&$.arguments[1]===R?$.arguments[0].loc.end.line>$.arguments[0].loc.start.line:!1}function A(R){let $=R.parent,N=$.parent;if($.type!=="CallExpression"||$.callee!==R)return!1;for(;N.type==="UnaryExpression"&&(N.operator==="!"||N.operator==="~"||N.operator==="+"||N.operator==="-")||N.type==="AssignmentExpression"||N.type==="LogicalExpression"||N.type==="SequenceExpression"||N.type==="VariableDeclarator";)N=N.parent;return(N.type==="ExpressionStatement"||N.type==="VariableDeclaration")&&N.parent&&N.parent.type==="Program"}function w(R){let $=R.parent,N;if($.parent&&($.parent.type==="Property"||$.parent.type==="ArrayExpression")?N=h($,!1).goodChar:N=h($).goodChar,$.parent.type==="CallExpression"){let le=$.parent;$.type!=="FunctionExpression"&&$.type!=="ArrowFunctionExpression"?le&&le.loc.start.line0&&m(R.body,N),g(R,N-W)}function P(R){let $=o.getLastToken(R),N=R.loc.start.line,W=$.loc.end.line;return N===W}function T(R){if(P(R))return;let $=R.type==="ArrayExpression"?R.elements:R.properties;$=$.filter(le=>le!==null);let N,W,Z=C(R);if(f(R)){let le=R.parent;if(N=h(le).goodChar,(!Z||Z.loc.start.line!==R.loc.start.line)&&(le.type!=="VariableDeclarator"||Z===Z.parent.declarations[0]))if(le.type==="VariableDeclarator"&&Z.loc.start.line===le.loc.start.line)N+=a*l.VariableDeclarator[Z.parent.kind];else if(le.type==="ObjectExpression"||le.type==="ArrayExpression"){let ae=R.parent.type==="ObjectExpression"?R.parent.properties:R.parent.elements;ae[0]&&ae[0].loc.start.line===le.loc.start.line&&ae[0].loc.end.line!==le.loc.start.line||(typeof l[le.type]=="number"?N+=l[le.type]*a:N=ae[0].loc.start.column)}else le.type==="CallExpression"||le.type==="NewExpression"?typeof l.CallExpression.arguments=="number"?N+=l.CallExpression.arguments*a:l.CallExpression.arguments==="first"?le.arguments.includes(R)&&(N=le.arguments[0].loc.start.column):N+=a:(le.type==="LogicalExpression"||le.type==="ArrowFunctionExpression")&&(N+=a);O(R,N)}else N=h(R).goodChar;l[R.type]==="first"?W=$.length?$[0].loc.start.column:0:W=N+a*l[R.type],k(R,Z)&&(W+=a*l.VariableDeclarator[Z.parent.kind]),m($,W),!($.length>0&&$.at(-1).loc.end.line===R.loc.end.line)&&g(R,N+(k(R,Z)?l.VariableDeclarator[Z.parent.kind]*a:0))}function I(R){return R.type==="BlockStatement"||R.type==="ClassBody"||R.body&&R.body.type==="BlockStatement"||R.consequent&&R.consequent.type==="BlockStatement"}function F(R){if(P(R))return;if(R.parent&&(R.parent.type==="FunctionExpression"||R.parent.type==="FunctionDeclaration"||R.parent.type==="ArrowFunctionExpression")){w(R);return}let $,N,W=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];R.parent&&W.includes(R.parent.type)&&I(R)?$=h(R.parent).goodChar:R.parent&&R.parent.type==="CatchClause"?$=h(R.parent.parent).goodChar:$=h(R).goodChar,R.type==="IfStatement"&&R.consequent.type!=="BlockStatement"?N=[R.consequent]:Array.isArray(R.body)?N=R.body:N=[R.body],N.length>0&&m(N,$+a),R.type==="BlockStatement"&&g(R,$)}function L(R){return R.declarations.reduce(($,N)=>{let W=$.at(-1);return(N.loc.start.line!==R.loc.start.line&&!W||W&&W.loc.start.line!==N.loc.start.line)&&$.push(N),$},[])}function _(R){let $=L(R),N=h(R).goodChar,W=$.at(-1),Z=N+a*l.VariableDeclarator[R.kind];if(m($,Z),o.getLastToken(R).loc.end.line<=W.loc.end.line)return;let le=o.getTokenBefore(W);le.value===","?g(R,h(le).goodChar):g(R,Z-a)}function B(R){R.body.type!=="BlockStatement"&&F(R)}function Q(R,$){let N=R.type==="SwitchStatement"?R:R.parent,W=typeof $>"u"?h(N).goodChar:$,Z;return u[N.loc.start.line]?u[N.loc.start.line]:(N.cases.length>0&&l.SwitchCase===0?Z=W:Z=W+a*l.SwitchCase,u[N.loc.start.line]=Z,Z)}function V(R){let $=/^return\s*?\(\s*?\);*?/u,N=o.getText(R).replace(o.getText(R.argument),"");return $.test(N)}return{Program(R){R.body.length>0&&m(R.body,h(R).goodChar)},ClassBody:F,BlockStatement:F,WhileStatement:B,ForStatement:B,ForInStatement:B,ForOfStatement:B,DoWhileStatement:B,IfStatement(R){R.consequent.type!=="BlockStatement"&&R.consequent.loc.start.line>R.loc.start.line&&F(R)},VariableDeclaration(R){R.declarations.at(-1).loc.start.line>R.declarations[0].loc.start.line&&_(R)},ObjectExpression(R){T(R)},ArrayExpression(R){T(R)},MemberExpression(R){if(typeof l.MemberExpression>"u"||P(R)||S(R,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||S(R,"AssignmentExpression",["FunctionExpression"]))return;let $=h(R).goodChar+a*l.MemberExpression,N=[R.property],W=o.getTokenBefore(R.property);W.type==="Punctuator"&&W.value==="."&&N.push(W),m(N,$)},SwitchStatement(R){let $=h(R).goodChar,N=Q(R,$);m(R.cases,N),g(R,$)},SwitchCase(R){if(P(R))return;let $=Q(R);m(R.consequent,$+a)},FunctionDeclaration(R){P(R)||(l.FunctionDeclaration.parameters==="first"&&R.params.length?m(R.params.slice(1),R.params[0].loc.start.column):l.FunctionDeclaration.parameters!==null&&m(R.params,h(R).goodChar+a*l.FunctionDeclaration.parameters))},FunctionExpression(R){P(R)||(l.FunctionExpression.parameters==="first"&&R.params.length?m(R.params.slice(1),R.params[0].loc.start.column):l.FunctionExpression.parameters!==null&&m(R.params,h(R).goodChar+a*l.FunctionExpression.parameters))},ReturnStatement(R){if(P(R))return;let $=h(R).goodChar;V(R)?b(R,$):d(R,$)},CallExpression(R){P(R)||(l.CallExpression.arguments==="first"&&R.arguments.length?m(R.arguments.slice(1),R.arguments[0].loc.start.column):l.CallExpression.arguments!==null&&m(R.arguments,h(R).goodChar+a*l.CallExpression.arguments))}}}},Jg}var e0,UD;function aV(){if(UD)return e0;UD=1;function r(t){return t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"}function e(t){let s=t.parent,n=s.parent;return r(n)?n.type==="ForStatement"?n.init===s:n.left===s:!!t.init}return e0={meta:{type:"suggestion",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/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 s="always",n="never",i=t.options[0]||s,a=t.options[1]||{};return{"VariableDeclaration:exit"(l){let o=l.kind,u=l.declarations;for(let c=0;c1)return!1;return!0}return!1}function C(L){let _=L.key;return L.computed?d.getText().slice(_.range[0],_.range[1]):r.getStaticPropertyName(L)}function k(L,_,B,Q,V){let R=B.length-Q;if((R&&V==="strict"||R<0&&V==="minimum"||R>0&&!Q&&V==="minimum")&&!(Q&&t(B))){let $=g(L.key),N=d.getTokenBefore($,{includeComments:!0}),W=d.getTokenAfter($,{includeComments:!0}),Z=_==="key",le=R>0,ae=Math.abs(R),Se=Array(ae+1).join(" "),J=Z?N.loc.end:$.loc.start,me=Z?$.loc.start:W.loc.start,j=Z?N.loc:W.loc,de=le?{start:J,end:me}:j,ee;if(le){let ve;Z?ve=[N.range[1],N.range[1]+ae]:ve=[W.range[0]-ae,W.range[0]],ee=function(Me){return Me.removeRange(ve)}}else Z?ee=function(ve){return ve.insertTextAfter(N,Se)}:ee=function(ve){return ve.insertTextBefore(W,Se)};let ce;le?ce=_==="key"?"extraKey":"extraValue":ce=_==="key"?"missingKey":"missingValue",o.report({node:L[_],loc:de,messageId:ce,data:{computed:L.computed?"computed ":"",key:C(L)},fix:ee})}}function E(L){let _=d.getFirstToken(L),B=b(L.key);return e(d.getText().slice(_.range[0],B.range[1]))}function A(L){let _=/(\s*):(\s*)/u.exec(d.getText().slice(L.key.range[1],L.value.range[0]));return _?{beforeColon:_[1],afterColon:_[2]}:null}function w(L){return L.properties.length===1?[L.properties]:L.properties.reduce((_,B)=>{let Q=s(_),V=s(Q);return!V||S(V,B)?Q.push(B):_.push([B]),_},[[]])}function P(L){let _=L.length,B=L.map(E),Q=f.on,V=Math.max(...B),R,$,N;f&&_>1?(R=f.beforeColon,$=f.afterColon,N=f.mode):(R=p.beforeColon,$=p.afterColon,N=f.mode),V+=Q==="colon"?R:$;for(let W=0;W<_;W++){let Z=L[W],le=A(Z);if(le){let ae=B[W];Q==="value"?(k(Z,"key",le.beforeColon,R,N),k(Z,"value",le.afterColon,V-ae,N)):(k(Z,"key",le.beforeColon,V-ae,N),k(Z,"value",le.afterColon,$,N))}}}function T(L,_){let B=A(L);B&&(k(L,"key",B.beforeColon,_.beforeColon,_.mode),k(L,"value",B.afterColon,_.afterColon,_.mode))}function I(L,_){let B=L.length;for(let Q=0;Q{let B=_.filter(m);B.length>0&&i(B)?I(B,p):P(B)})}return f?{ObjectExpression(L){n(L)?I(L.properties.filter(m),h):F(L)}}:{Property(L){T(L,n(L.parent)?h:p)}}}},r0}var n0,ZD;function uV(){if(ZD)return n0;ZD=1;let r=De(),e=$O(),t=/^[)\]}>]$/u,s=/^(?:[([{<~!]|\+\+?|--?)$/u,n=/^[)\]}>*]$/u,i=/^[{*]$/u,a=/\$\{$/u,l=/^\}/u,o=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,u=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){u.sort();for(let h=1;h(h[f]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),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(h){let f=h.sourceCode,d=new WeakSet;function m(ae,Se){let J=f.getTokenBefore(ae);J&&(o.test(J.type)||Se.test(J.value))&&!c(J)&&!d.has(J)&&r.isTokenOnSameLine(J,ae)&&!f.isSpaceBetweenTokens(J,ae)&&h.report({loc:ae.loc,messageId:"expectedBefore",data:ae,fix(me){return me.insertTextBefore(ae," ")}})}function g(ae,Se){let J=f.getTokenBefore(ae);J&&(o.test(J.type)||Se.test(J.value))&&!c(J)&&!d.has(J)&&r.isTokenOnSameLine(J,ae)&&f.isSpaceBetweenTokens(J,ae)&&h.report({loc:{start:J.loc.end,end:ae.loc.start},messageId:"unexpectedBefore",data:ae,fix(me){return me.removeRange([J.range[1],ae.range[0]])}})}function b(ae,Se){let J=f.getTokenAfter(ae);J&&(o.test(J.type)||Se.test(J.value))&&!p(J)&&!d.has(J)&&r.isTokenOnSameLine(ae,J)&&!f.isSpaceBetweenTokens(ae,J)&&h.report({loc:ae.loc,messageId:"expectedAfter",data:ae,fix(me){return me.insertTextAfter(ae," ")}})}function O(ae,Se){let J=f.getTokenAfter(ae);J&&(o.test(J.type)||Se.test(J.value))&&!p(J)&&!d.has(J)&&r.isTokenOnSameLine(ae,J)&&f.isSpaceBetweenTokens(ae,J)&&h.report({loc:{start:ae.loc.end,end:J.loc.start},messageId:"unexpectedAfter",data:ae,fix(me){return me.removeRange([ae.range[1],J.range[0]])}})}function S(ae={}){let Se=ae.before!==!1,J=ae.after!==!1,me={before:Se?m:g,after:J?b:O},j=ae&&ae.overrides||{},de=Object.create(null);for(let ee=0;ee{switch(J.value){case"get":case"set":case"async":return!0;default:return!1}});if(!Se)throw new Error("Failed to find token get, set, or async beside method name");A(Se)}}function le(ae){k(f.getFirstToken(ae))}return{DebuggerStatement:w,WithStatement:w,BreakStatement:w,ContinueStatement:w,ReturnStatement:w,ThrowStatement:w,TryStatement:_,IfStatement:L,SwitchStatement:w,SwitchCase:w,DoWhileStatement:B,ForInStatement:Q,ForOfStatement:V,ForStatement:w,WhileStatement:w,ClassDeclaration:F,ExportNamedDeclaration:R,ExportDefaultDeclaration:R,ExportAllDeclaration:R,FunctionDeclaration:I,ImportDeclaration:R,VariableDeclaration:w,ArrowFunctionExpression:I,AwaitExpression:le,ClassExpression:F,FunctionExpression:I,NewExpression:P,Super:P,ThisExpression:P,UnaryExpression:P,YieldExpression:P,ImportSpecifier:$,ExportSpecifier:N,ImportNamespaceSpecifier:W,MethodDefinition:Z,PropertyDefinition:Z,StaticBlock:w,Property:Z,"BinaryExpression[operator='>']"(ae){let Se=f.getTokenBefore(ae.right,r.isNotOpeningParenToken);d.add(Se)}}}},n0}var s0,zD;function cV(){if(zD)return s0;zD=1;let r=De();return s0={meta:{type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s,n,i=!0;!t||typeof t=="string"?s=!t||t==="above":(s=!t.position||t.position==="above",n=t.ignorePattern,Object.hasOwn(t,"applyDefaultIgnorePatterns")?i=t.applyDefaultIgnorePatterns:i=t.applyDefaultPatterns!==!1);let a=r.COMMENTS_IGNORE_PATTERN,l=/^\s*falls?\s?through/u,o=new RegExp(n,"u"),u=e.sourceCode;return{Program(){u.getAllComments().filter(p=>p.type==="Line").forEach(p=>{if(i&&(a.test(p.value)||l.test(p.value))||n&&o.test(p.value))return;let h=u.getTokenBefore(p,{includeComments:!0}),f=h&&h.loc.end.line===p.loc.start.line;s?f&&e.report({node:p,messageId:"above"}):f||e.report({node:p,messageId:"beside"})})}}}},s0}var i0,XD;function fV(){if(XD)return i0;XD=1;let r=De();return i0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode;function s(n,i){return function(a){return a.replaceTextRange(n,i)}}return{Program:function(i){let a=e.options[0]||"unix",l=a==="unix",o=l?` +`)})}return{BlockStatement(o){r.STATEMENT_LIST_PARENTS.has(o.parent.type)||a(n.getFirstToken(o),n.getLastToken(o))},StaticBlock(o){a(n.getFirstToken(o,{skip:1}),n.getLastToken(o))},ClassBody(o){a(n.getFirstToken(o),n.getLastToken(o))},SwitchStatement(o){let u=n.getLastToken(o),c=n.getTokenBefore(o.cases.length?o.cases[0]:u);a(c,u)},IfStatement(o){o.consequent.type==="BlockStatement"&&o.alternate&&l(n.getLastToken(o.consequent))},TryStatement(o){l(n.getLastToken(o.block)),o.handler&&o.finalizer&&l(n.getLastToken(o.handler.body))}}}},lg}var ug,KT;function y7(){return KT||(KT=1,ug={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(r){let e=r.options[0]||["callback","cb","next"],t=r.sourceCode;function s(l,o){return l.parent?o.includes(l.parent.type)?l.parent:s(l.parent,o):null}function n(l){if(l.type==="Identifier")return!0;if(l.type==="MemberExpression"){if(l.object.type==="Identifier")return!0;if(l.object.type==="MemberExpression")return n(l.object)}return!1}function i(l){return n(l.callee)&&e.includes(t.getText(l.callee))}function a(l,o){return!o||o.type!=="ExpressionStatement"?!1:o.expression===l||(o.expression.type==="BinaryExpression"||o.expression.type==="LogicalExpression")&&o.expression.right===l}return{CallExpression(l){if(!i(l))return;let o=s(l,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(o.type!=="ReturnStatement"&&o.type!=="ArrowFunctionExpression"){if(o.type==="BlockStatement"){let u=o.body.at(-1);if(a(l,u)){let c=o.parent.type;if(c==="FunctionExpression"||c==="FunctionDeclaration"||c==="ArrowFunctionExpression")return}if(u.type==="ReturnStatement"&&a(l,o.body.at(-2)))return}s(l,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&r.report({node:l,messageId:"missingReturn"})}}}}}),ug}var cg,JT;function x7(){if(JT)return cg;JT=1;let r=Pe();return cg={meta:{type:"suggestion",docs:{description:"Enforce camelcase naming convention",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=t.properties==="never"?"never":"always",n=t.ignoreDestructuring,i=t.ignoreImports,a=t.ignoreGlobals,l=t.allow||[],o=e.sourceCode,u=new Set;function c(y){let b=y.replace(/^_+|_+$/gu,"");return b.includes("_")&&b!==b.toUpperCase()}function p(y){return l.some(b=>y===b||y.match(new RegExp(b,"u")))}function h(y){return!c(y)||p(y)}function f(y){let b=y.parent;switch(b.type){case"AssignmentExpression":case"AssignmentPattern":return b.left===y;case"Property":return b.parent.type==="ObjectPattern"&&b.value===y;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function d(y){let b=y.name,v=y.parent.type==="AssignmentPattern"?y.parent:y,S=v.parent;switch(S.type){case"Property":return(S.parent.type==="ObjectPattern"||S.parent.type==="ObjectExpression")&&S.value===v&&!S.computed&&S.key.type==="Identifier"&&S.key.name===b;case"ImportSpecifier":return S.local===y&&r.getModuleExportName(S.imported)===b;default:return!1}}function m(y){u.has(y.range[0])||(u.add(y.range[0]),e.report({node:y,messageId:y.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:y.name}}))}function g(y){y.parent.type==="CallExpression"||y.parent.type==="NewExpression"||y.parent.type==="AssignmentPattern"&&y.parent.right===y||n&&d(y)||m(y)}return{Program(y){let b=o.getScope(y);if(!a){for(let v of b.variables)if(!(v.identifiers.length>0||h(v.name)))for(let S of v.references)g(S.identifier)}for(let v of b.through){let S=v.identifier;h(S.name)||g(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](y){for(let b of o.getDeclaredVariables(y)){if(h(b.name))continue;let v=b.identifiers[0];n&&d(v)||m(v);for(let S of b.references)S.init||g(S.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](y){s==="never"||h(y.name)||m(y)},"MemberExpression[computed!=true] > Identifier.property"(y){s==="never"||!f(y.parent)||h(y.name)||m(y)},ImportDeclaration(y){for(let b of o.getDeclaredVariables(y)){if(h(b.name))continue;let v=b.identifiers[0];i&&d(v)||m(v);for(let S of b.references)g(S.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](y){h(y.name)||m(y)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](y){h(y.name)||m(y)}}}},cg}var fg,eD;function b7(){return eD||(eD=1,fg=/[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),fg}var pg,tD;function v7(){if(tD)return pg;tD=1;let r=b7(),t=Pe().COMMENTS_IGNORE_PATTERN,s=/\s/gu,n=/^\s*[^:/?#\s]+:\/\/[^?#]/u,i={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},a={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function l(c,p){return Object.assign({},a,c[p]||c)}function o(c={}){return{Line:l(c,"line"),Block:l(c,"block")}}function u(c){Object.keys(c).forEach(p=>{let h=c[p].ignorePattern;if(h){let f=RegExp(`^\\s*(?:${h})`,"u");c[p].ignorePatternRegExp=f}})}return pg={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[i,{type:"object",properties:{line:i,block:i},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(c){let p=c.options[0]||"always",h=o(c.options[1]),f=c.sourceCode;u(h);function d(b){let v=f.getTokenBefore(b,{includeComments:!0}),S=f.getTokenAfter(b,{includeComments:!0});return!!(v&&S&&b.loc.start.line===v.loc.end.line&&b.loc.end.line===S.loc.start.line)}function m(b){let v=f.getTokenBefore(b,{includeComments:!0});return!!(v&&["Block","Line"].includes(v.type))}function g(b,v){if(t.test(b.value))return!0;let S=b.value.replace(/\*/gu,"");if(v.ignorePatternRegExp&&v.ignorePatternRegExp.test(S)||v.ignoreInlineComments&&d(b)||v.ignoreConsecutiveComments&&m(b)||n.test(S))return!0;let C=S.replace(s,"");if(C.length===0)return!0;let O=C[0];if(!r.test(O))return!0;let w=O!==O.toLocaleLowerCase(),E=O!==O.toLocaleUpperCase();return!(p==="always"&&E||p==="never"&&w)}function y(b){let v=h[b.type];if(!g(b,v)){let C=p==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";c.report({node:null,loc:b.loc,messageId:C,fix(O){let w=b.value.match(r);return O.replaceTextRange([b.range[0]+w.index+2,b.range[0]+w.index+3],p==="always"?w[0].toLocaleUpperCase():w[0].toLocaleLowerCase())}})}}return{Program(){f.getAllComments().filter(v=>v.type!=="Shebang").forEach(y)}}}},pg}var hg,rD;function O7(){if(rD)return hg;rD=1;let r=Pe();return hg={meta:{type:"suggestion",docs:{description:"Enforce that class methods utilize `this`",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=Object.assign({},e.options[0]),s=t.enforceForClassFields!==!1,n=new Set(t.exceptMethods||[]),i=[];function a(){i.push(!1)}function l(){return i.pop()}function o(){a()}function u(f){switch(f.type){case"MethodDefinition":return!f.static&&f.kind!=="constructor";case"PropertyDefinition":return!f.static&&s;default:return!1}}function c(f){if(u(f)){if(f.computed)return!0;let d=f.key.type==="PrivateIdentifier"?"#":"",m=f.key.type==="Literal"?r.getStaticStringValue(f.key):f.key.name||"";return!n.has(d+m)}return!1}function p(f){let d=l();c(f.parent)&&!d&&e.report({node:f,loc:r.getFunctionHeadLoc(f,e.sourceCode),messageId:"missingThis",data:{name:r.getFunctionNameWithKind(f)}})}function h(){i.length&&(i[i.length-1]=!0)}return{FunctionDeclaration:o,"FunctionDeclaration:exit":p,FunctionExpression:o,"FunctionExpression:exit":p,"PropertyDefinition > *.key:exit":a,"PropertyDefinition:exit":l,StaticBlock:a,"StaticBlock:exit":l,ThisExpression:h,Super:h,...s&&{"PropertyDefinition > ArrowFunctionExpression.value":o,"PropertyDefinition > ArrowFunctionExpression.value:exit":p}}}},hg}var dg,nD;function S7(){if(nD)return dg;nD=1;let r=Pe(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function t(n){return!(n.type==="RestElement"||n.type==="RestProperty"||n.type==="ExperimentalRestProperty")}function s(n,i){return typeof n=="string"?{arrays:n,objects:n,imports:n,exports:n,functions:i<2017?"ignore":n}:typeof n=="object"&&n!==null?{arrays:n.arrays||e.arrays,objects:n.objects||e.objects,imports:n.imports||e.imports,exports:n.exports||e.exports,functions:n.functions||e.functions}:e}return dg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=s(n.options[0],n.languageOptions.ecmaVersion),a=n.sourceCode;function l(m){function g(y){return y.at(-1)}switch(m.type){case"ObjectExpression":case"ObjectPattern":return g(m.properties);case"ArrayExpression":case"ArrayPattern":return g(m.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return g(m.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return g(m.params);case"CallExpression":case"NewExpression":return g(m.arguments);default:return null}}function o(m,g){switch(m.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return a.getLastToken(m,1);default:{let y=a.getTokenAfter(g);return r.isCommaToken(y)?y:a.getLastToken(g)}}}function u(m){let g=l(m);if(!g)return!1;let y=o(m,g);return a.getTokenAfter(y).loc.end.line!==y.loc.end.line}function c(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;let y=o(m,g);r.isCommaToken(y)&&n.report({node:g,loc:y.loc,messageId:"unexpected",*fix(b){yield b.remove(y),yield b.insertTextBefore(a.getTokenBefore(y),""),yield b.insertTextAfter(a.getTokenAfter(y),"")}})}function p(m){let g=l(m);if(!g||m.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;if(!t(g)){c(m);return}let y=o(m,g);y.value!==","&&n.report({node:g,loc:{start:y.loc.end,end:r.getNextLocation(a,y.loc.end)},messageId:"missing",*fix(b){yield b.insertTextAfter(y,","),yield b.insertTextBefore(y,""),yield b.insertTextAfter(a.getTokenAfter(y),"")}})}function h(m){u(m)?p(m):c(m)}function f(m){u(m)||c(m)}let d={always:p,"always-multiline":h,"only-multiline":f,never:c,ignore(){}};return{ObjectExpression:d[i.objects],ObjectPattern:d[i.objects],ArrayExpression:d[i.arrays],ArrayPattern:d[i.arrays],ImportDeclaration:d[i.imports],ExportNamedDeclaration:d[i.exports],FunctionDeclaration:d[i.functions],FunctionExpression:d[i.functions],ArrowFunctionExpression:d[i.functions],CallExpression:d[i.functions],NewExpression:d[i.functions]}}},dg}var mg,sD;function E7(){if(sD)return mg;sD=1;let r=Pe();return mg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=t.tokensAndComments,n={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},i=[];function a(o,u,c){e.report({node:o,fix(p){if(n[u])return u==="before"?p.insertTextBefore(o," "):p.insertTextAfter(o," ");let h,f,d="";return u==="before"?(h=c.range[1],f=o.range[0]):(h=o.range[1],f=c.range[0]),p.replaceTextRange([h,f],d)},messageId:n[u]?"missing":"unexpected",data:{loc:u}})}function l(o){let u=t.getFirstToken(o);o.elements.forEach(c=>{let p;c===null?(p=t.getTokenAfter(u),r.isCommaToken(p)&&i.push(p)):p=t.getTokenAfter(c),u=p})}return{"Program:exit"(){s.forEach((o,u)=>{if(!r.isCommaToken(o))return;let c=s[u-1],p=s[u+1];c&&!r.isCommaToken(c)&&!i.includes(o)&&r.isTokenOnSameLine(c,o)&&n.before!==t.isSpaceBetweenTokens(c,o)&&a(o,"before",c),p&&!r.isCommaToken(p)&&!r.isClosingParenToken(p)&&!r.isClosingBracketToken(p)&&!r.isClosingBraceToken(p)&&!(!n.after&&p.type==="Line")&&r.isTokenOnSameLine(o,p)&&n.after!==t.isSpaceBetweenTokens(o,p)&&a(o,"after",p)})},ArrayExpression:l,ArrayPattern:l}}},mg}var gg,iD;function C7(){if(iD)return gg;iD=1;let r=Pe();return gg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||"last",s=e.sourceCode,n={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){let c=Object.keys(e.options[1].exceptions);for(let p=0;p1||f){let d=s.getFirstToken(c);if(h.forEach(m=>{let g=m?s.getTokenBefore(m):d,y=m?s.getFirstToken(m):s.getTokenAfter(g),b=m||y;if(r.isCommaToken(g)&&l(d,g,y,b),m){let v=s.getTokenAfter(m,r.isNotClosingParenToken);d=v?s.getTokenBefore(v):s.ast.tokens.at(-1)}else d=y}),f){let m=s.getLastToken(c),g=s.getTokenBefore(m);r.isCommaToken(g)&&l(s.getTokenBefore(g),g,m,m)}}}let u={};return n.VariableDeclaration||(u.VariableDeclaration=function(c){o(c,"declarations")}),n.ObjectExpression||(u.ObjectExpression=function(c){o(c,"properties")}),n.ObjectPattern||(u.ObjectPattern=function(c){o(c,"properties")}),n.ArrayExpression||(u.ArrayExpression=function(c){o(c,"elements")}),n.ArrayPattern||(u.ArrayPattern=function(c){o(c,"elements")}),n.FunctionDeclaration||(u.FunctionDeclaration=function(c){o(c,"params")}),n.FunctionExpression||(u.FunctionExpression=function(c){o(c,"params")}),n.ArrowFunctionExpression||(u.ArrowFunctionExpression=function(c){o(c,"params")}),n.CallExpression||(u.CallExpression=function(c){o(c,"arguments")}),n.ImportDeclaration||(u.ImportDeclaration=function(c){o(c,"specifiers")}),n.NewExpression||(u.NewExpression=function(c){o(c,"arguments")}),u}},gg}var yg,aD;function vi(){if(aD)return yg;aD=1;let r=/^[\u0000-\u007f]*$/u,e;function t(n){return n.length<=1?n.toUpperCase():n[0].toUpperCase()+n.slice(1)}function s(n){if(r.test(n))return n.length;e??=new Intl.Segmenter("en-US");let i=0;for(let a of e.segment(n))i++;return i}return yg={upperCaseFirst:t,getGraphemeCount:s},yg}var xg,oD;function w7(){if(oD)return xg;oD=1;let r=Pe(),{upperCaseFirst:e}=vi();return xg={meta:{type:"suggestion",docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=20;typeof s=="object"&&(Object.hasOwn(s,"maximum")||Object.hasOwn(s,"max"))?n=s.maximum||s.max:typeof s=="number"&&(n=s);let i=[];function a(){i[i.length-1]++}return{onCodePathStart(){i.push(1)},CatchClause:a,ConditionalExpression:a,LogicalExpression:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,IfStatement:a,WhileStatement:a,DoWhileStatement:a,AssignmentPattern:a,"SwitchCase[test]":a,AssignmentExpression(l){r.isLogicalAssignmentOperator(l.operator)&&a()},MemberExpression(l){l.optional===!0&&a()},CallExpression(l){l.optional===!0&&a()},onCodePathEnd(l,o){let u=i.pop();if(!(l.origin!=="function"&&l.origin!=="class-field-initializer"&&l.origin!=="class-static-block")&&u>n){let c;l.origin==="class-field-initializer"?c="class field initializer":l.origin==="class-static-block"?c="class static block":c=r.getFunctionNameWithKind(o),t.report({node:o,messageId:"complex",data:{name:e(c),complexity:u,max:n}})}}}}},xg}var bg,lD;function k7(){if(lD)return bg;lD=1;let r=Pe();return bg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]==="always",n=!e.options[1]||e.options[1].enforceForClassMembers;function i(p,h,f){e.report({node:p,loc:{start:h.loc.end,end:f.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:h.value},fix(d){return d.removeRange([h.range[1],f.range[0]])}})}function a(p,h,f){e.report({node:p,loc:{start:f.loc.end,end:h.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:h.value},fix(d){return d.removeRange([f.range[1],h.range[0]])}})}function l(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceAfter",data:{tokenValue:h.value},fix(f){return f.insertTextAfter(h," ")}})}function o(p,h){e.report({node:p,loc:h.loc,messageId:"missingSpaceBefore",data:{tokenValue:h.value},fix(f){return f.insertTextBefore(h," ")}})}function u(p){return function(h){if(!h.computed)return;let f=h[p],d=t.getTokenBefore(f,r.isOpeningBracketToken),m=t.getTokenAfter(d,{includeComments:!0}),g=t.getTokenAfter(f,r.isClosingBracketToken),y=t.getTokenBefore(g,{includeComments:!0});r.isTokenOnSameLine(d,m)&&(s?!t.isSpaceBetweenTokens(d,m)&&r.isTokenOnSameLine(d,m)&&l(h,d):t.isSpaceBetweenTokens(d,m)&&i(h,d,m)),r.isTokenOnSameLine(y,g)&&(s?!t.isSpaceBetweenTokens(y,g)&&r.isTokenOnSameLine(y,g)&&o(h,g):t.isSpaceBetweenTokens(y,g)&&a(h,g,y))}}let c={Property:u("key"),MemberExpression:u("property")};return n&&(c.MethodDefinition=c.PropertyDefinition=c.Property),c}},bg}var vg,uD;function A7(){if(uD)return vg;uD=1;let r=Pe(),{upperCaseFirst:e}=vi();function t(n){for(let i of n)if(i.reachable)return!1;return!0}function s(n){return n.type==="FunctionExpression"&&n.parent&&n.parent.type==="MethodDefinition"&&n.parent.kind==="constructor"}return vg={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let a=(n.options[0]||{}).treatUndefinedAsUnspecified===!0,l=null;function o(u){let c,p;!l.hasReturnValue||t(l.currentSegments)||r.isES5Constructor(u)||s(u)||(u.type==="Program"?(c={line:1,column:0},p="program"):u.type==="ArrowFunctionExpression"?c=n.sourceCode.getTokenBefore(u.body,r.isArrowToken).loc:u.parent.type==="MethodDefinition"||u.parent.type==="Property"&&u.parent.method?c=u.parent.key.loc:c=(u.id||n.sourceCode.getFirstToken(u)).loc,p||(p=r.getFunctionNameWithKind(u)),n.report({node:u,loc:c,messageId:"missingReturn",data:{name:p}}))}return{onCodePathStart(u,c){l={upper:l,codePath:u,hasReturn:!1,hasReturnValue:!1,messageId:"",node:c,currentSegments:new Set}},onCodePathEnd(){l=l.upper},onUnreachableCodePathSegmentStart(u){l.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){l.currentSegments.delete(u)},onCodePathSegmentStart(u){l.currentSegments.add(u)},onCodePathSegmentEnd(u){l.currentSegments.delete(u)},ReturnStatement(u){let c=u.argument,p=!!c;a&&p&&(p=!r.isSpecificId(c,"undefined")&&c.operator!=="void"),l.hasReturn?l.hasReturnValue!==p&&n.report({node:u,messageId:l.messageId,data:l.data}):(l.hasReturn=!0,l.hasReturnValue=p,l.messageId=p?"missingReturnValue":"unexpectedReturnValue",l.data={name:l.node.type==="Program"?"Program":e(r.getFunctionNameWithKind(l.node))})},"Program:exit":o,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o}}},vg}var Og,cD;function P7(){return cD||(cD=1,Og={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=[],t=r.sourceCode;r.options.length===0?e.push("that"):e=r.options;function s(l,o){r.report({node:l,messageId:"aliasNotAssignedToThis",data:{name:o}})}function n(l,o,u){let c=u.type==="ThisExpression";e.includes(o)?(!c||l.operator&&l.operator!=="=")&&s(l,o):c&&r.report({node:l,messageId:"unexpectedAlias",data:{name:o}})}function i(l,o){let u=o.set.get(l);u&&(u.defs.some(c=>c.node.type==="VariableDeclarator"&&c.node.init!==null)||u.references.some(c=>{let p=c.writeExpr;return c.from===o&&p&&p.type==="ThisExpression"&&p.parent.operator==="="})||u.defs.map(c=>c.node).forEach(c=>{s(c,l)}))}function a(l){let o=t.getScope(l);e.forEach(u=>{i(u,o)})}return{"Program:exit":a,"FunctionExpression:exit":a,"FunctionDeclaration:exit":a,VariableDeclarator(l){let o=l.id,u=o.type==="ArrayPattern"||o.type==="ObjectPattern";l.init!==null&&!u&&n(l,o.name,l.init)},AssignmentExpression(l){l.left.type==="Identifier"&&n(l,l.left.name,l.right)}}}}),Og}var Sg,fD;function T7(){if(fD)return Sg;fD=1;function r(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}function e(s){if(!s)return!1;switch(s.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 s.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(s.operator)?e(s.right):["||=","??="].includes(s.operator)?e(s.left)||e(s.right):!1;case"LogicalExpression":return s.operator==="&&"?e(s.right):e(s.left)||e(s.right);case"ConditionalExpression":return e(s.alternate)||e(s.consequent);case"SequenceExpression":{let n=s.expressions.at(-1);return e(n)}default:return!1}}class t{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Sg={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/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."}},create(s){let n=null,i=Object.create(null);function a(u){return u.reachable&&i[u.id].calledInSomePaths}function l(u){return!!i[u.id]}function o(u){return u.reachable&&i[u.id].calledInEveryPaths}return{onCodePathStart(u,c){if(r(c)){let h=c.parent.parent.parent.superClass;n={upper:n,isConstructor:!0,hasExtends:!!h,superIsConstructor:e(h),codePath:u,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:u,currentSegments:new Set}},onCodePathEnd(u,c){let p=n.hasExtends;if(n=n.upper,!p)return;let h=u.returnedSegments,f=h.every(o),d=h.some(a);f||s.report({messageId:d?"missingSome":"missingAll",node:c.parent})},onCodePathSegmentStart(u,c){if(n.currentSegments.add(u),!(n.isConstructor&&n.hasExtends))return;let p=i[u.id]=new t,h=u.prevSegments.filter(l);h.length>0&&(p.calledInSomePaths=h.some(a),p.calledInEveryPaths=h.every(o)),c.parent&&c.parent.type==="ForStatement"&&c.parent.update===c&&(p.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(u){n.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentEnd(u){n.currentSegments.delete(u)},onCodePathSegmentLoop(u,c){n.isConstructor&&n.hasExtends&&n.codePath.traverseSegments({first:c,last:u},(p,h)=>{let f=i[p.id];if(!f){h.skip();return}let d=p.prevSegments.filter(l),m=d.some(a),g=d.every(o);if(f.calledInSomePaths||=m,f.calledInEveryPaths||=g,m){let y=f.validNodes;f.validNodes=[];for(let b=0;b0}else O=!o(b);else O=!0;return{actual:C,expected:O,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:y,loc:b.loc,messageId:S&&S.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:v},fix:w=>w.replaceText(b,`{${a.getText(b)}}`)}):e.report({node:y,loc:b.loc,messageId:S&&S.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:v},fix(w){let E=y.type==="DoWhileStatement"&&a.getTokenBefore(b).range[1]===b.range[0]&&!r.canTokensBeAdjacent("do",a.getFirstToken(b,{skip:1})),k=a.getFirstToken(b),A=a.getLastToken(b),D=a.getTokenBefore(A);if(h(A))return null;let _=a.getText().slice(k.range[1],D.range[0])+a.getText(D)+a.getText().slice(D.range[1],A.range[0]);return w.replaceText(b,(E?" ":"")+_)}}))}}}function g(y){let b=[];for(let v=y;v;v=v.alternate)if(b.push(m(v,v.consequent,"if",{condition:!0})),v.alternate&&v.alternate.type!=="IfStatement"){b.push(m(v,v.alternate,"else"));break}if(i){let v=b.some(S=>S.expected!==null?S.expected:S.actual);b.forEach(S=>{S.expected=v})}return b}return{IfStatement(y){let b=y.parent;b.type==="IfStatement"&&b.alternate===y||g(y).forEach(S=>{S.check()})},WhileStatement(y){m(y,y.body,"while",{condition:!0}).check()},DoWhileStatement(y){m(y,y.body,"do").check()},ForStatement(y){m(y,y.body,"for",{condition:!0}).check()},ForInStatement(y){m(y,y.body,"for-in").check()},ForOfStatement(y){m(y,y.body,"for-of").check()}}}},Eg}var Cg,hD;function _7(){if(hD)return Cg;hD=1;let r=/^no default$/iu;return Cg={meta:{type:"suggestion",docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(e){let t=e.options[0]||{},s=t.commentPattern?new RegExp(t.commentPattern,"u"):r,n=e.sourceCode;function i(a){return a.at(-1)}return{SwitchStatement(a){if(!a.cases.length)return;if(!a.cases.some(o=>o.test===null)){let o,u=i(a.cases),c=n.getCommentsAfter(u);c.length&&(o=i(c)),(!o||!s.test(o.value.trim()))&&e.report({node:a,messageId:"missingDefaultCase"})}}}}},Cg}var wg,dD;function I7(){return dD||(dD=1,wg={meta:{type:"suggestion",docs:{description:"Enforce default clauses in switch statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(r){return{SwitchStatement(e){let t=e.cases,s=t.findIndex(n=>n.test===null);if(s!==-1&&s!==t.length-1){let n=t[s];r.report({node:n,messageId:"notLast"})}}}}}),wg}var kg,mD;function F7(){return mD||(mD=1,kg={meta:{type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(r){function e(t){let s=!1;for(let n=t.params.length-1;n>=0;n-=1){let i=t.params[n];if(i.type!=="AssignmentPattern"&&i.type!=="RestElement"){s=!0;continue}s&&i.type==="AssignmentPattern"&&r.report({node:i,messageId:"shouldBeLast"})}}return{FunctionDeclaration:e,FunctionExpression:e,ArrowFunctionExpression:e}}}),kg}var Ag,gD;function R7(){if(gD)return Ag;gD=1;let r=Pe();return Ag={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s=t==="object"||!t,n=e.sourceCode;function i(l){let o=l.property,u=n.getTokenBefore(o);if(s){let c=n.getTokenBefore(u);r.isTokenOnSameLine(c,u)||e.report({node:l,loc:u.loc,messageId:"expectedDotAfterObject",*fix(p){u.value.startsWith(".")&&r.isDecimalIntegerNumericToken(c)?yield p.insertTextAfter(c,` ${u.value}`):yield p.insertTextAfter(c,u.value),yield p.remove(u)}})}else r.isTokenOnSameLine(u,o)||e.report({node:l,loc:u.loc,messageId:"expectedDotBeforeProperty",*fix(c){yield c.remove(u),yield c.insertTextBefore(o,u.value)}})}function a(l){l.computed||i(l)}return{MemberExpression:a}}},Ag}var Pg,yD;function NO(){return yD||(yD=1,Pg=["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"]),Pg}var Tg,xD;function B7(){if(xD)return Tg;xD=1;let r=Pe(),e=NO(),t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/u,s=new Set(["string","boolean"]);return Tg={meta:{type:"suggestion",docs:{description:"Enforce dot notation whenever possible",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=n.options[0]||{},a=i.allowKeywords===void 0||i.allowKeywords,l=n.sourceCode,o;i.allowPattern&&(o=new RegExp(i.allowPattern,"u"));function u(c,p){if(t.test(p)&&(a||!e.includes(String(p)))&&!(o&&o.test(p))){let h=c.property.type==="Literal"?JSON.stringify(p):`\`${p}\``;n.report({node:c.property,messageId:"useDot",data:{key:h},*fix(f){let d=l.getTokenAfter(c.object,r.isOpeningBracketToken),m=l.getLastToken(c),g=l.getTokenAfter(c);l.commentsExistBetween(d,m)||(c.optional||(yield f.insertTextBefore(d,r.isDecimalInteger(c.object)?" .":".")),yield f.replaceTextRange([d.range[0],m.range[1]],p),g&&m.range[1]===g.range[0]&&!r.canTokensBeAdjacent(String(p),g)&&(yield f.insertTextAfter(c," ")))}})}}return{MemberExpression(c){c.computed&&c.property.type==="Literal"&&(s.has(typeof c.property.value)||r.isNullLiteral(c.property))&&u(c,c.property.value),c.computed&&r.isStaticTemplateLiteral(c.property)&&u(c,c.property.quasis[0].value.cooked),!a&&!c.computed&&c.property.type==="Identifier"&&e.includes(String(c.property.name))&&n.report({node:c.property,messageId:"useBrackets",data:{key:c.property.name},*fix(p){let h=l.getTokenBefore(c.property);c.object.type==="Identifier"&&c.object.name==="let"&&!c.optional||l.commentsExistBetween(h,c.property)||(c.optional||(yield p.remove(h)),yield p.replaceText(c.property,`["${c.property.name}"]`))}})}}}},Tg}var Dg,bD;function N7(){return bD||(bD=1,Dg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return{Program:function(t){let s=r.sourceCode,n=s.getText(),i=s.lines.at(-1),a={column:i.length,line:s.lines.length},l=` +`,o=`\r${l}`,u=n.endsWith(l);if(!n.length)return;let c=r.options[0]||"always",p=!1;if(c==="unix"&&(c="always"),c==="windows"&&(c="always",p=!0),c==="always"&&!u)r.report({node:t,loc:a,messageId:"missing",fix(h){return h.insertTextAfterRange([0,n.length],p?o:l)}});else if(c==="never"&&u){let h=s.lines.at(-2);r.report({node:t,loc:{start:{line:s.lines.length-1,column:h.length},end:{line:s.lines.length,column:0}},messageId:"unexpected",fix(f){let d=/(?:\r?\n)+$/u,m=d.exec(s.text),g=m.index,y=s.text.length;return f.replaceTextRange([g,y],"")}})}}}}}),Dg}var _g,vD;function L7(){if(vD)return _g;vD=1;let r=Pe();return _g={meta:{type:"suggestion",docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||"always",s=e.options[1]||{},n=e.sourceCode,i=t==="always"?s.null||"always":"ignore",a=i==="always",l=i==="never";function o(f){return f.type==="UnaryExpression"&&f.operator==="typeof"}function u(f){return o(f.left)||o(f.right)}function c(f){return f.left.type==="Literal"&&f.right.type==="Literal"&&typeof f.left.value==typeof f.right.value}function p(f){return r.isNullLiteral(f.right)||r.isNullLiteral(f.left)}function h(f,d){let m=n.getFirstTokenBetween(f.left,f.right,g=>g.value===f.operator);e.report({node:f,loc:m.loc,messageId:"unexpected",data:{expectedOperator:d,actualOperator:f.operator},fix(g){return u(f)||c(f)?g.replaceText(m,d):null}})}return{BinaryExpression(f){let d=p(f);if(f.operator!=="=="&&f.operator!=="!="){l&&d&&h(f,f.operator.slice(0,-1));return}t==="smart"&&(u(f)||c(f)||d)||!a&&d||h(f,`${f.operator}=`)}}}},_g}var Ig,OD;function $7(){if(OD)return Ig;OD=1;let{getStaticValue:r}=hr();return Ig={meta:{type:"problem",docs:{description:'Enforce "for" loop update clause moving the counter in the right direction',recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(e){let{sourceCode:t}=e;function s(l){e.report({node:l,messageId:"incorrectDirection"})}function n(l,o){let u=r(l.right,t.getScope(l));if(u&&["bigint","boolean","number"].includes(typeof u.value)){let c=Math.sign(Number(u.value))||0;return o*c}return 0}function i(l,o){if(l.argument.type==="Identifier"&&l.argument.name===o){if(l.operator==="++")return 1;if(l.operator==="--")return-1}return 0}function a(l,o){if(l.left.name===o){if(l.operator==="+=")return n(l,1);if(l.operator==="-=")return n(l,-1)}return 0}return{ForStatement(l){if(l.test&&l.test.type==="BinaryExpression"&&l.update)for(let o of["left","right"]){if(l.test[o].type!=="Identifier")continue;let u=l.test[o].name,c=l.test.operator,p=l.update,h;if(c==="<"||c==="<=")h=o==="left"?-1:1;else if(c===">"||c===">=")h=o==="left"?1:-1;else return;p.type==="UpdateExpression"?i(p,u)===h&&s(l):p.type==="AssignmentExpression"&&a(p,u)===h&&s(l)}}}}},Ig}var Fg,SD;function M7(){if(SD)return Fg;SD=1;let r=Pe();return Fg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]!=="always",s=!t&&e.options[1]&&e.options[1].allowNewlines,n=e.sourceCode,i=n.getText();function a(l,o,u){let c=i.slice(o.range[1],u.range[0]).replace(/\/\*.*?\*\//gu,""),p=/\s/u.test(c),h=p&&r.LINEBREAK_MATCHER.test(c);t&&p?e.report({node:l,loc:{start:o.loc.end,end:{line:u.loc.start.line,column:u.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(f){return n.commentsExistBetween(o,u)?null:l.optional?f.replaceTextRange([o.range[1],u.range[0]],"?."):h?null:f.removeRange([o.range[1],u.range[0]])}}):!t&&!p?e.report({node:l,loc:{start:{line:o.loc.end.line,column:o.loc.end.column-1},end:u.loc.start},messageId:"missing",fix(f){return l.optional?null:f.insertTextBefore(u," ")}}):!t&&!s&&h&&e.report({node:l,loc:{start:o.loc.end,end:u.loc.start},messageId:"unexpectedNewline",fix(f){if(!l.optional||n.commentsExistBetween(o,u))return null;let d=[o.range[1],u.range[0]],m=n.getTokenAfter(o);return m.range[0]===o.range[1]?f.replaceTextRange(d,"?. "):m.range[1]===u.range[0]?f.replaceTextRange(d," ?."):f.replaceTextRange(d," ?. ")}})}return{"CallExpression, NewExpression"(l){let o=n.getLastToken(l),u=n.getLastToken(l.callee),c=n.getFirstTokenBetween(u,o,r.isOpeningParenToken),p=c&&n.getTokenBefore(c,r.isNotQuestionDotToken);c&&c.range[1]=2015?e.keyword.isIdentifierES6(a):e.keyword.isIdentifierES5(a)}let n={enum:["always","never"]},i={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Rg={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/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[n,i]},{type:"array",additionalItems:!1,items:[i]}]},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(a){let l=(typeof a.options[0]=="object"?a.options[0]:a.options[1])||{},o=typeof a.options[0]=="string"?a.options[0]:"always",u=l.considerPropertyDescriptor,c=l.includeCommonJSModuleExports,p=a.languageOptions.ecmaVersion;function h(g,y,b){return b?b.type==="CallExpression"&&r.isSpecificMemberAccess(b.callee,g,y):!1}function f(g,y){return o==="always"&&g!==y||o==="never"&&g===y}function d(g,y,b,v){let S;o==="always"&&v?S="matchProperty":o==="always"?S="matchVariable":v?S="notMatchProperty":S="notMatchVariable",a.report({node:g,messageId:S,data:{name:y,funcName:b}})}function m(g){return g.type==="Literal"&&typeof g.value=="string"}return{VariableDeclarator(g){!g.init||g.init.type!=="FunctionExpression"||g.id.type!=="Identifier"||g.init.id&&f(g.id.name,g.init.id.name)&&d(g,g.id.name,g.init.id.name,!1)},AssignmentExpression(g){if(g.right.type!=="FunctionExpression"||g.left.computed&&g.left.property.type!=="Literal"||!c&&t(g.left)||g.left.type!=="Identifier"&&g.left.type!=="MemberExpression")return;let y=g.left.type==="MemberExpression",b=y?r.getStaticPropertyName(g.left):g.left.name;g.right.id&&b&&s(b)&&f(b,g.right.id.name)&&d(g,b,g.right.id.name,y)},"Property, PropertyDefinition[value]"(g){if(g.value.type==="FunctionExpression"&&g.value.id){if(g.key.type==="Identifier"&&!g.computed){let y=g.value.id.name,b=g.key.name;if(u&&b==="value"&&g.parent.type==="ObjectExpression")if(h("Object","defineProperty",g.parent.parent)||h("Reflect","defineProperty",g.parent.parent)){let v=g.parent.parent.arguments[1];m(v)&&f(v.value,y)&&d(g,v.value,y,!0)}else h("Object","defineProperties",g.parent.parent.parent.parent)||h("Object","create",g.parent.parent.parent.parent)?(b=g.parent.parent.key.name,!g.parent.parent.computed&&f(b,y)&&d(g,b,y,!0)):f(b,y)&&d(g,b,y,!0);else f(b,y)&&d(g,b,y,!0);return}m(g.key)&&s(g.key.value,p)&&f(g.key.value,g.value.id.name)&&d(g,g.key.value,g.value.id.name,!0)}}}}},Rg}var Bg,CD;function q7(){if(CD)return Bg;CD=1;let r=Pe();function e(t){return t&&t.defs[0].type==="FunctionName"}return Bg={meta:{type:"suggestion",docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.sourceCode;function n(c){return c.generator&&t.options.length>1&&t.options[1].generators?t.options[1].generators:t.options[0]||"always"}function i(c){let p=c.parent;return p.type==="MethodDefinition"||p.type==="Property"&&(p.method||p.kind==="get"||p.kind==="set")}function a(c){let p=c.parent;return i(c)||p.type==="VariableDeclarator"&&p.id.type==="Identifier"&&p.init===c||p.type==="Property"&&p.value===c||p.type==="PropertyDefinition"&&p.value===c||p.type==="AssignmentExpression"&&p.left.type==="Identifier"&&p.right===c||p.type==="AssignmentPattern"&&p.left.type==="Identifier"&&p.right===c}function l(c){t.report({node:c,messageId:"unnamed",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function o(c){t.report({node:c,messageId:"named",loc:r.getFunctionHeadLoc(c,s),data:{name:r.getFunctionNameWithKind(c)}})}function u(c){let p=s.getDeclaredVariables(c)[0];if(e(p)&&p.references.length>0)return;let h=!!(c.id&&c.id.name),f=n(c);f==="never"?h&&c.type!=="FunctionDeclaration"&&o(c):f==="as-needed"?!h&&!a(c)&&l(c):!h&&!i(c)&&l(c)}return{"FunctionExpression:exit":u,"ExportDefaultDeclaration > FunctionDeclaration":u}}},Bg}var Ng,wD;function Q7(){return wD||(wD=1,Ng={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of either `function` declarations or expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=r.options[1]&&r.options[1].allowArrowFunctions,s=e==="declaration",n=[],i={FunctionDeclaration(a){n.push(!1),!s&&a.parent.type!=="ExportDefaultDeclaration"&&r.report({node:a,messageId:"expression"})},"FunctionDeclaration:exit"(){n.pop()},FunctionExpression(a){n.push(!1),s&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})},"FunctionExpression:exit"(){n.pop()},ThisExpression(){n.length>0&&(n[n.length-1]=!0)}};return t||(i.ArrowFunctionExpression=function(){n.push(!1)},i["ArrowFunctionExpression:exit"]=function(a){let l=n.pop();s&&!l&&a.parent.type==="VariableDeclarator"&&r.report({node:a.parent,messageId:"declaration"})}),i}}),Ng}var Lg,kD;function U7(){return kD||(kD=1,Lg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.sourceCode,t={unexpected:{messageId:"unexpectedLineBreak",check:(i,a)=>i.loc.end.line!==a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(i,a)=>i.loc.end.line===a.loc.start.line,createFix:(i,a)=>l=>l.replaceTextRange([a.range[1],i.range[0]],` +`)}};function s(i,a){for(let l=1;lm!==h.length-1&&d.loc.end.line!==h[m+1].loc.start.line):a?f:h.length>=l}function u(h,f){let d=h.leftParen,m=h.rightParen,g=t.getTokenAfter(d),y=t.getTokenBefore(m),b=!r.isTokenOnSameLine(d,g),v=!r.isTokenOnSameLine(y,m),S=o(f,b);b&&!S?e.report({node:d,messageId:"unexpectedAfter",fix(C){return t.getText().slice(d.range[1],g.range[0]).trim()?null:C.removeRange([d.range[1],g.range[0]])}}):!b&&S&&e.report({node:d,messageId:"expectedAfter",fix:C=>C.insertTextAfter(d,` +`)}),v&&!S?e.report({node:m,messageId:"unexpectedBefore",fix(C){return t.getText().slice(y.range[1],m.range[0]).trim()?null:C.removeRange([y.range[1],m.range[0]])}}):!v&&S&&e.report({node:m,messageId:"expectedBefore",fix:C=>C.insertTextBefore(m,` +`)})}function c(h,f){let d=h.leftParen,m=t.getTokenAfter(d),g=!r.isTokenOnSameLine(d,m),y=o(f,g);for(let b=0;b<=f.length-2;b++){let v=f[b],S=f[b+1];!(v.loc.end.line!==S.loc.start.line)&&y&&e.report({node:v,messageId:"expectedBetween",fix:O=>O.insertTextBefore(S,` +`)})}}function p(h){switch(h.type){case"NewExpression":if(!h.arguments.length&&!(r.isOpeningParenToken(t.getLastToken(h,{skip:1}))&&r.isClosingParenToken(t.getLastToken(h))&&h.callee.range[1]a.identifier.range[0]===n.range[0]&&a.identifier.range[1]===n.range[1]);return i.length===1?i[0]:null}function t(s,n){let i=e(s,n);return i&&i.resolved&&i.resolved.defs.length>0}return qg={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/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(s){let n=s.sourceCode;return{CallExpression(i){let a=n.getScope(i);i.callee.name==="require"&&!t(a,i.callee)&&(n.getAncestors(i).every(o=>r.has(o.type))||s.report({node:i,messageId:"unexpected"}))}}}},qg}var Qg,_D;function X7(){if(_D)return Qg;_D=1;let r=Pe();function e(n,i){if(n.length!==i.length)return!1;for(let a=0;a1?l("notGrouped",v,S):(i==="getBeforeSet"&&y>b||i==="setBeforeGet"&&yc.type==="Property")},ClassBody(u){o(u.body,c=>c.type==="MethodDefinition"&&!c.static),o(u.body,c=>c.type==="MethodDefinition"&&c.static)}}}},Qg}var Ug,ID;function G7(){return ID||(ID=1,Ug={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return{ForInStatement(e){let t=e.body;if(t.type!=="EmptyStatement"&&t.type!=="IfStatement"&&!(t.type==="BlockStatement"&&t.body.length===0)&&!(t.type==="BlockStatement"&&t.body.length===1&&t.body[0].type==="IfStatement")){if(t.type==="BlockStatement"&&t.body.length>=1&&t.body[0].type==="IfStatement"){let s=t.body[0];if(s.consequent.type==="ContinueStatement"||s.consequent.type==="BlockStatement"&&s.consequent.body.length===1&&s.consequent.body[0].type==="ContinueStatement")return}r.report({node:e,messageId:"wrap"})}}}}}),Ug}var Vg,FD;function Y7(){return FD||(FD=1,Vg={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(r){let e=r.options[0]||"err",t=r.sourceCode;function s(l){return l[0]==="^"}function n(l){return s(e)?new RegExp(e,"u").test(l):l===e}function i(l){return l.variables.filter(o=>o.defs[0]&&o.defs[0].type==="Parameter")}function a(l){let o=t.getScope(l),u=i(o),c=u[0];c&&n(c.name)&&c.references.length===0&&r.report({node:l,messageId:"expected"})}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a}}}),Vg}var Wg,RD;function H7(){if(RD)return Wg;RD=1;function r(n){let i=n.parent;return i.type==="AssignmentExpression"&&i.left===n||i.type==="ArrayPattern"||i.type==="RestElement"||i.type==="Property"&&i.value===n&&i.parent.type==="ObjectPattern"||i.type==="AssignmentPattern"&&i.left===n}function e(n){let i=n.parent;return i.type==="ImportSpecifier"&&i.imported!==i.local&&i.imported===n||i.type==="ExportSpecifier"&&i.parent.source&&i.local!==i.exported&&i.local===n}function t(n){let i=n.parent;return!i.computed&&i.type==="Property"&&i.parent.type==="ObjectPattern"&&i.value!==n&&i.key===n}function s(n){let i=n.parent;return i.type==="Property"&&i.parent.type==="ObjectExpression"&&i.shorthand}return Wg={meta:{deprecated:!0,replacedBy:["id-denylist"],type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(n){let i=new Set(n.options),a=new Set,l=n.sourceCode,o;function u(f){return i.has(f)}function c(f){let d=o.set.get(f.name);return d&&d.defs.length===0&&d.references.some(m=>m.identifier===f)}function p(f){let d=f.parent;return d.type==="MemberExpression"&&d.property===f&&!d.computed?r(d):d.type!=="CallExpression"&&d.type!=="NewExpression"&&!e(f)&&!t(f)&&!(c(f)&&!s(f))}function h(f){a.has(f.range.toString())||(n.report({node:f,messageId:"restricted",data:{name:f.name}}),a.add(f.range.toString()))}return{Program(f){o=l.getScope(f)},Identifier(f){u(f.name)&&p(f)&&h(f)}}}},Wg}var Zg,BD;function K7(){if(BD)return Zg;BD=1;function r(s){let n=s.parent;return n.type==="AssignmentExpression"&&n.left===s||n.type==="ArrayPattern"||n.type==="RestElement"||n.type==="Property"&&n.value===s&&n.parent.type==="ObjectPattern"||n.type==="AssignmentPattern"&&n.left===s}function e(s){let n=s.parent;return n.type==="ImportSpecifier"&&n.imported!==n.local&&n.imported===s||n.type==="ExportSpecifier"&&n.parent.source&&n.local!==n.exported&&n.local===s}function t(s){let n=s.parent;return!n.computed&&n.type==="Property"&&n.parent.type==="ObjectPattern"&&n.key===s}return Zg={meta:{type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(s){let n=new Set(s.options),i=new Set,a=s.sourceCode,l;function o(h){return n.has(h)}function u(h){let f=l.set.get(h.name);return f&&f.defs.length===0&&f.references.some(d=>d.identifier===h)}function c(h){let f=h.parent;return f.type==="MemberExpression"&&f.property===h&&!f.computed?r(f):f.type!=="CallExpression"&&f.type!=="NewExpression"&&!e(h)&&!t(h)&&!u(h)}function p(h){if(!i.has(h.range.toString())){let f=h.type==="PrivateIdentifier";s.report({node:h,messageId:f?"restrictedPrivate":"restricted",data:{name:h.name}}),i.add(h.range.toString())}}return{Program(h){l=a.getScope(h)},[["Identifier","PrivateIdentifier"]](h){o(h.name)&&c(h)&&p(h)}}}},Zg}var zg,ND;function J7(){if(ND)return zg;ND=1;let{getGraphemeCount:r}=vi();return zg={meta:{type:"suggestion",docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=typeof t.min<"u"?t.min:2,n=typeof t.max<"u"?t.max:1/0,i=t.properties!=="never",a=new Set(t.exceptions),l=(t.exceptionPatterns||[]).map(p=>new RegExp(p,"u")),o=new Set;function u(p){return l.some(h=>h.test(p))}let c={MemberExpression:i&&function(p){return!p.computed&&(p.parent.left===p&&p.parent.type==="AssignmentExpression"||p.parent.type==="Property"&&p.parent.value===p&&p.parent.parent.type==="ObjectPattern"&&p.parent.parent.parent.left===p.parent.parent)},AssignmentPattern(p,h){return p.left===h},VariableDeclarator(p,h){return p.id===h},Property(p,h){if(p.parent.type==="ObjectPattern"){let f=p.value.name===p.key.name;return!f&&p.value===h||f&&p.key===h&&i}return i&&!p.computed&&p.key.name===h.name},ImportDefaultSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](p){let h=p.name,f=p.parent,d=r(h),m=dn;if(!(m||g)||a.has(h)||u(h))return;let y=c[f.type];if(y&&!o.has(p.range.toString())&&(y===!0||y(f,p))){o.add(p.range.toString());let b=m?"tooShort":"tooLong";p.type==="PrivateIdentifier"&&(b+="Private"),e.report({node:p,messageId:b,data:{name:h,min:s,max:n}})}}}}},zg}var Xg,LD;function eV(){return LD||(LD=1,Xg={meta:{type:"suggestion",docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]||"^.+$",t=new RegExp(e,"u"),s=r.options[1]||{},n=!!s.properties,i=!!s.classFields,a=!!s.onlyDeclarations,l=!!s.ignoreDestructuring,o=r.sourceCode,u,c=new Set,p=new Set(["CallExpression","NewExpression"]),h=new Set(["FunctionDeclaration","VariableDeclarator"]),f=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function d(v){let S=u.set.get(v.name);return S&&S.defs.length===0&&S.references.some(C=>C.identifier===v)}function m(v){return!t.test(v)}function g(v){let{parent:S}=v;for(;S;){if(S.type==="ObjectPattern")return!0;S=S.parent}return!1}function y(v,S){return(!a||h.has(v.type))&&!p.has(v.type)&&m(S)}function b(v){if(!c.has(v.range.toString())){let S=v.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";r.report({node:v,messageId:S,data:{name:v.name,pattern:e}}),c.add(v.range.toString())}}return{Program(v){u=o.getScope(v)},Identifier(v){let S=v.name,C=v.parent,O=C.type==="MemberExpression"?C.parent:C;if(!d(v))if(C.type==="MemberExpression"){if(!n)return;C.object.type==="Identifier"&&C.object.name===S||O.type==="AssignmentExpression"&&O.left.type==="MemberExpression"&&O.left.property.name===v.name?m(S)&&b(v):O.type==="AssignmentExpression"&&O.right.type!=="MemberExpression"&&m(S)&&b(v)}else if(C.type==="Property"&&C.parent.type==="ObjectExpression"&&C.key===v&&!C.computed)n&&m(S)&&b(v);else if(C.type==="Property"||C.type==="AssignmentPattern"){if(C.parent&&C.parent.type==="ObjectPattern"){!l&&C.shorthand&&C.value.left&&m(S)&&b(v);let w=C.key.name===C.value.name;if(!w&&C.key===v)return;C.value.name&&m(S)&&!(w&&l)&&b(v)}if(!n&&!C.computed||l&&g(v))return;C.right!==v&&y(O,S)&&b(v)}else f.has(C.type)?C.local&&C.local.name===v.name&&m(S)&&b(v):C.type==="PropertyDefinition"?i&&m(S)&&b(v):y(O,S)&&b(v)},PrivateIdentifier(v){v.parent.type==="PropertyDefinition"&&!i||m(v.name)&&b(v)}}}}),Xg}var Gg,$D;function tV(){if($D)return Gg;$D=1;let{isCommentToken:r,isNotOpeningParenToken:e}=Pe();return Gg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.sourceCode,n=t.options[0]||"beside";function i(a){if(a.body.type==="BlockStatement")return;let l=s.getTokenBefore(a.body,e),o=s.getTokenAfter(l);l.loc.end.line===o.loc.start.line&&n==="below"?t.report({node:o,messageId:"expected",fix:u=>u.insertTextBefore(o,` +`)}):l.loc.end.line!==o.loc.start.line&&n==="beside"&&t.report({node:o,messageId:"unexpected",fix(u){return s.getFirstTokenBetween(l,o,{includeComments:!0,filter:r})?null:u.replaceTextRange([l.range[1],o.range[0]]," ")}})}return{ArrowFunctionExpression:a=>i(a)}}},Gg}var Yg,MD;function rV(){if(MD)return Yg;MD=1;let r=Pe(),e=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"]);class t{constructor(l){this._values=Array(l+1)}insert(l,o){this._values[l]=o}findLastNotAfter(l){let o=this._values;for(let u=l;u>=0;u--){let c=o[u];if(c)return c}}deleteRange(l,o){this._values.fill(void 0,l,o)}}class s{constructor(l){this.sourceCode=l,this.firstTokensByLineNumber=new Map;let o=l.tokensAndComments;for(let u=0;u=l[0]&&o.range[1]<=l[1],d=f&&this._getOffsetDescriptor(o);this._indexMap.deleteRange(l[0]+1,l[1]),this._indexMap.insert(l[0],p),f&&(this._indexMap.insert(o.range[0],d),this._indexMap.insert(o.range[1],p)),this._indexMap.insert(l[1],h)}getDesiredIndent(l){if(!this._desiredIndentCache.has(l))if(this._ignoredTokens.has(l))this._desiredIndentCache.set(l,this._tokenInfo.getTokenIndent(l));else if(this._lockedFirstTokens.has(l)){let o=this._lockedFirstTokens.get(l);this._desiredIndentCache.set(l,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(o))+this._indentType.repeat(o.loc.start.column-this._tokenInfo.getFirstTokenOfLine(o).loc.start.column))}else{let o=this._getOffsetDescriptor(l),u=o.from&&o.from.loc.start.line===l.loc.start.line&&!/^\s*?\n/u.test(l.value)&&!o.force?0:o.offset*this._indentSize;this._desiredIndentCache.set(l,(o.from?this.getDesiredIndent(o.from):"")+this._indentType.repeat(u))}return this._desiredIndentCache.get(l)}ignoreToken(l){this._tokenInfo.isFirstTokenOfLine(l)&&this._ignoredTokens.add(l)}getFirstDependency(l){return this._getOffsetDescriptor(l).from}}let i={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return Yg={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[i,{type:"object",properties:{var:i,let:i,const:i},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:i,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:i},additionalProperties:!1},ArrayExpression:i,ObjectExpression:i,ImportDeclaration:i,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(a){let c="space",p=4,h={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};a.options.length&&(a.options[0]==="tab"?(p=1,c="tab"):(p=a.options[0],c="space"),a.options[1]&&(Object.assign(h,a.options[1]),(typeof h.VariableDeclarator=="number"||h.VariableDeclarator==="first")&&(h.VariableDeclarator={var:h.VariableDeclarator,let:h.VariableDeclarator,const:h.VariableDeclarator})));let f=a.sourceCode,d=new s(f),m=new n(d,p,c==="space"?" ":" ",f.text.length),g=new WeakSet;function y(R,U,V){let ae=`${R} ${c}${R===1?"":"s"}`,se=`space${U===1?"":"s"}`,ve=`tab${V===1?"":"s"}`,H;return U>0?H=c==="space"?U:`${U} ${se}`:V>0?H=c==="tab"?V:`${V} ${ve}`:H="0",{expected:ae,actual:H}}function b(R,U){let V=Array.from(d.getTokenIndent(R)),ae=V.filter(ve=>ve===" ").length,se=V.filter(ve=>ve===" ").length;a.report({node:R,messageId:"wrongIndentation",data:y(U.length,ae,se),loc:{start:{line:R.loc.start.line,column:0},end:{line:R.loc.start.line,column:R.loc.start.column}},fix(ve){let H=[R.range[0]-R.loc.start.column,R.range[0]],he=U;return ve.replaceTextRange(H,he)}})}function v(R,U){let V=d.getTokenIndent(R);return V===U||V.includes(" ")&&V.includes(" ")}function S(R){if(!R.parent||R.parent.type!=="CallExpression"||R.parent.callee!==R)return!1;let U=R.parent&&R.parent.parent;for(;U.type==="UnaryExpression"&&["!","~","+","-"].includes(U.operator)||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 C(R){let V=R.match(/\s*$/u)[0].match(r.createGlobalLinebreakMatcher());return V===null?0:V.length}function O(R,U,V,ae){function se(ve){let H=f.getTokenBefore(ve);for(;r.isOpeningParenToken(H)&&H!==U;)H=f.getTokenBefore(H);return f.getTokenAfter(H)}m.setDesiredOffsets([U.range[1],V.range[0]],U,typeof ae=="number"?ae:1),m.setDesiredOffset(V,U,0),!(ae==="first"&&R.length&&!R[0])&&R.forEach((ve,H)=>{if(ve&&(ae==="off"&&m.ignoreToken(se(ve)),H!==0))if(ae==="first"&&d.isFirstTokenOfLine(se(ve)))m.matchOffsetOf(se(R[0]),se(ve));else{let he=R[H-1],$=he&&se(he),pe=he&&f.getLastToken(he);he&&pe.loc.end.line-C(pe.value)>U.loc.end.line&&m.setDesiredOffsets([he.range[1],ve.range[1]],$,0)}})}function w(R){if(R.type!=="BlockStatement"){let U=f.getTokenBefore(R,r.isNotOpeningParenToken),V=f.getFirstToken(R),ae=f.getLastToken(R);for(;r.isOpeningParenToken(f.getTokenBefore(V))&&r.isClosingParenToken(f.getTokenAfter(ae));)V=f.getTokenBefore(V),ae=f.getTokenAfter(ae);m.setDesiredOffsets([V.range[0],ae.range[1]],U,1)}}function E(R){let U;R.arguments.length?U=f.getFirstTokenBetween(R.callee,R.arguments[0],r.isOpeningParenToken):U=f.getLastToken(R,1);let V=f.getLastToken(R);if(g.add(U),g.add(V),R.optional){let ve=f.getTokenAfter(R.callee,r.isQuestionDotToken),H=f.getTokensBetween(R.callee,ve,{filter:r.isClosingParenToken}).length,he=H?f.getTokenBefore(R.callee,{skip:H-1}):f.getFirstToken(R.callee),$=f.getTokenBefore(ve),pe=$.loc.end.line===U.loc.start.line?$:he;m.setDesiredOffset(ve,pe,1)}let ae=R.callee.type==="TaggedTemplateExpression"?f.getFirstToken(R.callee.quasi):U,se=f.getTokenBefore(ae);m.setDesiredOffset(U,se,0),O(R.arguments,U,V,h.CallExpression.arguments)}function k(R){let U=[],V=[];for(let ae=0;ae=0;ae--){let se=V[ae].left,ve=V[ae].right;if(!g.has(se)&&!g.has(ve)){let H=new Set(f.getTokensBetween(se,ve));H.forEach(he=>{H.has(m.getFirstDependency(he))||m.setDesiredOffset(he,se,1)})}m.setDesiredOffset(ve,se,0)}}function A(R){let U=new Set(f.getTokens(R,{includeComments:!0}));U.forEach(V=>{if(!U.has(m.getFirstDependency(V))){let ae=d.getFirstTokenOfLine(V);V===ae?m.ignoreToken(V):m.setDesiredOffset(V,ae,0)}})}function D(R,U){let V=U;for(;V.parent&&!V.parent.type.endsWith("Statement")&&!V.parent.type.endsWith("Declaration");)V=V.parent;return V=V.parent,!V||V.loc.start.line===R.loc.start.line}function _(R,U){let V=R.loc.end.line,ae=U.loc.start.line;if(V===ae||V===ae-1)return!1;for(let se=V+1;seae)||U,r.isClosingBracketToken);O(R.elements,U,V,h.ArrayExpression)},"ObjectExpression, ObjectPattern"(R){let U=f.getFirstToken(R),V=f.getTokenAfter(R.properties.length?R.properties.at(-1):U,r.isClosingBraceToken);O(R.properties,U,V,h.ObjectExpression)},ArrowFunctionExpression(R){let U=f.getFirstToken(R,{skip:R.async?1:0});if(r.isOpeningParenToken(U)){let V=U,ae=f.getTokenBefore(R.body,r.isClosingParenToken);g.add(V),g.add(ae),O(R.params,V,ae,h.FunctionExpression.parameters)}w(R.body)},AssignmentExpression(R){let U=f.getFirstTokenBetween(R.left,R.right,V=>V.value===R.operator);m.setDesiredOffsets([U.range[0],R.range[1]],f.getLastToken(R.left),1),m.ignoreToken(U),m.ignoreToken(f.getTokenAfter(U))},"BinaryExpression, LogicalExpression"(R){let U=f.getFirstTokenBetween(R.left,R.right,ae=>ae.value===R.operator),V=f.getTokenAfter(U);m.ignoreToken(U),m.ignoreToken(V),m.setDesiredOffset(V,U,0)},"BlockStatement, ClassBody"(R){let U;R.parent&&S(R.parent)?U=h.outerIIFEBody:R.parent&&(R.parent.type==="FunctionExpression"||R.parent.type==="ArrowFunctionExpression")?U=h.FunctionExpression.body:R.parent&&R.parent.type==="FunctionDeclaration"?U=h.FunctionDeclaration.body:U=1,r.STATEMENT_LIST_PARENTS.has(R.parent.type)||m.setDesiredOffset(f.getFirstToken(R),f.getFirstToken(R.parent),0),O(R.body,f.getFirstToken(R),f.getLastToken(R),U)},CallExpression:E,"ClassDeclaration[superClass], ClassExpression[superClass]"(R){let U=f.getFirstToken(R),V=f.getTokenBefore(R.superClass,r.isNotOpeningParenToken);m.setDesiredOffsets([V.range[0],R.body.range[0]],U,1)},ConditionalExpression(R){let U=f.getFirstToken(R);if(!h.flatTernaryExpressions||!r.isTokenOnSameLine(R.test,R.consequent)||D(U,R)){let V=f.getFirstTokenBetween(R.test,R.consequent,he=>he.type==="Punctuator"&&he.value==="?"),ae=f.getFirstTokenBetween(R.consequent,R.alternate,he=>he.type==="Punctuator"&&he.value===":"),se=f.getTokenAfter(V),ve=f.getTokenBefore(ae),H=f.getTokenAfter(ae);m.setDesiredOffset(V,U,1),m.setDesiredOffset(ae,U,1),m.setDesiredOffset(se,U,se.type==="Punctuator"&&h.offsetTernaryExpressions?2:1),ve.loc.end.line===H.loc.start.line?m.setDesiredOffset(H,se,0):m.setDesiredOffset(H,U,H.type==="Punctuator"&&h.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":R=>w(R.body),ExportNamedDeclaration(R){if(R.declaration===null){let U=f.getLastToken(R,r.isClosingBraceToken);O(R.specifiers,f.getFirstToken(R,{skip:1}),U,1),R.source&&m.setDesiredOffsets([U.range[1],R.range[1]],f.getFirstToken(R),1)}},ForStatement(R){let U=f.getFirstToken(R,1);R.init&&m.setDesiredOffsets(R.init.range,U,1),R.test&&m.setDesiredOffsets(R.test.range,U,1),R.update&&m.setDesiredOffsets(R.update.range,U,1),w(R.body)},"FunctionDeclaration, FunctionExpression"(R){let U=f.getTokenBefore(R.body),V=f.getTokenBefore(R.params.length?R.params[0]:U);g.add(V),g.add(U),O(R.params,V,U,h[R.type].parameters)},IfStatement(R){w(R.consequent),R.alternate&&w(R.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(R){let U;R.type==="IfStatement"?(U=[R.consequent],R.alternate&&U.push(R.alternate)):U=[R.body];for(let V of U){let ae=f.getLastToken(V);if(r.isSemicolonToken(ae)){let se=f.getTokenBefore(ae),ve=f.getTokenAfter(ae);!r.isTokenOnSameLine(se,ae)&&ve&&r.isTokenOnSameLine(ae,ve)&&m.setDesiredOffset(ae,f.getFirstToken(R),0)}}},ImportDeclaration(R){if(R.specifiers.some(se=>se.type==="ImportSpecifier")){let se=f.getFirstToken(R,r.isOpeningBraceToken),ve=f.getLastToken(R,r.isClosingBraceToken);O(R.specifiers.filter(H=>H.type==="ImportSpecifier"),se,ve,h.ImportDeclaration)}let U=f.getLastToken(R,se=>se.type==="Identifier"&&se.value==="from"),V=f.getLastToken(R,se=>se.type==="String"),ae=f.getLastToken(R,se=>se.type==="Punctuator"&&se.value===";");if(U){let se=ae&&ae.range[1]===V.range[1]?R.range[1]:V.range[1];m.setDesiredOffsets([U.range[0],se],f.getFirstToken(R),1)}},ImportExpression(R){let U=f.getFirstToken(R,1),V=f.getLastToken(R);g.add(U),g.add(V),m.setDesiredOffset(U,f.getTokenBefore(U),0),O([R.source],U,V,h.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(R){let U=R.type==="MetaProperty"?R.meta:R.object,V=f.getFirstTokenBetween(U,R.property,r.isNotClosingParenToken),ae=f.getTokenAfter(V),se=f.getTokensBetween(U,R.property,{filter:r.isClosingParenToken}).length,ve=se?f.getTokenBefore(U,{skip:se-1}):f.getFirstToken(U),H=f.getTokenBefore(V),he=R.computed?V:ae;R.computed&&(m.setDesiredOffset(f.getLastToken(R),V,0),m.setDesiredOffsets(R.property.range,V,1));let $=H.loc.end.line===he.loc.start.line?H:ve;typeof h.MemberExpression=="number"?(m.setDesiredOffset(V,$,h.MemberExpression),m.setDesiredOffset(ae,R.computed?V:$,h.MemberExpression)):(m.ignoreToken(V),m.ignoreToken(ae),m.setDesiredOffset(V,$,0),m.setDesiredOffset(ae,V,0))},NewExpression(R){(R.arguments.length>0||r.isClosingParenToken(f.getLastToken(R))&&r.isOpeningParenToken(f.getLastToken(R,1)))&&E(R)},Property(R){if(!R.shorthand&&!R.method&&R.kind==="init"){let U=f.getFirstTokenBetween(R.key,R.value,r.isColonToken);m.ignoreToken(f.getTokenAfter(U))}},PropertyDefinition(R){let U=f.getFirstToken(R),V=f.getLastToken(R),ae;if(R.computed){let se=f.getTokenBefore(R.key,r.isOpeningBracketToken),ve=ae=f.getTokenAfter(R.key,r.isClosingBracketToken),H=[se.range[1],ve.range[0]];se!==U&&m.setDesiredOffset(se,U,0),m.setDesiredOffsets(H,se,1),m.setDesiredOffset(ve,se,0)}else{let se=ae=f.getFirstToken(R.key);se!==U&&m.setDesiredOffset(se,U,1)}if(R.value){let se=f.getTokenBefore(R.value,r.isEqToken),ve=f.getTokenAfter(se);m.setDesiredOffset(se,ae,1),m.setDesiredOffset(ve,se,1),r.isSemicolonToken(V)&&m.setDesiredOffset(V,se,1)}else r.isSemicolonToken(V)&&m.setDesiredOffset(V,ae,1)},StaticBlock(R){let U=f.getFirstToken(R,{skip:1}),V=f.getLastToken(R);O(R.body,U,V,h.StaticBlock.body)},SwitchStatement(R){let U=f.getTokenAfter(R.discriminant,r.isOpeningBraceToken),V=f.getLastToken(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,h.SwitchCase),R.cases.length&&f.getTokensBetween(R.cases.at(-1),V,{includeComments:!0,filter:r.isCommentToken}).forEach(ae=>m.ignoreToken(ae))},SwitchCase(R){if(!(R.consequent.length===1&&R.consequent[0].type==="BlockStatement")){let U=f.getFirstToken(R),V=f.getTokenAfter(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)}},TemplateLiteral(R){R.expressions.forEach((U,V)=>{let ae=R.quasis[V],se=R.quasis[V+1],ve=ae.loc.start.line===ae.loc.end.line?f.getFirstToken(ae):null;m.setDesiredOffsets([ae.range[1],se.range[0]],ve,1),m.setDesiredOffset(f.getFirstToken(se),ve,0)})},VariableDeclaration(R){let U=Object.hasOwn(h.VariableDeclarator,R.kind)?h.VariableDeclarator[R.kind]:1,V=f.getFirstToken(R),ae=f.getLastToken(R);if(h.VariableDeclarator[R.kind]==="first"){if(R.declarations.length>1){O(R.declarations,V,ae,"first");return}U=1}R.declarations.at(-1).loc.start.line>R.loc.start.line?m.setDesiredOffsets(R.range,V,U,!0):m.setDesiredOffsets(R.range,V,U),r.isSemicolonToken(ae)&&m.ignoreToken(ae)},VariableDeclarator(R){if(R.init){let U=f.getTokenBefore(R.init,r.isNotOpeningParenToken),V=f.getTokenAfter(U);m.ignoreToken(U),m.ignoreToken(V),m.setDesiredOffsets([V.range[0],R.range[1]],U,1),m.setDesiredOffset(U,f.getLastToken(R.id),0)}},"JSXAttribute[value]"(R){let U=f.getFirstTokenBetween(R.name,R.value,V=>V.type==="Punctuator"&&V.value==="=");m.setDesiredOffsets([U.range[0],R.value.range[1]],f.getFirstToken(R.name),1)},JSXElement(R){R.closingElement&&O(R.children,f.getFirstToken(R.openingElement),f.getFirstToken(R.closingElement),1)},JSXOpeningElement(R){let U=f.getFirstToken(R),V;R.selfClosing?(V=f.getLastToken(R,{skip:1}),m.setDesiredOffset(f.getLastToken(R),V,0)):V=f.getLastToken(R),m.setDesiredOffsets(R.name.range,f.getFirstToken(R)),O(R.attributes,U,V,1)},JSXClosingElement(R){let U=f.getFirstToken(R);m.setDesiredOffsets(R.name.range,U,1)},JSXFragment(R){let U=f.getFirstToken(R.openingFragment),V=f.getFirstToken(R.closingFragment);O(R.children,U,V,1)},JSXOpeningFragment(R){let U=f.getFirstToken(R),V=f.getLastToken(R);m.setDesiredOffsets(R.range,U,1),m.matchOffsetOf(U,V)},JSXClosingFragment(R){let U=f.getFirstToken(R),V=f.getLastToken(R,{skip:1}),ae=f.getLastToken(R),se=r.isTokenOnSameLine(V,ae)?V:ae;m.setDesiredOffsets(R.range,U,1),m.matchOffsetOf(U,se)},JSXExpressionContainer(R){let U=f.getFirstToken(R),V=f.getLastToken(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)},JSXSpreadAttribute(R){let U=f.getFirstToken(R),V=f.getLastToken(R);m.setDesiredOffsets([U.range[1],V.range[0]],U,1)},"*"(R){let U=f.getFirstToken(R);U&&!B.has(U)&&m.setDesiredOffsets(R.range,U,0)}},F=[],j={};for(let[R,U]of Object.entries(T))j[R]=V=>F.push({listener:U,node:V});let Q=new Set;function I(R){Q.add(R),B.add(f.getFirstToken(R))}let N=h.ignoredNodes.reduce((R,U)=>Object.assign(R,{[U]:I}),{});return Object.assign(j,N,{"*:exit"(R){e.has(R.type)||I(R)},"Program:exit"(){h.ignoreComments&&f.getAllComments().forEach(U=>m.ignoreToken(U));for(let U=0;U0&&R>0?se=`${N} ${V} and ${R} ${ae}`:N>0?se=i==="space"?N:`${N} ${V}`:R>0?se=i==="tab"?R:`${R} ${ae}`:se="0",{expected:U,actual:se}}function p(I,N,R,U,V,ae){if(R&&U)return;let se=(i==="space"?" ":" ").repeat(N),ve=ae?[I.range[1]-I.loc.end.column,I.range[1]-I.loc.end.column+R+U]:[I.range[0]-I.loc.start.column,I.range[0]-I.loc.start.column+R+U];e.report({node:I,loc:V,messageId:"expected",data:c(N,R,U),fix:H=>H.replaceTextRange(ve,se)})}function h(I,N){let R=N?o.getLastToken(I):o.getFirstToken(I),U=o.getText(R,R.loc.start.column).split(""),V=U.slice(0,U.findIndex(ve=>ve!==" "&&ve!==" ")),ae=V.filter(ve=>ve===" ").length,se=V.filter(ve=>ve===" ").length;return{space:ae,tab:se,goodChar:i==="space"?ae:se,badChar:i==="space"?se:ae}}function f(I,N){let R=N===!0?o.getLastToken(I,1):o.getTokenBefore(I),U=N===!0?I.loc.end.line:I.loc.start.line,V=R?R.loc.end.line:-1;return U!==V}function d(I,N){let R=h(I,!1);if(I.type!=="ArrayExpression"&&I.type!=="ObjectExpression"&&(R.goodChar!==N||R.badChar!==0)&&f(I)&&p(I,N,R.space,R.tab),I.type==="IfStatement"&&I.alternate){let U=o.getTokenBefore(I.alternate);d(U,N),f(I.alternate)||d(I.alternate,N)}if(I.type==="TryStatement"&&I.handler){let U=o.getFirstToken(I.handler);d(U,N)}if(I.type==="TryStatement"&&I.finalizer){let U=o.getTokenBefore(I.finalizer);d(U,N)}if(I.type==="DoWhileStatement"){let U=o.getTokenAfter(I.body);d(U,N)}}function m(I,N){I.forEach(R=>d(R,N))}function g(I,N){let R=o.getLastToken(I),U=h(R,!0);(U.goodChar!==N||U.badChar!==0)&&f(I,!0)&&p(I,N,U.space,U.tab,{line:R.loc.start.line,column:R.loc.start.column},!0)}function y(I,N){let R=o.getLastToken(I,r.isClosingParenToken);if(o.getText(R,R.loc.start.column).slice(0,-1).trim())return;let V=h(R,!0);V.goodChar!==N&&p(I,N,V.space,V.tab,{line:R.loc.start.line,column:R.loc.start.column},!0)}function b(I,N){let R=h(I,!1);(R.goodChar!==N||R.badChar!==0)&&f(I)&&p(I,N,R.space,R.tab,{line:I.loc.start.line,column:I.loc.start.column})}function v(I,N,R){let U=I.parent,V=new Set(R||["Program"]);for(;U.type!==N&&!V.has(U.type)&&U.type!=="Program";)U=U.parent;return U.type===N?U:null}function S(I){return v(I,"VariableDeclarator")}function C(I,N){return N&&N.parent.loc.start.line===I.loc.start.line&&N.parent.declarations.length>1}function O(I){let N=I.parent;return N.arguments.length>=2&&N.arguments[1]===I?N.arguments[0].loc.end.line>N.arguments[0].loc.start.line:!1}function w(I){let N=I.parent,R=N.parent;if(N.type!=="CallExpression"||N.callee!==I)return!1;for(;R.type==="UnaryExpression"&&(R.operator==="!"||R.operator==="~"||R.operator==="+"||R.operator==="-")||R.type==="AssignmentExpression"||R.type==="LogicalExpression"||R.type==="SequenceExpression"||R.type==="VariableDeclarator";)R=R.parent;return(R.type==="ExpressionStatement"||R.type==="VariableDeclaration")&&R.parent&&R.parent.type==="Program"}function E(I){let N=I.parent,R;if(N.parent&&(N.parent.type==="Property"||N.parent.type==="ArrayExpression")?R=h(N,!1).goodChar:R=h(N).goodChar,N.parent.type==="CallExpression"){let ae=N.parent;N.type!=="FunctionExpression"&&N.type!=="ArrowFunctionExpression"?ae&&ae.loc.start.line0&&m(I.body,R),g(I,R-U)}function k(I){let N=o.getLastToken(I),R=I.loc.start.line,U=N.loc.end.line;return R===U}function A(I){if(k(I))return;let N=I.type==="ArrayExpression"?I.elements:I.properties;N=N.filter(ae=>ae!==null);let R,U,V=S(I);if(f(I)){let ae=I.parent;if(R=h(ae).goodChar,(!V||V.loc.start.line!==I.loc.start.line)&&(ae.type!=="VariableDeclarator"||V===V.parent.declarations[0]))if(ae.type==="VariableDeclarator"&&V.loc.start.line===ae.loc.start.line)R+=a*l.VariableDeclarator[V.parent.kind];else if(ae.type==="ObjectExpression"||ae.type==="ArrayExpression"){let se=I.parent.type==="ObjectExpression"?I.parent.properties:I.parent.elements;se[0]&&se[0].loc.start.line===ae.loc.start.line&&se[0].loc.end.line!==ae.loc.start.line||(typeof l[ae.type]=="number"?R+=l[ae.type]*a:R=se[0].loc.start.column)}else ae.type==="CallExpression"||ae.type==="NewExpression"?typeof l.CallExpression.arguments=="number"?R+=l.CallExpression.arguments*a:l.CallExpression.arguments==="first"?ae.arguments.includes(I)&&(R=ae.arguments[0].loc.start.column):R+=a:(ae.type==="LogicalExpression"||ae.type==="ArrowFunctionExpression")&&(R+=a);b(I,R)}else R=h(I).goodChar;l[I.type]==="first"?U=N.length?N[0].loc.start.column:0:U=R+a*l[I.type],C(I,V)&&(U+=a*l.VariableDeclarator[V.parent.kind]),m(N,U),!(N.length>0&&N.at(-1).loc.end.line===I.loc.end.line)&&g(I,R+(C(I,V)?l.VariableDeclarator[V.parent.kind]*a:0))}function D(I){return I.type==="BlockStatement"||I.type==="ClassBody"||I.body&&I.body.type==="BlockStatement"||I.consequent&&I.consequent.type==="BlockStatement"}function _(I){if(k(I))return;if(I.parent&&(I.parent.type==="FunctionExpression"||I.parent.type==="FunctionDeclaration"||I.parent.type==="ArrowFunctionExpression")){E(I);return}let N,R,U=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];I.parent&&U.includes(I.parent.type)&&D(I)?N=h(I.parent).goodChar:I.parent&&I.parent.type==="CatchClause"?N=h(I.parent.parent).goodChar:N=h(I).goodChar,I.type==="IfStatement"&&I.consequent.type!=="BlockStatement"?R=[I.consequent]:Array.isArray(I.body)?R=I.body:R=[I.body],R.length>0&&m(R,N+a),I.type==="BlockStatement"&&g(I,N)}function B(I){return I.declarations.reduce((N,R)=>{let U=N.at(-1);return(R.loc.start.line!==I.loc.start.line&&!U||U&&U.loc.start.line!==R.loc.start.line)&&N.push(R),N},[])}function T(I){let N=B(I),R=h(I).goodChar,U=N.at(-1),V=R+a*l.VariableDeclarator[I.kind];if(m(N,V),o.getLastToken(I).loc.end.line<=U.loc.end.line)return;let ae=o.getTokenBefore(U);ae.value===","?g(I,h(ae).goodChar):g(I,V-a)}function F(I){I.body.type!=="BlockStatement"&&_(I)}function j(I,N){let R=I.type==="SwitchStatement"?I:I.parent,U=typeof N>"u"?h(R).goodChar:N,V;return u[R.loc.start.line]?u[R.loc.start.line]:(R.cases.length>0&&l.SwitchCase===0?V=U:V=U+a*l.SwitchCase,u[R.loc.start.line]=V,V)}function Q(I){let N=/^return\s*?\(\s*?\);*?/u,R=o.getText(I).replace(o.getText(I.argument),"");return N.test(R)}return{Program(I){I.body.length>0&&m(I.body,h(I).goodChar)},ClassBody:_,BlockStatement:_,WhileStatement:F,ForStatement:F,ForInStatement:F,ForOfStatement:F,DoWhileStatement:F,IfStatement(I){I.consequent.type!=="BlockStatement"&&I.consequent.loc.start.line>I.loc.start.line&&_(I)},VariableDeclaration(I){I.declarations.at(-1).loc.start.line>I.declarations[0].loc.start.line&&T(I)},ObjectExpression(I){A(I)},ArrayExpression(I){A(I)},MemberExpression(I){if(typeof l.MemberExpression>"u"||k(I)||v(I,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||v(I,"AssignmentExpression",["FunctionExpression"]))return;let N=h(I).goodChar+a*l.MemberExpression,R=[I.property],U=o.getTokenBefore(I.property);U.type==="Punctuator"&&U.value==="."&&R.push(U),m(R,N)},SwitchStatement(I){let N=h(I).goodChar,R=j(I,N);m(I.cases,R),g(I,N)},SwitchCase(I){if(k(I))return;let N=j(I);m(I.consequent,N+a)},FunctionDeclaration(I){k(I)||(l.FunctionDeclaration.parameters==="first"&&I.params.length?m(I.params.slice(1),I.params[0].loc.start.column):l.FunctionDeclaration.parameters!==null&&m(I.params,h(I).goodChar+a*l.FunctionDeclaration.parameters))},FunctionExpression(I){k(I)||(l.FunctionExpression.parameters==="first"&&I.params.length?m(I.params.slice(1),I.params[0].loc.start.column):l.FunctionExpression.parameters!==null&&m(I.params,h(I).goodChar+a*l.FunctionExpression.parameters))},ReturnStatement(I){if(k(I))return;let N=h(I).goodChar;Q(I)?y(I,N):d(I,N)},CallExpression(I){k(I)||(l.CallExpression.arguments==="first"&&I.arguments.length?m(I.arguments.slice(1),I.arguments[0].loc.start.column):l.CallExpression.arguments!==null&&m(I.arguments,h(I).goodChar+a*l.CallExpression.arguments))}}}},Hg}var Kg,qD;function sV(){if(qD)return Kg;qD=1;function r(t){return t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"}function e(t){let s=t.parent,n=s.parent;return r(n)?n.type==="ForStatement"?n.init===s:n.left===s:!!t.init}return Kg={meta:{type:"suggestion",docs:{description:"Require or disallow initialization in variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/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 s="always",n="never",i=t.options[0]||s,a=t.options[1]||{};return{"VariableDeclaration:exit"(l){let o=l.kind,u=l.declarations;for(let c=0;c1)return!1;return!0}return!1}function S(B){let T=B.key;return B.computed?d.getText().slice(T.range[0],T.range[1]):r.getStaticPropertyName(B)}function C(B,T,F,j,Q){let I=F.length-j;if((I&&Q==="strict"||I<0&&Q==="minimum"||I>0&&!j&&Q==="minimum")&&!(j&&t(F))){let N=g(B.key),R=d.getTokenBefore(N,{includeComments:!0}),U=d.getTokenAfter(N,{includeComments:!0}),V=T==="key",ae=I>0,se=Math.abs(I),ve=Array(se+1).join(" "),H=V?R.loc.end:N.loc.start,he=V?N.loc.start:U.loc.start,$=V?R.loc:U.loc,pe=ae?{start:H,end:he}:$,K;if(ae){let xe;V?xe=[R.range[1],R.range[1]+se]:xe=[U.range[0]-se,U.range[0]],K=function(Le){return Le.removeRange(xe)}}else V?K=function(xe){return xe.insertTextAfter(R,ve)}:K=function(xe){return xe.insertTextBefore(U,ve)};let le;ae?le=T==="key"?"extraKey":"extraValue":le=T==="key"?"missingKey":"missingValue",o.report({node:B[T],loc:pe,messageId:le,data:{computed:B.computed?"computed ":"",key:S(B)},fix:K})}}function O(B){let T=d.getFirstToken(B),F=y(B.key);return e(d.getText().slice(T.range[0],F.range[1]))}function w(B){let T=/(\s*):(\s*)/u.exec(d.getText().slice(B.key.range[1],B.value.range[0]));return T?{beforeColon:T[1],afterColon:T[2]}:null}function E(B){return B.properties.length===1?[B.properties]:B.properties.reduce((T,F)=>{let j=s(T),Q=s(j);return!Q||v(Q,F)?j.push(F):T.push([F]),T},[[]])}function k(B){let T=B.length,F=B.map(O),j=f.on,Q=Math.max(...F),I,N,R;f&&T>1?(I=f.beforeColon,N=f.afterColon,R=f.mode):(I=p.beforeColon,N=p.afterColon,R=f.mode),Q+=j==="colon"?I:N;for(let U=0;U{let F=T.filter(m);F.length>0&&i(F)?D(F,p):k(F)})}return f?{ObjectExpression(B){n(B)?D(B.properties.filter(m),h):_(B)}}:{Property(B){A(B,n(B.parent)?h:p)}}}},e0}var t0,VD;function oV(){if(VD)return t0;VD=1;let r=Pe(),e=NO(),t=/^[)\]}>]$/u,s=/^(?:[([{<~!]|\+\+?|--?)$/u,n=/^[)\]}>*]$/u,i=/^[{*]$/u,a=/\$\{$/u,l=/^\}/u,o=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,u=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){u.sort();for(let h=1;h(h[f]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},h),{}),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(h){let f=h.sourceCode,d=new WeakSet;function m(se,ve){let H=f.getTokenBefore(se);H&&(o.test(H.type)||ve.test(H.value))&&!c(H)&&!d.has(H)&&r.isTokenOnSameLine(H,se)&&!f.isSpaceBetweenTokens(H,se)&&h.report({loc:se.loc,messageId:"expectedBefore",data:se,fix(he){return he.insertTextBefore(se," ")}})}function g(se,ve){let H=f.getTokenBefore(se);H&&(o.test(H.type)||ve.test(H.value))&&!c(H)&&!d.has(H)&&r.isTokenOnSameLine(H,se)&&f.isSpaceBetweenTokens(H,se)&&h.report({loc:{start:H.loc.end,end:se.loc.start},messageId:"unexpectedBefore",data:se,fix(he){return he.removeRange([H.range[1],se.range[0]])}})}function y(se,ve){let H=f.getTokenAfter(se);H&&(o.test(H.type)||ve.test(H.value))&&!p(H)&&!d.has(H)&&r.isTokenOnSameLine(se,H)&&!f.isSpaceBetweenTokens(se,H)&&h.report({loc:se.loc,messageId:"expectedAfter",data:se,fix(he){return he.insertTextAfter(se," ")}})}function b(se,ve){let H=f.getTokenAfter(se);H&&(o.test(H.type)||ve.test(H.value))&&!p(H)&&!d.has(H)&&r.isTokenOnSameLine(se,H)&&f.isSpaceBetweenTokens(se,H)&&h.report({loc:{start:se.loc.end,end:H.loc.start},messageId:"unexpectedAfter",data:se,fix(he){return he.removeRange([se.range[1],H.range[0]])}})}function v(se={}){let ve=se.before!==!1,H=se.after!==!1,he={before:ve?m:g,after:H?y:b},$=se&&se.overrides||{},pe=Object.create(null);for(let K=0;K{switch(H.value){case"get":case"set":case"async":return!0;default:return!1}});if(!ve)throw new Error("Failed to find token get, set, or async beside method name");w(ve)}}function ae(se){C(f.getFirstToken(se))}return{DebuggerStatement:E,WithStatement:E,BreakStatement:E,ContinueStatement:E,ReturnStatement:E,ThrowStatement:E,TryStatement:T,IfStatement:B,SwitchStatement:E,SwitchCase:E,DoWhileStatement:F,ForInStatement:j,ForOfStatement:Q,ForStatement:E,WhileStatement:E,ClassDeclaration:_,ExportNamedDeclaration:I,ExportDefaultDeclaration:I,ExportAllDeclaration:I,FunctionDeclaration:D,ImportDeclaration:I,VariableDeclaration:E,ArrowFunctionExpression:D,AwaitExpression:ae,ClassExpression:_,FunctionExpression:D,NewExpression:k,Super:k,ThisExpression:k,UnaryExpression:k,YieldExpression:k,ImportSpecifier:N,ExportSpecifier:R,ImportNamespaceSpecifier:U,MethodDefinition:V,PropertyDefinition:V,StaticBlock:E,Property:V,"BinaryExpression[operator='>']"(se){let ve=f.getTokenBefore(se.right,r.isNotOpeningParenToken);d.add(ve)}}}},t0}var r0,WD;function lV(){if(WD)return r0;WD=1;let r=Pe();return r0={meta:{type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s,n,i=!0;!t||typeof t=="string"?s=!t||t==="above":(s=!t.position||t.position==="above",n=t.ignorePattern,Object.hasOwn(t,"applyDefaultIgnorePatterns")?i=t.applyDefaultIgnorePatterns:i=t.applyDefaultPatterns!==!1);let a=r.COMMENTS_IGNORE_PATTERN,l=/^\s*falls?\s?through/u,o=new RegExp(n,"u"),u=e.sourceCode;return{Program(){u.getAllComments().filter(p=>p.type==="Line").forEach(p=>{if(i&&(a.test(p.value)||l.test(p.value))||n&&o.test(p.value))return;let h=u.getTokenBefore(p,{includeComments:!0}),f=h&&h.loc.end.line===p.loc.start.line;s?f&&e.report({node:p,messageId:"above"}):f||e.report({node:p,messageId:"beside"})})}}}},r0}var n0,ZD;function uV(){if(ZD)return n0;ZD=1;let r=Pe();return n0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode;function s(n,i){return function(a){return a.replaceTextRange(n,i)}}return{Program:function(i){let a=e.options[0]||"unix",l=a==="unix",o=l?` `:`\r -`,u=t.getText(),c=r.createGlobalLinebreakMatcher(),p,h=0;for(;(p=c.exec(u))!==null;){if(h++,p[0]===o)continue;let f=p.index,d=[f,f+p[0].length];e.report({node:i,loc:{start:{line:h,column:t.lines[h-1].length},end:{line:h+1,column:0}},messageId:l?"expectedLF":"expectedCRLF",fix:s(d,o)})}}}}},i0}var a0,GD;function pV(){if(GD)return a0;GD=1;let r=De();function e(s){return s.map((i,a)=>({code:i.trim(),num:a+1})).filter(i=>!i.code).map(i=>i.num)}function t(s){let n=[];return s.forEach(i=>{let a=i.loc.start.line,l=i.loc.end.line;n.push(a,l)}),n}return a0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/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"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(s){let n=Object.assign({},s.options[0]),i=n.ignorePattern,a=r.COMMENTS_IGNORE_PATTERN,l=new RegExp(i,"u"),o=n.applyDefaultIgnorePatterns!==!1;n.beforeBlockComment=typeof n.beforeBlockComment<"u"?n.beforeBlockComment:!0;let u=s.sourceCode,c=u.lines,p=c.length+1,h=u.getAllComments(),f=t(h),d=e(c),m=new Set(f.concat(d));function g(_){let B=_;do B=u.getTokenBefore(B,{includeComments:!0});while(B&&r.isCommentToken(B));if(B&&r.isTokenOnSameLine(B,_))return!0;B=_;do B=u.getTokenAfter(B,{includeComments:!0});while(B&&r.isCommentToken(B));return!!(B&&r.isTokenOnSameLine(_,B))}function b(_,B){return _.type===B||_.body&&_.body.type===B||_.consequent&&_.consequent.type===B}function O(_){let B=u.getNodeByRangeIndex(_.range[0]);if(B&&B.type==="StaticBlock"){let Q=u.getFirstToken(B,{skip:1});return _.range[0]>=Q.range[0]?B:null}return B}function S(_,B){let Q=O(_);if(Q&&b(Q,B)){let V=Q;return Q.type==="StaticBlock"?V=u.getFirstToken(Q,{skip:1}):Q.type==="SwitchStatement"&&(V=u.getTokenAfter(Q.discriminant,{filter:r.isOpeningBraceToken})),_.loc.start.line-V.loc.start.line===1}return!1}function C(_,B){let Q=O(_);return!!Q&&b(Q,B)&&Q.loc.end.line-_.loc.end.line===1}function k(_){return S(_,"ClassBody")||S(_,"BlockStatement")||S(_,"StaticBlock")||S(_,"SwitchCase")||S(_,"SwitchStatement")}function E(_){return C(_,"ClassBody")||C(_,"BlockStatement")||C(_,"StaticBlock")||C(_,"SwitchCase")||C(_,"SwitchStatement")}function A(_){return S(_,"ClassBody")}function w(_){return C(_,"ClassBody")}function P(_){return S(_,"ObjectExpression")||S(_,"ObjectPattern")}function T(_){return C(_,"ObjectExpression")||C(_,"ObjectPattern")}function I(_){return S(_,"ArrayExpression")||S(_,"ArrayPattern")}function F(_){return C(_,"ArrayExpression")||C(_,"ArrayPattern")}function L(_,B){if(o&&a.test(_.value)||i&&l.test(_.value))return;let Q=B.after,V=B.before,R=_.loc.start.line-1,$=_.loc.end.line+1,N=g(_),W=n.allowBlockStart&&k(_)&&!(n.allowClassStart===!1&&A(_)),Z=n.allowBlockEnd&&E(_)&&!(n.allowClassEnd===!1&&w(_)),le=n.allowClassStart&&A(_),ae=n.allowClassEnd&&w(_),Se=n.allowObjectStart&&P(_),J=n.allowObjectEnd&&T(_),me=n.allowArrayStart&&I(_),j=n.allowArrayEnd&&F(_),de=W||le||Se||me,ee=Z||ae||J||j;if(R<1&&(V=!1),$>=p&&(Q=!1),N)return;let ce=u.getTokenBefore(_,{includeComments:!0}),ve=u.getTokenAfter(_,{includeComments:!0});if(!de&&V&&!m.has(R)&&!(r.isCommentToken(ce)&&r.isTokenOnSameLine(ce,_))){let Me=_.range[0]-_.loc.start.column,Ue=[Me,Me];s.report({node:_,messageId:"before",fix(st){return st.insertTextBeforeRange(Ue,` -`)}})}!ee&&Q&&!m.has($)&&!(r.isCommentToken(ve)&&r.isTokenOnSameLine(_,ve))&&s.report({node:_,messageId:"after",fix(Me){return Me.insertTextAfter(_,` -`)}})}return{Program(){h.forEach(_=>{_.type==="Line"?(n.beforeLineComment||n.afterLineComment)&&L(_,{after:n.afterLineComment,before:n.beforeLineComment}):_.type==="Block"?(n.beforeBlockComment||n.afterBlockComment)&&L(_,{after:n.afterBlockComment,before:n.beforeBlockComment}):_.type==="Shebang"&&n.afterHashbangComment&&L(_,{after:n.afterHashbangComment,before:!1})})}}}},a0}var o0,YD;function hV(){if(YD)return o0;YD=1;let r=De();return o0={meta:{type:"layout",docs:{description:"Require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||"always",n=typeof s=="string"?s:s.before,i=typeof s=="string"?s:s.after;function a(p){let h=t.getTokenBefore(p,{includeComments:!0}),f=h?h.loc.end.line:0;return p.loc.start.line-f>=2}function l(p){let h=t.getLastToken(p),f=t.getTokenBefore(h);return r.isSemicolonToken(h)&&h.loc.start.line>f.loc.end.line?f:h}function o(p){let h=l(p);return t.getTokenAfter(h,{includeComments:!0}).loc.start.line-h.loc.end.line>=2}function u(p,h,f){e.report({node:p,messageId:f?"expected":"unexpected",data:{value:p.expression.value,location:h},fix(d){let m=l(p);return f?h==="before"?d.insertTextBefore(p,` +`,u=t.getText(),c=r.createGlobalLinebreakMatcher(),p,h=0;for(;(p=c.exec(u))!==null;){if(h++,p[0]===o)continue;let f=p.index,d=[f,f+p[0].length];e.report({node:i,loc:{start:{line:h,column:t.lines[h-1].length},end:{line:h+1,column:0}},messageId:l?"expectedLF":"expectedCRLF",fix:s(d,o)})}}}}},n0}var s0,zD;function cV(){if(zD)return s0;zD=1;let r=Pe();function e(s){return s.map((i,a)=>({code:i.trim(),num:a+1})).filter(i=>!i.code).map(i=>i.num)}function t(s){let n=[];return s.forEach(i=>{let a=i.loc.start.line,l=i.loc.end.line;n.push(a,l)}),n}return s0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/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"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(s){let n=Object.assign({},s.options[0]),i=n.ignorePattern,a=r.COMMENTS_IGNORE_PATTERN,l=new RegExp(i,"u"),o=n.applyDefaultIgnorePatterns!==!1;n.beforeBlockComment=typeof n.beforeBlockComment<"u"?n.beforeBlockComment:!0;let u=s.sourceCode,c=u.lines,p=c.length+1,h=u.getAllComments(),f=t(h),d=e(c),m=new Set(f.concat(d));function g(T){let F=T;do F=u.getTokenBefore(F,{includeComments:!0});while(F&&r.isCommentToken(F));if(F&&r.isTokenOnSameLine(F,T))return!0;F=T;do F=u.getTokenAfter(F,{includeComments:!0});while(F&&r.isCommentToken(F));return!!(F&&r.isTokenOnSameLine(T,F))}function y(T,F){return T.type===F||T.body&&T.body.type===F||T.consequent&&T.consequent.type===F}function b(T){let F=u.getNodeByRangeIndex(T.range[0]);if(F&&F.type==="StaticBlock"){let j=u.getFirstToken(F,{skip:1});return T.range[0]>=j.range[0]?F:null}return F}function v(T,F){let j=b(T);if(j&&y(j,F)){let Q=j;return j.type==="StaticBlock"?Q=u.getFirstToken(j,{skip:1}):j.type==="SwitchStatement"&&(Q=u.getTokenAfter(j.discriminant,{filter:r.isOpeningBraceToken})),T.loc.start.line-Q.loc.start.line===1}return!1}function S(T,F){let j=b(T);return!!j&&y(j,F)&&j.loc.end.line-T.loc.end.line===1}function C(T){return v(T,"ClassBody")||v(T,"BlockStatement")||v(T,"StaticBlock")||v(T,"SwitchCase")||v(T,"SwitchStatement")}function O(T){return S(T,"ClassBody")||S(T,"BlockStatement")||S(T,"StaticBlock")||S(T,"SwitchCase")||S(T,"SwitchStatement")}function w(T){return v(T,"ClassBody")}function E(T){return S(T,"ClassBody")}function k(T){return v(T,"ObjectExpression")||v(T,"ObjectPattern")}function A(T){return S(T,"ObjectExpression")||S(T,"ObjectPattern")}function D(T){return v(T,"ArrayExpression")||v(T,"ArrayPattern")}function _(T){return S(T,"ArrayExpression")||S(T,"ArrayPattern")}function B(T,F){if(o&&a.test(T.value)||i&&l.test(T.value))return;let j=F.after,Q=F.before,I=T.loc.start.line-1,N=T.loc.end.line+1,R=g(T),U=n.allowBlockStart&&C(T)&&!(n.allowClassStart===!1&&w(T)),V=n.allowBlockEnd&&O(T)&&!(n.allowClassEnd===!1&&E(T)),ae=n.allowClassStart&&w(T),se=n.allowClassEnd&&E(T),ve=n.allowObjectStart&&k(T),H=n.allowObjectEnd&&A(T),he=n.allowArrayStart&&D(T),$=n.allowArrayEnd&&_(T),pe=U||ae||ve||he,K=V||se||H||$;if(I<1&&(Q=!1),N>=p&&(j=!1),R)return;let le=u.getTokenBefore(T,{includeComments:!0}),xe=u.getTokenAfter(T,{includeComments:!0});if(!pe&&Q&&!m.has(I)&&!(r.isCommentToken(le)&&r.isTokenOnSameLine(le,T))){let Le=T.range[0]-T.loc.start.column,qe=[Le,Le];s.report({node:T,messageId:"before",fix(rt){return rt.insertTextBeforeRange(qe,` +`)}})}!K&&j&&!m.has(N)&&!(r.isCommentToken(xe)&&r.isTokenOnSameLine(T,xe))&&s.report({node:T,messageId:"after",fix(Le){return Le.insertTextAfter(T,` +`)}})}return{Program(){h.forEach(T=>{T.type==="Line"?(n.beforeLineComment||n.afterLineComment)&&B(T,{after:n.afterLineComment,before:n.beforeLineComment}):T.type==="Block"?(n.beforeBlockComment||n.afterBlockComment)&&B(T,{after:n.afterBlockComment,before:n.beforeBlockComment}):T.type==="Shebang"&&n.afterHashbangComment&&B(T,{after:n.afterHashbangComment,before:!1})})}}}},s0}var i0,XD;function fV(){if(XD)return i0;XD=1;let r=Pe();return i0={meta:{type:"layout",docs:{description:"Require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||"always",n=typeof s=="string"?s:s.before,i=typeof s=="string"?s:s.after;function a(p){let h=t.getTokenBefore(p,{includeComments:!0}),f=h?h.loc.end.line:0;return p.loc.start.line-f>=2}function l(p){let h=t.getLastToken(p),f=t.getTokenBefore(h);return r.isSemicolonToken(h)&&h.loc.start.line>f.loc.end.line?f:h}function o(p){let h=l(p);return t.getTokenAfter(h,{includeComments:!0}).loc.start.line-h.loc.end.line>=2}function u(p,h,f){e.report({node:p,messageId:f?"expected":"unexpected",data:{value:p.expression.value,location:h},fix(d){let m=l(p);return f?h==="before"?d.insertTextBefore(p,` `):d.insertTextAfter(m,` -`):d.removeRange(h==="before"?[p.range[0]-1,p.range[0]]:[m.range[1],m.range[1]+1])}})}function c(p){let h=r.getDirectivePrologue(p);if(!h.length)return;let f=h[0],d=t.getCommentsBefore(f);d.length?(n==="always"&&!a(f)&&u(f,"before",!0),n==="never"&&a(f)&&u(f,"before",!1)):p.type==="Program"&&n==="never"&&!d.length&&a(f)&&u(f,"before",!1);let m=h.at(-1),g=p.type==="Program"?p.body:p.body.body;m===g.at(-1)&&!m.trailingComments||(i==="always"&&!o(m)&&u(m,"after",!0),i==="never"&&o(m)&&u(m,"after",!1))}return{Program:c,FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c}}},o0}var l0,HD;function dV(){if(HD)return l0;HD=1;let r=De(),e={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};return l0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-between-class-members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{enum:["always","never"]},prev:{enum:["method","field","*"]},next:{enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{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 s=[];s[0]=t.options[0]||"always",s[1]=t.options[1]||{exceptAfterSingleLine:!1};let n=typeof s[0]=="object"?s[0].enforce:[{blankLine:s[0],prev:"*",next:"*"}],i=t.sourceCode;function a(h,f){let d=i.getLastToken(h),m=i.getTokenBefore(d),g=i.getFirstToken(f);return r.isSemicolonToken(d)&&!r.isTokenOnSameLine(m,d)&&r.isTokenOnSameLine(d,g)?{curLast:m,nextFirst:d}:{curLast:d,nextFirst:g}}function l(h,f,d){let m=i.getTokenAfter(h,{includeComments:!0});return m!==f&&m.loc.start.line-h.loc.end.line<=d?l(m,f,d):h}function o(h,f,d){let m=i.getTokenBefore(h,{includeComments:!0});return m!==f&&h.loc.start.line-m.loc.end.line<=d?o(m,f,d):h}function u(h,f){return i.getTokensBetween(h,f,{includeComments:!0}).length!==0}function c(h,f){return e[f].test(h)}function p(h,f){for(let d=n.length-1;d>=0;--d){let m=n[d];if(c(h,m.prev)&&c(f,m.next))return m.blankLine}return null}return{ClassBody(h){let f=h.body;for(let d=0;d1,A=u(C,k),w=l(g,b,0),P=p(f[d],f[d+1]);P==="never"&&E?t.report({node:f[d+1],messageId:"never",fix(T){return A?null:T.replaceTextRange([C.range[1],k.range[0]],` -`)}}):P==="always"&&!S&&!E&&t.report({node:f[d+1],messageId:"always",fix(T){return A?null:T.insertTextAfter(w,` -`)}})}}}}},l0}var u0,KD;function mV(){if(KD)return u0;KD=1;let r=De(),e=new Set(["Identifier","Super","ThisExpression"]);function t(p,h){return p.type==="Identifier"&&p.name==="undefined"?r.isReferenceToGlobalVariable(h,p):p.type==="UnaryExpression"&&p.operator==="void"&&p.argument.type==="Literal"&&p.argument.value===0}function s(p){return p.type==="Identifier"&&p.name!=="undefined"||p.type==="MemberExpression"}function n(p,h){if(p.type!=="BinaryExpression"||p.operator!=="==")return!1;let f=s(p.left)?"left":"right",d=f==="left"?"right":"left";return s(p[f])&&(r.isNullLiteral(p[d])||t(p[d],h))}function i(p){return p.type==="LogicalExpression"&&p.operator==="||"&&p.left.type==="BinaryExpression"&&p.left.operator==="==="&&p.right.type==="BinaryExpression"&&p.right.operator==="==="}function a(p,h){if(!i(p))return!1;let f=s(p.left.left)?"left":"right",d=f==="left"?"right":"left",m=s(p.right.left)?"left":"right",g=m==="left"?"right":"left";return r.isSameReference(p.left[f],p.right[m])&&(r.isNullLiteral(p.left[d])&&t(p.right[g],h)||t(p.left[d],h)&&r.isNullLiteral(p.right[g]))}function l(p,h){return p.type==="CallExpression"&&p.callee.name==="Boolean"&&p.arguments.length===1&&r.isReferenceToGlobalVariable(h,p.callee)}function o(p,h){let f=p.type==="UnaryExpression"&&p.operator==="!",d=f?p.argument:p;switch(!0){case s(d):return{reference:d,operator:f?"||":"&&"};case(d.type==="UnaryExpression"&&d.operator==="!"&&s(d.argument)):return{reference:d.argument,operator:"&&"};case(l(d,h)&&s(d.arguments[0])):return{reference:d.arguments[0],operator:f?"||":"&&"};case n(p,h):return{reference:s(p.left)?p.left:p.right,operator:"??"};case a(p,h):return{reference:s(p.left.left)?p.left.left:p.left.right,operator:"??"};default:return null}}function u(p){return p.type==="Program"?!1:p.parent.type==="WithStatement"&&p.parent.body===p?!0:u(p.parent)}function c(p,h){let f=h.left;for(;f.type==="LogicalExpression"&&f.operator===h.operator;){if(r.isParenthesised(p,f))return f;f=f.left}return f}return u0={meta:{type:"suggestion",docs:{description:"Require or disallow logical assignment operator shorthand",recommended:!1,url:"https://eslint.org/docs/latest/rules/logical-assignment-operators"},schema:{type:"array",oneOf:[{items:[{const:"always"},{type:"object",properties:{enforceForIfStatements:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:"never"}],minItems:1,maxItems:1}]},fixable:"code",hasSuggestions:!0,messages:{assignment:"Assignment (=) can be replaced with operator assignment ({{operator}}).",useLogicalOperator:"Convert this assignment to use the operator {{ operator }}.",logical:"Logical expression can be replaced with an assignment ({{ operator }}).",convertLogical:"Replace this logical expression with an assignment with the operator {{ operator }}.",if:"'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.",convertIf:"Replace this 'if' statement with a logical assignment with operator {{ operator }}.",unexpected:"Unexpected logical operator assignment ({{operator}}) shorthand.",separate:"Separate the logical assignment into an assignment with a logical operator."}},create(p){let h=p.options[0]==="never"?"never":"always",f=h==="always"&&p.options.length>1&&p.options[1].enforceForIfStatements,d=p.sourceCode,m=d.getScope(d.ast).isStrict;function g(C){return C.type==="Identifier"&&(m||!u(C))}function b(C){return!m&&u(C)?C.type==="Identifier":C.type==="MemberExpression"&&e.has(C.object.type)&&(!C.computed||C.property.type!=="MemberExpression"&&C.property.type!=="ChainExpression")}function O(C,k,E){return E?{...C,fix:k.fix}:{...C,suggest:[k]}}function S(C){return d.getFirstTokenBetween(C.left,C.right,k=>k.value===C.operator)}return h==="never"?{AssignmentExpression(C){if(!r.isLogicalAssignmentOperator(C.operator))return;let k={messageId:"unexpected",node:C,data:{operator:C.operator}},E={messageId:"separate",*fix(A){if(d.getCommentsInside(C).length>0)return;let w=S(C);yield A.replaceText(w,"=");let P=d.getText(C.left),T=C.operator.slice(0,-1);yield A.insertTextAfter(w,` ${P} ${T}`);let I=r.getPrecedence(C.right)<=r.getPrecedence({type:"LogicalExpression",operator:T}),F=C.operator==="??="&&r.isLogicalExpression(C.right);!r.isParenthesised(d,C.right)&&(I||F)&&(yield A.insertTextBefore(C.right,"("),yield A.insertTextAfter(C.right,")"))}};p.report(O(k,E,g(C.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(C){let k=c(d,C.right);if(!r.isSameReference(C.left,k))return;let E={messageId:"assignment",node:C,data:{operator:`${C.right.operator}=`}},A={messageId:"useLogicalOperator",data:{operator:`${C.right.operator}=`},*fix(w){if(d.getCommentsInside(C).length>0)return;let P=S(C);yield w.insertTextBefore(P,C.right.operator);let T=S(k.parent),I=d.getTokenAfter(T);yield w.removeRange([k.parent.range[0],I.range[0]])}};p.report(O(E,A,g(C.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(C){if(s(C.left)&&r.isSameReference(C.left,C.right.left)){let k={messageId:"logical",node:C,data:{operator:`${C.operator}=`}},E={messageId:"convertLogical",data:{operator:`${C.operator}=`},*fix(w){if(d.getCommentsInside(C).length>0)return;let P=r.getPrecedence(C.parent),T=C.parent.type!=="ExpressionStatement"&&(P===-1||r.getPrecedence({type:"AssignmentExpression"})0)return;let L=d.getFirstToken(E),_=d.getTokenBefore(C);if(_!==null&&_.value!==";"&&_.value!=="{"&&L.type!=="Identifier"&&L.type!=="Keyword")return;let B=S(E.expression);yield F.insertTextBefore(B,w.operator),yield F.removeRange([C.range[0],E.range[0]]),yield F.removeRange([E.range[1],C.range[1]]);let Q=d.getTokenAfter(E.expression);k&&Q!==null&&Q.value!==";"&&(yield F.insertTextAfter(C,";"))}},I=g(w.reference)||C.test.type!=="LogicalExpression"&&b(w.reference);p.report(O(P,T,I))}}}}},u0}var c0,JD;function gV(){return JD||(JD=1,c0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let[e={}]=r.options,[t,s]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1],n=0;return{Program(){n=0},"Program:exit"(i){n>s&&r.report({node:i,messageId:"maximumExceeded",data:{classCount:n,max:s}})},ClassDeclaration(){n++},ClassExpression(){t||n++}}}}),c0}var f0,e_;function yV(){return e_||(e_=1,f0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=[],t=r.options[0],s=4;typeof t=="object"&&(Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(s=t.maximum||t.max),typeof t=="number"&&(s=t);function n(){e.push(0)}function i(){e.pop()}function a(o){let u=++e[e.length-1];u>s&&r.report({node:o,messageId:"tooDeeply",data:{depth:u,maxDepth:s}})}function l(){e[e.length-1]--}return{Program:n,FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n,StaticBlock:n,IfStatement(o){o.parent.type!=="IfStatement"&&a(o)},SwitchStatement:a,TryStatement:a,DoWhileStatement:a,WhileStatement:a,WithStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,"IfStatement:exit":l,"SwitchStatement:exit":l,"TryStatement:exit":l,"DoWhileStatement:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ForStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit":i}}}),f0}var p0,t_;function xV(){if(t_)return p0;t_=1;let r={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},e={anyOf:[r,{type:"integer",minimum:0}]};return p0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-len"},schema:[e,e,r],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 s=/[^:/?#]:\/\/[^?#]/u,n=t.sourceCode;function i(F,L){let _=0;return F.replace(/\t/gu,(B,Q)=>{let V=Q+_,R=L?V%L:0,$=L-R;_+=$-1}),Array.from(F).length+_}let a=Object.assign({},t.options.at(-1));typeof t.options[0]=="number"&&(a.code=t.options[0]),typeof t.options[1]=="number"&&(a.tabWidth=t.options[1]);let l=typeof a.code=="number"?a.code:80,o=typeof a.tabWidth=="number"?a.tabWidth:4,u=!!a.ignoreComments,c=!!a.ignoreStrings,p=!!a.ignoreTemplateLiterals,h=!!a.ignoreRegExpLiterals,f=!!a.ignoreTrailingComments||!!a.ignoreComments,d=!!a.ignoreUrls,m=a.comments,g=a.ignorePattern||null;g&&(g=new RegExp(g,"u"));function b(F,L,_){return _&&_.loc.start.line===L&&L<=_.loc.end.line&&(_.loc.end.line>L||_.loc.end.column===F.length)}function O(F,L,_){let B=_.loc.start,Q=_.loc.end,V=!F.slice(0,_.loc.start.column).trim();return _&&(B.lineL||Q.line===L&&Q.column===F.length)}function S(F){if(!F||!F.parent||F.type!=="JSXEmptyExpression"||F.parent.type!=="JSXExpressionContainer")return!1;let L=F.parent;return L.loc.start.line===L.loc.end.line}function C(F,L){return F.slice(0,L.loc.start.column).replace(/\s+$/u,"")}function k(F,L,_){Array.isArray(F[L])||(F[L]=[]),F[L].push(_)}function E(){return n.ast.tokens.filter(F=>F.type==="String"||F.type==="JSXText"&&n.getNodeByRangeIndex(F.range[0]-1).type==="JSXAttribute")}function A(){return n.ast.tokens.filter(F=>F.type==="Template")}function w(){return n.ast.tokens.filter(F=>F.type==="RegularExpression")}function P(F){let L={};for(let _=0;_{let _=n.getNodeByRangeIndex(L.range[0]);S(_)?F.at(-1)!==_.parent&&F.push(_.parent):F.push(L)}),F}function I(F){let L=n.lines,_=u||m||f?T():[],B=0,Q=E(),V=P(Q),R=A(),$=P(R),N=w(),W=P(N);L.forEach((Z,le)=>{let ae=le+1,Se=!1,J;if(B<_.length){let ee;do ee=_[++B];while(ee&&ee.loc.start.line<=ae);if(ee=_[--B],O(Z,ae,ee))Se=!0,J=Z;else if(f&&b(Z,ae,ee)){J=C(Z,ee);let ce=B;for(;b(J,ae,_[--ce]);)J=C(J,_[ce])}else J=Z}else J=Z;if(g&&g.test(J)||d&&s.test(J)||c&&V[ae]||p&&$[ae]||h&&W[ae])return;let me=i(J,o),j=Se&&m;if(Se&&u)return;let de={start:{line:ae,column:0},end:{line:ae,column:J.length}};j?me>m&&t.report({node:F,loc:de,messageId:"maxComment",data:{lineLength:me,maxCommentLength:m}}):me>l&&t.report({node:F,loc:de,messageId:"max",data:{lineLength:me,maxLength:l}})})}return{Program:I}}},p0}var h0,r_;function bV(){if(r_)return h0;r_=1;let r=De();function e(t,s){return[...Array(s-t).keys()].map(n=>n+t)}return h0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=300;typeof s=="object"&&Object.hasOwn(s,"max")?n=s.max:typeof s=="number"&&(n=s);let i=s&&s.skipComments,a=s&&s.skipBlankLines,l=t.sourceCode;function o(c){return c&&(c.type==="Block"||c.type==="Line")}function u(c){let p=c.loc.start.line,h=c.loc.end.line,f;f=c;do f=l.getTokenBefore(f,{includeComments:!0});while(o(f));f&&r.isTokenOnSameLine(f,c)&&(p+=1),f=c;do f=l.getTokenAfter(f,{includeComments:!0});while(o(f));return f&&r.isTokenOnSameLine(c,f)&&(h-=1),p<=h?e(p,h+1):[]}return{"Program:exit"(){let c=l.lines.map((p,h)=>({lineNumber:h+1,text:p}));if(c.length>1&&c.at(-1).text===""&&c.pop(),a&&(c=c.filter(p=>p.text.trim()!=="")),i){let p=l.getAllComments(),h=new Set(p.flatMap(u));c=c.filter(f=>!h.has(f.lineNumber))}if(c.length>n){let p={start:{line:c[n].lineNumber,column:0},end:{line:l.lines.length,column:l.lines.at(-1).length}};t.report({loc:p,messageId:"exceed",data:{max:n,actual:c.length}})}}}}},h0}var d0,n_;function vV(){if(n_)return d0;n_=1;let r=De(),{upperCaseFirst:e}=Si(),s={oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]};function n(i){let a=new Map;return i.forEach(l=>{for(let o=l.loc.start.line;o<=l.loc.end.line;o++)a.set(o,l)}),a}return d0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines-per-function"},schema:[s],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(i){let a=i.sourceCode,l=a.lines,o=i.options[0],u=50,c=!1,p=!1,h=!1;typeof o=="object"?(u=typeof o.max=="number"?o.max:50,c=!!o.skipComments,p=!!o.skipBlankLines,h=!!o.IIFEs):typeof o=="number"&&(u=o);let f=n(a.getAllComments());function d(O,S,C){let k=C.loc.start,E=C.loc.end,A=k.line===S&&!O.slice(0,k.column).trim(),w=E.line===S&&!O.slice(E.column).trim();return C&&(k.lineS||w)}function m(O){return(O.type==="FunctionExpression"||O.type==="ArrowFunctionExpression")&&O.parent&&O.parent.type==="CallExpression"&&O.parent.callee===O}function g(O){return!O.parent||O!==O.parent.value?!1:O.parent.type==="MethodDefinition"?!0:O.parent.type==="Property"?O.parent.method===!0||O.parent.kind==="get"||O.parent.kind==="set":!1}function b(O){let S=g(O)?O.parent:O;if(!h&&m(S))return;let C=0;for(let k=S.loc.start.line-1;ku){let k=e(r.getFunctionNameWithKind(O));i.report({node:S,messageId:"exceed",data:{name:k,lineCount:C,maxLines:u}})}}return{FunctionDeclaration:b,FunctionExpression:b,ArrowFunctionExpression:b}}},d0}var m0,s_;function OV(){return s_||(s_=1,m0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=10;typeof e=="object"&&(Object.hasOwn(e,"maximum")||Object.hasOwn(e,"max"))?t=e.maximum||e.max:typeof e=="number"&&(t=e);let s=[];function n(a){if(a.parent.type==="CallExpression"&&s.push(a),s.length>t){let o={num:s.length,max:t};r.report({node:a,messageId:"exceed",data:o})}}function i(){s.pop()}return{ArrowFunctionExpression:n,"ArrowFunctionExpression:exit":i,FunctionExpression:n,"FunctionExpression:exit":i}}}),m0}var g0,i_;function SV(){if(i_)return g0;i_=1;let r=De(),{upperCaseFirst:e}=Si();return g0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.sourceCode,n=t.options[0],i=3;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))&&(i=n.maximum||n.max),typeof n=="number"&&(i=n);function a(l){l.params.length>i&&t.report({loc:r.getFunctionHeadLoc(l,s),node:l,messageId:"exceed",data:{name:e(r.getFunctionNameWithKind(l)),count:l.params.length,max:i}})}return{FunctionDeclaration:a,ArrowFunctionExpression:a,FunctionExpression:a}}},g0}var y0,a_;function EV(){if(a_)return y0;a_=1;let r=De(),{upperCaseFirst:e}=Si();return y0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/latest/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 s=[],n=t.options[0],i=t.options[1]&&t.options[1].ignoreTopLevelFunctions||!1,a=[],l=10;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))?l=n.maximum||n.max:typeof n=="number"&&(l=n);function o(h,f,d){if(f>d){let m=e(r.getFunctionNameWithKind(h));t.report({node:h,messageId:"exceed",data:{name:m,count:f,max:d}})}}function u(){s.push(0)}function c(h){let f=s.pop();h.type!=="StaticBlock"&&(i&&s.length===0?a.push({node:h,count:f}):o(h,f,l))}function p(h){s[s.length-1]+=h.body.length}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u,StaticBlock:u,BlockStatement:p,"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c,"StaticBlock:exit":c,"Program:exit"(){a.length!==1&&a.forEach(h=>{let f=h.count,d=h.node;o(d,f,l)})}}}},y0}var x0,o_;function CV(){if(o_)return x0;o_=1;let r=De();return x0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||{},n=typeof s.max<"u"?s.max:1,i=0,a=0,l,o=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function u(){l&&e.report({node:l,messageId:"exceed",data:{numberOfStatementsOnThisLine:a,maxStatementsPerLine:n,statements:a===1?"statement":"statements"}}),l=null}function c(f){return t.getLastToken(f,r.isNotSemicolonToken)}function p(f){let d=f.loc.start.line;o.test(f.parent.type)&&f.parent.alternate!==f||(d===i?a+=1:(u(),a=1,i=d),a===n+1&&(l=l||f))}function h(f){let d=c(f).loc.end.line;d!==i&&(u(),a=1,i=d)}return{BreakStatement:p,ClassDeclaration:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,ExpressionStatement:p,ForInStatement:p,ForOfStatement:p,ForStatement:p,FunctionDeclaration:p,IfStatement:p,ImportDeclaration:p,LabeledStatement:p,ReturnStatement:p,SwitchStatement:p,ThrowStatement:p,TryStatement:p,VariableDeclaration:p,WhileStatement:p,WithStatement:p,ExportNamedDeclaration:p,ExportDefaultDeclaration:p,ExportAllDeclaration:p,"BreakStatement:exit":h,"ClassDeclaration:exit":h,"ContinueStatement:exit":h,"DebuggerStatement:exit":h,"DoWhileStatement:exit":h,"ExpressionStatement:exit":h,"ForInStatement:exit":h,"ForOfStatement:exit":h,"ForStatement:exit":h,"FunctionDeclaration:exit":h,"IfStatement:exit":h,"ImportDeclaration:exit":h,"LabeledStatement:exit":h,"ReturnStatement:exit":h,"SwitchStatement:exit":h,"ThrowStatement:exit":h,"TryStatement:exit":h,"VariableDeclaration:exit":h,"WhileStatement:exit":h,"WithStatement:exit":h,"ExportNamedDeclaration:exit":h,"ExportDefaultDeclaration:exit":h,"ExportAllDeclaration:exit":h,"Program:exit":u}}},x0}var b0,l_;function wV(){if(l_)return b0;l_=1;let r=De();return b0={meta:{type:"suggestion",docs:{description:"Enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-comment-style"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"]}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"]},{type:"object",properties:{checkJSDoc:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},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(e){let t=e.sourceCode,s=e.options[0]||"starred-block",i=!!(e.options[1]||{}).checkJSDoc;function a(O){return/^\s*\*/u.test(O)}function l([O]){if(O.type!=="Block")return!1;let S=O.value.split(r.LINEBREAK_MATCHER);return S.length>0&&S.every((C,k)=>(k===0||k===S.length-1?/^\s*$/u:/^\s*\*/u).test(C))}function o([O]){if(O.type!=="Block")return!1;let S=O.value.split(r.LINEBREAK_MATCHER);return/^\*\s*$/u.test(S[0])&&S.slice(1,-1).every(C=>/^\s* /u.test(C))&&/^\s*$/u.test(S.at(-1))}function u(O){let S=O.map(({value:C})=>C).filter(C=>C.trim().length).every(C=>C.startsWith(" "));return O.map(({value:C})=>S?C.replace(/^ /u,""):C)}function c(O){let S=O.value.split(r.LINEBREAK_MATCHER).filter((k,E,A)=>!(E===0||E===A.length-1)).map(k=>k.replace(/^\s*$/u,"")),C=S.map(k=>k.replace(/\s*\*/u,"")).filter(k=>k.trim().length).every(k=>k.startsWith(" "));return S.map(k=>k.replace(C?/\s*\* ?/u:/\s*\*/u,""))}function p(O){let S=O.value.split(r.LINEBREAK_MATCHER).map(E=>E.replace(/^\s*$/u,"")),C=`${t.text.slice(O.range[0]-O.loc.start.column,O.range[0])} `,k="";for(let[E,A]of S.entries()){if(!A.trim().length||E===0)continue;let[,w]=A.match(/^(\s*\*?\s*)/u);if(w.lengthk.length&&(k=P)}}return S.map(E=>{let A=E.match(/^(\s*\*?\s*)(.*)/u),[,w,P]=A;return w.length>C.length?`${w.slice(C.length-(k.length+w.length))}${P}`:w.length`${C} * ${k}`).join(` +`):d.removeRange(h==="before"?[p.range[0]-1,p.range[0]]:[m.range[1],m.range[1]+1])}})}function c(p){let h=r.getDirectivePrologue(p);if(!h.length)return;let f=h[0],d=t.getCommentsBefore(f);d.length?(n==="always"&&!a(f)&&u(f,"before",!0),n==="never"&&a(f)&&u(f,"before",!1)):p.type==="Program"&&n==="never"&&!d.length&&a(f)&&u(f,"before",!1);let m=h.at(-1),g=p.type==="Program"?p.body:p.body.body;m===g.at(-1)&&!m.trailingComments||(i==="always"&&!o(m)&&u(m,"after",!0),i==="never"&&o(m)&&u(m,"after",!1))}return{Program:c,FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c}}},i0}var a0,GD;function pV(){if(GD)return a0;GD=1;let r=Pe(),e={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};return a0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-between-class-members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{enum:["always","never"]},prev:{enum:["method","field","*"]},next:{enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{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 s=[];s[0]=t.options[0]||"always",s[1]=t.options[1]||{exceptAfterSingleLine:!1};let n=typeof s[0]=="object"?s[0].enforce:[{blankLine:s[0],prev:"*",next:"*"}],i=t.sourceCode;function a(h,f){let d=i.getLastToken(h),m=i.getTokenBefore(d),g=i.getFirstToken(f);return r.isSemicolonToken(d)&&!r.isTokenOnSameLine(m,d)&&r.isTokenOnSameLine(d,g)?{curLast:m,nextFirst:d}:{curLast:d,nextFirst:g}}function l(h,f,d){let m=i.getTokenAfter(h,{includeComments:!0});return m!==f&&m.loc.start.line-h.loc.end.line<=d?l(m,f,d):h}function o(h,f,d){let m=i.getTokenBefore(h,{includeComments:!0});return m!==f&&h.loc.start.line-m.loc.end.line<=d?o(m,f,d):h}function u(h,f){return i.getTokensBetween(h,f,{includeComments:!0}).length!==0}function c(h,f){return e[f].test(h)}function p(h,f){for(let d=n.length-1;d>=0;--d){let m=n[d];if(c(h,m.prev)&&c(f,m.next))return m.blankLine}return null}return{ClassBody(h){let f=h.body;for(let d=0;d1,w=u(S,C),E=l(g,y,0),k=p(f[d],f[d+1]);k==="never"&&O?t.report({node:f[d+1],messageId:"never",fix(A){return w?null:A.replaceTextRange([S.range[1],C.range[0]],` +`)}}):k==="always"&&!v&&!O&&t.report({node:f[d+1],messageId:"always",fix(A){return w?null:A.insertTextAfter(E,` +`)}})}}}}},a0}var o0,YD;function hV(){if(YD)return o0;YD=1;let r=Pe(),e=new Set(["Identifier","Super","ThisExpression"]);function t(p,h){return p.type==="Identifier"&&p.name==="undefined"?r.isReferenceToGlobalVariable(h,p):p.type==="UnaryExpression"&&p.operator==="void"&&p.argument.type==="Literal"&&p.argument.value===0}function s(p){return p.type==="Identifier"&&p.name!=="undefined"||p.type==="MemberExpression"}function n(p,h){if(p.type!=="BinaryExpression"||p.operator!=="==")return!1;let f=s(p.left)?"left":"right",d=f==="left"?"right":"left";return s(p[f])&&(r.isNullLiteral(p[d])||t(p[d],h))}function i(p){return p.type==="LogicalExpression"&&p.operator==="||"&&p.left.type==="BinaryExpression"&&p.left.operator==="==="&&p.right.type==="BinaryExpression"&&p.right.operator==="==="}function a(p,h){if(!i(p))return!1;let f=s(p.left.left)?"left":"right",d=f==="left"?"right":"left",m=s(p.right.left)?"left":"right",g=m==="left"?"right":"left";return r.isSameReference(p.left[f],p.right[m])&&(r.isNullLiteral(p.left[d])&&t(p.right[g],h)||t(p.left[d],h)&&r.isNullLiteral(p.right[g]))}function l(p,h){return p.type==="CallExpression"&&p.callee.name==="Boolean"&&p.arguments.length===1&&r.isReferenceToGlobalVariable(h,p.callee)}function o(p,h){let f=p.type==="UnaryExpression"&&p.operator==="!",d=f?p.argument:p;switch(!0){case s(d):return{reference:d,operator:f?"||":"&&"};case(d.type==="UnaryExpression"&&d.operator==="!"&&s(d.argument)):return{reference:d.argument,operator:"&&"};case(l(d,h)&&s(d.arguments[0])):return{reference:d.arguments[0],operator:f?"||":"&&"};case n(p,h):return{reference:s(p.left)?p.left:p.right,operator:"??"};case a(p,h):return{reference:s(p.left.left)?p.left.left:p.left.right,operator:"??"};default:return null}}function u(p){return p.type==="Program"?!1:p.parent.type==="WithStatement"&&p.parent.body===p?!0:u(p.parent)}function c(p,h){let f=h.left;for(;f.type==="LogicalExpression"&&f.operator===h.operator;){if(r.isParenthesised(p,f))return f;f=f.left}return f}return o0={meta:{type:"suggestion",docs:{description:"Require or disallow logical assignment operator shorthand",recommended:!1,url:"https://eslint.org/docs/latest/rules/logical-assignment-operators"},schema:{type:"array",oneOf:[{items:[{const:"always"},{type:"object",properties:{enforceForIfStatements:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:"never"}],minItems:1,maxItems:1}]},fixable:"code",hasSuggestions:!0,messages:{assignment:"Assignment (=) can be replaced with operator assignment ({{operator}}).",useLogicalOperator:"Convert this assignment to use the operator {{ operator }}.",logical:"Logical expression can be replaced with an assignment ({{ operator }}).",convertLogical:"Replace this logical expression with an assignment with the operator {{ operator }}.",if:"'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.",convertIf:"Replace this 'if' statement with a logical assignment with operator {{ operator }}.",unexpected:"Unexpected logical operator assignment ({{operator}}) shorthand.",separate:"Separate the logical assignment into an assignment with a logical operator."}},create(p){let h=p.options[0]==="never"?"never":"always",f=h==="always"&&p.options.length>1&&p.options[1].enforceForIfStatements,d=p.sourceCode,m=d.getScope(d.ast).isStrict;function g(S){return S.type==="Identifier"&&(m||!u(S))}function y(S){return!m&&u(S)?S.type==="Identifier":S.type==="MemberExpression"&&e.has(S.object.type)&&(!S.computed||S.property.type!=="MemberExpression"&&S.property.type!=="ChainExpression")}function b(S,C,O){return O?{...S,fix:C.fix}:{...S,suggest:[C]}}function v(S){return d.getFirstTokenBetween(S.left,S.right,C=>C.value===S.operator)}return h==="never"?{AssignmentExpression(S){if(!r.isLogicalAssignmentOperator(S.operator))return;let C={messageId:"unexpected",node:S,data:{operator:S.operator}},O={messageId:"separate",*fix(w){if(d.getCommentsInside(S).length>0)return;let E=v(S);yield w.replaceText(E,"=");let k=d.getText(S.left),A=S.operator.slice(0,-1);yield w.insertTextAfter(E,` ${k} ${A}`);let D=r.getPrecedence(S.right)<=r.getPrecedence({type:"LogicalExpression",operator:A}),_=S.operator==="??="&&r.isLogicalExpression(S.right);!r.isParenthesised(d,S.right)&&(D||_)&&(yield w.insertTextBefore(S.right,"("),yield w.insertTextAfter(S.right,")"))}};p.report(b(C,O,g(S.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(S){let C=c(d,S.right);if(!r.isSameReference(S.left,C))return;let O={messageId:"assignment",node:S,data:{operator:`${S.right.operator}=`}},w={messageId:"useLogicalOperator",data:{operator:`${S.right.operator}=`},*fix(E){if(d.getCommentsInside(S).length>0)return;let k=v(S);yield E.insertTextBefore(k,S.right.operator);let A=v(C.parent),D=d.getTokenAfter(A);yield E.removeRange([C.parent.range[0],D.range[0]])}};p.report(b(O,w,g(S.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(S){if(s(S.left)&&r.isSameReference(S.left,S.right.left)){let C={messageId:"logical",node:S,data:{operator:`${S.operator}=`}},O={messageId:"convertLogical",data:{operator:`${S.operator}=`},*fix(E){if(d.getCommentsInside(S).length>0)return;let k=r.getPrecedence(S.parent),A=S.parent.type!=="ExpressionStatement"&&(k===-1||r.getPrecedence({type:"AssignmentExpression"})0)return;let B=d.getFirstToken(O),T=d.getTokenBefore(S);if(T!==null&&T.value!==";"&&T.value!=="{"&&B.type!=="Identifier"&&B.type!=="Keyword")return;let F=v(O.expression);yield _.insertTextBefore(F,E.operator),yield _.removeRange([S.range[0],O.range[0]]),yield _.removeRange([O.range[1],S.range[1]]);let j=d.getTokenAfter(O.expression);C&&j!==null&&j.value!==";"&&(yield _.insertTextAfter(S,";"))}},D=g(E.reference)||S.test.type!=="LogicalExpression"&&y(E.reference);p.report(b(k,A,D))}}}}},o0}var l0,HD;function dV(){return HD||(HD=1,l0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let[e={}]=r.options,[t,s]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1],n=0;return{Program(){n=0},"Program:exit"(i){n>s&&r.report({node:i,messageId:"maximumExceeded",data:{classCount:n,max:s}})},ClassDeclaration(){n++},ClassExpression(){t||n++}}}}),l0}var u0,KD;function mV(){return KD||(KD=1,u0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=[],t=r.options[0],s=4;typeof t=="object"&&(Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(s=t.maximum||t.max),typeof t=="number"&&(s=t);function n(){e.push(0)}function i(){e.pop()}function a(o){let u=++e[e.length-1];u>s&&r.report({node:o,messageId:"tooDeeply",data:{depth:u,maxDepth:s}})}function l(){e[e.length-1]--}return{Program:n,FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n,StaticBlock:n,IfStatement(o){o.parent.type!=="IfStatement"&&a(o)},SwitchStatement:a,TryStatement:a,DoWhileStatement:a,WhileStatement:a,WithStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,"IfStatement:exit":l,"SwitchStatement:exit":l,"TryStatement:exit":l,"DoWhileStatement:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ForStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit":i}}}),u0}var c0,JD;function gV(){if(JD)return c0;JD=1;let r={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},e={anyOf:[r,{type:"integer",minimum:0}]};return c0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-len"},schema:[e,e,r],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 s=/[^:/?#]:\/\/[^?#]/u,n=t.sourceCode;function i(_,B){let T=0;return _.replace(/\t/gu,(F,j)=>{let Q=j+T,I=B?Q%B:0,N=B-I;T+=N-1}),Array.from(_).length+T}let a=Object.assign({},t.options.at(-1));typeof t.options[0]=="number"&&(a.code=t.options[0]),typeof t.options[1]=="number"&&(a.tabWidth=t.options[1]);let l=typeof a.code=="number"?a.code:80,o=typeof a.tabWidth=="number"?a.tabWidth:4,u=!!a.ignoreComments,c=!!a.ignoreStrings,p=!!a.ignoreTemplateLiterals,h=!!a.ignoreRegExpLiterals,f=!!a.ignoreTrailingComments||!!a.ignoreComments,d=!!a.ignoreUrls,m=a.comments,g=a.ignorePattern||null;g&&(g=new RegExp(g,"u"));function y(_,B,T){return T&&T.loc.start.line===B&&B<=T.loc.end.line&&(T.loc.end.line>B||T.loc.end.column===_.length)}function b(_,B,T){let F=T.loc.start,j=T.loc.end,Q=!_.slice(0,T.loc.start.column).trim();return T&&(F.lineB||j.line===B&&j.column===_.length)}function v(_){if(!_||!_.parent||_.type!=="JSXEmptyExpression"||_.parent.type!=="JSXExpressionContainer")return!1;let B=_.parent;return B.loc.start.line===B.loc.end.line}function S(_,B){return _.slice(0,B.loc.start.column).replace(/\s+$/u,"")}function C(_,B,T){Array.isArray(_[B])||(_[B]=[]),_[B].push(T)}function O(){return n.ast.tokens.filter(_=>_.type==="String"||_.type==="JSXText"&&n.getNodeByRangeIndex(_.range[0]-1).type==="JSXAttribute")}function w(){return n.ast.tokens.filter(_=>_.type==="Template")}function E(){return n.ast.tokens.filter(_=>_.type==="RegularExpression")}function k(_){let B={};for(let T=0;T<_.length;T++){let F=_[T];for(let j=F.loc.start.line;j<=F.loc.end.line;++j)C(B,j,F)}return B}function A(){let _=[];return n.getAllComments().forEach(B=>{let T=n.getNodeByRangeIndex(B.range[0]);v(T)?_.at(-1)!==T.parent&&_.push(T.parent):_.push(B)}),_}function D(_){let B=n.lines,T=u||m||f?A():[],F=0,j=O(),Q=k(j),I=w(),N=k(I),R=E(),U=k(R);B.forEach((V,ae)=>{let se=ae+1,ve=!1,H;if(Fm&&t.report({node:_,loc:pe,messageId:"maxComment",data:{lineLength:he,maxCommentLength:m}}):he>l&&t.report({node:_,loc:pe,messageId:"max",data:{lineLength:he,maxLength:l}})})}return{Program:D}}},c0}var f0,e_;function yV(){if(e_)return f0;e_=1;let r=Pe();function e(t,s){return[...Array(s-t).keys()].map(n=>n+t)}return f0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=300;typeof s=="object"&&Object.hasOwn(s,"max")?n=s.max:typeof s=="number"&&(n=s);let i=s&&s.skipComments,a=s&&s.skipBlankLines,l=t.sourceCode;function o(c){return c&&(c.type==="Block"||c.type==="Line")}function u(c){let p=c.loc.start.line,h=c.loc.end.line,f;f=c;do f=l.getTokenBefore(f,{includeComments:!0});while(o(f));f&&r.isTokenOnSameLine(f,c)&&(p+=1),f=c;do f=l.getTokenAfter(f,{includeComments:!0});while(o(f));return f&&r.isTokenOnSameLine(c,f)&&(h-=1),p<=h?e(p,h+1):[]}return{"Program:exit"(){let c=l.lines.map((p,h)=>({lineNumber:h+1,text:p}));if(c.length>1&&c.at(-1).text===""&&c.pop(),a&&(c=c.filter(p=>p.text.trim()!=="")),i){let p=l.getAllComments(),h=new Set(p.flatMap(u));c=c.filter(f=>!h.has(f.lineNumber))}if(c.length>n){let p={start:{line:c[n].lineNumber,column:0},end:{line:l.lines.length,column:l.lines.at(-1).length}};t.report({loc:p,messageId:"exceed",data:{max:n,actual:c.length}})}}}}},f0}var p0,t_;function xV(){if(t_)return p0;t_=1;let r=Pe(),{upperCaseFirst:e}=vi(),s={oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]};function n(i){let a=new Map;return i.forEach(l=>{for(let o=l.loc.start.line;o<=l.loc.end.line;o++)a.set(o,l)}),a}return p0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines-per-function"},schema:[s],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(i){let a=i.sourceCode,l=a.lines,o=i.options[0],u=50,c=!1,p=!1,h=!1;typeof o=="object"?(u=typeof o.max=="number"?o.max:50,c=!!o.skipComments,p=!!o.skipBlankLines,h=!!o.IIFEs):typeof o=="number"&&(u=o);let f=n(a.getAllComments());function d(b,v,S){let C=S.loc.start,O=S.loc.end,w=C.line===v&&!b.slice(0,C.column).trim(),E=O.line===v&&!b.slice(O.column).trim();return S&&(C.linev||E)}function m(b){return(b.type==="FunctionExpression"||b.type==="ArrowFunctionExpression")&&b.parent&&b.parent.type==="CallExpression"&&b.parent.callee===b}function g(b){return!b.parent||b!==b.parent.value?!1:b.parent.type==="MethodDefinition"?!0:b.parent.type==="Property"?b.parent.method===!0||b.parent.kind==="get"||b.parent.kind==="set":!1}function y(b){let v=g(b)?b.parent:b;if(!h&&m(v))return;let S=0;for(let C=v.loc.start.line-1;Cu){let C=e(r.getFunctionNameWithKind(b));i.report({node:v,messageId:"exceed",data:{name:C,lineCount:S,maxLines:u}})}}return{FunctionDeclaration:y,FunctionExpression:y,ArrowFunctionExpression:y}}},p0}var h0,r_;function bV(){return r_||(r_=1,h0={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=10;typeof e=="object"&&(Object.hasOwn(e,"maximum")||Object.hasOwn(e,"max"))?t=e.maximum||e.max:typeof e=="number"&&(t=e);let s=[];function n(a){if(a.parent.type==="CallExpression"&&s.push(a),s.length>t){let o={num:s.length,max:t};r.report({node:a,messageId:"exceed",data:o})}}function i(){s.pop()}return{ArrowFunctionExpression:n,"ArrowFunctionExpression:exit":i,FunctionExpression:n,"FunctionExpression:exit":i}}}),h0}var d0,n_;function vV(){if(n_)return d0;n_=1;let r=Pe(),{upperCaseFirst:e}=vi();return d0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of parameters in function definitions",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.sourceCode,n=t.options[0],i=3;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))&&(i=n.maximum||n.max),typeof n=="number"&&(i=n);function a(l){l.params.length>i&&t.report({loc:r.getFunctionHeadLoc(l,s),node:l,messageId:"exceed",data:{name:e(r.getFunctionNameWithKind(l)),count:l.params.length,max:i}})}return{FunctionDeclaration:a,ArrowFunctionExpression:a,FunctionExpression:a}}},d0}var m0,s_;function OV(){if(s_)return m0;s_=1;let r=Pe(),{upperCaseFirst:e}=vi();return m0={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/latest/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 s=[],n=t.options[0],i=t.options[1]&&t.options[1].ignoreTopLevelFunctions||!1,a=[],l=10;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))?l=n.maximum||n.max:typeof n=="number"&&(l=n);function o(h,f,d){if(f>d){let m=e(r.getFunctionNameWithKind(h));t.report({node:h,messageId:"exceed",data:{name:m,count:f,max:d}})}}function u(){s.push(0)}function c(h){let f=s.pop();h.type!=="StaticBlock"&&(i&&s.length===0?a.push({node:h,count:f}):o(h,f,l))}function p(h){s[s.length-1]+=h.body.length}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u,StaticBlock:u,BlockStatement:p,"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c,"StaticBlock:exit":c,"Program:exit"(){a.length!==1&&a.forEach(h=>{let f=h.count,d=h.node;o(d,f,l)})}}}},m0}var g0,i_;function SV(){if(i_)return g0;i_=1;let r=Pe();return g0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||{},n=typeof s.max<"u"?s.max:1,i=0,a=0,l,o=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function u(){l&&e.report({node:l,messageId:"exceed",data:{numberOfStatementsOnThisLine:a,maxStatementsPerLine:n,statements:a===1?"statement":"statements"}}),l=null}function c(f){return t.getLastToken(f,r.isNotSemicolonToken)}function p(f){let d=f.loc.start.line;o.test(f.parent.type)&&f.parent.alternate!==f||(d===i?a+=1:(u(),a=1,i=d),a===n+1&&(l=l||f))}function h(f){let d=c(f).loc.end.line;d!==i&&(u(),a=1,i=d)}return{BreakStatement:p,ClassDeclaration:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,ExpressionStatement:p,ForInStatement:p,ForOfStatement:p,ForStatement:p,FunctionDeclaration:p,IfStatement:p,ImportDeclaration:p,LabeledStatement:p,ReturnStatement:p,SwitchStatement:p,ThrowStatement:p,TryStatement:p,VariableDeclaration:p,WhileStatement:p,WithStatement:p,ExportNamedDeclaration:p,ExportDefaultDeclaration:p,ExportAllDeclaration:p,"BreakStatement:exit":h,"ClassDeclaration:exit":h,"ContinueStatement:exit":h,"DebuggerStatement:exit":h,"DoWhileStatement:exit":h,"ExpressionStatement:exit":h,"ForInStatement:exit":h,"ForOfStatement:exit":h,"ForStatement:exit":h,"FunctionDeclaration:exit":h,"IfStatement:exit":h,"ImportDeclaration:exit":h,"LabeledStatement:exit":h,"ReturnStatement:exit":h,"SwitchStatement:exit":h,"ThrowStatement:exit":h,"TryStatement:exit":h,"VariableDeclaration:exit":h,"WhileStatement:exit":h,"WithStatement:exit":h,"ExportNamedDeclaration:exit":h,"ExportDefaultDeclaration:exit":h,"ExportAllDeclaration:exit":h,"Program:exit":u}}},g0}var y0,a_;function EV(){if(a_)return y0;a_=1;let r=Pe();return y0={meta:{type:"suggestion",docs:{description:"Enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-comment-style"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"]}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"]},{type:"object",properties:{checkJSDoc:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},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(e){let t=e.sourceCode,s=e.options[0]||"starred-block",i=!!(e.options[1]||{}).checkJSDoc;function a(b){return/^\s*\*/u.test(b)}function l([b]){if(b.type!=="Block")return!1;let v=b.value.split(r.LINEBREAK_MATCHER);return v.length>0&&v.every((S,C)=>(C===0||C===v.length-1?/^\s*$/u:/^\s*\*/u).test(S))}function o([b]){if(b.type!=="Block")return!1;let v=b.value.split(r.LINEBREAK_MATCHER);return/^\*\s*$/u.test(v[0])&&v.slice(1,-1).every(S=>/^\s* /u.test(S))&&/^\s*$/u.test(v.at(-1))}function u(b){let v=b.map(({value:S})=>S).filter(S=>S.trim().length).every(S=>S.startsWith(" "));return b.map(({value:S})=>v?S.replace(/^ /u,""):S)}function c(b){let v=b.value.split(r.LINEBREAK_MATCHER).filter((C,O,w)=>!(O===0||O===w.length-1)).map(C=>C.replace(/^\s*$/u,"")),S=v.map(C=>C.replace(/\s*\*/u,"")).filter(C=>C.trim().length).every(C=>C.startsWith(" "));return v.map(C=>C.replace(S?/\s*\* ?/u:/\s*\*/u,""))}function p(b){let v=b.value.split(r.LINEBREAK_MATCHER).map(O=>O.replace(/^\s*$/u,"")),S=`${t.text.slice(b.range[0]-b.loc.start.column,b.range[0])} `,C="";for(let[O,w]of v.entries()){if(!w.trim().length||O===0)continue;let[,E]=w.match(/^(\s*\*?\s*)/u);if(E.lengthC.length&&(C=k)}}return v.map(O=>{let w=O.match(/^(\s*\*?\s*)(.*)/u),[,E,k]=w;return E.length>S.length?`${E.slice(S.length-(C.length+E.length))}${k}`:E.length`${S} * ${C}`).join(` `)} -${C} */`}function m(O,S){return S.map(C=>`// ${C}`).join(` -${f(O)}`)}function g(O,S){return`/* ${S.join(` -${f(O)} `)} */`}let b={"starred-block"(O){let[S]=O,C=h(O);if(!C.some(k=>k.includes("*/")))if(O.length>1)e.report({loc:{start:S.loc.start,end:O.at(-1).loc.end},messageId:"expectedBlock",fix(k){let E=[S.range[0],O.at(-1).range[1]];return C.some(A=>A.startsWith("/"))?null:k.replaceTextRange(E,d(S,C))}});else{let k=S.value.split(r.LINEBREAK_MATCHER),A=`${f(S)} *`;if(!/^\*?\s*$/u.test(k[0])){let w=S.value.startsWith("*")?S.range[0]+1:S.range[0];e.report({loc:{start:S.loc.start,end:{line:S.loc.start.line,column:S.loc.start.column+2}},messageId:"startNewline",fix:P=>P.insertTextAfterRange([w,w+2],` -${A}`)})}/^\s*$/u.test(k.at(-1))||e.report({loc:{start:{line:S.loc.end.line,column:S.loc.end.column-2},end:S.loc.end},messageId:"endNewline",fix:w=>w.replaceTextRange([S.range[1]-2,S.range[1]],` -${A}/`)});for(let w=S.loc.start.line+1;w<=S.loc.end.line;w++){let P=t.lines[w-1],T=a(P)?"alignment":"missingStar";P.startsWith(A)||e.report({loc:{start:{line:w,column:0},end:{line:w,column:P.length}},messageId:T,fix(I){let F=t.getIndexFromLoc({line:w,column:0});if(T==="alignment"){let[,Q=""]=P.match(/^(\s*\*)/u)||[],V=F+Q.length;return I.replaceTextRange([F,V],A)}let[,L=""]=P.match(/^(\s*)/u)||[],_=F+L.length,B;for(let[Q,V]of k.entries()){if(!/\S+/u.test(V))continue;let R=t.lines[S.loc.start.line-1+Q],[,$="",N=""]=R.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];B=`${L.slice($.length)}${N}`,/^\s*\//u.test(P)&&B.length===0&&(B+=" ");break}return I.replaceTextRange([F,_],`${A}${B}`)}})}}},"separate-lines"(O){let[S]=O,C=o(O);if(S.type!=="Block"||!i&&C)return;let k=h(O);C&&(k=k.slice(1,k.length-1));let E=t.getTokenAfter(S,{includeComments:!0});E&&S.loc.end.line===E.loc.start.line||e.report({loc:{start:S.loc.start,end:{line:S.loc.start.line,column:S.loc.start.column+2}},messageId:"expectedLines",fix(A){return A.replaceText(S,m(S,k))}})},"bare-block"(O){if(o(O))return;let[S]=O,C=h(O);S.type==="Line"&&C.length>1&&!C.some(k=>k.includes("*/"))&&e.report({loc:{start:S.loc.start,end:O.at(-1).loc.end},messageId:"expectedBlock",fix(k){return k.replaceTextRange([S.range[0],O.at(-1).range[1]],g(S,C))}}),l(O)&&e.report({loc:{start:S.loc.start,end:{line:S.loc.start.line,column:S.loc.start.column+2}},messageId:"expectedBareBlock",fix(k){return k.replaceText(S,g(S,C))}})}};return{Program(){return t.getAllComments().filter(O=>O.type!=="Shebang").filter(O=>!r.COMMENTS_IGNORE_PATTERN.test(O.value)).filter(O=>{let S=t.getTokenBefore(O,{includeComments:!0});return!S||S.loc.end.line{let E=t.getTokenBefore(S,{includeComments:!0});return S.type==="Line"&&C&&k[C-1].type==="Line"&&E&&E.loc.end.line===S.loc.start.line-1&&E===k[C-1]?O.at(-1).push(S):O.push([S]),O},[]).filter(O=>!(O.length===1&&O[0].loc.start.line===O[0].loc.end.line)).forEach(b[s])}}}},b0}var v0,u_;function kV(){if(u_)return v0;u_=1;let r=De();return v0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0],n=s!=="never",i=s==="always-multiline";return{ConditionalExpression(a){let l=t.getTokenAfter(a.test,r.isNotClosingParenToken),o=t.getTokenAfter(a.consequent,r.isNotClosingParenToken),u=t.getFirstToken(a),c=t.getTokenBefore(l),p=t.getTokenAfter(l),h=t.getTokenBefore(o),f=t.getTokenAfter(o),d=r.isTokenOnSameLine(c,p),m=r.isTokenOnSameLine(h,f),g=!!t.getCommentsInside(a).length;if(!n)d||e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix(b){if(g)return null;let O=[],S=r.isTokenOnSameLine(c,l),C=r.isTokenOnSameLine(l,p);return S||O.push(b.removeRange([c.range[1],l.range[0]])),C||O.push(b.removeRange([l.range[1],p.range[0]])),O}}),m||e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(b){if(g)return null;let O=[],S=r.isTokenOnSameLine(h,o),C=r.isTokenOnSameLine(o,f);return S||O.push(b.removeRange([h.range[1],o.range[0]])),C||O.push(b.removeRange([o.range[1],f.range[0]])),O}});else{if(i&&a.loc.start.line===a.loc.end.line)return;d&&e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:b=>g?null:b.replaceTextRange([c.range[1],l.range[0]],` -`)}),m&&e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"expectedConsAlt",fix:b=>g?null:b.replaceTextRange([h.range[1],o.range[0]],` -`)})}}}}},v0}var O0,c_;function AV(){if(c_)return O0;c_=1;let r=De(),e=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function t(i,a,l){if(Object.hasOwn(i,a)&&!Array.isArray(i[a]))throw new TypeError(`${a}, if provided, must be an Array`);return i[a]||l}function s(i,a){return i[a]=!0,i}function n(i){let a=t(i,"capIsNewExceptions",e);return a!==e&&(a=a.concat(e)),a.reduce(s,{})}return O0={meta:{type:"suggestion",docs:{description:"Require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/latest/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(i){let a=Object.assign({},i.options[0]);a.newIsCap=a.newIsCap!==!1,a.capIsNew=a.capIsNew!==!1;let l=a.properties===!1,o=t(a,"newIsCapExceptions",[]).reduce(s,{}),u=a.newIsCapExceptionPattern?new RegExp(a.newIsCapExceptionPattern,"u"):null,c=n(a),p=a.capIsNewExceptionPattern?new RegExp(a.capIsNewExceptionPattern,"u"):null,h={},f=i.sourceCode;function d(O){return O.callee.type==="Identifier"?O.callee.name:r.getStaticPropertyName(O.callee)||""}function m(O){let S=O.charAt(0),C=S.toLowerCase(),k=S.toUpperCase();return C===k?"non-alpha":S===C?"lower":"upper"}function g(O,S,C,k){let E=f.getText(S.callee);if(O[C]||O[E]||k&&k.test(E))return!0;let A=r.skipChainExpression(S.callee);return C==="UTC"&&A.type==="MemberExpression"?A.object.type==="Identifier"&&A.object.name==="Date":l&&A.type==="MemberExpression"}function b(O,S){let C=r.skipChainExpression(O.callee);C.type==="MemberExpression"&&(C=C.property),i.report({node:O,loc:C.loc,messageId:S})}return a.newIsCap&&(h.NewExpression=function(O){let S=d(O);S&&(m(S)!=="lower"||g(o,O,S,u)||b(O,"lower"))}),a.capIsNew&&(h.CallExpression=function(O){let S=d(O);S&&(m(S)!=="upper"||g(c,O,S,p)||b(O,"upper"))}),h}},O0}var S0,f_;function PV(){if(f_)return S0;f_=1;let r=De();return S0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-parens"},fixable:"code",schema:[{enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){let s=e.options[0]!=="never",n=e.sourceCode;return{NewExpression(i){if(i.arguments.length!==0)return;let a=n.getLastToken(i),o=a&&r.isClosingParenToken(a)&&r.isOpeningParenToken(n.getTokenBefore(a))&&i.callee.range[1]u.insertTextAfter(i,"()")}):o&&e.report({node:i,messageId:"unnecessary",fix:u=>[u.remove(n.getTokenBefore(a)),u.remove(a),u.insertTextBefore(i,"("),u.insertTextAfter(i,")")]})}}}},S0}var E0,p_;function TV(){if(p_)return E0;p_=1;let r=De();return E0={meta:{type:"layout",docs:{description:"Require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]==="never"?"never":"always",n=t.getAllComments().reduce((f,d)=>(f[d.loc.start.line]=d.loc.end.line,f),{});function i(f){let d=t.getLastToken(f);if(d.type==="Punctuator"&&d.value===";"){let m=t.getTokenBefore(d);if(m.loc.end.line!==d.loc.start.line)return m}return d}function a(f){return f==="var"||f==="let"||f==="const"}function l(f){return f==="ForStatement"||f==="ForInStatement"||f==="ForOfStatement"}function o(f){return f==="ExportNamedDeclaration"||f==="ExportSpecifier"||f==="ExportDefaultDeclaration"||f==="ExportAllDeclaration"}function u(f){let d=t.getTokenAfter(f);return!d||d.type==="Punctuator"&&d.value==="}"}function c(f){let d=n[f];return n[d+1]?c(d+1):d}function p(f,d){return f.loc.start.line>c(d)+1}function h(f){let d=i(f),m=d===t.getLastToken(f)?t.getTokenAfter(f):t.getLastToken(f),g=d.loc.end.line+1;if(!m||l(f.parent.type)||o(f.parent.type)||m.type==="Keyword"&&a(m.value)||u(f))return;let b=m.loc.start.line>g,O=typeof n[g]<"u";s==="never"&&b&&!O&&e.report({node:f,messageId:"unexpected",fix(S){let C=t.getText().slice(d.range[1],m.range[0]).split(r.LINEBREAK_MATCHER);return S.replaceTextRange([d.range[1],m.range[0]],`${C.slice(0,-1).join("")} -${C.at(-1)}`)}}),s==="always"&&(!b||O&&!p(m,g))&&e.report({node:f,messageId:"expected",fix(S){return(b?c(g):d.loc.end.line)===m.loc.start.line?S.insertTextBefore(m,` +${S} */`}function m(b,v){return v.map(S=>`// ${S}`).join(` +${f(b)}`)}function g(b,v){return`/* ${v.join(` +${f(b)} `)} */`}let y={"starred-block"(b){let[v]=b,S=h(b);if(!S.some(C=>C.includes("*/")))if(b.length>1)e.report({loc:{start:v.loc.start,end:b.at(-1).loc.end},messageId:"expectedBlock",fix(C){let O=[v.range[0],b.at(-1).range[1]];return S.some(w=>w.startsWith("/"))?null:C.replaceTextRange(O,d(v,S))}});else{let C=v.value.split(r.LINEBREAK_MATCHER),w=`${f(v)} *`;if(!/^\*?\s*$/u.test(C[0])){let E=v.value.startsWith("*")?v.range[0]+1:v.range[0];e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"startNewline",fix:k=>k.insertTextAfterRange([E,E+2],` +${w}`)})}/^\s*$/u.test(C.at(-1))||e.report({loc:{start:{line:v.loc.end.line,column:v.loc.end.column-2},end:v.loc.end},messageId:"endNewline",fix:E=>E.replaceTextRange([v.range[1]-2,v.range[1]],` +${w}/`)});for(let E=v.loc.start.line+1;E<=v.loc.end.line;E++){let k=t.lines[E-1],A=a(k)?"alignment":"missingStar";k.startsWith(w)||e.report({loc:{start:{line:E,column:0},end:{line:E,column:k.length}},messageId:A,fix(D){let _=t.getIndexFromLoc({line:E,column:0});if(A==="alignment"){let[,j=""]=k.match(/^(\s*\*)/u)||[],Q=_+j.length;return D.replaceTextRange([_,Q],w)}let[,B=""]=k.match(/^(\s*)/u)||[],T=_+B.length,F;for(let[j,Q]of C.entries()){if(!/\S+/u.test(Q))continue;let I=t.lines[v.loc.start.line-1+j],[,N="",R=""]=I.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];F=`${B.slice(N.length)}${R}`,/^\s*\//u.test(k)&&F.length===0&&(F+=" ");break}return D.replaceTextRange([_,T],`${w}${F}`)}})}}},"separate-lines"(b){let[v]=b,S=o(b);if(v.type!=="Block"||!i&&S)return;let C=h(b);S&&(C=C.slice(1,C.length-1));let O=t.getTokenAfter(v,{includeComments:!0});O&&v.loc.end.line===O.loc.start.line||e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"expectedLines",fix(w){return w.replaceText(v,m(v,C))}})},"bare-block"(b){if(o(b))return;let[v]=b,S=h(b);v.type==="Line"&&S.length>1&&!S.some(C=>C.includes("*/"))&&e.report({loc:{start:v.loc.start,end:b.at(-1).loc.end},messageId:"expectedBlock",fix(C){return C.replaceTextRange([v.range[0],b.at(-1).range[1]],g(v,S))}}),l(b)&&e.report({loc:{start:v.loc.start,end:{line:v.loc.start.line,column:v.loc.start.column+2}},messageId:"expectedBareBlock",fix(C){return C.replaceText(v,g(v,S))}})}};return{Program(){return t.getAllComments().filter(b=>b.type!=="Shebang").filter(b=>!r.COMMENTS_IGNORE_PATTERN.test(b.value)).filter(b=>{let v=t.getTokenBefore(b,{includeComments:!0});return!v||v.loc.end.line{let O=t.getTokenBefore(v,{includeComments:!0});return v.type==="Line"&&S&&C[S-1].type==="Line"&&O&&O.loc.end.line===v.loc.start.line-1&&O===C[S-1]?b.at(-1).push(v):b.push([v]),b},[]).filter(b=>!(b.length===1&&b[0].loc.start.line===b[0].loc.end.line)).forEach(y[s])}}}},y0}var x0,o_;function CV(){if(o_)return x0;o_=1;let r=Pe();return x0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0],n=s!=="never",i=s==="always-multiline";return{ConditionalExpression(a){let l=t.getTokenAfter(a.test,r.isNotClosingParenToken),o=t.getTokenAfter(a.consequent,r.isNotClosingParenToken),u=t.getFirstToken(a),c=t.getTokenBefore(l),p=t.getTokenAfter(l),h=t.getTokenBefore(o),f=t.getTokenAfter(o),d=r.isTokenOnSameLine(c,p),m=r.isTokenOnSameLine(h,f),g=!!t.getCommentsInside(a).length;if(!n)d||e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"unexpectedTestCons",fix(y){if(g)return null;let b=[],v=r.isTokenOnSameLine(c,l),S=r.isTokenOnSameLine(l,p);return v||b.push(y.removeRange([c.range[1],l.range[0]])),S||b.push(y.removeRange([l.range[1],p.range[0]])),b}}),m||e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"unexpectedConsAlt",fix(y){if(g)return null;let b=[],v=r.isTokenOnSameLine(h,o),S=r.isTokenOnSameLine(o,f);return v||b.push(y.removeRange([h.range[1],o.range[0]])),S||b.push(y.removeRange([o.range[1],f.range[0]])),b}});else{if(i&&a.loc.start.line===a.loc.end.line)return;d&&e.report({node:a.test,loc:{start:u.loc.start,end:c.loc.end},messageId:"expectedTestCons",fix:y=>g?null:y.replaceTextRange([c.range[1],l.range[0]],` +`)}),m&&e.report({node:a.consequent,loc:{start:p.loc.start,end:h.loc.end},messageId:"expectedConsAlt",fix:y=>g?null:y.replaceTextRange([h.range[1],o.range[0]],` +`)})}}}}},x0}var b0,l_;function wV(){if(l_)return b0;l_=1;let r=Pe(),e=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function t(i,a,l){if(Object.hasOwn(i,a)&&!Array.isArray(i[a]))throw new TypeError(`${a}, if provided, must be an Array`);return i[a]||l}function s(i,a){return i[a]=!0,i}function n(i){let a=t(i,"capIsNewExceptions",e);return a!==e&&(a=a.concat(e)),a.reduce(s,{})}return b0={meta:{type:"suggestion",docs:{description:"Require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/latest/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(i){let a=Object.assign({},i.options[0]);a.newIsCap=a.newIsCap!==!1,a.capIsNew=a.capIsNew!==!1;let l=a.properties===!1,o=t(a,"newIsCapExceptions",[]).reduce(s,{}),u=a.newIsCapExceptionPattern?new RegExp(a.newIsCapExceptionPattern,"u"):null,c=n(a),p=a.capIsNewExceptionPattern?new RegExp(a.capIsNewExceptionPattern,"u"):null,h={},f=i.sourceCode;function d(b){return b.callee.type==="Identifier"?b.callee.name:r.getStaticPropertyName(b.callee)||""}function m(b){let v=b.charAt(0),S=v.toLowerCase(),C=v.toUpperCase();return S===C?"non-alpha":v===S?"lower":"upper"}function g(b,v,S,C){let O=f.getText(v.callee);if(b[S]||b[O]||C&&C.test(O))return!0;let w=r.skipChainExpression(v.callee);return S==="UTC"&&w.type==="MemberExpression"?w.object.type==="Identifier"&&w.object.name==="Date":l&&w.type==="MemberExpression"}function y(b,v){let S=r.skipChainExpression(b.callee);S.type==="MemberExpression"&&(S=S.property),i.report({node:b,loc:S.loc,messageId:v})}return a.newIsCap&&(h.NewExpression=function(b){let v=d(b);v&&(m(v)!=="lower"||g(o,b,v,u)||y(b,"lower"))}),a.capIsNew&&(h.CallExpression=function(b){let v=d(b);v&&(m(v)!=="upper"||g(c,b,v,p)||y(b,"upper"))}),h}},b0}var v0,u_;function kV(){if(u_)return v0;u_=1;let r=Pe();return v0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-parens"},fixable:"code",schema:[{enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(e){let s=e.options[0]!=="never",n=e.sourceCode;return{NewExpression(i){if(i.arguments.length!==0)return;let a=n.getLastToken(i),o=a&&r.isClosingParenToken(a)&&r.isOpeningParenToken(n.getTokenBefore(a))&&i.callee.range[1]u.insertTextAfter(i,"()")}):o&&e.report({node:i,messageId:"unnecessary",fix:u=>[u.remove(n.getTokenBefore(a)),u.remove(a),u.insertTextBefore(i,"("),u.insertTextAfter(i,")")]})}}}},v0}var O0,c_;function AV(){if(c_)return O0;c_=1;let r=Pe();return O0={meta:{type:"layout",docs:{description:"Require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]==="never"?"never":"always",n=t.getAllComments().reduce((f,d)=>(f[d.loc.start.line]=d.loc.end.line,f),{});function i(f){let d=t.getLastToken(f);if(d.type==="Punctuator"&&d.value===";"){let m=t.getTokenBefore(d);if(m.loc.end.line!==d.loc.start.line)return m}return d}function a(f){return f==="var"||f==="let"||f==="const"}function l(f){return f==="ForStatement"||f==="ForInStatement"||f==="ForOfStatement"}function o(f){return f==="ExportNamedDeclaration"||f==="ExportSpecifier"||f==="ExportDefaultDeclaration"||f==="ExportAllDeclaration"}function u(f){let d=t.getTokenAfter(f);return!d||d.type==="Punctuator"&&d.value==="}"}function c(f){let d=n[f];return n[d+1]?c(d+1):d}function p(f,d){return f.loc.start.line>c(d)+1}function h(f){let d=i(f),m=d===t.getLastToken(f)?t.getTokenAfter(f):t.getLastToken(f),g=d.loc.end.line+1;if(!m||l(f.parent.type)||o(f.parent.type)||m.type==="Keyword"&&a(m.value)||u(f))return;let y=m.loc.start.line>g,b=typeof n[g]<"u";s==="never"&&y&&!b&&e.report({node:f,messageId:"unexpected",fix(v){let S=t.getText().slice(d.range[1],m.range[0]).split(r.LINEBREAK_MATCHER);return v.replaceTextRange([d.range[1],m.range[0]],`${S.slice(0,-1).join("")} +${S.at(-1)}`)}}),s==="always"&&(!y||b&&!p(m,g))&&e.report({node:f,messageId:"expected",fix(v){return(y?c(g):d.loc.end.line)===m.loc.start.line?v.insertTextBefore(m,` -`):S.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],` -`)}})}return{VariableDeclaration:h}}},E0}var C0,h_;function DV(){return h_||(h_=1,C0={meta:{type:"layout",docs:{description:"Require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(r){let e=r.sourceCode;function t(o,u){let c=e.getTokenBefore(o);return u.includes(c.value)}function s(o){let u=o.parent.type;return o.parent.body?Array.isArray(o.parent.body)?o.parent.body[0]===o:o.parent.body===o:u==="IfStatement"?t(o,["else",")"]):u==="DoWhileStatement"?t(o,["do"]):u==="SwitchCase"?t(o,[":"]):t(o,[")"])}function n(o,u){let c=e.getCommentsBefore(o),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===o.loc.start.line&&p--}),p}function i(o){let u=e.getTokenBefore(o),c;return u?c=u.loc.end.line:c=0,c}function a(o){let u=o.loc.start.line,c=i(o),p=n(o,c);return u-c-p>1}function l(o){let u=e.getCommentsBefore(o),c=u.at(-1),p=e.getTokenBefore(o);return u.length===0||c.loc.end.line===p.loc.end.line&&c.loc.end.line!==o.loc.start.line}return{ReturnStatement(o){!s(o)&&!a(o)&&r.report({node:o,messageId:"expected",fix(u){if(l(o)){let c=e.getTokenBefore(o),p=o.loc.start.line===c.loc.end.line?` +`):v.insertTextBeforeRange([m.range[0]-m.loc.start.column,m.range[1]],` +`)}})}return{VariableDeclaration:h}}},O0}var S0,f_;function PV(){return f_||(f_=1,S0={meta:{type:"layout",docs:{description:"Require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:!0,replacedBy:["padding-line-between-statements"]},create(r){let e=r.sourceCode;function t(o,u){let c=e.getTokenBefore(o);return u.includes(c.value)}function s(o){let u=o.parent.type;return o.parent.body?Array.isArray(o.parent.body)?o.parent.body[0]===o:o.parent.body===o:u==="IfStatement"?t(o,["else",")"]):u==="DoWhileStatement"?t(o,["do"]):u==="SwitchCase"?t(o,[":"]):t(o,[")"])}function n(o,u){let c=e.getCommentsBefore(o),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===o.loc.start.line&&p--}),p}function i(o){let u=e.getTokenBefore(o),c;return u?c=u.loc.end.line:c=0,c}function a(o){let u=o.loc.start.line,c=i(o),p=n(o,c);return u-c-p>1}function l(o){let u=e.getCommentsBefore(o),c=u.at(-1),p=e.getTokenBefore(o);return u.length===0||c.loc.end.line===p.loc.end.line&&c.loc.end.line!==o.loc.start.line}return{ReturnStatement(o){!s(o)&&!a(o)&&r.report({node:o,messageId:"expected",fix(u){if(l(o)){let c=e.getTokenBefore(o),p=o.loc.start.line===c.loc.end.line?` `:` -`;return u.insertTextBefore(o,p)}return null}})}}}}),C0}var w0,d_;function _V(){if(d_)return w0;d_=1;let r=De();return w0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=t.ignoreChainWithDepth||2,n=e.sourceCode;function i(l){return l.computed?l.optional?"?.[":"[":l.optional?"?.":"."}function a(l){let o=i(l),u=n.getText(l.property).split(r.LINEBREAK_MATCHER),c=l.computed&&u.length===1?"]":"";return o+u[0]+c}return{"CallExpression:exit"(l){let o=r.skipChainExpression(l.callee);if(o.type!=="MemberExpression")return;let u=r.skipChainExpression(o.object),c=1;for(;u&&u.callee;)c+=1,u=r.skipChainExpression(r.skipChainExpression(u.callee).object);if(c>s&&r.isTokenOnSameLine(o.object,o.property)){let p=n.getTokenAfter(o.object,r.isNotClosingParenToken);e.report({node:o.property,loc:{start:p.loc.start,end:o.loc.end},messageId:"expected",data:{callee:a(o)},fix(h){return h.insertTextBefore(p,` -`)}})}}}}},w0}var k0,m_;function IV(){if(m_)return k0;m_=1;let{getStaticPropertyName:r,getVariableByName:e,skipChainExpression:t}=De();function s(l){return/^(alert|confirm|prompt)$/u.test(l)}function n(l,o){let u=l.references.filter(c=>c.identifier.range[0]===o.range[0]&&c.identifier.range[1]===o.range[1]);return u.length===1?u[0]:null}function i(l,o){let u=n(l,o);return u&&u.resolved&&u.resolved.defs.length>0}function a(l,o){return l.type==="global"&&o.type==="ThisExpression"?!0:o.type==="Identifier"&&(o.name==="window"||o.name==="globalThis"&&e(l,"globalThis"))?!i(l,o):!1}return k0={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(l){let o=l.sourceCode;return{CallExpression(u){let c=t(u.callee),p=o.getScope(u);if(c.type==="Identifier"){let h=c.name;!i(p,c)&&s(c.name)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}else if(c.type==="MemberExpression"&&a(p,c.object)){let h=r(c);s(h)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}}}}},k0}var A0,g_;function FV(){if(g_)return A0;g_=1;let{getVariableByName:r,isClosingParenToken:e,isOpeningParenToken:t,isStartOfExpressionStatement:s,needsPrecedingSemicolon:n}=De();return A0={meta:{type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(i){let a=i.sourceCode;function l(u){let c=a.getLastToken(u);if(!e(c))return"";let p=u.callee;do if(p=a.getTokenAfter(p),!p||p===c)return"";while(!t(p));return a.text.slice(p.range[1],c.range[0])}function o(u){if(u.callee.type!=="Identifier"||u.callee.name!=="Array"||u.arguments.length===1&&u.arguments[0].type!=="SpreadElement")return;let c=r(a.getScope(u),"Array");if(c&&c.identifiers.length===0){let p=l(u),h,f;s(u)&&n(a,u)?(h=`;[${p}]`,f="useLiteralAfterSemicolon"):(h=`[${p}]`,f="useLiteral"),i.report({node:u,messageId:"preferLiteral",suggest:[{messageId:f,fix:d=>d.replaceText(u,h)}]})}}return{CallExpression:o,NewExpression:o}}},A0}var P0,y_;function RV(){return y_||(y_=1,P0={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(r){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){r.report({node:r.sourceCode.getFirstToken(e.arguments[0],t=>t.value==="async"),messageId:"async"})}}}}),P0}var T0,x_;function BV(){if(x_)return T0;x_=1;function r(t){let s=t.type;return s==="FunctionDeclaration"||s==="FunctionExpression"||s==="ArrowFunctionExpression"||s==="ForOfStatement"&&t.await===!0}function e(t,s){switch(s.type){case"ForStatement":return t===s.test||t===s.update||t===s.body;case"ForOfStatement":case"ForInStatement":return t===s.body;case"WhileStatement":case"DoWhileStatement":return t===s.test||t===s.body;default:return!1}}return T0={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(t){function s(n){if(n.type==="ForOfStatement"&&!n.await)return;let i=n,a=i.parent;for(;a&&!r(a);){if(e(i,a)){t.report({node:n,messageId:"unexpectedAwait"});return}i=a,a=a.parent}}return{AwaitExpression:s,ForOfStatement:s}}},T0}var D0,b_;function NV(){if(b_)return D0;b_=1;let r=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return D0={meta:{type:"suggestion",docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:r},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){let t=e.options[0]||{},s=t.allow||[],n=t.int32Hint===!0;function i(c){e.report({node:c,messageId:"unexpected",data:{operator:c.operator}})}function a(c){return r.includes(c.operator)}function l(c){return s.includes(c.operator)}function o(c){return n&&c.operator==="|"&&c.right&&c.right.type==="Literal"&&c.right.value===0}function u(c){a(c)&&!l(c)&&!o(c)&&i(c)}return{AssignmentExpression:u,BinaryExpression:u,UnaryExpression:u}}},D0}var _0,v_;function LV(){return v_||(v_=1,_0={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(r){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){r.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),_0}var I0,O_;function $V(){return O_||(O_=1,I0={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="arguments"&&!e.computed&&s&&s.match(/^calle[er]$/u)&&r.report({node:e,messageId:"unexpected",data:{prop:s}})}}}}),I0}var F0,S_;function MV(){return S_||(S_=1,F0={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(r){function e(t){switch(t.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return t.kind!=="var";default:return!1}}return{SwitchCase(t){for(let s=0;s{e.report({node:a.identifier,messageId:"class",data:{name:a.identifier.name}})})}function n(i){t.getDeclaredVariables(i).forEach(s)}return{ClassDeclaration:n,ClassExpression:n}}},B0}var N0,w_;function QV(){return w_||(w_=1,N0={meta:{type:"problem",docs:{description:"Disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(r){function e(s){return s.type==="UnaryExpression"&&s.operator==="-"&&s.argument.type==="Literal"&&s.argument.value===0}let t=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(s){t.has(s.operator)&&(e(s.left)||e(s.right))&&r.report({node:s,messageId:"unexpected",data:{operator:s.operator}})}}}}),N0}var L0,k_;function UV(){if(k_)return L0;k_=1;let r=De(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),t={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return L0={meta:{type:"problem",docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/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(s){let n=s.options[0]||"except-parens",i=s.sourceCode;function a(p){return p.parent&&e.has(p.parent.type)&&p===p.parent.test}function l(p){let h=p;do if(a(h))return h.parent;while((h=h.parent)&&!r.isFunction(h));return null}function o(p){let h=i.getTokenBefore(p,1),f=i.getTokenAfter(p,1);return r.isParenthesised(i,p)&&h&&r.isOpeningParenToken(h)&&h.range[1]<=p.range[0]&&r.isClosingParenToken(f)&&f.range[0]>=p.range[1]}function u(p){p.test&&p.test.type==="AssignmentExpression"&&(p.type==="ForStatement"?!r.isParenthesised(i,p.test):!o(p.test))&&s.report({node:p.test,messageId:"missing"})}function c(p){let h=l(p);h&&s.report({node:p,messageId:"unexpected",data:{type:t[h.type]||h.type}})}return n==="always"?{AssignmentExpression:c}:{DoWhileStatement:u,ForStatement:u,IfStatement:u,WhileStatement:u,ConditionalExpression:u}}},L0}var $0,A_;function VV(){if(A_)return $0;A_=1;let r=De();function e(t){return t&&t.type==="ConditionalExpression"}return $0={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0]||{},n=s.allowParens||s.allowParens===void 0,i=s.onlyOneSimpleParam,a=t.sourceCode;function l(o){let u=o.body;e(u)&&!(n&&r.isParenthesised(a,u))&&!(i&&!(o.params.length===1&&o.params[0].type==="Identifier"))&&t.report({node:o,messageId:"confusing",fix(c){return n&&c.replaceText(o.body,`(${a.getText(o.body)})`)}})}return{ArrowFunctionExpression:l}}},$0}var M0,P_;function WV(){if(P_)return M0;P_=1;let r=De();return M0={meta:{type:"suggestion",docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",removeConsole:"Remove the console.{{ propertyName }}()."}},create(e){let s=(e.options[0]||{}).allow||[],n=e.sourceCode;function i(p){let h=p.identifier;return h&&h.name==="console"}function a(p){let h=r.getStaticPropertyName(p);return h&&s.includes(h)}function l(p){let h=p.identifier,f=h.parent;return f.type==="MemberExpression"&&f.object===h&&!a(f)}function o(p){let h=/^[:;{]$/u,f=/^[-[(/+`]/u,d=n.getTokenBefore(p),m=n.getTokenAfter(p);return!!m&&f.test(m.value)&&m.value!=="++"&&m.value!=="--"&&!!d&&!h.test(d.value)}function u(p){return p.parent.type==="CallExpression"&&p.parent.callee===p&&p.parent.parent.type==="ExpressionStatement"&&r.STATEMENT_LIST_PARENTS.has(p.parent.parent.parent.type)&&!o(p.parent.parent)}function c(p){let h=p.identifier.parent,f=r.getStaticPropertyName(h);e.report({node:h,loc:h.loc,messageId:"unexpected",suggest:u(h)?[{messageId:"removeConsole",data:{propertyName:f},fix(d){return d.remove(h.parent.parent)}}]:[]})}return{"Program:exit"(p){let h=n.getScope(p),f=r.getVariableByName(h,"console"),d=f&&f.defs.length>0,m=f?f.references:h.through.filter(i);d||m.filter(l).forEach(c)}}}},M0}var j0,T_;function ZV(){if(T_)return j0;T_=1;let r=De();return j0={meta:{type:"problem",docs:{description:"Disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"const",data:{name:i.identifier.name}})})}return{VariableDeclaration(n){n.kind==="const"&&t.getDeclaredVariables(n).forEach(s)}}}},j0}var q0,D_;function zV(){if(D_)return q0;D_=1;let{isNullLiteral:r,isConstant:e,isReferenceToGlobalVariable:t,isLogicalAssignmentOperator:s,ECMASCRIPT_GLOBALS:n}=De(),i=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function a(f,d){return r(d)||d.type==="Identifier"&&d.name==="undefined"&&t(f,d)||d.type==="UnaryExpression"&&d.operator==="void"}function l(f,d,m){if(m&&a(f,d))return!1;switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let g=d.callee.name;return(g==="Boolean"||g==="String"||g==="Number")&&t(f,d.callee)}case"LogicalExpression":return d.operator==="??"&&l(f,d.right,!0);case"AssignmentExpression":return d.operator==="="?l(f,d.right,m):!s(d.operator);case"UnaryExpression":return!0;case"SequenceExpression":{let g=d.expressions.at(-1);return l(f,g,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function o(f,d){switch(d.type){case"Literal":return typeof d.value=="boolean";case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)&&(d.arguments.length===0||e(f,d.arguments[0],!0));case"UnaryExpression":return d.operator==="!"&&e(f,d.argument,!0);default:return!1}}function u(f,d){switch(d.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{let m=d.elements.filter(g=>g!==null&&g.type!=="SpreadElement");return d.elements.length===0||m.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return d.operator==="void"||d.operator==="typeof"?!0:d.operator==="!"?e(f,d.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return d.name==="undefined"&&t(f,d);case"TemplateLiteral":return d.expressions.length===0;case"AssignmentExpression":return d.operator==="="?u(f,d.right):!1;case"SequenceExpression":{let m=d.expressions.at(-1);return u(f,m)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return i.has(d.operator);case"UnaryExpression":return d.operator==="delete"?!1:d.operator==="!"?e(f,d.argument,!0):!0;case"SequenceExpression":{let m=d.expressions.at(-1);return c(f,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"AssignmentExpression":return d.operator==="="?c(f,d.right):!s(d.operator);case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let m=d.callee.name;return(m==="String"||m==="Number")&&t(f,d.callee)?!0:m==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function p(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return d.callee.type!=="Identifier"?!1:Object.hasOwn(n,d.callee.name)&&t(f,d.callee);case"Literal":return typeof d.regex=="object";case"SequenceExpression":{let m=d.expressions.at(-1);return p(f,m)}case"AssignmentExpression":return d.operator==="="?p(f,d.right):!1;case"ConditionalExpression":return p(f,d.consequent)&&p(f,d.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(f,d,m,g){if(g==="=="||g==="!="){if(a(f,d)&&l(f,m,!1)||o(f,d)&&u(f,m))return m}else if((g==="==="||g==="!==")&&(a(f,d)&&l(f,m,!1)||o(f,d)&&c(f,m)))return m;return null}return q0={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(f){let d=f.sourceCode;return{LogicalExpression(m){let{operator:g,left:b}=m,O=d.getScope(m);(g==="&&"||g==="||")&&e(O,b,!0)?f.report({node:b,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&l(O,b,!1)&&f.report({node:b,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(m){let g=d.getScope(m),{right:b,left:O,operator:S}=m,C=h(g,O,b,S),k=h(g,b,O,S);C?f.report({node:C,messageId:"constantBinaryOperand",data:{operator:S,otherSide:"left"}}):k?f.report({node:k,messageId:"constantBinaryOperand",data:{operator:S,otherSide:"right"}}):S==="==="||S==="!=="?p(g,O)?f.report({node:O,messageId:"alwaysNew"}):p(g,b)&&f.report({node:b,messageId:"alwaysNew"}):(S==="=="||S==="!=")&&p(g,O)&&p(g,b)&&f.report({node:O,messageId:"bothAlwaysNew"})}}}},q0}var Q0,__;function XV(){if(__)return Q0;__=1;let{isConstant:r}=De();return Q0={meta:{type:"problem",docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){let t=e.options[0]||{},s=t.checkLoops??"allExceptWhileTrue",n=[],i=e.sourceCode;t.checkLoops===!0?s="all":t.checkLoops===!1&&(s="none");let a=new Set;function l(f){f.test&&r(i.getScope(f),f.test,!0)&&a.add(f)}function o(f){a.has(f)&&(a.delete(f),e.report({node:f.test,messageId:"unexpected"}))}function u(f){f.test&&r(i.getScope(f),f.test,!0)&&e.report({node:f.test,messageId:"unexpected"})}function c(){n.push(a),a=new Set}function p(){a=n.pop()}function h(f){(s==="all"||s==="allExceptWhileTrue")&&l(f)}return{ConditionalExpression:u,IfStatement:u,WhileStatement(f){f.test.type==="Literal"&&f.test.value===!0&&s==="allExceptWhileTrue"||h(f)},"WhileStatement:exit":o,DoWhileStatement:h,"DoWhileStatement:exit":o,ForStatement:h,"ForStatement > .test":f=>h(f.parent),"ForStatement:exit":o,FunctionDeclaration:c,"FunctionDeclaration:exit":p,FunctionExpression:c,"FunctionExpression:exit":p,YieldExpression:()=>a.clear()}}},Q0}var U0,I_;function GV(){return I_||(I_=1,U0={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(r){let e=[];return{onCodePathStart(t,s){e.push(s)},onCodePathEnd(){e.pop()},ReturnStatement(t){let s=e.at(-1);s.parent&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"&&(t.parent.parent===s||t.argument)&&r.report({node:t,messageId:"unexpected"})}}}}),U0}var V0,F_;function YV(){return F_||(F_=1,V0={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(r){return{ContinueStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),V0}var cs={},R_;function Yn(){if(R_)return cs;R_=1,Object.defineProperty(cs,"__esModule",{value:!0});var r=Object.freeze({__proto__:null});let e=2024,t,s;function n(Qe){return Qe<65?!1:Qe<91?!0:Qe<97?!1:Qe<123?!0:a(Qe)}function i(Qe){return Qe<48?!1:Qe<58?!0:Qe<65?!1:Qe<91||Qe===95?!0:Qe<97?!1:Qe<123?!0:a(Qe)||l(Qe)}function a(Qe){return c(Qe,t??(t=o()))}function l(Qe){return c(Qe,s??(s=u()))}function o(){return p("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 6 n 2 5 i 15 1n 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 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 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 h e i 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 7 1j 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 6c 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 h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 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 d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 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 17 h 1b k s m d 1g 1m 1 3 0 e 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 k 1 1s 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 12 6 56 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 j 20 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 g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i 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 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 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 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 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 wyn x 37d 7 65 3 4g1 f 5rk 2e8 f1 15v 3t6 6 38f")}function u(){return p("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 1p 7 17 n 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 1k 0 2 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 4 0 d 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 6 2 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 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 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 1r 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 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e 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 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 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 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n")}function c(Qe,q){let ne=0,ye=q.length/2|0,Fe=0,nt=0,v=0;for(;nev)ne=Fe+1;else return!0;return!1}function p(Qe){let q=0;return Qe.split(" ").map(ne=>q+=parseInt(ne,36)|0)}class h{constructor(q,ne,ye,Fe,nt,v,D){this._raw2018=q,this._raw2019=ne,this._raw2020=ye,this._raw2021=Fe,this._raw2022=nt,this._raw2023=v,this._raw2024=D}get es2018(){var q;return(q=this._set2018)!==null&&q!==void 0?q:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var q;return(q=this._set2019)!==null&&q!==void 0?q:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var q;return(q=this._set2020)!==null&&q!==void 0?q:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var q;return(q=this._set2021)!==null&&q!==void 0?q:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var q;return(q=this._set2022)!==null&&q!==void 0?q:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var q;return(q=this._set2023)!==null&&q!==void 0?q:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var q;return(q=this._set2024)!==null&&q!==void 0?q:this._set2024=new Set(this._raw2024.split(" "))}}let f=new Set(["General_Category","gc"]),d=new Set(["Script","Script_Extensions","sc","scx"]),m=new h("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","","","","","",""),g=new h("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","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",""),b=new h("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 O(Qe,q,ne){return f.has(q)?Qe>=2018&&m.es2018.has(ne):d.has(q)?Qe>=2018&&g.es2018.has(ne)||Qe>=2019&&g.es2019.has(ne)||Qe>=2020&&g.es2020.has(ne)||Qe>=2021&&g.es2021.has(ne)||Qe>=2022&&g.es2022.has(ne)||Qe>=2023&&g.es2023.has(ne):!1}function S(Qe,q){return Qe>=2018&&b.es2018.has(q)||Qe>=2019&&b.es2019.has(q)||Qe>=2021&&b.es2021.has(q)}let C=8,k=9,E=10,A=11,w=12,P=13,T=33,I=35,F=36,L=37,_=38,B=40,Q=41,V=42,R=43,$=44,N=45,W=46,Z=47,le=48,ae=49,Se=55,J=57,me=58,j=59,de=60,ee=61,ce=62,ve=63,Me=64,Ue=65,st=66,mt=68,dt=70,wt=80,Y=83,Ae=87,Ze=90,rt=95,ot=97,at=98,kt=99,Ot=100,It=102,Ft=103,z=105,St=107,Ke=109,er=110,Ie=112,H=113,ie=114,re=115,ue=116,pe=117,X=118,te=119,oe=120,ge=121,ke=122,M=91,fe=92,_e=93,Le=94,je=96,Ne=123,Ee=124,Re=125,ze=126,Oe=8204,se=8205,K=8232,he=8233,Ce=0,we=1114111;function Ge(Qe){return Qe>=Ue&&Qe<=Ze||Qe>=ot&&Qe<=ke}function et(Qe){return Qe>=le&&Qe<=J}function yt(Qe){return Qe>=le&&Qe<=Se}function Et(Qe){return Qe>=le&&Qe<=J||Qe>=Ue&&Qe<=dt||Qe>=ot&&Qe<=It}function Dt(Qe){return Qe===E||Qe===P||Qe===K||Qe===he}function vt(Qe){return Qe>=Ce&&Qe<=we}function We(Qe){return Qe>=ot&&Qe<=It?Qe-ot+10:Qe>=Ue&&Qe<=dt?Qe-Ue+10:Qe-le}function it(Qe){return Qe>=55296&&Qe<=56319}function He(Qe){return Qe>=56320&&Qe<=57343}function Ve(Qe,q){return(Qe-55296)*1024+(q-56320)+65536}let ft={at(Qe,q,ne){return ne65535?2:1}};class Ut{constructor(){this._impl=ft,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(q,ne,ye,Fe){this._impl=Fe?gt:ft,this._s=q,this._end=ye,this.rewind(ne)}rewind(q){let ne=this._impl;this._i=q,this._cp1=ne.at(this._s,this._end,q),this._w1=ne.width(this._cp1),this._cp2=ne.at(this._s,this._end,q+this._w1),this._w2=ne.width(this._cp2),this._cp3=ne.at(this._s,this._end,q+this._w1+this._w2),this._w3=ne.width(this._cp3),this._cp4=ne.at(this._s,this._end,q+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let q=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=q.width(this._cp2),this._cp3=this._cp4,this._w3=q.width(this._cp3),this._cp4=q.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(q){return this._cp1===q?(this.advance(),!0):!1}eat2(q,ne){return this._cp1===q&&this._cp2===ne?(this.advance(),this.advance(),!0):!1}eat3(q,ne,ye){return this._cp1===q&&this._cp2===ne&&this._cp3===ye?(this.advance(),this.advance(),this.advance(),!0):!1}}class Vt extends SyntaxError{constructor(q,ne,ye,Fe){let nt="";if(q.kind==="literal"){let v=q.source.slice(q.start,q.end);v&&(nt=`: ${v}`)}else if(q.kind==="pattern"){let v=q.source.slice(q.start,q.end),D=`${ne.unicode?"u":""}${ne.unicodeSets?"v":""}`;nt=`: /${v}/${D}`}super(`Invalid regular expression${nt}: ${Fe}`),this.index=ye}}let Qt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]);function ar(Qe,q){return Qe>=2024&&Qt.has(q)}let ut=new Set([Le,F,fe,W,V,R,ve,B,Q,M,_e,Ne,Re,Ee]),$t=new Set([_,T,I,F,L,V,R,$,W,me,j,de,ee,ce,ve,Me,Le,je,ze]),Or=new Set([B,Q,M,_e,Ne,Re,Z,N,fe,Ee]),$r=new Set([_,N,T,I,L,$,me,j,de,ee,ce,Me,je,ze]);function kr(Qe){return ut.has(Qe)}function Vr(Qe){return $t.has(Qe)}function hs(Qe){return Or.has(Qe)}function Kn(Qe){return $r.has(Qe)}function gr(Qe){return n(Qe)||Qe===F||Qe===rt}function or(Qe){return i(Qe)||Qe===F||Qe===Oe||Qe===se}function mn(Qe){return Ge(Qe)||Qe===rt}function Jn(Qe){return mn(Qe)||et(Qe)}class Pn{constructor(q){this._reader=new Ut,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._srcCtx=null,this._options=q??{}}validateLiteral(q,ne=0,ye=q.length){if(this._srcCtx={source:q,start:ne,end:ye,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(q,ne,ye),this.onLiteralEnter(ne),this.eat(Z)&&this.eatRegExpBody()&&this.eat(Z)){let Fe=this.index,nt=q.includes("u",Fe),v=q.includes("v",Fe);this.validateFlagsInternal(q,Fe,ye),this.validatePatternInternal(q,ne+1,Fe-1,{unicode:nt,unicodeSets:v})}else if(ne>=ye)this.raise("Empty");else{let Fe=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${Fe}'`)}this.onLiteralLeave(ne,ye)}validateFlags(q,ne=0,ye=q.length){this._srcCtx={source:q,start:ne,end:ye,kind:"flags"},this.validateFlagsInternal(q,ne,ye)}validatePattern(q,ne=0,ye=q.length,Fe=void 0){this._srcCtx={source:q,start:ne,end:ye,kind:"pattern"},this.validatePatternInternal(q,ne,ye,Fe)}validatePatternInternal(q,ne=0,ye=q.length,Fe=void 0){let nt=this._parseFlagsOptionToMode(Fe,ye);this._unicodeMode=nt.unicodeMode,this._nFlag=nt.nFlag,this._unicodeSetsMode=nt.unicodeSetsMode,this.reset(q,ne,ye),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(ne),this.consumePattern())}validateFlagsInternal(q,ne,ye){let Fe=new Set,nt=!1,v=!1,D=!1,U=!1,G=!1,xe=!1,Be=!1,$e=!1;for(let Je=ne;Je=2015?G=!0:tt===ge&&this.ecmaVersion>=2015?U=!0:tt===re&&this.ecmaVersion>=2018?xe=!0:tt===Ot&&this.ecmaVersion>=2022?Be=!0:tt===X&&this.ecmaVersion>=2024?$e=!0:this.raise(`Invalid flag '${q[Je]}'`,{index:ne})}this.onRegExpFlags(ne,ye,{global:nt,ignoreCase:v,multiline:D,unicode:G,sticky:U,dotAll:xe,hasIndices:Be,unicodeSets:$e})}_parseFlagsOptionToMode(q,ne){let ye=!1,Fe=!1;q&&this.ecmaVersion>=2015&&(typeof q=="object"?(ye=!!q.unicode,this.ecmaVersion>=2024&&(Fe=!!q.unicodeSets)):ye=q),ye&&Fe&&this.raise("Invalid regular expression flags",{index:ne+1,unicode:ye,unicodeSets:Fe});let nt=ye||Fe,v=ye&&this.ecmaVersion>=2018||Fe||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:nt,nFlag:v,unicodeSetsMode:Fe}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var q;return(q=this._options.ecmaVersion)!==null&&q!==void 0?q:e}onLiteralEnter(q){this._options.onLiteralEnter&&this._options.onLiteralEnter(q)}onLiteralLeave(q,ne){this._options.onLiteralLeave&&this._options.onLiteralLeave(q,ne)}onRegExpFlags(q,ne,ye){this._options.onRegExpFlags&&this._options.onRegExpFlags(q,ne,ye),this._options.onFlags&&this._options.onFlags(q,ne,ye.global,ye.ignoreCase,ye.multiline,ye.unicode,ye.sticky,ye.dotAll,ye.hasIndices)}onPatternEnter(q){this._options.onPatternEnter&&this._options.onPatternEnter(q)}onPatternLeave(q,ne){this._options.onPatternLeave&&this._options.onPatternLeave(q,ne)}onDisjunctionEnter(q){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(q)}onDisjunctionLeave(q,ne){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(q,ne)}onAlternativeEnter(q,ne){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(q,ne)}onAlternativeLeave(q,ne,ye){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(q,ne,ye)}onGroupEnter(q){this._options.onGroupEnter&&this._options.onGroupEnter(q)}onGroupLeave(q,ne){this._options.onGroupLeave&&this._options.onGroupLeave(q,ne)}onCapturingGroupEnter(q,ne){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(q,ne)}onCapturingGroupLeave(q,ne,ye){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(q,ne,ye)}onQuantifier(q,ne,ye,Fe,nt){this._options.onQuantifier&&this._options.onQuantifier(q,ne,ye,Fe,nt)}onLookaroundAssertionEnter(q,ne,ye){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(q,ne,ye)}onLookaroundAssertionLeave(q,ne,ye,Fe){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(q,ne,ye,Fe)}onEdgeAssertion(q,ne,ye){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(q,ne,ye)}onWordBoundaryAssertion(q,ne,ye,Fe){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(q,ne,ye,Fe)}onAnyCharacterSet(q,ne,ye){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(q,ne,ye)}onEscapeCharacterSet(q,ne,ye,Fe){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(q,ne,ye,Fe)}onUnicodePropertyCharacterSet(q,ne,ye,Fe,nt,v,D){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(q,ne,ye,Fe,nt,v,D)}onCharacter(q,ne,ye){this._options.onCharacter&&this._options.onCharacter(q,ne,ye)}onBackreference(q,ne,ye){this._options.onBackreference&&this._options.onBackreference(q,ne,ye)}onCharacterClassEnter(q,ne,ye){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(q,ne,ye)}onCharacterClassLeave(q,ne,ye){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(q,ne,ye)}onCharacterClassRange(q,ne,ye,Fe){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(q,ne,ye,Fe)}onClassIntersection(q,ne){this._options.onClassIntersection&&this._options.onClassIntersection(q,ne)}onClassSubtraction(q,ne){this._options.onClassSubtraction&&this._options.onClassSubtraction(q,ne)}onClassStringDisjunctionEnter(q){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(q)}onClassStringDisjunctionLeave(q,ne){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(q,ne)}onStringAlternativeEnter(q,ne){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(q,ne)}onStringAlternativeLeave(q,ne,ye){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(q,ne,ye)}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(q,ne,ye){this._reader.reset(q,ne,ye,this._unicodeMode)}rewind(q){this._reader.rewind(q)}advance(){this._reader.advance()}eat(q){return this._reader.eat(q)}eat2(q,ne){return this._reader.eat2(q,ne)}eat3(q,ne,ye){return this._reader.eat3(q,ne,ye)}raise(q,ne){var ye,Fe,nt;throw new Vt(this._srcCtx,{unicode:(ye=ne?.unicode)!==null&&ye!==void 0?ye:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(Fe=ne?.unicodeSets)!==null&&Fe!==void 0?Fe:this._unicodeSetsMode},(nt=ne?.index)!==null&&nt!==void 0?nt:this.index,q)}eatRegExpBody(){let q=this.index,ne=!1,ye=!1;for(;;){let Fe=this.currentCodePoint;if(Fe===-1||Dt(Fe)){let nt=ne?"character class":"regular expression";this.raise(`Unterminated ${nt}`)}if(ye)ye=!1;else if(Fe===fe)ye=!0;else if(Fe===M)ne=!0;else if(Fe===_e)ne=!1;else if(Fe===Z&&!ne||Fe===V&&this.index===q)break;this.advance()}return this.index!==q}consumePattern(){let q=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(q),this.consumeDisjunction();let ne=this.currentCodePoint;if(this.currentCodePoint!==-1){ne===Q&&this.raise("Unmatched ')'"),ne===fe&&this.raise("\\ at end of pattern"),(ne===_e||ne===Re)&&this.raise("Lone quantifier brackets");let ye=String.fromCodePoint(ne);this.raise(`Unexpected character '${ye}'`)}for(let ye of this._backreferenceNames)this._groupNames.has(ye)||this.raise("Invalid named capture referenced");this.onPatternLeave(q,this.index)}countCapturingParens(){let q=this.index,ne=!1,ye=!1,Fe=0,nt=0;for(;(nt=this.currentCodePoint)!==-1;)ye?ye=!1:nt===fe?ye=!0:nt===M?ne=!0:nt===_e?ne=!1:nt===B&&!ne&&(this.nextCodePoint!==ve||this.nextCodePoint2===de&&this.nextCodePoint3!==ee&&this.nextCodePoint3!==T)&&(Fe+=1),this.advance();return this.rewind(q),Fe}consumeDisjunction(){let q=this.index,ne=0;this.onDisjunctionEnter(q);do this.consumeAlternative(ne++);while(this.eat(Ee));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(Ne)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(q,this.index)}consumeAlternative(q){let ne=this.index;for(this.onAlternativeEnter(ne,q);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(ne,this.index,q)}consumeTerm(){return this._unicodeMode||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 q=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(Le))return this.onEdgeAssertion(q,this.index,"start"),!0;if(this.eat(F))return this.onEdgeAssertion(q,this.index,"end"),!0;if(this.eat2(fe,st))return this.onWordBoundaryAssertion(q,this.index,"word",!0),!0;if(this.eat2(fe,at))return this.onWordBoundaryAssertion(q,this.index,"word",!1),!0;if(this.eat2(B,ve)){let ne=this.ecmaVersion>=2018&&this.eat(de),ye=!1;if(this.eat(ee)||(ye=this.eat(T))){let Fe=ne?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(q,Fe,ye),this.consumeDisjunction(),this.eat(Q)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!ne&&!this.strict,this.onLookaroundAssertionLeave(q,this.index,Fe,ye),!0}this.rewind(q)}return!1}consumeQuantifier(q=!1){let ne=this.index,ye=0,Fe=0,nt=!1;if(this.eat(V))ye=0,Fe=Number.POSITIVE_INFINITY;else if(this.eat(R))ye=1,Fe=Number.POSITIVE_INFINITY;else if(this.eat(ve))ye=0,Fe=1;else if(this.eatBracedQuantifier(q))({min:ye,max:Fe}=this._lastRange);else return!1;return nt=!this.eat(ve),q||this.onQuantifier(ne,this.index,ye,Fe,nt),!0}eatBracedQuantifier(q){let ne=this.index;if(this.eat(Ne)){if(this.eatDecimalDigits()){let ye=this._lastIntValue,Fe=ye;if(this.eat($)&&(Fe=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Re))return!q&&Fe=2018?this.consumeGroupSpecifier()&&(ne=this._lastStrValue):this.currentCodePoint===ve&&this.raise("Invalid group"),this.onCapturingGroupEnter(q,ne),this.consumeDisjunction(),this.eat(Q)||this.raise("Unterminated group"),this.onCapturingGroupLeave(q,this.index,ne),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let q=this.index;return this.currentCodePoint===fe&&this.nextCodePoint===kt?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(q,this.index,fe),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let q=this.index,ne=this.currentCodePoint;return ne!==-1&&!kr(ne)?(this.advance(),this.onCharacter(q,this.index,ne),!0):!1}consumeExtendedPatternCharacter(){let q=this.index,ne=this.currentCodePoint;return ne!==-1&&ne!==Le&&ne!==F&&ne!==fe&&ne!==W&&ne!==V&&ne!==R&&ne!==ve&&ne!==B&&ne!==Q&&ne!==M&&ne!==Ee?(this.advance(),this.onCharacter(q,this.index,ne),!0):!1}consumeGroupSpecifier(){if(this.eat(ve)){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._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let q=this.index;if(this.eatDecimalEscape()){let ne=this._lastIntValue;if(ne<=this._numCapturingParens)return this.onBackreference(q-1,this.index,ne),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(q)}return!1}consumeCharacterClassEscape(){var q;let ne=this.index;if(this.eat(Ot))return this._lastIntValue=-1,this.onEscapeCharacterSet(ne-1,this.index,"digit",!1),{};if(this.eat(mt))return this._lastIntValue=-1,this.onEscapeCharacterSet(ne-1,this.index,"digit",!0),{};if(this.eat(re))return this._lastIntValue=-1,this.onEscapeCharacterSet(ne-1,this.index,"space",!1),{};if(this.eat(Y))return this._lastIntValue=-1,this.onEscapeCharacterSet(ne-1,this.index,"space",!0),{};if(this.eat(te))return this._lastIntValue=-1,this.onEscapeCharacterSet(ne-1,this.index,"word",!1),{};if(this.eat(Ae))return this._lastIntValue=-1,this.onEscapeCharacterSet(ne-1,this.index,"word",!0),{};let ye=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(Ie)||(ye=this.eat(wt)))){this._lastIntValue=-1;let Fe=null;if(this.eat(Ne)&&(Fe=this.eatUnicodePropertyValueExpression())&&this.eat(Re))return ye&&Fe.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(ne-1,this.index,"property",Fe.key,Fe.value,ye,(q=Fe.strings)!==null&&q!==void 0?q:!1),{mayContainStrings:Fe.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let q=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(q-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let q=this.index;if(this.eat(St)){if(this.eatGroupName()){let ne=this._lastStrValue;return this._backreferenceNames.add(ne),this.onBackreference(q-1,this.index,ne),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let q=this.index;if(this.eat(M)){let ne=this.eat(Le);this.onCharacterClassEnter(q,ne,this._unicodeSetsMode);let ye=this.consumeClassContents();return this.eat(_e)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),ne&&ye.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(q,this.index,ne),ye}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===_e?{}:this.consumeClassSetExpression();let q=this.strict||this._unicodeMode;for(;;){let ne=this.index;if(!this.consumeClassAtom())break;let ye=this._lastIntValue;if(!this.eat(N))continue;if(this.onCharacter(this.index-1,this.index,N),!this.consumeClassAtom())break;let Fe=this._lastIntValue;if(ye===-1||Fe===-1){q&&this.raise("Invalid character class");continue}ye>Fe&&this.raise("Range out of order in character class"),this.onCharacterClassRange(ne,this.index,ye,Fe)}return{}}consumeClassAtom(){let q=this.index,ne=this.currentCodePoint;if(ne!==-1&&ne!==fe&&ne!==_e)return this.advance(),this._lastIntValue=ne,this.onCharacter(q,this.index,this._lastIntValue),!0;if(this.eat(fe)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===kt)return this._lastIntValue=fe,this.onCharacter(q,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(q)}return!1}consumeClassEscape(){let q=this.index;if(this.eat(at))return this._lastIntValue=C,this.onCharacter(q-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(N))return this._lastIntValue=N,this.onCharacter(q-1,this.index,this._lastIntValue),!0;let ne=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===kt&&(et(ne=this.nextCodePoint)||ne===rt)?(this.advance(),this.advance(),this._lastIntValue=ne%32,this.onCharacter(q-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let q=this.index,ne=!1,ye=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(q))return this.consumeClassUnionRight({}),{};ne=!1}else if(ye=this.consumeClassSetOperand())ne=ye.mayContainStrings;else{let Fe=this.currentCodePoint;Fe===fe&&(this.advance(),this.raise("Invalid escape")),Fe===this.nextCodePoint&&Vr(Fe)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(_,_)){for(;this.currentCodePoint!==_&&(ye=this.consumeClassSetOperand());)if(this.onClassIntersection(q,this.index),ye.mayContainStrings||(ne=!1),!this.eat2(_,_))return{mayContainStrings:ne};this.raise("Invalid character in character class")}if(this.eat2(N,N)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(q,this.index),!this.eat2(N,N))return{mayContainStrings:ne};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:ne})}consumeClassUnionRight(q){let ne=q.mayContainStrings;for(;;){let ye=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(ye);continue}let Fe=this.consumeClassSetOperand();if(Fe){Fe.mayContainStrings&&(ne=!0);continue}break}return{mayContainStrings:ne}}consumeClassSetRangeFromOperator(q){let ne=this.index,ye=this._lastIntValue;if(this.eat(N)){if(this.consumeClassSetCharacter()){let Fe=this._lastIntValue;return(ye===-1||Fe===-1)&&this.raise("Invalid character class"),ye>Fe&&this.raise("Range out of order in character class"),this.onCharacterClassRange(q,this.index,ye,Fe),!0}this.rewind(ne)}return!1}consumeClassSetOperand(){let q=null;return(q=this.consumeNestedClass())||(q=this.consumeClassStringDisjunction())?q:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let q=this.index;if(this.eat(M)){let ne=this.eat(Le);this.onCharacterClassEnter(q,ne,!0);let ye=this.consumeClassContents();return this.eat(_e)||this.raise("Unterminated character class"),ne&&ye.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(q,this.index,ne),ye}if(this.eat(fe)){let ne=this.consumeCharacterClassEscape();if(ne)return ne;this.rewind(q)}return null}consumeClassStringDisjunction(){let q=this.index;if(this.eat3(fe,H,Ne)){this.onClassStringDisjunctionEnter(q);let ne=0,ye=!1;do this.consumeClassString(ne++).mayContainStrings&&(ye=!0);while(this.eat(Ee));if(this.eat(Re))return this.onClassStringDisjunctionLeave(q,this.index),{mayContainStrings:ye};this.raise("Unterminated class string disjunction")}return null}consumeClassString(q){let ne=this.index,ye=0;for(this.onStringAlternativeEnter(ne,q);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)ye++;return this.onStringAlternativeLeave(ne,this.index,q),{mayContainStrings:ye!==1}}consumeClassSetCharacter(){let q=this.index,ne=this.currentCodePoint;if((ne!==this.nextCodePoint||!Vr(ne))&&ne!==-1&&!hs(ne))return this._lastIntValue=ne,this.advance(),this.onCharacter(q,this.index,this._lastIntValue),!0;if(this.eat(fe)){if(this.consumeCharacterEscape())return!0;if(Kn(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(q,this.index,this._lastIntValue),!0;if(this.eat(at))return this._lastIntValue=C,this.onCharacter(q,this.index,this._lastIntValue),!0;this.rewind(q)}return!1}eatGroupName(){if(this.eat(de)){if(this.eatRegExpIdentifierName()&&this.eat(ce))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 q=this.index,ne=!this._unicodeMode&&this.ecmaVersion>=2020,ye=this.currentCodePoint;return this.advance(),ye===fe&&this.eatRegExpUnicodeEscapeSequence(ne)?ye=this._lastIntValue:ne&&it(ye)&&He(this.currentCodePoint)&&(ye=Ve(ye,this.currentCodePoint),this.advance()),gr(ye)?(this._lastIntValue=ye,!0):(this.index!==q&&this.rewind(q),!1)}eatRegExpIdentifierPart(){let q=this.index,ne=!this._unicodeMode&&this.ecmaVersion>=2020,ye=this.currentCodePoint;return this.advance(),ye===fe&&this.eatRegExpUnicodeEscapeSequence(ne)?ye=this._lastIntValue:ne&&it(ye)&&He(this.currentCodePoint)&&(ye=Ve(ye,this.currentCodePoint),this.advance()),or(ye)?(this._lastIntValue=ye,!0):(this.index!==q&&this.rewind(q),!1)}eatCControlLetter(){let q=this.index;if(this.eat(kt)){if(this.eatControlLetter())return!0;this.rewind(q)}return!1}eatZero(){return this.currentCodePoint===le&&!et(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(It)?(this._lastIntValue=w,!0):this.eat(er)?(this._lastIntValue=E,!0):this.eat(ie)?(this._lastIntValue=P,!0):this.eat(ue)?(this._lastIntValue=k,!0):this.eat(X)?(this._lastIntValue=A,!0):!1}eatControlLetter(){let q=this.currentCodePoint;return Ge(q)?(this.advance(),this._lastIntValue=q%32,!0):!1}eatRegExpUnicodeEscapeSequence(q=!1){let ne=this.index,ye=q||this._unicodeMode;if(this.eat(pe)){if(ye&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||ye&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||ye)&&this.raise("Invalid unicode escape"),this.rewind(ne)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let q=this.index;if(this.eatFixedHexDigits(4)){let ne=this._lastIntValue;if(it(ne)&&this.eat(fe)&&this.eat(pe)&&this.eatFixedHexDigits(4)){let ye=this._lastIntValue;if(He(ye))return this._lastIntValue=Ve(ne,ye),!0}this.rewind(q)}return!1}eatRegExpUnicodeCodePointEscape(){let q=this.index;return this.eat(Ne)&&this.eatHexDigits()&&this.eat(Re)&&vt(this._lastIntValue)?!0:(this.rewind(q),!1)}eatIdentityEscape(){let q=this.currentCodePoint;return this.isValidIdentityEscape(q)?(this._lastIntValue=q,this.advance(),!0):!1}isValidIdentityEscape(q){return q===-1?!1:this._unicodeMode?kr(q)||q===Z:this.strict?!i(q):this._nFlag?!(q===kt||q===St):q!==kt}eatDecimalEscape(){this._lastIntValue=0;let q=this.currentCodePoint;if(q>=ae&&q<=J){do this._lastIntValue=10*this._lastIntValue+(q-le),this.advance();while((q=this.currentCodePoint)>=le&&q<=J);return!0}return!1}eatUnicodePropertyValueExpression(){let q=this.index;if(this.eatUnicodePropertyName()&&this.eat(ee)){let ne=this._lastStrValue;if(this.eatUnicodePropertyValue()){let ye=this._lastStrValue;if(O(this.ecmaVersion,ne,ye))return{key:ne,value:ye||null};this.raise("Invalid property name")}}if(this.rewind(q),this.eatLoneUnicodePropertyNameOrValue()){let ne=this._lastStrValue;if(O(this.ecmaVersion,"General_Category",ne))return{key:"General_Category",value:ne||null};if(S(this.ecmaVersion,ne))return{key:ne,value:null};if(this._unicodeSetsMode&&ar(this.ecmaVersion,ne))return{key:ne,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";mn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Jn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let q=this.index;if(this.eat(oe)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(q)}return!1}eatDecimalDigits(){let q=this.index;for(this._lastIntValue=0;et(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+We(this.currentCodePoint),this.advance();return this.index!==q}eatHexDigits(){let q=this.index;for(this._lastIntValue=0;Et(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+We(this.currentCodePoint),this.advance();return this.index!==q}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let q=this._lastIntValue;if(this.eatOctalDigit()){let ne=this._lastIntValue;q<=3&&this.eatOctalDigit()?this._lastIntValue=q*64+ne*8+this._lastIntValue:this._lastIntValue=q*8+ne}else this._lastIntValue=q;return!0}return!1}eatOctalDigit(){let q=this.currentCodePoint;return yt(q)?(this.advance(),this._lastIntValue=q-le,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(q){let ne=this.index;this._lastIntValue=0;for(let ye=0;yev.name===Fe);ye.resolved=nt,nt.references.push(ye)}}onAlternativeEnter(q){let ne=this._node;if(ne.type!=="Assertion"&&ne.type!=="CapturingGroup"&&ne.type!=="Group"&&ne.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:ne,start:q,end:q,raw:"",elements:[]},ne.alternatives.push(this._node)}onAlternativeLeave(q,ne){let ye=this._node;if(ye.type!=="Alternative")throw new Error("UnknownError");ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=ye.parent}onGroupEnter(q){let ne=this._node;if(ne.type!=="Alternative")throw new Error("UnknownError");this._node={type:"Group",parent:ne,start:q,end:q,raw:"",alternatives:[]},ne.elements.push(this._node)}onGroupLeave(q,ne){let ye=this._node;if(ye.type!=="Group"||ye.parent.type!=="Alternative")throw new Error("UnknownError");ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=ye.parent}onCapturingGroupEnter(q,ne){let ye=this._node;if(ye.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:ye,start:q,end:q,raw:"",name:ne,alternatives:[],references:[]},ye.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(q,ne){let ye=this._node;if(ye.type!=="CapturingGroup"||ye.parent.type!=="Alternative")throw new Error("UnknownError");ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=ye.parent}onQuantifier(q,ne,ye,Fe,nt){let v=this._node;if(v.type!=="Alternative")throw new Error("UnknownError");let D=v.elements.pop();if(D==null||D.type==="Quantifier"||D.type==="Assertion"&&D.kind!=="lookahead")throw new Error("UnknownError");let U={type:"Quantifier",parent:v,start:D.start,end:ne,raw:this.source.slice(D.start,ne),min:ye,max:Fe,greedy:nt,element:D};v.elements.push(U),D.parent=U}onLookaroundAssertionEnter(q,ne,ye){let Fe=this._node;if(Fe.type!=="Alternative")throw new Error("UnknownError");let nt=this._node={type:"Assertion",parent:Fe,start:q,end:q,raw:"",kind:ne,negate:ye,alternatives:[]};Fe.elements.push(nt)}onLookaroundAssertionLeave(q,ne){let ye=this._node;if(ye.type!=="Assertion"||ye.parent.type!=="Alternative")throw new Error("UnknownError");ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=ye.parent}onEdgeAssertion(q,ne,ye){let Fe=this._node;if(Fe.type!=="Alternative")throw new Error("UnknownError");Fe.elements.push({type:"Assertion",parent:Fe,start:q,end:ne,raw:this.source.slice(q,ne),kind:ye})}onWordBoundaryAssertion(q,ne,ye,Fe){let nt=this._node;if(nt.type!=="Alternative")throw new Error("UnknownError");nt.elements.push({type:"Assertion",parent:nt,start:q,end:ne,raw:this.source.slice(q,ne),kind:ye,negate:Fe})}onAnyCharacterSet(q,ne,ye){let Fe=this._node;if(Fe.type!=="Alternative")throw new Error("UnknownError");Fe.elements.push({type:"CharacterSet",parent:Fe,start:q,end:ne,raw:this.source.slice(q,ne),kind:ye})}onEscapeCharacterSet(q,ne,ye,Fe){let nt=this._node;if(nt.type!=="Alternative"&&nt.type!=="CharacterClass")throw new Error("UnknownError");nt.elements.push({type:"CharacterSet",parent:nt,start:q,end:ne,raw:this.source.slice(q,ne),kind:ye,negate:Fe})}onUnicodePropertyCharacterSet(q,ne,ye,Fe,nt,v,D){let U=this._node;if(U.type!=="Alternative"&&U.type!=="CharacterClass"||D&&(v||nt))throw new Error("UnknownError");let G={type:"CharacterSet",parent:U,start:q,end:ne,raw:this.source.slice(q,ne),kind:ye,strings:D,key:Fe},xe=D?Object.assign(Object.assign({},G),{value:null,negate:!1,strings:!0}):Object.assign(Object.assign({},G),{value:nt,negate:v,strings:!1});U.elements.push(xe)}onCharacter(q,ne,ye){let Fe=this._node;if(Fe.type!=="Alternative"&&Fe.type!=="CharacterClass"&&Fe.type!=="StringAlternative")throw new Error("UnknownError");Fe.elements.push({type:"Character",parent:Fe,start:q,end:ne,raw:this.source.slice(q,ne),value:ye})}onBackreference(q,ne,ye){let Fe=this._node;if(Fe.type!=="Alternative")throw new Error("UnknownError");let nt={type:"Backreference",parent:Fe,start:q,end:ne,raw:this.source.slice(q,ne),ref:ye,resolved:qs};Fe.elements.push(nt),this._backreferences.push(nt)}onCharacterClassEnter(q,ne,ye){let Fe=this._node,nt={type:"CharacterClass",parent:Fe,start:q,end:q,raw:"",unicodeSets:ye,negate:ne,elements:[]};if(Fe.type==="Alternative"){let v=Object.assign(Object.assign({},nt),{parent:Fe});this._node=v,Fe.elements.push(v)}else if(Fe.type==="CharacterClass"&&Fe.unicodeSets&&ye){let v=Object.assign(Object.assign({},nt),{parent:Fe,unicodeSets:ye});this._node=v,Fe.elements.push(v)}else throw new Error("UnknownError")}onCharacterClassLeave(q,ne){let ye=this._node;if(ye.type!=="CharacterClass"||ye.parent.type!=="Alternative"&&ye.parent.type!=="CharacterClass"||this._expressionBuffer&&ye.elements.length>0)throw new Error("UnknownError");let Fe=ye.parent;ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=Fe;let nt=this._expressionBuffer;if(this._expressionBuffer=null,!nt)return;let v={type:"ExpressionCharacterClass",parent:Fe,start:ye.start,end:ye.end,raw:ye.raw,negate:ye.negate,expression:nt};if(nt.parent=v,ye!==Fe.elements.pop())throw new Error("UnknownError");Fe.elements.push(v)}onCharacterClassRange(q,ne){let ye=this._node;if(ye.type!=="CharacterClass")throw new Error("UnknownError");let Fe=ye.elements,nt=Fe.pop();if(!nt||nt.type!=="Character")throw new Error("UnknownError");if(!ye.unicodeSets){let U=Fe.pop();if(!U||U.type!=="Character"||U.value!==N)throw new Error("UnknownError")}let v=Fe.pop();if(!v||v.type!=="Character")throw new Error("UnknownError");let D={type:"CharacterClassRange",parent:ye,start:q,end:ne,raw:this.source.slice(q,ne),min:v,max:nt};v.parent=D,nt.parent=D,Fe.push(D)}onClassIntersection(q,ne){var ye;let Fe=this._node;if(Fe.type!=="CharacterClass"||!Fe.unicodeSets)throw new Error("UnknownError");let nt=Fe.elements.pop(),v=(ye=this._expressionBuffer)!==null&&ye!==void 0?ye:Fe.elements.pop();if(!v||!nt||v.type==="ClassSubtraction"||v.type!=="ClassIntersection"&&!yn(v)||!yn(nt))throw new Error("UnknownError");let D={type:"ClassIntersection",parent:Fe,start:q,end:ne,raw:this.source.slice(q,ne),left:v,right:nt};v.parent=D,nt.parent=D,this._expressionBuffer=D}onClassSubtraction(q,ne){var ye;let Fe=this._node;if(Fe.type!=="CharacterClass"||!Fe.unicodeSets)throw new Error("UnknownError");let nt=Fe.elements.pop(),v=(ye=this._expressionBuffer)!==null&&ye!==void 0?ye:Fe.elements.pop();if(!v||!nt||v.type==="ClassIntersection"||v.type!=="ClassSubtraction"&&!yn(v)||!yn(nt))throw new Error("UnknownError");let D={type:"ClassSubtraction",parent:Fe,start:q,end:ne,raw:this.source.slice(q,ne),left:v,right:nt};v.parent=D,nt.parent=D,this._expressionBuffer=D}onClassStringDisjunctionEnter(q){let ne=this._node;if(ne.type!=="CharacterClass"||!ne.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:ne,start:q,end:q,raw:"",alternatives:[]},ne.elements.push(this._node)}onClassStringDisjunctionLeave(q,ne){let ye=this._node;if(ye.type!=="ClassStringDisjunction"||ye.parent.type!=="CharacterClass")throw new Error("UnknownError");ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=ye.parent}onStringAlternativeEnter(q){let ne=this._node;if(ne.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:ne,start:q,end:q,raw:"",elements:[]},ne.alternatives.push(this._node)}onStringAlternativeLeave(q,ne){let ye=this._node;if(ye.type!=="StringAlternative")throw new Error("UnknownError");ye.end=ne,ye.raw=this.source.slice(q,ne),this._node=ye.parent}}class ms{constructor(q){this._state=new Ei(q),this._validator=new Pn(this._state)}parseLiteral(q,ne=0,ye=q.length){this._state.source=q,this._validator.validateLiteral(q,ne,ye);let Fe=this._state.pattern,nt=this._state.flags,v={type:"RegExpLiteral",parent:null,start:ne,end:ye,raw:q,pattern:Fe,flags:nt};return Fe.parent=v,nt.parent=v,v}parseFlags(q,ne=0,ye=q.length){return this._state.source=q,this._validator.validateFlags(q,ne,ye),this._state.flags}parsePattern(q,ne=0,ye=q.length,Fe=void 0){return this._state.source=q,this._validator.validatePattern(q,ne,ye,Fe),this._state.pattern}}class Ci{constructor(q){this._handlers=q}visit(q){switch(q.type){case"Alternative":this.visitAlternative(q);break;case"Assertion":this.visitAssertion(q);break;case"Backreference":this.visitBackreference(q);break;case"CapturingGroup":this.visitCapturingGroup(q);break;case"Character":this.visitCharacter(q);break;case"CharacterClass":this.visitCharacterClass(q);break;case"CharacterClassRange":this.visitCharacterClassRange(q);break;case"CharacterSet":this.visitCharacterSet(q);break;case"ClassIntersection":this.visitClassIntersection(q);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(q);break;case"ClassSubtraction":this.visitClassSubtraction(q);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(q);break;case"Flags":this.visitFlags(q);break;case"Group":this.visitGroup(q);break;case"Pattern":this.visitPattern(q);break;case"Quantifier":this.visitQuantifier(q);break;case"RegExpLiteral":this.visitRegExpLiteral(q);break;case"StringAlternative":this.visitStringAlternative(q);break;default:throw new Error(`Unknown type: ${q.type}`)}}visitAlternative(q){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(q),q.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(q)}visitAssertion(q){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(q),(q.kind==="lookahead"||q.kind==="lookbehind")&&q.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(q)}visitBackreference(q){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(q),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(q)}visitCapturingGroup(q){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(q),q.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(q)}visitCharacter(q){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(q),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(q)}visitCharacterClass(q){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(q),q.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(q)}visitCharacterClassRange(q){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(q),this.visitCharacter(q.min),this.visitCharacter(q.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(q)}visitCharacterSet(q){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(q),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(q)}visitClassIntersection(q){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(q),this.visit(q.left),this.visit(q.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(q)}visitClassStringDisjunction(q){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(q),q.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(q)}visitClassSubtraction(q){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(q),this.visit(q.left),this.visit(q.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(q)}visitExpressionCharacterClass(q){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(q),this.visit(q.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(q)}visitFlags(q){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(q),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(q)}visitGroup(q){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(q),q.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(q)}visitPattern(q){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(q),q.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(q)}visitQuantifier(q){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(q),this.visit(q.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(q)}visitRegExpLiteral(q){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(q),this.visitPattern(q.pattern),this.visitFlags(q.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(q)}visitStringAlternative(q){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(q),q.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(q)}}function gs(Qe,q){return new ms(q).parseLiteral(String(Qe))}function _t(Qe,q){new Pn(q).validateLiteral(Qe)}function wi(Qe,q){new Ci(q).visit(Qe)}return cs.AST=r,cs.RegExpParser=ms,cs.RegExpValidator=Pn,cs.parseRegExpLiteral=gs,cs.validateRegExpLiteral=_t,cs.visitRegExpAST=wi,cs}var W0,B_;function HV(){if(B_)return W0;B_=1;let r=Yn().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new r(this)}onPatternEnter(){this._controlChars=[]}onCharacter(t,s,n){n>=0&&n<=31&&(this._source.codePointAt(t)===n||this._source.slice(t,s).startsWith("\\x")||this._source.slice(t,s).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${n.toString(16)}`.slice(-2)}`)}collectControlChars(t,s){let n=typeof s=="string"&&s.includes("u"),i=typeof s=="string"&&s.includes("v");this._controlChars=[],this._source=t;try{this._validator.validatePattern(t,void 0,void 0,{unicode:n,unicodeSets:i})}catch{}return this._controlChars}};return W0={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(t){function s(n){if(n.regex)return n.regex;if(typeof n.value=="string"&&(n.parent.type==="NewExpression"||n.parent.type==="CallExpression")&&n.parent.callee.type==="Identifier"&&n.parent.callee.name==="RegExp"&&n.parent.arguments[0]===n){let i=n.value,a=n.parent.arguments.length>1&&n.parent.arguments[1].type==="Literal"&&typeof n.parent.arguments[1].value=="string"?n.parent.arguments[1].value:null;return{pattern:i,flags:a}}return null}return{Literal(n){let i=s(n);if(i){let{pattern:a,flags:l}=i,o=e.collectControlChars(a,l);o.length>0&&t.report({node:n,messageId:"unexpected",data:{controlChars:o.join(", ")}})}}}}},W0}var Z0,N_;function KV(){return N_||(N_=1,Z0={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(r){return{DebuggerStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),Z0}var z0,L_;function JV(){return L_||(L_=1,z0={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(r){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&r.report({node:e,messageId:"unexpected"})}}}}),z0}var X0,$_;function eW(){return $_||($_=1,X0={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(r){let e=r.sourceCode;return{Literal(t){let s=e.getFirstToken(t);s.type==="RegularExpression"&&s.value[1]==="="&&r.report({node:t,messageId:"unexpected",fix(n){return n.replaceTextRange([s.range[0]+1,s.range[0]+2],"[=]")}})}}}}),X0}var G0,M_;function tW(){return M_||(M_=1,G0={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(r){let e=r.sourceCode;function t(n){return n.type==="Parameter"}function s(n){let i=e.getDeclaredVariables(n);for(let a=0;a=2&&r.report({node:n,messageId:"unexpected",data:{name:l.name}})}}return{FunctionDeclaration:s,FunctionExpression:s}}}),G0}var Y0,j_;function rW(){if(j_)return Y0;j_=1;let r=De();return Y0={meta:{type:"problem",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let t=[];function s(n,i){let a=t.at(-1),l=`$${n}`;return a[l]||(a[l]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),a[l][i?"static":"nonStatic"]}return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},"MethodDefinition, PropertyDefinition"(n){let i=r.getStaticPropertyName(n),a=n.type==="MethodDefinition"?n.kind:"field";if(i===null||a==="constructor")return;let l=s(i,n.static),o;a==="get"?(o=l.init||l.get,l.get=!0):a==="set"?(o=l.init||l.set,l.set=!0):(o=l.init||l.get||l.set,l.init=!0),o&&e.report({node:n,messageId:"unexpected",data:{name:i}})}}}},Y0}var H0,q_;function nW(){if(q_)return H0;q_=1;let r=De();function e(i,a,l){return a.every(o=>l.some(u=>i(o,u)))}function t(i,a){return a.type==="LogicalExpression"&&a.operator===i?[...t(i,a.left),...t(i,a.right)]:[a]}let s=t.bind(null,"||"),n=t.bind(null,"&&");return H0={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/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(i){let a=i.sourceCode;function l(u,c){return u.type!==c.type?!1:u.type==="LogicalExpression"&&(u.operator==="||"||u.operator==="&&")&&u.operator===c.operator?l(u.left,c.left)&&l(u.right,c.right)||l(u.left,c.right)&&l(u.right,c.left):r.equalTokens(u,c,a)}let o=e.bind(null,l);return{IfStatement(u){let c=u.test,p=c.type==="LogicalExpression"&&c.operator==="&&"?[c,...n(c)]:[c],h=u,f=p.map(d=>s(d).map(n));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;let d=s(h.test).map(n);if(f=f.map(m=>m.filter(g=>!d.some(b=>o(b,g)))),f.some(m=>m.length===0)){i.report({node:c,messageId:"unexpected"});break}}}}}},H0}var K0,Q_;function sW(){if(Q_)return K0;Q_=1;let r=De(),e=/^(?:init|get)$/u,t=/^(?:init|set)$/u;class s{constructor(i,a){this.upper=i,this.node=a,this.properties=new Map}getPropertyInfo(i){let a=r.getStaticPropertyName(i);return this.properties.has(a)||this.properties.set(a,{get:!1,set:!1}),this.properties.get(a)}isPropertyDefined(i){let a=this.getPropertyInfo(i);return e.test(i.kind)&&a.get||t.test(i.kind)&&a.set}defineProperty(i){let a=this.getPropertyInfo(i);e.test(i.kind)&&(a.get=!0),t.test(i.kind)&&(a.set=!0)}}return K0={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(n){let i=null;return{ObjectExpression(a){i=new s(i,a)},"ObjectExpression:exit"(){i=i.upper},Property(a){let l=r.getStaticPropertyName(a);a.parent.type==="ObjectExpression"&&l!==null&&(i.isPropertyDefined(a)&&n.report({node:i.node,loc:a.key.loc,messageId:"unexpected",data:{name:l}}),i.defineProperty(a))}}}},K0}var J0,U_;function iW(){if(U_)return J0;U_=1;let r=De();return J0={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){let t=e.sourceCode;function s(n,i){return n.type!==i.type?!1:r.equalTokens(n,i,t)}return{SwitchStatement(n){let i=[];for(let a of n.cases)if(a.test){let l=a.test;i.some(o=>s(o,l))?e.report({node:a,messageId:"unexpected"}):i.push(l)}}}}},J0}var ey,V_;function aW(){if(V_)return ey;V_=1;let r=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function t(c,p){return(p==="named"?r:e).includes(c)}function s(c){if(c.specifiers&&c.specifiers.length>0){let p=c.specifiers,h=p.findIndex(({type:d})=>t(d,"named")||t(d,"namespace")),f=h>-1?h:0;return p[f].type}return c.type==="ExportAllDeclaration"?c.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function n(c,p){let h=s(c),f=s(p);return!(h==="ExportAll"&&f!=="ExportAll"&&f!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&f==="ExportAll"||t(h,"namespace")&&t(f,"named")||t(f,"namespace")&&t(h,"named"))}function i(c,p){let h=0;for(;hh===p).map(({node:h})=>h)}function l(c){return c&&c.source&&c.source.value?c.source.value.trim():""}function o(c,p,h,f,d){let m=l(p);if(h.has(m)){let g=h.get(m),b=[],O=a(g,"import"),S;d&&(S=a(g,"export")),f==="import"?(i(p,O)&&b.push("import"),d&&i(p,S)&&b.push("importAs")):f==="export"&&(i(p,S)&&b.push("export"),i(p,O)&&b.push("exportAs")),b.forEach(C=>c.report({node:p,messageId:C,data:{module:m}}))}}function u(c,p,h,f){return function(d){let m=l(d);if(m){o(c,d,p,h,f);let g={node:d,declarationType:h},b=[g];p.has(m)&&(b=[...p.get(m),g]),p.set(m,b)}}}return ey={meta:{type:"problem",docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/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(c){let p=(c.options[0]||{}).includeExports,h=new Map,f={ImportDeclaration:u(c,h,"import",p)};return p&&(f.ExportNamedDeclaration=u(c,h,"export",p),f.ExportAllDeclaration=u(c,h,"export",p)),f}},ey}var ty,W_;function Go(){if(W_)return ty;W_=1;let r=De();class e{constructor(s,n){this.fixer=s,this.sourceCode=n,this.retainedRange=null}retainRange(s){return this.retainedRange=s,this}retainEnclosingFunction(s){let n=r.getUpperFunction(s);return this.retainRange(n?n.range:this.sourceCode.ast.range)}retainSurroundingTokens(s){let n=this.sourceCode.getTokenBefore(s)||s,i=this.sourceCode.getTokenAfter(s)||s;return this.retainRange([n.range[0],i.range[1]])}replaceTextRange(s,n){let i;return this.retainedRange?i=[Math.min(this.retainedRange[0],s[0]),Math.max(this.retainedRange[1],s[1])]:i=s,this.fixer.replaceTextRange(i,this.sourceCode.text.slice(i[0],s[0])+n+this.sourceCode.text.slice(s[1],i[1]))}remove(s){return this.replaceTextRange(s.range,"")}}return ty=e,ty}var ry,Z_;function oW(){if(Z_)return ry;Z_=1;let r=De(),e=Go();return ry={meta:{type:"suggestion",docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,url:"https://eslint.org/docs/latest/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){let s=t.sourceCode;function n(g,b){if(g.length===0)return!0;let O=b.variableScope;if(b.variables.filter(({defs:k})=>k.length>0).some(({name:k})=>g.includes(k))||b!==O&&b.upper.type==="catch"&&b.upper.variables.some(({name:k})=>g.includes(k))||b.variables.filter(({defs:k,references:E})=>k.length===0&&E.length>0).some(({name:k})=>g.includes(k))||b.through.some(k=>g.includes(k.identifier.name)))return!1;if(b!==O){let k=b.block.range;if(O.variables.filter(({name:A})=>g.includes(A)).some(A=>A.defs.some(({node:{range:w}})=>k[0]<=w[0]&&w[1]<=k[1])))return!1}return!0}function i(g,b){if(g.type==="FunctionDeclaration")return!1;if(g.type!=="BlockStatement")return!0;let O=b.childScopes.find(({block:C})=>C===g);if(!O)return!0;let S=O.variables.map(({name:C})=>C);return n(S,b)}function a(g){let b=s.getScope(g.parent);t.report({node:g,messageId:"unexpected",fix(O){if(!i(g,b))return null;let S=s.getFirstToken(g),C=s.getTokenBefore(S),k=s.getText(g),E=s.getTokenBefore(C),A,w;S.type==="Punctuator"&&S.value==="{"?w=s.getTokenAfter(S):w=S;let P=g.parent.consequent.type!=="BlockStatement"&&E.value!==";",T=/^[([/+`-]/u.test(w.value);if(P&&T)return null;let I=s.getLastToken(g),F=s.getTokenBefore(I);if(F.value!==";"){let L=s.getTokenAfter(I),_=L&&/^[([/+`-]/u.test(L.value),B=L&&L.loc.start.line===F.loc.start.line;if(_||B&&L.value!=="}")return null}return S.type==="Punctuator"&&S.value==="{"?A=k.slice(1,-1):A=k,new e(O,s).retainEnclosingFunction(g).replaceTextRange([C.range[0],g.range[1]],A)}})}function l(g){return g.type==="ReturnStatement"}function o(g){if(g.type==="BlockStatement"){let b=g.body,O=b.at(-1);return O&&l(O)}return l(g)}function u(g){return g.alternate&&g.consequent}function c(g){return g.type==="IfStatement"&&u(g)&&o(g.alternate)&&o(g.consequent)}function p(g){return l(g)||c(g)}function h(g){return g.type==="BlockStatement"?g.body.some(p):p(g)}function f(g){let b=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(b.type))return;let O=[],S;for(let C=g;C.type==="IfStatement";C=C.alternate){if(!C.alternate)return;O.push(C.consequent),S=C.alternate}O.every(h)&&a(S)}function d(g){let b=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(b.type))return;let O=g.alternate;O&&h(g.consequent)&&a(O)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?f:d}}},ry}var ny,z_;function lW(){if(z_)return ny;z_=1;let r=De();return ny={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){let t=e.options[0]||{},s=t.allowEmptyCatch||!1,n=e.sourceCode;return{BlockStatement(i){i.body.length===0&&(r.isFunction(i.parent)||s&&i.parent.type==="CatchClause"||n.getCommentsInside(i).length>0||e.report({node:i,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(a){let l=[i.range[0]+1,i.range[1]-1];return a.replaceTextRange(l," /* empty */ ")}}]}))},SwitchStatement(i){(typeof i.cases>"u"||i.cases.length===0)&&e.report({node:i,messageId:"unexpected",data:{type:"switch"}})}}}},ny}var sy,X_;function uW(){if(X_)return sy;X_=1;let{RegExpParser:r,visitRegExpAST:e}=Yn(),t=new r,s=/\[\]/u;return sy={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(n){return{"Literal[regex]"(i){let{pattern:a,flags:l}=i.regex;if(!s.test(a))return;let o;try{o=t.parsePattern(a,0,a.length,{unicode:l.includes("u"),unicodeSets:l.includes("v")})}catch{return}e(o,{onCharacterClassEnter(u){!u.negate&&u.elements.length===0&&n.report({node:i,messageId:"unexpected"})}})}}}},sy}var iy,G_;function cW(){if(G_)return iy;G_=1;let r=De(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"]);function t(s){let n=s.parent,i;if(s.type==="ArrowFunctionExpression")return"arrowFunctions";if(n.type==="Property"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";i=n.method?"methods":"functions"}else if(n.type==="MethodDefinition"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";if(n.kind==="constructor")return"constructors";i="methods"}else i="functions";let a;if(s.generator)a="generator";else if(s.async)a="async";else return i;return a+i[0].toUpperCase()+i.slice(1)}return iy={meta:{type:"suggestion",docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(s){let i=(s.options[0]||{}).allow||[],a=s.sourceCode;function l(o){let u=t(o),c=r.getFunctionNameWithKind(o),p=a.getTokens(o.body,{includeComments:!0,filter:r.isCommentToken});!i.includes(u)&&o.body.type==="BlockStatement"&&o.body.body.length===0&&p.length===0&&s.report({node:o,loc:o.body.loc,messageId:"unexpected",data:{name:c}})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},iy}var ay,Y_;function fW(){if(Y_)return ay;Y_=1;let r=De();return ay={meta:{type:"problem",docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){let t=e.options[0]||{},s=t.allowObjectPatternsAsParameters||!1;return{ObjectPattern(n){n.properties.length>0||s&&(r.isFunction(n.parent)||n.parent.type==="AssignmentPattern"&&r.isFunction(n.parent.parent)&&n.parent.right.type==="ObjectExpression"&&n.parent.right.properties.length===0)||e.report({node:n,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(n){n.elements.length===0&&e.report({node:n,messageId:"unexpected",data:{type:"array"}})}}}},ay}var oy,H_;function pW(){return H_||(H_=1,oy={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(r){let e=r.sourceCode;return{StaticBlock(t){if(t.body.length===0){let s=e.getLastToken(t);e.getCommentsBefore(s).length===0&&r.report({node:t,messageId:"unexpected"})}}}}}),oy}var ly,K_;function hW(){return K_||(K_=1,ly={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(r){return{BinaryExpression(e){let t=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&t||e.left.type==="Literal"&&e.left.raw==="null"&&t)&&r.report({node:e,messageId:"unexpected"})}}}}),ly}var uy,J_;function dW(){if(J_)return uy;J_=1;let r=De(),e=Object.freeze(["global","window","globalThis"]);function t(s,n){return r.isSpecificMemberAccess(s,null,n)}return uy={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(s){let n=!!(s.options[0]&&s.options[0].allowIndirect),i=s.sourceCode,a=null;function l(h){let f=i.getScope(h).isStrict;a={upper:a,node:h,strict:f,isTopLevelOfScript:!1,defaultThis:!1,initialized:f}}function o(){a=a.upper}function u(h){let f=h.parent,d=h.type==="MemberExpression"?h.property:h,m=f.type==="CallExpression"&&f.callee===h?f:h;s.report({node:m,loc:d.loc,messageId:"unexpected"})}function c(h){for(let f=0;f *.value":l,"PropertyDefinition > *.value:exit":o,StaticBlock:l,"StaticBlock:exit":o,ThisExpression(h){t(h.parent,"eval")&&(a.initialized||(a.initialized=!0,a.defaultThis=r.isDefaultThisBinding(a.node,i)),(a.isTopLevelOfScript||!a.strict&&a.defaultThis)&&u(h.parent))}}}},uy}var cy,e2;function mW(){if(e2)return cy;e2=1;let r=De();return cy={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"unexpected"})})}return{CatchClause(n){t.getDeclaredVariables(n).forEach(s)}}}},cy}var fy,t2;function gW(){if(t2)return fy;t2=1;let r=De();return fy={meta:{type:"suggestion",docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=e.sourceCode,n=new Set(t.exceptions||[]),i=new Set(Object.keys(r.ECMASCRIPT_GLOBALS).filter(p=>p[0].toUpperCase()===p[0]).filter(p=>!n.has(p)));function a(p,h){e.report({node:p,messageId:"unexpected",data:{builtin:h}})}function l(p){return!!(p&&p.parent&&p.parent.type==="MemberExpression"&&p.parent.object===p&&r.getStaticPropertyName(p.parent)==="prototype")}function o(p){return p.parent.type==="MemberExpression"&&p.parent.object===p&&p.parent.parent.type==="AssignmentExpression"&&p.parent.parent.left===p.parent}function u(p){return p.parent.type==="CallExpression"&&p.parent.arguments[0]===p&&r.isSpecificMemberAccess(p.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function c(p){if(!l(p))return;let h=p.parent.parent.type==="ChainExpression"?p.parent.parent:p.parent;o(h)?a(h.parent.parent,p.name):u(h)&&a(h.parent,p.name)}return{"Program:exit"(p){let h=s.getScope(p);i.forEach(f=>{let d=h.set.get(f);d&&d.references&&d.references.map(m=>m.identifier).forEach(c)})}}}},fy}var py,r2;function yW(){if(r2)return py;r2=1;let r=De(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return py={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(t){let s=t.sourceCode,n=null;function i(h){return e.has(h.type)}function a(h){let f=h.parent,d=f.parent.type==="ChainExpression"?f.parent.parent:f.parent;t.report({node:d,messageId:"unexpected",loc:f.property.loc,fix(m){if(!i(d.arguments[0]))return null;let g=[[s.getTokenAfter(f.object,r.isNotClosingParenToken),s.getLastToken(f)],[s.getTokenAfter(f,r.isNotClosingParenToken),s.getLastToken(d)]],b=g[0][0],O=g[1][1];return s.commentsExistBetween(b,O)?null:g.map(([S,C])=>m.removeRange([S.range[0],C.range[1]]))}})}function l(h){if(!r.isSpecificMemberAccess(h.parent,null,"bind"))return!1;let f=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return f.parent.type==="CallExpression"&&f.parent.callee===f&&f.parent.arguments.length===1&&f.parent.arguments[0].type!=="SpreadElement"}function o(h){n={isBound:l(h),thisFound:!1,upper:n}}function u(h){n.isBound&&!n.thisFound&&a(h),n=n.upper}function c(h){l(h)&&a(h)}function p(){n&&(n.thisFound=!0)}return{"ArrowFunctionExpression:exit":c,FunctionDeclaration:o,"FunctionDeclaration:exit":u,FunctionExpression:o,"FunctionExpression:exit":u,ThisExpression:p}}},py}var hy,n2;function xW(){if(n2)return hy;n2=1;let r=De(),e=mr(),t=r.getPrecedence;return hy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary boolean casts",recommended:!0,url:"https://eslint.org/docs/latest/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(s){let n=s.sourceCode,i=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function a(f){return(f.type==="CallExpression"||f.type==="NewExpression")&&f.callee.type==="Identifier"&&f.callee.name==="Boolean"}function l(f){return f.type==="LogicalExpression"&&(f.operator==="||"||f.operator==="&&")&&s.options.length&&s.options[0].enforceForLogicalOperands===!0}function o(f){return a(f.parent)&&f===f.parent.arguments[0]||i.has(f.parent.type)&&f===f.parent.test||f.parent.type==="UnaryExpression"&&f.parent.operator==="!"}function u(f){return f.parent.type==="ChainExpression"?u(f.parent):o(f)||l(f.parent)&&u(f.parent)}function c(f){return!!n.getCommentsInside(f).length}function p(f){return e.isParenthesized(1,f,n)}function h(f,d){if(f.parent.type==="ChainExpression")return h(f.parent,d);if(p(f))return!1;let m=f.parent;switch(m.type){case"CallExpression":case"NewExpression":return d.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return t(d)<=t(m);case"UnaryExpression":return t(d)=Ae||A(Y)))}function I(Y){return l&&Y.test.type==="AssignmentExpression"}function F(Y){for(let Ae=Y;Ae;Ae=Ae.parent)if(Ae.type==="ReturnStatement"||Ae.type==="ArrowFunctionExpression"&&Ae.body.type!=="BlockStatement")return!0;return!1}function L(Y){let Ae=s.getLastToken(Y),Ze=s.getTokenBefore(Ae);return Y.arguments.length>0||e.isOpeningParenToken(Ze)&&e.isClosingParenToken(Ae)&&Y.callee.range[1]0&&kt.test(ot[at-1].value))return}}function rt(){t.report({node:Y,loc:Ae.loc,messageId:"unexpected",fix:W(Y)?ot=>{let at=s.text.slice(Ae.range[1],Ze.range[0]);return ot.replaceTextRange([Ae.range[0],Ze.range[1]],(V(Y)?" ":"")+at+(R(Y)?" ":""))}:null})}if(S){S.reports.push({node:Y,finishReport:rt});return}rt()}function le(Y){T(Y.argument,i(Y))&&Z(Y.argument)}function ae(Y){let Ae=Y.object,Ze=Y.object.type;for(;Ze==="MemberExpression";)Ae=Ae.object,Ze=Ae.type;return Ze==="CallExpression"}function Se(Y){let Ae=Y.callee;T(Ae,i(Y))&&(P(Ae)||!($(Y)||Ae.type==="NewExpression"&&!L(Ae)&&!(Y.type==="NewExpression"&&!L(Y))||Y.type==="NewExpression"&&Ae.type==="MemberExpression"&&ae(Ae)||!Y.optional&&Ae.type==="ChainExpression"))&&Z(Y.callee),Y.arguments.filter(Ze=>T(Ze,b)).forEach(Z)}function J(Y){let Ae=i(Y),Ze=i(Y.left),rt=i(Y.right),ot=Y.operator==="**",at=u&&(Y.left.type==="BinaryExpression"||Y.left.type==="LogicalExpression"),kt=u&&(Y.right.type==="BinaryExpression"||Y.right.type==="LogicalExpression");!at&&w(Y.left)&&(!(["AwaitExpression","UnaryExpression"].includes(Y.left.type)&&ot)&&!e.isMixedLogicalAndCoalesceExpressions(Y.left,Y)&&(Ze>Ae||Ze===Ae&&!ot)||A(Y.left))&&Z(Y.left),!kt&&w(Y.right)&&(!e.isMixedLogicalAndCoalesceExpressions(Y.right,Y)&&(rt>Ae||rt===Ae&&ot)||A(Y.right))&&Z(Y.right)}function me(Y){if(!Y.superClass)return;(i(Y.superClass)>O?w(Y.superClass):P(Y.superClass))&&Z(Y.superClass)}function j(Y){T(Y.argument,b)&&Z(Y.argument)}function de(Y){let Ae=E(Y)?s.getTokenBefore(Y):s.getFirstToken(Y),Ze=s.getTokenAfter(Ae,e.isNotOpeningParenToken),rt=Ze?s.getTokenAfter(Ze):null,ot=Ze?s.getTokenAfter(Ze,e.isNotClosingParenToken):null;e.isOpeningParenToken(Ae)&&(e.isOpeningBraceToken(Ze)||Ze.type==="Keyword"&&(Ze.value==="function"||Ze.value==="class"||Ze.value==="let"&&ot&&(e.isOpeningBracketToken(ot)||ot.type==="Identifier"))||Ze&&Ze.type==="Identifier"&&Ze.value==="async"&&rt&&rt.type==="Keyword"&&rt.value==="function")&&n.add(Ze),(Y.parent.type==="ExportDefaultDeclaration"?T(Y,b):w(Y))&&Z(Y)}function ee(Y,Ae){let Ze=[Y],rt=Y;for(;rt!==Ae;){if(rt=rt.parent,rt===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Ze.push(rt)}return Ze}function ce(Y,Ae){return ee(Ae,Y).reverse()}function ve(Y,Ae){switch(Y.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return Y.params.includes(Ae);case"CallExpression":case"NewExpression":return Y.arguments.includes(Ae);case"MemberExpression":return Y.computed&&Y.property===Ae;case"ConditionalExpression":return Y.consequent===Ae;default:return!1}}function Me(){S={upper:S,inExpressionNodes:[],reports:[]}}function Ue(){let{upper:Y,inExpressionNodes:Ae,reports:Ze}=S;Y?(Y.inExpressionNodes.push(...Ae),Y.reports.push(...Ze)):Ze.forEach(({finishReport:rt})=>rt()),S=Y}function st(Y){return S.reports.some(Ae=>Ae.node===Y)}function mt(Y){S.reports=S.reports.filter(Ae=>Ae.node!==Y)}function dt(Y){return Y.type==="MemberExpression"?Y.parent.type==="NewExpression"&&Y.parent.callee===Y?!0:Y.parent.object===Y&&dt(Y.parent):!1}function wt({left:Y,operator:Ae,right:Ze}){if(Y.type==="Identifier"&&["=","&&=","||=","??="].includes(Ae)){let rt=Ze.type;if(rt==="ArrowFunctionExpression"||(rt==="FunctionExpression"||rt==="ClassExpression")&&!Ze.id)return!0}return!1}return{ArrayExpression(Y){Y.elements.filter(Ae=>Ae&&T(Ae,b)).forEach(Z)},ArrayPattern(Y){Y.elements.filter(Ae=>N(Ae)&&w(Ae)).forEach(Z)},ArrowFunctionExpression(Y){if(!B(Y)&&!(Y.body.type==="ConditionalExpression"&&h)&&Y.body.type!=="BlockStatement"){let Ae=s.getFirstToken(Y.body,e.isNotOpeningParenToken),Ze=s.getTokenBefore(Ae);e.isOpeningParenToken(Ze)&&e.isOpeningBraceToken(Ae)&&n.add(Ae),T(Y.body,b)&&Z(Y.body)}},AssignmentExpression(Y){N(Y.left)&&w(Y.left)&&(!wt(Y)||A(Y.left))&&Z(Y.left),!B(Y)&&T(Y.right,i(Y))&&Z(Y.right)},BinaryExpression(Y){S&&Y.operator==="in"&&S.inExpressionNodes.push(Y),J(Y)},CallExpression:Se,ConditionalExpression(Y){if(B(Y))return;let Ae=new Set(["BinaryExpression","LogicalExpression"]);!(o&&Ae.has(Y.test.type))&&!I(Y)&&T(Y.test,i({type:"LogicalExpression",operator:"||"}))&&Z(Y.test),!(o&&Ae.has(Y.consequent.type))&&T(Y.consequent,b)&&Z(Y.consequent),!(o&&Ae.has(Y.alternate.type))&&T(Y.alternate,b)&&Z(Y.alternate)},DoWhileStatement(Y){w(Y.test)&&!I(Y)&&Z(Y.test)},ExportDefaultDeclaration:Y=>de(Y.declaration),ExpressionStatement:Y=>de(Y.expression),ForInStatement(Y){if(Y.left.type!=="VariableDeclaration"){let Ae=s.getFirstToken(Y.left,e.isNotOpeningParenToken);Ae.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(Ae,e.isNotClosingParenToken))&&n.add(Ae)}w(Y.left)&&Z(Y.left),w(Y.right)&&Z(Y.right)},ForOfStatement(Y){if(Y.left.type!=="VariableDeclaration"){let Ae=s.getFirstToken(Y.left,e.isNotOpeningParenToken);Ae.value==="let"&&n.add(Ae)}w(Y.left)&&Z(Y.left),T(Y.right,b)&&Z(Y.right)},ForStatement(Y){if(Y.test&&w(Y.test)&&!I(Y)&&Z(Y.test),Y.update&&w(Y.update)&&Z(Y.update),Y.init){if(Y.init.type!=="VariableDeclaration"){let Ae=s.getFirstToken(Y.init,e.isNotOpeningParenToken);Ae.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(Ae,e.isNotClosingParenToken))&&n.add(Ae)}Me(),w(Y.init)&&Z(Y.init)}},"ForStatement > *.init:exit"(Y){S.reports.length&&S.inExpressionNodes.forEach(Ae=>{let Ze=ce(Y,Ae),rt;for(let ot=0;ot=i(Y)&&(Y.computed||!(e.isDecimalInteger(Y.object)||Y.object.type==="Literal"&&Y.object.regex))&&Z(Y.object),Ze&&Y.object.type==="CallExpression"&&Z(Y.object),Ze&&!d&&Y.object.type==="NewExpression"&&L(Y.object)&&Z(Y.object),Ze&&Y.optional&&Y.object.type==="ChainExpression"&&Z(Y.object),Y.computed&&w(Y.property)&&Z(Y.property)},"MethodDefinition[computed=true]"(Y){T(Y.key,b)&&Z(Y.key)},NewExpression:Se,ObjectExpression(Y){Y.properties.filter(Ae=>Ae.value&&T(Ae.value,b)).forEach(Ae=>Z(Ae.value))},ObjectPattern(Y){Y.properties.filter(Ae=>{let Ze=Ae.value;return N(Ze)&&w(Ze)}).forEach(Ae=>Z(Ae.value))},Property(Y){if(Y.computed){let{key:Ae}=Y;Ae&&T(Ae,b)&&Z(Ae)}},PropertyDefinition(Y){Y.computed&&T(Y.key,b)&&Z(Y.key),Y.value&&T(Y.value,b)&&Z(Y.value)},RestElement(Y){let Ae=Y.argument;N(Ae)&&w(Ae)&&Z(Ae)},ReturnStatement(Y){let Ae=s.getFirstToken(Y);B(Y)||Y.argument&&Q(Ae,Y.argument)&&!(Y.argument.type==="Literal"&&Y.argument.regex)&&Z(Y.argument)},SequenceExpression(Y){let Ae=i(Y);Y.expressions.filter(Ze=>T(Ze,Ae)).forEach(Z)},SwitchCase(Y){Y.test&&w(Y.test)&&Z(Y.test)},SwitchStatement(Y){w(Y.discriminant)&&Z(Y.discriminant)},ThrowStatement(Y){let Ae=s.getFirstToken(Y);Q(Ae,Y.argument)&&Z(Y.argument)},UnaryExpression:le,UpdateExpression(Y){if(Y.prefix)le(Y);else{let{argument:Ae}=Y,Ze=s.getLastToken(Y);Ae.loc.end.line===Ze.loc.start.line?le(Y):P(Ae)&&Z(Ae)}},AwaitExpression:le,VariableDeclarator(Y){Y.init&&T(Y.init,b)&&!(Y.init.type==="Literal"&&Y.init.regex)&&Z(Y.init)},WhileStatement(Y){w(Y.test)&&!I(Y)&&Z(Y.test)},WithStatement(Y){w(Y.object)&&Z(Y.object)},YieldExpression(Y){if(Y.argument){let Ae=s.getFirstToken(Y);(i(Y.argument)>=i(Y)&&Q(Ae,Y.argument)||P(Y.argument))&&Z(Y.argument)}},ClassDeclaration:me,ClassExpression:me,SpreadElement:j,SpreadProperty:j,ExperimentalSpreadProperty:j,TemplateLiteral(Y){Y.expressions.filter(Ae=>Ae&&w(Ae)).forEach(Z)},AssignmentPattern(Y){let{left:Ae,right:Ze}=Y;N(Ae)&&w(Ae)&&Z(Ae),Ze&&T(Ze,b)&&Z(Ze)}}}},my}var gy,a2;function OW(){if(a2)return gy;a2=1;let r=Go(),e=De();return gy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(t){let s=t.sourceCode;function n(l){let o=s.getTokenAfter(l);if(!o||o.type!=="String")return!0;let u=s.getNodeByRangeIndex(o.range[0]);return!e.isTopLevelExpressionStatement(u.parent)}function i(l){t.report({node:l,messageId:"unexpected",fix:n(l)?o=>new r(o,t.sourceCode).retainSurroundingTokens(l).remove(l):null})}function a(l){for(let o=l;o.type==="Punctuator"&&!e.isClosingBraceToken(o);o=s.getTokenAfter(o))e.isSemicolonToken(o)&&i(o)}return{EmptyStatement(l){let o=l.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(o.type)||i(l)},ClassBody(l){a(s.getFirstToken(l,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(l){a(s.getTokenAfter(l))}}}},gy}var yy,o2;function SW(){if(o2)return yy;o2=1;let{directivesPattern:r}=Ec(),e=/falls?\s?through/iu;function t(a){for(let l of a)if(l.reachable)return!0;return!1}function s(a,l){return l.test(a)&&!r.test(a.trim())}function n(a,l,o,u){let c=o.sourceCode;if(a.consequent.length===1&&a.consequent[0].type==="BlockStatement"){let h=c.getLastToken(a.consequent[0]),f=c.getCommentsBefore(h).pop();if(f&&s(f.value,u))return f}let p=c.getCommentsBefore(l).pop();return p&&s(p.value,u)?p:null}function i(a,l){return l.loc.start.line>a.loc.end.line+1}return yy={meta:{type:"problem",docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""},allowEmptyCase:{type:"boolean",default:!1},reportUnusedFallthroughComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(a){let l=a.options[0]||{},o=[],u=new Set,c=a.sourceCode,p=l.allowEmptyCase||!1,h=l.reportUnusedFallthroughComment||!1,f=null,d=null;return l.commentPattern?d=new RegExp(l.commentPattern,"u"):d=e,{onCodePathStart(){o.push(u),u=new Set},onCodePathEnd(){u=o.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},onCodePathSegmentEnd(m){u.delete(m)},SwitchCase(m){if(f&&f.node.parent===m.parent){let g=n(f.node,m,a,d);f.isFallthrough&&!g?a.report({messageId:m.test?"case":"default",node:m}):h&&!f.isSwitchExitReachable&&g&&a.report({messageId:"unusedFallthroughComment",node:g})}f=null},"SwitchCase:exit"(m){let g=c.getTokenAfter(m),b=t(u),O=b&&(m.consequent.length>0||!p&&i(m,g))&&m.parent.cases.at(-1)!==m;f={node:m,isSwitchExitReachable:b,isFallthrough:O}}}}},yy}var xy,l2;function EW(){if(l2)return xy;l2=1;let r=De();return xy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode;return{Literal(s){typeof s.value=="number"&&(s.raw.startsWith(".")&&e.report({node:s,messageId:"leading",fix(n){let i=t.getTokenBefore(s),a=i&&i.range[1]===s.range[0]&&!r.canTokensBeAdjacent(i,`0${s.raw}`);return n.insertTextBefore(s,a?" 0":"0")}}),s.raw.indexOf(".")===s.raw.length-1&&e.report({node:s,messageId:"trailing",fix:n=>n.insertTextAfter(s,"0")}))}}}},xy}var by,u2;function CW(){if(u2)return by;u2=1;let r=De();return by={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){let t=e.sourceCode;function s(a){r.getModifyingReferences(a).forEach(l=>{e.report({node:l.identifier,messageId:"isAFunction",data:{name:l.identifier.name}})})}function n(a){a.defs[0].type==="FunctionName"&&s(a.references)}function i(a){t.getDeclaredVariables(a).forEach(n)}return{FunctionDeclaration:i,FunctionExpression:i}}},by}var vy,c2;function wW(){return c2||(c2=1,vy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=r.sourceCode,s=e&&e.exceptions||[];function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"globalShouldNotBeModified",data:{name:u.name}})}function i(a){a.writeable===!1&&!s.includes(a.name)&&a.references.forEach(n)}return{Program(a){t.getScope(a).variables.forEach(i)}}}}),vy}var Oy,f2;function kW(){if(f2)return Oy;f2=1;let r=De(),e=/^(?:i|lastI)ndexOf$/u,t=["~","!!","+","- -","-","*"];function s(m){return{boolean:"boolean"in m?m.boolean:!0,number:"number"in m?m.number:!0,string:"string"in m?m.string:!0,disallowTemplateShorthand:"disallowTemplateShorthand"in m?m.disallowTemplateShorthand:!1,allow:m.allow||[]}}function n(m){return m.operator==="!"&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){if(m.operator!=="~")return!1;let g=r.skipChainExpression(m.argument);return g.type==="CallExpression"&&r.isSpecificMemberAccess(g.callee,null,e)}function a(m){return m.operator==="*"&&(m.left.type==="Literal"&&m.left.value===1||m.right.type==="Literal"&&m.right.value===1)}function l(m,g){return m.type==="BinaryExpression"&&m.operator==="*"&&m.right.type==="Literal"&&m.right.value===1&&m.parent.type==="BinaryExpression"&&m.parent.operator==="/"&&m.parent.left===m&&!r.isParenthesised(g,m)}function o(m){return m.type==="Literal"&&typeof m.value=="number"||m.type==="CallExpression"&&(m.callee.name==="Number"||m.callee.name==="parseInt"||m.callee.name==="parseFloat")}function u(m){let g=m.left,b=m.right;return b.type!=="BinaryExpression"&&!o(b)?b:g.type!=="BinaryExpression"&&!o(g)?g:null}function c(m){return r.isStringLiteral(m)||m.type==="CallExpression"&&m.callee.type==="Identifier"&&m.callee.name==="String"}function p(m){return r.isStringLiteral(m)&&(m.value===""||m.type==="TemplateLiteral"&&m.quasis.length===1&&m.quasis[0].value.cooked==="")}function h(m){return m.operator==="+"&&(p(m.left)&&!c(m.right)||p(m.right)&&!c(m.left))}function f(m){return m.operator==="+="&&p(m.right)}function d(m){return p(m.left)?m.right:m.left}return Oy={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,url:"https://eslint.org/docs/latest/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:t},uniqueItems:!0}},additionalProperties:!1}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(m){let g=s(m.options[0]||{}),b=m.sourceCode;function O(S,C,k,E){function A(w){let P=b.getTokenBefore(S);return P?.range[1]===S.range[0]&&!r.canTokensBeAdjacent(P,C)?w.replaceText(S,` ${C}`):w.replaceText(S,C)}m.report({node:S,messageId:"implicitCoercion",data:{recommendation:C},fix(w){return E?A(w):null},suggest:[{messageId:"useRecommendation",data:{recommendation:C},fix(w){return E||!k?null:A(w)}}]})}return{UnaryExpression(S){let C;if(C=g.allow.includes("!!"),!C&&g.boolean&&n(S)){let k=`Boolean(${b.getText(S.argument.argument)})`,A=r.getVariableByName(b.getScope(S),"Boolean")?.identifiers.length===0;O(S,k,!0,A)}if(C=g.allow.includes("~"),!C&&g.boolean&&i(S)){let k=S.argument.type==="ChainExpression"?">= 0":"!== -1",E=`${b.getText(S.argument)} ${k}`;O(S,E,!1,!1)}if(C=g.allow.includes("+"),!C&&g.number&&S.operator==="+"&&!o(S.argument)){let k=`Number(${b.getText(S.argument)})`;O(S,k,!0,!1)}if(C=g.allow.includes("- -"),!C&&g.number&&S.operator==="-"&&S.argument.type==="UnaryExpression"&&S.argument.operator==="-"&&!o(S.argument.argument)){let k=`Number(${b.getText(S.argument.argument)})`;O(S,k,!0,!1)}},"BinaryExpression:exit"(S){let C;C=g.allow.includes("*");let k=!C&&g.number&&a(S)&&!l(S,b)&&u(S);if(k){let E=`Number(${b.getText(k)})`;O(S,E,!0,!1)}if(C=g.allow.includes("-"),!C&&g.number&&S.operator==="-"&&S.right.type==="Literal"&&S.right.value===0&&!o(S.left)){let E=`Number(${b.getText(S.left)})`;O(S,E,!0,!1)}if(C=g.allow.includes("+"),!C&&g.string&&h(S)){let E=`String(${b.getText(d(S))})`;O(S,E,!0,!1)}},AssignmentExpression(S){if(!g.allow.includes("+")&&g.string&&f(S)){let k=b.getText(d(S)),E=`${k} = String(${k})`;O(S,E,!0,!1)}},TemplateLiteral(S){if(!g.disallowTemplateShorthand||S.parent.type==="TaggedTemplateExpression"||S.expressions.length!==1||S.quasis[0].value.cooked!==""||S.quasis[1].value.cooked!==""||c(S.expressions[0]))return;let k=`String(${b.getText(S.expressions[0])})`;O(S,k,!0,!1)}}}},Oy}var Sy,p2;function AW(){return p2||(p2=1,Sy={meta:{type:"suggestion",docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]&&r.options[0].lexicalBindings===!0,t=r.sourceCode;function s(n,i,a){r.report({node:n,messageId:i,data:{kind:a}})}return{Program(n){let i=t.getScope(n);i.variables.forEach(a=>{let l=a.writeable===!1;a.writeable!==!0&&(a.eslintExported||a.defs.forEach(u=>{let c=u.node;(u.type==="FunctionName"||u.type==="Variable"&&u.parent.kind==="var")&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalNonLexicalBinding",u.type==="FunctionName"?"function":`'${u.parent.kind}'`)),e&&(u.type==="ClassName"||u.type==="Variable"&&(u.parent.kind==="let"||u.parent.kind==="const"))&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalLexicalBinding",u.type==="ClassName"?"class":`'${u.parent.kind}'`))}))}),i.implicit.variables.forEach(a=>{let l=i.set.get(a.name),o;if(l){if(l.writeable)return;o="assignmentToReadonlyGlobal"}else o="globalVariableLeak";a.defs.forEach(u=>{s(u.node,o)})})}}}}),Sy}var Ey,h2;function PW(){if(h2)return Ey;h2=1;let r=De(),{getStaticValue:e}=mr();return Ey={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(t){let s=Object.freeze(["global","window","globalThis"]),n=/^(?:set(?:Interval|Timeout)|execScript)$/u,i=t.sourceCode;function a(u){return u.type==="Literal"&&typeof u.value=="string"||u.type==="TemplateLiteral"?!0:u.type==="BinaryExpression"&&u.operator==="+"?a(u.left)||a(u.right):!1}function l(u){let[c]=u.arguments;if(c){let p=e(c,i.getScope(u));(p&&typeof p.value=="string"||a(c))&&t.report({node:u,messageId:"impliedEval"})}}function o(u){let{references:c,name:p}=u;c.forEach(h=>{let d=h.identifier.parent;for(;r.isSpecificMemberAccess(d,null,p);)d=d.parent;if(r.isSpecificMemberAccess(d,null,n)){let m=d.parent.type==="ChainExpression"?d.parent:d,g=m.parent;g.type==="CallExpression"&&g.callee===m&&l(g)}})}return{CallExpression(u){r.isSpecificId(u.callee,n)&&l(u)},"Program:exit"(u){let c=i.getScope(u);s.map(p=>r.getVariableByName(c,p)).filter(p=>!!p&&p.defs.length===0).forEach(o)}}}},Ey}var Cy,d2;function TW(){if(d2)return Cy;d2=1;let{findVariable:r}=mr(),e=De(),t={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function s(u){let{parent:c}=u;return c.type==="AssignmentExpression"&&c.left===u||c.type==="ArrayPattern"||c.type==="Property"&&c.value===u&&c.parent.type==="ObjectPattern"||c.type==="RestElement"||c.type==="AssignmentPattern"&&c.left===u}function n(u){let c=u.parent.type==="ChainExpression"?u.parent:u,{parent:p}=c;return p.type==="UpdateExpression"&&p.argument===c||p.type==="UnaryExpression"&&p.operator==="delete"&&p.argument===c}function i(u){let{parent:c}=u;return c.type==="ForInStatement"&&c.left===u||c.type==="ForOfStatement"&&c.left===u}function a(u,c){let{parent:p}=u;if(p.type!=="CallExpression"||p.arguments[0]!==u)return!1;let h=e.skipChainExpression(p.callee);if(!e.isSpecificMemberAccess(h,"Object",t.Object)&&!e.isSpecificMemberAccess(h,"Reflect",t.Reflect))return!1;let f=r(c,h.object);return f!==null&&f.scope.type==="global"}function l(u,c){let{parent:p}=u;return p.type==="MemberExpression"&&p.object===u&&(s(p)||n(p)||i(p))||a(u,c)}function o(u){let c=u.parent;for(;c&&c.type!=="AssignmentExpression"&&c.type!=="UpdateExpression"&&c.type!=="UnaryExpression"&&c.type!=="CallExpression"&&c.type!=="ForInStatement"&&c.type!=="ForOfStatement";)c=c.parent;return c||u}return Cy={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(u){let c=u.sourceCode;return{ImportDeclaration(p){let h=c.getScope(p);for(let f of c.getDeclaredVariables(p)){let d=f.defs.some(g=>g.node.type==="ImportNamespaceSpecifier"),m=null;for(let g of f.references){let b=g.identifier;b!==m&&(m=b,g.isWrite()?u.report({node:o(b),messageId:"readonly",data:{name:b.name}}):d&&l(b,h)&&u.report({node:o(b),messageId:"readonlyMember",data:{name:b.name}}))}}}}}},Cy}var wy,m2;function DW(){if(m2)return wy;m2=1;let r=De();return wy={meta:{type:"suggestion",docs:{description:"Disallow inline comments after code",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){let t=e.sourceCode,s=e.options[0],n;s&&s.ignorePattern&&(n=new RegExp(s.ignorePattern,"u"));function i(a){let l=String(t.lines[a.loc.start.line-1]),o=String(t.lines[a.loc.end.line-1]),u=l.slice(0,a.loc.start.column).trim(),c=o.slice(a.loc.end.column).trim(),p=!u,h=!c;if(!(p&&h)&&!(n&&n.test(a.value))){if((p||u==="{")&&(h||c==="}")){let f=t.getNodeByRangeIndex(a.range[0]);if(f&&f.type==="JSXEmptyExpression")return}r.isDirectiveComment(a)||e.report({node:a,messageId:"unexpectedInlineComment"})}}return{Program(){t.getAllComments().filter(a=>a.type!=="Shebang").forEach(i)}}}},wy}var ky,g2;function _W(){if(g2)return ky;g2=1;let r=De(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),t=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function s(n){let{parent:i}=n;for(;i;){if(i.type==="StaticBlock")return"class static block body";if(r.isFunction(i))return"function body";({parent:i}=i)}return"program"}return ky={meta:{type:"problem",docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(n){let i=n.sourceCode,a=n.languageOptions.ecmaVersion,l=n.options[1]?.blockScopedFunctions??"allow";function o(u){let c=u.parent;c.type==="BlockStatement"&&t.has(c.parent.type)||e.has(c.type)||n.report({node:u,messageId:"moveDeclToRoot",data:{type:u.type==="FunctionDeclaration"?"function":"variable",body:s(u)}})}return{FunctionDeclaration(u){let c=i.getScope(u).upper.isStrict;l==="allow"&&a>=2015&&c||o(u)},VariableDeclaration(u){n.options[0]==="both"&&u.kind==="var"&&o(u)}}}},ky}var Ay,y2;function IW(){if(y2)return Ay;y2=1;let r=Yn().RegExpValidator,e=new r,t=/[dgimsuvy]/gu,s=void 0;return Ay={meta:{type:"problem",docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(n){let i=n.options[0],a=null;if(i&&i.allowConstructorFlags){let h=i.allowConstructorFlags.join("").replace(t,"");h&&(a=new RegExp(`[${h}]`,"gu"))}function l(h,f){n.report({node:h,messageId:"regexMessage",data:{message:f}})}function o(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function u(h){return h.arguments.length<2?"":o(h.arguments[1])?h.arguments[1].value:null}function c(h,f){try{return e.validatePattern(h,s,s,f),null}catch(d){return d.message}}function p(h){if(!h)return null;try{e.validateFlags(h)}catch{return`Invalid flags supplied to RegExp constructor '${h}'`}return h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;let f=u(h);f&&a&&(f=f.replace(a,""));let d=p(f);if(d){l(h,d);return}if(!o(h.arguments[0]))return;let m=h.arguments[0].value;d=f===null?c(m,{unicode:!0,unicodeSets:!1})&&c(m,{unicode:!1,unicodeSets:!0})&&c(m,{unicode:!1,unicodeSets:!1}):c(m,{unicode:f.includes("u"),unicodeSets:f.includes("v")}),d&&l(h,d)}}}},Ay}var Py,x2;function FW(){if(x2)return Py;x2=1;let r=De();function e(t,s){return t.origin==="function"&&s.type==="ArrowFunctionExpression"}return Py={meta:{type:"suggestion",docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(t){let n=(t.options[0]||{}).capIsConstructor!==!1,i=[],a=t.sourceCode;return i.getCurrent=function(){let l=this.at(-1);return l.init||(l.init=!0,l.valid=!r.isDefaultThisBinding(l.node,a,{capIsConstructor:n})),l},{onCodePathStart(l,o){if(!e(l,o)){if(l.origin==="program"){let u=a.getScope(o),c=t.languageOptions.parserOptions.ecmaFeatures||{};i.push({init:!0,node:o,valid:!(o.sourceType==="module"||c.globalReturn&&u.childScopes[0].isStrict)});return}i.push({init:!a.getScope(o).isStrict,node:o,valid:!0})}},onCodePathEnd(l,o){e(l,o)||i.pop()},ThisExpression(l){let o=i.getCurrent();o&&!o.valid&&t.report({node:l,messageId:"unexpectedThis"})}}}},Py}var Ty,b2;function RW(){if(b2)return Ty;b2=1;let r=De(),e=/[\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,t=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mgu,s=/[\u2028\u2029]/mgu,n=r.createGlobalLinebreakMatcher();return Ty={meta:{type:"problem",docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/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},skipJSXText:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(i){let a=[],l=i.options[0]||{},o=!!l.skipComments,u=l.skipStrings!==!1,c=!!l.skipRegExps,p=!!l.skipTemplates,h=!!l.skipJSXText,f=i.sourceCode,d=f.getAllComments();function m(w){let P=w.loc.start,T=w.loc.end;a=a.filter(({loc:{start:I}})=>I.line=T.column||I.line>T.line)}function g(w){let P=u&&typeof w.value=="string",T=c&&!!w.regex;(P||T)&&e.test(w.raw)&&m(w)}function b(w){typeof w.value.raw=="string"&&e.test(w.value.raw)&&m(w)}function O(w){e.test(w.value)&&m(w)}function S(w){e.test(w.raw)&&m(w)}function C(w){f.lines.forEach((T,I)=>{let F=I+1,L;for(;(L=t.exec(T))!==null;)a.push({node:w,messageId:"noIrregularWhitespace",loc:{start:{line:F,column:L.index},end:{line:F,column:L.index+L[0].length}}})})}function k(w){let P=f.getText(),T=f.lines,I=P.match(n),F=-1,L;for(;(L=s.exec(P))!==null;){let _=I.indexOf(L[0],F+1)||0;a.push({node:w,messageId:"noIrregularWhitespace",loc:{start:{line:_+1,column:T[_].length},end:{line:_+2,column:0}}}),F=_}}function E(){}let A={};return e.test(f.getText())?(A.Program=function(w){C(w),k(w)},A.Literal=g,A.TemplateElement=p?b:E,A.JSXText=h?S:E,A["Program:exit"]=function(){o&&d.forEach(O),a.forEach(w=>i.report(w))}):A.Program=E,A}},Ty}var Dy,v2;function BW(){if(v2)return Dy;v2=1;let{getStaticPropertyName:r}=De();return Dy={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(t){r(t)==="__iterator__"&&e.report({node:t,messageId:"noIterator"})}}}},Dy}var _y,O2;function NW(){if(O2)return _y;O2=1;let r=De();return _y={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){let t=e.sourceCode;function s(n,i){return r.getVariableByName(n,i)!==null}return{LabeledStatement(n){let i=t.getScope(n);s(i,n.label.name)&&e.report({node:n,messageId:"identifierClashWithLabel"})}}}},_y}var Iy,S2;function LW(){if(S2)return Iy;S2=1;let r=De();return Iy={meta:{type:"suggestion",docs:{description:"Disallow labeled statements",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s=t&&t.allowLoop,n=t&&t.allowSwitch,i=null;function a(u){return r.isLoop(u)?"loop":u.type==="SwitchStatement"?"switch":"other"}function l(u){switch(u){case"loop":return s;case"switch":return n;default:return!1}}function o(u){let c=i;for(;c;){if(c.label===u)return c.kind;c=c.upper}return"other"}return{LabeledStatement(u){i={label:u.label.name,kind:a(u.body),upper:i}},"LabeledStatement:exit"(u){l(i.kind)||e.report({node:u,messageId:"unexpectedLabel"}),i=i.upper},BreakStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInBreak"})},ContinueStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInContinue"})}}}},Iy}var Fy,E2;function $W(){return E2||(E2=1,Fy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(r){let e=[],t,s=r.sourceCode;function n(l){let o=l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";r.report({node:l,messageId:o})}function i(l){return l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"||l.parent.type==="Program"||l.parent.type==="SwitchCase"&&!(l.parent.consequent[0]===l&&l.parent.consequent.length===1)}function a(l){if(e.length===0)return;let o=l.parent;e.at(-1)===o&&e.pop()}return t={BlockStatement(l){i(l)&&n(l)}},r.languageOptions.ecmaVersion>=2015&&(t={BlockStatement(l){i(l)&&e.push(l)},"BlockStatement:exit"(l){e.length>0&&e.at(-1)===l?(e.pop(),n(l)):(l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock")&&l.parent.body.length===1&&n(l)}},t.VariableDeclaration=function(l){l.kind!=="var"&&a(l)},t.FunctionDeclaration=function(l){s.getScope(l).isStrict&&a(l)},t.ClassDeclaration=a),t}}),Fy}var Ry,C2;function MW(){return C2||(C2=1,Ry={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(r){let e=r.sourceCode;return{IfStatement(t){let s=t.parent,n=s.parent;s&&s.type==="BlockStatement"&&s.body.length===1&&n&&n.type==="IfStatement"&&s===n.alternate&&r.report({node:t,messageId:"unexpectedLonelyIf",fix(i){let a=e.getFirstToken(s),l=e.getLastToken(s),o=e.getTokenBefore(a),u=e.getTokenAfter(l),c=e.getLastToken(t.consequent),p=e.getText();return p.slice(a.range[1],t.range[0]).trim()||p.slice(t.range[1],l.range[0]).trim()||t.consequent.type!=="BlockStatement"&&c.value!==";"&&u&&(t.consequent.loc.end.line===u.loc.start.line||/^[([/+`-]/u.test(u.value)||c.value==="++"||c.value==="--")?null:i.replaceTextRange([a.range[0],l.range[1]],(o.range[1]===a.range[0]?" ":"")+e.getText(t))}})}}}}),Ry}var By,w2;function jW(){if(w2)return By;w2=1;function r(s){for(let n=s;n.parent;n=n.parent){let i=n.parent;switch(i.type){case"WhileStatement":case"DoWhileStatement":return i;case"ForStatement":if(i.init!==n)return i;break;case"ForInStatement":case"ForOfStatement":if(i.right!==n)return i;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null}}return null}function e(s,n){let i=n?n.range[1]:0,a=s,l=s;for(;l&&l.range[0]>=i;)a=l,l=r(l);return a}function t(s,n){let i=n.resolved,a=i&&i.defs[0],l=a&&a.parent,o=l&&l.type==="VariableDeclaration"?l.kind:"";if(o==="const"||o==="let"&&l.range[0]>s.range[0]&&l.range[1]c.resolved&&!t(l,c)).map(c=>c.identifier.name);u.length>0&&s.report({node:a,messageId:"unsafeRefs",data:{varNames:`'${u.join("', '")}'`}})}return{ArrowFunctionExpression:i,FunctionExpression:i,FunctionDeclaration:i}}},By}var Ny,k2;function qW(){return k2||(k2=1,Ny={meta:{type:"problem",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(r){function e(f){return typeof f.value=="number"}function t(f){return f.raw.replace(/_/gu,"")}function s(f){return["0x","0X","0b","0B","0o","0O"].every(m=>!f.raw.startsWith(m))&&!/^0[0-7]+$/u.test(f.raw)}function n(f){let d=t(f).toUpperCase(),m;return d.startsWith("0B")?m=2:d.startsWith("0X")?m=16:m=8,!d.endsWith(f.value.toString(m).toUpperCase())}function i(f){return`${f[0]}.${f.slice(1)}`}function a(f){for(let d=0;d=0;d--)if(f[d]!=="0")return f.slice(0,d+1);return f}function o(f){let d=l(a(f));return{magnitude:f.startsWith("0")?f.length-2:f.length-1,coefficient:i(d)}}function u(f){let d=a(f);if(d.startsWith(".")){let m=d.slice(1),g=a(m);return{magnitude:g.length-m.length-1,coefficient:i(g)}}return{magnitude:d.indexOf(".")-1,coefficient:i(d.replace(".",""))}}function c(f){let d=f.replace("E","e").split("e"),m=d[0],g=f.includes(".")?u(m):o(m),b=g.coefficient,O=d.length>1?parseInt(d[1],10)+g.magnitude:g.magnitude;return`${b}e${O}`}function p(f){let d=c(t(f)),m=d.split("e")[0].replace(".","").length;if(m>100)return!0;let g=f.value.toPrecision(m),b=c(g);return d!==b}function h(f){return s(f)?p(f):n(f)}return{Literal(f){f.value&&e(f)&&h(f)&&r.report({messageId:"noLossOfPrecision",node:f})}}}}),Ny}var Ly,A2;function QW(){if(A2)return Ly;A2=1;let r=De(),e=2**32-1;function t(s){return typeof s=="string"?BigInt(s.slice(0,-1)):s}return Ly={meta:{type:"suggestion",docs:{description:"Disallow magic numbers",recommended:!1,url:"https://eslint.org/docs/latest/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},ignoreClassFieldInitialValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(s){let n=s.options[0]||{},i=!!n.detectObjects,a=!!n.enforceConst,l=new Set((n.ignore||[]).map(t)),o=!!n.ignoreArrayIndexes,u=!!n.ignoreDefaultValues,c=!!n.ignoreClassFieldInitialValues,p=i?[]:["ObjectExpression","Property","AssignmentExpression"];function h(O){return l.has(O)}function f(O){let S=O.parent;return S.type==="AssignmentPattern"&&S.right===O}function d(O){let S=O.parent;return S.type==="PropertyDefinition"&&S.value===O}function m(O){let S=O.parent;return S.type==="CallExpression"&&O===S.arguments[1]&&(r.isSpecificId(S.callee,"parseInt")||r.isSpecificMemberAccess(S.callee,"Number","parseInt"))}function g(O){return O.parent.type.indexOf("JSX")===0}function b(O,S){let C=O.parent;return C.type==="MemberExpression"&&C.property===O&&(Number.isInteger(S)||typeof S=="bigint")&&S>=0&&S=127995&&e<=127999}),My}var jy,D2;function WW(){return D2||(D2=1,jy=function(e){return e>=127462&&e<=127487}),jy}var qy,_2;function ZW(){return _2||(_2=1,qy=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),qy}var Qy,I2;function zW(){if(I2)return Qy;I2=1;let r=UW(),e=VW(),t=WW(),s=ZW();return Qy={isCombiningCharacter:r,isEmojiModifier:e,isRegionalIndicatorSymbol:t,isSurrogatePair:s},Qy}var Uy,F2;function MO(){if(F2)return Uy;F2=1;let{RegExpValidator:r}=Yn(),e=2024;function t(s,n){if(s<=5)return!1;let i=new r({ecmaVersion:Math.min(s,e)});try{i.validatePattern(n,void 0,void 0,{unicode:!0})}catch{return!1}return!0}return Uy={isValidWithUnicodeFlag:t,REGEXPP_LATEST_ECMA_VERSION:e},Uy}var Vy,R2;function XW(){if(R2)return Vy;R2=1;class r{constructor(p,h){this.start=p,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(p){this.source=p,this.pos=0}advance(p){this.pos+=p}read(p=0,h=1){let f=p+this.pos;return this.source.slice(f,f+h)}}let t={__proto__:null,b:"\b",f:"\f",n:` +`;return u.insertTextBefore(o,p)}return null}})}}}}),S0}var E0,p_;function TV(){if(p_)return E0;p_=1;let r=Pe();return E0={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=t.ignoreChainWithDepth||2,n=e.sourceCode;function i(l){return l.computed?l.optional?"?.[":"[":l.optional?"?.":"."}function a(l){let o=i(l),u=n.getText(l.property).split(r.LINEBREAK_MATCHER),c=l.computed&&u.length===1?"]":"";return o+u[0]+c}return{"CallExpression:exit"(l){let o=r.skipChainExpression(l.callee);if(o.type!=="MemberExpression")return;let u=r.skipChainExpression(o.object),c=1;for(;u&&u.callee;)c+=1,u=r.skipChainExpression(r.skipChainExpression(u.callee).object);if(c>s&&r.isTokenOnSameLine(o.object,o.property)){let p=n.getTokenAfter(o.object,r.isNotClosingParenToken);e.report({node:o.property,loc:{start:p.loc.start,end:o.loc.end},messageId:"expected",data:{callee:a(o)},fix(h){return h.insertTextBefore(p,` +`)}})}}}}},E0}var C0,h_;function DV(){if(h_)return C0;h_=1;let{getStaticPropertyName:r,getVariableByName:e,skipChainExpression:t}=Pe();function s(l){return/^(alert|confirm|prompt)$/u.test(l)}function n(l,o){let u=l.references.filter(c=>c.identifier.range[0]===o.range[0]&&c.identifier.range[1]===o.range[1]);return u.length===1?u[0]:null}function i(l,o){let u=n(l,o);return u&&u.resolved&&u.resolved.defs.length>0}function a(l,o){return l.type==="global"&&o.type==="ThisExpression"?!0:o.type==="Identifier"&&(o.name==="window"||o.name==="globalThis"&&e(l,"globalThis"))?!i(l,o):!1}return C0={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(l){let o=l.sourceCode;return{CallExpression(u){let c=t(u.callee),p=o.getScope(u);if(c.type==="Identifier"){let h=c.name;!i(p,c)&&s(c.name)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}else if(c.type==="MemberExpression"&&a(p,c.object)){let h=r(c);s(h)&&l.report({node:u,messageId:"unexpected",data:{name:h}})}}}}},C0}var w0,d_;function _V(){if(d_)return w0;d_=1;let{getVariableByName:r,isClosingParenToken:e,isOpeningParenToken:t,isStartOfExpressionStatement:s,needsPrecedingSemicolon:n}=Pe();return w0={meta:{type:"suggestion",docs:{description:"Disallow `Array` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(i){let a=i.sourceCode;function l(u){let c=a.getLastToken(u);if(!e(c))return"";let p=u.callee;do if(p=a.getTokenAfter(p),!p||p===c)return"";while(!t(p));return a.text.slice(p.range[1],c.range[0])}function o(u){if(u.callee.type!=="Identifier"||u.callee.name!=="Array"||u.arguments.length===1&&u.arguments[0].type!=="SpreadElement")return;let c=r(a.getScope(u),"Array");if(c&&c.identifiers.length===0){let p=l(u),h,f;s(u)&&n(a,u)?(h=`;[${p}]`,f="useLiteralAfterSemicolon"):(h=`[${p}]`,f="useLiteral"),i.report({node:u,messageId:"preferLiteral",suggest:[{messageId:f,fix:d=>d.replaceText(u,h)}]})}}return{CallExpression:o,NewExpression:o}}},w0}var k0,m_;function IV(){return m_||(m_=1,k0={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(r){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){r.report({node:r.sourceCode.getFirstToken(e.arguments[0],t=>t.value==="async"),messageId:"async"})}}}}),k0}var A0,g_;function FV(){if(g_)return A0;g_=1;function r(t){let s=t.type;return s==="FunctionDeclaration"||s==="FunctionExpression"||s==="ArrowFunctionExpression"||s==="ForOfStatement"&&t.await===!0}function e(t,s){switch(s.type){case"ForStatement":return t===s.test||t===s.update||t===s.body;case"ForOfStatement":case"ForInStatement":return t===s.body;case"WhileStatement":case"DoWhileStatement":return t===s.test||t===s.body;default:return!1}}return A0={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(t){function s(n){if(n.type==="ForOfStatement"&&!n.await)return;let i=n,a=i.parent;for(;a&&!r(a);){if(e(i,a)){t.report({node:n,messageId:"unexpectedAwait"});return}i=a,a=a.parent}}return{AwaitExpression:s,ForOfStatement:s}}},A0}var P0,y_;function RV(){if(y_)return P0;y_=1;let r=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return P0={meta:{type:"suggestion",docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:r},uniqueItems:!0},int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){let t=e.options[0]||{},s=t.allow||[],n=t.int32Hint===!0;function i(c){e.report({node:c,messageId:"unexpected",data:{operator:c.operator}})}function a(c){return r.includes(c.operator)}function l(c){return s.includes(c.operator)}function o(c){return n&&c.operator==="|"&&c.right&&c.right.type==="Literal"&&c.right.value===0}function u(c){a(c)&&!l(c)&&!o(c)&&i(c)}return{AssignmentExpression:u,BinaryExpression:u,UnaryExpression:u}}},P0}var T0,x_;function BV(){return x_||(x_=1,T0={meta:{deprecated:!0,replacedBy:[],type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(r){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){r.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),T0}var D0,b_;function NV(){return b_||(b_=1,D0={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="arguments"&&!e.computed&&s&&s.match(/^calle[er]$/u)&&r.report({node:e,messageId:"unexpected",data:{prop:s}})}}}}),D0}var _0,v_;function LV(){return v_||(v_=1,_0={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},schema:[],messages:{unexpected:"Unexpected lexical declaration in case block."}},create(r){function e(t){switch(t.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return t.kind!=="var";default:return!1}}return{SwitchCase(t){for(let s=0;s{e.report({node:a.identifier,messageId:"class",data:{name:a.identifier.name}})})}function n(i){t.getDeclaredVariables(i).forEach(s)}return{ClassDeclaration:n,ClassExpression:n}}},F0}var R0,E_;function jV(){return E_||(E_=1,R0={meta:{type:"problem",docs:{description:"Disallow comparing against -0",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(r){function e(s){return s.type==="UnaryExpression"&&s.operator==="-"&&s.argument.type==="Literal"&&s.argument.value===0}let t=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(s){t.has(s.operator)&&(e(s.left)||e(s.right))&&r.report({node:s,messageId:"unexpected",data:{operator:s.operator}})}}}}),R0}var B0,C_;function qV(){if(C_)return B0;C_=1;let r=Pe(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),t={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return B0={meta:{type:"problem",docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/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(s){let n=s.options[0]||"except-parens",i=s.sourceCode;function a(p){return p.parent&&e.has(p.parent.type)&&p===p.parent.test}function l(p){let h=p;do if(a(h))return h.parent;while((h=h.parent)&&!r.isFunction(h));return null}function o(p){let h=i.getTokenBefore(p,1),f=i.getTokenAfter(p,1);return r.isParenthesised(i,p)&&h&&r.isOpeningParenToken(h)&&h.range[1]<=p.range[0]&&r.isClosingParenToken(f)&&f.range[0]>=p.range[1]}function u(p){p.test&&p.test.type==="AssignmentExpression"&&(p.type==="ForStatement"?!r.isParenthesised(i,p.test):!o(p.test))&&s.report({node:p.test,messageId:"missing"})}function c(p){let h=l(p);h&&s.report({node:p,messageId:"unexpected",data:{type:t[h.type]||h.type}})}return n==="always"?{AssignmentExpression:c}:{DoWhileStatement:u,ForStatement:u,IfStatement:u,WhileStatement:u,ConditionalExpression:u}}},B0}var N0,w_;function QV(){if(w_)return N0;w_=1;let r=Pe();function e(t){return t&&t.type==="ConditionalExpression"}return N0={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0]||{},n=s.allowParens||s.allowParens===void 0,i=s.onlyOneSimpleParam,a=t.sourceCode;function l(o){let u=o.body;e(u)&&!(n&&r.isParenthesised(a,u))&&!(i&&!(o.params.length===1&&o.params[0].type==="Identifier"))&&t.report({node:o,messageId:"confusing",fix(c){return n&&c.replaceText(o.body,`(${a.getText(o.body)})`)}})}return{ArrowFunctionExpression:l}}},N0}var L0,k_;function UV(){if(k_)return L0;k_=1;let r=Pe();return L0={meta:{type:"suggestion",docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",removeConsole:"Remove the console.{{ propertyName }}()."}},create(e){let s=(e.options[0]||{}).allow||[],n=e.sourceCode;function i(p){let h=p.identifier;return h&&h.name==="console"}function a(p){let h=r.getStaticPropertyName(p);return h&&s.includes(h)}function l(p){let h=p.identifier,f=h.parent;return f.type==="MemberExpression"&&f.object===h&&!a(f)}function o(p){let h=/^[:;{]$/u,f=/^[-[(/+`]/u,d=n.getTokenBefore(p),m=n.getTokenAfter(p);return!!m&&f.test(m.value)&&m.value!=="++"&&m.value!=="--"&&!!d&&!h.test(d.value)}function u(p){return p.parent.type==="CallExpression"&&p.parent.callee===p&&p.parent.parent.type==="ExpressionStatement"&&r.STATEMENT_LIST_PARENTS.has(p.parent.parent.parent.type)&&!o(p.parent.parent)}function c(p){let h=p.identifier.parent,f=r.getStaticPropertyName(h);e.report({node:h,loc:h.loc,messageId:"unexpected",suggest:u(h)?[{messageId:"removeConsole",data:{propertyName:f},fix(d){return d.remove(h.parent.parent)}}]:[]})}return{"Program:exit"(p){let h=n.getScope(p),f=r.getVariableByName(h,"console"),d=f&&f.defs.length>0,m=f?f.references:h.through.filter(i);d||m.filter(l).forEach(c)}}}},L0}var $0,A_;function VV(){if(A_)return $0;A_=1;let r=Pe();return $0={meta:{type:"problem",docs:{description:"Disallow reassigning `const` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"const",data:{name:i.identifier.name}})})}return{VariableDeclaration(n){n.kind==="const"&&t.getDeclaredVariables(n).forEach(s)}}}},$0}var M0,P_;function WV(){if(P_)return M0;P_=1;let{isNullLiteral:r,isConstant:e,isReferenceToGlobalVariable:t,isLogicalAssignmentOperator:s,ECMASCRIPT_GLOBALS:n}=Pe(),i=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function a(f,d){return r(d)||d.type==="Identifier"&&d.name==="undefined"&&t(f,d)||d.type==="UnaryExpression"&&d.operator==="void"}function l(f,d,m){if(m&&a(f,d))return!1;switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let g=d.callee.name;return(g==="Boolean"||g==="String"||g==="Number")&&t(f,d.callee)}case"LogicalExpression":return d.operator==="??"&&l(f,d.right,!0);case"AssignmentExpression":return d.operator==="="?l(f,d.right,m):!s(d.operator);case"UnaryExpression":return!0;case"SequenceExpression":{let g=d.expressions.at(-1);return l(f,g,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function o(f,d){switch(d.type){case"Literal":return typeof d.value=="boolean";case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)&&(d.arguments.length===0||e(f,d.arguments[0],!0));case"UnaryExpression":return d.operator==="!"&&e(f,d.argument,!0);default:return!1}}function u(f,d){switch(d.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{let m=d.elements.filter(g=>g!==null&&g.type!=="SpreadElement");return d.elements.length===0||m.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return d.operator==="void"||d.operator==="typeof"?!0:d.operator==="!"?e(f,d.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return d.callee.type==="Identifier"&&d.callee.name==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return d.name==="undefined"&&t(f,d);case"TemplateLiteral":return d.expressions.length===0;case"AssignmentExpression":return d.operator==="="?u(f,d.right):!1;case"SequenceExpression":{let m=d.expressions.at(-1);return u(f,m)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return i.has(d.operator);case"UnaryExpression":return d.operator==="delete"?!1:d.operator==="!"?e(f,d.argument,!0):!0;case"SequenceExpression":{let m=d.expressions.at(-1);return c(f,m)}case"Identifier":return d.name==="undefined"&&t(f,d);case"AssignmentExpression":return d.operator==="="?c(f,d.right):!s(d.operator);case"CallExpression":{if(d.callee.type!=="Identifier")return!1;let m=d.callee.name;return(m==="String"||m==="Number")&&t(f,d.callee)?!0:m==="Boolean"&&t(f,d.callee)?d.arguments.length===0||e(f,d.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function p(f,d){switch(d.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return d.callee.type!=="Identifier"?!1:Object.hasOwn(n,d.callee.name)&&t(f,d.callee);case"Literal":return typeof d.regex=="object";case"SequenceExpression":{let m=d.expressions.at(-1);return p(f,m)}case"AssignmentExpression":return d.operator==="="?p(f,d.right):!1;case"ConditionalExpression":return p(f,d.consequent)&&p(f,d.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function h(f,d,m,g){if(g==="=="||g==="!="){if(a(f,d)&&l(f,m,!1)||o(f,d)&&u(f,m))return m}else if((g==="==="||g==="!==")&&(a(f,d)&&l(f,m,!1)||o(f,d)&&c(f,m)))return m;return null}return M0={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},schema:[],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal."}},create(f){let d=f.sourceCode;return{LogicalExpression(m){let{operator:g,left:y}=m,b=d.getScope(m);(g==="&&"||g==="||")&&e(b,y,!0)?f.report({node:y,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&l(b,y,!1)&&f.report({node:y,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(m){let g=d.getScope(m),{right:y,left:b,operator:v}=m,S=h(g,b,y,v),C=h(g,y,b,v);S?f.report({node:S,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"left"}}):C?f.report({node:C,messageId:"constantBinaryOperand",data:{operator:v,otherSide:"right"}}):v==="==="||v==="!=="?p(g,b)?f.report({node:b,messageId:"alwaysNew"}):p(g,y)&&f.report({node:y,messageId:"alwaysNew"}):(v==="=="||v==="!=")&&p(g,b)&&p(g,y)&&f.report({node:b,messageId:"bothAlwaysNew"})}}}},M0}var j0,T_;function ZV(){if(T_)return j0;T_=1;let{isConstant:r}=Pe();return j0={meta:{type:"problem",docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(e){let t=e.options[0]||{},s=t.checkLoops??"allExceptWhileTrue",n=[],i=e.sourceCode;t.checkLoops===!0?s="all":t.checkLoops===!1&&(s="none");let a=new Set;function l(f){f.test&&r(i.getScope(f),f.test,!0)&&a.add(f)}function o(f){a.has(f)&&(a.delete(f),e.report({node:f.test,messageId:"unexpected"}))}function u(f){f.test&&r(i.getScope(f),f.test,!0)&&e.report({node:f.test,messageId:"unexpected"})}function c(){n.push(a),a=new Set}function p(){a=n.pop()}function h(f){(s==="all"||s==="allExceptWhileTrue")&&l(f)}return{ConditionalExpression:u,IfStatement:u,WhileStatement(f){f.test.type==="Literal"&&f.test.value===!0&&s==="allExceptWhileTrue"||h(f)},"WhileStatement:exit":o,DoWhileStatement:h,"DoWhileStatement:exit":o,ForStatement:h,"ForStatement > .test":f=>h(f.parent),"ForStatement:exit":o,FunctionDeclaration:c,"FunctionDeclaration:exit":p,FunctionExpression:c,"FunctionExpression:exit":p,YieldExpression:()=>a.clear()}}},j0}var q0,D_;function zV(){return D_||(D_=1,q0={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(r){let e=[];return{onCodePathStart(t,s){e.push(s)},onCodePathEnd(){e.pop()},ReturnStatement(t){let s=e.at(-1);s.parent&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"&&(t.parent.parent===s||t.argument)&&r.report({node:t,messageId:"unexpected"})}}}}),q0}var Q0,__;function XV(){return __||(__=1,Q0={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(r){return{ContinueStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),Q0}var ls={},I_;function Xn(){if(I_)return ls;I_=1,Object.defineProperty(ls,"__esModule",{value:!0});var r=Object.freeze({__proto__:null});let e=2024,t,s;function n(je){return je<65?!1:je<91?!0:je<97?!1:je<123?!0:a(je)}function i(je){return je<48?!1:je<58?!0:je<65?!1:je<91||je===95?!0:je<97?!1:je<123?!0:a(je)||l(je)}function a(je){return c(je,t??(t=o()))}function l(je){return c(je,s??(s=u()))}function o(){return p("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 6 n 2 5 i 15 1n 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 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 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 h e i 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 7 1j 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 6c 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 h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1r 6 1 2 0 2 4 p f 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 d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 1w 8m a l b 7 p 5 2 15 2 8 1y 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 17 h 1b k s m d 1g 1m 1 3 0 e 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 k 1 1s 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 12 6 56 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 j 20 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 g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 33u g6 6nu fs 8 u i 26 i 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 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 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 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r l1 6 2 3 2 1 2 e 2 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 wyn x 37d 7 65 3 4g1 f 5rk 2e8 f1 15v 3t6 6 38f")}function u(){return p("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 1p 7 17 n 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 1k 0 2 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 4 0 d 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 6 2 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 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 f 1e 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 1r 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 29 2 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e 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 a 1 2 0 1d 6 4 4 e 9 44n 0 7 e aob 9 2f 9 13 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 3mq 19 3 m f3 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 2t 0 4h 6 a 9 9x 0 1q d dv d rb 6 32 6 6 9 3o7 9 gvt3 6n")}function c(je,M){let te=0,me=M.length/2|0,_e=0,tt=0,x=0;for(;tex)te=_e+1;else return!0;return!1}function p(je){let M=0;return je.split(" ").map(te=>M+=parseInt(te,36)|0)}class h{constructor(M,te,me,_e,tt,x,P){this._raw2018=M,this._raw2019=te,this._raw2020=me,this._raw2021=_e,this._raw2022=tt,this._raw2023=x,this._raw2024=P}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}}let f=new Set(["General_Category","gc"]),d=new Set(["Script","Script_Extensions","sc","scx"]),m=new h("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","","","","","",""),g=new h("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","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",""),y=new h("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 b(je,M,te){return f.has(M)?je>=2018&&m.es2018.has(te):d.has(M)?je>=2018&&g.es2018.has(te)||je>=2019&&g.es2019.has(te)||je>=2020&&g.es2020.has(te)||je>=2021&&g.es2021.has(te)||je>=2022&&g.es2022.has(te)||je>=2023&&g.es2023.has(te):!1}function v(je,M){return je>=2018&&y.es2018.has(M)||je>=2019&&y.es2019.has(M)||je>=2021&&y.es2021.has(M)}let S=8,C=9,O=10,w=11,E=12,k=13,A=33,D=35,_=36,B=37,T=38,F=40,j=41,Q=42,I=43,N=44,R=45,U=46,V=47,ae=48,se=49,ve=55,H=57,he=58,$=59,pe=60,K=61,le=62,xe=63,Le=64,qe=65,rt=66,ht=68,pt=70,Et=80,X=83,we=87,Ve=90,et=95,it=97,st=98,Ct=99,bt=100,Dt=102,_t=103,W=105,vt=107,Ye=109,Kt=110,De=112,G=113,ne=114,ee=115,oe=116,ce=117,Z=118,J=119,ie=120,de=121,Ce=122,L=91,ue=92,Te=93,Be=94,$e=96,Re=123,Oe=124,Ie=125,We=126,be=8204,re=8205,Y=8232,fe=8233,Se=0,Ee=1114111;function ze(je){return je>=qe&&je<=Ve||je>=it&&je<=Ce}function Ke(je){return je>=ae&&je<=H}function mt(je){return je>=ae&&je<=ve}function Ot(je){return je>=ae&&je<=H||je>=qe&&je<=pt||je>=it&&je<=Dt}function Pt(je){return je===O||je===k||je===Y||je===fe}function xt(je){return je>=Se&&je<=Ee}function Ue(je){return je>=it&&je<=Dt?je-it+10:je>=qe&&je<=pt?je-qe+10:je-ae}function nt(je){return je>=55296&&je<=56319}function Ge(je){return je>=56320&&je<=57343}function Qe(je,M){return(je-55296)*1024+(M-56320)+65536}let ut={at(je,M,te){return te65535?2:1}};class qt{constructor(){this._impl=ut,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(M,te,me,_e){this._impl=_e?dt:ut,this._s=M,this._end=me,this.rewind(te)}rewind(M){let te=this._impl;this._i=M,this._cp1=te.at(this._s,this._end,M),this._w1=te.width(this._cp1),this._cp2=te.at(this._s,this._end,M+this._w1),this._w2=te.width(this._cp2),this._cp3=te.at(this._s,this._end,M+this._w1+this._w2),this._w3=te.width(this._cp3),this._cp4=te.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,te){return this._cp1===M&&this._cp2===te?(this.advance(),this.advance(),!0):!1}eat3(M,te,me){return this._cp1===M&&this._cp2===te&&this._cp3===me?(this.advance(),this.advance(),this.advance(),!0):!1}}class Qt extends SyntaxError{constructor(M,te,me,_e){let tt="";if(M.kind==="literal"){let x=M.source.slice(M.start,M.end);x&&(tt=`: ${x}`)}else if(M.kind==="pattern"){let x=M.source.slice(M.start,M.end),P=`${te.unicode?"u":""}${te.unicodeSets?"v":""}`;tt=`: /${x}/${P}`}super(`Invalid regular expression${tt}: ${_e}`),this.index=me}}let jt=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]);function sr(je,M){return je>=2024&&jt.has(M)}let ot=new Set([Be,_,ue,U,Q,I,xe,F,j,L,Te,Re,Ie,Oe]),Nt=new Set([T,A,D,_,B,Q,I,N,U,he,$,pe,K,le,xe,Le,Be,$e,We]),br=new Set([F,j,L,Te,Re,Ie,V,R,ue,Oe]),Nr=new Set([T,R,A,D,B,N,he,$,pe,K,le,Le,$e,We]);function Cr(je){return ot.has(je)}function Qr(je){return Nt.has(je)}function fs(je){return br.has(je)}function Yn(je){return Nr.has(je)}function dr(je){return n(je)||je===_||je===et}function ir(je){return i(je)||je===_||je===be||je===re}function hn(je){return ze(je)||je===et}function Hn(je){return hn(je)||Ke(je)}class kn{constructor(M){this._reader=new qt,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._srcCtx=null,this._options=M??{}}validateLiteral(M,te=0,me=M.length){if(this._srcCtx={source:M,start:te,end:me,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,te,me),this.onLiteralEnter(te),this.eat(V)&&this.eatRegExpBody()&&this.eat(V)){let _e=this.index,tt=M.includes("u",_e),x=M.includes("v",_e);this.validateFlagsInternal(M,_e,me),this.validatePatternInternal(M,te+1,_e-1,{unicode:tt,unicodeSets:x})}else if(te>=me)this.raise("Empty");else{let _e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${_e}'`)}this.onLiteralLeave(te,me)}validateFlags(M,te=0,me=M.length){this._srcCtx={source:M,start:te,end:me,kind:"flags"},this.validateFlagsInternal(M,te,me)}validatePattern(M,te=0,me=M.length,_e=void 0){this._srcCtx={source:M,start:te,end:me,kind:"pattern"},this.validatePatternInternal(M,te,me,_e)}validatePatternInternal(M,te=0,me=M.length,_e=void 0){let tt=this._parseFlagsOptionToMode(_e,me);this._unicodeMode=tt.unicodeMode,this._nFlag=tt.nFlag,this._unicodeSetsMode=tt.unicodeSetsMode,this.reset(M,te,me),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(te),this.consumePattern())}validateFlagsInternal(M,te,me){let _e=new Set,tt=!1,x=!1,P=!1,q=!1,z=!1,ge=!1,Fe=!1,Ne=!1;for(let He=te;He=2015?z=!0:Je===de&&this.ecmaVersion>=2015?q=!0:Je===ee&&this.ecmaVersion>=2018?ge=!0:Je===bt&&this.ecmaVersion>=2022?Fe=!0:Je===Z&&this.ecmaVersion>=2024?Ne=!0:this.raise(`Invalid flag '${M[He]}'`,{index:te})}this.onRegExpFlags(te,me,{global:tt,ignoreCase:x,multiline:P,unicode:z,sticky:q,dotAll:ge,hasIndices:Fe,unicodeSets:Ne})}_parseFlagsOptionToMode(M,te){let me=!1,_e=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(me=!!M.unicode,this.ecmaVersion>=2024&&(_e=!!M.unicodeSets)):me=M),me&&_e&&this.raise("Invalid regular expression flags",{index:te+1,unicode:me,unicodeSets:_e});let tt=me||_e,x=me&&this.ecmaVersion>=2018||_e||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:tt,nFlag:x,unicodeSetsMode:_e}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,te){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,te)}onRegExpFlags(M,te,me){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,te,me),this._options.onFlags&&this._options.onFlags(M,te,me.global,me.ignoreCase,me.multiline,me.unicode,me.sticky,me.dotAll,me.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,te){this._options.onPatternLeave&&this._options.onPatternLeave(M,te)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,te){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,te)}onAlternativeEnter(M,te){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,te)}onAlternativeLeave(M,te,me){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,te,me)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,te){this._options.onGroupLeave&&this._options.onGroupLeave(M,te)}onCapturingGroupEnter(M,te){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,te)}onCapturingGroupLeave(M,te,me){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,te,me)}onQuantifier(M,te,me,_e,tt){this._options.onQuantifier&&this._options.onQuantifier(M,te,me,_e,tt)}onLookaroundAssertionEnter(M,te,me){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,te,me)}onLookaroundAssertionLeave(M,te,me,_e){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,te,me,_e)}onEdgeAssertion(M,te,me){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,te,me)}onWordBoundaryAssertion(M,te,me,_e){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,te,me,_e)}onAnyCharacterSet(M,te,me){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,te,me)}onEscapeCharacterSet(M,te,me,_e){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,te,me,_e)}onUnicodePropertyCharacterSet(M,te,me,_e,tt,x,P){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,te,me,_e,tt,x,P)}onCharacter(M,te,me){this._options.onCharacter&&this._options.onCharacter(M,te,me)}onBackreference(M,te,me){this._options.onBackreference&&this._options.onBackreference(M,te,me)}onCharacterClassEnter(M,te,me){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,te,me)}onCharacterClassLeave(M,te,me){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,te,me)}onCharacterClassRange(M,te,me,_e){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,te,me,_e)}onClassIntersection(M,te){this._options.onClassIntersection&&this._options.onClassIntersection(M,te)}onClassSubtraction(M,te){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,te)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,te){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,te)}onStringAlternativeEnter(M,te){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,te)}onStringAlternativeLeave(M,te,me){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,te,me)}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(M,te,me){this._reader.reset(M,te,me,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,te){return this._reader.eat2(M,te)}eat3(M,te,me){return this._reader.eat3(M,te,me)}raise(M,te){var me,_e,tt;throw new Qt(this._srcCtx,{unicode:(me=te?.unicode)!==null&&me!==void 0?me:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(_e=te?.unicodeSets)!==null&&_e!==void 0?_e:this._unicodeSetsMode},(tt=te?.index)!==null&&tt!==void 0?tt:this.index,M)}eatRegExpBody(){let M=this.index,te=!1,me=!1;for(;;){let _e=this.currentCodePoint;if(_e===-1||Pt(_e)){let tt=te?"character class":"regular expression";this.raise(`Unterminated ${tt}`)}if(me)me=!1;else if(_e===ue)me=!0;else if(_e===L)te=!0;else if(_e===Te)te=!1;else if(_e===V&&!te||_e===Q&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){let M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();let te=this.currentCodePoint;if(this.currentCodePoint!==-1){te===j&&this.raise("Unmatched ')'"),te===ue&&this.raise("\\ at end of pattern"),(te===Te||te===Ie)&&this.raise("Lone quantifier brackets");let me=String.fromCodePoint(te);this.raise(`Unexpected character '${me}'`)}for(let me of this._backreferenceNames)this._groupNames.has(me)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){let M=this.index,te=!1,me=!1,_e=0,tt=0;for(;(tt=this.currentCodePoint)!==-1;)me?me=!1:tt===ue?me=!0:tt===L?te=!0:tt===Te?te=!1:tt===F&&!te&&(this.nextCodePoint!==xe||this.nextCodePoint2===pe&&this.nextCodePoint3!==K&&this.nextCodePoint3!==A)&&(_e+=1),this.advance();return this.rewind(M),_e}consumeDisjunction(){let M=this.index,te=0;this.onDisjunctionEnter(M);do this.consumeAlternative(te++);while(this.eat(Oe));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(Re)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index)}consumeAlternative(M){let te=this.index;for(this.onAlternativeEnter(te,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(te,this.index,M)}consumeTerm(){return this._unicodeMode||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 M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(Be))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(_))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(ue,rt))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(ue,st))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(F,xe)){let te=this.ecmaVersion>=2018&&this.eat(pe),me=!1;if(this.eat(K)||(me=this.eat(A))){let _e=te?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,_e,me),this.consumeDisjunction(),this.eat(j)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!te&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,_e,me),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){let te=this.index,me=0,_e=0,tt=!1;if(this.eat(Q))me=0,_e=Number.POSITIVE_INFINITY;else if(this.eat(I))me=1,_e=Number.POSITIVE_INFINITY;else if(this.eat(xe))me=0,_e=1;else if(this.eatBracedQuantifier(M))({min:me,max:_e}=this._lastRange);else return!1;return tt=!this.eat(xe),M||this.onQuantifier(te,this.index,me,_e,tt),!0}eatBracedQuantifier(M){let te=this.index;if(this.eat(Re)){if(this.eatDecimalDigits()){let me=this._lastIntValue,_e=me;if(this.eat(N)&&(_e=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(Ie))return!M&&_e=2018?this.consumeGroupSpecifier()&&(te=this._lastStrValue):this.currentCodePoint===xe&&this.raise("Invalid group"),this.onCapturingGroupEnter(M,te),this.consumeDisjunction(),this.eat(j)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,te),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let M=this.index;return this.currentCodePoint===ue&&this.nextCodePoint===Ct?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,ue),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let M=this.index,te=this.currentCodePoint;return te!==-1&&!Cr(te)?(this.advance(),this.onCharacter(M,this.index,te),!0):!1}consumeExtendedPatternCharacter(){let M=this.index,te=this.currentCodePoint;return te!==-1&&te!==Be&&te!==_&&te!==ue&&te!==U&&te!==Q&&te!==I&&te!==xe&&te!==F&&te!==j&&te!==L&&te!==Oe?(this.advance(),this.onCharacter(M,this.index,te),!0):!1}consumeGroupSpecifier(){if(this.eat(xe)){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._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let M=this.index;if(this.eatDecimalEscape()){let te=this._lastIntValue;if(te<=this._numCapturingParens)return this.onBackreference(M-1,this.index,te),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;let te=this.index;if(this.eat(bt))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"digit",!1),{};if(this.eat(ht))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"digit",!0),{};if(this.eat(ee))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"space",!1),{};if(this.eat(X))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"space",!0),{};if(this.eat(J))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"word",!1),{};if(this.eat(we))return this._lastIntValue=-1,this.onEscapeCharacterSet(te-1,this.index,"word",!0),{};let me=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(De)||(me=this.eat(Et)))){this._lastIntValue=-1;let _e=null;if(this.eat(Re)&&(_e=this.eatUnicodePropertyValueExpression())&&this.eat(Ie))return me&&_e.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(te-1,this.index,"property",_e.key,_e.value,me,(M=_e.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:_e.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let M=this.index;if(this.eat(vt)){if(this.eatGroupName()){let te=this._lastStrValue;return this._backreferenceNames.add(te),this.onBackreference(M-1,this.index,te),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let M=this.index;if(this.eat(L)){let te=this.eat(Be);this.onCharacterClassEnter(M,te,this._unicodeSetsMode);let me=this.consumeClassContents();return this.eat(Te)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),te&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,te),me}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===Te?{}:this.consumeClassSetExpression();let M=this.strict||this._unicodeMode;for(;;){let te=this.index;if(!this.consumeClassAtom())break;let me=this._lastIntValue;if(!this.eat(R))continue;if(this.onCharacter(this.index-1,this.index,R),!this.consumeClassAtom())break;let _e=this._lastIntValue;if(me===-1||_e===-1){M&&this.raise("Invalid character class");continue}me>_e&&this.raise("Range out of order in character class"),this.onCharacterClassRange(te,this.index,me,_e)}return{}}consumeClassAtom(){let M=this.index,te=this.currentCodePoint;if(te!==-1&&te!==ue&&te!==Te)return this.advance(),this._lastIntValue=te,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ue)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===Ct)return this._lastIntValue=ue,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){let M=this.index;if(this.eat(st))return this._lastIntValue=S,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(R))return this._lastIntValue=R,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let te=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===Ct&&(Ke(te=this.nextCodePoint)||te===et)?(this.advance(),this.advance(),this._lastIntValue=te%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let M=this.index,te=!1,me=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};te=!1}else if(me=this.consumeClassSetOperand())te=me.mayContainStrings;else{let _e=this.currentCodePoint;_e===ue&&(this.advance(),this.raise("Invalid escape")),_e===this.nextCodePoint&&Qr(_e)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(T,T)){for(;this.currentCodePoint!==T&&(me=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),me.mayContainStrings||(te=!1),!this.eat2(T,T))return{mayContainStrings:te};this.raise("Invalid character in character class")}if(this.eat2(R,R)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(R,R))return{mayContainStrings:te};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:te})}consumeClassUnionRight(M){let te=M.mayContainStrings;for(;;){let me=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(me);continue}let _e=this.consumeClassSetOperand();if(_e){_e.mayContainStrings&&(te=!0);continue}break}return{mayContainStrings:te}}consumeClassSetRangeFromOperator(M){let te=this.index,me=this._lastIntValue;if(this.eat(R)){if(this.consumeClassSetCharacter()){let _e=this._lastIntValue;return(me===-1||_e===-1)&&this.raise("Invalid character class"),me>_e&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,me,_e),!0}this.rewind(te)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let M=this.index;if(this.eat(L)){let te=this.eat(Be);this.onCharacterClassEnter(M,te,!0);let me=this.consumeClassContents();return this.eat(Te)||this.raise("Unterminated character class"),te&&me.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,te),me}if(this.eat(ue)){let te=this.consumeCharacterClassEscape();if(te)return te;this.rewind(M)}return null}consumeClassStringDisjunction(){let M=this.index;if(this.eat3(ue,G,Re)){this.onClassStringDisjunctionEnter(M);let te=0,me=!1;do this.consumeClassString(te++).mayContainStrings&&(me=!0);while(this.eat(Oe));if(this.eat(Ie))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:me};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){let te=this.index,me=0;for(this.onStringAlternativeEnter(te,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)me++;return this.onStringAlternativeLeave(te,this.index,M),{mayContainStrings:me!==1}}consumeClassSetCharacter(){let M=this.index,te=this.currentCodePoint;if((te!==this.nextCodePoint||!Qr(te))&&te!==-1&&!fs(te))return this._lastIntValue=te,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ue)){if(this.consumeCharacterEscape())return!0;if(Yn(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(st))return this._lastIntValue=S,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(pe)){if(this.eatRegExpIdentifierName()&&this.eat(le))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 M=this.index,te=!this._unicodeMode&&this.ecmaVersion>=2020,me=this.currentCodePoint;return this.advance(),me===ue&&this.eatRegExpUnicodeEscapeSequence(te)?me=this._lastIntValue:te&&nt(me)&&Ge(this.currentCodePoint)&&(me=Qe(me,this.currentCodePoint),this.advance()),dr(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){let M=this.index,te=!this._unicodeMode&&this.ecmaVersion>=2020,me=this.currentCodePoint;return this.advance(),me===ue&&this.eatRegExpUnicodeEscapeSequence(te)?me=this._lastIntValue:te&&nt(me)&&Ge(this.currentCodePoint)&&(me=Qe(me,this.currentCodePoint),this.advance()),ir(me)?(this._lastIntValue=me,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){let M=this.index;if(this.eat(Ct)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===ae&&!Ke(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Dt)?(this._lastIntValue=E,!0):this.eat(Kt)?(this._lastIntValue=O,!0):this.eat(ne)?(this._lastIntValue=k,!0):this.eat(oe)?(this._lastIntValue=C,!0):this.eat(Z)?(this._lastIntValue=w,!0):!1}eatControlLetter(){let M=this.currentCodePoint;return ze(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){let te=this.index,me=M||this._unicodeMode;if(this.eat(ce)){if(me&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||me&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||me)&&this.raise("Invalid unicode escape"),this.rewind(te)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let M=this.index;if(this.eatFixedHexDigits(4)){let te=this._lastIntValue;if(nt(te)&&this.eat(ue)&&this.eat(ce)&&this.eatFixedHexDigits(4)){let me=this._lastIntValue;if(Ge(me))return this._lastIntValue=Qe(te,me),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){let M=this.index;return this.eat(Re)&&this.eatHexDigits()&&this.eat(Ie)&&xt(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){let M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?Cr(M)||M===V:this.strict?!i(M):this._nFlag?!(M===Ct||M===vt):M!==Ct}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=se&&M<=H){do this._lastIntValue=10*this._lastIntValue+(M-ae),this.advance();while((M=this.currentCodePoint)>=ae&&M<=H);return!0}return!1}eatUnicodePropertyValueExpression(){let M=this.index;if(this.eatUnicodePropertyName()&&this.eat(K)){let te=this._lastStrValue;if(this.eatUnicodePropertyValue()){let me=this._lastStrValue;if(b(this.ecmaVersion,te,me))return{key:te,value:me||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){let te=this._lastStrValue;if(b(this.ecmaVersion,"General_Category",te))return{key:"General_Category",value:te||null};if(v(this.ecmaVersion,te))return{key:te,value:null};if(this._unicodeSetsMode&&sr(this.ecmaVersion,te))return{key:te,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";hn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Hn(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let M=this.index;if(this.eat(ie)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){let M=this.index;for(this._lastIntValue=0;Ke(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+Ue(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){let M=this.index;for(this._lastIntValue=0;Ot(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+Ue(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let M=this._lastIntValue;if(this.eatOctalDigit()){let te=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+te*8+this._lastIntValue:this._lastIntValue=M*8+te}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){let M=this.currentCodePoint;return mt(M)?(this.advance(),this._lastIntValue=M-ae,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){let te=this.index;this._lastIntValue=0;for(let me=0;mex.name===_e);me.resolved=tt,tt.references.push(me)}}onAlternativeEnter(M){let te=this._node;if(te.type!=="Assertion"&&te.type!=="CapturingGroup"&&te.type!=="Group"&&te.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:te,start:M,end:M,raw:"",elements:[]},te.alternatives.push(this._node)}onAlternativeLeave(M,te){let me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onGroupEnter(M){let te=this._node;if(te.type!=="Alternative")throw new Error("UnknownError");this._node={type:"Group",parent:te,start:M,end:M,raw:"",alternatives:[]},te.elements.push(this._node)}onGroupLeave(M,te){let me=this._node;if(me.type!=="Group"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onCapturingGroupEnter(M,te){let me=this._node;if(me.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:me,start:M,end:M,raw:"",name:te,alternatives:[],references:[]},me.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,te){let me=this._node;if(me.type!=="CapturingGroup"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onQuantifier(M,te,me,_e,tt){let x=this._node;if(x.type!=="Alternative")throw new Error("UnknownError");let P=x.elements.pop();if(P==null||P.type==="Quantifier"||P.type==="Assertion"&&P.kind!=="lookahead")throw new Error("UnknownError");let q={type:"Quantifier",parent:x,start:P.start,end:te,raw:this.source.slice(P.start,te),min:me,max:_e,greedy:tt,element:P};x.elements.push(q),P.parent=q}onLookaroundAssertionEnter(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");let tt=this._node={type:"Assertion",parent:_e,start:M,end:M,raw:"",kind:te,negate:me,alternatives:[]};_e.elements.push(tt)}onLookaroundAssertionLeave(M,te){let me=this._node;if(me.type!=="Assertion"||me.parent.type!=="Alternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onEdgeAssertion(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");_e.elements.push({type:"Assertion",parent:_e,start:M,end:te,raw:this.source.slice(M,te),kind:me})}onWordBoundaryAssertion(M,te,me,_e){let tt=this._node;if(tt.type!=="Alternative")throw new Error("UnknownError");tt.elements.push({type:"Assertion",parent:tt,start:M,end:te,raw:this.source.slice(M,te),kind:me,negate:_e})}onAnyCharacterSet(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");_e.elements.push({type:"CharacterSet",parent:_e,start:M,end:te,raw:this.source.slice(M,te),kind:me})}onEscapeCharacterSet(M,te,me,_e){let tt=this._node;if(tt.type!=="Alternative"&&tt.type!=="CharacterClass")throw new Error("UnknownError");tt.elements.push({type:"CharacterSet",parent:tt,start:M,end:te,raw:this.source.slice(M,te),kind:me,negate:_e})}onUnicodePropertyCharacterSet(M,te,me,_e,tt,x,P){let q=this._node;if(q.type!=="Alternative"&&q.type!=="CharacterClass"||P&&(x||tt))throw new Error("UnknownError");let z={type:"CharacterSet",parent:q,start:M,end:te,raw:this.source.slice(M,te),kind:me,strings:P,key:_e},ge=P?Object.assign(Object.assign({},z),{value:null,negate:!1,strings:!0}):Object.assign(Object.assign({},z),{value:tt,negate:x,strings:!1});q.elements.push(ge)}onCharacter(M,te,me){let _e=this._node;if(_e.type!=="Alternative"&&_e.type!=="CharacterClass"&&_e.type!=="StringAlternative")throw new Error("UnknownError");_e.elements.push({type:"Character",parent:_e,start:M,end:te,raw:this.source.slice(M,te),value:me})}onBackreference(M,te,me){let _e=this._node;if(_e.type!=="Alternative")throw new Error("UnknownError");let tt={type:"Backreference",parent:_e,start:M,end:te,raw:this.source.slice(M,te),ref:me,resolved:Ms};_e.elements.push(tt),this._backreferences.push(tt)}onCharacterClassEnter(M,te,me){let _e=this._node,tt={type:"CharacterClass",parent:_e,start:M,end:M,raw:"",unicodeSets:me,negate:te,elements:[]};if(_e.type==="Alternative"){let x=Object.assign(Object.assign({},tt),{parent:_e});this._node=x,_e.elements.push(x)}else if(_e.type==="CharacterClass"&&_e.unicodeSets&&me){let x=Object.assign(Object.assign({},tt),{parent:_e,unicodeSets:me});this._node=x,_e.elements.push(x)}else throw new Error("UnknownError")}onCharacterClassLeave(M,te){let me=this._node;if(me.type!=="CharacterClass"||me.parent.type!=="Alternative"&&me.parent.type!=="CharacterClass"||this._expressionBuffer&&me.elements.length>0)throw new Error("UnknownError");let _e=me.parent;me.end=te,me.raw=this.source.slice(M,te),this._node=_e;let tt=this._expressionBuffer;if(this._expressionBuffer=null,!tt)return;let x={type:"ExpressionCharacterClass",parent:_e,start:me.start,end:me.end,raw:me.raw,negate:me.negate,expression:tt};if(tt.parent=x,me!==_e.elements.pop())throw new Error("UnknownError");_e.elements.push(x)}onCharacterClassRange(M,te){let me=this._node;if(me.type!=="CharacterClass")throw new Error("UnknownError");let _e=me.elements,tt=_e.pop();if(!tt||tt.type!=="Character")throw new Error("UnknownError");if(!me.unicodeSets){let q=_e.pop();if(!q||q.type!=="Character"||q.value!==R)throw new Error("UnknownError")}let x=_e.pop();if(!x||x.type!=="Character")throw new Error("UnknownError");let P={type:"CharacterClassRange",parent:me,start:M,end:te,raw:this.source.slice(M,te),min:x,max:tt};x.parent=P,tt.parent=P,_e.push(P)}onClassIntersection(M,te){var me;let _e=this._node;if(_e.type!=="CharacterClass"||!_e.unicodeSets)throw new Error("UnknownError");let tt=_e.elements.pop(),x=(me=this._expressionBuffer)!==null&&me!==void 0?me:_e.elements.pop();if(!x||!tt||x.type==="ClassSubtraction"||x.type!=="ClassIntersection"&&!mn(x)||!mn(tt))throw new Error("UnknownError");let P={type:"ClassIntersection",parent:_e,start:M,end:te,raw:this.source.slice(M,te),left:x,right:tt};x.parent=P,tt.parent=P,this._expressionBuffer=P}onClassSubtraction(M,te){var me;let _e=this._node;if(_e.type!=="CharacterClass"||!_e.unicodeSets)throw new Error("UnknownError");let tt=_e.elements.pop(),x=(me=this._expressionBuffer)!==null&&me!==void 0?me:_e.elements.pop();if(!x||!tt||x.type==="ClassIntersection"||x.type!=="ClassSubtraction"&&!mn(x)||!mn(tt))throw new Error("UnknownError");let P={type:"ClassSubtraction",parent:_e,start:M,end:te,raw:this.source.slice(M,te),left:x,right:tt};x.parent=P,tt.parent=P,this._expressionBuffer=P}onClassStringDisjunctionEnter(M){let te=this._node;if(te.type!=="CharacterClass"||!te.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:te,start:M,end:M,raw:"",alternatives:[]},te.elements.push(this._node)}onClassStringDisjunctionLeave(M,te){let me=this._node;if(me.type!=="ClassStringDisjunction"||me.parent.type!=="CharacterClass")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}onStringAlternativeEnter(M){let te=this._node;if(te.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:te,start:M,end:M,raw:"",elements:[]},te.alternatives.push(this._node)}onStringAlternativeLeave(M,te){let me=this._node;if(me.type!=="StringAlternative")throw new Error("UnknownError");me.end=te,me.raw=this.source.slice(M,te),this._node=me.parent}}class hs{constructor(M){this._state=new Oi(M),this._validator=new kn(this._state)}parseLiteral(M,te=0,me=M.length){this._state.source=M,this._validator.validateLiteral(M,te,me);let _e=this._state.pattern,tt=this._state.flags,x={type:"RegExpLiteral",parent:null,start:te,end:me,raw:M,pattern:_e,flags:tt};return _e.parent=x,tt.parent=x,x}parseFlags(M,te=0,me=M.length){return this._state.source=M,this._validator.validateFlags(M,te,me),this._state.flags}parsePattern(M,te=0,me=M.length,_e=void 0){return this._state.source=M,this._validator.validatePattern(M,te,me,_e),this._state.pattern}}class Si{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function ds(je,M){return new hs(M).parseLiteral(String(je))}function Tt(je,M){new kn(M).validateLiteral(je)}function Ei(je,M){new Si(M).visit(je)}return ls.AST=r,ls.RegExpParser=hs,ls.RegExpValidator=kn,ls.parseRegExpLiteral=ds,ls.validateRegExpLiteral=Tt,ls.visitRegExpAST=Ei,ls}var U0,F_;function GV(){if(F_)return U0;F_=1;let r=Xn().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new r(this)}onPatternEnter(){this._controlChars=[]}onCharacter(t,s,n){n>=0&&n<=31&&(this._source.codePointAt(t)===n||this._source.slice(t,s).startsWith("\\x")||this._source.slice(t,s).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${n.toString(16)}`.slice(-2)}`)}collectControlChars(t,s){let n=typeof s=="string"&&s.includes("u"),i=typeof s=="string"&&s.includes("v");this._controlChars=[],this._source=t;try{this._validator.validatePattern(t,void 0,void 0,{unicode:n,unicodeSets:i})}catch{}return this._controlChars}};return U0={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(t){function s(n){if(n.regex)return n.regex;if(typeof n.value=="string"&&(n.parent.type==="NewExpression"||n.parent.type==="CallExpression")&&n.parent.callee.type==="Identifier"&&n.parent.callee.name==="RegExp"&&n.parent.arguments[0]===n){let i=n.value,a=n.parent.arguments.length>1&&n.parent.arguments[1].type==="Literal"&&typeof n.parent.arguments[1].value=="string"?n.parent.arguments[1].value:null;return{pattern:i,flags:a}}return null}return{Literal(n){let i=s(n);if(i){let{pattern:a,flags:l}=i,o=e.collectControlChars(a,l);o.length>0&&t.report({node:n,messageId:"unexpected",data:{controlChars:o.join(", ")}})}}}}},U0}var V0,R_;function YV(){return R_||(R_=1,V0={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(r){return{DebuggerStatement(e){r.report({node:e,messageId:"unexpected"})}}}}),V0}var W0,B_;function HV(){return B_||(B_=1,W0={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(r){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&r.report({node:e,messageId:"unexpected"})}}}}),W0}var Z0,N_;function KV(){return N_||(N_=1,Z0={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(r){let e=r.sourceCode;return{Literal(t){let s=e.getFirstToken(t);s.type==="RegularExpression"&&s.value[1]==="="&&r.report({node:t,messageId:"unexpected",fix(n){return n.replaceTextRange([s.range[0]+1,s.range[0]+2],"[=]")}})}}}}),Z0}var z0,L_;function JV(){return L_||(L_=1,z0={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(r){let e=r.sourceCode;function t(n){return n.type==="Parameter"}function s(n){let i=e.getDeclaredVariables(n);for(let a=0;a=2&&r.report({node:n,messageId:"unexpected",data:{name:l.name}})}}return{FunctionDeclaration:s,FunctionExpression:s}}}),z0}var X0,$_;function eW(){if($_)return X0;$_=1;let r=Pe();return X0={meta:{type:"problem",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let t=[];function s(n,i){let a=t.at(-1),l=`$${n}`;return a[l]||(a[l]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),a[l][i?"static":"nonStatic"]}return{Program(){t=[]},ClassBody(){t.push(Object.create(null))},"ClassBody:exit"(){t.pop()},"MethodDefinition, PropertyDefinition"(n){let i=r.getStaticPropertyName(n),a=n.type==="MethodDefinition"?n.kind:"field";if(i===null||a==="constructor")return;let l=s(i,n.static),o;a==="get"?(o=l.init||l.get,l.get=!0):a==="set"?(o=l.init||l.set,l.set=!0):(o=l.init||l.get||l.set,l.init=!0),o&&e.report({node:n,messageId:"unexpected",data:{name:i}})}}}},X0}var G0,M_;function tW(){if(M_)return G0;M_=1;let r=Pe();function e(i,a,l){return a.every(o=>l.some(u=>i(o,u)))}function t(i,a){return a.type==="LogicalExpression"&&a.operator===i?[...t(i,a.left),...t(i,a.right)]:[a]}let s=t.bind(null,"||"),n=t.bind(null,"&&");return G0={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/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(i){let a=i.sourceCode;function l(u,c){return u.type!==c.type?!1:u.type==="LogicalExpression"&&(u.operator==="||"||u.operator==="&&")&&u.operator===c.operator?l(u.left,c.left)&&l(u.right,c.right)||l(u.left,c.right)&&l(u.right,c.left):r.equalTokens(u,c,a)}let o=e.bind(null,l);return{IfStatement(u){let c=u.test,p=c.type==="LogicalExpression"&&c.operator==="&&"?[c,...n(c)]:[c],h=u,f=p.map(d=>s(d).map(n));for(;h.parent&&h.parent.type==="IfStatement"&&h.parent.alternate===h;){h=h.parent;let d=s(h.test).map(n);if(f=f.map(m=>m.filter(g=>!d.some(y=>o(y,g)))),f.some(m=>m.length===0)){i.report({node:c,messageId:"unexpected"});break}}}}}},G0}var Y0,j_;function rW(){if(j_)return Y0;j_=1;let r=Pe(),e=/^(?:init|get)$/u,t=/^(?:init|set)$/u;class s{constructor(i,a){this.upper=i,this.node=a,this.properties=new Map}getPropertyInfo(i){let a=r.getStaticPropertyName(i);return this.properties.has(a)||this.properties.set(a,{get:!1,set:!1}),this.properties.get(a)}isPropertyDefined(i){let a=this.getPropertyInfo(i);return e.test(i.kind)&&a.get||t.test(i.kind)&&a.set}defineProperty(i){let a=this.getPropertyInfo(i);e.test(i.kind)&&(a.get=!0),t.test(i.kind)&&(a.set=!0)}}return Y0={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(n){let i=null;return{ObjectExpression(a){i=new s(i,a)},"ObjectExpression:exit"(){i=i.upper},Property(a){let l=r.getStaticPropertyName(a);a.parent.type==="ObjectExpression"&&l!==null&&(i.isPropertyDefined(a)&&n.report({node:i.node,loc:a.key.loc,messageId:"unexpected",data:{name:l}}),i.defineProperty(a))}}}},Y0}var H0,q_;function nW(){if(q_)return H0;q_=1;let r=Pe();return H0={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(e){let t=e.sourceCode;function s(n,i){return n.type!==i.type?!1:r.equalTokens(n,i,t)}return{SwitchStatement(n){let i=[];for(let a of n.cases)if(a.test){let l=a.test;i.some(o=>s(o,l))?e.report({node:a,messageId:"unexpected"}):i.push(l)}}}}},H0}var K0,Q_;function sW(){if(Q_)return K0;Q_=1;let r=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function t(c,p){return(p==="named"?r:e).includes(c)}function s(c){if(c.specifiers&&c.specifiers.length>0){let p=c.specifiers,h=p.findIndex(({type:d})=>t(d,"named")||t(d,"namespace")),f=h>-1?h:0;return p[f].type}return c.type==="ExportAllDeclaration"?c.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function n(c,p){let h=s(c),f=s(p);return!(h==="ExportAll"&&f!=="ExportAll"&&f!=="SideEffectImport"||h!=="ExportAll"&&h!=="SideEffectImport"&&f==="ExportAll"||t(h,"namespace")&&t(f,"named")||t(f,"namespace")&&t(h,"named"))}function i(c,p){let h=0;for(;hh===p).map(({node:h})=>h)}function l(c){return c&&c.source&&c.source.value?c.source.value.trim():""}function o(c,p,h,f,d){let m=l(p);if(h.has(m)){let g=h.get(m),y=[],b=a(g,"import"),v;d&&(v=a(g,"export")),f==="import"?(i(p,b)&&y.push("import"),d&&i(p,v)&&y.push("importAs")):f==="export"&&(i(p,v)&&y.push("export"),i(p,b)&&y.push("exportAs")),y.forEach(S=>c.report({node:p,messageId:S,data:{module:m}}))}}function u(c,p,h,f){return function(d){let m=l(d);if(m){o(c,d,p,h,f);let g={node:d,declarationType:h},y=[g];p.has(m)&&(y=[...p.get(m),g]),p.set(m,y)}}}return K0={meta:{type:"problem",docs:{description:"Disallow duplicate module imports",recommended:!1,url:"https://eslint.org/docs/latest/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(c){let p=(c.options[0]||{}).includeExports,h=new Map,f={ImportDeclaration:u(c,h,"import",p)};return p&&(f.ExportNamedDeclaration=u(c,h,"export",p),f.ExportAllDeclaration=u(c,h,"export",p)),f}},K0}var J0,U_;function zo(){if(U_)return J0;U_=1;let r=Pe();class e{constructor(s,n){this.fixer=s,this.sourceCode=n,this.retainedRange=null}retainRange(s){return this.retainedRange=s,this}retainEnclosingFunction(s){let n=r.getUpperFunction(s);return this.retainRange(n?n.range:this.sourceCode.ast.range)}retainSurroundingTokens(s){let n=this.sourceCode.getTokenBefore(s)||s,i=this.sourceCode.getTokenAfter(s)||s;return this.retainRange([n.range[0],i.range[1]])}replaceTextRange(s,n){let i;return this.retainedRange?i=[Math.min(this.retainedRange[0],s[0]),Math.max(this.retainedRange[1],s[1])]:i=s,this.fixer.replaceTextRange(i,this.sourceCode.text.slice(i[0],s[0])+n+this.sourceCode.text.slice(s[1],i[1]))}remove(s){return this.replaceTextRange(s.range,"")}}return J0=e,J0}var ey,V_;function iW(){if(V_)return ey;V_=1;let r=Pe(),e=zo();return ey={meta:{type:"suggestion",docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,url:"https://eslint.org/docs/latest/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){let s=t.sourceCode;function n(g,y){if(g.length===0)return!0;let b=y.variableScope;if(y.variables.filter(({defs:C})=>C.length>0).some(({name:C})=>g.includes(C))||y!==b&&y.upper.type==="catch"&&y.upper.variables.some(({name:C})=>g.includes(C))||y.variables.filter(({defs:C,references:O})=>C.length===0&&O.length>0).some(({name:C})=>g.includes(C))||y.through.some(C=>g.includes(C.identifier.name)))return!1;if(y!==b){let C=y.block.range;if(b.variables.filter(({name:w})=>g.includes(w)).some(w=>w.defs.some(({node:{range:E}})=>C[0]<=E[0]&&E[1]<=C[1])))return!1}return!0}function i(g,y){if(g.type==="FunctionDeclaration")return!1;if(g.type!=="BlockStatement")return!0;let b=y.childScopes.find(({block:S})=>S===g);if(!b)return!0;let v=b.variables.map(({name:S})=>S);return n(v,y)}function a(g){let y=s.getScope(g.parent);t.report({node:g,messageId:"unexpected",fix(b){if(!i(g,y))return null;let v=s.getFirstToken(g),S=s.getTokenBefore(v),C=s.getText(g),O=s.getTokenBefore(S),w,E;v.type==="Punctuator"&&v.value==="{"?E=s.getTokenAfter(v):E=v;let k=g.parent.consequent.type!=="BlockStatement"&&O.value!==";",A=/^[([/+`-]/u.test(E.value);if(k&&A)return null;let D=s.getLastToken(g),_=s.getTokenBefore(D);if(_.value!==";"){let B=s.getTokenAfter(D),T=B&&/^[([/+`-]/u.test(B.value),F=B&&B.loc.start.line===_.loc.start.line;if(T||F&&B.value!=="}")return null}return v.type==="Punctuator"&&v.value==="{"?w=C.slice(1,-1):w=C,new e(b,s).retainEnclosingFunction(g).replaceTextRange([S.range[0],g.range[1]],w)}})}function l(g){return g.type==="ReturnStatement"}function o(g){if(g.type==="BlockStatement"){let y=g.body,b=y.at(-1);return b&&l(b)}return l(g)}function u(g){return g.alternate&&g.consequent}function c(g){return g.type==="IfStatement"&&u(g)&&o(g.alternate)&&o(g.consequent)}function p(g){return l(g)||c(g)}function h(g){return g.type==="BlockStatement"?g.body.some(p):p(g)}function f(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let b=[],v;for(let S=g;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;b.push(S.consequent),v=S.alternate}b.every(h)&&a(v)}function d(g){let y=g.parent;if(!r.STATEMENT_LIST_PARENTS.has(y.type))return;let b=g.alternate;b&&h(g.consequent)&&a(b)}return{"IfStatement:exit":!(t.options[0]&&t.options[0].allowElseIf===!1)?f:d}}},ey}var ty,W_;function aW(){if(W_)return ty;W_=1;let r=Pe();return ty={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(e){let t=e.options[0]||{},s=t.allowEmptyCatch||!1,n=e.sourceCode;return{BlockStatement(i){i.body.length===0&&(r.isFunction(i.parent)||s&&i.parent.type==="CatchClause"||n.getCommentsInside(i).length>0||e.report({node:i,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(a){let l=[i.range[0]+1,i.range[1]-1];return a.replaceTextRange(l," /* empty */ ")}}]}))},SwitchStatement(i){(typeof i.cases>"u"||i.cases.length===0)&&e.report({node:i,messageId:"unexpected",data:{type:"switch"}})}}}},ty}var ry,Z_;function oW(){if(Z_)return ry;Z_=1;let{RegExpParser:r,visitRegExpAST:e}=Xn(),t=new r,s=/\[\]/u;return ry={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(n){return{"Literal[regex]"(i){let{pattern:a,flags:l}=i.regex;if(!s.test(a))return;let o;try{o=t.parsePattern(a,0,a.length,{unicode:l.includes("u"),unicodeSets:l.includes("v")})}catch{return}e(o,{onCharacterClassEnter(u){!u.negate&&u.elements.length===0&&n.report({node:i,messageId:"unexpected"})}})}}}},ry}var ny,z_;function lW(){if(z_)return ny;z_=1;let r=Pe(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods"]);function t(s){let n=s.parent,i;if(s.type==="ArrowFunctionExpression")return"arrowFunctions";if(n.type==="Property"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";i=n.method?"methods":"functions"}else if(n.type==="MethodDefinition"){if(n.kind==="get")return"getters";if(n.kind==="set")return"setters";if(n.kind==="constructor")return"constructors";i="methods"}else i="functions";let a;if(s.generator)a="generator";else if(s.async)a="async";else return i;return a+i[0].toUpperCase()+i.slice(1)}return ny={meta:{type:"suggestion",docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}."}},create(s){let i=(s.options[0]||{}).allow||[],a=s.sourceCode;function l(o){let u=t(o),c=r.getFunctionNameWithKind(o),p=a.getTokens(o.body,{includeComments:!0,filter:r.isCommentToken});!i.includes(u)&&o.body.type==="BlockStatement"&&o.body.body.length===0&&p.length===0&&s.report({node:o,loc:o.body.loc,messageId:"unexpected",data:{name:c}})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},ny}var sy,X_;function uW(){if(X_)return sy;X_=1;let r=Pe();return sy={meta:{type:"problem",docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(e){let t=e.options[0]||{},s=t.allowObjectPatternsAsParameters||!1;return{ObjectPattern(n){n.properties.length>0||s&&(r.isFunction(n.parent)||n.parent.type==="AssignmentPattern"&&r.isFunction(n.parent.parent)&&n.parent.right.type==="ObjectExpression"&&n.parent.right.properties.length===0)||e.report({node:n,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(n){n.elements.length===0&&e.report({node:n,messageId:"unexpected",data:{type:"array"}})}}}},sy}var iy,G_;function cW(){return G_||(G_=1,iy={meta:{type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block."}},create(r){let e=r.sourceCode;return{StaticBlock(t){if(t.body.length===0){let s=e.getLastToken(t);e.getCommentsBefore(s).length===0&&r.report({node:t,messageId:"unexpected"})}}}}}),iy}var ay,Y_;function fW(){return Y_||(Y_=1,ay={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(r){return{BinaryExpression(e){let t=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&t||e.left.type==="Literal"&&e.left.raw==="null"&&t)&&r.report({node:e,messageId:"unexpected"})}}}}),ay}var oy,H_;function pW(){if(H_)return oy;H_=1;let r=Pe(),e=Object.freeze(["global","window","globalThis"]);function t(s,n){return r.isSpecificMemberAccess(s,null,n)}return oy={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpected:"eval can be harmful."}},create(s){let n=!!(s.options[0]&&s.options[0].allowIndirect),i=s.sourceCode,a=null;function l(h){let f=i.getScope(h).isStrict;a={upper:a,node:h,strict:f,isTopLevelOfScript:!1,defaultThis:!1,initialized:f}}function o(){a=a.upper}function u(h){let f=h.parent,d=h.type==="MemberExpression"?h.property:h,m=f.type==="CallExpression"&&f.callee===h?f:h;s.report({node:m,loc:d.loc,messageId:"unexpected"})}function c(h){for(let f=0;f *.value":l,"PropertyDefinition > *.value:exit":o,StaticBlock:l,"StaticBlock:exit":o,ThisExpression(h){t(h.parent,"eval")&&(a.initialized||(a.initialized=!0,a.defaultThis=r.isDefaultThisBinding(a.node,i)),(a.isTopLevelOfScript||!a.strict&&a.defaultThis)&&u(h.parent))}}}},oy}var ly,K_;function hW(){if(K_)return ly;K_=1;let r=Pe();return ly={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(e){let t=e.sourceCode;function s(n){r.getModifyingReferences(n.references).forEach(i=>{e.report({node:i.identifier,messageId:"unexpected"})})}return{CatchClause(n){t.getDeclaredVariables(n).forEach(s)}}}},ly}var uy,J_;function dW(){if(J_)return uy;J_=1;let r=Pe();return uy={meta:{type:"suggestion",docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{},s=e.sourceCode,n=new Set(t.exceptions||[]),i=new Set(Object.keys(r.ECMASCRIPT_GLOBALS).filter(p=>p[0].toUpperCase()===p[0]).filter(p=>!n.has(p)));function a(p,h){e.report({node:p,messageId:"unexpected",data:{builtin:h}})}function l(p){return!!(p&&p.parent&&p.parent.type==="MemberExpression"&&p.parent.object===p&&r.getStaticPropertyName(p.parent)==="prototype")}function o(p){return p.parent.type==="MemberExpression"&&p.parent.object===p&&p.parent.parent.type==="AssignmentExpression"&&p.parent.parent.left===p.parent}function u(p){return p.parent.type==="CallExpression"&&p.parent.arguments[0]===p&&r.isSpecificMemberAccess(p.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function c(p){if(!l(p))return;let h=p.parent.parent.type==="ChainExpression"?p.parent.parent:p.parent;o(h)?a(h.parent.parent,p.name):u(h)&&a(h.parent,p.name)}return{"Program:exit"(p){let h=s.getScope(p);i.forEach(f=>{let d=h.set.get(f);d&&d.references&&d.references.map(m=>m.identifier).forEach(c)})}}}},uy}var cy,e2;function mW(){if(e2)return cy;e2=1;let r=Pe(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return cy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(t){let s=t.sourceCode,n=null;function i(h){return e.has(h.type)}function a(h){let f=h.parent,d=f.parent.type==="ChainExpression"?f.parent.parent:f.parent;t.report({node:d,messageId:"unexpected",loc:f.property.loc,fix(m){if(!i(d.arguments[0]))return null;let g=[[s.getTokenAfter(f.object,r.isNotClosingParenToken),s.getLastToken(f)],[s.getTokenAfter(f,r.isNotClosingParenToken),s.getLastToken(d)]],y=g[0][0],b=g[1][1];return s.commentsExistBetween(y,b)?null:g.map(([v,S])=>m.removeRange([v.range[0],S.range[1]]))}})}function l(h){if(!r.isSpecificMemberAccess(h.parent,null,"bind"))return!1;let f=h.parent.parent.type==="ChainExpression"?h.parent.parent:h.parent;return f.parent.type==="CallExpression"&&f.parent.callee===f&&f.parent.arguments.length===1&&f.parent.arguments[0].type!=="SpreadElement"}function o(h){n={isBound:l(h),thisFound:!1,upper:n}}function u(h){n.isBound&&!n.thisFound&&a(h),n=n.upper}function c(h){l(h)&&a(h)}function p(){n&&(n.thisFound=!0)}return{"ArrowFunctionExpression:exit":c,FunctionDeclaration:o,"FunctionDeclaration:exit":u,FunctionExpression:o,"FunctionExpression:exit":u,ThisExpression:p}}},cy}var fy,t2;function gW(){if(t2)return fy;t2=1;let r=Pe(),e=hr(),t=r.getPrecedence;return fy={meta:{type:"suggestion",docs:{description:"Disallow unnecessary boolean casts",recommended:!0,url:"https://eslint.org/docs/latest/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(s){let n=s.sourceCode,i=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function a(f){return(f.type==="CallExpression"||f.type==="NewExpression")&&f.callee.type==="Identifier"&&f.callee.name==="Boolean"}function l(f){return f.type==="LogicalExpression"&&(f.operator==="||"||f.operator==="&&")&&s.options.length&&s.options[0].enforceForLogicalOperands===!0}function o(f){return a(f.parent)&&f===f.parent.arguments[0]||i.has(f.parent.type)&&f===f.parent.test||f.parent.type==="UnaryExpression"&&f.parent.operator==="!"}function u(f){return f.parent.type==="ChainExpression"?u(f.parent):o(f)||l(f.parent)&&u(f.parent)}function c(f){return!!n.getCommentsInside(f).length}function p(f){return e.isParenthesized(1,f,n)}function h(f,d){if(f.parent.type==="ChainExpression")return h(f.parent,d);if(p(f))return!1;let m=f.parent;switch(m.type){case"CallExpression":case"NewExpression":return d.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":return!1;case"ConditionalExpression":return t(d)<=t(m);case"UnaryExpression":return t(d)=we||w(X)))}function D(X){return l&&X.test.type==="AssignmentExpression"}function _(X){for(let we=X;we;we=we.parent)if(we.type==="ReturnStatement"||we.type==="ArrowFunctionExpression"&&we.body.type!=="BlockStatement")return!0;return!1}function B(X){let we=s.getLastToken(X),Ve=s.getTokenBefore(we);return X.arguments.length>0||e.isOpeningParenToken(Ve)&&e.isClosingParenToken(we)&&X.callee.range[1]0&&Ct.test(it[st-1].value))return}}function et(){t.report({node:X,loc:we.loc,messageId:"unexpected",fix:U(X)?it=>{let st=s.text.slice(we.range[1],Ve.range[0]);return it.replaceTextRange([we.range[0],Ve.range[1]],(Q(X)?" ":"")+st+(I(X)?" ":""))}:null})}if(v){v.reports.push({node:X,finishReport:et});return}et()}function ae(X){A(X.argument,i(X))&&V(X.argument)}function se(X){let we=X.object,Ve=X.object.type;for(;Ve==="MemberExpression";)we=we.object,Ve=we.type;return Ve==="CallExpression"}function ve(X){let we=X.callee;A(we,i(X))&&(k(we)||!(N(X)||we.type==="NewExpression"&&!B(we)&&!(X.type==="NewExpression"&&!B(X))||X.type==="NewExpression"&&we.type==="MemberExpression"&&se(we)||!X.optional&&we.type==="ChainExpression"))&&V(X.callee),X.arguments.filter(Ve=>A(Ve,y)).forEach(V)}function H(X){let we=i(X),Ve=i(X.left),et=i(X.right),it=X.operator==="**",st=u&&(X.left.type==="BinaryExpression"||X.left.type==="LogicalExpression"),Ct=u&&(X.right.type==="BinaryExpression"||X.right.type==="LogicalExpression");!st&&E(X.left)&&(!(["AwaitExpression","UnaryExpression"].includes(X.left.type)&&it)&&!e.isMixedLogicalAndCoalesceExpressions(X.left,X)&&(Ve>we||Ve===we&&!it)||w(X.left))&&V(X.left),!Ct&&E(X.right)&&(!e.isMixedLogicalAndCoalesceExpressions(X.right,X)&&(et>we||et===we&&it)||w(X.right))&&V(X.right)}function he(X){if(!X.superClass)return;(i(X.superClass)>b?E(X.superClass):k(X.superClass))&&V(X.superClass)}function $(X){A(X.argument,y)&&V(X.argument)}function pe(X){let we=O(X)?s.getTokenBefore(X):s.getFirstToken(X),Ve=s.getTokenAfter(we,e.isNotOpeningParenToken),et=Ve?s.getTokenAfter(Ve):null,it=Ve?s.getTokenAfter(Ve,e.isNotClosingParenToken):null;e.isOpeningParenToken(we)&&(e.isOpeningBraceToken(Ve)||Ve.type==="Keyword"&&(Ve.value==="function"||Ve.value==="class"||Ve.value==="let"&&it&&(e.isOpeningBracketToken(it)||it.type==="Identifier"))||Ve&&Ve.type==="Identifier"&&Ve.value==="async"&&et&&et.type==="Keyword"&&et.value==="function")&&n.add(Ve),(X.parent.type==="ExportDefaultDeclaration"?A(X,y):E(X))&&V(X)}function K(X,we){let Ve=[X],et=X;for(;et!==we;){if(et=et.parent,et===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Ve.push(et)}return Ve}function le(X,we){return K(we,X).reverse()}function xe(X,we){switch(X.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return X.params.includes(we);case"CallExpression":case"NewExpression":return X.arguments.includes(we);case"MemberExpression":return X.computed&&X.property===we;case"ConditionalExpression":return X.consequent===we;default:return!1}}function Le(){v={upper:v,inExpressionNodes:[],reports:[]}}function qe(){let{upper:X,inExpressionNodes:we,reports:Ve}=v;X?(X.inExpressionNodes.push(...we),X.reports.push(...Ve)):Ve.forEach(({finishReport:et})=>et()),v=X}function rt(X){return v.reports.some(we=>we.node===X)}function ht(X){v.reports=v.reports.filter(we=>we.node!==X)}function pt(X){return X.type==="MemberExpression"?X.parent.type==="NewExpression"&&X.parent.callee===X?!0:X.parent.object===X&&pt(X.parent):!1}function Et({left:X,operator:we,right:Ve}){if(X.type==="Identifier"&&["=","&&=","||=","??="].includes(we)){let et=Ve.type;if(et==="ArrowFunctionExpression"||(et==="FunctionExpression"||et==="ClassExpression")&&!Ve.id)return!0}return!1}return{ArrayExpression(X){X.elements.filter(we=>we&&A(we,y)).forEach(V)},ArrayPattern(X){X.elements.filter(we=>R(we)&&E(we)).forEach(V)},ArrowFunctionExpression(X){if(!F(X)&&!(X.body.type==="ConditionalExpression"&&h)&&X.body.type!=="BlockStatement"){let we=s.getFirstToken(X.body,e.isNotOpeningParenToken),Ve=s.getTokenBefore(we);e.isOpeningParenToken(Ve)&&e.isOpeningBraceToken(we)&&n.add(we),A(X.body,y)&&V(X.body)}},AssignmentExpression(X){R(X.left)&&E(X.left)&&(!Et(X)||w(X.left))&&V(X.left),!F(X)&&A(X.right,i(X))&&V(X.right)},BinaryExpression(X){v&&X.operator==="in"&&v.inExpressionNodes.push(X),H(X)},CallExpression:ve,ConditionalExpression(X){if(F(X))return;let we=new Set(["BinaryExpression","LogicalExpression"]);!(o&&we.has(X.test.type))&&!D(X)&&A(X.test,i({type:"LogicalExpression",operator:"||"}))&&V(X.test),!(o&&we.has(X.consequent.type))&&A(X.consequent,y)&&V(X.consequent),!(o&&we.has(X.alternate.type))&&A(X.alternate,y)&&V(X.alternate)},DoWhileStatement(X){E(X.test)&&!D(X)&&V(X.test)},ExportDefaultDeclaration:X=>pe(X.declaration),ExpressionStatement:X=>pe(X.expression),ForInStatement(X){if(X.left.type!=="VariableDeclaration"){let we=s.getFirstToken(X.left,e.isNotOpeningParenToken);we.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(we,e.isNotClosingParenToken))&&n.add(we)}E(X.left)&&V(X.left),E(X.right)&&V(X.right)},ForOfStatement(X){if(X.left.type!=="VariableDeclaration"){let we=s.getFirstToken(X.left,e.isNotOpeningParenToken);we.value==="let"&&n.add(we)}E(X.left)&&V(X.left),A(X.right,y)&&V(X.right)},ForStatement(X){if(X.test&&E(X.test)&&!D(X)&&V(X.test),X.update&&E(X.update)&&V(X.update),X.init){if(X.init.type!=="VariableDeclaration"){let we=s.getFirstToken(X.init,e.isNotOpeningParenToken);we.value==="let"&&e.isOpeningBracketToken(s.getTokenAfter(we,e.isNotClosingParenToken))&&n.add(we)}Le(),E(X.init)&&V(X.init)}},"ForStatement > *.init:exit"(X){v.reports.length&&v.inExpressionNodes.forEach(we=>{let Ve=le(X,we),et;for(let it=0;it=i(X)&&(X.computed||!(e.isDecimalInteger(X.object)||X.object.type==="Literal"&&X.object.regex))&&V(X.object),Ve&&X.object.type==="CallExpression"&&V(X.object),Ve&&!d&&X.object.type==="NewExpression"&&B(X.object)&&V(X.object),Ve&&X.optional&&X.object.type==="ChainExpression"&&V(X.object),X.computed&&E(X.property)&&V(X.property)},"MethodDefinition[computed=true]"(X){A(X.key,y)&&V(X.key)},NewExpression:ve,ObjectExpression(X){X.properties.filter(we=>we.value&&A(we.value,y)).forEach(we=>V(we.value))},ObjectPattern(X){X.properties.filter(we=>{let Ve=we.value;return R(Ve)&&E(Ve)}).forEach(we=>V(we.value))},Property(X){if(X.computed){let{key:we}=X;we&&A(we,y)&&V(we)}},PropertyDefinition(X){X.computed&&A(X.key,y)&&V(X.key),X.value&&A(X.value,y)&&V(X.value)},RestElement(X){let we=X.argument;R(we)&&E(we)&&V(we)},ReturnStatement(X){let we=s.getFirstToken(X);F(X)||X.argument&&j(we,X.argument)&&!(X.argument.type==="Literal"&&X.argument.regex)&&V(X.argument)},SequenceExpression(X){let we=i(X);X.expressions.filter(Ve=>A(Ve,we)).forEach(V)},SwitchCase(X){X.test&&E(X.test)&&V(X.test)},SwitchStatement(X){E(X.discriminant)&&V(X.discriminant)},ThrowStatement(X){let we=s.getFirstToken(X);j(we,X.argument)&&V(X.argument)},UnaryExpression:ae,UpdateExpression(X){if(X.prefix)ae(X);else{let{argument:we}=X,Ve=s.getLastToken(X);we.loc.end.line===Ve.loc.start.line?ae(X):k(we)&&V(we)}},AwaitExpression:ae,VariableDeclarator(X){X.init&&A(X.init,y)&&!(X.init.type==="Literal"&&X.init.regex)&&V(X.init)},WhileStatement(X){E(X.test)&&!D(X)&&V(X.test)},WithStatement(X){E(X.object)&&V(X.object)},YieldExpression(X){if(X.argument){let we=s.getFirstToken(X);(i(X.argument)>=i(X)&&j(we,X.argument)||k(X.argument))&&V(X.argument)}},ClassDeclaration:he,ClassExpression:he,SpreadElement:$,SpreadProperty:$,ExperimentalSpreadProperty:$,TemplateLiteral(X){X.expressions.filter(we=>we&&E(we)).forEach(V)},AssignmentPattern(X){let{left:we,right:Ve}=X;R(we)&&E(we)&&V(we),Ve&&A(Ve,y)&&V(Ve)}}}},hy}var dy,s2;function bW(){if(s2)return dy;s2=1;let r=zo(),e=Pe();return dy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(t){let s=t.sourceCode;function n(l){let o=s.getTokenAfter(l);if(!o||o.type!=="String")return!0;let u=s.getNodeByRangeIndex(o.range[0]);return!e.isTopLevelExpressionStatement(u.parent)}function i(l){t.report({node:l,messageId:"unexpected",fix:n(l)?o=>new r(o,t.sourceCode).retainSurroundingTokens(l).remove(l):null})}function a(l){for(let o=l;o.type==="Punctuator"&&!e.isClosingBraceToken(o);o=s.getTokenAfter(o))e.isSemicolonToken(o)&&i(o)}return{EmptyStatement(l){let o=l.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(o.type)||i(l)},ClassBody(l){a(s.getFirstToken(l,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(l){a(s.getTokenAfter(l))}}}},dy}var my,i2;function vW(){if(i2)return my;i2=1;let{directivesPattern:r}=Oc(),e=/falls?\s?through/iu;function t(a){for(let l of a)if(l.reachable)return!0;return!1}function s(a,l){return l.test(a)&&!r.test(a.trim())}function n(a,l,o,u){let c=o.sourceCode;if(a.consequent.length===1&&a.consequent[0].type==="BlockStatement"){let h=c.getLastToken(a.consequent[0]),f=c.getCommentsBefore(h).pop();if(f&&s(f.value,u))return f}let p=c.getCommentsBefore(l).pop();return p&&s(p.value,u)?p:null}function i(a,l){return l.loc.start.line>a.loc.end.line+1}return my={meta:{type:"problem",docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string",default:""},allowEmptyCase:{type:"boolean",default:!1},reportUnusedFallthroughComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(a){let l=a.options[0]||{},o=[],u=new Set,c=a.sourceCode,p=l.allowEmptyCase||!1,h=l.reportUnusedFallthroughComment||!1,f=null,d=null;return l.commentPattern?d=new RegExp(l.commentPattern,"u"):d=e,{onCodePathStart(){o.push(u),u=new Set},onCodePathEnd(){u=o.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},onCodePathSegmentEnd(m){u.delete(m)},SwitchCase(m){if(f&&f.node.parent===m.parent){let g=n(f.node,m,a,d);f.isFallthrough&&!g?a.report({messageId:m.test?"case":"default",node:m}):h&&!f.isSwitchExitReachable&&g&&a.report({messageId:"unusedFallthroughComment",node:g})}f=null},"SwitchCase:exit"(m){let g=c.getTokenAfter(m),y=t(u),b=y&&(m.consequent.length>0||!p&&i(m,g))&&m.parent.cases.at(-1)!==m;f={node:m,isSwitchExitReachable:y,isFallthrough:b}}}}},my}var gy,a2;function OW(){if(a2)return gy;a2=1;let r=Pe();return gy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode;return{Literal(s){typeof s.value=="number"&&(s.raw.startsWith(".")&&e.report({node:s,messageId:"leading",fix(n){let i=t.getTokenBefore(s),a=i&&i.range[1]===s.range[0]&&!r.canTokensBeAdjacent(i,`0${s.raw}`);return n.insertTextBefore(s,a?" 0":"0")}}),s.raw.indexOf(".")===s.raw.length-1&&e.report({node:s,messageId:"trailing",fix:n=>n.insertTextAfter(s,"0")}))}}}},gy}var yy,o2;function SW(){if(o2)return yy;o2=1;let r=Pe();return yy={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(e){let t=e.sourceCode;function s(a){r.getModifyingReferences(a).forEach(l=>{e.report({node:l.identifier,messageId:"isAFunction",data:{name:l.identifier.name}})})}function n(a){a.defs[0].type==="FunctionName"&&s(a.references)}function i(a){t.getDeclaredVariables(a).forEach(n)}return{FunctionDeclaration:i,FunctionExpression:i}}},yy}var xy,l2;function EW(){return l2||(l2=1,xy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=r.sourceCode,s=e&&e.exceptions||[];function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"globalShouldNotBeModified",data:{name:u.name}})}function i(a){a.writeable===!1&&!s.includes(a.name)&&a.references.forEach(n)}return{Program(a){t.getScope(a).variables.forEach(i)}}}}),xy}var by,u2;function CW(){if(u2)return by;u2=1;let r=Pe(),e=/^(?:i|lastI)ndexOf$/u,t=["~","!!","+","- -","-","*"];function s(m){return{boolean:"boolean"in m?m.boolean:!0,number:"number"in m?m.number:!0,string:"string"in m?m.string:!0,disallowTemplateShorthand:"disallowTemplateShorthand"in m?m.disallowTemplateShorthand:!1,allow:m.allow||[]}}function n(m){return m.operator==="!"&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){if(m.operator!=="~")return!1;let g=r.skipChainExpression(m.argument);return g.type==="CallExpression"&&r.isSpecificMemberAccess(g.callee,null,e)}function a(m){return m.operator==="*"&&(m.left.type==="Literal"&&m.left.value===1||m.right.type==="Literal"&&m.right.value===1)}function l(m,g){return m.type==="BinaryExpression"&&m.operator==="*"&&m.right.type==="Literal"&&m.right.value===1&&m.parent.type==="BinaryExpression"&&m.parent.operator==="/"&&m.parent.left===m&&!r.isParenthesised(g,m)}function o(m){return m.type==="Literal"&&typeof m.value=="number"||m.type==="CallExpression"&&(m.callee.name==="Number"||m.callee.name==="parseInt"||m.callee.name==="parseFloat")}function u(m){let g=m.left,y=m.right;return y.type!=="BinaryExpression"&&!o(y)?y:g.type!=="BinaryExpression"&&!o(g)?g:null}function c(m){return r.isStringLiteral(m)||m.type==="CallExpression"&&m.callee.type==="Identifier"&&m.callee.name==="String"}function p(m){return r.isStringLiteral(m)&&(m.value===""||m.type==="TemplateLiteral"&&m.quasis.length===1&&m.quasis[0].value.cooked==="")}function h(m){return m.operator==="+"&&(p(m.left)&&!c(m.right)||p(m.right)&&!c(m.left))}function f(m){return m.operator==="+="&&p(m.right)}function d(m){return p(m.left)?m.right:m.left}return by={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,url:"https://eslint.org/docs/latest/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:t},uniqueItems:!0}},additionalProperties:!1}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(m){let g=s(m.options[0]||{}),y=m.sourceCode;function b(v,S,C,O){function w(E){let k=y.getTokenBefore(v);return k?.range[1]===v.range[0]&&!r.canTokensBeAdjacent(k,S)?E.replaceText(v,` ${S}`):E.replaceText(v,S)}m.report({node:v,messageId:"implicitCoercion",data:{recommendation:S},fix(E){return O?w(E):null},suggest:[{messageId:"useRecommendation",data:{recommendation:S},fix(E){return O||!C?null:w(E)}}]})}return{UnaryExpression(v){let S;if(S=g.allow.includes("!!"),!S&&g.boolean&&n(v)){let C=`Boolean(${y.getText(v.argument.argument)})`,w=r.getVariableByName(y.getScope(v),"Boolean")?.identifiers.length===0;b(v,C,!0,w)}if(S=g.allow.includes("~"),!S&&g.boolean&&i(v)){let C=v.argument.type==="ChainExpression"?">= 0":"!== -1",O=`${y.getText(v.argument)} ${C}`;b(v,O,!1,!1)}if(S=g.allow.includes("+"),!S&&g.number&&v.operator==="+"&&!o(v.argument)){let C=`Number(${y.getText(v.argument)})`;b(v,C,!0,!1)}if(S=g.allow.includes("- -"),!S&&g.number&&v.operator==="-"&&v.argument.type==="UnaryExpression"&&v.argument.operator==="-"&&!o(v.argument.argument)){let C=`Number(${y.getText(v.argument.argument)})`;b(v,C,!0,!1)}},"BinaryExpression:exit"(v){let S;S=g.allow.includes("*");let C=!S&&g.number&&a(v)&&!l(v,y)&&u(v);if(C){let O=`Number(${y.getText(C)})`;b(v,O,!0,!1)}if(S=g.allow.includes("-"),!S&&g.number&&v.operator==="-"&&v.right.type==="Literal"&&v.right.value===0&&!o(v.left)){let O=`Number(${y.getText(v.left)})`;b(v,O,!0,!1)}if(S=g.allow.includes("+"),!S&&g.string&&h(v)){let O=`String(${y.getText(d(v))})`;b(v,O,!0,!1)}},AssignmentExpression(v){if(!g.allow.includes("+")&&g.string&&f(v)){let C=y.getText(d(v)),O=`${C} = String(${C})`;b(v,O,!0,!1)}},TemplateLiteral(v){if(!g.disallowTemplateShorthand||v.parent.type==="TaggedTemplateExpression"||v.expressions.length!==1||v.quasis[0].value.cooked!==""||v.quasis[1].value.cooked!==""||c(v.expressions[0]))return;let C=`String(${y.getText(v.expressions[0])})`;b(v,C,!0,!1)}}}},by}var vy,c2;function wW(){return c2||(c2=1,vy={meta:{type:"suggestion",docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]&&r.options[0].lexicalBindings===!0,t=r.sourceCode;function s(n,i,a){r.report({node:n,messageId:i,data:{kind:a}})}return{Program(n){let i=t.getScope(n);i.variables.forEach(a=>{let l=a.writeable===!1;a.writeable!==!0&&(a.eslintExported||a.defs.forEach(u=>{let c=u.node;(u.type==="FunctionName"||u.type==="Variable"&&u.parent.kind==="var")&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalNonLexicalBinding",u.type==="FunctionName"?"function":`'${u.parent.kind}'`)),e&&(u.type==="ClassName"||u.type==="Variable"&&(u.parent.kind==="let"||u.parent.kind==="const"))&&(l?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalLexicalBinding",u.type==="ClassName"?"class":`'${u.parent.kind}'`))}))}),i.implicit.variables.forEach(a=>{let l=i.set.get(a.name),o;if(l){if(l.writeable)return;o="assignmentToReadonlyGlobal"}else o="globalVariableLeak";a.defs.forEach(u=>{s(u.node,o)})})}}}}),vy}var Oy,f2;function kW(){if(f2)return Oy;f2=1;let r=Pe(),{getStaticValue:e}=hr();return Oy={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string."}},create(t){let s=Object.freeze(["global","window","globalThis"]),n=/^(?:set(?:Interval|Timeout)|execScript)$/u,i=t.sourceCode;function a(u){return u.type==="Literal"&&typeof u.value=="string"||u.type==="TemplateLiteral"?!0:u.type==="BinaryExpression"&&u.operator==="+"?a(u.left)||a(u.right):!1}function l(u){let[c]=u.arguments;if(c){let p=e(c,i.getScope(u));(p&&typeof p.value=="string"||a(c))&&t.report({node:u,messageId:"impliedEval"})}}function o(u){let{references:c,name:p}=u;c.forEach(h=>{let d=h.identifier.parent;for(;r.isSpecificMemberAccess(d,null,p);)d=d.parent;if(r.isSpecificMemberAccess(d,null,n)){let m=d.parent.type==="ChainExpression"?d.parent:d,g=m.parent;g.type==="CallExpression"&&g.callee===m&&l(g)}})}return{CallExpression(u){r.isSpecificId(u.callee,n)&&l(u)},"Program:exit"(u){let c=i.getScope(u);s.map(p=>r.getVariableByName(c,p)).filter(p=>!!p&&p.defs.length===0).forEach(o)}}}},Oy}var Sy,p2;function AW(){if(p2)return Sy;p2=1;let{findVariable:r}=hr(),e=Pe(),t={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function s(u){let{parent:c}=u;return c.type==="AssignmentExpression"&&c.left===u||c.type==="ArrayPattern"||c.type==="Property"&&c.value===u&&c.parent.type==="ObjectPattern"||c.type==="RestElement"||c.type==="AssignmentPattern"&&c.left===u}function n(u){let c=u.parent.type==="ChainExpression"?u.parent:u,{parent:p}=c;return p.type==="UpdateExpression"&&p.argument===c||p.type==="UnaryExpression"&&p.operator==="delete"&&p.argument===c}function i(u){let{parent:c}=u;return c.type==="ForInStatement"&&c.left===u||c.type==="ForOfStatement"&&c.left===u}function a(u,c){let{parent:p}=u;if(p.type!=="CallExpression"||p.arguments[0]!==u)return!1;let h=e.skipChainExpression(p.callee);if(!e.isSpecificMemberAccess(h,"Object",t.Object)&&!e.isSpecificMemberAccess(h,"Reflect",t.Reflect))return!1;let f=r(c,h.object);return f!==null&&f.scope.type==="global"}function l(u,c){let{parent:p}=u;return p.type==="MemberExpression"&&p.object===u&&(s(p)||n(p)||i(p))||a(u,c)}function o(u){let c=u.parent;for(;c&&c.type!=="AssignmentExpression"&&c.type!=="UpdateExpression"&&c.type!=="UnaryExpression"&&c.type!=="CallExpression"&&c.type!=="ForInStatement"&&c.type!=="ForOfStatement";)c=c.parent;return c||u}return Sy={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(u){let c=u.sourceCode;return{ImportDeclaration(p){let h=c.getScope(p);for(let f of c.getDeclaredVariables(p)){let d=f.defs.some(g=>g.node.type==="ImportNamespaceSpecifier"),m=null;for(let g of f.references){let y=g.identifier;y!==m&&(m=y,g.isWrite()?u.report({node:o(y),messageId:"readonly",data:{name:y.name}}):d&&l(y,h)&&u.report({node:o(y),messageId:"readonlyMember",data:{name:y.name}}))}}}}}},Sy}var Ey,h2;function PW(){if(h2)return Ey;h2=1;let r=Pe();return Ey={meta:{type:"suggestion",docs:{description:"Disallow inline comments after code",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(e){let t=e.sourceCode,s=e.options[0],n;s&&s.ignorePattern&&(n=new RegExp(s.ignorePattern,"u"));function i(a){let l=String(t.lines[a.loc.start.line-1]),o=String(t.lines[a.loc.end.line-1]),u=l.slice(0,a.loc.start.column).trim(),c=o.slice(a.loc.end.column).trim(),p=!u,h=!c;if(!(p&&h)&&!(n&&n.test(a.value))){if((p||u==="{")&&(h||c==="}")){let f=t.getNodeByRangeIndex(a.range[0]);if(f&&f.type==="JSXEmptyExpression")return}r.isDirectiveComment(a)||e.report({node:a,messageId:"unexpectedInlineComment"})}}return{Program(){t.getAllComments().filter(a=>a.type!=="Shebang").forEach(i)}}}},Ey}var Cy,d2;function TW(){if(d2)return Cy;d2=1;let r=Pe(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),t=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function s(n){let{parent:i}=n;for(;i;){if(i.type==="StaticBlock")return"class static block body";if(r.isFunction(i))return"function body";({parent:i}=i)}return"program"}return Cy={meta:{type:"problem",docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(n){let i=n.sourceCode,a=n.languageOptions.ecmaVersion,l=n.options[1]?.blockScopedFunctions??"allow";function o(u){let c=u.parent;c.type==="BlockStatement"&&t.has(c.parent.type)||e.has(c.type)||n.report({node:u,messageId:"moveDeclToRoot",data:{type:u.type==="FunctionDeclaration"?"function":"variable",body:s(u)}})}return{FunctionDeclaration(u){let c=i.getScope(u).upper.isStrict;l==="allow"&&a>=2015&&c||o(u)},VariableDeclaration(u){n.options[0]==="both"&&u.kind==="var"&&o(u)}}}},Cy}var wy,m2;function DW(){if(m2)return wy;m2=1;let r=Xn().RegExpValidator,e=new r,t=/[dgimsuvy]/gu,s=void 0;return wy={meta:{type:"problem",docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(n){let i=n.options[0],a=null;if(i&&i.allowConstructorFlags){let h=i.allowConstructorFlags.join("").replace(t,"");h&&(a=new RegExp(`[${h}]`,"gu"))}function l(h,f){n.report({node:h,messageId:"regexMessage",data:{message:f}})}function o(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function u(h){return h.arguments.length<2?"":o(h.arguments[1])?h.arguments[1].value:null}function c(h,f){try{return e.validatePattern(h,s,s,f),null}catch(d){return d.message}}function p(h){if(!h)return null;try{e.validateFlags(h)}catch{return`Invalid flags supplied to RegExp constructor '${h}'`}return h.includes("u")&&h.includes("v")?"Regex 'u' and 'v' flags cannot be used together":null}return{"CallExpression, NewExpression"(h){if(h.callee.type!=="Identifier"||h.callee.name!=="RegExp")return;let f=u(h);f&&a&&(f=f.replace(a,""));let d=p(f);if(d){l(h,d);return}if(!o(h.arguments[0]))return;let m=h.arguments[0].value;d=f===null?c(m,{unicode:!0,unicodeSets:!1})&&c(m,{unicode:!1,unicodeSets:!0})&&c(m,{unicode:!1,unicodeSets:!1}):c(m,{unicode:f.includes("u"),unicodeSets:f.includes("v")}),d&&l(h,d)}}}},wy}var ky,g2;function _W(){if(g2)return ky;g2=1;let r=Pe();function e(t,s){return t.origin==="function"&&s.type==="ArrowFunctionExpression"}return ky={meta:{type:"suggestion",docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(t){let n=(t.options[0]||{}).capIsConstructor!==!1,i=[],a=t.sourceCode;return i.getCurrent=function(){let l=this.at(-1);return l.init||(l.init=!0,l.valid=!r.isDefaultThisBinding(l.node,a,{capIsConstructor:n})),l},{onCodePathStart(l,o){if(!e(l,o)){if(l.origin==="program"){let u=a.getScope(o),c=t.languageOptions.parserOptions.ecmaFeatures||{};i.push({init:!0,node:o,valid:!(o.sourceType==="module"||c.globalReturn&&u.childScopes[0].isStrict)});return}i.push({init:!a.getScope(o).isStrict,node:o,valid:!0})}},onCodePathEnd(l,o){e(l,o)||i.pop()},ThisExpression(l){let o=i.getCurrent();o&&!o.valid&&t.report({node:l,messageId:"unexpectedThis"})}}}},ky}var Ay,y2;function IW(){if(y2)return Ay;y2=1;let r=Pe(),e=/[\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,t=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mgu,s=/[\u2028\u2029]/mgu,n=r.createGlobalLinebreakMatcher();return Ay={meta:{type:"problem",docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/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},skipJSXText:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(i){let a=[],l=i.options[0]||{},o=!!l.skipComments,u=l.skipStrings!==!1,c=!!l.skipRegExps,p=!!l.skipTemplates,h=!!l.skipJSXText,f=i.sourceCode,d=f.getAllComments();function m(E){let k=E.loc.start,A=E.loc.end;a=a.filter(({loc:{start:D}})=>D.line=A.column||D.line>A.line)}function g(E){let k=u&&typeof E.value=="string",A=c&&!!E.regex;(k||A)&&e.test(E.raw)&&m(E)}function y(E){typeof E.value.raw=="string"&&e.test(E.value.raw)&&m(E)}function b(E){e.test(E.value)&&m(E)}function v(E){e.test(E.raw)&&m(E)}function S(E){f.lines.forEach((A,D)=>{let _=D+1,B;for(;(B=t.exec(A))!==null;)a.push({node:E,messageId:"noIrregularWhitespace",loc:{start:{line:_,column:B.index},end:{line:_,column:B.index+B[0].length}}})})}function C(E){let k=f.getText(),A=f.lines,D=k.match(n),_=-1,B;for(;(B=s.exec(k))!==null;){let T=D.indexOf(B[0],_+1)||0;a.push({node:E,messageId:"noIrregularWhitespace",loc:{start:{line:T+1,column:A[T].length},end:{line:T+2,column:0}}}),_=T}}function O(){}let w={};return e.test(f.getText())?(w.Program=function(E){S(E),C(E)},w.Literal=g,w.TemplateElement=p?y:O,w.JSXText=h?v:O,w["Program:exit"]=function(){o&&d.forEach(b),a.forEach(E=>i.report(E))}):w.Program=O,w}},Ay}var Py,x2;function FW(){if(x2)return Py;x2=1;let{getStaticPropertyName:r}=Pe();return Py={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(e){return{MemberExpression(t){r(t)==="__iterator__"&&e.report({node:t,messageId:"noIterator"})}}}},Py}var Ty,b2;function RW(){if(b2)return Ty;b2=1;let r=Pe();return Ty={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(e){let t=e.sourceCode;function s(n,i){return r.getVariableByName(n,i)!==null}return{LabeledStatement(n){let i=t.getScope(n);s(i,n.label.name)&&e.report({node:n,messageId:"identifierClashWithLabel"})}}}},Ty}var Dy,v2;function BW(){if(v2)return Dy;v2=1;let r=Pe();return Dy={meta:{type:"suggestion",docs:{description:"Disallow labeled statements",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s=t&&t.allowLoop,n=t&&t.allowSwitch,i=null;function a(u){return r.isLoop(u)?"loop":u.type==="SwitchStatement"?"switch":"other"}function l(u){switch(u){case"loop":return s;case"switch":return n;default:return!1}}function o(u){let c=i;for(;c;){if(c.label===u)return c.kind;c=c.upper}return"other"}return{LabeledStatement(u){i={label:u.label.name,kind:a(u.body),upper:i}},"LabeledStatement:exit"(u){l(i.kind)||e.report({node:u,messageId:"unexpectedLabel"}),i=i.upper},BreakStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInBreak"})},ContinueStatement(u){u.label&&!l(o(u.label.name))&&e.report({node:u,messageId:"unexpectedLabelInContinue"})}}}},Dy}var _y,O2;function NW(){return O2||(O2=1,_y={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(r){let e=[],t,s=r.sourceCode;function n(l){let o=l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";r.report({node:l,messageId:o})}function i(l){return l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock"||l.parent.type==="Program"||l.parent.type==="SwitchCase"&&!(l.parent.consequent[0]===l&&l.parent.consequent.length===1)}function a(l){if(e.length===0)return;let o=l.parent;e.at(-1)===o&&e.pop()}return t={BlockStatement(l){i(l)&&n(l)}},r.languageOptions.ecmaVersion>=2015&&(t={BlockStatement(l){i(l)&&e.push(l)},"BlockStatement:exit"(l){e.length>0&&e.at(-1)===l?(e.pop(),n(l)):(l.parent.type==="BlockStatement"||l.parent.type==="StaticBlock")&&l.parent.body.length===1&&n(l)}},t.VariableDeclaration=function(l){l.kind!=="var"&&a(l)},t.FunctionDeclaration=function(l){s.getScope(l).isStrict&&a(l)},t.ClassDeclaration=a),t}}),_y}var Iy,S2;function LW(){return S2||(S2=1,Iy={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(r){let e=r.sourceCode;return{IfStatement(t){let s=t.parent,n=s.parent;s&&s.type==="BlockStatement"&&s.body.length===1&&n&&n.type==="IfStatement"&&s===n.alternate&&r.report({node:t,messageId:"unexpectedLonelyIf",fix(i){let a=e.getFirstToken(s),l=e.getLastToken(s),o=e.getTokenBefore(a),u=e.getTokenAfter(l),c=e.getLastToken(t.consequent),p=e.getText();return p.slice(a.range[1],t.range[0]).trim()||p.slice(t.range[1],l.range[0]).trim()||t.consequent.type!=="BlockStatement"&&c.value!==";"&&u&&(t.consequent.loc.end.line===u.loc.start.line||/^[([/+`-]/u.test(u.value)||c.value==="++"||c.value==="--")?null:i.replaceTextRange([a.range[0],l.range[1]],(o.range[1]===a.range[0]?" ":"")+e.getText(t))}})}}}}),Iy}var Fy,E2;function $W(){if(E2)return Fy;E2=1;function r(s){for(let n=s;n.parent;n=n.parent){let i=n.parent;switch(i.type){case"WhileStatement":case"DoWhileStatement":return i;case"ForStatement":if(i.init!==n)return i;break;case"ForInStatement":case"ForOfStatement":if(i.right!==n)return i;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":return null}}return null}function e(s,n){let i=n?n.range[1]:0,a=s,l=s;for(;l&&l.range[0]>=i;)a=l,l=r(l);return a}function t(s,n){let i=n.resolved,a=i&&i.defs[0],l=a&&a.parent,o=l&&l.type==="VariableDeclaration"?l.kind:"";if(o==="const"||o==="let"&&l.range[0]>s.range[0]&&l.range[1]c.resolved&&!t(l,c)).map(c=>c.identifier.name);u.length>0&&s.report({node:a,messageId:"unsafeRefs",data:{varNames:`'${u.join("', '")}'`}})}return{ArrowFunctionExpression:i,FunctionExpression:i,FunctionDeclaration:i}}},Fy}var Ry,C2;function MW(){return C2||(C2=1,Ry={meta:{type:"problem",docs:{description:"Disallow literal numbers that lose precision",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(r){function e(f){return typeof f.value=="number"}function t(f){return f.raw.replace(/_/gu,"")}function s(f){return["0x","0X","0b","0B","0o","0O"].every(m=>!f.raw.startsWith(m))&&!/^0[0-7]+$/u.test(f.raw)}function n(f){let d=t(f).toUpperCase(),m;return d.startsWith("0B")?m=2:d.startsWith("0X")?m=16:m=8,!d.endsWith(f.value.toString(m).toUpperCase())}function i(f){return`${f[0]}.${f.slice(1)}`}function a(f){for(let d=0;d=0;d--)if(f[d]!=="0")return f.slice(0,d+1);return f}function o(f){let d=l(a(f));return{magnitude:f.startsWith("0")?f.length-2:f.length-1,coefficient:i(d)}}function u(f){let d=a(f);if(d.startsWith(".")){let m=d.slice(1),g=a(m);return{magnitude:g.length-m.length-1,coefficient:i(g)}}return{magnitude:d.indexOf(".")-1,coefficient:i(d.replace(".",""))}}function c(f){let d=f.replace("E","e").split("e"),m=d[0],g=f.includes(".")?u(m):o(m),y=g.coefficient,b=d.length>1?parseInt(d[1],10)+g.magnitude:g.magnitude;return`${y}e${b}`}function p(f){let d=c(t(f)),m=d.split("e")[0].replace(".","").length;if(m>100)return!0;let g=f.value.toPrecision(m),y=c(g);return d!==y}function h(f){return s(f)?p(f):n(f)}return{Literal(f){f.value&&e(f)&&h(f)&&r.report({messageId:"noLossOfPrecision",node:f})}}}}),Ry}var By,w2;function jW(){if(w2)return By;w2=1;let r=Pe(),e=2**32-1;function t(s){return typeof s=="string"?BigInt(s.slice(0,-1)):s}return By={meta:{type:"suggestion",docs:{description:"Disallow magic numbers",recommended:!1,url:"https://eslint.org/docs/latest/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},ignoreClassFieldInitialValues:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(s){let n=s.options[0]||{},i=!!n.detectObjects,a=!!n.enforceConst,l=new Set((n.ignore||[]).map(t)),o=!!n.ignoreArrayIndexes,u=!!n.ignoreDefaultValues,c=!!n.ignoreClassFieldInitialValues,p=i?[]:["ObjectExpression","Property","AssignmentExpression"];function h(b){return l.has(b)}function f(b){let v=b.parent;return v.type==="AssignmentPattern"&&v.right===b}function d(b){let v=b.parent;return v.type==="PropertyDefinition"&&v.value===b}function m(b){let v=b.parent;return v.type==="CallExpression"&&b===v.arguments[1]&&(r.isSpecificId(v.callee,"parseInt")||r.isSpecificMemberAccess(v.callee,"Number","parseInt"))}function g(b){return b.parent.type.indexOf("JSX")===0}function y(b,v){let S=b.parent;return S.type==="MemberExpression"&&S.property===b&&(Number.isInteger(v)||typeof v=="bigint")&&v>=0&&v=127995&&e<=127999}),Ly}var $y,P2;function UW(){return P2||(P2=1,$y=function(e){return e>=127462&&e<=127487}),$y}var My,T2;function VW(){return T2||(T2=1,My=function(e,t){return e>=55296&&e<56320&&t>=56320&&t<57344}),My}var jy,D2;function WW(){if(D2)return jy;D2=1;let r=qW(),e=QW(),t=UW(),s=VW();return jy={isCombiningCharacter:r,isEmojiModifier:e,isRegionalIndicatorSymbol:t,isSurrogatePair:s},jy}var qy,_2;function LO(){if(_2)return qy;_2=1;let{RegExpValidator:r}=Xn(),e=2024;function t(s,n){if(s<=5)return!1;let i=new r({ecmaVersion:Math.min(s,e)});try{i.validatePattern(n,void 0,void 0,{unicode:!0})}catch{return!1}return!0}return qy={isValidWithUnicodeFlag:t,REGEXPP_LATEST_ECMA_VERSION:e},qy}var Qy,I2;function ZW(){if(I2)return Qy;I2=1;class r{constructor(p,h){this.start=p,this.source=h}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(p){this.source=p,this.pos=0}advance(p){this.pos+=p}read(p=0,h=1){let f=p+this.pos;return this.source.slice(f,f+h)}}let t={__proto__:null,b:"\b",f:"\f",n:` `,r:"\r",t:" ",v:"\v"};function s(c,p){let h=c.read(0,p),f=parseInt(h,16);return c.advance(p),String.fromCharCode(f)}function n(c){let p=/\{(?[\dA-Fa-f]+)\}/uy;p.lastIndex=c.pos;let h=p.exec(c.source);if(h){let f=parseInt(h.groups.hexDigits,16);return c.pos=p.lastIndex,String.fromCodePoint(f)}return s(c,4)}function i(c,p){let[h]=c.read(-1,p).match(/^[0-7]+/u);c.advance(h.length-1);let f=parseInt(h,8);return String.fromCharCode(f)}function a(c){let p=c.read(1);c.advance(2);let h=t[p];if(h)return h;switch(p){case"x":return s(c,2);case"u":return n(c);case"\r":c.read()===` `&&c.advance(1);case` `:case"\u2028":case"\u2029":return"";case"0":case"1":case"2":case"3":return i(c,3);case"4":case"5":case"6":case"7":return i(c,2);default:return p}}function*l(c){let p=c.pos,h=a(c),f=c.pos,d=c.source.slice(p,f);switch(h.length){case 0:break;case 1:yield new r(p,d);break;default:yield new r(p,d),yield new r(p,d);break}}function o(c){let p=new e(c),h=p.read();p.advance(1);let f=[];for(;;){let d=p.read();if(d===h)break;d==="\\"?f.push(...l(p)):(f.push(new r(p.pos,d)),p.advance(1))}return f}function u(c){let p=new e(c);p.advance(1);let h=[];for(;;){let f=p.read();if(f==="`"||f==="$"&&p.read(1)==="{")break;if(f==="\\")h.push(...l(p));else{let d;f==="\r"&&p.read(1)===` `?d=`\r -`:d=f,h.push(new r(p.pos,d)),p.advance(d.length)}}return h}return Vy={parseStringLiteral:o,parseTemplateToken:u},Vy}var Wy,B2;function GW(){if(B2)return Wy;B2=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStaticValue:s,getStringIfConstant:n}=mr(),{RegExpParser:i,visitRegExpAST:a}=Yn(),{isCombiningCharacter:l,isEmojiModifier:o,isRegionalIndicatorSymbol:u,isSurrogatePair:c}=zW(),p=De(),{isValidWithUnicodeFlag:h}=MO(),{parseStringLiteral:f,parseTemplateToken:d}=XW();function*m(C){let k=[];for(let E of C)switch(E.type){case"Character":k.push(E);break;case"CharacterClassRange":k.push(E.min),yield k,k=[E.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":k.length>0&&(yield k,k=[]);break}k.length>0&&(yield k)}function g(C){return/^\\u\{[\da-f]+\}$/iu.test(C.raw)}let b={*surrogatePairWithoutUFlag(C){for(let[k,E]of C.entries()){if(k===0)continue;let A=C[k-1];c(A.value,E.value)&&!g(A)&&!g(E)&&(yield[A,E])}},*surrogatePair(C){for(let[k,E]of C.entries()){if(k===0)continue;let A=C[k-1];c(A.value,E.value)&&(g(A)||g(E))&&(yield[A,E])}},*combiningClass(C){for(let[k,E]of C.entries()){if(k===0)continue;let A=C[k-1];l(E.value)&&!l(A.value)&&(yield[A,E])}},*emojiModifier(C){for(let[k,E]of C.entries()){if(k===0)continue;let A=C[k-1];o(E.value)&&!o(A.value)&&(yield[A,E])}},*regionalIndicatorSymbol(C){for(let[k,E]of C.entries()){if(k===0)continue;let A=C[k-1];u(E.value)&&u(A.value)&&(yield[A,E])}},*zwj(C){let k=null;for(let[E,A]of C.entries())E===0||E===C.length-1||A.value===8205&&C[E-1].value!==8205&&C[E+1].value!==8205&&(k?k.at(-1)===C[E-1]?k.push(A,C[E+1]):(yield k,k=C.slice(E-1,E+2)):k=C.slice(E-1,E+2));k&&(yield k)}},O=Object.keys(b);function S(C,k){if(!C)return null;if(C.type==="Literal"&&C.regex)return{regex:C.regex};let E=s(C,k);return E?.value instanceof RegExp?null:E}return Wy={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/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",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.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(C){let k=C.sourceCode,E=new i,A=new Set;function w(P,T,I,F){let L;try{L=E.parsePattern(T,0,T.length,{unicode:I.includes("u"),unicodeSets:I.includes("v")})}catch{return}let _=new Map;a(L,{onCharacterClassEnter(V){for(let R of m(V.elements))for(let $ of O)_.has($)?_.get($).push(...b[$](R)):_.set($,[...b[$](R)])}});let B=null;function Q(V){return!p.isStaticTemplateLiteral(P)&&P.type!=="Literal"?V.length?[P.loc]:[]:V.map(R=>{let $=R[0].start,N=R.at(-1).end-1,W,Z;if(P.type==="TemplateLiteral"){let le=k.getText(P),ae=P.range[0];B??=d(le),W=ae+B[$].start,Z=ae+B[N].end}else if(typeof P.value=="string"){let le=P.raw,ae=P.range[0];B??=f(le),W=ae+B[$].start,Z=ae+B[N].end}else{let le=P.range[0]+1;W=le+$,Z=le+N+1}return{start:k.getLocFromIndex(W),end:k.getLocFromIndex(Z)}})}for(let[V,R]of _){let $;V==="surrogatePairWithoutUFlag"&&($=[{messageId:"suggestUnicodeFlag",fix:F}]);let N=Q(R);for(let W of N)C.report({node:P,loc:W,messageId:V,suggest:$})}}return{"Literal[regex]"(P){A.has(P)||w(P,P.regex.pattern,P.regex.flags,T=>h(C.languageOptions.ecmaVersion,P.regex.pattern)?T.insertTextAfter(P,"u"):null)},Program(P){let T=k.getScope(P),I=new t(T);for(let{node:F}of I.iterateGlobalReferences({RegExp:{[r]:!0,[e]:!0}})){let L,_,[B,Q]=F.arguments,V=S(B,T);if(V){if(Q)V.regex?(L=V.regex.pattern,A.add(B)):L=String(V.value),_=n(Q,T);else{if(V.regex)continue;L=String(V.value),_=""}typeof _=="string"&&w(B,L,_,R=>{if(!h(C.languageOptions.ecmaVersion,L))return null;if(F.arguments.length===1){let $=k.getLastToken(F,{skip:1});return R.insertTextAfter($,p.isCommaToken($)?' "u",':', "u"')}if(Q.type==="Literal"&&typeof Q.value=="string"||Q.type==="TemplateLiteral"){let $=[Q.range[0],Q.range[1]-1];return R.insertTextAfterRange($,"u")}return null})}}}}}},Wy}var Zy,N2;function YW(){if(N2)return Zy;N2=1;let r=De(),e=["+","-","*","/","%","**"],t=["&","|","^","~","<<",">>",">>>"],s=["==","!=","===","!==",">",">=","<","<="],n=["&&","||"],i=["in","instanceof"],a=["?:"],l=["??"],o=[].concat(e,t,s,n,i,a,l),u=[e,t,s,n,i],c=/^(?:Binary|Logical|Conditional)Expression$/u;function p(d={}){let g=d.groups&&d.groups.length>0?d.groups:u,b=d.allowSamePrecedence!==!1;return{groups:g,allowSamePrecedence:b}}function h(d,m,g){return d.some(b=>b.includes(m)&&b.includes(g))}function f(d){return d.type==="ConditionalExpression"?d.test:d.left}return Zy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:o},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(d){let m=d.sourceCode,g=p(d.options[0]);function b(E){let A=E,w=E.parent;return!h(g.groups,A.operator,w.type==="ConditionalExpression"?"?:":w.operator)||g.allowSamePrecedence&&r.getPrecedence(A)===r.getPrecedence(w)}function O(E){return E.operator!==E.parent.operator&&!r.isParenthesised(m,E)}function S(E){return m.getTokenAfter(f(E),r.isNotClosingParenToken)}function C(E){let A=E.parent,w=f(A)===E?E:A,P=f(A)!==E?E:A,T={leftOperator:w.operator||"?:",rightOperator:P.operator||"?:"};d.report({node:w,loc:S(w).loc,messageId:"unexpectedMixedOperator",data:T}),d.report({node:P,loc:S(P).loc,messageId:"unexpectedMixedOperator",data:T})}function k(E){c.test(E.parent.type)&&O(E)&&!b(E)&&C(E)}return{BinaryExpression:k,LogicalExpression:k}}},Zy}var zy,L2;function HW(){return L2||(L2=1,zy={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/latest/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(r){let e=r.options[0],t=!1,s=!1;typeof e=="object"?(t=e.grouping,s=e.allowCall):t=!!e;function n(){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=n(),a="require",l="uninitialized",o="other",u="core",c="file",p="module",h="computed";function f(b){return b?b.type==="CallExpression"&&b.callee.type==="Identifier"&&b.callee.name==="require"?a:s&&b.type==="CallExpression"&&b.callee.type==="CallExpression"?f(b.callee):b.type==="MemberExpression"?f(b.object):o:l}function d(b){if(b.type==="MemberExpression")return d(b.object);if(b.arguments.length===0)return h;let O=b.arguments[0];return O.type!=="Literal"||typeof O.value!="string"?h:i.includes(O.value)?u:/^\.{0,2}\//u.test(O.value)?c:p}function m(b){let O={};return b.forEach(S=>{let C=f(S.init);O[C]=!0}),!!(O[a]&&(O[l]||O[o]))}function g(b){let O={};return b.forEach(S=>{f(S.init)===a&&(O[d(S.init)]=!0)}),Object.keys(O).length<=1}return{VariableDeclaration(b){m(b.declarations)?r.report({node:b,messageId:"noMixRequire"}):t&&!g(b.declarations)&&r.report({node:b,messageId:"noMixCoreModuleFileComputed"})}}}}),zy}var Xy,$2;function KW(){return $2||($2=1,Xy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(r){let e=r.sourceCode,t;switch(r.options[0]){case!0:case"smart-tabs":t=!0;break;default:t=!1}return{"Program:exit"(s){let n=e.lines,i=e.getAllComments(),a=new Set;i.forEach(o=>{for(let u=o.loc.start.line+1;u<=o.loc.end.line;u++)a.add(u)});let l=/^(?=( +|\t+))\1(?:\t| )/u;t&&(l=/^(?=(\t*))\1(?=( +))\2\t/u),n.forEach((o,u)=>{let c=l.exec(o);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)||r.report({node:s,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}),Xy}var Gy,M2;function JW(){return M2||(M2=1,Gy={meta:{type:"suggestion",docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(r){let e=r.options[0]||{ignoreNonDeclaration:!1},t=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e.ignoreNonDeclaration||t.push("AssignmentExpression > AssignmentExpression.right"),{[t](s){r.report({node:s,messageId:"unexpectedChain"})}}}}),Gy}var Yy,j2;function eZ(){if(j2)return Yy;j2=1;let r=De();return Yy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||{},n=s.ignoreEOLComments,i=Object.assign({Property:!0},s.exceptions),a=Object.keys(i).some(o=>i[o]);function l(o){let u=o.value.split(` -`),c=u[0],p=`${c.slice(0,12)}...`;return u.length===1&&c.length<=12?c:p}return{Program(){t.tokensAndComments.forEach((o,u,c)=>{if(u===c.length-1)return;let p=c[u+1];if(!t.text.slice(o.range[1],p.range[0]).includes(" ")||o.loc.end.linef.replaceTextRange([o.range[1],p.range[0]]," ")})})}}}},Yy}var Hy,q2;function tZ(){if(q2)return Hy;q2=1;let r=De();return Hy={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function t(s){return s.type.indexOf("JSX")===0}return{Literal(s){r.LINEBREAK_MATCHER.test(s.raw)&&!t(s.parent)&&e.report({node:s,messageId:"multilineString"})}}}},Hy}var Ky,Q2;function rZ(){return Q2||(Q2=1,Ky={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=2,t=e,s=e;r.options.length&&(e=r.options[0].max,t=typeof r.options[0].maxEOF<"u"?r.options[0].maxEOF:e,s=typeof r.options[0].maxBOF<"u"?r.options[0].maxBOF:e);let n=r.sourceCode,i=n.lines.at(-1)===""?n.lines.slice(0,-1):n.lines,a=new Set;return{TemplateLiteral(l){l.quasis.forEach(o=>{for(let u=o.loc.start.line;u((u.trim()||a.has(c+1))&&o.push(c+1),o),[]).concat(i.length+1).reduce((o,u)=>{let c,p;return o===0?(c="blankBeginningOfFile",p=s):u===i.length+1?(c="blankEndOfFile",p=t):(c="consecutiveBlank",p=e),u-o-1>p&&r.report({node:l,loc:{start:{line:o+p+1,column:0},end:{line:u,column:0}},messageId:c,data:{max:p,pluralizedLines:p===1?"line":"lines"},fix(h){let f=n.getIndexFromLoc({line:o+1,column:0}),d=u-p,m=d<=i.length?n.getIndexFromLoc({line:d,column:0}):n.text.length;return h.removeRange([f,m])}}),u},0)}}}}),Ky}var Jy,U2;function nZ(){return U2||(U2=1,Jy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=e&&e.exceptions||[],s=r.sourceCode;function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"nativeReassign",data:u})}function i(a){a.writeable===!1&&!t.includes(a.name)&&a.references.forEach(n)}return{Program(a){s.getScope(a).variables.forEach(i)}}}}),Jy}var ex,V2;function sZ(){return V2||(V2=1,ex={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(r){function e(i){return i.alternate&&i.alternate.type!=="IfStatement"}function t(i){return i.type==="UnaryExpression"&&i.operator==="!"}function s(i){return i.type==="BinaryExpression"&&(i.operator==="!="||i.operator==="!==")}function n(i){return t(i.test)||s(i.test)}return{IfStatement(i){e(i)&&n(i)&&r.report({node:i,messageId:"unexpectedNegated"})},ConditionalExpression(i){n(i)&&r.report({node:i,messageId:"unexpectedNegated"})}}}}),ex}var tx,W2;function iZ(){return W2||(W2=1,tx={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(r){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&r.report({node:e,messageId:"negatedLHS"})}}}}),tx}var rx,Z2;function aZ(){return Z2||(Z2=1,rx={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(r){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&r.report({node:e,messageId:"noNestedTernary"})}}}}),rx}var nx,z2;function oZ(){return z2||(z2=1,nx={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(r){return{"ExpressionStatement > NewExpression"(e){r.report({node:e.parent,messageId:"noNewStatement"})}}}}),nx}var sx,X2;function lZ(){if(X2)return sx;X2=1;let r=De(),e=new Set(["apply","bind","call"]);return sx={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(t){let s=t.sourceCode;return{"Program:exit"(n){let a=s.getScope(n).set.get("Function");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,{parent:u}=o,c;if(u){if(o===u.callee&&(u.type==="NewExpression"||u.type==="CallExpression"))c=u;else if(u.type==="MemberExpression"&&o===u.object&&e.has(r.getStaticPropertyName(u))){let p=u.parent.type==="ChainExpression"?u.parent:u;p.parent.type==="CallExpression"&&p.parent.callee===p&&(c=p.parent)}}c&&t.report({node:c,messageId:"noFunctionConstructor"})})}}}},sx}var ix,G2;function uZ(){if(G2)return ix;G2=1;let r=["Symbol","BigInt"];return ix={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(s){let n=t.getScope(s);for(let i of r){let a=n.set.get(i);a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,u=o.parent;u&&u.type==="NewExpression"&&u.callee===o&&e.report({node:o,messageId:"noNewNonconstructor",data:{name:i}})})}}}}},ix}var ax,Y2;function cZ(){if(Y2)return ax;Y2=1;let r=De();return ax={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:!0,replacedBy:["no-object-constructor"],schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){let t=e.sourceCode;return{NewExpression(s){let n=r.getVariableByName(t.getScope(s),s.callee.name);n&&n.identifiers.length>0||s.callee.name==="Object"&&e.report({node:s,messageId:"preferLiteral"})}}}},ax}var ox,H2;function fZ(){return H2||(H2=1,ox={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(r){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&r.report({node:e,messageId:"noNewRequire"})}}}}),ox}var lx,K2;function pZ(){return K2||(K2=1,lx={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:!0,replacedBy:["no-new-native-nonconstructor"],schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(r){let e=r.sourceCode;return{"Program:exit"(t){let n=e.getScope(t).set.get("Symbol");n&&n.defs.length===0&&n.references.forEach(i=>{let a=i.identifier,l=a.parent;l&&l.type==="NewExpression"&&l.callee===a&&r.report({node:a,messageId:"noNewSymbol"})})}}}}),lx}var ux,J2;function hZ(){if(J2)return ux;J2=1;let{getVariableByName:r}=De();return ux={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){let{sourceCode:t}=e;return{NewExpression(s){let n=["String","Number","Boolean"],{name:i}=s.callee;if(n.includes(i)){let a=r(t.getScope(s),i);a&&a.identifiers.length===0&&e.report({node:s,messageId:"noConstructor",data:{fn:i}})}}}}},ux}var cx,eI;function dZ(){if(eI)return cx;eI=1;let r=/\\[89]/u;function e(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}return cx={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/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 s=t.sourceCode;function n(i,a,l){return{messageId:i,data:{original:s.getText().slice(...a),replacement:l},fix(o){return o.replaceTextRange(a,l)}}}return{Literal(i){if(typeof i.value!="string"||!r.test(i.raw))return;let a=/(?:[^\\]|(?\\.))*?(?\\[89])/suy,l;for(;l=a.exec(i.raw);){let{previousEscape:o,decimalEscape:u}=l.groups,c=i.range[0]+l.index+l[0].length,p=c-u.length,h=[p,c],f=[];o==="\\0"?f.push(n("refactor",[p-o.length,c],`${e("\0")}${u[1]}`),n("refactor",h,e(u[1]))):f.push(n("refactor",h,u[1])),f.push(n("escapeBackslash",h,`\\${u}`)),t.report({node:i,loc:{start:s.getLocFromIndex(p),end:s.getLocFromIndex(c)},messageId:"decimalEscape",data:{decimalEscape:u},suggest:f})}}}}},cx}var fx,tI;function mZ(){if(tI)return fx;tI=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t}=mr(),s=De().getStaticPropertyName,n=["Atomics","JSON","Math","Reflect","Intl"];function i(a){return a.type==="ChainExpression"?i(a.expression):a.type==="MemberExpression"?s(a):a.name}return fx={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(a){let l=a.sourceCode;return{Program(o){let u=l.getScope(o),c=new t(u),p={};for(let h of n)p[h]={[r]:!0,[e]:!0};for(let{node:h,path:f}of c.iterateGlobalReferences(p)){let d=i(h.callee),m=f[0],g=d===m?"unexpectedCall":"unexpectedRefCall";a.report({node:h,messageId:g,data:{name:d,ref:m}})}}}}},fx}var px,rI;function gZ(){if(rI)return px;rI=1;let{getVariableByName:r,isArrowToken:e,isStartOfExpressionStatement:t,needsPrecedingSemicolon:s}=De();return px={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(n){let i=n.sourceCode;function a(o){if(t(o))return!0;let u=i.getTokenBefore(o);return!!(u&&e(u))}function l(o){if(o.callee.type!=="Identifier"||o.callee.name!=="Object"||o.arguments.length)return;let u=r(i.getScope(o),"Object");if(u&&u.identifiers.length===0){let c,p,h="useLiteral";a(o)?(c="({})",s(i,o)?(p=";({})",h="useLiteralAfterSemicolon"):p="({})"):c=p="{}",n.report({node:o,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:c},fix:f=>f.replaceText(o,p)}]})}}return{CallExpression:l,NewExpression:l}}},px}var hx,nI;function yZ(){return nI||(nI=1,hx={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(r){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&r.report({node:e,messageId:"noOctal"})}}}}),hx}var dx,sI;function xZ(){return sI||(sI=1,dx={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(r){return{Literal(e){if(typeof e.value!="string")return;let t=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);t&&r.report({node:e,messageId:"octalEscapeSequence",data:{sequence:t[1]}})}}}}),dx}var mx,iI;function bZ(){if(iI)return mx;iI=1;let r=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return mx={meta:{type:"suggestion",docs:{description:"Disallow reassigning `function` parameters",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]&&e.options[0].props,s=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],n=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],i=e.sourceCode;function a(p){let h=p.identifier,f=h.parent;for(;f&&(!r.test(f.type)||f.type==="ForInStatement"||f.type==="ForOfStatement");){switch(f.type){case"AssignmentExpression":return f.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(f.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return f.left===h;case"CallExpression":if(f.callee!==h)return!1;break;case"MemberExpression":if(f.property===h)return!1;break;case"Property":if(f.key===h)return!1;break;case"ConditionalExpression":if(f.test===h)return!1;break}h=f,f=h.parent}return!1}function l(p){return s.includes(p)||n.some(h=>new RegExp(h,"u").test(p))}function o(p,h,f){let d=p.identifier;d&&!p.init&&(h===0||f[h-1].identifier!==d)&&(p.isWrite()?e.report({node:d,messageId:"assignmentToFunctionParam",data:{name:d.name}}):t&&a(p)&&!l(d.name)&&e.report({node:d,messageId:"assignmentToFunctionParamProp",data:{name:d.name}}))}function u(p){p.defs[0].type==="Parameter"&&p.references.forEach(o)}function c(p){i.getDeclaredVariables(p).forEach(u)}return{"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}},mx}var gx,aI;function vZ(){return aI||(aI=1,gx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(r){let e=/^__(?:dir|file)name$/u;return{BinaryExpression(t){let s=t.left,n=t.right;t.operator==="+"&&(s.type==="Identifier"&&e.test(s.name)||n.type==="Identifier"&&e.test(n.name))&&r.report({node:t,messageId:"usePathFunctions"})}}}}),gx}var yx,oI;function OZ(){if(oI)return yx;oI=1;function r(t){let s=t.parent;return s.type==="ForStatement"&&s.update===t}function e(t){let s=t.parent;return s.type==="SequenceExpression"?e(s):r(t)}return yx={meta:{type:"suggestion",docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(t){let s=t.options[0],n=!1;return typeof s=="object"&&(n=s.allowForLoopAfterthoughts===!0),{UpdateExpression(i){n&&e(i)||t.report({node:i,messageId:"unexpectedUnaryOp",data:{operator:i.operator}})}}}},yx}var xx,lI;function SZ(){return lI||(lI=1,xx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="process"&&!e.computed&&s&&s==="env"&&r.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),xx}var bx,uI;function EZ(){return uI||(uI=1,bx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(r){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){r.report({node:e.parent,messageId:"noProcessExit"})}}}}),bx}var vx,cI;function CZ(){if(cI)return vx;cI=1;let{findVariable:r}=mr(),e=De(),t=new Set(["ArrowFunctionExpression","FunctionExpression"]);function s(u,c){let p=r(c,u);return p!==null&&p.scope.type==="global"&&p.defs.length===0}function n(u){let c=u.upper;return c.type==="function-expression-name"?c.upper:c}function i(u,c){let p=u.parent;return p.type==="NewExpression"&&p.arguments[0]===u&&p.callee.type==="Identifier"&&p.callee.name==="Promise"&&s(p.callee,n(c))}function a(u){return u.type==="UnaryExpression"&&u.operator==="void"}function l(u,c,p){let h=e.getPrecedence(c)g.type==="Keyword"&&g.value==="return"),d=u.getTokenAfter(f),m=f.value==="return"&&f.range[1]===d.range[0];return[p.insertTextBefore(d,`${m?" ":""}void ${h?"(":""}`),p.insertTextAfter(c,h?")":"")]}function o(u,c,p){let h=u.getTokenBefore(c.body,e.isArrowToken),f=u.getTokenAfter(h),d=u.getLastToken(c);return[p.insertTextBefore(f,"{"),p.insertTextAfter(d,"}")]}return vx={meta:{type:"problem",docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(u){let c=null,p=u.sourceCode,{allowVoid:h=!1}=u.options[0]||{};return{onCodePathStart(f,d){if(c={upper:c,shouldCheck:t.has(d.type)&&i(d,p.getScope(d))},c.shouldCheck&&d.type==="ArrowFunctionExpression"&&d.expression&&!(h&&a(d.body))){let m=[];h&&m.push({messageId:"prependVoid",fix(g){return l(p,d.body,g)}}),d.body.type==="FunctionExpression"&&!d.body.id||m.push({messageId:"wrapBraces",fix(g){return o(p,d,g)}}),u.report({node:d.body,messageId:"returnsValue",suggest:m})}},onCodePathEnd(){c=c.upper},ReturnStatement(f){if(c.shouldCheck&&f.argument){if(!h){u.report({node:f,messageId:"returnsValue"});return}a(f.argument)||u.report({node:f,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(d){return l(p,f.argument,d)}}]})}}}}},vx}var Ox,fI;function wZ(){if(fI)return Ox;fI=1;let{getStaticPropertyName:r}=De();return Ox={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(t){r(t)==="__proto__"&&e.report({node:t,messageId:"unexpectedProto"})}}}},Ox}var Sx,pI;function kZ(){if(pI)return Sx;pI=1;let r=De();function e(t){let s;if(t.type==="MemberExpression")s=t.object;else if(t.type==="CallExpression")s=t.callee;else return!1;return t.optional?!0:e(s)}return Sx={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(t){let s=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function n(i){let a=r.skipChainExpression(i.callee);if(a.type!=="MemberExpression")return;let l=r.getStaticPropertyName(a);l!==null&&s.has(l)&&t.report({messageId:"prototypeBuildIn",loc:a.property.loc,data:{prop:l},node:i,suggest:[{messageId:"callObjectPrototype",data:{prop:l},fix(o){let u=t.sourceCode;if(e(i)||i.callee.type==="ChainExpression")return null;let c=r.getVariableByName(u.getScope(i),"Object");if(!c||c.scope.type!=="global"||c.defs.length>0)return null;let p=u.getText(a.object);r.getPrecedence(a.object)<=r.getPrecedence({type:"SequenceExpression"})&&(p=`(${p})`);let h=u.getTokenAfter(i.callee,r.isOpeningParenToken),d=i.arguments.length===0?"":", ";return[o.replaceText(a,`Object.prototype.${l}.call`),o.insertTextAfter(h,p+d)]}}]})}return{CallExpression:n}}},Sx}var Ex,hI;function AZ(){if(hI)return Ex;hI=1;let r=De();return Ex={meta:{type:"suggestion",docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/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(e){let t={builtinGlobals:!!(e.options.length===0||e.options[0].builtinGlobals)},s=e.sourceCode;function*n(l){t.builtinGlobals&&(l.eslintImplicitGlobalSetting==="readonly"||l.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(let o of l.identifiers)yield{type:"syntax",node:o,loc:o.loc};if(l.eslintExplicitGlobalComments)for(let o of l.eslintExplicitGlobalComments)yield{type:"comment",node:o,loc:r.getNameLocationInGlobalDirectiveComment(s,o,l.name)}}function i(l){for(let o of l.variables){let[u,...c]=n(o);if(c.length===0)continue;let p=u.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:o.name};for(let{type:f,node:d,loc:m}of c){let g=f===u.type?"redeclared":p;e.report({node:d,loc:m,messageId:g,data:h})}}}function a(l){let o=s.getScope(l);o.block===l&&i(o)}return{Program(l){let o=s.getScope(l);i(o),o.type==="global"&&o.childScopes[0]&&o.block===o.childScopes[0].block&&i(o.childScopes[0])},FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,SwitchStatement:a}}},Ex}var Cx,dI;function PZ(){if(dI)return Cx;dI=1;let r=De(),e=Yn(),t=new e.RegExpParser,s=/ {2}/u;function n(i){return i&&i.type==="Literal"&&typeof i.value=="string"}return Cx={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(i){let a=i.sourceCode;function l(c,p,h,f,d){if(!s.test(h))return;let m=[],g;try{g=t.parsePattern(p,0,p.length,{unicode:d.includes("u"),unicodeSets:d.includes("v")})}catch{return}e.visitRegExpAST(g,{onCharacterClassEnter(S){m.push(S)}});let b=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,O;for(;O=b.exec(p);){let{1:{length:S},index:C}=O;if(m.every(({start:k,end:E})=>C0,d=c.arguments[0];if(c.callee.type==="Identifier"&&c.callee.name==="RegExp"&&n(d)&&!f){let m=d.value,g=d.raw.slice(1,-1),b=d.range[0]+1,O;if(c.arguments.length<2)O="";else{let S=c.arguments[1];if(n(S))O=S.value;else return}l(c,m,g,b,O)}}return{Literal:o,CallExpression:u,NewExpression:u}}},Cx}var wx,mI;function TZ(){if(mI)return wx;mI=1;let r=De();return wx={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){let t=new Set(e.options[0]&&e.options[0].restrictedNamedExports),s=e.options[0]&&e.options[0].restrictDefaultExports,n=e.sourceCode;function i(a){let l=r.getModuleExportName(a);if(t.has(l)){e.report({node:a,messageId:"restrictedNamed",data:{name:l}});return}if(l==="default")if(a.parent.type==="ExportAllDeclaration")s&&s.namespaceFrom&&e.report({node:a,messageId:"restrictedDefault"});else{let o=!!a.parent.parent.source,u=r.getModuleExportName(a.parent.local);if(!o&&s&&s.named){e.report({node:a,messageId:"restrictedDefault"});return}o&&s&&(u==="default"&&s.defaultFrom||u!=="default"&&s.namedFrom)&&e.report({node:a,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(a){a.exported&&i(a.exported)},ExportDefaultDeclaration(a){s&&s.direct&&e.report({node:a,messageId:"restrictedDefault"})},ExportNamedDeclaration(a){let l=a.declaration;l?l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"?i(l.id):l.type==="VariableDeclaration"&&n.getDeclaredVariables(l).map(o=>o.defs.find(u=>u.parent===l)).map(o=>o.name).forEach(i):a.specifiers.map(o=>o.exported).forEach(i)}}}},wx}var kx,gI;function DZ(){return gI||(gI=1,kx={meta:{type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.sourceCode;if(r.options.length===0)return{};let t=r.options.reduce((i,a)=>(typeof a=="string"?i[a]=null:i[a.name]=a.message,i),{});function s(i){let a=i.identifier.name,l=t[a],o=l?"customMessage":"defaultMessage";r.report({node:i.identifier,messageId:o,data:{name:a,customMessage:l}})}function n(i){return Object.hasOwn(t,i)}return{Program(i){let a=e.getScope(i);a.variables.forEach(l=>{!l.defs.length&&n(l.name)&&l.references.forEach(s)}),a.through.forEach(l=>{n(l.identifier.name)&&s(l)})}}}}),kx}var Ax,yI;function iN(){if(yI)return Ax;yI=1;function r(Q){return Array.isArray(Q)?Q:[Q]}let e="",t=" ",s="\\",n=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,l=/^\\#/,o=/\r?\n/g,u=/^\.*\/|^\.+$/,c="/",p="node-ignore";typeof Symbol<"u"&&(p=Symbol.for("node-ignore"));let h=p,f=(Q,V,R)=>Object.defineProperty(Q,V,{value:R}),d=/([0-z])-([0-z])/g,m=()=>!1,g=Q=>Q.replace(d,(V,R,$)=>R.charCodeAt(0)<=$.charCodeAt(0)?V:e),b=Q=>{let{length:V}=Q;return Q.slice(0,V-V%2)},O=[[/^\uFEFF/,()=>e],[/\\?\s+$/,Q=>Q.indexOf("\\")===0?t:e],[/\\\s/g,()=>t],[/[\\$.|*+(){^]/g,Q=>`\\${Q}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Q,V,R)=>V+6{let $=R.replace(/\\\*/g,"[^\\/]*");return V+$}],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Q,V,R,$,N)=>V===s?`\\[${R}${b($)}${N}`:N==="]"&&$.length%2===0?`[${g(R)}${$}]`:"[]"],[/(?:[^*])$/,Q=>/\/$/.test(Q)?`${Q}$`:`${Q}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(Q,V)=>`${V?`${V}[^/]+`:"[^/]*"}(?=$|\\/$)`]],S=Object.create(null),C=(Q,V)=>{let R=S[Q];return R||(R=O.reduce(($,N)=>$.replace(N[0],N[1].bind(Q)),Q),S[Q]=R),V?new RegExp(R,"i"):new RegExp(R)},k=Q=>typeof Q=="string",E=Q=>Q&&k(Q)&&!n.test(Q)&&!i.test(Q)&&Q.indexOf("#")!==0,A=Q=>Q.split(o);class w{constructor(V,R,$,N){this.origin=V,this.pattern=R,this.negative=$,this.regex=N}}let P=(Q,V)=>{let R=Q,$=!1;Q.indexOf("!")===0&&($=!0,Q=Q.substr(1)),Q=Q.replace(a,"!").replace(l,"#");let N=C(Q,V);return new w(R,Q,$,N)},T=(Q,V)=>{throw new V(Q)},I=(Q,V,R)=>k(Q)?Q?I.isNotRelative(Q)?R(`path should be a \`path.relative()\`d string, but got "${V}"`,RangeError):!0:R("path must not be empty",TypeError):R(`path must be a string, but got \`${V}\``,TypeError),F=Q=>u.test(Q);I.isNotRelative=F,I.convert=Q=>Q;class L{constructor({ignorecase:V=!0,ignoreCase:R=V,allowRelativePaths:$=!1}={}){f(this,h,!0),this._rules=[],this._ignoreCase=R,this._allowRelativePaths=$,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(V){if(V&&V[h]){this._rules=this._rules.concat(V._rules),this._added=!0;return}if(E(V)){let R=P(V,this._ignoreCase);this._added=!0,this._rules.push(R)}}add(V){return this._added=!1,r(k(V)?A(V):V).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(V){return this.add(V)}_testOne(V,R){let $=!1,N=!1;return this._rules.forEach(W=>{let{negative:Z}=W;if(N===Z&&$!==N||Z&&!$&&!N&&!R)return;W.regex.test(V)&&($=!Z,N=Z)}),{ignored:$,unignored:N}}_test(V,R,$,N){let W=V&&I.convert(V);return I(W,V,this._allowRelativePaths?m:T),this._t(W,R,$,N)}_t(V,R,$,N){if(V in R)return R[V];if(N||(N=V.split(c)),N.pop(),!N.length)return R[V]=this._testOne(V,$);let W=this._t(N.join(c)+c,R,$,N);return R[V]=W.ignored?W:this._testOne(V,$)}ignores(V){return this._test(V,this._ignoreCache,!1).ignored}createFilter(){return V=>!this.ignores(V)}filter(V){return r(V).filter(this.createFilter())}test(V){return this._test(V,this._testCache,!0)}}let _=Q=>new L(Q),B=Q=>I(Q&&I.convert(Q),Q,m);if(_.isPathValid=B,_.default=_,Ax=_,typeof Lt<"u"&&(Lt.env&&Lt.env.IGNORE_TEST_WIN32||Lt.platform==="win32")){let Q=R=>/^\\\\\?\\/.test(R)||/["<>|\u0000-\u001F]+/u.test(R)?R:R.replace(/\\/g,"/");I.convert=Q;let V=/^[a-z]:\//i;I.isNotRelative=R=>V.test(R)||F(R)}return Ax}var Px,xI;function _Z(){if(xI)return Px;xI=1;let r=De(),e=iN(),t={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return Px={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/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}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{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}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[t,{type:"array",items:[{type:"object",properties:{paths:t,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,required:["group"],not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]}},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(n){let i=n.sourceCode,a=Array.isArray(n.options)?n.options:[],l=typeof a[0]=="object"&&(Object.hasOwn(a[0],"paths")||Object.hasOwn(a[0],"patterns")),o=(l?a[0].paths:n.options)||[],u=o.reduce((g,b)=>{let O=typeof b=="string"?b:b.name;return g[O]||(g[O]=[]),typeof b=="string"?g[O].push({}):g[O].push({message:b.message,importNames:b.importNames,allowImportNames:b.allowImportNames}),g},Object.create(null)),c=(l?a[0].patterns:[])||[];c.length>0&&typeof c[0]=="string"&&(c=[{group:c}]);let p=c.map(({group:g,message:b,caseSensitive:O,importNames:S,importNamePattern:C,allowImportNames:k,allowImportNamePattern:E})=>({matcher:e({allowRelativePaths:!0,ignorecase:!O}).add(g),customMessage:b,importNames:S,importNamePattern:C,allowImportNames:k,allowImportNamePattern:E}));if(Object.keys(o).length===0&&p.length===0)return{};function h(g,b,O){Object.hasOwn(u,g)&&u[g].forEach(S=>{let C=S.message,k=S.importNames,E=S.allowImportNames;if(!k&&!E){n.report({node:O,messageId:C?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:C}});return}b.forEach((A,w)=>{if(w==="*"){let[P]=A;k?n.report({node:O,messageId:C?"everythingWithCustomMessage":"everything",loc:P.loc,data:{importSource:g,importNames:k,customMessage:C}}):E&&n.report({node:O,messageId:C?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:P.loc,data:{importSource:g,allowedImportNames:E,customMessage:C}});return}k&&k.includes(w)&&A.forEach(P=>{n.report({node:O,messageId:C?"importNameWithCustomMessage":"importName",loc:P.loc,data:{importSource:g,customMessage:C,importName:w}})}),E&&!E.includes(w)&&A.forEach(P=>{n.report({node:O,loc:P.loc,messageId:C?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:C,importName:w,allowedImportNames:E}})})})})}function f(g,b,O){let S=g.source.value.trim(),C=b.customMessage,k=b.importNames,E=b.importNamePattern?new RegExp(b.importNamePattern,"u"):null,A=b.allowImportNames,w=b.allowImportNamePattern?new RegExp(b.allowImportNamePattern,"u"):null;if(!k&&!A&&!E&&!w){n.report({node:g,messageId:C?"patternWithCustomMessage":"patterns",data:{importSource:S,customMessage:C}});return}O.forEach((P,T)=>{if(T==="*"){let[I]=P;k?n.report({node:g,messageId:C?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:I.loc,data:{importSource:S,importNames:k,customMessage:C}}):A?n.report({node:g,messageId:C?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:I.loc,data:{importSource:S,allowedImportNames:A,customMessage:C}}):w?n.report({node:g,messageId:C?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:I.loc,data:{importSource:S,allowedImportNamePattern:w,customMessage:C}}):n.report({node:g,messageId:C?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:I.loc,data:{importSource:S,importNames:E,customMessage:C}});return}(k&&k.includes(T)||E&&E.test(T))&&P.forEach(I=>{n.report({node:g,messageId:C?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:I.loc,data:{importSource:S,customMessage:C,importName:T}})}),A&&!A.includes(T)?P.forEach(I=>{n.report({node:g,messageId:C?"allowedImportNameWithCustomMessage":"allowedImportName",loc:I.loc,data:{importSource:S,customMessage:C,importName:T,allowedImportNames:A}})}):w&&!w.test(T)&&P.forEach(I=>{n.report({node:g,messageId:C?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:I.loc,data:{importSource:S,customMessage:C,importName:T,allowedImportNamePattern:w}})})})}function d(g,b){return b.matcher.ignores(g)}function m(g){let b=g.source.value.trim(),O=new Map;if(g.type==="ExportAllDeclaration"){let S=i.getFirstToken(g,1);O.set("*",[{loc:S.loc}])}else if(g.specifiers)for(let S of g.specifiers){let C,k={loc:S.loc};S.type==="ImportDefaultSpecifier"?C="default":S.type==="ImportNamespaceSpecifier"?C="*":S.imported?C=r.getModuleExportName(S.imported):S.local&&(C=r.getModuleExportName(S.local)),typeof C=="string"&&(O.has(C)?O.get(C).push(k):O.set(C,[k]))}h(b,O,g),p.forEach(S=>{d(b,S)&&f(g,S,O)})}return{ImportDeclaration:m,ExportNamedDeclaration(g){g.source&&m(g)},ExportAllDeclaration:m}}},Px}var Tx,bI;function IZ(){if(bI)return Tx;bI=1;let r=De(),e=iN(),t={type:"array",items:{type:"string"},uniqueItems:!0},s={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Tx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[s,{type:"array",items:{type:"object",properties:{paths:s,patterns:t},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(n){let i=Array.isArray(n.options)?n.options:[],a=typeof i[0]=="object"&&(Object.hasOwn(i[0],"paths")||Object.hasOwn(i[0],"patterns")),l=(a?i[0].paths:n.options)||[],o=(a?i[0].patterns:[])||[],u=l.reduce((g,b)=>(typeof b=="string"?g[b]=null:g[b.name]=b.message,g),{});if(Object.keys(l).length===0&&o.length===0)return{};let c=e({allowRelativePaths:!0}).add(o);function p(g){return g&&g.type==="Literal"&&typeof g.value=="string"}function h(g){return g.callee.type==="Identifier"&&g.callee.name==="require"}function f(g){return p(g)?g.value.trim():r.isStaticTemplateLiteral(g)?g.quasis[0].value.cooked.trim():null}function d(g,b){let O=u[b],S=O?"customMessage":"defaultMessage";n.report({node:g,messageId:S,data:{name:b,customMessage:O}})}function m(g){return Object.hasOwn(u,g)}return{CallExpression(g){if(h(g)&&g.arguments.length){let b=f(g.arguments[0]);b&&(m(b)&&d(g,b),o.length>0&&c.ignores(b)&&n.report({node:g,messageId:"patternMessage",data:{name:b}}))}}}}},Tx}var Dx,vI;function FZ(){if(vI)return Dx;vI=1;let r=De();return Dx={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options;if(t.length===0)return{};let s=new Map,n=new Map,i=new Map;t.forEach(l=>{let o=l.object,u=l.property;typeof o>"u"?i.set(u,{message:l.message}):typeof u>"u"?n.set(o,{message:l.message}):(s.has(o)||s.set(o,new Map),s.get(o).set(u,{message:l.message}))});function a(l,o,u){if(u===null)return;let c=s.get(o),p=c?c.get(u):n.get(o),h=i.get(u);if(p){let f=p.message?` ${p.message}`:"";e.report({node:l,messageId:"restrictedObjectProperty",data:{objectName:o,propertyName:u,message:f}})}else if(h){let f=h.message?` ${h.message}`:"";e.report({node:l,messageId:"restrictedProperty",data:{propertyName:u,message:f}})}}return{MemberExpression(l){a(l,l.object&&l.object.name,r.getStaticPropertyName(l))},ObjectPattern(l){let o=null;l.parent.type==="VariableDeclarator"?l.parent.init&&l.parent.init.type==="Identifier"&&(o=l.parent.init.name):(l.parent.type==="AssignmentExpression"||l.parent.type==="AssignmentPattern")&&l.parent.right.type==="Identifier"&&(o=l.parent.right.name),l.properties.forEach(u=>{a(l,o,r.getStaticPropertyName(u))})}}}},Dx}var _x,OI;function RZ(){return OI||(OI=1,_x={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return r.options.reduce((e,t)=>{let s=typeof t=="string",n=!s&&!!t.message,i=s?t:t.selector,a=n?t.message:`Using '${i}' is not allowed.`;return Object.assign(e,{[i](l){r.report({node:l,messageId:"restrictedSyntax",data:{message:a}})}})},{})}}),_x}var Ix,SI;function BZ(){if(SI)return Ix;SI=1;let r=De(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Ix={meta:{type:"suggestion",docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/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 s=(t.options[0]||"except-parens")!=="except-parens",n=t.sourceCode;return{AssignmentExpression(i){if(!s&&r.isParenthesised(n,i))return;let a=i,l=a.parent;for(;l&&!e.test(l.type);)a=l,l=l.parent;l&&l.type==="ReturnStatement"?t.report({node:l,messageId:"returnAssignment"}):l&&l.type==="ArrowFunctionExpression"&&l.body===a&&t.report({node:l,messageId:"arrowAssignment"})}}}},Ix}var Fx,EI;function NZ(){if(EI)return Fx;EI=1;let r=De();return Fx={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:!0,replacedBy:[],schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(i){e.report({node:e.sourceCode.getFirstToken(i),loc:i.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(a){let l=e.sourceCode,[o,u]=l.getFirstTokens(i,2);if(!(o.loc.start.line===u.loc.start.line))return null;let[p,h]=o.range,d=l.text[h]===" "?1:0,m=[p,h+d];return a.removeRange(m)}}]})}function s(i){let a=i;for(;!r.isFunction(a)&&a.type!=="Program";){if(a.parent.type==="TryStatement"&&(a===a.parent.block||a===a.parent.handler&&a.parent.finalizer))return!0;a=a.parent}return!1}function n(i){return i.parent.type==="ArrowFunctionExpression"?!0:i.parent.type==="ReturnStatement"?!s(i.parent):i.parent.type==="ConditionalExpression"&&(i===i.parent.consequent||i===i.parent.alternate)||i.parent.type==="LogicalExpression"&&i===i.parent.right||i.parent.type==="SequenceExpression"&&i===i.parent.expressions.at(-1)?n(i.parent):!1}return{AwaitExpression(i){n(i)&&!s(i)&&t(i)}}}},Fx}var Rx,CI;function LZ(){if(CI)return Rx;CI=1;let r=De();return Rx={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` urls",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function t(s){let n=r.getStaticStringValue(s);typeof n=="string"&&n.toLowerCase().indexOf("javascript:")===0&&e.report({node:s,messageId:"unexpectedScriptURL"})}return{Literal(s){s.value&&typeof s.value=="string"&&t(s)},TemplateLiteral(s){s.parent&&s.parent.type==="TaggedTemplateExpression"||t(s)}}}},Rx}var Bx,wI;function $Z(){if(wI)return Bx;wI=1;let r=De(),e=/\s+/gu;function t(s,n,i,a){if(!(!s||!n))if(s.type==="Identifier"&&n.type==="Identifier"&&s.name===n.name)a(n);else if(s.type==="ArrayPattern"&&n.type==="ArrayExpression"){let l=Math.min(s.elements.length,n.elements.length);for(let o=0;o=1){let l=0;for(let o=n.properties.length-1;o>=0;--o){let u=n.properties[o].type;if(u==="SpreadElement"||u==="ExperimentalSpreadProperty"){l=o+1;break}}for(let o=0;ol.type===a[o].type&&l.value===a[o].value)}return{BinaryExpression(s){new Set(["===","==","!==","!=",">","<",">=","<="]).has(s.operator)&&t(s.left,s.right)&&r.report({node:s,messageId:"comparingToSelf"})}}}}),Nx}var Lx,AI;function jZ(){if(AI)return Lx;AI=1;let r=De(),e={allowInParentheses:!0};return Lx={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(t){let s=Object.assign({},e,t.options[0]),n=t.sourceCode,i={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function a(u){return u.parent&&i[u.parent.type]&&u===u.parent[i[u.parent.type]]}function l(u){return r.isParenthesised(n,u)}function o(u){let c=n.getTokenBefore(u,1),p=n.getTokenAfter(u,1);return l(u)&&c&&p&&r.isOpeningParenToken(c)&&c.range[1]<=u.range[0]&&r.isClosingParenToken(p)&&p.range[0]>=u.range[1]}return{SequenceExpression(u){if(u.parent.type==="ForStatement"&&(u===u.parent.init||u===u.parent.update))return;if(s.allowInParentheses){if(a(u)){if(o(u))return}else if(l(u))return}let c=n.getTokenAfter(u.expressions[0],r.isCommaToken);t.report({node:u,loc:c.loc,messageId:"unexpectedCommaExpression"})}}}},Lx}var $x,PI;function qZ(){if(PI)return $x;PI=1;let r=De(),{findVariable:e}=mr();function t(l,o){let u=e(o,l);return u!==null&&u.scope.type==="global"&&u.defs.length===0}function s(l,o,u,c,p){let h=l.parent;return h.type==="CallExpression"&&h.arguments[p]===l&&r.isSpecificMemberAccess(h.callee,u,c)&&t(r.skipChainExpression(h.callee).object,o)}function n(l,o){if(s(l,o,"Object","defineProperty",2)||s(l,o,"Reflect","defineProperty",2))return!0;let u=l.parent;if(u.type==="Property"&&u.value===l){let c=u.parent;if(c.type==="ObjectExpression"&&(s(c,o,"Object","create",1)||s(c,o,"Object","defineProperties",1)))return!0}return!1}function i(l,o){let u=l.parent;return!!((u.type==="Property"||u.type==="MethodDefinition")&&u.kind==="set"&&u.value===l||u.type==="Property"&&u.value===l&&r.getStaticPropertyName(u)==="set"&&u.parent.type==="ObjectExpression"&&n(u.parent,o))}function a(l){let o=l.upper;return o.type==="function-expression-name"?o.upper:o}return $x={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(l){let o=null,u=l.sourceCode;function c(f){let d=a(u.getScope(f));o={upper:o,isSetter:i(f,d)}}function p(){o=o.upper}function h(f){l.report({node:f,messageId:"returnsValue"})}return{FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression(f){c(f),o.isSetter&&f.expression&&h(f.body)},"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,ReturnStatement(f){o&&o.isSetter&&f.argument&&h(f)}}}},$x}var Mx,TI;function QZ(){if(TI)return Mx;TI=1;let r=De(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),t=new Set(["CallExpression"]),s=/^For(?:In|Of)Statement$/u,n=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u;return Mx={meta:{type:"suggestion",docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/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(i){let a={builtinGlobals:i.options[0]&&i.options[0].builtinGlobals,hoist:i.options[0]&&i.options[0].hoist||"functions",allow:i.options[0]&&i.options[0].allow||[],ignoreOnInitialization:i.options[0]&&i.options[0].ignoreOnInitialization},l=i.sourceCode;function o(S,C){return S&&S.range[0]<=C&&C<=S.range[1]}function u(S,C){let k=S;for(;k&&!C(k);)k=k.parent;return k}function c(S){let C=S.upper;return C.type==="function-expression-name"?C.upper:C}function p(S,C){let k=C.defs[0];if(!k)return!1;let{variableScope:E}=S.scope;if(!(e.has(E.block.type)&&c(E)===C.scope))return!1;let A=E.block,{parent:w}=A,P=u(w,F=>t.has(F.type));if(!P)return!1;let T=k.name,I=P.range[1];for(;T;){if(T.type==="VariableDeclarator"){if(o(T.init,I)||s.test(T.parent.parent.type)&&o(T.parent.parent.right,I))return!0;break}else if(T.type==="AssignmentPattern"){if(o(T.right,I))return!0}else if(n.test(T.type))break;T=T.parent}return!1}function h(S){return a.allow.includes(S.name)}function f(S){let C=S.scope.block;return C.type==="ClassDeclaration"&&C.id===S.identifiers[0]}function d(S,C){let k=C.scope,E=C.defs[0],A=E&&E.parent&&E.parent.range,w=S.scope,P=S.defs[0],T=P&&P.name.range;return A&&T&&A[0]0||a.builtinGlobals&&"writeable"in A)&&!d(E,A)&&!(a.ignoreOnInitialization&&p(E,A))&&!(a.hoist!=="all"&&b(E,A))){let w=g(A),P=w.global?"noShadowGlobal":"noShadow",T={name:E.name};w.global||(T.shadowedLine=w.line,T.shadowedColumn=w.column),i.report({node:E.identifiers[0],messageId:P,data:T})}}}return{"Program:exit"(S){let k=l.getScope(S).childScopes.slice();for(;k.length;){let E=k.pop();k.push(...E.childScopes),O(E)}}}}},Mx}var jx,DI;function UZ(){if(DI)return jx;DI=1;function r(e){return e.name==="undefined"&&e.references.every(t=>!t.isWrite())&&e.defs.every(t=>t.node.type==="VariableDeclarator"&&t.node.init===null)}return jx={meta:{type:"suggestion",docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){let t=new Set(["undefined","NaN","Infinity","arguments","eval"]),s=e.sourceCode;return{"VariableDeclaration, :function, CatchClause"(n){for(let i of s.getDeclaredVariables(n))i.defs.length>0&&t.has(i.name)&&!r(i)&&e.report({node:i.defs[0].name,messageId:"shadowingRestrictedName",data:{name:i.name}})}}}},jx}var qx,_I;function VZ(){return _I||(_I=1,qx={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(r){let e=r.sourceCode;function t(s){let n=e.getLastToken(s.callee),i=n,a=e.getTokenAfter(n);for(;a&&a.range[1]{let o;for(;(o=r.exec(a))!==null;)n&&!e.test(a.slice(0,o.index))||t.report({node:i,loc:{start:{line:l+1,column:o.index},end:{line:l+1,column:o.index+o[0].length}},messageId:"unexpectedTab"})})}}}},Vx}var Wx,BI;function XZ(){return BI||(BI=1,Wx={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(r){let e=/\$\{[^}]+\}/u;return{Literal(t){typeof t.value=="string"&&e.test(t.value)&&r.report({node:t,messageId:"unexpectedTemplateExpression"})}}}}),Wx}var Zx,NI;function GZ(){return NI||(NI=1,Zx={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(r){return{ConditionalExpression(e){r.report({node:e,messageId:"noTernaryOperator"})}}}}),Zx}var zx,LI;function YZ(){if(LI)return zx;LI=1;let r=De();function e(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}class t{superCalled=!1;invalidNodes=[]}return zx={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(s){let n=null,i=Object.create(null);function a(h){return!h.reachable||i[h.id]?.superCalled}function l(){return!!(n&&n.isConstructor&&n.hasExtends)}function o(h){for(let f of h)if(!a(f))return!1;return!0}function u(){return l()&&!o(n.currentSegments)}function c(h){let f=n.currentSegments;for(let d of f)d.reachable&&i[d.id].invalidNodes.push(h)}function p(){let h=n.currentSegments;for(let f of h)f.reachable&&(i[f.id].superCalled=!0)}return{onCodePathStart(h,f){if(e(f)){let d=f.parent.parent.parent;n={upper:n,isConstructor:!0,hasExtends:!!(d.superClass&&!r.isNullOrUndefined(d.superClass)),codePath:h,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){let f=n.hasExtends;if(n=n.upper,!f)return;let d=new Set;h.traverseSegments((m,g)=>{let b=i[m.id],O=b.invalidNodes.filter(S=>!d.has(S));for(let S of O)d.add(S),s.report({messageId:"noBeforeSuper",node:S,data:{kind:S.type==="Super"?"super":"this"}});b.superCalled&&g.skip()})},onCodePathSegmentStart(h){n.currentSegments.add(h),l()&&(i[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(a),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){n.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentLoop(h,f){l()&&n.codePath.traverseSegments({first:f,last:h},(d,m)=>{let g=i[d.id]??new t;g.superCalled?m.skip():d.prevSegments.length>0&&d.prevSegments.every(a)&&(g.superCalled=!0),i[d.id]=g})},ThisExpression(h){u()&&c(h)},Super(h){!r.isCallee(h)&&u()&&c(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&u()&&p()},"Program:exit"(){i=Object.create(null)}}}},zx}var Xx,$I;function HZ(){if($I)return Xx;$I=1;let r=De();return Xx={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(t){r.couldBeError(t.argument)?t.argument.type==="Identifier"&&t.argument.name==="undefined"&&e.report({node:t,messageId:"undef"}):e.report({node:t,messageId:"object"})}}}},Xx}var Gx,MI;function KZ(){if(MI)return Gx;MI=1;let r=De();return Gx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s="[ \xA0\u2000-\u200B\u3000]",n=`^${s}*$`,i=`${s}+$`,a=e.options[0]||{},l=a.skipBlankLines||!1,o=a.ignoreComments||!1;function u(p,h,f){e.report({node:p,loc:h,messageId:"trailingSpace",fix(d){return d.removeRange(f)}})}function c(p){let h=new Set;return p.forEach(f=>{let d=f.type==="Block"?f.loc.end.line-1:f.loc.end.line;for(let m=f.loc.start.line;m<=d;m++)h.add(m)}),h}return{Program:function(h){let f=new RegExp(i,"u"),d=new RegExp(n,"u"),m=t.lines,g=t.getText().match(r.createGlobalLinebreakMatcher()),b=t.getAllComments(),O=c(b),S=0;for(let C=0,k=m.length;CL.parent.range[0]&&F{let o=l.identifier;!s&&r(o)||e.report({node:o,messageId:"undef",data:o})})}}}},Yx}var Hx,qI;function ez(){if(qI)return Hx;qI=1;let r=De();return Hx={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(e){let t=e.sourceCode;return{VariableDeclarator(s){let n=t.getText(s.id),i=s.init&&s.init.name,a=t.getScope(s),l=r.getVariableByName(a,"undefined"),o=l&&l.defs.length>0,u=t.getLastToken(s);i==="undefined"&&s.parent.kind!=="const"&&!o&&e.report({node:s,messageId:"unnecessaryUndefinedInit",data:{name:n},fix(c){return s.parent.kind==="var"||s.id.type==="ArrayPattern"||s.id.type==="ObjectPattern"||t.commentsExistBetween(s.id,u)?null:c.removeRange([s.id.range[1],s.range[1]])}})}}}},Hx}var Kx,QI;function tz(){return QI||(QI=1,Kx={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(r){let e=r.sourceCode;function t(n){r.report({node:n,messageId:"unexpectedUndefined"})}function s(n){let i=n.set.get("undefined");if(!i)return;let a=i.references,l=i.defs;a.filter(o=>!o.init).forEach(o=>t(o.identifier)),l.forEach(o=>t(o.name))}return{"Program:exit"(n){let a=[e.getScope(n)];for(;a.length;){let l=a.pop();a.push(...l.childScopes),s(l)}}}}}),Kx}var Jx,UI;function rz(){return UI||(UI=1,Jx={meta:{type:"suggestion",docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,url:"https://eslint.org/docs/latest/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},enforceInClassFields:{type:"boolean",default:!1},allowInArrayDestructuring:{type:"boolean",default:!0},allowInObjectDestructuring:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(r){let e=r.options[0]||{},t=e.allow?e.allow:[],s=typeof e.allowAfterThis<"u"?e.allowAfterThis:!1,n=typeof e.allowAfterSuper<"u"?e.allowAfterSuper:!1,i=typeof e.allowAfterThisConstructor<"u"?e.allowAfterThisConstructor:!1,a=typeof e.enforceInMethodNames<"u"?e.enforceInMethodNames:!1,l=typeof e.enforceInClassFields<"u"?e.enforceInClassFields:!1,o=typeof e.allowFunctionParams<"u"?e.allowFunctionParams:!0,u=typeof e.allowInArrayDestructuring<"u"?e.allowInArrayDestructuring:!0,c=typeof e.allowInObjectDestructuring<"u"?e.allowInObjectDestructuring:!0,p=r.sourceCode;function h(A){return t.includes(A)}function f(A){let w=A.length;return A!=="_"&&(A[0]==="_"||A[w-1]==="_")}function d(A){return A==="__proto__"}function m(A){return A==="_"}function g(A){return A.object.type==="MemberExpression"&&A.object.property.name==="constructor"&&A.object.object.type==="ThisExpression"}function b(A){o||A.params.forEach(w=>{let{type:P}=w,T;if(P==="RestElement"?T=w.argument:P==="AssignmentPattern"?T=w.left:T=w,T.type==="Identifier"){let I=T.name;f(I)&&!h(I)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:I}})}})}function O(A){if(A.type==="FunctionDeclaration"&&A.id){let w=A.id.name;typeof w<"u"&&f(w)&&!h(w)&&r.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:w}})}b(A)}function S(A){p.getDeclaredVariables(A).forEach(w=>{let T=w.defs.find(L=>L.node===A).name,I=T.name,F=T.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(F.type);)F=F.parent;f(I)&&!m(I)&&!h(I)&&!(u&&F.type==="ArrayPattern")&&!(c&&F.type==="ObjectPattern")&&r.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:I}})})}function C(A){let w=A.property.name,P=A.object.type==="ThisExpression",T=A.object.type==="Super",I=g(A);typeof w<"u"&&f(w)&&!(P&&s)&&!(T&&n)&&!(I&&i)&&!d(w)&&!h(w)&&r.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:w}})}function k(A){let w=A.key.name,P=A.type==="MethodDefinition"||A.type==="Property"&&A.method;typeof w<"u"&&a&&P&&f(w)&&!h(w)&&r.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:A.key.type==="PrivateIdentifier"?`#${w}`:w}})}function E(A){let w=A.key.name;typeof w<"u"&&f(w)&&l&&!h(w)&&r.report({node:A,messageId:"unexpectedUnderscore",data:{identifier:A.key.type==="PrivateIdentifier"?`#${w}`:w}})}return{FunctionDeclaration:O,VariableDeclarator:S,MemberExpression:C,MethodDefinition:k,PropertyDefinition:E,Property:k,FunctionExpression:O,ArrowFunctionExpression:O}}}),Jx}var eb,VI;function nz(){if(VI)return eb;VI=1;let r=De();return eb={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/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(e){let t=/^[gimsuy]+$/u,s=e.sourceCode;function n(i,a){let l=s.getTokenAfter(i,r.isNotClosingParenToken),o=s.getTokenBefore(l);l.loc.start.line!==o.loc.end.line&&e.report({node:i,loc:l.loc,messageId:a})}return{MemberExpression(i){!i.computed||i.optional||n(i.object,"property")},TaggedTemplateExpression(i){let{quasi:a}=i;s.getTokenBefore(a).loc.end.line!==a.loc.start.line&&e.report({node:i,loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(i){i.arguments.length===0||i.optional||n(i.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(i){let a=s.getTokenAfter(i,o=>o.value==="/"),l=s.getTokenAfter(a);l.type==="Identifier"&&t.test(l.value)&&a.range[1]===l.range[0]&&n(i.left,"division")}}}},eb}var tb,WI;function sz(){if(WI)return tb;WI=1;let r=IO(),e=De(),t=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,s=/^(?:DoWhile|For|While)Statement$/u,n=/^(?:BinaryExpression|ConditionalExpression)$/u,i=/^(?:ArrowFunction|Class|Function)Expression$/u,a=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function l(d){if(d.init){let m=d.resolved&&d.resolved.defs[0];if(!m||m.type!=="Variable"||m.parent.kind!=="var")return!1}return d.isWrite()}function o(d){return!d.modified}function u(d){return!(d.modified||d.group)}function c(d,m){let g=d.range,b=m.identifier.range;return g[0]<=b[0]&&b[1]<=g[1]}let p={WhileStatement:c,DoWhileStatement:c,ForStatement(d,m){return c(d,m)&&!(d.init&&c(d.init,m))}};function h(d){let m=d.identifier;for(;m;){if(m.type==="FunctionDeclaration")return m.id?m:null;m=m.parent}return null}function f(d,m){for(let g=0;g0&&f(w,P),w.filter(u).forEach(b)}return{"Program:exit"(A){let w=[m.getScope(A)];g=new Map;let P;for(;P=w.pop();)w.push(...P.childScopes),P.variables.forEach(E);g.forEach(S),g=null}}}},tb}var rb,ZI;function iz(){if(ZI)return rb;ZI=1;let r=De(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),t={"==":"!=","!=":"==","===":"!==","!==":"==="},s=r.getPrecedence({type:"LogicalExpression",operator:"||"});return rb={meta:{type:"suggestion",docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let a=(n.options[0]||{}).defaultAssignment!==!1,l=n.sourceCode;function o(h){return h.type==="Literal"&&typeof h.value=="boolean"}function u(h){if(h.type==="BinaryExpression"&&Object.hasOwn(t,h.operator)){let f=l.getFirstTokenBetween(h.left,h.right,m=>m.value===h.operator),d=l.getText();return d.slice(h.range[0],f.range[0])+t[h.operator]+d.slice(f.range[1],h.range[1])}return r.getPrecedence(h)=this.startNode.range[0]&&n.range[1]<=this.endNode.range[1]}isConsecutive(n){return this.contains(this.sourceCode.getTokenBefore(n))}merge(n){this.endNode=n}reset(n){this.startNode=this.endNode=n}}return nb={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(s){let n=null,i=new t(s.sourceCode),a=[],l=new Set;function o(u){let c=null;if(u&&(u.type==="PropertyDefinition"||e(l))){if(i.isEmpty){i.reset(u);return}if(i.contains(u))return;if(i.isConsecutive(u)){i.merge(u);return}c=u}i.isEmpty||s.report({messageId:"unreachableCode",loc:i.location,node:i.startNode}),i.reset(c)}return{onCodePathStart(){a.push(l),l=new Set},onCodePathEnd(){l=a.pop()},onUnreachableCodePathSegmentStart(u){l.add(u)},onUnreachableCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentStart(u){l.add(u)},BlockStatement:o,BreakStatement:o,ClassDeclaration:o,ContinueStatement:o,DebuggerStatement:o,DoWhileStatement:o,ExpressionStatement:o,ForInStatement:o,ForOfStatement:o,ForStatement:o,IfStatement:o,ImportDeclaration:o,LabeledStatement:o,ReturnStatement:o,SwitchStatement:o,ThrowStatement:o,TryStatement:o,VariableDeclaration(u){(u.kind!=="var"||u.declarations.some(r))&&o(u)},WhileStatement:o,WithStatement:o,ExportNamedDeclaration:o,ExportDefaultDeclaration:o,ExportAllDeclaration:o,"Program:exit"(){o()},"MethodDefinition[kind='constructor']"(){n={upper:n,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(u){let{hasSuperCall:c}=n;if(n=n.upper,!u.value.body)return;let p=u.parent.parent;if(p.superClass&&!c)for(let h of p.body.body)h.type==="PropertyDefinition"&&!h.static&&o(h)},"CallExpression > Super.callee"(){n&&(n.hasSuperCall=!0)}}}},nb}var sb,XI;function oz(){if(XI)return sb;XI=1;let r=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(n){for(let i of n)if(i.reachable)return!0;return!1}function t(n){let i=n.parent;if(i)switch(i.type){case"WhileStatement":return n===i.test;case"DoWhileStatement":return n===i.body;case"ForStatement":return n===(i.update||i.test||i.body);case"ForInStatement":case"ForOfStatement":return n===i.left}return!1}function s(n,i){return n.filter(a=>!i.includes(a))}return sb={meta:{type:"problem",docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:r},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(n){let i=n.options[0]&&n.options[0].ignore||[],a=s(r,i),l=a.join(","),o=new Map,u=new Set,c=[],p=new Set;return{onCodePathStart(){c.push(p),p=new Set},onCodePathEnd(){p=c.pop()},onUnreachableCodePathSegmentStart(h){p.add(h)},onUnreachableCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentStart(h,f){if(p.add(h),t(f)){let d=f.parent;o.set(h,d)}},onCodePathSegmentLoop(h,f,d){let m=o.get(f);(d===m||d.type==="ContinueStatement")&&u.delete(m)},[l](h){e(p)&&u.add(h)},"Program:exit"(){u.forEach(h=>n.report({node:h,messageId:"invalid"}))}}}},sb}var ib,GI;function lz(){if(GI)return ib;GI=1;let r=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,t=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return ib={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(s){function n(l){return l.parent.type==="TryStatement"&&l.parent.finalizer===l}function i(l,o){let u=!1,c;l.type==="BreakStatement"&&!l.label?c=e:l.type==="ContinueStatement"?c=t:c=r;for(let p=l;p&&!c.test(p.type);p=p.parent)if(p.parent.label&&o&&p.parent.label.name===o.name&&(u=!0),n(p))return!(o&&u);return!1}function a(l){i(l,l.label)&&s.report({messageId:"unsafeUsage",data:{nodeType:l.type},node:l,line:l.loc.line,column:l.loc.column})}return{ReturnStatement:a,ThrowStatement:a,BreakStatement:a,ContinueStatement:a}}},ib}var ab,YI;function uz(){if(YI)return ab;YI=1;let r=De();function e(n){return n==="in"||n==="instanceof"}function t(n){return n==="<"||n===">"||n===">="||n==="<="}function s(n){return n.type==="UnaryExpression"&&n.operator==="!"}return ab={meta:{type:"problem",docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/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(n){let i=n.sourceCode,l=(n.options[0]||{}).enforceForOrderingRelations===!0;return{BinaryExpression(o){let u=o.operator,c=l&&t(u);(e(u)||c)&&s(o.left)&&!r.isParenthesised(i,o.left)&&n.report({node:o,loc:o.left.loc,messageId:"unexpected",data:{operator:u},suggest:[{messageId:"suggestNegatedExpression",data:{operator:u},fix(p){let f=[i.getFirstToken(o.left).range[1],o.range[1]],d=i.text.slice(f[0],f[1]);return p.replaceTextRange(f,`(${d})`)}},{messageId:"suggestParenthesisedNegation",fix(p){return p.replaceText(o.left,`(${i.getText(o.left)})`)}}]})}}}},ab}var ob,HI;function cz(){if(HI)return ob;HI=1;let r=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),t=new Set(["in","instanceof"]);function s(n){return n.type==="ObjectPattern"||n.type==="ArrayPattern"}return ob={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/latest/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(n){let a=(n.options[0]||{}).disallowArithmeticOperators||!1;function l(h){n.report({messageId:"unsafeOptionalChain",node:h})}function o(h){n.report({messageId:"unsafeArithmetic",node:h})}function u(h,f){if(h)switch(h.type){case"LogicalExpression":h.operator==="||"||h.operator==="??"?u(h.right,f):h.operator==="&&"&&(u(h.left,f),u(h.right,f));break;case"SequenceExpression":u(h.expressions.at(-1),f);break;case"ConditionalExpression":u(h.consequent,f),u(h.alternate,f);break;case"AwaitExpression":u(h.argument,f);break;case"ChainExpression":f(h);break}}function c(h){u(h,l)}function p(h){u(h,o)}return{"AssignmentExpression, AssignmentPattern"(h){s(h.left)&&c(h.right)},"ClassDeclaration, ClassExpression"(h){c(h.superClass)},CallExpression(h){h.optional||c(h.callee)},NewExpression(h){c(h.callee)},VariableDeclarator(h){s(h.id)&&c(h.init)},MemberExpression(h){h.optional||c(h.object)},TaggedTemplateExpression(h){c(h.tag)},ForOfStatement(h){c(h.right)},SpreadElement(h){h.parent&&h.parent.type!=="ObjectExpression"&&c(h.argument)},BinaryExpression(h){t.has(h.operator)&&c(h.right),a&&r.has(h.operator)&&(p(h.right),p(h.left))},WithStatement(h){c(h.object)},UnaryExpression(h){a&&r.has(h.operator)&&p(h.argument)},AssignmentExpression(h){a&&e.has(h.operator)&&p(h.right)}}}},ob}var lb,KI;function fz(){if(KI)return lb;KI=1;let r=De();function e(){return!0}function t(){return!1}return lb={meta:{type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(s){let n=s.options[0]||{},i=n.allowShortCircuit||!1,a=n.allowTernary||!1,l=n.allowTaggedTemplates||!1,o=n.enforceForJSX||!1;function u(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"}function c(d,m){for(let g=0;gu.removeRange([o.range[0],o.body.range[0]]):null}),s=s.upper}function l(o){if(!o.label)return;let u=o.label.name,c=s;for(;c;){if(c.label===u){c.used=!0;break}c=c.upper}}return{LabeledStatement:n,"LabeledStatement:exit":a,BreakStatement:l,ContinueStatement:l}}},ub}var cb,eF;function hz(){return eF||(eF=1,cb={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(r){let e=[];function t(s){let n=s.parent.parent,i=n.type==="AssignmentExpression";return!i&&n.type!=="ForInStatement"&&n.type!=="ForOfStatement"&&n.type!=="AssignmentPattern"||n.left!==s.parent?!1:i&&n.operator!=="="?n.parent.type==="ExpressionStatement":!0}return{ClassBody(s){let n=new Map;e.unshift(n);for(let i of s.body)(i.type==="PropertyDefinition"||i.type==="MethodDefinition")&&i.key.type==="PrivateIdentifier"&&n.set(i.key.name,{declaredNode:i,isAccessor:i.type==="MethodDefinition"&&(i.kind==="set"||i.kind==="get")})},PrivateIdentifier(s){let n=e.find(o=>o.has(s.name));if(!n)return;let i=n.get(s.name);if(i.isUsed||s.parent.type==="PropertyDefinition"||s.parent.type==="MethodDefinition")return;if(i.isAccessor){i.isUsed=!0;return}if(t(s))return;let a=s.parent.parent.type,l=s.parent.parent.parent.type;a==="UpdateExpression"&&l==="ExpressionStatement"||a==="Property"&&l==="ObjectPattern"&&s.parent.parent.value===s.parent||a!=="RestElement"&&a!=="ArrayPattern"&&(i.isUsed=!0)},"ClassBody:exit"(){let s=e.shift();for(let[n,{declaredNode:i,isUsed:a}]of s.entries())a||r.report({node:i,loc:i.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${n}`}})}}}}),cb}var fb,tF;function dz(){if(tF)return fb;tF=1;let r=De();return fb={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/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"},ignoreClassWithStaticInitBlock:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}."}},create(e){let t=e.sourceCode,s=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,n={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,reportUsedIgnorePattern:!1},i=e.options[0];i&&(typeof i=="string"?n.vars=i:(n.vars=i.vars||n.vars,n.args=i.args||n.args,n.ignoreRestSiblings=i.ignoreRestSiblings||n.ignoreRestSiblings,n.caughtErrors=i.caughtErrors||n.caughtErrors,n.ignoreClassWithStaticInitBlock=i.ignoreClassWithStaticInitBlock||n.ignoreClassWithStaticInitBlock,n.reportUsedIgnorePattern=i.reportUsedIgnorePattern||n.reportUsedIgnorePattern,i.varsIgnorePattern&&(n.varsIgnorePattern=new RegExp(i.varsIgnorePattern,"u")),i.argsIgnorePattern&&(n.argsIgnorePattern=new RegExp(i.argsIgnorePattern,"u")),i.caughtErrorsIgnorePattern&&(n.caughtErrorsIgnorePattern=new RegExp(i.caughtErrorsIgnorePattern,"u")),i.destructuredArrayIgnorePattern&&(n.destructuredArrayIgnorePattern=new RegExp(i.destructuredArrayIgnorePattern,"u"))));function a(I){let F,L;switch(I){case"array-destructure":F=n.destructuredArrayIgnorePattern,L="elements of array destructuring";break;case"catch-clause":F=n.caughtErrorsIgnorePattern,L="args";break;case"parameter":F=n.argsIgnorePattern,L="args";break;case"variable":F=n.varsIgnorePattern,L="vars";break;default:throw new Error(`Unexpected variable type: ${I}`)}return F&&(F=F.toString()),[L,F]}function l(I){let F=I.defs&&I.defs[0],L="";if(F){let _,B;switch(F.type){case"CatchClause":n.caughtErrorsIgnorePattern&&([B,_]=a("catch-clause"));break;case"Parameter":n.argsIgnorePattern&&([B,_]=a("parameter"));break;default:n.varsIgnorePattern&&([B,_]=a("variable"));break}_&&B&&(L=`. Allowed unused ${B} must match ${_}`)}return{varName:I.name,action:"defined",additional:L}}function o(I){let F=I.defs&&I.defs[0],L="";if(F){let _,B;F.name.parent.type==="ArrayPattern"&&n.destructuredArrayIgnorePattern?[B,_]=a("array-destructure"):n.varsIgnorePattern&&([B,_]=a("variable")),_&&B&&(L=`. Allowed unused ${B} must match ${_}`)}return{varName:I.name,action:"assigned a value",additional:L}}function u(I,F){let[L,_]=a(F),B="";return _&&L&&(B=`. Used ${L} must not match ${_}`),{varName:I.name,additional:B}}let c=/(?:Statement|Declaration)$/u;function p(I){let F=I.defs[0];if(F){let L=F.node;if(L.type==="VariableDeclarator")L=L.parent;else if(F.type==="Parameter")return!1;return L.parent.type.indexOf("Export")===0}return!1}function h(I){return I.type==="Property"&&I.parent.type==="ObjectPattern"&&s.test(I.parent.properties.at(-1).type)}function f(I){if(n.ignoreRestSiblings){let F=I.defs.some(_=>h(_.name.parent)),L=I.references.some(_=>h(_.identifier.parent));return F||L}return!1}function d(I){return I.isRead()}function m(I,F){let L=I.from;for(;L;){if(F.includes(L.block))return!0;L=L.upper}return!1}function g(I){let F=[];return I.defs.forEach(L=>{let{type:_,node:B}=L;_==="FunctionName"&&F.push(B),_==="Variable"&&B.init&&(B.init.type==="FunctionExpression"||B.init.type==="ArrowFunctionExpression")&&F.push(B.init)}),F}function b(I,F){return I.range[0]>=F.range[0]&&I.range[1]<=F.range[1]}function O(I){let F=I.parent;return F.type==="ExpressionStatement"?!0:F.type==="SequenceExpression"?F.expressions.at(-1)===I?O(F):!0:!1}function S(I,F){let L=I.identifier,_=L.parent,B=I.from.variableScope,Q=I.resolved.scope.variableScope,V=B!==Q||r.isInLoop(L);return F&&b(L,F)?F:_.type==="AssignmentExpression"&&O(_)&&L===_.left&&!V?_.right:null}function C(I,F){let L=I,_=I.parent;for(;_&&b(_,F);){switch(_.type){case"SequenceExpression":if(_.expressions.at(-1)!==L)return!1;break;case"CallExpression":case"NewExpression":return _.callee!==L;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(_.type))return!0}L=_,_=_.parent}return!1}function k(I,F){let L=r.getUpperFunction(I);return L&&b(L,F)&&C(L,F)}function E(I,F){let L=I.identifier,_=L.parent;return I.isRead()&&(_.type==="AssignmentExpression"&&_.left===L&&O(_)&&!r.isLogicalAssignmentOperator(_.operator)||_.type==="UpdateExpression"&&O(_)||F&&b(L,F)&&!k(L,F))}function A(I){let F=I.identifier.parent;return F.type==="VariableDeclarator"&&(F=F.parent.parent),F.type!=="ForInStatement"&&F.type!=="ForOfStatement"||(F.body.type==="BlockStatement"?F=F.body.body[0]:F=F.body,!F)?!1:F.type==="ReturnStatement"}function w(I){if(I.eslintUsed)return!0;let F=g(I),L=F.length>0,_=null;return I.references.some(B=>{if(A(B))return!0;let Q=E(B,_);return _=S(B,_),d(B)&&!Q&&!(L&&m(B,F))})}function P(I){let F=I.defs[0],L=t.getDeclaredVariables(F.node);return!L.slice(L.indexOf(I)+1).some(B=>B.references.length>0||B.eslintUsed)}function T(I,F){let L=I.variables,_=I.childScopes,B,Q;if(I.type!=="global"||n.vars==="all")for(B=0,Q=L.length;BW.identifier.parent.type==="ArrayPattern");if((R.name.parent.type==="ArrayPattern"||N)&&n.destructuredArrayIgnorePattern&&n.destructuredArrayIgnorePattern.test(R.name.name)){n.reportUsedIgnorePattern&&w(V)&&e.report({node:R.name,messageId:"usedIgnoredVar",data:u(V,"array-destructure")});continue}if($==="ClassName"){let W=R.node.body.body.some(Z=>Z.type==="StaticBlock");if(n.ignoreClassWithStaticInitBlock&&W)continue}if($==="CatchClause"){if(n.caughtErrors==="none")continue;if(n.caughtErrorsIgnorePattern&&n.caughtErrorsIgnorePattern.test(R.name.name)){n.reportUsedIgnorePattern&&w(V)&&e.report({node:R.name,messageId:"usedIgnoredVar",data:u(V,"catch-clause")});continue}}else if($==="Parameter"){if((R.node.parent.type==="Property"||R.node.parent.type==="MethodDefinition")&&R.node.parent.kind==="set"||n.args==="none")continue;if(n.argsIgnorePattern&&n.argsIgnorePattern.test(R.name.name)){n.reportUsedIgnorePattern&&w(V)&&e.report({node:R.name,messageId:"usedIgnoredVar",data:u(V,"parameter")});continue}if(n.args==="after-used"&&r.isFunction(R.name.parent)&&!P(V))continue}else if(n.varsIgnorePattern&&n.varsIgnorePattern.test(R.name.name)){n.reportUsedIgnorePattern&&w(V)&&e.report({node:R.name,messageId:"usedIgnoredVar",data:u(V,"variable")});continue}}!w(V)&&!p(V)&&!f(V)&&F.push(V)}for(B=0,Q=_.length;B0){let Q=B.references.filter(R=>R.isWrite()&&R.from.variableScope===B.scope.variableScope),V;Q.length>0&&(V=Q.at(-1)),e.report({node:V?V.identifier:B.identifiers[0],messageId:"unusedVar",data:B.references.some(R=>R.isWrite())?o(B):l(B)})}else if(B.eslintExplicitGlobalComments){let Q=B.eslintExplicitGlobalComments[0];e.report({node:I,loc:r.getNameLocationInGlobalDirectiveComment(t,Q,B.name),messageId:"unusedVar",data:l(B)})}}}}}},fb}var pb,rF;function mz(){if(rF)return pb;rF=1;let r=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function t(o){let u=!0,c=!0,p=!0,h=!1;return typeof o=="string"?u=o!=="nofunc":typeof o=="object"&&o!==null&&(u=o.functions!==!1,c=o.classes!==!1,p=o.variables!==!1,h=!!o.allowNamedExports),{functions:u,classes:c,variables:p,allowNamedExports:h}}function s(o,u){return o&&o.range[0]<=u&&u<=o.range[1]}function n(o,u){return o.body.some(c=>c.type==="StaticBlock"&&s(c,u)||c.type==="PropertyDefinition"&&c.static&&c.value&&s(c.value,u))}function i(o){return o.type==="class-static-block"?!0:o.type==="class-field-initializer"?o.block.parent.static:!1}function a(o){let u=o.resolved,c=o.from;for(;u.scope.variableScope!==c.variableScope;)if(i(c.variableScope))c=c.variableScope.upper;else return!0;return!1}function l(o){if(a(o))return!1;let u=o.identifier.range[1],c=o.resolved.defs[0];if(c.type==="ClassName"){let h=c.node;return s(h,u)&&!n(h.body,u)}let p=c.name.parent;for(;p;){if(p.type==="VariableDeclarator"){if(s(p.init,u)||e.test(p.parent.parent.type)&&s(p.parent.parent.right,u))return!0;break}else if(p.type==="AssignmentPattern"){if(s(p.right,u))return!0}else if(r.test(p.type))break;p=p.parent}return!1}return pb={meta:{type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(o){let u=t(o.options[0]),c=o.sourceCode;function p(f){if(f.init)return!1;let{identifier:d}=f;if(u.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;let m=f.resolved;if(!m||m.defs.length===0)return!1;let g=m.defs[0].type;return!(!u.functions&&g==="FunctionName"||(!u.variables&&g==="Variable"||!u.classes&&g==="ClassName")&&a(f))}function h(f){f.references.filter(p).forEach(d=>{let g=d.resolved.defs[0].name;(d.identifier.range[1]S.nextSegments)};function*g(){for(yield*m.results;m.queueSegments.length>0;){let S=m.queueSegments.shift();if(m.subsequentSegments.has(S))continue;m.subsequentSegments.add(S);let C=d.find(E=>E.segments.includes(S)&&!s(E,f.identifier));C||m.queueSegments.push(...S.nextSegments);let k={segment:S,assignment:C};m.results.push(k),yield k}}let b=f.variable.references.filter(S=>S.isRead());if(!b.length)return;let O=d.find(S=>S===f||S.segments.length&&S.segments.every(C=>!f.segments.includes(C))?!1:!!(t(f,S.identifier)||S.expression&&S.expression.range[0]<=f.identifier.range[0]&&f.identifier.range[1]<=S.expression.range[1]));for(let S of b){if(c.scope!==o(S.from))return;if(t(f,S.identifier)&&(s(f,S.identifier)||f.segments.some(C=>p(C,S.identifier)))){if(O&&t(O,S.identifier))continue;return}if(!O){for(let C of g())if(p(C.segment,S.identifier)){if(C.assignment&&t(C.assignment,S.identifier))continue;return}}}n.report({node:f.identifier,messageId:"unnecessaryAssignment"})}for(let f of c.assignments.values()){f.sort((d,m)=>d.identifier.range[0]-m.identifier.range[0]);for(let d of f)h(d,f)}}return{onCodePathStart(c,p){let h=i.getScope(p);a={upper:a,codePath:c,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map},l.add(a.scope)},onCodePathEnd(){u(a),a=a.upper},onCodePathSegmentStart(c){let p={segment:c,first:null,last:null};a.segments[c.id]=p,a.currentSegments.add(c)},onCodePathSegmentEnd(c){a.currentSegments.delete(c)},Identifier(c){for(let p of a.currentSegments){let h=a.segments[p.id];h.first||(h.first=c),h.last=c}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(c){if(a.currentSegments.size===0)return;let p=a.assignments,h,f=null;c.type==="VariableDeclarator"?(h=c.id,f=c.init):c.type==="AssignmentExpression"?(h=c.left,f=c.right):h=c.argument;for(let d of e(h)){let m=i.getScope(d),g=r(m,d);if(!g||g.scope.type==="global"&&g.defs.length===0||a.scope!==o(g.scope)||g.eslintUsed||g.scope.type==="module"&&(g.defs.some(O=>O.type==="Variable"&&O.parent.parent.type==="ExportNamedDeclaration"||O.type==="FunctionName"&&(O.node.parent.type==="ExportNamedDeclaration"||O.node.parent.type==="ExportDefaultDeclaration")||O.type==="ClassName"&&(O.node.parent.type==="ExportNamedDeclaration"||O.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(O=>O.identifier.parent.type==="ExportSpecifier")))continue;let b=p.get(g);b||(b=[],p.set(g,b)),b.push({variable:g,identifier:d,node:c,expression:f,segments:[...a.currentSegments]})}}}}},hb}var db,sF;function yz(){if(sF)return db;sF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=mr(),{RegExpParser:n,visitRegExpAST:i}=Yn(),a=new n;function l(c){let p=[],h=c;do p.push(h),h=h.parent;while(h);return p}function o(c){return c.type==="Assertion"&&(c.kind==="lookahead"||c.kind==="lookbehind")}function u(c){return o(c)&&c.negate}return db={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/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(c){let p=c.sourceCode;function h(f,d,m){let g;try{g=a.parsePattern(d,0,d.length,{unicode:m.includes("u"),unicodeSets:m.includes("v")})}catch{return}i(g,{onBackreferenceEnter(b){let O=b.resolved,S=l(b),C=l(O),k=null;if(S.includes(O))k="nested";else{let E=S.length-1,A=C.length-1;do E--,A--;while(S[E]===C[A]);let w=A+1,P=C.slice(0,w),T=C.slice(w),I=T.find(o),F=I&&I.kind==="lookbehind";!F&&b.end<=O.start?k="forward":F&&O.end<=b.start?k="backward":P.at(-1).type==="Alternative"?k="disjunctive":P.some(u)&&(k="intoNegativeLookaround")}k&&c.report({node:f,messageId:k,data:{bref:b.raw,group:O.raw}})}})}return{"Literal[regex]"(f){let{pattern:d,flags:m}=f.regex;h(f,d,m)},Program(f){let d=p.getScope(f),m=new t(d),g={RegExp:{[r]:!0,[e]:!0}};for(let{node:b}of m.iterateGlobalReferences(g)){let[O,S]=b.arguments,C=s(O,d),k=s(S,d);typeof C=="string"&&h(b,C,k||"")}}}}},db}var mb,iF;function xz(){if(iF)return mb;iF=1;let r=De();function e(s){let n=r.skipChainExpression(s.callee);return n.type==="MemberExpression"&&n.property.type==="Identifier"&&n.computed===!1&&(n.property.name==="call"&&s.arguments.length>=1||n.property.name==="apply"&&s.arguments.length===2&&s.arguments[1].type==="ArrayExpression")}function t(s,n,i){return s?r.equalTokens(s,n,i):r.isNullOrUndefined(n)}return mb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(s){let n=s.sourceCode;return{CallExpression(i){if(!e(i))return;let a=r.skipChainExpression(i.callee),l=r.skipChainExpression(a.object),o=l.type==="MemberExpression"?l.object:null,u=i.arguments[0];t(o,u,n)&&s.report({node:i,messageId:"unnecessaryCall",data:{name:a.property.name}})}}}},mb}var gb,aF;function bz(){return aF||(aF=1,gb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(r){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?r.report({node:e,messageId:"unnecessaryCatchClause"}):r.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),gb}var yb,oF;function vz(){if(oF)return yb;oF=1;let r=De();function e(t){if(!t.computed)return!1;let{key:s}=t;if(s.type!=="Literal")return!1;let{value:n}=s;if(typeof n!="number"&&typeof n!="string")return!1;switch(t.type){case"Property":return n!=="__proto__";case"PropertyDefinition":return t.static?n!=="constructor"&&n!=="prototype":n!=="constructor";case"MethodDefinition":return t.static?n!=="prototype":n!=="constructor";default:throw new Error(`Unexpected node type: ${t.type}`)}}return yb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(t){let s=t.sourceCode,n=t.options[0]?.enforceForClassMembers??!0;function i(l){if(e(l)){let{key:o}=l;t.report({node:l,messageId:"unnecessarilyComputedProperty",data:{property:s.getText(o)},fix(u){let c=s.getTokenBefore(o,r.isOpeningBracketToken),p=s.getTokenAfter(o,r.isClosingBracketToken);if(s.commentsExistBetween(c,p))return null;let h=s.getTokenBefore(c),d=(h.range[1]===c.range[0]&&!r.canTokensBeAdjacent(h,s.getFirstToken(o))?" ":"")+o.raw;return u.replaceTextRange([c.range[0],p.range[1]],d)}})}}function a(){}return{Property:i,MethodDefinition:n?i:a,PropertyDefinition:n?i:a}}},yb}var xb,lF;function Oz(){if(lF)return xb;lF=1;let r=De();function e(i){return i.type==="BinaryExpression"&&i.operator==="+"}function t(i){return i.value==="+"&&i.type==="Punctuator"}function s(i){let a=i.left;for(;e(a);)a=a.right;return a}function n(i){let a=i.right;for(;e(a);)a=a.left;return a}return xb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(i){let a=i.sourceCode;return{BinaryExpression(l){if(l.operator!=="+")return;let o=s(l),u=n(l);if(r.isStringLiteral(o)&&r.isStringLiteral(u)&&r.isTokenOnSameLine(o,u)){let c=a.getFirstTokenBetween(o,u,t);i.report({node:l,loc:c.loc,messageId:"unexpectedConcat"})}}}}},xb}var bb,uF;function Sz(){if(uF)return bb;uF=1;function r(o){return o.length===1&&o[0].type==="ExpressionStatement"&&o[0].expression.type==="CallExpression"&&o[0].expression.callee.type==="Super"}function e(o){return o.type==="Identifier"||o.type==="RestElement"}function t(o){return o.length===1&&o[0].type==="SpreadElement"&&o[0].argument.type==="Identifier"&&o[0].argument.name==="arguments"}function s(o,u){return o.type==="Identifier"&&u.type==="Identifier"&&o.name===u.name}function n(o,u){return o.type==="RestElement"&&u.type==="SpreadElement"&&s(o.argument,u.argument)}function i(o,u){return s(o,u)||n(o,u)}function a(o,u){if(o.length!==u.length)return!1;for(let c=0;c?@^`~");return vb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(u){let c=u.sourceCode,p=new e;function h(g,b,O,S){let C=g.range[0]+b,k=[C,C+1],E=c.getLocFromIndex(C);u.report({node:g,loc:{start:E,end:{line:E.line,column:E.column+1}},messageId:"unnecessaryEscape",data:{character:O},suggest:[{messageId:r.isDirective(g.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(A){return A.removeRange(k)}},...S?[]:[{messageId:"escapeBackslash",fix(A){return A.insertTextBeforeRange(k,"\\")}}]]})}function f(g,b){let O=g.type==="TemplateElement",S=b[0][1],C=!n.has(S),k;O?(k=S==="`",S==="$"?C=b.input[b.index+2]!=="{":S==="{"&&(C=b.input[b.index-1]!=="$")):k=S===g.raw[0],C&&!k&&h(g,b.index,b[0].slice(1))}function d(g){let{pattern:b,flags:O}=g.regex,S,C=O.includes("u"),k=O.includes("v");try{S=p.parsePattern(b,0,b.length,{unicode:C,unicodeSets:k})}catch{return}let E=[];t(S,{onCharacterClassEnter:A=>E.unshift(A),onCharacterClassLeave:()=>E.shift(),onExpressionCharacterClassEnter:A=>E.unshift(A),onExpressionCharacterClassLeave:()=>E.shift(),onCharacterEnter(A){if(!A.raw.startsWith("\\"))return;let w=A.raw.slice(1);if(w!==String.fromCodePoint(A.value))return;let P;if(E.length?P=k?l:i:P=a,P.has(w))return;let T=A.start+1,I=!1;if(E.length){let F=E[0];if(w==="^"&&F.start+1===A.start)return;if(k){if(o.has(w)&&(b[A.end]===w||b[A.start-1]===w&&(w!=="^"||!F.negate||F.start+1t.getCommentsInside(g).length||g.type==="AssignmentPattern"&&r.isParenthesised(t,g.left)?null:m.replaceText(p,t.getText(g))}})}function o(p){if(!n)for(let h of p.properties){if(h.type!=="Property"||h.shorthand||h.computed)continue;let f=h.key.type==="Identifier"&&h.key.name||h.key.type==="Literal"&&h.key.value,d=h.value.type==="AssignmentPattern"?h.value.left.name:h.value.name;f===d&&l(h,h.key,"Destructuring assignment")}}function u(p){i||p.imported.range[0]!==p.local.range[0]&&r.getModuleExportName(p.imported)===p.local.name&&l(p,p.imported,"Import")}function c(p){a||p.local.range[0]!==p.exported.range[0]&&r.getModuleExportName(p.local)===r.getModuleExportName(p.exported)&&l(p,p.local,"Export")}return{ObjectPattern:o,ImportSpecifier:u,ExportSpecifier:c}}},Ob}var Sb,pF;function wz(){if(pF)return Sb;pF=1;let r=De(),e=Go();function t(a,l){let o=a.indexOf(l);o!==-1&&a.splice(o,1)}function s(a){return r.STATEMENT_LIST_PARENTS.has(a.parent.type)}function n(a){for(let l=a;l&&l.parent&&!r.isFunction(l);l=l.parent)if(l.parent.type==="TryStatement"&&l.parent.finalizer===l)return!0;return!1}function i(a){for(let l of a)if(l.reachable)return!0;return!1}return Sb={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(a){let l=new WeakMap,o=a.sourceCode,u=null;function c(d){let m=l.get(d);return!m||m.returned}function p(d,m,g){let b=g||new WeakSet;for(let O of m){if(!O.reachable){b.has(O)||(b.add(O),p(d,O.allPrevSegments.filter(c),b));continue}l.has(O)&&d.push(...l.get(O).uselessReturns)}return d}function h(d,m){if(!d.reachable){m.add(d),d.allPrevSegments.filter(c).filter(b=>!m.has(b)).forEach(b=>h(b,m));return}let g=l.get(d);g&&(g.uselessReturns=g.uselessReturns.filter(b=>{if(u.traversedTryBlockStatements&&u.traversedTryBlockStatements.length>0){let O=b.range[0],S=b.range[1];if(u.traversedTryBlockStatements.some(k=>{let E=k.range[0],A=k.range[1];return O>=E&&S<=A}))return!0}return t(u.uselessReturns,b),!1}))}function f(){u.currentSegments.forEach(d=>h(d,new Set))}return{onCodePathStart(d){u={upper:u,uselessReturns:[],traversedTryBlockStatements:[],codePath:d,currentSegments:new Set}},onCodePathEnd(){for(let d of u.uselessReturns)a.report({node:d,loc:d.loc,messageId:"unnecessaryReturn",fix(m){return s(d)&&!o.getCommentsInside(d).length?new e(m,o).retainEnclosingFunction(d).remove(d):null}});u=u.upper},onCodePathSegmentStart(d){u.currentSegments.add(d);let m={uselessReturns:p([],d.allPrevSegments),returned:!1};l.set(d,m)},onUnreachableCodePathSegmentStart(d){u.currentSegments.add(d)},onUnreachableCodePathSegmentEnd(d){u.currentSegments.delete(d)},onCodePathSegmentEnd(d){u.currentSegments.delete(d)},ReturnStatement(d){if(d.argument&&f(),!(d.argument||r.isInLoop(d)||n(d)||!i(u.currentSegments))){for(let m of u.currentSegments){let g=l.get(m);g&&(g.uselessReturns.push(d),g.returned=!0)}u.uselessReturns.push(d)}},"TryStatement > BlockStatement.block:exit"(d){u.traversedTryBlockStatements.push(d)},"TryStatement:exit"(){u.traversedTryBlockStatements.pop()},ClassDeclaration:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,EmptyStatement:f,ExpressionStatement:f,ForInStatement:f,ForOfStatement:f,ForStatement:f,IfStatement:f,ImportDeclaration:f,LabeledStatement:f,SwitchStatement:f,ThrowStatement:f,TryStatement:f,VariableDeclaration:f,WhileStatement:f,WithStatement:f,ExportNamedDeclaration:f,ExportDefaultDeclaration:f,ExportAllDeclaration:f}}},Sb}var Eb,hF;function kz(){if(hF)return Eb;hF=1;let r=De();function e(h){return!!h.scope&&h.scope.type==="global"}function t(h){let f=h;for(;f.type!=="function"&&f.type!=="global";)f=f.upper;return f}function s(h){let f=t(h.scope);return h.references.some(d=>t(d.from)!==f)}function n(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function i(h){return h.declarations.every(f=>f.init!==null)}let a=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function l(h){for(let f=h;f;f=f.parent)if(a.test(f.type))return f;return null}function o(h){return h.defs.length>=2}function u(h){function f(d){let m=h.range,g=d.identifier.range;return g[0]m[1]}return function(d){return d.references.some(f)}}function c(h){let f=h.range[0],d=h.range[1];return m=>{let g=m.defs[0].name,b=g.range[0],O=g.parent.type==="AssignmentPattern"?g.parent.right:null,S=O&&O.range[0],C=O&&O.range[1];return m.references.some(k=>{let E=k.identifier.range[0],A=k.identifier.range[1];return!k.init&&(E=S&&A<=C||!r.isFunction(h)&&E>=f&&A<=d)})}}function p(h){return h.name==="let"}return Eb={meta:{type:"suggestion",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){let f=h.sourceCode;function d(b){return b.init?f.getDeclaredVariables(b).some(c(b.init)):!1}function m(b){let O=f.getDeclaredVariables(b),S=l(b);return!(b.parent.type==="SwitchCase"||b.declarations.some(d)||O.some(e)||O.some(o)||O.some(u(S))||O.some(p)||r.isInLoop(b)&&(O.some(s)||!n(b)&&!i(b))||!n(b)&&!(b.parent.type==="ForStatement"&&b.parent.init===b)&&!r.STATEMENT_LIST_PARENTS.has(b.parent.type))}function g(b){h.report({node:b,messageId:"unexpectedVar",fix(O){let S=f.getFirstToken(b,{filter:C=>C.value==="var"});return m(b)?O.replaceText(S,"let"):null}})}return{"VariableDeclaration:exit"(b){b.kind==="var"&&g(b)}}}},Eb}var Cb,dF;function Az(){return dF||(dF=1,Cb={meta:{type:"suggestion",docs:{description:"Disallow `void` operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(r){let e=r.options[0]&&r.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(t){e&&t.parent&&t.parent.type==="ExpressionStatement"||r.report({node:t,messageId:"noVoid"})}}}}),Cb}var wb,mF;function Pz(){if(mF)return wb;mF=1;let r=Cc(),e=De(),t=40;return wb={meta:{type:"suggestion",docs:{description:"Disallow specified warning terms in comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(s){let n=s.sourceCode,i=s.options[0]||{},a=i.terms||["todo","fixme","xxx"],l=i.location||"start",o=[...i.decoration||[]].join(""),u=/\bno-warning-comments\b/u;function c(d){let m=r(d),g=r(o),b="\\b",O="";l==="start"?O=`^[\\s${g}]*`:/^\w/u.test(d)&&(O=b);let S=/\w$/u.test(d)?b:"",C="iu";return new RegExp(`${O}${m}${S}`,C)}let p=a.map(c);function h(d){let m=[];return p.forEach((g,b)=>{g.test(d)&&m.push(a[b])}),m}function f(d){let m=d.value;if(e.isDirectiveComment(d)&&u.test(m))return;h(m).forEach(b=>{let O="",S=!1;for(let C of m.trim().split(/\s+/u)){let k=O?`${O} ${C}`:C;if(k.length<=t)O=k;else{S=!0;break}}s.report({node:d,messageId:"unexpectedComment",data:{matchedTerm:b,comment:`${O}${S?"...":""}`}})})}return{Program(){n.getAllComments().filter(m=>m.type!=="Shebang").forEach(f)}}}},wb}var kb,gF;function Tz(){if(gF)return kb;gF=1;let r=De();return kb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){let t=e.sourceCode;function s(n,i,a){e.report({node:n,messageId:"unexpectedWhitespace",data:{propName:t.getText(n.property)},fix(l){let o="";return!n.computed&&!n.optional&&r.isDecimalInteger(n.object)||t.commentsExistBetween(i,a)?null:(n.optional?o="?.":n.computed||(o="."),l.replaceTextRange([i.range[1],a.range[0]],o))}})}return{MemberExpression(n){let i,a;r.isTokenOnSameLine(n.object,n.property)&&(n.computed?(i=t.getTokenBefore(n.property,r.isOpeningBracketToken),a=t.getTokenBefore(i,n.optional?1:0)):(i=t.getFirstToken(n.property),a=t.getTokenBefore(i,1)),t.isSpaceBetweenTokens(a,i)&&s(n,a,i))}}}},kb}var Ab,yF;function Dz(){return yF||(yF=1,Ab={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(r){return{WithStatement(e){r.report({node:e,messageId:"unexpectedWith"})}}}}),Ab}var Pb,xF;function _z(){if(xF)return Pb;xF=1;let r={enum:["beside","below","any"]};return Pb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[r,{properties:{overrides:{properties:{if:r,else:r,while:r,do:r,for:r},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){let t=e.sourceCode;function s(i){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[i]||e.options[0]||"beside"}function n(i,a){let l=s(a);if(i.type==="BlockStatement"||l==="any")return;let o=t.getTokenBefore(i);o.loc.end.line===i.loc.start.line&&l==="below"?e.report({node:i,messageId:"expectLinebreak",fix:u=>u.insertTextBefore(i,` -`)}):o.loc.end.line!==i.loc.start.line&&l==="beside"&&e.report({node:i,messageId:"expectNoLinebreak",fix(u){return t.getText().slice(o.range[1],i.range[0]).trim()?null:u.replaceTextRange([o.range[1],i.range[0]]," ")}})}return{IfStatement(i){n(i.consequent,"if"),i.alternate&&i.alternate.type!=="IfStatement"&&n(i.alternate,"else")},WhileStatement:i=>n(i.body,"while"),DoWhileStatement:i=>n(i.body,"do"),ForStatement:i=>n(i.body,"for"),ForInStatement:i=>n(i.body,"for"),ForOfStatement:i=>n(i.body,"for")}}},Pb}var Tb,bF;function Iz(){if(bF)return Tb;bF=1;let r=De(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function t(l){let o=!1,u=Number.POSITIVE_INFINITY,c=!1;return l?l==="always"?u=0:l==="never"?u=Number.POSITIVE_INFINITY:(o=!!l.multiline,u=l.minProperties||Number.POSITIVE_INFINITY,c=!!l.consistent):c=!0,{multiline:o,minProperties:u,consistent:c}}function s(l){return typeof l=="object"&&l!==null}function n(l){return s(l)||typeof l=="string"}function i(l){if(s(l)&&Object.values(l).some(n))return{ObjectExpression:t(l.ObjectExpression),ObjectPattern:t(l.ObjectPattern),ImportDeclaration:t(l.ImportDeclaration),ExportNamedDeclaration:t(l.ExportDeclaration)};let o=t(l);return{ObjectExpression:o,ObjectPattern:o,ImportDeclaration:o,ExportNamedDeclaration:o}}function a(l,o,u,c){let p;return l.type==="ObjectExpression"||l.type==="ObjectPattern"?p=l.properties:p=l.specifiers.filter(h=>h.type==="ImportSpecifier"||h.type==="ExportSpecifier"),p.length>=o.minProperties||o.multiline&&p.length>0&&u.loc.start.line!==c.loc.end.line}return Tb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},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(l){let o=l.sourceCode,u=i(l.options[0]);function c(p){let h=u[p.type];if(p.type==="ImportDeclaration"&&!p.specifiers.some(C=>C.type==="ImportSpecifier")||p.type==="ExportNamedDeclaration"&&!p.specifiers.some(C=>C.type==="ExportSpecifier"))return;let f=o.getFirstToken(p,C=>C.value==="{"),d;p.typeAnnotation?d=o.getTokenBefore(p.typeAnnotation):d=o.getLastToken(p,C=>C.value==="}");let m=o.getTokenAfter(f,{includeComments:!0}),g=o.getTokenBefore(d,{includeComments:!0}),b=a(p,h,m,g),O=r.isCommentToken(m),S=r.isCommentToken(g);if(m=o.getTokenAfter(f),g=o.getTokenBefore(d),b)r.isTokenOnSameLine(f,m)&&l.report({messageId:"expectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(C){return O?null:C.insertTextAfter(f,` -`)}}),r.isTokenOnSameLine(g,d)&&l.report({messageId:"expectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(C){return S?null:C.insertTextBefore(d,` -`)}});else{let C=h.consistent,k=!r.isTokenOnSameLine(f,m),E=!r.isTokenOnSameLine(g,d);(!C&&k||C&&k&&!E)&&l.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(A){return O?null:A.removeRange([f.range[1],m.range[0]])}}),(!C&&E||C&&!k&&E)&&l.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(A){return S?null:A.removeRange([g.range[1],d.range[0]])}})}}return{ObjectExpression:c,ObjectPattern:c,ImportDeclaration:c,ExportNamedDeclaration:c}}},Tb}var Db,vF;function Fz(){if(vF)return Db;vF=1;let r=De();return Db={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]==="always",s=e.sourceCode;function n(m){return e.options[1]?e.options[1][m]===!t:!1}let i={spaced:t,arraysInObjectsException:n("arraysInObjects"),objectsInObjectsException:n("objectsInObjects")};function a(m,g){let b=e.sourceCode.getTokenAfter(g,{includeComments:!0});e.report({node:m,loc:{start:g.loc.end,end:b.loc.start},messageId:"unexpectedSpaceAfter",data:{token:g.value},fix(O){return O.removeRange([g.range[1],b.range[0]])}})}function l(m,g){let b=e.sourceCode.getTokenBefore(g,{includeComments:!0});e.report({node:m,loc:{start:b.loc.end,end:g.loc.start},messageId:"unexpectedSpaceBefore",data:{token:g.value},fix(O){return O.removeRange([b.range[1],g.range[0]])}})}function o(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceAfter",data:{token:g.value},fix(b){return b.insertTextAfter(g," ")}})}function u(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceBefore",data:{token:g.value},fix(b){return b.insertTextBefore(g," ")}})}function c(m,g,b,O,S){if(r.isTokenOnSameLine(g,b)){let C=s.isSpaceBetweenTokens(g,b);i.spaced&&!C&&o(m,g),!i.spaced&&C&&b.type!=="Line"&&a(m,g)}if(r.isTokenOnSameLine(O,S)){let k=(i.arraysInObjectsException&&r.isClosingBracketToken(O)||i.objectsInObjectsException&&r.isClosingBraceToken(O))&&s.getNodeByRangeIndex(O.range[0]).type,E=i.arraysInObjectsException&&k==="ArrayExpression"||i.objectsInObjectsException&&(k==="ObjectExpression"||k==="ObjectPattern")?!i.spaced:i.spaced,A=s.isSpaceBetweenTokens(O,S);E&&!A&&u(m,S),!E&&A&&l(m,S)}}function p(m){let g=m.properties.at(-1);return s.getTokenAfter(g,r.isClosingBraceToken)}function h(m){if(m.properties.length===0)return;let g=s.getFirstToken(m),b=p(m),O=s.getTokenAfter(g,{includeComments:!0}),S=s.getTokenBefore(b,{includeComments:!0});c(m,g,O,S,b)}function f(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],b=m.specifiers.at(-1);if(b.type!=="ImportSpecifier")return;g.type!=="ImportSpecifier"&&(g=m.specifiers[1]);let O=s.getTokenBefore(g),S=s.getTokenAfter(b,r.isNotCommaToken),C=s.getTokenAfter(O,{includeComments:!0}),k=s.getTokenBefore(S,{includeComments:!0});c(m,O,C,k,S)}function d(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],b=m.specifiers.at(-1),O=s.getTokenBefore(g),S=s.getTokenAfter(b,r.isNotCommaToken),C=s.getTokenAfter(O,{includeComments:!0}),k=s.getTokenBefore(S,{includeComments:!0});c(m,O,C,k,S)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:f,ExportNamedDeclaration:d}}},Db}var _b,OF;function Rz(){return OF||(OF=1,_b={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]&&(r.options[0].allowAllPropertiesOnSameLine||r.options[0].allowMultiplePropertiesPerLine),t=e?"propertiesOnNewlineAll":"propertiesOnNewline",s=r.sourceCode;return{ObjectExpression(n){if(e&&n.properties.length>1){let i=s.getFirstToken(n.properties[0]),a=s.getLastToken(n.properties.at(-1));if(i.loc.end.line===a.loc.start.line)return}for(let i=1;i0){let V=Q.filter(S);V.length!==Q.length&&(V.length>0?t.report({node:_,messageId:"unexpectedMix"}):B&&Q.every(C)&&t.report({node:_,messageId:"expectedAllPropertiesShorthanded"}))}}function E(_,B){let Q=B.computed?d.getFirstToken(B,e.isOpeningBracketToken):d.getFirstToken(B.key),V=B.computed?d.getFirstTokenBetween(B.key,B.value,e.isClosingBracketToken):d.getLastToken(B.key),R=d.text.slice(Q.range[0],V.range[1]),$="";if(d.commentsExistBetween(V,B.value))return null;B.value.async&&($+="async "),B.value.generator&&($+="*");let N=[Q.range[0],B.range[1]],W=$+R;if(B.value.type==="FunctionExpression"){let ee=d.getTokens(B.value).find(ve=>ve.type==="Keyword"&&ve.value==="function"),ce=B.value.generator?d.getTokenAfter(ee):ee;return _.replaceTextRange(N,W+d.text.slice(ce.range[1],B.value.range[1]))}let Z=d.getTokenBefore(B.value.body,e.isArrowToken),le=d.text.slice(Z.range[1],B.value.range[1]),ae=!1,Se;if(B.value.params.length===0?Se=d.getFirstToken(B.value,e.isOpeningParenToken):Se=d.getTokenBefore(B.value.params[0]),B.value.params.length===1){let ee=e.isOpeningParenToken(Se),ce=Se.range[0]N.value==="["):d.getFirstToken(B.key),V=B.computed?d.getTokensBetween(B.key,B.value).find(N=>N.value==="]"):d.getLastToken(B.key),R=d.text.slice(Q.range[0],V.range[1]),$="function";return B.value.async&&($=`async ${$}`),B.value.generator&&($=`${$}*`),_.replaceTextRange([B.range[0],V.range[1]],`${R}: ${$}`)}let w=[],P=new WeakSet,T=new WeakSet;function I(_){w.unshift(new Set),d.getScope(_).variables.filter(B=>B.name==="arguments").forEach(B=>{B.references.map(Q=>Q.identifier).forEach(Q=>T.add(Q))})}function F(){w.shift()}function L(){w[0].forEach(_=>P.add(_))}return{Program:I,FunctionDeclaration:I,FunctionExpression:I,"Program:exit":F,"FunctionDeclaration:exit":F,"FunctionExpression:exit":F,ArrowFunctionExpression(_){w[0].add(_)},"ArrowFunctionExpression:exit"(_){w[0].delete(_)},ThisExpression:L,Super:L,MetaProperty(_){_.meta.name==="new"&&_.property.name==="target"&&L()},Identifier(_){T.has(_)&&L()},ObjectExpression(_){l?k(_,!1):o&&k(_,!0)},"Property:exit"(_){let B=_.method||_.shorthand;if(_.parent.type!=="ObjectPattern"&&!(_.kind==="get"||_.kind==="set")&&!(_.computed&&_.value.type!=="FunctionExpression"&&_.value.type!=="ArrowFunctionExpression")){if(B)if(_.method&&(a||h&&O(_.key))){let Q=a?"expectedMethodLongform":"expectedLiteralMethodLongform";t.report({node:_,messageId:Q,fix:V=>A(V,_)})}else a&&t.report({node:_,messageId:"expectedPropertyLongform",fix:Q=>Q.insertTextAfter(_.key,`: ${_.key.name}`)});else if(n&&!_.value.id&&(_.value.type==="FunctionExpression"||_.value.type==="ArrowFunctionExpression")){if(c&&_.key.type==="Identifier"&&g(_.key.name))return;if(p){let Q=e.getStaticPropertyName(_);if(Q!==null&&p.test(Q))return}if(h&&O(_.key))return;(_.value.type==="FunctionExpression"||_.value.type==="ArrowFunctionExpression"&&_.value.body.type==="BlockStatement"&&f&&!P.has(_.value))&&t.report({node:_,messageId:"expectedMethodShorthand",fix:Q=>E(Q,_)})}else if(_.value.type==="Identifier"&&_.key.name===_.value.name&&i)t.report({node:_,messageId:"expectedPropertyShorthand",fix(Q){return Q.replaceText(_,_.value.name)}});else if(_.value.type==="Identifier"&&_.key.type==="Literal"&&_.key.value===_.value.name&&i){if(h)return;t.report({node:_,messageId:"expectedPropertyShorthand",fix(Q){return Q.replaceText(_,_.value.name)}})}}}}}},Ib}var Fb,EF;function Nz(){if(EF)return Fb;EF=1;let r=De();function e(t){return r.STATEMENT_LIST_PARENTS.has(t.parent.type)}return Fb={meta:{type:"suggestion",docs:{description:"Enforce variables to be declared either together or separately in functions",recommended:!1,url:"https://eslint.org/docs/latest/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 s="always",n="never",i="consecutive",a=t.options[0]||s,l={};typeof a=="string"?(l.var={uninitialized:a,initialized:a},l.let={uninitialized:a,initialized:a},l.const={uninitialized:a,initialized:a}):typeof a=="object"&&(l.separateRequires=!!a.separateRequires,l.var={uninitialized:a.var,initialized:a.var},l.let={uninitialized:a.let,initialized:a.let},l.const={uninitialized:a.const,initialized:a.const},Object.hasOwn(a,"uninitialized")&&(l.var.uninitialized=a.uninitialized,l.let.uninitialized=a.uninitialized,l.const.uninitialized=a.uninitialized),Object.hasOwn(a,"initialized")&&(l.var.initialized=a.initialized,l.let.initialized=a.initialized,l.const.initialized=a.initialized));let o=t.sourceCode,u=[],c=[];function p(){c.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function h(){u.push({initialized:!1,uninitialized:!1}),p()}function f(){c.pop()}function d(){u.pop(),f()}function m(A){return A.init&&A.init.type==="CallExpression"&&A.init.callee.name==="require"}function g(A,w,P){for(let T=0;T0&&T.uninitialized===s&&I.uninitialized||P.initialized>0&&T.initialized===s&&I.initialized&&!F||I.required&&F?!1:(g(A,w,I),!0)}function C(A){let w=A[0],P=Array.isArray(w.parent.parent.body)?w.parent.parent.body:[],T=P.findIndex(F=>F.range[0]===w.parent.range[0]),I=P[T-1];return F=>{let L=o.getTokenBefore(w),_=o.getTokenBefore(L),B=[];return I&&I.kind===o.getText(L)&&(_.value===";"?B.push(F.replaceText(_,",")):B.push(F.insertTextAfter(_,",")),B.push(F.replaceText(L,""))),B}}function k(A){let{parent:w}=A;return e(w.type==="ExportNamedDeclaration"?w:A)?P=>A.declarations.map(T=>{let I=o.getTokenAfter(T);if(I===null)return null;let F=o.getTokenAfter(I,{includeComments:!0});if(I.value!==",")return null;let L=A.parent.type==="ExportNamedDeclaration"?"export ":"";if(F.range[0]===I.range[1])return P.replaceText(I,`; ${L}${A.kind} `);if(F.loc.start.line>I.loc.end.line||F.type==="Line"||F.type==="Block"){let _=F;for(;_.type==="Line"||_.type==="Block";)_=o.getTokenAfter(_,{includeComments:!0});return P.replaceTextRange([I.range[0],_.range[0]],`;${o.text.slice(I.range[1],_.range[0])}${L}${A.kind} `)}return P.replaceText(I,`; ${L}${A.kind}`)}).filter(T=>T):null}function E(A){let w=A.parent,P=A.kind;if(!l[P])return;let T=A.declarations,I=O(T),F=T.some(m)&&!T.every(m);l[P].initialized===s&&l.separateRequires&&F&&t.report({node:A,messageId:"splitRequires"});let L=w.body&&w.body.length>0&&w.body.indexOf(A)||0;if(L>0){let _=w.body[L-1],B=_.type==="VariableDeclaration",Q=T.concat(_.declarations||[]);if(B&&_.kind===P&&!(Q.some(m)&&!Q.every(m))){let V=O(_.declarations);l[P].initialized===i&&l[P].uninitialized===i?t.report({node:A,messageId:"combine",data:{type:P},fix:C(T)}):l[P].initialized===i&&I.initialized>0&&V.initialized>0?t.report({node:A,messageId:"combineInitialized",data:{type:P},fix:C(T)}):l[P].uninitialized===i&&I.uninitialized>0&&V.uninitialized>0&&t.report({node:A,messageId:"combineUninitialized",data:{type:P},fix:C(T)})}}if(!S(P,T)){if(l[P].initialized===s&&l[P].uninitialized===s)t.report({node:A,messageId:"combine",data:{type:P},fix:C(T)});else if(l[P].initialized===s&&I.initialized>0&&t.report({node:A,messageId:"combineInitialized",data:{type:P},fix:C(T)}),l[P].uninitialized===s&&I.uninitialized>0){if(A.parent.left===A&&(A.parent.type==="ForInStatement"||A.parent.type==="ForOfStatement"))return;t.report({node:A,messageId:"combineUninitialized",data:{type:P},fix:C(T)})}}(w.type!=="ForStatement"||w.init!==A)&&I.uninitialized+I.initialized>1&&(l[P].initialized===n&&l[P].uninitialized===n?t.report({node:A,messageId:"split",data:{type:P},fix:k(A)}):l[P].initialized===n&&I.initialized>0?t.report({node:A,messageId:"splitInitialized",data:{type:P},fix:k(A)}):l[P].uninitialized===n&&I.uninitialized>0&&t.report({node:A,messageId:"splitUninitialized",data:{type:P},fix:k(A)}))}return{Program:h,FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h,StaticBlock:h,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p,VariableDeclaration:E,"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":d,"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d,"StaticBlock:exit":d}}},Fb}var Rb,CF;function Lz(){return CF||(CF=1,Rb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(r){let e=r.options[0]==="always";function t(n){return n==="ForStatement"||n==="ForInStatement"||n==="ForOfStatement"}function s(n){if(t(n.parent.type))return;let i=n.declarations,a;i.forEach(l=>{a&&a.loc.end.line===l.loc.start.line&&(e||a.init||l.init)&&r.report({node:n,messageId:"expectVarOnNewline",loc:l.loc,fix:o=>o.insertTextBefore(l,` -`)}),a=l})}return{VariableDeclaration:s}}}),Rb}var Bb,wF;function $z(){if(wF)return Bb;wF=1;let r=De();function e(n){return["*","&","^","|"].includes(n)}function t(n){return["+","-","/","%","<<",">>",">>>","**"].includes(n)}function s(n){return n.type==="Identifier"||n.type==="MemberExpression"&&(n.object.type==="Identifier"||n.object.type==="ThisExpression")&&(!n.computed||n.property.type==="Literal")}return Bb={meta:{type:"suggestion",docs:{description:"Require or disallow assignment operator shorthand where possible",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=n.sourceCode;function a(u){return i.getFirstTokenBetween(u.left,u.right,c=>c.value===u.operator)}function l(u){if(u.operator!=="="||u.right.type!=="BinaryExpression")return;let c=u.left,p=u.right,h=p.operator;if(e(h)||t(h)){let f=`${h}=`;r.isSameReference(c,p.left,!0)?n.report({node:u,messageId:"replaced",data:{operator:f},fix(d){if(s(c)&&s(p.left)){let m=a(u),g=a(p),b=i.getText().slice(u.range[0],m.range[0]),O=i.getText().slice(g.range[1],u.right.range[1]);return i.commentsExistBetween(m,g)?null:d.replaceText(u,`${b}${f}${O}`)}return null}}):r.isSameReference(c,p.right,!0)&&e(h)&&n.report({node:u,messageId:"replaced",data:{operator:f}})}}function o(u){u.operator!=="="&&!r.isLogicalAssignmentOperator(u.operator)&&n.report({node:u,messageId:"unexpected",data:{operator:u.operator},fix(c){if(s(u.left)){let p=i.getFirstToken(u),h=a(u),f=i.getText().slice(u.range[0],h.range[0]),d=u.operator.slice(0,-1),m;if(i.commentsExistBetween(p,h))return null;if(r.getPrecedence(u.right)<=r.getPrecedence({type:"BinaryExpression",operator:d})&&!r.isParenthesised(i,u.right))m=`${i.text.slice(h.range[1],u.right.range[0])}(${i.getText(u.right)})`;else{let g=i.getTokenAfter(h,{includeComments:!0}),b="";h.range[1]===g.range[0]&&!r.canTokensBeAdjacent({type:"Punctuator",value:d},g)&&(b=" "),m=`${b}${i.text.slice(h.range[1],u.range[1])}`}return c.replaceText(u,`${f}= ${f}${d}${m}`)}return null}})}return{AssignmentExpression:n.options[0]!=="never"?l:o}}},Bb}var Nb,kF;function Mz(){if(kF)return Nb;kF=1;let r=De();return Nb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=!e.options[0],s=e.options[0]||"after",n=e.options[1]||{},i=n.overrides?Object.assign({},n.overrides):{};t&&!i["?"]&&(i["?"]="before"),t&&!i[":"]&&(i[":"]="before");let a=e.sourceCode;function l(c,p){return h=>{let f=a.getTokenBefore(c),d=a.getTokenAfter(c),m=a.text.slice(f.range[1],c.range[0]),g=a.text.slice(c.range[1],d.range[0]),b=!r.isTokenOnSameLine(f,c),O=!r.isTokenOnSameLine(c,d),S,C;if(b!==O&&p!=="none"){if(a.getTokenBefore(c,{includeComments:!0})!==f&&a.getTokenAfter(c,{includeComments:!0})!==d)return null;S=g,C=m}else{let k=r.createGlobalLinebreakMatcher();if(S=p==="before"||m.trim()?m:m.replace(k,""),C=p==="after"||g.trim()?g:g.replace(k,""),S===m&&C===g)return null}return C===""&&d.type==="Punctuator"&&"+-".includes(c.value)&&d.value===c.value&&(C+=" "),h.replaceTextRange([f.range[1],d.range[0]],S+c.value+C)}}function o(c,p,h){let f=a.getTokenBefore(p,S=>S.value===h),d=a.getTokenBefore(f),m=a.getTokenAfter(f),g=i[h],b=g||s,O=l(f,b);r.isTokenOnSameLine(d,f)&&r.isTokenOnSameLine(f,m)||(g!=="ignore"&&!r.isTokenOnSameLine(d,f)&&!r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"badLinebreak",data:{operator:h},fix:O}):b==="before"&&r.isTokenOnSameLine(d,f)?e.report({node:c,loc:f.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:O}):b==="after"&&r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"operatorAtEnd",data:{operator:h},fix:O}):b==="none"&&e.report({node:c,loc:f.loc,messageId:"noLinebreak",data:{operator:h},fix:O}))}function u(c){o(c,c.right,c.operator)}return{BinaryExpression:u,LogicalExpression:u,AssignmentExpression:u,VariableDeclarator(c){c.init&&o(c,c.init,"=")},PropertyDefinition(c){c.value&&o(c,c.value,"=")},ConditionalExpression(c){o(c,c.consequent,"?"),o(c,c.alternate,":")}}}},Nb}var Lb,AF;function jz(){if(AF)return Lb;AF=1;let r=De();return Lb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t={},s=e.options[0]||"always",n=e.options[1]||{};if(typeof s=="string"){let d=s==="always";t.blocks=d,t.switches=d,t.classes=d}else Object.hasOwn(s,"blocks")&&(t.blocks=s.blocks==="always"),Object.hasOwn(s,"switches")&&(t.switches=s.switches==="always"),Object.hasOwn(s,"classes")&&(t.classes=s.classes==="always");Object.hasOwn(n,"allowSingleLineBlocks")&&(t.allowSingleLineBlocks=n.allowSingleLineBlocks===!0);let i=e.sourceCode;function a(d){return d.type==="SwitchStatement"?i.getTokenBefore(d.cases[0]):d.type==="StaticBlock"?i.getFirstToken(d,{skip:1}):i.getFirstToken(d)}function l(d){return d.type==="Line"||d.type==="Block"}function o(d,m){return m.loc.start.line-d.loc.end.line>=2}function u(d){let m,g=d;do m=g,g=i.getTokenAfter(g,{includeComments:!0});while(l(g)&&g.loc.start.line===m.loc.end.line);return g}function c(d){let m=d,g;do g=m,m=i.getTokenBefore(m,{includeComments:!0});while(l(m)&&m.loc.end.line===g.loc.start.line);return m}function p(d){switch(d.type){case"BlockStatement":case"StaticBlock":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw new Error("unreachable")}}function h(d){let m=a(d),g=u(m),b=i.getTokenBefore(g,{includeComments:!0}),O=i.getLastToken(d),S=c(O),C=i.getTokenAfter(S,{includeComments:!0}),k=o(b,g),E=o(S,C);t.allowSingleLineBlocks&&r.isTokenOnSameLine(b,C)||(p(d)?(k||e.report({node:d,loc:{start:b.loc.start,end:g.loc.start},fix(A){return A.insertTextAfter(b,` -`)},messageId:"alwaysPadBlock"}),E||e.report({node:d,loc:{end:C.loc.start,start:S.loc.end},fix(A){return A.insertTextBefore(C,` -`)},messageId:"alwaysPadBlock"})):(k&&e.report({node:d,loc:{start:b.loc.start,end:g.loc.start},fix(A){return A.replaceTextRange([b.range[1],g.range[0]-g.loc.start.column],` -`)},messageId:"neverPadBlock"}),E&&e.report({node:d,loc:{end:C.loc.start,start:S.loc.end},messageId:"neverPadBlock",fix(A){return A.replaceTextRange([S.range[1],C.range[0]-C.loc.start.column],` -`)}})))}let f={};return Object.hasOwn(t,"switches")&&(f.SwitchStatement=function(d){d.cases.length!==0&&h(d)}),Object.hasOwn(t,"blocks")&&(f.BlockStatement=function(d){d.body.length!==0&&h(d)},f.StaticBlock=f.BlockStatement),Object.hasOwn(t,"classes")&&(f.ClassBody=function(d){d.body.length!==0&&h(d)}),f}},Lb}var $b,PF;function qz(){if(PF)return $b;PF=1;let r=De(),e=`[${Array.from(r.LINEBREAKS).join("")}]`,t=new RegExp(String.raw`^(\s*?${e})\s*${e}(\s*;?)$`,"u"),s=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,n=/^require\(/u;function i(O){return{test:(S,C)=>C.getFirstToken(S).value===O}}function a(O){return{test:(S,C)=>S.loc.start.line===S.loc.end.line&&C.getFirstToken(S).value===O}}function l(O){return{test:(S,C)=>S.loc.start.line!==S.loc.end.line&&C.getFirstToken(S).value===O}}function o(O){return{test:S=>S.type===O}}function u(O){if(O.type==="ExpressionStatement"){let S=r.skipChainExpression(O.expression);return S.type==="UnaryExpression"&&(S=r.skipChainExpression(S.argument)),S.type==="CallExpression"&&r.isFunction(S.callee)}return!1}function c(O,S){if(S.type==="DoWhileStatement"&&S.body.type==="BlockStatement"||u(S))return!0;let C=O.getLastToken(S,r.isNotSemicolonToken),k=C&&r.isClosingBraceToken(C)?O.getNodeByRangeIndex(C.range[0]):null;return!!k&&(k.type==="BlockStatement"||k.type==="SwitchStatement")}function p(O,S){let C=O.getLastToken(S),k=O.getTokenBefore(C),E=O.getTokenAfter(C);return!!(k&&E&&k.range[0]>=S.range[0]&&r.isSemicolonToken(C)&&C.loc.start.line!==k.loc.end.line&&C.loc.end.line===E.loc.start.line)?k:C}function h(O,S,C){return S+C}function f(){}function d(O,S,C,k){k.length!==0&&O.report({node:C,messageId:"unexpectedBlankLine",fix(E){if(k.length>=2)return null;let A=k[0][0],w=k[0][1],P=A.range[1],T=w.range[0],I=O.sourceCode.text.slice(P,T).replace(t,h);return E.replaceTextRange([P,T],I)}})}function m(O,S,C,k){k.length>0||O.report({node:C,messageId:"expectedBlankLine",fix(E){let A=O.sourceCode,w=p(A,S),P=A.getFirstTokenBetween(w,C,{includeComments:!0,filter(I){return r.isTokenOnSameLine(w,I)?(w=I,!1):!0}})||C,T=r.isTokenOnSameLine(w,P)?` +`:d=f,h.push(new r(p.pos,d)),p.advance(d.length)}}return h}return Qy={parseStringLiteral:o,parseTemplateToken:u},Qy}var Uy,F2;function zW(){if(F2)return Uy;F2=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStaticValue:s,getStringIfConstant:n}=hr(),{RegExpParser:i,visitRegExpAST:a}=Xn(),{isCombiningCharacter:l,isEmojiModifier:o,isRegionalIndicatorSymbol:u,isSurrogatePair:c}=WW(),p=Pe(),{isValidWithUnicodeFlag:h}=LO(),{parseStringLiteral:f,parseTemplateToken:d}=ZW();function*m(S){let C=[];for(let O of S)switch(O.type){case"Character":C.push(O);break;case"CharacterClassRange":C.push(O.min),yield C,C=[O.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":C.length>0&&(yield C,C=[]);break}C.length>0&&(yield C)}function g(S){return/^\\u\{[\da-f]+\}$/iu.test(S.raw)}let y={*surrogatePairWithoutUFlag(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];c(w.value,O.value)&&!g(w)&&!g(O)&&(yield[w,O])}},*surrogatePair(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];c(w.value,O.value)&&(g(w)||g(O))&&(yield[w,O])}},*combiningClass(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];l(O.value)&&!l(w.value)&&(yield[w,O])}},*emojiModifier(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];o(O.value)&&!o(w.value)&&(yield[w,O])}},*regionalIndicatorSymbol(S){for(let[C,O]of S.entries()){if(C===0)continue;let w=S[C-1];u(O.value)&&u(w.value)&&(yield[w,O])}},*zwj(S){let C=null;for(let[O,w]of S.entries())O===0||O===S.length-1||w.value===8205&&S[O-1].value!==8205&&S[O+1].value!==8205&&(C?C.at(-1)===S[O-1]?C.push(w,S[O+1]):(yield C,C=S.slice(O-1,O+2)):C=S.slice(O-1,O+2));C&&(yield C)}},b=Object.keys(y);function v(S,C){if(!S)return null;if(S.type==="Literal"&&S.regex)return{regex:S.regex};let O=s(S,C);return O?.value instanceof RegExp?null:O}return Uy={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/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",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.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(S){let C=S.sourceCode,O=new i,w=new Set;function E(k,A,D,_){let B;try{B=O.parsePattern(A,0,A.length,{unicode:D.includes("u"),unicodeSets:D.includes("v")})}catch{return}let T=new Map;a(B,{onCharacterClassEnter(Q){for(let I of m(Q.elements))for(let N of b)T.has(N)?T.get(N).push(...y[N](I)):T.set(N,[...y[N](I)])}});let F=null;function j(Q){return!p.isStaticTemplateLiteral(k)&&k.type!=="Literal"?Q.length?[k.loc]:[]:Q.map(I=>{let N=I[0].start,R=I.at(-1).end-1,U,V;if(k.type==="TemplateLiteral"){let ae=C.getText(k),se=k.range[0];F??=d(ae),U=se+F[N].start,V=se+F[R].end}else if(typeof k.value=="string"){let ae=k.raw,se=k.range[0];F??=f(ae),U=se+F[N].start,V=se+F[R].end}else{let ae=k.range[0]+1;U=ae+N,V=ae+R+1}return{start:C.getLocFromIndex(U),end:C.getLocFromIndex(V)}})}for(let[Q,I]of T){let N;Q==="surrogatePairWithoutUFlag"&&(N=[{messageId:"suggestUnicodeFlag",fix:_}]);let R=j(I);for(let U of R)S.report({node:k,loc:U,messageId:Q,suggest:N})}}return{"Literal[regex]"(k){w.has(k)||E(k,k.regex.pattern,k.regex.flags,A=>h(S.languageOptions.ecmaVersion,k.regex.pattern)?A.insertTextAfter(k,"u"):null)},Program(k){let A=C.getScope(k),D=new t(A);for(let{node:_}of D.iterateGlobalReferences({RegExp:{[r]:!0,[e]:!0}})){let B,T,[F,j]=_.arguments,Q=v(F,A);if(Q){if(j)Q.regex?(B=Q.regex.pattern,w.add(F)):B=String(Q.value),T=n(j,A);else{if(Q.regex)continue;B=String(Q.value),T=""}typeof T=="string"&&E(F,B,T,I=>{if(!h(S.languageOptions.ecmaVersion,B))return null;if(_.arguments.length===1){let N=C.getLastToken(_,{skip:1});return I.insertTextAfter(N,p.isCommaToken(N)?' "u",':', "u"')}if(j.type==="Literal"&&typeof j.value=="string"||j.type==="TemplateLiteral"){let N=[j.range[0],j.range[1]-1];return I.insertTextAfterRange(N,"u")}return null})}}}}}},Uy}var Vy,R2;function XW(){if(R2)return Vy;R2=1;let r=Pe(),e=["+","-","*","/","%","**"],t=["&","|","^","~","<<",">>",">>>"],s=["==","!=","===","!==",">",">=","<","<="],n=["&&","||"],i=["in","instanceof"],a=["?:"],l=["??"],o=[].concat(e,t,s,n,i,a,l),u=[e,t,s,n,i],c=/^(?:Binary|Logical|Conditional)Expression$/u;function p(d={}){let g=d.groups&&d.groups.length>0?d.groups:u,y=d.allowSamePrecedence!==!1;return{groups:g,allowSamePrecedence:y}}function h(d,m,g){return d.some(y=>y.includes(m)&&y.includes(g))}function f(d){return d.type==="ConditionalExpression"?d.test:d.left}return Vy={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:o},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(d){let m=d.sourceCode,g=p(d.options[0]);function y(O){let w=O,E=O.parent;return!h(g.groups,w.operator,E.type==="ConditionalExpression"?"?:":E.operator)||g.allowSamePrecedence&&r.getPrecedence(w)===r.getPrecedence(E)}function b(O){return O.operator!==O.parent.operator&&!r.isParenthesised(m,O)}function v(O){return m.getTokenAfter(f(O),r.isNotClosingParenToken)}function S(O){let w=O.parent,E=f(w)===O?O:w,k=f(w)!==O?O:w,A={leftOperator:E.operator||"?:",rightOperator:k.operator||"?:"};d.report({node:E,loc:v(E).loc,messageId:"unexpectedMixedOperator",data:A}),d.report({node:k,loc:v(k).loc,messageId:"unexpectedMixedOperator",data:A})}function C(O){c.test(O.parent.type)&&b(O)&&!y(O)&&S(O)}return{BinaryExpression:C,LogicalExpression:C}}},Vy}var Wy,B2;function GW(){return B2||(B2=1,Wy={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/latest/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(r){let e=r.options[0],t=!1,s=!1;typeof e=="object"?(t=e.grouping,s=e.allowCall):t=!!e;function n(){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=n(),a="require",l="uninitialized",o="other",u="core",c="file",p="module",h="computed";function f(y){return y?y.type==="CallExpression"&&y.callee.type==="Identifier"&&y.callee.name==="require"?a:s&&y.type==="CallExpression"&&y.callee.type==="CallExpression"?f(y.callee):y.type==="MemberExpression"?f(y.object):o:l}function d(y){if(y.type==="MemberExpression")return d(y.object);if(y.arguments.length===0)return h;let b=y.arguments[0];return b.type!=="Literal"||typeof b.value!="string"?h:i.includes(b.value)?u:/^\.{0,2}\//u.test(b.value)?c:p}function m(y){let b={};return y.forEach(v=>{let S=f(v.init);b[S]=!0}),!!(b[a]&&(b[l]||b[o]))}function g(y){let b={};return y.forEach(v=>{f(v.init)===a&&(b[d(v.init)]=!0)}),Object.keys(b).length<=1}return{VariableDeclaration(y){m(y.declarations)?r.report({node:y,messageId:"noMixRequire"}):t&&!g(y.declarations)&&r.report({node:y,messageId:"noMixCoreModuleFileComputed"})}}}}),Wy}var Zy,N2;function YW(){return N2||(N2=1,Zy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(r){let e=r.sourceCode,t;switch(r.options[0]){case!0:case"smart-tabs":t=!0;break;default:t=!1}return{"Program:exit"(s){let n=e.lines,i=e.getAllComments(),a=new Set;i.forEach(o=>{for(let u=o.loc.start.line+1;u<=o.loc.end.line;u++)a.add(u)});let l=/^(?=( +|\t+))\1(?:\t| )/u;t&&(l=/^(?=(\t*))\1(?=( +))\2\t/u),n.forEach((o,u)=>{let c=l.exec(o);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)||r.report({node:s,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}),Zy}var zy,L2;function HW(){return L2||(L2=1,zy={meta:{type:"suggestion",docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(r){let e=r.options[0]||{ignoreNonDeclaration:!1},t=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e.ignoreNonDeclaration||t.push("AssignmentExpression > AssignmentExpression.right"),{[t](s){r.report({node:s,messageId:"unexpectedChain"})}}}}),zy}var Xy,$2;function KW(){if($2)return Xy;$2=1;let r=Pe();return Xy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||{},n=s.ignoreEOLComments,i=Object.assign({Property:!0},s.exceptions),a=Object.keys(i).some(o=>i[o]);function l(o){let u=o.value.split(` +`),c=u[0],p=`${c.slice(0,12)}...`;return u.length===1&&c.length<=12?c:p}return{Program(){t.tokensAndComments.forEach((o,u,c)=>{if(u===c.length-1)return;let p=c[u+1];if(!t.text.slice(o.range[1],p.range[0]).includes(" ")||o.loc.end.linef.replaceTextRange([o.range[1],p.range[0]]," ")})})}}}},Xy}var Gy,M2;function JW(){if(M2)return Gy;M2=1;let r=Pe();return Gy={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(e){function t(s){return s.type.indexOf("JSX")===0}return{Literal(s){r.LINEBREAK_MATCHER.test(s.raw)&&!t(s.parent)&&e.report({node:s,messageId:"multilineString"})}}}},Gy}var Yy,j2;function eZ(){return j2||(j2=1,Yy={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=2,t=e,s=e;r.options.length&&(e=r.options[0].max,t=typeof r.options[0].maxEOF<"u"?r.options[0].maxEOF:e,s=typeof r.options[0].maxBOF<"u"?r.options[0].maxBOF:e);let n=r.sourceCode,i=n.lines.at(-1)===""?n.lines.slice(0,-1):n.lines,a=new Set;return{TemplateLiteral(l){l.quasis.forEach(o=>{for(let u=o.loc.start.line;u((u.trim()||a.has(c+1))&&o.push(c+1),o),[]).concat(i.length+1).reduce((o,u)=>{let c,p;return o===0?(c="blankBeginningOfFile",p=s):u===i.length+1?(c="blankEndOfFile",p=t):(c="consecutiveBlank",p=e),u-o-1>p&&r.report({node:l,loc:{start:{line:o+p+1,column:0},end:{line:u,column:0}},messageId:c,data:{max:p,pluralizedLines:p===1?"line":"lines"},fix(h){let f=n.getIndexFromLoc({line:o+1,column:0}),d=u-p,m=d<=i.length?n.getIndexFromLoc({line:d,column:0}):n.text.length;return h.removeRange([f,m])}}),u},0)}}}}),Yy}var Hy,q2;function tZ(){return q2||(q2=1,Hy={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0],t=e&&e.exceptions||[],s=r.sourceCode;function n(a,l,o){let u=a.identifier;a.init===!1&&a.isWrite()&&(l===0||o[l-1].identifier!==u)&&r.report({node:u,messageId:"nativeReassign",data:u})}function i(a){a.writeable===!1&&!t.includes(a.name)&&a.references.forEach(n)}return{Program(a){s.getScope(a).variables.forEach(i)}}}}),Hy}var Ky,Q2;function rZ(){return Q2||(Q2=1,Ky={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(r){function e(i){return i.alternate&&i.alternate.type!=="IfStatement"}function t(i){return i.type==="UnaryExpression"&&i.operator==="!"}function s(i){return i.type==="BinaryExpression"&&(i.operator==="!="||i.operator==="!==")}function n(i){return t(i.test)||s(i.test)}return{IfStatement(i){e(i)&&n(i)&&r.report({node:i,messageId:"unexpectedNegated"})},ConditionalExpression(i){n(i)&&r.report({node:i,messageId:"unexpectedNegated"})}}}}),Ky}var Jy,U2;function nZ(){return U2||(U2=1,Jy={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},replacedBy:["no-unsafe-negation"],deprecated:!0,schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(r){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&r.report({node:e,messageId:"negatedLHS"})}}}}),Jy}var ex,V2;function sZ(){return V2||(V2=1,ex={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(r){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&r.report({node:e,messageId:"noNestedTernary"})}}}}),ex}var tx,W2;function iZ(){return W2||(W2=1,tx={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(r){return{"ExpressionStatement > NewExpression"(e){r.report({node:e.parent,messageId:"noNewStatement"})}}}}),tx}var rx,Z2;function aZ(){if(Z2)return rx;Z2=1;let r=Pe(),e=new Set(["apply","bind","call"]);return rx={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(t){let s=t.sourceCode;return{"Program:exit"(n){let a=s.getScope(n).set.get("Function");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,{parent:u}=o,c;if(u){if(o===u.callee&&(u.type==="NewExpression"||u.type==="CallExpression"))c=u;else if(u.type==="MemberExpression"&&o===u.object&&e.has(r.getStaticPropertyName(u))){let p=u.parent.type==="ChainExpression"?u.parent:u;p.parent.type==="CallExpression"&&p.parent.callee===p&&(c=p.parent)}}c&&t.report({node:c,messageId:"noFunctionConstructor"})})}}}},rx}var nx,z2;function oZ(){if(z2)return nx;z2=1;let r=["Symbol","BigInt"];return nx={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(e){let t=e.sourceCode;return{"Program:exit"(s){let n=t.getScope(s);for(let i of r){let a=n.set.get(i);a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier,u=o.parent;u&&u.type==="NewExpression"&&u.callee===o&&e.report({node:o,messageId:"noNewNonconstructor",data:{name:i}})})}}}}},nx}var sx,X2;function lZ(){if(X2)return sx;X2=1;let r=Pe();return sx={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:!0,replacedBy:["no-object-constructor"],schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(e){let t=e.sourceCode;return{NewExpression(s){let n=r.getVariableByName(t.getScope(s),s.callee.name);n&&n.identifiers.length>0||s.callee.name==="Object"&&e.report({node:s,messageId:"preferLiteral"})}}}},sx}var ix,G2;function uZ(){return G2||(G2=1,ix={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(r){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&r.report({node:e,messageId:"noNewRequire"})}}}}),ix}var ax,Y2;function cZ(){return Y2||(Y2=1,ax={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:!0,replacedBy:["no-new-native-nonconstructor"],schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(r){let e=r.sourceCode;return{"Program:exit"(t){let n=e.getScope(t).set.get("Symbol");n&&n.defs.length===0&&n.references.forEach(i=>{let a=i.identifier,l=a.parent;l&&l.type==="NewExpression"&&l.callee===a&&r.report({node:a,messageId:"noNewSymbol"})})}}}}),ax}var ox,H2;function fZ(){if(H2)return ox;H2=1;let{getVariableByName:r}=Pe();return ox={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(e){let{sourceCode:t}=e;return{NewExpression(s){let n=["String","Number","Boolean"],{name:i}=s.callee;if(n.includes(i)){let a=r(t.getScope(s),i);a&&a.identifiers.length===0&&e.report({node:s,messageId:"noConstructor",data:{fn:i}})}}}}},ox}var lx,K2;function pZ(){if(K2)return lx;K2=1;let r=/\\[89]/u;function e(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}return lx={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/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 s=t.sourceCode;function n(i,a,l){return{messageId:i,data:{original:s.getText().slice(...a),replacement:l},fix(o){return o.replaceTextRange(a,l)}}}return{Literal(i){if(typeof i.value!="string"||!r.test(i.raw))return;let a=/(?:[^\\]|(?\\.))*?(?\\[89])/suy,l;for(;l=a.exec(i.raw);){let{previousEscape:o,decimalEscape:u}=l.groups,c=i.range[0]+l.index+l[0].length,p=c-u.length,h=[p,c],f=[];o==="\\0"?f.push(n("refactor",[p-o.length,c],`${e("\0")}${u[1]}`),n("refactor",h,e(u[1]))):f.push(n("refactor",h,u[1])),f.push(n("escapeBackslash",h,`\\${u}`)),t.report({node:i,loc:{start:s.getLocFromIndex(p),end:s.getLocFromIndex(c)},messageId:"decimalEscape",data:{decimalEscape:u},suggest:f})}}}}},lx}var ux,J2;function hZ(){if(J2)return ux;J2=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t}=hr(),s=Pe().getStaticPropertyName,n=["Atomics","JSON","Math","Reflect","Intl"];function i(a){return a.type==="ChainExpression"?i(a.expression):a.type==="MemberExpression"?s(a):a.name}return ux={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(a){let l=a.sourceCode;return{Program(o){let u=l.getScope(o),c=new t(u),p={};for(let h of n)p[h]={[r]:!0,[e]:!0};for(let{node:h,path:f}of c.iterateGlobalReferences(p)){let d=i(h.callee),m=f[0],g=d===m?"unexpectedCall":"unexpectedRefCall";a.report({node:h,messageId:g,data:{name:d,ref:m}})}}}}},ux}var cx,eI;function dZ(){if(eI)return cx;eI=1;let{getVariableByName:r,isArrowToken:e,isStartOfExpressionStatement:t,needsPrecedingSemicolon:s}=Pe();return cx={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(n){let i=n.sourceCode;function a(o){if(t(o))return!0;let u=i.getTokenBefore(o);return!!(u&&e(u))}function l(o){if(o.callee.type!=="Identifier"||o.callee.name!=="Object"||o.arguments.length)return;let u=r(i.getScope(o),"Object");if(u&&u.identifiers.length===0){let c,p,h="useLiteral";a(o)?(c="({})",s(i,o)?(p=";({})",h="useLiteralAfterSemicolon"):p="({})"):c=p="{}",n.report({node:o,messageId:"preferLiteral",suggest:[{messageId:h,data:{replacement:c},fix:f=>f.replaceText(o,p)}]})}}return{CallExpression:l,NewExpression:l}}},cx}var fx,tI;function mZ(){return tI||(tI=1,fx={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(r){return{Literal(e){typeof e.value=="number"&&/^0[0-9]/u.test(e.raw)&&r.report({node:e,messageId:"noOctal"})}}}}),fx}var px,rI;function gZ(){return rI||(rI=1,px={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(r){return{Literal(e){if(typeof e.value!="string")return;let t=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);t&&r.report({node:e,messageId:"octalEscapeSequence",data:{sequence:t[1]}})}}}}),px}var hx,nI;function yZ(){if(nI)return hx;nI=1;let r=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return hx={meta:{type:"suggestion",docs:{description:"Disallow reassigning `function` parameters",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]&&e.options[0].props,s=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],n=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],i=e.sourceCode;function a(p){let h=p.identifier,f=h.parent;for(;f&&(!r.test(f.type)||f.type==="ForInStatement"||f.type==="ForOfStatement");){switch(f.type){case"AssignmentExpression":return f.left===h;case"UpdateExpression":return!0;case"UnaryExpression":if(f.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return f.left===h;case"CallExpression":if(f.callee!==h)return!1;break;case"MemberExpression":if(f.property===h)return!1;break;case"Property":if(f.key===h)return!1;break;case"ConditionalExpression":if(f.test===h)return!1;break}h=f,f=h.parent}return!1}function l(p){return s.includes(p)||n.some(h=>new RegExp(h,"u").test(p))}function o(p,h,f){let d=p.identifier;d&&!p.init&&(h===0||f[h-1].identifier!==d)&&(p.isWrite()?e.report({node:d,messageId:"assignmentToFunctionParam",data:{name:d.name}}):t&&a(p)&&!l(d.name)&&e.report({node:d,messageId:"assignmentToFunctionParamProp",data:{name:d.name}}))}function u(p){p.defs[0].type==="Parameter"&&p.references.forEach(o)}function c(p){i.getDeclaredVariables(p).forEach(u)}return{"FunctionDeclaration:exit":c,"FunctionExpression:exit":c,"ArrowFunctionExpression:exit":c}}},hx}var dx,sI;function xZ(){return sI||(sI=1,dx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(r){let e=/^__(?:dir|file)name$/u;return{BinaryExpression(t){let s=t.left,n=t.right;t.operator==="+"&&(s.type==="Identifier"&&e.test(s.name)||n.type==="Identifier"&&e.test(n.name))&&r.report({node:t,messageId:"usePathFunctions"})}}}}),dx}var mx,iI;function bZ(){if(iI)return mx;iI=1;function r(t){let s=t.parent;return s.type==="ForStatement"&&s.update===t}function e(t){let s=t.parent;return s.type==="SequenceExpression"?e(s):r(t)}return mx={meta:{type:"suggestion",docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(t){let s=t.options[0],n=!1;return typeof s=="object"&&(n=s.allowForLoopAfterthoughts===!0),{UpdateExpression(i){n&&e(i)||t.report({node:i,messageId:"unexpectedUnaryOp",data:{operator:i.operator}})}}}},mx}var gx,aI;function vZ(){return aI||(aI=1,gx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(r){return{MemberExpression(e){let t=e.object.name,s=e.property.name;t==="process"&&!e.computed&&s&&s==="env"&&r.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),gx}var yx,oI;function OZ(){return oI||(oI=1,yx={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(r){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){r.report({node:e.parent,messageId:"noProcessExit"})}}}}),yx}var xx,lI;function SZ(){if(lI)return xx;lI=1;let{findVariable:r}=hr(),e=Pe(),t=new Set(["ArrowFunctionExpression","FunctionExpression"]);function s(u,c){let p=r(c,u);return p!==null&&p.scope.type==="global"&&p.defs.length===0}function n(u){let c=u.upper;return c.type==="function-expression-name"?c.upper:c}function i(u,c){let p=u.parent;return p.type==="NewExpression"&&p.arguments[0]===u&&p.callee.type==="Identifier"&&p.callee.name==="Promise"&&s(p.callee,n(c))}function a(u){return u.type==="UnaryExpression"&&u.operator==="void"}function l(u,c,p){let h=e.getPrecedence(c)g.type==="Keyword"&&g.value==="return"),d=u.getTokenAfter(f),m=f.value==="return"&&f.range[1]===d.range[0];return[p.insertTextBefore(d,`${m?" ":""}void ${h?"(":""}`),p.insertTextAfter(c,h?")":"")]}function o(u,c,p){let h=u.getTokenBefore(c.body,e.isArrowToken),f=u.getTokenAfter(h),d=u.getLastToken(c);return[p.insertTextBefore(f,"{"),p.insertTextAfter(d,"}")]}return xx={meta:{type:"problem",docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(u){let c=null,p=u.sourceCode,{allowVoid:h=!1}=u.options[0]||{};return{onCodePathStart(f,d){if(c={upper:c,shouldCheck:t.has(d.type)&&i(d,p.getScope(d))},c.shouldCheck&&d.type==="ArrowFunctionExpression"&&d.expression&&!(h&&a(d.body))){let m=[];h&&m.push({messageId:"prependVoid",fix(g){return l(p,d.body,g)}}),d.body.type==="FunctionExpression"&&!d.body.id||m.push({messageId:"wrapBraces",fix(g){return o(p,d,g)}}),u.report({node:d.body,messageId:"returnsValue",suggest:m})}},onCodePathEnd(){c=c.upper},ReturnStatement(f){if(c.shouldCheck&&f.argument){if(!h){u.report({node:f,messageId:"returnsValue"});return}a(f.argument)||u.report({node:f,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(d){return l(p,f.argument,d)}}]})}}}}},xx}var bx,uI;function EZ(){if(uI)return bx;uI=1;let{getStaticPropertyName:r}=Pe();return bx={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(e){return{MemberExpression(t){r(t)==="__proto__"&&e.report({node:t,messageId:"unexpectedProto"})}}}},bx}var vx,cI;function CZ(){if(cI)return vx;cI=1;let r=Pe();function e(t){let s;if(t.type==="MemberExpression")s=t.object;else if(t.type==="CallExpression")s=t.callee;else return!1;return t.optional?!0:e(s)}return vx={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(t){let s=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function n(i){let a=r.skipChainExpression(i.callee);if(a.type!=="MemberExpression")return;let l=r.getStaticPropertyName(a);l!==null&&s.has(l)&&t.report({messageId:"prototypeBuildIn",loc:a.property.loc,data:{prop:l},node:i,suggest:[{messageId:"callObjectPrototype",data:{prop:l},fix(o){let u=t.sourceCode;if(e(i)||i.callee.type==="ChainExpression")return null;let c=r.getVariableByName(u.getScope(i),"Object");if(!c||c.scope.type!=="global"||c.defs.length>0)return null;let p=u.getText(a.object);r.getPrecedence(a.object)<=r.getPrecedence({type:"SequenceExpression"})&&(p=`(${p})`);let h=u.getTokenAfter(i.callee,r.isOpeningParenToken),d=i.arguments.length===0?"":", ";return[o.replaceText(a,`Object.prototype.${l}.call`),o.insertTextAfter(h,p+d)]}}]})}return{CallExpression:n}}},vx}var Ox,fI;function wZ(){if(fI)return Ox;fI=1;let r=Pe();return Ox={meta:{type:"suggestion",docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/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(e){let t={builtinGlobals:!!(e.options.length===0||e.options[0].builtinGlobals)},s=e.sourceCode;function*n(l){t.builtinGlobals&&(l.eslintImplicitGlobalSetting==="readonly"||l.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(let o of l.identifiers)yield{type:"syntax",node:o,loc:o.loc};if(l.eslintExplicitGlobalComments)for(let o of l.eslintExplicitGlobalComments)yield{type:"comment",node:o,loc:r.getNameLocationInGlobalDirectiveComment(s,o,l.name)}}function i(l){for(let o of l.variables){let[u,...c]=n(o);if(c.length===0)continue;let p=u.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:o.name};for(let{type:f,node:d,loc:m}of c){let g=f===u.type?"redeclared":p;e.report({node:d,loc:m,messageId:g,data:h})}}}function a(l){let o=s.getScope(l);o.block===l&&i(o)}return{Program(l){let o=s.getScope(l);i(o),o.type==="global"&&o.childScopes[0]&&o.block===o.childScopes[0].block&&i(o.childScopes[0])},FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,SwitchStatement:a}}},Ox}var Sx,pI;function kZ(){if(pI)return Sx;pI=1;let r=Pe(),e=Xn(),t=new e.RegExpParser,s=/ {2}/u;function n(i){return i&&i.type==="Literal"&&typeof i.value=="string"}return Sx={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(i){let a=i.sourceCode;function l(c,p,h,f,d){if(!s.test(h))return;let m=[],g;try{g=t.parsePattern(p,0,p.length,{unicode:d.includes("u"),unicodeSets:d.includes("v")})}catch{return}e.visitRegExpAST(g,{onCharacterClassEnter(v){m.push(v)}});let y=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,b;for(;b=y.exec(p);){let{1:{length:v},index:S}=b;if(m.every(({start:C,end:O})=>S0,d=c.arguments[0];if(c.callee.type==="Identifier"&&c.callee.name==="RegExp"&&n(d)&&!f){let m=d.value,g=d.raw.slice(1,-1),y=d.range[0]+1,b;if(c.arguments.length<2)b="";else{let v=c.arguments[1];if(n(v))b=v.value;else return}l(c,m,g,y,b)}}return{Literal:o,CallExpression:u,NewExpression:u}}},Sx}var Ex,hI;function AZ(){if(hI)return Ex;hI=1;let r=Pe();return Ex={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){let t=new Set(e.options[0]&&e.options[0].restrictedNamedExports),s=e.options[0]&&e.options[0].restrictDefaultExports,n=e.sourceCode;function i(a){let l=r.getModuleExportName(a);if(t.has(l)){e.report({node:a,messageId:"restrictedNamed",data:{name:l}});return}if(l==="default")if(a.parent.type==="ExportAllDeclaration")s&&s.namespaceFrom&&e.report({node:a,messageId:"restrictedDefault"});else{let o=!!a.parent.parent.source,u=r.getModuleExportName(a.parent.local);if(!o&&s&&s.named){e.report({node:a,messageId:"restrictedDefault"});return}o&&s&&(u==="default"&&s.defaultFrom||u!=="default"&&s.namedFrom)&&e.report({node:a,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(a){a.exported&&i(a.exported)},ExportDefaultDeclaration(a){s&&s.direct&&e.report({node:a,messageId:"restrictedDefault"})},ExportNamedDeclaration(a){let l=a.declaration;l?l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"?i(l.id):l.type==="VariableDeclaration"&&n.getDeclaredVariables(l).map(o=>o.defs.find(u=>u.parent===l)).map(o=>o.name).forEach(i):a.specifiers.map(o=>o.exported).forEach(i)}}}},Ex}var Cx,dI;function PZ(){return dI||(dI=1,Cx={meta:{type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.sourceCode;if(r.options.length===0)return{};let t=r.options.reduce((i,a)=>(typeof a=="string"?i[a]=null:i[a.name]=a.message,i),{});function s(i){let a=i.identifier.name,l=t[a],o=l?"customMessage":"defaultMessage";r.report({node:i.identifier,messageId:o,data:{name:a,customMessage:l}})}function n(i){return Object.hasOwn(t,i)}return{Program(i){let a=e.getScope(i);a.variables.forEach(l=>{!l.defs.length&&n(l.name)&&l.references.forEach(s)}),a.through.forEach(l=>{n(l.identifier.name)&&s(l)})}}}}),Cx}var wx,mI;function nN(){if(mI)return wx;mI=1;function r(j){return Array.isArray(j)?j:[j]}let e="",t=" ",s="\\",n=/^\s+$/,i=/(?:[^\\]|^)\\$/,a=/^\\!/,l=/^\\#/,o=/\r?\n/g,u=/^\.*\/|^\.+$/,c="/",p="node-ignore";typeof Symbol<"u"&&(p=Symbol.for("node-ignore"));let h=p,f=(j,Q,I)=>Object.defineProperty(j,Q,{value:I}),d=/([0-z])-([0-z])/g,m=()=>!1,g=j=>j.replace(d,(Q,I,N)=>I.charCodeAt(0)<=N.charCodeAt(0)?Q:e),y=j=>{let{length:Q}=j;return j.slice(0,Q-Q%2)},b=[[/^\uFEFF/,()=>e],[/\\?\s+$/,j=>j.indexOf("\\")===0?t:e],[/\\\s/g,()=>t],[/[\\$.|*+(){^]/g,j=>`\\${j}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(j,Q,I)=>Q+6{let N=I.replace(/\\\*/g,"[^\\/]*");return Q+N}],[/\\\\\\(?=[$.|*+(){^])/g,()=>s],[/\\\\/g,()=>s],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(j,Q,I,N,R)=>Q===s?`\\[${I}${y(N)}${R}`:R==="]"&&N.length%2===0?`[${g(I)}${N}]`:"[]"],[/(?:[^*])$/,j=>/\/$/.test(j)?`${j}$`:`${j}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(j,Q)=>`${Q?`${Q}[^/]+`:"[^/]*"}(?=$|\\/$)`]],v=Object.create(null),S=(j,Q)=>{let I=v[j];return I||(I=b.reduce((N,R)=>N.replace(R[0],R[1].bind(j)),j),v[j]=I),Q?new RegExp(I,"i"):new RegExp(I)},C=j=>typeof j=="string",O=j=>j&&C(j)&&!n.test(j)&&!i.test(j)&&j.indexOf("#")!==0,w=j=>j.split(o);class E{constructor(Q,I,N,R){this.origin=Q,this.pattern=I,this.negative=N,this.regex=R}}let k=(j,Q)=>{let I=j,N=!1;j.indexOf("!")===0&&(N=!0,j=j.substr(1)),j=j.replace(a,"!").replace(l,"#");let R=S(j,Q);return new E(I,j,N,R)},A=(j,Q)=>{throw new Q(j)},D=(j,Q,I)=>C(j)?j?D.isNotRelative(j)?I(`path should be a \`path.relative()\`d string, but got "${Q}"`,RangeError):!0:I("path must not be empty",TypeError):I(`path must be a string, but got \`${Q}\``,TypeError),_=j=>u.test(j);D.isNotRelative=_,D.convert=j=>j;class B{constructor({ignorecase:Q=!0,ignoreCase:I=Q,allowRelativePaths:N=!1}={}){f(this,h,!0),this._rules=[],this._ignoreCase=I,this._allowRelativePaths=N,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(Q){if(Q&&Q[h]){this._rules=this._rules.concat(Q._rules),this._added=!0;return}if(O(Q)){let I=k(Q,this._ignoreCase);this._added=!0,this._rules.push(I)}}add(Q){return this._added=!1,r(C(Q)?w(Q):Q).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(Q){return this.add(Q)}_testOne(Q,I){let N=!1,R=!1;return this._rules.forEach(U=>{let{negative:V}=U;if(R===V&&N!==R||V&&!N&&!R&&!I)return;U.regex.test(Q)&&(N=!V,R=V)}),{ignored:N,unignored:R}}_test(Q,I,N,R){let U=Q&&D.convert(Q);return D(U,Q,this._allowRelativePaths?m:A),this._t(U,I,N,R)}_t(Q,I,N,R){if(Q in I)return I[Q];if(R||(R=Q.split(c)),R.pop(),!R.length)return I[Q]=this._testOne(Q,N);let U=this._t(R.join(c)+c,I,N,R);return I[Q]=U.ignored?U:this._testOne(Q,N)}ignores(Q){return this._test(Q,this._ignoreCache,!1).ignored}createFilter(){return Q=>!this.ignores(Q)}filter(Q){return r(Q).filter(this.createFilter())}test(Q){return this._test(Q,this._testCache,!0)}}let T=j=>new B(j),F=j=>D(j&&D.convert(j),j,m);if(T.isPathValid=F,T.default=T,wx=T,typeof Bt<"u"&&(Bt.env&&Bt.env.IGNORE_TEST_WIN32||Bt.platform==="win32")){let j=I=>/^\\\\\?\\/.test(I)||/["<>|\u0000-\u001F]+/u.test(I)?I:I.replace(/\\/g,"/");D.convert=j;let Q=/^[a-z]:\//i;D.isNotRelative=I=>Q.test(I)||_(I)}return wx}var kx,gI;function TZ(){if(gI)return kx;gI=1;let r=Pe(),e=nN(),t={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0};return kx={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",recommended:!1,url:"https://eslint.org/docs/latest/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}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{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}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[t,{type:"array",items:[{type:"object",properties:{paths:t,patterns:{anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"}},additionalProperties:!1,required:["group"],not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]}},uniqueItems:!0}]}},additionalProperties:!1}],additionalItems:!1}]}},create(n){let i=n.sourceCode,a=Array.isArray(n.options)?n.options:[],l=typeof a[0]=="object"&&(Object.hasOwn(a[0],"paths")||Object.hasOwn(a[0],"patterns")),o=(l?a[0].paths:n.options)||[],u=o.reduce((g,y)=>{let b=typeof y=="string"?y:y.name;return g[b]||(g[b]=[]),typeof y=="string"?g[b].push({}):g[b].push({message:y.message,importNames:y.importNames,allowImportNames:y.allowImportNames}),g},Object.create(null)),c=(l?a[0].patterns:[])||[];c.length>0&&typeof c[0]=="string"&&(c=[{group:c}]);let p=c.map(({group:g,message:y,caseSensitive:b,importNames:v,importNamePattern:S,allowImportNames:C,allowImportNamePattern:O})=>({matcher:e({allowRelativePaths:!0,ignorecase:!b}).add(g),customMessage:y,importNames:v,importNamePattern:S,allowImportNames:C,allowImportNamePattern:O}));if(Object.keys(o).length===0&&p.length===0)return{};function h(g,y,b){Object.hasOwn(u,g)&&u[g].forEach(v=>{let S=v.message,C=v.importNames,O=v.allowImportNames;if(!C&&!O){n.report({node:b,messageId:S?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:S}});return}y.forEach((w,E)=>{if(E==="*"){let[k]=w;C?n.report({node:b,messageId:S?"everythingWithCustomMessage":"everything",loc:k.loc,data:{importSource:g,importNames:C,customMessage:S}}):O&&n.report({node:b,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:k.loc,data:{importSource:g,allowedImportNames:O,customMessage:S}});return}C&&C.includes(E)&&w.forEach(k=>{n.report({node:b,messageId:S?"importNameWithCustomMessage":"importName",loc:k.loc,data:{importSource:g,customMessage:S,importName:E}})}),O&&!O.includes(E)&&w.forEach(k=>{n.report({node:b,loc:k.loc,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:S,importName:E,allowedImportNames:O}})})})})}function f(g,y,b){let v=g.source.value.trim(),S=y.customMessage,C=y.importNames,O=y.importNamePattern?new RegExp(y.importNamePattern,"u"):null,w=y.allowImportNames,E=y.allowImportNamePattern?new RegExp(y.allowImportNamePattern,"u"):null;if(!C&&!w&&!O&&!E){n.report({node:g,messageId:S?"patternWithCustomMessage":"patterns",data:{importSource:v,customMessage:S}});return}b.forEach((k,A)=>{if(A==="*"){let[D]=k;C?n.report({node:g,messageId:S?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:D.loc,data:{importSource:v,importNames:C,customMessage:S}}):w?n.report({node:g,messageId:S?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:D.loc,data:{importSource:v,allowedImportNames:w,customMessage:S}}):E?n.report({node:g,messageId:S?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:D.loc,data:{importSource:v,allowedImportNamePattern:E,customMessage:S}}):n.report({node:g,messageId:S?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:D.loc,data:{importSource:v,importNames:O,customMessage:S}});return}(C&&C.includes(A)||O&&O.test(A))&&k.forEach(D=>{n.report({node:g,messageId:S?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:D.loc,data:{importSource:v,customMessage:S,importName:A}})}),w&&!w.includes(A)?k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNameWithCustomMessage":"allowedImportName",loc:D.loc,data:{importSource:v,customMessage:S,importName:A,allowedImportNames:w}})}):E&&!E.test(A)&&k.forEach(D=>{n.report({node:g,messageId:S?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:D.loc,data:{importSource:v,customMessage:S,importName:A,allowedImportNamePattern:E}})})})}function d(g,y){return y.matcher.ignores(g)}function m(g){let y=g.source.value.trim(),b=new Map;if(g.type==="ExportAllDeclaration"){let v=i.getFirstToken(g,1);b.set("*",[{loc:v.loc}])}else if(g.specifiers)for(let v of g.specifiers){let S,C={loc:v.loc};v.type==="ImportDefaultSpecifier"?S="default":v.type==="ImportNamespaceSpecifier"?S="*":v.imported?S=r.getModuleExportName(v.imported):v.local&&(S=r.getModuleExportName(v.local)),typeof S=="string"&&(b.has(S)?b.get(S).push(C):b.set(S,[C]))}h(y,b,g),p.forEach(v=>{d(y,v)&&f(g,v,b)})}return{ImportDeclaration:m,ExportNamedDeclaration(g){g.source&&m(g)},ExportAllDeclaration:m}}},kx}var Ax,yI;function DZ(){if(yI)return Ax;yI=1;let r=Pe(),e=nN(),t={type:"array",items:{type:"string"},uniqueItems:!0},s={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Ax={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[s,{type:"array",items:{type:"object",properties:{paths:s,patterns:t},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(n){let i=Array.isArray(n.options)?n.options:[],a=typeof i[0]=="object"&&(Object.hasOwn(i[0],"paths")||Object.hasOwn(i[0],"patterns")),l=(a?i[0].paths:n.options)||[],o=(a?i[0].patterns:[])||[],u=l.reduce((g,y)=>(typeof y=="string"?g[y]=null:g[y.name]=y.message,g),{});if(Object.keys(l).length===0&&o.length===0)return{};let c=e({allowRelativePaths:!0}).add(o);function p(g){return g&&g.type==="Literal"&&typeof g.value=="string"}function h(g){return g.callee.type==="Identifier"&&g.callee.name==="require"}function f(g){return p(g)?g.value.trim():r.isStaticTemplateLiteral(g)?g.quasis[0].value.cooked.trim():null}function d(g,y){let b=u[y],v=b?"customMessage":"defaultMessage";n.report({node:g,messageId:v,data:{name:y,customMessage:b}})}function m(g){return Object.hasOwn(u,g)}return{CallExpression(g){if(h(g)&&g.arguments.length){let y=f(g.arguments[0]);y&&(m(y)&&d(g,y),o.length>0&&c.ignores(y)&&n.report({node:g,messageId:"patternMessage",data:{name:y}}))}}}}},Ax}var Px,xI;function _Z(){if(xI)return Px;xI=1;let r=Pe();return Px={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options;if(t.length===0)return{};let s=new Map,n=new Map,i=new Map;t.forEach(l=>{let o=l.object,u=l.property;typeof o>"u"?i.set(u,{message:l.message}):typeof u>"u"?n.set(o,{message:l.message}):(s.has(o)||s.set(o,new Map),s.get(o).set(u,{message:l.message}))});function a(l,o,u){if(u===null)return;let c=s.get(o),p=c?c.get(u):n.get(o),h=i.get(u);if(p){let f=p.message?` ${p.message}`:"";e.report({node:l,messageId:"restrictedObjectProperty",data:{objectName:o,propertyName:u,message:f}})}else if(h){let f=h.message?` ${h.message}`:"";e.report({node:l,messageId:"restrictedProperty",data:{propertyName:u,message:f}})}}return{MemberExpression(l){a(l,l.object&&l.object.name,r.getStaticPropertyName(l))},ObjectPattern(l){let o=null;l.parent.type==="VariableDeclarator"?l.parent.init&&l.parent.init.type==="Identifier"&&(o=l.parent.init.name):(l.parent.type==="AssignmentExpression"||l.parent.type==="AssignmentPattern")&&l.parent.right.type==="Identifier"&&(o=l.parent.right.name),l.properties.forEach(u=>{a(l,o,r.getStaticPropertyName(u))})}}}},Px}var Tx,bI;function IZ(){return bI||(bI=1,Tx={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return r.options.reduce((e,t)=>{let s=typeof t=="string",n=!s&&!!t.message,i=s?t:t.selector,a=n?t.message:`Using '${i}' is not allowed.`;return Object.assign(e,{[i](l){r.report({node:l,messageId:"restrictedSyntax",data:{message:a}})}})},{})}}),Tx}var Dx,vI;function FZ(){if(vI)return Dx;vI=1;let r=Pe(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Dx={meta:{type:"suggestion",docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/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 s=(t.options[0]||"except-parens")!=="except-parens",n=t.sourceCode;return{AssignmentExpression(i){if(!s&&r.isParenthesised(n,i))return;let a=i,l=a.parent;for(;l&&!e.test(l.type);)a=l,l=l.parent;l&&l.type==="ReturnStatement"?t.report({node:l,messageId:"returnAssignment"}):l&&l.type==="ArrowFunctionExpression"&&l.body===a&&t.report({node:l,messageId:"arrowAssignment"})}}}},Dx}var _x,OI;function RZ(){if(OI)return _x;OI=1;let r=Pe();return _x={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:!0,replacedBy:[],schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(e){function t(i){e.report({node:e.sourceCode.getFirstToken(i),loc:i.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(a){let l=e.sourceCode,[o,u]=l.getFirstTokens(i,2);if(!(o.loc.start.line===u.loc.start.line))return null;let[p,h]=o.range,d=l.text[h]===" "?1:0,m=[p,h+d];return a.removeRange(m)}}]})}function s(i){let a=i;for(;!r.isFunction(a)&&a.type!=="Program";){if(a.parent.type==="TryStatement"&&(a===a.parent.block||a===a.parent.handler&&a.parent.finalizer))return!0;a=a.parent}return!1}function n(i){return i.parent.type==="ArrowFunctionExpression"?!0:i.parent.type==="ReturnStatement"?!s(i.parent):i.parent.type==="ConditionalExpression"&&(i===i.parent.consequent||i===i.parent.alternate)||i.parent.type==="LogicalExpression"&&i===i.parent.right||i.parent.type==="SequenceExpression"&&i===i.parent.expressions.at(-1)?n(i.parent):!1}return{AwaitExpression(i){n(i)&&!s(i)&&t(i)}}}},_x}var Ix,SI;function BZ(){if(SI)return Ix;SI=1;let r=Pe();return Ix={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` urls",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(e){function t(s){let n=r.getStaticStringValue(s);typeof n=="string"&&n.toLowerCase().indexOf("javascript:")===0&&e.report({node:s,messageId:"unexpectedScriptURL"})}return{Literal(s){s.value&&typeof s.value=="string"&&t(s)},TemplateLiteral(s){s.parent&&s.parent.type==="TaggedTemplateExpression"||t(s)}}}},Ix}var Fx,EI;function NZ(){if(EI)return Fx;EI=1;let r=Pe(),e=/\s+/gu;function t(s,n,i,a){if(!(!s||!n))if(s.type==="Identifier"&&n.type==="Identifier"&&s.name===n.name)a(n);else if(s.type==="ArrayPattern"&&n.type==="ArrayExpression"){let l=Math.min(s.elements.length,n.elements.length);for(let o=0;o=1){let l=0;for(let o=n.properties.length-1;o>=0;--o){let u=n.properties[o].type;if(u==="SpreadElement"||u==="ExperimentalSpreadProperty"){l=o+1;break}}for(let o=0;ol.type===a[o].type&&l.value===a[o].value)}return{BinaryExpression(s){new Set(["===","==","!==","!=",">","<",">=","<="]).has(s.operator)&&t(s.left,s.right)&&r.report({node:s,messageId:"comparingToSelf"})}}}}),Rx}var Bx,wI;function $Z(){if(wI)return Bx;wI=1;let r=Pe(),e={allowInParentheses:!0};return Bx={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(t){let s=Object.assign({},e,t.options[0]),n=t.sourceCode,i={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function a(u){return u.parent&&i[u.parent.type]&&u===u.parent[i[u.parent.type]]}function l(u){return r.isParenthesised(n,u)}function o(u){let c=n.getTokenBefore(u,1),p=n.getTokenAfter(u,1);return l(u)&&c&&p&&r.isOpeningParenToken(c)&&c.range[1]<=u.range[0]&&r.isClosingParenToken(p)&&p.range[0]>=u.range[1]}return{SequenceExpression(u){if(u.parent.type==="ForStatement"&&(u===u.parent.init||u===u.parent.update))return;if(s.allowInParentheses){if(a(u)){if(o(u))return}else if(l(u))return}let c=n.getTokenAfter(u.expressions[0],r.isCommaToken);t.report({node:u,loc:c.loc,messageId:"unexpectedCommaExpression"})}}}},Bx}var Nx,kI;function MZ(){if(kI)return Nx;kI=1;let r=Pe(),{findVariable:e}=hr();function t(l,o){let u=e(o,l);return u!==null&&u.scope.type==="global"&&u.defs.length===0}function s(l,o,u,c,p){let h=l.parent;return h.type==="CallExpression"&&h.arguments[p]===l&&r.isSpecificMemberAccess(h.callee,u,c)&&t(r.skipChainExpression(h.callee).object,o)}function n(l,o){if(s(l,o,"Object","defineProperty",2)||s(l,o,"Reflect","defineProperty",2))return!0;let u=l.parent;if(u.type==="Property"&&u.value===l){let c=u.parent;if(c.type==="ObjectExpression"&&(s(c,o,"Object","create",1)||s(c,o,"Object","defineProperties",1)))return!0}return!1}function i(l,o){let u=l.parent;return!!((u.type==="Property"||u.type==="MethodDefinition")&&u.kind==="set"&&u.value===l||u.type==="Property"&&u.value===l&&r.getStaticPropertyName(u)==="set"&&u.parent.type==="ObjectExpression"&&n(u.parent,o))}function a(l){let o=l.upper;return o.type==="function-expression-name"?o.upper:o}return Nx={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(l){let o=null,u=l.sourceCode;function c(f){let d=a(u.getScope(f));o={upper:o,isSetter:i(f,d)}}function p(){o=o.upper}function h(f){l.report({node:f,messageId:"returnsValue"})}return{FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression(f){c(f),o.isSetter&&f.expression&&h(f.body)},"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,ReturnStatement(f){o&&o.isSetter&&f.argument&&h(f)}}}},Nx}var Lx,AI;function jZ(){if(AI)return Lx;AI=1;let r=Pe(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),t=new Set(["CallExpression"]),s=/^For(?:In|Of)Statement$/u,n=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u;return Lx={meta:{type:"suggestion",docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/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(i){let a={builtinGlobals:i.options[0]&&i.options[0].builtinGlobals,hoist:i.options[0]&&i.options[0].hoist||"functions",allow:i.options[0]&&i.options[0].allow||[],ignoreOnInitialization:i.options[0]&&i.options[0].ignoreOnInitialization},l=i.sourceCode;function o(v,S){return v&&v.range[0]<=S&&S<=v.range[1]}function u(v,S){let C=v;for(;C&&!S(C);)C=C.parent;return C}function c(v){let S=v.upper;return S.type==="function-expression-name"?S.upper:S}function p(v,S){let C=S.defs[0];if(!C)return!1;let{variableScope:O}=v.scope;if(!(e.has(O.block.type)&&c(O)===S.scope))return!1;let w=O.block,{parent:E}=w,k=u(E,_=>t.has(_.type));if(!k)return!1;let A=C.name,D=k.range[1];for(;A;){if(A.type==="VariableDeclarator"){if(o(A.init,D)||s.test(A.parent.parent.type)&&o(A.parent.parent.right,D))return!0;break}else if(A.type==="AssignmentPattern"){if(o(A.right,D))return!0}else if(n.test(A.type))break;A=A.parent}return!1}function h(v){return a.allow.includes(v.name)}function f(v){let S=v.scope.block;return S.type==="ClassDeclaration"&&S.id===v.identifiers[0]}function d(v,S){let C=S.scope,O=S.defs[0],w=O&&O.parent&&O.parent.range,E=v.scope,k=v.defs[0],A=k&&k.name.range;return w&&A&&w[0]0||a.builtinGlobals&&"writeable"in w)&&!d(O,w)&&!(a.ignoreOnInitialization&&p(O,w))&&!(a.hoist!=="all"&&y(O,w))){let E=g(w),k=E.global?"noShadowGlobal":"noShadow",A={name:O.name};E.global||(A.shadowedLine=E.line,A.shadowedColumn=E.column),i.report({node:O.identifiers[0],messageId:k,data:A})}}}return{"Program:exit"(v){let C=l.getScope(v).childScopes.slice();for(;C.length;){let O=C.pop();C.push(...O.childScopes),b(O)}}}}},Lx}var $x,PI;function qZ(){if(PI)return $x;PI=1;function r(e){return e.name==="undefined"&&e.references.every(t=>!t.isWrite())&&e.defs.every(t=>t.node.type==="VariableDeclarator"&&t.node.init===null)}return $x={meta:{type:"suggestion",docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(e){let t=new Set(["undefined","NaN","Infinity","arguments","eval"]),s=e.sourceCode;return{"VariableDeclaration, :function, CatchClause"(n){for(let i of s.getDeclaredVariables(n))i.defs.length>0&&t.has(i.name)&&!r(i)&&e.report({node:i.defs[0].name,messageId:"shadowingRestrictedName",data:{name:i.name}})}}}},$x}var Mx,TI;function QZ(){return TI||(TI=1,Mx={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:!0,replacedBy:["func-call-spacing"],fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(r){let e=r.sourceCode;function t(s){let n=e.getLastToken(s.callee),i=n,a=e.getTokenAfter(n);for(;a&&a.range[1]{let o;for(;(o=r.exec(a))!==null;)n&&!e.test(a.slice(0,o.index))||t.report({node:i,loc:{start:{line:l+1,column:o.index},end:{line:l+1,column:o.index+o[0].length}},messageId:"unexpectedTab"})})}}}},Qx}var Ux,FI;function ZZ(){return FI||(FI=1,Ux={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(r){let e=/\$\{[^}]+\}/u;return{Literal(t){typeof t.value=="string"&&e.test(t.value)&&r.report({node:t,messageId:"unexpectedTemplateExpression"})}}}}),Ux}var Vx,RI;function zZ(){return RI||(RI=1,Vx={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(r){return{ConditionalExpression(e){r.report({node:e,messageId:"noTernaryOperator"})}}}}),Vx}var Wx,BI;function XZ(){if(BI)return Wx;BI=1;let r=Pe();function e(s){return s.type==="FunctionExpression"&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"}class t{superCalled=!1;invalidNodes=[]}return Wx={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(s){let n=null,i=Object.create(null);function a(h){return!h.reachable||i[h.id]?.superCalled}function l(){return!!(n&&n.isConstructor&&n.hasExtends)}function o(h){for(let f of h)if(!a(f))return!1;return!0}function u(){return l()&&!o(n.currentSegments)}function c(h){let f=n.currentSegments;for(let d of f)d.reachable&&i[d.id].invalidNodes.push(h)}function p(){let h=n.currentSegments;for(let f of h)f.reachable&&(i[f.id].superCalled=!0)}return{onCodePathStart(h,f){if(e(f)){let d=f.parent.parent.parent;n={upper:n,isConstructor:!0,hasExtends:!!(d.superClass&&!r.isNullOrUndefined(d.superClass)),codePath:h,currentSegments:new Set}}else n={upper:n,isConstructor:!1,hasExtends:!1,codePath:h,currentSegments:new Set}},onCodePathEnd(h){let f=n.hasExtends;if(n=n.upper,!f)return;let d=new Set;h.traverseSegments((m,g)=>{let y=i[m.id],b=y.invalidNodes.filter(v=>!d.has(v));for(let v of b)d.add(v),s.report({messageId:"noBeforeSuper",node:v,data:{kind:v.type==="Super"?"super":"this"}});y.superCalled&&g.skip()})},onCodePathSegmentStart(h){n.currentSegments.add(h),l()&&(i[h.id]={superCalled:h.prevSegments.length>0&&h.prevSegments.every(a),invalidNodes:[]})},onUnreachableCodePathSegmentStart(h){n.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentEnd(h){n.currentSegments.delete(h)},onCodePathSegmentLoop(h,f){l()&&n.codePath.traverseSegments({first:f,last:h},(d,m)=>{let g=i[d.id]??new t;g.superCalled?m.skip():d.prevSegments.length>0&&d.prevSegments.every(a)&&(g.superCalled=!0),i[d.id]=g})},ThisExpression(h){u()&&c(h)},Super(h){!r.isCallee(h)&&u()&&c(h)},"CallExpression:exit"(h){h.callee.type==="Super"&&u()&&p()},"Program:exit"(){i=Object.create(null)}}}},Wx}var Zx,NI;function GZ(){if(NI)return Zx;NI=1;let r=Pe();return Zx={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(e){return{ThrowStatement(t){r.couldBeError(t.argument)?t.argument.type==="Identifier"&&t.argument.name==="undefined"&&e.report({node:t,messageId:"undef"}):e.report({node:t,messageId:"object"})}}}},Zx}var zx,LI;function YZ(){if(LI)return zx;LI=1;let r=Pe();return zx={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s="[ \xA0\u2000-\u200B\u3000]",n=`^${s}*$`,i=`${s}+$`,a=e.options[0]||{},l=a.skipBlankLines||!1,o=a.ignoreComments||!1;function u(p,h,f){e.report({node:p,loc:h,messageId:"trailingSpace",fix(d){return d.removeRange(f)}})}function c(p){let h=new Set;return p.forEach(f=>{let d=f.type==="Block"?f.loc.end.line-1:f.loc.end.line;for(let m=f.loc.start.line;m<=d;m++)h.add(m)}),h}return{Program:function(h){let f=new RegExp(i,"u"),d=new RegExp(n,"u"),m=t.lines,g=t.getText().match(r.createGlobalLinebreakMatcher()),y=t.getAllComments(),b=c(y),v=0;for(let S=0,C=m.length;SB.parent.range[0]&&_{let o=l.identifier;!s&&r(o)||e.report({node:o,messageId:"undef",data:o})})}}}},Xx}var Gx,MI;function KZ(){if(MI)return Gx;MI=1;let r=Pe();return Gx={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(e){let t=e.sourceCode;return{VariableDeclarator(s){let n=t.getText(s.id),i=s.init&&s.init.name,a=t.getScope(s),l=r.getVariableByName(a,"undefined"),o=l&&l.defs.length>0,u=t.getLastToken(s);i==="undefined"&&s.parent.kind!=="const"&&!o&&e.report({node:s,messageId:"unnecessaryUndefinedInit",data:{name:n},fix(c){return s.parent.kind==="var"||s.id.type==="ArrayPattern"||s.id.type==="ObjectPattern"||t.commentsExistBetween(s.id,u)?null:c.removeRange([s.id.range[1],s.range[1]])}})}}}},Gx}var Yx,jI;function JZ(){return jI||(jI=1,Yx={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(r){let e=r.sourceCode;function t(n){r.report({node:n,messageId:"unexpectedUndefined"})}function s(n){let i=n.set.get("undefined");if(!i)return;let a=i.references,l=i.defs;a.filter(o=>!o.init).forEach(o=>t(o.identifier)),l.forEach(o=>t(o.name))}return{"Program:exit"(n){let a=[e.getScope(n)];for(;a.length;){let l=a.pop();a.push(...l.childScopes),s(l)}}}}}),Yx}var Hx,qI;function ez(){return qI||(qI=1,Hx={meta:{type:"suggestion",docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,url:"https://eslint.org/docs/latest/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},enforceInClassFields:{type:"boolean",default:!1},allowInArrayDestructuring:{type:"boolean",default:!0},allowInObjectDestructuring:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(r){let e=r.options[0]||{},t=e.allow?e.allow:[],s=typeof e.allowAfterThis<"u"?e.allowAfterThis:!1,n=typeof e.allowAfterSuper<"u"?e.allowAfterSuper:!1,i=typeof e.allowAfterThisConstructor<"u"?e.allowAfterThisConstructor:!1,a=typeof e.enforceInMethodNames<"u"?e.enforceInMethodNames:!1,l=typeof e.enforceInClassFields<"u"?e.enforceInClassFields:!1,o=typeof e.allowFunctionParams<"u"?e.allowFunctionParams:!0,u=typeof e.allowInArrayDestructuring<"u"?e.allowInArrayDestructuring:!0,c=typeof e.allowInObjectDestructuring<"u"?e.allowInObjectDestructuring:!0,p=r.sourceCode;function h(w){return t.includes(w)}function f(w){let E=w.length;return w!=="_"&&(w[0]==="_"||w[E-1]==="_")}function d(w){return w==="__proto__"}function m(w){return w==="_"}function g(w){return w.object.type==="MemberExpression"&&w.object.property.name==="constructor"&&w.object.object.type==="ThisExpression"}function y(w){o||w.params.forEach(E=>{let{type:k}=E,A;if(k==="RestElement"?A=E.argument:k==="AssignmentPattern"?A=E.left:A=E,A.type==="Identifier"){let D=A.name;f(D)&&!h(D)&&r.report({node:E,messageId:"unexpectedUnderscore",data:{identifier:D}})}})}function b(w){if(w.type==="FunctionDeclaration"&&w.id){let E=w.id.name;typeof E<"u"&&f(E)&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:E}})}y(w)}function v(w){p.getDeclaredVariables(w).forEach(E=>{let A=E.defs.find(B=>B.node===w).name,D=A.name,_=A.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(_.type);)_=_.parent;f(D)&&!m(D)&&!h(D)&&!(u&&_.type==="ArrayPattern")&&!(c&&_.type==="ObjectPattern")&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:D}})})}function S(w){let E=w.property.name,k=w.object.type==="ThisExpression",A=w.object.type==="Super",D=g(w);typeof E<"u"&&f(E)&&!(k&&s)&&!(A&&n)&&!(D&&i)&&!d(E)&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:E}})}function C(w){let E=w.key.name,k=w.type==="MethodDefinition"||w.type==="Property"&&w.method;typeof E<"u"&&a&&k&&f(E)&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:w.key.type==="PrivateIdentifier"?`#${E}`:E}})}function O(w){let E=w.key.name;typeof E<"u"&&f(E)&&l&&!h(E)&&r.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:w.key.type==="PrivateIdentifier"?`#${E}`:E}})}return{FunctionDeclaration:b,VariableDeclarator:v,MemberExpression:S,MethodDefinition:C,PropertyDefinition:O,Property:C,FunctionExpression:b,ArrowFunctionExpression:b}}}),Hx}var Kx,QI;function tz(){if(QI)return Kx;QI=1;let r=Pe();return Kx={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/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(e){let t=/^[gimsuy]+$/u,s=e.sourceCode;function n(i,a){let l=s.getTokenAfter(i,r.isNotClosingParenToken),o=s.getTokenBefore(l);l.loc.start.line!==o.loc.end.line&&e.report({node:i,loc:l.loc,messageId:a})}return{MemberExpression(i){!i.computed||i.optional||n(i.object,"property")},TaggedTemplateExpression(i){let{quasi:a}=i;s.getTokenBefore(a).loc.end.line!==a.loc.start.line&&e.report({node:i,loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(i){i.arguments.length===0||i.optional||n(i.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(i){let a=s.getTokenAfter(i,o=>o.value==="/"),l=s.getTokenAfter(a);l.type==="Identifier"&&t.test(l.value)&&a.range[1]===l.range[0]&&n(i.left,"division")}}}},Kx}var Jx,UI;function rz(){if(UI)return Jx;UI=1;let r=DO(),e=Pe(),t=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,s=/^(?:DoWhile|For|While)Statement$/u,n=/^(?:BinaryExpression|ConditionalExpression)$/u,i=/^(?:ArrowFunction|Class|Function)Expression$/u,a=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function l(d){if(d.init){let m=d.resolved&&d.resolved.defs[0];if(!m||m.type!=="Variable"||m.parent.kind!=="var")return!1}return d.isWrite()}function o(d){return!d.modified}function u(d){return!(d.modified||d.group)}function c(d,m){let g=d.range,y=m.identifier.range;return g[0]<=y[0]&&y[1]<=g[1]}let p={WhileStatement:c,DoWhileStatement:c,ForStatement(d,m){return c(d,m)&&!(d.init&&c(d.init,m))}};function h(d){let m=d.identifier;for(;m;){if(m.type==="FunctionDeclaration")return m.id?m:null;m=m.parent}return null}function f(d,m){for(let g=0;g0&&f(E,k),E.filter(u).forEach(y)}return{"Program:exit"(w){let E=[m.getScope(w)];g=new Map;let k;for(;k=E.pop();)E.push(...k.childScopes),k.variables.forEach(O);g.forEach(v),g=null}}}},Jx}var eb,VI;function nz(){if(VI)return eb;VI=1;let r=Pe(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),t={"==":"!=","!=":"==","===":"!==","!==":"==="},s=r.getPrecedence({type:"LogicalExpression",operator:"||"});return eb={meta:{type:"suggestion",docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let a=(n.options[0]||{}).defaultAssignment!==!1,l=n.sourceCode;function o(h){return h.type==="Literal"&&typeof h.value=="boolean"}function u(h){if(h.type==="BinaryExpression"&&Object.hasOwn(t,h.operator)){let f=l.getFirstTokenBetween(h.left,h.right,m=>m.value===h.operator),d=l.getText();return d.slice(h.range[0],f.range[0])+t[h.operator]+d.slice(f.range[1],h.range[1])}return r.getPrecedence(h)=this.startNode.range[0]&&n.range[1]<=this.endNode.range[1]}isConsecutive(n){return this.contains(this.sourceCode.getTokenBefore(n))}merge(n){this.endNode=n}reset(n){this.startNode=this.endNode=n}}return tb={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(s){let n=null,i=new t(s.sourceCode),a=[],l=new Set;function o(u){let c=null;if(u&&(u.type==="PropertyDefinition"||e(l))){if(i.isEmpty){i.reset(u);return}if(i.contains(u))return;if(i.isConsecutive(u)){i.merge(u);return}c=u}i.isEmpty||s.report({messageId:"unreachableCode",loc:i.location,node:i.startNode}),i.reset(c)}return{onCodePathStart(){a.push(l),l=new Set},onCodePathEnd(){l=a.pop()},onUnreachableCodePathSegmentStart(u){l.add(u)},onUnreachableCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentEnd(u){l.delete(u)},onCodePathSegmentStart(u){l.add(u)},BlockStatement:o,BreakStatement:o,ClassDeclaration:o,ContinueStatement:o,DebuggerStatement:o,DoWhileStatement:o,ExpressionStatement:o,ForInStatement:o,ForOfStatement:o,ForStatement:o,IfStatement:o,ImportDeclaration:o,LabeledStatement:o,ReturnStatement:o,SwitchStatement:o,ThrowStatement:o,TryStatement:o,VariableDeclaration(u){(u.kind!=="var"||u.declarations.some(r))&&o(u)},WhileStatement:o,WithStatement:o,ExportNamedDeclaration:o,ExportDefaultDeclaration:o,ExportAllDeclaration:o,"Program:exit"(){o()},"MethodDefinition[kind='constructor']"(){n={upper:n,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(u){let{hasSuperCall:c}=n;if(n=n.upper,!u.value.body)return;let p=u.parent.parent;if(p.superClass&&!c)for(let h of p.body.body)h.type==="PropertyDefinition"&&!h.static&&o(h)},"CallExpression > Super.callee"(){n&&(n.hasSuperCall=!0)}}}},tb}var rb,ZI;function iz(){if(ZI)return rb;ZI=1;let r=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(n){for(let i of n)if(i.reachable)return!0;return!1}function t(n){let i=n.parent;if(i)switch(i.type){case"WhileStatement":return n===i.test;case"DoWhileStatement":return n===i.body;case"ForStatement":return n===(i.update||i.test||i.body);case"ForInStatement":case"ForOfStatement":return n===i.left}return!1}function s(n,i){return n.filter(a=>!i.includes(a))}return rb={meta:{type:"problem",docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:r},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(n){let i=n.options[0]&&n.options[0].ignore||[],a=s(r,i),l=a.join(","),o=new Map,u=new Set,c=[],p=new Set;return{onCodePathStart(){c.push(p),p=new Set},onCodePathEnd(){p=c.pop()},onUnreachableCodePathSegmentStart(h){p.add(h)},onUnreachableCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentEnd(h){p.delete(h)},onCodePathSegmentStart(h,f){if(p.add(h),t(f)){let d=f.parent;o.set(h,d)}},onCodePathSegmentLoop(h,f,d){let m=o.get(f);(d===m||d.type==="ContinueStatement")&&u.delete(m)},[l](h){e(p)&&u.add(h)},"Program:exit"(){u.forEach(h=>n.report({node:h,messageId:"invalid"}))}}}},rb}var nb,zI;function az(){if(zI)return nb;zI=1;let r=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,t=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return nb={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(s){function n(l){return l.parent.type==="TryStatement"&&l.parent.finalizer===l}function i(l,o){let u=!1,c;l.type==="BreakStatement"&&!l.label?c=e:l.type==="ContinueStatement"?c=t:c=r;for(let p=l;p&&!c.test(p.type);p=p.parent)if(p.parent.label&&o&&p.parent.label.name===o.name&&(u=!0),n(p))return!(o&&u);return!1}function a(l){i(l,l.label)&&s.report({messageId:"unsafeUsage",data:{nodeType:l.type},node:l,line:l.loc.line,column:l.loc.column})}return{ReturnStatement:a,ThrowStatement:a,BreakStatement:a,ContinueStatement:a}}},nb}var sb,XI;function oz(){if(XI)return sb;XI=1;let r=Pe();function e(n){return n==="in"||n==="instanceof"}function t(n){return n==="<"||n===">"||n===">="||n==="<="}function s(n){return n.type==="UnaryExpression"&&n.operator==="!"}return sb={meta:{type:"problem",docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/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(n){let i=n.sourceCode,l=(n.options[0]||{}).enforceForOrderingRelations===!0;return{BinaryExpression(o){let u=o.operator,c=l&&t(u);(e(u)||c)&&s(o.left)&&!r.isParenthesised(i,o.left)&&n.report({node:o,loc:o.left.loc,messageId:"unexpected",data:{operator:u},suggest:[{messageId:"suggestNegatedExpression",data:{operator:u},fix(p){let f=[i.getFirstToken(o.left).range[1],o.range[1]],d=i.text.slice(f[0],f[1]);return p.replaceTextRange(f,`(${d})`)}},{messageId:"suggestParenthesisedNegation",fix(p){return p.replaceText(o.left,`(${i.getText(o.left)})`)}}]})}}}},sb}var ib,GI;function lz(){if(GI)return ib;GI=1;let r=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),t=new Set(["in","instanceof"]);function s(n){return n.type==="ObjectPattern"||n.type==="ArrayPattern"}return ib={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/latest/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(n){let a=(n.options[0]||{}).disallowArithmeticOperators||!1;function l(h){n.report({messageId:"unsafeOptionalChain",node:h})}function o(h){n.report({messageId:"unsafeArithmetic",node:h})}function u(h,f){if(h)switch(h.type){case"LogicalExpression":h.operator==="||"||h.operator==="??"?u(h.right,f):h.operator==="&&"&&(u(h.left,f),u(h.right,f));break;case"SequenceExpression":u(h.expressions.at(-1),f);break;case"ConditionalExpression":u(h.consequent,f),u(h.alternate,f);break;case"AwaitExpression":u(h.argument,f);break;case"ChainExpression":f(h);break}}function c(h){u(h,l)}function p(h){u(h,o)}return{"AssignmentExpression, AssignmentPattern"(h){s(h.left)&&c(h.right)},"ClassDeclaration, ClassExpression"(h){c(h.superClass)},CallExpression(h){h.optional||c(h.callee)},NewExpression(h){c(h.callee)},VariableDeclarator(h){s(h.id)&&c(h.init)},MemberExpression(h){h.optional||c(h.object)},TaggedTemplateExpression(h){c(h.tag)},ForOfStatement(h){c(h.right)},SpreadElement(h){h.parent&&h.parent.type!=="ObjectExpression"&&c(h.argument)},BinaryExpression(h){t.has(h.operator)&&c(h.right),a&&r.has(h.operator)&&(p(h.right),p(h.left))},WithStatement(h){c(h.object)},UnaryExpression(h){a&&r.has(h.operator)&&p(h.argument)},AssignmentExpression(h){a&&e.has(h.operator)&&p(h.right)}}}},ib}var ab,YI;function uz(){if(YI)return ab;YI=1;let r=Pe();function e(){return!0}function t(){return!1}return ab={meta:{type:"suggestion",docs:{description:"Disallow unused expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(s){let n=s.options[0]||{},i=n.allowShortCircuit||!1,a=n.allowTernary||!1,l=n.allowTaggedTemplates||!1,o=n.enforceForJSX||!1;function u(d){return d.type==="ExpressionStatement"&&d.expression.type==="Literal"&&typeof d.expression.value=="string"}function c(d,m){for(let g=0;gu.removeRange([o.range[0],o.body.range[0]]):null}),s=s.upper}function l(o){if(!o.label)return;let u=o.label.name,c=s;for(;c;){if(c.label===u){c.used=!0;break}c=c.upper}}return{LabeledStatement:n,"LabeledStatement:exit":a,BreakStatement:l,ContinueStatement:l}}},ob}var lb,KI;function fz(){return KI||(KI=1,lb={meta:{type:"problem",docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used."}},create(r){let e=[];function t(s){let n=s.parent.parent,i=n.type==="AssignmentExpression";return!i&&n.type!=="ForInStatement"&&n.type!=="ForOfStatement"&&n.type!=="AssignmentPattern"||n.left!==s.parent?!1:i&&n.operator!=="="?n.parent.type==="ExpressionStatement":!0}return{ClassBody(s){let n=new Map;e.unshift(n);for(let i of s.body)(i.type==="PropertyDefinition"||i.type==="MethodDefinition")&&i.key.type==="PrivateIdentifier"&&n.set(i.key.name,{declaredNode:i,isAccessor:i.type==="MethodDefinition"&&(i.kind==="set"||i.kind==="get")})},PrivateIdentifier(s){let n=e.find(o=>o.has(s.name));if(!n)return;let i=n.get(s.name);if(i.isUsed||s.parent.type==="PropertyDefinition"||s.parent.type==="MethodDefinition")return;if(i.isAccessor){i.isUsed=!0;return}if(t(s))return;let a=s.parent.parent.type,l=s.parent.parent.parent.type;a==="UpdateExpression"&&l==="ExpressionStatement"||a==="Property"&&l==="ObjectPattern"&&s.parent.parent.value===s.parent||a!=="RestElement"&&a!=="ArrayPattern"&&(i.isUsed=!0)},"ClassBody:exit"(){let s=e.shift();for(let[n,{declaredNode:i,isUsed:a}]of s.entries())a||r.report({node:i,loc:i.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${n}`}})}}}}),lb}var ub,JI;function pz(){if(JI)return ub;JI=1;let r=Pe();return ub={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/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"},ignoreClassWithStaticInitBlock:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}."}},create(e){let t=e.sourceCode,s=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,n={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,reportUsedIgnorePattern:!1},i=e.options[0];i&&(typeof i=="string"?n.vars=i:(n.vars=i.vars||n.vars,n.args=i.args||n.args,n.ignoreRestSiblings=i.ignoreRestSiblings||n.ignoreRestSiblings,n.caughtErrors=i.caughtErrors||n.caughtErrors,n.ignoreClassWithStaticInitBlock=i.ignoreClassWithStaticInitBlock||n.ignoreClassWithStaticInitBlock,n.reportUsedIgnorePattern=i.reportUsedIgnorePattern||n.reportUsedIgnorePattern,i.varsIgnorePattern&&(n.varsIgnorePattern=new RegExp(i.varsIgnorePattern,"u")),i.argsIgnorePattern&&(n.argsIgnorePattern=new RegExp(i.argsIgnorePattern,"u")),i.caughtErrorsIgnorePattern&&(n.caughtErrorsIgnorePattern=new RegExp(i.caughtErrorsIgnorePattern,"u")),i.destructuredArrayIgnorePattern&&(n.destructuredArrayIgnorePattern=new RegExp(i.destructuredArrayIgnorePattern,"u"))));function a(D){let _,B;switch(D){case"array-destructure":_=n.destructuredArrayIgnorePattern,B="elements of array destructuring";break;case"catch-clause":_=n.caughtErrorsIgnorePattern,B="args";break;case"parameter":_=n.argsIgnorePattern,B="args";break;case"variable":_=n.varsIgnorePattern,B="vars";break;default:throw new Error(`Unexpected variable type: ${D}`)}return _&&(_=_.toString()),[B,_]}function l(D){let _=D.defs&&D.defs[0],B="";if(_){let T,F;switch(_.type){case"CatchClause":n.caughtErrorsIgnorePattern&&([F,T]=a("catch-clause"));break;case"Parameter":n.argsIgnorePattern&&([F,T]=a("parameter"));break;default:n.varsIgnorePattern&&([F,T]=a("variable"));break}T&&F&&(B=`. Allowed unused ${F} must match ${T}`)}return{varName:D.name,action:"defined",additional:B}}function o(D){let _=D.defs&&D.defs[0],B="";if(_){let T,F;_.name.parent.type==="ArrayPattern"&&n.destructuredArrayIgnorePattern?[F,T]=a("array-destructure"):n.varsIgnorePattern&&([F,T]=a("variable")),T&&F&&(B=`. Allowed unused ${F} must match ${T}`)}return{varName:D.name,action:"assigned a value",additional:B}}function u(D,_){let[B,T]=a(_),F="";return T&&B&&(F=`. Used ${B} must not match ${T}`),{varName:D.name,additional:F}}let c=/(?:Statement|Declaration)$/u;function p(D){let _=D.defs[0];if(_){let B=_.node;if(B.type==="VariableDeclarator")B=B.parent;else if(_.type==="Parameter")return!1;return B.parent.type.indexOf("Export")===0}return!1}function h(D){return D.type==="Property"&&D.parent.type==="ObjectPattern"&&s.test(D.parent.properties.at(-1).type)}function f(D){if(n.ignoreRestSiblings){let _=D.defs.some(T=>h(T.name.parent)),B=D.references.some(T=>h(T.identifier.parent));return _||B}return!1}function d(D){return D.isRead()}function m(D,_){let B=D.from;for(;B;){if(_.includes(B.block))return!0;B=B.upper}return!1}function g(D){let _=[];return D.defs.forEach(B=>{let{type:T,node:F}=B;T==="FunctionName"&&_.push(F),T==="Variable"&&F.init&&(F.init.type==="FunctionExpression"||F.init.type==="ArrowFunctionExpression")&&_.push(F.init)}),_}function y(D,_){return D.range[0]>=_.range[0]&&D.range[1]<=_.range[1]}function b(D){let _=D.parent;return _.type==="ExpressionStatement"?!0:_.type==="SequenceExpression"?_.expressions.at(-1)===D?b(_):!0:!1}function v(D,_){let B=D.identifier,T=B.parent,F=D.from.variableScope,j=D.resolved.scope.variableScope,Q=F!==j||r.isInLoop(B);return _&&y(B,_)?_:T.type==="AssignmentExpression"&&b(T)&&B===T.left&&!Q?T.right:null}function S(D,_){let B=D,T=D.parent;for(;T&&y(T,_);){switch(T.type){case"SequenceExpression":if(T.expressions.at(-1)!==B)return!1;break;case"CallExpression":case"NewExpression":return T.callee!==B;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(T.type))return!0}B=T,T=T.parent}return!1}function C(D,_){let B=r.getUpperFunction(D);return B&&y(B,_)&&S(B,_)}function O(D,_){let B=D.identifier,T=B.parent;return D.isRead()&&(T.type==="AssignmentExpression"&&T.left===B&&b(T)&&!r.isLogicalAssignmentOperator(T.operator)||T.type==="UpdateExpression"&&b(T)||_&&y(B,_)&&!C(B,_))}function w(D){let _=D.identifier.parent;return _.type==="VariableDeclarator"&&(_=_.parent.parent),_.type!=="ForInStatement"&&_.type!=="ForOfStatement"||(_.body.type==="BlockStatement"?_=_.body.body[0]:_=_.body,!_)?!1:_.type==="ReturnStatement"}function E(D){if(D.eslintUsed)return!0;let _=g(D),B=_.length>0,T=null;return D.references.some(F=>{if(w(F))return!0;let j=O(F,T);return T=v(F,T),d(F)&&!j&&!(B&&m(F,_))})}function k(D){let _=D.defs[0],B=t.getDeclaredVariables(_.node);return!B.slice(B.indexOf(D)+1).some(F=>F.references.length>0||F.eslintUsed)}function A(D,_){let B=D.variables,T=D.childScopes,F,j;if(D.type!=="global"||n.vars==="all")for(F=0,j=B.length;FU.identifier.parent.type==="ArrayPattern");if((I.name.parent.type==="ArrayPattern"||R)&&n.destructuredArrayIgnorePattern&&n.destructuredArrayIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"array-destructure")});continue}if(N==="ClassName"){let U=I.node.body.body.some(V=>V.type==="StaticBlock");if(n.ignoreClassWithStaticInitBlock&&U)continue}if(N==="CatchClause"){if(n.caughtErrors==="none")continue;if(n.caughtErrorsIgnorePattern&&n.caughtErrorsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"catch-clause")});continue}}else if(N==="Parameter"){if((I.node.parent.type==="Property"||I.node.parent.type==="MethodDefinition")&&I.node.parent.kind==="set"||n.args==="none")continue;if(n.argsIgnorePattern&&n.argsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"parameter")});continue}if(n.args==="after-used"&&r.isFunction(I.name.parent)&&!k(Q))continue}else if(n.varsIgnorePattern&&n.varsIgnorePattern.test(I.name.name)){n.reportUsedIgnorePattern&&E(Q)&&e.report({node:I.name,messageId:"usedIgnoredVar",data:u(Q,"variable")});continue}}!E(Q)&&!p(Q)&&!f(Q)&&_.push(Q)}for(F=0,j=T.length;F0){let j=F.references.filter(I=>I.isWrite()&&I.from.variableScope===F.scope.variableScope),Q;j.length>0&&(Q=j.at(-1)),e.report({node:Q?Q.identifier:F.identifiers[0],messageId:"unusedVar",data:F.references.some(I=>I.isWrite())?o(F):l(F)})}else if(F.eslintExplicitGlobalComments){let j=F.eslintExplicitGlobalComments[0];e.report({node:D,loc:r.getNameLocationInGlobalDirectiveComment(t,j,F.name),messageId:"unusedVar",data:l(F)})}}}}}},ub}var cb,eF;function hz(){if(eF)return cb;eF=1;let r=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function t(o){let u=!0,c=!0,p=!0,h=!1;return typeof o=="string"?u=o!=="nofunc":typeof o=="object"&&o!==null&&(u=o.functions!==!1,c=o.classes!==!1,p=o.variables!==!1,h=!!o.allowNamedExports),{functions:u,classes:c,variables:p,allowNamedExports:h}}function s(o,u){return o&&o.range[0]<=u&&u<=o.range[1]}function n(o,u){return o.body.some(c=>c.type==="StaticBlock"&&s(c,u)||c.type==="PropertyDefinition"&&c.static&&c.value&&s(c.value,u))}function i(o){return o.type==="class-static-block"?!0:o.type==="class-field-initializer"?o.block.parent.static:!1}function a(o){let u=o.resolved,c=o.from;for(;u.scope.variableScope!==c.variableScope;)if(i(c.variableScope))c=c.variableScope.upper;else return!0;return!1}function l(o){if(a(o))return!1;let u=o.identifier.range[1],c=o.resolved.defs[0];if(c.type==="ClassName"){let h=c.node;return s(h,u)&&!n(h.body,u)}let p=c.name.parent;for(;p;){if(p.type==="VariableDeclarator"){if(s(p.init,u)||e.test(p.parent.parent.type)&&s(p.parent.parent.right,u))return!0;break}else if(p.type==="AssignmentPattern"){if(s(p.right,u))return!0}else if(r.test(p.type))break;p=p.parent}return!1}return cb={meta:{type:"problem",docs:{description:"Disallow the use of variables before they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"}},additionalProperties:!1}]}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(o){let u=t(o.options[0]),c=o.sourceCode;function p(f){if(f.init)return!1;let{identifier:d}=f;if(u.allowNamedExports&&d.parent.type==="ExportSpecifier"&&d.parent.local===d)return!1;let m=f.resolved;if(!m||m.defs.length===0)return!1;let g=m.defs[0].type;return!(!u.functions&&g==="FunctionName"||(!u.variables&&g==="Variable"||!u.classes&&g==="ClassName")&&a(f))}function h(f){f.references.filter(p).forEach(d=>{let g=d.resolved.defs[0].name;(d.identifier.range[1]v.nextSegments)};function*g(){for(yield*m.results;m.queueSegments.length>0;){let v=m.queueSegments.shift();if(m.subsequentSegments.has(v))continue;m.subsequentSegments.add(v);let S=d.find(O=>O.segments.includes(v)&&!s(O,f.identifier));S||m.queueSegments.push(...v.nextSegments);let C={segment:v,assignment:S};m.results.push(C),yield C}}let y=f.variable.references.filter(v=>v.isRead());if(!y.length)return;let b=d.find(v=>v===f||v.segments.length&&v.segments.every(S=>!f.segments.includes(S))?!1:!!(t(f,v.identifier)||v.expression&&v.expression.range[0]<=f.identifier.range[0]&&f.identifier.range[1]<=v.expression.range[1]));for(let v of y){if(c.scope!==o(v.from))return;if(t(f,v.identifier)&&(s(f,v.identifier)||f.segments.some(S=>p(S,v.identifier)))){if(b&&t(b,v.identifier))continue;return}if(!b){for(let S of g())if(p(S.segment,v.identifier)){if(S.assignment&&t(S.assignment,v.identifier))continue;return}}}n.report({node:f.identifier,messageId:"unnecessaryAssignment"})}for(let f of c.assignments.values()){f.sort((d,m)=>d.identifier.range[0]-m.identifier.range[0]);for(let d of f)h(d,f)}}return{onCodePathStart(c,p){let h=i.getScope(p);a={upper:a,codePath:c,scope:h,segments:Object.create(null),currentSegments:new Set,assignments:new Map},l.add(a.scope)},onCodePathEnd(){u(a),a=a.upper},onCodePathSegmentStart(c){let p={segment:c,first:null,last:null};a.segments[c.id]=p,a.currentSegments.add(c)},onCodePathSegmentEnd(c){a.currentSegments.delete(c)},Identifier(c){for(let p of a.currentSegments){let h=a.segments[p.id];h.first||(h.first=c),h.last=c}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(c){if(a.currentSegments.size===0)return;let p=a.assignments,h,f=null;c.type==="VariableDeclarator"?(h=c.id,f=c.init):c.type==="AssignmentExpression"?(h=c.left,f=c.right):h=c.argument;for(let d of e(h)){let m=i.getScope(d),g=r(m,d);if(!g||g.scope.type==="global"&&g.defs.length===0||a.scope!==o(g.scope)||g.eslintUsed||g.scope.type==="module"&&(g.defs.some(b=>b.type==="Variable"&&b.parent.parent.type==="ExportNamedDeclaration"||b.type==="FunctionName"&&(b.node.parent.type==="ExportNamedDeclaration"||b.node.parent.type==="ExportDefaultDeclaration")||b.type==="ClassName"&&(b.node.parent.type==="ExportNamedDeclaration"||b.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(b=>b.identifier.parent.type==="ExportSpecifier")))continue;let y=p.get(g);y||(y=[],p.set(g,y)),y.push({variable:g,identifier:d,node:c,expression:f,segments:[...a.currentSegments]})}}}}},fb}var pb,rF;function mz(){if(rF)return pb;rF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),{RegExpParser:n,visitRegExpAST:i}=Xn(),a=new n;function l(c){let p=[],h=c;do p.push(h),h=h.parent;while(h);return p}function o(c){return c.type==="Assertion"&&(c.kind==="lookahead"||c.kind==="lookbehind")}function u(c){return o(c)&&c.negate}return pb={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/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(c){let p=c.sourceCode;function h(f,d,m){let g;try{g=a.parsePattern(d,0,d.length,{unicode:m.includes("u"),unicodeSets:m.includes("v")})}catch{return}i(g,{onBackreferenceEnter(y){let b=y.resolved,v=l(y),S=l(b),C=null;if(v.includes(b))C="nested";else{let O=v.length-1,w=S.length-1;do O--,w--;while(v[O]===S[w]);let E=w+1,k=S.slice(0,E),A=S.slice(E),D=A.find(o),_=D&&D.kind==="lookbehind";!_&&y.end<=b.start?C="forward":_&&b.end<=y.start?C="backward":k.at(-1).type==="Alternative"?C="disjunctive":k.some(u)&&(C="intoNegativeLookaround")}C&&c.report({node:f,messageId:C,data:{bref:y.raw,group:b.raw}})}})}return{"Literal[regex]"(f){let{pattern:d,flags:m}=f.regex;h(f,d,m)},Program(f){let d=p.getScope(f),m=new t(d),g={RegExp:{[r]:!0,[e]:!0}};for(let{node:y}of m.iterateGlobalReferences(g)){let[b,v]=y.arguments,S=s(b,d),C=s(v,d);typeof S=="string"&&h(y,S,C||"")}}}}},pb}var hb,nF;function gz(){if(nF)return hb;nF=1;let r=Pe();function e(s){let n=r.skipChainExpression(s.callee);return n.type==="MemberExpression"&&n.property.type==="Identifier"&&n.computed===!1&&(n.property.name==="call"&&s.arguments.length>=1||n.property.name==="apply"&&s.arguments.length===2&&s.arguments[1].type==="ArrayExpression")}function t(s,n,i){return s?r.equalTokens(s,n,i):r.isNullOrUndefined(n)}return hb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(s){let n=s.sourceCode;return{CallExpression(i){if(!e(i))return;let a=r.skipChainExpression(i.callee),l=r.skipChainExpression(a.object),o=l.type==="MemberExpression"?l.object:null,u=i.arguments[0];t(o,u,n)&&s.report({node:i,messageId:"unnecessaryCall",data:{name:a.property.name}})}}}},hb}var db,sF;function yz(){return sF||(sF=1,db={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(r){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?r.report({node:e,messageId:"unnecessaryCatchClause"}):r.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),db}var mb,iF;function xz(){if(iF)return mb;iF=1;let r=Pe();function e(t){if(!t.computed)return!1;let{key:s}=t;if(s.type!=="Literal")return!1;let{value:n}=s;if(typeof n!="number"&&typeof n!="string")return!1;switch(t.type){case"Property":return n!=="__proto__";case"PropertyDefinition":return t.static?n!=="constructor"&&n!=="prototype":n!=="constructor";case"MethodDefinition":return t.static?n!=="prototype":n!=="constructor";default:throw new Error(`Unexpected node type: ${t.type}`)}}return mb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(t){let s=t.sourceCode,n=t.options[0]?.enforceForClassMembers??!0;function i(l){if(e(l)){let{key:o}=l;t.report({node:l,messageId:"unnecessarilyComputedProperty",data:{property:s.getText(o)},fix(u){let c=s.getTokenBefore(o,r.isOpeningBracketToken),p=s.getTokenAfter(o,r.isClosingBracketToken);if(s.commentsExistBetween(c,p))return null;let h=s.getTokenBefore(c),d=(h.range[1]===c.range[0]&&!r.canTokensBeAdjacent(h,s.getFirstToken(o))?" ":"")+o.raw;return u.replaceTextRange([c.range[0],p.range[1]],d)}})}}function a(){}return{Property:i,MethodDefinition:n?i:a,PropertyDefinition:n?i:a}}},mb}var gb,aF;function bz(){if(aF)return gb;aF=1;let r=Pe();function e(i){return i.type==="BinaryExpression"&&i.operator==="+"}function t(i){return i.value==="+"&&i.type==="Punctuator"}function s(i){let a=i.left;for(;e(a);)a=a.right;return a}function n(i){let a=i.right;for(;e(a);)a=a.left;return a}return gb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(i){let a=i.sourceCode;return{BinaryExpression(l){if(l.operator!=="+")return;let o=s(l),u=n(l);if(r.isStringLiteral(o)&&r.isStringLiteral(u)&&r.isTokenOnSameLine(o,u)){let c=a.getFirstTokenBetween(o,u,t);i.report({node:l,loc:c.loc,messageId:"unexpectedConcat"})}}}}},gb}var yb,oF;function vz(){if(oF)return yb;oF=1;function r(o){return o.length===1&&o[0].type==="ExpressionStatement"&&o[0].expression.type==="CallExpression"&&o[0].expression.callee.type==="Super"}function e(o){return o.type==="Identifier"||o.type==="RestElement"}function t(o){return o.length===1&&o[0].type==="SpreadElement"&&o[0].argument.type==="Identifier"&&o[0].argument.name==="arguments"}function s(o,u){return o.type==="Identifier"&&u.type==="Identifier"&&o.name===u.name}function n(o,u){return o.type==="RestElement"&&u.type==="SpreadElement"&&s(o.argument,u.argument)}function i(o,u){return s(o,u)||n(o,u)}function a(o,u){if(o.length!==u.length)return!1;for(let c=0;c?@^`~");return xb={meta:{type:"suggestion",docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[]},create(u){let c=u.sourceCode,p=new e;function h(g,y,b,v){let S=g.range[0]+y,C=[S,S+1],O=c.getLocFromIndex(S);u.report({node:g,loc:{start:O,end:{line:O.line,column:O.column+1}},messageId:"unnecessaryEscape",data:{character:b},suggest:[{messageId:r.isDirective(g.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(w){return w.removeRange(C)}},...v?[]:[{messageId:"escapeBackslash",fix(w){return w.insertTextBeforeRange(C,"\\")}}]]})}function f(g,y){let b=g.type==="TemplateElement",v=y[0][1],S=!n.has(v),C;b?(C=v==="`",v==="$"?S=y.input[y.index+2]!=="{":v==="{"&&(S=y.input[y.index-1]!=="$")):C=v===g.raw[0],S&&!C&&h(g,y.index,y[0].slice(1))}function d(g){let{pattern:y,flags:b}=g.regex,v,S=b.includes("u"),C=b.includes("v");try{v=p.parsePattern(y,0,y.length,{unicode:S,unicodeSets:C})}catch{return}let O=[];t(v,{onCharacterClassEnter:w=>O.unshift(w),onCharacterClassLeave:()=>O.shift(),onExpressionCharacterClassEnter:w=>O.unshift(w),onExpressionCharacterClassLeave:()=>O.shift(),onCharacterEnter(w){if(!w.raw.startsWith("\\"))return;let E=w.raw.slice(1);if(E!==String.fromCodePoint(w.value))return;let k;if(O.length?k=C?l:i:k=a,k.has(E))return;let A=w.start+1,D=!1;if(O.length){let _=O[0];if(E==="^"&&_.start+1===w.start)return;if(C){if(o.has(E)&&(y[w.end]===E||y[w.start-1]===E&&(E!=="^"||!_.negate||_.start+1t.getCommentsInside(g).length||g.type==="AssignmentPattern"&&r.isParenthesised(t,g.left)?null:m.replaceText(p,t.getText(g))}})}function o(p){if(!n)for(let h of p.properties){if(h.type!=="Property"||h.shorthand||h.computed)continue;let f=h.key.type==="Identifier"&&h.key.name||h.key.type==="Literal"&&h.key.value,d=h.value.type==="AssignmentPattern"?h.value.left.name:h.value.name;f===d&&l(h,h.key,"Destructuring assignment")}}function u(p){i||p.imported.range[0]!==p.local.range[0]&&r.getModuleExportName(p.imported)===p.local.name&&l(p,p.imported,"Import")}function c(p){a||p.local.range[0]!==p.exported.range[0]&&r.getModuleExportName(p.local)===r.getModuleExportName(p.exported)&&l(p,p.local,"Export")}return{ObjectPattern:o,ImportSpecifier:u,ExportSpecifier:c}}},bb}var vb,cF;function Ez(){if(cF)return vb;cF=1;let r=Pe(),e=zo();function t(a,l){let o=a.indexOf(l);o!==-1&&a.splice(o,1)}function s(a){return r.STATEMENT_LIST_PARENTS.has(a.parent.type)}function n(a){for(let l=a;l&&l.parent&&!r.isFunction(l);l=l.parent)if(l.parent.type==="TryStatement"&&l.parent.finalizer===l)return!0;return!1}function i(a){for(let l of a)if(l.reachable)return!0;return!1}return vb={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(a){let l=new WeakMap,o=a.sourceCode,u=null;function c(d){let m=l.get(d);return!m||m.returned}function p(d,m,g){let y=g||new WeakSet;for(let b of m){if(!b.reachable){y.has(b)||(y.add(b),p(d,b.allPrevSegments.filter(c),y));continue}l.has(b)&&d.push(...l.get(b).uselessReturns)}return d}function h(d,m){if(!d.reachable){m.add(d),d.allPrevSegments.filter(c).filter(y=>!m.has(y)).forEach(y=>h(y,m));return}let g=l.get(d);g&&(g.uselessReturns=g.uselessReturns.filter(y=>{if(u.traversedTryBlockStatements&&u.traversedTryBlockStatements.length>0){let b=y.range[0],v=y.range[1];if(u.traversedTryBlockStatements.some(C=>{let O=C.range[0],w=C.range[1];return b>=O&&v<=w}))return!0}return t(u.uselessReturns,y),!1}))}function f(){u.currentSegments.forEach(d=>h(d,new Set))}return{onCodePathStart(d){u={upper:u,uselessReturns:[],traversedTryBlockStatements:[],codePath:d,currentSegments:new Set}},onCodePathEnd(){for(let d of u.uselessReturns)a.report({node:d,loc:d.loc,messageId:"unnecessaryReturn",fix(m){return s(d)&&!o.getCommentsInside(d).length?new e(m,o).retainEnclosingFunction(d).remove(d):null}});u=u.upper},onCodePathSegmentStart(d){u.currentSegments.add(d);let m={uselessReturns:p([],d.allPrevSegments),returned:!1};l.set(d,m)},onUnreachableCodePathSegmentStart(d){u.currentSegments.add(d)},onUnreachableCodePathSegmentEnd(d){u.currentSegments.delete(d)},onCodePathSegmentEnd(d){u.currentSegments.delete(d)},ReturnStatement(d){if(d.argument&&f(),!(d.argument||r.isInLoop(d)||n(d)||!i(u.currentSegments))){for(let m of u.currentSegments){let g=l.get(m);g&&(g.uselessReturns.push(d),g.returned=!0)}u.uselessReturns.push(d)}},"TryStatement > BlockStatement.block:exit"(d){u.traversedTryBlockStatements.push(d)},"TryStatement:exit"(){u.traversedTryBlockStatements.pop()},ClassDeclaration:f,ContinueStatement:f,DebuggerStatement:f,DoWhileStatement:f,EmptyStatement:f,ExpressionStatement:f,ForInStatement:f,ForOfStatement:f,ForStatement:f,IfStatement:f,ImportDeclaration:f,LabeledStatement:f,SwitchStatement:f,ThrowStatement:f,TryStatement:f,VariableDeclaration:f,WhileStatement:f,WithStatement:f,ExportNamedDeclaration:f,ExportDefaultDeclaration:f,ExportAllDeclaration:f}}},vb}var Ob,fF;function Cz(){if(fF)return Ob;fF=1;let r=Pe();function e(h){return!!h.scope&&h.scope.type==="global"}function t(h){let f=h;for(;f.type!=="function"&&f.type!=="global";)f=f.upper;return f}function s(h){let f=t(h.scope);return h.references.some(d=>t(d.from)!==f)}function n(h){return(h.parent.type==="ForOfStatement"||h.parent.type==="ForInStatement")&&h===h.parent.left}function i(h){return h.declarations.every(f=>f.init!==null)}let a=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function l(h){for(let f=h;f;f=f.parent)if(a.test(f.type))return f;return null}function o(h){return h.defs.length>=2}function u(h){function f(d){let m=h.range,g=d.identifier.range;return g[0]m[1]}return function(d){return d.references.some(f)}}function c(h){let f=h.range[0],d=h.range[1];return m=>{let g=m.defs[0].name,y=g.range[0],b=g.parent.type==="AssignmentPattern"?g.parent.right:null,v=b&&b.range[0],S=b&&b.range[1];return m.references.some(C=>{let O=C.identifier.range[0],w=C.identifier.range[1];return!C.init&&(O=v&&w<=S||!r.isFunction(h)&&O>=f&&w<=d)})}}function p(h){return h.name==="let"}return Ob={meta:{type:"suggestion",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(h){let f=h.sourceCode;function d(y){return y.init?f.getDeclaredVariables(y).some(c(y.init)):!1}function m(y){let b=f.getDeclaredVariables(y),v=l(y);return!(y.parent.type==="SwitchCase"||y.declarations.some(d)||b.some(e)||b.some(o)||b.some(u(v))||b.some(p)||r.isInLoop(y)&&(b.some(s)||!n(y)&&!i(y))||!n(y)&&!(y.parent.type==="ForStatement"&&y.parent.init===y)&&!r.STATEMENT_LIST_PARENTS.has(y.parent.type))}function g(y){h.report({node:y,messageId:"unexpectedVar",fix(b){let v=f.getFirstToken(y,{filter:S=>S.value==="var"});return m(y)?b.replaceText(v,"let"):null}})}return{"VariableDeclaration:exit"(y){y.kind==="var"&&g(y)}}}},Ob}var Sb,pF;function wz(){return pF||(pF=1,Sb={meta:{type:"suggestion",docs:{description:"Disallow `void` operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean",default:!1}},additionalProperties:!1}]},create(r){let e=r.options[0]&&r.options[0].allowAsStatement;return{'UnaryExpression[operator="void"]'(t){e&&t.parent&&t.parent.type==="ExpressionStatement"||r.report({node:t,messageId:"noVoid"})}}}}),Sb}var Eb,hF;function kz(){if(hF)return Eb;hF=1;let r=Sc(),e=Pe(),t=40;return Eb={meta:{type:"suggestion",docs:{description:"Disallow specified warning terms in comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(s){let n=s.sourceCode,i=s.options[0]||{},a=i.terms||["todo","fixme","xxx"],l=i.location||"start",o=[...i.decoration||[]].join(""),u=/\bno-warning-comments\b/u;function c(d){let m=r(d),g=r(o),y="\\b",b="";l==="start"?b=`^[\\s${g}]*`:/^\w/u.test(d)&&(b=y);let v=/\w$/u.test(d)?y:"",S="iu";return new RegExp(`${b}${m}${v}`,S)}let p=a.map(c);function h(d){let m=[];return p.forEach((g,y)=>{g.test(d)&&m.push(a[y])}),m}function f(d){let m=d.value;if(e.isDirectiveComment(d)&&u.test(m))return;h(m).forEach(y=>{let b="",v=!1;for(let S of m.trim().split(/\s+/u)){let C=b?`${b} ${S}`:S;if(C.length<=t)b=C;else{v=!0;break}}s.report({node:d,messageId:"unexpectedComment",data:{matchedTerm:y,comment:`${b}${v?"...":""}`}})})}return{Program(){n.getAllComments().filter(m=>m.type!=="Shebang").forEach(f)}}}},Eb}var Cb,dF;function Az(){if(dF)return Cb;dF=1;let r=Pe();return Cb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(e){let t=e.sourceCode;function s(n,i,a){e.report({node:n,messageId:"unexpectedWhitespace",data:{propName:t.getText(n.property)},fix(l){let o="";return!n.computed&&!n.optional&&r.isDecimalInteger(n.object)||t.commentsExistBetween(i,a)?null:(n.optional?o="?.":n.computed||(o="."),l.replaceTextRange([i.range[1],a.range[0]],o))}})}return{MemberExpression(n){let i,a;r.isTokenOnSameLine(n.object,n.property)&&(n.computed?(i=t.getTokenBefore(n.property,r.isOpeningBracketToken),a=t.getTokenBefore(i,n.optional?1:0)):(i=t.getFirstToken(n.property),a=t.getTokenBefore(i,1)),t.isSpaceBetweenTokens(a,i)&&s(n,a,i))}}}},Cb}var wb,mF;function Pz(){return mF||(mF=1,wb={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(r){return{WithStatement(e){r.report({node:e,messageId:"unexpectedWith"})}}}}),wb}var kb,gF;function Tz(){if(gF)return kb;gF=1;let r={enum:["beside","below","any"]};return kb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[r,{properties:{overrides:{properties:{if:r,else:r,while:r,do:r,for:r},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){let t=e.sourceCode;function s(i){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[i]||e.options[0]||"beside"}function n(i,a){let l=s(a);if(i.type==="BlockStatement"||l==="any")return;let o=t.getTokenBefore(i);o.loc.end.line===i.loc.start.line&&l==="below"?e.report({node:i,messageId:"expectLinebreak",fix:u=>u.insertTextBefore(i,` +`)}):o.loc.end.line!==i.loc.start.line&&l==="beside"&&e.report({node:i,messageId:"expectNoLinebreak",fix(u){return t.getText().slice(o.range[1],i.range[0]).trim()?null:u.replaceTextRange([o.range[1],i.range[0]]," ")}})}return{IfStatement(i){n(i.consequent,"if"),i.alternate&&i.alternate.type!=="IfStatement"&&n(i.alternate,"else")},WhileStatement:i=>n(i.body,"while"),DoWhileStatement:i=>n(i.body,"do"),ForStatement:i=>n(i.body,"for"),ForInStatement:i=>n(i.body,"for"),ForOfStatement:i=>n(i.body,"for")}}},kb}var Ab,yF;function Dz(){if(yF)return Ab;yF=1;let r=Pe(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function t(l){let o=!1,u=Number.POSITIVE_INFINITY,c=!1;return l?l==="always"?u=0:l==="never"?u=Number.POSITIVE_INFINITY:(o=!!l.multiline,u=l.minProperties||Number.POSITIVE_INFINITY,c=!!l.consistent):c=!0,{multiline:o,minProperties:u,consistent:c}}function s(l){return typeof l=="object"&&l!==null}function n(l){return s(l)||typeof l=="string"}function i(l){if(s(l)&&Object.values(l).some(n))return{ObjectExpression:t(l.ObjectExpression),ObjectPattern:t(l.ObjectPattern),ImportDeclaration:t(l.ImportDeclaration),ExportNamedDeclaration:t(l.ExportDeclaration)};let o=t(l);return{ObjectExpression:o,ObjectPattern:o,ImportDeclaration:o,ExportNamedDeclaration:o}}function a(l,o,u,c){let p;return l.type==="ObjectExpression"||l.type==="ObjectPattern"?p=l.properties:p=l.specifiers.filter(h=>h.type==="ImportSpecifier"||h.type==="ExportSpecifier"),p.length>=o.minProperties||o.multiline&&p.length>0&&u.loc.start.line!==c.loc.end.line}return Ab={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},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(l){let o=l.sourceCode,u=i(l.options[0]);function c(p){let h=u[p.type];if(p.type==="ImportDeclaration"&&!p.specifiers.some(S=>S.type==="ImportSpecifier")||p.type==="ExportNamedDeclaration"&&!p.specifiers.some(S=>S.type==="ExportSpecifier"))return;let f=o.getFirstToken(p,S=>S.value==="{"),d;p.typeAnnotation?d=o.getTokenBefore(p.typeAnnotation):d=o.getLastToken(p,S=>S.value==="}");let m=o.getTokenAfter(f,{includeComments:!0}),g=o.getTokenBefore(d,{includeComments:!0}),y=a(p,h,m,g),b=r.isCommentToken(m),v=r.isCommentToken(g);if(m=o.getTokenAfter(f),g=o.getTokenBefore(d),y)r.isTokenOnSameLine(f,m)&&l.report({messageId:"expectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(S){return b?null:S.insertTextAfter(f,` +`)}}),r.isTokenOnSameLine(g,d)&&l.report({messageId:"expectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(S){return v?null:S.insertTextBefore(d,` +`)}});else{let S=h.consistent,C=!r.isTokenOnSameLine(f,m),O=!r.isTokenOnSameLine(g,d);(!S&&C||S&&C&&!O)&&l.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:p,loc:f.loc,fix(w){return b?null:w.removeRange([f.range[1],m.range[0]])}}),(!S&&O||S&&!C&&O)&&l.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:p,loc:d.loc,fix(w){return v?null:w.removeRange([g.range[1],d.range[0]])}})}}return{ObjectExpression:c,ObjectPattern:c,ImportDeclaration:c,ExportNamedDeclaration:c}}},Ab}var Pb,xF;function _z(){if(xF)return Pb;xF=1;let r=Pe();return Pb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]==="always",s=e.sourceCode;function n(m){return e.options[1]?e.options[1][m]===!t:!1}let i={spaced:t,arraysInObjectsException:n("arraysInObjects"),objectsInObjectsException:n("objectsInObjects")};function a(m,g){let y=e.sourceCode.getTokenAfter(g,{includeComments:!0});e.report({node:m,loc:{start:g.loc.end,end:y.loc.start},messageId:"unexpectedSpaceAfter",data:{token:g.value},fix(b){return b.removeRange([g.range[1],y.range[0]])}})}function l(m,g){let y=e.sourceCode.getTokenBefore(g,{includeComments:!0});e.report({node:m,loc:{start:y.loc.end,end:g.loc.start},messageId:"unexpectedSpaceBefore",data:{token:g.value},fix(b){return b.removeRange([y.range[1],g.range[0]])}})}function o(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceAfter",data:{token:g.value},fix(y){return y.insertTextAfter(g," ")}})}function u(m,g){e.report({node:m,loc:g.loc,messageId:"requireSpaceBefore",data:{token:g.value},fix(y){return y.insertTextBefore(g," ")}})}function c(m,g,y,b,v){if(r.isTokenOnSameLine(g,y)){let S=s.isSpaceBetweenTokens(g,y);i.spaced&&!S&&o(m,g),!i.spaced&&S&&y.type!=="Line"&&a(m,g)}if(r.isTokenOnSameLine(b,v)){let C=(i.arraysInObjectsException&&r.isClosingBracketToken(b)||i.objectsInObjectsException&&r.isClosingBraceToken(b))&&s.getNodeByRangeIndex(b.range[0]).type,O=i.arraysInObjectsException&&C==="ArrayExpression"||i.objectsInObjectsException&&(C==="ObjectExpression"||C==="ObjectPattern")?!i.spaced:i.spaced,w=s.isSpaceBetweenTokens(b,v);O&&!w&&u(m,v),!O&&w&&l(m,v)}}function p(m){let g=m.properties.at(-1);return s.getTokenAfter(g,r.isClosingBraceToken)}function h(m){if(m.properties.length===0)return;let g=s.getFirstToken(m),y=p(m),b=s.getTokenAfter(g,{includeComments:!0}),v=s.getTokenBefore(y,{includeComments:!0});c(m,g,b,v,y)}function f(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1);if(y.type!=="ImportSpecifier")return;g.type!=="ImportSpecifier"&&(g=m.specifiers[1]);let b=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(b,{includeComments:!0}),C=s.getTokenBefore(v,{includeComments:!0});c(m,b,S,C,v)}function d(m){if(m.specifiers.length===0)return;let g=m.specifiers[0],y=m.specifiers.at(-1),b=s.getTokenBefore(g),v=s.getTokenAfter(y,r.isNotCommaToken),S=s.getTokenAfter(b,{includeComments:!0}),C=s.getTokenBefore(v,{includeComments:!0});c(m,b,S,C,v)}return{ObjectPattern:h,ObjectExpression:h,ImportDeclaration:f,ExportNamedDeclaration:d}}},Pb}var Tb,bF;function Iz(){return bF||(bF=1,Tb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]&&(r.options[0].allowAllPropertiesOnSameLine||r.options[0].allowMultiplePropertiesPerLine),t=e?"propertiesOnNewlineAll":"propertiesOnNewline",s=r.sourceCode;return{ObjectExpression(n){if(e&&n.properties.length>1){let i=s.getFirstToken(n.properties[0]),a=s.getLastToken(n.properties.at(-1));if(i.loc.end.line===a.loc.start.line)return}for(let i=1;i0){let Q=j.filter(v);Q.length!==j.length&&(Q.length>0?t.report({node:T,messageId:"unexpectedMix"}):F&&j.every(S)&&t.report({node:T,messageId:"expectedAllPropertiesShorthanded"}))}}function O(T,F){let j=F.computed?d.getFirstToken(F,e.isOpeningBracketToken):d.getFirstToken(F.key),Q=F.computed?d.getFirstTokenBetween(F.key,F.value,e.isClosingBracketToken):d.getLastToken(F.key),I=d.text.slice(j.range[0],Q.range[1]),N="";if(d.commentsExistBetween(Q,F.value))return null;F.value.async&&(N+="async "),F.value.generator&&(N+="*");let R=[j.range[0],F.range[1]],U=N+I;if(F.value.type==="FunctionExpression"){let K=d.getTokens(F.value).find(xe=>xe.type==="Keyword"&&xe.value==="function"),le=F.value.generator?d.getTokenAfter(K):K;return T.replaceTextRange(R,U+d.text.slice(le.range[1],F.value.range[1]))}let V=d.getTokenBefore(F.value.body,e.isArrowToken),ae=d.text.slice(V.range[1],F.value.range[1]),se=!1,ve;if(F.value.params.length===0?ve=d.getFirstToken(F.value,e.isOpeningParenToken):ve=d.getTokenBefore(F.value.params[0]),F.value.params.length===1){let K=e.isOpeningParenToken(ve),le=ve.range[0]R.value==="["):d.getFirstToken(F.key),Q=F.computed?d.getTokensBetween(F.key,F.value).find(R=>R.value==="]"):d.getLastToken(F.key),I=d.text.slice(j.range[0],Q.range[1]),N="function";return F.value.async&&(N=`async ${N}`),F.value.generator&&(N=`${N}*`),T.replaceTextRange([F.range[0],Q.range[1]],`${I}: ${N}`)}let E=[],k=new WeakSet,A=new WeakSet;function D(T){E.unshift(new Set),d.getScope(T).variables.filter(F=>F.name==="arguments").forEach(F=>{F.references.map(j=>j.identifier).forEach(j=>A.add(j))})}function _(){E.shift()}function B(){E[0].forEach(T=>k.add(T))}return{Program:D,FunctionDeclaration:D,FunctionExpression:D,"Program:exit":_,"FunctionDeclaration:exit":_,"FunctionExpression:exit":_,ArrowFunctionExpression(T){E[0].add(T)},"ArrowFunctionExpression:exit"(T){E[0].delete(T)},ThisExpression:B,Super:B,MetaProperty(T){T.meta.name==="new"&&T.property.name==="target"&&B()},Identifier(T){A.has(T)&&B()},ObjectExpression(T){l?C(T,!1):o&&C(T,!0)},"Property:exit"(T){let F=T.method||T.shorthand;if(T.parent.type!=="ObjectPattern"&&!(T.kind==="get"||T.kind==="set")&&!(T.computed&&T.value.type!=="FunctionExpression"&&T.value.type!=="ArrowFunctionExpression")){if(F)if(T.method&&(a||h&&b(T.key))){let j=a?"expectedMethodLongform":"expectedLiteralMethodLongform";t.report({node:T,messageId:j,fix:Q=>w(Q,T)})}else a&&t.report({node:T,messageId:"expectedPropertyLongform",fix:j=>j.insertTextAfter(T.key,`: ${T.key.name}`)});else if(n&&!T.value.id&&(T.value.type==="FunctionExpression"||T.value.type==="ArrowFunctionExpression")){if(c&&T.key.type==="Identifier"&&g(T.key.name))return;if(p){let j=e.getStaticPropertyName(T);if(j!==null&&p.test(j))return}if(h&&b(T.key))return;(T.value.type==="FunctionExpression"||T.value.type==="ArrowFunctionExpression"&&T.value.body.type==="BlockStatement"&&f&&!k.has(T.value))&&t.report({node:T,messageId:"expectedMethodShorthand",fix:j=>O(j,T)})}else if(T.value.type==="Identifier"&&T.key.name===T.value.name&&i)t.report({node:T,messageId:"expectedPropertyShorthand",fix(j){return j.replaceText(T,T.value.name)}});else if(T.value.type==="Identifier"&&T.key.type==="Literal"&&T.key.value===T.value.name&&i){if(h)return;t.report({node:T,messageId:"expectedPropertyShorthand",fix(j){return j.replaceText(T,T.value.name)}})}}}}}},Db}var _b,OF;function Rz(){if(OF)return _b;OF=1;let r=Pe();function e(t){return r.STATEMENT_LIST_PARENTS.has(t.parent.type)}return _b={meta:{type:"suggestion",docs:{description:"Enforce variables to be declared either together or separately in functions",recommended:!1,url:"https://eslint.org/docs/latest/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 s="always",n="never",i="consecutive",a=t.options[0]||s,l={};typeof a=="string"?(l.var={uninitialized:a,initialized:a},l.let={uninitialized:a,initialized:a},l.const={uninitialized:a,initialized:a}):typeof a=="object"&&(l.separateRequires=!!a.separateRequires,l.var={uninitialized:a.var,initialized:a.var},l.let={uninitialized:a.let,initialized:a.let},l.const={uninitialized:a.const,initialized:a.const},Object.hasOwn(a,"uninitialized")&&(l.var.uninitialized=a.uninitialized,l.let.uninitialized=a.uninitialized,l.const.uninitialized=a.uninitialized),Object.hasOwn(a,"initialized")&&(l.var.initialized=a.initialized,l.let.initialized=a.initialized,l.const.initialized=a.initialized));let o=t.sourceCode,u=[],c=[];function p(){c.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1}})}function h(){u.push({initialized:!1,uninitialized:!1}),p()}function f(){c.pop()}function d(){u.pop(),f()}function m(w){return w.init&&w.init.type==="CallExpression"&&w.init.callee.name==="require"}function g(w,E,k){for(let A=0;A0&&A.uninitialized===s&&D.uninitialized||k.initialized>0&&A.initialized===s&&D.initialized&&!_||D.required&&_?!1:(g(w,E,D),!0)}function S(w){let E=w[0],k=Array.isArray(E.parent.parent.body)?E.parent.parent.body:[],A=k.findIndex(_=>_.range[0]===E.parent.range[0]),D=k[A-1];return _=>{let B=o.getTokenBefore(E),T=o.getTokenBefore(B),F=[];return D&&D.kind===o.getText(B)&&(T.value===";"?F.push(_.replaceText(T,",")):F.push(_.insertTextAfter(T,",")),F.push(_.replaceText(B,""))),F}}function C(w){let{parent:E}=w;return e(E.type==="ExportNamedDeclaration"?E:w)?k=>w.declarations.map(A=>{let D=o.getTokenAfter(A);if(D===null)return null;let _=o.getTokenAfter(D,{includeComments:!0});if(D.value!==",")return null;let B=w.parent.type==="ExportNamedDeclaration"?"export ":"";if(_.range[0]===D.range[1])return k.replaceText(D,`; ${B}${w.kind} `);if(_.loc.start.line>D.loc.end.line||_.type==="Line"||_.type==="Block"){let T=_;for(;T.type==="Line"||T.type==="Block";)T=o.getTokenAfter(T,{includeComments:!0});return k.replaceTextRange([D.range[0],T.range[0]],`;${o.text.slice(D.range[1],T.range[0])}${B}${w.kind} `)}return k.replaceText(D,`; ${B}${w.kind}`)}).filter(A=>A):null}function O(w){let E=w.parent,k=w.kind;if(!l[k])return;let A=w.declarations,D=b(A),_=A.some(m)&&!A.every(m);l[k].initialized===s&&l.separateRequires&&_&&t.report({node:w,messageId:"splitRequires"});let B=E.body&&E.body.length>0&&E.body.indexOf(w)||0;if(B>0){let T=E.body[B-1],F=T.type==="VariableDeclaration",j=A.concat(T.declarations||[]);if(F&&T.kind===k&&!(j.some(m)&&!j.every(m))){let Q=b(T.declarations);l[k].initialized===i&&l[k].uninitialized===i?t.report({node:w,messageId:"combine",data:{type:k},fix:S(A)}):l[k].initialized===i&&D.initialized>0&&Q.initialized>0?t.report({node:w,messageId:"combineInitialized",data:{type:k},fix:S(A)}):l[k].uninitialized===i&&D.uninitialized>0&&Q.uninitialized>0&&t.report({node:w,messageId:"combineUninitialized",data:{type:k},fix:S(A)})}}if(!v(k,A)){if(l[k].initialized===s&&l[k].uninitialized===s)t.report({node:w,messageId:"combine",data:{type:k},fix:S(A)});else if(l[k].initialized===s&&D.initialized>0&&t.report({node:w,messageId:"combineInitialized",data:{type:k},fix:S(A)}),l[k].uninitialized===s&&D.uninitialized>0){if(w.parent.left===w&&(w.parent.type==="ForInStatement"||w.parent.type==="ForOfStatement"))return;t.report({node:w,messageId:"combineUninitialized",data:{type:k},fix:S(A)})}}(E.type!=="ForStatement"||E.init!==w)&&D.uninitialized+D.initialized>1&&(l[k].initialized===n&&l[k].uninitialized===n?t.report({node:w,messageId:"split",data:{type:k},fix:C(w)}):l[k].initialized===n&&D.initialized>0?t.report({node:w,messageId:"splitInitialized",data:{type:k},fix:C(w)}):l[k].uninitialized===n&&D.uninitialized>0&&t.report({node:w,messageId:"splitUninitialized",data:{type:k},fix:C(w)}))}return{Program:h,FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h,StaticBlock:h,BlockStatement:p,ForStatement:p,ForInStatement:p,ForOfStatement:p,SwitchStatement:p,VariableDeclaration:O,"ForStatement:exit":f,"ForOfStatement:exit":f,"ForInStatement:exit":f,"SwitchStatement:exit":f,"BlockStatement:exit":f,"Program:exit":d,"FunctionDeclaration:exit":d,"FunctionExpression:exit":d,"ArrowFunctionExpression:exit":d,"StaticBlock:exit":d}}},_b}var Ib,SF;function Bz(){return SF||(SF=1,Ib={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(r){let e=r.options[0]==="always";function t(n){return n==="ForStatement"||n==="ForInStatement"||n==="ForOfStatement"}function s(n){if(t(n.parent.type))return;let i=n.declarations,a;i.forEach(l=>{a&&a.loc.end.line===l.loc.start.line&&(e||a.init||l.init)&&r.report({node:n,messageId:"expectVarOnNewline",loc:l.loc,fix:o=>o.insertTextBefore(l,` +`)}),a=l})}return{VariableDeclaration:s}}}),Ib}var Fb,EF;function Nz(){if(EF)return Fb;EF=1;let r=Pe();function e(n){return["*","&","^","|"].includes(n)}function t(n){return["+","-","/","%","<<",">>",">>>","**"].includes(n)}function s(n){return n.type==="Identifier"||n.type==="MemberExpression"&&(n.object.type==="Identifier"||n.object.type==="ThisExpression")&&(!n.computed||n.property.type==="Literal")}return Fb={meta:{type:"suggestion",docs:{description:"Require or disallow assignment operator shorthand where possible",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=n.sourceCode;function a(u){return i.getFirstTokenBetween(u.left,u.right,c=>c.value===u.operator)}function l(u){if(u.operator!=="="||u.right.type!=="BinaryExpression")return;let c=u.left,p=u.right,h=p.operator;if(e(h)||t(h)){let f=`${h}=`;r.isSameReference(c,p.left,!0)?n.report({node:u,messageId:"replaced",data:{operator:f},fix(d){if(s(c)&&s(p.left)){let m=a(u),g=a(p),y=i.getText().slice(u.range[0],m.range[0]),b=i.getText().slice(g.range[1],u.right.range[1]);return i.commentsExistBetween(m,g)?null:d.replaceText(u,`${y}${f}${b}`)}return null}}):r.isSameReference(c,p.right,!0)&&e(h)&&n.report({node:u,messageId:"replaced",data:{operator:f}})}}function o(u){u.operator!=="="&&!r.isLogicalAssignmentOperator(u.operator)&&n.report({node:u,messageId:"unexpected",data:{operator:u.operator},fix(c){if(s(u.left)){let p=i.getFirstToken(u),h=a(u),f=i.getText().slice(u.range[0],h.range[0]),d=u.operator.slice(0,-1),m;if(i.commentsExistBetween(p,h))return null;if(r.getPrecedence(u.right)<=r.getPrecedence({type:"BinaryExpression",operator:d})&&!r.isParenthesised(i,u.right))m=`${i.text.slice(h.range[1],u.right.range[0])}(${i.getText(u.right)})`;else{let g=i.getTokenAfter(h,{includeComments:!0}),y="";h.range[1]===g.range[0]&&!r.canTokensBeAdjacent({type:"Punctuator",value:d},g)&&(y=" "),m=`${y}${i.text.slice(h.range[1],u.range[1])}`}return c.replaceText(u,`${f}= ${f}${d}${m}`)}return null}})}return{AssignmentExpression:n.options[0]!=="never"?l:o}}},Fb}var Rb,CF;function Lz(){if(CF)return Rb;CF=1;let r=Pe();return Rb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=!e.options[0],s=e.options[0]||"after",n=e.options[1]||{},i=n.overrides?Object.assign({},n.overrides):{};t&&!i["?"]&&(i["?"]="before"),t&&!i[":"]&&(i[":"]="before");let a=e.sourceCode;function l(c,p){return h=>{let f=a.getTokenBefore(c),d=a.getTokenAfter(c),m=a.text.slice(f.range[1],c.range[0]),g=a.text.slice(c.range[1],d.range[0]),y=!r.isTokenOnSameLine(f,c),b=!r.isTokenOnSameLine(c,d),v,S;if(y!==b&&p!=="none"){if(a.getTokenBefore(c,{includeComments:!0})!==f&&a.getTokenAfter(c,{includeComments:!0})!==d)return null;v=g,S=m}else{let C=r.createGlobalLinebreakMatcher();if(v=p==="before"||m.trim()?m:m.replace(C,""),S=p==="after"||g.trim()?g:g.replace(C,""),v===m&&S===g)return null}return S===""&&d.type==="Punctuator"&&"+-".includes(c.value)&&d.value===c.value&&(S+=" "),h.replaceTextRange([f.range[1],d.range[0]],v+c.value+S)}}function o(c,p,h){let f=a.getTokenBefore(p,v=>v.value===h),d=a.getTokenBefore(f),m=a.getTokenAfter(f),g=i[h],y=g||s,b=l(f,y);r.isTokenOnSameLine(d,f)&&r.isTokenOnSameLine(f,m)||(g!=="ignore"&&!r.isTokenOnSameLine(d,f)&&!r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"badLinebreak",data:{operator:h},fix:b}):y==="before"&&r.isTokenOnSameLine(d,f)?e.report({node:c,loc:f.loc,messageId:"operatorAtBeginning",data:{operator:h},fix:b}):y==="after"&&r.isTokenOnSameLine(f,m)?e.report({node:c,loc:f.loc,messageId:"operatorAtEnd",data:{operator:h},fix:b}):y==="none"&&e.report({node:c,loc:f.loc,messageId:"noLinebreak",data:{operator:h},fix:b}))}function u(c){o(c,c.right,c.operator)}return{BinaryExpression:u,LogicalExpression:u,AssignmentExpression:u,VariableDeclarator(c){c.init&&o(c,c.init,"=")},PropertyDefinition(c){c.value&&o(c,c.value,"=")},ConditionalExpression(c){o(c,c.consequent,"?"),o(c,c.alternate,":")}}}},Rb}var Bb,wF;function $z(){if(wF)return Bb;wF=1;let r=Pe();return Bb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t={},s=e.options[0]||"always",n=e.options[1]||{};if(typeof s=="string"){let d=s==="always";t.blocks=d,t.switches=d,t.classes=d}else Object.hasOwn(s,"blocks")&&(t.blocks=s.blocks==="always"),Object.hasOwn(s,"switches")&&(t.switches=s.switches==="always"),Object.hasOwn(s,"classes")&&(t.classes=s.classes==="always");Object.hasOwn(n,"allowSingleLineBlocks")&&(t.allowSingleLineBlocks=n.allowSingleLineBlocks===!0);let i=e.sourceCode;function a(d){return d.type==="SwitchStatement"?i.getTokenBefore(d.cases[0]):d.type==="StaticBlock"?i.getFirstToken(d,{skip:1}):i.getFirstToken(d)}function l(d){return d.type==="Line"||d.type==="Block"}function o(d,m){return m.loc.start.line-d.loc.end.line>=2}function u(d){let m,g=d;do m=g,g=i.getTokenAfter(g,{includeComments:!0});while(l(g)&&g.loc.start.line===m.loc.end.line);return g}function c(d){let m=d,g;do g=m,m=i.getTokenBefore(m,{includeComments:!0});while(l(m)&&m.loc.end.line===g.loc.start.line);return m}function p(d){switch(d.type){case"BlockStatement":case"StaticBlock":return t.blocks;case"SwitchStatement":return t.switches;case"ClassBody":return t.classes;default:throw new Error("unreachable")}}function h(d){let m=a(d),g=u(m),y=i.getTokenBefore(g,{includeComments:!0}),b=i.getLastToken(d),v=c(b),S=i.getTokenAfter(v,{includeComments:!0}),C=o(y,g),O=o(v,S);t.allowSingleLineBlocks&&r.isTokenOnSameLine(y,S)||(p(d)?(C||e.report({node:d,loc:{start:y.loc.start,end:g.loc.start},fix(w){return w.insertTextAfter(y,` +`)},messageId:"alwaysPadBlock"}),O||e.report({node:d,loc:{end:S.loc.start,start:v.loc.end},fix(w){return w.insertTextBefore(S,` +`)},messageId:"alwaysPadBlock"})):(C&&e.report({node:d,loc:{start:y.loc.start,end:g.loc.start},fix(w){return w.replaceTextRange([y.range[1],g.range[0]-g.loc.start.column],` +`)},messageId:"neverPadBlock"}),O&&e.report({node:d,loc:{end:S.loc.start,start:v.loc.end},messageId:"neverPadBlock",fix(w){return w.replaceTextRange([v.range[1],S.range[0]-S.loc.start.column],` +`)}})))}let f={};return Object.hasOwn(t,"switches")&&(f.SwitchStatement=function(d){d.cases.length!==0&&h(d)}),Object.hasOwn(t,"blocks")&&(f.BlockStatement=function(d){d.body.length!==0&&h(d)},f.StaticBlock=f.BlockStatement),Object.hasOwn(t,"classes")&&(f.ClassBody=function(d){d.body.length!==0&&h(d)}),f}},Bb}var Nb,kF;function Mz(){if(kF)return Nb;kF=1;let r=Pe(),e=`[${Array.from(r.LINEBREAKS).join("")}]`,t=new RegExp(String.raw`^(\s*?${e})\s*${e}(\s*;?)$`,"u"),s=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,n=/^require\(/u;function i(b){return{test:(v,S)=>S.getFirstToken(v).value===b}}function a(b){return{test:(v,S)=>v.loc.start.line===v.loc.end.line&&S.getFirstToken(v).value===b}}function l(b){return{test:(v,S)=>v.loc.start.line!==v.loc.end.line&&S.getFirstToken(v).value===b}}function o(b){return{test:v=>v.type===b}}function u(b){if(b.type==="ExpressionStatement"){let v=r.skipChainExpression(b.expression);return v.type==="UnaryExpression"&&(v=r.skipChainExpression(v.argument)),v.type==="CallExpression"&&r.isFunction(v.callee)}return!1}function c(b,v){if(v.type==="DoWhileStatement"&&v.body.type==="BlockStatement"||u(v))return!0;let S=b.getLastToken(v,r.isNotSemicolonToken),C=S&&r.isClosingBraceToken(S)?b.getNodeByRangeIndex(S.range[0]):null;return!!C&&(C.type==="BlockStatement"||C.type==="SwitchStatement")}function p(b,v){let S=b.getLastToken(v),C=b.getTokenBefore(S),O=b.getTokenAfter(S);return!!(C&&O&&C.range[0]>=v.range[0]&&r.isSemicolonToken(S)&&S.loc.start.line!==C.loc.end.line&&S.loc.end.line===O.loc.start.line)?C:S}function h(b,v,S){return v+S}function f(){}function d(b,v,S,C){C.length!==0&&b.report({node:S,messageId:"unexpectedBlankLine",fix(O){if(C.length>=2)return null;let w=C[0][0],E=C[0][1],k=w.range[1],A=E.range[0],D=b.sourceCode.text.slice(k,A).replace(t,h);return O.replaceTextRange([k,A],D)}})}function m(b,v,S,C){C.length>0||b.report({node:S,messageId:"expectedBlankLine",fix(O){let w=b.sourceCode,E=p(w,v),k=w.getFirstTokenBetween(E,S,{includeComments:!0,filter(D){return r.isTokenOnSameLine(E,D)?(E=D,!1):!0}})||S,A=r.isTokenOnSameLine(E,k)?` `:` -`;return E.insertTextAfter(w,T)}})}let g={any:{verify:f},never:{verify:d},always:{verify:m}},b={"*":{test:()=>!0},"block-like":{test:(O,S)=>c(S,O)},"cjs-export":{test:(O,S)=>O.type==="ExpressionStatement"&&O.expression.type==="AssignmentExpression"&&s.test(S.getText(O.expression.left))},"cjs-import":{test:(O,S)=>O.type==="VariableDeclaration"&&O.declarations.length>0&&!!O.declarations[0].init&&n.test(S.getText(O.declarations[0].init))},directive:{test:r.isDirective},expression:{test:O=>O.type==="ExpressionStatement"&&!r.isDirective(O)},iife:{test:u},"multiline-block-like":{test:(O,S)=>O.loc.start.line!==O.loc.end.line&&c(S,O)},"multiline-expression":{test:O=>O.loc.start.line!==O.loc.end.line&&O.type==="ExpressionStatement"&&!r.isDirective(O)},"multiline-const":l("const"),"multiline-let":l("let"),"multiline-var":l("var"),"singleline-const":a("const"),"singleline-let":a("let"),"singleline-var":a("var"),block:o("BlockStatement"),empty:o("EmptyStatement"),function:o("FunctionDeclaration"),break:i("break"),case:i("case"),class:i("class"),const:i("const"),continue:i("continue"),debugger:i("debugger"),default:i("default"),do:i("do"),export:i("export"),for:i("for"),if:i("if"),import:i("import"),let:i("let"),return:i("return"),switch:i("switch"),throw:i("throw"),try:i("try"),var:i("var"),while:i("while"),with:i("with")};return $b={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(g)},statementType:{anyOf:[{enum:Object.keys(b)},{type:"array",items:{enum:Object.keys(b)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(O){let S=O.sourceCode,C=O.options||[],k=null;function E(){k={upper:k,prevNode:null}}function A(){k=k.upper}function w(L,_){let B=L;for(;B.type==="LabeledStatement";)B=B.body;return Array.isArray(_)?_.some(w.bind(null,B)):b[_].test(B,S)}function P(L,_){for(let B=C.length-1;B>=0;--B){let Q=C[B];if(w(L,Q.prev)&&w(_,Q.next))return g[Q.blankLine]}return g.any}function T(L,_){let B=[],Q=p(S,L);if(_.loc.start.line-Q.loc.end.line>=2)do{let V=S.getTokenAfter(Q,{includeComments:!0});V.loc.start.line-Q.loc.end.line>=2&&B.push([Q,V]),Q=V}while(Q.range[0]<_.range[0]);return B}function I(L){let _=L.parent.type;if(!(r.STATEMENT_LIST_PARENTS.has(_)||_==="SwitchStatement"))return;let Q=k.prevNode;if(Q){let V=P(Q,L),R=T(Q,L);V.verify(O,Q,L,R)}k.prevNode=L}function F(L){I(L),E()}return{Program:E,BlockStatement:E,SwitchStatement:E,StaticBlock:E,"Program:exit":A,"BlockStatement:exit":A,"SwitchStatement:exit":A,"StaticBlock:exit":A,":statement":I,SwitchCase:F,"SwitchCase:exit":A}}},$b}var Mb,TF;function Qz(){if(TF)return Mb;TF=1;let r=De();function e(a){return a&&a.defs[0].type==="FunctionName"}function t(a,l,o){return a.meta.name===l&&a.property.name===o}function s(a){let l=a.variables;for(let o=0;ol.type==="Identifier")&&a.length!==new Set(a.map(l=>l.name)).size}return Mb={meta:{type:"suggestion",docs:{description:"Require using arrow functions for callbacks",recommended:!1,url:"https://eslint.org/docs/latest/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(a){let l=a.options[0]||{},o=l.allowUnboundThis!==!1,u=l.allowNamedFunctions,c=a.sourceCode,p=[];function h(){p.push({this:!1,super:!1,meta:!1})}function f(){return p.pop()}return{Program(){p=[]},ThisExpression(){let d=p.at(-1);d&&(d.this=!0)},Super(){let d=p.at(-1);d&&(d.super=!0)},MetaProperty(d){let m=p.at(-1);m&&t(d,"new","target")&&(m.meta=!0)},FunctionDeclaration:h,"FunctionDeclaration:exit":f,FunctionExpression:h,"FunctionExpression:exit"(d){let m=f();if(u&&d.id&&d.id.name||d.generator)return;let g=c.getDeclaredVariables(d)[0];if(e(g)&&g.references.length>0)return;let b=s(c.getScope(d));if(b&&b.references.length>0)return;let O=n(d);O.isCallback&&(!o||!m.this||O.isLexicalThis)&&!m.super&&!m.meta&&a.report({node:d,messageId:"preferArrowCallback",*fix(S){if(!O.isLexicalThis&&m.this||i(d.params))return;if(O.isLexicalThis){let w=d.parent;if(w.type!=="MemberExpression")return;let P=w.parent,T=c.getTokenAfter(w.object,r.isNotClosingParenToken),I=c.getLastToken(P);if(r.isParenthesised(c,w)||c.commentsExistBetween(T,I))return;yield S.removeRange([T.range[0],I.range[1]])}let C=c.getFirstToken(d,d.async?1:0),k=c.getTokenAfter(C,r.isOpeningParenToken),E=c.getTokenBefore(d.body);c.commentsExistBetween(C,k)?(yield S.remove(C),d.id&&(yield S.remove(d.id))):yield S.removeRange([C.range[0],k.range[0]]),yield S.insertTextAfter(E," =>");let A=O.isLexicalThis?d.parent.parent:d;A.type==="ChainExpression"&&(A=A.parent),A.parent.type!=="CallExpression"&&A.parent.type!=="ConditionalExpression"&&!r.isParenthesised(c,A)&&!r.isParenthesised(c,d)&&(yield S.insertTextBefore(A,"("),yield S.insertTextAfter(A,")"))}})}}}},Mb}var jb,DF;function Uz(){if(DF)return jb;DF=1;let r=Go(),e=De(),t=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,s=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,n=/^(?:VariableDeclarator|AssignmentExpression)$/u;function i(f){return f.parent.type==="ForStatement"&&f.parent.init===f}function a(f){let d=f.parent;for(;t.test(d.type);)d=d.parent;return d.type==="VariableDeclarator"||d.type==="AssignmentExpression"&&d.parent.type==="ExpressionStatement"&&s.test(d.parent.parent.type)}function l(f,d){if(d.through.some(g=>g.resolved&&g.resolved.name===f))return!0;let m=e.getVariableByName(d,f);return m!==null?m.defs.some(g=>g.type==="Parameter"):!1}function o(f){if(!f.isWrite())return null;let d=f.identifier.parent;for(;t.test(d.type);)d=d.parent;return n.test(d.type)?d:null}function u(f){switch(f.type){case"ObjectPattern":return f.properties.some(d=>d?u(d.argument||d.value):!1);case"ArrayPattern":return f.elements.some(d=>d?u(d):!1);case"AssignmentPattern":return u(f.left);case"MemberExpression":return!0}return!1}function c(f,d){if(f.eslintUsed&&f.scope.type==="global")return null;let m=null,g=!1,b=f.references;for(let S=0;SI.value).map(I=>I.value.name).some(I=>l(I,f.scope)),P=u(A)):A.type==="ArrayPattern"&&(w=A.elements.map(I=>I&&I.name).some(I=>l(I,f.scope)),P=u(A)),w||P)return null}m=C}else if(C.isRead()&&m===null){if(d)return null;g=!0}}return m!==null&&m.from===f.scope&&a(m.identifier)?g?f.defs[0].name:m.identifier:null}function p(f,d){let m=new Map;for(let g=0;gF.type.endsWith("Statement")),T=P===null;if(!T&&P.declarations.length>0){let F=P.declarations[0];if(F.init){let L=F.init.parent;L.type==="VariableDeclarator"&&(L.id.name!==k&&(k=L.id.name,S=0),L.id.type==="ObjectPattern"&&L.init.name!==k&&(k=L.init.name,S=0),L.id!==C&&(C=L.id,S=0))}}let I=P&&(P.parent.type==="ForInStatement"||P.parent.type==="ForOfStatement"||P.declarations.every(F=>F.init))&&w.length===A.length;if(!T&&P.declarations&&P.declarations.length!==1&&P&&P.declarations&&P.declarations.length>=1){S+=w.length;let F=0;P.declarations.forEach(L=>{L.id.type==="ObjectPattern"?F+=L.id.properties.length:L.id.type==="ArrayPattern"?F+=L.id.elements.length:F+=1}),I=I&&S===F}w.forEach(F=>{f.report({node:F,messageId:"useConst",data:F,fix:I?L=>{let _=m.getFirstToken(P,B=>B.value===P.kind);return new r(L,m).retainRange(P.range).replaceTextRange(_.range,"const")}:null})})}}return{"Program:exit"(){p(O,b).forEach(E)},VariableDeclaration(A){A.kind==="let"&&!i(A)&&O.push(...m.getDeclaredVariables(A))}}}},jb}var qb,_F;function Vz(){if(_F)return qb;_F=1;let r=De(),e=r.getPrecedence({type:"AssignmentExpression"});return qb={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=t.options[1]&&t.options[1].enforceForRenamedProperties,i={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};s&&(i=typeof s.array<"u"||typeof s.object<"u"?{VariableDeclarator:s,AssignmentExpression:s}:s);function a(d,m){return i&&i[d]&&i[d][m]}function l(d){return Number.isInteger(d.property.value)}function o(d,m,g){t.report({node:d,messageId:"preferDestructuring",data:{type:m},fix:g})}function u(d){return d.type==="VariableDeclarator"&&d.id.type==="Identifier"&&d.init.type==="MemberExpression"&&!d.init.computed&&d.init.property.type==="Identifier"&&d.id.name===d.init.property.name}function c(d,m){let g=m.init,b=t.sourceCode;if(b.getCommentsInside(m).length>b.getCommentsInside(g.object).length)return null;let O=b.getText(g.object);return r.getPrecedence(g.object)c(O,g):null;if(a(g.type,"object")&&n){o(g,"object",b);return}if(a(g.type,"object")){let O=m.property;(O.type==="Literal"&&d.name===O.value||O.type==="Identifier"&&d.name===O.name&&!m.computed)&&o(g,"object",b)}}function h(d){d.init&&d.init.type==="MemberExpression"&&p(d.id,d.init,d)}function f(d){d.operator==="="&&p(d.left,d.right,d)}return{VariableDeclarator:h,AssignmentExpression:f}}},qb}var Qb,IF;function Wz(){if(IF)return Qb;IF=1;let r=De(),{CALL:e,ReferenceTracker:t}=mr(),s=r.getPrecedence({type:"BinaryExpression",operator:"**"});function n(o){return r.getPrecedence(o)<=s||o.type==="AwaitExpression"||o.type==="UnaryExpression"}function i(o){return r.getPrecedence(o)=s)&&!(c.type==="BinaryExpression"&&c.operator==="**"&&c.right===o)&&!((c.type==="CallExpression"||c.type==="NewExpression")&&c.arguments.includes(o))&&!(c.type==="MemberExpression"&&c.computed&&c.property===o)&&c.type!=="ArrayExpression")&&!r.isParenthesised(u,o)}function l(o,u){return u?`(${o})`:o}return Qb={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(o){let u=o.sourceCode;function c(p){o.report({node:p,messageId:"useExponentiation",fix(h){if(p.arguments.length!==2||p.arguments.some(P=>P.type==="SpreadElement")||u.getCommentsInside(p).length>0)return null;let f=p.arguments[0],d=p.arguments[1],m=u.getText(f),g=u.getText(d),b=n(f),O=i(d),S=a(p,u),C="",k="";if(!S){if(!b){let P=u.getFirstToken(f),T=u.getTokenBefore(p);T&&T.range[1]===p.range[0]&&!r.canTokensBeAdjacent(T,P)&&(C=" ")}if(!O){let P=u.getLastToken(d),T=u.getTokenAfter(p);T&&p.range[1]===T.range[0]&&!r.canTokensBeAdjacent(P,T)&&(k=" ")}}let E=l(m,b),A=l(g,O),w=l(`${E}**${A}`,S);return h.replaceText(p,`${C}${w}${k}`)}})}return{Program(p){let h=u.getScope(p),f=new t(h),d={Math:{pow:{[e]:!0}}};for(let{node:m}of f.iterateGlobalReferences(d))c(m)}}}},Qb}var Ub,FF;function Zz(){if(FF)return Ub;FF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=mr(),n=Yn(),i=new n.RegExpParser;function a(l,o,u,c){switch(c.type){case"Literal":if(typeof c.value=="string"&&u.includes("\\"))return null;break;case"TemplateLiteral":if(c.expressions.length||u.slice(1,-1)!==o)return null;break;default:return null}let p=c.range[0]+l+2;return[{fix(h){let d=(o.match(/temp\d+/gu)||[]).reduce((m,g)=>Math.max(m,Number(g.slice(4))),0);return h.insertTextBeforeRange([p,p],`?`)},messageId:"addGroupName"},{fix(h){return h.insertTextBeforeRange([p,p],"?:")},messageId:"addNonCapture"}]}return Ub={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(l){let o=l.sourceCode;function u(c,p,h,f){let d;try{d=i.parsePattern(c,0,c.length,{unicode:!!(f&&f.includes("u")),unicodeSets:!!(f&&f.includes("v"))})}catch{return}n.visitRegExpAST(d,{onCapturingGroupEnter(m){if(!m.name){let g=o.getText(h),b=a(m.start,c,g,h);l.report({node:p,messageId:"required",data:{group:m.raw},suggest:b})}}})}return{Literal(c){c.regex&&u(c.regex.pattern,c,c,c.regex.flags)},Program(c){let p=o.getScope(c),h=new t(p),f={RegExp:{[r]:!0,[e]:!0}};for(let{node:d}of h.iterateGlobalReferences(f)){let m=s(d.arguments[0]),g=s(d.arguments[1]);m&&u(m,d,d.arguments[0],g)}}}}},Ub}var Vb,RF;function zz(){if(RF)return Vb;RF=1;let r=De(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function t(s){return r.isSpecificId(s,"parseInt")||r.isSpecificMemberAccess(s,"Number","parseInt")}return Vb={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/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(s){let n=s.sourceCode;return{"CallExpression[arguments.length=2]"(i){let[a,l]=i.arguments,o=r.getStaticStringValue(a),u=l.value;if(o!==null&&r.isStringLiteral(a)&&l.type==="Literal"&&typeof u=="number"&&e.has(u)&&t(i.callee)){let{system:c,literalPrefix:p}=e.get(u);s.report({node:i,messageId:"useLiteral",data:{system:c,functionName:n.getText(i.callee)},fix(h){if(n.getCommentsInside(i).length)return null;let f=`${p}${o}`;if(+f!==parseInt(o,u))return null;let d=n.getTokenBefore(i),m=n.getTokenAfter(i),g="",b="";return d&&d.range[1]===i.range[0]&&!r.canTokensBeAdjacent(d,f)&&(g=" "),m&&i.range[1]===m.range[0]&&!r.canTokensBeAdjacent(f,m)&&(b=" "),h.replaceText(i,`${g}${f}${b}`)}})}}}}},Vb}var Wb,BF;function Xz(){if(BF)return Wb;BF=1;let r=De();function e(t){if(t.object.type==="ObjectExpression"&&t.object.properties.length===0)return!0;let s=t.object.type==="MemberExpression"&&r.getStaticPropertyName(t.object)==="prototype"?t.object.object:t.object;return s.type==="Identifier"&&s.name==="Object"}return Wb={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/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(t){let s=t.sourceCode;return{CallExpression(n){if(!(n.callee.type==="MemberExpression"&&n.callee.object.type==="MemberExpression"))return;let i=r.getStaticPropertyName(n.callee),a=r.getStaticPropertyName(n.callee.object),l=e(n.callee.object),o=s.getScope(n),u=r.getVariableByName(o,"Object");i==="call"&&a==="hasOwnProperty"&&l&&u&&u.scope.type==="global"&&t.report({node:n,messageId:"useHasOwn",fix(c){if(s.getCommentsInside(n.callee).length>0)return null;let p=s.getTokenBefore(n.callee,{includeComments:!0});return p&&p.range[1]===n.callee.range[0]&&!r.canTokensBeAdjacent(p,"Object.hasOwn")?c.replaceText(n.callee," Object.hasOwn"):c.replaceText(n.callee,"Object.hasOwn")}})}}}},Wb}var Zb,NF;function Gz(){if(NF)return Zb;NF=1;let{CALL:r,ReferenceTracker:e}=mr(),{isCommaToken:t,isOpeningParenToken:s,isClosingParenToken:n,isParenthesised:i}=De(),a=/\s/u;function l(b){return b.arguments.some(O=>O.type==="SpreadElement")}function o(b){return b.type==="Property"&&(b.kind==="get"||b.kind==="set")}function u(b){return b.properties.some(o)}function c(b){return b.arguments.filter(O=>O.type==="ObjectExpression").some(u)}function p(b,O){let S=b.parent;switch(S.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return S.left===b&&!i(O,b);default:return!i(O,b)}}function h(b,O){switch(b.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!i(O,b);default:return!1}}function f(b,O,S){let C=[S.getFirstToken(b),S.getLastToken(b)],k=S.getTokenBefore(b),E=S.getTokenAfter(b);for(;k&&E&&k.range[0]>O.range[0]&&s(k)&&n(E);)C.push(k,E),k=S.getTokenBefore(k),E=S.getTokenAfter(E);return C.sort((A,w)=>A.range[0]-w.range[0])}function d(b,O){let S=O.text,C=b.range[0];{let k=O.getTokenBefore(b,{includeComments:!0});if(k&&k.type==="Line")return C}for(;a.test(S[C-1]||"");)C-=1;return C}function m(b,O){let S=O.text,C=b.range[1];for(;a.test(S[C]||"");)C+=1;return C}function g(b,O){return function*(S){let C=O.getTokenAfter(b.callee,s),k=O.getLastToken(b);yield S.removeRange([b.range[0],C.range[0]]),p(b,O)?(yield S.replaceText(C,"({"),yield S.replaceText(k,"})")):(yield S.replaceText(C,"{"),yield S.replaceText(k,"}"));for(let E of b.arguments){let A=f(E,C,O),w=A.shift(),P=A.pop();if(E.type==="ObjectExpression"){let T=O.getLastToken(E,1),I=O.getTokenAfter(P);for(let _ of A)yield S.remove(_);let F=[w.range[0],m(w,O)],L=[Math.max(d(P,O),F[1]),P.range[1]];yield S.removeRange(F),yield S.removeRange(L),(E.properties.length===0||t(T))&&t(I)&&(yield S.remove(I))}else h(E,O)?(yield S.insertTextBefore(w,"...("),yield S.insertTextAfter(P,")")):yield S.insertTextBefore(w,"...")}}}return Zb={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/latest/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(b){let O=b.sourceCode;return{Program(S){let C=O.getScope(S),k=new e(C),E={Object:{assign:{[r]:!0}}};for(let{node:A}of k.iterateGlobalReferences(E))if(A.arguments.length>=1&&A.arguments[0].type==="ObjectExpression"&&!l(A)&&!(A.arguments.length>1&&c(A))){let w=A.arguments.length===1?"useLiteralMessage":"useSpreadMessage",P=g(A,O);b.report({node:A,messageId:w,fix:P})}}}}},Zb}var zb,LF;function Yz(){if(LF)return zb;LF=1;let r=De();return zb={meta:{type:"suggestion",docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options.length&&e.options[0].allowEmptyReject,s=e.sourceCode;function n(a){!a.arguments.length&&t||(!a.arguments.length||!r.couldBeError(a.arguments[0])||a.arguments[0].type==="Identifier"&&a.arguments[0].name==="undefined")&&e.report({node:a,messageId:"rejectAnError"})}function i(a){return r.isSpecificMemberAccess(a.callee,"Promise","reject")}return{CallExpression(a){i(a)&&n(a)},"NewExpression:exit"(a){a.callee.type==="Identifier"&&a.callee.name==="Promise"&&a.arguments.length&&r.isFunction(a.arguments[0])&&a.arguments[0].params.length>1&&a.arguments[0].params[1].type==="Identifier"&&s.getDeclaredVariables(a.arguments[0]).find(l=>l.name===a.arguments[0].params[1].name).references.filter(l=>l.isRead()).filter(l=>l.identifier.parent.type==="CallExpression"&&l.identifier===l.identifier.parent.callee).forEach(l=>n(l.identifier.parent))}}}},zb}var Xb,$F;function Hz(){return $F||($F=1,Xb={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/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(r){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"},t={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"},s=(r.options[0]||{}).exceptions||[];function n(i,a,l){r.report({node:i,messageId:"preferReflect",data:{existing:a,substitute:l}})}return{CallExpression(i){let a=(i.callee.property||{}).name,l=(i.callee.object||{}).name==="Reflect",o=Object.hasOwn(t,a),u=s.includes(a);o&&!l&&!u&&n(i,e[a],t[a])},UnaryExpression(i){let a=i.operator==="delete",l=i.argument.type==="Identifier",o=s.includes("delete");a&&!l&&!o&&n(i,"the delete keyword","Reflect.deleteProperty")}}}}),Xb}var Gb,MF;function Kz(){if(MF)return Gb;MF=1;let r=De(),{CALL:e,CONSTRUCT:t,ReferenceTracker:s,findVariable:n}=mr(),{RegExpValidator:i,visitRegExpAST:a,RegExpParser:l}=Yn(),{canTokensBeAdjacent:o}=De(),{REGEXPP_LATEST_ECMA_VERSION:u}=MO();function c(f){return f.type==="Literal"&&typeof f.value=="string"}function p(f){return f.type==="Literal"&&Object.hasOwn(f,"regex")}let h=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return Gb={meta:{type:"suggestion",docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/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.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(f){let[{disallowRedundantWrapping:d=!1}={}]=f.options,m=f.sourceCode;function g(_){let B=m.getScope(_),Q=n(B,_);return Q!==null&&Q.scope.type==="global"&&Q.defs.length===0}function b(_){return _.type==="TaggedTemplateExpression"&&r.isSpecificMemberAccess(_.tag,"String","raw")&&g(r.skipChainExpression(_.tag).object)&&r.isStaticTemplateLiteral(_.quasi)}function O(_){return c(_)?_.value:r.isStaticTemplateLiteral(_)?_.quasis[0].value.cooked:b(_)?_.quasi.quasis[0].value.raw:null}function S(_){return c(_)||r.isStaticTemplateLiteral(_)||b(_)}function C(_){let B=_.arguments;return!!((B.length===1||B.length===2)&&B.every(S))}function k(_){let B=_.arguments;return!!(B.length===1&&p(B[0])||B.length===2&&p(B[0])&&S(B[1]))}function E(_){return _<=5?5:Math.min(_,u)}let A=E(f.languageOptions.ecmaVersion);function w(_){switch(_){case` +`;return O.insertTextAfter(E,A)}})}let g={any:{verify:f},never:{verify:d},always:{verify:m}},y={"*":{test:()=>!0},"block-like":{test:(b,v)=>c(v,b)},"cjs-export":{test:(b,v)=>b.type==="ExpressionStatement"&&b.expression.type==="AssignmentExpression"&&s.test(v.getText(b.expression.left))},"cjs-import":{test:(b,v)=>b.type==="VariableDeclaration"&&b.declarations.length>0&&!!b.declarations[0].init&&n.test(v.getText(b.declarations[0].init))},directive:{test:r.isDirective},expression:{test:b=>b.type==="ExpressionStatement"&&!r.isDirective(b)},iife:{test:u},"multiline-block-like":{test:(b,v)=>b.loc.start.line!==b.loc.end.line&&c(v,b)},"multiline-expression":{test:b=>b.loc.start.line!==b.loc.end.line&&b.type==="ExpressionStatement"&&!r.isDirective(b)},"multiline-const":l("const"),"multiline-let":l("let"),"multiline-var":l("var"),"singleline-const":a("const"),"singleline-let":a("let"),"singleline-var":a("var"),block:o("BlockStatement"),empty:o("EmptyStatement"),function:o("FunctionDeclaration"),break:i("break"),case:i("case"),class:i("class"),const:i("const"),continue:i("continue"),debugger:i("debugger"),default:i("default"),do:i("do"),export:i("export"),for:i("for"),if:i("if"),import:i("import"),let:i("let"),return:i("return"),switch:i("switch"),throw:i("throw"),try:i("try"),var:i("var"),while:i("while"),with:i("with")};return Nb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(g)},statementType:{anyOf:[{enum:Object.keys(y)},{type:"array",items:{enum:Object.keys(y)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(b){let v=b.sourceCode,S=b.options||[],C=null;function O(){C={upper:C,prevNode:null}}function w(){C=C.upper}function E(B,T){let F=B;for(;F.type==="LabeledStatement";)F=F.body;return Array.isArray(T)?T.some(E.bind(null,F)):y[T].test(F,v)}function k(B,T){for(let F=S.length-1;F>=0;--F){let j=S[F];if(E(B,j.prev)&&E(T,j.next))return g[j.blankLine]}return g.any}function A(B,T){let F=[],j=p(v,B);if(T.loc.start.line-j.loc.end.line>=2)do{let Q=v.getTokenAfter(j,{includeComments:!0});Q.loc.start.line-j.loc.end.line>=2&&F.push([j,Q]),j=Q}while(j.range[0]l.type==="Identifier")&&a.length!==new Set(a.map(l=>l.name)).size}return Lb={meta:{type:"suggestion",docs:{description:"Require using arrow functions for callbacks",recommended:!1,url:"https://eslint.org/docs/latest/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(a){let l=a.options[0]||{},o=l.allowUnboundThis!==!1,u=l.allowNamedFunctions,c=a.sourceCode,p=[];function h(){p.push({this:!1,super:!1,meta:!1})}function f(){return p.pop()}return{Program(){p=[]},ThisExpression(){let d=p.at(-1);d&&(d.this=!0)},Super(){let d=p.at(-1);d&&(d.super=!0)},MetaProperty(d){let m=p.at(-1);m&&t(d,"new","target")&&(m.meta=!0)},FunctionDeclaration:h,"FunctionDeclaration:exit":f,FunctionExpression:h,"FunctionExpression:exit"(d){let m=f();if(u&&d.id&&d.id.name||d.generator)return;let g=c.getDeclaredVariables(d)[0];if(e(g)&&g.references.length>0)return;let y=s(c.getScope(d));if(y&&y.references.length>0)return;let b=n(d);b.isCallback&&(!o||!m.this||b.isLexicalThis)&&!m.super&&!m.meta&&a.report({node:d,messageId:"preferArrowCallback",*fix(v){if(!b.isLexicalThis&&m.this||i(d.params))return;if(b.isLexicalThis){let E=d.parent;if(E.type!=="MemberExpression")return;let k=E.parent,A=c.getTokenAfter(E.object,r.isNotClosingParenToken),D=c.getLastToken(k);if(r.isParenthesised(c,E)||c.commentsExistBetween(A,D))return;yield v.removeRange([A.range[0],D.range[1]])}let S=c.getFirstToken(d,d.async?1:0),C=c.getTokenAfter(S,r.isOpeningParenToken),O=c.getTokenBefore(d.body);c.commentsExistBetween(S,C)?(yield v.remove(S),d.id&&(yield v.remove(d.id))):yield v.removeRange([S.range[0],C.range[0]]),yield v.insertTextAfter(O," =>");let w=b.isLexicalThis?d.parent.parent:d;w.type==="ChainExpression"&&(w=w.parent),w.parent.type!=="CallExpression"&&w.parent.type!=="ConditionalExpression"&&!r.isParenthesised(c,w)&&!r.isParenthesised(c,d)&&(yield v.insertTextBefore(w,"("),yield v.insertTextAfter(w,")"))}})}}}},Lb}var $b,PF;function qz(){if(PF)return $b;PF=1;let r=zo(),e=Pe(),t=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,s=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,n=/^(?:VariableDeclarator|AssignmentExpression)$/u;function i(f){return f.parent.type==="ForStatement"&&f.parent.init===f}function a(f){let d=f.parent;for(;t.test(d.type);)d=d.parent;return d.type==="VariableDeclarator"||d.type==="AssignmentExpression"&&d.parent.type==="ExpressionStatement"&&s.test(d.parent.parent.type)}function l(f,d){if(d.through.some(g=>g.resolved&&g.resolved.name===f))return!0;let m=e.getVariableByName(d,f);return m!==null?m.defs.some(g=>g.type==="Parameter"):!1}function o(f){if(!f.isWrite())return null;let d=f.identifier.parent;for(;t.test(d.type);)d=d.parent;return n.test(d.type)?d:null}function u(f){switch(f.type){case"ObjectPattern":return f.properties.some(d=>d?u(d.argument||d.value):!1);case"ArrayPattern":return f.elements.some(d=>d?u(d):!1);case"AssignmentPattern":return u(f.left);case"MemberExpression":return!0}return!1}function c(f,d){if(f.eslintUsed&&f.scope.type==="global")return null;let m=null,g=!1,y=f.references;for(let v=0;vD.value).map(D=>D.value.name).some(D=>l(D,f.scope)),k=u(w)):w.type==="ArrayPattern"&&(E=w.elements.map(D=>D&&D.name).some(D=>l(D,f.scope)),k=u(w)),E||k)return null}m=S}else if(S.isRead()&&m===null){if(d)return null;g=!0}}return m!==null&&m.from===f.scope&&a(m.identifier)?g?f.defs[0].name:m.identifier:null}function p(f,d){let m=new Map;for(let g=0;g_.type.endsWith("Statement")),A=k===null;if(!A&&k.declarations.length>0){let _=k.declarations[0];if(_.init){let B=_.init.parent;B.type==="VariableDeclarator"&&(B.id.name!==C&&(C=B.id.name,v=0),B.id.type==="ObjectPattern"&&B.init.name!==C&&(C=B.init.name,v=0),B.id!==S&&(S=B.id,v=0))}}let D=k&&(k.parent.type==="ForInStatement"||k.parent.type==="ForOfStatement"||k.declarations.every(_=>_.init))&&E.length===w.length;if(!A&&k.declarations&&k.declarations.length!==1&&k&&k.declarations&&k.declarations.length>=1){v+=E.length;let _=0;k.declarations.forEach(B=>{B.id.type==="ObjectPattern"?_+=B.id.properties.length:B.id.type==="ArrayPattern"?_+=B.id.elements.length:_+=1}),D=D&&v===_}E.forEach(_=>{f.report({node:_,messageId:"useConst",data:_,fix:D?B=>{let T=m.getFirstToken(k,F=>F.value===k.kind);return new r(B,m).retainRange(k.range).replaceTextRange(T.range,"const")}:null})})}}return{"Program:exit"(){p(b,y).forEach(O)},VariableDeclaration(w){w.kind==="let"&&!i(w)&&b.push(...m.getDeclaredVariables(w))}}}},$b}var Mb,TF;function Qz(){if(TF)return Mb;TF=1;let r=Pe(),e=r.getPrecedence({type:"AssignmentExpression"});return Mb={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=t.options[1]&&t.options[1].enforceForRenamedProperties,i={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};s&&(i=typeof s.array<"u"||typeof s.object<"u"?{VariableDeclarator:s,AssignmentExpression:s}:s);function a(d,m){return i&&i[d]&&i[d][m]}function l(d){return Number.isInteger(d.property.value)}function o(d,m,g){t.report({node:d,messageId:"preferDestructuring",data:{type:m},fix:g})}function u(d){return d.type==="VariableDeclarator"&&d.id.type==="Identifier"&&d.init.type==="MemberExpression"&&!d.init.computed&&d.init.property.type==="Identifier"&&d.id.name===d.init.property.name}function c(d,m){let g=m.init,y=t.sourceCode;if(y.getCommentsInside(m).length>y.getCommentsInside(g.object).length)return null;let b=y.getText(g.object);return r.getPrecedence(g.object)c(b,g):null;if(a(g.type,"object")&&n){o(g,"object",y);return}if(a(g.type,"object")){let b=m.property;(b.type==="Literal"&&d.name===b.value||b.type==="Identifier"&&d.name===b.name&&!m.computed)&&o(g,"object",y)}}function h(d){d.init&&d.init.type==="MemberExpression"&&p(d.id,d.init,d)}function f(d){d.operator==="="&&p(d.left,d.right,d)}return{VariableDeclarator:h,AssignmentExpression:f}}},Mb}var jb,DF;function Uz(){if(DF)return jb;DF=1;let r=Pe(),{CALL:e,ReferenceTracker:t}=hr(),s=r.getPrecedence({type:"BinaryExpression",operator:"**"});function n(o){return r.getPrecedence(o)<=s||o.type==="AwaitExpression"||o.type==="UnaryExpression"}function i(o){return r.getPrecedence(o)=s)&&!(c.type==="BinaryExpression"&&c.operator==="**"&&c.right===o)&&!((c.type==="CallExpression"||c.type==="NewExpression")&&c.arguments.includes(o))&&!(c.type==="MemberExpression"&&c.computed&&c.property===o)&&c.type!=="ArrayExpression")&&!r.isParenthesised(u,o)}function l(o,u){return u?`(${o})`:o}return jb={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(o){let u=o.sourceCode;function c(p){o.report({node:p,messageId:"useExponentiation",fix(h){if(p.arguments.length!==2||p.arguments.some(k=>k.type==="SpreadElement")||u.getCommentsInside(p).length>0)return null;let f=p.arguments[0],d=p.arguments[1],m=u.getText(f),g=u.getText(d),y=n(f),b=i(d),v=a(p,u),S="",C="";if(!v){if(!y){let k=u.getFirstToken(f),A=u.getTokenBefore(p);A&&A.range[1]===p.range[0]&&!r.canTokensBeAdjacent(A,k)&&(S=" ")}if(!b){let k=u.getLastToken(d),A=u.getTokenAfter(p);A&&p.range[1]===A.range[0]&&!r.canTokensBeAdjacent(k,A)&&(C=" ")}}let O=l(m,y),w=l(g,b),E=l(`${O}**${w}`,v);return h.replaceText(p,`${S}${E}${C}`)}})}return{Program(p){let h=u.getScope(p),f=new t(h),d={Math:{pow:{[e]:!0}}};for(let{node:m}of f.iterateGlobalReferences(d))c(m)}}}},jb}var qb,_F;function Vz(){if(_F)return qb;_F=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Xn(),i=new n.RegExpParser;function a(l,o,u,c){switch(c.type){case"Literal":if(typeof c.value=="string"&&u.includes("\\"))return null;break;case"TemplateLiteral":if(c.expressions.length||u.slice(1,-1)!==o)return null;break;default:return null}let p=c.range[0]+l+2;return[{fix(h){let d=(o.match(/temp\d+/gu)||[]).reduce((m,g)=>Math.max(m,Number(g.slice(4))),0);return h.insertTextBeforeRange([p,p],`?`)},messageId:"addGroupName"},{fix(h){return h.insertTextBeforeRange([p,p],"?:")},messageId:"addNonCapture"}]}return qb={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(l){let o=l.sourceCode;function u(c,p,h,f){let d;try{d=i.parsePattern(c,0,c.length,{unicode:!!(f&&f.includes("u")),unicodeSets:!!(f&&f.includes("v"))})}catch{return}n.visitRegExpAST(d,{onCapturingGroupEnter(m){if(!m.name){let g=o.getText(h),y=a(m.start,c,g,h);l.report({node:p,messageId:"required",data:{group:m.raw},suggest:y})}}})}return{Literal(c){c.regex&&u(c.regex.pattern,c,c,c.regex.flags)},Program(c){let p=o.getScope(c),h=new t(p),f={RegExp:{[r]:!0,[e]:!0}};for(let{node:d}of h.iterateGlobalReferences(f)){let m=s(d.arguments[0]),g=s(d.arguments[1]);m&&u(m,d,d.arguments[0],g)}}}}},qb}var Qb,IF;function Wz(){if(IF)return Qb;IF=1;let r=Pe(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function t(s){return r.isSpecificId(s,"parseInt")||r.isSpecificMemberAccess(s,"Number","parseInt")}return Qb={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/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(s){let n=s.sourceCode;return{"CallExpression[arguments.length=2]"(i){let[a,l]=i.arguments,o=r.getStaticStringValue(a),u=l.value;if(o!==null&&r.isStringLiteral(a)&&l.type==="Literal"&&typeof u=="number"&&e.has(u)&&t(i.callee)){let{system:c,literalPrefix:p}=e.get(u);s.report({node:i,messageId:"useLiteral",data:{system:c,functionName:n.getText(i.callee)},fix(h){if(n.getCommentsInside(i).length)return null;let f=`${p}${o}`;if(+f!==parseInt(o,u))return null;let d=n.getTokenBefore(i),m=n.getTokenAfter(i),g="",y="";return d&&d.range[1]===i.range[0]&&!r.canTokensBeAdjacent(d,f)&&(g=" "),m&&i.range[1]===m.range[0]&&!r.canTokensBeAdjacent(f,m)&&(y=" "),h.replaceText(i,`${g}${f}${y}`)}})}}}}},Qb}var Ub,FF;function Zz(){if(FF)return Ub;FF=1;let r=Pe();function e(t){if(t.object.type==="ObjectExpression"&&t.object.properties.length===0)return!0;let s=t.object.type==="MemberExpression"&&r.getStaticPropertyName(t.object)==="prototype"?t.object.object:t.object;return s.type==="Identifier"&&s.name==="Object"}return Ub={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/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(t){let s=t.sourceCode;return{CallExpression(n){if(!(n.callee.type==="MemberExpression"&&n.callee.object.type==="MemberExpression"))return;let i=r.getStaticPropertyName(n.callee),a=r.getStaticPropertyName(n.callee.object),l=e(n.callee.object),o=s.getScope(n),u=r.getVariableByName(o,"Object");i==="call"&&a==="hasOwnProperty"&&l&&u&&u.scope.type==="global"&&t.report({node:n,messageId:"useHasOwn",fix(c){if(s.getCommentsInside(n.callee).length>0)return null;let p=s.getTokenBefore(n.callee,{includeComments:!0});return p&&p.range[1]===n.callee.range[0]&&!r.canTokensBeAdjacent(p,"Object.hasOwn")?c.replaceText(n.callee," Object.hasOwn"):c.replaceText(n.callee,"Object.hasOwn")}})}}}},Ub}var Vb,RF;function zz(){if(RF)return Vb;RF=1;let{CALL:r,ReferenceTracker:e}=hr(),{isCommaToken:t,isOpeningParenToken:s,isClosingParenToken:n,isParenthesised:i}=Pe(),a=/\s/u;function l(y){return y.arguments.some(b=>b.type==="SpreadElement")}function o(y){return y.type==="Property"&&(y.kind==="get"||y.kind==="set")}function u(y){return y.properties.some(o)}function c(y){return y.arguments.filter(b=>b.type==="ObjectExpression").some(u)}function p(y,b){let v=y.parent;switch(v.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return v.left===y&&!i(b,y);default:return!i(b,y)}}function h(y,b){switch(y.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!i(b,y);default:return!1}}function f(y,b,v){let S=[v.getFirstToken(y),v.getLastToken(y)],C=v.getTokenBefore(y),O=v.getTokenAfter(y);for(;C&&O&&C.range[0]>b.range[0]&&s(C)&&n(O);)S.push(C,O),C=v.getTokenBefore(C),O=v.getTokenAfter(O);return S.sort((w,E)=>w.range[0]-E.range[0])}function d(y,b){let v=b.text,S=y.range[0];{let C=b.getTokenBefore(y,{includeComments:!0});if(C&&C.type==="Line")return S}for(;a.test(v[S-1]||"");)S-=1;return S}function m(y,b){let v=b.text,S=y.range[1];for(;a.test(v[S]||"");)S+=1;return S}function g(y,b){return function*(v){let S=b.getTokenAfter(y.callee,s),C=b.getLastToken(y);yield v.removeRange([y.range[0],S.range[0]]),p(y,b)?(yield v.replaceText(S,"({"),yield v.replaceText(C,"})")):(yield v.replaceText(S,"{"),yield v.replaceText(C,"}"));for(let O of y.arguments){let w=f(O,S,b),E=w.shift(),k=w.pop();if(O.type==="ObjectExpression"){let A=b.getLastToken(O,1),D=b.getTokenAfter(k);for(let T of w)yield v.remove(T);let _=[E.range[0],m(E,b)],B=[Math.max(d(k,b),_[1]),k.range[1]];yield v.removeRange(_),yield v.removeRange(B),(O.properties.length===0||t(A))&&t(D)&&(yield v.remove(D))}else h(O,b)?(yield v.insertTextBefore(E,"...("),yield v.insertTextAfter(k,")")):yield v.insertTextBefore(E,"...")}}}return Vb={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/latest/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(y){let b=y.sourceCode;return{Program(v){let S=b.getScope(v),C=new e(S),O={Object:{assign:{[r]:!0}}};for(let{node:w}of C.iterateGlobalReferences(O))if(w.arguments.length>=1&&w.arguments[0].type==="ObjectExpression"&&!l(w)&&!(w.arguments.length>1&&c(w))){let E=w.arguments.length===1?"useLiteralMessage":"useSpreadMessage",k=g(w,b);y.report({node:w,messageId:E,fix:k})}}}}},Vb}var Wb,BF;function Xz(){if(BF)return Wb;BF=1;let r=Pe();return Wb={meta:{type:"suggestion",docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options.length&&e.options[0].allowEmptyReject,s=e.sourceCode;function n(a){!a.arguments.length&&t||(!a.arguments.length||!r.couldBeError(a.arguments[0])||a.arguments[0].type==="Identifier"&&a.arguments[0].name==="undefined")&&e.report({node:a,messageId:"rejectAnError"})}function i(a){return r.isSpecificMemberAccess(a.callee,"Promise","reject")}return{CallExpression(a){i(a)&&n(a)},"NewExpression:exit"(a){a.callee.type==="Identifier"&&a.callee.name==="Promise"&&a.arguments.length&&r.isFunction(a.arguments[0])&&a.arguments[0].params.length>1&&a.arguments[0].params[1].type==="Identifier"&&s.getDeclaredVariables(a.arguments[0]).find(l=>l.name===a.arguments[0].params[1].name).references.filter(l=>l.isRead()).filter(l=>l.identifier.parent.type==="CallExpression"&&l.identifier===l.identifier.parent.callee).forEach(l=>n(l.identifier.parent))}}}},Wb}var Zb,NF;function Gz(){return NF||(NF=1,Zb={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/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(r){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"},t={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"},s=(r.options[0]||{}).exceptions||[];function n(i,a,l){r.report({node:i,messageId:"preferReflect",data:{existing:a,substitute:l}})}return{CallExpression(i){let a=(i.callee.property||{}).name,l=(i.callee.object||{}).name==="Reflect",o=Object.hasOwn(t,a),u=s.includes(a);o&&!l&&!u&&n(i,e[a],t[a])},UnaryExpression(i){let a=i.operator==="delete",l=i.argument.type==="Identifier",o=s.includes("delete");a&&!l&&!o&&n(i,"the delete keyword","Reflect.deleteProperty")}}}}),Zb}var zb,LF;function Yz(){if(LF)return zb;LF=1;let r=Pe(),{CALL:e,CONSTRUCT:t,ReferenceTracker:s,findVariable:n}=hr(),{RegExpValidator:i,visitRegExpAST:a,RegExpParser:l}=Xn(),{canTokensBeAdjacent:o}=Pe(),{REGEXPP_LATEST_ECMA_VERSION:u}=LO();function c(f){return f.type==="Literal"&&typeof f.value=="string"}function p(f){return f.type==="Literal"&&Object.hasOwn(f,"regex")}let h=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return zb={meta:{type:"suggestion",docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/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.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(f){let[{disallowRedundantWrapping:d=!1}={}]=f.options,m=f.sourceCode;function g(T){let F=m.getScope(T),j=n(F,T);return j!==null&&j.scope.type==="global"&&j.defs.length===0}function y(T){return T.type==="TaggedTemplateExpression"&&r.isSpecificMemberAccess(T.tag,"String","raw")&&g(r.skipChainExpression(T.tag).object)&&r.isStaticTemplateLiteral(T.quasi)}function b(T){return c(T)?T.value:r.isStaticTemplateLiteral(T)?T.quasis[0].value.cooked:y(T)?T.quasi.quasis[0].value.raw:null}function v(T){return c(T)||r.isStaticTemplateLiteral(T)||y(T)}function S(T){let F=T.arguments;return!!((F.length===1||F.length===2)&&F.every(v))}function C(T){let F=T.arguments;return!!(F.length===1&&p(F[0])||F.length===2&&p(F[0])&&v(F[1]))}function O(T){return T<=5?5:Math.min(T,u)}let w=O(f.languageOptions.ecmaVersion);function E(T){switch(T){case` `:case`\\ -`: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}}function P(_,B){let Q=new i({ecmaVersion:A});try{return Q.validatePattern(_,0,_.length,{unicode:B?B.includes("u"):!1,unicodeSets:B?B.includes("v"):!1}),B&&Q.validateFlags(B),!0}catch{return!1}}function T(_,B){return[..._].sort().join("")===[...B].sort().join("")}function I(_,B){return[...new Set([..._,...B])].join("")}function F(_,B,Q){let V=m.getTokenBefore(_);return m.getCommentsInside(_).length===0&&(!V||h.has(V.value))&&P(B,Q)}function L(_,B){let Q=m.getTokenBefore(_),V=m.getTokenAfter(_);return(Q&&!o(Q,B)&&Q.range[1]===_.range[0]?" ":"")+B+(V&&!o(B,V)&&_.range[1]===V.range[0]?" ":"")}return{Program(_){let B=m.getScope(_),Q=new s(B),V={RegExp:{[e]:!0,[t]:!0}};for(let{node:R}of Q.iterateGlobalReferences(V))if(d&&k(R)){let $=R.arguments[0];if(R.arguments.length===2){let N=[],W=O(R.arguments[1])||"";F(R,$.regex.pattern,W)&&N.push({messageId:"replaceWithLiteralAndFlags",pattern:$.regex.pattern,flags:W});let Z=$.regex.flags||"",le=I(Z,W);!T(le,W)&&F(R,$.regex.pattern,le)&&N.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:$.regex.pattern,flags:le}),f.report({node:R,messageId:"unexpectedRedundantRegExpWithFlags",suggest:N.map(({flags:ae,pattern:Se,messageId:J})=>({messageId:J,data:{flags:ae},fix(me){return me.replaceText(R,L(R,`/${Se}/${ae}`))}}))})}else{let N=[];F(R,$.regex.pattern,$.regex.flags)&&N.push(m.getText($)),f.report({node:R,messageId:"unexpectedRedundantRegExp",suggest:N.map(W=>({messageId:"replaceWithLiteral",fix(Z){return Z.replaceText(R,L(R,W))}}))})}}else if(C(R)){let $=O(R.arguments[0]),N=!1,W;if(R.arguments[1]&&(W=O(R.arguments[1])),F(R,$,W)||(N=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.>S+O.slice(C.range[1],b[k+1].range[0]),"")}function h(m,g,b){if(m.type==="Literal"&&typeof m.value=="string")return`\`${m.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,O=>O.lastIndexOf("\\")%2?`\\${O}`:O).replace(new RegExp(`\\\\${m.raw[0]}`,"gu"),m.raw[0])}\``;if(m.type==="TemplateLiteral")return u.getText(m);if(e(m)&&n(m)){let O=u.getFirstTokenBetween(m.left,m.right,A=>A.value==="+"),S=p(m.left,O),C=p(O,m.right),k=l(m.left),E=a(m.right);return k?h(m.left,g,S+C).slice(0,-1)+h(m.right,null,b).slice(1):E?h(m.left,g,null).slice(0,-1)+h(m.right,S+C,b).slice(1):`${h(m.left,g,null)}${S}+${C}${h(m.right,b,null)}`}return`\`\${${g||""}${u.getText(m)}${b||""}}\``}function f(m,g){let b=t(g.parent);return s(b)?null:m.replaceText(b,h(b,null,null))}function d(m){if(!r.isStringLiteral(m)||!e(m.parent))return;let g=t(m.parent);c[g.range[0]]||(c[g.range[0]]=!0,i(g)&&o.report({node:g,messageId:"unexpectedStringConcatenation",fix:b=>f(b,m)}))}return{Program(){c=Object.create(null)},Literal:d,TemplateLiteral:d}}},Kb}var Jb,UF;function rX(){if(UF)return Jb;UF=1;let r=Oc(),e=De(),t=$O();return Jb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/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(s){let n=s.options[0],i=s.options[1]&&s.options[1].keywords,a=!s.options[1]||s.options[1].unnecessary!==!1,l=s.options[1]&&s.options[1].numbers,o=s.sourceCode;function u(g){return t.includes(g)}function c(g,b,O){return b.length===1&&b[0].start===0&&b[0].end===g.length&&(["Identifier","Keyword","Null","Boolean"].includes(b[0].type)||b[0].type==="Numeric"&&!O&&String(+b[0].value)===b[0].value)}function p(g){return g.type==="Identifier"?g.name:g.value}function h(g){return g.type==="Literal"&&typeof g.value=="string"?o.getText(g):`"${g.type==="Identifier"?g.name:g.value}"`}function f(g){let b=g.key;if(!(g.method||g.computed||g.shorthand))if(b.type==="Literal"&&typeof b.value=="string"){let O;try{O=r.tokenize(b.value)}catch{return}if(O.length!==1||u(O[0].value)&&i)return;a&&c(b.value,O,l)&&s.report({node:g,messageId:"unnecessarilyQuotedProperty",data:{property:b.value},fix:C=>C.replaceText(b,p(b))})}else i&&b.type==="Identifier"&&u(b.name)?s.report({node:g,messageId:"unquotedReservedProperty",data:{property:b.name},fix:O=>O.replaceText(b,h(b))}):l&&b.type==="Literal"&&e.isNumericLiteral(b)&&s.report({node:g,messageId:"unquotedNumericProperty",data:{property:b.value},fix:O=>O.replaceText(b,h(b))})}function d(g){let b=g.key;!g.method&&!g.computed&&!g.shorthand&&!(b.type==="Literal"&&typeof b.value=="string")&&s.report({node:g,messageId:"unquotedPropertyFound",data:{property:b.name||b.value},fix:O=>O.replaceText(b,h(b))})}function m(g,b){let O=[],S=[],C=null,k=!1;g.properties.forEach(E=>{let A=E.key;if(!(!A||E.method||E.computed||E.shorthand))if(A.type==="Literal"&&typeof A.value=="string"){if(O.push(E),b){let w;try{w=r.tokenize(A.value)}catch{k=!0;return}k=k||!c(A.value,w)||i&&u(w[0].value)}}else i&&b&&A.type==="Identifier"&&u(A.name)?(S.push(E),k=!0,C=A.name):S.push(E)}),b&&O.length&&!k?O.forEach(E=>{s.report({node:E,messageId:"redundantQuoting",fix:A=>A.replaceText(E.key,p(E.key))})}):S.length&&C?S.forEach(E=>{s.report({node:E,messageId:"requireQuotesDueToReservedWord",data:{property:C},fix:A=>A.replaceText(E.key,h(E.key))})}):O.length&&S.length&&S.forEach(E=>{s.report({node:E,messageId:"inconsistentlyQuotedProperty",data:{key:E.key.name||E.key.value},fix:A=>A.replaceText(E.key,h(E.key))})})}return{Property(g){(n==="always"||!n)&&d(g),n==="as-needed"&&f(g)},ObjectExpression(g){n==="consistent"&&m(g,!1),n==="consistent-as-needed"&&m(g,!0)}}}},Jb}var ev,VF;function nX(){if(VF)return ev;VF=1;let r=De(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},t=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(r.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(n){let i=this.quote,a=n[0];return i===a?n:i+n.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(l,o,u)=>o===a||a==="`"&&o==="${"?o:l===i||i==="`"&&l==="${"?`\\${l}`:u&&a==="`"?"\\n":l)+i};let s="avoid-escape";return ev={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=n.options[0],a=e[i||"double"],l=n.options[1],o=l&&l.allowTemplateLiterals===!0,u=n.sourceCode,c=l&&l.avoidEscape===!0;l===s&&(c=!0);function p(g){return g.parent.type==="JSXAttribute"||g.parent.type==="JSXElement"||g.parent.type==="JSXFragment"}function h(g){return g.type==="ExpressionStatement"&&g.expression.type==="Literal"&&typeof g.expression.value=="string"&&!r.isParenthesised(u,g.expression)}function f(g){if(!r.isTopLevelExpressionStatement(g.parent))return!1;let b=g.parent.parent;for(let O=0;O0||g.quasis.length>=1&&t.test(g.quasis[0].value.raw))}return{Literal(g){let b=g.value,O=g.raw;if(a&&typeof b=="string"){let S=i==="backtick"&&d(g)||p(g)||r.isSurroundedBy(O,a.quote);!S&&c&&(S=r.isSurroundedBy(O,a.alternateQuote)&&O.includes(a.quote)),S||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(C){return i==="backtick"&&r.hasOctalOrNonOctalDecimalEscapeSequence(O)?null:C.replaceText(g,a.convert(g.raw))}})}},TemplateLiteral(g){o||i==="backtick"||m(g)||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(b){return r.isTopLevelExpressionStatement(g.parent)&&!r.isParenthesised(u,g)?null:b.replaceText(g,a.convert(u.getText(g)))}})}}}},ev}var tv,WF;function sX(){if(WF)return tv;WF=1;let r=De(),e="always",t="as-needed",s=new Set(Array.from({length:35},(o,u)=>u+2));function n(o){return o.defs.length>=1}function i(o){return o.type==="MemberExpression"&&!o.computed&&o.property.type==="Identifier"&&o.property.name==="parseInt"}function a(o){return!(o.type==="Literal"&&!s.has(o.value)||o.type==="Identifier"&&o.name==="undefined")}function l(o){return o.type==="Literal"&&o.value===10}return tv={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/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(o){let u=o.options[0]||e,c=o.sourceCode;function p(h){let f=h.arguments;switch(f.length){case 0:o.report({node:h,messageId:"missingParameters"});break;case 1:u===e&&o.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(d){let m=c.getTokens(h),g=m.at(-1),b=m.at(-2),O=b.type==="Punctuator"&&b.value===",";return d.insertTextBefore(g,O?" 10,":", 10")}}]});break;default:u===t&&l(f[1])?o.report({node:h,messageId:"redundantRadix"}):a(f[1])||o.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){let f=c.getScope(h),d;d=r.getVariableByName(f,"parseInt"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier;r.isCallee(g)&&p(g.parent)}),d=r.getVariableByName(f,"Number"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier.parent,b=g.parent.type==="ChainExpression"?g.parent:g;i(g)&&r.isCallee(b)&&p(b.parent)})}}}},tv}var rv,ZF;function iX(){if(ZF)return rv;ZF=1;function r(n,i=new Map){for(let a of n.references)a.resolved!==null&&i.set(a.identifier,a);for(let a of n.childScopes)a.type!=="function"&&r(a,i);return i}function e(n){if(n.writeExpr)return n.writeExpr;let i=n.identifier;for(;i;){let a=i.parent.type;if(a==="AssignmentExpression"&&i.parent.left===i)return i.parent.right;if(a==="MemberExpression"&&i.parent.object===i){i=i.parent;continue}break}return null}function t(n,i){if(!n||i&&n.defs.some(l=>l.type==="Parameter"))return!1;let a=n.scope.variableScope;return n.references.every(l=>l.from.variableScope===a)}class s{constructor(){this.info=new WeakMap}initialize(i){let a=new Set,l=new Set;for(let o of i.prevSegments){let u=this.info.get(o);u&&(u.outdatedReadVariables.forEach(Set.prototype.add,a),u.freshReadVariables.forEach(Set.prototype.add,l))}this.info.set(i,{outdatedReadVariables:a,freshReadVariables:l})}markAsRead(i,a){for(let l of i){let o=this.info.get(l);o&&(o.freshReadVariables.add(a),o.outdatedReadVariables.delete(a))}}makeOutdated(i){for(let a of i){let l=this.info.get(a);l&&(l.freshReadVariables.forEach(Set.prototype.add,l.outdatedReadVariables),l.freshReadVariables.clear())}}isOutdated(i,a){for(let l of i){let o=this.info.get(l);if(o&&o.outdatedReadVariables.has(a))return!0}return!1}}return rv={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/latest/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(n){let i=!!n.options[0]&&n.options[0].allowProperties,a=n.sourceCode,l=new Map,o=new s,u=null;return{onCodePathStart(c,p){let h=a.getScope(p),f=h.type==="function"&&(h.block.async||h.block.generator);u={upper:u,codePath:c,referenceMap:f?r(h):null,currentSegments:new Set}},onCodePathEnd(){u=u.upper},onCodePathSegmentStart(c){o.initialize(c),u.currentSegments.add(c)},onUnreachableCodePathSegmentStart(c){u.currentSegments.add(c)},onUnreachableCodePathSegmentEnd(c){u.currentSegments.delete(c)},onCodePathSegmentEnd(c){u.currentSegments.delete(c)},Identifier(c){let{referenceMap:p}=u,h=p&&p.get(c);if(!h)return;let f=h.resolved,d=e(h),m=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(d&&d.parent.operator==="=")&&o.markAsRead(u.currentSegments,f),d&&d.parent.right===d&&!t(f,m)){let g=l.get(d);g||(g=[],l.set(d,g)),g.push(h)}},":expression:exit"(c){if(!u.referenceMap)return;(c.type==="AwaitExpression"||c.type==="YieldExpression")&&o.makeOutdated(u.currentSegments);let p=l.get(c);if(p){l.delete(c);for(let h of p){let f=h.resolved;o.isOutdated(u.currentSegments,f)&&(c.parent.left===h.identifier?n.report({node:c.parent,messageId:"nonAtomicUpdate",data:{value:f.name}}):i||n.report({node:c.parent,messageId:"nonAtomicObjectUpdate",data:{value:a.getText(c.parent.left),object:f.name}}))}}}}}},rv}var nv,zF;function aX(){if(zF)return nv;zF=1;let r=De();function e(t){return t[0].toUpperCase()+t.slice(1)}return nv={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(t){let s=t.sourceCode,n=null;function i(){n={upper:n,hasAwait:!1}}function a(l){!l.generator&&l.async&&!n.hasAwait&&!r.isEmptyFunction(l)&&t.report({node:l,loc:r.getFunctionHeadLoc(l,s),messageId:"missingAwait",data:{name:e(r.getFunctionNameWithKind(l))}}),n=n.upper}return{FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,AwaitExpression(){n&&(n.hasAwait=!0)},ForOfStatement(l){n&&l.await&&(n.hasAwait=!0)}}}},nv}var sv,XF;function oX(){if(XF)return sv;XF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=mr(),n=De(),{isValidWithUnicodeFlag:i}=MO();return sv={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on RegExp",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",requireUFlag:"Use the 'u' flag."},schema:[]},create(a){let l=a.sourceCode;return{"Literal[regex]"(o){let u=o.regex.flags||"";!u.includes("u")&&!u.includes("v")&&a.report({messageId:"requireUFlag",node:o,suggest:i(a.languageOptions.ecmaVersion,o.regex.pattern)?[{fix(c){return c.insertTextAfter(o,"u")},messageId:"addUFlag"}]:null})},Program(o){let u=l.getScope(o),c=new t(u),p={RegExp:{[r]:!0,[e]:!0}};for(let{node:h}of c.iterateGlobalReferences(p)){let[f,d]=h.arguments;if(f&&f.type==="SpreadElement")continue;let m=s(f,u),g=s(d,u);(!d||typeof g=="string"&&!g.includes("u")&&!g.includes("v"))&&a.report({messageId:"requireUFlag",node:h,suggest:typeof m=="string"&&i(a.languageOptions.ecmaVersion,m)?[{fix(b){if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){let S=l.getText(d);return b.replaceText(d,[S.slice(0,S.length-1),S.slice(S.length-1)].join("u"))}return null}let O=l.getLastToken(h,{skip:1});return b.insertTextAfter(O,n.isCommaToken(O)?' "u",':', "u"')},messageId:"addUFlag"}]:null})}}}}},sv}var iv,GF;function lX(){return GF||(GF=1,iv={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(r){let e=[];function t(n){n.generator&&e.push(0)}function s(n){if(!n.generator)return;e.pop()===0&&n.body.body.length>0&&r.report({node:n,messageId:"missingYield"})}return{FunctionDeclaration:t,"FunctionDeclaration:exit":s,FunctionExpression:t,"FunctionExpression:exit":s,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),iv}var av,YF;function uX(){return YF||(YF=1,av={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(r){let e=r.sourceCode,t=r.options[0]==="always";function s(n){let i=e.getFirstToken(n),a=e.getTokenAfter(i),l=e.isSpaceBetweenTokens(i,a),o;switch(n.type){case"SpreadElement":o="spread",n.parent.type==="ObjectExpression"&&(o+=" property");break;case"RestElement":o="rest",n.parent.type==="ObjectPattern"&&(o+=" property");break;case"ExperimentalSpreadProperty":o="spread property";break;case"ExperimentalRestProperty":o="rest property";break;default:return}t&&!l?r.report({node:n,loc:i.loc,messageId:"expectedWhitespace",data:{type:o},fix(u){return u.replaceTextRange([i.range[1],a.range[0]]," ")}}):!t&&l&&r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedWhitespace",data:{type:o},fix(u){return u.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:s,RestElement:s,ExperimentalSpreadProperty:s,ExperimentalRestProperty:s}}}),av}var ov,HF;function cX(){if(HF)return ov;HF=1;let r=Go(),e=De();return ov={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/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"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(t){let s=/^[-[(/+`]/u,n=new Set(["get","set","static"]),i=new Set(["*","in","instanceof"]),a=t.options[1],l=t.options[0]==="never",o=!!(a&&a.omitLastInOneLineBlock),u=!!(a&&a.omitLastInOneLineClassBody),c=a&&a.beforeStatementContinuationChars||"any",p=t.sourceCode;function h(w,P){let T=p.getLastToken(w),I,F,L;P?(I="extraSemi",L=T.loc,F=function(_){return new r(_,p).retainSurroundingTokens(T).remove(T)}):(I="missingSemi",L={start:T.loc.end,end:e.getNextLocation(p,T.loc.end)},F=function(_){return _.insertTextAfter(T,";")}),t.report({node:w,loc:L,messageId:I,fix:F})}function f(w){let P=p.getTokenAfter(w);return!P||e.isClosingBraceToken(P)||e.isSemicolonToken(P)}function d(w){if(!e.isClosingBraceToken(w))return!1;let P=p.getNodeByRangeIndex(w.range[0]);return P.type==="BlockStatement"&&P.parent.type==="ArrowFunctionExpression"}function m(w){if(w.type!=="PropertyDefinition")return!1;if(!w.computed&&w.key.type==="Identifier"&&n.has(w.key.name)&&!(w.static&&w.key.name==="static")&&!w.value)return!0;let T=p.getTokenAfter(w);return i.has(T.value)}function g(w){let P=p.getLastToken(w,1),T=p.getTokenAfter(w);return!!T&&e.isTokenOnSameLine(P,T)}function b(w){let P=w.type;return P==="DoWhileStatement"||P==="BreakStatement"||P==="ContinueStatement"||P==="DebuggerStatement"||P==="ImportDeclaration"||P==="ExportAllDeclaration"?!1:P==="ReturnStatement"?!!w.argument:P==="ExportNamedDeclaration"?!!w.declaration:!d(p.getLastToken(w,1))}function O(w){return!!w&&s.test(w.value)&&w.value!=="++"&&w.value!=="--"}function S(w){return f(p.getLastToken(w))?!0:m(w)||g(w)?!1:w.type!=="PropertyDefinition"&&c==="never"&&!b(w)||!O(p.getTokenAfter(w))}function C(w){let P=w.parent,T=p.getTokenAfter(w);return!T||T.value!=="}"?!1:P.type==="BlockStatement"?P.loc.start.line===P.loc.end.line:P.type==="StaticBlock"?p.getFirstToken(P,{skip:1}).loc.start.line===P.loc.end.line:!1}function k(w){let P=w.parent,T=p.getTokenAfter(w);return!T||T.value!=="}"?!1:P.type==="ClassBody"?P.loc.start.line===P.loc.end.line:!1}function E(w){let P=e.isSemicolonToken(p.getLastToken(w));if(l)P&&S(w)?h(w,!0):!P&&c==="always"&&w.type!=="PropertyDefinition"&&O(p.getTokenAfter(w))&&h(w);else{let T=o&&C(w),I=u&&k(w),F=T||I;P&&F?h(w,!0):!P&&!F&&h(w)}}function A(w){let P=w.parent;(P.type!=="ForStatement"||P.init!==w)&&(!/^For(?:In|Of)Statement/u.test(P.type)||P.left!==w)&&E(w)}return{VariableDeclaration:A,ExpressionStatement:E,ReturnStatement:E,ThrowStatement:E,DoWhileStatement:E,DebuggerStatement:E,BreakStatement:E,ContinueStatement:E,ImportDeclaration:E,ExportAllDeclaration:E,ExportNamedDeclaration(w){w.declaration||E(w)},ExportDefaultDeclaration(w){/(?:Class|Function)Declaration/u.test(w.declaration.type)||E(w)},PropertyDefinition:E}}},ov}var lv,KF;function fX(){if(KF)return lv;KF=1;let r=De();return lv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s=e.sourceCode,n=!1,i=!0;typeof t=="object"&&(n=t.before,i=t.after);function a(f){let d=s.getTokenBefore(f);return d&&r.isTokenOnSameLine(d,f)&&s.isSpaceBetweenTokens(d,f)}function l(f){let d=s.getTokenAfter(f);return d&&r.isTokenOnSameLine(f,d)&&s.isSpaceBetweenTokens(f,d)}function o(f){let d=s.getTokenAfter(f);return!(d&&r.isTokenOnSameLine(f,d))}function u(f){let d=s.getTokenBefore(f);return!(d&&r.isTokenOnSameLine(f,d))}function c(f){let d=s.getTokenAfter(f);return d&&r.isClosingBraceToken(d)||r.isClosingParenToken(d)}function p(f,d){if(r.isSemicolonToken(f)){if(a(f)){if(!n){let m=s.getTokenBefore(f),g={start:m.loc.end,end:f.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceBefore",fix(b){return b.removeRange([m.range[1],f.range[0]])}})}}else if(n){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceBefore",fix(g){return g.insertTextBefore(f," ")}})}if(!u(f)&&!o(f)&&!c(f)){if(l(f)){if(!i){let m=s.getTokenAfter(f),g={start:f.loc.end,end:m.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceAfter",fix(b){return b.removeRange([f.range[1],m.range[0]])}})}}else if(i){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceAfter",fix(g){return g.insertTextAfter(f," ")}})}}}}function h(f){let d=s.getLastToken(f);p(d,f)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(f){f.init&&p(s.getTokenAfter(f.init),f),f.test&&p(s.getTokenAfter(f.test),f)},PropertyDefinition:h}}},lv}var uv,JF;function pX(){if(JF)return uv;JF=1;let r=De(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function t(n){let i=n.type;return i==="BlockStatement"||i==="StaticBlock"||i==="Program"||i==="ClassBody"?n.body:i==="SwitchCase"?n.consequent:null}function s(n){let i=n.parent.type;if(i==="IfStatement"&&n.parent.consequent===n&&n.parent.alternate||i==="DoWhileStatement")return!0;let a=t(n.parent);return a!==null&&a.at(-1)===n}return uv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(n){let i=n.sourceCode,a=n.options[0]||"last";function l(o,u){let c=i.getTokenBefore(o),p=i.getTokenAfter(o),h=!c||r.isTokenOnSameLine(c,o),f=!p||r.isTokenOnSameLine(o,p);(u==="last"&&!h||u==="first"&&!f)&&n.report({loc:o.loc,messageId:"expectedSemiColon",data:{pos:u==="last"?"the end of the previous line":"the beginning of the next line"},fix(d){if(c&&p&&i.commentsExistBetween(c,p))return null;let m=c?c.range[1]:o.range[0],g=p?p.range[0]:o.range[1],b=u==="last"?`; +`: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}}function k(T,F){let j=new i({ecmaVersion:w});try{return j.validatePattern(T,0,T.length,{unicode:F?F.includes("u"):!1,unicodeSets:F?F.includes("v"):!1}),F&&j.validateFlags(F),!0}catch{return!1}}function A(T,F){return[...T].sort().join("")===[...F].sort().join("")}function D(T,F){return[...new Set([...T,...F])].join("")}function _(T,F,j){let Q=m.getTokenBefore(T);return m.getCommentsInside(T).length===0&&(!Q||h.has(Q.value))&&k(F,j)}function B(T,F){let j=m.getTokenBefore(T),Q=m.getTokenAfter(T);return(j&&!o(j,F)&&j.range[1]===T.range[0]?" ":"")+F+(Q&&!o(F,Q)&&T.range[1]===Q.range[0]?" ":"")}return{Program(T){let F=m.getScope(T),j=new s(F),Q={RegExp:{[e]:!0,[t]:!0}};for(let{node:I}of j.iterateGlobalReferences(Q))if(d&&C(I)){let N=I.arguments[0];if(I.arguments.length===2){let R=[],U=b(I.arguments[1])||"";_(I,N.regex.pattern,U)&&R.push({messageId:"replaceWithLiteralAndFlags",pattern:N.regex.pattern,flags:U});let V=N.regex.flags||"",ae=D(V,U);!A(ae,U)&&_(I,N.regex.pattern,ae)&&R.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:N.regex.pattern,flags:ae}),f.report({node:I,messageId:"unexpectedRedundantRegExpWithFlags",suggest:R.map(({flags:se,pattern:ve,messageId:H})=>({messageId:H,data:{flags:se},fix(he){return he.replaceText(I,B(I,`/${ve}/${se}`))}}))})}else{let R=[];_(I,N.regex.pattern,N.regex.flags)&&R.push(m.getText(N)),f.report({node:I,messageId:"unexpectedRedundantRegExp",suggest:R.map(U=>({messageId:"replaceWithLiteral",fix(V){return V.replaceText(I,B(I,U))}}))})}}else if(S(I)){let N=b(I.arguments[0]),R=!1,U;if(I.arguments[1]&&(U=b(I.arguments[1])),_(I,N,U)||(R=!0),/^[-a-zA-Z0-9\\[\](){} \t\r\n\v\f!@#$%^&*+^_=/~`.>v+b.slice(S.range[1],y[C+1].range[0]),"")}function h(m,g,y){if(m.type==="Literal"&&typeof m.value=="string")return`\`${m.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,b=>b.lastIndexOf("\\")%2?`\\${b}`:b).replace(new RegExp(`\\\\${m.raw[0]}`,"gu"),m.raw[0])}\``;if(m.type==="TemplateLiteral")return u.getText(m);if(e(m)&&n(m)){let b=u.getFirstTokenBetween(m.left,m.right,w=>w.value==="+"),v=p(m.left,b),S=p(b,m.right),C=l(m.left),O=a(m.right);return C?h(m.left,g,v+S).slice(0,-1)+h(m.right,null,y).slice(1):O?h(m.left,g,null).slice(0,-1)+h(m.right,v+S,y).slice(1):`${h(m.left,g,null)}${v}+${S}${h(m.right,y,null)}`}return`\`\${${g||""}${u.getText(m)}${y||""}}\``}function f(m,g){let y=t(g.parent);return s(y)?null:m.replaceText(y,h(y,null,null))}function d(m){if(!r.isStringLiteral(m)||!e(m.parent))return;let g=t(m.parent);c[g.range[0]]||(c[g.range[0]]=!0,i(g)&&o.report({node:g,messageId:"unexpectedStringConcatenation",fix:y=>f(y,m)}))}return{Program(){c=Object.create(null)},Literal:d,TemplateLiteral:d}}},Yb}var Hb,qF;function eX(){if(qF)return Hb;qF=1;let r=bc(),e=Pe(),t=NO();return Hb={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/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(s){let n=s.options[0],i=s.options[1]&&s.options[1].keywords,a=!s.options[1]||s.options[1].unnecessary!==!1,l=s.options[1]&&s.options[1].numbers,o=s.sourceCode;function u(g){return t.includes(g)}function c(g,y,b){return y.length===1&&y[0].start===0&&y[0].end===g.length&&(["Identifier","Keyword","Null","Boolean"].includes(y[0].type)||y[0].type==="Numeric"&&!b&&String(+y[0].value)===y[0].value)}function p(g){return g.type==="Identifier"?g.name:g.value}function h(g){return g.type==="Literal"&&typeof g.value=="string"?o.getText(g):`"${g.type==="Identifier"?g.name:g.value}"`}function f(g){let y=g.key;if(!(g.method||g.computed||g.shorthand))if(y.type==="Literal"&&typeof y.value=="string"){let b;try{b=r.tokenize(y.value)}catch{return}if(b.length!==1||u(b[0].value)&&i)return;a&&c(y.value,b,l)&&s.report({node:g,messageId:"unnecessarilyQuotedProperty",data:{property:y.value},fix:S=>S.replaceText(y,p(y))})}else i&&y.type==="Identifier"&&u(y.name)?s.report({node:g,messageId:"unquotedReservedProperty",data:{property:y.name},fix:b=>b.replaceText(y,h(y))}):l&&y.type==="Literal"&&e.isNumericLiteral(y)&&s.report({node:g,messageId:"unquotedNumericProperty",data:{property:y.value},fix:b=>b.replaceText(y,h(y))})}function d(g){let y=g.key;!g.method&&!g.computed&&!g.shorthand&&!(y.type==="Literal"&&typeof y.value=="string")&&s.report({node:g,messageId:"unquotedPropertyFound",data:{property:y.name||y.value},fix:b=>b.replaceText(y,h(y))})}function m(g,y){let b=[],v=[],S=null,C=!1;g.properties.forEach(O=>{let w=O.key;if(!(!w||O.method||O.computed||O.shorthand))if(w.type==="Literal"&&typeof w.value=="string"){if(b.push(O),y){let E;try{E=r.tokenize(w.value)}catch{C=!0;return}C=C||!c(w.value,E)||i&&u(E[0].value)}}else i&&y&&w.type==="Identifier"&&u(w.name)?(v.push(O),C=!0,S=w.name):v.push(O)}),y&&b.length&&!C?b.forEach(O=>{s.report({node:O,messageId:"redundantQuoting",fix:w=>w.replaceText(O.key,p(O.key))})}):v.length&&S?v.forEach(O=>{s.report({node:O,messageId:"requireQuotesDueToReservedWord",data:{property:S},fix:w=>w.replaceText(O.key,h(O.key))})}):b.length&&v.length&&v.forEach(O=>{s.report({node:O,messageId:"inconsistentlyQuotedProperty",data:{key:O.key.name||O.key.value},fix:w=>w.replaceText(O.key,h(O.key))})})}return{Property(g){(n==="always"||!n)&&d(g),n==="as-needed"&&f(g)},ObjectExpression(g){n==="consistent"&&m(g,!1),n==="consistent-as-needed"&&m(g,!0)}}}},Hb}var Kb,QF;function tX(){if(QF)return Kb;QF=1;let r=Pe(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},t=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(r.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(n){let i=this.quote,a=n[0];return i===a?n:i+n.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(l,o,u)=>o===a||a==="`"&&o==="${"?o:l===i||i==="`"&&l==="${"?`\\${l}`:u&&a==="`"?"\\n":l)+i};let s="avoid-escape";return Kb={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/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(n){let i=n.options[0],a=e[i||"double"],l=n.options[1],o=l&&l.allowTemplateLiterals===!0,u=n.sourceCode,c=l&&l.avoidEscape===!0;l===s&&(c=!0);function p(g){return g.parent.type==="JSXAttribute"||g.parent.type==="JSXElement"||g.parent.type==="JSXFragment"}function h(g){return g.type==="ExpressionStatement"&&g.expression.type==="Literal"&&typeof g.expression.value=="string"&&!r.isParenthesised(u,g.expression)}function f(g){if(!r.isTopLevelExpressionStatement(g.parent))return!1;let y=g.parent.parent;for(let b=0;b0||g.quasis.length>=1&&t.test(g.quasis[0].value.raw))}return{Literal(g){let y=g.value,b=g.raw;if(a&&typeof y=="string"){let v=i==="backtick"&&d(g)||p(g)||r.isSurroundedBy(b,a.quote);!v&&c&&(v=r.isSurroundedBy(b,a.alternateQuote)&&b.includes(a.quote)),v||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(S){return i==="backtick"&&r.hasOctalOrNonOctalDecimalEscapeSequence(b)?null:S.replaceText(g,a.convert(g.raw))}})}},TemplateLiteral(g){o||i==="backtick"||m(g)||n.report({node:g,messageId:"wrongQuotes",data:{description:a.description},fix(y){return r.isTopLevelExpressionStatement(g.parent)&&!r.isParenthesised(u,g)?null:y.replaceText(g,a.convert(u.getText(g)))}})}}}},Kb}var Jb,UF;function rX(){if(UF)return Jb;UF=1;let r=Pe(),e="always",t="as-needed",s=new Set(Array.from({length:35},(o,u)=>u+2));function n(o){return o.defs.length>=1}function i(o){return o.type==="MemberExpression"&&!o.computed&&o.property.type==="Identifier"&&o.property.name==="parseInt"}function a(o){return!(o.type==="Literal"&&!s.has(o.value)||o.type==="Identifier"&&o.name==="undefined")}function l(o){return o.type==="Literal"&&o.value===10}return Jb={meta:{type:"suggestion",docs:{description:"Enforce the consistent use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/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(o){let u=o.options[0]||e,c=o.sourceCode;function p(h){let f=h.arguments;switch(f.length){case 0:o.report({node:h,messageId:"missingParameters"});break;case 1:u===e&&o.report({node:h,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(d){let m=c.getTokens(h),g=m.at(-1),y=m.at(-2),b=y.type==="Punctuator"&&y.value===",";return d.insertTextBefore(g,b?" 10,":", 10")}}]});break;default:u===t&&l(f[1])?o.report({node:h,messageId:"redundantRadix"}):a(f[1])||o.report({node:h,messageId:"invalidRadix"});break}}return{"Program:exit"(h){let f=c.getScope(h),d;d=r.getVariableByName(f,"parseInt"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier;r.isCallee(g)&&p(g.parent)}),d=r.getVariableByName(f,"Number"),d&&!n(d)&&d.references.forEach(m=>{let g=m.identifier.parent,y=g.parent.type==="ChainExpression"?g.parent:g;i(g)&&r.isCallee(y)&&p(y.parent)})}}}},Jb}var ev,VF;function nX(){if(VF)return ev;VF=1;function r(n,i=new Map){for(let a of n.references)a.resolved!==null&&i.set(a.identifier,a);for(let a of n.childScopes)a.type!=="function"&&r(a,i);return i}function e(n){if(n.writeExpr)return n.writeExpr;let i=n.identifier;for(;i;){let a=i.parent.type;if(a==="AssignmentExpression"&&i.parent.left===i)return i.parent.right;if(a==="MemberExpression"&&i.parent.object===i){i=i.parent;continue}break}return null}function t(n,i){if(!n||i&&n.defs.some(l=>l.type==="Parameter"))return!1;let a=n.scope.variableScope;return n.references.every(l=>l.from.variableScope===a)}class s{constructor(){this.info=new WeakMap}initialize(i){let a=new Set,l=new Set;for(let o of i.prevSegments){let u=this.info.get(o);u&&(u.outdatedReadVariables.forEach(Set.prototype.add,a),u.freshReadVariables.forEach(Set.prototype.add,l))}this.info.set(i,{outdatedReadVariables:a,freshReadVariables:l})}markAsRead(i,a){for(let l of i){let o=this.info.get(l);o&&(o.freshReadVariables.add(a),o.outdatedReadVariables.delete(a))}}makeOutdated(i){for(let a of i){let l=this.info.get(a);l&&(l.freshReadVariables.forEach(Set.prototype.add,l.outdatedReadVariables),l.freshReadVariables.clear())}}isOutdated(i,a){for(let l of i){let o=this.info.get(l);if(o&&o.outdatedReadVariables.has(a))return!0}return!1}}return ev={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/latest/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(n){let i=!!n.options[0]&&n.options[0].allowProperties,a=n.sourceCode,l=new Map,o=new s,u=null;return{onCodePathStart(c,p){let h=a.getScope(p),f=h.type==="function"&&(h.block.async||h.block.generator);u={upper:u,codePath:c,referenceMap:f?r(h):null,currentSegments:new Set}},onCodePathEnd(){u=u.upper},onCodePathSegmentStart(c){o.initialize(c),u.currentSegments.add(c)},onUnreachableCodePathSegmentStart(c){u.currentSegments.add(c)},onUnreachableCodePathSegmentEnd(c){u.currentSegments.delete(c)},onCodePathSegmentEnd(c){u.currentSegments.delete(c)},Identifier(c){let{referenceMap:p}=u,h=p&&p.get(c);if(!h)return;let f=h.resolved,d=e(h),m=h.identifier.parent.type==="MemberExpression";if(h.isRead()&&!(d&&d.parent.operator==="=")&&o.markAsRead(u.currentSegments,f),d&&d.parent.right===d&&!t(f,m)){let g=l.get(d);g||(g=[],l.set(d,g)),g.push(h)}},":expression:exit"(c){if(!u.referenceMap)return;(c.type==="AwaitExpression"||c.type==="YieldExpression")&&o.makeOutdated(u.currentSegments);let p=l.get(c);if(p){l.delete(c);for(let h of p){let f=h.resolved;o.isOutdated(u.currentSegments,f)&&(c.parent.left===h.identifier?n.report({node:c.parent,messageId:"nonAtomicUpdate",data:{value:f.name}}):i||n.report({node:c.parent,messageId:"nonAtomicObjectUpdate",data:{value:a.getText(c.parent.left),object:f.name}}))}}}}}},ev}var tv,WF;function sX(){if(WF)return tv;WF=1;let r=Pe();function e(t){return t[0].toUpperCase()+t.slice(1)}return tv={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression."}},create(t){let s=t.sourceCode,n=null;function i(){n={upper:n,hasAwait:!1}}function a(l){!l.generator&&l.async&&!n.hasAwait&&!r.isEmptyFunction(l)&&t.report({node:l,loc:r.getFunctionHeadLoc(l,s),messageId:"missingAwait",data:{name:e(r.getFunctionNameWithKind(l))}}),n=n.upper}return{FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,"FunctionDeclaration:exit":a,"FunctionExpression:exit":a,"ArrowFunctionExpression:exit":a,AwaitExpression(){n&&(n.hasAwait=!0)},ForOfStatement(l){n&&l.await&&(n.hasAwait=!0)}}}},tv}var rv,ZF;function iX(){if(ZF)return rv;ZF=1;let{CALL:r,CONSTRUCT:e,ReferenceTracker:t,getStringIfConstant:s}=hr(),n=Pe(),{isValidWithUnicodeFlag:i}=LO();return rv={meta:{type:"suggestion",docs:{description:"Enforce the use of `u` or `v` flag on RegExp",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",requireUFlag:"Use the 'u' flag."},schema:[]},create(a){let l=a.sourceCode;return{"Literal[regex]"(o){let u=o.regex.flags||"";!u.includes("u")&&!u.includes("v")&&a.report({messageId:"requireUFlag",node:o,suggest:i(a.languageOptions.ecmaVersion,o.regex.pattern)?[{fix(c){return c.insertTextAfter(o,"u")},messageId:"addUFlag"}]:null})},Program(o){let u=l.getScope(o),c=new t(u),p={RegExp:{[r]:!0,[e]:!0}};for(let{node:h}of c.iterateGlobalReferences(p)){let[f,d]=h.arguments;if(f&&f.type==="SpreadElement")continue;let m=s(f,u),g=s(d,u);(!d||typeof g=="string"&&!g.includes("u")&&!g.includes("v"))&&a.report({messageId:"requireUFlag",node:h,suggest:typeof m=="string"&&i(a.languageOptions.ecmaVersion,m)?[{fix(y){if(d){if(d.type==="Literal"&&typeof d.value=="string"||d.type==="TemplateLiteral"){let v=l.getText(d);return y.replaceText(d,[v.slice(0,v.length-1),v.slice(v.length-1)].join("u"))}return null}let b=l.getLastToken(h,{skip:1});return y.insertTextAfter(b,n.isCommaToken(b)?' "u",':', "u"')},messageId:"addUFlag"}]:null})}}}}},rv}var nv,zF;function aX(){return zF||(zF=1,nv={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(r){let e=[];function t(n){n.generator&&e.push(0)}function s(n){if(!n.generator)return;e.pop()===0&&n.body.body.length>0&&r.report({node:n,messageId:"missingYield"})}return{FunctionDeclaration:t,"FunctionDeclaration:exit":s,FunctionExpression:t,"FunctionExpression:exit":s,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),nv}var sv,XF;function oX(){return XF||(XF=1,sv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(r){let e=r.sourceCode,t=r.options[0]==="always";function s(n){let i=e.getFirstToken(n),a=e.getTokenAfter(i),l=e.isSpaceBetweenTokens(i,a),o;switch(n.type){case"SpreadElement":o="spread",n.parent.type==="ObjectExpression"&&(o+=" property");break;case"RestElement":o="rest",n.parent.type==="ObjectPattern"&&(o+=" property");break;case"ExperimentalSpreadProperty":o="spread property";break;case"ExperimentalRestProperty":o="rest property";break;default:return}t&&!l?r.report({node:n,loc:i.loc,messageId:"expectedWhitespace",data:{type:o},fix(u){return u.replaceTextRange([i.range[1],a.range[0]]," ")}}):!t&&l&&r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpectedWhitespace",data:{type:o},fix(u){return u.removeRange([i.range[1],a.range[0]])}})}return{SpreadElement:s,RestElement:s,ExperimentalSpreadProperty:s,ExperimentalRestProperty:s}}}),sv}var iv,GF;function lX(){if(GF)return iv;GF=1;let r=zo(),e=Pe();return iv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/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"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(t){let s=/^[-[(/+`]/u,n=new Set(["get","set","static"]),i=new Set(["*","in","instanceof"]),a=t.options[1],l=t.options[0]==="never",o=!!(a&&a.omitLastInOneLineBlock),u=!!(a&&a.omitLastInOneLineClassBody),c=a&&a.beforeStatementContinuationChars||"any",p=t.sourceCode;function h(E,k){let A=p.getLastToken(E),D,_,B;k?(D="extraSemi",B=A.loc,_=function(T){return new r(T,p).retainSurroundingTokens(A).remove(A)}):(D="missingSemi",B={start:A.loc.end,end:e.getNextLocation(p,A.loc.end)},_=function(T){return T.insertTextAfter(A,";")}),t.report({node:E,loc:B,messageId:D,fix:_})}function f(E){let k=p.getTokenAfter(E);return!k||e.isClosingBraceToken(k)||e.isSemicolonToken(k)}function d(E){if(!e.isClosingBraceToken(E))return!1;let k=p.getNodeByRangeIndex(E.range[0]);return k.type==="BlockStatement"&&k.parent.type==="ArrowFunctionExpression"}function m(E){if(E.type!=="PropertyDefinition")return!1;if(!E.computed&&E.key.type==="Identifier"&&n.has(E.key.name)&&!(E.static&&E.key.name==="static")&&!E.value)return!0;let A=p.getTokenAfter(E);return i.has(A.value)}function g(E){let k=p.getLastToken(E,1),A=p.getTokenAfter(E);return!!A&&e.isTokenOnSameLine(k,A)}function y(E){let k=E.type;return k==="DoWhileStatement"||k==="BreakStatement"||k==="ContinueStatement"||k==="DebuggerStatement"||k==="ImportDeclaration"||k==="ExportAllDeclaration"?!1:k==="ReturnStatement"?!!E.argument:k==="ExportNamedDeclaration"?!!E.declaration:!d(p.getLastToken(E,1))}function b(E){return!!E&&s.test(E.value)&&E.value!=="++"&&E.value!=="--"}function v(E){return f(p.getLastToken(E))?!0:m(E)||g(E)?!1:E.type!=="PropertyDefinition"&&c==="never"&&!y(E)||!b(p.getTokenAfter(E))}function S(E){let k=E.parent,A=p.getTokenAfter(E);return!A||A.value!=="}"?!1:k.type==="BlockStatement"?k.loc.start.line===k.loc.end.line:k.type==="StaticBlock"?p.getFirstToken(k,{skip:1}).loc.start.line===k.loc.end.line:!1}function C(E){let k=E.parent,A=p.getTokenAfter(E);return!A||A.value!=="}"?!1:k.type==="ClassBody"?k.loc.start.line===k.loc.end.line:!1}function O(E){let k=e.isSemicolonToken(p.getLastToken(E));if(l)k&&v(E)?h(E,!0):!k&&c==="always"&&E.type!=="PropertyDefinition"&&b(p.getTokenAfter(E))&&h(E);else{let A=o&&S(E),D=u&&C(E),_=A||D;k&&_?h(E,!0):!k&&!_&&h(E)}}function w(E){let k=E.parent;(k.type!=="ForStatement"||k.init!==E)&&(!/^For(?:In|Of)Statement/u.test(k.type)||k.left!==E)&&O(E)}return{VariableDeclaration:w,ExpressionStatement:O,ReturnStatement:O,ThrowStatement:O,DoWhileStatement:O,DebuggerStatement:O,BreakStatement:O,ContinueStatement:O,ImportDeclaration:O,ExportAllDeclaration:O,ExportNamedDeclaration(E){E.declaration||O(E)},ExportDefaultDeclaration(E){/(?:Class|Function)Declaration/u.test(E.declaration.type)||O(E)},PropertyDefinition:O}}},iv}var av,YF;function uX(){if(YF)return av;YF=1;let r=Pe();return av={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0],s=e.sourceCode,n=!1,i=!0;typeof t=="object"&&(n=t.before,i=t.after);function a(f){let d=s.getTokenBefore(f);return d&&r.isTokenOnSameLine(d,f)&&s.isSpaceBetweenTokens(d,f)}function l(f){let d=s.getTokenAfter(f);return d&&r.isTokenOnSameLine(f,d)&&s.isSpaceBetweenTokens(f,d)}function o(f){let d=s.getTokenAfter(f);return!(d&&r.isTokenOnSameLine(f,d))}function u(f){let d=s.getTokenBefore(f);return!(d&&r.isTokenOnSameLine(f,d))}function c(f){let d=s.getTokenAfter(f);return d&&r.isClosingBraceToken(d)||r.isClosingParenToken(d)}function p(f,d){if(r.isSemicolonToken(f)){if(a(f)){if(!n){let m=s.getTokenBefore(f),g={start:m.loc.end,end:f.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceBefore",fix(y){return y.removeRange([m.range[1],f.range[0]])}})}}else if(n){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceBefore",fix(g){return g.insertTextBefore(f," ")}})}if(!u(f)&&!o(f)&&!c(f)){if(l(f)){if(!i){let m=s.getTokenAfter(f),g={start:f.loc.end,end:m.loc.start};e.report({node:d,loc:g,messageId:"unexpectedWhitespaceAfter",fix(y){return y.removeRange([f.range[1],m.range[0]])}})}}else if(i){let m=f.loc;e.report({node:d,loc:m,messageId:"missingWhitespaceAfter",fix(g){return g.insertTextAfter(f," ")}})}}}}function h(f){let d=s.getLastToken(f);p(d,f)}return{VariableDeclaration:h,ExpressionStatement:h,BreakStatement:h,ContinueStatement:h,DebuggerStatement:h,DoWhileStatement:h,ReturnStatement:h,ThrowStatement:h,ImportDeclaration:h,ExportNamedDeclaration:h,ExportAllDeclaration:h,ExportDefaultDeclaration:h,ForStatement(f){f.init&&p(s.getTokenAfter(f.init),f),f.test&&p(s.getTokenAfter(f.test),f)},PropertyDefinition:h}}},av}var ov,HF;function cX(){if(HF)return ov;HF=1;let r=Pe(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function t(n){let i=n.type;return i==="BlockStatement"||i==="StaticBlock"||i==="Program"||i==="ClassBody"?n.body:i==="SwitchCase"?n.consequent:null}function s(n){let i=n.parent.type;if(i==="IfStatement"&&n.parent.consequent===n&&n.parent.alternate||i==="DoWhileStatement")return!0;let a=t(n.parent);return a!==null&&a.at(-1)===n}return ov={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(n){let i=n.sourceCode,a=n.options[0]||"last";function l(o,u){let c=i.getTokenBefore(o),p=i.getTokenAfter(o),h=!c||r.isTokenOnSameLine(c,o),f=!p||r.isTokenOnSameLine(o,p);(u==="last"&&!h||u==="first"&&!f)&&n.report({loc:o.loc,messageId:"expectedSemiColon",data:{pos:u==="last"?"the end of the previous line":"the beginning of the next line"},fix(d){if(c&&p&&i.commentsExistBetween(c,p))return null;let m=c?c.range[1]:o.range[0],g=p?p.range[0]:o.range[1],y=u==="last"?`; `:` -;`;return d.replaceTextRange([m,g],b)}})}return{[e](o){if(a==="first"&&s(o))return;let u=i.getLastToken(o);r.isSemicolonToken(u)&&l(u,a)},ForStatement(o){let u=o.init&&i.getTokenAfter(o.init,r.isSemicolonToken),c=o.test&&i.getTokenAfter(o.test,r.isSemicolonToken);u&&l(u,"last"),c&&l(c,"last")}}}},uv}var cv,eR;function hX(){return eR||(eR=1,cv={meta:{type:"suggestion",docs:{description:"Enforce sorted import declarations within modules",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]||{},t=e.ignoreCase||!1,s=e.ignoreDeclarationSort||!1,n=e.ignoreMemberSort||!1,i=e.memberSyntaxSortOrder||["none","all","multiple","single"],a=e.allowSeparatedGroups||!1,l=r.sourceCode,o=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,d){return Math.max(d.loc.start.line-f.loc.end.line-1,0)}return{ImportDeclaration(f){if(!s){if(o&&a&&h(o,f)>0&&(o=null),o){let d=c(f),m=c(o),g=p(f),b=p(o);t&&(b=b&&b.toLowerCase(),g=g&&g.toLowerCase()),d!==m?db.type==="ImportSpecifier"),m=t?b=>b.local.name.toLowerCase():b=>b.local.name,g=d.map(m).findIndex((b,O,S)=>S[O-1]>b);g!==-1&&r.report({node:d[g],messageId:"sortMembersAlphabetically",data:{memberName:d[g].local.name},fix(b){return d.some(O=>l.getCommentsBefore(O).length||l.getCommentsAfter(O).length)?null:b.replaceTextRange([d[0].range[0],d.at(-1).range[1]],d.slice().sort((O,S)=>{let C=m(O),k=m(S);return C>k?1:-1}).reduce((O,S,C)=>{let k=C===d.length-1?"":l.getText().slice(d[C].range[1],d[C+1].range[0]);return O+l.getText(S)+k},""))}})}}}}}),cv}var fv={exports:{}},tR;function dX(){if(tR)return fv.exports;tR=1;var r=function(e,t){var s,n,i=1,a=0,l=0,o=String.alphabet;function u(c,p,h){if(h){for(s=p;h=u(c,s),h<76&&h>65;)++s;return+c.slice(p-1,s)}return h=o&&o.indexOf(c.charAt(p)),h>-1?h+76:(h=c.charCodeAt(p)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(t+="")){for(;i;)if(n=u(e,a++),i=u(t,l++),n<76&&i<76&&n>66&&i>66&&(n=u(e,a,a),i=u(t,l,a=s),l=s),n!=i)return n{let E=O[k-1];E&&C.loc.start.line-E.loc.end.line>1&&(S=!0)}),!S&&d.loc.start.line-O.at(-1).loc.end.line>1&&(S=!0),!S&&O[0].loc.start.line-h.prevNode.loc.end.line>1&&(S=!0)),h.prevNode=d,b!==null&&(h.prevName=b),c&&S){h.prevBlankLine=b===null;return}m===null||b===null||gu.id.type==="Identifier"),a=t?u=>u.id.name.toLowerCase():u=>u.id.name,l=i.some(u=>u.init!==null&&u.init.type!=="Literal"),o=!1;i.slice(1).reduce((u,c)=>{let p=a(u);return a(c){let g=a(d),b=a(m);return g>b?1:-1}).reduce((d,m,g)=>{let b=g===i.length-1?"":s.getText().slice(i[g].range[1],i[g+1].range[0]);return d+s.getText(m)+b},""))}}),o=!0,u):c},i[0])}}}}),hv}var dv,sR;function yX(){if(sR)return dv;sR=1;let r=De();function e(t){let s=t.parent;return t.type==="BlockStatement"&&r.isFunction(s)&&s.body===t}return dv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=t.sourceCode,i=!0,a=!0,l=!0,o=!1,u=!1,c=!1;typeof s=="object"?(i=s.functions==="always",a=s.keywords==="always",l=s.classes==="always",o=s.functions==="never",u=s.keywords==="never",c=s.classes==="never"):s==="never"&&(i=!1,a=!1,l=!1,o=!0,u=!0,c=!0);function p(d,m){return r.isArrowToken(d)||r.isKeywordToken(d)&&!e(m)||r.isColonToken(d)&&m.parent&&m.parent.type==="SwitchCase"&&d===r.getSwitchCaseColonToken(m.parent,n)}function h(d){let m=n.getTokenBefore(d);if(m&&!p(m,d)&&r.isTokenOnSameLine(m,d)){let g=n.isSpaceBetweenTokens(m,d),b,O;e(d)?(b=i,O=o):d.type==="ClassBody"?(b=l,O=c):(b=a,O=u),b&&!g?t.report({node:d,messageId:"missingSpace",fix(S){return S.insertTextBefore(d," ")}}):O&&g&&t.report({node:d,messageId:"unexpectedSpace",fix(S){return S.removeRange([m.range[1],d.range[0]])}})}}function f(d){let m=d.cases,g;m.length>0?g=n.getTokenBefore(m[0]):g=n.getLastToken(d,1),h(g)}return{BlockStatement:h,ClassBody:h,SwitchStatement:f}}},dv}var mv,iR;function xX(){if(iR)return mv;iR=1;let r=De();return mv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=typeof e.options[0]=="string"?e.options[0]:"always",n=typeof e.options[0]=="object"?e.options[0]:{};function i(o){if(o.id)return!0;let u=o.parent;return u.type==="MethodDefinition"||u.type==="Property"&&(u.kind==="get"||u.kind==="set"||u.method)}function a(o){if(o.type==="ArrowFunctionExpression"){if(o.async&&r.isOpeningParenToken(t.getFirstToken(o,{skip:1})))return n.asyncArrow||s}else{if(i(o))return n.named||s;if(!o.generator)return n.anonymous||s}return"ignore"}function l(o){let u=a(o);if(u==="ignore")return;let c=t.getFirstToken(o,r.isOpeningParenToken),p=t.getTokenBefore(c),h=t.isSpaceBetweenTokens(p,c);h&&u==="never"?e.report({node:o,loc:{start:p.loc.end,end:c.loc.start},messageId:"unexpectedSpace",fix(f){let d=t.getCommentsBefore(c);return d.some(m=>m.type==="Line")?null:f.replaceTextRange([p.range[1],c.range[0]],d.reduce((m,g)=>m+t.getText(g),""))}}):!h&&u==="always"&&e.report({node:o,loc:c.loc,messageId:"missingSpace",fix:f=>f.insertTextAfter(p," ")})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},mv}var gv,aR;function bX(){if(aR)return gv;aR=1;let r=De();return gv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]==="always",s=e.options[1]&&e.options[1].exceptions||[],n={},i;s.length&&(n.braceException=s.includes("{}"),n.bracketException=s.includes("[]"),n.parenException=s.includes("()"),n.empty=s.includes("empty"));function a(){let d=[],m=[];return n.braceException&&(d.push("{"),m.push("}")),n.bracketException&&(d.push("["),m.push("]")),n.parenException&&(d.push("("),m.push(")")),n.empty&&(d.push(")"),m.push("(")),{openers:d,closers:m}}let l=e.sourceCode;function o(d){return i.openers.includes(d.value)}function u(d){return i.closers.includes(d.value)}function c(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isClosingParenToken(m)?!1:t?!o(m):o(m)}function p(d,m){return!r.isTokenOnSameLine(d,m)||m.type==="Line"||!l.isSpaceBetweenTokens(d,m)?!1:t?o(m):!o(m)}function h(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isOpeningParenToken(d)?!1:t?!u(d):u(d)}function f(d,m){return!r.isTokenOnSameLine(d,m)||!l.isSpaceBetweenTokens(d,m)?!1:t?u(d):!u(d)}return{Program:function(m){i=a();let g=l.tokensAndComments;g.forEach((b,O)=>{let S=g[O-1],C=g[O+1];!r.isOpeningParenToken(b)&&!r.isClosingParenToken(b)||(b.value==="("&&c(b,C)&&e.report({node:m,loc:b.loc,messageId:"missingOpeningSpace",fix(k){return k.insertTextAfter(b," ")}}),b.value==="("&&p(b,C)&&e.report({node:m,loc:{start:b.loc.end,end:C.loc.start},messageId:"rejectedOpeningSpace",fix(k){return k.removeRange([b.range[1],C.range[0]])}}),b.value===")"&&h(S,b)&&e.report({node:m,loc:b.loc,messageId:"missingClosingSpace",fix(k){return k.insertTextBefore(b," ")}}),b.value===")"&&f(S,b)&&e.report({node:m,loc:{start:S.loc.end,end:b.loc.start},messageId:"rejectedClosingSpace",fix(k){return k.removeRange([S.range[1],b.range[0]])}}))})}}}},gv}var yv,oR;function vX(){if(oR)return yv;oR=1;let{isEqToken:r}=De();return yv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]?e.options[0].int32Hint===!0:!1,s=e.sourceCode;function n(u,c,p){let h=s.getFirstTokenBetween(u,c,m=>m.value===p),f=s.getTokenBefore(h),d=s.getTokenAfter(h);return!s.isSpaceBetweenTokens(f,h)||!s.isSpaceBetweenTokens(h,d)?h:null}function i(u,c){e.report({node:u,loc:c.loc,messageId:"missingSpace",data:{operator:c.value},fix(p){let h=s.getTokenBefore(c),f=s.getTokenAfter(c),d="";return c.range[0]-h.range[1]===0&&(d=" "),d+=c.value,f.range[0]-c.range[1]===0&&(d+=" "),p.replaceText(c,d)}})}function a(u){let c=u.left.typeAnnotation?u.left.typeAnnotation:u.left,p=u.right,h=u.operator||"=",f=n(c,p,h);f&&(t&&s.getText(u).endsWith("|0")||i(u,f))}function l(u){let c=n(u.test,u.consequent,"?"),p=n(u.consequent,u.alternate,":");c&&i(u,c),p&&i(u,p)}function o(u){let c=u.id.typeAnnotation?u.id.typeAnnotation:u.id,p=u.init;if(p){let h=n(c,p,"=");h&&i(u,h)}}return{AssignmentExpression:a,AssignmentPattern:a,BinaryExpression:a,LogicalExpression:a,ConditionalExpression:l,VariableDeclarator:o,PropertyDefinition(u){if(!u.value)return;let c=s.getTokenBefore(u.value,r),p=s.getTokenBefore(c),h=s.getTokenAfter(c);(!s.isSpaceBetweenTokens(p,c)||!s.isSpaceBetweenTokens(c,h))&&i(u,c)}}}},yv}var xv,lR;function OX(){if(lR)return xv;lR=1;let r=De();return xv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{words:!0,nonwords:!1},s=e.sourceCode;function n(m){return m&&m.type==="UnaryExpression"&&m.argument.operator==="!"&&m.argument&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){return t.overrides&&Object.hasOwn(t.overrides,m)}function a(m){return t.overrides[m]}function l(m,g,b,O){b.range[0]===g.range[1]&&e.report({node:m,messageId:"wordOperator",data:{word:O},fix(S){return S.insertTextAfter(g," ")}})}function o(m,g,b,O){r.canTokensBeAdjacent(g,b)&&b.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfterWord",data:{word:O},fix(S){return S.removeRange([g.range[1],b.range[0]])}})}function u(m,g,b,O){i(O)?a(O)?l(m,g,b,O):o(m,g,b,O):t.words?l(m,g,b,O):o(m,g,b,O)}function c(m){let g=s.getFirstTokens(m,3),b="yield";!m.argument||m.delegate||u(m,g[0],g[1],b)}function p(m){let g=s.getFirstTokens(m,3);u(m,g[0],g[1],"await")}function h(m,g,b){if(m.prefix){if(n(m))return;g.range[1]===b.range[0]&&e.report({node:m,messageId:"operator",data:{operator:g.value},fix(O){return O.insertTextAfter(g," ")}})}else g.range[1]===b.range[0]&&e.report({node:m,messageId:"beforeUnaryExpressions",data:{token:b.value},fix(O){return O.insertTextBefore(b," ")}})}function f(m,g,b){m.prefix?b.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfter",data:{operator:g.value},fix(O){return r.canTokensBeAdjacent(g,b)?O.removeRange([g.range[1],b.range[0]]):null}}):b.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedBefore",data:{operator:b.value},fix(O){return O.removeRange([g.range[1],b.range[0]])}})}function d(m){let g=m.type==="UpdateExpression"&&!m.prefix?s.getLastTokens(m,2):s.getFirstTokens(m,2),b=g[0],O=g[1];if((m.type==="NewExpression"||m.prefix)&&b.type==="Keyword"){u(m,b,O,b.value);return}let S=m.prefix?g[0].value:g[1].value;i(S)?a(S)?h(m,b,O):f(m,b,O):t.nonwords?h(m,b,O):f(m,b,O)}return{UnaryExpression:d,UpdateExpression:d,NewExpression:d,YieldExpression:c,AwaitExpression:p}}},xv}var bv,uR;function SX(){if(uR)return bv;uR=1;let r=Cc(),e=De();function t(o){return`(?:${r(o)})`}function s(o){return`${t(o)}+`}function n(o){return o.includes("*")?o:o.concat("*")}function i(o){let u="";return o.length===0?u+="\\s":(u+="(?:\\s|",o.length===1?u+=s(o[0]):(u+="(?:",u+=o.map(s).join("|"),u+=")"),u+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),u}function a(o,u){let c="^";return o.length===1?c+=t(o[0]):(c+="(?:",c+=o.map(t).join("|"),c+=")"),c+="?",c+=i(u),new RegExp(c,"u")}function l(o){let u=`^(${o.map(t).join("|")})?[ ]+`;return new RegExp(u,"u")}return bv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/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(o){let u=o.sourceCode,c=o.options[0]!=="never",p=o.options[1]||{},h=p.block&&p.block.balanced,f=["block","line"].reduce((b,O)=>{let S=n(p[O]&&p[O].markers||p.markers||[]),C=p[O]&&p[O].exceptions||p.exceptions||[],k="[ ]+$";return b[O]={beginRegex:c?a(S,C):l(S),endRegex:h&&c?new RegExp(`${i(C)}$`,"u"):new RegExp(k,"u"),hasExceptions:C.length>0,captureMarker:new RegExp(`^(${S.map(t).join("|")})`,"u"),markers:new Set(S)},b},{});function d(b,O,S,C){let k=b.type.toLowerCase(),E=k==="block"?"/*":"//";o.report({node:b,fix(A){let w=b.range[0],P=w+2;return c?(S&&(P+=S[0].length),A.insertTextAfterRange([w,P]," ")):(P+=S[0].length,A.replaceTextRange([w,P],E+(S[1]?S[1]:"")))},messageId:O,data:{refChar:C}})}function m(b,O,S){o.report({node:b,fix(C){if(c)return C.insertTextAfterRange([b.range[0],b.range[1]-2]," ");let k=b.range[1]-2,E=k-S[0].length;return C.replaceTextRange([E,k],"")},messageId:O})}function g(b){let O=b.type.toLowerCase(),S=f[O],C=O==="block"?"/*":"//";if(b.value.length===0||S.markers.has(b.value))return;let k=S.beginRegex.exec(b.value),E=S.endRegex.exec(b.value);if(c){if(!k){let A=S.captureMarker.exec(b.value),w=A?C+A[0]:C;S.hasExceptions?d(b,"expectedExceptionAfter",A,w):d(b,"expectedSpaceAfter",A,w)}h&&O==="block"&&!E&&m(b,"expectedSpaceBefore")}else k&&(k[1]?d(b,"unexpectedSpaceAfterMarker",k,k[1]):d(b,"unexpectedSpaceAfter",k,C)),h&&O==="block"&&E&&m(b,"unexpectedSpaceBefore",E)}return{Program(){u.getAllComments().filter(O=>O.type!=="Shebang").forEach(g)}}}},bv}var vv,cR;function EX(){if(cR)return vv;cR=1;let r=De();function e(n){let i=[];for(let a=0;aS.remove(O)}function p(O,S,C,k,E){O.slice(S,C).forEach(A=>{n.report({node:A,messageId:k,fix:E?c(A):null})})}function h(O,S,C){p(O,0,O.length,S,C)}function f(O,S,C){p(O,1,O.length,S,C)}function d(O,S){let C=l.length>0,k=a.length===0&&l.length===0,E=a.length>0&&a.at(-1),A=S.length>0;A?(s(O.params)?E?n.report({node:S[0],messageId:"unnecessary",fix:c(S[0])}):C&&n.report({node:S[0],messageId:"unnecessaryInClasses",fix:c(S[0])}):n.report({node:S[0],messageId:"nonSimpleParameterList"}),f(S,"multiple",!0)):k&&(s(O.params)?n.report({node:O,messageId:"function"}):n.report({node:O,messageId:"wrap",data:{name:r.getFunctionNameWithKind(O)}})),a.push(E||A)}function m(){a.pop()}function g(O){let S=O.body.type==="BlockStatement",C=S?e(O.body.body):[];o==="function"?d(O,C):C.length>0&&(s(O.params)?h(C,o,u(o)):(n.report({node:C[0],messageId:"nonSimpleParameterList"}),f(C,"multiple",!0)))}let b={Program(O){let S=e(O.body);O.sourceType==="module"&&(o="module"),o==="global"?(O.body.length>0&&S.length===0&&n.report({node:O,messageId:"global"}),f(S,"multiple",!0)):h(S,o,u(o))},FunctionDeclaration:g,FunctionExpression:g,ArrowFunctionExpression:g};return o==="function"&&Object.assign(b,{ClassBody(){l.push(!0)},"ClassBody:exit"(){l.pop()},"FunctionDeclaration:exit":m,"FunctionExpression:exit":m,"ArrowFunctionExpression:exit":m}),b}},vv}var Ov,fR;function CX(){if(fR)return Ov;fR=1;let r=De();return Ov={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||{},n=s.before===!0,i=s.after!==!1;function a(u,c,p){return r.isClosingBraceToken(c)||!r.isTokenOnSameLine(u,c)||t.isSpaceBetweenTokens(u,c)===p}function l(u,c){return t.getFirstTokenBetween(u,c,{includeComments:!0,filter:r.isCommentToken})!==null}function o(u,c,p,h){return l(c,p)?null:h?u.insertTextAfter(c," "):u.removeRange([c.range[1],p.range[0]])}return{SwitchCase(u){let c=r.getSwitchCaseColonToken(u,t),p=t.getTokenBefore(c),h=t.getTokenAfter(c);a(p,c,n)||e.report({node:u,loc:c.loc,messageId:n?"expectedBefore":"unexpectedBefore",fix:f=>o(f,p,c,n)}),a(c,h,i)||e.report({node:u,loc:c.loc,messageId:i?"expectedAfter":"unexpectedAfter",fix:f=>o(f,c,h,i)})}}}},Ov}var Sv,pR;function wX(){if(pR)return Sv;pR=1;let r=De();return Sv={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){let t=e.sourceCode;function s(n){n.arguments.length===0&&e.report({node:n,messageId:"expected"})}return{"Program:exit"(n){let i=t.getScope(n),a=r.getVariableByName(i,"Symbol");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier;r.isCallee(o)&&s(o.parent)})}}}},Sv}var Ev,hR;function kX(){if(hR)return Ev;hR=1;let r=De();return Ev={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]==="always";function n(a){if(!a.value.startsWith("}"))return;let l=t.getTokenBefore(a,{includeComments:!0}),o=t.isSpaceBetween(l,a);r.isTokenOnSameLine(l,a)&&(s&&!o&&e.report({loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"expectedBefore",fix:u=>u.insertTextBefore(a," ")}),!s&&o&&e.report({loc:{start:l.loc.end,end:a.loc.start},messageId:"unexpectedBefore",fix:u=>u.removeRange([l.range[1],a.range[0]])}))}function i(a){if(!a.value.endsWith("${"))return;let l=t.getTokenAfter(a,{includeComments:!0}),o=t.isSpaceBetween(a,l);r.isTokenOnSameLine(a,l)&&(s&&!o&&e.report({loc:{start:{line:a.loc.end.line,column:a.loc.end.column-2},end:a.loc.end},messageId:"expectedAfter",fix:u=>u.insertTextAfter(a," ")}),!s&&o&&e.report({loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedAfter",fix:u=>u.removeRange([a.range[1],l.range[0]])}))}return{TemplateElement(a){let l=t.getFirstToken(a);n(l),i(l)}}}},Ev}var Cv,dR;function AX(){return dR||(dR=1,Cv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]!=="always",t=r.sourceCode;function s(n){let i=t.getTokenBefore(n.quasi),a=t.getFirstToken(n.quasi),l=t.isSpaceBetweenTokens(i,a);e&&l?r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpected",fix(o){let u=t.getCommentsBefore(n.quasi);return u.some(c=>c.type==="Line")?null:o.replaceTextRange([i.range[1],a.range[0]],u.reduce((c,p)=>c+t.getText(p),""))}}):!e&&!l&&r.report({node:n,loc:{start:n.loc.start,end:a.loc.start},messageId:"missing",fix(o){return o.insertTextAfter(i," ")}})}return{TaggedTemplateExpression:s}}}),Cv}var wv,mR;function PX(){return mR||(mR=1,wv={meta:{type:"layout",docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return{Program:function(t){let s=r.sourceCode,n={column:0,line:1},i=r.options[0]||"never";!s.hasBOM&&i==="always"?r.report({node:t,loc:n,messageId:"expected",fix(a){return a.insertTextBeforeRange([0,1],"\uFEFF")}}):s.hasBOM&&i==="never"&&r.report({node:t,loc:n,messageId:"unexpected",fix(a){return a.removeRange([-1,0])}})}}}}),wv}var kv,gR;function TX(){if(gR)return kv;gR=1;let r=De();function e(t){if(!t)return!1;let s=t.type==="SequenceExpression"?t.expressions.at(-1):t;return r.isSpecificId(s,"NaN")||r.isSpecificMemberAccess(s,"Number","NaN")}return kv={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/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.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(t){let s=!t.options[0]||t.options[0].enforceForSwitchCase,n=t.options[0]&&t.options[0].enforceForIndexOf,i=t.sourceCode,a=new Set(["==","===","!=","!=="]),l=new Set(["==","!="]);function o(f,d){return m=>{let g=e(f.left)?f.right:f.left,b=g.type==="SequenceExpression",S=f.operator[0]==="!"?"!":"",C=i.getText(g);b&&(C=`(${C})`);let k=d(C);return m.replaceText(f,`${S}${k}`)}}function u(f){if(/^(?:[<>]|[!=]=)=?$/u.test(f.operator)&&(e(f.left)||e(f.right))){let d=[],g=(e(f.left)?f.left:f.right).type==="SequenceExpression",b=a.has(f.operator)&&!g,O=l.has(f.operator);b&&(d.push({messageId:"replaceWithIsNaN",fix:o(f,S=>`Number.isNaN(${S})`)}),O&&d.push({messageId:"replaceWithCastingAndIsNaN",fix:o(f,S=>`Number.isNaN(Number(${S}))`)})),t.report({node:f,messageId:"comparisonWithNaN",suggest:d})}}function c(f){e(f.discriminant)&&t.report({node:f,messageId:"switchNaN"});for(let d of f.cases)e(d.test)&&t.report({node:d,messageId:"caseNaN"})}function p(f){let d=r.skipChainExpression(f.callee);if(d.type==="MemberExpression"){let m=r.getStaticPropertyName(d);if((m==="indexOf"||m==="lastIndexOf")&&f.arguments.length<=2&&e(f.arguments[0])){let g=f.arguments[0].type!=="SequenceExpression"&&!f.arguments[1],b=[];if(g){let O=d.computed,S=m==="indexOf"?"findIndex":"findLastIndex",C=O?`"${S}"`:S;b.push({messageId:"replaceWithFindIndex",data:{methodName:S},fix:k=>[k.replaceText(d.property,C),k.replaceText(f.arguments[0],"Number.isNaN")]})}t.report({node:f,messageId:"indexOfNaN",data:{methodName:m},suggest:b})}}}let h={BinaryExpression:u};return s&&(h.SwitchStatement=c),n&&(h.CallExpression=p),h}},kv}var Av,yR;function DX(){if(yR)return Av;yR=1;let r=De();return Av={meta:{type:"problem",docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/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(e){let t=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),s=new Set(["==","===","!=","!=="]),n=e.sourceCode,i=e.options[0]&&e.options[0].requireStringLiterals,a;function l(u){let c=a.set.get(u.name);return c&&c.defs.length===0&&c.references.some(p=>p.identifier===u)}function o(u){return u.type==="UnaryExpression"&&u.operator==="typeof"}return{Program(u){a=n.getScope(u)},UnaryExpression(u){if(o(u)){let{parent:c}=u;if(c.type==="BinaryExpression"&&s.has(c.operator)){let p=c.left===u?c.right:c.left;if(p.type==="Literal"||r.isStaticTemplateLiteral(p)){let h=p.type==="Literal"?p.value:p.quasis[0].value.cooked;t.has(h)||e.report({node:p,messageId:"invalidValue"})}else p.type==="Identifier"&&p.name==="undefined"&&l(p)?e.report({node:p,messageId:i?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(p,'"undefined"')}}]}):i&&!o(p)&&e.report({node:p,messageId:"notString"})}}}}}},Av}var Pv,xR;function _X(){return xR||(xR=1,Pv={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(r){function e(l){return l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"}function t(l){return l.type==="ImportDeclaration"||l.type==="ImportSpecifier"||l.type==="ImportDefaultSpecifier"||l.type==="ImportNamespaceSpecifier"}function s(l){return l.type==="VariableDeclaration"||l.type==="ExportNamedDeclaration"&&l.declaration&&l.declaration.type==="VariableDeclaration"}function n(l,o){let u=o.length,c=0;if(l.parent.type!=="StaticBlock")for(;co.replaceText(t,`(${e.getText(t)})`)})}}}}}),Dv}var _v,OR;function RX(){return OR||(OR=1,_v={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.sourceCode,t=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}(r.options[0]);function s(i,a,l){if(e.isSpaceBetweenTokens(a,l)!==t[i]){let o=a.value==="*",u=t[i],c=o?a:l,p;u?p=i==="before"?"missingBefore":"missingAfter":p=i==="before"?"unexpectedBefore":"unexpectedAfter",r.report({node:c,messageId:p,fix(h){return u?o?h.insertTextAfter(c," "):h.insertTextBefore(c," "):h.removeRange([a.range[1],l.range[0]])}})}}function n(i){if(!i.delegate)return;let a=e.getFirstTokens(i,3),l=a[0],o=a[1],u=a[2];s("before",l,o),s("after",o,u)}return{YieldExpression:n}}}),_v}var Iv,SR;function BX(){if(SR)return Iv;SR=1;let r=De();function e(l){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(l)}function t(l){return/^(==|===)$/u.test(l)}function s(l){return["<","<="].includes(l)}function n(l){return l.type==="UnaryExpression"&&l.operator==="-"&&l.prefix&&r.isNumericLiteral(l.argument)}function i(l){return n(l)||r.isStaticTemplateLiteral(l)}function a(l){return l.type==="Literal"?l:n(l)?{type:"Literal",value:-l.argument.value,raw:`-${l.argument.value}`}:r.isStaticTemplateLiteral(l)?{type:"Literal",value:l.quasis[0].value.cooked,raw:l.quasis[0].value.raw}:null}return Iv={meta:{type:"suggestion",docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,url:"https://eslint.org/docs/latest/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(l){let o=l.options[0]==="always",u=l.options[1]&&l.options[1].exceptRange,c=l.options[1]&&l.options[1].onlyEquality,p=l.sourceCode;function h(m){let g=m.left,b=m.right;function O(){if(m.operator==="&&"&&r.isSameReference(g.right,b.left)){let k=a(g.left),E=a(b.right);if(k===null&&E===null)return!1;if(E===null||k===null||k.value<=E.value)return!0}return!1}function S(){if(m.operator==="||"&&r.isSameReference(g.left,b.right)){let k=a(g.right),E=a(b.left);if(k===null&&E===null)return!1;if(E===null||k===null||k.value<=E.value)return!0}return!1}function C(){return r.isParenthesised(p,m)}return m.type==="LogicalExpression"&&g.type==="BinaryExpression"&&b.type==="BinaryExpression"&&s(g.operator)&&s(b.operator)&&(O()||S())&&C()}let f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function d(m){let g=p.getFirstTokenBetween(m.left,m.right,F=>F.value===m.operator),b=p.getTokenBefore(g),O=p.getTokenAfter(g),S=p.getText(),C=S.slice(m.range[0],b.range[1]),k=S.slice(b.range[1],g.range[0]),E=S.slice(g.range[1],O.range[0]),A=S.slice(O.range[0],m.range[1]),w=p.getTokenBefore(m),P=p.getTokenAfter(m),T="",I="";return w&&w.range[1]===m.range[0]&&!r.canTokensBeAdjacent(w,O)&&(T=" "),P&&m.range[1]===P.range[0]&&!r.canTokensBeAdjacent(b,P)&&(I=" "),T+A+k+f[g.value]+E+C+I}return{BinaryExpression(m){let g=o?m.left:m.right,b=o?m.right:m.left;(b.type==="Literal"||i(b))&&!(g.type==="Literal"||i(g))&&!(!t(m.operator)&&c)&&e(m.operator)&&!(u&&h(m.parent))&&l.report({node:m,messageId:"expected",data:{operator:m.operator,expectedSide:o?"left":"right"},fix:O=>O.replaceText(m,d(m))})}}}},Iv}var Fv,ER;function aN(){if(ER)return Fv;ER=1;let{LazyLoadingRuleMap:r}=i7();return Fv=new r(Object.entries({"accessor-pairs":()=>l7(),"array-bracket-newline":()=>u7(),"array-bracket-spacing":()=>c7(),"array-callback-return":()=>f7(),"array-element-newline":()=>p7(),"arrow-body-style":()=>h7(),"arrow-parens":()=>d7(),"arrow-spacing":()=>m7(),"block-scoped-var":()=>g7(),"block-spacing":()=>y7(),"brace-style":()=>x7(),"callback-return":()=>b7(),camelcase:()=>v7(),"capitalized-comments":()=>S7(),"class-methods-use-this":()=>E7(),"comma-dangle":()=>C7(),"comma-spacing":()=>w7(),"comma-style":()=>k7(),complexity:()=>A7(),"computed-property-spacing":()=>P7(),"consistent-return":()=>T7(),"consistent-this":()=>D7(),"constructor-super":()=>_7(),curly:()=>I7(),"default-case":()=>F7(),"default-case-last":()=>R7(),"default-param-last":()=>B7(),"dot-location":()=>N7(),"dot-notation":()=>L7(),"eol-last":()=>$7(),eqeqeq:()=>M7(),"for-direction":()=>j7(),"func-call-spacing":()=>q7(),"func-name-matching":()=>Q7(),"func-names":()=>U7(),"func-style":()=>V7(),"function-call-argument-newline":()=>W7(),"function-paren-newline":()=>Z7(),"generator-star-spacing":()=>z7(),"getter-return":()=>X7(),"global-require":()=>G7(),"grouped-accessor-pairs":()=>Y7(),"guard-for-in":()=>H7(),"handle-callback-err":()=>K7(),"id-blacklist":()=>J7(),"id-denylist":()=>eV(),"id-length":()=>tV(),"id-match":()=>rV(),"implicit-arrow-linebreak":()=>nV(),indent:()=>sV(),"indent-legacy":()=>iV(),"init-declarations":()=>aV(),"jsx-quotes":()=>oV(),"key-spacing":()=>lV(),"keyword-spacing":()=>uV(),"line-comment-position":()=>cV(),"linebreak-style":()=>fV(),"lines-around-comment":()=>pV(),"lines-around-directive":()=>hV(),"lines-between-class-members":()=>dV(),"logical-assignment-operators":()=>mV(),"max-classes-per-file":()=>gV(),"max-depth":()=>yV(),"max-len":()=>xV(),"max-lines":()=>bV(),"max-lines-per-function":()=>vV(),"max-nested-callbacks":()=>OV(),"max-params":()=>SV(),"max-statements":()=>EV(),"max-statements-per-line":()=>CV(),"multiline-comment-style":()=>wV(),"multiline-ternary":()=>kV(),"new-cap":()=>AV(),"new-parens":()=>PV(),"newline-after-var":()=>TV(),"newline-before-return":()=>DV(),"newline-per-chained-call":()=>_V(),"no-alert":()=>IV(),"no-array-constructor":()=>FV(),"no-async-promise-executor":()=>RV(),"no-await-in-loop":()=>BV(),"no-bitwise":()=>NV(),"no-buffer-constructor":()=>LV(),"no-caller":()=>$V(),"no-case-declarations":()=>MV(),"no-catch-shadow":()=>jV(),"no-class-assign":()=>qV(),"no-compare-neg-zero":()=>QV(),"no-cond-assign":()=>UV(),"no-confusing-arrow":()=>VV(),"no-console":()=>WV(),"no-const-assign":()=>ZV(),"no-constant-binary-expression":()=>zV(),"no-constant-condition":()=>XV(),"no-constructor-return":()=>GV(),"no-continue":()=>YV(),"no-control-regex":()=>HV(),"no-debugger":()=>KV(),"no-delete-var":()=>JV(),"no-div-regex":()=>eW(),"no-dupe-args":()=>tW(),"no-dupe-class-members":()=>rW(),"no-dupe-else-if":()=>nW(),"no-dupe-keys":()=>sW(),"no-duplicate-case":()=>iW(),"no-duplicate-imports":()=>aW(),"no-else-return":()=>oW(),"no-empty":()=>lW(),"no-empty-character-class":()=>uW(),"no-empty-function":()=>cW(),"no-empty-pattern":()=>fW(),"no-empty-static-block":()=>pW(),"no-eq-null":()=>hW(),"no-eval":()=>dW(),"no-ex-assign":()=>mW(),"no-extend-native":()=>gW(),"no-extra-bind":()=>yW(),"no-extra-boolean-cast":()=>xW(),"no-extra-label":()=>bW(),"no-extra-parens":()=>vW(),"no-extra-semi":()=>OW(),"no-fallthrough":()=>SW(),"no-floating-decimal":()=>EW(),"no-func-assign":()=>CW(),"no-global-assign":()=>wW(),"no-implicit-coercion":()=>kW(),"no-implicit-globals":()=>AW(),"no-implied-eval":()=>PW(),"no-import-assign":()=>TW(),"no-inline-comments":()=>DW(),"no-inner-declarations":()=>_W(),"no-invalid-regexp":()=>IW(),"no-invalid-this":()=>FW(),"no-irregular-whitespace":()=>RW(),"no-iterator":()=>BW(),"no-label-var":()=>NW(),"no-labels":()=>LW(),"no-lone-blocks":()=>$W(),"no-lonely-if":()=>MW(),"no-loop-func":()=>jW(),"no-loss-of-precision":()=>qW(),"no-magic-numbers":()=>QW(),"no-misleading-character-class":()=>GW(),"no-mixed-operators":()=>YW(),"no-mixed-requires":()=>HW(),"no-mixed-spaces-and-tabs":()=>KW(),"no-multi-assign":()=>JW(),"no-multi-spaces":()=>eZ(),"no-multi-str":()=>tZ(),"no-multiple-empty-lines":()=>rZ(),"no-native-reassign":()=>nZ(),"no-negated-condition":()=>sZ(),"no-negated-in-lhs":()=>iZ(),"no-nested-ternary":()=>aZ(),"no-new":()=>oZ(),"no-new-func":()=>lZ(),"no-new-native-nonconstructor":()=>uZ(),"no-new-object":()=>cZ(),"no-new-require":()=>fZ(),"no-new-symbol":()=>pZ(),"no-new-wrappers":()=>hZ(),"no-nonoctal-decimal-escape":()=>dZ(),"no-obj-calls":()=>mZ(),"no-object-constructor":()=>gZ(),"no-octal":()=>yZ(),"no-octal-escape":()=>xZ(),"no-param-reassign":()=>bZ(),"no-path-concat":()=>vZ(),"no-plusplus":()=>OZ(),"no-process-env":()=>SZ(),"no-process-exit":()=>EZ(),"no-promise-executor-return":()=>CZ(),"no-proto":()=>wZ(),"no-prototype-builtins":()=>kZ(),"no-redeclare":()=>AZ(),"no-regex-spaces":()=>PZ(),"no-restricted-exports":()=>TZ(),"no-restricted-globals":()=>DZ(),"no-restricted-imports":()=>_Z(),"no-restricted-modules":()=>IZ(),"no-restricted-properties":()=>FZ(),"no-restricted-syntax":()=>RZ(),"no-return-assign":()=>BZ(),"no-return-await":()=>NZ(),"no-script-url":()=>LZ(),"no-self-assign":()=>$Z(),"no-self-compare":()=>MZ(),"no-sequences":()=>jZ(),"no-setter-return":()=>qZ(),"no-shadow":()=>QZ(),"no-shadow-restricted-names":()=>UZ(),"no-spaced-func":()=>VZ(),"no-sparse-arrays":()=>WZ(),"no-sync":()=>ZZ(),"no-tabs":()=>zZ(),"no-template-curly-in-string":()=>XZ(),"no-ternary":()=>GZ(),"no-this-before-super":()=>YZ(),"no-throw-literal":()=>HZ(),"no-trailing-spaces":()=>KZ(),"no-undef":()=>JZ(),"no-undef-init":()=>ez(),"no-undefined":()=>tz(),"no-underscore-dangle":()=>rz(),"no-unexpected-multiline":()=>nz(),"no-unmodified-loop-condition":()=>sz(),"no-unneeded-ternary":()=>iz(),"no-unreachable":()=>az(),"no-unreachable-loop":()=>oz(),"no-unsafe-finally":()=>lz(),"no-unsafe-negation":()=>uz(),"no-unsafe-optional-chaining":()=>cz(),"no-unused-expressions":()=>fz(),"no-unused-labels":()=>pz(),"no-unused-private-class-members":()=>hz(),"no-unused-vars":()=>dz(),"no-use-before-define":()=>mz(),"no-useless-assignment":()=>gz(),"no-useless-backreference":()=>yz(),"no-useless-call":()=>xz(),"no-useless-catch":()=>bz(),"no-useless-computed-key":()=>vz(),"no-useless-concat":()=>Oz(),"no-useless-constructor":()=>Sz(),"no-useless-escape":()=>Ez(),"no-useless-rename":()=>Cz(),"no-useless-return":()=>wz(),"no-var":()=>kz(),"no-void":()=>Az(),"no-warning-comments":()=>Pz(),"no-whitespace-before-property":()=>Tz(),"no-with":()=>Dz(),"nonblock-statement-body-position":()=>_z(),"object-curly-newline":()=>Iz(),"object-curly-spacing":()=>Fz(),"object-property-newline":()=>Rz(),"object-shorthand":()=>Bz(),"one-var":()=>Nz(),"one-var-declaration-per-line":()=>Lz(),"operator-assignment":()=>$z(),"operator-linebreak":()=>Mz(),"padded-blocks":()=>jz(),"padding-line-between-statements":()=>qz(),"prefer-arrow-callback":()=>Qz(),"prefer-const":()=>Uz(),"prefer-destructuring":()=>Vz(),"prefer-exponentiation-operator":()=>Wz(),"prefer-named-capture-group":()=>Zz(),"prefer-numeric-literals":()=>zz(),"prefer-object-has-own":()=>Xz(),"prefer-object-spread":()=>Gz(),"prefer-promise-reject-errors":()=>Yz(),"prefer-reflect":()=>Hz(),"prefer-regex-literals":()=>Kz(),"prefer-rest-params":()=>Jz(),"prefer-spread":()=>eX(),"prefer-template":()=>tX(),"quote-props":()=>rX(),quotes:()=>nX(),radix:()=>sX(),"require-atomic-updates":()=>iX(),"require-await":()=>aX(),"require-unicode-regexp":()=>oX(),"require-yield":()=>lX(),"rest-spread-spacing":()=>uX(),semi:()=>cX(),"semi-spacing":()=>fX(),"semi-style":()=>pX(),"sort-imports":()=>hX(),"sort-keys":()=>mX(),"sort-vars":()=>gX(),"space-before-blocks":()=>yX(),"space-before-function-paren":()=>xX(),"space-in-parens":()=>bX(),"space-infix-ops":()=>vX(),"space-unary-ops":()=>OX(),"spaced-comment":()=>SX(),strict:()=>EX(),"switch-colon-spacing":()=>CX(),"symbol-description":()=>wX(),"template-curly-spacing":()=>kX(),"template-tag-spacing":()=>AX(),"unicode-bom":()=>PX(),"use-isnan":()=>TX(),"valid-typeof":()=>DX(),"vars-on-top":()=>_X(),"wrap-iife":()=>IX(),"wrap-regex":()=>FX(),"yield-star-spacing":()=>RX(),yoda:()=>BX()})),Fv}var Rv,CR;function NX(){if(CR)return Rv;CR=1;let r=aN();class e{constructor(){this._rules=Object.create(null)}define(s,n){this._rules[s]=n}get(s){return typeof this._rules[s]=="string"&&this.define(s,s7(this._rules[s])),this._rules[s]?this._rules[s]:r.has(s)?r.get(s):null}*[Symbol.iterator](){yield*r;for(let s of Object.keys(this._rules))yield[s,this.get(s)]}}return Rv=e,Rv}var Bv,wR;function LX(){if(wR)return Bv;wR=1;let r=Oi()("eslint:source-code-fixer"),e="\uFEFF";function t(i,a){return i.fix.range[0]-a.fix.range[0]||i.fix.range[1]-a.fix.range[1]}function s(i,a){return i.line-a.line||i.column-a.column}function n(){Object.freeze(this)}return n.applyFixes=function(i,a,l){if(r("Applying fixes"),l===!1)return r("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:a,output:i};let o=[],u=[],c=i.startsWith(e)?e:"",p=c?i.slice(1):i,h=Number.NEGATIVE_INFINITY,f=c;function d(m){let g=m.fix,b=g.range[0],O=g.range[1];return h>=b||b>O?(o.push(m),!1):((b<0&&O>=0||b===0&&g.text.startsWith(e))&&(f=""),f+=p.slice(Math.max(0,h),Math.max(0,b)),f+=g.text,h=O,!0)}if(a.forEach(m=>{Object.hasOwn(m,"fix")?u.push(m):o.push(m)}),u.length){r("Found fixes to apply");let m=!1;for(let g of u.sort(t))typeof l!="function"||l(g)?(d(g),m=!0):o.push(g);return f+=p.slice(Math.max(0,h)),{fixed:m,messages:o.sort(s),output:f}}return r("No fixes to apply"),{fixed:!1,messages:a,output:c+p}},Bv=n,Bv}var Nv,kR;function oN(){if(kR)return Nv;kR=1;function r(){return Lt.hrtime()}function e(t){let s=Lt.hrtime(t);return s[0]*1e3+s[1]/1e6}return Nv={startTime:r,endTime:e},Nv}var Lv,AR;function $X(){if(AR)return Lv;AR=1;let{startTime:r,endTime:e}=oN();function t(u,c,p){return u+new Array(c-u.length+1).join(p||" ")}function s(u,c,p){return new Array(c-u.length+1).join(p||" ")+u}let n=!!Lt.env.TIMING,i=["Rule","Time (ms)","Relative"],a=[t,s,s];function l(){if(typeof Lt.env.TIMING!="string")return 10;if(Lt.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;let c=Number.parseInt(Lt.env.TIMING,10);return c>10?c:10}function o(u){let c=0,p=Object.keys(u).map(d=>{let m=u[d];return c+=m,[d,m]}).sort((d,m)=>m[1]-d[1]).slice(0,l());p.forEach(d=>{d.push(`${(d[1]*100/c).toFixed(1)}%`),d[1]=d[1].toFixed(3)}),p.unshift(i);let h=[];p.forEach(d=>{let m=d.length;for(let g=0;gh[g])&&(h[g]=b)}});let f=p.map(d=>d.map((m,g)=>a[g](m,h[g])).join(" | "));f.splice(1,0,h.map((d,m)=>{let g=m!==0&&m!==h.length-1?2:1;return a[m](":",d+g,"-")}).join("|")),console.log(f.join(` -`))}return Lv=function(){let u=Object.create(null);function c(p,h,f){return function(...d){let m=r(),g=h(...d),b=e(m);return n&&(typeof u[p]>"u"&&(u[p]=0),u[p]+=b),f?{result:g,tdiff:b}:g}}return n&&Lt.on("exit",()=>{o(u)}),{time:c,enabled:n,getListSize:l}}(),Lv}var MX={"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"]},lN={rules:MX},$v,PR;function uN(){if(PR)return $v;PR=1;let r=Object.freeze({type:"array",minItems:0,maxItems:0});function e(n){let i,a;return n.includes("/")?(n.startsWith("@")?i=n.slice(0,n.lastIndexOf("/")):i=n.slice(0,n.indexOf("/")),a=n.slice(i.length+1)):(i="@",a=n),{pluginName:i,ruleName:a}}function t(n,i){let{pluginName:a,ruleName:l}=e(n),o=i.plugins&&i.plugins[a];return o&&o.rules&&o.rules[l]}function s(n){if(!n.meta)return{...r};let i=n.meta.schema;if(typeof i>"u")return{...r};if(i===!1)return null;if(typeof i!="object"||i===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(i)?i.length?{type:"array",items:i,minItems:0,maxItems:i.length}:{...r}:i}return $v={parseRuleId:e,getRuleFromConfig:t,getRuleOptionsSchema:s},$v}var Mv={},nc={},jv,TR;function jX(){if(TR)return jv;TR=1,jv=function(e,t){for(var s=[],n=0;n=0&&h>0){for(a=[],o=i.length;f>=0&&!c;)f==p?(a.push(f),p=i.indexOf(s,f+1)):a.length==1?c=[a.pop(),h]:(l=a.pop(),l=0?p:h;a.length&&(c=[o,u])}return c}return qv}var Qv,_R;function QX(){if(_R)return Qv;_R=1;var r=jX(),e=qX();Qv=p;var t="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",n="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function l(b){return parseInt(b,10)==b?parseInt(b,10):b.charCodeAt(0)}function o(b){return b.split("\\\\").join(t).split("\\{").join(s).split("\\}").join(n).split("\\,").join(i).split("\\.").join(a)}function u(b){return b.split(t).join("\\").split(s).join("{").split(n).join("}").split(i).join(",").split(a).join(".")}function c(b){if(!b)return[""];var O=[],S=e("{","}",b);if(!S)return b.split(",");var C=S.pre,k=S.body,E=S.post,A=C.split(",");A[A.length-1]+="{"+k+"}";var w=c(E);return E.length&&(A[A.length-1]+=w.shift(),A.push.apply(A,w)),O.push.apply(O,A),O}function p(b){return b?(b.substr(0,2)==="{}"&&(b="\\{\\}"+b.substr(2)),g(o(b),!0).map(u)):[]}function h(b){return"{"+b+"}"}function f(b){return/^-?0\d/.test(b)}function d(b,O){return b<=O}function m(b,O){return b>=O}function g(b,O){var S=[],C=e("{","}",b);if(!C||/\$$/.test(C.pre))return[b];var k=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(C.body),E=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(C.body),A=k||E,w=C.body.indexOf(",")>=0;if(!A&&!w)return C.post.match(/,.*\}/)?(b=C.pre+"{"+C.body+n+C.post,g(b)):[b];var P;if(A)P=C.body.split(/\.\./);else if(P=c(C.body),P.length===1&&(P=g(P[0],!1).map(h),P.length===1)){var I=C.post.length?g(C.post,!1):[""];return I.map(function(j){return C.pre+P[0]+j})}var T=C.pre,I=C.post.length?g(C.post,!1):[""],F;if(A){var L=l(P[0]),_=l(P[1]),B=Math.max(P[0].length,P[1].length),Q=P.length==3?Math.abs(l(P[2])):1,V=d,R=_0){var le=new Array(Z+1).join("0");N<0?W="-"+le+W.slice(1):W=le+W}}F.push(W)}}else F=r(P,function(me){return g(me,!1)});for(var ae=0;ae"u"?this.pattern:P,S(P),T.nobrace||!/\{(?:(?!\{).)*\}/.test(P)?[P]:t(P)}var O=1024*64,S=function(P){if(typeof P!="string")throw new TypeError("invalid pattern");if(P.length>O)throw new TypeError("pattern is too long")};d.prototype.parse=k;var C={};function k(P,T){S(P);var I=this.options;if(P==="**")if(I.noglobstar)P="*";else return e;if(P==="")return"";var F="",L=!!I.nocase,_=!1,B=[],Q=[],V,R=!1,$=-1,N=-1,W=P.charAt(0)==="."?"":I.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",Z=this;function le(){if(V){switch(V){case"*":F+=i,L=!0;break;case"?":F+=n,L=!0;break;default:F+="\\"+V;break}Z.debug("clearStateChar %j %j",V,F),V=!1}}for(var ae=0,Se=P.length,J;ae-1;Me--){var Ue=Q[Me],st=F.slice(0,Ue.reStart),mt=F.slice(Ue.reStart,Ue.reEnd-8),dt=F.slice(Ue.reEnd-8,Ue.reEnd),wt=F.slice(Ue.reEnd);dt+=wt;var Y=st.split("(").length-1,Ae=wt;for(ae=0;ae"u"&&(I=this.partial),this.debug("match",T,this.pattern),this.comment)return!1;if(this.empty)return T==="";if(T==="/"&&I)return!0;var F=this.options;r.sep!=="/"&&(T=T.split(r.sep).join("/")),T=T.split(c),this.debug(this.pattern,"split",T);var L=this.set;this.debug(this.pattern,"set",L);var _,B;for(B=T.length-1;B>=0&&(_=T[B],!_);B--);for(B=0;B>> no match, partial?`,P,$,T,N),$===B))}var Z;if(typeof V=="string"?(Z=R===V,this.debug("string match",V,R,Z)):(Z=R.match(V),this.debug("pattern match",V,R,Z)),!Z)return!1}if(L===B&&_===Q)return!0;if(L===B)return I;if(_===Q)return L===B-1&&P[L]==="";throw new Error("wtf?")};function A(P){return P.replace(/\\(.)/g,"$1")}function w(P){return P.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return Uv}var jo={},Vv={},Wv={},FR;function cN(){if(FR)return Wv;FR=1;class r{static overwrite(t,s){return s}static replace(t,s){return typeof s<"u"?s:t}static assign(t,s){return Object.assign({},t,s)}}return Wv.MergeStrategy=r,Wv}var Zv={},RR;function fN(){if(RR)return Zv;RR=1;class r{static array(t){if(!Array.isArray(t))throw new TypeError("Expected an array.")}static boolean(t){if(typeof t!="boolean")throw new TypeError("Expected a Boolean.")}static number(t){if(typeof t!="number")throw new TypeError("Expected a number.")}static object(t){if(!t||typeof t!="object")throw new TypeError("Expected an object.")}static"object?"(t){if(typeof t!="object")throw new TypeError("Expected an object or null.")}static string(t){if(typeof t!="string")throw new TypeError("Expected a string.")}static"string!"(t){if(typeof t!="string"||t.length===0)throw new TypeError("Expected a non-empty string.")}}return Zv.ValidationStrategy=r,Zv}var BR;function VX(){if(BR)return Vv;BR=1;let{MergeStrategy:r}=cN(),{ValidationStrategy:e}=fN(),t=Symbol("strategies"),s=Symbol("requiredKeys");function n(c,p){let h=!1;if(p.schema)if(typeof p.schema=="object")h=!0;else throw new TypeError("Schema must be an object.");if(typeof p.merge=="string"){if(!(p.merge in r))throw new TypeError(`Definition for key "${c}" missing valid merge strategy.`)}else if(!h&&typeof p.merge!="function")throw new TypeError(`Definition for key "${c}" must have a merge property.`);if(typeof p.validate=="string"){if(!(p.validate in e))throw new TypeError(`Definition for key "${c}" missing valid validation strategy.`)}else if(!h&&typeof p.validate!="function")throw new TypeError(`Definition for key "${c}" must have a validate() method.`)}class i extends Error{constructor(p){super(`Unexpected key "${p}" found.`)}}class a extends Error{constructor(p){super(`Missing required key "${p}".`)}}class l extends Error{constructor(p,h){super(`Key "${p}" requires keys "${h.join('", "')}".`)}}class o extends Error{constructor(p,h){super(`Key "${p}": ${h.message}`,{cause:h});for(let f of Object.keys(h))f in this||(this[f]=h[f])}}class u{constructor(p){if(!p)throw new Error("Schema definitions missing.");this[t]=new Map,this[s]=new Map;for(let h of Object.keys(p)){if(n(h,p[h]),typeof p[h].schema=="object"){let f=new u(p[h].schema);p[h]={...p[h],merge(d={},m={}){return f.merge(d,m)},validate(d){e.object(d),f.validate(d)}}}typeof p[h].merge=="string"&&(p[h]={...p[h],merge:r[p[h].merge]}),typeof p[h].validate=="string"&&(p[h]={...p[h],validate:e[p[h].validate]}),this[t].set(h,p[h]),p[h].required&&this[s].set(h,p[h])}}hasKey(p){return this[t].has(p)}merge(...p){if(p.length<2)throw new TypeError("merge() requires at least two arguments.");if(p.some(h=>h==null||typeof h!="object"))throw new TypeError("All arguments must be objects.");return p.reduce((h,f)=>{this.validate(f);for(let[d,m]of this[t])try{if(d in h||d in f){let g=m.merge.call(this,h[d],f[d]);g!==void 0&&(h[d]=g)}}catch(g){throw new o(d,g)}return h},{})}validate(p){for(let h of Object.keys(p)){if(!this.hasKey(h))throw new i(h);let f=this[t].get(h);if(Array.isArray(f.requires)&&!f.requires.every(d=>d in p))throw new l(h,f.requires);try{f.validate.call(f,p[h])}catch(d){throw new o(h,d)}}for(let[h]of this[s])if(!(h in p))throw new a(h)}}return Vv.ObjectSchema=u,Vv}var NR;function WX(){return NR||(NR=1,jo.ObjectSchema=VX().ObjectSchema,jo.MergeStrategy=cN().MergeStrategy,jo.ValidationStrategy=fN().ValidationStrategy),jo}var LR;function ZX(){if(LR)return nc;LR=1;var r=hc,e=UX(),t=Oi(),s=WX();let n={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(R){if(typeof R!="string")throw new TypeError("Property must be a string.")}},files:n,ignores:n});function a(R){if(!Array.isArray(R))throw new TypeError("Expected value to be an array.")}function l(R,$){if(a(R),R.some(N=>typeof N!="string"&&typeof N!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function o(R){if(!Array.isArray(R)||R.length===0)throw new TypeError("Expected value to be a non-empty array.")}let u=Object.freeze({files:{required:!1,merge(){},validate(R){o(R),R.forEach($=>{if(Array.isArray($))l($);else if(typeof $!="string"&&typeof $!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:l}}),c=e.Minimatch,p=new Map,h=new Map,f=t("@hwc/config-array"),d={dot:!0},m=new Set(["array","function"]),g=new Set(["name"]),b=new s.ObjectSchema(u);class O extends Error{constructor($,N,{cause:W,message:Z}){let le=Z||W.message;if(super(`Config ${$}: ${le}`,{cause:W}),W)for(let ae of Object.keys(W))ae in this||(this[ae]=W[ae]);this.name="ConfigError",this.index=N}}function S(R){return R&&typeof R.name=="string"&&R.name?`"${R.name}"`:"(unnamed)"}function C(R,$,N){let W=S(R);throw new O(W,$,N)}function k(R){return typeof R=="string"}function E(R,$){if(R===null)throw new O(S(R),$,{message:"Unexpected null config."});if(R===void 0)throw new O(S(R),$,{message:"Unexpected undefined config."});if(typeof R!="object")throw new O(S(R),$,{message:"Unexpected non-object config."});let N={};"files"in R&&(N.files=R.files),"ignores"in R&&(N.ignores=R.ignores);try{b.validate(N)}catch(W){C(R,$,{cause:W})}}function A(R,$,N={}){let W=p;N.flipNegate&&(W=h);let Z=W.get($);return Z||(Z=new c($,Object.assign({},d,N)),W.set($,Z)),Z.match(R)}async function w(R,$,N){let W=N.includes("function"),Z=N.includes("array");async function*le(J){for(let me of J){if(typeof me=="function"){if(!W)throw new TypeError("Unexpected function.");me=me($),me.then&&(me=await me)}if(Array.isArray(me)){if(!Z)throw new TypeError("Unexpected array.");yield*le(me)}else{if(typeof me=="function")throw new TypeError("A config function can only return an object or array.");yield me}}}let ae=await le(R),Se=[];for await(let J of ae)Se.push(J);return Se}function P(R,$,N){let W=N.includes("function"),Z=N.includes("array");function*le(ae){for(let Se of ae){if(typeof Se=="function"){if(!W)throw new TypeError("Unexpected function.");if(Se=Se($),Se.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(Se)){if(!Z)throw new TypeError("Unexpected array.");yield*le(Se)}else{if(typeof Se=="function")throw new TypeError("A config function can only return an object or array.");yield Se}}}return[...le(R)]}function T(R,$,N){return N.startsWith("..")?!0:R.reduce((W,Z)=>W?typeof Z=="string"&&Z.startsWith("!")?!A(N,Z,{flipNegate:!0}):W:typeof Z=="function"?Z($):Z.startsWith("!")?!1:A(N,Z),!1)}function I(R,$,N){let W=r.relative($,R);return Object.keys(N).filter(Z=>!g.has(Z)).length>1&&!T(N.ignores,R,W)}function F(R,$,N){let W=r.relative($,R),Z=ae=>{if(k(ae))return A(W,ae);if(typeof ae=="function")return ae(R);throw new TypeError(`Unexpected matcher type ${ae}.`)},le=N.files.some(ae=>Array.isArray(ae)?ae.every(Z):Z(ae));return le&&N.ignores&&(le=!T(N.ignores,R,W)),le}function L(R){if(!R.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function _(R){if(R.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(let $ of R)if(!m.has($))throw new TypeError(`Unexpected config type "${$}" found. Expected one of: "object", "array", "function".`)}let B={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},Q=new WeakMap;class V extends Array{constructor($,{basePath:N="",normalized:W=!1,schema:Z,extraConfigTypes:le=[]}={}){super(),this[B.isNormalized]=W,this[B.schema]=new s.ObjectSchema(Object.assign({},Z,i)),this.basePath=N,_(le),this.extraConfigTypes=Object.freeze([...le]),this[B.configCache]=new Map,Q.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray($)?this.push(...$):this.push($)}static get[Symbol.species](){return Array}get files(){L(this);let $=Q.get(this);if($.files)return $.files;let N=[];for(let W of this)W.files&&W.files.forEach(Z=>{N.push(Z)});return $.files=N,Q.set(this,$),N}get ignores(){L(this);let $=Q.get(this);if($.ignores)return $.ignores;let N=[];for(let W of this)W.ignores&&Object.keys(W).filter(Z=>!g.has(Z)).length===1&&N.push(...W.ignores);return $.ignores=N,Q.set(this,$),N}isNormalized(){return this[B.isNormalized]}async normalize($={}){if(!this.isNormalized()){let N=await w(this,$,this.extraConfigTypes);this.length=0,this.push(...N.map(this[B.preprocessConfig].bind(this))),this.forEach(E),this[B.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync($={}){if(!this.isNormalized()){let N=P(this,$,this.extraConfigTypes);this.length=0,this.push(...N.map(this[B.preprocessConfig].bind(this))),this.forEach(E),this[B.isNormalized]=!0,Object.freeze(this)}return this}[B.finalizeConfig]($){return $}[B.preprocessConfig]($){return $}isExplicitMatch($){L(this);let N=Q.get(this),W=N.explicitMatches.get($);if(typeof W=="boolean")return W;let Z=r.relative(this.basePath,$);if(T(this.ignores,$,Z))return f(`Ignoring ${$}`),N.explicitMatches.set($,!1),!1;for(let le of this)if(le.files&&F($,this.basePath,le))return f(`Matching config found for ${$}`),N.explicitMatches.set($,!0),!0;return!1}getConfig($){L(this);let N=this[B.configCache];if(N.has($))return N.get($);let W;if(this.isDirectoryIgnored(r.dirname($)))return f(`Ignoring ${$} based on directory pattern`),N.set($,W),W;let Z=r.relative(this.basePath,$);if(T(this.ignores,$,Z))return f(`Ignoring ${$} based on file pattern`),N.set($,W),W;let le=[],ae=!1,Se=/\/\*{1,2}$/;return this.forEach((J,me)=>{if(!J.files){if(!J.ignores){f(`Anonymous universal config found for ${$}`),le.push(me);return}if(I($,this.basePath,J)){f(`Matching config found for ${$} (based on ignores: ${J.ignores})`),le.push(me);return}f(`Skipped config found for ${$} (based on ignores: ${J.ignores})`);return}let j=J.files.filter(de=>Se.test(de));if(j.length){f("Universal files patterns found. Checking carefully.");let de=J.files.filter(ee=>!Se.test(ee));if(de.length&&F($,this.basePath,{files:de,ignores:J.ignores})){f(`Matching config found for ${$}`),le.push(me),ae=!0;return}if(j.length&&F($,this.basePath,{files:j,ignores:J.ignores})){f(`Matching config found for ${$}`),le.push(me);return}return}if(F($,this.basePath,J)){f(`Matching config found for ${$}`),le.push(me),ae=!0;return}}),ae?(W=N.get(le.toString()),W?(N.set($,W),W):(W=le.reduce((J,me)=>{try{return this[B.schema].merge(J,this[me])}catch(j){C(this[me],me,{cause:j})}},{},this),W=this[B.finalizeConfig](W),N.set($,W),N.set(le.toString(),W),W)):(f(`No matching configs found for ${$}`),N.set($,W),W)}isIgnored($){return this.isFileIgnored($)}isFileIgnored($){return this.getConfig($)===void 0}isDirectoryIgnored($){L(this);let N=r.relative(this.basePath,$).replace(/\\/g,"/");if(N.startsWith(".."))return!0;let W=Q.get(this).directoryMatches;if(W.has(N))return W.get(N);let Z=N.split("/"),le="",ae=!1;do le+=Z.shift()+"/",ae=T(this.ignores,r.join(this.basePath,le),le),W.set(le,ae);while(!ae&&Z.length);return W.set(N,ae),ae}}return nc.ConfigArray=V,nc.ConfigArraySymbol=B,nc}var zv,$R;function pN(){if($R)return zv;$R=1;function r(t){if([2,"2","error"].includes(t))return"error";if([1,"1","warn"].includes(t))return"warn";if([0,"0","off"].includes(t))return"off";throw new Error(`Invalid severity value: ${t}`)}function e(t){if([2,"2","error"].includes(t))return 2;if([1,"1","warn"].includes(t))return 1;if([0,"0","off"].includes(t))return 0;throw new Error(`Invalid severity value: ${t}`)}return zv={normalizeSeverityToString:r,normalizeSeverityToNumber:e},zv}var Xv,MR;function hN(){if(MR)return Xv;MR=1;let{normalizeSeverityToNumber:r}=pN(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]),t=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function s(_){return typeof _=="object"&&_!==null}function n(_){return s(_)&&!Array.isArray(_)}function i(_){return typeof _>"u"}function a(_,B,Q=new Map){let V=Q.get(_);if(V){let $=V.get(B);if($)return $}else V=new Map,Q.set(_,V);let R={..._,...B};delete R.__proto__,V.set(B,R);for(let $ of Object.keys(B)){if($==="__proto__"||!Object.prototype.propertyIsEnumerable.call(_,$))continue;let N=_[$],W=B[$];n(N)&&n(W)?R[$]=a(N,W,Q):i(W)&&(R[$]=N)}return R}function l(_){let B=Array.isArray(_)?_.slice(0):[_];return B[0]=e.get(B[0]),structuredClone(B)}class o extends Error{constructor(B,Q){super(`Key "${B}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:B,value:Q}}}function u(_,B){if(typeof B!="string"&&typeof B!="number"&&!Array.isArray(B))throw new o(_,B)}class c extends Error{constructor(B,Q){super(`Key "${B}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:B,value:Q}}}function p(_,B){if(typeof e.get(B)>"u")throw new c(_,B)}function h(_){if(!/[@a-z0-9-_$]+(?:\/(?:[a-z0-9-_$]+))+$/iu.test(_))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${_}".`)}function f(_){if(!s(_))throw new TypeError("Expected an object.")}class d extends Error{constructor(B){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:B}}}class m extends Error{constructor(B){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:B}}}let g={merge:"replace",validate:"boolean"},b=new Set(["error","warn","off",2,1,0]),O={merge(_,B){let Q=B===void 0?_:B;return typeof Q=="boolean"?Q?"warn":"off":r(Q)},validate(_){if(!(b.has(_)||typeof _=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},S={merge(_={},B={}){return a(_,B)},validate:"object"},C={merge:"assign",validate(_){f(_);for(let B of Object.keys(_))if(B!=="__proto__"){if(B!==B.trim())throw new TypeError(`Global "${B}" has leading or trailing whitespace.`);if(!t.has(_[B]))throw new TypeError(`Key "${B}": Expected "readonly", "writable", or "off".`)}}},k={merge:"replace",validate(_){if(!_||typeof _!="object"||typeof _.parse!="function"&&typeof _.parseForESLint!="function")throw new TypeError("Expected object with parse() or parseForESLint() method.")}},E={merge(_={},B={}){let Q=new Set([...Object.keys(_),...Object.keys(B)]),V={};for(let R of Q)if(R!=="__proto__"){if(R in _&&R in B&&_[R]!==B[R])throw new TypeError(`Cannot redefine plugin "${R}".`);V[R]=B[R]||_[R]}return V},validate(_){if(_===null||typeof _!="object")throw new TypeError("Expected an object.");if(Array.isArray(_))throw new m(_);for(let B of Object.keys(_))if(B!=="__proto__"&&(_[B]===null||typeof _[B]!="object"))throw new TypeError(`Key "${B}": Expected an object.`)}},A={merge:"replace",validate(_){if(typeof _=="string")h(_);else if(_&&typeof _=="object"){if(typeof _.preprocess!="function"||typeof _.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},w={merge(_={},B={}){let Q={..._,...B};for(let V of Object.keys(Q))try{if(V==="__proto__"){delete Q.__proto__;continue}if(Q[V]=l(Q[V]),!(V in _)||!(V in B))continue;let R=l(_[V]),$=l(B[V]);if($.length===1){Q[V]=[$[0],...R.slice(1)];continue}}catch(R){throw new Error(`Key "${V}": ${R.message}`,{cause:R})}return Q},validate(_){f(_);for(let B of Object.keys(_)){if(B==="__proto__")continue;let Q=_[B];u(B,Q),Array.isArray(Q)?p(B,Q[0]):p(B,Q)}}},P={merge:"replace",validate(_){if(!(typeof _=="number"||_==="latest"))throw new TypeError('Expected a number or "latest".')}},T={merge:"replace",validate(_){if(typeof _!="string"||!/^(?:script|module|commonjs)$/u.test(_))throw new TypeError('Expected "script", "module", or "commonjs".')}};function I(_){return{merge:"replace",validate(){throw new d(_)}}}return Xv={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(_=>[_,I(_)])),settings:S,linterOptions:{schema:{noInlineConfig:g,reportUnusedDisableDirectives:O}},languageOptions:{schema:{ecmaVersion:P,sourceType:T,globals:C,parser:k,parserOptions:S}},processor:A,plugins:E,rules:w},assertIsRuleSeverity:p},Xv}var Gv={},zX="http://json-schema.org/draft-04/schema#",XX="http://json-schema.org/draft-04/schema#",GX="Core schema meta-schema",YX={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}},HX="object",KX={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:"#"}},JX={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},eG={id:zX,$schema:XX,description:GX,definitions:YX,type:HX,properties:KX,dependencies:JX,default:{}},Yv,jR;function tG(){if(jR)return Yv;jR=1;let r=MB(),e=eG;return Yv=(t={})=>{let s=new r({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return s.addMetaSchema(e),s._opts.defaultMeta=e.id,s},Yv}var qR;function dN(){if(qR)return Gv;qR=1;let e=tG()(),{parseRuleId:t,getRuleFromConfig:s,getRuleOptionsSchema:n}=uN(),i=lN;function a({pluginName:u,ruleName:c},p){let f=`Key "rules": Key "${u==="@"?c:`${u}/${c}`}"`,d=`${f}: Could not find plugin "${u}".`;if(p.plugins&&p.plugins[u]){let m=i.rules[c];if(u==="@"&&m)d=`${f}: Rule "${c}" was removed and replaced by "${m}".`;else{d=`${f}: Could not find "${c}" in plugin "${u}".`;for(let[g,b]of Object.entries(p.plugins))if(b.rules&&b.rules[c]){d+=` Did you mean "${g}/${c}"?`;break}}}throw new TypeError(d)}class l extends Error{constructor(c,p){super(`Error while processing options validation schema of rule '${c}': ${p.message}`,{cause:p}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}class o{constructor(){this.validators=new WeakMap}validate(c){if(c.rules)for(let[p,h]of Object.entries(c.rules)){if(p==="__proto__"||h[0]===0)continue;let f=s(p,c);if(f||a(t(p),c),!this.validators.has(f))try{let m=n(f);m&&this.validators.set(f,e.compile(m))}catch(m){throw new l(p,m)}let d=this.validators.get(f);if(d&&(d(h.slice(1)),d.errors))throw new Error(`Key "rules": Key "${p}": -${d.errors.map(m=>{if(m.keyword==="additionalProperties"&&m.schema===!1&&typeof m.parentSchema?.properties=="object"&&typeof m.params?.additionalProperty=="string"){let g=Object.keys(m.parentSchema.properties).map(b=>`"${b}"`);return` Value ${JSON.stringify(m.data)} ${m.message}. +;`;return d.replaceTextRange([m,g],y)}})}return{[e](o){if(a==="first"&&s(o))return;let u=i.getLastToken(o);r.isSemicolonToken(u)&&l(u,a)},ForStatement(o){let u=o.init&&i.getTokenAfter(o.init,r.isSemicolonToken),c=o.test&&i.getTokenAfter(o.test,r.isSemicolonToken);u&&l(u,"last"),c&&l(c,"last")}}}},ov}var lv,KF;function fX(){return KF||(KF=1,lv={meta:{type:"suggestion",docs:{description:"Enforce sorted import declarations within modules",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]||{},t=e.ignoreCase||!1,s=e.ignoreDeclarationSort||!1,n=e.ignoreMemberSort||!1,i=e.memberSyntaxSortOrder||["none","all","multiple","single"],a=e.allowSeparatedGroups||!1,l=r.sourceCode,o=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,d){return Math.max(d.loc.start.line-f.loc.end.line-1,0)}return{ImportDeclaration(f){if(!s){if(o&&a&&h(o,f)>0&&(o=null),o){let d=c(f),m=c(o),g=p(f),y=p(o);t&&(y=y&&y.toLowerCase(),g=g&&g.toLowerCase()),d!==m?dy.type==="ImportSpecifier"),m=t?y=>y.local.name.toLowerCase():y=>y.local.name,g=d.map(m).findIndex((y,b,v)=>v[b-1]>y);g!==-1&&r.report({node:d[g],messageId:"sortMembersAlphabetically",data:{memberName:d[g].local.name},fix(y){return d.some(b=>l.getCommentsBefore(b).length||l.getCommentsAfter(b).length)?null:y.replaceTextRange([d[0].range[0],d.at(-1).range[1]],d.slice().sort((b,v)=>{let S=m(b),C=m(v);return S>C?1:-1}).reduce((b,v,S)=>{let C=S===d.length-1?"":l.getText().slice(d[S].range[1],d[S+1].range[0]);return b+l.getText(v)+C},""))}})}}}}}),lv}var uv={exports:{}},JF;function pX(){if(JF)return uv.exports;JF=1;var r=function(e,t){var s,n,i=1,a=0,l=0,o=String.alphabet;function u(c,p,h){if(h){for(s=p;h=u(c,s),h<76&&h>65;)++s;return+c.slice(p-1,s)}return h=o&&o.indexOf(c.charAt(p)),h>-1?h+76:(h=c.charCodeAt(p)||0,h<45||h>127?h:h<46?65:h<48?h-1:h<58?h+18:h<65?h-11:h<91?h+11:h<97?h-37:h<123?h+5:h-63)}if((e+="")!=(t+="")){for(;i;)if(n=u(e,a++),i=u(t,l++),n<76&&i<76&&n>66&&i>66&&(n=u(e,a,a),i=u(t,l,a=s),l=s),n!=i)return n{let O=b[C-1];O&&S.loc.start.line-O.loc.end.line>1&&(v=!0)}),!v&&d.loc.start.line-b.at(-1).loc.end.line>1&&(v=!0),!v&&b[0].loc.start.line-h.prevNode.loc.end.line>1&&(v=!0)),h.prevNode=d,y!==null&&(h.prevName=y),c&&v){h.prevBlankLine=y===null;return}m===null||y===null||gu.id.type==="Identifier"),a=t?u=>u.id.name.toLowerCase():u=>u.id.name,l=i.some(u=>u.init!==null&&u.init.type!=="Literal"),o=!1;i.slice(1).reduce((u,c)=>{let p=a(u);return a(c){let g=a(d),y=a(m);return g>y?1:-1}).reduce((d,m,g)=>{let y=g===i.length-1?"":s.getText().slice(i[g].range[1],i[g+1].range[0]);return d+s.getText(m)+y},""))}}),o=!0,u):c},i[0])}}}}),fv}var pv,rR;function mX(){if(rR)return pv;rR=1;let r=Pe();function e(t){let s=t.parent;return t.type==="BlockStatement"&&r.isFunction(s)&&s.body===t}return pv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/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 s=t.options[0],n=t.sourceCode,i=!0,a=!0,l=!0,o=!1,u=!1,c=!1;typeof s=="object"?(i=s.functions==="always",a=s.keywords==="always",l=s.classes==="always",o=s.functions==="never",u=s.keywords==="never",c=s.classes==="never"):s==="never"&&(i=!1,a=!1,l=!1,o=!0,u=!0,c=!0);function p(d,m){return r.isArrowToken(d)||r.isKeywordToken(d)&&!e(m)||r.isColonToken(d)&&m.parent&&m.parent.type==="SwitchCase"&&d===r.getSwitchCaseColonToken(m.parent,n)}function h(d){let m=n.getTokenBefore(d);if(m&&!p(m,d)&&r.isTokenOnSameLine(m,d)){let g=n.isSpaceBetweenTokens(m,d),y,b;e(d)?(y=i,b=o):d.type==="ClassBody"?(y=l,b=c):(y=a,b=u),y&&!g?t.report({node:d,messageId:"missingSpace",fix(v){return v.insertTextBefore(d," ")}}):b&&g&&t.report({node:d,messageId:"unexpectedSpace",fix(v){return v.removeRange([m.range[1],d.range[0]])}})}}function f(d){let m=d.cases,g;m.length>0?g=n.getTokenBefore(m[0]):g=n.getLastToken(d,1),h(g)}return{BlockStatement:h,ClassBody:h,SwitchStatement:f}}},pv}var hv,nR;function gX(){if(nR)return hv;nR=1;let r=Pe();return hv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=typeof e.options[0]=="string"?e.options[0]:"always",n=typeof e.options[0]=="object"?e.options[0]:{};function i(o){if(o.id)return!0;let u=o.parent;return u.type==="MethodDefinition"||u.type==="Property"&&(u.kind==="get"||u.kind==="set"||u.method)}function a(o){if(o.type==="ArrowFunctionExpression"){if(o.async&&r.isOpeningParenToken(t.getFirstToken(o,{skip:1})))return n.asyncArrow||s}else{if(i(o))return n.named||s;if(!o.generator)return n.anonymous||s}return"ignore"}function l(o){let u=a(o);if(u==="ignore")return;let c=t.getFirstToken(o,r.isOpeningParenToken),p=t.getTokenBefore(c),h=t.isSpaceBetweenTokens(p,c);h&&u==="never"?e.report({node:o,loc:{start:p.loc.end,end:c.loc.start},messageId:"unexpectedSpace",fix(f){let d=t.getCommentsBefore(c);return d.some(m=>m.type==="Line")?null:f.replaceTextRange([p.range[1],c.range[0]],d.reduce((m,g)=>m+t.getText(g),""))}}):!h&&u==="always"&&e.report({node:o,loc:c.loc,messageId:"missingSpace",fix:f=>f.insertTextAfter(p," ")})}return{ArrowFunctionExpression:l,FunctionDeclaration:l,FunctionExpression:l}}},hv}var dv,sR;function yX(){if(sR)return dv;sR=1;let r=Pe();return dv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]==="always",s=e.options[1]&&e.options[1].exceptions||[],n={},i;s.length&&(n.braceException=s.includes("{}"),n.bracketException=s.includes("[]"),n.parenException=s.includes("()"),n.empty=s.includes("empty"));function a(){let d=[],m=[];return n.braceException&&(d.push("{"),m.push("}")),n.bracketException&&(d.push("["),m.push("]")),n.parenException&&(d.push("("),m.push(")")),n.empty&&(d.push(")"),m.push("(")),{openers:d,closers:m}}let l=e.sourceCode;function o(d){return i.openers.includes(d.value)}function u(d){return i.closers.includes(d.value)}function c(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isClosingParenToken(m)?!1:t?!o(m):o(m)}function p(d,m){return!r.isTokenOnSameLine(d,m)||m.type==="Line"||!l.isSpaceBetweenTokens(d,m)?!1:t?o(m):!o(m)}function h(d,m){return l.isSpaceBetweenTokens(d,m)||!n.empty&&r.isOpeningParenToken(d)?!1:t?!u(d):u(d)}function f(d,m){return!r.isTokenOnSameLine(d,m)||!l.isSpaceBetweenTokens(d,m)?!1:t?u(d):!u(d)}return{Program:function(m){i=a();let g=l.tokensAndComments;g.forEach((y,b)=>{let v=g[b-1],S=g[b+1];!r.isOpeningParenToken(y)&&!r.isClosingParenToken(y)||(y.value==="("&&c(y,S)&&e.report({node:m,loc:y.loc,messageId:"missingOpeningSpace",fix(C){return C.insertTextAfter(y," ")}}),y.value==="("&&p(y,S)&&e.report({node:m,loc:{start:y.loc.end,end:S.loc.start},messageId:"rejectedOpeningSpace",fix(C){return C.removeRange([y.range[1],S.range[0]])}}),y.value===")"&&h(v,y)&&e.report({node:m,loc:y.loc,messageId:"missingClosingSpace",fix(C){return C.insertTextBefore(y," ")}}),y.value===")"&&f(v,y)&&e.report({node:m,loc:{start:v.loc.end,end:y.loc.start},messageId:"rejectedClosingSpace",fix(C){return C.removeRange([v.range[1],y.range[0]])}}))})}}}},dv}var mv,iR;function xX(){if(iR)return mv;iR=1;let{isEqToken:r}=Pe();return mv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]?e.options[0].int32Hint===!0:!1,s=e.sourceCode;function n(u,c,p){let h=s.getFirstTokenBetween(u,c,m=>m.value===p),f=s.getTokenBefore(h),d=s.getTokenAfter(h);return!s.isSpaceBetweenTokens(f,h)||!s.isSpaceBetweenTokens(h,d)?h:null}function i(u,c){e.report({node:u,loc:c.loc,messageId:"missingSpace",data:{operator:c.value},fix(p){let h=s.getTokenBefore(c),f=s.getTokenAfter(c),d="";return c.range[0]-h.range[1]===0&&(d=" "),d+=c.value,f.range[0]-c.range[1]===0&&(d+=" "),p.replaceText(c,d)}})}function a(u){let c=u.left.typeAnnotation?u.left.typeAnnotation:u.left,p=u.right,h=u.operator||"=",f=n(c,p,h);f&&(t&&s.getText(u).endsWith("|0")||i(u,f))}function l(u){let c=n(u.test,u.consequent,"?"),p=n(u.consequent,u.alternate,":");c&&i(u,c),p&&i(u,p)}function o(u){let c=u.id.typeAnnotation?u.id.typeAnnotation:u.id,p=u.init;if(p){let h=n(c,p,"=");h&&i(u,h)}}return{AssignmentExpression:a,AssignmentPattern:a,BinaryExpression:a,LogicalExpression:a,ConditionalExpression:l,VariableDeclarator:o,PropertyDefinition(u){if(!u.value)return;let c=s.getTokenBefore(u.value,r),p=s.getTokenBefore(c),h=s.getTokenAfter(c);(!s.isSpaceBetweenTokens(p,c)||!s.isSpaceBetweenTokens(c,h))&&i(u,c)}}}},mv}var gv,aR;function bX(){if(aR)return gv;aR=1;let r=Pe();return gv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.options[0]||{words:!0,nonwords:!1},s=e.sourceCode;function n(m){return m&&m.type==="UnaryExpression"&&m.argument.operator==="!"&&m.argument&&m.argument.type==="UnaryExpression"&&m.argument.operator==="!"}function i(m){return t.overrides&&Object.hasOwn(t.overrides,m)}function a(m){return t.overrides[m]}function l(m,g,y,b){y.range[0]===g.range[1]&&e.report({node:m,messageId:"wordOperator",data:{word:b},fix(v){return v.insertTextAfter(g," ")}})}function o(m,g,y,b){r.canTokensBeAdjacent(g,y)&&y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfterWord",data:{word:b},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function u(m,g,y,b){i(b)?a(b)?l(m,g,y,b):o(m,g,y,b):t.words?l(m,g,y,b):o(m,g,y,b)}function c(m){let g=s.getFirstTokens(m,3),y="yield";!m.argument||m.delegate||u(m,g[0],g[1],y)}function p(m){let g=s.getFirstTokens(m,3);u(m,g[0],g[1],"await")}function h(m,g,y){if(m.prefix){if(n(m))return;g.range[1]===y.range[0]&&e.report({node:m,messageId:"operator",data:{operator:g.value},fix(b){return b.insertTextAfter(g," ")}})}else g.range[1]===y.range[0]&&e.report({node:m,messageId:"beforeUnaryExpressions",data:{token:y.value},fix(b){return b.insertTextBefore(y," ")}})}function f(m,g,y){m.prefix?y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedAfter",data:{operator:g.value},fix(b){return r.canTokensBeAdjacent(g,y)?b.removeRange([g.range[1],y.range[0]]):null}}):y.range[0]>g.range[1]&&e.report({node:m,messageId:"unexpectedBefore",data:{operator:y.value},fix(b){return b.removeRange([g.range[1],y.range[0]])}})}function d(m){let g=m.type==="UpdateExpression"&&!m.prefix?s.getLastTokens(m,2):s.getFirstTokens(m,2),y=g[0],b=g[1];if((m.type==="NewExpression"||m.prefix)&&y.type==="Keyword"){u(m,y,b,y.value);return}let v=m.prefix?g[0].value:g[1].value;i(v)?a(v)?h(m,y,b):f(m,y,b):t.nonwords?h(m,y,b):f(m,y,b)}return{UnaryExpression:d,UpdateExpression:d,NewExpression:d,YieldExpression:c,AwaitExpression:p}}},gv}var yv,oR;function vX(){if(oR)return yv;oR=1;let r=Sc(),e=Pe();function t(o){return`(?:${r(o)})`}function s(o){return`${t(o)}+`}function n(o){return o.includes("*")?o:o.concat("*")}function i(o){let u="";return o.length===0?u+="\\s":(u+="(?:\\s|",o.length===1?u+=s(o[0]):(u+="(?:",u+=o.map(s).join("|"),u+=")"),u+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),u}function a(o,u){let c="^";return o.length===1?c+=t(o[0]):(c+="(?:",c+=o.map(t).join("|"),c+=")"),c+="?",c+=i(u),new RegExp(c,"u")}function l(o){let u=`^(${o.map(t).join("|")})?[ ]+`;return new RegExp(u,"u")}return yv={meta:{deprecated:!0,replacedBy:[],type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/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(o){let u=o.sourceCode,c=o.options[0]!=="never",p=o.options[1]||{},h=p.block&&p.block.balanced,f=["block","line"].reduce((y,b)=>{let v=n(p[b]&&p[b].markers||p.markers||[]),S=p[b]&&p[b].exceptions||p.exceptions||[],C="[ ]+$";return y[b]={beginRegex:c?a(v,S):l(v),endRegex:h&&c?new RegExp(`${i(S)}$`,"u"):new RegExp(C,"u"),hasExceptions:S.length>0,captureMarker:new RegExp(`^(${v.map(t).join("|")})`,"u"),markers:new Set(v)},y},{});function d(y,b,v,S){let C=y.type.toLowerCase(),O=C==="block"?"/*":"//";o.report({node:y,fix(w){let E=y.range[0],k=E+2;return c?(v&&(k+=v[0].length),w.insertTextAfterRange([E,k]," ")):(k+=v[0].length,w.replaceTextRange([E,k],O+(v[1]?v[1]:"")))},messageId:b,data:{refChar:S}})}function m(y,b,v){o.report({node:y,fix(S){if(c)return S.insertTextAfterRange([y.range[0],y.range[1]-2]," ");let C=y.range[1]-2,O=C-v[0].length;return S.replaceTextRange([O,C],"")},messageId:b})}function g(y){let b=y.type.toLowerCase(),v=f[b],S=b==="block"?"/*":"//";if(y.value.length===0||v.markers.has(y.value))return;let C=v.beginRegex.exec(y.value),O=v.endRegex.exec(y.value);if(c){if(!C){let w=v.captureMarker.exec(y.value),E=w?S+w[0]:S;v.hasExceptions?d(y,"expectedExceptionAfter",w,E):d(y,"expectedSpaceAfter",w,E)}h&&b==="block"&&!O&&m(y,"expectedSpaceBefore")}else C&&(C[1]?d(y,"unexpectedSpaceAfterMarker",C,C[1]):d(y,"unexpectedSpaceAfter",C,S)),h&&b==="block"&&O&&m(y,"unexpectedSpaceBefore",O)}return{Program(){u.getAllComments().filter(b=>b.type!=="Shebang").forEach(g)}}}},yv}var xv,lR;function OX(){if(lR)return xv;lR=1;let r=Pe();function e(n){let i=[];for(let a=0;av.remove(b)}function p(b,v,S,C,O){b.slice(v,S).forEach(w=>{n.report({node:w,messageId:C,fix:O?c(w):null})})}function h(b,v,S){p(b,0,b.length,v,S)}function f(b,v,S){p(b,1,b.length,v,S)}function d(b,v){let S=l.length>0,C=a.length===0&&l.length===0,O=a.length>0&&a.at(-1),w=v.length>0;w?(s(b.params)?O?n.report({node:v[0],messageId:"unnecessary",fix:c(v[0])}):S&&n.report({node:v[0],messageId:"unnecessaryInClasses",fix:c(v[0])}):n.report({node:v[0],messageId:"nonSimpleParameterList"}),f(v,"multiple",!0)):C&&(s(b.params)?n.report({node:b,messageId:"function"}):n.report({node:b,messageId:"wrap",data:{name:r.getFunctionNameWithKind(b)}})),a.push(O||w)}function m(){a.pop()}function g(b){let v=b.body.type==="BlockStatement",S=v?e(b.body.body):[];o==="function"?d(b,S):S.length>0&&(s(b.params)?h(S,o,u(o)):(n.report({node:S[0],messageId:"nonSimpleParameterList"}),f(S,"multiple",!0)))}let y={Program(b){let v=e(b.body);b.sourceType==="module"&&(o="module"),o==="global"?(b.body.length>0&&v.length===0&&n.report({node:b,messageId:"global"}),f(v,"multiple",!0)):h(v,o,u(o))},FunctionDeclaration:g,FunctionExpression:g,ArrowFunctionExpression:g};return o==="function"&&Object.assign(y,{ClassBody(){l.push(!0)},"ClassBody:exit"(){l.pop()},"FunctionDeclaration:exit":m,"FunctionExpression:exit":m,"ArrowFunctionExpression:exit":m}),y}},xv}var bv,uR;function SX(){if(uR)return bv;uR=1;let r=Pe();return bv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]||{},n=s.before===!0,i=s.after!==!1;function a(u,c,p){return r.isClosingBraceToken(c)||!r.isTokenOnSameLine(u,c)||t.isSpaceBetweenTokens(u,c)===p}function l(u,c){return t.getFirstTokenBetween(u,c,{includeComments:!0,filter:r.isCommentToken})!==null}function o(u,c,p,h){return l(c,p)?null:h?u.insertTextAfter(c," "):u.removeRange([c.range[1],p.range[0]])}return{SwitchCase(u){let c=r.getSwitchCaseColonToken(u,t),p=t.getTokenBefore(c),h=t.getTokenAfter(c);a(p,c,n)||e.report({node:u,loc:c.loc,messageId:n?"expectedBefore":"unexpectedBefore",fix:f=>o(f,p,c,n)}),a(c,h,i)||e.report({node:u,loc:c.loc,messageId:i?"expectedAfter":"unexpectedAfter",fix:f=>o(f,c,h,i)})}}}},bv}var vv,cR;function EX(){if(cR)return vv;cR=1;let r=Pe();return vv={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(e){let t=e.sourceCode;function s(n){n.arguments.length===0&&e.report({node:n,messageId:"expected"})}return{"Program:exit"(n){let i=t.getScope(n),a=r.getVariableByName(i,"Symbol");a&&a.defs.length===0&&a.references.forEach(l=>{let o=l.identifier;r.isCallee(o)&&s(o.parent)})}}}},vv}var Ov,fR;function CX(){if(fR)return Ov;fR=1;let r=Pe();return Ov={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/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(e){let t=e.sourceCode,s=e.options[0]==="always";function n(a){if(!a.value.startsWith("}"))return;let l=t.getTokenBefore(a,{includeComments:!0}),o=t.isSpaceBetween(l,a);r.isTokenOnSameLine(l,a)&&(s&&!o&&e.report({loc:{start:a.loc.start,end:{line:a.loc.start.line,column:a.loc.start.column+1}},messageId:"expectedBefore",fix:u=>u.insertTextBefore(a," ")}),!s&&o&&e.report({loc:{start:l.loc.end,end:a.loc.start},messageId:"unexpectedBefore",fix:u=>u.removeRange([l.range[1],a.range[0]])}))}function i(a){if(!a.value.endsWith("${"))return;let l=t.getTokenAfter(a,{includeComments:!0}),o=t.isSpaceBetween(a,l);r.isTokenOnSameLine(a,l)&&(s&&!o&&e.report({loc:{start:{line:a.loc.end.line,column:a.loc.end.column-2},end:a.loc.end},messageId:"expectedAfter",fix:u=>u.insertTextAfter(a," ")}),!s&&o&&e.report({loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedAfter",fix:u=>u.removeRange([a.range[1],l.range[0]])}))}return{TemplateElement(a){let l=t.getFirstToken(a);n(l),i(l)}}}},Ov}var Sv,pR;function wX(){return pR||(pR=1,Sv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.options[0]!=="always",t=r.sourceCode;function s(n){let i=t.getTokenBefore(n.quasi),a=t.getFirstToken(n.quasi),l=t.isSpaceBetweenTokens(i,a);e&&l?r.report({node:n,loc:{start:i.loc.end,end:a.loc.start},messageId:"unexpected",fix(o){let u=t.getCommentsBefore(n.quasi);return u.some(c=>c.type==="Line")?null:o.replaceTextRange([i.range[1],a.range[0]],u.reduce((c,p)=>c+t.getText(p),""))}}):!e&&!l&&r.report({node:n,loc:{start:n.loc.start,end:a.loc.start},messageId:"missing",fix(o){return o.insertTextAfter(i," ")}})}return{TaggedTemplateExpression:s}}}),Sv}var Ev,hR;function kX(){return hR||(hR=1,Ev={meta:{type:"layout",docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/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(r){return{Program:function(t){let s=r.sourceCode,n={column:0,line:1},i=r.options[0]||"never";!s.hasBOM&&i==="always"?r.report({node:t,loc:n,messageId:"expected",fix(a){return a.insertTextBeforeRange([0,1],"\uFEFF")}}):s.hasBOM&&i==="never"&&r.report({node:t,loc:n,messageId:"unexpected",fix(a){return a.removeRange([-1,0])}})}}}}),Ev}var Cv,dR;function AX(){if(dR)return Cv;dR=1;let r=Pe();function e(t){if(!t)return!1;let s=t.type==="SequenceExpression"?t.expressions.at(-1):t;return r.isSpecificId(s,"NaN")||r.isSpecificMemberAccess(s,"Number","NaN")}return Cv={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/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.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(t){let s=!t.options[0]||t.options[0].enforceForSwitchCase,n=t.options[0]&&t.options[0].enforceForIndexOf,i=t.sourceCode,a=new Set(["==","===","!=","!=="]),l=new Set(["==","!="]);function o(f,d){return m=>{let g=e(f.left)?f.right:f.left,y=g.type==="SequenceExpression",v=f.operator[0]==="!"?"!":"",S=i.getText(g);y&&(S=`(${S})`);let C=d(S);return m.replaceText(f,`${v}${C}`)}}function u(f){if(/^(?:[<>]|[!=]=)=?$/u.test(f.operator)&&(e(f.left)||e(f.right))){let d=[],g=(e(f.left)?f.left:f.right).type==="SequenceExpression",y=a.has(f.operator)&&!g,b=l.has(f.operator);y&&(d.push({messageId:"replaceWithIsNaN",fix:o(f,v=>`Number.isNaN(${v})`)}),b&&d.push({messageId:"replaceWithCastingAndIsNaN",fix:o(f,v=>`Number.isNaN(Number(${v}))`)})),t.report({node:f,messageId:"comparisonWithNaN",suggest:d})}}function c(f){e(f.discriminant)&&t.report({node:f,messageId:"switchNaN"});for(let d of f.cases)e(d.test)&&t.report({node:d,messageId:"caseNaN"})}function p(f){let d=r.skipChainExpression(f.callee);if(d.type==="MemberExpression"){let m=r.getStaticPropertyName(d);if((m==="indexOf"||m==="lastIndexOf")&&f.arguments.length<=2&&e(f.arguments[0])){let g=f.arguments[0].type!=="SequenceExpression"&&!f.arguments[1],y=[];if(g){let b=d.computed,v=m==="indexOf"?"findIndex":"findLastIndex",S=b?`"${v}"`:v;y.push({messageId:"replaceWithFindIndex",data:{methodName:v},fix:C=>[C.replaceText(d.property,S),C.replaceText(f.arguments[0],"Number.isNaN")]})}t.report({node:f,messageId:"indexOfNaN",data:{methodName:m},suggest:y})}}}let h={BinaryExpression:u};return s&&(h.SwitchStatement=c),n&&(h.CallExpression=p),h}},Cv}var wv,mR;function PX(){if(mR)return wv;mR=1;let r=Pe();return wv={meta:{type:"problem",docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/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(e){let t=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),s=new Set(["==","===","!=","!=="]),n=e.sourceCode,i=e.options[0]&&e.options[0].requireStringLiterals,a;function l(u){let c=a.set.get(u.name);return c&&c.defs.length===0&&c.references.some(p=>p.identifier===u)}function o(u){return u.type==="UnaryExpression"&&u.operator==="typeof"}return{Program(u){a=n.getScope(u)},UnaryExpression(u){if(o(u)){let{parent:c}=u;if(c.type==="BinaryExpression"&&s.has(c.operator)){let p=c.left===u?c.right:c.left;if(p.type==="Literal"||r.isStaticTemplateLiteral(p)){let h=p.type==="Literal"?p.value:p.quasis[0].value.cooked;t.has(h)||e.report({node:p,messageId:"invalidValue"})}else p.type==="Identifier"&&p.name==="undefined"&&l(p)?e.report({node:p,messageId:i?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(h){return h.replaceText(p,'"undefined"')}}]}):i&&!o(p)&&e.report({node:p,messageId:"notString"})}}}}}},wv}var kv,gR;function TX(){return gR||(gR=1,kv={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(r){function e(l){return l.type==="ExpressionStatement"&&l.expression.type==="Literal"&&typeof l.expression.value=="string"}function t(l){return l.type==="ImportDeclaration"||l.type==="ImportSpecifier"||l.type==="ImportDefaultSpecifier"||l.type==="ImportNamespaceSpecifier"}function s(l){return l.type==="VariableDeclaration"||l.type==="ExportNamedDeclaration"&&l.declaration&&l.declaration.type==="VariableDeclaration"}function n(l,o){let u=o.length,c=0;if(l.parent.type!=="StaticBlock")for(;co.replaceText(t,`(${e.getText(t)})`)})}}}}}),Pv}var Tv,bR;function IX(){return bR||(bR=1,Tv={meta:{deprecated:!0,replacedBy:[],type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/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(r){let e=r.sourceCode,t=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}(r.options[0]);function s(i,a,l){if(e.isSpaceBetweenTokens(a,l)!==t[i]){let o=a.value==="*",u=t[i],c=o?a:l,p;u?p=i==="before"?"missingBefore":"missingAfter":p=i==="before"?"unexpectedBefore":"unexpectedAfter",r.report({node:c,messageId:p,fix(h){return u?o?h.insertTextAfter(c," "):h.insertTextBefore(c," "):h.removeRange([a.range[1],l.range[0]])}})}}function n(i){if(!i.delegate)return;let a=e.getFirstTokens(i,3),l=a[0],o=a[1],u=a[2];s("before",l,o),s("after",o,u)}return{YieldExpression:n}}}),Tv}var Dv,vR;function FX(){if(vR)return Dv;vR=1;let r=Pe();function e(l){return/^(==|===|!=|!==|<|>|<=|>=)$/u.test(l)}function t(l){return/^(==|===)$/u.test(l)}function s(l){return["<","<="].includes(l)}function n(l){return l.type==="UnaryExpression"&&l.operator==="-"&&l.prefix&&r.isNumericLiteral(l.argument)}function i(l){return n(l)||r.isStaticTemplateLiteral(l)}function a(l){return l.type==="Literal"?l:n(l)?{type:"Literal",value:-l.argument.value,raw:`-${l.argument.value}`}:r.isStaticTemplateLiteral(l)?{type:"Literal",value:l.quasis[0].value.cooked,raw:l.quasis[0].value.raw}:null}return Dv={meta:{type:"suggestion",docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,url:"https://eslint.org/docs/latest/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(l){let o=l.options[0]==="always",u=l.options[1]&&l.options[1].exceptRange,c=l.options[1]&&l.options[1].onlyEquality,p=l.sourceCode;function h(m){let g=m.left,y=m.right;function b(){if(m.operator==="&&"&&r.isSameReference(g.right,y.left)){let C=a(g.left),O=a(y.right);if(C===null&&O===null)return!1;if(O===null||C===null||C.value<=O.value)return!0}return!1}function v(){if(m.operator==="||"&&r.isSameReference(g.left,y.right)){let C=a(g.right),O=a(y.left);if(C===null&&O===null)return!1;if(O===null||C===null||C.value<=O.value)return!0}return!1}function S(){return r.isParenthesised(p,m)}return m.type==="LogicalExpression"&&g.type==="BinaryExpression"&&y.type==="BinaryExpression"&&s(g.operator)&&s(y.operator)&&(b()||v())&&S()}let f={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function d(m){let g=p.getFirstTokenBetween(m.left,m.right,_=>_.value===m.operator),y=p.getTokenBefore(g),b=p.getTokenAfter(g),v=p.getText(),S=v.slice(m.range[0],y.range[1]),C=v.slice(y.range[1],g.range[0]),O=v.slice(g.range[1],b.range[0]),w=v.slice(b.range[0],m.range[1]),E=p.getTokenBefore(m),k=p.getTokenAfter(m),A="",D="";return E&&E.range[1]===m.range[0]&&!r.canTokensBeAdjacent(E,b)&&(A=" "),k&&m.range[1]===k.range[0]&&!r.canTokensBeAdjacent(y,k)&&(D=" "),A+w+C+f[g.value]+O+S+D}return{BinaryExpression(m){let g=o?m.left:m.right,y=o?m.right:m.left;(y.type==="Literal"||i(y))&&!(g.type==="Literal"||i(g))&&!(!t(m.operator)&&c)&&e(m.operator)&&!(u&&h(m.parent))&&l.report({node:m,messageId:"expected",data:{operator:m.operator,expectedSide:o?"left":"right"},fix:b=>b.replaceText(m,d(m))})}}}},Dv}var _v,OR;function sN(){if(OR)return _v;OR=1;let{LazyLoadingRuleMap:r}=n7();return _v=new r(Object.entries({"accessor-pairs":()=>a7(),"array-bracket-newline":()=>o7(),"array-bracket-spacing":()=>l7(),"array-callback-return":()=>u7(),"array-element-newline":()=>c7(),"arrow-body-style":()=>f7(),"arrow-parens":()=>p7(),"arrow-spacing":()=>h7(),"block-scoped-var":()=>d7(),"block-spacing":()=>m7(),"brace-style":()=>g7(),"callback-return":()=>y7(),camelcase:()=>x7(),"capitalized-comments":()=>v7(),"class-methods-use-this":()=>O7(),"comma-dangle":()=>S7(),"comma-spacing":()=>E7(),"comma-style":()=>C7(),complexity:()=>w7(),"computed-property-spacing":()=>k7(),"consistent-return":()=>A7(),"consistent-this":()=>P7(),"constructor-super":()=>T7(),curly:()=>D7(),"default-case":()=>_7(),"default-case-last":()=>I7(),"default-param-last":()=>F7(),"dot-location":()=>R7(),"dot-notation":()=>B7(),"eol-last":()=>N7(),eqeqeq:()=>L7(),"for-direction":()=>$7(),"func-call-spacing":()=>M7(),"func-name-matching":()=>j7(),"func-names":()=>q7(),"func-style":()=>Q7(),"function-call-argument-newline":()=>U7(),"function-paren-newline":()=>V7(),"generator-star-spacing":()=>W7(),"getter-return":()=>Z7(),"global-require":()=>z7(),"grouped-accessor-pairs":()=>X7(),"guard-for-in":()=>G7(),"handle-callback-err":()=>Y7(),"id-blacklist":()=>H7(),"id-denylist":()=>K7(),"id-length":()=>J7(),"id-match":()=>eV(),"implicit-arrow-linebreak":()=>tV(),indent:()=>rV(),"indent-legacy":()=>nV(),"init-declarations":()=>sV(),"jsx-quotes":()=>iV(),"key-spacing":()=>aV(),"keyword-spacing":()=>oV(),"line-comment-position":()=>lV(),"linebreak-style":()=>uV(),"lines-around-comment":()=>cV(),"lines-around-directive":()=>fV(),"lines-between-class-members":()=>pV(),"logical-assignment-operators":()=>hV(),"max-classes-per-file":()=>dV(),"max-depth":()=>mV(),"max-len":()=>gV(),"max-lines":()=>yV(),"max-lines-per-function":()=>xV(),"max-nested-callbacks":()=>bV(),"max-params":()=>vV(),"max-statements":()=>OV(),"max-statements-per-line":()=>SV(),"multiline-comment-style":()=>EV(),"multiline-ternary":()=>CV(),"new-cap":()=>wV(),"new-parens":()=>kV(),"newline-after-var":()=>AV(),"newline-before-return":()=>PV(),"newline-per-chained-call":()=>TV(),"no-alert":()=>DV(),"no-array-constructor":()=>_V(),"no-async-promise-executor":()=>IV(),"no-await-in-loop":()=>FV(),"no-bitwise":()=>RV(),"no-buffer-constructor":()=>BV(),"no-caller":()=>NV(),"no-case-declarations":()=>LV(),"no-catch-shadow":()=>$V(),"no-class-assign":()=>MV(),"no-compare-neg-zero":()=>jV(),"no-cond-assign":()=>qV(),"no-confusing-arrow":()=>QV(),"no-console":()=>UV(),"no-const-assign":()=>VV(),"no-constant-binary-expression":()=>WV(),"no-constant-condition":()=>ZV(),"no-constructor-return":()=>zV(),"no-continue":()=>XV(),"no-control-regex":()=>GV(),"no-debugger":()=>YV(),"no-delete-var":()=>HV(),"no-div-regex":()=>KV(),"no-dupe-args":()=>JV(),"no-dupe-class-members":()=>eW(),"no-dupe-else-if":()=>tW(),"no-dupe-keys":()=>rW(),"no-duplicate-case":()=>nW(),"no-duplicate-imports":()=>sW(),"no-else-return":()=>iW(),"no-empty":()=>aW(),"no-empty-character-class":()=>oW(),"no-empty-function":()=>lW(),"no-empty-pattern":()=>uW(),"no-empty-static-block":()=>cW(),"no-eq-null":()=>fW(),"no-eval":()=>pW(),"no-ex-assign":()=>hW(),"no-extend-native":()=>dW(),"no-extra-bind":()=>mW(),"no-extra-boolean-cast":()=>gW(),"no-extra-label":()=>yW(),"no-extra-parens":()=>xW(),"no-extra-semi":()=>bW(),"no-fallthrough":()=>vW(),"no-floating-decimal":()=>OW(),"no-func-assign":()=>SW(),"no-global-assign":()=>EW(),"no-implicit-coercion":()=>CW(),"no-implicit-globals":()=>wW(),"no-implied-eval":()=>kW(),"no-import-assign":()=>AW(),"no-inline-comments":()=>PW(),"no-inner-declarations":()=>TW(),"no-invalid-regexp":()=>DW(),"no-invalid-this":()=>_W(),"no-irregular-whitespace":()=>IW(),"no-iterator":()=>FW(),"no-label-var":()=>RW(),"no-labels":()=>BW(),"no-lone-blocks":()=>NW(),"no-lonely-if":()=>LW(),"no-loop-func":()=>$W(),"no-loss-of-precision":()=>MW(),"no-magic-numbers":()=>jW(),"no-misleading-character-class":()=>zW(),"no-mixed-operators":()=>XW(),"no-mixed-requires":()=>GW(),"no-mixed-spaces-and-tabs":()=>YW(),"no-multi-assign":()=>HW(),"no-multi-spaces":()=>KW(),"no-multi-str":()=>JW(),"no-multiple-empty-lines":()=>eZ(),"no-native-reassign":()=>tZ(),"no-negated-condition":()=>rZ(),"no-negated-in-lhs":()=>nZ(),"no-nested-ternary":()=>sZ(),"no-new":()=>iZ(),"no-new-func":()=>aZ(),"no-new-native-nonconstructor":()=>oZ(),"no-new-object":()=>lZ(),"no-new-require":()=>uZ(),"no-new-symbol":()=>cZ(),"no-new-wrappers":()=>fZ(),"no-nonoctal-decimal-escape":()=>pZ(),"no-obj-calls":()=>hZ(),"no-object-constructor":()=>dZ(),"no-octal":()=>mZ(),"no-octal-escape":()=>gZ(),"no-param-reassign":()=>yZ(),"no-path-concat":()=>xZ(),"no-plusplus":()=>bZ(),"no-process-env":()=>vZ(),"no-process-exit":()=>OZ(),"no-promise-executor-return":()=>SZ(),"no-proto":()=>EZ(),"no-prototype-builtins":()=>CZ(),"no-redeclare":()=>wZ(),"no-regex-spaces":()=>kZ(),"no-restricted-exports":()=>AZ(),"no-restricted-globals":()=>PZ(),"no-restricted-imports":()=>TZ(),"no-restricted-modules":()=>DZ(),"no-restricted-properties":()=>_Z(),"no-restricted-syntax":()=>IZ(),"no-return-assign":()=>FZ(),"no-return-await":()=>RZ(),"no-script-url":()=>BZ(),"no-self-assign":()=>NZ(),"no-self-compare":()=>LZ(),"no-sequences":()=>$Z(),"no-setter-return":()=>MZ(),"no-shadow":()=>jZ(),"no-shadow-restricted-names":()=>qZ(),"no-spaced-func":()=>QZ(),"no-sparse-arrays":()=>UZ(),"no-sync":()=>VZ(),"no-tabs":()=>WZ(),"no-template-curly-in-string":()=>ZZ(),"no-ternary":()=>zZ(),"no-this-before-super":()=>XZ(),"no-throw-literal":()=>GZ(),"no-trailing-spaces":()=>YZ(),"no-undef":()=>HZ(),"no-undef-init":()=>KZ(),"no-undefined":()=>JZ(),"no-underscore-dangle":()=>ez(),"no-unexpected-multiline":()=>tz(),"no-unmodified-loop-condition":()=>rz(),"no-unneeded-ternary":()=>nz(),"no-unreachable":()=>sz(),"no-unreachable-loop":()=>iz(),"no-unsafe-finally":()=>az(),"no-unsafe-negation":()=>oz(),"no-unsafe-optional-chaining":()=>lz(),"no-unused-expressions":()=>uz(),"no-unused-labels":()=>cz(),"no-unused-private-class-members":()=>fz(),"no-unused-vars":()=>pz(),"no-use-before-define":()=>hz(),"no-useless-assignment":()=>dz(),"no-useless-backreference":()=>mz(),"no-useless-call":()=>gz(),"no-useless-catch":()=>yz(),"no-useless-computed-key":()=>xz(),"no-useless-concat":()=>bz(),"no-useless-constructor":()=>vz(),"no-useless-escape":()=>Oz(),"no-useless-rename":()=>Sz(),"no-useless-return":()=>Ez(),"no-var":()=>Cz(),"no-void":()=>wz(),"no-warning-comments":()=>kz(),"no-whitespace-before-property":()=>Az(),"no-with":()=>Pz(),"nonblock-statement-body-position":()=>Tz(),"object-curly-newline":()=>Dz(),"object-curly-spacing":()=>_z(),"object-property-newline":()=>Iz(),"object-shorthand":()=>Fz(),"one-var":()=>Rz(),"one-var-declaration-per-line":()=>Bz(),"operator-assignment":()=>Nz(),"operator-linebreak":()=>Lz(),"padded-blocks":()=>$z(),"padding-line-between-statements":()=>Mz(),"prefer-arrow-callback":()=>jz(),"prefer-const":()=>qz(),"prefer-destructuring":()=>Qz(),"prefer-exponentiation-operator":()=>Uz(),"prefer-named-capture-group":()=>Vz(),"prefer-numeric-literals":()=>Wz(),"prefer-object-has-own":()=>Zz(),"prefer-object-spread":()=>zz(),"prefer-promise-reject-errors":()=>Xz(),"prefer-reflect":()=>Gz(),"prefer-regex-literals":()=>Yz(),"prefer-rest-params":()=>Hz(),"prefer-spread":()=>Kz(),"prefer-template":()=>Jz(),"quote-props":()=>eX(),quotes:()=>tX(),radix:()=>rX(),"require-atomic-updates":()=>nX(),"require-await":()=>sX(),"require-unicode-regexp":()=>iX(),"require-yield":()=>aX(),"rest-spread-spacing":()=>oX(),semi:()=>lX(),"semi-spacing":()=>uX(),"semi-style":()=>cX(),"sort-imports":()=>fX(),"sort-keys":()=>hX(),"sort-vars":()=>dX(),"space-before-blocks":()=>mX(),"space-before-function-paren":()=>gX(),"space-in-parens":()=>yX(),"space-infix-ops":()=>xX(),"space-unary-ops":()=>bX(),"spaced-comment":()=>vX(),strict:()=>OX(),"switch-colon-spacing":()=>SX(),"symbol-description":()=>EX(),"template-curly-spacing":()=>CX(),"template-tag-spacing":()=>wX(),"unicode-bom":()=>kX(),"use-isnan":()=>AX(),"valid-typeof":()=>PX(),"vars-on-top":()=>TX(),"wrap-iife":()=>DX(),"wrap-regex":()=>_X(),"yield-star-spacing":()=>IX(),yoda:()=>FX()})),_v}var Iv,SR;function RX(){if(SR)return Iv;SR=1;let r=sN();class e{constructor(){this._rules=Object.create(null)}define(s,n){this._rules[s]=n}get(s){return typeof this._rules[s]=="string"&&this.define(s,r7(this._rules[s])),this._rules[s]?this._rules[s]:r.has(s)?r.get(s):null}*[Symbol.iterator](){yield*r;for(let s of Object.keys(this._rules))yield[s,this.get(s)]}}return Iv=e,Iv}var Fv,ER;function BX(){if(ER)return Fv;ER=1;let r=bi()("eslint:source-code-fixer"),e="\uFEFF";function t(i,a){return i.fix.range[0]-a.fix.range[0]||i.fix.range[1]-a.fix.range[1]}function s(i,a){return i.line-a.line||i.column-a.column}function n(){Object.freeze(this)}return n.applyFixes=function(i,a,l){if(r("Applying fixes"),l===!1)return r("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:a,output:i};let o=[],u=[],c=i.startsWith(e)?e:"",p=c?i.slice(1):i,h=Number.NEGATIVE_INFINITY,f=c;function d(m){let g=m.fix,y=g.range[0],b=g.range[1];return h>=y||y>b?(o.push(m),!1):((y<0&&b>=0||y===0&&g.text.startsWith(e))&&(f=""),f+=p.slice(Math.max(0,h),Math.max(0,y)),f+=g.text,h=b,!0)}if(a.forEach(m=>{Object.hasOwn(m,"fix")?u.push(m):o.push(m)}),u.length){r("Found fixes to apply");let m=!1;for(let g of u.sort(t))typeof l!="function"||l(g)?(d(g),m=!0):o.push(g);return f+=p.slice(Math.max(0,h)),{fixed:m,messages:o.sort(s),output:f}}return r("No fixes to apply"),{fixed:!1,messages:a,output:c+p}},Fv=n,Fv}var Rv,CR;function iN(){if(CR)return Rv;CR=1;function r(){return Bt.hrtime()}function e(t){let s=Bt.hrtime(t);return s[0]*1e3+s[1]/1e6}return Rv={startTime:r,endTime:e},Rv}var Bv,wR;function NX(){if(wR)return Bv;wR=1;let{startTime:r,endTime:e}=iN();function t(u,c,p){return u+new Array(c-u.length+1).join(p||" ")}function s(u,c,p){return new Array(c-u.length+1).join(p||" ")+u}let n=!!Bt.env.TIMING,i=["Rule","Time (ms)","Relative"],a=[t,s,s];function l(){if(typeof Bt.env.TIMING!="string")return 10;if(Bt.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;let c=Number.parseInt(Bt.env.TIMING,10);return c>10?c:10}function o(u){let c=0,p=Object.keys(u).map(d=>{let m=u[d];return c+=m,[d,m]}).sort((d,m)=>m[1]-d[1]).slice(0,l());p.forEach(d=>{d.push(`${(d[1]*100/c).toFixed(1)}%`),d[1]=d[1].toFixed(3)}),p.unshift(i);let h=[];p.forEach(d=>{let m=d.length;for(let g=0;gh[g])&&(h[g]=y)}});let f=p.map(d=>d.map((m,g)=>a[g](m,h[g])).join(" | "));f.splice(1,0,h.map((d,m)=>{let g=m!==0&&m!==h.length-1?2:1;return a[m](":",d+g,"-")}).join("|")),console.log(f.join(` +`))}return Bv=function(){let u=Object.create(null);function c(p,h,f){return function(...d){let m=r(),g=h(...d),y=e(m);return n&&(typeof u[p]>"u"&&(u[p]=0),u[p]+=y),f?{result:g,tdiff:y}:g}}return n&&Bt.on("exit",()=>{o(u)}),{time:c,enabled:n,getListSize:l}}(),Bv}var LX={"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"]},aN={rules:LX},Nv,kR;function oN(){if(kR)return Nv;kR=1;let r=Object.freeze({type:"array",minItems:0,maxItems:0});function e(n){let i,a;return n.includes("/")?(n.startsWith("@")?i=n.slice(0,n.lastIndexOf("/")):i=n.slice(0,n.indexOf("/")),a=n.slice(i.length+1)):(i="@",a=n),{pluginName:i,ruleName:a}}function t(n,i){let{pluginName:a,ruleName:l}=e(n),o=i.plugins&&i.plugins[a];return o&&o.rules&&o.rules[l]}function s(n){if(!n.meta)return{...r};let i=n.meta.schema;if(typeof i>"u")return{...r};if(i===!1)return null;if(typeof i!="object"||i===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(i)?i.length?{type:"array",items:i,minItems:0,maxItems:i.length}:{...r}:i}return Nv={parseRuleId:e,getRuleFromConfig:t,getRuleOptionsSchema:s},Nv}var Lv={},tc={},$v,AR;function $X(){if(AR)return $v;AR=1,$v=function(e,t){for(var s=[],n=0;n=0&&h>0){for(a=[],o=i.length;f>=0&&!c;)f==p?(a.push(f),p=i.indexOf(s,f+1)):a.length==1?c=[a.pop(),h]:(l=a.pop(),l=0?p:h;a.length&&(c=[o,u])}return c}return Mv}var jv,TR;function jX(){if(TR)return jv;TR=1;var r=$X(),e=MX();jv=p;var t="\0SLASH"+Math.random()+"\0",s="\0OPEN"+Math.random()+"\0",n="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function l(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function o(y){return y.split("\\\\").join(t).split("\\{").join(s).split("\\}").join(n).split("\\,").join(i).split("\\.").join(a)}function u(y){return y.split(t).join("\\").split(s).join("{").split(n).join("}").split(i).join(",").split(a).join(".")}function c(y){if(!y)return[""];var b=[],v=e("{","}",y);if(!v)return y.split(",");var S=v.pre,C=v.body,O=v.post,w=S.split(",");w[w.length-1]+="{"+C+"}";var E=c(O);return O.length&&(w[w.length-1]+=E.shift(),w.push.apply(w,E)),b.push.apply(b,w),b}function p(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),g(o(y),!0).map(u)):[]}function h(y){return"{"+y+"}"}function f(y){return/^-?0\d/.test(y)}function d(y,b){return y<=b}function m(y,b){return y>=b}function g(y,b){var v=[],S=e("{","}",y);if(!S||/\$$/.test(S.pre))return[y];var C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(S.body),O=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(S.body),w=C||O,E=S.body.indexOf(",")>=0;if(!w&&!E)return S.post.match(/,.*\}/)?(y=S.pre+"{"+S.body+n+S.post,g(y)):[y];var k;if(w)k=S.body.split(/\.\./);else if(k=c(S.body),k.length===1&&(k=g(k[0],!1).map(h),k.length===1)){var D=S.post.length?g(S.post,!1):[""];return D.map(function($){return S.pre+k[0]+$})}var A=S.pre,D=S.post.length?g(S.post,!1):[""],_;if(w){var B=l(k[0]),T=l(k[1]),F=Math.max(k[0].length,k[1].length),j=k.length==3?Math.abs(l(k[2])):1,Q=d,I=T0){var ae=new Array(V+1).join("0");R<0?U="-"+ae+U.slice(1):U=ae+U}}_.push(U)}}else _=r(k,function(he){return g(he,!1)});for(var se=0;se<_.length;se++)for(var ve=0;ve"u"?this.pattern:k,v(k),A.nobrace||!/\{(?:(?!\{).)*\}/.test(k)?[k]:t(k)}var b=1024*64,v=function(k){if(typeof k!="string")throw new TypeError("invalid pattern");if(k.length>b)throw new TypeError("pattern is too long")};d.prototype.parse=C;var S={};function C(k,A){v(k);var D=this.options;if(k==="**")if(D.noglobstar)k="*";else return e;if(k==="")return"";var _="",B=!!D.nocase,T=!1,F=[],j=[],Q,I=!1,N=-1,R=-1,U=k.charAt(0)==="."?"":D.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",V=this;function ae(){if(Q){switch(Q){case"*":_+=i,B=!0;break;case"?":_+=n,B=!0;break;default:_+="\\"+Q;break}V.debug("clearStateChar %j %j",Q,_),Q=!1}}for(var se=0,ve=k.length,H;se-1;Le--){var qe=j[Le],rt=_.slice(0,qe.reStart),ht=_.slice(qe.reStart,qe.reEnd-8),pt=_.slice(qe.reEnd-8,qe.reEnd),Et=_.slice(qe.reEnd);pt+=Et;var X=rt.split("(").length-1,we=Et;for(se=0;se"u"&&(D=this.partial),this.debug("match",A,this.pattern),this.comment)return!1;if(this.empty)return A==="";if(A==="/"&&D)return!0;var _=this.options;r.sep!=="/"&&(A=A.split(r.sep).join("/")),A=A.split(c),this.debug(this.pattern,"split",A);var B=this.set;this.debug(this.pattern,"set",B);var T,F;for(F=A.length-1;F>=0&&(T=A[F],!T);F--);for(F=0;F>> no match, partial?`,k,N,A,R),N===F))}var V;if(typeof Q=="string"?(V=I===Q,this.debug("string match",Q,I,V)):(V=I.match(Q),this.debug("pattern match",Q,I,V)),!V)return!1}if(B===F&&T===j)return!0;if(B===F)return D;if(T===j)return B===F-1&&k[B]==="";throw new Error("wtf?")};function w(k){return k.replace(/\\(.)/g,"$1")}function E(k){return k.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return qv}var $o={},Qv={},Uv={},_R;function lN(){if(_R)return Uv;_R=1;class r{static overwrite(t,s){return s}static replace(t,s){return typeof s<"u"?s:t}static assign(t,s){return Object.assign({},t,s)}}return Uv.MergeStrategy=r,Uv}var Vv={},IR;function uN(){if(IR)return Vv;IR=1;class r{static array(t){if(!Array.isArray(t))throw new TypeError("Expected an array.")}static boolean(t){if(typeof t!="boolean")throw new TypeError("Expected a Boolean.")}static number(t){if(typeof t!="number")throw new TypeError("Expected a number.")}static object(t){if(!t||typeof t!="object")throw new TypeError("Expected an object.")}static"object?"(t){if(typeof t!="object")throw new TypeError("Expected an object or null.")}static string(t){if(typeof t!="string")throw new TypeError("Expected a string.")}static"string!"(t){if(typeof t!="string"||t.length===0)throw new TypeError("Expected a non-empty string.")}}return Vv.ValidationStrategy=r,Vv}var FR;function QX(){if(FR)return Qv;FR=1;let{MergeStrategy:r}=lN(),{ValidationStrategy:e}=uN(),t=Symbol("strategies"),s=Symbol("requiredKeys");function n(c,p){let h=!1;if(p.schema)if(typeof p.schema=="object")h=!0;else throw new TypeError("Schema must be an object.");if(typeof p.merge=="string"){if(!(p.merge in r))throw new TypeError(`Definition for key "${c}" missing valid merge strategy.`)}else if(!h&&typeof p.merge!="function")throw new TypeError(`Definition for key "${c}" must have a merge property.`);if(typeof p.validate=="string"){if(!(p.validate in e))throw new TypeError(`Definition for key "${c}" missing valid validation strategy.`)}else if(!h&&typeof p.validate!="function")throw new TypeError(`Definition for key "${c}" must have a validate() method.`)}class i extends Error{constructor(p){super(`Unexpected key "${p}" found.`)}}class a extends Error{constructor(p){super(`Missing required key "${p}".`)}}class l extends Error{constructor(p,h){super(`Key "${p}" requires keys "${h.join('", "')}".`)}}class o extends Error{constructor(p,h){super(`Key "${p}": ${h.message}`,{cause:h});for(let f of Object.keys(h))f in this||(this[f]=h[f])}}class u{constructor(p){if(!p)throw new Error("Schema definitions missing.");this[t]=new Map,this[s]=new Map;for(let h of Object.keys(p)){if(n(h,p[h]),typeof p[h].schema=="object"){let f=new u(p[h].schema);p[h]={...p[h],merge(d={},m={}){return f.merge(d,m)},validate(d){e.object(d),f.validate(d)}}}typeof p[h].merge=="string"&&(p[h]={...p[h],merge:r[p[h].merge]}),typeof p[h].validate=="string"&&(p[h]={...p[h],validate:e[p[h].validate]}),this[t].set(h,p[h]),p[h].required&&this[s].set(h,p[h])}}hasKey(p){return this[t].has(p)}merge(...p){if(p.length<2)throw new TypeError("merge() requires at least two arguments.");if(p.some(h=>h==null||typeof h!="object"))throw new TypeError("All arguments must be objects.");return p.reduce((h,f)=>{this.validate(f);for(let[d,m]of this[t])try{if(d in h||d in f){let g=m.merge.call(this,h[d],f[d]);g!==void 0&&(h[d]=g)}}catch(g){throw new o(d,g)}return h},{})}validate(p){for(let h of Object.keys(p)){if(!this.hasKey(h))throw new i(h);let f=this[t].get(h);if(Array.isArray(f.requires)&&!f.requires.every(d=>d in p))throw new l(h,f.requires);try{f.validate.call(f,p[h])}catch(d){throw new o(h,d)}}for(let[h]of this[s])if(!(h in p))throw new a(h)}}return Qv.ObjectSchema=u,Qv}var RR;function UX(){return RR||(RR=1,$o.ObjectSchema=QX().ObjectSchema,$o.MergeStrategy=lN().MergeStrategy,$o.ValidationStrategy=uN().ValidationStrategy),$o}var BR;function VX(){if(BR)return tc;BR=1;var r=fc,e=qX(),t=bi(),s=UX();let n={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(I){if(typeof I!="string")throw new TypeError("Property must be a string.")}},files:n,ignores:n});function a(I){if(!Array.isArray(I))throw new TypeError("Expected value to be an array.")}function l(I,N){if(a(I),I.some(R=>typeof R!="string"&&typeof R!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function o(I){if(!Array.isArray(I)||I.length===0)throw new TypeError("Expected value to be a non-empty array.")}let u=Object.freeze({files:{required:!1,merge(){},validate(I){o(I),I.forEach(N=>{if(Array.isArray(N))l(N);else if(typeof N!="string"&&typeof N!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:l}}),c=e.Minimatch,p=new Map,h=new Map,f=t("@hwc/config-array"),d={dot:!0},m=new Set(["array","function"]),g=new Set(["name"]),y=new s.ObjectSchema(u);class b extends Error{constructor(N,R,{cause:U,message:V}){let ae=V||U.message;if(super(`Config ${N}: ${ae}`,{cause:U}),U)for(let se of Object.keys(U))se in this||(this[se]=U[se]);this.name="ConfigError",this.index=R}}function v(I){return I&&typeof I.name=="string"&&I.name?`"${I.name}"`:"(unnamed)"}function S(I,N,R){let U=v(I);throw new b(U,N,R)}function C(I){return typeof I=="string"}function O(I,N){if(I===null)throw new b(v(I),N,{message:"Unexpected null config."});if(I===void 0)throw new b(v(I),N,{message:"Unexpected undefined config."});if(typeof I!="object")throw new b(v(I),N,{message:"Unexpected non-object config."});let R={};"files"in I&&(R.files=I.files),"ignores"in I&&(R.ignores=I.ignores);try{y.validate(R)}catch(U){S(I,N,{cause:U})}}function w(I,N,R={}){let U=p;R.flipNegate&&(U=h);let V=U.get(N);return V||(V=new c(N,Object.assign({},d,R)),U.set(N,V)),V.match(I)}async function E(I,N,R){let U=R.includes("function"),V=R.includes("array");async function*ae(H){for(let he of H){if(typeof he=="function"){if(!U)throw new TypeError("Unexpected function.");he=he(N),he.then&&(he=await he)}if(Array.isArray(he)){if(!V)throw new TypeError("Unexpected array.");yield*ae(he)}else{if(typeof he=="function")throw new TypeError("A config function can only return an object or array.");yield he}}}let se=await ae(I),ve=[];for await(let H of se)ve.push(H);return ve}function k(I,N,R){let U=R.includes("function"),V=R.includes("array");function*ae(se){for(let ve of se){if(typeof ve=="function"){if(!U)throw new TypeError("Unexpected function.");if(ve=ve(N),ve.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(ve)){if(!V)throw new TypeError("Unexpected array.");yield*ae(ve)}else{if(typeof ve=="function")throw new TypeError("A config function can only return an object or array.");yield ve}}}return[...ae(I)]}function A(I,N,R){return R.startsWith("..")?!0:I.reduce((U,V)=>U?typeof V=="string"&&V.startsWith("!")?!w(R,V,{flipNegate:!0}):U:typeof V=="function"?V(N):V.startsWith("!")?!1:w(R,V),!1)}function D(I,N,R){let U=r.relative(N,I);return Object.keys(R).filter(V=>!g.has(V)).length>1&&!A(R.ignores,I,U)}function _(I,N,R){let U=r.relative(N,I),V=se=>{if(C(se))return w(U,se);if(typeof se=="function")return se(I);throw new TypeError(`Unexpected matcher type ${se}.`)},ae=R.files.some(se=>Array.isArray(se)?se.every(V):V(se));return ae&&R.ignores&&(ae=!A(R.ignores,I,U)),ae}function B(I){if(!I.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function T(I){if(I.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(let N of I)if(!m.has(N))throw new TypeError(`Unexpected config type "${N}" found. Expected one of: "object", "array", "function".`)}let F={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},j=new WeakMap;class Q extends Array{constructor(N,{basePath:R="",normalized:U=!1,schema:V,extraConfigTypes:ae=[]}={}){super(),this[F.isNormalized]=U,this[F.schema]=new s.ObjectSchema(Object.assign({},V,i)),this.basePath=R,T(ae),this.extraConfigTypes=Object.freeze([...ae]),this[F.configCache]=new Map,j.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(N)?this.push(...N):this.push(N)}static get[Symbol.species](){return Array}get files(){B(this);let N=j.get(this);if(N.files)return N.files;let R=[];for(let U of this)U.files&&U.files.forEach(V=>{R.push(V)});return N.files=R,j.set(this,N),R}get ignores(){B(this);let N=j.get(this);if(N.ignores)return N.ignores;let R=[];for(let U of this)U.ignores&&Object.keys(U).filter(V=>!g.has(V)).length===1&&R.push(...U.ignores);return N.ignores=R,j.set(this,N),R}isNormalized(){return this[F.isNormalized]}async normalize(N={}){if(!this.isNormalized()){let R=await E(this,N,this.extraConfigTypes);this.length=0,this.push(...R.map(this[F.preprocessConfig].bind(this))),this.forEach(O),this[F.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(N={}){if(!this.isNormalized()){let R=k(this,N,this.extraConfigTypes);this.length=0,this.push(...R.map(this[F.preprocessConfig].bind(this))),this.forEach(O),this[F.isNormalized]=!0,Object.freeze(this)}return this}[F.finalizeConfig](N){return N}[F.preprocessConfig](N){return N}isExplicitMatch(N){B(this);let R=j.get(this),U=R.explicitMatches.get(N);if(typeof U=="boolean")return U;let V=r.relative(this.basePath,N);if(A(this.ignores,N,V))return f(`Ignoring ${N}`),R.explicitMatches.set(N,!1),!1;for(let ae of this)if(ae.files&&_(N,this.basePath,ae))return f(`Matching config found for ${N}`),R.explicitMatches.set(N,!0),!0;return!1}getConfig(N){B(this);let R=this[F.configCache];if(R.has(N))return R.get(N);let U;if(this.isDirectoryIgnored(r.dirname(N)))return f(`Ignoring ${N} based on directory pattern`),R.set(N,U),U;let V=r.relative(this.basePath,N);if(A(this.ignores,N,V))return f(`Ignoring ${N} based on file pattern`),R.set(N,U),U;let ae=[],se=!1,ve=/\/\*{1,2}$/;return this.forEach((H,he)=>{if(!H.files){if(!H.ignores){f(`Anonymous universal config found for ${N}`),ae.push(he);return}if(D(N,this.basePath,H)){f(`Matching config found for ${N} (based on ignores: ${H.ignores})`),ae.push(he);return}f(`Skipped config found for ${N} (based on ignores: ${H.ignores})`);return}let $=H.files.filter(pe=>ve.test(pe));if($.length){f("Universal files patterns found. Checking carefully.");let pe=H.files.filter(K=>!ve.test(K));if(pe.length&&_(N,this.basePath,{files:pe,ignores:H.ignores})){f(`Matching config found for ${N}`),ae.push(he),se=!0;return}if($.length&&_(N,this.basePath,{files:$,ignores:H.ignores})){f(`Matching config found for ${N}`),ae.push(he);return}return}if(_(N,this.basePath,H)){f(`Matching config found for ${N}`),ae.push(he),se=!0;return}}),se?(U=R.get(ae.toString()),U?(R.set(N,U),U):(U=ae.reduce((H,he)=>{try{return this[F.schema].merge(H,this[he])}catch($){S(this[he],he,{cause:$})}},{},this),U=this[F.finalizeConfig](U),R.set(N,U),R.set(ae.toString(),U),U)):(f(`No matching configs found for ${N}`),R.set(N,U),U)}isIgnored(N){return this.isFileIgnored(N)}isFileIgnored(N){return this.getConfig(N)===void 0}isDirectoryIgnored(N){B(this);let R=r.relative(this.basePath,N).replace(/\\/g,"/");if(R.startsWith(".."))return!0;let U=j.get(this).directoryMatches;if(U.has(R))return U.get(R);let V=R.split("/"),ae="",se=!1;do ae+=V.shift()+"/",se=A(this.ignores,r.join(this.basePath,ae),ae),U.set(ae,se);while(!se&&V.length);return U.set(R,se),se}}return tc.ConfigArray=Q,tc.ConfigArraySymbol=F,tc}var Wv,NR;function cN(){if(NR)return Wv;NR=1;function r(t){if([2,"2","error"].includes(t))return"error";if([1,"1","warn"].includes(t))return"warn";if([0,"0","off"].includes(t))return"off";throw new Error(`Invalid severity value: ${t}`)}function e(t){if([2,"2","error"].includes(t))return 2;if([1,"1","warn"].includes(t))return 1;if([0,"0","off"].includes(t))return 0;throw new Error(`Invalid severity value: ${t}`)}return Wv={normalizeSeverityToString:r,normalizeSeverityToNumber:e},Wv}var Zv,LR;function fN(){if(LR)return Zv;LR=1;let{normalizeSeverityToNumber:r}=cN(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]),t=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function s(T){return typeof T=="object"&&T!==null}function n(T){return s(T)&&!Array.isArray(T)}function i(T){return typeof T>"u"}function a(T,F,j=new Map){let Q=j.get(T);if(Q){let N=Q.get(F);if(N)return N}else Q=new Map,j.set(T,Q);let I={...T,...F};delete I.__proto__,Q.set(F,I);for(let N of Object.keys(F)){if(N==="__proto__"||!Object.prototype.propertyIsEnumerable.call(T,N))continue;let R=T[N],U=F[N];n(R)&&n(U)?I[N]=a(R,U,j):i(U)&&(I[N]=R)}return I}function l(T){let F=Array.isArray(T)?T.slice(0):[T];return F[0]=e.get(F[0]),structuredClone(F)}class o extends Error{constructor(F,j){super(`Key "${F}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:F,value:j}}}function u(T,F){if(typeof F!="string"&&typeof F!="number"&&!Array.isArray(F))throw new o(T,F)}class c extends Error{constructor(F,j){super(`Key "${F}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:F,value:j}}}function p(T,F){if(typeof e.get(F)>"u")throw new c(T,F)}function h(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 f(T){if(!s(T))throw new TypeError("Expected an object.")}class d extends Error{constructor(F){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:F}}}class m extends Error{constructor(F){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:F}}}let g={merge:"replace",validate:"boolean"},y=new Set(["error","warn","off",2,1,0]),b={merge(T,F){let j=F===void 0?T:F;return typeof j=="boolean"?j?"warn":"off":r(j)},validate(T){if(!(y.has(T)||typeof T=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},v={merge(T={},F={}){return a(T,F)},validate:"object"},S={merge:"assign",validate(T){f(T);for(let F of Object.keys(T))if(F!=="__proto__"){if(F!==F.trim())throw new TypeError(`Global "${F}" has leading or trailing whitespace.`);if(!t.has(T[F]))throw new TypeError(`Key "${F}": Expected "readonly", "writable", or "off".`)}}},C={merge:"replace",validate(T){if(!T||typeof T!="object"||typeof T.parse!="function"&&typeof T.parseForESLint!="function")throw new TypeError("Expected object with parse() or parseForESLint() method.")}},O={merge(T={},F={}){let j=new Set([...Object.keys(T),...Object.keys(F)]),Q={};for(let I of j)if(I!=="__proto__"){if(I in T&&I in F&&T[I]!==F[I])throw new TypeError(`Cannot redefine plugin "${I}".`);Q[I]=F[I]||T[I]}return Q},validate(T){if(T===null||typeof T!="object")throw new TypeError("Expected an object.");if(Array.isArray(T))throw new m(T);for(let F of Object.keys(T))if(F!=="__proto__"&&(T[F]===null||typeof T[F]!="object"))throw new TypeError(`Key "${F}": Expected an object.`)}},w={merge:"replace",validate(T){if(typeof T=="string")h(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.")}},E={merge(T={},F={}){let j={...T,...F};for(let Q of Object.keys(j))try{if(Q==="__proto__"){delete j.__proto__;continue}if(j[Q]=l(j[Q]),!(Q in T)||!(Q in F))continue;let I=l(T[Q]),N=l(F[Q]);if(N.length===1){j[Q]=[N[0],...I.slice(1)];continue}}catch(I){throw new Error(`Key "${Q}": ${I.message}`,{cause:I})}return j},validate(T){f(T);for(let F of Object.keys(T)){if(F==="__proto__")continue;let j=T[F];u(F,j),Array.isArray(j)?p(F,j[0]):p(F,j)}}},k={merge:"replace",validate(T){if(!(typeof T=="number"||T==="latest"))throw new TypeError('Expected a number or "latest".')}},A={merge:"replace",validate(T){if(typeof T!="string"||!/^(?:script|module|commonjs)$/u.test(T))throw new TypeError('Expected "script", "module", or "commonjs".')}};function D(T){return{merge:"replace",validate(){throw new d(T)}}}return Zv={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(T=>[T,D(T)])),settings:v,linterOptions:{schema:{noInlineConfig:g,reportUnusedDisableDirectives:b}},languageOptions:{schema:{ecmaVersion:k,sourceType:A,globals:S,parser:C,parserOptions:v}},processor:w,plugins:O,rules:E},assertIsRuleSeverity:p},Zv}var zv={},WX="http://json-schema.org/draft-04/schema#",ZX="http://json-schema.org/draft-04/schema#",zX="Core schema meta-schema",XX={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}},GX="object",YX={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:"#"}},HX={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},KX={id:WX,$schema:ZX,description:zX,definitions:XX,type:GX,properties:YX,dependencies:HX,default:{}},Xv,$R;function JX(){if($R)return Xv;$R=1;let r=LB(),e=KX;return Xv=(t={})=>{let s=new r({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return s.addMetaSchema(e),s._opts.defaultMeta=e.id,s},Xv}var MR;function pN(){if(MR)return zv;MR=1;let e=JX()(),{parseRuleId:t,getRuleFromConfig:s,getRuleOptionsSchema:n}=oN(),i=aN;function a({pluginName:u,ruleName:c},p){let f=`Key "rules": Key "${u==="@"?c:`${u}/${c}`}"`,d=`${f}: Could not find plugin "${u}".`;if(p.plugins&&p.plugins[u]){let m=i.rules[c];if(u==="@"&&m)d=`${f}: Rule "${c}" was removed and replaced by "${m}".`;else{d=`${f}: Could not find "${c}" in plugin "${u}".`;for(let[g,y]of Object.entries(p.plugins))if(y.rules&&y.rules[c]){d+=` Did you mean "${g}/${c}"?`;break}}}throw new TypeError(d)}class l extends Error{constructor(c,p){super(`Error while processing options validation schema of rule '${c}': ${p.message}`,{cause:p}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}class o{constructor(){this.validators=new WeakMap}validate(c){if(c.rules)for(let[p,h]of Object.entries(c.rules)){if(p==="__proto__"||h[0]===0)continue;let f=s(p,c);if(f||a(t(p),c),!this.validators.has(f))try{let m=n(f);m&&this.validators.set(f,e.compile(m))}catch(m){throw new l(p,m)}let d=this.validators.get(f);if(d&&(d(h.slice(1)),d.errors))throw new Error(`Key "rules": Key "${p}": +${d.errors.map(m=>{if(m.keyword==="additionalProperties"&&m.schema===!1&&typeof m.parentSchema?.properties=="object"&&typeof m.params?.additionalProperty=="string"){let g=Object.keys(m.parentSchema.properties).map(y=>`"${y}"`);return` Value ${JSON.stringify(m.data)} ${m.message}. Unexpected property "${m.params.additionalProperty}". Expected properties: ${g.join(", ")}. `}return` Value ${JSON.stringify(m.data)} ${m.message}. -`}).join("")}`)}}}return Gv.RuleValidator=o,Gv}var Hv={},QR;function rG(){if(QR)return Hv;QR=1;let r=aN();return Hv.defaultConfig=[{plugins:{"@":{rules:new Proxy({},{get(e,t){return r.get(t)},has(e,t){return r.has(t)}})}},languageOptions:{sourceType:"module",ecmaVersion:"latest",parser:Oc(),parserOptions:{}},linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}],Hv}var UR;function nG(){if(UR)return Mv;UR=1;let{ConfigArray:r,ConfigArraySymbol:e}=ZX(),{flatConfigSchema:t}=hN(),{RuleValidator:s}=dN(),{defaultConfig:n}=rG(),i=new Set(["name"]),a=new s;function l(d){let m=d.split("/");return{objectName:m.pop(),pluginName:m.join("/")}}function o(d){let m=d.name;if(!m&&(!d.meta||(m=d.meta.name,!m)))return null;let g=d.version;return g||(g=d.meta&&d.meta.version),g?`${m}@${g}`:m}function u(d,m,g){let b="user-defined",O=d.index;return d.index{throw g.name==="ConfigError"?u(g,this[p],this[h]):g})}normalizeSync(m){try{return super.normalizeSync(m)}catch(g){throw g.name==="ConfigError"?u(g,this[p],this[h]):g}}[e.preprocessConfig](m){if(!this.shouldIgnore&&!this[c].includes(m)&&m.ignores&&Object.keys(m).filter(g=>!i.has(g)).length===1){let{ignores:g,...b}=m;return b}return m}[e.finalizeConfig](m){let{plugins:g,languageOptions:b,processor:O}=m,S,C,k=!1,E=!1;if(b&&b.parser){let{parser:A}=b;typeof A=="object"?(S=o(A),S||(k=!0)):k=!0}if(O)if(typeof O=="string"){let{pluginName:A,objectName:w}=l(O);if(C=O,!g||!g[A]||!g[A].processors||!g[A].processors[w])throw new TypeError(`Key "processor": Could not find "${w}" in plugin "${A}".`);m.processor=g[A].processors[w]}else typeof O=="object"?(C=o(O),C||(E=!0)):E=!0;return a.validate(m),Object.defineProperty(m,"toJSON",{value:function(){if(k)throw new Error("Could not serialize parser object (missing 'meta' object).");if(E)throw new Error("Could not serialize processor object (missing 'meta' object).");return{...this,plugins:Object.entries(g).map(([A,w])=>{let P=o(w);return P?`${A}:${P}`:A}),languageOptions:{...b,parser:S},processor:C}}}),m}}return Mv.FlatConfigArray=f,Mv}var Kv,VR;function sG(){if(VR)return Kv;VR=1;let r=hc,e=FB(),t=AO(),s=Oc(),n=E9(),i=U9,a=Sc(),{directivesPattern:l}=Ec(),{Legacy:{ConfigOps:o,ConfigValidator:u,environments:c}}=_O(),p=IO(),{SourceCode:h}=Y4(),f=H4(),d=YB(),m=e7(),g=n7(),b=NX(),O=zB(),S=LX(),C=$X(),k=lN,{getRuleFromConfig:E}=uN(),{FlatConfigArray:A}=nG(),{startTime:w,endTime:P}=oN(),{RuleValidator:T}=dN(),{assertIsRuleSeverity:I}=hN(),{normalizeSeverityToString:F}=pN(),L=Oi()("eslint:linter"),_=10,B="espree",Q=5,V=new d,R={start:{line:1,column:0},end:{line:1,column:1}},$=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:N}=sN(),W=1,Z=2;function le(Ie){return Ie===s||Ie[$]===s}function ae(Ie,H,{exportedVariables:ie,enabledGlobals:re}){for(let ue of new Set([...Object.keys(H),...Object.keys(re)])){let pe=H[ue]===void 0?void 0:o.normalizeConfigGlobal(H[ue]),te=re[ue]&&re[ue].value||pe,oe=re[ue]&&re[ue].comments;if(te==="off")continue;let ge=Ie.set.get(ue);ge||(ge=new e.Variable(ue,Ie),Ie.variables.push(ge),Ie.set.set(ue,ge)),ge.eslintImplicitGlobalSetting=pe,ge.eslintExplicitGlobal=oe!==void 0,ge.eslintExplicitGlobalComments=oe,ge.writeable=te==="writable"}Object.keys(ie).forEach(ue=>{let pe=Ie.set.get(ue);pe&&(pe.eslintUsed=!0,pe.eslintExported=!0)}),Ie.through=Ie.through.filter(ue=>{let pe=ue.identifier.name,X=Ie.set.get(pe);return X?(ue.resolved=X,X.references.push(ue),!1):!0})}function Se(Ie){return Object.hasOwn(k.rules,Ie)?`Rule '${Ie}' was removed and replaced by: ${k.rules[Ie].join(", ")}`:`Definition for rule '${Ie}' was not found.`}function J(Ie){let{ruleId:H=null,loc:ie=R,message:re=Se(Ie.ruleId),severity:ue=2}=Ie;return{ruleId:H,message:re,line:ie.start.line,column:ie.start.column+1,endLine:ie.end.line,endColumn:ie.end.column+1,severity:ue,nodeType:null}}function me({type:Ie,value:H,justification:ie,node:re},ue){let pe=Object.keys(V.parseListConfig(H)),X=pe.length?pe:[null],te={directives:[],directiveProblems:[]},oe={node:re,ruleIds:pe};for(let ge of X)ge===null||ue(ge)?Ie==="disable-next-line"?te.directives.push({parentDirective:oe,type:Ie,line:re.loc.end.line,column:re.loc.end.column+1,ruleId:ge,justification:ie}):te.directives.push({parentDirective:oe,type:Ie,line:re.loc.start.line,column:re.loc.start.column+1,ruleId:ge,justification:ie}):te.directiveProblems.push(J({ruleId:ge,loc:re.loc}));return te}function j(Ie,H,ie,re){let ue={},pe=Object.create(null),X={},te=[],oe=[],ge=new u({builtInRules:b});return Ie.getInlineConfigNodes().filter(ke=>ke.type!=="Shebang").forEach(ke=>{let{directivePart:M,justificationPart:fe}=V.extractDirectiveComment(ke.value),_e=l.exec(M);if(!_e)return;let Le=_e[1],je=/^eslint-disable-(next-)?line$/u.test(Le);if(ke.type==="Line"&&!je)return;if(ie){let Ee=ke.type==="Block"?`/*${Le}*/`:`//${Le}`;te.push(J({ruleId:null,message:`'${Ee}' has no effect because you have 'noInlineConfig' setting in ${ie}.`,loc:ke.loc,severity:1}));return}if(Le==="eslint-disable-line"&&ke.loc.start.line!==ke.loc.end.line){let Ee=`${Le} comment should not span multiple lines.`;te.push(J({ruleId:null,message:Ee,loc:ke.loc}));return}let Ne=M.slice(_e.index+Le.length);switch(Le){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let Ee=Le.slice(7),{directives:Re,directiveProblems:ze}=me({type:Ee,value:Ne,justification:fe,node:ke},H);oe.push(...Re),te.push(...ze);break}case"exported":Object.assign(X,V.parseListConfig(Ne,ke));break;case"globals":case"global":for(let[Ee,{value:Re}]of Object.entries(V.parseStringConfig(Ne,ke))){let ze;try{ze=o.normalizeConfigGlobal(Re)}catch(Oe){te.push(J({ruleId:null,loc:ke.loc,message:Oe.message}));continue}pe[Ee]?(pe[Ee].comments.push(ke),pe[Ee].value=ze):pe[Ee]={comments:[ke],value:ze}}break;case"eslint":{let Ee=V.parseJsonConfig(Ne,ke.loc);Ee.success?Object.keys(Ee.config).forEach(Re=>{let ze=H(Re),Oe=Ee.config[Re];if(!ze){te.push(J({ruleId:Re,loc:ke.loc}));return}if(Object.hasOwn(ue,Re)){te.push(J({message:`Rule "${Re}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:ke.loc}));return}let se=Array.isArray(Oe)?Oe:[Oe];se.length===1&&re.rules&&Object.hasOwn(re.rules,Re)&&(se=[se[0],...Array.isArray(re.rules[Re])?re.rules[Re].slice(1):[]]);try{ge.validateRuleOptions(ze,Re,se)}catch(K){if(K.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw K;te.push(J({ruleId:Re,message:K.message,loc:ke.loc}));return}ue[Re]=se}):te.push(Ee.error);break}}}),{configuredRules:ue,enabledGlobals:pe,exportedVariables:X,problems:te,disableDirectives:oe}}function de(Ie,H){let ie=[],re=[],{directives:ue,problems:pe}=Ie.getDisableDirectives();return re.push(...pe.map(J)),ue.forEach(X=>{let{directives:te,directiveProblems:oe}=me(X,H);ie.push(...te),re.push(...oe)}),{problems:re,disableDirectives:ie}}function ee(Ie,H){return le(Ie)&&H==="latest"?s.latestEcmaVersion:H>=2015?H-2009:H}function ce(Ie){switch(Ie){case 3:return 3;case 5:case void 0:return 5;default:if(typeof Ie=="number")return Ie>=2015?Ie:Ie+2009}return N}let ve=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function Me(Ie){let H,ie;for(ve.lastIndex=0;(H=ve.exec(Ie))!==null;)H[0].endsWith("*/")&&(ie=Object.assign(ie||{},V.parseListConfig(V.extractDirectiveComment(H[1]).directivePart)));return ie}function Ue(Ie){let H=Ie.split(r.sep),ie=H.lastIndexOf("");return ie===-1?Ie:H.slice(ie).join(r.sep)}function st(Ie,H){let ie=H.linterOptions||H,re=ie.noInlineConfig===!0,ue=Ie.allowInlineConfig===!1,pe=H.configNameOfNoInlineConfig?` (${H.configNameOfNoInlineConfig})`:"",X=Ie.reportUnusedDisableDirectives;typeof X=="boolean"&&(X=X?"error":"off"),typeof X!="string"&&(typeof ie.reportUnusedDisableDirectives=="boolean"?X=ie.reportUnusedDisableDirectives?"warn":"off":X=ie.reportUnusedDisableDirectives===void 0?"off":F(ie.reportUnusedDisableDirectives));let te=Ie.ruleFilter;return typeof te!="function"&&(te=()=>!0),{filename:Ue(Ie.filename||""),allowInlineConfig:!ue,warnInlineConfig:re&&!ue?`your config${pe}`:null,reportUnusedDisableDirectives:X,disableFixes:!!Ie.disableFixes,stats:Ie.stats,ruleFilter:te}}function mt(Ie,H,ie){let re=ie.filter(X=>X.parserOptions).reduce((X,te)=>n(X,te.parserOptions),{}),ue=n(re,H||{});return ue.sourceType==="module"&&(ue.ecmaFeatures=Object.assign({},ue.ecmaFeatures,{globalReturn:!1})),ue.ecmaVersion=ee(Ie,ue.ecmaVersion),ue}function dt({globals:Ie,parser:H,parserOptions:ie}){let{ecmaVersion:re,sourceType:ue}=ie;return{globals:Ie,ecmaVersion:ce(re),sourceType:ue,parser:H,parserOptions:ie}}function wt(Ie,H){return Object.assign({},...H.filter(ie=>ie.globals).map(ie=>ie.globals),Ie)}function Y(Ie){return Ie.charCodeAt(0)===65279?Ie.slice(1):Ie}function Ae(Ie,H,ie){let{type:re,key:ue}=H;ie.times||(ie.times={passes:[{}]});let pe=ie.fixPasses;pe>ie.times.passes.length-1&&ie.times.passes.push({}),ue?(ie.times.passes[pe][re]??={},ie.times.passes[pe][re][ue]??={total:0},ie.times.passes[pe][re][ue].total+=Ie):(ie.times.passes[pe][re]??={total:0},ie.times.passes[pe][re].total+=Ie)}function Ze(Ie){return Array.isArray(Ie)?Ie.slice(1):[]}function rt(Ie,H,ie){let ue=H.parserOptions.ecmaFeatures||{},pe=H.ecmaVersion||Q;return e.analyze(Ie,{ignoreEval:!0,nodejsScope:ue.globalReturn,impliedStrict:ue.impliedStrict,ecmaVersion:typeof pe=="number"?pe:6,sourceType:H.sourceType||"script",childVisitorKeys:ie||t.KEYS,fallback:p.getKeys})}function ot(Ie,H,ie){let re=Y(Ie).replace(a.shebangPattern,(oe,ge)=>`//${ge}`),{ecmaVersion:ue,sourceType:pe,parser:X}=H,te=Object.assign({ecmaVersion:ue,sourceType:pe},H.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:ie});try{L("Parsing:",ie);let oe=typeof X.parseForESLint=="function"?X.parseForESLint(re,te):{ast:X.parse(re,te)};L("Parsing successful:",ie);let ge=oe.ast,ke=oe.services||{},M=oe.visitorKeys||t.KEYS;L("Scope analysis:",ie);let fe=oe.scopeManager||rt(ge,H,M);return L("Scope analysis successful:",ie),{success:!0,sourceCode:new h({text:Ie,ast:ge,parserServices:ke,scopeManager:fe,visitorKeys:M})}}catch(oe){let ge=`Parsing error: ${oe.message.replace(/^line \d+:/iu,"").trim()}`;return L(`%s -%s`,ge,oe.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:ge,line:oe.lineNumber,column:oe.column,nodeType:null}}}}function at(Ie,H){if(!Ie||typeof Ie!="object"||typeof Ie.create!="function")throw new TypeError(`Error while loading rule '${H.id}': Rule must be an object with a \`create\` method`);try{return Ie.create(H)}catch(ie){throw ie.message=`Error while loading rule '${H.id}': ${ie.message}`,ie}}function kt(Ie,H,ie,re,ue,pe,X,te,oe,ge,ke,M,fe){let _e=O(),Le=Ie.traverse(),je=Object.freeze({getCwd:()=>oe,cwd:oe,getFilename:()=>X,filename:X,getPhysicalFilename:()=>ge||X,physicalFilename:ge||X,getSourceCode:()=>Ie,sourceCode:Ie,parserOptions:{...ue.parserOptions},parserPath:re,languageOptions:ue,settings:pe}),Ne=[];Object.keys(H).forEach(Re=>{let ze=o.getRuleSeverity(H[Re]);if(ze===0||ke&&!ke({ruleId:Re,severity:ze}))return;let Oe=ie(Re);if(!Oe){Ne.push(J({ruleId:Re}));return}let se=Oe.meta&&Oe.meta.messages,K=null,he=Object.freeze(Object.assign(Object.create(je),{id:Re,options:Ze(H[Re]),report(...et){K===null&&(K=g({ruleId:Re,severity:ze,sourceCode:Ie,messageIds:se,disableFixes:te}));let yt=K(...et);if(yt.fix&&!(Oe.meta&&Oe.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(yt.suggestions&&!(Oe.meta&&Oe.meta.hasSuggestions===!0))throw Oe.meta&&Oe.meta.docs&&typeof Oe.meta.docs.suggestion<"u"?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`.");Ne.push(yt)}})),Ce=C.enabled||M?C.time(Re,at,M)(Oe,he):at(Oe,he),we=M?Ce.result:Ce;M&&Ae(Ce.tdiff,{type:"rules",key:Re},fe);function Ge(et){return function(...Et){try{let Dt=et(...Et),vt=M?Dt.result:Dt;return M&&Ae(Dt.tdiff,{type:"rules",key:Re},fe),vt}catch(Dt){throw Dt.ruleId=Re,Dt}}}if(typeof we>"u"||we===null)throw new Error(`The create() function for rule '${Re}' did not return an object.`);Object.keys(we).forEach(et=>{let yt=C.enabled||M?C.time(Re,we[et],M):we[et];_e.on(et,Ge(yt))})});let Ee=new m(_e,{visitorKeys:Ie.visitorKeys,fallback:p.getKeys});for(let Re of Le)switch(Re.kind){case W:{try{Re.phase===1?Ee.enterNode(Re.target):Ee.leaveNode(Re.target)}catch(ze){throw ze.currentNode=Re.target,ze}break}case Z:{_e.emit(Re.target,...Re.args);break}default:throw new Error(`Invalid traversal step found: "${Re.type}".`)}return Ne}function Ot(Ie){if(typeof Ie=="object"){let{hasBOM:H,text:ie}=Ie;return(H?"\uFEFF":"")+ie}return String(Ie)}function It(Ie,H){return Ie.lastConfigArray&&Ie.lastConfigArray.pluginEnvironments.get(H)||c.get(H)||null}function Ft(Ie,H){return Ie.lastConfigArray&&Ie.lastConfigArray.pluginRules.get(H)||Ie.ruleMap.get(H)}function z(Ie){if(Ie)return Ie;if(typeof Lt=="object")return Lt.cwd()}let St=new WeakMap;function Ke(Ie){let{configType:H}=St.get(Ie);if(H==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class er{constructor({cwd:H,configType:ie="flat"}={}){St.set(this,{cwd:z(H),lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:ie,parserMap:new Map([["espree",s]]),ruleMap:new b}),this.version=i.version}static get version(){return i.version}_verifyWithoutProcessors(H,ie,re){let ue=St.get(this),pe=ie||{},X=st(re,pe),te;typeof H=="string"?(ue.lastSourceCode=null,te=H):(ue.lastSourceCode=H,te=H.text);let oe=B,ge=s;if(typeof pe.parser=="object"&&pe.parser!==null)oe=pe.parser.filePath,ge=pe.parser.definition;else if(typeof pe.parser=="string"){if(!ue.parserMap.has(pe.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${pe.parser}' was not found.`,line:0,column:0,nodeType:null}];oe=pe.parser,ge=ue.parserMap.get(pe.parser)}let ke=X.allowInlineConfig&&!X.warnInlineConfig?Me(te):{},M=Object.assign({builtin:!0},pe.env,ke),fe=Object.keys(M).filter(se=>M[se]).map(se=>It(ue,se)).filter(se=>se),_e=mt(ge,pe.parserOptions||{},fe),Le=wt(pe.globals||{},fe),je=pe.settings||{},Ne=dt({globals:pe.globals,parser:ge,parserOptions:_e});if(ue.lastSourceCode)ue.lastSourceCode.scopeManager||(ue.lastSourceCode=new h({text:ue.lastSourceCode.text,ast:ue.lastSourceCode.ast,parserServices:ue.lastSourceCode.parserServices,visitorKeys:ue.lastSourceCode.visitorKeys,scopeManager:rt(ue.lastSourceCode.ast,Ne)}));else{let se;X.stats&&(se=w());let K=ot(te,Ne,X.filename);if(X.stats){let he=P(se);Ae(he,{type:"parse"},ue)}if(!K.success)return[K.error];ue.lastSourceCode=K.sourceCode}let Ee=ue.lastSourceCode,Re=X.allowInlineConfig?j(Ee,se=>Ft(ue,se),X.warnInlineConfig,pe):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};ae(Ee.scopeManager.scopes[0],Le,{exportedVariables:Re.exportedVariables,enabledGlobals:Re.enabledGlobals});let ze=Object.assign({},pe.rules,Re.configuredRules),Oe;try{Oe=kt(Ee,ze,se=>Ft(ue,se),oe,Ne,je,X.filename,X.disableFixes,ue.cwd,re.physicalFilename,null,X.stats,ue)}catch(se){if(se.message+=` -Occurred while linting ${X.filename}`,L("An error occurred while traversing"),L("Filename:",X.filename),se.currentNode){let{line:K}=se.currentNode.loc.start;L("Line:",K),se.message+=`:${K}`}throw L("Parser Options:",_e),L("Parser Path:",oe),L("Settings:",je),se.ruleId&&(se.message+=` -Rule: "${se.ruleId}"`),se}return f({directives:Re.disableDirectives,disableFixes:X.disableFixes,problems:Oe.concat(Re.problems).sort((se,K)=>se.line-K.line||se.column-K.column),reportUnusedDisableDirectives:X.reportUnusedDisableDirectives})}verify(H,ie,re){L("Verify");let{configType:ue,cwd:pe}=St.get(this),X=typeof re=="string"?{filename:re}:re||{},te=ie??{};if(ue!=="eslintrc"){let oe=te;return(!Array.isArray(te)||typeof te.getConfig!="function")&&(oe=new A(te,{basePath:pe}),oe.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(H,oe,X,!0))}return typeof te.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(H,te,X)):X.preprocess||X.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(H,te,X)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(H,te,X))}_verifyWithFlatConfigArrayAndProcessor(H,ie,re,ue){let pe=re.filename||"",X=Ue(pe),te=re.physicalFilename||X,oe=Ot(H),ge=re.preprocess||(je=>[je]),ke=re.postprocess||(je=>je.flat()),M=re.filterCodeBlock||(je=>je.endsWith(".js")),fe=r.extname(pe),_e;try{_e=ge(oe,X)}catch(je){let Ne=`Preprocessing error: ${je.message.replace(/^line \d+:/iu,"").trim()}`;return L(`%s -%s`,Ne,je.stack),[{ruleId:null,fatal:!0,severity:2,message:Ne,line:je.lineNumber,column:je.column,nodeType:null}]}let Le=_e.map((je,Ne)=>{if(L("A code block was found: %o",je.filename||"(unnamed)"),typeof je=="string")return this._verifyWithFlatConfigArrayAndWithoutProcessors(je,ie,re);let Ee=je.text,Re=r.join(pe,`${Ne}_${je.filename}`);return M(Re,Ee)?ue&&(oe!==Ee||r.extname(Re)!==fe)?(L("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(Ee,ue,{...re,filename:Re,physicalFilename:te})):this._verifyWithFlatConfigArrayAndWithoutProcessors(Ee,ie,{...re,filename:Re,physicalFilename:te}):(L("This code block was skipped."),[])});return ke(Le,X)}_verifyWithFlatConfigArrayAndWithoutProcessors(H,ie,re){let ue=St.get(this),pe=ie||{},X=st(re,pe),te;typeof H=="string"?(ue.lastSourceCode=null,te=H):(ue.lastSourceCode=H,te=H.text);let oe=pe.languageOptions;if(oe.ecmaVersion=ce(oe.ecmaVersion),!oe.parser)throw new TypeError(`No parser specified for ${X.filename}`);if(le(oe.parser)){let Ne=oe.parserOptions;oe.sourceType&&(Ne.sourceType=oe.sourceType,Ne.sourceType==="module"&&Ne.ecmaFeatures&&Ne.ecmaFeatures.globalReturn&&(Ne.ecmaFeatures.globalReturn=!1))}let ge=pe.settings||{};if(ue.lastSourceCode)ue.lastSourceCode.scopeManager||(ue.lastSourceCode=new h({text:ue.lastSourceCode.text,ast:ue.lastSourceCode.ast,parserServices:ue.lastSourceCode.parserServices,visitorKeys:ue.lastSourceCode.visitorKeys,scopeManager:rt(ue.lastSourceCode.ast,oe)}));else{let Ne;X.stats&&(Ne=w());let Ee=ot(te,oe,X.filename);if(X.stats){let Re=P(Ne);Ae(Re,{type:"parse"},ue)}if(!Ee.success)return[Ee.error];ue.lastSourceCode=Ee.sourceCode}let ke=ue.lastSourceCode;ke.applyLanguageOptions(oe);let M={rules:{}},fe=[];if(X.allowInlineConfig)if(X.warnInlineConfig)ke.getInlineConfigNodes().forEach(Ne=>{fe.push(J({ruleId:null,message:`'${ke.text.slice(Ne.range[0],Ne.range[1])}' has no effect because you have 'noInlineConfig' setting in ${X.warnInlineConfig}.`,loc:Ne.loc,severity:1}))});else{let Ne=ke.applyInlineConfig();fe.push(...Ne.problems.map(J).map(Re=>(Re.fatal=!0,Re)));let Ee=new T;for(let{config:Re,node:ze}of Ne.configs)Object.keys(Re.rules).forEach(Oe=>{let se=E(Oe,pe),K=Re.rules[Oe];if(!se){fe.push(J({ruleId:Oe,loc:ze.loc}));return}if(Object.hasOwn(M.rules,Oe)){fe.push(J({message:`Rule "${Oe}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:ze.loc}));return}try{let he=Array.isArray(K)?K:[K];I(Oe,he[0]);let Ce=!0;he.length===1&&pe.rules&&Object.hasOwn(pe.rules,Oe)&&(he=[he[0],...pe.rules[Oe].slice(1)],pe.rules[Oe][0]>0&&(Ce=!1)),Ce&&Ee.validate({plugins:pe.plugins,rules:{[Oe]:he}}),M.rules[Oe]=he}catch(he){if(he.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw he;let Ce=he.message.slice(he.message.startsWith('Key "rules":')?he.message.indexOf(":",12)+1:he.message.indexOf(":")+1).trim();he.messageTemplate&&(Ce+=` You passed "${K}".`),fe.push(J({ruleId:Oe,message:`Inline configuration for rule "${Oe}" is invalid: - ${Ce} -`,loc:ze.loc}))}})}let _e=X.allowInlineConfig&&!X.warnInlineConfig?de(ke,Ne=>E(Ne,pe)):{problems:[],disableDirectives:[]},Le=Object.assign({},pe.rules,M.rules),je;ke.finalize();try{je=kt(ke,Le,Ne=>E(Ne,pe),void 0,oe,ge,X.filename,X.disableFixes,ue.cwd,re.physicalFilename,X.ruleFilter,X.stats,ue)}catch(Ne){if(Ne.message+=` -Occurred while linting ${X.filename}`,L("An error occurred while traversing"),L("Filename:",X.filename),Ne.currentNode){let{line:Ee}=Ne.currentNode.loc.start;L("Line:",Ee),Ne.message+=`:${Ee}`}throw L("Parser Options:",oe.parserOptions),L("Settings:",ge),Ne.ruleId&&(Ne.message+=` -Rule: "${Ne.ruleId}"`),Ne}return f({directives:_e.disableDirectives,disableFixes:X.disableFixes,problems:je.concat(_e.problems).concat(fe).sort((Ne,Ee)=>Ne.line-Ee.line||Ne.column-Ee.column),reportUnusedDisableDirectives:X.reportUnusedDisableDirectives,ruleFilter:X.ruleFilter,configuredRules:Le})}_verifyWithConfigArray(H,ie,re){L("With ConfigArray: %s",re.filename),St.get(this).lastConfigArray=ie;let ue=ie.extractConfig(re.filename),pe=ue.processor&&ie.pluginProcessors.get(ue.processor);if(pe){L("Apply the processor: %o",ue.processor);let{preprocess:X,postprocess:te,supportsAutofix:oe}=pe,ge=re.disableFixes||!oe;return this._verifyWithProcessor(H,ue,{...re,disableFixes:ge,postprocess:te,preprocess:X},ie)}return this._verifyWithoutProcessors(H,ue,re)}_verifyWithFlatConfigArray(H,ie,re,ue=!1){L("With flat config: %s",re.filename);let pe=re.filename||"__placeholder__.js";St.get(this).lastConfigArray=ie;let X=ie.getConfig(pe);if(!X)return[{ruleId:null,severity:1,message:`No matching configuration found for ${pe}.`,line:0,column:0,nodeType:null}];if(X.processor){L("Apply the processor: %o",X.processor);let{preprocess:te,postprocess:oe,supportsAutofix:ge}=X.processor,ke=re.disableFixes||!ge;return this._verifyWithFlatConfigArrayAndProcessor(H,X,{...re,filename:pe,disableFixes:ke,postprocess:oe,preprocess:te},ie)}return ue&&(re.preprocess||re.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(H,X,re):this._verifyWithFlatConfigArrayAndWithoutProcessors(H,X,re)}_verifyWithProcessor(H,ie,re,ue){let pe=re.filename||"",X=Ue(pe),te=re.physicalFilename||X,oe=Ot(H),ge=re.preprocess||(je=>[je]),ke=re.postprocess||(je=>je.flat()),M=re.filterCodeBlock||(je=>je.endsWith(".js")),fe=r.extname(pe),_e;try{_e=ge(oe,X)}catch(je){let Ne=`Preprocessing error: ${je.message.replace(/^line \d+:/iu,"").trim()}`;return L(`%s -%s`,Ne,je.stack),[{ruleId:null,fatal:!0,severity:2,message:Ne,line:je.lineNumber,column:je.column,nodeType:null}]}let Le=_e.map((je,Ne)=>{if(L("A code block was found: %o",je.filename||"(unnamed)"),typeof je=="string")return this._verifyWithoutProcessors(je,ie,re);let Ee=je.text,Re=r.join(pe,`${Ne}_${je.filename}`);return M(Re,Ee)?ue&&(oe!==Ee||r.extname(Re)!==fe)?(L("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(Ee,ue,{...re,filename:Re,physicalFilename:te})):this._verifyWithoutProcessors(Ee,ie,{...re,filename:Re,physicalFilename:te}):(L("This code block was skipped."),[])});return ke(Le,X)}_distinguishSuppressedMessages(H){let ie=[],re=[],ue=St.get(this);for(let pe of H)pe.suppressions?re.push(pe):ie.push(pe);return ue.lastSuppressedMessages=re,ie}getSourceCode(){return St.get(this).lastSourceCode}getTimes(){return St.get(this).times??{passes:[]}}getFixPassCount(){return St.get(this).fixPasses??0}getSuppressedMessages(){return St.get(this).lastSuppressedMessages}defineRule(H,ie){Ke(this),St.get(this).ruleMap.define(H,ie)}defineRules(H){Ke(this),Object.getOwnPropertyNames(H).forEach(ie=>{this.defineRule(ie,H[ie])})}getRules(){Ke(this);let{lastConfigArray:H,ruleMap:ie}=St.get(this);return new Map(function*(){yield*ie,H&&(yield*H.pluginRules)}())}defineParser(H,ie){Ke(this),St.get(this).parserMap.set(H,ie)}verifyAndFix(H,ie,re){let ue,pe,X=!1,te=0,oe=H,ge=re&&re.filename||`${H.slice(0,10)}...`,ke=re&&typeof re.fix<"u"?re.fix:!0,M=re?.stats,fe=St.get(this);M&&(delete fe.times,fe.fixPasses=0);do{te++;let _e;M&&(_e=w()),L(`Linting code for ${ge} (pass ${te})`),ue=this.verify(oe,ie,re),L(`Generating fixed text for ${ge} (pass ${te})`);let Le;if(M&&(Le=w()),pe=S.applyFixes(oe,ue,ke),M)if(pe.fixed){let je=P(Le);Ae(je,{type:"fix"},fe),fe.fixPasses++}else Ae(0,{type:"fix"},fe);if(ue.length===1&&ue[0].fatal)break;if(X=X||pe.fixed,oe=pe.output,M){_e=P(_e);let je=fe.times.passes.length-1;fe.times.passes[je].total=_e}}while(pe.fixed&&te<_);if(pe.fixed){let _e;M&&(_e=w()),pe.messages=this.verify(oe,ie,re),M&&(Ae(0,{type:"fix"},fe),fe.times.passes.at(-1).total=P(_e))}return pe.fixed=X,pe.output=oe,pe}}return Kv={Linter:er,getLinterInternalSlots(Ie){return St.get(Ie)}},Kv}function iG(){return sG().Linter}var mN=F6.Linter=iG();var gN=editorSetup=()=>[RC(),BC(),AC(),vw(),EC(),kC(),Wt.allowMultipleSelections.of(!0),tw(),hu(iw,{fallback:!0}),uw(),wk(),Ak(),TC(),DC(),PC(),sk(),Ts.of([...Gw,...uk,...Ew])];function Sa(r){r.removeAttribute("hidden")}function Ea(r){r.setAttribute("hidden","")}function Hn(r,e=document){return e.querySelector(r)}var yN=()=>`litecanvas() +`}).join("")}`)}}}return zv.RuleValidator=o,zv}var Gv={},jR;function eG(){if(jR)return Gv;jR=1;let r=sN();return Gv.defaultConfig=[{plugins:{"@":{rules:new Proxy({},{get(e,t){return r.get(t)},has(e,t){return r.has(t)}})}},languageOptions:{sourceType:"module",ecmaVersion:"latest",parser:bc(),parserOptions:{}},linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}],Gv}var qR;function tG(){if(qR)return Lv;qR=1;let{ConfigArray:r,ConfigArraySymbol:e}=VX(),{flatConfigSchema:t}=fN(),{RuleValidator:s}=pN(),{defaultConfig:n}=eG(),i=new Set(["name"]),a=new s;function l(d){let m=d.split("/");return{objectName:m.pop(),pluginName:m.join("/")}}function o(d){let m=d.name;if(!m&&(!d.meta||(m=d.meta.name,!m)))return null;let g=d.version;return g||(g=d.meta&&d.meta.version),g?`${m}@${g}`:m}function u(d,m,g){let y="user-defined",b=d.index;return d.index{throw g.name==="ConfigError"?u(g,this[p],this[h]):g})}normalizeSync(m){try{return super.normalizeSync(m)}catch(g){throw g.name==="ConfigError"?u(g,this[p],this[h]):g}}[e.preprocessConfig](m){if(!this.shouldIgnore&&!this[c].includes(m)&&m.ignores&&Object.keys(m).filter(g=>!i.has(g)).length===1){let{ignores:g,...y}=m;return y}return m}[e.finalizeConfig](m){let{plugins:g,languageOptions:y,processor:b}=m,v,S,C=!1,O=!1;if(y&&y.parser){let{parser:w}=y;typeof w=="object"?(v=o(w),v||(C=!0)):C=!0}if(b)if(typeof b=="string"){let{pluginName:w,objectName:E}=l(b);if(S=b,!g||!g[w]||!g[w].processors||!g[w].processors[E])throw new TypeError(`Key "processor": Could not find "${E}" in plugin "${w}".`);m.processor=g[w].processors[E]}else typeof b=="object"?(S=o(b),S||(O=!0)):O=!0;return a.validate(m),Object.defineProperty(m,"toJSON",{value:function(){if(C)throw new Error("Could not serialize parser object (missing 'meta' object).");if(O)throw new Error("Could not serialize processor object (missing 'meta' object).");return{...this,plugins:Object.entries(g).map(([w,E])=>{let k=o(E);return k?`${w}:${k}`:w}),languageOptions:{...y,parser:v},processor:S}}}),m}}return Lv.FlatConfigArray=f,Lv}var Yv,QR;function rG(){if(QR)return Yv;QR=1;let r=fc,e=_B(),t=wO(),s=bc(),n=O9(),i=q9,a=vc(),{directivesPattern:l}=Oc(),{Legacy:{ConfigOps:o,ConfigValidator:u,environments:c}}=TO(),p=DO(),{SourceCode:h}=X4(),f=G4(),d=XB(),m=K4(),g=t7(),y=RX(),b=WB(),v=BX(),S=NX(),C=aN,{getRuleFromConfig:O}=oN(),{FlatConfigArray:w}=tG(),{startTime:E,endTime:k}=iN(),{RuleValidator:A}=pN(),{assertIsRuleSeverity:D}=fN(),{normalizeSeverityToString:_}=cN(),B=bi()("eslint:linter"),T=10,F="espree",j=5,Q=new d,I={start:{line:1,column:0},end:{line:1,column:1}},N=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:R}=rN(),U=1,V=2;function ae(De){return De===s||De[N]===s}function se(De,G,{exportedVariables:ne,enabledGlobals:ee}){for(let oe of new Set([...Object.keys(G),...Object.keys(ee)])){let ce=G[oe]===void 0?void 0:o.normalizeConfigGlobal(G[oe]),J=ee[oe]&&ee[oe].value||ce,ie=ee[oe]&&ee[oe].comments;if(J==="off")continue;let de=De.set.get(oe);de||(de=new e.Variable(oe,De),De.variables.push(de),De.set.set(oe,de)),de.eslintImplicitGlobalSetting=ce,de.eslintExplicitGlobal=ie!==void 0,de.eslintExplicitGlobalComments=ie,de.writeable=J==="writable"}Object.keys(ne).forEach(oe=>{let ce=De.set.get(oe);ce&&(ce.eslintUsed=!0,ce.eslintExported=!0)}),De.through=De.through.filter(oe=>{let ce=oe.identifier.name,Z=De.set.get(ce);return Z?(oe.resolved=Z,Z.references.push(oe),!1):!0})}function ve(De){return Object.hasOwn(C.rules,De)?`Rule '${De}' was removed and replaced by: ${C.rules[De].join(", ")}`:`Definition for rule '${De}' was not found.`}function H(De){let{ruleId:G=null,loc:ne=I,message:ee=ve(De.ruleId),severity:oe=2}=De;return{ruleId:G,message:ee,line:ne.start.line,column:ne.start.column+1,endLine:ne.end.line,endColumn:ne.end.column+1,severity:oe,nodeType:null}}function he({type:De,value:G,justification:ne,node:ee},oe){let ce=Object.keys(Q.parseListConfig(G)),Z=ce.length?ce:[null],J={directives:[],directiveProblems:[]},ie={node:ee,ruleIds:ce};for(let de of Z)de===null||oe(de)?De==="disable-next-line"?J.directives.push({parentDirective:ie,type:De,line:ee.loc.end.line,column:ee.loc.end.column+1,ruleId:de,justification:ne}):J.directives.push({parentDirective:ie,type:De,line:ee.loc.start.line,column:ee.loc.start.column+1,ruleId:de,justification:ne}):J.directiveProblems.push(H({ruleId:de,loc:ee.loc}));return J}function $(De,G,ne,ee){let oe={},ce=Object.create(null),Z={},J=[],ie=[],de=new u({builtInRules:y});return De.getInlineConfigNodes().filter(Ce=>Ce.type!=="Shebang").forEach(Ce=>{let{directivePart:L,justificationPart:ue}=Q.extractDirectiveComment(Ce.value),Te=l.exec(L);if(!Te)return;let Be=Te[1],$e=/^eslint-disable-(next-)?line$/u.test(Be);if(Ce.type==="Line"&&!$e)return;if(ne){let Oe=Ce.type==="Block"?`/*${Be}*/`:`//${Be}`;J.push(H({ruleId:null,message:`'${Oe}' has no effect because you have 'noInlineConfig' setting in ${ne}.`,loc:Ce.loc,severity:1}));return}if(Be==="eslint-disable-line"&&Ce.loc.start.line!==Ce.loc.end.line){let Oe=`${Be} comment should not span multiple lines.`;J.push(H({ruleId:null,message:Oe,loc:Ce.loc}));return}let Re=L.slice(Te.index+Be.length);switch(Be){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let Oe=Be.slice(7),{directives:Ie,directiveProblems:We}=he({type:Oe,value:Re,justification:ue,node:Ce},G);ie.push(...Ie),J.push(...We);break}case"exported":Object.assign(Z,Q.parseListConfig(Re,Ce));break;case"globals":case"global":for(let[Oe,{value:Ie}]of Object.entries(Q.parseStringConfig(Re,Ce))){let We;try{We=o.normalizeConfigGlobal(Ie)}catch(be){J.push(H({ruleId:null,loc:Ce.loc,message:be.message}));continue}ce[Oe]?(ce[Oe].comments.push(Ce),ce[Oe].value=We):ce[Oe]={comments:[Ce],value:We}}break;case"eslint":{let Oe=Q.parseJsonConfig(Re,Ce.loc);Oe.success?Object.keys(Oe.config).forEach(Ie=>{let We=G(Ie),be=Oe.config[Ie];if(!We){J.push(H({ruleId:Ie,loc:Ce.loc}));return}if(Object.hasOwn(oe,Ie)){J.push(H({message:`Rule "${Ie}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:Ce.loc}));return}let re=Array.isArray(be)?be:[be];re.length===1&&ee.rules&&Object.hasOwn(ee.rules,Ie)&&(re=[re[0],...Array.isArray(ee.rules[Ie])?ee.rules[Ie].slice(1):[]]);try{de.validateRuleOptions(We,Ie,re)}catch(Y){if(Y.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw Y;J.push(H({ruleId:Ie,message:Y.message,loc:Ce.loc}));return}oe[Ie]=re}):J.push(Oe.error);break}}}),{configuredRules:oe,enabledGlobals:ce,exportedVariables:Z,problems:J,disableDirectives:ie}}function pe(De,G){let ne=[],ee=[],{directives:oe,problems:ce}=De.getDisableDirectives();return ee.push(...ce.map(H)),oe.forEach(Z=>{let{directives:J,directiveProblems:ie}=he(Z,G);ne.push(...J),ee.push(...ie)}),{problems:ee,disableDirectives:ne}}function K(De,G){return ae(De)&&G==="latest"?s.latestEcmaVersion:G>=2015?G-2009:G}function le(De){switch(De){case 3:return 3;case 5:case void 0:return 5;default:if(typeof De=="number")return De>=2015?De:De+2009}return R}let xe=/\/\*\s*eslint-env\s(.+?)(?:\*\/|$)/gsu;function Le(De){let G,ne;for(xe.lastIndex=0;(G=xe.exec(De))!==null;)G[0].endsWith("*/")&&(ne=Object.assign(ne||{},Q.parseListConfig(Q.extractDirectiveComment(G[1]).directivePart)));return ne}function qe(De){let G=De.split(r.sep),ne=G.lastIndexOf("");return ne===-1?De:G.slice(ne).join(r.sep)}function rt(De,G){let ne=G.linterOptions||G,ee=ne.noInlineConfig===!0,oe=De.allowInlineConfig===!1,ce=G.configNameOfNoInlineConfig?` (${G.configNameOfNoInlineConfig})`:"",Z=De.reportUnusedDisableDirectives;typeof Z=="boolean"&&(Z=Z?"error":"off"),typeof Z!="string"&&(typeof ne.reportUnusedDisableDirectives=="boolean"?Z=ne.reportUnusedDisableDirectives?"warn":"off":Z=ne.reportUnusedDisableDirectives===void 0?"off":_(ne.reportUnusedDisableDirectives));let J=De.ruleFilter;return typeof J!="function"&&(J=()=>!0),{filename:qe(De.filename||""),allowInlineConfig:!oe,warnInlineConfig:ee&&!oe?`your config${ce}`:null,reportUnusedDisableDirectives:Z,disableFixes:!!De.disableFixes,stats:De.stats,ruleFilter:J}}function ht(De,G,ne){let ee=ne.filter(Z=>Z.parserOptions).reduce((Z,J)=>n(Z,J.parserOptions),{}),oe=n(ee,G||{});return oe.sourceType==="module"&&(oe.ecmaFeatures=Object.assign({},oe.ecmaFeatures,{globalReturn:!1})),oe.ecmaVersion=K(De,oe.ecmaVersion),oe}function pt({globals:De,parser:G,parserOptions:ne}){let{ecmaVersion:ee,sourceType:oe}=ne;return{globals:De,ecmaVersion:le(ee),sourceType:oe,parser:G,parserOptions:ne}}function Et(De,G){return Object.assign({},...G.filter(ne=>ne.globals).map(ne=>ne.globals),De)}function X(De){return De.charCodeAt(0)===65279?De.slice(1):De}function we(De,G,ne){let{type:ee,key:oe}=G;ne.times||(ne.times={passes:[{}]});let ce=ne.fixPasses;ce>ne.times.passes.length-1&&ne.times.passes.push({}),oe?(ne.times.passes[ce][ee]??={},ne.times.passes[ce][ee][oe]??={total:0},ne.times.passes[ce][ee][oe].total+=De):(ne.times.passes[ce][ee]??={total:0},ne.times.passes[ce][ee].total+=De)}function Ve(De){return Array.isArray(De)?De.slice(1):[]}function et(De,G,ne){let oe=G.parserOptions.ecmaFeatures||{},ce=G.ecmaVersion||j;return e.analyze(De,{ignoreEval:!0,nodejsScope:oe.globalReturn,impliedStrict:oe.impliedStrict,ecmaVersion:typeof ce=="number"?ce:6,sourceType:G.sourceType||"script",childVisitorKeys:ne||t.KEYS,fallback:p.getKeys})}function it(De,G,ne){let ee=X(De).replace(a.shebangPattern,(ie,de)=>`//${de}`),{ecmaVersion:oe,sourceType:ce,parser:Z}=G,J=Object.assign({ecmaVersion:oe,sourceType:ce},G.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:ne});try{B("Parsing:",ne);let ie=typeof Z.parseForESLint=="function"?Z.parseForESLint(ee,J):{ast:Z.parse(ee,J)};B("Parsing successful:",ne);let de=ie.ast,Ce=ie.services||{},L=ie.visitorKeys||t.KEYS;B("Scope analysis:",ne);let ue=ie.scopeManager||et(de,G,L);return B("Scope analysis successful:",ne),{success:!0,sourceCode:new h({text:De,ast:de,parserServices:Ce,scopeManager:ue,visitorKeys:L})}}catch(ie){let de=`Parsing error: ${ie.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s +%s`,de,ie.stack),{success:!1,error:{ruleId:null,fatal:!0,severity:2,message:de,line:ie.lineNumber,column:ie.column,nodeType:null}}}}function st(De,G){if(!De||typeof De!="object"||typeof De.create!="function")throw new TypeError(`Error while loading rule '${G.id}': Rule must be an object with a \`create\` method`);try{return De.create(G)}catch(ne){throw ne.message=`Error while loading rule '${G.id}': ${ne.message}`,ne}}function Ct(De,G,ne,ee,oe,ce,Z,J,ie,de,Ce,L,ue){let Te=b(),Be=De.traverse(),$e=Object.freeze({getCwd:()=>ie,cwd:ie,getFilename:()=>Z,filename:Z,getPhysicalFilename:()=>de||Z,physicalFilename:de||Z,getSourceCode:()=>De,sourceCode:De,parserOptions:{...oe.parserOptions},parserPath:ee,languageOptions:oe,settings:ce}),Re=[];Object.keys(G).forEach(Ie=>{let We=o.getRuleSeverity(G[Ie]);if(We===0||Ce&&!Ce({ruleId:Ie,severity:We}))return;let be=ne(Ie);if(!be){Re.push(H({ruleId:Ie}));return}let re=be.meta&&be.meta.messages,Y=null,fe=Object.freeze(Object.assign(Object.create($e),{id:Ie,options:Ve(G[Ie]),report(...Ke){Y===null&&(Y=g({ruleId:Ie,severity:We,sourceCode:De,messageIds:re,disableFixes:J}));let mt=Y(...Ke);if(mt.fix&&!(be.meta&&be.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(mt.suggestions&&!(be.meta&&be.meta.hasSuggestions===!0))throw be.meta&&be.meta.docs&&typeof be.meta.docs.suggestion<"u"?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`.");Re.push(mt)}})),Se=S.enabled||L?S.time(Ie,st,L)(be,fe):st(be,fe),Ee=L?Se.result:Se;L&&we(Se.tdiff,{type:"rules",key:Ie},ue);function ze(Ke){return function(...Ot){try{let Pt=Ke(...Ot),xt=L?Pt.result:Pt;return L&&we(Pt.tdiff,{type:"rules",key:Ie},ue),xt}catch(Pt){throw Pt.ruleId=Ie,Pt}}}if(typeof Ee>"u"||Ee===null)throw new Error(`The create() function for rule '${Ie}' did not return an object.`);Object.keys(Ee).forEach(Ke=>{let mt=S.enabled||L?S.time(Ie,Ee[Ke],L):Ee[Ke];Te.on(Ke,ze(mt))})});let Oe=new m(Te,{visitorKeys:De.visitorKeys,fallback:p.getKeys});for(let Ie of Be)switch(Ie.kind){case U:{try{Ie.phase===1?Oe.enterNode(Ie.target):Oe.leaveNode(Ie.target)}catch(We){throw We.currentNode=Ie.target,We}break}case V:{Te.emit(Ie.target,...Ie.args);break}default:throw new Error(`Invalid traversal step found: "${Ie.type}".`)}return Re}function bt(De){if(typeof De=="object"){let{hasBOM:G,text:ne}=De;return(G?"\uFEFF":"")+ne}return String(De)}function Dt(De,G){return De.lastConfigArray&&De.lastConfigArray.pluginEnvironments.get(G)||c.get(G)||null}function _t(De,G){return De.lastConfigArray&&De.lastConfigArray.pluginRules.get(G)||De.ruleMap.get(G)}function W(De){if(De)return De;if(typeof Bt=="object")return Bt.cwd()}let vt=new WeakMap;function Ye(De){let{configType:G}=vt.get(De);if(G==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class Kt{constructor({cwd:G,configType:ne="flat"}={}){vt.set(this,{cwd:W(G),lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:ne,parserMap:new Map([["espree",s]]),ruleMap:new y}),this.version=i.version}static get version(){return i.version}_verifyWithoutProcessors(G,ne,ee){let oe=vt.get(this),ce=ne||{},Z=rt(ee,ce),J;typeof G=="string"?(oe.lastSourceCode=null,J=G):(oe.lastSourceCode=G,J=G.text);let ie=F,de=s;if(typeof ce.parser=="object"&&ce.parser!==null)ie=ce.parser.filePath,de=ce.parser.definition;else if(typeof ce.parser=="string"){if(!oe.parserMap.has(ce.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${ce.parser}' was not found.`,line:0,column:0,nodeType:null}];ie=ce.parser,de=oe.parserMap.get(ce.parser)}let Ce=Z.allowInlineConfig&&!Z.warnInlineConfig?Le(J):{},L=Object.assign({builtin:!0},ce.env,Ce),ue=Object.keys(L).filter(re=>L[re]).map(re=>Dt(oe,re)).filter(re=>re),Te=ht(de,ce.parserOptions||{},ue),Be=Et(ce.globals||{},ue),$e=ce.settings||{},Re=pt({globals:ce.globals,parser:de,parserOptions:Te});if(oe.lastSourceCode)oe.lastSourceCode.scopeManager||(oe.lastSourceCode=new h({text:oe.lastSourceCode.text,ast:oe.lastSourceCode.ast,parserServices:oe.lastSourceCode.parserServices,visitorKeys:oe.lastSourceCode.visitorKeys,scopeManager:et(oe.lastSourceCode.ast,Re)}));else{let re;Z.stats&&(re=E());let Y=it(J,Re,Z.filename);if(Z.stats){let fe=k(re);we(fe,{type:"parse"},oe)}if(!Y.success)return[Y.error];oe.lastSourceCode=Y.sourceCode}let Oe=oe.lastSourceCode,Ie=Z.allowInlineConfig?$(Oe,re=>_t(oe,re),Z.warnInlineConfig,ce):{configuredRules:{},enabledGlobals:{},exportedVariables:{},problems:[],disableDirectives:[]};se(Oe.scopeManager.scopes[0],Be,{exportedVariables:Ie.exportedVariables,enabledGlobals:Ie.enabledGlobals});let We=Object.assign({},ce.rules,Ie.configuredRules),be;try{be=Ct(Oe,We,re=>_t(oe,re),ie,Re,$e,Z.filename,Z.disableFixes,oe.cwd,ee.physicalFilename,null,Z.stats,oe)}catch(re){if(re.message+=` +Occurred while linting ${Z.filename}`,B("An error occurred while traversing"),B("Filename:",Z.filename),re.currentNode){let{line:Y}=re.currentNode.loc.start;B("Line:",Y),re.message+=`:${Y}`}throw B("Parser Options:",Te),B("Parser Path:",ie),B("Settings:",$e),re.ruleId&&(re.message+=` +Rule: "${re.ruleId}"`),re}return f({directives:Ie.disableDirectives,disableFixes:Z.disableFixes,problems:be.concat(Ie.problems).sort((re,Y)=>re.line-Y.line||re.column-Y.column),reportUnusedDisableDirectives:Z.reportUnusedDisableDirectives})}verify(G,ne,ee){B("Verify");let{configType:oe,cwd:ce}=vt.get(this),Z=typeof ee=="string"?{filename:ee}:ee||{},J=ne??{};if(oe!=="eslintrc"){let ie=J;return(!Array.isArray(J)||typeof J.getConfig!="function")&&(ie=new w(J,{basePath:ce}),ie.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(G,ie,Z,!0))}return typeof J.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(G,J,Z)):Z.preprocess||Z.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(G,J,Z)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(G,J,Z))}_verifyWithFlatConfigArrayAndProcessor(G,ne,ee,oe){let ce=ee.filename||"",Z=qe(ce),J=ee.physicalFilename||Z,ie=bt(G),de=ee.preprocess||($e=>[$e]),Ce=ee.postprocess||($e=>$e.flat()),L=ee.filterCodeBlock||($e=>$e.endsWith(".js")),ue=r.extname(ce),Te;try{Te=de(ie,Z)}catch($e){let Re=`Preprocessing error: ${$e.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s +%s`,Re,$e.stack),[{ruleId:null,fatal:!0,severity:2,message:Re,line:$e.lineNumber,column:$e.column,nodeType:null}]}let Be=Te.map(($e,Re)=>{if(B("A code block was found: %o",$e.filename||"(unnamed)"),typeof $e=="string")return this._verifyWithFlatConfigArrayAndWithoutProcessors($e,ne,ee);let Oe=$e.text,Ie=r.join(ce,`${Re}_${$e.filename}`);return L(Ie,Oe)?oe&&(ie!==Oe||r.extname(Ie)!==ue)?(B("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(Oe,oe,{...ee,filename:Ie,physicalFilename:J})):this._verifyWithFlatConfigArrayAndWithoutProcessors(Oe,ne,{...ee,filename:Ie,physicalFilename:J}):(B("This code block was skipped."),[])});return Ce(Be,Z)}_verifyWithFlatConfigArrayAndWithoutProcessors(G,ne,ee){let oe=vt.get(this),ce=ne||{},Z=rt(ee,ce),J;typeof G=="string"?(oe.lastSourceCode=null,J=G):(oe.lastSourceCode=G,J=G.text);let ie=ce.languageOptions;if(ie.ecmaVersion=le(ie.ecmaVersion),!ie.parser)throw new TypeError(`No parser specified for ${Z.filename}`);if(ae(ie.parser)){let Re=ie.parserOptions;ie.sourceType&&(Re.sourceType=ie.sourceType,Re.sourceType==="module"&&Re.ecmaFeatures&&Re.ecmaFeatures.globalReturn&&(Re.ecmaFeatures.globalReturn=!1))}let de=ce.settings||{};if(oe.lastSourceCode)oe.lastSourceCode.scopeManager||(oe.lastSourceCode=new h({text:oe.lastSourceCode.text,ast:oe.lastSourceCode.ast,parserServices:oe.lastSourceCode.parserServices,visitorKeys:oe.lastSourceCode.visitorKeys,scopeManager:et(oe.lastSourceCode.ast,ie)}));else{let Re;Z.stats&&(Re=E());let Oe=it(J,ie,Z.filename);if(Z.stats){let Ie=k(Re);we(Ie,{type:"parse"},oe)}if(!Oe.success)return[Oe.error];oe.lastSourceCode=Oe.sourceCode}let Ce=oe.lastSourceCode;Ce.applyLanguageOptions(ie);let L={rules:{}},ue=[];if(Z.allowInlineConfig)if(Z.warnInlineConfig)Ce.getInlineConfigNodes().forEach(Re=>{ue.push(H({ruleId:null,message:`'${Ce.text.slice(Re.range[0],Re.range[1])}' has no effect because you have 'noInlineConfig' setting in ${Z.warnInlineConfig}.`,loc:Re.loc,severity:1}))});else{let Re=Ce.applyInlineConfig();ue.push(...Re.problems.map(H).map(Ie=>(Ie.fatal=!0,Ie)));let Oe=new A;for(let{config:Ie,node:We}of Re.configs)Object.keys(Ie.rules).forEach(be=>{let re=O(be,ce),Y=Ie.rules[be];if(!re){ue.push(H({ruleId:be,loc:We.loc}));return}if(Object.hasOwn(L.rules,be)){ue.push(H({message:`Rule "${be}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:We.loc}));return}try{let fe=Array.isArray(Y)?Y:[Y];D(be,fe[0]);let Se=!0;fe.length===1&&ce.rules&&Object.hasOwn(ce.rules,be)&&(fe=[fe[0],...ce.rules[be].slice(1)],ce.rules[be][0]>0&&(Se=!1)),Se&&Oe.validate({plugins:ce.plugins,rules:{[be]:fe}}),L.rules[be]=fe}catch(fe){if(fe.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw fe;let Se=fe.message.slice(fe.message.startsWith('Key "rules":')?fe.message.indexOf(":",12)+1:fe.message.indexOf(":")+1).trim();fe.messageTemplate&&(Se+=` You passed "${Y}".`),ue.push(H({ruleId:be,message:`Inline configuration for rule "${be}" is invalid: + ${Se} +`,loc:We.loc}))}})}let Te=Z.allowInlineConfig&&!Z.warnInlineConfig?pe(Ce,Re=>O(Re,ce)):{problems:[],disableDirectives:[]},Be=Object.assign({},ce.rules,L.rules),$e;Ce.finalize();try{$e=Ct(Ce,Be,Re=>O(Re,ce),void 0,ie,de,Z.filename,Z.disableFixes,oe.cwd,ee.physicalFilename,Z.ruleFilter,Z.stats,oe)}catch(Re){if(Re.message+=` +Occurred while linting ${Z.filename}`,B("An error occurred while traversing"),B("Filename:",Z.filename),Re.currentNode){let{line:Oe}=Re.currentNode.loc.start;B("Line:",Oe),Re.message+=`:${Oe}`}throw B("Parser Options:",ie.parserOptions),B("Settings:",de),Re.ruleId&&(Re.message+=` +Rule: "${Re.ruleId}"`),Re}return f({directives:Te.disableDirectives,disableFixes:Z.disableFixes,problems:$e.concat(Te.problems).concat(ue).sort((Re,Oe)=>Re.line-Oe.line||Re.column-Oe.column),reportUnusedDisableDirectives:Z.reportUnusedDisableDirectives,ruleFilter:Z.ruleFilter,configuredRules:Be})}_verifyWithConfigArray(G,ne,ee){B("With ConfigArray: %s",ee.filename),vt.get(this).lastConfigArray=ne;let oe=ne.extractConfig(ee.filename),ce=oe.processor&&ne.pluginProcessors.get(oe.processor);if(ce){B("Apply the processor: %o",oe.processor);let{preprocess:Z,postprocess:J,supportsAutofix:ie}=ce,de=ee.disableFixes||!ie;return this._verifyWithProcessor(G,oe,{...ee,disableFixes:de,postprocess:J,preprocess:Z},ne)}return this._verifyWithoutProcessors(G,oe,ee)}_verifyWithFlatConfigArray(G,ne,ee,oe=!1){B("With flat config: %s",ee.filename);let ce=ee.filename||"__placeholder__.js";vt.get(this).lastConfigArray=ne;let Z=ne.getConfig(ce);if(!Z)return[{ruleId:null,severity:1,message:`No matching configuration found for ${ce}.`,line:0,column:0,nodeType:null}];if(Z.processor){B("Apply the processor: %o",Z.processor);let{preprocess:J,postprocess:ie,supportsAutofix:de}=Z.processor,Ce=ee.disableFixes||!de;return this._verifyWithFlatConfigArrayAndProcessor(G,Z,{...ee,filename:ce,disableFixes:Ce,postprocess:ie,preprocess:J},ne)}return oe&&(ee.preprocess||ee.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(G,Z,ee):this._verifyWithFlatConfigArrayAndWithoutProcessors(G,Z,ee)}_verifyWithProcessor(G,ne,ee,oe){let ce=ee.filename||"",Z=qe(ce),J=ee.physicalFilename||Z,ie=bt(G),de=ee.preprocess||($e=>[$e]),Ce=ee.postprocess||($e=>$e.flat()),L=ee.filterCodeBlock||($e=>$e.endsWith(".js")),ue=r.extname(ce),Te;try{Te=de(ie,Z)}catch($e){let Re=`Preprocessing error: ${$e.message.replace(/^line \d+:/iu,"").trim()}`;return B(`%s +%s`,Re,$e.stack),[{ruleId:null,fatal:!0,severity:2,message:Re,line:$e.lineNumber,column:$e.column,nodeType:null}]}let Be=Te.map(($e,Re)=>{if(B("A code block was found: %o",$e.filename||"(unnamed)"),typeof $e=="string")return this._verifyWithoutProcessors($e,ne,ee);let Oe=$e.text,Ie=r.join(ce,`${Re}_${$e.filename}`);return L(Ie,Oe)?oe&&(ie!==Oe||r.extname(Ie)!==ue)?(B("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(Oe,oe,{...ee,filename:Ie,physicalFilename:J})):this._verifyWithoutProcessors(Oe,ne,{...ee,filename:Ie,physicalFilename:J}):(B("This code block was skipped."),[])});return Ce(Be,Z)}_distinguishSuppressedMessages(G){let ne=[],ee=[],oe=vt.get(this);for(let ce of G)ce.suppressions?ee.push(ce):ne.push(ce);return oe.lastSuppressedMessages=ee,ne}getSourceCode(){return vt.get(this).lastSourceCode}getTimes(){return vt.get(this).times??{passes:[]}}getFixPassCount(){return vt.get(this).fixPasses??0}getSuppressedMessages(){return vt.get(this).lastSuppressedMessages}defineRule(G,ne){Ye(this),vt.get(this).ruleMap.define(G,ne)}defineRules(G){Ye(this),Object.getOwnPropertyNames(G).forEach(ne=>{this.defineRule(ne,G[ne])})}getRules(){Ye(this);let{lastConfigArray:G,ruleMap:ne}=vt.get(this);return new Map(function*(){yield*ne,G&&(yield*G.pluginRules)}())}defineParser(G,ne){Ye(this),vt.get(this).parserMap.set(G,ne)}verifyAndFix(G,ne,ee){let oe,ce,Z=!1,J=0,ie=G,de=ee&&ee.filename||`${G.slice(0,10)}...`,Ce=ee&&typeof ee.fix<"u"?ee.fix:!0,L=ee?.stats,ue=vt.get(this);L&&(delete ue.times,ue.fixPasses=0);do{J++;let Te;L&&(Te=E()),B(`Linting code for ${de} (pass ${J})`),oe=this.verify(ie,ne,ee),B(`Generating fixed text for ${de} (pass ${J})`);let Be;if(L&&(Be=E()),ce=v.applyFixes(ie,oe,Ce),L)if(ce.fixed){let $e=k(Be);we($e,{type:"fix"},ue),ue.fixPasses++}else we(0,{type:"fix"},ue);if(oe.length===1&&oe[0].fatal)break;if(Z=Z||ce.fixed,ie=ce.output,L){Te=k(Te);let $e=ue.times.passes.length-1;ue.times.passes[$e].total=Te}}while(ce.fixed&&J[IC(),FC(),wC(),xw(),OC(),CC(),Ut.allowMultipleSelections.of(!0),JC(),fu(nw,{fallback:!0}),ow(),Ek(),wk(),AC(),PC(),kC(),rk(),As.of([...zw,...ok,...Ow])];function va(r){r.removeAttribute("hidden")}function Oa(r){r.setAttribute("hidden","")}function Gn(r,e=document){return e.querySelector(r)}var mN=()=>`litecanvas() function init () { color = 0 @@ -175,7 +175,7 @@ function draw () { circ(x, y, radius, color) } `.trim()+` -`;function jO(r,e){return` +`;function $O(r,e){return` @@ -224,7 +224,7 @@ function draw () { <\/script>