- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
227 lines
1.3 MiB
227 lines
1.3 MiB
(()=>{var e={5565:e=>{function webpackEmptyAsyncContext(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");t.code="MODULE_NOT_FOUND";throw t}))}webpackEmptyAsyncContext.keys=()=>[];webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=5565;e.exports=webpackEmptyAsyncContext},3914:function(e,t,r){(function(t,n){true?e.exports=n(r(8536),r(2987)):0})(this,(function(e,t){"use strict";const r=SegmentObject("",-1,-1,"",null);const n=[];function SegmentObject(e,t,r,n,s){return{source:e,line:t,column:r,name:n,content:s}}function Source(e,t,r,n){return{map:e,sources:t,source:r,content:n}}function MapSource(e,t){return Source(e,t,"",null)}function OriginalSource(e,t){return Source(null,n,e,t)}function traceMappings(n){const s=new t.GenMapping({file:n.map.file});const{sources:i,map:a}=n;const o=a.names;const l=e.decodedMappings(a);for(let e=0;e<l.length;e++){const n=l[e];for(let a=0;a<n.length;a++){const l=n[a];const c=l[0];let p=r;if(l.length!==1){const e=i[l[1]];p=originalPositionFor(e,l[2],l[3],l.length===5?o[l[4]]:"");if(p==null)continue}const{column:u,line:d,name:f,content:h,source:m}=p;t.maybeAddSegment(s,e,c,m,d,u,f);if(m&&h!=null)t.setSourceContent(s,m,h)}}return s}function originalPositionFor(t,n,s,i){if(!t.map){return SegmentObject(t.source,n,s,i,t.content)}const a=e.traceSegment(t.map,n,s);if(a==null)return null;if(a.length===1)return r;return originalPositionFor(t.sources[a[1]],a[2],a[3],a.length===5?t.map.names[a[4]]:i)}function asArray(e){if(Array.isArray(e))return e;return[e]}function buildSourceMapTree(t,r){const n=asArray(t).map((t=>new e.TraceMap(t,"")));const s=n.pop();for(let e=0;e<n.length;e++){if(n[e].sources.length>1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let i=build(s,r,"",0);for(let e=n.length-1;e>=0;e--){i=MapSource(n[e],[i])}return i}function build(t,r,n,s){const{resolvedSources:i,sourcesContent:a}=t;const o=s+1;const l=i.map(((t,s)=>{const i={importer:n,depth:o,source:t||"",content:undefined};const l=r(i.source,i);const{source:c,content:p}=i;if(l)return build(new e.TraceMap(l,c),r,c,o);const u=p!==undefined?p:a?a[s]:null;return OriginalSource(c,u)}));return MapSource(t,l)}class SourceMap{constructor(e,r){const n=r.decodedMappings?t.toDecodedMap(e):t.toEncodedMap(e);this.version=n.version;this.file=n.file;this.mappings=n.mappings;this.names=n.names;this.sourceRoot=n.sourceRoot;this.sources=n.sources;if(!r.excludeContent){this.sourcesContent=n.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,t,r){const n=typeof r==="object"?r:{excludeContent:!!r,decodedMappings:false};const s=buildSourceMapTree(e,t);return new SourceMap(traceMappings(s),n)}return remapping}))},2987:function(e,t,r){(function(e,n){true?n(t,r(7168),r(3649),r(8536)):0})(this,(function(e,t,r,n){"use strict";const s=0;const i=1;const a=2;const o=3;const l=4;const c=-1;e.addSegment=void 0;e.addMapping=void 0;e.maybeAddSegment=void 0;e.maybeAddMapping=void 0;e.setSourceContent=void 0;e.toDecodedMap=void 0;e.toEncodedMap=void 0;e.fromMap=void 0;e.allMappings=void 0;let p;class GenMapping{constructor({file:e,sourceRoot:r}={}){this._names=new t.SetArray;this._sources=new t.SetArray;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=r}}(()=>{e.addSegment=(e,t,r,n,s,i,a,o)=>p(false,e,t,r,n,s,i,a,o);e.maybeAddSegment=(e,t,r,n,s,i,a,o)=>p(true,e,t,r,n,s,i,a,o);e.addMapping=(e,t)=>addMappingInternal(false,e,t);e.maybeAddMapping=(e,t)=>addMappingInternal(true,e,t);e.setSourceContent=(e,r,n)=>{const{_sources:s,_sourcesContent:i}=e;i[t.put(s,r)]=n};e.toDecodedMap=e=>{const{file:t,sourceRoot:r,_mappings:n,_sources:s,_sourcesContent:i,_names:a}=e;removeEmptyFinalLines(n);return{version:3,file:t||undefined,names:a.array,sourceRoot:r||undefined,sources:s.array,sourcesContent:i,mappings:n}};e.toEncodedMap=t=>{const n=e.toDecodedMap(t);return Object.assign(Object.assign({},n),{mappings:r.encode(n.mappings)})};e.allMappings=e=>{const t=[];const{_mappings:r,_sources:n,_names:c}=e;for(let e=0;e<r.length;e++){const p=r[e];for(let r=0;r<p.length;r++){const u=p[r];const d={line:e+1,column:u[s]};let f=undefined;let h=undefined;let m=undefined;if(u.length!==1){f=n.array[u[i]];h={line:u[a]+1,column:u[o]};if(u.length===5)m=c.array[u[l]]}t.push({generated:d,source:f,original:h,name:m})}}return t};e.fromMap=e=>{const t=new n.TraceMap(e);const r=new GenMapping({file:t.file,sourceRoot:t.sourceRoot});putAll(r._names,t.names);putAll(r._sources,t.sources);r._sourcesContent=t.sourcesContent||t.sources.map((()=>null));r._mappings=n.decodedMappings(t);return r};p=(e,r,n,s,i,a,o,l,p)=>{const{_mappings:u,_sources:d,_sourcesContent:f,_names:h}=r;const m=getLine(u,n);const y=getColumnIndex(m,s);if(!i){if(e&&skipSourceless(m,y))return;return insert(m,y,[s])}const g=t.put(d,i);const b=l?t.put(h,l):c;if(g===f.length)f[g]=p!==null&&p!==void 0?p:null;if(e&&skipSource(m,y,g,a,o,b)){return}return insert(m,y,l?[s,g,a,o,b]:[s,g,a,o])}})();function getLine(e,t){for(let r=e.length;r<=t;r++){e[r]=[]}return e[t]}function getColumnIndex(e,t){let r=e.length;for(let n=r-1;n>=0;r=n--){const r=e[n];if(t>=r[s])break}return r}function insert(e,t,r){for(let r=e.length;r>t;r--){e[r]=e[r-1]}e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0;r=t,t--){if(e[t].length>0)break}if(r<t)e.length=r}function putAll(e,r){for(let n=0;n<r.length;n++)t.put(e,r[n])}function skipSourceless(e,t){if(t===0)return true;const r=e[t-1];return r.length===1}function skipSource(e,t,r,n,s,p){if(t===0)return false;const u=e[t-1];if(u.length===1)return false;return r===u[i]&&n===u[a]&&s===u[o]&&p===(u.length===5?u[l]:c)}function addMappingInternal(e,t,r){const{generated:n,source:s,original:i,name:a,content:o}=r;if(!s){return p(e,t,n.line-1,n.column,null,null,null,null,null)}const l=s;return p(e,t,n.line-1,n.column,l,i.line-1,i.column,a,o)}e.GenMapping=GenMapping;Object.defineProperty(e,"__esModule",{value:true})}))},7237:function(e,t,r){(function(e,n){true?n(t,r(7734),r(8918),r(8536)):0})(this,(function(e,t,r,n){"use strict";const s=0;const i=1;const a=2;const o=3;const l=4;const c=-1;class GenMapping{constructor({file:e,sourceRoot:r}={}){this._names=new t.SetArray;this._sources=new t.SetArray;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=r;this._ignoreList=new t.SetArray}}function cast(e){return e}function addSegment(e,t,r,n,s,i,a,o){return addSegmentInternal(false,e,t,r,n,s,i,a,o)}function addMapping(e,t){return addMappingInternal(false,e,t)}const maybeAddSegment=(e,t,r,n,s,i,a,o)=>addSegmentInternal(true,e,t,r,n,s,i,a,o);const maybeAddMapping=(e,t)=>addMappingInternal(true,e,t);function setSourceContent(e,r,n){const{_sources:s,_sourcesContent:i}=cast(e);const a=t.put(s,r);i[a]=n}function setIgnore(e,r,n=true){const{_sources:s,_sourcesContent:i,_ignoreList:a}=cast(e);const o=t.put(s,r);if(o===i.length)i[o]=null;if(n)t.put(a,o);else t.remove(a,o)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:s,_ignoreList:i}=cast(e);removeEmptyFinalLines(t);return{version:3,file:e.file||undefined,names:s.array,sourceRoot:e.sourceRoot||undefined,sources:r.array,sourcesContent:n,mappings:t,ignoreList:i.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign(Object.assign({},t),{mappings:r.encode(t.mappings)})}function fromMap(e){const t=new n.TraceMap(e);const r=new GenMapping({file:t.file,sourceRoot:t.sourceRoot});putAll(cast(r)._names,t.names);putAll(cast(r)._sources,t.sources);cast(r)._sourcesContent=t.sourcesContent||t.sources.map((()=>null));cast(r)._mappings=n.decodedMappings(t);if(t.ignoreList)putAll(cast(r)._ignoreList,t.ignoreList);return r}function allMappings(e){const t=[];const{_mappings:r,_sources:n,_names:c}=cast(e);for(let e=0;e<r.length;e++){const p=r[e];for(let r=0;r<p.length;r++){const u=p[r];const d={line:e+1,column:u[s]};let f=undefined;let h=undefined;let m=undefined;if(u.length!==1){f=n.array[u[i]];h={line:u[a]+1,column:u[o]};if(u.length===5)m=c.array[u[l]]}t.push({generated:d,source:f,original:h,name:m})}}return t}function addSegmentInternal(e,r,n,s,i,a,o,l,p){const{_mappings:u,_sources:d,_sourcesContent:f,_names:h}=cast(r);const m=getLine(u,n);const y=getColumnIndex(m,s);if(!i){if(e&&skipSourceless(m,y))return;return insert(m,y,[s])}const g=t.put(d,i);const b=l?t.put(h,l):c;if(g===f.length)f[g]=p!==null&&p!==void 0?p:null;if(e&&skipSource(m,y,g,a,o,b)){return}return insert(m,y,l?[s,g,a,o,b]:[s,g,a,o])}function getLine(e,t){for(let r=e.length;r<=t;r++){e[r]=[]}return e[t]}function getColumnIndex(e,t){let r=e.length;for(let n=r-1;n>=0;r=n--){const r=e[n];if(t>=r[s])break}return r}function insert(e,t,r){for(let r=e.length;r>t;r--){e[r]=e[r-1]}e[t]=r}function removeEmptyFinalLines(e){const{length:t}=e;let r=t;for(let t=r-1;t>=0;r=t,t--){if(e[t].length>0)break}if(r<t)e.length=r}function putAll(e,r){for(let n=0;n<r.length;n++)t.put(e,r[n])}function skipSourceless(e,t){if(t===0)return true;const r=e[t-1];return r.length===1}function skipSource(e,t,r,n,s,p){if(t===0)return false;const u=e[t-1];if(u.length===1)return false;return r===u[i]&&n===u[a]&&s===u[o]&&p===(u.length===5?u[l]:c)}function addMappingInternal(e,t,r){const{generated:n,source:s,original:i,name:a,content:o}=r;if(!s){return addSegmentInternal(e,t,n.line-1,n.column,null,null,null,null,null)}return addSegmentInternal(e,t,n.line-1,n.column,s,i.line-1,i.column,a,o)}e.GenMapping=GenMapping;e.addMapping=addMapping;e.addSegment=addSegment;e.allMappings=allMappings;e.fromMap=fromMap;e.maybeAddMapping=maybeAddMapping;e.maybeAddSegment=maybeAddSegment;e.setIgnore=setIgnore;e.setSourceContent=setSourceContent;e.toDecodedMap=toDecodedMap;e.toEncodedMap=toEncodedMap;Object.defineProperty(e,"__esModule",{value:true})}))},6982:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";const e=/^[\w+.-]+:\/\//;const t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var n;(function(e){e[e["Empty"]=1]="Empty";e[e["Hash"]=2]="Hash";e[e["Query"]=3]="Query";e[e["RelativePath"]=4]="RelativePath";e[e["AbsolutePath"]=5]="AbsolutePath";e[e["SchemeRelative"]=6]="SchemeRelative";e[e["Absolute"]=7]="Absolute"})(n||(n={}));function isAbsoluteUrl(t){return e.test(t)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const r=t.exec(e);return makeUrl(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function parseFileUrl(e){const t=r.exec(e);const n=t[2];return makeUrl("file:","",t[1]||"","",isAbsolutePath(n)?n:"/"+n,t[3]||"",t[4]||"")}function makeUrl(e,t,r,s,i,a,o){return{scheme:e,user:t,host:r,port:s,path:i,query:a,hash:o,type:n.Absolute}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const t=parseAbsoluteUrl("http:"+e);t.scheme="";t.type=n.SchemeRelative;return t}if(isAbsolutePath(e)){const t=parseAbsoluteUrl("http://foo.com"+e);t.scheme="";t.host="";t.type=n.AbsolutePath;return t}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const t=parseAbsoluteUrl("http://foo.com/"+e);t.scheme="";t.host="";t.type=e?e.startsWith("?")?n.Query:e.startsWith("#")?n.Hash:n.RelativePath:n.Empty;return t}function stripPathFilename(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function mergePaths(e,t){normalizePath(t,t.type);if(e.path==="/"){e.path=t.path}else{e.path=stripPathFilename(t.path)+e.path}}function normalizePath(e,t){const r=t<=n.RelativePath;const s=e.path.split("/");let i=1;let a=0;let o=false;for(let e=1;e<s.length;e++){const t=s[e];if(!t){o=true;continue}o=false;if(t===".")continue;if(t===".."){if(a){o=true;a--;i--}else if(r){s[i++]=t}continue}s[i++]=t;a++}let l="";for(let e=1;e<i;e++){l+="/"+s[e]}if(!l||o&&!l.endsWith("/..")){l+="/"}e.path=l}function resolve(e,t){if(!e&&!t)return"";const r=parseUrl(e);let s=r.type;if(t&&s!==n.Absolute){const e=parseUrl(t);const i=e.type;switch(s){case n.Empty:r.hash=e.hash;case n.Hash:r.query=e.query;case n.Query:case n.RelativePath:mergePaths(r,e);case n.AbsolutePath:r.user=e.user;r.host=e.host;r.port=e.port;case n.SchemeRelative:r.scheme=e.scheme}if(i>s)s=i}normalizePath(r,s);const i=r.query+r.hash;switch(s){case n.Hash:case n.Query:return i;case n.RelativePath:{const n=r.path.slice(1);if(!n)return i||".";if(isRelative(t||e)&&!isRelative(n)){return"./"+n+i}return n+i}case n.AbsolutePath:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}}return resolve}))},7168:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";e.get=void 0;e.put=void 0;e.pop=void 0;class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}(()=>{e.get=(e,t)=>e._indexes[t];e.put=(t,r)=>{const n=e.get(t,r);if(n!==undefined)return n;const{array:s,_indexes:i}=t;return i[r]=s.push(r)-1};e.pop=e=>{const{array:t,_indexes:r}=e;if(t.length===0)return;const n=t.pop();r[n]=undefined}})();e.SetArray=SetArray;Object.defineProperty(e,"__esModule",{value:true})}))},7734:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";class SetArray{constructor(){this._indexes={__proto__:null};this.array=[]}}function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(r!==undefined)return r;const{array:n,_indexes:s}=cast(e);const i=n.push(t);return s[t]=i-1}function pop(e){const{array:t,_indexes:r}=cast(e);if(t.length===0)return;const n=t.pop();r[n]=undefined}function remove(e,t){const r=get(e,t);if(r===undefined)return;const{array:n,_indexes:s}=cast(e);for(let e=r+1;e<n.length;e++){const t=n[e];n[e-1]=t;s[t]--}s[t]=undefined;n.pop()}e.SetArray=SetArray;e.get=get;e.pop=pop;e.put=put;e.remove=remove;Object.defineProperty(e,"__esModule",{value:true})}))},8918:function(e,t){(function(e,r){true?r(t):0})(this,(function(e){"use strict";const t=",".charCodeAt(0);const r=";".charCodeAt(0);const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const s=new Uint8Array(64);const i=new Uint8Array(128);for(let e=0;e<n.length;e++){const t=n.charCodeAt(e);s[e]=t;i[t]=e}function decodeInteger(e,t){let r=0;let n=0;let s=0;do{const t=e.next();s=i[t];r|=(s&31)<<n;n+=5}while(s&32);const a=r&1;r>>>=1;if(a){r=-2147483648|-r}return t+r}function encodeInteger(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=n&31;n>>>=5;if(n>0)t|=32;e.write(s[t])}while(n>0);return t}function hasMoreVlq(e,r){if(e.pos>=r)return false;return e.peek()!==t}const a=1024*16;const o=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return t}};class StringWriter{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(a)}write(e){const{buffer:t}=this;t[this.pos++]=e;if(this.pos===a){this.out+=o.decode(t);this.pos=0}}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+o.decode(e.subarray(0,r)):t}}class StringReader{constructor(e){this.pos=0;this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this;const n=t.indexOf(e,r);return n===-1?t.length:n}}const l=[];function decodeOriginalScopes(e){const{length:t}=e;const r=new StringReader(e);const n=[];const s=[];let i=0;for(;r.pos<t;r.pos++){i=decodeInteger(r,i);const e=decodeInteger(r,0);if(!hasMoreVlq(r,t)){const t=s.pop();t[2]=i;t[3]=e;continue}const a=decodeInteger(r,0);const o=decodeInteger(r,0);const c=o&1;const p=c?[i,e,0,0,a,decodeInteger(r,0)]:[i,e,0,0,a];let u=l;if(hasMoreVlq(r,t)){u=[];do{const e=decodeInteger(r,0);u.push(e)}while(hasMoreVlq(r,t))}p.vars=u;n.push(p);s.push(p)}return n}function encodeOriginalScopes(e){const t=new StringWriter;for(let r=0;r<e.length;){r=_encodeOriginalScopes(e,r,t,[0])}return t.flush()}function _encodeOriginalScopes(e,r,n,s){const i=e[r];const{0:a,1:o,2:l,3:c,4:p,vars:u}=i;if(r>0)n.write(t);s[0]=encodeInteger(n,a,s[0]);encodeInteger(n,o,0);encodeInteger(n,p,0);const d=i.length===6?1:0;encodeInteger(n,d,0);if(i.length===6)encodeInteger(n,i[5],0);for(const e of u){encodeInteger(n,e,0)}for(r++;r<e.length;){const t=e[r];const{0:i,1:a}=t;if(i>l||i===l&&a>=c){break}r=_encodeOriginalScopes(e,r,n,s)}n.write(t);s[0]=encodeInteger(n,l,s[0]);encodeInteger(n,c,0);return r}function decodeGeneratedRanges(e){const{length:t}=e;const r=new StringReader(e);const n=[];const s=[];let i=0;let a=0;let o=0;let c=0;let p=0;let u=0;let d=0;let f=0;do{const e=r.indexOf(";");let t=0;for(;r.pos<e;r.pos++){t=decodeInteger(r,t);if(!hasMoreVlq(r,e)){const e=s.pop();e[2]=i;e[3]=t;continue}const h=decodeInteger(r,0);const m=h&1;const y=h&2;const g=h&4;let b=null;let T=l;let S;if(m){const e=decodeInteger(r,a);o=decodeInteger(r,a===e?o:0);a=e;S=[i,t,0,0,e,o]}else{S=[i,t,0,0]}S.isScope=!!g;if(y){const e=c;const t=p;c=decodeInteger(r,c);const n=e===c;p=decodeInteger(r,n?p:0);u=decodeInteger(r,n&&t===p?u:0);b=[c,p,u]}S.callsite=b;if(hasMoreVlq(r,e)){T=[];do{d=i;f=t;const e=decodeInteger(r,0);let n;if(e<-1){n=[[decodeInteger(r,0)]];for(let t=-1;t>e;t--){const e=d;d=decodeInteger(r,d);f=decodeInteger(r,d===e?f:0);const t=decodeInteger(r,0);n.push([t,d,f])}}else{n=[[e]]}T.push(n)}while(hasMoreVlq(r,e))}S.bindings=T;n.push(S);s.push(S)}i++;r.pos=e+1}while(r.pos<t);return n}function encodeGeneratedRanges(e){if(e.length===0)return"";const t=new StringWriter;for(let r=0;r<e.length;){r=_encodeGeneratedRanges(e,r,t,[0,0,0,0,0,0,0])}return t.flush()}function _encodeGeneratedRanges(e,r,n,s){const i=e[r];const{0:a,1:o,2:l,3:c,isScope:p,callsite:u,bindings:d}=i;if(s[0]<a){catchupLine(n,s[0],a);s[0]=a;s[1]=0}else if(r>0){n.write(t)}s[1]=encodeInteger(n,i[1],s[1]);const f=(i.length===6?1:0)|(u?2:0)|(p?4:0);encodeInteger(n,f,0);if(i.length===6){const{4:e,5:t}=i;if(e!==s[2]){s[3]=0}s[2]=encodeInteger(n,e,s[2]);s[3]=encodeInteger(n,t,s[3])}if(u){const{0:e,1:t,2:r}=i.callsite;if(e!==s[4]){s[5]=0;s[6]=0}else if(t!==s[5]){s[6]=0}s[4]=encodeInteger(n,e,s[4]);s[5]=encodeInteger(n,t,s[5]);s[6]=encodeInteger(n,r,s[6])}if(d){for(const e of d){if(e.length>1)encodeInteger(n,-e.length,0);const t=e[0][0];encodeInteger(n,t,0);let r=a;let s=o;for(let t=1;t<e.length;t++){const i=e[t];r=encodeInteger(n,i[1],r);s=encodeInteger(n,i[2],s);encodeInteger(n,i[0],0)}}}for(r++;r<e.length;){const t=e[r];const{0:i,1:a}=t;if(i>l||i===l&&a>=c){break}r=_encodeGeneratedRanges(e,r,n,s)}if(s[0]<l){catchupLine(n,s[0],l);s[0]=l;s[1]=0}else{n.write(t)}s[1]=encodeInteger(n,c,s[1]);return r}function catchupLine(e,t,n){do{e.write(r)}while(++t<n)}function decode(e){const{length:t}=e;const r=new StringReader(e);const n=[];let s=0;let i=0;let a=0;let o=0;let l=0;do{const e=r.indexOf(";");const t=[];let c=true;let p=0;s=0;while(r.pos<e){let n;s=decodeInteger(r,s);if(s<p)c=false;p=s;if(hasMoreVlq(r,e)){i=decodeInteger(r,i);a=decodeInteger(r,a);o=decodeInteger(r,o);if(hasMoreVlq(r,e)){l=decodeInteger(r,l);n=[s,i,a,o,l]}else{n=[s,i,a,o]}}else{n=[s]}t.push(n);r.pos++}if(!c)sort(t);n.push(t);r.pos=e+1}while(r.pos<=t);return n}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const n=new StringWriter;let s=0;let i=0;let a=0;let o=0;for(let l=0;l<e.length;l++){const c=e[l];if(l>0)n.write(r);if(c.length===0)continue;let p=0;for(let e=0;e<c.length;e++){const r=c[e];if(e>0)n.write(t);p=encodeInteger(n,r[0],p);if(r.length===1)continue;s=encodeInteger(n,r[1],s);i=encodeInteger(n,r[2],i);a=encodeInteger(n,r[3],a);if(r.length===4)continue;o=encodeInteger(n,r[4],o)}}return n.flush()}e.decode=decode;e.decodeGeneratedRanges=decodeGeneratedRanges;e.decodeOriginalScopes=decodeOriginalScopes;e.encode=encode;e.encodeGeneratedRanges=encodeGeneratedRanges;e.encodeOriginalScopes=encodeOriginalScopes;Object.defineProperty(e,"__esModule",{value:true})}))},3649:function(e,t,r){e=r.nmd(e);(function(t,r){if(true){r(e);e.exports=def(e)}else{}function def(e){return"default"in e.exports?e.exports.default:e.exports}})(this,(function(e){"use strict";var t=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var __export=(e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:true})};var __copyProps=(e,i,a,o)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let l of n(i))if(!s.call(e,l)&&l!==a)t(e,l,{get:()=>i[l],enumerable:!(o=r(i,l))||o.enumerable})}return e};var __toCommonJS=e=>__copyProps(t({},"__esModule",{value:true}),e);var i={};__export(i,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes});e.exports=__toCommonJS(i);var a=",".charCodeAt(0);var o=";".charCodeAt(0);var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var c=new Uint8Array(64);var p=new Uint8Array(128);for(let e=0;e<l.length;e++){const t=l.charCodeAt(e);c[e]=t;p[t]=e}function decodeInteger(e,t){let r=0;let n=0;let s=0;do{const t=e.next();s=p[t];r|=(s&31)<<n;n+=5}while(s&32);const i=r&1;r>>>=1;if(i){r=-2147483648|-r}return t+r}function encodeInteger(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let t=n&31;n>>>=5;if(n>0)t|=32;e.write(c[t])}while(n>0);return t}function hasMoreVlq(e,t){if(e.pos>=t)return false;return e.peek()!==a}var u=1024*16;var d=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const t=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return t.toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++){t+=String.fromCharCode(e[r])}return t}};var f=class{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(u)}write(e){const{buffer:t}=this;t[this.pos++]=e;if(this.pos===u){this.out+=d.decode(t);this.pos=0}}flush(){const{buffer:e,out:t,pos:r}=this;return r>0?t+d.decode(e.subarray(0,r)):t}};var h=class{constructor(e){this.pos=0;this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this;const n=t.indexOf(e,r);return n===-1?t.length:n}};var m=[];function decodeOriginalScopes(e){const{length:t}=e;const r=new h(e);const n=[];const s=[];let i=0;for(;r.pos<t;r.pos++){i=decodeInteger(r,i);const e=decodeInteger(r,0);if(!hasMoreVlq(r,t)){const t=s.pop();t[2]=i;t[3]=e;continue}const a=decodeInteger(r,0);const o=decodeInteger(r,0);const l=o&1;const c=l?[i,e,0,0,a,decodeInteger(r,0)]:[i,e,0,0,a];let p=m;if(hasMoreVlq(r,t)){p=[];do{const e=decodeInteger(r,0);p.push(e)}while(hasMoreVlq(r,t))}c.vars=p;n.push(c);s.push(c)}return n}function encodeOriginalScopes(e){const t=new f;for(let r=0;r<e.length;){r=_encodeOriginalScopes(e,r,t,[0])}return t.flush()}function _encodeOriginalScopes(e,t,r,n){const s=e[t];const{0:i,1:o,2:l,3:c,4:p,vars:u}=s;if(t>0)r.write(a);n[0]=encodeInteger(r,i,n[0]);encodeInteger(r,o,0);encodeInteger(r,p,0);const d=s.length===6?1:0;encodeInteger(r,d,0);if(s.length===6)encodeInteger(r,s[5],0);for(const e of u){encodeInteger(r,e,0)}for(t++;t<e.length;){const s=e[t];const{0:i,1:a}=s;if(i>l||i===l&&a>=c){break}t=_encodeOriginalScopes(e,t,r,n)}r.write(a);n[0]=encodeInteger(r,l,n[0]);encodeInteger(r,c,0);return t}function decodeGeneratedRanges(e){const{length:t}=e;const r=new h(e);const n=[];const s=[];let i=0;let a=0;let o=0;let l=0;let c=0;let p=0;let u=0;let d=0;do{const e=r.indexOf(";");let t=0;for(;r.pos<e;r.pos++){t=decodeInteger(r,t);if(!hasMoreVlq(r,e)){const e=s.pop();e[2]=i;e[3]=t;continue}const f=decodeInteger(r,0);const h=f&1;const y=f&2;const g=f&4;let b=null;let T=m;let S;if(h){const e=decodeInteger(r,a);o=decodeInteger(r,a===e?o:0);a=e;S=[i,t,0,0,e,o]}else{S=[i,t,0,0]}S.isScope=!!g;if(y){const e=l;const t=c;l=decodeInteger(r,l);const n=e===l;c=decodeInteger(r,n?c:0);p=decodeInteger(r,n&&t===c?p:0);b=[l,c,p]}S.callsite=b;if(hasMoreVlq(r,e)){T=[];do{u=i;d=t;const e=decodeInteger(r,0);let n;if(e<-1){n=[[decodeInteger(r,0)]];for(let t=-1;t>e;t--){const e=u;u=decodeInteger(r,u);d=decodeInteger(r,u===e?d:0);const t=decodeInteger(r,0);n.push([t,u,d])}}else{n=[[e]]}T.push(n)}while(hasMoreVlq(r,e))}S.bindings=T;n.push(S);s.push(S)}i++;r.pos=e+1}while(r.pos<t);return n}function encodeGeneratedRanges(e){if(e.length===0)return"";const t=new f;for(let r=0;r<e.length;){r=_encodeGeneratedRanges(e,r,t,[0,0,0,0,0,0,0])}return t.flush()}function _encodeGeneratedRanges(e,t,r,n){const s=e[t];const{0:i,1:o,2:l,3:c,isScope:p,callsite:u,bindings:d}=s;if(n[0]<i){catchupLine(r,n[0],i);n[0]=i;n[1]=0}else if(t>0){r.write(a)}n[1]=encodeInteger(r,s[1],n[1]);const f=(s.length===6?1:0)|(u?2:0)|(p?4:0);encodeInteger(r,f,0);if(s.length===6){const{4:e,5:t}=s;if(e!==n[2]){n[3]=0}n[2]=encodeInteger(r,e,n[2]);n[3]=encodeInteger(r,t,n[3])}if(u){const{0:e,1:t,2:i}=s.callsite;if(e!==n[4]){n[5]=0;n[6]=0}else if(t!==n[5]){n[6]=0}n[4]=encodeInteger(r,e,n[4]);n[5]=encodeInteger(r,t,n[5]);n[6]=encodeInteger(r,i,n[6])}if(d){for(const e of d){if(e.length>1)encodeInteger(r,-e.length,0);const t=e[0][0];encodeInteger(r,t,0);let n=i;let s=o;for(let t=1;t<e.length;t++){const i=e[t];n=encodeInteger(r,i[1],n);s=encodeInteger(r,i[2],s);encodeInteger(r,i[0],0)}}}for(t++;t<e.length;){const s=e[t];const{0:i,1:a}=s;if(i>l||i===l&&a>=c){break}t=_encodeGeneratedRanges(e,t,r,n)}if(n[0]<l){catchupLine(r,n[0],l);n[0]=l;n[1]=0}else{r.write(a)}n[1]=encodeInteger(r,c,n[1]);return t}function catchupLine(e,t,r){do{e.write(o)}while(++t<r)}function decode(e){const{length:t}=e;const r=new h(e);const n=[];let s=0;let i=0;let a=0;let o=0;let l=0;do{const e=r.indexOf(";");const t=[];let c=true;let p=0;s=0;while(r.pos<e){let n;s=decodeInteger(r,s);if(s<p)c=false;p=s;if(hasMoreVlq(r,e)){i=decodeInteger(r,i);a=decodeInteger(r,a);o=decodeInteger(r,o);if(hasMoreVlq(r,e)){l=decodeInteger(r,l);n=[s,i,a,o,l]}else{n=[s,i,a,o]}}else{n=[s]}t.push(n);r.pos++}if(!c)sort(t);n.push(t);r.pos=e+1}while(r.pos<=t);return n}function sort(e){e.sort(sortComparator)}function sortComparator(e,t){return e[0]-t[0]}function encode(e){const t=new f;let r=0;let n=0;let s=0;let i=0;for(let l=0;l<e.length;l++){const c=e[l];if(l>0)t.write(o);if(c.length===0)continue;let p=0;for(let e=0;e<c.length;e++){const o=c[e];if(e>0)t.write(a);p=encodeInteger(t,o[0],p);if(o.length===1)continue;r=encodeInteger(t,o[1],r);n=encodeInteger(t,o[2],n);s=encodeInteger(t,o[3],s);if(o.length===4)continue;i=encodeInteger(t,o[4],i)}}return t.flush()}}))},8536:function(e,t,r){(function(e,n){true?n(t,r(8918),r(6982)):0})(this,(function(e,t,r){"use strict";function resolve(e,t){if(t&&!t.endsWith("/"))t+="/";return r(e,t)}function stripFilename(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const n=0;const s=1;const i=2;const a=3;const o=4;const l=1;const c=2;function maybeSort(e,t){const r=nextUnsortedSegmentLine(e,0);if(r===e.length)return e;if(!t)e=e.slice();for(let n=r;n<e.length;n=nextUnsortedSegmentLine(e,n+1)){e[n]=sortSegments(e[n],t)}return e}function nextUnsortedSegmentLine(e,t){for(let r=t;r<e.length;r++){if(!isSorted(e[r]))return r}return e.length}function isSorted(e){for(let t=1;t<e.length;t++){if(e[t][n]<e[t-1][n]){return false}}return true}function sortSegments(e,t){if(!t)e=e.slice();return e.sort(sortComparator)}function sortComparator(e,t){return e[n]-t[n]}let p=false;function binarySearch(e,t,r,s){while(r<=s){const i=r+(s-r>>1);const a=e[i][n]-t;if(a===0){p=true;return i}if(a<0){r=i+1}else{s=i-1}}p=false;return r-1}function upperBound(e,t,r){for(let s=r+1;s<e.length;r=s++){if(e[s][n]!==t)break}return r}function lowerBound(e,t,r){for(let s=r-1;s>=0;r=s--){if(e[s][n]!==t)break}return r}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,t,r,s){const{lastKey:i,lastNeedle:a,lastIndex:o}=r;let l=0;let c=e.length-1;if(s===i){if(t===a){p=o!==-1&&e[o][n]===t;return o}if(t>=a){l=o===-1?0:o}else{c=o}}r.lastKey=s;r.lastNeedle=t;return r.lastIndex=binarySearch(e,t,l,c)}function buildBySources(e,t){const r=t.map(buildNullArray);for(let o=0;o<e.length;o++){const l=e[o];for(let e=0;e<l.length;e++){const c=l[e];if(c.length===1)continue;const p=c[s];const u=c[i];const d=c[a];const f=r[p];const h=f[u]||(f[u]=[]);const m=t[p];let y=upperBound(h,d,memoizedBinarySearch(h,d,m,u));m.lastIndex=++y;insert(h,y,[d,o,c[n]])}}return r}function insert(e,t,r){for(let r=e.length;r>t;r--){e[r]=e[r-1]}e[t]=r}function buildNullArray(){return{__proto__:null}}const AnyMap=function(e,t){const r=parse(e);if(!("sections"in r)){return new TraceMap(r,t)}const n=[];const s=[];const i=[];const a=[];const o=[];recurse(r,t,n,s,i,a,o,0,0,Infinity,Infinity);const l={version:3,file:r.file,names:a,sources:s,sourcesContent:i,mappings:n,ignoreList:o};return presortedDecodedMap(l)};function parse(e){return typeof e==="string"?JSON.parse(e):e}function recurse(e,t,r,n,s,i,a,o,l,c,p){const{sections:u}=e;for(let e=0;e<u.length;e++){const{map:d,offset:f}=u[e];let h=c;let m=p;if(e+1<u.length){const t=u[e+1].offset;h=Math.min(c,o+t.line);if(h===c){m=Math.min(p,l+t.column)}else if(h<c){m=l+t.column}}addSection(d,t,r,n,s,i,a,o+f.line,l+f.column,h,m)}}function addSection(e,t,r,l,c,p,u,d,f,h,m){const y=parse(e);if("sections"in y)return recurse(...arguments);const g=new TraceMap(y,t);const b=l.length;const T=p.length;const S=decodedMappings(g);const{resolvedSources:x,sourcesContent:E,ignoreList:P}=g;append(l,x);append(p,g.names);if(E)append(c,E);else for(let e=0;e<x.length;e++)c.push(null);if(P)for(let e=0;e<P.length;e++)u.push(P[e]+b);for(let e=0;e<S.length;e++){const t=d+e;if(t>h)return;const l=getLine(r,t);const c=e===0?f:0;const p=S[e];for(let e=0;e<p.length;e++){const r=p[e];const u=c+r[n];if(t===h&&u>=m)return;if(r.length===1){l.push([u]);continue}const d=b+r[s];const f=r[i];const y=r[a];l.push(r.length===4?[u,d,f,y]:[u,d,f,y,T+r[o]])}}}function append(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}function getLine(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}const u="`line` must be greater than 0 (lines start at line 1)";const d="`column` must be greater than or equal to 0 (columns start at column 0)";const f=-1;const h=1;class TraceMap{constructor(e,t){const r=typeof e==="string";if(!r&&e._decodedMemo)return e;const n=r?JSON.parse(e):e;const{version:s,file:i,names:a,sourceRoot:o,sources:l,sourcesContent:c}=n;this.version=s;this.file=i;this.names=a||[];this.sourceRoot=o;this.sources=l;this.sourcesContent=c;this.ignoreList=n.ignoreList||n.x_google_ignoreList||undefined;const p=resolve(o||"",stripFilename(t));this.resolvedSources=l.map((e=>resolve(e||"",p)));const{mappings:u}=n;if(typeof u==="string"){this._encoded=u;this._decoded=undefined}else{this._encoded=undefined;this._decoded=maybeSort(u,r)}this._decodedMemo=memoizedState();this._bySources=undefined;this._bySourceMemos=undefined}}function cast(e){return e}function encodedMappings(e){var r;var n;return(r=(n=cast(e))._encoded)!==null&&r!==void 0?r:n._encoded=t.encode(cast(e)._decoded)}function decodedMappings(e){var r;return(r=cast(e))._decoded||(r._decoded=t.decode(cast(e)._encoded))}function traceSegment(e,t,r){const n=decodedMappings(e);if(t>=n.length)return null;const s=n[t];const i=traceSegmentInternal(s,cast(e)._decodedMemo,t,r,h);return i===-1?null:s[i]}function originalPositionFor(e,t){let{line:r,column:n,bias:l}=t;r--;if(r<0)throw new Error(u);if(n<0)throw new Error(d);const c=decodedMappings(e);if(r>=c.length)return OMapping(null,null,null,null);const p=c[r];const f=traceSegmentInternal(p,cast(e)._decodedMemo,r,n,l||h);if(f===-1)return OMapping(null,null,null,null);const m=p[f];if(m.length===1)return OMapping(null,null,null,null);const{names:y,resolvedSources:g}=e;return OMapping(g[m[s]],m[i]+1,m[a],m.length===5?y[m[o]]:null)}function generatedPositionFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||h,false)}function allGeneratedPositionsFor(e,t){const{source:r,line:n,column:s,bias:i}=t;return generatedPosition(e,r,n,s,i||f,true)}function eachMapping(e,t){const r=decodedMappings(e);const{names:n,resolvedSources:s}=e;for(let e=0;e<r.length;e++){const i=r[e];for(let r=0;r<i.length;r++){const a=i[r];const o=e+1;const l=a[0];let c=null;let p=null;let u=null;let d=null;if(a.length!==1){c=s[a[1]];p=a[2]+1;u=a[3]}if(a.length===5)d=n[a[4]];t({generatedLine:o,generatedColumn:l,source:c,originalLine:p,originalColumn:u,name:d})}}}function sourceIndex(e,t){const{sources:r,resolvedSources:n}=e;let s=r.indexOf(t);if(s===-1)s=n.indexOf(t);return s}function sourceContentFor(e,t){const{sourcesContent:r}=e;if(r==null)return null;const n=sourceIndex(e,t);return n===-1?null:r[n]}function isIgnored(e,t){const{ignoreList:r}=e;if(r==null)return false;const n=sourceIndex(e,t);return n===-1?false:r.includes(n)}function presortedDecodedMap(e,t){const r=new TraceMap(clone(e,[]),t);cast(r)._decoded=e.mappings;return r}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,t,r,n){return{source:e,line:t,column:r,name:n}}function GMapping(e,t){return{line:e,column:t}}function traceSegmentInternal(e,t,r,n,s){let i=memoizedBinarySearch(e,n,t,r);if(p){i=(s===f?upperBound:lowerBound)(e,n,i)}else if(s===f)i++;if(i===-1||i===e.length)return-1;return i}function sliceGeneratedPositions(e,t,r,s,i){let a=traceSegmentInternal(e,t,r,s,h);if(!p&&i===f)a++;if(a===-1||a===e.length)return[];const o=p?s:e[a][n];if(!p)a=lowerBound(e,o,a);const u=upperBound(e,o,a);const d=[];for(;a<=u;a++){const t=e[a];d.push(GMapping(t[l]+1,t[c]))}return d}function generatedPosition(e,t,r,n,s,i){var a;r--;if(r<0)throw new Error(u);if(n<0)throw new Error(d);const{sources:o,resolvedSources:p}=e;let f=o.indexOf(t);if(f===-1)f=p.indexOf(t);if(f===-1)return i?[]:GMapping(null,null);const h=(a=cast(e))._bySources||(a._bySources=buildBySources(decodedMappings(e),cast(e)._bySourceMemos=o.map(memoizedState)));const m=h[f][r];if(m==null)return i?[]:GMapping(null,null);const y=cast(e)._bySourceMemos[f];if(i)return sliceGeneratedPositions(m,y,r,n,s);const g=traceSegmentInternal(m,y,r,n,s);if(g===-1)return GMapping(null,null);const b=m[g];return GMapping(b[l]+1,b[c])}e.AnyMap=AnyMap;e.GREATEST_LOWER_BOUND=h;e.LEAST_UPPER_BOUND=f;e.TraceMap=TraceMap;e.allGeneratedPositionsFor=allGeneratedPositionsFor;e.decodedMap=decodedMap;e.decodedMappings=decodedMappings;e.eachMapping=eachMapping;e.encodedMap=encodedMap;e.encodedMappings=encodedMappings;e.generatedPositionFor=generatedPositionFor;e.isIgnored=isIgnored;e.originalPositionFor=originalPositionFor;e.presortedDecodedMap=presortedDecodedMap;e.sourceContentFor=sourceContentFor;e.traceSegment=traceSegment}))},133:(e,t)=>{"use strict";Object.defineProperty(t,"commentRegex",{get:function getCommentRegex(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/gm}});Object.defineProperty(t,"mapFileCommentRegex",{get:function getMapFileCommentRegex(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/gm}});var r;if(typeof Buffer!=="undefined"){if(typeof Buffer.from==="function"){r=decodeBase64WithBufferFrom}else{r=decodeBase64WithNewBuffer}}else{r=decodeBase64WithAtob}function decodeBase64WithBufferFrom(e){return Buffer.from(e,"base64").toString()}function decodeBase64WithNewBuffer(e){if(typeof value==="number"){throw new TypeError("The value to decode must not be of type number.")}return new Buffer(e,"base64").toString()}function decodeBase64WithAtob(e){return decodeURIComponent(escape(atob(e)))}function stripComment(e){return e.split(",").pop()}function readFromFileMap(e,r){var n=t.mapFileCommentRegex.exec(e);var s=n[1]||n[2];try{var e=r(s);if(e!=null&&typeof e.catch==="function"){return e.catch(throwError)}else{return e}}catch(e){throwError(e)}function throwError(e){throw new Error("An error occurred while trying to read the map file at "+s+"\n"+e.stack)}}function Converter(e,t){t=t||{};if(t.hasComment){e=stripComment(e)}if(t.encoding==="base64"){e=r(e)}else if(t.encoding==="uri"){e=decodeURIComponent(e)}if(t.isJSON||t.encoding){e=JSON.parse(e)}this.sourcemap=e}Converter.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};if(typeof Buffer!=="undefined"){if(typeof Buffer.from==="function"){Converter.prototype.toBase64=encodeBase64WithBufferFrom}else{Converter.prototype.toBase64=encodeBase64WithNewBuffer}}else{Converter.prototype.toBase64=encodeBase64WithBtoa}function encodeBase64WithBufferFrom(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function encodeBase64WithNewBuffer(){var e=this.toJSON();if(typeof e==="number"){throw new TypeError("The json to encode must not be of type number.")}return new Buffer(e,"utf8").toString("base64")}function encodeBase64WithBtoa(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}Converter.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};Converter.prototype.toComment=function(e){var t,r,n;if(e!=null&&e.encoding==="uri"){t="";r=this.toURI()}else{t=";base64";r=this.toBase64()}n="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r;return e!=null&&e.multiline?"/*# "+n+" */":"//# "+n};Converter.prototype.toObject=function(){return JSON.parse(this.toJSON())};Converter.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};Converter.prototype.setProperty=function(e,t){this.sourcemap[e]=t;return this};Converter.prototype.getProperty=function(e){return this.sourcemap[e]};t.fromObject=function(e){return new Converter(e)};t.fromJSON=function(e){return new Converter(e,{isJSON:true})};t.fromURI=function(e){return new Converter(e,{encoding:"uri"})};t.fromBase64=function(e){return new Converter(e,{encoding:"base64"})};t.fromComment=function(e){var r,n;e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,"");r=t.commentRegex.exec(e);n=r&&r[4]||"uri";return new Converter(e,{encoding:n,hasComment:true})};function makeConverter(e){return new Converter(e,{isJSON:true})}t.fromMapFileComment=function(e,t){if(typeof t==="string"){throw new Error("String directory paths are no longer supported with `fromMapFileComment`\n"+"Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading")}var r=readFromFileMap(e,t);if(r!=null&&typeof r.then==="function"){return r.then(makeConverter)}else{return makeConverter(r)}};t.fromSource=function(e){var r=e.match(t.commentRegex);return r?t.fromComment(r.pop()):null};t.fromMapFileSource=function(e,r){if(typeof r==="string"){throw new Error("String directory paths are no longer supported with `fromMapFileSource`\n"+"Please review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading")}var n=e.match(t.mapFileCommentRegex);return n?t.fromMapFileComment(n.pop(),r):null};t.removeComments=function(e){return e.replace(t.commentRegex,"")};t.removeMapFileComments=function(e){return e.replace(t.mapFileCommentRegex,"")};t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}},6433:e=>{"use strict";const t=Symbol.for("gensync:v1:start");const r=Symbol.for("gensync:v1:suspend");const n="GENSYNC_EXPECTED_START";const s="GENSYNC_EXPECTED_SUSPEND";const i="GENSYNC_OPTIONS_ERROR";const a="GENSYNC_RACE_NONEMPTY";const o="GENSYNC_ERRBACK_NO_CALLBACK";e.exports=Object.assign((function gensync(e){let t=e;if(typeof e!=="function"){t=newGenerator(e)}else{t=wrapGenerator(e)}return Object.assign(t,makeFunctionAPI(t))}),{all:buildOperation({name:"all",arity:1,sync:function(e){const t=Array.from(e[0]);return t.map((e=>evaluateSync(e)))},async:function(e,t,r){const n=Array.from(e[0]);if(n.length===0){Promise.resolve().then((()=>t([])));return}let s=0;const i=n.map((()=>undefined));n.forEach(((e,n)=>{evaluateAsync(e,(e=>{i[n]=e;s+=1;if(s===i.length)t(i)}),r)}))}}),race:buildOperation({name:"race",arity:1,sync:function(e){const t=Array.from(e[0]);if(t.length===0){throw makeError("Must race at least 1 item",a)}return evaluateSync(t[0])},async:function(e,t,r){const n=Array.from(e[0]);if(n.length===0){throw makeError("Must race at least 1 item",a)}for(const e of n){evaluateAsync(e,t,r)}}})});function makeFunctionAPI(e){const t={sync:function(...t){return evaluateSync(e.apply(this,t))},async:function(...t){return new Promise(((r,n)=>{evaluateAsync(e.apply(this,t),r,n)}))},errback:function(...t){const r=t.pop();if(typeof r!=="function"){throw makeError("Asynchronous function called without callback",o)}let n;try{n=e.apply(this,t)}catch(e){r(e);return}evaluateAsync(n,(e=>r(undefined,e)),(e=>r(e)))}};return t}function assertTypeof(e,t,r,n){if(typeof r===e||n&&typeof r==="undefined"){return}let s;if(n){s=`Expected opts.${t} to be either a ${e}, or undefined.`}else{s=`Expected opts.${t} to be a ${e}.`}throw makeError(s,i)}function makeError(e,t){return Object.assign(new Error(e),{code:t})}function newGenerator({name:e,arity:t,sync:r,async:n,errback:s}){assertTypeof("string","name",e,true);assertTypeof("number","arity",t,true);assertTypeof("function","sync",r);assertTypeof("function","async",n,true);assertTypeof("function","errback",s,true);if(n&&s){throw makeError("Expected one of either opts.async or opts.errback, but got _both_.",i)}if(typeof e!=="string"){let t;if(s&&s.name&&s.name!=="errback"){t=s.name}if(n&&n.name&&n.name!=="async"){t=n.name.replace(/Async$/,"")}if(r&&r.name&&r.name!=="sync"){t=r.name.replace(/Sync$/,"")}if(typeof t==="string"){e=t}}if(typeof t!=="number"){t=r.length}return buildOperation({name:e,arity:t,sync:function(e){return r.apply(this,e)},async:function(e,t,i){if(n){n.apply(this,e).then(t,i)}else if(s){s.call(this,...e,((e,r)=>{if(e==null)t(r);else i(e)}))}else{t(r.apply(this,e))}}})}function wrapGenerator(e){return setFunctionMetadata(e.name,e.length,(function(...t){return e.apply(this,t)}))}function buildOperation({name:e,arity:n,sync:s,async:i}){return setFunctionMetadata(e,n,(function*(...e){const n=yield t;if(!n){const t=s.call(this,e);return t}let a;try{i.call(this,e,(e=>{if(a)return;a={value:e};n()}),(e=>{if(a)return;a={err:e};n()}))}catch(e){a={err:e};n()}yield r;if(a.hasOwnProperty("err")){throw a.err}return a.value}))}function evaluateSync(e){let t;while(!({value:t}=e.next()).done){assertStart(t,e)}return t}function evaluateAsync(e,t,r){(function step(){try{let r;while(!({value:r}=e.next()).done){assertStart(r,e);let t=true;let n=false;const s=e.next((()=>{if(t){n=true}else{step()}}));t=false;assertSuspend(s,e);if(!n){return}}return t(r)}catch(e){return r(e)}})()}function assertStart(e,r){if(e===t)return;throwError(r,makeError(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,n))}function assertSuspend({value:e,done:t},n){if(!t&&e===r)return;throwError(n,makeError(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,s))}function throwError(e,t){if(e.throw)e.throw(t);throw t}function isIterable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!e[Symbol.iterator]}function setFunctionMetadata(e,t,r){if(typeof e==="string"){const t=Object.getOwnPropertyDescriptor(r,"name");if(!t||t.configurable){Object.defineProperty(r,"name",Object.assign(t||{},{configurable:true,value:e}))}}if(typeof t==="number"){const e=Object.getOwnPropertyDescriptor(r,"length");if(!e||e.configurable){Object.defineProperty(r,"length",Object.assign(e||{},{configurable:true,value:t}))}}return r}},6929:(e,t,r)=>{"use strict";e.exports=r(3676)},8874:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},4849:e=>{"use strict";const t={};const r=t.hasOwnProperty;const forOwn=(e,t)=>{for(const n in e){if(r.call(e,n)){t(n,e[n])}}};const extend=(e,t)=>{if(!t){return e}forOwn(t,((t,r)=>{e[t]=r}));return e};const forEach=(e,t)=>{const r=e.length;let n=-1;while(++n<r){t(e[n])}};const fourHexEscape=e=>"\\u"+("0000"+e).slice(-4);const hexadecimal=(e,t)=>{let r=e.toString(16);if(t)return r;return r.toUpperCase()};const n=t.toString;const s=Array.isArray;const isBuffer=e=>typeof Buffer==="function"&&Buffer.isBuffer(e);const isObject=e=>n.call(e)=="[object Object]";const isString=e=>typeof e=="string"||n.call(e)=="[object String]";const isNumber=e=>typeof e=="number"||n.call(e)=="[object Number]";const isFunction=e=>typeof e=="function";const isMap=e=>n.call(e)=="[object Map]";const isSet=e=>n.call(e)=="[object Set]";const i={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const a=/[\\\b\f\n\r\t]/;const o=/[0-9]/;const l=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;const c=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g;const p=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g;const jsesc=(e,t)=>{const increaseIndentation=()=>{m=h;++t.indentLevel;h=t.indent.repeat(t.indentLevel)};const r={escapeEverything:false,minimal:false,isScriptContext:false,quotes:"single",wrap:false,es6:false,json:false,compact:true,lowercaseHex:false,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:false,__inline2__:false};const n=t&&t.json;if(n){r.quotes="double";r.wrap=true}t=extend(r,t);if(t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"){t.quotes="single"}const u=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'";const d=t.compact;const f=t.lowercaseHex;let h=t.indent.repeat(t.indentLevel);let m="";const y=t.__inline1__;const g=t.__inline2__;const b=d?"":"\n";let T;let S=true;const x=t.numbers=="binary";const E=t.numbers=="octal";const P=t.numbers=="decimal";const v=t.numbers=="hexadecimal";if(n&&e&&isFunction(e.toJSON)){e=e.toJSON()}if(!isString(e)){if(isMap(e)){if(e.size==0){return"new Map()"}if(!d){t.__inline1__=true;t.__inline2__=false}return"new Map("+jsesc(Array.from(e),t)+")"}if(isSet(e)){if(e.size==0){return"new Set()"}return"new Set("+jsesc(Array.from(e),t)+")"}if(isBuffer(e)){if(e.length==0){return"Buffer.from([])"}return"Buffer.from("+jsesc(Array.from(e),t)+")"}if(s(e)){T=[];t.wrap=true;if(y){t.__inline1__=false;t.__inline2__=true}if(!g){increaseIndentation()}forEach(e,(e=>{S=false;if(g){t.__inline2__=false}T.push((d||g?"":h)+jsesc(e,t))}));if(S){return"[]"}if(g){return"["+T.join(", ")+"]"}return"["+b+T.join(","+b)+b+(d?"":m)+"]"}else if(isNumber(e)){if(n){return JSON.stringify(e)}if(P){return String(e)}if(v){let t=e.toString(16);if(!f){t=t.toUpperCase()}return"0x"+t}if(x){return"0b"+e.toString(2)}if(E){return"0o"+e.toString(8)}}else if(!isObject(e)){if(n){return JSON.stringify(e)||"null"}return String(e)}else{T=[];t.wrap=true;increaseIndentation();forOwn(e,((e,r)=>{S=false;T.push((d?"":h)+jsesc(e,t)+":"+(d?"":" ")+jsesc(r,t))}));if(S){return"{}"}return"{"+b+T.join(","+b)+b+(d?"":m)+"}"}}const A=t.escapeEverything?c:p;T=e.replace(A,((e,r,s,c,p,d)=>{if(r){if(t.minimal)return r;const e=r.charCodeAt(0);const n=r.charCodeAt(1);if(t.es6){const t=(e-55296)*1024+n-56320+65536;const r=hexadecimal(t,f);return"\\u{"+r+"}"}return fourHexEscape(hexadecimal(e,f))+fourHexEscape(hexadecimal(n,f))}if(s){return fourHexEscape(hexadecimal(s.charCodeAt(0),f))}if(e=="\0"&&!n&&!o.test(d.charAt(p+1))){return"\\0"}if(c){if(c==u||t.escapeEverything){return"\\"+c}return c}if(a.test(e)){return i[e]}if(t.minimal&&!l.test(e)){return e}const h=hexadecimal(e.charCodeAt(0),f);if(n||h.length>2){return fourHexEscape(h)}return"\\x"+("00"+h).slice(-2)}));if(u=="`"){T=T.replace(/\$\{/g,"\\${")}if(t.isScriptContext){T=T.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,n?"\\u003C!--":"\\x3C!--")}if(t.wrap){T=u+T+u}return T};jsesc.version="3.0.2";e.exports=jsesc},1437:(e,t,r)=>{let n=process.argv||[],s=process.env;let i=!("NO_COLOR"in s||n.includes("--no-color"))&&("FORCE_COLOR"in s||n.includes("--color")||process.platform==="win32"||require!=null&&r(6224).isatty(1)&&s.TERM!=="dumb"||"CI"in s);let formatter=(e,t,r=e)=>n=>{let s=""+n;let i=s.indexOf(t,e.length);return~i?e+replaceClose(s,t,r,i)+t:e+s+t};let replaceClose=(e,t,r,n)=>{let s="";let i=0;do{s+=e.substring(i,n)+r;i=n+t.length;n=e.indexOf(t,i)}while(~n);return s+e.substring(i)};let createColors=(e=i)=>{let t=e?formatter:()=>String;return{isColorSupported:e,reset:t("[0m","[0m"),bold:t("[1m","[22m","[22m[1m"),dim:t("[2m","[22m","[22m[2m"),italic:t("[3m","[23m"),underline:t("[4m","[24m"),inverse:t("[7m","[27m"),hidden:t("[8m","[28m"),strikethrough:t("[9m","[29m"),black:t("[30m","[39m"),red:t("[31m","[39m"),green:t("[32m","[39m"),yellow:t("[33m","[39m"),blue:t("[34m","[39m"),magenta:t("[35m","[39m"),cyan:t("[36m","[39m"),white:t("[37m","[39m"),gray:t("[90m","[39m"),bgBlack:t("[40m","[49m"),bgRed:t("[41m","[49m"),bgGreen:t("[42m","[49m"),bgYellow:t("[43m","[49m"),bgBlue:t("[44m","[49m"),bgMagenta:t("[45m","[49m"),bgCyan:t("[46m","[49m"),bgWhite:t("[47m","[49m")}};e.exports=createColors();e.exports.createColors=createColors},3050:(e,t,r)=>{function types(){return r(3061)}function core(){return r(2358)}function coreLibConfig(){return r(8842)}function coreLibNormalizeFile(){return r(6380)}function coreLibNormalizeOpts(){return r(6351)}function coreLibBlockHoistPlugin(){return r(9273)}function coreLibPluginPass(){return r(3878)}function traverse(){return r(8026)}function generator(){return r(1605)}function parser(){return r(9849)}function eslintParser(){return r(3305).eslintParser()}function pluginProposalClassProperties(){return r(3305).pluginProposalClassProperties()}function pluginProposalExportNamespaceFrom(){return r(3305).pluginProposalExportNamespaceFrom()}function pluginProposalNumericSeparator(){return r(3305).pluginProposalNumericSeparator()}function pluginProposalObjectRestSpread(){return r(3305).pluginProposalObjectRestSpread()}function pluginSyntaxBigint(){return r(3305).pluginSyntaxBigint()}function pluginSyntaxDynamicImport(){return r(3305).pluginSyntaxDynamicImport()}function pluginSyntaxImportAttributes(){return r(3305).pluginSyntaxImportAttributes()}function pluginSyntaxJsx(){return r(3305).pluginSyntaxJsx()}function pluginSyntaxTypescript(){return r(3305).pluginSyntaxTypescript()}function pluginTransformDefine(){return r(3305).pluginTransformDefine()}function pluginTransformModulesCommonjs(){return r(3305).pluginTransformModulesCommonjs()}function pluginTransformReactRemovePropTypes(){return r(3305).pluginTransformReactRemovePropTypes()}function pluginTransformRuntime(){return r(3305).pluginTransformRuntime()}function presetEnv(){return r(3305).presetEnv()}function presetReact(){return r(3305).presetReact()}function presetTypescript(){return r(3305).presetTypescript()}e.exports={types:types,core:core,coreLibConfig:coreLibConfig,coreLibNormalizeFile:coreLibNormalizeFile,coreLibNormalizeOpts:coreLibNormalizeOpts,coreLibBlockHoistPlugin:coreLibBlockHoistPlugin,coreLibPluginPass:coreLibPluginPass,generator:generator,traverse:traverse,eslintParser:eslintParser,parser:parser,pluginProposalClassProperties:pluginProposalClassProperties,pluginProposalExportNamespaceFrom:pluginProposalExportNamespaceFrom,pluginProposalNumericSeparator:pluginProposalNumericSeparator,pluginProposalObjectRestSpread:pluginProposalObjectRestSpread,pluginSyntaxBigint:pluginSyntaxBigint,pluginSyntaxDynamicImport:pluginSyntaxDynamicImport,pluginSyntaxImportAttributes:pluginSyntaxImportAttributes,pluginSyntaxJsx:pluginSyntaxJsx,pluginSyntaxTypescript:pluginSyntaxTypescript,pluginTransformDefine:pluginTransformDefine,pluginTransformModulesCommonjs:pluginTransformModulesCommonjs,pluginTransformReactRemovePropTypes:pluginTransformReactRemovePropTypes,pluginTransformRuntime:pluginTransformRuntime,presetEnv:presetEnv,presetReact:presetReact,presetTypescript:presetTypescript}},9491:e=>{"use strict";e.exports=require("assert")},7147:e=>{"use strict";e.exports=require("fs")},8188:e=>{"use strict";e.exports=require("module")},3305:e=>{"use strict";e.exports=require("next/dist/compiled/babel-packages")},4907:e=>{"use strict";e.exports=require("next/dist/compiled/browserslist")},6937:e=>{"use strict";e.exports=require("next/dist/compiled/debug")},8310:e=>{"use strict";e.exports=require("next/dist/compiled/json5")},7330:e=>{"use strict";e.exports=require("next/dist/compiled/lru-cache")},7849:e=>{"use strict";e.exports=require("next/dist/compiled/semver")},1017:e=>{"use strict";e.exports=require("path")},7282:e=>{"use strict";e.exports=require("process")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},4655:e=>{"use strict";e.exports=require("v8")},3554:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(1437);var s=r(8874);var i=r(974);function isColorSupported(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?false:n.isColorSupported}const compose=(e,t)=>r=>e(t(r));function buildDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:compose(compose(e.white,e.bgRed),e.bold),gutter:e.gray,marker:compose(e.red,e.bold),message:compose(e.red,e.bold),reset:e.reset}}const a=buildDefs(n.createColors(true));const o=buildDefs(n.createColors(false));function getDefs(e){return e?a:o}const l=new Set(["as","async","from","get","of","set"]);const c=/\r\n|[\n\r\u2028\u2029]/;const p=/^[()[\]{}]$/;let u;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(t,r,n){if(t.type==="name"){if(i.isKeyword(t.value)||i.isStrictReservedWord(t.value,true)||l.has(t.value)){return"keyword"}if(e.test(t.value)&&(n[r-1]==="<"||n.slice(r-2,r)==="</")){return"jsxIdentifier"}if(t.value[0]!==t.value[0].toLowerCase()){return"capitalized"}}if(t.type==="punctuator"&&p.test(t.value)){return"bracket"}if(t.type==="invalid"&&(t.value==="@"||t.value==="#")){return"punctuator"}return t.type};u=function*(e){let t;while(t=s.default.exec(e)){const r=s.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}}}function highlight(e){if(e==="")return"";const t=getDefs(true);let r="";for(const{type:n,value:s}of u(e)){if(n in t){r+=s.split(c).map((e=>t[n](e))).join("\n")}else{r+=s}}return r}let d=false;const f=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const s=Object.assign({},n,e.end);const{linesAbove:i=2,linesBelow:a=3}=r||{};const o=n.line;const l=n.column;const c=s.line;const p=s.column;let u=Math.max(o-(i+1),0);let d=Math.min(t.length,c+a);if(o===-1){u=0}if(c===-1){d=t.length}const f=c-o;const h={};if(f){for(let e=0;e<=f;e++){const r=e+o;if(!l){h[r]=true}else if(e===0){const e=t[r-1].length;h[r]=[l,e-l+1]}else if(e===f){h[r]=[0,p]}else{const n=t[r-e].length;h[r]=[0,n]}}}else{if(l===p){if(l){h[o]=[l,0]}else{h[o]=true}}else{h[o]=[l,p-l]}}return{start:u,end:d,markerLines:h}}function codeFrameColumns(e,t,r={}){const n=r.forceColor||isColorSupported()&&r.highlightCode;const s=getDefs(n);const i=e.split(f);const{start:a,end:o,markerLines:l}=getMarkerLines(t,i,r);const c=t.start&&typeof t.start.column==="number";const p=String(o).length;const u=n?highlight(e):e;let d=u.split(f,o).slice(a,o).map(((e,t)=>{const n=a+1+t;const i=` ${n}`.slice(-p);const o=` ${i} |`;const c=l[n];const u=!l[n+1];if(c){let t="";if(Array.isArray(c)){const n=e.slice(0,Math.max(c[0]-1,0)).replace(/[^\t]/g," ");const i=c[1]||1;t=["\n ",s.gutter(o.replace(/\d/g," "))," ",n,s.marker("^").repeat(i)].join("");if(u&&r.message){t+=" "+s.message(r.message)}}return[s.marker(">"),s.gutter(o),e.length>0?` ${e}`:"",t].join("")}else{return` ${s.gutter(o)}${e.length>0?` ${e}`:""}`}})).join("\n");if(r.message&&!c){d=`${" ".repeat(p+1)}${r.message}\n${d}`}if(n){return s.reset(d)}else{return d}}function index(e,t,r,n={}){if(!d){d=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const s={start:{column:r,line:t}};return codeFrameColumns(e,s,n)}t.codeFrameColumns=codeFrameColumns;t["default"]=index;t.highlight=highlight},8566:(e,t,r)=>{e.exports=r(3702)},2810:(e,t,r)=>{e.exports=r(8427)},5732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertSimpleType=assertSimpleType;t.makeStrongCache=makeStrongCache;t.makeStrongCacheSync=makeStrongCacheSync;t.makeWeakCache=makeWeakCache;t.makeWeakCacheSync=makeWeakCacheSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(7987);var s=r(545);const synchronize=e=>_gensync()(e).sync;function*genTrue(){return true}function makeWeakCache(e){return makeCachedFunction(WeakMap,e)}function makeWeakCacheSync(e){return synchronize(makeWeakCache(e))}function makeStrongCache(e){return makeCachedFunction(Map,e)}function makeStrongCacheSync(e){return synchronize(makeStrongCache(e))}function makeCachedFunction(e,t){const r=new e;const i=new e;const a=new e;return function*cachedFunction(e,o){const l=yield*(0,n.isAsync)();const c=l?i:r;const p=yield*getCachedValueOrWait(l,c,a,e,o);if(p.valid)return p.value;const u=new CacheConfigurator(o);const d=t(e,u);let f;let h;if((0,s.isIterableIterator)(d)){h=yield*(0,n.onFirstPause)(d,(()=>{f=setupAsyncLocks(u,a,e)}))}else{h=d}updateFunctionCache(c,u,e,h);if(f){a.delete(e);f.release(h)}return h}}function*getCachedValue(e,t,r){const n=e.get(t);if(n){for(const{value:e,valid:t}of n){if(yield*t(r))return{valid:true,value:e}}}return{valid:false,value:null}}function*getCachedValueOrWait(e,t,r,s,i){const a=yield*getCachedValue(t,s,i);if(a.valid){return a}if(e){const e=yield*getCachedValue(r,s,i);if(e.valid){const t=yield*(0,n.waitFor)(e.value.promise);return{valid:true,value:t}}}return{valid:false,value:null}}function setupAsyncLocks(e,t,r){const n=new Lock;updateFunctionCache(t,e,r,n);return n}function updateFunctionCache(e,t,r,n){if(!t.configured())t.forever();let s=e.get(r);t.deactivate();switch(t.mode()){case"forever":s=[{value:n,valid:genTrue}];e.set(r,s);break;case"invalidate":s=[{value:n,valid:t.validator()}];e.set(r,s);break;case"valid":if(s){s.push({value:n,valid:t.validator()})}else{s=[{value:n,valid:t.validator()}];e.set(r,s)}}}class CacheConfigurator{constructor(e){this._active=true;this._never=false;this._forever=false;this._invalidate=false;this._configured=false;this._pairs=[];this._data=void 0;this._data=e}simple(){return makeSimpleConfigurator(this)}mode(){if(this._never)return"never";if(this._forever)return"forever";if(this._invalidate)return"invalidate";return"valid"}forever(){if(!this._active){throw new Error("Cannot change caching after evaluation has completed.")}if(this._never){throw new Error("Caching has already been configured with .never()")}this._forever=true;this._configured=true}never(){if(!this._active){throw new Error("Cannot change caching after evaluation has completed.")}if(this._forever){throw new Error("Caching has already been configured with .forever()")}this._never=true;this._configured=true}using(e){if(!this._active){throw new Error("Cannot change caching after evaluation has completed.")}if(this._never||this._forever){throw new Error("Caching has already been configured with .never or .forever()")}this._configured=true;const t=e(this._data);const r=(0,n.maybeAsync)(e,`You appear to be using an async cache handler, but Babel has been called synchronously`);if((0,n.isThenable)(t)){return t.then((e=>{this._pairs.push([e,r]);return e}))}this._pairs.push([t,r]);return t}invalidate(e){this._invalidate=true;return this.using(e)}validator(){const e=this._pairs;return function*(t){for(const[r,n]of e){if(r!==(yield*n(t)))return false}return true}}deactivate(){this._active=false}configured(){return this._configured}}function makeSimpleConfigurator(e){function cacheFn(t){if(typeof t==="boolean"){if(t)e.forever();else e.never();return}return e.using((()=>assertSimpleType(t())))}cacheFn.forever=()=>e.forever();cacheFn.never=()=>e.never();cacheFn.using=t=>e.using((()=>assertSimpleType(t())));cacheFn.invalidate=t=>e.invalidate((()=>assertSimpleType(t())));return cacheFn}function assertSimpleType(e){if((0,n.isThenable)(e)){throw new Error(`You appear to be using an async cache handler, `+`which your current version of Babel does not support. `+`We may add support for this in the future, `+`but if you're on the most recent version of @babel/core and still `+`seeing this error, then you'll need to synchronously handle your caching logic.`)}if(e!=null&&typeof e!=="string"&&typeof e!=="boolean"&&typeof e!=="number"){throw new Error("Cache keys must be either string, boolean, number, null, or undefined.")}return e}class Lock{constructor(){this.released=false;this.promise=void 0;this._resolve=void 0;this.promise=new Promise((e=>{this._resolve=e}))}release(e){this.released=true;this._resolve(e)}}0&&0},9646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildPresetChain=buildPresetChain;t.buildPresetChainWalker=void 0;t.buildRootChain=buildRootChain;function _path(){const e=r(1017);_path=function(){return e};return e}function _debug(){const e=r(6937);_debug=function(){return e};return e}var n=r(4320);var s=r(5076);var i=r(669);var a=r(8502);var o=r(195);var l=r(5329);var c=r(5732);var p=r(4449);const u=_debug()("babel:config:config-chain");function*buildPresetChain(e,t){const r=yield*d(e,t);if(!r)return null;return{plugins:dedupDescriptors(r.plugins),presets:dedupDescriptors(r.presets),options:r.options.map((e=>normalizeOptions(e))),files:new Set}}const d=t.buildPresetChainWalker=makeChainWalker({root:e=>f(e),env:(e,t)=>h(e)(t),overrides:(e,t)=>m(e)(t),overridesEnv:(e,t,r)=>y(e)(t)(r),createLogger:()=>()=>{}});const f=(0,c.makeWeakCacheSync)((e=>buildRootDescriptors(e,e.alias,p.createUncachedDescriptors)));const h=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>buildEnvDescriptors(e,e.alias,p.createUncachedDescriptors,t)))));const m=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>buildOverrideDescriptors(e,e.alias,p.createUncachedDescriptors,t)))));const y=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>(0,c.makeStrongCacheSync)((r=>buildOverrideEnvDescriptors(e,e.alias,p.createUncachedDescriptors,t,r)))))));function*buildRootChain(e,t){let r,n;const s=new i.ConfigPrinter;const a=yield*S({options:e,dirname:t.cwd},t,undefined,s);if(!a)return null;const o=yield*s.output();let c;if(typeof e.configFile==="string"){c=yield*(0,l.loadConfig)(e.configFile,t.cwd,t.envName,t.caller)}else if(e.configFile!==false){c=yield*(0,l.findRootConfig)(t.root,t.envName,t.caller)}let{babelrc:p,babelrcRoots:u}=e;let d=t.cwd;const f=emptyChain();const h=new i.ConfigPrinter;if(c){const e=g(c);const n=yield*loadFileChain(e,t,undefined,h);if(!n)return null;r=yield*h.output();if(p===undefined){p=e.options.babelrc}if(u===undefined){d=e.dirname;u=e.options.babelrcRoots}mergeChain(f,n)}let m,y;let T=false;const x=emptyChain();if((p===true||p===undefined)&&typeof t.filename==="string"){const e=yield*(0,l.findPackageData)(t.filename);if(e&&babelrcLoadEnabled(t,e,u,d)){({ignore:m,config:y}=yield*(0,l.findRelativeConfig)(e,t.envName,t.caller));if(m){x.files.add(m.filepath)}if(m&&shouldIgnore(t,m.ignore,null,m.dirname)){T=true}if(y&&!T){const e=b(y);const r=new i.ConfigPrinter;const s=yield*loadFileChain(e,t,undefined,r);if(!s){T=true}else{n=yield*r.output();mergeChain(x,s)}}if(y&&T){x.files.add(y.filepath)}}}if(t.showConfig){console.log(`Babel configs on "${t.filename}" (ascending priority):\n`+[r,n,o].filter((e=>!!e)).join("\n\n")+"\n-----End Babel configs-----")}const E=mergeChain(mergeChain(mergeChain(emptyChain(),f),x),a);return{plugins:T?[]:dedupDescriptors(E.plugins),presets:T?[]:dedupDescriptors(E.presets),options:T?[]:E.options.map((e=>normalizeOptions(e))),fileHandling:T?"ignored":"transpile",ignore:m||undefined,babelrc:y||undefined,config:c||undefined,files:E.files}}function babelrcLoadEnabled(e,t,r,n){if(typeof r==="boolean")return r;const i=e.root;if(r===undefined){return t.directories.includes(i)}let a=r;if(!Array.isArray(a)){a=[a]}a=a.map((e=>typeof e==="string"?_path().resolve(n,e):e));if(a.length===1&&a[0]===i){return t.directories.includes(i)}return a.some((r=>{if(typeof r==="string"){r=(0,s.default)(r,n)}return t.directories.some((t=>matchPattern(r,n,t,e)))}))}const g=(0,c.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("configfile",e.options,e.filepath)})));const b=(0,c.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("babelrcfile",e.options,e.filepath)})));const T=(0,c.makeWeakCacheSync)((e=>({filepath:e.filepath,dirname:e.dirname,options:(0,n.validate)("extendsfile",e.options,e.filepath)})));const S=makeChainWalker({root:e=>buildRootDescriptors(e,"base",p.createCachedDescriptors),env:(e,t)=>buildEnvDescriptors(e,"base",p.createCachedDescriptors,t),overrides:(e,t)=>buildOverrideDescriptors(e,"base",p.createCachedDescriptors,t),overridesEnv:(e,t,r)=>buildOverrideEnvDescriptors(e,"base",p.createCachedDescriptors,t,r),createLogger:(e,t,r)=>buildProgrammaticLogger(e,t,r)});const x=makeChainWalker({root:e=>E(e),env:(e,t)=>P(e)(t),overrides:(e,t)=>v(e)(t),overridesEnv:(e,t,r)=>A(e)(t)(r),createLogger:(e,t,r)=>buildFileLogger(e.filepath,t,r)});function*loadFileChain(e,t,r,n){const s=yield*x(e,t,r,n);s==null||s.files.add(e.filepath);return s}const E=(0,c.makeWeakCacheSync)((e=>buildRootDescriptors(e,e.filepath,p.createUncachedDescriptors)));const P=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>buildEnvDescriptors(e,e.filepath,p.createUncachedDescriptors,t)))));const v=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>buildOverrideDescriptors(e,e.filepath,p.createUncachedDescriptors,t)))));const A=(0,c.makeWeakCacheSync)((e=>(0,c.makeStrongCacheSync)((t=>(0,c.makeStrongCacheSync)((r=>buildOverrideEnvDescriptors(e,e.filepath,p.createUncachedDescriptors,t,r)))))));function buildFileLogger(e,t,r){if(!r){return()=>{}}return r.configure(t.showConfig,i.ChainFormatter.Config,{filepath:e})}function buildRootDescriptors({dirname:e,options:t},r,n){return n(e,t,r)}function buildProgrammaticLogger(e,t,r){var n;if(!r){return()=>{}}return r.configure(t.showConfig,i.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name})}function buildEnvDescriptors({dirname:e,options:t},r,n,s){var i;const a=(i=t.env)==null?void 0:i[s];return a?n(e,a,`${r}.env["${s}"]`):null}function buildOverrideDescriptors({dirname:e,options:t},r,n,s){var i;const a=(i=t.overrides)==null?void 0:i[s];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${s}]`)}function buildOverrideEnvDescriptors({dirname:e,options:t},r,n,s,i){var a,o;const l=(a=t.overrides)==null?void 0:a[s];if(!l)throw new Error("Assertion failure - missing override");const c=(o=l.env)==null?void 0:o[i];return c?n(e,c,`${r}.overrides[${s}].env["${i}"]`):null}function makeChainWalker({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*chainWalker(i,a,o=new Set,l){const{dirname:c}=i;const p=[];const u=e(i);if(configIsApplicable(u,c,a,i.filepath)){p.push({config:u,envName:undefined,index:undefined});const e=t(i,a.envName);if(e&&configIsApplicable(e,c,a,i.filepath)){p.push({config:e,envName:a.envName,index:undefined})}(u.options.overrides||[]).forEach(((e,t)=>{const s=r(i,t);if(configIsApplicable(s,c,a,i.filepath)){p.push({config:s,index:t,envName:undefined});const e=n(i,t,a.envName);if(e&&configIsApplicable(e,c,a,i.filepath)){p.push({config:e,index:t,envName:a.envName})}}}))}if(p.some((({config:{options:{ignore:e,only:t}}})=>shouldIgnore(a,e,t,c)))){return null}const d=emptyChain();const f=s(i,a,l);for(const{config:e,index:t,envName:r}of p){if(!(yield*mergeExtendsChain(d,e.options,c,a,o,l))){return null}f(e,t,r);yield*mergeChainOpts(d,e)}return d}}function*mergeExtendsChain(e,t,r,n,s,i){if(t.extends===undefined)return true;const a=yield*(0,l.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(a)){throw new Error(`Configuration cycle detected loading ${a.filepath}.\n`+`File already loaded following the config chain:\n`+Array.from(s,(e=>` - ${e.filepath}`)).join("\n"))}s.add(a);const o=yield*loadFileChain(T(a),n,s,i);s.delete(a);if(!o)return false;mergeChain(e,o);return true}function mergeChain(e,t){e.options.push(...t.options);e.plugins.push(...t.plugins);e.presets.push(...t.presets);for(const r of t.files){e.files.add(r)}return e}function*mergeChainOpts(e,{options:t,plugins:r,presets:n}){e.options.push(t);e.plugins.push(...yield*r());e.presets.push(...yield*n());return e}function emptyChain(){return{options:[],presets:[],plugins:[],files:new Set}}function normalizeOptions(e){const t=Object.assign({},e);delete t.extends;delete t.env;delete t.overrides;delete t.plugins;delete t.presets;delete t.passPerPreset;delete t.ignore;delete t.only;delete t.test;delete t.include;delete t.exclude;if(hasOwnProperty.call(t,"sourceMap")){t.sourceMaps=t.sourceMap;delete t.sourceMap}return t}function dedupDescriptors(e){const t=new Map;const r=[];for(const n of e){if(typeof n.value==="function"){const e=n.value;let s=t.get(e);if(!s){s=new Map;t.set(e,s)}let i=s.get(n.name);if(!i){i={value:n};r.push(i);if(!n.ownPass)s.set(n.name,i)}else{i.value=n}}else{r.push({value:n})}}return r.reduce(((e,t)=>{e.push(t.value);return e}),[])}function configIsApplicable({options:e},t,r,n){return(e.test===undefined||configFieldIsApplicable(r,e.test,t,n))&&(e.include===undefined||configFieldIsApplicable(r,e.include,t,n))&&(e.exclude===undefined||!configFieldIsApplicable(r,e.exclude,t,n))}function configFieldIsApplicable(e,t,r,n){const s=Array.isArray(t)?t:[t];return matchesPatterns(e,s,r,n)}function ignoreListReplacer(e,t){if(t instanceof RegExp){return String(t)}return t}function shouldIgnore(e,t,r,n){if(t&&matchesPatterns(e,t,n)){var s;const r=`No config is applied to "${(s=e.filename)!=null?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,ignoreListReplacer)}\` from "${n}"`;u(r);if(e.showConfig){console.log(r)}return true}if(r&&!matchesPatterns(e,r,n)){var i;const t=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,ignoreListReplacer)}\` from "${n}"`;u(t);if(e.showConfig){console.log(t)}return true}return false}function matchesPatterns(e,t,r,n){return t.some((t=>matchPattern(t,r,e.filename,e,n)))}function matchPattern(e,t,r,n,i){if(typeof e==="function"){return!!(0,a.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller})}if(typeof r!=="string"){throw new o.default(`Configuration contains string/RegExp pattern, but no filename was passed to Babel`,i)}if(typeof e==="string"){e=(0,s.default)(e,t)}return e.test(r)}0&&0},4449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createCachedDescriptors=createCachedDescriptors;t.createDescriptor=createDescriptor;t.createUncachedDescriptors=createUncachedDescriptors;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(9516);var s=r(5329);var i=r(8131);var a=r(5732);var o=r(78);function isEqualDescriptor(e,t){var r,n,s,i;return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&((r=e.file)==null?void 0:r.request)===((n=t.file)==null?void 0:n.request)&&((s=e.file)==null?void 0:s.resolved)===((i=t.file)==null?void 0:i.resolved)}function*handlerOf(e){return e}function optionsWithResolvedBrowserslistConfigFile(e,t){if(typeof e.browserslistConfigFile==="string"){e.browserslistConfigFile=(0,o.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)}return e}function createCachedDescriptors(e,t,r){const{plugins:n,presets:s,passPerPreset:i}=t;return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:n?()=>u(n,e)(r):()=>handlerOf([]),presets:s?()=>c(s,e)(r)(!!i):()=>handlerOf([])}}function createUncachedDescriptors(e,t,r){return{options:optionsWithResolvedBrowserslistConfigFile(t,e),plugins:(0,n.once)((()=>createPluginDescriptors(t.plugins||[],e,r))),presets:(0,n.once)((()=>createPresetDescriptors(t.presets||[],e,r,!!t.passPerPreset)))}}const l=new WeakMap;const c=(0,a.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,a.makeStrongCacheSync)((t=>(0,a.makeStrongCache)((function*(n){const s=yield*createPresetDescriptors(e,r,t,n);return s.map((e=>loadCachedDescriptor(l,e)))}))))}));const p=new WeakMap;const u=(0,a.makeWeakCacheSync)(((e,t)=>{const r=t.using((e=>e));return(0,a.makeStrongCache)((function*(t){const n=yield*createPluginDescriptors(e,r,t);return n.map((e=>loadCachedDescriptor(p,e)))}))}));const d={};function loadCachedDescriptor(e,t){const{value:r,options:n=d}=t;if(n===false)return t;let s=e.get(r);if(!s){s=new WeakMap;e.set(r,s)}let i=s.get(n);if(!i){i=[];s.set(n,i)}if(!i.includes(t)){const e=i.filter((e=>isEqualDescriptor(e,t)));if(e.length>0){return e[0]}i.push(t)}return t}function*createPresetDescriptors(e,t,r,n){return yield*createDescriptors("preset",e,t,r,n)}function*createPluginDescriptors(e,t,r){return yield*createDescriptors("plugin",e,t,r)}function*createDescriptors(e,t,r,n,s){const i=yield*_gensync().all(t.map(((t,i)=>createDescriptor(t,r,{type:e,alias:`${n}$${i}`,ownPass:!!s}))));assertNoDuplicates(i);return i}function*createDescriptor(e,t,{type:r,alias:n,ownPass:a}){const o=(0,i.getItemDescriptor)(e);if(o){return o}let l;let c;let p=e;if(Array.isArray(p)){if(p.length===3){[p,c,l]=p}else{[p,c]=p}}let u=undefined;let d=null;if(typeof p==="string"){if(typeof r!=="string"){throw new Error("To resolve a string-based item, the type of item must be given")}const e=r==="plugin"?s.loadPlugin:s.loadPreset;const n=p;({filepath:d,value:p}=yield*e(p,t));u={request:n,resolved:d}}if(!p){throw new Error(`Unexpected falsy value: ${String(p)}`)}if(typeof p==="object"&&p.__esModule){if(p.default){p=p.default}else{throw new Error("Must export a default export when using ES6 modules.")}}if(typeof p!=="object"&&typeof p!=="function"){throw new Error(`Unsupported format: ${typeof p}. Expected an object or a function.`)}if(d!==null&&typeof p==="object"&&p){throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${d}`)}return{name:l,alias:d||n,value:p,options:c,dirname:t,ownPass:a,file:u}}function assertNoDuplicates(e){const t=new Map;for(const r of e){if(typeof r.value!=="function")continue;let n=t.get(r.value);if(!n){n=new Set;t.set(r.value,n)}if(n.has(r.name)){const t=e.filter((e=>e.value===r.value));throw new Error([`Duplicate plugin/preset detected.`,`If you'd like to use two separate instances of a plugin,`,`they need separate names, e.g.`,``,` plugins: [`,` ['some-plugin', {}],`,` ['some-plugin', {}, 'some unique name'],`,` ]`,``,`Duplicates detected are:`,`${JSON.stringify(t,null,2)}`].join("\n"))}n.add(r.name)}}0&&0},8741:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ROOT_CONFIG_FILENAMES=void 0;t.findConfigUpwards=findConfigUpwards;t.findRelativeConfig=findRelativeConfig;t.findRootConfig=findRootConfig;t.loadConfig=loadConfig;t.resolveShowConfigPath=resolveShowConfigPath;function _debug(){const e=r(6937);_debug=function(){return e};return e}function _fs(){const e=r(7147);_fs=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _json(){const e=r(8310);_json=function(){return e};return e}function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(5732);var s=r(3165);var i=r(4207);var a=r(7416);var o=r(5076);var l=r(195);var c=r(409);r(8188);var p=r(8502);var u=r(7987);const d=_debug()("babel:config:loading:files:configuration");const f=t.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts"];const h=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"];const m=".babelignore";const y=(0,n.makeWeakCache)((function*runConfig(e,t){yield*[];return{options:(0,p.endHiddenCallStack)(e)((0,s.makeConfigAPI)(t)),cacheNeedsConfiguration:!t.configured()}}));function*readConfigCode(e,t){if(!_fs().existsSync(e))return null;let r=yield*(0,a.default)(e,(yield*(0,u.isAsync)())?"auto":"require","You appear to be using a native ECMAScript module configuration "+"file, which is only supported when running Babel asynchronously "+"or when using the Node.js `--experimental-require-module` flag.","You appear to be using a configuration file that contains top-level "+"await, which is only supported when running Babel asynchronously.");let n=false;if(typeof r==="function"){({options:r,cacheNeedsConfiguration:n}=yield*y(r,t))}if(!r||typeof r!=="object"||Array.isArray(r)){throw new l.default(`Configuration should be an exported JavaScript object.`,e)}if(typeof r.then==="function"){r.catch==null||r.catch((()=>{}));throw new l.default(`You appear to be using an async configuration, `+`which your current version of Babel does not support. `+`We may add support for this in the future, `+`but if you're on the most recent version of @babel/core and still `+`seeing this error, then you'll need to synchronously return your config.`,e)}if(n)throwConfigError(e);return buildConfigFileObject(r,e)}const g=new WeakMap;function buildConfigFileObject(e,t){let r=g.get(e);if(!r){g.set(e,r=new Map)}let n=r.get(t);if(!n){n={filepath:t,dirname:_path().dirname(t),options:e};r.set(t,n)}return n}const b=(0,n.makeWeakCacheSync)((e=>{const t=e.options["babel"];if(t===undefined)return null;if(typeof t!=="object"||Array.isArray(t)||t===null){throw new l.default(`.babel property must be an object`,e.filepath)}return{filepath:e.filepath,dirname:e.dirname,options:t}}));const T=(0,i.makeStaticFileCache)(((e,t)=>{let r;try{r=_json().parse(t)}catch(t){throw new l.default(`Error while parsing config - ${t.message}`,e)}if(!r)throw new l.default(`No config detected`,e);if(typeof r!=="object"){throw new l.default(`Config returned typeof ${typeof r}`,e)}if(Array.isArray(r)){throw new l.default(`Expected config object but found array`,e)}delete r["$schema"];return{filepath:e,dirname:_path().dirname(e),options:r}}));const S=(0,i.makeStaticFileCache)(((e,t)=>{const r=_path().dirname(e);const n=t.split("\n").map((e=>e.replace(/#.*$/,"").trim())).filter(Boolean);for(const t of n){if(t[0]==="!"){throw new l.default(`Negation of file paths is not supported.`,e)}}return{filepath:e,dirname:_path().dirname(e),ignore:n.map((e=>(0,o.default)(e,r)))}}));function findConfigUpwards(e){let t=e;for(;;){for(const e of f){if(_fs().existsSync(_path().join(t,e))){return t}}const e=_path().dirname(t);if(t===e)break;t=e}return null}function*findRelativeConfig(e,t,r){let n=null;let s=null;const i=_path().dirname(e.filepath);for(const o of e.directories){if(!n){var a;n=yield*loadOneConfig(h,o,t,r,((a=e.pkg)==null?void 0:a.dirname)===o?b(e.pkg):null)}if(!s){const e=_path().join(o,m);s=yield*S(e);if(s){d("Found ignore %o from %o.",s.filepath,i)}}}return{config:n,ignore:s}}function findRootConfig(e,t,r){return loadOneConfig(f,e,t,r)}function*loadOneConfig(e,t,r,n,s=null){const i=yield*_gensync().all(e.map((e=>readConfig(_path().join(t,e),r,n))));const a=i.reduce(((e,r)=>{if(r&&e){throw new l.default(`Multiple configuration files found. Please remove one:\n`+` - ${_path().basename(e.filepath)}\n`+` - ${r.filepath}\n`+`from ${t}`)}return r||e}),s);if(a){d("Found configuration %o from %o.",a.filepath,t)}return a}function*loadConfig(e,t,n,s){const i=(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?require.resolve:(e,{paths:[t]},n=r(8188))=>{let s=n._findPath(e,n._nodeModulePaths(t).concat(t));if(s)return s;s=new Error(`Cannot resolve module '${e}'`);s.code="MODULE_NOT_FOUND";throw s})(e,{paths:[t]});const a=yield*readConfig(i,n,s);if(!a){throw new l.default(`Config file contains no configuration data`,i)}d("Loaded config %o from %o.",e,t);return a}function readConfig(e,t,r){const n=_path().extname(e);switch(n){case".js":case".cjs":case".mjs":case".ts":case".cts":case".mts":return readConfigCode(e,{envName:t,caller:r});default:return T(e)}}function*resolveShowConfigPath(e){const t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){const r=_path().resolve(e,t);const n=yield*c.stat(r);if(!n.isFile()){throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`)}return r}return null}function throwConfigError(e){throw new l.default(`Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured\nfor various types of caching, using the first param of their handler functions:\n\nmodule.exports = function(api) {\n // The API exposes the following:\n\n // Cache the returned value forever and don't call this function again.\n api.cache(true);\n\n // Don't cache at all. Not recommended because it will be very slow.\n api.cache(false);\n\n // Cached based on the value of some function. If this function returns a value different from\n // a previously-encountered value, the plugins will re-evaluate.\n var env = api.cache(() => process.env.NODE_ENV);\n\n // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for\n // any possible NODE_ENV value that might come up during plugin execution.\n var isProd = api.cache(() => process.env.NODE_ENV === "production");\n\n // .cache(fn) will perform a linear search though instances to find the matching plugin based\n // based on previous instantiated plugins. If you want to recreate the plugin and discard the\n // previous instance whenever something changes, you may use:\n var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");\n\n // Note, we also expose the following more-verbose versions of the above examples:\n api.cache.forever(); // api.cache(true)\n api.cache.never(); // api.cache(false)\n api.cache.using(fn); // api.cache(fn)\n\n // Return the value that will be cached.\n return { };\n};`,e)}0&&0},5329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ROOT_CONFIG_FILENAMES",{enumerable:true,get:function(){return s.ROOT_CONFIG_FILENAMES}});Object.defineProperty(t,"findConfigUpwards",{enumerable:true,get:function(){return s.findConfigUpwards}});Object.defineProperty(t,"findPackageData",{enumerable:true,get:function(){return n.findPackageData}});Object.defineProperty(t,"findRelativeConfig",{enumerable:true,get:function(){return s.findRelativeConfig}});Object.defineProperty(t,"findRootConfig",{enumerable:true,get:function(){return s.findRootConfig}});Object.defineProperty(t,"loadConfig",{enumerable:true,get:function(){return s.loadConfig}});Object.defineProperty(t,"loadPlugin",{enumerable:true,get:function(){return i.loadPlugin}});Object.defineProperty(t,"loadPreset",{enumerable:true,get:function(){return i.loadPreset}});Object.defineProperty(t,"resolvePlugin",{enumerable:true,get:function(){return i.resolvePlugin}});Object.defineProperty(t,"resolvePreset",{enumerable:true,get:function(){return i.resolvePreset}});Object.defineProperty(t,"resolveShowConfigPath",{enumerable:true,get:function(){return s.resolveShowConfigPath}});var n=r(847);var s=r(8741);var i=r(266);({});0&&0},7416:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadCodeDefault;t.supportsESM=void 0;var n=r(7987);function _path(){const e=r(1017);_path=function(){return e};return e}function _url(){const e=r(7310);_url=function(){return e};return e}r(8188);function _semver(){const e=r(7849);_semver=function(){return e};return e}function _debug(){const e=r(6937);_debug=function(){return e};return e}var s=r(8502);var i=r(195);var a=r(7111);function asyncGeneratorStep(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,s)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(void 0)}))}}const o=_debug()("babel:config:loading:files:module-types");{try{var l=r(1824)}catch(e){}}const c=t.supportsESM=_semver().satisfies(process.versions.node,"^12.17 || >=13.2");const p=new Set;function loadCjsDefault(e){if(p.has(e)){o("Auto-ignoring usage of config %o.",e);return{}}let t;try{p.add(e);t=(0,s.endHiddenCallStack)(require)(e)}finally{p.delete(e)}{return t!=null&&(t.__esModule||t[Symbol.toStringTag]==="Module")?t.default||(arguments[1]?t:undefined):t}}const u=(0,s.endHiddenCallStack)(function(){var e=_asyncToGenerator((function*(e){const t=(0,_url().pathToFileURL)(e).toString()+"?import";{if(!l){throw new i.default("Internal error: Native ECMAScript modules aren't supported by this platform.\n",e)}return yield l(t)}}));function loadMjsFromPath(t){return e.apply(this,arguments)}return loadMjsFromPath}());const d={".js":"unknown",".mjs":"esm",".cjs":"cjs",".ts":"unknown",".mts":"esm",".cts":"cjs"};const f=new Set;function*loadCodeDefault(e,t,r,s){let a;const o=_path().extname(e);const l=o===".ts"||o===".cts"||o===".mts";const c=d[hasOwnProperty.call(d,o)?o:".js"];const p=`${t} ${c}`;switch(p){case"require cjs":case"auto cjs":if(l){return ensureTsSupport(e,o,(()=>loadCjsDefault(e)))}else{return loadCjsDefault(e,arguments[2])}case"auto unknown":case"require unknown":case"require esm":try{if(l){return ensureTsSupport(e,o,(()=>loadCjsDefault(e)))}else{return loadCjsDefault(e,arguments[2])}}catch(t){if(t.code==="ERR_REQUIRE_ASYNC_MODULE"||t.code==="ERR_REQUIRE_CYCLE_MODULE"&&f.has(e)){f.add(e);if(!(a!=null?a:a=yield*(0,n.isAsync)())){throw new i.default(s,e)}}else if(t.code==="ERR_REQUIRE_ESM"||c==="esm"){}else{throw t}}case"auto esm":if(a!=null?a:a=yield*(0,n.isAsync)()){const t=l?ensureTsSupport(e,o,(()=>u(e))):u(e);return(yield*(0,n.waitFor)(t)).default}throw new i.default(r,e);default:throw new Error("Internal Babel error: unreachable code.")}}function ensureTsSupport(e,t,n){if(require.extensions[".ts"]||require.extensions[".cts"]||require.extensions[".mts"]){return n()}if(t!==".cts"){throw new i.default(`You are using a ${t} config file, but Babel only supports transpiling .cts configs. Either:\n- Use a .cts config file\n- Update to Node.js 23.6.0, which has native TypeScript support\n- Install ts-node to transpile ${t} files on the fly`,e)}const s={babelrc:false,configFile:false,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:_path().basename(e),presets:[[getTSPreset(e),Object.assign({onlyRemoveTypeImports:true,optimizeConstEnums:true},{allowDeclareFields:true})]]};let handler=function(e,t){if(handler&&t.endsWith(".cts")){try{return e._compile((0,a.transformFileSync)(t,Object.assign({},s,{filename:t})).code,t)}catch(e){const t=r(1628);if(_semver().lt(t.version,"7.21.4")){console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.")}throw e}}return require.extensions[".js"](e,t)};require.extensions[t]=handler;try{return n()}finally{if(require.extensions[t]===handler)delete require.extensions[t];handler=undefined}}function getTSPreset(e){try{return r(8782)}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t;let r="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";{if(process.versions.pnp){r+=`\nIf you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:\n\npackageExtensions:\n\t"@babel/core@*":\n\t\tpeerDependencies:\n\t\t\t"@babel/preset-typescript": "*"\n`}}throw new i.default(r,e)}}0&&0},847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findPackageData=findPackageData;function _path(){const e=r(1017);_path=function(){return e};return e}var n=r(4207);var s=r(195);const i="package.json";const a=(0,n.makeStaticFileCache)(((e,t)=>{let r;try{r=JSON.parse(t)}catch(t){throw new s.default(`Error while parsing JSON - ${t.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!=="object"){throw new s.default(`Config returned typeof ${typeof r}`,e)}if(Array.isArray(r)){throw new s.default(`Expected config object but found array`,e)}return{filepath:e,dirname:_path().dirname(e),options:r}}));function*findPackageData(e){let t=null;const r=[];let n=true;let s=_path().dirname(e);while(!t&&_path().basename(s)!=="node_modules"){r.push(s);t=yield*a(_path().join(s,i));const e=_path().dirname(s);if(s===e){n=false;break}s=e}return{filepath:e,directories:r,pkg:t,isPackage:n}}0&&0},266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.loadPlugin=loadPlugin;t.loadPreset=loadPreset;t.resolvePreset=t.resolvePlugin=void 0;function _debug(){const e=r(6937);_debug=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}var n=r(7987);var s=r(7416);function _url(){const e=r(7310);_url=function(){return e};return e}var i=r(2044);r(8188);function _fs(){const e=r(7147);_fs=function(){return e};return e}const a=_debug()("babel:config:loading:files:plugins");const o=/^module:/;const l=/^(?!@|module:|[^/]+\/|babel-plugin-)/;const c=/^(?!@|module:|[^/]+\/|babel-preset-)/;const p=/^(@babel\/)(?!plugin-|[^/]+\/)/;const u=/^(@babel\/)(?!preset-|[^/]+\/)/;const d=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/;const f=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/;const h=/^(@(?!babel$)[^/]+)$/;const m=t.resolvePlugin=resolveStandardizedName.bind(null,"plugin");const y=t.resolvePreset=resolveStandardizedName.bind(null,"preset");function*loadPlugin(e,t){const{filepath:r,loader:s}=m(e,t,yield*(0,n.isAsync)());const i=yield*requireModule("plugin",s,r);a("Loaded plugin %o from %o.",e,t);return{filepath:r,value:i}}function*loadPreset(e,t){const{filepath:r,loader:s}=y(e,t,yield*(0,n.isAsync)());const i=yield*requireModule("preset",s,r);a("Loaded preset %o from %o.",e,t);return{filepath:r,value:i}}function standardizeName(e,t){if(_path().isAbsolute(t))return t;const r=e==="preset";return t.replace(r?c:l,`babel-${e}-`).replace(r?u:p,`$1${e}-`).replace(r?f:d,`$1babel-${e}-`).replace(h,`$1/babel-${e}`).replace(o,"")}function*resolveAlternativesHelper(e,t){const r=standardizeName(e,t);const{error:n,value:s}=yield r;if(!n)return s;if(n.code!=="MODULE_NOT_FOUND")throw n;if(r!==t&&!(yield t).error){n.message+=`\n- If you want to resolve "${t}", use "module:${t}"`}if(!(yield standardizeName(e,"@babel/"+t)).error){n.message+=`\n- Did you mean "@babel/${t}"?`}const i=e==="preset"?"plugin":"preset";if(!(yield standardizeName(i,t)).error){n.message+=`\n- Did you accidentally pass a ${i} as a ${e}?`}if(e==="plugin"){const e=r.replace("-proposal-","-transform-");if(e!==r&&!(yield e).error){n.message+=`\n- Did you mean "${e}"?`}}n.message+=`\n\nMake sure that all the Babel plugins and presets you are using\nare defined as dependencies or devDependencies in your package.json\nfile. It's possible that the missing plugin is loaded by a preset\nyou are using that forgot to add the plugin to its dependencies: you\ncan workaround this problem by explicitly adding the missing package\nto your top-level package.json.\n`;throw n}function tryRequireResolve(e,t){try{if(t){return{error:null,value:(((e,t)=>(e=e.split("."),t=t.split("."),+e[0]>+t[0]||e[0]==t[0]&&+e[1]>=+t[1]))(process.versions.node,"8.9")?require.resolve:(e,{paths:[t]},n=r(8188))=>{let s=n._findPath(e,n._nodeModulePaths(t).concat(t));if(s)return s;s=new Error(`Cannot resolve module '${e}'`);s.code="MODULE_NOT_FOUND";throw s})(e,{paths:[t]})}}else{return{error:null,value:require.resolve(e)}}}catch(e){return{error:e,value:null}}}function tryImportMetaResolve(e,t){try{return{error:null,value:(0,i.resolve)(e,t)}}catch(e){return{error:e,value:null}}}function resolveStandardizedNameForRequire(e,t,r){const n=resolveAlternativesHelper(e,t);let s=n.next();while(!s.done){s=n.next(tryRequireResolve(s.value,r))}return{loader:"require",filepath:s.value}}function resolveStandardizedNameForImport(e,t,r){const n=(0,_url().pathToFileURL)(_path().join(r,"./babel-virtual-resolve-base.js")).href;const s=resolveAlternativesHelper(e,t);let i=s.next();while(!i.done){i=s.next(tryImportMetaResolve(i.value,n))}return{loader:"auto",filepath:(0,_url().fileURLToPath)(i.value)}}function resolveStandardizedName(e,t,r,n){if(!s.supportsESM||!n){return resolveStandardizedNameForRequire(e,t,r)}try{const n=resolveStandardizedNameForImport(e,t,r);if(!(0,_fs().existsSync)(n.filepath)){throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"})}return n}catch(n){try{return resolveStandardizedNameForRequire(e,t,r)}catch(e){if(n.type==="MODULE_NOT_FOUND")throw n;if(e.type==="MODULE_NOT_FOUND")throw e;throw n}}}{var g=new Set}function*requireModule(e,t,r){{if(!(yield*(0,n.isAsync)())&&g.has(r)){throw new Error(`Reentrant ${e} detected trying to load "${r}". This module is not ignored `+"and is trying to load itself while compiling itself, leading to a dependency cycle. "+'We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.')}}try{{g.add(r)}{return yield*(0,s.default)(r,t,`You appear to be using a native ECMAScript module ${e}, `+"which is only supported when running Babel asynchronously "+"or when using the Node.js `--experimental-require-module` flag.",`You appear to be using a ${e} that contains top-level await, `+"which is only supported when running Babel asynchronously.",true)}}catch(e){e.message=`[BABEL]: ${e.message} (While processing: ${r})`;throw e}finally{{g.delete(r)}}}0&&0},4207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeStaticFileCache=makeStaticFileCache;var n=r(5732);var s=r(409);function _fs2(){const e=r(7147);_fs2=function(){return e};return e}function makeStaticFileCache(e){return(0,n.makeStrongCache)((function*(t,r){const n=r.invalidate((()=>fileMtime(t)));if(n===null){return null}return e(t,yield*s.readFile(t,"utf8"))}))}function fileMtime(e){if(!_fs2().existsSync(e))return null;try{return+_fs2().statSync(e).mtime}catch(e){if(e.code!=="ENOENT"&&e.code!=="ENOTDIR")throw e}return null}0&&0},1660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(7987);var s=r(545);var i=r(2358);var a=r(2406);var o=r(8131);var l=r(9646);var c=r(8634);function _traverse(){const e=r(8026);_traverse=function(){return e};return e}var p=r(5732);var u=r(4320);var d=r(2088);var f=r(3165);var h=r(3019);var m=r(195);var y=t["default"]=_gensync()((function*loadFullConfig(e){var t;const r=yield*(0,h.default)(e);if(!r){return null}const{options:n,context:i,fileHandling:a}=r;if(a==="ignored"){return null}const l={};const{plugins:p,presets:d}=n;if(!p||!d){throw new Error("Assertion failure - plugins and presets exist")}const f=Object.assign({},i,{targets:n.targets});const toDescriptor=e=>{const t=(0,o.getItemDescriptor)(e);if(!t){throw new Error("Assertion failure - must be config item")}return t};const m=d.map(toDescriptor);const y=p.map(toDescriptor);const g=[[]];const b=[];const T=[];const S=yield*enhanceError(i,(function*recursePresetDescriptors(e,t){const r=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.options!==false){try{var n=yield*loadPresetDescriptor(i,f)}catch(t){if(t.code==="BABEL_UNKNOWN_OPTION"){(0,u.checkNoUnwrappedItemOptionPairs)(e,s,"preset",t)}throw t}T.push(n.externalDependencies);if(i.ownPass){r.push({preset:n.chain,pass:[]})}else{r.unshift({preset:n.chain,pass:t})}}}if(r.length>0){g.splice(1,0,...r.map((e=>e.pass)).filter((e=>e!==t)));for(const{preset:e,pass:t}of r){if(!e)return true;t.push(...e.plugins);const r=yield*recursePresetDescriptors(e.presets,t);if(r)return true;e.options.forEach((e=>{(0,s.mergeOptions)(l,e)}))}}}))(m,g[0]);if(S)return null;const x=l;(0,s.mergeOptions)(x,n);const E=Object.assign({},f,{assumptions:(t=x.assumptions)!=null?t:{}});yield*enhanceError(i,(function*loadPluginDescriptors(){g[0].unshift(...y);for(const t of g){const r=[];b.push(r);for(let n=0;n<t.length;n++){const s=t[n];if(s.options!==false){try{var e=yield*loadPluginDescriptor(s,E)}catch(e){if(e.code==="BABEL_UNKNOWN_PLUGIN_PROPERTY"){(0,u.checkNoUnwrappedItemOptionPairs)(t,n,"plugin",e)}throw e}r.push(e);T.push(e.externalDependencies)}}}}))();x.plugins=b[0];x.presets=b.slice(1).filter((e=>e.length>0)).map((e=>({plugins:e})));x.passPerPreset=x.presets.length>0;return{options:x,passes:b,externalDependencies:(0,c.finalize)(T)}}));function enhanceError(e,t){return function*(r,n){try{return yield*t(r,n)}catch(t){if(!/^\[BABEL\]/.test(t.message)){var s;t.message=`[BABEL] ${(s=e.filename)!=null?s:"unknown file"}: ${t.message}`}throw t}}}const makeDescriptorLoader=e=>(0,p.makeWeakCache)((function*({value:t,options:r,dirname:s,alias:a},o){if(r===false)throw new Error("Assertion failure");r=r||{};const l=[];let p=t;if(typeof t==="function"){const c=(0,n.maybeAsync)(t,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);const u=Object.assign({},i,e(o,l));try{p=yield*c(u,r,s)}catch(e){if(a){e.message+=` (While processing: ${JSON.stringify(a)})`}throw e}}if(!p||typeof p!=="object"){throw new Error("Plugin/Preset did not return an object.")}if((0,n.isThenable)(p)){yield*[];throw new Error(`You appear to be using a promise as a plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, `+`you may need to upgrade your @babel/core version. `+`As an alternative, you can prefix the promise with "await". `+`(While processing: ${JSON.stringify(a)})`)}if(l.length>0&&(!o.configured()||o.mode()==="forever")){let e=`A plugin/preset has external untracked dependencies `+`(${l[0]}), but the cache `;if(!o.configured()){e+=`has not been configured to be invalidated when the external dependencies change. `}else{e+=` has been configured to never be invalidated. `}e+=`Plugins/presets should configure their cache to be invalidated when the external `+`dependencies change, for example using \`api.cache.invalidate(() => `+`statSync(filepath).mtimeMs)\` or \`api.cache.never()\`\n`+`(While processing: ${JSON.stringify(a)})`;throw new Error(e)}return{value:p,options:r,dirname:s,alias:a,externalDependencies:(0,c.finalize)(l)}}));const g=makeDescriptorLoader(f.makePluginAPI);const b=makeDescriptorLoader(f.makePresetAPI);const T=(0,p.makeWeakCache)((function*({value:e,options:t,dirname:r,alias:s,externalDependencies:i},o){const l=(0,d.validatePluginObject)(e);const p=Object.assign({},l);if(p.visitor){p.visitor=_traverse().default.explode(Object.assign({},p.visitor))}if(p.inherits){const e={name:undefined,alias:`${s}$inherits`,value:p.inherits,options:t,dirname:r};const a=yield*(0,n.forwardAsync)(loadPluginDescriptor,(t=>o.invalidate((r=>t(e,r)))));p.pre=chainMaybeAsync(a.pre,p.pre);p.post=chainMaybeAsync(a.post,p.post);p.manipulateOptions=chainMaybeAsync(a.manipulateOptions,p.manipulateOptions);p.visitor=_traverse().default.visitors.merge([a.visitor||{},p.visitor||{}]);if(a.externalDependencies.length>0){if(i.length===0){i=a.externalDependencies}else{i=(0,c.finalize)([i,a.externalDependencies])}}}return new a.default(p,t,s,i)}));function*loadPluginDescriptor(e,t){if(e.value instanceof a.default){if(e.options){throw new Error("Passed options to an existing Plugin instance will not work.")}return e.value}return yield*T(yield*g(e,t),t)}const needsFilename=e=>e&&typeof e!=="function";const validateIfOptionNeedsFilename=(e,t)=>{if(needsFilename(e.test)||needsFilename(e.include)||needsFilename(e.exclude)){const e=t.name?`"${t.name}"`:"/* your preset */";throw new m.default([`Preset ${e} requires a filename to be set when babel is called directly,`,`\`\`\``,`babel.transformSync(code, { filename: 'file.ts', presets: [${e}] });`,`\`\`\``,`See https://babeljs.io/docs/en/options#filename for more information.`].join("\n"))}};const validatePreset=(e,t,r)=>{if(!t.filename){var n;const{options:t}=e;validateIfOptionNeedsFilename(t,r);(n=t.overrides)==null||n.forEach((e=>validateIfOptionNeedsFilename(e,r)))}};const S=(0,p.makeWeakCacheSync)((({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,u.validate)("preset",e),alias:r,dirname:t,externalDependencies:n})));function*loadPresetDescriptor(e,t){const r=S(yield*b(e,t));validatePreset(r,t,e);return{chain:yield*(0,l.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function chainMaybeAsync(e,t){if(!e)return t;if(!t)return e;return function(...r){const n=e.apply(this,r);if(n&&typeof n.then==="function"){return n.then((()=>t.apply(this,r)))}return t.apply(this,r)}}0&&0},3165:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.makeConfigAPI=makeConfigAPI;t.makePluginAPI=makePluginAPI;t.makePresetAPI=makePresetAPI;function _semver(){const e=r(7849);_semver=function(){return e};return e}var n=r(2358);var s=r(5732);function makeConfigAPI(e){const env=t=>e.using((e=>{if(t===undefined)return e.envName;if(typeof t==="function"){return(0,s.assertSimpleType)(t(e.envName))}return(Array.isArray(t)?t:[t]).some((t=>{if(typeof t!=="string"){throw new Error("Unexpected non-string value")}return t===e.envName}))}));const caller=t=>e.using((e=>(0,s.assertSimpleType)(t(e.caller))));return{version:n.version,cache:e.simple(),env:env,async:()=>false,caller:caller,assertVersion:assertVersion}}function makePresetAPI(e,t){const targets=()=>JSON.parse(e.using((e=>JSON.stringify(e.targets))));const addExternalDependency=e=>{t.push(e)};return Object.assign({},makeConfigAPI(e),{targets:targets,addExternalDependency:addExternalDependency})}function makePluginAPI(e,t){const assumption=t=>e.using((e=>e.assumptions[t]));return Object.assign({},makePresetAPI(e,t),{assumption:assumption})}function assertVersion(e){if(typeof e==="number"){if(!Number.isInteger(e)){throw new Error("Expected string or integer value.")}e=`^${e}.0.0-0`}if(typeof e!=="string"){throw new Error("Expected string or integer value.")}if(e==="*"||_semver().satisfies(n.version,e))return;const t=Error.stackTraceLimit;if(typeof t==="number"&&t<25){Error.stackTraceLimit=25}const r=new Error(`Requires Babel "${e}", but was loaded with "${n.version}". `+`If you are sure you have a compatible version of @babel/core, `+`it is likely that something in your build process is loading the `+`wrong version. Inspect the stack trace of this error to look for `+`the first entry that doesn't mention "@babel/core" or "babel-core" `+`to see what is calling Babel.`);if(typeof t==="number"){Error.stackTraceLimit=t}throw Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:n.version,range:e})}0&&0},8634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.finalize=finalize;t.flattenToSet=flattenToSet;function finalize(e){return Object.freeze(e)}function flattenToSet(e){const t=new Set;const r=[e];while(r.length>0){for(const e of r.pop()){if(Array.isArray(e))r.push(e);else t.add(e)}}return t}0&&0},5723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getEnv=getEnv;function getEnv(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}0&&0},8842:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigItem=createConfigItem;t.createConfigItemAsync=createConfigItemAsync;t.createConfigItemSync=createConfigItemSync;Object.defineProperty(t,"default",{enumerable:true,get:function(){return n.default}});t.loadOptions=loadOptions;t.loadOptionsAsync=loadOptionsAsync;t.loadOptionsSync=loadOptionsSync;t.loadPartialConfig=loadPartialConfig;t.loadPartialConfigAsync=loadPartialConfigAsync;t.loadPartialConfigSync=loadPartialConfigSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(1660);var s=r(3019);var i=r(8131);var a=r(8502);const o=_gensync()(s.loadPartialConfig);function loadPartialConfigAsync(...e){return(0,a.beginHiddenCallStack)(o.async)(...e)}function loadPartialConfigSync(...e){return(0,a.beginHiddenCallStack)(o.sync)(...e)}function loadPartialConfig(e,t){if(t!==undefined){(0,a.beginHiddenCallStack)(o.errback)(e,t)}else if(typeof e==="function"){(0,a.beginHiddenCallStack)(o.errback)(undefined,e)}else{{return loadPartialConfigSync(e)}}}function*loadOptionsImpl(e){var t;const r=yield*(0,n.default)(e);return(t=r==null?void 0:r.options)!=null?t:null}const l=_gensync()(loadOptionsImpl);function loadOptionsAsync(...e){return(0,a.beginHiddenCallStack)(l.async)(...e)}function loadOptionsSync(...e){return(0,a.beginHiddenCallStack)(l.sync)(...e)}function loadOptions(e,t){if(t!==undefined){(0,a.beginHiddenCallStack)(l.errback)(e,t)}else if(typeof e==="function"){(0,a.beginHiddenCallStack)(l.errback)(undefined,e)}else{{return loadOptionsSync(e)}}}const c=_gensync()(i.createConfigItem);function createConfigItemAsync(...e){return(0,a.beginHiddenCallStack)(c.async)(...e)}function createConfigItemSync(...e){return(0,a.beginHiddenCallStack)(c.sync)(...e)}function createConfigItem(e,t,r){if(r!==undefined){(0,a.beginHiddenCallStack)(c.errback)(e,t,r)}else if(typeof t==="function"){(0,a.beginHiddenCallStack)(c.errback)(e,undefined,r)}else{{return createConfigItemSync(e,t)}}}0&&0},8131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createConfigItem=createConfigItem;t.createItemFromDescriptor=createItemFromDescriptor;t.getItemDescriptor=getItemDescriptor;function _path(){const e=r(1017);_path=function(){return e};return e}var n=r(4449);function createItemFromDescriptor(e){return new ConfigItem(e)}function*createConfigItem(e,{dirname:t=".",type:r}={}){const s=yield*(0,n.createDescriptor)(e,_path().resolve(t),{type:r,alias:"programmatic item"});return createItemFromDescriptor(s)}const s=Symbol.for("@babel/core@7 - ConfigItem");function getItemDescriptor(e){if(e!=null&&e[s]){return e._descriptor}return undefined}class ConfigItem{constructor(e){this._descriptor=void 0;this[s]=true;this.value=void 0;this.options=void 0;this.dirname=void 0;this.name=void 0;this.file=void 0;this._descriptor=e;Object.defineProperty(this,"_descriptor",{enumerable:false});Object.defineProperty(this,s,{enumerable:false});this.value=this._descriptor.value;this.options=this._descriptor.options;this.dirname=this._descriptor.dirname;this.name=this._descriptor.name;this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:undefined;Object.freeze(this)}}Object.freeze(ConfigItem.prototype);0&&0},3019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadPrivatePartialConfig;t.loadPartialConfig=loadPartialConfig;function _path(){const e=r(1017);_path=function(){return e};return e}var n=r(2406);var s=r(545);var i=r(8131);var a=r(9646);var o=r(5723);var l=r(4320);var c=r(5329);var p=r(78);const u=["showIgnoredFiles"];function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function resolveRootMode(e,t){switch(t){case"root":return e;case"upward-optional":{const t=(0,c.findConfigUpwards)(e);return t===null?e:t}case"upward":{const t=(0,c.findConfigUpwards)(e);if(t!==null)return t;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not `+`be found when searching upward from "${e}".\n`+`One of the following config files must be in the directory tree: `+`"${c.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error(`Assertion failure - unknown rootMode value.`)}}function*loadPrivatePartialConfig(e){if(e!=null&&(typeof e!=="object"||Array.isArray(e))){throw new Error("Babel options must be an object, null, or undefined")}const t=e?(0,l.validate)("arguments",e):{};const{envName:r=(0,o.getEnv)(),cwd:n=".",root:u=".",rootMode:d="root",caller:f,cloneInputAst:h=true}=t;const m=_path().resolve(n);const y=resolveRootMode(_path().resolve(m,u),d);const g=typeof t.filename==="string"?_path().resolve(n,t.filename):undefined;const b=yield*(0,c.resolveShowConfigPath)(m);const T={filename:g,cwd:m,root:y,envName:r,caller:f,showConfig:b===g};const S=yield*(0,a.buildRootChain)(t,T);if(!S)return null;const x={assumptions:{}};S.options.forEach((e=>{(0,s.mergeOptions)(x,e)}));const E=Object.assign({},x,{targets:(0,p.resolveTargets)(x,y),cloneInputAst:h,babelrc:false,configFile:false,browserslistConfigFile:false,passPerPreset:false,envName:T.envName,cwd:T.cwd,root:T.root,rootMode:"root",filename:typeof T.filename==="string"?T.filename:undefined,plugins:S.plugins.map((e=>(0,i.createItemFromDescriptor)(e))),presets:S.presets.map((e=>(0,i.createItemFromDescriptor)(e)))});return{options:E,context:T,fileHandling:S.fileHandling,ignore:S.ignore,babelrc:S.babelrc,config:S.config,files:S.files}}function*loadPartialConfig(e){let t=false;if(typeof e==="object"&&e!==null&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r);e=_objectWithoutPropertiesLoose(r,u);r}const s=yield*loadPrivatePartialConfig(e);if(!s)return null;const{options:i,babelrc:a,ignore:o,config:l,fileHandling:c,files:p}=s;if(c==="ignored"&&!t){return null}(i.plugins||[]).forEach((e=>{if(e.value instanceof n.default){throw new Error("Passing cached plugin instances is not supported in "+"babel.loadPartialConfig()")}}));return new PartialConfig(i,a?a.filepath:undefined,o?o.filepath:undefined,l?l.filepath:undefined,c,p)}class PartialConfig{constructor(e,t,r,n,s,i){this.options=void 0;this.babelrc=void 0;this.babelignore=void 0;this.config=void 0;this.fileHandling=void 0;this.files=void 0;this.options=e;this.babelignore=r;this.babelrc=t;this.config=n;this.fileHandling=s;this.files=i;Object.freeze(this)}hasFilesystemConfig(){return this.babelrc!==undefined||this.config!==undefined}}Object.freeze(PartialConfig.prototype);0&&0},5076:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=pathToPattern;function _path(){const e=r(1017);_path=function(){return e};return e}const n=`\\${_path().sep}`;const s=`(?:${n}|$)`;const i=`[^${n}]+`;const a=`(?:${i}${n})`;const o=`(?:${i}${s})`;const l=`${a}*?`;const c=`${a}*?${o}?`;function escapeRegExp(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function pathToPattern(e,t){const r=_path().resolve(t,e).split(_path().sep);return new RegExp(["^",...r.map(((e,t)=>{const p=t===r.length-1;if(e==="**")return p?c:l;if(e==="*")return p?o:a;if(e.indexOf("*.")===0){return i+escapeRegExp(e.slice(1))+(p?s:n)}return escapeRegExp(e)+(p?s:n)}))].join(""))}0&&0},2406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(8634);class Plugin{constructor(e,t,r,s=(0,n.finalize)([])){this.key=void 0;this.manipulateOptions=void 0;this.post=void 0;this.pre=void 0;this.visitor=void 0;this.parserOverride=void 0;this.generatorOverride=void 0;this.options=void 0;this.externalDependencies=void 0;this.key=e.name||r;this.manipulateOptions=e.manipulateOptions;this.post=e.post;this.pre=e.pre;this.visitor=e.visitor||{};this.parserOverride=e.parserOverride;this.generatorOverride=e.generatorOverride;this.options=t;this.externalDependencies=s}}t["default"]=Plugin;0&&0},669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfigPrinter=t.ChainFormatter=void 0;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}const n=t.ChainFormatter={Programmatic:0,Config:1};const s={title(e,t,r){let s="";if(e===n.Programmatic){s="programmatic options";if(t){s+=" from "+t}}else{s="config "+r}return s},loc(e,t){let r="";if(e!=null){r+=`.overrides[${e}]`}if(t!=null){r+=`.env["${t}"]`}return r},*optionsAndDescriptors(e){const t=Object.assign({},e.options);delete t.overrides;delete t.env;const r=[...yield*e.plugins()];if(r.length){t.plugins=r.map((e=>descriptorToConfig(e)))}const n=[...yield*e.presets()];if(n.length){t.presets=[...n].map((e=>descriptorToConfig(e)))}return JSON.stringify(t,undefined,2)}};function descriptorToConfig(e){var t;let r=(t=e.file)==null?void 0:t.request;if(r==null){if(typeof e.value==="object"){r=e.value}else if(typeof e.value==="function"){r=`[Function: ${e.value.toString().slice(0,50)} ... ]`}}if(r==null){r="[Unknown]"}if(e.options===undefined){return r}else if(e.name==null){return[r,e.options]}else{return[r,e.options,e.name]}}class ConfigPrinter{constructor(){this._stack=[]}configure(e,t,{callerName:r,filepath:n}){if(!e)return()=>{};return(e,s,i)=>{this._stack.push({type:t,callerName:r,filepath:n,content:e,index:s,envName:i})}}static*format(e){let t=s.title(e.type,e.callerName,e.filepath);const r=s.loc(e.index,e.envName);if(r)t+=` ${r}`;const n=yield*s.optionsAndDescriptors(e.content);return`${t}\n${n}`}*output(){if(this._stack.length===0)return"";const e=yield*_gensync().all(this._stack.map((e=>ConfigPrinter.format(e))));return e.join("\n\n")}}t.ConfigPrinter=ConfigPrinter;0&&0},78:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveBrowserslistConfigFile=resolveBrowserslistConfigFile;t.resolveTargets=resolveTargets;function _path(){const e=r(1017);_path=function(){return e};return e}function _helperCompilationTargets(){const e=r(3924);_helperCompilationTargets=function(){return e};return e}({});function resolveBrowserslistConfigFile(e,t){return _path().resolve(t,e)}function resolveTargets(e,t){const r=e.targets;let n;if(typeof r==="string"||Array.isArray(r)){n={browsers:r}}else if(r){if("esmodules"in r){n=Object.assign({},r,{esmodules:"intersect"})}else{n=r}}const{browserslistConfigFile:s}=e;let i;let a=false;if(typeof s==="string"){i=s}else{a=s===false}return(0,_helperCompilationTargets().default)(n,{ignoreBrowserslistConfig:a,configFile:i,configPath:t,browserslistEnv:e.browserslistEnv})}0&&0},545:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIterableIterator=isIterableIterator;t.mergeOptions=mergeOptions;function mergeOptions(e,t){for(const r of Object.keys(t)){if((r==="parserOpts"||r==="generatorOpts"||r==="assumptions")&&t[r]){const n=t[r];const s=e[r]||(e[r]={});mergeDefaultFields(s,n)}else{const n=t[r];if(n!==undefined)e[r]=n}}}function mergeDefaultFields(e,t){for(const r of Object.keys(t)){const n=t[r];if(n!==undefined)e[r]=n}}function isIterableIterator(e){return!!e&&typeof e.next==="function"&&typeof e[Symbol.iterator]==="function"}0&&0},4882:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.access=access;t.assertArray=assertArray;t.assertAssumptions=assertAssumptions;t.assertBabelrcSearch=assertBabelrcSearch;t.assertBoolean=assertBoolean;t.assertCallerMetadata=assertCallerMetadata;t.assertCompact=assertCompact;t.assertConfigApplicableTest=assertConfigApplicableTest;t.assertConfigFileSearch=assertConfigFileSearch;t.assertFunction=assertFunction;t.assertIgnoreList=assertIgnoreList;t.assertInputSourceMap=assertInputSourceMap;t.assertObject=assertObject;t.assertPluginList=assertPluginList;t.assertRootMode=assertRootMode;t.assertSourceMaps=assertSourceMaps;t.assertSourceType=assertSourceType;t.assertString=assertString;t.assertTargets=assertTargets;t.msg=msg;function _helperCompilationTargets(){const e=r(3924);_helperCompilationTargets=function(){return e};return e}var n=r(4320);function msg(e){switch(e.type){case"root":return``;case"env":return`${msg(e.parent)}.env["${e.name}"]`;case"overrides":return`${msg(e.parent)}.overrides[${e.index}]`;case"option":return`${msg(e.parent)}.${e.name}`;case"access":return`${msg(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${e.type}`)}}function access(e,t){return{type:"access",name:t,parent:e}}function assertRootMode(e,t){if(t!==undefined&&t!=="root"&&t!=="upward"&&t!=="upward-optional"){throw new Error(`${msg(e)} must be a "root", "upward", "upward-optional" or undefined`)}return t}function assertSourceMaps(e,t){if(t!==undefined&&typeof t!=="boolean"&&t!=="inline"&&t!=="both"){throw new Error(`${msg(e)} must be a boolean, "inline", "both", or undefined`)}return t}function assertCompact(e,t){if(t!==undefined&&typeof t!=="boolean"&&t!=="auto"){throw new Error(`${msg(e)} must be a boolean, "auto", or undefined`)}return t}function assertSourceType(e,t){if(t!==undefined&&t!=="module"&&t!=="script"&&t!=="unambiguous"){throw new Error(`${msg(e)} must be "module", "script", "unambiguous", or undefined`)}return t}function assertCallerMetadata(e,t){const r=assertObject(e,t);if(r){if(typeof r.name!=="string"){throw new Error(`${msg(e)} set but does not contain "name" property string`)}for(const t of Object.keys(r)){const n=access(e,t);const s=r[t];if(s!=null&&typeof s!=="boolean"&&typeof s!=="string"&&typeof s!=="number"){throw new Error(`${msg(n)} must be null, undefined, a boolean, a string, or a number.`)}}}return t}function assertInputSourceMap(e,t){if(t!==undefined&&typeof t!=="boolean"&&(typeof t!=="object"||!t)){throw new Error(`${msg(e)} must be a boolean, object, or undefined`)}return t}function assertString(e,t){if(t!==undefined&&typeof t!=="string"){throw new Error(`${msg(e)} must be a string, or undefined`)}return t}function assertFunction(e,t){if(t!==undefined&&typeof t!=="function"){throw new Error(`${msg(e)} must be a function, or undefined`)}return t}function assertBoolean(e,t){if(t!==undefined&&typeof t!=="boolean"){throw new Error(`${msg(e)} must be a boolean, or undefined`)}return t}function assertObject(e,t){if(t!==undefined&&(typeof t!=="object"||Array.isArray(t)||!t)){throw new Error(`${msg(e)} must be an object, or undefined`)}return t}function assertArray(e,t){if(t!=null&&!Array.isArray(t)){throw new Error(`${msg(e)} must be an array, or undefined`)}return t}function assertIgnoreList(e,t){const r=assertArray(e,t);r==null||r.forEach(((t,r)=>assertIgnoreItem(access(e,r),t)));return r}function assertIgnoreItem(e,t){if(typeof t!=="string"&&typeof t!=="function"&&!(t instanceof RegExp)){throw new Error(`${msg(e)} must be an array of string/Function/RegExp values, or undefined`)}return t}function assertConfigApplicableTest(e,t){if(t===undefined){return t}if(Array.isArray(t)){t.forEach(((t,r)=>{if(!checkValidTest(t)){throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)}}))}else if(!checkValidTest(t)){throw new Error(`${msg(e)} must be a string/Function/RegExp, or an array of those`)}return t}function checkValidTest(e){return typeof e==="string"||typeof e==="function"||e instanceof RegExp}function assertConfigFileSearch(e,t){if(t!==undefined&&typeof t!=="boolean"&&typeof t!=="string"){throw new Error(`${msg(e)} must be a undefined, a boolean, a string, `+`got ${JSON.stringify(t)}`)}return t}function assertBabelrcSearch(e,t){if(t===undefined||typeof t==="boolean"){return t}if(Array.isArray(t)){t.forEach(((t,r)=>{if(!checkValidTest(t)){throw new Error(`${msg(access(e,r))} must be a string/Function/RegExp.`)}}))}else if(!checkValidTest(t)){throw new Error(`${msg(e)} must be a undefined, a boolean, a string/Function/RegExp `+`or an array of those, got ${JSON.stringify(t)}`)}return t}function assertPluginList(e,t){const r=assertArray(e,t);if(r){r.forEach(((t,r)=>assertPluginItem(access(e,r),t)))}return r}function assertPluginItem(e,t){if(Array.isArray(t)){if(t.length===0){throw new Error(`${msg(e)} must include an object`)}if(t.length>3){throw new Error(`${msg(e)} may only be a two-tuple or three-tuple`)}assertPluginTarget(access(e,0),t[0]);if(t.length>1){const r=t[1];if(r!==undefined&&r!==false&&(typeof r!=="object"||Array.isArray(r)||r===null)){throw new Error(`${msg(access(e,1))} must be an object, false, or undefined`)}}if(t.length===3){const r=t[2];if(r!==undefined&&typeof r!=="string"){throw new Error(`${msg(access(e,2))} must be a string, or undefined`)}}}else{assertPluginTarget(e,t)}return t}function assertPluginTarget(e,t){if((typeof t!=="object"||!t)&&typeof t!=="string"&&typeof t!=="function"){throw new Error(`${msg(e)} must be a string, object, function`)}return t}function assertTargets(e,t){if((0,_helperCompilationTargets().isBrowsersQueryValid)(t))return t;if(typeof t!=="object"||!t||Array.isArray(t)){throw new Error(`${msg(e)} must be a string, an array of strings or an object`)}const r=access(e,"browsers");const n=access(e,"esmodules");assertBrowsersList(r,t.browsers);assertBoolean(n,t.esmodules);for(const r of Object.keys(t)){const n=t[r];const s=access(e,r);if(r==="esmodules")assertBoolean(s,n);else if(r==="browsers")assertBrowsersList(s,n);else if(!hasOwnProperty.call(_helperCompilationTargets().TargetNames,r)){const e=Object.keys(_helperCompilationTargets().TargetNames).join(", ");throw new Error(`${msg(s)} is not a valid target. Supported targets are ${e}`)}else assertBrowserVersion(s,n)}return t}function assertBrowsersList(e,t){if(t!==undefined&&!(0,_helperCompilationTargets().isBrowsersQueryValid)(t)){throw new Error(`${msg(e)} must be undefined, a string or an array of strings`)}}function assertBrowserVersion(e,t){if(typeof t==="number"&&Math.round(t)===t)return;if(typeof t==="string")return;throw new Error(`${msg(e)} must be a string or an integer number`)}function assertAssumptions(e,t){if(t===undefined)return;if(typeof t!=="object"||t===null){throw new Error(`${msg(e)} must be an object or undefined.`)}let r=e;do{r=r.parent}while(r.type!=="root");const s=r.source==="preset";for(const r of Object.keys(t)){const i=access(e,r);if(!n.assumptionsNames.has(r)){throw new Error(`${msg(i)} is not a supported assumption.`)}if(typeof t[r]!=="boolean"){throw new Error(`${msg(i)} must be a boolean.`)}if(s&&t[r]===false){throw new Error(`${msg(i)} cannot be set to 'false' inside presets.`)}}return t}0&&0},4320:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assumptionsNames=void 0;t.checkNoUnwrappedItemOptionPairs=checkNoUnwrappedItemOptionPairs;t.validate=validate;var n=r(3789);var s=r(4882);var i=r(195);const a={cwd:s.assertString,root:s.assertString,rootMode:s.assertRootMode,configFile:s.assertConfigFileSearch,caller:s.assertCallerMetadata,filename:s.assertString,filenameRelative:s.assertString,code:s.assertBoolean,ast:s.assertBoolean,cloneInputAst:s.assertBoolean,envName:s.assertString};const o={babelrc:s.assertBoolean,babelrcRoots:s.assertBabelrcSearch};const l={extends:s.assertString,ignore:s.assertIgnoreList,only:s.assertIgnoreList,targets:s.assertTargets,browserslistConfigFile:s.assertConfigFileSearch,browserslistEnv:s.assertString};const c={inputSourceMap:s.assertInputSourceMap,presets:s.assertPluginList,plugins:s.assertPluginList,passPerPreset:s.assertBoolean,assumptions:s.assertAssumptions,env:assertEnvSet,overrides:assertOverridesList,test:s.assertConfigApplicableTest,include:s.assertConfigApplicableTest,exclude:s.assertConfigApplicableTest,retainLines:s.assertBoolean,comments:s.assertBoolean,shouldPrintComment:s.assertFunction,compact:s.assertCompact,minified:s.assertBoolean,auxiliaryCommentBefore:s.assertString,auxiliaryCommentAfter:s.assertString,sourceType:s.assertSourceType,wrapPluginVisitorMethod:s.assertFunction,highlightCode:s.assertBoolean,sourceMaps:s.assertSourceMaps,sourceMap:s.assertSourceMaps,sourceFileName:s.assertString,sourceRoot:s.assertString,parserOpts:s.assertObject,generatorOpts:s.assertObject};{Object.assign(c,{getModuleId:s.assertFunction,moduleRoot:s.assertString,moduleIds:s.assertBoolean,moduleId:s.assertString})}const p=["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","noUninitializedPrivateFieldAccess","objectRestNoSymbols","privateFieldsAsSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"];const u=t.assumptionsNames=new Set(p);function getSource(e){return e.type==="root"?e.source:getSource(e.parent)}function validate(e,t,r){try{return validateNested({type:"root",source:e},t)}catch(e){const t=new i.default(e.message,r);if(e.code)t.code=e.code;throw t}}function validateNested(e,t){const r=getSource(e);assertNoDuplicateSourcemap(t);Object.keys(t).forEach((n=>{const i={type:"option",name:n,parent:e};if(r==="preset"&&l[n]){throw new Error(`${(0,s.msg)(i)} is not allowed in preset options`)}if(r!=="arguments"&&a[n]){throw new Error(`${(0,s.msg)(i)} is only allowed in root programmatic options`)}if(r!=="arguments"&&r!=="configfile"&&o[n]){if(r==="babelrcfile"||r==="extendsfile"){throw new Error(`${(0,s.msg)(i)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, `+`or babel.config.js/config file options`)}throw new Error(`${(0,s.msg)(i)} is only allowed in root programmatic options, or babel.config.js/config file options`)}const p=c[n]||l[n]||o[n]||a[n]||throwUnknownError;p(i,t[n])}));return t}function throwUnknownError(e){const t=e.name;if(n.default[t]){const{message:r,version:i=5}=n.default[t];throw new Error(`Using removed Babel ${i} option: ${(0,s.msg)(e)} - ${r}`)}else{const t=new Error(`Unknown option: ${(0,s.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);t.code="BABEL_UNKNOWN_OPTION";throw t}}function assertNoDuplicateSourcemap(e){if(hasOwnProperty.call(e,"sourceMap")&&hasOwnProperty.call(e,"sourceMaps")){throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}}function assertEnvSet(e,t){if(e.parent.type==="env"){throw new Error(`${(0,s.msg)(e)} is not allowed inside of another .env block`)}const r=e.parent;const n=(0,s.assertObject)(e,t);if(n){for(const t of Object.keys(n)){const i=(0,s.assertObject)((0,s.access)(e,t),n[t]);if(!i)continue;const a={type:"env",name:t,parent:r};validateNested(a,i)}}return n}function assertOverridesList(e,t){if(e.parent.type==="env"){throw new Error(`${(0,s.msg)(e)} is not allowed inside an .env block`)}if(e.parent.type==="overrides"){throw new Error(`${(0,s.msg)(e)} is not allowed inside an .overrides block`)}const r=e.parent;const n=(0,s.assertArray)(e,t);if(n){for(const[t,i]of n.entries()){const n=(0,s.access)(e,t);const a=(0,s.assertObject)(n,i);if(!a)throw new Error(`${(0,s.msg)(n)} must be an object`);const o={type:"overrides",index:t,parent:r};validateNested(o,a)}}return n}function checkNoUnwrappedItemOptionPairs(e,t,r,n){if(t===0)return;const s=e[t-1];const i=e[t];if(s.file&&s.options===undefined&&typeof i.value==="object"){n.message+=`\n- Maybe you meant to use\n`+`"${r}s": [\n ["${s.file.request}", ${JSON.stringify(i.value,undefined,2)}]\n]\n`+`To be a valid ${r}, its name and options should be wrapped in a pair of brackets`}}0&&0},2088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validatePluginObject=validatePluginObject;var n=r(4882);const s={name:n.assertString,manipulateOptions:n.assertFunction,pre:n.assertFunction,post:n.assertFunction,inherits:n.assertFunction,visitor:assertVisitorMap,parserOverride:n.assertFunction,generatorOverride:n.assertFunction};function assertVisitorMap(e,t){const r=(0,n.assertObject)(e,t);if(r){Object.keys(r).forEach((e=>{if(e!=="_exploded"&&e!=="_verified"){assertVisitorHandler(e,r[e])}}));if(r.enter||r.exit){throw new Error(`${(0,n.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`)}}return r}function assertVisitorHandler(e,t){if(t&&typeof t==="object"){Object.keys(t).forEach((t=>{if(t!=="enter"&&t!=="exit"){throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)}}))}else if(typeof t!=="function"){throw new Error(`.visitor["${e}"] must be a function`)}}function validatePluginObject(e){const t={type:"root",source:"plugin"};Object.keys(e).forEach((r=>{const n=s[r];if(n){const s={type:"option",name:r,parent:t};n(s,e[r])}else{const e=new Error(`.${r} is not a valid Plugin property`);e.code="BABEL_UNKNOWN_PLUGIN_PROPERTY";throw e}}));return e}0&&0},3789:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=t["default"]={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. "+"Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. "+"Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using "+"or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. "+"Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. "+"Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the "+"tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling "+"that calls Babel to assign `map.file` themselves."}};0&&0},195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(8502);class ConfigError extends Error{constructor(e,t){super(e);(0,n.expectedError)(this);if(t)(0,n.injectVirtualStackFrame)(this,t)}}t["default"]=ConfigError;0&&0},8502:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.beginHiddenCallStack=beginHiddenCallStack;t.endHiddenCallStack=endHiddenCallStack;t.expectedError=expectedError;t.injectVirtualStackFrame=injectVirtualStackFrame;var r;const n=Function.call.bind(Error.prototype.toString);const s=!!Error.captureStackTrace&&((r=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))==null?void 0:r.writable)===true;const i="startHiding - secret - don't use this - v1";const a="stopHiding - secret - don't use this - v1";const o=new WeakSet;const l=new WeakMap;function CallSite(e){return Object.create({isNative:()=>false,isConstructor:()=>false,isToplevel:()=>true,getFileName:()=>e,getLineNumber:()=>undefined,getColumnNumber:()=>undefined,getFunctionName:()=>undefined,getMethodName:()=>undefined,getTypeName:()=>undefined,toString:()=>e})}function injectVirtualStackFrame(e,t){if(!s)return;let r=l.get(e);if(!r)l.set(e,r=[]);r.push(CallSite(t));return e}function expectedError(e){if(!s)return;o.add(e);return e}function beginHiddenCallStack(e){if(!s)return e;return Object.defineProperty((function(...t){setupPrepareStackTrace();return e(...t)}),"name",{value:a})}function endHiddenCallStack(e){if(!s)return e;return Object.defineProperty((function(...t){return e(...t)}),"name",{value:i})}function setupPrepareStackTrace(){setupPrepareStackTrace=()=>{};const{prepareStackTrace:e=defaultPrepareStackTrace}=Error;const t=50;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,t));Error.prepareStackTrace=function stackTraceRewriter(t,r){let n=[];const s=o.has(t);let c=s?"hiding":"unknown";for(let e=0;e<r.length;e++){const s=r[e].getFunctionName();if(s===i){c="hiding"}else if(s===a){if(c==="hiding"){c="showing";if(l.has(t)){n.unshift(...l.get(t))}}else if(c==="unknown"){n=r;break}}else if(c!=="hiding"){n.push(r[e])}}return e(t,n)}}function defaultPrepareStackTrace(e,t){if(t.length===0)return n(e);return`${n(e)}\n at ${t.join("\n at ")}`}0&&0},7987:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.forwardAsync=forwardAsync;t.isAsync=void 0;t.isThenable=isThenable;t.maybeAsync=maybeAsync;t.waitFor=t.onFirstPause=void 0;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}function asyncGeneratorStep(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(n,s)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,s){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,n,s,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,n,s,_next,_throw,"throw",e)}_next(void 0)}))}}const n=_gensync()((function*(e){return yield*e}));const s=t.isAsync=_gensync()({sync:()=>false,errback:e=>e(null,true)});function maybeAsync(e,t){return _gensync()({sync(...r){const n=e.apply(this,r);if(isThenable(n))throw new Error(t);return n},async(...t){return Promise.resolve(e.apply(this,t))}})}const i=_gensync()({sync:e=>e("sync"),async:function(){var e=_asyncToGenerator((function*(e){return e("async")}));return function async(t){return e.apply(this,arguments)}}()});function forwardAsync(e,t){const r=_gensync()(e);return i((e=>{const n=r[e];return t(n)}))}const a=t.onFirstPause=_gensync()({name:"onFirstPause",arity:2,sync:function(e){return n.sync(e)},errback:function(e,t,r){let s=false;n.errback(e,((e,t)=>{s=true;r(e,t)}));if(!s){t()}}});const o=t.waitFor=_gensync()({sync:e=>e,async:function(){var e=_asyncToGenerator((function*(e){return e}));return function async(t){return e.apply(this,arguments)}}()});function isThenable(e){return!!e&&(typeof e==="object"||typeof e==="function")&&!!e.then&&typeof e.then==="function"}0&&0},409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stat=t.readFile=void 0;function _fs(){const e=r(7147);_fs=function(){return e};return e}function _gensync(){const e=r(6433);_gensync=function(){return e};return e}const n=t.readFile=_gensync()({sync:_fs().readFileSync,errback:_fs().readFile});const s=t.stat=_gensync()({sync:_fs().statSync,errback:_fs().stat});0&&0},9516:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.once=once;var n=r(7987);function once(e){let t;let r;let s=false;return function*(){if(!t){if(r){s=true;return yield*(0,n.waitFor)(r)}if(!(yield*(0,n.isAsync)())){try{t={ok:true,value:yield*e()}}catch(e){t={ok:false,value:e}}}else{let n,i;r=new Promise(((e,t)=>{n=e;i=t}));try{t={ok:true,value:yield*e()};r=null;if(s)n(t.value)}catch(e){t={ok:false,value:e};r=null;if(s)i(e)}}}if(t.ok)return t.value;else throw t.value}}0&&0},2358:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEFAULT_EXTENSIONS=void 0;Object.defineProperty(t,"File",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"buildExternalHelpers",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"createConfigItem",{enumerable:true,get:function(){return o.createConfigItem}});Object.defineProperty(t,"createConfigItemAsync",{enumerable:true,get:function(){return o.createConfigItemAsync}});Object.defineProperty(t,"createConfigItemSync",{enumerable:true,get:function(){return o.createConfigItemSync}});Object.defineProperty(t,"getEnv",{enumerable:true,get:function(){return a.getEnv}});Object.defineProperty(t,"loadOptions",{enumerable:true,get:function(){return o.loadOptions}});Object.defineProperty(t,"loadOptionsAsync",{enumerable:true,get:function(){return o.loadOptionsAsync}});Object.defineProperty(t,"loadOptionsSync",{enumerable:true,get:function(){return o.loadOptionsSync}});Object.defineProperty(t,"loadPartialConfig",{enumerable:true,get:function(){return o.loadPartialConfig}});Object.defineProperty(t,"loadPartialConfigAsync",{enumerable:true,get:function(){return o.loadPartialConfigAsync}});Object.defineProperty(t,"loadPartialConfigSync",{enumerable:true,get:function(){return o.loadPartialConfigSync}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.parse}});Object.defineProperty(t,"parseAsync",{enumerable:true,get:function(){return u.parseAsync}});Object.defineProperty(t,"parseSync",{enumerable:true,get:function(){return u.parseSync}});t.resolvePreset=t.resolvePlugin=void 0;Object.defineProperty((0,t),"template",{enumerable:true,get:function(){return _template().default}});Object.defineProperty((0,t),"tokTypes",{enumerable:true,get:function(){return _parser().tokTypes}});Object.defineProperty(t,"transform",{enumerable:true,get:function(){return l.transform}});Object.defineProperty(t,"transformAsync",{enumerable:true,get:function(){return l.transformAsync}});Object.defineProperty(t,"transformFile",{enumerable:true,get:function(){return c.transformFile}});Object.defineProperty(t,"transformFileAsync",{enumerable:true,get:function(){return c.transformFileAsync}});Object.defineProperty(t,"transformFileSync",{enumerable:true,get:function(){return c.transformFileSync}});Object.defineProperty(t,"transformFromAst",{enumerable:true,get:function(){return p.transformFromAst}});Object.defineProperty(t,"transformFromAstAsync",{enumerable:true,get:function(){return p.transformFromAstAsync}});Object.defineProperty(t,"transformFromAstSync",{enumerable:true,get:function(){return p.transformFromAstSync}});Object.defineProperty(t,"transformSync",{enumerable:true,get:function(){return l.transformSync}});Object.defineProperty((0,t),"traverse",{enumerable:true,get:function(){return _traverse().default}});t.version=t.types=void 0;var n=r(2302);var s=r(5085);var i=r(5329);var a=r(5723);function _types(){const e=r(3061);_types=function(){return e};return e}Object.defineProperty((0,t),"types",{enumerable:true,get:function(){return _types()}});function _parser(){const e=r(9849);_parser=function(){return e};return e}function _traverse(){const e=r(8026);_traverse=function(){return e};return e}function _template(){const e=r(5326);_template=function(){return e};return e}var o=r(8842);var l=r(2175);var c=r(7111);var p=r(4087);var u=r(9154);const d=t.version="7.26.10";const resolvePlugin=(e,t)=>i.resolvePlugin(e,t,false).filepath;t.resolvePlugin=resolvePlugin;const resolvePreset=(e,t)=>i.resolvePreset(e,t,false).filepath;t.resolvePreset=resolvePreset;const f=t.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]);{t.OptionManager=class OptionManager{init(e){return(0,o.loadOptionsSync)(e)}};t.Plugin=function Plugin(e){throw new Error(`The (${e}) Babel 5 plugin is being run with an unsupported Babel version.`)}}0&&0},9154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parse=void 0;t.parseAsync=parseAsync;t.parseSync=parseSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(8015);var i=r(6351);var a=r(8502);const o=_gensync()((function*parse(e,t){const r=yield*(0,n.default)(t);if(r===null){return null}return yield*(0,s.default)(r.passes,(0,i.default)(r),e)}));const l=t.parse=function parse(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(r===undefined){{return(0,a.beginHiddenCallStack)(o.sync)(e,t)}}(0,a.beginHiddenCallStack)(o.errback)(e,t,r)};function parseSync(...e){return(0,a.beginHiddenCallStack)(o.sync)(...e)}function parseAsync(...e){return(0,a.beginHiddenCallStack)(o.async)(...e)}0&&0},8015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=parser;function _parser(){const e=r(9849);_parser=function(){return e};return e}function _codeFrame(){const e=r(3554);_codeFrame=function(){return e};return e}var n=r(6338);function*parser(e,{parserOpts:t,highlightCode:r=true,filename:s="unknown"},i){try{const r=[];for(const n of e){for(const e of n){const{parserOverride:n}=e;if(n){const e=n(i,t,_parser().parse);if(e!==undefined)r.push(e)}}}if(r.length===0){return(0,_parser().parse)(i,t)}else if(r.length===1){yield*[];if(typeof r[0].then==="function"){throw new Error(`You appear to be using an async parser plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}return r[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(e){if(e.code==="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"){e.message+="\nConsider renaming the file to '.mjs', or setting sourceType:module "+"or sourceType:unambiguous in your Babel config for this file."}const{loc:t,missingPlugin:a}=e;if(t){const o=(0,_codeFrame().codeFrameColumns)(i,{start:{line:t.line,column:t.column+1}},{highlightCode:r});if(a){e.message=`${s}: `+(0,n.default)(a[0],t,o,s)}else{e.message=`${s}: ${e.message}\n\n`+o}e.code="BABEL_PARSE_ERROR"}throw e}}0&&0},6338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=generateMissingPluginMessage;const r={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"},transform:{name:"@babel/preset-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-flow"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"},transform:{name:"@babel/preset-react",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-react"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"},transform:{name:"@babel/preset-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"}}};{Object.assign(r,{asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"},transform:{name:"@babel/plugin-transform-async-generator-functions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-private-methods",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block"},transform:{name:"@babel/plugin-transform-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from"},transform:{name:"@babel/plugin-transform-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions"}},importAttributes:{syntax:{name:"@babel/plugin-syntax-import-attributes",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators"},transform:{name:"@babel/plugin-transform-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator"},transform:{name:"@babel/plugin-transform-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator"},transform:{name:"@babel/plugin-transform-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread"},transform:{name:"@babel/plugin-transform-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding"},transform:{name:"@babel/plugin-transform-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining"},transform:{name:"@babel/plugin-transform-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object"},transform:{name:"@babel/plugin-transform-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object"}},regexpUnicodeSets:{syntax:{name:"@babel/plugin-syntax-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md"},transform:{name:"@babel/plugin-transform-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md"}}})}const getNameURLCombination=({name:e,url:t})=>`${e} (${t})`;function generateMissingPluginMessage(e,t,n,s){let i=`Support for the experimental syntax '${e}' isn't currently enabled `+`(${t.line}:${t.column+1}):\n\n`+n;const a=r[e];if(a){const{syntax:e,transform:t}=a;if(e){const r=getNameURLCombination(e);if(t){const e=getNameURLCombination(t);const n=t.name.startsWith("@babel/plugin")?"plugins":"presets";i+=`\n\nAdd ${e} to the '${n}' section of your Babel config to enable transformation.\nIf you want to leave it as-is, add ${r} to the 'plugins' section to enable parsing.`}else{i+=`\n\nAdd ${r} to the 'plugins' section of your Babel config `+`to enable parsing.`}}}const o=s==="unknown"?"<name of the input file>":s;i+=`\n\nIf you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:\n\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${o} <your build command>\nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.\n`;return i}0&&0},5085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;function helpers(){const e=r(8796);helpers=function(){return e};return e}function _generator(){const e=r(1605);_generator=function(){return e};return e}function _template(){const e=r(5326);_template=function(){return e};return e}function _t(){const e=r(3061);_t=function(){return e};return e}const{arrayExpression:n,assignmentExpression:s,binaryExpression:i,blockStatement:a,callExpression:o,cloneNode:l,conditionalExpression:c,exportNamedDeclaration:p,exportSpecifier:u,expressionStatement:d,functionExpression:f,identifier:h,memberExpression:m,objectExpression:y,program:g,stringLiteral:b,unaryExpression:T,variableDeclaration:S,variableDeclarator:x}=_t();const buildUmdWrapper=e=>_template().default.statement`
|
||
(function (root, factory) {
|
||
if (typeof define === "function" && define.amd) {
|
||
define(AMD_ARGUMENTS, factory);
|
||
} else if (typeof exports === "object") {
|
||
factory(COMMON_ARGUMENTS);
|
||
} else {
|
||
factory(BROWSER_ARGUMENTS);
|
||
}
|
||
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
|
||
FACTORY_BODY
|
||
});
|
||
`(e);function buildGlobal(e){const t=h("babelHelpers");const r=[];const n=f(null,[h("global")],a(r));const l=g([d(o(n,[c(i("===",T("typeof",h("global")),b("undefined")),h("self"),h("global"))]))]);r.push(S("var",[x(t,s("=",m(h("global"),t),y([])))]));buildHelpers(r,t,e);return l}function buildModule(e){const t=[];const r=buildHelpers(t,null,e);t.unshift(p(null,Object.keys(r).map((e=>u(l(r[e]),h(e))))));return g(t,[],"module")}function buildUmd(e){const t=h("babelHelpers");const r=[];r.push(S("var",[x(t,h("global"))]));buildHelpers(r,t,e);return g([buildUmdWrapper({FACTORY_PARAMETERS:h("global"),BROWSER_ARGUMENTS:s("=",m(h("root"),t),y([])),COMMON_ARGUMENTS:h("exports"),AMD_ARGUMENTS:n([b("exports")]),FACTORY_BODY:r,UMD_ROOT:h("this")})])}function buildVar(e){const t=h("babelHelpers");const r=[];r.push(S("var",[x(t,y([]))]));const n=g(r);buildHelpers(r,t,e);r.push(d(t));return n}function buildHelpers(e,t,r){const getHelperReference=e=>t?m(t,h(e)):h(`_${e}`);const n={};helpers().list.forEach((function(i){if(r&&!r.includes(i))return;const a=n[i]=getHelperReference(i);const{nodes:o}=helpers().get(i,getHelperReference,t?null:`_${i}`,[],t?(e,t,r)=>{r((e=>s("=",a,e)));e.body.push(d(s("=",a,h(t))))}:null);e.push(...o)}));return n}function _default(e,t="global"){let r;const n={global:buildGlobal,module:buildModule,umd:buildUmd,var:buildVar}[t];if(n){r=n(e)}else{throw new Error(`Unsupported output type ${t}`)}return(0,_generator().default)(r).code}0&&0},4087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFromAst=void 0;t.transformFromAstAsync=transformFromAstAsync;t.transformFromAstSync=transformFromAstSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(8502);const a=_gensync()((function*(e,t,r){const i=yield*(0,n.default)(r);if(i===null)return null;if(!e)throw new Error("No AST given");return yield*(0,s.run)(i,t,e)}));const o=t.transformFromAst=function transformFromAst(e,t,r,n){let s;let o;if(typeof r==="function"){o=r;s=undefined}else{s=r;o=n}if(o===undefined){{return(0,i.beginHiddenCallStack)(a.sync)(e,t,s)}}(0,i.beginHiddenCallStack)(a.errback)(e,t,s,o)};function transformFromAstSync(...e){return(0,i.beginHiddenCallStack)(a.sync)(...e)}function transformFromAstAsync(...e){return(0,i.beginHiddenCallStack)(a.async)(...e)}0&&0},7111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformFile=transformFile;t.transformFileAsync=transformFileAsync;t.transformFileSync=transformFileSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(409);({});const a=_gensync()((function*(e,t){const r=Object.assign({},t,{filename:e});const a=yield*(0,n.default)(r);if(a===null)return null;const o=yield*i.readFile(e,"utf8");return yield*(0,s.run)(a,o)}));function transformFile(...e){a.errback(...e)}function transformFileSync(...e){return a.sync(...e)}function transformFileAsync(...e){return a.async(...e)}0&&0},2175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transform=void 0;t.transformAsync=transformAsync;t.transformSync=transformSync;function _gensync(){const e=r(6433);_gensync=function(){return e};return e}var n=r(8842);var s=r(1714);var i=r(8502);const a=_gensync()((function*transform(e,t){const r=yield*(0,n.default)(t);if(r===null)return null;return yield*(0,s.run)(r,e)}));const o=t.transform=function transform(e,t,r){let n;let s;if(typeof t==="function"){s=t;n=undefined}else{n=t;s=r}if(s===undefined){{return(0,i.beginHiddenCallStack)(a.sync)(e,n)}}(0,i.beginHiddenCallStack)(a.errback)(e,n,s)};function transformSync(...e){return(0,i.beginHiddenCallStack)(a.sync)(...e)}function transformAsync(...e){return(0,i.beginHiddenCallStack)(a.async)(...e)}0&&0},9273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=loadBlockHoistPlugin;function _traverse(){const e=r(8026);_traverse=function(){return e};return e}var n=r(2406);let s;const i={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=performHoisting(e.body)}},SwitchCase:{exit({node:e}){e.consequent=performHoisting(e.consequent)}}}};function performHoisting(e){let t=Math.pow(2,30)-1;let r=false;for(let n=0;n<e.length;n++){const s=e[n];const i=priority(s);if(i>t){r=true;break}t=i}if(!r)return e;return stableSort(e.slice())}function loadBlockHoistPlugin(){if(!s){s=new n.default(Object.assign({},i,{visitor:_traverse().default.explode(i.visitor)}),{})}return s}function priority(e){const t=e==null?void 0:e._blockHoist;if(t==null)return 1;if(t===true)return 2;return t}function stableSort(e){const t=Object.create(null);for(let r=0;r<e.length;r++){const n=e[r];const s=priority(n);const i=t[s]||(t[s]=[]);i.push(n)}const r=Object.keys(t).map((e=>+e)).sort(((e,t)=>t-e));let n=0;for(const s of r){const r=t[s];for(const t of r){e[n++]=t}}return e}0&&0},2302:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;function helpers(){const e=r(8796);helpers=function(){return e};return e}function _traverse(){const e=r(8026);_traverse=function(){return e};return e}function _codeFrame(){const e=r(3554);_codeFrame=function(){return e};return e}function _t(){const e=r(3061);_t=function(){return e};return e}function _semver(){const e=r(7849);_semver=function(){return e};return e}var n=r(9938);const{cloneNode:s,interpreterDirective:i}=_t();const a={enter(e,t){const r=e.node.loc;if(r){t.loc=r;e.stop()}}};class File{constructor(e,{code:t,ast:r,inputMap:n}){this._map=new Map;this.opts=void 0;this.declarations={};this.path=void 0;this.ast=void 0;this.scope=void 0;this.metadata={};this.code="";this.inputMap=void 0;this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)};this.opts=e;this.code=t;this.ast=r;this.inputMap=n;this.path=_traverse().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext();this.scope=this.path.scope}get shebang(){const{interpreter:e}=this.path.node;return e?e.value:""}set shebang(e){if(e){this.path.get("interpreter").replaceWith(i(e))}else{this.path.get("interpreter").remove()}}set(e,t){{if(e==="helpersNamespace"){throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility."+"If you are using @babel/plugin-external-helpers you will need to use a newer "+"version than the one you currently have installed. "+"If you have your own implementation, you'll want to explore using 'helperGenerator' "+"alongside 'file.availableHelper()'.")}}this._map.set(e,t)}get(e){return this._map.get(e)}has(e){return this._map.has(e)}availableHelper(e,t){let r;try{r=helpers().minVersion(e)}catch(e){if(e.code!=="BABEL_HELPER_UNKNOWN")throw e;return false}if(typeof t!=="string")return true;if(_semver().valid(t))t=`^${t}`;{return!_semver().intersects(`<${r}`,t)&&!_semver().intersects(`>=8.0.0`,t)}}addHelper(e){const t=this.declarations[e];if(t)return s(t);const r=this.get("helperGenerator");if(r){const t=r(e);if(t)return t}helpers().minVersion(e);const n=this.declarations[e]=this.scope.generateUidIdentifier(e);const i={};for(const t of helpers().getDependencies(e)){i[t]=this.addHelper(t)}const{nodes:a,globals:o}=helpers().get(e,(e=>i[e]),n.name,Object.keys(this.scope.getAllBindings()));o.forEach((e=>{if(this.path.scope.hasBinding(e,true)){this.path.scope.rename(e)}}));a.forEach((e=>{e._compact=true}));const l=this.path.unshiftContainer("body",a);for(const e of l){if(e.isVariableDeclaration())this.scope.registerDeclaration(e)}return n}buildCodeFrameError(e,t,r=SyntaxError){let n=e==null?void 0:e.loc;if(!n&&e){const r={loc:null};(0,_traverse().default)(e,a,this.scope,r);n=r.loc;let s="This is an error on an internal node. Probably an internal error.";if(n)s+=" Location has been estimated.";t+=` (${s})`}if(n){const{highlightCode:e=true}=this.opts;t+="\n"+(0,_codeFrame().codeFrameColumns)(this.code,{start:{line:n.start.line,column:n.start.column+1},end:n.end&&n.start.line===n.end.line?{line:n.end.line,column:n.end.column+1}:undefined},{highlightCode:e})}return new r(t)}}t["default"]=File;{File.prototype.addImport=function addImport(){throw new Error("This API has been removed. If you're looking for this "+"functionality in Babel 7, you should import the "+"'@babel/helper-module-imports' module and use the functions exposed "+" from that module, such as 'addNamed' or 'addDefault'.")};File.prototype.addTemplateObject=function addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")};{File.prototype.getModuleName=function getModuleName(){return n.getModuleName()(this.opts,this.opts)}}}0&&0},915:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=generateCode;function _convertSourceMap(){const e=r(133);_convertSourceMap=function(){return e};return e}function _generator(){const e=r(1605);_generator=function(){return e};return e}var n=r(3464);function generateCode(e,t){const{opts:r,ast:s,code:i,inputMap:a}=t;const{generatorOpts:o}=r;o.inputSourceMap=a==null?void 0:a.toObject();const l=[];for(const t of e){for(const e of t){const{generatorOverride:t}=e;if(t){const e=t(s,o,i,_generator().default);if(e!==undefined)l.push(e)}}}let c;if(l.length===0){c=(0,_generator().default)(s,o,i)}else if(l.length===1){c=l[0];if(typeof c.then==="function"){throw new Error(`You appear to be using an async codegen plugin, `+`which your current version of Babel does not support. `+`If you're using a published plugin, `+`you may need to upgrade your @babel/core version.`)}}else{throw new Error("More than one plugin attempted to override codegen.")}let{code:p,decodedMap:u=c.map}=c;if(c.__mergedMap){u=Object.assign({},c.map)}else{if(u){if(a){u=(0,n.default)(a.toObject(),u,o.sourceFileName)}else{u=c.map}}}if(r.sourceMaps==="inline"||r.sourceMaps==="both"){p+="\n"+_convertSourceMap().fromObject(u).toComment()}if(r.sourceMaps==="inline"){u=null}return{outputCode:p,outputMap:u}}0&&0},3464:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=mergeSourceMap;function _remapping(){const e=r(3914);_remapping=function(){return e};return e}function mergeSourceMap(e,t,r){const n=r.replace(/\\/g,"/");let s=false;const i=_remapping()(rootless(t),((t,r)=>{if(t===n&&!s){s=true;r.source="";return rootless(e)}return null}));if(typeof e.sourceRoot==="string"){i.sourceRoot=e.sourceRoot}return Object.assign({},i)}function rootless(e){return Object.assign({},e,{sourceRoot:null})}0&&0},1714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run=run;function _traverse(){const e=r(8026);_traverse=function(){return e};return e}var n=r(3878);var s=r(9273);var i=r(6351);var a=r(6380);var o=r(915);var l=r(8634);var c=r(7987);function*run(e,t,r){const n=yield*(0,a.default)(e.passes,(0,i.default)(e),t,r);const s=n.opts;try{yield*transformFile(n,e.passes)}catch(e){var c;e.message=`${(c=s.filename)!=null?c:"unknown file"}: ${e.message}`;if(!e.code){e.code="BABEL_TRANSFORM_ERROR"}throw e}let p,u;try{if(s.code!==false){({outputCode:p,outputMap:u}=(0,o.default)(e.passes,n))}}catch(e){var d;e.message=`${(d=s.filename)!=null?d:"unknown file"}: ${e.message}`;if(!e.code){e.code="BABEL_GENERATE_ERROR"}throw e}return{metadata:n.metadata,options:s,ast:s.ast===true?n.ast:null,code:p===undefined?null:p,map:u===undefined?null:u,sourceType:n.ast.program.sourceType,externalDependencies:(0,l.flattenToSet)(e.externalDependencies)}}function*transformFile(e,t){const r=yield*(0,c.isAsync)();for(const i of t){const t=[];const a=[];const o=[];for(const l of i.concat([(0,s.default)()])){const s=new n.default(e,l.key,l.options,r);t.push([l,s]);a.push(s);o.push(l.visitor)}for(const[r,n]of t){if(r.pre){const t=(0,c.maybeAsync)(r.pre,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);yield*t.call(n,e)}}const l=_traverse().default.visitors.merge(o,a,e.opts.wrapPluginVisitorMethod);{(0,_traverse().default)(e.ast,l,e.scope)}for(const[r,n]of t){if(r.post){const t=(0,c.maybeAsync)(r.post,`You appear to be using an async plugin/preset, but Babel has been called synchronously`);yield*t.call(n,e)}}}}0&&0},6380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeFile;function _fs(){const e=r(7147);_fs=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _debug(){const e=r(6937);_debug=function(){return e};return e}function _t(){const e=r(3061);_t=function(){return e};return e}function _convertSourceMap(){const e=r(133);_convertSourceMap=function(){return e};return e}var n=r(2302);var s=r(8015);var i=r(2983);const{file:a,traverseFast:o}=_t();const l=_debug()("babel:transform:file");const c=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/;const p=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*normalizeFile(e,t,r,o){r=`${r||""}`;if(o){if(o.type==="Program"){o=a(o,[],[])}else if(o.type!=="File"){throw new Error("AST root must be a Program or File node")}if(t.cloneInputAst){o=(0,i.default)(o)}}else{o=yield*(0,s.default)(e,t,r)}let u=null;if(t.inputSourceMap!==false){if(typeof t.inputSourceMap==="object"){u=_convertSourceMap().fromObject(t.inputSourceMap)}if(!u){const e=extractComments(c,o);if(e){try{u=_convertSourceMap().fromComment("//"+e)}catch(e){{l("discarding unknown inline input sourcemap")}}}}if(!u){const e=extractComments(p,o);if(typeof t.filename==="string"&&e){try{const r=p.exec(e);const n=_fs().readFileSync(_path().resolve(_path().dirname(t.filename),r[1]),"utf8");u=_convertSourceMap().fromJSON(n)}catch(e){l("discarding unknown file input sourcemap",e)}}else if(e){l("discarding un-loadable file input sourcemap")}}}return new n.default(t,{code:r,ast:o,inputMap:u})}function extractCommentsFromList(e,t,r){if(t){t=t.filter((({value:t})=>{if(e.test(t)){r=t;return false}return true}))}return[t,r]}function extractComments(e,t){let r=null;o(t,(t=>{[t.leadingComments,r]=extractCommentsFromList(e,t.leadingComments,r);[t.innerComments,r]=extractCommentsFromList(e,t.innerComments,r);[t.trailingComments,r]=extractCommentsFromList(e,t.trailingComments,r)}));return r}0&&0},6351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeOptions;function _path(){const e=r(1017);_path=function(){return e};return e}function normalizeOptions(e){const{filename:t,cwd:r,filenameRelative:n=(typeof t==="string"?_path().relative(r,t):"unknown"),sourceType:s="module",inputSourceMap:i,sourceMaps:a=!!i,sourceRoot:o=e.options.moduleRoot,sourceFileName:l=_path().basename(n),comments:c=true,compact:p="auto"}=e.options;const u=e.options;const d=Object.assign({},u,{parserOpts:Object.assign({sourceType:_path().extname(n)===".mjs"?"module":s,sourceFileName:t,plugins:[]},u.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:u.auxiliaryCommentBefore,auxiliaryCommentAfter:u.auxiliaryCommentAfter,retainLines:u.retainLines,comments:c,shouldPrintComment:u.shouldPrintComment,compact:p,minified:u.minified,sourceMaps:a,sourceRoot:o,sourceFileName:l},u.generatorOpts)});for(const t of e.passes){for(const e of t){if(e.manipulateOptions){e.manipulateOptions(d,d.parserOpts)}}}return d}0&&0},3878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class PluginPass{constructor(e,t,r,n){this._map=new Map;this.key=void 0;this.file=void 0;this.opts=void 0;this.cwd=void 0;this.filename=void 0;this.isAsync=void 0;this.key=t;this.file=e;this.opts=r||{};this.cwd=e.opts.cwd;this.filename=e.opts.filename;this.isAsync=n}set(e,t){this._map.set(e,t)}get(e){return this._map.get(e)}availableHelper(e,t){return this.file.availableHelper(e,t)}addHelper(e){return this.file.addHelper(e)}buildCodeFrameError(e,t,r){return this.file.buildCodeFrameError(e,t,r)}}t["default"]=PluginPass;{PluginPass.prototype.getModuleName=function getModuleName(){return this.file.getModuleName()};PluginPass.prototype.addImport=function addImport(){this.file.addImport()}}0&&0},2983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;const r=new Set;let n=0;function deepClone(e,t,s){if(e!==null){if(s){if(t.has(e))return t.get(e)}else if(++n>250){if(r.has(e)){n=0;r.clear();throw new Error("Babel-deepClone: Cycles are not allowed in AST")}r.add(e)}let i;if(Array.isArray(e)){i=new Array(e.length);if(s)t.set(e,i);for(let r=0;r<e.length;r++){i[r]=typeof e[r]!=="object"?e[r]:deepClone(e[r],t,s)}}else{i={};if(s)t.set(e,i);const r=Object.keys(e);for(let n=0;n<r.length;n++){const a=r[n];i[a]=typeof e[a]!=="object"?e[a]:deepClone(e[a],t,s||a==="leadingComments"||a==="innerComments"||a==="trailingComments"||a==="extra")}}if(!s){if(n-- >250)r.delete(e)}return i}return e}function _default(e){if(typeof e!=="object")return e;{try{return deepClone(e,new Map,true)}catch(t){return structuredClone(e)}}}0&&0},2044:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.moduleResolve=moduleResolve;t.resolve=resolve;function _assert(){const e=r(9491);_assert=function(){return e};return e}function _fs(){const e=_interopRequireWildcard(r(7147),true);_fs=function(){return e};return e}function _process(){const e=r(7282);_process=function(){return e};return e}function _url(){const e=r(7310);_url=function(){return e};return e}function _path(){const e=r(1017);_path=function(){return e};return e}function _module(){const e=r(8188);_module=function(){return e};return e}function _v(){const e=r(4655);_v=function(){return e};return e}function _util(){const e=r(3837);_util=function(){return e};return e}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const n={}.hasOwnProperty;const s=/^([A-Z][a-z\d]*)+$/;const i=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]);const a={};function formatList(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}const o=new Map;const l="__node_internal_";let c;a.ERR_INVALID_ARG_TYPE=createError("ERR_INVALID_ARG_TYPE",((e,t,r)=>{_assert()(typeof e==="string","'name' must be a string");if(!Array.isArray(t)){t=[t]}let n="The ";if(e.endsWith(" argument")){n+=`${e} `}else{const t=e.includes(".")?"property":"argument";n+=`"${e}" ${t} `}n+="must be ";const a=[];const o=[];const l=[];for(const e of t){_assert()(typeof e==="string","All expected entries have to be of type string");if(i.has(e)){a.push(e.toLowerCase())}else if(s.exec(e)===null){_assert()(e!=="object",'The value "object" should be written as "Object"');l.push(e)}else{o.push(e)}}if(o.length>0){const e=a.indexOf("object");if(e!==-1){a.slice(e,1);o.push("Object")}}if(a.length>0){n+=`${a.length>1?"one of type":"of type"} ${formatList(a,"or")}`;if(o.length>0||l.length>0)n+=" or "}if(o.length>0){n+=`an instance of ${formatList(o,"or")}`;if(l.length>0)n+=" or "}if(l.length>0){if(l.length>1){n+=`one of ${formatList(l,"or")}`}else{if(l[0].toLowerCase()!==l[0])n+="an ";n+=`${l[0]}`}}n+=`. Received ${determineSpecificType(r)}`;return n}),TypeError);a.ERR_INVALID_MODULE_SPECIFIER=createError("ERR_INVALID_MODULE_SPECIFIER",((e,t,r=undefined)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`),TypeError);a.ERR_INVALID_PACKAGE_CONFIG=createError("ERR_INVALID_PACKAGE_CONFIG",((e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`),Error);a.ERR_INVALID_PACKAGE_TARGET=createError("ERR_INVALID_PACKAGE_TARGET",((e,t,r,n=false,s=undefined)=>{const i=typeof r==="string"&&!n&&r.length>0&&!r.startsWith("./");if(t==="."){_assert()(n===false);return`Invalid "exports" main target ${JSON.stringify(r)} defined `+`in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`}return`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`}),Error);a.ERR_MODULE_NOT_FOUND=createError("ERR_MODULE_NOT_FOUND",((e,t,r=false)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`),Error);a.ERR_NETWORK_IMPORT_DISALLOWED=createError("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);a.ERR_PACKAGE_IMPORT_NOT_DEFINED=createError("ERR_PACKAGE_IMPORT_NOT_DEFINED",((e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`),TypeError);a.ERR_PACKAGE_PATH_NOT_EXPORTED=createError("ERR_PACKAGE_PATH_NOT_EXPORTED",((e,t,r=undefined)=>{if(t===".")return`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`;return`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`}),Error);a.ERR_UNSUPPORTED_DIR_IMPORT=createError("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported "+"resolving ES modules imported from %s",Error);a.ERR_UNSUPPORTED_RESOLVE_REQUEST=createError("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);a.ERR_UNKNOWN_FILE_EXTENSION=createError("ERR_UNKNOWN_FILE_EXTENSION",((e,t)=>`Unknown file extension "${e}" for ${t}`),TypeError);a.ERR_INVALID_ARG_VALUE=createError("ERR_INVALID_ARG_VALUE",((e,t,r="is invalid")=>{let n=(0,_util().inspect)(t);if(n.length>128){n=`${n.slice(0,128)}...`}const s=e.includes(".")?"property":"argument";return`The ${s} '${e}' ${r}. Received ${n}`}),TypeError);function createError(e,t,r){o.set(e,t);return makeNodeErrorWithCode(r,e)}function makeNodeErrorWithCode(e,t){return NodeError;function NodeError(...r){const n=Error.stackTraceLimit;if(isErrorStackTraceLimitWritable())Error.stackTraceLimit=0;const s=new e;if(isErrorStackTraceLimitWritable())Error.stackTraceLimit=n;const i=getMessage(t,r,s);Object.defineProperties(s,{message:{value:i,enumerable:false,writable:true,configurable:true},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:false,writable:true,configurable:true}});p(s);s.code=t;return s}}function isErrorStackTraceLimitWritable(){try{if(_v().startupSnapshot.isBuildingSnapshot()){return false}}catch(e){}const e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(e===undefined){return Object.isExtensible(Error)}return n.call(e,"writable")&&e.writable!==undefined?e.writable:e.set!==undefined}function hideStackFrames(e){const t=l+e.name;Object.defineProperty(e,"name",{value:t});return e}const p=hideStackFrames((function(e){const t=isErrorStackTraceLimitWritable();if(t){c=Error.stackTraceLimit;Error.stackTraceLimit=Number.POSITIVE_INFINITY}Error.captureStackTrace(e);if(t)Error.stackTraceLimit=c;return e}));function getMessage(e,t,r){const n=o.get(e);_assert()(n!==undefined,"expected `message` to be found");if(typeof n==="function"){_assert()(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not `+`match the required ones (${n.length}).`);return Reflect.apply(n,r,t)}const s=/%[dfijoOs]/g;let i=0;while(s.exec(n)!==null)i++;_assert()(i===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not `+`match the required ones (${i}).`);if(t.length===0)return n;t.unshift(n);return Reflect.apply(_util().format,null,t)}function determineSpecificType(e){if(e===null||e===undefined){return String(e)}if(typeof e==="function"&&e.name){return`function ${e.name}`}if(typeof e==="object"){if(e.constructor&&e.constructor.name){return`an instance of ${e.constructor.name}`}return`${(0,_util().inspect)(e,{depth:-1})}`}let t=(0,_util().inspect)(e,{colors:false});if(t.length>28){t=`${t.slice(0,25)}...`}return`type ${typeof e} (${t})`}const u={}.hasOwnProperty;const{ERR_INVALID_PACKAGE_CONFIG:d}=a;const f=new Map;function read(e,{base:t,specifier:r}){const n=f.get(e);if(n){return n}let s;try{s=_fs().default.readFileSync(_path().toNamespacedPath(e),"utf8")}catch(e){const t=e;if(t.code!=="ENOENT"){throw t}}const i={exists:false,pjsonPath:e,main:undefined,name:undefined,type:"none",exports:undefined,imports:undefined};if(s!==undefined){let n;try{n=JSON.parse(s)}catch(n){const s=n;const i=new d(e,(t?`"${r}" from `:"")+(0,_url().fileURLToPath)(t||r),s.message);i.cause=s;throw i}i.exists=true;if(u.call(n,"name")&&typeof n.name==="string"){i.name=n.name}if(u.call(n,"main")&&typeof n.main==="string"){i.main=n.main}if(u.call(n,"exports")){i.exports=n.exports}if(u.call(n,"imports")){i.imports=n.imports}if(u.call(n,"type")&&(n.type==="commonjs"||n.type==="module")){i.type=n.type}}f.set(e,i);return i}function getPackageScopeConfig(e){let t=new URL("package.json",e);while(true){const r=t.pathname;if(r.endsWith("node_modules/package.json")){break}const n=read((0,_url().fileURLToPath)(t),{specifier:e});if(n.exists){return n}const s=t;t=new URL("../package.json",t);if(t.pathname===s.pathname){break}}const r=(0,_url().fileURLToPath)(t);return{pjsonPath:r,exists:false,type:"none"}}function getPackageType(e){return getPackageScopeConfig(e).type}const{ERR_UNKNOWN_FILE_EXTENSION:h}=a;const m={}.hasOwnProperty;const y={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function mimeToFormat(e){if(e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e))return"module";if(e==="application/json")return"json";return null}const g={__proto__:null,"data:":getDataProtocolModuleFormat,"file:":getFileProtocolModuleFormat,"http:":getHttpProtocolModuleFormat,"https:":getHttpProtocolModuleFormat,"node:"(){return"builtin"}};function getDataProtocolModuleFormat(e){const{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return mimeToFormat(t)}function extname(e){const t=e.pathname;let r=t.length;while(r--){const e=t.codePointAt(r);if(e===47){return""}if(e===46){return t.codePointAt(r-1)===47?"":t.slice(r)}}return""}function getFileProtocolModuleFormat(e,t,r){const n=extname(e);if(n===".js"){const t=getPackageType(e);if(t!=="none"){return t}return"commonjs"}if(n===""){const t=getPackageType(e);if(t==="none"||t==="commonjs"){return"commonjs"}return"module"}const s=y[n];if(s)return s;if(r){return undefined}const i=(0,_url().fileURLToPath)(e);throw new h(n,i)}function getHttpProtocolModuleFormat(){}function defaultGetFormatWithoutErrors(e,t){const r=e.protocol;if(!m.call(g,r)){return null}return g[r](e,t,true)||null}const{ERR_INVALID_ARG_VALUE:b}=a;const T=Object.freeze(["node","import"]);const S=new Set(T);function getDefaultConditions(){return T}function getDefaultConditionsSet(){return S}function getConditionsSet(e){if(e!==undefined&&e!==getDefaultConditions()){if(!Array.isArray(e)){throw new b("conditions",e,"expected an array")}return new Set(e)}return getDefaultConditionsSet()}const x=RegExp.prototype[Symbol.replace];const{ERR_NETWORK_IMPORT_DISALLOWED:E,ERR_INVALID_MODULE_SPECIFIER:P,ERR_INVALID_PACKAGE_CONFIG:v,ERR_INVALID_PACKAGE_TARGET:A,ERR_MODULE_NOT_FOUND:w,ERR_PACKAGE_IMPORT_NOT_DEFINED:I,ERR_PACKAGE_PATH_NOT_EXPORTED:C,ERR_UNSUPPORTED_DIR_IMPORT:O,ERR_UNSUPPORTED_RESOLVE_REQUEST:N}=a;const k={}.hasOwnProperty;const _=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i;const D=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i;const M=/^\.|%|\\/;const L=/\*/g;const j=/%2f|%5c/i;const F=new Set;const B=/[/\\]{2}/;function emitInvalidSegmentDeprecation(e,t,r,n,s,i,a){if(_process().noDeprecation){return}const o=(0,_url().fileURLToPath)(n);const l=B.exec(a?e:t)!==null;_process().emitWarning(`Use of deprecated ${l?"double slash":"leading or trailing slash matching"} resolving "${e}" for module `+`request "${t}" ${t===r?"":`matched to "${r}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${o}${i?` imported from ${(0,_url().fileURLToPath)(i)}`:""}.`,"DeprecationWarning","DEP0166")}function emitLegacyIndexDeprecation(e,t,r,n){if(_process().noDeprecation){return}const s=defaultGetFormatWithoutErrors(e,{parentURL:r.href});if(s!=="module")return;const i=(0,_url().fileURLToPath)(e.href);const a=(0,_url().fileURLToPath)(new(_url().URL)(".",t));const o=(0,_url().fileURLToPath)(r);if(!n){_process().emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.\nDefault "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}else if(_path().resolve(a,n)!==i){_process().emitWarning(`Package ${a} has a "main" field set to "${n}", `+`excluding the full filename and extension to the resolved file at "${i.slice(a.length)}", imported from ${o}.\n Automatic extension resolution of the "main" field is `+"deprecated for ES modules.","DeprecationWarning","DEP0151")}}function tryStatSync(e){try{return(0,_fs().statSync)(e)}catch(e){}}function fileExists(e){const t=(0,_fs().statSync)(e,{throwIfNoEntry:false});const r=t?t.isFile():undefined;return r===null||r===undefined?false:r}function legacyMainResolve(e,t,r){let n;if(t.main!==undefined){n=new(_url().URL)(t.main,e);if(fileExists(n))return n;const s=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`];let i=-1;while(++i<s.length){n=new(_url().URL)(s[i],e);if(fileExists(n))break;n=undefined}if(n){emitLegacyIndexDeprecation(n,e,r,t.main);return n}}const s=["./index.js","./index.json","./index.node"];let i=-1;while(++i<s.length){n=new(_url().URL)(s[i],e);if(fileExists(n))break;n=undefined}if(n){emitLegacyIndexDeprecation(n,e,r,t.main);return n}throw new w((0,_url().fileURLToPath)(new(_url().URL)(".",e)),(0,_url().fileURLToPath)(r))}function finalizeResolution(e,t,r){if(j.exec(e.pathname)!==null){throw new P(e.pathname,'must not include encoded "/" or "\\" characters',(0,_url().fileURLToPath)(t))}let n;try{n=(0,_url().fileURLToPath)(e)}catch(r){const n=r;Object.defineProperty(n,"input",{value:String(e)});Object.defineProperty(n,"module",{value:String(t)});throw n}const s=tryStatSync(n.endsWith("/")?n.slice(-1):n);if(s&&s.isDirectory()){const r=new O(n,(0,_url().fileURLToPath)(t));r.url=String(e);throw r}if(!s||!s.isFile()){const r=new w(n||e.pathname,t&&(0,_url().fileURLToPath)(t),true);r.url=String(e);throw r}if(!r){const t=(0,_fs().realpathSync)(n);const{search:r,hash:s}=e;e=(0,_url().pathToFileURL)(t+(n.endsWith(_path().sep)?"/":""));e.search=r;e.hash=s}return e}function importNotDefined(e,t,r){return new I(e,t&&(0,_url().fileURLToPath)(new(_url().URL)(".",t)),(0,_url().fileURLToPath)(r))}function exportsNotFound(e,t,r){return new C((0,_url().fileURLToPath)(new(_url().URL)(".",t)),e,r&&(0,_url().fileURLToPath)(r))}function throwInvalidSubpath(e,t,r,n,s){const i=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,_url().fileURLToPath)(r)}`;throw new P(e,i,s&&(0,_url().fileURLToPath)(s))}function invalidPackageTarget(e,t,r,n,s){t=typeof t==="object"&&t!==null?JSON.stringify(t,null,""):`${t}`;return new A((0,_url().fileURLToPath)(new(_url().URL)(".",r)),e,t,n,s&&(0,_url().fileURLToPath)(s))}function resolvePackageTargetString(e,t,r,n,s,i,a,o,l){if(t!==""&&!i&&e[e.length-1]!=="/")throw invalidPackageTarget(r,e,n,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let r=false;try{new(_url().URL)(e);r=true}catch(e){}if(!r){const r=i?x.call(L,e,(()=>t)):e+t;return packageResolve(r,n,l)}}throw invalidPackageTarget(r,e,n,a,s)}if(_.exec(e.slice(2))!==null){if(D.exec(e.slice(2))===null){if(!o){const o=i?r.replace("*",(()=>t)):r+t;const l=i?x.call(L,e,(()=>t)):e;emitInvalidSegmentDeprecation(l,o,r,n,a,s,true)}}else{throw invalidPackageTarget(r,e,n,a,s)}}const c=new(_url().URL)(e,n);const p=c.pathname;const u=new(_url().URL)(".",n).pathname;if(!p.startsWith(u))throw invalidPackageTarget(r,e,n,a,s);if(t==="")return c;if(_.exec(t)!==null){const l=i?r.replace("*",(()=>t)):r+t;if(D.exec(t)===null){if(!o){const o=i?x.call(L,e,(()=>t)):e;emitInvalidSegmentDeprecation(o,l,r,n,a,s,false)}}else{throwInvalidSubpath(l,r,n,a,s)}}if(i){return new(_url().URL)(x.call(L,c.href,(()=>t)))}return new(_url().URL)(t,c)}function isArrayIndex(e){const t=Number(e);if(`${t}`!==e)return false;return t>=0&&t<4294967295}function resolvePackageTarget(e,t,r,n,s,i,a,o,l){if(typeof t==="string"){return resolvePackageTargetString(t,r,n,e,s,i,a,o,l)}if(Array.isArray(t)){const c=t;if(c.length===0)return null;let p;let u=-1;while(++u<c.length){const t=c[u];let d;try{d=resolvePackageTarget(e,t,r,n,s,i,a,o,l)}catch(e){const t=e;p=t;if(t.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw e}if(d===undefined)continue;if(d===null){p=null;continue}return d}if(p===undefined||p===null){return null}throw p}if(typeof t==="object"&&t!==null){const c=Object.getOwnPropertyNames(t);let p=-1;while(++p<c.length){const t=c[p];if(isArrayIndex(t)){throw new v((0,_url().fileURLToPath)(e),s,'"exports" cannot contain numeric property keys.')}}p=-1;while(++p<c.length){const u=c[p];if(u==="default"||l&&l.has(u)){const c=t[u];const p=resolvePackageTarget(e,c,r,n,s,i,a,o,l);if(p===undefined)continue;return p}}return null}if(t===null){return null}throw invalidPackageTarget(n,t,e,a,s)}function isConditionalExportsMainSugar(e,t,r){if(typeof e==="string"||Array.isArray(e))return true;if(typeof e!=="object"||e===null)return false;const n=Object.getOwnPropertyNames(e);let s=false;let i=0;let a=-1;while(++a<n.length){const e=n[a];const o=e===""||e[0]!==".";if(i++===0){s=o}else if(s!==o){throw new v((0,_url().fileURLToPath)(t),r,"\"exports\" cannot contain some keys starting with '.' and some not."+" The exports object must either be an object of package subpath keys"+" or an object of main entry condition name keys only.")}}return s}function emitTrailingSlashPatternDeprecation(e,t,r){if(_process().noDeprecation){return}const n=(0,_url().fileURLToPath)(t);if(F.has(n+"|"+e))return;F.add(n+"|"+e);_process().emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the `+`"exports" field module resolution of the package at ${n}${r?` imported from ${(0,_url().fileURLToPath)(r)}`:""}. Mapping specifiers ending in "/" is no longer supported.`,"DeprecationWarning","DEP0155")}function packageExportsResolve(e,t,r,n,s){let i=r.exports;if(isConditionalExportsMainSugar(i,e,n)){i={".":i}}if(k.call(i,t)&&!t.includes("*")&&!t.endsWith("/")){const r=i[t];const a=resolvePackageTarget(e,r,"",t,n,false,false,false,s);if(a===null||a===undefined){throw exportsNotFound(t,e,n)}return a}let a="";let o="";const l=Object.getOwnPropertyNames(i);let c=-1;while(++c<l.length){const r=l[c];const s=r.indexOf("*");if(s!==-1&&t.startsWith(r.slice(0,s))){if(t.endsWith("/")){emitTrailingSlashPatternDeprecation(t,e,n)}const i=r.slice(s+1);if(t.length>=r.length&&t.endsWith(i)&&patternKeyCompare(a,r)===1&&r.lastIndexOf("*")===s){a=r;o=t.slice(s,t.length-i.length)}}}if(a){const r=i[a];const l=resolvePackageTarget(e,r,o,a,n,true,false,t.endsWith("/"),s);if(l===null||l===undefined){throw exportsNotFound(t,e,n)}return l}throw exportsNotFound(t,e,n)}function patternKeyCompare(e,t){const r=e.indexOf("*");const n=t.indexOf("*");const s=r===-1?e.length:r+1;const i=n===-1?t.length:n+1;if(s>i)return-1;if(i>s)return 1;if(r===-1)return 1;if(n===-1)return-1;if(e.length>t.length)return-1;if(t.length>e.length)return 1;return 0}function packageImportsResolve(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){const r="is not a valid internal imports specifier name";throw new P(e,r,(0,_url().fileURLToPath)(t))}let n;const s=getPackageScopeConfig(t);if(s.exists){n=(0,_url().pathToFileURL)(s.pjsonPath);const i=s.imports;if(i){if(k.call(i,e)&&!e.includes("*")){const s=resolvePackageTarget(n,i[e],"",e,t,false,true,false,r);if(s!==null&&s!==undefined){return s}}else{let s="";let a="";const o=Object.getOwnPropertyNames(i);let l=-1;while(++l<o.length){const t=o[l];const r=t.indexOf("*");if(r!==-1&&e.startsWith(t.slice(0,-1))){const n=t.slice(r+1);if(e.length>=t.length&&e.endsWith(n)&&patternKeyCompare(s,t)===1&&t.lastIndexOf("*")===r){s=t;a=e.slice(r,e.length-n.length)}}}if(s){const e=i[s];const o=resolvePackageTarget(n,e,a,s,t,true,true,false,r);if(o!==null&&o!==undefined){return o}}}}}throw importNotDefined(e,n,t)}function parsePackageName(e,t){let r=e.indexOf("/");let n=true;let s=false;if(e[0]==="@"){s=true;if(r===-1||e.length===0){n=false}else{r=e.indexOf("/",r+1)}}const i=r===-1?e:e.slice(0,r);if(M.exec(i)!==null){n=false}if(!n){throw new P(e,"is not a valid package name",(0,_url().fileURLToPath)(t))}const a="."+(r===-1?"":e.slice(r));return{packageName:i,packageSubpath:a,isScoped:s}}function packageResolve(e,t,r){if(_module().builtinModules.includes(e)){return new(_url().URL)("node:"+e)}const{packageName:n,packageSubpath:s,isScoped:i}=parsePackageName(e,t);const a=getPackageScopeConfig(t);if(a.exists){const e=(0,_url().pathToFileURL)(a.pjsonPath);if(a.name===n&&a.exports!==undefined&&a.exports!==null){return packageExportsResolve(e,s,a,t,r)}}let o=new(_url().URL)("./node_modules/"+n+"/package.json",t);let l=(0,_url().fileURLToPath)(o);let c;do{const a=tryStatSync(l.slice(0,-13));if(!a||!a.isDirectory()){c=l;o=new(_url().URL)((i?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",o);l=(0,_url().fileURLToPath)(o);continue}const p=read(l,{base:t,specifier:e});if(p.exports!==undefined&&p.exports!==null){return packageExportsResolve(o,s,p,t,r)}if(s==="."){return legacyMainResolve(o,p,t)}return new(_url().URL)(s,o)}while(l.length!==c.length);throw new w(n,(0,_url().fileURLToPath)(t),false)}function isRelativeSpecifier(e){if(e[0]==="."){if(e.length===1||e[1]==="/")return true;if(e[1]==="."&&(e.length===2||e[2]==="/")){return true}}return false}function shouldBeTreatedAsRelativeOrAbsolutePath(e){if(e==="")return false;if(e[0]==="/")return true;return isRelativeSpecifier(e)}function moduleResolve(e,t,r,n){const s=t.protocol;const i=s==="data:";const a=i||s==="http:"||s==="https:";let o;if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){try{o=new(_url().URL)(e,t)}catch(r){const n=new N(e,t);n.cause=r;throw n}}else if(s==="file:"&&e[0]==="#"){o=packageImportsResolve(e,t,r)}else{try{o=new(_url().URL)(e)}catch(n){if(a&&!_module().builtinModules.includes(e)){const r=new N(e,t);r.cause=n;throw r}o=packageResolve(e,t,r)}}_assert()(o!==undefined,"expected to be defined");if(o.protocol!=="file:"){return o}return finalizeResolution(o,t,n)}function checkIfDisallowedImport(e,t,r){if(r){const n=r.protocol;if(n==="http:"||n==="https:"){if(shouldBeTreatedAsRelativeOrAbsolutePath(e)){const n=t==null?void 0:t.protocol;if(n&&n!=="https:"&&n!=="http:"){throw new E(e,r,"remote imports cannot import from a local location.")}return{url:(t==null?void 0:t.href)||""}}if(_module().builtinModules.includes(e)){throw new E(e,r,"remote imports cannot import from a local location.")}throw new E(e,r,"only relative and absolute specifiers are supported.")}}}function isURL(e){return Boolean(e&&typeof e==="object"&&"href"in e&&typeof e.href==="string"&&"protocol"in e&&typeof e.protocol==="string"&&e.href&&e.protocol)}function throwIfInvalidParentURL(e){if(e===undefined){return}if(typeof e!=="string"&&!isURL(e)){throw new a.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}}function defaultResolve(e,t={}){const{parentURL:r}=t;_assert()(r!==undefined,"expected `parentURL` to be defined");throwIfInvalidParentURL(r);let n;if(r){try{n=new(_url().URL)(r)}catch(e){}}let s;let i;try{s=shouldBeTreatedAsRelativeOrAbsolutePath(e)?new(_url().URL)(e,n):new(_url().URL)(e);i=s.protocol;if(i==="data:"){return{url:s.href,format:null}}}catch(e){}const a=checkIfDisallowedImport(e,s,n);if(a)return a;if(i===undefined&&s){i=s.protocol}if(i==="node:"){return{url:e}}if(s&&s.protocol==="node:")return{url:e};const o=getConditionsSet(t.conditions);const l=moduleResolve(e,new(_url().URL)(r),o,false);return{url:l.href,format:defaultGetFormatWithoutErrors(l,{parentURL:r})}}function resolve(e,t){if(!t){throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that")}try{return defaultResolve(e,{parentURL:t}).url}catch(e){const t=e;if((t.code==="ERR_UNSUPPORTED_DIR_IMPORT"||t.code==="ERR_MODULE_NOT_FOUND")&&typeof t.url==="string"){return t.url}throw e}}0&&0},6031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Buffer{constructor(e,t){this._map=null;this._buf="";this._str="";this._appendCount=0;this._last=0;this._queue=[];this._queueCursor=0;this._canMarkIdName=true;this._indentChar="";this._fastIndentations=[];this._position={line:1,column:0};this._sourcePosition={identifierName:undefined,identifierNamePos:undefined,line:undefined,column:undefined,filename:undefined};this._map=e;this._indentChar=t;for(let e=0;e<64;e++){this._fastIndentations.push(t.repeat(e))}this._allocQueue()}_allocQueue(){const e=this._queue;for(let t=0;t<16;t++){e.push({char:0,repeat:1,line:undefined,column:undefined,identifierName:undefined,identifierNamePos:undefined,filename:""})}}_pushQueue(e,t,r,n,s){const i=this._queueCursor;if(i===this._queue.length){this._allocQueue()}const a=this._queue[i];a.char=e;a.repeat=t;a.line=r;a.column=n;a.filename=s;this._queueCursor++}_popQueue(){if(this._queueCursor===0){throw new Error("Cannot pop from empty queue")}return this._queue[--this._queueCursor]}get(){this._flush();const e=this._map;const t={code:(this._buf+this._str).trimRight(),decodedMap:e==null?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const r=e?e.get():null;t.map=r;return r},set map(e){Object.defineProperty(t,"map",{value:e,writable:true})},get rawMappings(){const r=e==null?void 0:e.getRawMappings();t.rawMappings=r;return r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:true})}};return t}append(e,t){this._flush();this._append(e,this._sourcePosition,t)}appendChar(e){this._flush();this._appendChar(e,1,this._sourcePosition)}queue(e){if(e===10){while(this._queueCursor!==0){const e=this._queue[this._queueCursor-1].char;if(e!==32&&e!==9){break}this._queueCursor--}}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){if(e===0)return;this._pushQueue(-1,e,undefined,undefined,undefined)}_flush(){const e=this._queueCursor;const t=this._queue;for(let r=0;r<e;r++){const e=t[r];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,r){this._last=e;if(e===-1){const e=this._fastIndentations[t];if(e!==undefined){this._str+=e}else{this._str+=t>1?this._indentChar.repeat(t):this._indentChar}}else{this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e)}if(e!==10){this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename);this._position.column+=t}else{this._position.line++;this._position.column=0}if(this._canMarkIdName){r.identifierName=undefined;r.identifierNamePos=undefined}}_append(e,t,r){const n=e.length;const s=this._position;this._last=e.charCodeAt(n-1);if(++this._appendCount>4096){+this._str;this._buf+=this._str;this._str=e;this._appendCount=0}else{this._str+=e}if(!r&&!this._map){s.column+=n;return}const{column:i,identifierName:a,identifierNamePos:o,filename:l}=t;let c=t.line;if((a!=null||o!=null)&&this._canMarkIdName){t.identifierName=undefined;t.identifierNamePos=undefined}let p=e.indexOf("\n");let u=0;if(p!==0){this._mark(c,i,a,o,l)}while(p!==-1){s.line++;s.column=0;u=p+1;if(u<n&&c!==undefined){this._mark(++c,0,null,null,l)}p=e.indexOf("\n",u)}s.column+=n-u}_mark(e,t,r,n,s){var i;(i=this._map)==null||i.mark(this._position,e,t,r,n,s)}removeTrailingNewline(){const e=this._queueCursor;if(e!==0&&this._queue[e-1].char===10){this._queueCursor--}}removeLastSemicolon(){const e=this._queueCursor;if(e!==0&&this._queue[e-1].char===59){this._queueCursor--}}getLastChar(){const e=this._queueCursor;return e!==0?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(e===0)return this._last===10?1:0;for(let r=e-1;r>=0;r--){if(this._queue[r].char!==10){break}t++}return t===e&&this._last===10?t+1:t}endsWithCharAndNewline(){const e=this._queue;const t=this._queueCursor;if(t!==0){const r=e[t-1].char;if(r!==10)return;if(t>1){return e[t-2].char}else{return this._last}}}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(e,t){if(!this._map){t();return}this.source("start",e);const r=e.identifierName;const n=this._sourcePosition;if(r){this._canMarkIdName=false;n.identifierName=r}t();if(r){this._canMarkIdName=true;n.identifierName=undefined;n.identifierNamePos=undefined}this.source("end",e)}source(e,t){if(!this._map)return;this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){if(!this._map)return;this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){const n=t[e];const s=this._sourcePosition;if(n){s.line=n.line;s.column=Math.max(n.column+r,0);s.filename=t.filename}}getCurrentColumn(){const e=this._queue;const t=this._queueCursor;let r=-1;let n=0;for(let s=0;s<t;s++){const t=e[s];if(t.char===10){r=n}n+=t.repeat}return r===-1?this._position.column+n:n-1-r}getCurrentLine(){let e=0;const t=this._queue;for(let r=0;r<this._queueCursor;r++){if(t[r].char===10){e++}}return this._position.line+e}}t["default"]=Buffer},1647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BlockStatement=BlockStatement;t.Directive=Directive;t.DirectiveLiteral=DirectiveLiteral;t.File=File;t.InterpreterDirective=InterpreterDirective;t.Placeholder=Placeholder;t.Program=Program;function File(e){if(e.program){this.print(e.program.interpreter)}this.print(e.program)}function Program(e){var t;this.noIndentInnerCommentsHere();this.printInnerComments();const r=(t=e.directives)==null?void 0:t.length;if(r){var n;const t=e.body.length?2:1;this.printSequence(e.directives,undefined,t);if(!((n=e.directives[r-1].trailingComments)!=null&&n.length)){this.newline(t)}}this.printSequence(e.body)}function BlockStatement(e){var t;this.tokenChar(123);const r=this.enterDelimited();const n=(t=e.directives)==null?void 0:t.length;if(n){var s;const t=e.body.length?2:1;this.printSequence(e.directives,true,t);if(!((s=e.directives[n-1].trailingComments)!=null&&s.length)){this.newline(t)}}this.printSequence(e.body,true);r();this.rightBrace(e)}function Directive(e){this.print(e.value);this.semicolon()}const r=/(?:^|[^\\])(?:\\\\)*'/;const n=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const{value:s}=e;if(!n.test(s)){this.token(`"${s}"`)}else if(!r.test(s)){this.token(`'${s}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(e){this.token(`#!${e.value}`);this.newline(1,true)}function Placeholder(e){this.token("%%");this.print(e.name);this.token("%%");if(e.expectedNode==="Statement"){this.semicolon()}}},5953:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ClassAccessorProperty=ClassAccessorProperty;t.ClassBody=ClassBody;t.ClassExpression=t.ClassDeclaration=ClassDeclaration;t.ClassMethod=ClassMethod;t.ClassPrivateMethod=ClassPrivateMethod;t.ClassPrivateProperty=ClassPrivateProperty;t.ClassProperty=ClassProperty;t.StaticBlock=StaticBlock;t._classMethodHead=_classMethodHead;var n=r(3061);const{isExportDefaultDeclaration:s,isExportNamedDeclaration:i}=n;function ClassDeclaration(e,t){const r=s(t)||i(t);if(!r||!this._shouldPrintDecoratorsBeforeExport(t)){this.printJoin(e.decorators)}if(e.declare){this.word("declare");this.space()}if(e.abstract){this.word("abstract");this.space()}this.word("class");if(e.id){this.space();this.print(e.id)}this.print(e.typeParameters);if(e.superClass){this.space();this.word("extends");this.space();this.print(e.superClass);this.print(e.superTypeParameters)}if(e.implements){this.space();this.word("implements");this.space();this.printList(e.implements)}this.space();this.print(e.body)}function ClassBody(e){this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();const t=classBodyEmptySemicolonsPrinter(this,e);t==null||t(-1);const r=this.enterDelimited();this.printJoin(e.body,true,true,t,true);r();if(!this.endsWith(10))this.newline();this.rightBrace(e)}}function classBodyEmptySemicolonsPrinter(e,t){if(!e.tokenMap||t.start==null||t.end==null){return null}const r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1;let s=0;let i=0;const advanceNextLocIndex=()=>{while(i<t.body.length&&t.body[i].start==null){i++}};advanceNextLocIndex();return a=>{if(i<=a){i=a+1;advanceNextLocIndex()}const o=i===t.body.length?t.end:t.body[i].start;let l;while(n<r.length&&e.tokenMap.matchesOriginal(l=e._tokens[r[n]],";")&&l.start<o){e.token(";",undefined,s++);n++}}}function ClassProperty(e){this.printJoin(e.decorators);if(!e.static&&!this.format.preserveFormat){var t;const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}this.tsPrintClassMemberModifiers(e);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{this._variance(e);this.print(e.key)}if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassAccessorProperty(e){var t;this.printJoin(e.decorators);const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r);this.tsPrintClassMemberModifiers(e);this.word("accessor",true);this.space();if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{this._variance(e);this.print(e.key)}if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassPrivateProperty(e){this.printJoin(e.decorators);this.tsPrintClassMemberModifiers(e);this.print(e.key);if(e.optional){this.tokenChar(63)}if(e.definite){this.tokenChar(33)}this.print(e.typeAnnotation);if(e.value){this.space();this.tokenChar(61);this.space();this.print(e.value)}this.semicolon()}function ClassMethod(e){this._classMethodHead(e);this.space();this.print(e.body)}function ClassPrivateMethod(e){this._classMethodHead(e);this.space();this.print(e.body)}function _classMethodHead(e){this.printJoin(e.decorators);if(!this.format.preserveFormat){var t;const r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}this.tsPrintClassMemberModifiers(e);this._methodHead(e)}function StaticBlock(e){this.word("static");this.space();this.tokenChar(123);if(e.body.length===0){this.tokenChar(125)}else{this.newline();this.printSequence(e.body,true);this.rightBrace(e)}}},2943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addDeprecatedGenerators=addDeprecatedGenerators;function addDeprecatedGenerators(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression);this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"m")}};Object.assign(e.prototype,t)}}},1270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LogicalExpression=t.BinaryExpression=t.AssignmentExpression=AssignmentExpression;t.AssignmentPattern=AssignmentPattern;t.AwaitExpression=AwaitExpression;t.BindExpression=BindExpression;t.CallExpression=CallExpression;t.ConditionalExpression=ConditionalExpression;t.Decorator=Decorator;t.DoExpression=DoExpression;t.EmptyStatement=EmptyStatement;t.ExpressionStatement=ExpressionStatement;t.Import=Import;t.MemberExpression=MemberExpression;t.MetaProperty=MetaProperty;t.ModuleExpression=ModuleExpression;t.NewExpression=NewExpression;t.OptionalCallExpression=OptionalCallExpression;t.OptionalMemberExpression=OptionalMemberExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.PrivateName=PrivateName;t.SequenceExpression=SequenceExpression;t.Super=Super;t.ThisExpression=ThisExpression;t.UnaryExpression=UnaryExpression;t.UpdateExpression=UpdateExpression;t.V8IntrinsicIdentifier=V8IntrinsicIdentifier;t.YieldExpression=YieldExpression;t._shouldPrintDecoratorsBeforeExport=_shouldPrintDecoratorsBeforeExport;var n=r(3061);var s=r(8694);const{isCallExpression:i,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:c}=n;function UnaryExpression(e){const{operator:t}=e;if(t==="void"||t==="delete"||t==="typeof"||t==="throw"){this.word(t);this.space()}else{this.token(t)}this.print(e.argument)}function DoExpression(e){if(e.async){this.word("async",true);this.space()}this.word("do");this.space();this.print(e.body)}function ParenthesizedExpression(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression);t();this.rightParens(e)}function UpdateExpression(e){if(e.prefix){this.token(e.operator);this.print(e.argument)}else{this.print(e.argument,true);this.token(e.operator)}}function ConditionalExpression(e){this.print(e.test);this.space();this.tokenChar(63);this.space();this.print(e.consequent);this.space();this.tokenChar(58);this.space();this.print(e.alternate)}function NewExpression(e,t){this.word("new");this.space();this.print(e.callee);if(this.format.minified&&e.arguments.length===0&&!e.optional&&!i(t,{callee:e})&&!o(t)&&!l(t)){return}this.print(e.typeArguments);{this.print(e.typeParameters)}if(e.optional){this.token("?.")}if(e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")){return}this.tokenChar(40);const r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));r();this.rightParens(e)}function SequenceExpression(e){this.printList(e.expressions)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function _shouldPrintDecoratorsBeforeExport(e){if(typeof this.format.decoratorsBeforeExport==="boolean"){return this.format.decoratorsBeforeExport}return typeof e.start==="number"&&e.start===e.declaration.start}function Decorator(e){this.tokenChar(64);this.print(e.expression);this.newline()}function OptionalMemberExpression(e){let{computed:t}=e;const{optional:r,property:n}=e;this.print(e.object);if(!t&&o(n)){throw new TypeError("Got a MemberExpression for MemberExpression property")}if(a(n)&&typeof n.value==="number"){t=true}if(r){this.token("?.")}if(t){this.tokenChar(91);this.print(n);this.tokenChar(93)}else{if(!r){this.tokenChar(46)}this.print(n)}}function OptionalCallExpression(e){this.print(e.callee);{this.print(e.typeParameters)}if(e.optional){this.token("?.")}this.print(e.typeArguments);this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments);t();this.rightParens(e)}function CallExpression(e){this.print(e.callee);this.print(e.typeArguments);{this.print(e.typeParameters)}this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"));t();this.rightParens(e)}function Import(){this.word("import")}function AwaitExpression(e){this.word("await");if(e.argument){this.space();this.printTerminatorless(e.argument)}}function YieldExpression(e){this.word("yield",true);if(e.delegate){this.tokenChar(42);if(e.argument){this.space();this.print(e.argument)}}else{if(e.argument){this.space();this.printTerminatorless(e.argument)}}}function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(e){this.tokenContext|=s.TokenContext.expressionStatement;this.print(e.expression);this.semicolon()}function AssignmentPattern(e){this.print(e.left);if(e.left.type==="Identifier"||c(e.left)){if(e.left.optional)this.tokenChar(63);this.print(e.left.typeAnnotation)}this.space();this.tokenChar(61);this.space();this.print(e.right)}function AssignmentExpression(e){this.print(e.left);this.space();if(e.operator==="in"||e.operator==="instanceof"){this.word(e.operator)}else{this.token(e.operator);this._endsWithDiv=e.operator==="/"}this.space();this.print(e.right)}function BindExpression(e){this.print(e.object);this.token("::");this.print(e.callee)}function MemberExpression(e){this.print(e.object);if(!e.computed&&o(e.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let t=e.computed;if(a(e.property)&&typeof e.property.value==="number"){t=true}if(t){const t=this.enterDelimited();this.tokenChar(91);this.print(e.property);this.tokenChar(93);t()}else{this.tokenChar(46);this.print(e.property)}}function MetaProperty(e){this.print(e.meta);this.tokenChar(46);this.print(e.property)}function PrivateName(e){this.tokenChar(35);this.print(e.id)}function V8IntrinsicIdentifier(e){this.tokenChar(37);this.word(e.name)}function ModuleExpression(e){this.word("module",true);this.space();this.tokenChar(123);this.indent();const{body:t}=e;if(t.body.length||t.directives.length){this.newline()}this.print(t);this.dedent();this.rightBrace(e)}},299:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AnyTypeAnnotation=AnyTypeAnnotation;t.ArrayTypeAnnotation=ArrayTypeAnnotation;t.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;t.BooleanTypeAnnotation=BooleanTypeAnnotation;t.DeclareClass=DeclareClass;t.DeclareExportAllDeclaration=DeclareExportAllDeclaration;t.DeclareExportDeclaration=DeclareExportDeclaration;t.DeclareFunction=DeclareFunction;t.DeclareInterface=DeclareInterface;t.DeclareModule=DeclareModule;t.DeclareModuleExports=DeclareModuleExports;t.DeclareOpaqueType=DeclareOpaqueType;t.DeclareTypeAlias=DeclareTypeAlias;t.DeclareVariable=DeclareVariable;t.DeclaredPredicate=DeclaredPredicate;t.EmptyTypeAnnotation=EmptyTypeAnnotation;t.EnumBooleanBody=EnumBooleanBody;t.EnumBooleanMember=EnumBooleanMember;t.EnumDeclaration=EnumDeclaration;t.EnumDefaultedMember=EnumDefaultedMember;t.EnumNumberBody=EnumNumberBody;t.EnumNumberMember=EnumNumberMember;t.EnumStringBody=EnumStringBody;t.EnumStringMember=EnumStringMember;t.EnumSymbolBody=EnumSymbolBody;t.ExistsTypeAnnotation=ExistsTypeAnnotation;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.FunctionTypeParam=FunctionTypeParam;t.IndexedAccessType=IndexedAccessType;t.InferredPredicate=InferredPredicate;t.InterfaceDeclaration=InterfaceDeclaration;t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=InterfaceExtends;t.InterfaceTypeAnnotation=InterfaceTypeAnnotation;t.IntersectionTypeAnnotation=IntersectionTypeAnnotation;t.MixedTypeAnnotation=MixedTypeAnnotation;t.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;t.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return a.NumericLiteral}});t.NumberTypeAnnotation=NumberTypeAnnotation;t.ObjectTypeAnnotation=ObjectTypeAnnotation;t.ObjectTypeCallProperty=ObjectTypeCallProperty;t.ObjectTypeIndexer=ObjectTypeIndexer;t.ObjectTypeInternalSlot=ObjectTypeInternalSlot;t.ObjectTypeProperty=ObjectTypeProperty;t.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;t.OpaqueType=OpaqueType;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return a.StringLiteral}});t.StringTypeAnnotation=StringTypeAnnotation;t.SymbolTypeAnnotation=SymbolTypeAnnotation;t.ThisTypeAnnotation=ThisTypeAnnotation;t.TupleTypeAnnotation=TupleTypeAnnotation;t.TypeAlias=TypeAlias;t.TypeAnnotation=TypeAnnotation;t.TypeCastExpression=TypeCastExpression;t.TypeParameter=TypeParameter;t.TypeParameterDeclaration=t.TypeParameterInstantiation=TypeParameterInstantiation;t.TypeofTypeAnnotation=TypeofTypeAnnotation;t.UnionTypeAnnotation=UnionTypeAnnotation;t.Variance=Variance;t.VoidTypeAnnotation=VoidTypeAnnotation;t._interfaceish=_interfaceish;t._variance=_variance;var n=r(3061);var s=r(2415);var i=r(8694);var a=r(7154);const{isDeclareExportDeclaration:o,isStatement:l}=n;function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(e){this.word(e.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(e,t){if(!o(t)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(e)}function DeclareFunction(e,t){if(!o(t)){this.word("declare");this.space()}this.word("function");this.space();this.print(e.id);this.print(e.id.typeAnnotation.typeAnnotation);if(e.predicate){this.space();this.print(e.predicate)}this.semicolon()}function InferredPredicate(){this.tokenChar(37);this.word("checks")}function DeclaredPredicate(e){this.tokenChar(37);this.word("checks");this.tokenChar(40);this.print(e.value);this.tokenChar(41)}function DeclareInterface(e){this.word("declare");this.space();this.InterfaceDeclaration(e)}function DeclareModule(e){this.word("declare");this.space();this.word("module");this.space();this.print(e.id);this.space();this.print(e.body)}function DeclareModuleExports(e){this.word("declare");this.space();this.word("module");this.tokenChar(46);this.word("exports");this.print(e.typeAnnotation)}function DeclareTypeAlias(e){this.word("declare");this.space();this.TypeAlias(e)}function DeclareOpaqueType(e,t){if(!o(t)){this.word("declare");this.space()}this.OpaqueType(e)}function DeclareVariable(e,t){if(!o(t)){this.word("declare");this.space()}this.word("var");this.space();this.print(e.id);this.print(e.id.typeAnnotation);this.semicolon()}function DeclareExportDeclaration(e){this.word("declare");this.space();this.word("export");this.space();if(e.default){this.word("default");this.space()}FlowExportDeclaration.call(this,e)}function DeclareExportAllDeclaration(e){this.word("declare");this.space();s.ExportAllDeclaration.call(this,e)}function EnumDeclaration(e){const{id:t,body:r}=e;this.word("enum");this.space();this.print(t);this.print(r)}function enumExplicitType(e,t,r){if(r){e.space();e.word("of");e.space();e.word(t)}e.space()}function enumBody(e,t){const{members:r}=t;e.token("{");e.indent();e.newline();for(const t of r){e.print(t);e.newline()}if(t.hasUnknownMembers){e.token("...");e.newline()}e.dedent();e.token("}")}function EnumBooleanBody(e){const{explicitType:t}=e;enumExplicitType(this,"boolean",t);enumBody(this,e)}function EnumNumberBody(e){const{explicitType:t}=e;enumExplicitType(this,"number",t);enumBody(this,e)}function EnumStringBody(e){const{explicitType:t}=e;enumExplicitType(this,"string",t);enumBody(this,e)}function EnumSymbolBody(e){enumExplicitType(this,"symbol",true);enumBody(this,e)}function EnumDefaultedMember(e){const{id:t}=e;this.print(t);this.tokenChar(44)}function enumInitializedMember(e,t){e.print(t.id);e.space();e.token("=");e.space();e.print(t.init);e.token(",")}function EnumBooleanMember(e){enumInitializedMember(this,e)}function EnumNumberMember(e){enumInitializedMember(this,e)}function EnumStringMember(e){enumInitializedMember(this,e)}function FlowExportDeclaration(e){if(e.declaration){const t=e.declaration;this.print(t);if(!l(t))this.semicolon()}else{this.tokenChar(123);if(e.specifiers.length){this.space();this.printList(e.specifiers);this.space()}this.tokenChar(125);if(e.source){this.space();this.word("from");this.space();this.print(e.source)}this.semicolon()}}function ExistsTypeAnnotation(){this.tokenChar(42)}function FunctionTypeAnnotation(e,t){this.print(e.typeParameters);this.tokenChar(40);if(e.this){this.word("this");this.tokenChar(58);this.space();this.print(e.this.typeAnnotation);if(e.params.length||e.rest){this.tokenChar(44);this.space()}}this.printList(e.params);if(e.rest){if(e.params.length){this.tokenChar(44);this.space()}this.token("...");this.print(e.rest)}this.tokenChar(41);const r=t==null?void 0:t.type;if(r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)){this.tokenChar(58)}else{this.space();this.token("=>")}this.space();this.print(e.returnType)}function FunctionTypeParam(e){this.print(e.name);if(e.optional)this.tokenChar(63);if(e.name){this.tokenChar(58);this.space()}this.print(e.typeAnnotation)}function InterfaceExtends(e){this.print(e.id);this.print(e.typeParameters,true)}function _interfaceish(e){var t;this.print(e.id);this.print(e.typeParameters);if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}if(e.type==="DeclareClass"){var r,n;if((r=e.mixins)!=null&&r.length){this.space();this.word("mixins");this.space();this.printList(e.mixins)}if((n=e.implements)!=null&&n.length){this.space();this.word("implements");this.space();this.printList(e.implements)}}this.space();this.print(e.body)}function _variance(e){var t;const r=(t=e.variance)==null?void 0:t.kind;if(r!=null){if(r==="plus"){this.tokenChar(43)}else if(r==="minus"){this.tokenChar(45)}}}function InterfaceDeclaration(e){this.word("interface");this.space();this._interfaceish(e)}function andSeparator(e){this.space();this.token("&",false,e);this.space()}function InterfaceTypeAnnotation(e){var t;this.word("interface");if((t=e.extends)!=null&&t.length){this.space();this.word("extends");this.space();this.printList(e.extends)}this.space();this.print(e.body)}function IntersectionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,andSeparator)}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(e){this.tokenChar(63);this.print(e.typeAnnotation)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(e){this.tokenChar(91);this.printList(e.types);this.tokenChar(93)}function TypeofTypeAnnotation(e){this.word("typeof");this.space();this.print(e.argument)}function TypeAlias(e){this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);this.space();this.tokenChar(61);this.space();this.print(e.right);this.semicolon()}function TypeAnnotation(e,t){this.tokenChar(58);this.space();if(t.type==="ArrowFunctionExpression"){this.tokenContext|=i.TokenContext.arrowFlowReturnType}else if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function TypeParameterInstantiation(e){this.tokenChar(60);this.printList(e.params);this.tokenChar(62)}function TypeParameter(e){this._variance(e);this.word(e.name);if(e.bound){this.print(e.bound)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function OpaqueType(e){this.word("opaque");this.space();this.word("type");this.space();this.print(e.id);this.print(e.typeParameters);if(e.supertype){this.tokenChar(58);this.space();this.print(e.supertype)}if(e.impltype){this.space();this.tokenChar(61);this.space();this.print(e.impltype)}this.semicolon()}function ObjectTypeAnnotation(e){if(e.exact){this.token("{|")}else{this.tokenChar(123)}const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];if(t.length){this.newline();this.space();this.printJoin(t,true,true,undefined,undefined,(function addNewlines(e){if(e&&!t[0])return 1}),(()=>{if(t.length!==1||e.inexact){this.tokenChar(44);this.space()}}));this.space()}if(e.inexact){this.indent();this.token("...");if(t.length){this.newline()}this.dedent()}if(e.exact){this.token("|}")}else{this.tokenChar(125)}}function ObjectTypeInternalSlot(e){if(e.static){this.word("static");this.space()}this.tokenChar(91);this.tokenChar(91);this.print(e.id);this.tokenChar(93);this.tokenChar(93);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeCallProperty(e){if(e.static){this.word("static");this.space()}this.print(e.value)}function ObjectTypeIndexer(e){if(e.static){this.word("static");this.space()}this._variance(e);this.tokenChar(91);if(e.id){this.print(e.id);this.tokenChar(58);this.space()}this.print(e.key);this.tokenChar(93);this.tokenChar(58);this.space();this.print(e.value)}function ObjectTypeProperty(e){if(e.proto){this.word("proto");this.space()}if(e.static){this.word("static");this.space()}if(e.kind==="get"||e.kind==="set"){this.word(e.kind);this.space()}this._variance(e);this.print(e.key);if(e.optional)this.tokenChar(63);if(!e.method){this.tokenChar(58);this.space()}this.print(e.value)}function ObjectTypeSpreadProperty(e){this.token("...");this.print(e.argument)}function QualifiedTypeIdentifier(e){this.print(e.qualification);this.tokenChar(46);this.print(e.id)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(e){this.space();this.token("|",false,e);this.space()}function UnionTypeAnnotation(e){this.printJoin(e.types,undefined,undefined,orSeparator)}function TypeCastExpression(e){this.tokenChar(40);this.print(e.expression);this.print(e.typeAnnotation);this.tokenChar(41)}function Variance(e){if(e.kind==="plus"){this.tokenChar(43)}else{this.tokenChar(45)}}function VoidTypeAnnotation(){this.word("void")}function IndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function OptionalIndexedAccessType(e){this.print(e.objectType);if(e.optional){this.token("?.")}this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}},476:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(6826);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return n[e]}})}));var s=r(1270);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}));var i=r(9213);Object.keys(i).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===i[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return i[e]}})}));var a=r(5953);Object.keys(a).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===a[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return a[e]}})}));var o=r(684);Object.keys(o).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===o[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return o[e]}})}));var l=r(2415);Object.keys(l).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})}));var c=r(7154);Object.keys(c).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===c[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return c[e]}})}));var p=r(299);Object.keys(p).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===p[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return p[e]}})}));var u=r(1647);Object.keys(u).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===u[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return u[e]}})}));var d=r(2647);Object.keys(d).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}));var f=r(7544);Object.keys(f).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===f[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}))},2647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSXAttribute=JSXAttribute;t.JSXClosingElement=JSXClosingElement;t.JSXClosingFragment=JSXClosingFragment;t.JSXElement=JSXElement;t.JSXEmptyExpression=JSXEmptyExpression;t.JSXExpressionContainer=JSXExpressionContainer;t.JSXFragment=JSXFragment;t.JSXIdentifier=JSXIdentifier;t.JSXMemberExpression=JSXMemberExpression;t.JSXNamespacedName=JSXNamespacedName;t.JSXOpeningElement=JSXOpeningElement;t.JSXOpeningFragment=JSXOpeningFragment;t.JSXSpreadAttribute=JSXSpreadAttribute;t.JSXSpreadChild=JSXSpreadChild;t.JSXText=JSXText;function JSXAttribute(e){this.print(e.name);if(e.value){this.tokenChar(61);this.print(e.value)}}function JSXIdentifier(e){this.word(e.name)}function JSXNamespacedName(e){this.print(e.namespace);this.tokenChar(58);this.print(e.name)}function JSXMemberExpression(e){this.print(e.object);this.tokenChar(46);this.print(e.property)}function JSXSpreadAttribute(e){this.tokenChar(123);this.token("...");this.print(e.argument);this.rightBrace(e)}function JSXExpressionContainer(e){this.tokenChar(123);this.print(e.expression);this.rightBrace(e)}function JSXSpreadChild(e){this.tokenChar(123);this.token("...");this.print(e.expression);this.rightBrace(e)}function JSXText(e){const t=this.getPossibleRaw(e);if(t!==undefined){this.token(t,true)}else{this.token(e.value,true)}}function JSXElement(e){const t=e.openingElement;this.print(t);if(t.selfClosing)return;this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingElement)}function spaceSeparator(){this.space()}function JSXOpeningElement(e){this.tokenChar(60);this.print(e.name);{if(e.typeArguments){this.print(e.typeArguments)}this.print(e.typeParameters)}if(e.attributes.length>0){this.space();this.printJoin(e.attributes,undefined,undefined,spaceSeparator)}if(e.selfClosing){this.space();this.tokenChar(47)}this.tokenChar(62)}function JSXClosingElement(e){this.tokenChar(60);this.tokenChar(47);this.print(e.name);this.tokenChar(62)}function JSXEmptyExpression(){this.printInnerComments()}function JSXFragment(e){this.print(e.openingFragment);this.indent();for(const t of e.children){this.print(t)}this.dedent();this.print(e.closingFragment)}function JSXOpeningFragment(){this.tokenChar(60);this.tokenChar(62)}function JSXClosingFragment(){this.token("</");this.tokenChar(62)}},684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArrowFunctionExpression=ArrowFunctionExpression;t.FunctionDeclaration=t.FunctionExpression=FunctionExpression;t._functionHead=_functionHead;t._methodHead=_methodHead;t._param=_param;t._parameters=_parameters;t._params=_params;t._predicate=_predicate;t._shouldPrintArrowParamsParens=_shouldPrintArrowParamsParens;var n=r(3061);var s=r(8694);const{isIdentifier:i}=n;function _params(e,t,r){this.print(e.typeParameters);const n=_getFuncIdName.call(this,t,r);if(n){this.sourceIdentifierName(n.name,n.pos)}this.tokenChar(40);this._parameters(e.params,")");const s=e.type==="ArrowFunctionExpression";this.print(e.returnType,s);this._noLineTerminator=s}function _parameters(e,t){const r=this.enterDelimited();const n=this.shouldPrintTrailingComma(t);const s=e.length;for(let t=0;t<s;t++){this._param(e[t]);if(n||t<s-1){this.token(",",null,t);this.space()}}this.token(t);r()}function _param(e){this.printJoin(e.decorators);this.print(e);if(e.optional){this.tokenChar(63)}this.print(e.typeAnnotation)}function _methodHead(e){const t=e.kind;const r=e.key;if(t==="get"||t==="set"){this.word(t);this.space()}if(e.async){this.word("async",true);this.space()}if(t==="method"||t==="init"){if(e.generator){this.tokenChar(42)}}if(e.computed){this.tokenChar(91);this.print(r);this.tokenChar(93)}else{this.print(r)}if(e.optional){this.tokenChar(63)}this._params(e,e.computed&&e.key.type!=="StringLiteral"?undefined:e.key,undefined)}function _predicate(e,t){if(e.predicate){if(!e.returnType){this.tokenChar(58)}this.space();this.print(e.predicate,t)}}function _functionHead(e,t){if(e.async){this.word("async");if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.space()}this.word("function");if(e.generator){if(!this.format.preserveFormat){this._endsWithInnerRaw=false}this.tokenChar(42)}this.space();if(e.id){this.print(e.id)}this._params(e,e.id,t);if(e.type!=="TSDeclareFunction"){this._predicate(e)}}function FunctionExpression(e,t){this._functionHead(e,t);this.space();this.print(e.body)}function ArrowFunctionExpression(e,t){if(e.async){this.word("async",true);this.space()}if(this._shouldPrintArrowParamsParens(e)){this._params(e,undefined,t)}else{this.print(e.params[0],true)}this._predicate(e,true);this.space();this.printInnerComments();this.token("=>");this.space();this.tokenContext|=s.TokenContext.arrowBody;this.print(e.body)}function _shouldPrintArrowParamsParens(e){var t,r;if(e.params.length!==1)return true;if(e.typeParameters||e.returnType||e.predicate){return true}const n=e.params[0];if(!i(n)||n.typeAnnotation||n.optional||(t=n.leadingComments)!=null&&t.length||(r=n.trailingComments)!=null&&r.length){return true}if(this.tokenMap){if(e.loc==null)return true;if(this.tokenMap.findMatching(e,"(")!==null)return true;const t=this.tokenMap.findMatching(e,"=>");if((t==null?void 0:t.loc)==null)return true;return t.loc.start.line!==e.loc.start.line}if(this.format.retainLines)return true;return false}function _getFuncIdName(e,t){let r=e;if(!r&&t){const e=t.type;if(e==="VariableDeclarator"){r=t.id}else if(e==="AssignmentExpression"||e==="AssignmentPattern"){r=t.left}else if(e==="ObjectProperty"||e==="ClassProperty"){if(!t.computed||t.key.type==="StringLiteral"){r=t.key}}else if(e==="ClassPrivateProperty"||e==="ClassAccessorProperty"){r=t.key}}if(!r)return;let n;if(r.type==="Identifier"){var s,i;n={pos:(s=r.loc)==null?void 0:s.start,name:((i=r.loc)==null?void 0:i.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return n}},2415:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ExportAllDeclaration=ExportAllDeclaration;t.ExportDefaultDeclaration=ExportDefaultDeclaration;t.ExportDefaultSpecifier=ExportDefaultSpecifier;t.ExportNamedDeclaration=ExportNamedDeclaration;t.ExportNamespaceSpecifier=ExportNamespaceSpecifier;t.ExportSpecifier=ExportSpecifier;t.ImportAttribute=ImportAttribute;t.ImportDeclaration=ImportDeclaration;t.ImportDefaultSpecifier=ImportDefaultSpecifier;t.ImportExpression=ImportExpression;t.ImportNamespaceSpecifier=ImportNamespaceSpecifier;t.ImportSpecifier=ImportSpecifier;t._printAttributes=_printAttributes;var n=r(3061);var s=r(8694);const{isClassDeclaration:i,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:c,isStatement:p}=n;function ImportSpecifier(e){if(e.importKind==="type"||e.importKind==="typeof"){this.word(e.importKind);this.space()}this.print(e.imported);if(e.local&&e.local.name!==e.imported.name){this.space();this.word("as");this.space();this.print(e.local)}}function ImportDefaultSpecifier(e){this.print(e.local)}function ExportDefaultSpecifier(e){this.print(e.exported)}function ExportSpecifier(e){if(e.exportKind==="type"){this.word("type");this.space()}this.print(e.local);if(e.exported&&e.local.name!==e.exported.name){this.space();this.word("as");this.space();this.print(e.exported)}}function ExportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.exported)}let u=false;function _printAttributes(e,t){var r;const{importAttributesKeyword:n}=this.format;const{attributes:s,assertions:i}=e;if(s&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!u){u=true;console.warn(`You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : \`import { a } from "b" with { type: "json" };\`\n - "assert" : \`import { a } from "b" assert { type: "json" };\`\n - "with-legacy" : \`import { a } from "b" with type: "json";\`\n`)}const a=n==="assert"||!n&&i;this.word(a?"assert":"with");this.space();if(!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||i);return}const o=t?1:0;this.token("{",null,o);this.space();this.printList(s||i,this.shouldPrintTrailingComma("}"));this.space();this.token("}",null,o)}function ExportAllDeclaration(e){var t,r;this.word("export");this.space();if(e.exportKind==="type"){this.word("type");this.space()}this.tokenChar(42);this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,false)}else{this.print(e.source)}this.semicolon()}function maybePrintDecoratorsBeforeExport(e,t){if(i(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)){e.printJoin(t.declaration.decorators)}}function ExportNamedDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.space();if(e.declaration){const t=e.declaration;this.print(t);if(!p(t))this.semicolon()}else{if(e.exportKind==="type"){this.word("type");this.space()}const n=e.specifiers.slice(0);let s=false;for(;;){const e=n[0];if(a(e)||o(e)){s=true;this.print(n.shift());if(n.length){this.tokenChar(44);this.space()}}else{break}}let i=false;if(n.length||!n.length&&!s){i=true;this.tokenChar(123);if(n.length){this.space();this.printList(n,this.shouldPrintTrailingComma("}"));this.space()}this.tokenChar(125)}if(e.source){var t,r;this.space();this.word("from");this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,i)}else{this.print(e.source)}}this.semicolon()}}function ExportDefaultDeclaration(e){maybePrintDecoratorsBeforeExport(this,e);this.word("export");this.noIndentInnerCommentsHere();this.space();this.word("default");this.space();this.tokenContext|=s.TokenContext.exportDefault;const t=e.declaration;this.print(t);if(!p(t))this.semicolon()}function ImportDeclaration(e){var t,r;this.word("import");this.space();const n=e.importKind==="type"||e.importKind==="typeof";if(n){this.noIndentInnerCommentsHere();this.word(e.importKind);this.space()}else if(e.module){this.noIndentInnerCommentsHere();this.word("module");this.space()}else if(e.phase){this.noIndentInnerCommentsHere();this.word(e.phase);this.space()}const s=e.specifiers.slice(0);const i=!!s.length;while(i){const e=s[0];if(l(e)||c(e)){this.print(s.shift());if(s.length){this.tokenChar(44);this.space()}}else{break}}let a=false;if(s.length){a=true;this.tokenChar(123);this.space();this.printList(s,this.shouldPrintTrailingComma("}"));this.space();this.tokenChar(125)}else if(n&&!i){a=true;this.tokenChar(123);this.tokenChar(125)}if(i||n){this.space();this.word("from");this.space()}if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length){this.print(e.source,true);this.space();this._printAttributes(e,a)}else{this.print(e.source)}this.semicolon()}function ImportAttribute(e){this.print(e.key);this.tokenChar(58);this.space();this.print(e.value)}function ImportNamespaceSpecifier(e){this.tokenChar(42);this.space();this.word("as");this.space();this.print(e.local)}function ImportExpression(e){this.word("import");if(e.phase){this.tokenChar(46);this.word(e.phase)}this.tokenChar(40);this.print(e.source);if(e.options!=null){this.tokenChar(44);this.space();this.print(e.options)}this.tokenChar(41)}},9213:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BreakStatement=BreakStatement;t.CatchClause=CatchClause;t.ContinueStatement=ContinueStatement;t.DebuggerStatement=DebuggerStatement;t.DoWhileStatement=DoWhileStatement;t.ForOfStatement=t.ForInStatement=void 0;t.ForStatement=ForStatement;t.IfStatement=IfStatement;t.LabeledStatement=LabeledStatement;t.ReturnStatement=ReturnStatement;t.SwitchCase=SwitchCase;t.SwitchStatement=SwitchStatement;t.ThrowStatement=ThrowStatement;t.TryStatement=TryStatement;t.VariableDeclaration=VariableDeclaration;t.VariableDeclarator=VariableDeclarator;t.WhileStatement=WhileStatement;t.WithStatement=WithStatement;var n=r(3061);var s=r(8694);const{isFor:i,isForStatement:a,isIfStatement:o,isStatement:l}=n;function WithStatement(e){this.word("with");this.space();this.tokenChar(40);this.print(e.object);this.tokenChar(41);this.printBlock(e)}function IfStatement(e){this.word("if");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.space();const t=e.alternate&&o(getLastStatement(e.consequent));if(t){this.tokenChar(123);this.newline();this.indent()}this.printAndIndentOnComments(e.consequent);if(t){this.dedent();this.newline();this.tokenChar(125)}if(e.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(e.alternate)}}function getLastStatement(e){const{body:t}=e;if(l(t)===false){return e}return getLastStatement(t)}function ForStatement(e){this.word("for");this.space();this.tokenChar(40);{const t=this.enterForStatementInit();this.tokenContext|=s.TokenContext.forHead;this.print(e.init);t()}this.tokenChar(59);if(e.test){this.space();this.print(e.test)}this.token(";",false,1);if(e.update){this.space();this.print(e.update)}this.tokenChar(41);this.printBlock(e)}function WhileStatement(e){this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.printBlock(e)}function ForXStatement(e){this.word("for");this.space();const t=e.type==="ForOfStatement";if(t&&e.await){this.word("await");this.space()}this.noIndentInnerCommentsHere();this.tokenChar(40);{const r=t?null:this.enterForStatementInit();this.tokenContext|=t?s.TokenContext.forOfHead:s.TokenContext.forInHead;this.print(e.left);r==null||r()}this.space();this.word(t?"of":"in");this.space();this.print(e.right);this.tokenChar(41);this.printBlock(e)}const c=t.ForInStatement=ForXStatement;const p=t.ForOfStatement=ForXStatement;function DoWhileStatement(e){this.word("do");this.space();this.print(e.body);this.space();this.word("while");this.space();this.tokenChar(40);this.print(e.test);this.tokenChar(41);this.semicolon()}function printStatementAfterKeyword(e,t){if(t){e.space();e.printTerminatorless(t)}e.semicolon()}function BreakStatement(e){this.word("break");printStatementAfterKeyword(this,e.label)}function ContinueStatement(e){this.word("continue");printStatementAfterKeyword(this,e.label)}function ReturnStatement(e){this.word("return");printStatementAfterKeyword(this,e.argument)}function ThrowStatement(e){this.word("throw");printStatementAfterKeyword(this,e.argument)}function LabeledStatement(e){this.print(e.label);this.tokenChar(58);this.space();this.print(e.body)}function TryStatement(e){this.word("try");this.space();this.print(e.block);this.space();if(e.handlers){this.print(e.handlers[0])}else{this.print(e.handler)}if(e.finalizer){this.space();this.word("finally");this.space();this.print(e.finalizer)}}function CatchClause(e){this.word("catch");this.space();if(e.param){this.tokenChar(40);this.print(e.param);this.print(e.param.typeAnnotation);this.tokenChar(41);this.space()}this.print(e.body)}function SwitchStatement(e){this.word("switch");this.space();this.tokenChar(40);this.print(e.discriminant);this.tokenChar(41);this.space();this.tokenChar(123);this.printSequence(e.cases,true,undefined,(function addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}));this.rightBrace(e)}function SwitchCase(e){if(e.test){this.word("case");this.space();this.print(e.test);this.tokenChar(58)}else{this.word("default");this.tokenChar(58)}if(e.consequent.length){this.newline();this.printSequence(e.consequent,true)}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function VariableDeclaration(e,t){if(e.declare){this.word("declare");this.space()}const{kind:r}=e;if(r==="await using"){this.word("await");this.space();this.word("using",true)}else{this.word(r,r==="using")}this.space();let n=false;if(!i(t)){for(const t of e.declarations){if(t.init){n=true}}}this.printList(e.declarations,undefined,undefined,e.declarations.length>1,n?function(e){this.token(",",false,e);this.newline()}:undefined);if(i(t)){if(a(t)){if(t.init===e)return}else{if(t.left===e)return}}this.semicolon()}function VariableDeclarator(e){this.print(e.id);if(e.definite)this.tokenChar(33);this.print(e.id.typeAnnotation);if(e.init){this.space();this.tokenChar(61);this.space();this.print(e.init)}}},6826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateElement=TemplateElement;t.TemplateLiteral=TemplateLiteral;t._printTemplate=_printTemplate;function TaggedTemplateExpression(e){this.print(e.tag);{this.print(e.typeParameters)}this.print(e.quasi)}function TemplateElement(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function _printTemplate(e,t){const r=e.quasis;let n="`";for(let s=0;s<r.length-1;s++){n+=r[s].value.raw;this.token(n+"${",true);this.print(t[s]);n="}";if(this.tokenMap){const t=this.tokenMap.findMatching(e,"}",s);if(t)this._catchUpTo(t.loc.start)}}n+=r[r.length-1].value.raw;this.token(n+"`",true)}function TemplateLiteral(e){this._printTemplate(e,e.expressions)}},7154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArgumentPlaceholder=ArgumentPlaceholder;t.ArrayPattern=t.ArrayExpression=ArrayExpression;t.BigIntLiteral=BigIntLiteral;t.BooleanLiteral=BooleanLiteral;t.Identifier=Identifier;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.ObjectPattern=t.ObjectExpression=ObjectExpression;t.ObjectMethod=ObjectMethod;t.ObjectProperty=ObjectProperty;t.PipelineBareFunction=PipelineBareFunction;t.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;t.PipelineTopicExpression=PipelineTopicExpression;t.RecordExpression=RecordExpression;t.RegExpLiteral=RegExpLiteral;t.SpreadElement=t.RestElement=RestElement;t.StringLiteral=StringLiteral;t.TopicReference=TopicReference;t.TupleExpression=TupleExpression;t._getRawIdentifier=_getRawIdentifier;var n=r(3061);var s=r(4849);const{isAssignmentPattern:i,isIdentifier:a}=n;let o=null;let l="";function _getRawIdentifier(e){if(e===o)return l;o=e;const{name:t}=e;const r=this.tokenMap.find(e,(e=>e.value===t));if(r){l=this._originalCode.slice(r.start,r.end);return l}return l=e.name}function Identifier(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name);this.word(this.tokenMap?this._getRawIdentifier(e):e.name)}function ArgumentPlaceholder(){this.tokenChar(63)}function RestElement(e){this.token("...");this.print(e.argument)}function ObjectExpression(e){const t=e.properties;this.tokenChar(123);if(t.length){const e=this.enterDelimited();this.space();this.printList(t,this.shouldPrintTrailingComma("}"),true,true);this.space();e()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}function ObjectMethod(e){this.printJoin(e.decorators);this._methodHead(e);this.space();this.print(e.body)}function ObjectProperty(e){this.printJoin(e.decorators);if(e.computed){this.tokenChar(91);this.print(e.key);this.tokenChar(93)}else{if(i(e.value)&&a(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}this.print(e.key);if(e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name){return}}this.tokenChar(58);this.space();this.print(e.value)}function ArrayExpression(e){const t=e.elements;const r=t.length;this.tokenChar(91);const n=this.enterDelimited();for(let e=0;e<t.length;e++){const n=t[e];if(n){if(e>0)this.space();this.print(n);if(e<r-1||this.shouldPrintTrailingComma("]")){this.token(",",false,e)}}else{this.token(",",false,e)}}n();this.tokenChar(93)}function RecordExpression(e){const t=e.properties;let r;let n;{if(this.format.recordAndTupleSyntaxType==="bar"){r="{|";n="|}"}else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null){throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`)}else{r="#{";n="}"}}this.token(r);if(t.length){this.space();this.printList(t,this.shouldPrintTrailingComma(n),true,true);this.space()}this.token(n)}function TupleExpression(e){const t=e.elements;const r=t.length;let n;let s;{if(this.format.recordAndTupleSyntaxType==="bar"){n="[|";s="|]"}else if(this.format.recordAndTupleSyntaxType==="hash"){n="#[";s="]"}else{throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`)}}this.token(n);for(let e=0;e<t.length;e++){const n=t[e];if(n){if(e>0)this.space();this.print(n);if(e<r-1||this.shouldPrintTrailingComma(s)){this.token(",",false,e)}}}this.token(s)}function RegExpLiteral(e){this.word(`/${e.pattern}/${e.flags}`)}function BooleanLiteral(e){this.word(e.value?"true":"false")}function NullLiteral(){this.word("null")}function NumericLiteral(e){const t=this.getPossibleRaw(e);const r=this.format.jsescOption;const n=e.value;const i=n+"";if(r.numbers){this.number(s(n,r),n)}else if(t==null){this.number(i,n)}else if(this.format.minified){this.number(t.length<i.length?t:i,n)}else{this.number(t,n)}}function StringLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.token(t);return}const r=s(e.value,this.format.jsescOption);this.token(r)}function BigIntLiteral(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&t!==undefined){this.word(t);return}this.word(e.value+"n")}const c=new Set(["^^","@@","^","%","#"]);function TopicReference(){const{topicToken:e}=this.format;if(c.has(e)){this.token(e)}else{const t=JSON.stringify(e);const r=Array.from(c,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of `+`${r.join(", ")} (${t} received instead).`)}}function PipelineTopicExpression(e){this.print(e.expression)}function PipelineBareFunction(e){this.print(e.callee)}function PipelinePrimaryTopicReference(){this.tokenChar(35)}},7544:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TSAnyKeyword=TSAnyKeyword;t.TSArrayType=TSArrayType;t.TSSatisfiesExpression=t.TSAsExpression=TSTypeExpression;t.TSBigIntKeyword=TSBigIntKeyword;t.TSBooleanKeyword=TSBooleanKeyword;t.TSCallSignatureDeclaration=TSCallSignatureDeclaration;t.TSInterfaceHeritage=t.TSClassImplements=TSClassImplements;t.TSConditionalType=TSConditionalType;t.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;t.TSConstructorType=TSConstructorType;t.TSDeclareFunction=TSDeclareFunction;t.TSDeclareMethod=TSDeclareMethod;t.TSEnumBody=TSEnumBody;t.TSEnumDeclaration=TSEnumDeclaration;t.TSEnumMember=TSEnumMember;t.TSExportAssignment=TSExportAssignment;t.TSExternalModuleReference=TSExternalModuleReference;t.TSFunctionType=TSFunctionType;t.TSImportEqualsDeclaration=TSImportEqualsDeclaration;t.TSImportType=TSImportType;t.TSIndexSignature=TSIndexSignature;t.TSIndexedAccessType=TSIndexedAccessType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSInterfaceBody=TSInterfaceBody;t.TSInterfaceDeclaration=TSInterfaceDeclaration;t.TSIntersectionType=TSIntersectionType;t.TSIntrinsicKeyword=TSIntrinsicKeyword;t.TSLiteralType=TSLiteralType;t.TSMappedType=TSMappedType;t.TSMethodSignature=TSMethodSignature;t.TSModuleBlock=TSModuleBlock;t.TSModuleDeclaration=TSModuleDeclaration;t.TSNamedTupleMember=TSNamedTupleMember;t.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;t.TSNeverKeyword=TSNeverKeyword;t.TSNonNullExpression=TSNonNullExpression;t.TSNullKeyword=TSNullKeyword;t.TSNumberKeyword=TSNumberKeyword;t.TSObjectKeyword=TSObjectKeyword;t.TSOptionalType=TSOptionalType;t.TSParameterProperty=TSParameterProperty;t.TSParenthesizedType=TSParenthesizedType;t.TSPropertySignature=TSPropertySignature;t.TSQualifiedName=TSQualifiedName;t.TSRestType=TSRestType;t.TSStringKeyword=TSStringKeyword;t.TSSymbolKeyword=TSSymbolKeyword;t.TSTemplateLiteralType=TSTemplateLiteralType;t.TSThisType=TSThisType;t.TSTupleType=TSTupleType;t.TSTypeAliasDeclaration=TSTypeAliasDeclaration;t.TSTypeAnnotation=TSTypeAnnotation;t.TSTypeAssertion=TSTypeAssertion;t.TSTypeLiteral=TSTypeLiteral;t.TSTypeOperator=TSTypeOperator;t.TSTypeParameter=TSTypeParameter;t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=TSTypeParameterInstantiation;t.TSTypePredicate=TSTypePredicate;t.TSTypeQuery=TSTypeQuery;t.TSTypeReference=TSTypeReference;t.TSUndefinedKeyword=TSUndefinedKeyword;t.TSUnionType=TSUnionType;t.TSUnknownKeyword=TSUnknownKeyword;t.TSVoidKeyword=TSVoidKeyword;t.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;t.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;t.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;t.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;function TSTypeAnnotation(e,t){this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":");this.space();if(e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function TSTypeParameterInstantiation(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;if(this.tokenMap&&e.start!=null&&e.end!=null){r&&(r=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,","))));r||(r=this.shouldPrintTrailingComma(">"))}this.printList(e.params,r);this.tokenChar(62)}function TSTypeParameter(e){if(e.in){this.word("in");this.space()}if(e.out){this.word("out");this.space()}this.word(e.name);if(e.constraint){this.space();this.word("extends");this.space();this.print(e.constraint)}if(e.default){this.space();this.tokenChar(61);this.space();this.print(e.default)}}function TSParameterProperty(e){if(e.accessibility){this.word(e.accessibility);this.space()}if(e.readonly){this.word("readonly");this.space()}this._param(e.parameter)}function TSDeclareFunction(e,t){if(e.declare){this.word("declare");this.space()}this._functionHead(e,t);this.semicolon()}function TSDeclareMethod(e){this._classMethodHead(e);this.semicolon()}function TSQualifiedName(e){this.print(e.left);this.tokenChar(46);this.print(e.right)}function TSCallSignatureDeclaration(e){this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function maybePrintTrailingCommaOrSemicolon(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}if(e.tokenMap.endMatches(t,",")){e.token(",")}else if(e.tokenMap.endMatches(t,";")){e.semicolon()}}function TSConstructSignatureDeclaration(e){this.word("new");this.space();this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSPropertySignature(e){const{readonly:t}=e;if(t){this.word("readonly");this.space()}this.tsPrintPropertyOrMethodName(e);this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function tsPrintPropertyOrMethodName(e){if(e.computed){this.tokenChar(91)}this.print(e.key);if(e.computed){this.tokenChar(93)}if(e.optional){this.tokenChar(63)}}function TSMethodSignature(e){const{kind:t}=e;if(t==="set"||t==="get"){this.word(t);this.space()}this.tsPrintPropertyOrMethodName(e);this.tsPrintSignatureDeclarationBase(e);maybePrintTrailingCommaOrSemicolon(this,e)}function TSIndexSignature(e){const{readonly:t,static:r}=e;if(r){this.word("static");this.space()}if(t){this.word("readonly");this.space()}this.tokenChar(91);this._parameters(e.parameters,"]");this.print(e.typeAnnotation);maybePrintTrailingCommaOrSemicolon(this,e)}function TSAnyKeyword(){this.word("any")}function TSBigIntKeyword(){this.word("bigint")}function TSUnknownKeyword(){this.word("unknown")}function TSNumberKeyword(){this.word("number")}function TSObjectKeyword(){this.word("object")}function TSBooleanKeyword(){this.word("boolean")}function TSStringKeyword(){this.word("string")}function TSSymbolKeyword(){this.word("symbol")}function TSVoidKeyword(){this.word("void")}function TSUndefinedKeyword(){this.word("undefined")}function TSNullKeyword(){this.word("null")}function TSNeverKeyword(){this.word("never")}function TSIntrinsicKeyword(){this.word("intrinsic")}function TSThisType(){this.word("this")}function TSFunctionType(e){this.tsPrintFunctionOrConstructorType(e)}function TSConstructorType(e){if(e.abstract){this.word("abstract");this.space()}this.word("new");this.space();this.tsPrintFunctionOrConstructorType(e)}function tsPrintFunctionOrConstructorType(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");this.space();const n=e.typeAnnotation;this.print(n)}function TSTypeReference(e){const t=e.typeParameters;this.print(e.typeName,!!t);this.print(t)}function TSTypePredicate(e){if(e.asserts){this.word("asserts");this.space()}this.print(e.parameterName);if(e.typeAnnotation){this.space();this.word("is");this.space();this.print(e.typeAnnotation.typeAnnotation)}}function TSTypeQuery(e){this.word("typeof");this.space();this.print(e.exprName);const t=e.typeParameters;if(t){this.print(t)}}function TSTypeLiteral(e){printBraced(this,e,(()=>this.printJoin(e.members,true,true)))}function TSArrayType(e){this.print(e.elementType,true);this.tokenChar(91);this.tokenChar(93)}function TSTupleType(e){this.tokenChar(91);this.printList(e.elementTypes,this.shouldPrintTrailingComma("]"));this.tokenChar(93)}function TSOptionalType(e){this.print(e.typeAnnotation);this.tokenChar(63)}function TSRestType(e){this.token("...");this.print(e.typeAnnotation)}function TSNamedTupleMember(e){this.print(e.label);if(e.optional)this.tokenChar(63);this.tokenChar(58);this.space();this.print(e.elementType)}function TSUnionType(e){tsPrintUnionOrIntersectionType(this,e,"|")}function TSIntersectionType(e){tsPrintUnionOrIntersectionType(this,e,"&")}function tsPrintUnionOrIntersectionType(e,t,r){var n;let s=0;if((n=e.tokenMap)!=null&&n.startMatches(t,r)){s=1;e.token(r)}e.printJoin(t.types,undefined,undefined,(function(e){this.space();this.token(r,null,e+s);this.space()}))}function TSConditionalType(e){this.print(e.checkType);this.space();this.word("extends");this.space();this.print(e.extendsType);this.space();this.tokenChar(63);this.space();this.print(e.trueType);this.space();this.tokenChar(58);this.space();this.print(e.falseType)}function TSInferType(e){this.word("infer");this.print(e.typeParameter)}function TSParenthesizedType(e){this.tokenChar(40);this.print(e.typeAnnotation);this.tokenChar(41)}function TSTypeOperator(e){this.word(e.operator);this.space();this.print(e.typeAnnotation)}function TSIndexedAccessType(e){this.print(e.objectType,true);this.tokenChar(91);this.print(e.indexType);this.tokenChar(93)}function TSMappedType(e){const{nameType:t,optional:r,readonly:n,typeAnnotation:s}=e;this.tokenChar(123);const i=this.enterDelimited();this.space();if(n){tokenIfPlusMinus(this,n);this.word("readonly");this.space()}this.tokenChar(91);{this.word(e.typeParameter.name)}this.space();this.word("in");this.space();{this.print(e.typeParameter.constraint)}if(t){this.space();this.word("as");this.space();this.print(t)}this.tokenChar(93);if(r){tokenIfPlusMinus(this,r);this.tokenChar(63)}if(s){this.tokenChar(58);this.space();this.print(s)}this.space();i();this.tokenChar(125)}function tokenIfPlusMinus(e,t){if(t!==true){e.token(t)}}function TSTemplateLiteralType(e){this._printTemplate(e,e.types)}function TSLiteralType(e){this.print(e.literal)}function TSClassImplements(e){this.print(e.expression);this.print(e.typeArguments)}function TSInterfaceDeclaration(e){const{declare:t,id:r,typeParameters:n,extends:s,body:i}=e;if(t){this.word("declare");this.space()}this.word("interface");this.space();this.print(r);this.print(n);if(s!=null&&s.length){this.space();this.word("extends");this.space();this.printList(s)}this.space();this.print(i)}function TSInterfaceBody(e){printBraced(this,e,(()=>this.printJoin(e.body,true,true)))}function TSTypeAliasDeclaration(e){const{declare:t,id:r,typeParameters:n,typeAnnotation:s}=e;if(t){this.word("declare");this.space()}this.word("type");this.space();this.print(r);this.print(n);this.space();this.tokenChar(61);this.space();this.print(s);this.semicolon()}function TSTypeExpression(e){const{type:t,expression:r,typeAnnotation:n}=e;this.print(r,true);this.space();this.word(t==="TSAsExpression"?"as":"satisfies");this.space();this.print(n)}function TSTypeAssertion(e){const{typeAnnotation:t,expression:r}=e;this.tokenChar(60);this.print(t);this.tokenChar(62);this.space();this.print(r)}function TSInstantiationExpression(e){this.print(e.expression);{this.print(e.typeParameters)}}function TSEnumDeclaration(e){const{declare:t,const:r,id:n}=e;if(t){this.word("declare");this.space()}if(r){this.word("const");this.space()}this.word("enum");this.space();this.print(n);this.space();{TSEnumBody.call(this,e)}}function TSEnumBody(e){printBraced(this,e,(()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:true,true,true)}))}function TSEnumMember(e){const{id:t,initializer:r}=e;this.print(t);if(r){this.space();this.tokenChar(61);this.space();this.print(r)}}function TSModuleDeclaration(e){const{declare:t,id:r,kind:n}=e;if(t){this.word("declare");this.space()}{if(!e.global){this.word(n!=null?n:r.type==="Identifier"?"namespace":"module");this.space()}this.print(r);if(!e.body){this.semicolon();return}let t=e.body;while(t.type==="TSModuleDeclaration"){this.tokenChar(46);this.print(t.id);t=t.body}this.space();this.print(t)}}function TSModuleBlock(e){printBraced(this,e,(()=>this.printSequence(e.body,true)))}function TSImportType(e){const{argument:t,qualifier:r,options:n}=e;this.word("import");this.tokenChar(40);this.print(t);if(n){this.tokenChar(44);this.print(n)}this.tokenChar(41);if(r){this.tokenChar(46);this.print(r)}const s=e.typeParameters;if(s){this.print(s)}}function TSImportEqualsDeclaration(e){const{id:t,moduleReference:r}=e;if(e.isExport){this.word("export");this.space()}this.word("import");this.space();this.print(t);this.space();this.tokenChar(61);this.space();this.print(r);this.semicolon()}function TSExternalModuleReference(e){this.token("require(");this.print(e.expression);this.tokenChar(41)}function TSNonNullExpression(e){this.print(e.expression);this.tokenChar(33)}function TSExportAssignment(e){this.word("export");this.space();this.tokenChar(61);this.space();this.print(e.expression);this.semicolon()}function TSNamespaceExportDeclaration(e){this.word("export");this.space();this.word("as");this.space();this.word("namespace");this.space();this.print(e.id);this.semicolon()}function tsPrintSignatureDeclarationBase(e){const{typeParameters:t}=e;const r=e.parameters;this.print(t);this.tokenChar(40);this._parameters(r,")");const n=e.typeAnnotation;this.print(n)}function tsPrintClassMemberModifiers(e){const t=e.type==="ClassPrivateProperty";const r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";printModifiersList(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]);if(e.static){this.word("static");this.space()}printModifiersList(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function printBraced(e,t,r){e.token("{");const n=e.enterDelimited();r();n();e.rightBrace(t)}function printModifiersList(e,t,r){var n;const s=new Set;for(const e of r){if(e)s.add(e)}(n=e.tokenMap)==null||n.find(t,(t=>{if(s.has(t.value)){e.token(t.value);e.space();s.delete(t.value);return s.size===0}}));for(const t of s){e.word(t);e.space()}}},1605:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.generate=generate;var n=r(3852);var s=r(1896);function normalizeOptions(e,t,r){if(t.experimental_preserveFormat){if(typeof e!=="string"){throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string")}if(!t.retainLines){throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`")}if(t.compact&&t.compact!=="auto"){throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option")}if(t.minified){throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option")}if(t.jsescOption){throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option")}if(!Array.isArray(r.tokens)){throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}}const n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:true,style:" "},jsescOption:Object.assign({quotes:"double",wrap:true,minimal:false},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var s;n.decoratorsBeforeExport=t.decoratorsBeforeExport;n.jsescOption.json=t.jsonCompatibleStrings;n.recordAndTupleSyntaxType=(s=t.recordAndTupleSyntaxType)!=null?s:"hash"}if(n.minified){n.compact=true;n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)}else{n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve"))}if(n.compact==="auto"){n.compact=typeof e==="string"&&e.length>5e5;if(n.compact){console.error("[BABEL] Note: The code generator has deoptimised the styling of "+`${t.filename} as it exceeds the max of ${"500KB"}.`)}}if(n.compact||n.preserveFormat){n.indent.adjustMultilineComment=false}const{auxiliaryCommentBefore:i,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;if(i&&!o(i)){n.auxiliaryCommentBefore=undefined}if(a&&!o(a)){n.auxiliaryCommentAfter=undefined}return n}{t.CodeGenerator=class CodeGenerator{constructor(e,t={},r){this._ast=void 0;this._format=void 0;this._map=void 0;this._ast=e;this._format=normalizeOptions(r,t,e);this._map=t.sourceMaps?new n.default(t,r):null}generate(){const e=new s.default(this._format,this._map);return e.generate(this._ast)}}}function generate(e,t={},r){const i=normalizeOptions(r,t,e);const a=t.sourceMaps?new n.default(t,r):null;const o=new s.default(i,a,e.tokens,typeof r==="string"?r:null);return o.generate(e)}var i=t["default"]=generate},8694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenContext=void 0;t.isLastChild=isLastChild;t.needsParens=needsParens;t.needsWhitespace=needsWhitespace;t.needsWhitespaceAfter=needsWhitespaceAfter;t.needsWhitespaceBefore=needsWhitespaceBefore;var n=r(3232);var s=r(1818);var i=r(3061);const{FLIPPED_ALIAS_KEYS:a,VISITOR_KEYS:o,isCallExpression:l,isDecorator:c,isExpressionStatement:p,isMemberExpression:u,isNewExpression:d,isParenthesizedExpression:f}=i;const h=t.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function expandAliases(e){const t=new Map;function add(e,r){const n=t.get(e);t.set(e,n?function(e,t,s,i,a){var o;return(o=n(e,t,s,i,a))!=null?o:r(e,t,s,i,a)}:r)}for(const t of Object.keys(e)){const r=a[t];if(r){for(const n of r){add(n,e[t])}}else{add(t,e[t])}}return t}const m=expandAliases(s);const y=expandAliases(n.nodes);function isOrHasCallExpression(e){if(l(e)){return true}return u(e)&&isOrHasCallExpression(e.object)}function needsWhitespace(e,t,r){var n;if(!e)return false;if(p(e)){e=e.expression}const s=(n=y.get(e.type))==null?void 0:n(e,t);if(typeof s==="number"){return(s&r)!==0}return false}function needsWhitespaceBefore(e,t){return needsWhitespace(e,t,1)}function needsWhitespaceAfter(e,t){return needsWhitespace(e,t,2)}function needsParens(e,t,r,n,s){var i;if(!t)return false;if(d(t)&&t.callee===e){if(isOrHasCallExpression(e))return true}if(c(t)){return!isDecoratorMemberExpression(e)&&!(l(e)&&isDecoratorMemberExpression(e.callee))&&!f(e)}return(i=m.get(e.type))==null?void 0:i(e,t,r,n,s)}function isDecoratorMemberExpression(e){switch(e.type){case"Identifier":return true;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&isDecoratorMemberExpression(e.object);default:return false}}function isLastChild(e,t){const r=o[e.type];for(let n=r.length-1;n>=0;n--){const s=e[r[n]];if(s===t){return true}else if(Array.isArray(s)){let e=s.length-1;while(e>=0&&s[e]===null)e--;return e>=0&&s[e]===t}else if(s){return false}}return false}},1818:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AssignmentExpression=AssignmentExpression;t.Binary=Binary;t.BinaryExpression=BinaryExpression;t.ClassExpression=ClassExpression;t.ArrowFunctionExpression=t.ConditionalExpression=ConditionalExpression;t.DoExpression=DoExpression;t.FunctionExpression=FunctionExpression;t.FunctionTypeAnnotation=FunctionTypeAnnotation;t.Identifier=Identifier;t.LogicalExpression=LogicalExpression;t.NullableTypeAnnotation=NullableTypeAnnotation;t.ObjectExpression=ObjectExpression;t.OptionalIndexedAccessType=OptionalIndexedAccessType;t.OptionalCallExpression=t.OptionalMemberExpression=OptionalMemberExpression;t.SequenceExpression=SequenceExpression;t.TSSatisfiesExpression=t.TSAsExpression=TSAsExpression;t.TSConditionalType=TSConditionalType;t.TSConstructorType=t.TSFunctionType=TSFunctionType;t.TSInferType=TSInferType;t.TSInstantiationExpression=TSInstantiationExpression;t.TSIntersectionType=TSIntersectionType;t.UnaryLike=t.TSTypeAssertion=UnaryLike;t.TSTypeOperator=TSTypeOperator;t.TSUnionType=TSUnionType;t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=UnionTypeAnnotation;t.UpdateExpression=UpdateExpression;t.AwaitExpression=t.YieldExpression=YieldExpression;var n=r(3061);var s=r(8694);const{isArrayTypeAnnotation:i,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:c,isMemberExpression:p,isObjectPattern:u,isOptionalMemberExpression:d,isYieldExpression:f,isStatement:h}=n;const m=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function getBinaryPrecedence(e,t){if(t==="BinaryExpression"||t==="LogicalExpression"){return m.get(e.operator)}if(t==="TSAsExpression"||t==="TSSatisfiesExpression"){return m.get("in")}}function isTSTypeExpression(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}const isClassExtendsClause=(e,t)=>{const r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e};const hasPostfixPart=(e,t)=>{const r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function NullableTypeAnnotation(e,t){return i(t)}function FunctionTypeAnnotation(e,t,r){const n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||Boolean(r&s.TokenContext.arrowFlowReturnType)}function UpdateExpression(e,t){return hasPostfixPart(e,t)||isClassExtendsClause(e,t)}function needsParenBeforeExpressionBrace(e){return Boolean(e&(s.TokenContext.expressionStatement|s.TokenContext.arrowBody))}function ObjectExpression(e,t,r){return needsParenBeforeExpressionBrace(r)}function DoExpression(e,t,r){return!e.async&&Boolean(r&s.TokenContext.expressionStatement)}function Binary(e,t){const r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**"){return t.left===e}if(isClassExtendsClause(e,t)){return true}if(hasPostfixPart(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression"){return true}const n=getBinaryPrecedence(t,r);if(n!=null){const s=getBinaryPrecedence(e,e.type);if(n===s&&r==="BinaryExpression"&&t.right===e||n>s){return true}}return undefined}function UnionTypeAnnotation(e,t){const r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function OptionalIndexedAccessType(e,t){return c(t)&&t.objectType===e}function TSAsExpression(e,t){if((t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e){return true}if(t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left){return true}return Binary(e,t)}function TSConditionalType(e,t){const r=t.type;if(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"){return true}if((r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e){return true}if(r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)){return true}return false}function TSUnionType(e,t){const r=t.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSIntersectionType(e,t){const r=t.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSInferType(e,t){const r=t.type;if(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"){return true}if(e.typeParameter.constraint){if((r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e){return true}}return false}function TSTypeOperator(e,t){const r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function TSInstantiationExpression(e,t){const r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function TSFunctionType(e,t){const r=t.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function BinaryExpression(e,t,r,n){return e.operator==="in"&&n}function SequenceExpression(e,t){const r=t.type;if(r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"){return false}if(r==="ClassDeclaration"){return true}if(r==="ForOfStatement"){return t.right===e}if(r==="ExportDefaultDeclaration"){return true}return!h(t)}function YieldExpression(e,t){const r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||hasPostfixPart(e,t)||r==="AwaitExpression"&&f(e)||r==="ConditionalExpression"&&e===t.test||isClassExtendsClause(e,t)||isTSTypeExpression(r)}function ClassExpression(e,t,r){return Boolean(r&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))}function UnaryLike(e,t){return hasPostfixPart(e,t)||a(t)&&t.operator==="**"&&t.left===e||isClassExtendsClause(e,t)}function FunctionExpression(e,t,r){return Boolean(r&(s.TokenContext.expressionStatement|s.TokenContext.exportDefault))}function ConditionalExpression(e,t){const r=t.type;if(r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||isTSTypeExpression(r)){return true}return UnaryLike(e,t)}function OptionalMemberExpression(e,t){return o(t)&&t.callee===e||p(t)&&t.object===e}function AssignmentExpression(e,t,r){if(needsParenBeforeExpressionBrace(r)&&u(e.left)){return true}else{return ConditionalExpression(e,t)}}function LogicalExpression(e,t){const r=t.type;if(isTSTypeExpression(r))return true;if(r!=="LogicalExpression")return false;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function Identifier(e,t,r,n,i){var a;const o=t.type;if((a=e.extra)!=null&&a.parenthesized&&o==="AssignmentExpression"&&t.left===e){const e=t.right.type;if((e==="FunctionExpression"||e==="ClassExpression")&&t.right.id==null){return true}}if(i&&i(e)!==e.name){return false}if(e.name==="let"){const n=p(t,{object:e,computed:true})||d(t,{object:e,computed:true,optional:false});if(n&&r&(s.TokenContext.expressionStatement|s.TokenContext.forHead|s.TokenContext.forInHead)){return true}return Boolean(r&s.TokenContext.forOfHead)}return e.name==="async"&&l(t,{left:e,await:false})}},3232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.nodes=void 0;var n=r(3061);const{FLIPPED_ALIAS_KEYS:s,isArrayExpression:i,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:c,isFunction:p,isIdentifier:u,isLiteral:d,isMemberExpression:f,isObjectExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:g}=n;function crawlInternal(e,t){if(!e)return t;if(f(e)||y(e)){crawlInternal(e.object,t);if(e.computed)crawlInternal(e.property,t)}else if(o(e)||a(e)){crawlInternal(e.left,t);crawlInternal(e.right,t)}else if(c(e)||m(e)){t.hasCall=true;crawlInternal(e.callee,t)}else if(p(e)){t.hasFunction=true}else if(u(e)){t.hasHelper=t.hasHelper||e.callee&&isHelper(e.callee)}return t}function crawl(e){return crawlInternal(e,{hasCall:false,hasFunction:false,hasHelper:false})}function isHelper(e){if(!e)return false;if(f(e)){return isHelper(e.object)||isHelper(e.property)}else if(u(e)){return e.name==="require"||e.name.charCodeAt(0)===95}else if(c(e)){return isHelper(e.callee)}else if(o(e)||a(e)){return u(e.left)&&isHelper(e.left)||isHelper(e.right)}else{return false}}function isType(e){return d(e)||h(e)||i(e)||u(e)||f(e)}const b=t.nodes={AssignmentExpression(e){const t=crawl(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction){return t.hasFunction?1|2:2}},SwitchCase(e,t){return(!!e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(p(e.left)||p(e.right)){return 2}},Literal(e){if(g(e)&&e.value==="use strict"){return 2}},CallExpression(e){if(p(e.callee)||isHelper(e)){return 1|2}},OptionalCallExpression(e){if(p(e.callee)){return 1|2}},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const r=e.declarations[t];let n=isHelper(r.id)&&!isType(r.init);if(!n&&r.init){const e=crawl(r.init);n=isHelper(r.init)&&e.hasCall||e.hasFunction}if(n){return 1|2}}},IfStatement(e){if(l(e.consequent)){return 1|2}}};b.ObjectProperty=b.ObjectTypeProperty=b.ObjectMethod=function(e,t){if(t.properties[0]===e){return 1}};b.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length)){return 1}};b.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)){return 1}};b.ObjectTypeInternalSlot=function(e,t){var r,n,s;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((s=t.indexers)!=null&&s.length)){return 1}};[["Function",true],["Class",true],["Loop",true],["LabeledStatement",true],["SwitchStatement",true],["TryStatement",true]].forEach((function([e,t]){[e].concat(s[e]||[]).forEach((function(e){const r=t?1|2:0;b[e]=()=>r}))}))},1896:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(6031);var s=r(8694);var i=r(3061);var a=r(9694);var o=r(476);var l=r(2943);const{isExpression:c,isFunction:p,isStatement:u,isClassBody:d,isTSInterfaceBody:f,isTSEnumMember:h}=i;const m=/e/i;const y=/\.0+$/;const g=/[\n\r\u2028\u2029]/;const b=/[\n\r\u2028\u2029]|\*\//;function commentIsNewline(e){return e.type==="CommentLine"||g.test(e.value)}const{needsParens:T}=s;class Printer{constructor(e,t,r,s){this.inForStatementInit=false;this.tokenContext=0;this._tokens=null;this._originalCode=null;this._currentNode=null;this._indent=0;this._indentRepeat=0;this._insideAux=false;this._noLineTerminator=false;this._noLineTerminatorAfterNode=null;this._printAuxAfterOnNextUserNode=false;this._printedComments=new Set;this._endsWithInteger=false;this._endsWithWord=false;this._endsWithDiv=false;this._lastCommentLine=0;this._endsWithInnerRaw=false;this._indentInnerComments=true;this.tokenMap=null;this._boundGetRawIdentifier=this._getRawIdentifier.bind(this);this._printSemicolonBeforeNextNode=-1;this._printSemicolonBeforeNextToken=-1;this.format=e;this._tokens=r;this._originalCode=s;this._indentRepeat=e.indent.style.length;this._inputMap=t==null?void 0:t._inputMap;this._buf=new n.default(t,e.indent.style[0])}enterForStatementInit(){if(this.inForStatementInit)return()=>{};this.inForStatementInit=true;return()=>{this.inForStatementInit=false}}enterDelimited(){const e=this.inForStatementInit;const t=this._noLineTerminatorAfterNode;if(e===false&&t===null){return()=>{}}this.inForStatementInit=false;this._noLineTerminatorAfterNode=null;return()=>{this.inForStatementInit=e;this._noLineTerminatorAfterNode=t}}generate(e){if(this.format.preserveFormat){this.tokenMap=new a.TokenMap(e,this._tokens,this._originalCode)}this.print(e);this._maybeAddAuxComment();return this._buf.get()}indent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent++}dedent(){const{format:e}=this;if(e.preserveFormat||e.compact||e.concise){return}this._indent--}semicolon(e=false){this._maybeAddAuxComment();if(e){this._appendChar(59);this._noLineTerminator=false;return}if(this.tokenMap){const e=this._currentNode;if(e.start!=null&&e.end!=null){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}this._queue(59);this._noLineTerminator=false}rightBrace(e){if(this.format.minified){this._buf.removeLastSemicolon()}this.sourceWithOffset("end",e.loc,-1);this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1);this.tokenChar(41)}space(e=false){const{format:t}=this;if(t.compact||t.preserveFormat)return;if(e){this._space()}else if(this._buf.hasContent()){const e=this.getLastChar();if(e!==32&&e!==10){this._space()}}}word(e,t=false){this.tokenContext=0;this._maybePrintInnerComments(e);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e);if(this._endsWithWord||this._endsWithDiv&&e.charCodeAt(0)===47){this._space()}this._append(e,false);this._endsWithWord=true;this._noLineTerminator=t}number(e,t){function isNonDecimalLiteral(e){if(e.length>2&&e.charCodeAt(0)===48){const t=e.charCodeAt(1);return t===98||t===111||t===120}return false}this.word(e);this._endsWithInteger=Number.isInteger(t)&&!isNonDecimalLiteral(e)&&!m.test(e)&&!y.test(e)&&e.charCodeAt(e.length-1)!==46}token(e,t=false,r=0){this.tokenContext=0;this._maybePrintInnerComments(e,r);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(e,r);const n=this.getLastChar();const s=e.charCodeAt(0);if(n===33&&(e==="--"||s===61)||s===43&&n===43||s===45&&n===45||s===46&&this._endsWithInteger){this._space()}this._append(e,t);this._noLineTerminator=false}tokenChar(e){this.tokenContext=0;const t=String.fromCharCode(e);this._maybePrintInnerComments(t);this._maybeAddAuxComment();if(this.tokenMap)this._catchUpToCurrentToken(t);const r=this.getLastChar();if(e===43&&r===43||e===45&&r===45||e===46&&this._endsWithInteger){this._space()}this._appendChar(e);this._noLineTerminator=false}newline(e=1,t){if(e<=0)return;if(!t){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}if(e>2)e=2;e-=this._buf.getNewlineCount();for(let t=0;t<e;t++){this._newline()}return}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){if(!e){t();return}this._catchUp("start",e);this._buf.exactSource(e,t)}source(e,t){if(!t)return;this._catchUp(e,t);this._buf.source(e,t)}sourceWithOffset(e,t,r){if(!t||this.format.preserveFormat)return;this._catchUp(e,t);this._buf.sourceWithOffset(e,t,r)}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const r=this._buf._sourcePosition;r.identifierNamePos=t;r.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const r=this.tokenMap.findMatching(this._currentNode,e,t);if(r)this._catchUpTo(r.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()){this._buf.appendChar(59);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0));this._buf.append(e,t);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_appendChar(e){this._maybeIndent(e);this._buf.appendChar(e);this._endsWithWord=false;this._endsWithInteger=false;this._endsWithDiv=false}_queue(e){this._maybeIndent(e);this._buf.queue(e);this._endsWithWord=false;this._endsWithInteger=false}_maybeIndent(e){if(this._indent&&e!==10&&this.endsWith(10)){this._buf.queueIndentation(this._getIndent())}}_shouldIndent(e){if(this._indent&&e!==10&&this.endsWith(10)){return true}}catchUp(e){if(!this.format.retainLines)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++){this._newline()}}_catchUp(e,t){const{format:r}=this;if(!r.preserveFormat){if(r.retainLines&&t!=null&&t[e]){this.catchUp(t[e].line)}return}const n=t==null?void 0:t[e];if(n!=null)this._catchUpTo(n)}_catchUpTo({line:e,column:t,index:r}){const n=e-this._buf.getCurrentLine();if(n>0&&this._noLineTerminator){return}for(let e=0;e<n;e++){this._newline()}const s=n>0?t:t-this._buf.getCurrentColumn();if(s>0){const e=this._originalCode?this._originalCode.slice(r-s,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(s);this._append(e,false)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=true;this.print(e)}print(e,t,r){var n,i,a;if(!e)return;this._endsWithInnerRaw=false;const o=e.type;const l=this.format;const p=l.concise;if(e._compact){l.concise=true}const u=this[o];if(u===undefined){throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(e.constructor.name)}`)}const d=this._currentNode;this._currentNode=e;if(this.tokenMap){this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode}const f=this._insideAux;this._insideAux=e.loc==null;this._maybeAddAuxComment(this._insideAux&&!f);const h=(n=e.extra)==null?void 0:n.parenthesized;let m=h&&l.preserveFormat||h&&l.retainFunctionParens&&o==="FunctionExpression"||T(e,d,this.tokenContext,this.inForStatementInit,l.preserveFormat?this._boundGetRawIdentifier:undefined);if(!m&&h&&(i=e.leadingComments)!=null&&i.length&&e.leadingComments[0].type==="CommentBlock"){const t=d==null?void 0:d.type;switch(t){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:m=true}}let y=false;if(!m&&this._noLineTerminator&&((a=e.leadingComments)!=null&&a.some(commentIsNewline)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())){m=true;y=true}let g;let b;if(!m){t||(t=d&&this._noLineTerminatorAfterNode===d&&s.isLastChild(d,e));if(t){var S;if((S=e.trailingComments)!=null&&S.some(commentIsNewline)){if(c(e))m=true}else{g=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=e}}}if(m){this.tokenChar(40);if(y)this.indent();this._endsWithInnerRaw=false;if(this.inForStatementInit){b=true;this.inForStatementInit=false}g=this._noLineTerminatorAfterNode;this._noLineTerminatorAfterNode=null}this._lastCommentLine=0;this._printLeadingComments(e,d);const x=o==="Program"||o==="File"?null:e.loc;this.exactSource(x,u.bind(this,e,d));if(m){this._printTrailingComments(e,d);if(y){this.dedent();this.newline()}this.tokenChar(41);this._noLineTerminator=t;if(b)this.inForStatementInit=true}else if(t&&!this._noLineTerminator){this._noLineTerminator=true;this._printTrailingComments(e,d)}else{this._printTrailingComments(e,d,r)}this._currentNode=d;l.concise=p;this._insideAux=f;if(g!==undefined){this._noLineTerminatorAfterNode=g}this._endsWithInnerRaw=false}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=true;const e=this.format.auxiliaryCommentBefore;if(e){this._printComment({type:"CommentBlock",value:e},0)}}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=false;const e=this.format.auxiliaryCommentAfter;if(e){this._printComment({type:"CommentBlock",value:e},0)}}getPossibleRaw(e){const t=e.extra;if((t==null?void 0:t.raw)!=null&&t.rawValue!=null&&e.value===t.rawValue){return t.raw}}printJoin(e,t,r,n,s,i,a,o){if(!(e!=null&&e.length))return;if(r==null&&this.format.retainLines){var l;const t=(l=e[0].loc)==null?void 0:l.start.line;if(t!=null&&t!==this._buf.getCurrentLine()){r=true}}if(r)this.indent();const c={addNewlines:i,nextNodeStartLine:0};const p=n==null?void 0:n.bind(this);const u=e.length;for(let r=0;r<u;r++){const n=e[r];if(!n)continue;if(t)this._printNewline(r===0,c);this.print(n,undefined,o||0);a==null||a(n,r);if(p!=null){if(r<u-1)p(r,false);else if(s)p(r,true)}if(t){var d;if(!((d=n.trailingComments)!=null&&d.length)){this._lastCommentLine=0}if(r+1===u){this.newline(1)}else{var f;const t=e[r+1];c.nextNodeStartLine=((f=t.loc)==null?void 0:f.start.line)||0;this._printNewline(true,c)}}}if(r)this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;if(t)this.indent();this.print(e);if(t)this.dedent()}printBlock(e){const t=e.body;if(t.type!=="EmptyStatement"){this.space()}this.print(t)}_printTrailingComments(e,t,r){const{innerComments:n,trailingComments:s}=e;if(n!=null&&n.length){this._printComments(2,n,e,t,r)}if(s!=null&&s.length){this._printComments(2,s,e,t,r)}}_printLeadingComments(e,t){const r=e.leadingComments;if(!(r!=null&&r.length))return;this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){if(this._endsWithInnerRaw){var r;this.printInnerComments((r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,t))}this._endsWithInnerRaw=true;this._indentInnerComments=true}printInnerComments(e){const t=this._currentNode;const r=t.innerComments;if(!(r!=null&&r.length))return;const n=this.endsWith(32);const s=this._indentInnerComments;const i=this._printedComments.size;if(s)this.indent();this._printComments(1,r,t,undefined,undefined,e);if(n&&i!==this._printedComments.size){this.space()}if(s)this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=false}printSequence(e,t,r,n){this.printJoin(e,true,t!=null?t:false,undefined,undefined,n,undefined,r)}printList(e,t,r,n,s,i){this.printJoin(e,r,n,s!=null?s:commaSeparator,t,undefined,i)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));if(t<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){const r=this.format;if(r.retainLines||r.compact)return;if(r.concise){this.space();return}if(!e){return}const n=t.nextNodeStartLine;const s=this._lastCommentLine;if(n>0&&s>0){const e=n-s;if(e>=0){this.newline(e||1);return}}if(this._buf.hasContent()){this.newline(1)}}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&b.test(e.value)){return 2}if(t&&this.tokenMap){const r=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(r&&r.start>t.start){return 2}}this._printedComments.add(e);if(!this.format.shouldPrintComment(e.value)){return 0}return 1}_printComment(e,t){const r=this._noLineTerminator;const n=e.type==="CommentBlock";const s=n&&t!==1&&!this._noLineTerminator;if(s&&this._buf.hasContent()&&t!==2){this.newline(1)}const i=this.getLastChar();if(i!==91&&i!==123&&i!==40){this.space()}let a;if(n){a=`/*${e.value}*/`;if(this.format.indent.adjustMultilineComment){var o;const t=(o=e.loc)==null?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise){a=a.replace(/\n(?!$)/g,`\n`)}else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent(47)||this.format.retainLines){e+=this._getIndent()}a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else if(!r){a=`//${e.value}`}else{a=`/*${e.value}*/`}if(this._endsWithDiv)this._space();if(this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:r}=this;this._printSemicolonBeforeNextToken=-1;this._printSemicolonBeforeNextNode=-1;this.source("start",e.loc);this._append(a,n);this._printSemicolonBeforeNextNode=r;this._printSemicolonBeforeNextToken=t}else{this.source("start",e.loc);this._append(a,n)}if(!n&&!r){this.newline(1,true)}if(s&&t!==3){this.newline(1)}}_printComments(e,t,r,n,s=0,i){const a=r.loc;const o=t.length;let l=!!a;const c=l?a.start.line:0;const m=l?a.end.line:0;let y=0;let b=0;const T=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const S=t[a];const x=this._shouldPrintComment(S,i);if(x===2){l=false;break}if(l&&S.loc&&x===1){const t=S.loc.start.line;const r=S.loc.end.line;if(e===0){let e=0;if(a===0){if(this._buf.hasContent()&&(S.type==="CommentLine"||t!==r)){e=b=1}}else{e=t-y}y=r;T(e);this._printComment(S,1);if(a+1===o){T(Math.max(c-y,b));y=c}}else if(e===1){const e=t-(a===0?c:y);y=r;T(e);this._printComment(S,1);if(a+1===o){T(Math.min(1,m-y));y=m}}else{const e=t-(a===0?m-s:y);y=r;T(e);this._printComment(S,1)}}else{l=false;if(x!==1){continue}if(o===1){const t=S.loc?S.loc.start.line===S.loc.end.line:!g.test(S.value);const s=t&&!u(r)&&!d(n)&&!f(n)&&!h(r);if(e===0){this._printComment(S,s&&r.type!=="ObjectExpression"||t&&p(n,{body:r})?1:0)}else if(s&&e===2){this._printComment(S,1)}else{this._printComment(S,0)}}else if(e===1&&!(r.type==="ObjectExpression"&&r.properties.length>1)&&r.type!=="ClassBody"&&r.type!=="TSInterfaceBody"){this._printComment(S,a===0?2:a===o-1?3:0)}else{this._printComment(S,0)}}}if(e===2&&l&&y){this._lastCommentLine=y}}}Object.assign(Printer.prototype,o);{(0,l.addDeprecatedGenerators)(Printer)}var S=t["default"]=Printer;function commaSeparator(e,t){this.token(",",false,e);if(!t)this.space()}},3852:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(7237);var s=r(8536);class SourceMap{constructor(e,t){var r;this._map=void 0;this._rawMappings=void 0;this._sourceFileName=void 0;this._lastGenLine=0;this._lastSourceLine=0;this._lastSourceColumn=0;this._inputMap=void 0;const i=this._map=new n.GenMapping({sourceRoot:e.sourceRoot});this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/");this._rawMappings=undefined;if(e.inputSourceMap){this._inputMap=new s.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length){for(let e=0;e<t.length;e++){var a;(0,n.setSourceContent)(i,t[e],(a=this._inputMap.sourcesContent)==null?void 0:a[e])}}}if(typeof t==="string"&&!e.inputSourceMap){(0,n.setSourceContent)(i,this._sourceFileName,t)}else if(typeof t==="object"){for(const e of Object.keys(t)){(0,n.setSourceContent)(i,e.replace(/\\/g,"/"),t[e])}}}get(){return(0,n.toEncodedMap)(this._map)}getDecoded(){return(0,n.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,n.allMappings)(this._map))}mark(e,t,r,i,a,o){var l;this._rawMappings=undefined;let c;if(t!=null){if(this._inputMap){c=(0,s.originalPositionFor)(this._inputMap,{line:t,column:r});if(!c.name&&a){const e=(0,s.originalPositionFor)(this._inputMap,a);if(e.name){i=e.name}}}else{c={source:(o==null?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r}}}(0,n.maybeAddMapping)(this._map,{name:i,generated:e,source:(l=c)==null?void 0:l.source,original:c})}}t["default"]=SourceMap},9694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TokenMap=void 0;var n=r(3061);const{traverseFast:s,VISITOR_KEYS:i}=n;class TokenMap{constructor(e,t,r){this._tokens=void 0;this._source=void 0;this._nodesToTokenIndexes=new Map;this._nodesOccurrencesCountCache=new Map;this._tokensCache=new Map;this._tokens=t;this._source=r;s(e,(e=>{const t=this._getTokensIndexesOfNode(e);if(t.length>0)this._nodesToTokenIndexes.set(e,t)}));this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=0;e<r.length;e++){const n=r[e];const s=this._tokens[n];if(t(s,n))return s}}return null}findLastIndex(e,t){const r=this._nodesToTokenIndexes.get(e);if(r){for(let e=r.length-1;e>=0;e--){const n=r[e];const s=this._tokens[n];if(t(s,n))return n}}return-1}findMatching(e,t,r=0){const n=this._nodesToTokenIndexes.get(e);if(n){let s=0;const i=r;if(i>1){const n=this._nodesOccurrencesCountCache.get(e);if(n&&n.test===t&&n.count<i){s=n.i+1;r-=n.count+1}}for(;s<n.length;s++){const a=this._tokens[n[s]];if(this.matchesOriginal(a,t)){if(r===0){if(i>0){this._nodesOccurrencesCountCache.set(e,{test:t,count:i,i:s})}return a}r--}}}return null}matchesOriginal(e,t){if(e.end-e.start!==t.length)return false;if(e.value!=null)return e.value===t;return this._source.startsWith(t,e.start)}startMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const n=this._tokens[r[0]];if(n.start!==e.start)return false;return this.matchesOriginal(n,t)}endMatches(e,t){const r=this._nodesToTokenIndexes.get(e);if(!r)return false;const n=this._tokens[r[r.length-1]];if(n.end!==e.end)return false;return this.matchesOriginal(n,t)}_getTokensIndexesOfNode(e){if(e.start==null||e.end==null)return[];const{first:t,last:r}=this._findTokensOfNode(e,0,this._tokens.length-1);let n=t;const s=childrenIterator(e);if((e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&e.declaration&&e.declaration.type==="ClassDeclaration"){s.next()}const i=[];for(const e of s){if(e==null)continue;if(e.start==null||e.end==null)continue;const t=this._findTokensOfNode(e,n,r);const s=t.first;for(let e=n;e<s;e++)i.push(e);n=t.last+1}for(let e=n;e<=r;e++)i.push(e);return i}_findTokensOfNode(e,t,r){const n=this._tokensCache.get(e);if(n)return n;const s=this._findFirstTokenOfNode(e.start,t,r);const i=this._findLastTokenOfNode(e.end,s,r);this._tokensCache.set(e,{first:s,last:i});return{first:s,last:i}}_findFirstTokenOfNode(e,t,r){while(t<=r){const n=r+t>>1;if(e<this._tokens[n].start){r=n-1}else if(e>this._tokens[n].start){t=n+1}else{return n}}return t}_findLastTokenOfNode(e,t,r){while(t<=r){const n=r+t>>1;if(e<this._tokens[n].end){r=n-1}else if(e>this._tokens[n].end){t=n+1}else{return n}}return r}}t.TokenMap=TokenMap;function*childrenIterator(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++){yield e.expressions[t-1];yield e.quasis[t]}return}const t=i[e.type];for(const r of t){const t=e[r];if(!t)continue;if(Array.isArray(t)){yield*t}else{yield t}}}},344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=annotateAsPure;var n=r(3061);const{addComment:s}=n;const i="#__PURE__";const isPureAnnotated=({leadingComments:e})=>!!e&&e.some((e=>/[@#]__PURE__/.test(e.value)));function annotateAsPure(e){const t=e["node"]||e;if(isPureAnnotated(t)){return}s(t,"leading",i)}},6484:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getInclusionReasons=getInclusionReasons;var n=r(7849);var s=r(3359);var i=r(7409);function getInclusionReasons(e,t,r){const a=r[e]||{};return Object.keys(t).reduce(((e,r)=>{const o=(0,i.getLowestImplementedVersion)(a,r);const l=t[r];if(!o){e[r]=(0,s.prettifyVersion)(l)}else{const t=(0,i.isUnreleasedVersion)(o,r);const a=(0,i.isUnreleasedVersion)(l,r);if(!a&&(t||n.lt(l.toString(),(0,i.semverify)(o)))){e[r]=(0,s.prettifyVersion)(l)}}return e}),{})}},9822:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=filterItems;t.isRequired=isRequired;t.targetsSupported=targetsSupported;var n=r(7849);var s=r(2810);var i=r(7409);function targetsSupported(e,t){const r=Object.keys(e);if(r.length===0){return false}const s=r.filter((r=>{const s=(0,i.getLowestImplementedVersion)(t,r);if(!s){return true}const a=e[r];if((0,i.isUnreleasedVersion)(a,r)){return false}if((0,i.isUnreleasedVersion)(s,r)){return true}if(!n.valid(a.toString())){throw new Error(`Invalid version passed for target "${r}": "${a}". `+"Versions must be in semver format (major.minor.patch)")}return n.gt((0,i.semverify)(s),a.toString())}));return s.length===0}function isRequired(e,t,{compatData:r=s,includes:n,excludes:i}={}){if(i!=null&&i.has(e))return false;if(n!=null&&n.has(e))return true;return!targetsSupported(t,r[e])}function filterItems(e,t,r,n,s,i,a){const o=new Set;const l={compatData:e,includes:t,excludes:r};for(const t in e){if(isRequired(t,n,l)){o.add(t)}else if(a){const e=a.get(t);if(e){o.add(e)}}}s==null||s.forEach((e=>!r.has(e)&&o.add(e)));i==null||i.forEach((e=>!t.has(e)&&o.delete(e)));return o}},3924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"TargetNames",{enumerable:true,get:function(){return c.TargetNames}});t["default"]=getTargets;Object.defineProperty(t,"filterItems",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"getInclusionReasons",{enumerable:true,get:function(){return u.getInclusionReasons}});t.isBrowsersQueryValid=isBrowsersQueryValid;Object.defineProperty(t,"isRequired",{enumerable:true,get:function(){return d.isRequired}});Object.defineProperty(t,"prettifyTargets",{enumerable:true,get:function(){return p.prettifyTargets}});Object.defineProperty(t,"unreleasedLabels",{enumerable:true,get:function(){return l.unreleasedLabels}});var n=r(4907);var s=r(3146);var i=r(8566);var a=r(7330);var o=r(7409);var l=r(9961);var c=r(4858);var p=r(3359);var u=r(6484);var d=r(9822);const f=i["es6.module"];const h=new s.OptionValidator("@babel/helper-compilation-targets");function validateTargetNames(e){const t=Object.keys(c.TargetNames);for(const r of Object.keys(e)){if(!(r in c.TargetNames)){throw new Error(h.formatMessage(`'${r}' is not a valid target\n- Did you mean '${(0,s.findSuggestion)(r,t)}'?`))}}return e}function isBrowsersQueryValid(e){return typeof e==="string"||Array.isArray(e)&&e.every((e=>typeof e==="string"))}function validateBrowsers(e){h.invariant(e===undefined||isBrowsersQueryValid(e),`'${String(e)}' is not a valid browserslist query`);return e}function getLowestVersions(e){return e.reduce(((e,t)=>{const[r,n]=t.split(" ");const s=l.browserNameMap[r];if(!s){return e}try{const t=n.split("-")[0].toLowerCase();const r=(0,o.isUnreleasedVersion)(t,s);if(!e[s]){e[s]=r?t:(0,o.semverify)(t);return e}const i=e[s];const a=(0,o.isUnreleasedVersion)(i,s);if(a&&r){e[s]=(0,o.getLowestUnreleased)(i,t,s)}else if(a){e[s]=(0,o.semverify)(t)}else if(!a&&!r){const r=(0,o.semverify)(t);e[s]=(0,o.semverMin)(i,r)}}catch(e){}return e}),{})}function outputDecimalWarning(e){if(!e.length){return}console.warn("Warning, the following targets are using a decimal version:\n");e.forEach((({target:e,value:t})=>console.warn(` ${e}: ${t}`)));console.warn(`\nWe recommend using a string for minor/patch versions to avoid numbers like 6.10\ngetting parsed as 6.1, which can lead to unexpected behavior.\n`)}function semverifyTarget(e,t){try{return(0,o.semverify)(t)}catch(r){throw new Error(h.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function nodeTargetParser(e){const t=e===true||e==="current"?process.versions.node.split("-")[0]:semverifyTarget("node",e);return["node",t]}function defaultTargetParser(e,t){const r=(0,o.isUnreleasedVersion)(t,e)?t.toLowerCase():semverifyTarget(e,t);return[e,r]}function generateTargets(e){const t=Object.assign({},e);delete t.esmodules;delete t.browsers;return t}function resolveTargets(e,t){const r=n(e,{mobileToDesktop:true,env:t});return getLowestVersions(r)}const m=new a({max:64});function resolveTargetsCached(e,t){const r=typeof e==="string"?e:e.join()+t;let n=m.get(r);if(!n){n=resolveTargets(e,t);m.set(r,n)}return Object.assign({},n)}function getTargets(e={},t={}){var r,s;let{browsers:i,esmodules:a}=e;const{configPath:l=".",onBrowserslistConfigFound:c}=t;validateBrowsers(i);const p=generateTargets(e);let u=validateTargetNames(p);const d=!!i;const h=d||Object.keys(u).length>0;const m=!t.ignoreBrowserslistConfig&&!h;if(!i&&m){i=process.env.BROWSERSLIST;if(!i){const e=t.configFile||process.env.BROWSERSLIST_CONFIG||n.findConfigFile(l);if(e!=null){c==null||c(e);i=n.loadConfig({config:e,env:t.browserslistEnv})}}if(i==null){{i=[]}}}if(a&&(a!=="intersect"||!((r=i)!=null&&r.length))){i=Object.keys(f).map((e=>`${e} >= ${f[e]}`)).join(", ");a=false}if((s=i)!=null&&s.length){const e=resolveTargetsCached(i,t.browserslistEnv);if(a==="intersect"){for(const t of Object.keys(e)){if(t!=="deno"&&t!=="ie"){const r=f[t==="opera_mobile"?"op_mob":t];if(r){const n=e[t];e[t]=(0,o.getHighestUnreleased)(n,(0,o.semverify)(r),t)}else{delete e[t]}}else{delete e[t]}}}u=Object.assign(e,u)}const y={};const g=[];for(const e of Object.keys(u).sort()){const t=u[e];if(typeof t==="number"&&t%1!==0){g.push({target:e,value:t})}const[r,n]=e==="node"?nodeTargetParser(t):defaultTargetParser(e,t);if(n){y[r]=n}}outputDecimalWarning(g);return y}},4858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TargetNames=void 0;const r=t.TargetNames={node:"node",deno:"deno",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino",opera_mobile:"opera_mobile"}},3359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prettifyTargets=prettifyTargets;t.prettifyVersion=prettifyVersion;var n=r(7849);var s=r(9961);function prettifyVersion(e){if(typeof e!=="string"){return e}const{major:t,minor:r,patch:s}=n.parse(e);const i=[t];if(r||s){i.push(r)}if(s){i.push(s)}return i.join(".")}function prettifyTargets(e){return Object.keys(e).reduce(((t,r)=>{let n=e[r];const i=s.unreleasedLabels[r];if(typeof n==="string"&&i!==n){n=prettifyVersion(n)}t[r]=n;return t}),{})}},9961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.unreleasedLabels=t.browserNameMap=void 0;const r=t.unreleasedLabels={safari:"tp"};const n=t.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}},7409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getHighestUnreleased=getHighestUnreleased;t.getLowestImplementedVersion=getLowestImplementedVersion;t.getLowestUnreleased=getLowestUnreleased;t.isUnreleasedVersion=isUnreleasedVersion;t.semverMin=semverMin;t.semverify=semverify;var n=r(7849);var s=r(3146);var i=r(9961);const a=/^(?:\d+|\d(?:\d?[^\d\n\r\u2028\u2029]\d+|\d{2,}(?:[^\d\n\r\u2028\u2029]\d+)?))$/;const o=new s.OptionValidator("@babel/helper-compilation-targets");function semverMin(e,t){return e&&n.lt(e,t)?e:t}function semverify(e){if(typeof e==="string"&&n.valid(e)){return e}o.invariant(typeof e==="number"||typeof e==="string"&&a.test(e),`'${e}' is not a valid version`);e=e.toString();let t=0;let r=0;while((t=e.indexOf(".",t+1))>0){r++}return e+".0".repeat(2-r)}function isUnreleasedVersion(e,t){const r=i.unreleasedLabels[t];return!!r&&r===e.toString().toLowerCase()}function getLowestUnreleased(e,t,r){const n=i.unreleasedLabels[r];if(e===n){return t}if(t===n){return e}return semverMin(e,t)}function getHighestUnreleased(e,t,r){return getLowestUnreleased(e,t,r)===e?t:e}function getLowestImplementedVersion(e,t){const r=e[t];if(!r&&t==="android"){return e.chrome}return r}},4073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDecoratedClass=buildDecoratedClass;var n=r(2358);var s=r(6721);function prop(e,t){if(!t)return null;return n.types.objectProperty(n.types.identifier(e),t)}function method(e,t){return n.types.objectMethod("method",n.types.identifier(e),[],n.types.blockStatement(t))}function takeDecorators(e){let t;if(e.decorators&&e.decorators.length>0){t=n.types.arrayExpression(e.decorators.map((e=>e.expression)))}e.decorators=undefined;return t}function getKey(e){if(e.computed){return e.key}else if(n.types.isIdentifier(e.key)){return n.types.stringLiteral(e.key.name)}else{return n.types.stringLiteral(String(e.key.value))}}function extractElementDescriptor(e,t,i,a){const o=a.isClassMethod();if(a.isPrivate()){throw a.buildCodeFrameError(`Private ${o?"methods":"fields"} in decorated classes are not supported yet.`)}if(a.node.type==="ClassAccessorProperty"){throw a.buildCodeFrameError(`Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`)}if(a.node.type==="StaticBlock"){throw a.buildCodeFrameError(`Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.`)}const{node:l,scope:c}=a;if(!a.isTSDeclareMethod()){new s.default({methodPath:a,objectRef:t,superRef:i,file:e,refToPreserve:t}).replace()}const p=[prop("kind",n.types.stringLiteral(n.types.isClassMethod(l)?l.kind:"field")),prop("decorators",takeDecorators(l)),prop("static",l.static&&n.types.booleanLiteral(true)),prop("key",getKey(l))].filter(Boolean);if(o){{var u;(u=a.ensureFunctionName)!=null?u:a.ensureFunctionName=r(8026).NodePath.prototype.ensureFunctionName}a.ensureFunctionName(false);p.push(prop("value",n.types.toExpression(a.node)))}else if(n.types.isClassProperty(l)&&l.value){p.push(method("value",n.template.statements.ast`return ${l.value}`))}else{p.push(prop("value",c.buildUndefinedNode()))}a.remove();return n.types.objectExpression(p)}function addDecorateHelper(e){return e.addHelper("decorate")}function buildDecoratedClass(e,t,r,s){const{node:i,scope:a}=t;const o=a.generateUidIdentifier("initialize");const l=i.id&&t.isDeclaration();const c=t.isInStrictMode();const{superClass:p}=i;i.type="ClassDeclaration";if(!i.id)i.id=n.types.cloneNode(e);let u;if(p){u=a.generateUidIdentifierBasedOnNode(i.superClass,"super");i.superClass=u}const d=takeDecorators(i);const f=n.types.arrayExpression(r.filter((e=>!e.node.abstract&&e.node.type!=="TSIndexSignature")).map((e=>extractElementDescriptor(s,i.id,u,e))));const h=n.template.expression.ast`
|
||
${addDecorateHelper(s)}(
|
||
${d||n.types.nullLiteral()},
|
||
function (${o}, ${p?n.types.cloneNode(u):null}) {
|
||
${i}
|
||
return { F: ${n.types.cloneNode(i.id)}, d: ${f} };
|
||
},
|
||
${p}
|
||
)
|
||
`;if(!c){h.arguments[1].body.directives.push(n.types.directive(n.types.directiveLiteral("use strict")))}let m=h;let y="arguments.1.body.body.0";if(l){m=n.template.statement.ast`let ${e} = ${h}`;y="declarations.0.init."+y}return{instanceNodes:[n.template.statement.ast`
|
||
${n.types.cloneNode(o)}(this)
|
||
`],wrapClass(e){e.replaceWith(m);return e.get(y)}}}},7009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.hasDecorators=hasDecorators;t.hasOwnDecorators=hasOwnDecorators;var n=r(2358);var s=r(6721);var i=r(9102);var a=r(4697);var o=r(5040);function hasOwnDecorators(e){var t;return!!((t=e.decorators)!=null&&t.length)}function hasDecorators(e){return hasOwnDecorators(e)||e.body.body.some(hasOwnDecorators)}function incrementId(e,t=e.length-1){if(t===-1){e.unshift(65);return}const r=e[t];if(r===90){e[t]=97}else if(r===122){e[t]=65;incrementId(e,t-1)}else{e[t]=r+1}}function createPrivateUidGeneratorForClass(e){const t=[];const r=new Set;e.traverse({PrivateName(e){r.add(e.node.id.name)}});return()=>{let e;do{incrementId(t);e=String.fromCharCode(...t)}while(r.has(e));return n.types.privateName(n.types.identifier(e))}}function createLazyPrivateUidGeneratorForClass(e){let t;return()=>{if(!t){t=createPrivateUidGeneratorForClass(e)}return t()}}function replaceClassWithVar(e,t){const r=e.node.id;const s=e.scope;if(e.type==="ClassDeclaration"){const t=r.name;const i=s.generateUidIdentifierBasedOnNode(r);const a=n.types.identifier(t);s.rename(t,i.name);e.get("id").replaceWith(a);return{id:n.types.cloneNode(i),path:e}}else{let i;if(r){t=r.name;i=generateLetUidIdentifier(s.parent,t);s.rename(t,i.name)}else{i=generateLetUidIdentifier(s.parent,typeof t==="string"?t:"decorated_class")}const a=n.types.classExpression(typeof t==="string"?n.types.identifier(t):null,e.node.superClass,e.node.body);const[o]=e.replaceWith(n.types.sequenceExpression([a,i]));return{id:n.types.cloneNode(i),path:o.get("expressions.0")}}}function generateClassProperty(e,t,r){if(e.type==="PrivateName"){return n.types.classPrivateProperty(e,t,undefined,r)}else{return n.types.classProperty(e,t,undefined,undefined,r)}}function assignIdForAnonymousClass(e,t){if(!e.node.id){e.node.id=typeof t==="string"?n.types.identifier(t):e.scope.generateUidIdentifier("Class")}}function addProxyAccessorsFor(e,t,r,s,i,a,o,l){const c=(l==="2023-11"||l==="2023-05")&&o?e:n.types.thisExpression();const p=n.types.blockStatement([n.types.returnStatement(n.types.memberExpression(n.types.cloneNode(c),n.types.cloneNode(i)))]);const u=n.types.blockStatement([n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(n.types.cloneNode(c),n.types.cloneNode(i)),n.types.identifier("v")))]);let d,f;if(r.type==="PrivateName"){d=n.types.classPrivateMethod("get",r,[],p,o);f=n.types.classPrivateMethod("set",s,[n.types.identifier("v")],u,o)}else{d=n.types.classMethod("get",r,[],p,a,o);f=n.types.classMethod("set",s,[n.types.identifier("v")],u,a,o)}t.insertAfter(f);t.insertAfter(d)}function extractProxyAccessorsFor(e,t){if(t!=="2023-11"&&t!=="2023-05"&&t!=="2023-01"){return[n.template.expression.ast`
|
||
function () {
|
||
return this.${n.types.cloneNode(e)};
|
||
}
|
||
`,n.template.expression.ast`
|
||
function (value) {
|
||
this.${n.types.cloneNode(e)} = value;
|
||
}
|
||
`]}return[n.template.expression.ast`
|
||
o => o.${n.types.cloneNode(e)}
|
||
`,n.template.expression.ast`
|
||
(o, v) => o.${n.types.cloneNode(e)} = v
|
||
`]}function getComputedKeyLastElement(e){e=(0,i.skipTransparentExprWrappers)(e);if(e.isSequenceExpression()){const t=e.get("expressions");return getComputedKeyLastElement(t[t.length-1])}return e}function getComputedKeyMemoiser(e){const t=getComputedKeyLastElement(e);if(t.isConstantExpression()){return n.types.cloneNode(e.node)}else if(t.isIdentifier()&&e.scope.hasUid(t.node.name)){return n.types.cloneNode(e.node)}else if(t.isAssignmentExpression()&&t.get("left").isIdentifier()){return n.types.cloneNode(t.node.left)}else{throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}}function prependExpressionsToComputedKey(e,t){const r=t.get("key");if(r.isSequenceExpression()){e.push(...r.node.expressions)}else{e.push(r.node)}r.replaceWith(maybeSequenceExpression(e))}function appendExpressionsToComputedKey(e,t){const r=t.get("key");const s=getComputedKeyLastElement(r);if(s.isConstantExpression()){prependExpressionsToComputedKey(e,t)}else{const i=r.scope.parent;const a=(0,o.memoiseComputedKey)(s.node,i,i.generateUid("computedKey"));if(!a){prependExpressionsToComputedKey(e,t)}else{const t=[...e,n.types.cloneNode(a.left)];const r=s.parentPath;if(r.isSequenceExpression()){r.pushContainer("expressions",t)}else{s.replaceWith(maybeSequenceExpression([n.types.cloneNode(a),...t]))}}}}function prependExpressionsToFieldInitializer(e,t){const r=t.get("value");if(r.node){e.push(r.node)}else if(e.length>0){e[e.length-1]=n.types.unaryExpression("void",e[e.length-1])}r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToStaticBlock(e,t){t.unshiftContainer("body",n.types.expressionStatement(maybeSequenceExpression(e)))}function prependExpressionsToConstructor(e,t){t.node.body.body.unshift(n.types.expressionStatement(maybeSequenceExpression(e)))}function isProtoInitCallExpression(e,t){return n.types.isCallExpression(e)&&n.types.isIdentifier(e.callee,{name:t.name})}function optimizeSuperCallAndExpressions(e,t){if(t){if(e.length>=2&&isProtoInitCallExpression(e[1],t)){const r=n.types.callExpression(n.types.cloneNode(t),[e[0]]);e.splice(0,2,r)}if(e.length>=2&&n.types.isThisExpression(e[e.length-1])&&isProtoInitCallExpression(e[e.length-2],t)){e.splice(e.length-1,1)}}return maybeSequenceExpression(e)}function insertExpressionsAfterSuperCallAndOptimize(e,t,r){t.traverse({CallExpression:{exit(t){if(!t.get("callee").isSuper())return;const s=[t.node,...e.map((e=>n.types.cloneNode(e)))];if(t.isCompletionRecord()){s.push(n.types.thisExpression())}t.replaceWith(optimizeSuperCallAndExpressions(s,r));t.skip()}},ClassMethod(e){if(e.node.kind==="constructor"){e.skip()}}})}function createConstructorFromExpressions(e,t){const r=[n.types.expressionStatement(maybeSequenceExpression(e))];if(t){r.unshift(n.types.expressionStatement(n.types.callExpression(n.types.super(),[n.types.spreadElement(n.types.identifier("args"))])))}return n.types.classMethod("constructor",n.types.identifier("constructor"),t?[n.types.restElement(n.types.identifier("args"))]:[],n.types.blockStatement(r))}function createStaticBlockFromExpressions(e){return n.types.staticBlock([n.types.expressionStatement(maybeSequenceExpression(e))])}const l=0;const c=1;const p=2;const u=3;const d=4;const f=5;const h=8;const m=16;function getElementKind(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return l;case"ClassAccessorProperty":return c;case"ClassMethod":case"ClassPrivateMethod":if(e.node.kind==="get"){return u}else if(e.node.kind==="set"){return d}else{return p}}}function toSortedDecoratorInfo(e){return[...e.filter((e=>e.isStatic&&e.kind>=c&&e.kind<=d)),...e.filter((e=>!e.isStatic&&e.kind>=c&&e.kind<=d)),...e.filter((e=>e.isStatic&&e.kind===l)),...e.filter((e=>!e.isStatic&&e.kind===l))]}function generateDecorationList(e,t,r){const s=e.length;const i=t.some(Boolean);const a=[];for(let o=0;o<s;o++){if((r==="2023-11"||r==="2023-05")&&i){a.push(t[o]||n.types.unaryExpression("void",n.types.numericLiteral(0)))}a.push(e[o].expression)}return{haveThis:i,decs:a}}function generateDecorationExprs(e,t){return n.types.arrayExpression(e.map((e=>{let r=e.kind;if(e.isStatic){r+=t==="2023-11"||t==="2023-05"?h:f}if(e.decoratorsHaveThis)r+=m;return n.types.arrayExpression([e.decoratorsArray,n.types.numericLiteral(r),e.name,...e.privateMethods||[]])})))}function extractElementLocalAssignments(e){const t=[];for(const r of e){const{locals:e}=r;if(Array.isArray(e)){t.push(...e)}else if(e!==undefined){t.push(e)}}return t}function addCallAccessorsFor(e,t,r,s,i,a){t.insertAfter(n.types.classPrivateMethod("get",n.types.cloneNode(r),[],n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.cloneNode(s),e==="2023-11"&&a?[]:[n.types.thisExpression()]))]),a));t.insertAfter(n.types.classPrivateMethod("set",n.types.cloneNode(r),[n.types.identifier("v")],n.types.blockStatement([n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(i),e==="2023-11"&&a?[n.types.identifier("v")]:[n.types.thisExpression(),n.types.identifier("v")]))]),a))}function movePrivateAccessor(e,t,r,s){let i;let a;if(e.node.kind==="set"){i=[n.types.identifier("v")];a=[n.types.expressionStatement(n.types.callExpression(r,[n.types.thisExpression(),n.types.identifier("v")]))]}else{i=[];a=[n.types.returnStatement(n.types.callExpression(r,[n.types.thisExpression()]))]}e.replaceWith(n.types.classPrivateMethod(e.node.kind,n.types.cloneNode(t),i,n.types.blockStatement(a),s))}function isClassDecoratableElementPath(e){const{type:t}=e;return t!=="TSDeclareMethod"&&t!=="TSIndexSignature"&&t!=="StaticBlock"}function staticBlockToIIFE(e){return n.types.callExpression(n.types.arrowFunctionExpression([],n.types.blockStatement(e.body)),[])}function staticBlockToFunctionClosure(e){return n.types.functionExpression(null,[],n.types.blockStatement(e.body))}function fieldInitializerToClosure(e){return n.types.functionExpression(null,[],n.types.blockStatement([n.types.returnStatement(e)]))}function maybeSequenceExpression(e){if(e.length===0)return n.types.unaryExpression("void",n.types.numericLiteral(0));if(e.length===1)return e[0];return n.types.sequenceExpression(e)}function createFunctionExpressionFromPrivateMethod(e){const{params:t,body:r,generator:s,async:i}=e;return n.types.functionExpression(undefined,t,r,s,i)}function createSetFunctionNameCall(e,t){return n.types.callExpression(e.addHelper("setFunctionName"),[n.types.thisExpression(),t])}function createToPropertyKeyCall(e,t){return n.types.callExpression(e.addHelper("toPropertyKey"),[t])}function createPrivateBrandCheckClosure(e){return n.types.arrowFunctionExpression([n.types.identifier("_")],n.types.binaryExpression("in",n.types.cloneNode(e),n.types.identifier("_")))}function usesPrivateField(e){{try{n.types.traverseFast(e,(e=>{if(n.types.isPrivateName(e)){throw null}}));return false}catch(e){return true}}}function convertToComputedKey(e){const{node:t}=e;t.computed=true;if(n.types.isIdentifier(t.key)){t.key=n.types.stringLiteral(t.key.name)}}function hasInstancePrivateAccess(e,t){let r=false;if(t.length>0){const n=(0,a.privateNameVisitorFactory)({PrivateName(e,t){if(t.privateNamesMap.has(e.node.id.name)){r=true;e.stop()}}});const s=new Map;for(const e of t){s.set(e,null)}e.traverse(n,{privateNamesMap:s})}return r}function checkPrivateMethodUpdateError(e,t){const r=(0,a.privateNameVisitorFactory)({PrivateName(e,t){if(!t.privateNamesMap.has(e.node.id.name))return;const r=e.parentPath;const n=r.parentPath;if(n.node.type==="AssignmentExpression"&&n.node.left===r.node||n.node.type==="UpdateExpression"||n.node.type==="RestElement"||n.node.type==="ArrayPattern"||n.node.type==="ObjectProperty"&&n.node.value===r.node&&n.parentPath.type==="ObjectPattern"||n.node.type==="ForOfStatement"&&n.node.left===r.node){throw e.buildCodeFrameError(`Decorated private methods are read-only, but "#${e.node.id.name}" is updated via this expression.`)}}});const n=new Map;for(const e of t){n.set(e,null)}e.traverse(r,{privateNamesMap:n})}function transformClass(e,t,r,i,a,p,f){var h;const m=e.get("body.body");const y=e.node.decorators;let g=false;let b=false;let T=false;const S=createLazyPrivateUidGeneratorForClass(e);const x=[];const E=e.scope.parent;const memoiseExpression=(e,t,r)=>{const s=generateLetUidIdentifier(E,t);r.push(n.types.assignmentExpression("=",s,e));return n.types.cloneNode(s)};let P;let v;const A=(h=e.node.id)==null?void 0:h.name;const w=typeof a==="object"?a:undefined;const usesFunctionContextOrYieldAwait=e=>{{try{n.types.traverseFast(e,(e=>{if(n.types.isThisExpression(e)||n.types.isSuper(e)||n.types.isYieldExpression(e)||n.types.isAwaitExpression(e)||n.types.isIdentifier(e,{name:"arguments"})||A&&n.types.isIdentifier(e,{name:A})||n.types.isMetaProperty(e)&&e.meta.name!=="import"){throw null}}));return false}catch(e){return true}}};const I=[];for(const r of m){if(!isClassDecoratableElementPath(r)){continue}const s=r.node;if(!s.static&&n.types.isPrivateName(s.key)){I.push(s.key.id.name)}if(isDecorated(s)){switch(s.type){case"ClassProperty":p.ClassProperty(r,t);break;case"ClassPrivateProperty":p.ClassPrivateProperty(r,t);break;case"ClassAccessorProperty":p.ClassAccessorProperty(r,t);if(f==="2023-11"){break}default:if(s.static){v!=null?v:v=generateLetUidIdentifier(E,"initStatic")}else{P!=null?P:P=generateLetUidIdentifier(E,"initProto")}break}g=true;T||(T=s.decorators.some(usesFunctionContextOrYieldAwait))}else if(s.type==="ClassAccessorProperty"){p.ClassAccessorProperty(r,t);const{key:i,value:l,static:c,computed:u}=s;const d=S();const h=generateClassProperty(d,l,c);const m=r.get("key");const[y]=r.replaceWith(h);let g,b;if(u&&!m.isConstantExpression()){g=(0,o.memoiseComputedKey)(createToPropertyKeyCall(t,i),E,E.generateUid("computedKey"));b=n.types.cloneNode(g.left)}else{g=n.types.cloneNode(i);b=n.types.cloneNode(i)}assignIdForAnonymousClass(e,a);addProxyAccessorsFor(e.node.id,y,g,b,d,u,c,f)}if("computed"in r.node&&r.node.computed){b||(b=!E.isStatic(r.node.key))}}if(!y&&!g){if(!e.node.id&&typeof a==="string"){e.node.id=n.types.identifier(a)}if(w){e.node.body.body.unshift(createStaticBlockFromExpressions([createSetFunctionNameCall(t,w)]))}return}const C=[];let O;const N=new Set;let k,_;let D=null;function handleDecorators(e){let t=false;let r=false;const s=[];for(const i of e){const{expression:e}=i;let a;if((f==="2023-11"||f==="2023-05")&&n.types.isMemberExpression(e)){if(n.types.isSuper(e.object)){a=n.types.thisExpression()}else if(E.isStatic(e.object)){a=n.types.cloneNode(e.object)}else{D!=null?D:D=generateLetUidIdentifier(E,"obj");a=n.types.assignmentExpression("=",n.types.cloneNode(D),e.object);e.object=n.types.cloneNode(D)}}s.push(a);t||(t=!E.isStatic(e));r||(r=usesFunctionContextOrYieldAwait(i))}return{hasSideEffects:t,usesFnContext:r,decoratorsThis:s}}const M=b||T||f!=="2023-11";let L=false;let j=0;let F=[];let B;let R=[];if(y){k=generateLetUidIdentifier(E,"initClass");L=e.isClassDeclaration();({id:_,path:e}=replaceClassWithVar(e,a));e.node.decorators=null;const t=y.some(usesPrivateField);const{hasSideEffects:r,usesFnContext:s,decoratorsThis:i}=handleDecorators(y);const{haveThis:l,decs:c}=generateDecorationList(y,i,f);j=l?1:0;F=c;if(s||r&&M||t){B=memoiseExpression(n.types.arrayExpression(F),"classDecs",x)}if(!g){for(const t of e.get("body.body")){const{node:e}=t;const r="computed"in e&&e.computed;if(r){if(t.isClassProperty({static:true})){if(!t.get("key").isConstantExpression()){const t=e.key;const r=(0,o.memoiseComputedKey)(t,E,E.generateUid("computedKey"));if(r!=null){e.key=n.types.cloneNode(r.left);R.push(r)}}}else if(R.length>0){prependExpressionsToComputedKey(R,t);R=[]}}}}}else{assignIdForAnonymousClass(e,a);_=n.types.cloneNode(e.node.id)}let U;let K=false;let V=[];let W=[];if(g){if(P){const e=n.types.callExpression(n.types.cloneNode(P),[n.types.thisExpression()]);V.push(e)}for(const i of m){if(!isClassDecoratableElementPath(i)){if(W.length>0&&i.isStaticBlock()){prependExpressionsToStaticBlock(W,i);W=[]}continue}const{node:p}=i;const h=p.decorators;const m=!!(h!=null&&h.length);const g="computed"in p&&p.computed;let b="computedKey";if(p.key.type==="PrivateName"){b=p.key.id.name}else if(!g&&p.key.type==="Identifier"){b=p.key.name}let T;let x;if(m){const{hasSideEffects:e,usesFnContext:t,decoratorsThis:r}=handleDecorators(h);const{decs:s,haveThis:i}=generateDecorationList(h,r,f);x=i;T=s.length===1?s[0]:n.types.arrayExpression(s);if(t||e&&M){T=memoiseExpression(T,b+"Decs",R)}}if(g){if(!i.get("key").isConstantExpression()){const e=p.key;const r=(0,o.memoiseComputedKey)(m?createToPropertyKeyCall(t,e):e,E,E.generateUid("computedKey"));if(r!=null){if(y&&i.isClassProperty({static:true})){p.key=n.types.cloneNode(r.left);R.push(r)}else{p.key=r}}}}const{key:P,static:v}=p;const A=P.type==="PrivateName";const w=getElementKind(i);if(A&&!v){if(m){K=true}if(n.types.isClassPrivateProperty(p)||!U){U=P}}if(i.isClassMethod({kind:"constructor"})){O=i}let I;if(m){let o;let p;if(g){p=getComputedKeyMemoiser(i.get("key"))}else if(P.type==="PrivateName"){p=n.types.stringLiteral(P.id.name)}else if(P.type==="Identifier"){p=n.types.stringLiteral(P.name)}else{p=n.types.cloneNode(P)}if(w===c){const{value:t}=i.node;const r=f==="2023-11"&&v?[]:[n.types.thisExpression()];if(t){r.push(n.types.cloneNode(t))}const s=S();const l=generateLetUidIdentifier(E,`init_${b}`);const c=n.types.callExpression(n.types.cloneNode(l),r);const p=generateClassProperty(s,c,v);const[u]=i.replaceWith(p);if(A){o=extractProxyAccessorsFor(s,f);const e=generateLetUidIdentifier(E,`get_${b}`);const t=generateLetUidIdentifier(E,`set_${b}`);addCallAccessorsFor(f,u,P,e,t,v);I=[l,e,t]}else{assignIdForAnonymousClass(e,a);addProxyAccessorsFor(e.node.id,u,n.types.cloneNode(P),n.types.isAssignmentExpression(P)?n.types.cloneNode(P.left):n.types.cloneNode(P),s,g,v,f);I=[l]}}else if(w===l){const e=generateLetUidIdentifier(E,`init_${b}`);const t=i.get("value");const r=f==="2023-11"&&v?[]:[n.types.thisExpression()];if(t.node)r.push(t.node);t.replaceWith(n.types.callExpression(n.types.cloneNode(e),r));I=[e];if(A){o=extractProxyAccessorsFor(P,f)}}else if(A){const a=generateLetUidIdentifier(E,`call_${b}`);I=[a];const l=new s.default({constantSuper:r,methodPath:i,objectRef:_,superRef:e.node.superClass,file:t.file,refToPreserve:_});l.replace();o=[createFunctionExpressionFromPrivateMethod(i.node)];if(w===u||w===d){movePrivateAccessor(i,n.types.cloneNode(P),n.types.cloneNode(a),v)}else{const t=i.node;e.node.body.body.unshift(n.types.classPrivateProperty(P,n.types.cloneNode(a),[],t.static));N.add(P.id.name);i.remove()}}C.push({kind:w,decoratorsArray:T,decoratorsHaveThis:x,name:p,isStatic:v,privateMethods:o,locals:I});if(i.node){i.node.decorators=null}}if(g&&R.length>0){if(y&&i.isClassProperty({static:true})){}else{prependExpressionsToComputedKey(R,w===c?i.getNextSibling():i);R=[]}}if(V.length>0&&!v&&(w===l||w===c)){prependExpressionsToFieldInitializer(V,i);V=[]}if(W.length>0&&v&&(w===l||w===c)){prependExpressionsToFieldInitializer(W,i);W=[]}if(m&&f==="2023-11"){if(w===l||w===c){const e=generateLetUidIdentifier(E,`init_extra_${b}`);I.push(e);const t=n.types.callExpression(n.types.cloneNode(e),v?[]:[n.types.thisExpression()]);if(!v){V.push(t)}else{W.push(t)}}}}}if(R.length>0){const t=e.get("body.body");let r;for(let e=t.length-1;e>=0;e--){const s=t[e];const i=s.node;if(i.computed){if(y&&n.types.isClassProperty(i,{static:true})){continue}r=s;break}}if(r!=null){appendExpressionsToComputedKey(R,r);R=[]}else{}}if(V.length>0){const t=!!e.node.superClass;if(O){if(t){insertExpressionsAfterSuperCallAndOptimize(V,O,P)}else{prependExpressionsToConstructor(V,O)}}else{e.node.body.body.unshift(createConstructorFromExpressions(V,t))}V=[]}if(W.length>0){e.node.body.body.push(createStaticBlockFromExpressions(W));W=[]}const $=toSortedDecoratorInfo(C);const q=generateDecorationExprs(f==="2023-11"?C:$,f);const H=extractElementLocalAssignments($);if(P){H.push(P)}if(v){H.push(v)}const G=[];let J=false;const z=k&&n.types.callExpression(n.types.cloneNode(k),[]);let X=e;const Y=e.node;const Q=[];if(y){G.push(_,k);const a=[];e.get("body.body").forEach((o=>{if(o.isStaticBlock()){if(hasInstancePrivateAccess(o,I)){const e=memoiseExpression(staticBlockToFunctionClosure(o.node),"staticBlock",Q);W.push(n.types.callExpression(n.types.memberExpression(e,n.types.identifier("call")),[n.types.thisExpression()]))}else{W.push(staticBlockToIIFE(o.node))}o.remove();return}if((o.isClassProperty()||o.isClassPrivateProperty())&&o.node.static){const e=o.get("value");if(hasInstancePrivateAccess(e,I)){const t=memoiseExpression(fieldInitializerToClosure(e.node),"fieldValue",Q);e.replaceWith(n.types.callExpression(n.types.memberExpression(t,n.types.identifier("call")),[n.types.thisExpression()]))}if(W.length>0){prependExpressionsToFieldInitializer(W,o);W=[]}o.node.static=false;a.push(o.node);o.remove()}else if(o.isClassPrivateMethod({static:true})){if(hasInstancePrivateAccess(o,I)){const a=new s.default({constantSuper:r,methodPath:o,objectRef:_,superRef:e.node.superClass,file:t.file,refToPreserve:_});a.replace();const l=memoiseExpression(createFunctionExpressionFromPrivateMethod(o.node),o.get("key.id").node.name,Q);if(i){o.node.params=[n.types.restElement(n.types.identifier("arg"))];o.node.body=n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.memberExpression(l,n.types.identifier("apply")),[n.types.thisExpression(),n.types.identifier("arg")]))])}else{o.node.params=o.node.params.map(((e,t)=>{if(n.types.isRestElement(e)){return n.types.restElement(n.types.identifier("arg"))}else{return n.types.identifier("_"+t)}}));o.node.body=n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.memberExpression(l,n.types.identifier("apply")),[n.types.thisExpression(),n.types.identifier("arguments")]))])}}o.node.static=false;a.push(o.node);o.remove()}}));if(a.length>0||W.length>0){const r=n.template.expression.ast`
|
||
class extends ${t.addHelper("identity")} {}
|
||
`;r.body.body=[n.types.classProperty(n.types.toExpression(Y),undefined,undefined,undefined,true,true),...a];const s=[];const i=n.types.newExpression(r,[]);if(W.length>0){s.push(...W)}if(z){J=true;s.push(z)}if(s.length>0){s.unshift(n.types.callExpression(n.types.super(),[n.types.cloneNode(_)]));r.body.body.push(createConstructorFromExpressions(s,false))}else{i.arguments.push(n.types.cloneNode(_))}const[o]=e.replaceWith(i);X=o.get("callee").get("body").get("body.0.key")}}if(!J&&z){e.node.body.body.push(n.types.staticBlock([n.types.expressionStatement(z)]))}let{superClass:Z}=Y;if(Z&&(f==="2023-11"||f==="2023-05")){const t=e.scope.maybeGenerateMemoised(Z);if(t){Y.superClass=n.types.assignmentExpression("=",t,Z);Z=t}}const ee=n.types.staticBlock([]);Y.body.body.unshift(ee);const te=ee.body;if(R.length>0){const e=X.get("body.body");let t;for(const r of e){if((r.isClassProperty()||r.isClassMethod())&&r.node.kind!=="constructor"){t=r;break}}if(t!=null){convertToComputedKey(t);prependExpressionsToComputedKey(R,t)}else{Y.body.body.unshift(n.types.classProperty(n.types.sequenceExpression([...R,n.types.stringLiteral("_")]),undefined,undefined,undefined,true,true));te.push(n.types.expressionStatement(n.types.unaryExpression("delete",n.types.memberExpression(n.types.thisExpression(),n.types.identifier("_")))))}R=[]}te.push(n.types.expressionStatement(createLocalsAssignment(H,G,q,B!=null?B:n.types.arrayExpression(F),n.types.numericLiteral(j),K?U:null,w,n.types.cloneNode(Z),t,f)));if(v){te.push(n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(v),[n.types.thisExpression()])))}if(Q.length>0){te.push(...Q.map((e=>n.types.expressionStatement(e))))}e.insertBefore(x.map((e=>n.types.expressionStatement(e))));if(L){const t=E.getBinding(_.name);if(!t.constantViolations.length){e.insertBefore(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(_))]))}else{const t=E.generateUidIdentifier("t"+_.name);const r=_;e.replaceWithMultiple([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(r)),n.types.variableDeclarator(t)]),n.types.blockStatement([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(_))]),e.node,n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(t),n.types.cloneNode(_)))]),n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(r),n.types.cloneNode(t)))])}}if(N.size>0){checkPrivateMethodUpdateError(e,N)}e.scope.crawl();return e}function createLocalsAssignment(e,t,r,s,i,a,o,l,c,p){let u,d;const f=[o?createSetFunctionNameCall(c,o):n.types.thisExpression(),s,r];{if(p!=="2023-11"){f.splice(1,2,r,s)}if(p==="2021-12"||p==="2022-03"&&!c.availableHelper("applyDecs2203R")){u=n.types.arrayPattern([...e,...t]);d=n.types.callExpression(c.addHelper(p==="2021-12"?"applyDecs":"applyDecs2203"),f);return n.types.assignmentExpression("=",u,d)}else if(p==="2022-03"){d=n.types.callExpression(c.addHelper("applyDecs2203R"),f)}else if(p==="2023-01"){if(a){f.push(createPrivateBrandCheckClosure(a))}d=n.types.callExpression(c.addHelper("applyDecs2301"),f)}else if(p==="2023-05"){if(a||l||i.value!==0){f.push(i)}if(a){f.push(createPrivateBrandCheckClosure(a))}else if(l){f.push(n.types.unaryExpression("void",n.types.numericLiteral(0)))}if(l)f.push(l);d=n.types.callExpression(c.addHelper("applyDecs2305"),f)}}if(p==="2023-11"){if(a||l||i.value!==0){f.push(i)}if(a){f.push(createPrivateBrandCheckClosure(a))}else if(l){f.push(n.types.unaryExpression("void",n.types.numericLiteral(0)))}if(l)f.push(l);d=n.types.callExpression(c.addHelper("applyDecs2311"),f)}if(e.length>0){if(t.length>0){u=n.types.objectPattern([n.types.objectProperty(n.types.identifier("e"),n.types.arrayPattern(e)),n.types.objectProperty(n.types.identifier("c"),n.types.arrayPattern(t))])}else{u=n.types.arrayPattern(e);d=n.types.memberExpression(d,n.types.identifier("e"),false,false)}}else{u=n.types.arrayPattern(t);d=n.types.memberExpression(d,n.types.identifier("c"),false,false)}return n.types.assignmentExpression("=",u,d)}function isProtoKey(e){return e.type==="Identifier"?e.name==="__proto__":e.value==="__proto__"}function isDecorated(e){return e.decorators&&e.decorators.length>0}function shouldTransformElement(e){switch(e.type){case"ClassAccessorProperty":return true;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return isDecorated(e);default:return false}}function shouldTransformClass(e){return isDecorated(e)||e.body.body.some(shouldTransformElement)}function NamedEvaluationVisitoryFactory(e,t){function handleComputedProperty(e,t,r){switch(t.type){case"StringLiteral":return n.types.stringLiteral(t.value);case"NumericLiteral":case"BigIntLiteral":{const r=t.value+"";e.get("key").replaceWith(n.types.stringLiteral(r));return n.types.stringLiteral(r)}default:{const s=e.scope.maybeGenerateMemoised(t);e.get("key").replaceWith(n.types.assignmentExpression("=",s,createToPropertyKeyCall(r,t)));return n.types.cloneNode(s)}}}return{VariableDeclarator(r,n){const s=r.node.id;if(s.type==="Identifier"){const a=(0,i.skipTransparentExprWrappers)(r.get("init"));if(e(a)){const e=s.name;t(a,n,e)}}},AssignmentExpression(r,n){const s=r.node.left;if(s.type==="Identifier"){const a=(0,i.skipTransparentExprWrappers)(r.get("right"));if(e(a)){switch(r.node.operator){case"=":case"&&=":case"||=":case"??=":t(a,n,s.name)}}}},AssignmentPattern(r,n){const s=r.node.left;if(s.type==="Identifier"){const a=(0,i.skipTransparentExprWrappers)(r.get("right"));if(e(a)){const e=s.name;t(a,n,e)}}},ObjectExpression(r,s){for(const a of r.get("properties")){if(!a.isObjectProperty())continue;const{node:r}=a;const o=r.key;const l=(0,i.skipTransparentExprWrappers)(a.get("value"));if(e(l)){if(!r.computed){if(!isProtoKey(o)){if(o.type==="Identifier"){t(l,s,o.name)}else{const e=n.types.stringLiteral(o.value+"");t(l,s,e)}}}else{const e=handleComputedProperty(a,o,s);t(l,s,e)}}}},ClassPrivateProperty(r,s){const{node:a}=r;const o=(0,i.skipTransparentExprWrappers)(r.get("value"));if(e(o)){const e=n.types.stringLiteral("#"+a.key.id.name);t(o,s,e)}},ClassAccessorProperty(r,s){const{node:a}=r;const o=a.key;const l=(0,i.skipTransparentExprWrappers)(r.get("value"));if(e(l)){if(!a.computed){if(o.type==="Identifier"){t(l,s,o.name)}else if(o.type==="PrivateName"){const e=n.types.stringLiteral("#"+o.id.name);t(l,s,e)}else{const e=n.types.stringLiteral(o.value+"");t(l,s,e)}}else{const e=handleComputedProperty(r,o,s);t(l,s,e)}}},ClassProperty(r,s){const{node:a}=r;const o=a.key;const l=(0,i.skipTransparentExprWrappers)(r.get("value"));if(e(l)){if(!a.computed){if(o.type==="Identifier"){t(l,s,o.name)}else{const e=n.types.stringLiteral(o.value+"");t(l,s,e)}}else{const e=handleComputedProperty(r,o,s);t(l,s,e)}}}}}function isDecoratedAnonymousClassExpression(e){return e.isClassExpression({id:null})&&shouldTransformClass(e.node)}function generateLetUidIdentifier(e,t){const r=e.generateUidIdentifier(t);e.push({id:r,kind:"let"});return n.types.cloneNode(r)}function _default({assertVersion:e,assumption:t},{loose:s},i,a){var o,l;{if(i==="2023-11"||i==="2023-05"||i==="2023-01"){e("^7.21.0")}else if(i==="2021-12"){e("^7.16.0")}else{e("^7.19.0")}}const c=new WeakSet;const p=(o=t("constantSuper"))!=null?o:s;const u=(l=t("ignoreFunctionLength"))!=null?l:s;const d=NamedEvaluationVisitoryFactory(isDecoratedAnonymousClassExpression,visitClass);function visitClass(e,t,r){var n;if(c.has(e))return;const{node:s}=e;r!=null?r:r=(n=s.id)==null?void 0:n.name;const a=transformClass(e,t,p,u,r,d,i);if(a){c.add(a);return}c.add(e)}return{name:"proposal-decorators",inherits:a,visitor:Object.assign({ExportDefaultDeclaration(e,t){const{declaration:s}=e.node;if((s==null?void 0:s.type)==="ClassDeclaration"&&isDecorated(s)){const a=!s.id;{var i;(i=e.splitExportDeclaration)!=null?i:e.splitExportDeclaration=r(8026).NodePath.prototype.splitExportDeclaration}const o=e.splitExportDeclaration();if(a){visitClass(o,t,n.types.stringLiteral("default"))}}},ExportNamedDeclaration(e){const{declaration:t}=e.node;if((t==null?void 0:t.type)==="ClassDeclaration"&&isDecorated(t)){{var n;(n=e.splitExportDeclaration)!=null?n:e.splitExportDeclaration=r(8026).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}},Class(e,t){visitClass(e,t,undefined)}},d)}}},1409:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FEATURES=void 0;t.enableFeature=enableFeature;t.isLoose=isLoose;t.shouldTransform=shouldTransform;var n=r(7009);const s=t.FEATURES=Object.freeze({fields:1<<1,privateMethods:1<<2,decorators:1<<3,privateIn:1<<4,staticBlocks:1<<5});const i=new Map([[s.fields,"@babel/plugin-transform-class-properties"],[s.privateMethods,"@babel/plugin-transform-private-methods"],[s.privateIn,"@babel/plugin-transform-private-property-in-object"]]);const a="@babel/plugin-class-features/featuresKey";const o="@babel/plugin-class-features/looseKey";{var l="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing"}{var canIgnoreLoose=function(e,t){return!!(e.get(l)&t)}}function enableFeature(e,t,r){if(!hasFeature(e,t)||canIgnoreLoose(e,t)){e.set(a,e.get(a)|t);if(r==="#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"){setLoose(e,t,true);e.set(l,e.get(l)|t)}else if(r==="#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"){setLoose(e,t,false);e.set(l,e.get(l)|t)}else{setLoose(e,t,r)}}let n;for(const[t,r]of i){if(!hasFeature(e,t))continue;{if(canIgnoreLoose(e,t))continue}const i=isLoose(e,t);if(n===!i){throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, "+"@babel/plugin-transform-private-methods and "+"@babel/plugin-transform-private-property-in-object (when they are enabled)."+"\n\n"+getBabelShowConfigForHint(e))}else{n=i;{var s=r}}}if(n!==undefined){for(const[t,r]of i){if(hasFeature(e,t)&&isLoose(e,t)!==n){setLoose(e,t,n);console.warn(`Though the "loose" option was set to "${!n}" in your @babel/preset-env `+`config, it will not be used for ${r} since the "loose" mode option was set to `+`"${n}" for ${s}.\nThe "loose" option must be the `+`same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods `+`and @babel/plugin-transform-private-property-in-object (when they are enabled): you can `+`silence this warning by explicitly adding\n`+`\t["${r}", { "loose": ${n} }]\n`+`to the "plugins" section of your Babel config.`+"\n\n"+getBabelShowConfigForHint(e))}}}}function getBabelShowConfigForHint(e){let{filename:t}=e.opts;if(!t||t==="unknown"){t="[name of the input file]"}return`If you already set the same 'loose' mode for these plugins in your config, it's possible that they are enabled multiple times with different options.\nYou can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:\n\tnpx cross-env BABEL_SHOW_CONFIG_FOR=${t} <your build command>\nSee https://babeljs.io/docs/configuration#print-effective-configs for more info.`}function hasFeature(e,t){return!!(e.get(a)&t)}function isLoose(e,t){return!!(e.get(o)&t)}function setLoose(e,t,r){if(r)e.set(o,e.get(o)|t);else e.set(o,e.get(o)&~t);{e.set(l,e.get(l)&~t)}}function shouldTransform(e,t){let r=null;let i=null;let a=null;let o=null;let l=null;if((0,n.hasOwnDecorators)(e.node)){r=e.get("decorators.0")}for(const t of e.get("body.body")){if(!r&&(0,n.hasOwnDecorators)(t.node)){r=t.get("decorators.0")}if(!i&&t.isClassProperty()){i=t}if(!a&&t.isClassPrivateProperty()){a=t}if(!o&&t.isClassPrivateMethod!=null&&t.isClassPrivateMethod()){o=t}if(!l&&t.isStaticBlock!=null&&t.isStaticBlock()){l=t}}if(r&&a){throw a.buildCodeFrameError("Private fields in decorated classes are not supported yet.")}if(r&&o){throw o.buildCodeFrameError("Private methods in decorated classes are not supported yet.")}if(r&&!hasFeature(t,s.decorators)){throw e.buildCodeFrameError("Decorators are not enabled."+"\nIf you are using "+'["@babel/plugin-proposal-decorators", { "version": "legacy" }], '+'make sure it comes *before* "@babel/plugin-transform-class-properties" '+"and enable loose mode, like so:\n"+'\t["@babel/plugin-proposal-decorators", { "version": "legacy" }]\n'+'\t["@babel/plugin-transform-class-properties", { "loose": true }]')}if(o&&!hasFeature(t,s.privateMethods)){throw o.buildCodeFrameError("Class private methods are not enabled. "+"Please add `@babel/plugin-transform-private-methods` to your configuration.")}if((i||a)&&!hasFeature(t,s.fields)&&!hasFeature(t,s.privateMethods)){throw e.buildCodeFrameError("Class fields are not enabled. "+"Please add `@babel/plugin-transform-class-properties` to your configuration.")}if(l&&!hasFeature(t,s.staticBlocks)){throw e.buildCodeFrameError("Static class blocks are not enabled. "+"Please add `@babel/plugin-transform-class-static-block` to your configuration.")}if(r||o||l){return true}if((i||a)&&hasFeature(t,s.fields)){return true}return false}},4697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildCheckInRHS=buildCheckInRHS;t.buildFieldsInitNodes=buildFieldsInitNodes;t.buildPrivateNamesMap=buildPrivateNamesMap;t.buildPrivateNamesNodes=buildPrivateNamesNodes;t.privateNameVisitorFactory=privateNameVisitorFactory;t.transformPrivateNamesUsage=transformPrivateNamesUsage;var n=r(2358);var s=r(8026);var i=r(6721);var a=r(3034);var o=r(582);var l=r(344);var c=r(9102);var p=r(1238);{var newHelpers=e=>{return e.availableHelper("classPrivateFieldGet2")}}function buildPrivateNamesMap(e,t,r,s){const i=new Map;let a;for(const o of r){if(o.isPrivate()){const{name:r}=o.node.key.id;let l=i.get(r);if(!l){const n=!o.isProperty();const c=o.node.static;let p=false;let u;if(!t&&newHelpers(s)&&n&&!c){p=!!a;a!=null?a:a=o.scope.generateUidIdentifier(`${e}_brand`);u=a}else{u=o.scope.generateUidIdentifier(r)}l={id:u,static:c,method:n,initAdded:p};i.set(r,l)}if(o.isClassPrivateMethod()){if(o.node.kind==="get"){const{body:e}=o.node.body;let t;if(e.length===1&&n.types.isReturnStatement(t=e[0])&&n.types.isCallExpression(t=t.argument)&&t.arguments.length===1&&n.types.isThisExpression(t.arguments[0])&&n.types.isIdentifier(t=t.callee)){l.getId=n.types.cloneNode(t);l.getterDeclared=true}else{l.getId=o.scope.generateUidIdentifier(`get_${r}`)}}else if(o.node.kind==="set"){const{params:e}=o.node;const{body:t}=o.node.body;let s;if(t.length===1&&n.types.isExpressionStatement(s=t[0])&&n.types.isCallExpression(s=s.expression)&&s.arguments.length===2&&n.types.isThisExpression(s.arguments[0])&&n.types.isIdentifier(s.arguments[1],{name:e[0].name})&&n.types.isIdentifier(s=s.callee)){l.setId=n.types.cloneNode(s);l.setterDeclared=true}else{l.setId=o.scope.generateUidIdentifier(`set_${r}`)}}else if(o.node.kind==="method"){l.methodId=o.scope.generateUidIdentifier(r)}}i.set(r,l)}}return i}function buildPrivateNamesNodes(e,t,r,s){const i=[];const a=new Set;for(const[o,c]of e){const{static:e,method:p,getId:u,setId:d}=c;const f=u||d;const h=n.types.cloneNode(c.id);let m;if(t){m=n.types.callExpression(s.addHelper("classPrivateFieldLooseKey"),[n.types.stringLiteral(o)])}else if(r){m=n.types.callExpression(n.types.identifier("Symbol"),[n.types.stringLiteral(o)])}else if(!e){if(a.has(h.name))continue;a.add(h.name);m=n.types.newExpression(n.types.identifier(p&&(!f||newHelpers(s))?"WeakSet":"WeakMap"),[])}if(m){if(!r){(0,l.default)(m)}i.push(n.template.statement.ast`var ${h} = ${m}`)}}return i}function privateNameVisitorFactory(e){const t=s.visitors.environmentVisitor(Object.assign({},e));const r=Object.assign({},e,{Class(e){const{privateNamesMap:n}=this;const s=e.get("body.body");const i=new Map(n);const a=[];for(const e of s){if(!e.isPrivate())continue;const{name:t}=e.node.key.id;i.delete(t);a.push(t)}if(!a.length){return}e.get("body").traverse(t,Object.assign({},this,{redeclared:a}));e.traverse(r,Object.assign({},this,{privateNamesMap:i}));e.skipKey("body")}});return r}const u=privateNameVisitorFactory({PrivateName(e,{noDocumentAll:t}){const{privateNamesMap:r,redeclared:n}=this;const{node:s,parentPath:i}=e;if(!i.isMemberExpression({property:s})&&!i.isOptionalMemberExpression({property:s})){return}const{name:a}=s.id;if(!r.has(a))return;if(n!=null&&n.includes(a))return;this.handle(i,t)}});function unshadow(e,t,r){while((n=t)!=null&&n.hasBinding(e)&&!t.bindingIdentifierEquals(e,r)){var n;t.rename(e);t=t.parent}}function buildCheckInRHS(e,t,r){if(r||!(t.availableHelper!=null&&t.availableHelper("checkInRHS")))return e;return n.types.callExpression(t.addHelper("checkInRHS"),[e])}const d=privateNameVisitorFactory({BinaryExpression(e,{file:t}){const{operator:r,left:s,right:i}=e.node;if(r!=="in")return;if(!n.types.isPrivateName(s))return;const{privateFieldsAsProperties:a,privateNamesMap:o,redeclared:l}=this;const{name:c}=s.id;if(!o.has(c))return;if(l!=null&&l.includes(c))return;unshadow(this.classRef.name,e.scope,this.innerBinding);if(a){const{id:r}=o.get(c);e.replaceWith(n.template.expression.ast`
|
||
Object.prototype.hasOwnProperty.call(${buildCheckInRHS(i,t)}, ${n.types.cloneNode(r)})
|
||
`);return}const{id:p,static:u}=o.get(c);if(u){e.replaceWith(n.template.expression.ast`${buildCheckInRHS(i,t)} === ${n.types.cloneNode(this.classRef)}`);return}e.replaceWith(n.template.expression.ast`${n.types.cloneNode(p)}.has(${buildCheckInRHS(i,t)})`)}});function readOnlyError(e,t){return n.types.callExpression(e.addHelper("readOnlyError"),[n.types.stringLiteral(`#${t}`)])}function writeOnlyError(e,t){if(!e.availableHelper("writeOnlyError")){console.warn(`@babel/helpers is outdated, update it to silence this warning.`);return n.types.buildUndefinedNode()}return n.types.callExpression(e.addHelper("writeOnlyError"),[n.types.stringLiteral(`#${t}`)])}function buildStaticPrivateFieldAccess(e,t){if(t)return e;return n.types.memberExpression(e,n.types.identifier("_"))}function autoInherits(e){return function(t){return n.types.inherits(e.apply(this,arguments),t.node)}}const f={memoise(e,t){const{scope:r}=e;const{object:n}=e.node;const s=r.maybeGenerateMemoised(n);if(!s){return}this.memoiser.set(n,s,t)},receiver(e){const{object:t}=e.node;if(this.memoiser.has(t)){return n.types.cloneNode(this.memoiser.get(t))}return n.types.cloneNode(t)},get:autoInherits((function(e){const{classRef:t,privateNamesMap:r,file:s,innerBinding:i,noUninitializedPrivateFieldAccess:a}=this;const o=e.node.property;const{name:l}=o.id;const{id:c,static:p,method:u,methodId:d,getId:f,setId:h}=r.get(l);const m=f||h;const cloneId=e=>n.types.inherits(n.types.cloneNode(e),o);if(p){unshadow(t.name,e.scope,i);if(!newHelpers(s)){const r=u&&!m?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return n.types.callExpression(s.addHelper(r),[this.receiver(e),n.types.cloneNode(t),cloneId(c)])}const r=this.receiver(e);const o=n.types.isIdentifier(r)&&r.name===t.name;if(!u){if(o){return buildStaticPrivateFieldAccess(cloneId(c),a)}return buildStaticPrivateFieldAccess(n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(c)]),a)}if(f){if(o){return n.types.callExpression(cloneId(f),[r])}return n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(t),r,cloneId(f)])}if(h){const e=n.types.buildUndefinedNode();if(o)return e;return n.types.sequenceExpression([n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r]),e])}if(o)return cloneId(c);return n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(c)])}if(u){if(m){if(!f){return n.types.sequenceExpression([this.receiver(e),writeOnlyError(s,l)])}if(!newHelpers(s)){return n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(c)])}return n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(c),this.receiver(e),cloneId(f)])}if(!newHelpers(s)){return n.types.callExpression(s.addHelper("classPrivateMethodGet"),[this.receiver(e),n.types.cloneNode(c),cloneId(d)])}return n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(c),this.receiver(e),cloneId(d)])}if(newHelpers(s)){return n.types.callExpression(s.addHelper("classPrivateFieldGet2"),[cloneId(c),this.receiver(e)])}return n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(c)])})),boundGet(e){this.memoise(e,1);return n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[this.receiver(e)])},set:autoInherits((function(e,t){const{classRef:r,privateNamesMap:s,file:i,noUninitializedPrivateFieldAccess:a}=this;const o=e.node.property;const{name:l}=o.id;const{id:c,static:p,method:u,setId:d,getId:f}=s.get(l);const h=f||d;const cloneId=e=>n.types.inherits(n.types.cloneNode(e),o);if(p){if(!newHelpers(i)){const s=u&&!h?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return n.types.callExpression(i.addHelper(s),[this.receiver(e),n.types.cloneNode(r),cloneId(c),t])}const s=this.receiver(e);const o=n.types.isIdentifier(s)&&s.name===r.name;if(u&&!d){const e=readOnlyError(i,l);if(o)return n.types.sequenceExpression([t,e]);return n.types.sequenceExpression([t,n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s]),readOnlyError(i,l)])}if(d){if(o){return n.types.callExpression(n.types.cloneNode(d),[s,t])}return n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(r),cloneId(d),s,t])}return n.types.assignmentExpression("=",buildStaticPrivateFieldAccess(cloneId(c),a),o?t:n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s,t]))}if(u){if(d){if(!newHelpers(i)){return n.types.callExpression(i.addHelper("classPrivateFieldSet"),[this.receiver(e),cloneId(c),t])}return n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(c),cloneId(d),this.receiver(e),t])}return n.types.sequenceExpression([this.receiver(e),t,readOnlyError(i,l)])}if(newHelpers(i)){return n.types.callExpression(i.addHelper("classPrivateFieldSet2"),[cloneId(c),this.receiver(e),t])}return n.types.callExpression(i.addHelper("classPrivateFieldSet"),[this.receiver(e),cloneId(c),t])})),destructureSet(e){const{classRef:t,privateNamesMap:r,file:s,noUninitializedPrivateFieldAccess:i}=this;const a=e.node.property;const{name:o}=a.id;const{id:l,static:c,method:p,setId:u}=r.get(o);const cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(!newHelpers(s)){if(c){try{var d=s.addHelper("classStaticPrivateFieldDestructureSet")}catch(e){throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \n"+"please update @babel/helpers to the latest version.")}return n.types.memberExpression(n.types.callExpression(d,[this.receiver(e),n.types.cloneNode(t),cloneId(l)]),n.types.identifier("value"))}return n.types.memberExpression(n.types.callExpression(s.addHelper("classPrivateFieldDestructureSet"),[this.receiver(e),cloneId(l)]),n.types.identifier("value"))}if(p&&!u){return n.types.memberExpression(n.types.sequenceExpression([e.node.object,readOnlyError(s,o)]),n.types.identifier("_"))}if(c&&!p){const t=this.get(e);if(!i||!n.types.isCallExpression(t)){return t}const r=t.arguments.pop();t.arguments.push(n.template.expression.ast`(_) => ${r} = _`);return n.types.memberExpression(n.types.callExpression(s.addHelper("toSetter"),[t]),n.types.identifier("_"))}const f=this.set(e,n.types.identifier("_"));if(!n.types.isCallExpression(f)||!n.types.isIdentifier(f.arguments[f.arguments.length-1],{name:"_"})){throw e.buildCodeFrameError("Internal Babel error while compiling this code. This is a Babel bug. "+"Please report it at https://github.com/babel/babel/issues.")}let h;if(n.types.isMemberExpression(f.callee,{computed:false})&&n.types.isIdentifier(f.callee.property)&&f.callee.property.name==="call"){h=[f.callee.object,n.types.arrayExpression(f.arguments.slice(1,-1)),f.arguments[0]]}else{h=[f.callee,n.types.arrayExpression(f.arguments.slice(0,-1))]}return n.types.memberExpression(n.types.callExpression(s.addHelper("toSetter"),h),n.types.identifier("_"))},call(e,t){this.memoise(e,1);return(0,o.default)(this.get(e),this.receiver(e),t,false)},optionalCall(e,t){this.memoise(e,1);return(0,o.default)(this.get(e),this.receiver(e),t,true)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}};const h={get(e){const{privateNamesMap:t,file:r}=this;const{object:s}=e.node;const{name:i}=e.node.property.id;return n.template.expression`BASE(REF, PROP)[PROP]`({BASE:r.addHelper("classPrivateFieldLooseBase"),REF:n.types.cloneNode(s),PROP:n.types.cloneNode(t.get(i).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(e){return n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[n.types.cloneNode(e.node.object)])},simpleSet(e){return this.get(e)},destructureSet(e){return this.get(e)},call(e,t){return n.types.callExpression(this.get(e),t)},optionalCall(e,t){return n.types.optionalCallExpression(this.get(e),t,true)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}};function transformPrivateNamesUsage(e,t,r,{privateFieldsAsProperties:n,noUninitializedPrivateFieldAccess:s,noDocumentAll:i,innerBinding:o},l){if(!r.size)return;const c=t.get("body");const p=n?h:f;(0,a.default)(c,u,Object.assign({privateNamesMap:r,classRef:e,file:l},p,{noDocumentAll:i,noUninitializedPrivateFieldAccess:s,innerBinding:o}));c.traverse(d,{privateNamesMap:r,classRef:e,file:l,privateFieldsAsProperties:n,innerBinding:o})}function buildPrivateFieldInitLoose(e,t,r){const{id:s}=r.get(t.node.key.id.name);const i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`
|
||
Object.defineProperty(${e}, ${n.types.cloneNode(s)}, {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
writable: true,
|
||
value: ${i}
|
||
});
|
||
`,t)}function buildPrivateInstanceFieldInitSpec(e,t,r,s){const{id:i}=r.get(t.node.key.id.name);const a=t.node.value||t.scope.buildUndefinedNode();{if(!s.availableHelper("classPrivateFieldInitSpec")){return inheritPropComments(n.template.statement.ast`${n.types.cloneNode(i)}.set(${e}, {
|
||
// configurable is always false for private elements
|
||
// enumerable is always false for private elements
|
||
writable: true,
|
||
value: ${a},
|
||
})`,t)}}const o=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.types.expressionStatement(n.types.callExpression(o,[n.types.thisExpression(),inheritLoc(n.types.cloneNode(i),t.node.key),newHelpers(s)?a:n.template.expression.ast`{ writable: true, value: ${a} }`])),t),t.node)}function buildPrivateStaticFieldInitSpec(e,t,r){const s=t.get(e.node.key.id.name);const i=r?e.node.value:n.template.expression.ast`{
|
||
_: ${e.node.value||n.types.buildUndefinedNode()}
|
||
}`;return inheritPropComments(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.cloneNode(s.id),i)]),e)}{var buildPrivateStaticFieldInitSpecOld=function(e,t){const r=t.get(e.node.key.id.name);const{id:s,getId:i,setId:a,initAdded:o}=r;const l=i||a;if(!e.isProperty()&&(o||!l))return;if(l){t.set(e.node.key.id.name,Object.assign({},r,{initAdded:true}));return inheritPropComments(n.template.statement.ast`
|
||
var ${n.types.cloneNode(s)} = {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
// writable is false by default
|
||
get: ${i?i.name:e.scope.buildUndefinedNode()},
|
||
set: ${a?a.name:e.scope.buildUndefinedNode()}
|
||
}
|
||
`,e)}const c=e.node.value||e.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`
|
||
var ${n.types.cloneNode(s)} = {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
writable: true,
|
||
value: ${c}
|
||
};
|
||
`,e)}}function buildPrivateMethodInitLoose(e,t,r){const s=r.get(t.node.key.id.name);const{methodId:i,id:a,getId:o,setId:l,initAdded:c}=s;if(c)return;if(i){return inheritPropComments(n.template.statement.ast`
|
||
Object.defineProperty(${e}, ${a}, {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
// writable is false by default
|
||
value: ${i.name}
|
||
});
|
||
`,t)}const p=o||l;if(p){r.set(t.node.key.id.name,Object.assign({},s,{initAdded:true}));return inheritPropComments(n.template.statement.ast`
|
||
Object.defineProperty(${e}, ${a}, {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
// writable is false by default
|
||
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
});
|
||
`,t)}}function buildPrivateInstanceMethodInitSpec(e,t,r,n){const s=r.get(t.node.key.id.name);if(s.initAdded)return;if(!newHelpers(n)){const i=s.getId||s.setId;if(i){return buildPrivateAccessorInitialization(e,t,r,n)}}return buildPrivateInstanceMethodInitialization(e,t,r,n)}function buildPrivateAccessorInitialization(e,t,r,s){const i=r.get(t.node.key.id.name);const{id:a,getId:o,setId:l}=i;r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));{if(!s.availableHelper("classPrivateFieldInitSpec")){return inheritPropComments(n.template.statement.ast`
|
||
${a}.set(${e}, {
|
||
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
});
|
||
`,t)}}const c=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.template.statement.ast`${c}(
|
||
${n.types.thisExpression()},
|
||
${n.types.cloneNode(a)},
|
||
{
|
||
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
},
|
||
)`,t),t.node)}function buildPrivateInstanceMethodInitialization(e,t,r,s){const i=r.get(t.node.key.id.name);const{id:a}=i;{if(!s.availableHelper("classPrivateMethodInitSpec")){return inheritPropComments(n.template.statement.ast`${a}.add(${e})`,t)}}const o=s.addHelper("classPrivateMethodInitSpec");return inheritPropComments(n.template.statement.ast`${o}(
|
||
${n.types.thisExpression()},
|
||
${n.types.cloneNode(a)}
|
||
)`,t)}function buildPublicFieldInitLoose(e,t){const{key:r,computed:s}=t.node;const i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(e,r,s||n.types.isLiteral(r)),i)),t)}function buildPublicFieldInitSpec(e,t,r){const{key:s,computed:i}=t.node;const a=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.callExpression(r.addHelper("defineProperty"),[e,i||n.types.isLiteral(s)?s:n.types.stringLiteral(s.name),a])),t)}function buildPrivateStaticMethodInitLoose(e,t,r,s){const i=s.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,initAdded:p}=i;if(p)return;const u=l||c;if(u){s.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return inheritPropComments(n.template.statement.ast`
|
||
Object.defineProperty(${e}, ${a}, {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
// writable is false by default
|
||
get: ${l?l.name:t.scope.buildUndefinedNode()},
|
||
set: ${c?c.name:t.scope.buildUndefinedNode()}
|
||
})
|
||
`,t)}return inheritPropComments(n.template.statement.ast`
|
||
Object.defineProperty(${e}, ${a}, {
|
||
// configurable is false by default
|
||
// enumerable is false by default
|
||
// writable is false by default
|
||
value: ${o.name}
|
||
});
|
||
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=false){const i=r.get(t.node.key.id.name);const{id:a,methodId:o,getId:l,setId:c,getterDeclared:p,setterDeclared:u,static:d}=i;const{params:f,body:h,generator:y,async:g}=t.node;const b=l&&f.length===0;const T=c&&f.length>0;if(b&&p||T&&u){r.set(t.node.key.id.name,Object.assign({},i,{initAdded:true}));return null}if(newHelpers(e)&&(b||T)&&!s){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const s={thisRef:r,argumentsPath:[]};t.traverse(m,s);if(s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath){e.replaceWith(n.types.cloneNode(t))}}f.unshift(n.types.cloneNode(r))}let S=o;if(b){r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:true,initAdded:true}));S=l}else if(T){r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:true,initAdded:true}));S=c}else if(d&&!s){S=a}return inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(S),f,h,y,g),t)}const m=s.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(n.types.isThisExpression(r)){e.replaceWith(n.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const y={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(m,s)}if(r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name){e.traverse(y,s)}return s.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){n.types.inheritLeadingComments(e,t.node);n.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,s,a,o,l,c,u,d){let f=0;let h;const m=[];const y=[];let g=false;const b=[];let T=null;const S=n.types.isIdentifier(t)?()=>t:()=>{h!=null?h:h=r[0].scope.generateUidIdentifierBasedOnNode(t);return h};const x=e!=null?e:r[0].scope.generateUidIdentifier((d==null?void 0:d.name)||"Class");e!=null?e:e=n.types.cloneNode(d);for(const t of r){if(t.isClassProperty()){p.assertFieldTransformed(t)}const r=!(n.types.isStaticBlock!=null&&n.types.isStaticBlock(t.node))&&t.node.static;const h=!r;const T=t.isPrivate();const E=!T;const P=t.isProperty();const v=!P;const A=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)f|=1;if(r||v&&T||A){new i.default({methodPath:t,constantSuper:u,file:a,refToPreserve:d,getSuperRef:S,getObjectRef(){f|=2;if(r||A){return x}else{return n.types.memberExpression(x,n.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,x,d);if(e){f|=2}}g=false;switch(true){case A:{const e=t.node.body;if(e.length===1&&n.types.isExpressionStatement(e[0])){m.push(inheritPropComments(e[0],t))}else{m.push(n.types.inheritsComments(n.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&T&&P&&l:m.push(buildPrivateFieldInitLoose(n.types.cloneNode(e),t,s));break;case r&&T&&P&&!l:if(!newHelpers(a)){m.push(buildPrivateStaticFieldInitSpecOld(t,s))}else{m.push(buildPrivateStaticFieldInitSpec(t,s,c))}break;case r&&E&&P&&o:if(!isNameOrLength(t.node)){m.push(buildPublicFieldInitLoose(n.types.cloneNode(e),t));break}case r&&E&&P&&!o:m.push(buildPublicFieldInitSpec(n.types.cloneNode(e),t,a));break;case h&&T&&P&&l:y.push(buildPrivateFieldInitLoose(n.types.thisExpression(),t,s));break;case h&&T&&P&&!l:y.push(buildPrivateInstanceFieldInitSpec(n.types.thisExpression(),t,s,a));break;case h&&T&&v&&l:y.unshift(buildPrivateMethodInitLoose(n.types.thisExpression(),t,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&T&&v&&!l:y.unshift(buildPrivateInstanceMethodInitSpec(n.types.thisExpression(),t,s,a));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&v&&!l:if(!newHelpers(a)){m.unshift(buildPrivateStaticFieldInitSpecOld(t,s))}b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case r&&T&&v&&l:m.unshift(buildPrivateStaticMethodInitLoose(n.types.cloneNode(e),t,a,s));b.push(buildPrivateMethodDeclaration(a,t,s,l));break;case h&&E&&P&&o:y.push(buildPublicFieldInitLoose(n.types.thisExpression(),t));break;case h&&E&&P&&!o:g=true;y.push(buildPublicFieldInitSpec(n.types.thisExpression(),t,a));break;default:throw new Error("Unreachable.")}}if(f&2&&d!=null){T=n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(x),n.types.cloneNode(d)))}return{staticNodes:m.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:g,pureStaticNodes:b.filter(Boolean),classBindingNode:T,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(h){t.scope.push({id:n.types.cloneNode(h)});t.set("superClass",n.types.assignmentExpression("=",h,t.node.superClass))}if(f!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(n.types.assignmentExpression("=",n.types.cloneNode(e),t.node))}else{if(d==null){t.node.id=e}if(T!=null){t.scope.push({id:x})}}}return t}}}},3713:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return i.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var n=r(2358);var s=r(7849);var i=r(4697);var a=r(7009);var o=r(4073);var l=r(5040);var c=r(1409);var p=r(1238);const u="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:d,manipulateOptions:f,api:h,inherits:m,decoratorVersion:y}){var g;if(t&c.FEATURES.decorators){{if(y==="2023-11"||y==="2023-05"||y==="2023-01"||y==="2022-03"||y==="2021-12"){return(0,a.default)(h,{loose:d},y,m)}}}{h!=null?h:h={assumption:()=>void 0}}const b=h.assumption("setPublicClassFields");const T=h.assumption("privateFieldsAsSymbols");const S=h.assumption("privateFieldsAsProperties");const x=(g=h.assumption("noUninitializedPrivateFieldAccess"))!=null?g:false;const E=h.assumption("constantSuper");const P=h.assumption("noDocumentAll");if(S&&T){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const v=S||T;if(d===true){const t=[];if(b!==undefined){t.push(`"setPublicClassFields"`)}if(S!==undefined){t.push(`"privateFieldsAsProperties"`)}if(T!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.length>1?"s":""}. The "loose" option`+` can cause incompatibilities with the other class features`+` plugins, so it's recommended that you replace it with the`+` following top-level option:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:f,inherits:m,pre(e){(0,c.enableFeature)(e,t,d);{if(typeof e.get(u)==="number"){e.set(u,"7.27.0");return}}if(!e.get(u)||s.lt(e.get(u),"7.27.0")){e.set(u,"7.27.0")}},visitor:{Class(e,{file:s}){if(s.get(u)!=="7.27.0")return;if(!(0,c.shouldTransform)(e,s))return;const d=e.isClassDeclaration();if(d)(0,p.assertFieldTransformed)(e);const f=(0,c.isLoose)(s,t);let h;const m=(0,a.hasDecorators)(e.node);const y=[];const g=[];const A=[];const w=new Set;const I=e.get("body");for(const e of I.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){A.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const n=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(w.has(r)||w.has(t)&&!w.has(n)){throw e.buildCodeFrameError("Duplicate private field")}w.add(r).add(t)}else if(e.node.kind==="set"){if(w.has(n)||w.has(t)&&!w.has(r)){throw e.buildCodeFrameError("Duplicate private field")}w.add(n).add(t)}}else{if(w.has(t)&&!w.has(r)&&!w.has(n)||w.has(t)&&(w.has(r)||w.has(n))){throw e.buildCodeFrameError("Duplicate private field")}w.add(t)}}if(e.isClassMethod({kind:"constructor"})){h=e}else{g.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){y.push(e)}}}{if(!y.length&&!m)return}const C=e.node.id;let O;if(!C||!d){{var N;(N=e.ensureFunctionName)!=null?N:e.ensureFunctionName=r(8026).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);O=e.scope.generateUidIdentifier((C==null?void 0:C.name)||"Class")}const k=O!=null?O:n.types.cloneNode(C);const _=(0,i.buildPrivateNamesMap)(k.name,v!=null?v:f,y,s);const D=(0,i.buildPrivateNamesNodes)(_,S!=null?S:f,T!=null?T:false,s);(0,i.transformPrivateNamesUsage)(k,e,_,{privateFieldsAsProperties:v!=null?v:f,noUninitializedPrivateFieldAccess:x,noDocumentAll:P,innerBinding:C},s);let M,L,j,F,B,R,U;{if(m){L=B=M=[];({instanceNodes:j,wrapClass:U}=(0,o.buildDecoratedClass)(k,e,g,s))}else{M=(0,l.extractComputedKeys)(e,A,s);({staticNodes:L,pureStaticNodes:B,instanceNodes:j,lastInstanceNodeReturnsThis:F,classBindingNode:R,wrapClass:U}=(0,i.buildFieldsInitNodes)(O,e.node.superClass,y,_,s,b!=null?b:f,v!=null?v:f,x,E!=null?E:f,C))}}if(j.length>0){(0,l.injectInitialization)(e,h,j,((e,t)=>{{if(m)return}for(const r of y){if(n.types.isStaticBlock!=null&&n.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),F)}const K=U(e);K.insertBefore([...D,...M]);if(L.length>0){K.insertAfter(L)}if(B.length>0){K.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(B)}if(R!=null&&d){K.insertAfter(R)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(u)!=="7.27.0")return;const s=e.get("declaration");if(s.isClassDeclaration()&&(0,a.hasDecorators)(s.node)){if(s.node.id){{var n;(n=e.splitExportDeclaration)!=null?n:e.splitExportDeclaration=r(8026).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{s.node.type="ClassExpression"}}}}}}}},5040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var n=r(2358);var s=r(8026);const i=s.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const a={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const s=n.types.callExpression(r,[n.types.stringLiteral(e.node.name)]);e.replaceWith(n.types.sequenceExpression([s,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,s,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=n.types.classMethod("constructor",n.types.identifier("constructor"),[],n.types.blockStatement([]));if(l){r.params=[n.types.restElement(n.types.identifier("args"))];r.body.body.push(n.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(s){s(a,{scope:t.scope})}if(l){const e=[];t.traverse(i,e);let s=true;for(const t of e){if(s){s=false}else{r=r.map((e=>n.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>n.types.toExpression(e)))];if(!o)e.push(n.types.thisExpression());t.replaceWith(n.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const s=n.types.isIdentifier(e)&&t.hasUid(e.name);if(s){return}const i=n.types.isAssignmentExpression(e,{operator:"="})&&n.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(i){return n.types.cloneNode(e)}else{const s=n.types.identifier(r);t.push({id:s,kind:"let"});return n.types.assignmentExpression("=",n.types.cloneNode(s),e)}}function extractComputedKeys(e,t,r){const{scope:s}=e;const i=[];const a={classBinding:e.node.id&&s.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,a)}else{t.traverse(o,a)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,s,s.generateUidBasedOnNode(t.node));if(e){i.push(n.types.expressionStatement(e));r.key=n.types.cloneNode(e.left)}}}return i}},1238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},3034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(3061);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var s=_interopNamespace(n);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:n}=t;if(n.isLogicalExpression()){const{operator:e,right:t}=n.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(n)}}if(n.isSequenceExpression()){const{expressions:e}=n.node;if(e[e.length-1]===r){return willPathCastToBoolean(n)}else{return true}}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}const{LOGICAL_OPERATORS:i,arrowFunctionExpression:a,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:p,cloneNode:u,conditionalExpression:d,identifier:f,isMemberExpression:h,isOptionalCallExpression:m,isOptionalMemberExpression:y,isUpdateExpression:g,logicalExpression:b,memberExpression:T,nullLiteral:S,optionalCallExpression:x,optionalMemberExpression:E,sequenceExpression:P,updateExpression:v}=s;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(y(r)){return T(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const n=r.node.object;const s=e.scope.maybeGenerateMemoised(n);r.get("object").replaceWith(o("=",s,n));return p(T(t,f("call")),[s,...e.node.arguments])}return p(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:n}=e;const s=t.node;if(n){if(r!==s[n]){return true}}else{if(r!==s)return true}e=t}return false}const A={memoise(){},handle(e,t){const{node:r,parent:n,parentPath:s,scope:i}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const g=e.find((({node:t,parent:r})=>{if(y(r)){return r.optional||r.object!==t}if(m(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(i.path.isPattern()){g.replaceWith(p(a([],g.node),[]));return}const T=willPathCastToBoolean(g);const P=g.parentPath;if(P.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const v=P.isAssignmentExpression({left:g.node});const A=P.isUnaryExpression({operator:"delete"});if(A&&g.isOptionalMemberExpression()&&g.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let w=e;for(;;){if(w.isOptionalMemberExpression()){if(w.node.optional)break;w=w.get("object");continue}else if(w.isOptionalCallExpression()){if(w.node.optional)break;w=w.get("callee");continue}throw new Error(`Internal error: unexpected ${w.node.type}`)}const I=w.isOptionalMemberExpression()?w.node.object:w.node.callee;const C=i.maybeGenerateMemoised(I);const O=C!=null?C:I;const N=s.isOptionalCallExpression({callee:r});const isOptionalCall=e=>N;const k=s.isCallExpression({callee:r});w.replaceWith(toNonOptional(w,O));if(isOptionalCall()){if(n.optional){s.replaceWith(this.optionalCall(e,n.arguments))}else{s.replaceWith(this.call(e,n.arguments))}}else if(k){e.replaceWith(this.boundGet(e))}else if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e))}else if(s.isAssignmentExpression()){handleAssignment(this,e,s)}else{e.replaceWith(this.get(e))}let _=e.node;for(let t=e;t!==g;){const e=t.parentPath;if(e===g&&isOptionalCall()&&n.optional){_=e.node;break}_=toNonOptional(e,_);t=e}let D;const M=g.parentPath;if(h(_)&&M.isOptionalCallExpression({callee:g.node,optional:true})){const{object:t}=_;D=e.scope.maybeGenerateMemoised(t);if(D){_.object=o("=",D,t)}}let L=g;if(A||v){L=M;_=M.node}const j=C?o("=",u(O),u(I)):u(O);if(T){let e;if(t){e=l("!=",j,S())}else{e=b("&&",l("!==",j,S()),l("!==",u(O),i.buildUndefinedNode()))}L.replaceWith(b("&&",e,_))}else{let e;if(t){e=l("==",j,S())}else{e=b("||",l("===",j,S()),l("===",u(O),i.buildUndefinedNode()))}L.replaceWith(d(e,A?c(true):i.buildUndefinedNode(),_))}if(D){const e=M.node;M.replaceWith(x(E(e.callee,f("call"),false,true),[u(D),...e.arguments],false))}return}if(g(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:a}=n;this.memoise(e,2);const l=i.generateUidIdentifierBasedOnNode(r);i.push({id:l});const c=[o("=",u(l),this.get(e))];if(a){c.push(v(t,u(l),a));const r=P(c);s.replaceWith(this.set(e,r));return}else{const n=i.generateUidIdentifierBasedOnNode(r);i.push({id:n});c.push(o("=",u(n),v(t,u(l),a)),u(l));const p=P(c);s.replaceWith(P([this.set(e,p),u(n)]));return}}if(s.isAssignmentExpression({left:r})){handleAssignment(this,e,s);return}if(s.isCallExpression({callee:r})){s.replaceWith(this.call(e,s.node.arguments));return}if(s.isOptionalCallExpression({callee:r})){if(i.path.isPattern()){s.replaceWith(p(a([],s.node),[]));return}s.replaceWith(this.optionalCall(e,s.node.arguments));return}if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e));return}if(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(s.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:n,right:s}=r.node;if(n==="="){r.replaceWith(e.set(t,s))}else{const a=n.slice(0,-1);if(i.includes(a)){e.memoise(t,1);r.replaceWith(b(a,e.get(t),e.set(t,s)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(a,e.get(t),s)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},A,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},8e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(9491);var s=r(3061);const{callExpression:i,cloneNode:a,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:p,importNamespaceSpecifier:u,importSpecifier:d,memberExpression:f,stringLiteral:h,variableDeclaration:m,variableDeclarator:y}=s;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],h(this._importedSource)));return this}require(){this._statements.push(o(i(l("require"),[h(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=a(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];n(r.type==="ImportDeclaration");n(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=a(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const s=this._statements[this._statements.length-1];n(s.type==="ImportDeclaration");n(s.specifiers.length===0);s.specifiers=[d(r,l(t))];this._resultName=a(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){n(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=m("var",[y(t,r.expression)]);this._resultName=a(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=i(e,[t.expression])}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=i(e,[t.declarations[0].init])}else{n.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=f(t.expression,l(e))}else if(t.type==="VariableDeclaration"){n(t.declarations.length===1);t.declarations[0].init=f(t.declarations[0].init,l(e))}else{n.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=f(this._resultName,l(e))}}t["default"]=ImportBuilder},4955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(9491);var s=r(3061);var i=r(8e3);var a=r(2488);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:p,isImportDeclaration:u}=s;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const n=e.find((e=>e.isProgram()));this._programPath=n;this._programScope=n.scope;this._hub=n.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){n(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let s;if(typeof e==="string"){s=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{n(!t,"Unexpected secondary arguments.");s=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)s.nameHint=t.nameHint;if(t.blockHoist!==undefined)s.blockHoist=t.blockHoist}return s}_generateImport(e,t){const r=t==="default";const n=!!t&&!r;const s=t===null;const{importedSource:o,importedType:l,importedInterop:u,importingInterop:d,ensureLiveReference:f,ensureNoContext:h,nameHint:m,importPosition:y,blockHoist:g}=e;let b=m||t;const T=(0,a.default)(this._programPath);const S=T&&d==="node";const x=T&&d==="babel";if(y==="after"&&!T){throw new Error(`"importPosition": "after" is only supported in modules`)}const E=new i.default(o,this._programScope,this._hub);if(l==="es6"){if(!S&&!x){throw new Error("Cannot import an ES6 module from CommonJS")}E.import();if(s){E.namespace(m||o)}else if(r||n){E.named(b,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(u==="babel"){if(S){b=b!=="default"?b:o;const e=`${o}$es6Default`;E.import();if(s){E.default(e).var(b||o).wildcardInterop()}else if(r){if(f){E.default(e).var(b||o).defaultInterop().read("default")}else{E.default(e).var(b).defaultInterop().prop(t)}}else if(n){E.default(e).read(t)}}else if(x){E.import();if(s){E.namespace(b||o)}else if(r||n){E.named(b,t)}}else{E.require();if(s){E.var(b||o).wildcardInterop()}else if((r||n)&&f){if(r){b=b!=="default"?b:o;E.var(b).read(t);E.defaultInterop()}else{E.var(o).read(t)}}else if(r){E.var(b).defaultInterop().prop(t)}else if(n){E.var(b).prop(t)}}}else if(u==="compiled"){if(S){E.import();if(s){E.default(b||o)}else if(r||n){E.default(o).read(b)}}else if(x){E.import();if(s){E.namespace(b||o)}else if(r||n){E.named(b,t)}}else{E.require();if(s){E.var(b||o)}else if(r||n){if(f){E.var(o).read(b)}else{E.prop(t).var(b)}}}}else if(u==="uncompiled"){if(r&&f){throw new Error("No live reference for commonjs default")}if(S){E.import();if(s){E.default(b||o)}else if(r){E.default(b)}else if(n){E.default(o).read(b)}}else if(x){E.import();if(s){E.default(b||o)}else if(r){E.default(b)}else if(n){E.named(b,t)}}else{E.require();if(s){E.var(b||o)}else if(r){E.var(b)}else if(n){if(f){E.var(o).read(b)}else{E.var(b).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${u}".`)}const{statements:P,resultName:v}=E.done();this._insertStatements(P,y,g);if((r||n)&&h&&v.type!=="Identifier"){return p([c(0),v])}return v}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&u(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(u(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let n=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){n=e;const s=e.node.source.value;const i=r.get(s);if(!i)continue;for(const r of i){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(n)n.insertAfter(Array.from(t));return!!n}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},6912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return n.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return s.default}});var n=r(4955);var s=r(2488);function addDefault(e,t,r){return new n.default(e).addDefault(t,r)}function addNamed(e,t,r,s){return new n.default(e).addNamed(t,r,s)}function addNamespace(e,t,r){return new n.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new n.default(e).addSideEffect(t,r)}},2488:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},3747:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var n=r(2358);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,s){const i=n.types.isCallExpression(e)?e.arguments[0]:e.source;if(n.types.isStringLiteral(i)||n.types.isTemplateLiteral(i)&&i.quasis.length===0){if(t){return n.template.expression.ast`
|
||
Promise.resolve().then(() => ${s(i)})
|
||
`}else return s(i)}const a=n.types.isTemplateLiteral(i)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);if(t){return n.template.expression.ast`
|
||
(specifier =>
|
||
new Promise(r => r(${a}))
|
||
.then(s => ${s(n.types.identifier("s"))})
|
||
)(${i})
|
||
`}else if(r){return n.template.expression.ast`
|
||
(specifier =>
|
||
new Promise(r => r(${s(a)}))
|
||
)(${i})
|
||
`}else{return n.template.expression.ast`
|
||
(specifier => ${s(a)})(${i})
|
||
`}}},7857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var n,s,i,a;return e(t,{moduleId:(n=r.moduleId)!=null?n:t.moduleId,moduleIds:(s=r.moduleIds)!=null?s:t.moduleIds,getModuleId:(i=r.getModuleId)!=null?i:t.getModuleId,moduleRoot:(a=r.moduleRoot)!=null?a:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e;const{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o){return i}let c=l!=null?l+"/":"";if(n){const e=s!=null?new RegExp("^"+s+"/?"):"";c+=n.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},9460:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return p.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return i.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return a.default}});t.wrapInterop=wrapInterop;var n=r(9491);var s=r(2358);var i=r(6912);var a=r(5002);var o=r(2984);var l=r(8800);var c=r(1219);var p=r(3747);var u=r(7857);{t.getDynamicImportSource=r(3747).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:p,strictMode:u,noInterop:d,importInterop:f=(d?"none":"babel"),lazy:h,getWrapperPayload:m=c.toGetWrapperPayload(h!=null?h:false),wrapReference:y=c.wrapReference,esNamespaceOnly:g,filename:b,constantReexports:T=arguments[1].loose,enumerableModuleMeta:S=arguments[1].loose,noIncompleteNsImportDetection:x}){(0,l.validateImportInteropOption)(f);n((0,i.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const E=(0,l.default)(e,t,{importInterop:f,initializeReexports:T,getWrapperPayload:m,esNamespaceOnly:g,filename:b});if(!p){(0,a.default)(e)}(0,o.default)(e,E,y);if(u!==false){const t=e.node.directives.some((e=>e.value.value==="use strict"));if(!t){e.unshiftContainer("directives",s.types.directive(s.types.directiveLiteral("use strict")))}}const P=[];if((0,l.hasExports)(E)&&!r){P.push(buildESModuleHeader(E,S))}const v=buildExportNameListDeclaration(e,E);if(v){E.exportNameListName=v.name;P.push(v.statement)}P.push(...buildExportInitializationStatements(e,E,y,T,x));return{meta:E,headers:P}}function ensureStatementsHoisted(e){e.forEach((e=>{e._blockHoist=3}))}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return s.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,s.types.booleanLiteral(true)])}else if(r==="node-default"){return null}let n;if(r==="default"){n="interopRequireDefault"}else if(r==="namespace"){n="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return s.types.callExpression(e.hub.addHelper(n),[t])}function buildNamespaceInitStatements(e,t,r=false,n=c.wrapReference){var i;const a=[];const o=s.types.identifier(t.name);for(const e of t.importsNamespace){if(e===t.name)continue;a.push(s.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:s.types.cloneNode(o)}))}const l=(i=n(o,t.wrap))!=null?i:o;if(r){a.push(...buildReexportsFromMeta(e,t,true,n))}for(const r of t.reexportNamespace){a.push((!s.types.isIdentifier(l)?s.template.statement`
|
||
Object.defineProperty(EXPORTS, "NAME", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return NAMESPACE;
|
||
}
|
||
});
|
||
`:s.template.statement`EXPORTS.NAME = NAMESPACE;`)({EXPORTS:e.exportName,NAME:r,NAMESPACE:s.types.cloneNode(l)}))}if(t.reexportAll){const n=buildNamespaceReexport(e,s.types.cloneNode(l),r);n.loc=t.reexportAll.loc;a.push(n)}return a}const d={constant:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
${e}.${t} = ${r};
|
||
`,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
${e}["${t}"] = ${r};
|
||
`,spec:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
|
||
Object.defineProperty(${e}, "${t}", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return ${r};
|
||
},
|
||
});
|
||
`};function buildReexportsFromMeta(e,t,r,n){var i;let a=s.types.identifier(t.name);a=(i=n(a,t.wrap))!=null?i:a;const{stringSpecifiers:o}=e;return Array.from(t.reexports,(([n,i])=>{let l=s.types.cloneNode(a);if(i==="default"&&t.interop==="node-default"){}else if(o.has(i)){l=s.types.memberExpression(l,s.types.stringLiteral(i),true)}else{l=s.types.memberExpression(l,s.types.identifier(i))}const c={exports:e.exportName,exportName:n,namespaceImport:l};if(r||s.types.isIdentifier(l)){if(o.has(n)){return d.constantComputed(c)}else{return d.constant(c)}}else{return d.spec(c)}}))}function buildESModuleHeader(e,t=false){return(t?s.template.statement`
|
||
EXPORTS.__esModule = true;
|
||
`:s.template.statement`
|
||
Object.defineProperty(EXPORTS, "__esModule", {
|
||
value: true,
|
||
});
|
||
`)({EXPORTS:e.exportName})}function buildNamespaceReexport(e,t,r){return(r?s.template.statement`
|
||
Object.keys(NAMESPACE).forEach(function(key) {
|
||
if (key === "default" || key === "__esModule") return;
|
||
VERIFY_NAME_LIST;
|
||
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
||
EXPORTS[key] = NAMESPACE[key];
|
||
});
|
||
`:s.template.statement`
|
||
Object.keys(NAMESPACE).forEach(function(key) {
|
||
if (key === "default" || key === "__esModule") return;
|
||
VERIFY_NAME_LIST;
|
||
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
||
Object.defineProperty(EXPORTS, key, {
|
||
enumerable: true,
|
||
get: function() {
|
||
return NAMESPACE[key];
|
||
},
|
||
});
|
||
});
|
||
`)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,s.template)`
|
||
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
|
||
`({EXPORTS_LIST:e.exportNameListName}):null})}function buildExportNameListDeclaration(e,t){const r=Object.create(null);for(const e of t.local.values()){for(const t of e.names){r[t]=true}}let n=false;for(const e of t.source.values()){for(const t of e.reexports.keys()){r[t]=true}for(const t of e.reexportNamespace){r[t]=true}n=n||!!e.reexportAll}if(!n||Object.keys(r).length===0)return null;const i=e.scope.generateUidIdentifier("exportNames");delete r.default;return{name:i.name,statement:s.types.variableDeclaration("var",[s.types.variableDeclarator(i,s.types.valueToNode(r))])}}function buildExportInitializationStatements(e,t,r,n=false,i=false){const a=[];for(const[e,r]of t.local){if(r.kind==="import"){}else if(r.kind==="hoisted"){a.push([r.names[0],buildInitStatement(t,r.names,s.types.identifier(e))])}else if(!i){for(const e of r.names){a.push([e,null])}}}for(const e of t.source.values()){if(!n){const n=buildReexportsFromMeta(t,e,false,r);const s=[...e.reexports.keys()];for(let e=0;e<n.length;e++){a.push([s[e],n[e]])}}if(!i){for(const t of e.reexportNamespace){a.push([t,null])}}}a.sort((([e],[t])=>{if(e<t)return-1;if(t<e)return 1;return 0}));const o=[];if(i){for(const[,e]of a){o.push(e)}}else{const r=100;for(let n=0;n<a.length;n+=r){let s=[];for(let i=0;i<r&&n+i<a.length;i++){const[r,l]=a[n+i];if(l!==null){if(s.length>0){o.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()));s=[]}o.push(l)}else{s.push(r)}}if(s.length>0){o.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()))}}}return o}const f={computed:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}["${t}"] = ${r}`,default:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}.${t} = ${r}`,define:({exports:e,name:t,value:r})=>s.template.expression.ast`
|
||
Object.defineProperty(${e}, "${t}", {
|
||
enumerable: true,
|
||
value: void 0,
|
||
writable: true
|
||
})["${t}"] = ${r}`};function buildInitStatement(e,t,r){const{stringSpecifiers:n,exportName:i}=e;return s.types.expressionStatement(t.reduce(((e,t)=>{const r={exports:i,name:t,value:e};if(t==="__proto__"){return f.define(r)}if(n.has(t)){return f.computed(r)}return f.default(r)}),r))}},1219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toGetWrapperPayload=toGetWrapperPayload;t.wrapReference=wrapReference;var n=r(2358);var s=r(8800);function toGetWrapperPayload(e){return(t,r)=>{if(e===false)return null;if((0,s.isSideEffectImport)(r)||r.reexportAll)return null;if(e===true){return t.includes(".")?null:"lazy"}if(Array.isArray(e)){return!e.includes(t)?null:"lazy"}if(typeof e==="function"){return e(t)?"lazy":null}throw new Error(`.lazy must be a boolean, string array, or function`)}}function wrapReference(e,t){if(t==="lazy")return n.types.callExpression(e,[]);return null}},8800:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=normalizeModuleAndLoadMetadata;t.hasExports=hasExports;t.isSideEffectImport=isSideEffectImport;t.validateImportInteropOption=validateImportInteropOption;var n=r(1017);var s=r(974);function hasExports(e){return e.hasExports}function isSideEffectImport(e){return e.imports.size===0&&e.importsNamespace.size===0&&e.reexports.size===0&&e.reexportNamespace.size===0&&!e.reexportAll}function validateImportInteropOption(e){if(typeof e!=="function"&&e!=="none"&&e!=="babel"&&e!=="node"){throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`)}return e}function resolveImportInterop(e,t,r){if(typeof e==="function"){return validateImportInteropOption(e(t,r))}return e}function normalizeModuleAndLoadMetadata(e,t,{importInterop:r,initializeReexports:n=false,getWrapperPayload:s,esNamespaceOnly:i=false,filename:a}){if(!t){t=e.scope.generateUidIdentifier("exports").name}const o=new Set;nameAnonymousExports(e);const{local:l,sources:c,hasExports:p}=getModuleMetadata(e,{initializeReexports:n,getWrapperPayload:s},o);removeImportExportDeclarations(e);for(const[e,t]of c){const{importsNamespace:n,imports:s}=t;if(n.size>0&&s.size===0){const[e]=n;t.name=e}const o=resolveImportInterop(r,e,a);if(o==="none"){t.interop="none"}else if(o==="node"&&t.interop==="namespace"){t.interop="node-namespace"}else if(o==="node"&&t.interop==="default"){t.interop="node-default"}else if(i&&t.interop==="namespace"){t.interop="default"}}return{exportName:t,exportNameListName:null,hasExports:p,local:l,source:c,stringSpecifiers:o}}function getExportSpecifierName(e,t){if(e.isIdentifier()){return e.node.name}else if(e.isStringLiteral()){const r=e.node.value;if(!(0,s.isIdentifierName)(r)){t.add(r)}return r}else{throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${e.node.type}`)}}function assertExportSpecifier(e){if(e.isExportSpecifier()){return}else if(e.isExportNamespaceSpecifier()){throw e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`.")}else{throw e.buildCodeFrameError("Unexpected export specifier type")}}function getModuleMetadata(e,{getWrapperPayload:t,initializeReexports:r},s){const i=getLocalExportMetadata(e,r,s);const a=new Map;const o=new Map;const getData=(t,r)=>{const s=t.value;let i=o.get(s);if(!i){i={name:e.scope.generateUidIdentifier((0,n.basename)(s,(0,n.extname)(s))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,wrap:null,get lazy(){return this.wrap==="lazy"},referenced:false};o.set(s,i);a.set(s,[r])}else{a.get(s).push(r)}return i};let l=false;e.get("body").forEach((e=>{if(e.isImportDeclaration()){const t=getData(e.node.source,e.node);if(!t.loc)t.loc=e.node.loc;e.get("specifiers").forEach((e=>{if(e.isImportDefaultSpecifier()){const r=e.get("local").node.name;t.imports.set(r,"default");const n=i.get(r);if(n){i.delete(r);n.names.forEach((e=>{t.reexports.set(e,"default")}));t.referenced=true}}else if(e.isImportNamespaceSpecifier()){const r=e.get("local").node.name;t.importsNamespace.add(r);const n=i.get(r);if(n){i.delete(r);n.names.forEach((e=>{t.reexportNamespace.add(e)}));t.referenced=true}}else if(e.isImportSpecifier()){const r=getExportSpecifierName(e.get("imported"),s);const n=e.get("local").node.name;t.imports.set(n,r);const a=i.get(n);if(a){i.delete(n);a.names.forEach((e=>{t.reexports.set(e,r)}));t.referenced=true}}}))}else if(e.isExportAllDeclaration()){l=true;const t=getData(e.node.source,e.node);if(!t.loc)t.loc=e.node.loc;t.reexportAll={loc:e.node.loc};t.referenced=true}else if(e.isExportNamedDeclaration()&&e.node.source){l=true;const t=getData(e.node.source,e.node);if(!t.loc)t.loc=e.node.loc;e.get("specifiers").forEach((e=>{assertExportSpecifier(e);const r=getExportSpecifierName(e.get("local"),s);const n=getExportSpecifierName(e.get("exported"),s);t.reexports.set(n,r);t.referenced=true;if(n==="__esModule"){throw e.get("exported").buildCodeFrameError('Illegal export "__esModule".')}}))}else if(e.isExportNamedDeclaration()||e.isExportDefaultDeclaration()){l=true}}));for(const e of o.values()){let t=false;let r=false;if(e.importsNamespace.size>0){t=true;r=true}if(e.reexportAll){r=true}for(const n of e.imports.values()){if(n==="default")t=true;else r=true}for(const n of e.reexports.values()){if(n==="default")t=true;else r=true}if(t&&r){e.interop="namespace"}else if(t){e.interop="default"}}if(t){for(const[e,r]of o){r.wrap=t(e,r,a.get(e))}}return{hasExports:l,local:i,sources:o}}function getLocalExportMetadata(e,t,r){const n=new Map;e.get("body").forEach((e=>{let r;if(e.isImportDeclaration()){r="import"}else{if(e.isExportDefaultDeclaration()){e=e.get("declaration")}if(e.isExportNamedDeclaration()){if(e.node.declaration){e=e.get("declaration")}else if(t&&e.node.source&&e.get("source").isStringLiteral()){e.get("specifiers").forEach((e=>{assertExportSpecifier(e);n.set(e.get("local").node.name,"block")}));return}}if(e.isFunctionDeclaration()){r="hoisted"}else if(e.isClassDeclaration()){r="block"}else if(e.isVariableDeclaration({kind:"var"})){r="var"}else if(e.isVariableDeclaration()){r="block"}else{return}}Object.keys(e.getOuterBindingIdentifiers()).forEach((e=>{n.set(e,r)}))}));const s=new Map;const getLocalMetadata=e=>{const t=e.node.name;let r=s.get(t);if(!r){const i=n.get(t);if(i===undefined){throw e.buildCodeFrameError(`Exporting local "${t}", which is not declared.`)}r={names:[],kind:i};s.set(t,r)}return r};e.get("body").forEach((e=>{if(e.isExportNamedDeclaration()&&(t||!e.node.source)){if(e.node.declaration){const t=e.get("declaration");const r=t.getOuterBindingIdentifierPaths();Object.keys(r).forEach((e=>{if(e==="__esModule"){throw t.buildCodeFrameError('Illegal export "__esModule".')}getLocalMetadata(r[e]).names.push(e)}))}else{e.get("specifiers").forEach((e=>{const t=e.get("local");const n=e.get("exported");const s=getLocalMetadata(t);const i=getExportSpecifierName(n,r);if(i==="__esModule"){throw n.buildCodeFrameError('Illegal export "__esModule".')}s.names.push(i)}))}}else if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(t.isFunctionDeclaration()||t.isClassDeclaration()){getLocalMetadata(t.get("id")).names.push("default")}else{throw t.buildCodeFrameError("Unexpected default expression export.")}}}));return s}function nameAnonymousExports(e){e.get("body").forEach((e=>{if(!e.isExportDefaultDeclaration())return;{var t;(t=e.splitExportDeclaration)!=null?t:e.splitExportDeclaration=r(8026).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}))}function removeImportExportDeclarations(e){e.get("body").forEach((e=>{if(e.isImportDeclaration()){e.remove()}else if(e.isExportNamedDeclaration()){if(e.node.declaration){e.node.declaration._blockHoist=e.node._blockHoist;e.replaceWith(e.node.declaration)}else{e.remove()}}else if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(t.isFunctionDeclaration()||t.isClassDeclaration()){t._blockHoist=e.node._blockHoist;e.replaceWith(t)}else{throw t.buildCodeFrameError("Unexpected default expression export.")}}else if(e.isExportAllDeclaration()){e.remove()}}))}},2984:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rewriteLiveReferences;var n=r(2358);function isInType(e){do{switch(e.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return true;case"ExportSpecifier":return e.parentPath.parent.exportKind==="type";default:if(e.parentPath.isStatement()||e.parentPath.isExpression()){return false}}}while(e=e.parentPath)}function rewriteLiveReferences(e,t,r){const a=new Map;const o=new Map;const requeueInParent=t=>{e.requeue(t)};for(const[e,r]of t.source){for(const[t,n]of r.imports){a.set(t,[e,n,null])}for(const t of r.importsNamespace){a.set(t,[e,null,t])}}for(const[e,r]of t.local){let t=o.get(e);if(!t){t=[];o.set(e,t)}t.push(...r.names)}const l={metadata:t,requeueInParent:requeueInParent,scope:e.scope,exported:o};e.traverse(s,l);const c={seen:new WeakSet,metadata:t,requeueInParent:requeueInParent,scope:e.scope,imported:a,exported:o,buildImportReference([e,s,i],a){const o=t.source.get(e);o.referenced=true;if(i){if(o.wrap){var l;a=(l=r(a,o.wrap))!=null?l:a}return a}let c=n.types.identifier(o.name);if(o.wrap){var p;c=(p=r(c,o.wrap))!=null?p:c}if(s==="default"&&o.interop==="node-default"){return c}const u=t.stringSpecifiers.has(s);return n.types.memberExpression(c,u?n.types.stringLiteral(s):n.types.identifier(s),u)}};e.traverse(i,c)}const s={Scope(e){e.skip()},ClassDeclaration(e){const{requeueInParent:t,exported:r,metadata:s}=this;const{id:i}=e.node;if(!i)throw new Error("Expected class to have a name");const a=i.name;const o=r.get(a)||[];if(o.length>0){const r=n.types.expressionStatement(buildBindingExportAssignmentExpression(s,o,n.types.identifier(a),e.scope));r._blockHoist=e.node._blockHoist;t(e.insertAfter(r)[0])}},VariableDeclaration(e){const{requeueInParent:t,exported:r,metadata:s}=this;const i=e.node.kind==="var";for(const a of e.get("declarations")){const{id:o}=a.node;let{init:l}=a.node;if(n.types.isIdentifier(o)&&r.has(o.name)&&!n.types.isArrowFunctionExpression(l)&&(!n.types.isFunctionExpression(l)||l.id)&&(!n.types.isClassExpression(l)||l.id)){if(!l){if(i){continue}else{l=e.scope.buildUndefinedNode()}}a.node.init=buildBindingExportAssignmentExpression(s,r.get(o.name),l,e.scope);t(a.get("init"))}else{for(const i of Object.keys(a.getOuterBindingIdentifiers())){if(r.has(i)){const a=n.types.expressionStatement(buildBindingExportAssignmentExpression(s,r.get(i),n.types.identifier(i),e.scope));a._blockHoist=e.node._blockHoist;t(e.insertAfter(a)[0])}}}}}};const buildBindingExportAssignmentExpression=(e,t,r,s)=>{const i=e.exportName;for(let e=s;e!=null;e=e.parent){if(e.hasOwnBinding(i)){e.rename(i)}}return(t||[]).reduce(((t,r)=>{const{stringSpecifiers:s}=e;const a=s.has(r);return n.types.assignmentExpression("=",n.types.memberExpression(n.types.identifier(i),a?n.types.stringLiteral(r):n.types.identifier(r),a),t)}),r)};const buildImportThrow=e=>n.template.expression.ast`
|
||
(function() {
|
||
throw new Error('"' + '${e}' + '" is read-only.');
|
||
})()
|
||
`;const i={ReferencedIdentifier(e){const{seen:t,buildImportReference:r,scope:s,imported:i,requeueInParent:a}=this;if(t.has(e.node))return;t.add(e.node);const o=e.node.name;const l=i.get(o);if(l){if(isInType(e)){throw e.buildCodeFrameError(`Cannot transform the imported binding "${o}" since it's also used in a type annotation. `+`Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`)}const t=e.scope.getBinding(o);const i=s.getBinding(o);if(i!==t)return;const c=r(l,e.node);c.loc=e.node.loc;if((e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&n.types.isMemberExpression(c)){e.replaceWith(n.types.sequenceExpression([n.types.numericLiteral(0),c]))}else if(e.isJSXIdentifier()&&n.types.isMemberExpression(c)){const{object:t,property:r}=c;e.replaceWith(n.types.jsxMemberExpression(n.types.jsxIdentifier(t.name),n.types.jsxIdentifier(r.name)))}else{e.replaceWith(c)}a(e);e.skip()}},UpdateExpression(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:a,buildImportReference:o}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("argument");if(l.isMemberExpression())return;const c=e.node;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r)){return}const a=i.get(r);const p=s.get(r);if((a==null?void 0:a.length)>0||p){if(p){e.replaceWith(n.types.assignmentExpression(c.operator[0]+"=",o(p,l.node),buildImportThrow(r)))}else if(c.prefix){e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,a,n.types.cloneNode(c),e.scope))}else{const s=t.generateDeclaredUidIdentifier(r);e.replaceWith(n.types.sequenceExpression([n.types.assignmentExpression("=",n.types.cloneNode(s),n.types.cloneNode(c)),buildBindingExportAssignmentExpression(this.metadata,a,n.types.identifier(r),e.scope),n.types.cloneNode(s)]))}}}a(e);e.skip()},AssignmentExpression:{exit(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:a,buildImportReference:o}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(l.isMemberExpression())return;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r)){return}const c=i.get(r);const p=s.get(r);if((c==null?void 0:c.length)>0||p){const t=e.node;if(p){t.left=o(p,l.node);t.right=n.types.sequenceExpression([t.right,buildImportThrow(r)])}const{operator:s}=t;let i;if(s==="="){i=t}else if(s==="&&="||s==="||="||s==="??="){i=n.types.assignmentExpression("=",t.left,n.types.logicalExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right))}else{i=n.types.assignmentExpression("=",t.left,n.types.binaryExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right))}e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,c,i,e.scope));a(e);e.skip()}}else{const r=l.getOuterBindingIdentifiers();const o=Object.keys(r).filter((r=>t.getBinding(r)===e.scope.getBinding(r)));const c=o.find((e=>s.has(e)));if(c){e.node.right=n.types.sequenceExpression([e.node.right,buildImportThrow(c)])}const p=[];o.forEach((t=>{const r=i.get(t)||[];if(r.length>0){p.push(buildBindingExportAssignmentExpression(this.metadata,r,n.types.identifier(t),e.scope))}}));if(p.length>0){let t=n.types.sequenceExpression(p);if(e.parentPath.isExpressionStatement()){t=n.types.expressionStatement(t);t._blockHoist=e.parentPath.node._blockHoist}const r=e.insertAfter(t)[0];a(r)}}}},ForXStatement(e){const{scope:t,node:r}=e;const{left:s}=r;const{exported:i,imported:a,scope:o}=this;if(!n.types.isVariableDeclaration(s)){let r=false,l;const c=e.get("body").scope;for(const e of Object.keys(n.types.getOuterBindingIdentifiers(s))){if(o.getBinding(e)===t.getBinding(e)){if(i.has(e)){r=true;if(c.hasOwnBinding(e)){c.rename(e)}}if(a.has(e)&&!l){l=e}}}if(!r&&!l){return}e.ensureBlock();const p=e.get("body");const u=t.generateUidIdentifierBasedOnNode(s);e.get("left").replaceWith(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(u))]));t.registerDeclaration(e.get("left"));if(r){p.unshiftContainer("body",n.types.expressionStatement(n.types.assignmentExpression("=",s,u)))}if(l){p.unshiftContainer("body",n.types.expressionStatement(buildImportThrow(l)))}}}}},5002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rewriteThis;var n=r(2358);var s=r(8026);let i;function rewriteThis(e){if(!i){i=s.visitors.environmentVisitor({ThisExpression(e){e.replaceWith(n.types.unaryExpression("void",n.types.numericLiteral(0),true))}});i.noScope=true}(0,s.default)(e.node,i)}},582:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=optimiseCallExpression;var n=r(3061);const{callExpression:s,identifier:i,isIdentifier:a,isSpreadElement:o,memberExpression:l,optionalCallExpression:c,optionalMemberExpression:p}=n;function optimiseCallExpression(e,t,r,n){if(r.length===1&&o(r[0])&&a(r[0].argument,{name:"arguments"})){if(n){return c(p(e,i("apply"),false,true),[t,r[0].argument],false)}return s(l(e,i("apply")),[t,r[0].argument])}else{if(n){return c(p(e,i("call"),false,true),[t,...r],false)}return s(l(e,i("call")),[t,...r])}}},9045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.declare=declare;t.declarePreset=void 0;const r={assertVersion:e=>t=>{throwVersionError(t,e.version)}};{Object.assign(r,{targets:()=>()=>({}),assumption:()=>()=>undefined,addExternalDependency:()=>()=>{}})}function declare(e){return(t,n,s)=>{var i;let a;for(const e of Object.keys(r)){var o;if(t[e])continue;(o=a)!=null?o:a=copyApiObject(t);a[e]=r[e](a)}return e((i=a)!=null?i:t,n||{},s)}}const n=t.declarePreset=declare;function copyApiObject(e){let t=null;if(typeof e.version==="string"&&/^7\./.test(e.version)){t=Object.getPrototypeOf(e);if(t&&(!hasOwnProperty.call(t,"version")||!hasOwnProperty.call(t,"transform")||!hasOwnProperty.call(t,"template")||!hasOwnProperty.call(t,"types"))){t=null}}return Object.assign({},t,e)}function throwVersionError(e,t){if(typeof e==="number"){if(!Number.isInteger(e)){throw new Error("Expected string or integer value.")}e=`^${e}.0.0-0`}if(typeof e!=="string"){throw new Error("Expected string or integer value.")}const r=Error.stackTraceLimit;if(typeof r==="number"&&r<25){Error.stackTraceLimit=25}let n;if(t.slice(0,2)==="7."){n=new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". `+`You'll need to update your @babel/core version.`)}else{n=new Error(`Requires Babel "${e}", but was loaded with "${t}". `+`If you are sure you have a compatible version of @babel/core, `+`it is likely that something in your build process is loading the `+`wrong version. Inspect the stack trace of this error to look for `+`the first entry that doesn't mention "@babel/core" or "babel-core" `+`to see what is calling Babel.`)}if(typeof r==="number"){Error.stackTraceLimit=r}throw Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}},6721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(3034);var s=r(582);var i=r(2358);var a=r(8026);const{assignmentExpression:o,callExpression:l,cloneNode:c,identifier:p,memberExpression:u,sequenceExpression:d,stringLiteral:f,thisExpression:h}=i.types;{t.environmentVisitor=a.visitors.environmentVisitor({});t.skipAllButComputedKey=function skipAllButComputedKey(e){e.skip();if(e.node.computed){e.context.maybeQueue(e.get("key"))}}}const m=a.visitors.environmentVisitor({Super(e,t){const{node:r,parentPath:n}=e;if(!n.isMemberExpression({object:r}))return;t.handle(n)}});const y=a.visitors.environmentVisitor({Scopable(e,{refName:t}){const r=e.scope.getOwnBinding(t);if(r&&r.identifier.name===t){e.scope.rename(t)}}});const g={memoise(e,t){const{scope:r,node:n}=e;const{computed:s,property:i}=n;if(!s){return}const a=r.maybeGenerateMemoised(i);if(!a){return}this.memoiser.set(i,a,t)},prop(e){const{computed:t,property:r}=e.node;if(this.memoiser.has(r)){return c(this.memoiser.get(r))}if(t){return c(r)}return f(r.name)},_getPrototypeOfExpression(){const e=c(this.getObjectRef());const t=this.isStatic||this.isPrivateMethod?e:u(e,p("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){const t=c(this.getObjectRef());return l(this.file.addHelper("superPropGet"),[this.isDerivedConstructor?d([h(),t]):t,this.prop(e),h(),...this.isStatic||this.isPrivateMethod?[]:[i.types.numericLiteral(1)]])},_call(e,t,r){const n=c(this.getObjectRef());let s;if(t.length===1&&i.types.isSpreadElement(t[0])&&(i.types.isIdentifier(t[0].argument)||i.types.isArrayExpression(t[0].argument))){s=t[0].argument}else{s=i.types.arrayExpression(t)}const a=i.types.callExpression(this.file.addHelper("superPropGet"),[this.isDerivedConstructor?d([h(),n]):n,this.prop(e),h(),i.types.numericLiteral(2|(this.isStatic||this.isPrivateMethod?0:1))]);if(r){return i.types.optionalCallExpression(a,[s],true)}return l(a,[s])},set(e,t){const r=c(this.getObjectRef());return l(this.file.addHelper("superPropSet"),[this.isDerivedConstructor?d([h(),r]):r,this.prop(e),t,h(),i.types.numericLiteral(e.isInStrictMode()?1:0),...this.isStatic||this.isPrivateMethod?[]:[i.types.numericLiteral(1)]])},destructureSet(e){throw e.buildCodeFrameError(`Destructuring to a super field is not supported yet.`)},call(e,t){return this._call(e,t,false)},optionalCall(e,t){return this._call(e,t,true)},delete(e){if(e.node.computed){return d([l(this.file.addHelper("toPropertyKey"),[c(e.node.property)]),i.template.expression.ast`
|
||
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
`])}else{return i.template.expression.ast`
|
||
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
`}}};const b={memoise(e,t){const{scope:r,node:n}=e;const{computed:s,property:i}=n;if(!s){return}const a=r.maybeGenerateMemoised(i);if(!a){return}this.memoiser.set(i,a,t)},prop(e){const{computed:t,property:r}=e.node;if(this.memoiser.has(r)){return c(this.memoiser.get(r))}if(t){return c(r)}return f(r.name)},_getPrototypeOfExpression(){const e=c(this.getObjectRef());const t=this.isStatic||this.isPrivateMethod?e:u(e,p("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){const t=this._getPrototypeOfExpression();return l(this.file.addHelper("get"),[this.isDerivedConstructor?d([h(),t]):t,this.prop(e),h()])},set(e,t){const r=this._getPrototypeOfExpression();return l(this.file.addHelper("set"),[this.isDerivedConstructor?d([h(),r]):r,this.prop(e),t,h(),i.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError(`Destructuring to a super field is not supported yet.`)},call(e,t){return(0,s.default)(this._get(e),h(),t,false)},optionalCall(e,t){return(0,s.default)(this._get(e),c(h()),t,true)},delete(e){if(e.node.computed){return d([l(this.file.addHelper("toPropertyKey"),[c(e.node.property)]),i.template.expression.ast`
|
||
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
`])}else{return i.template.expression.ast`
|
||
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
`}}};const T=Object.assign({},g,{prop(e){const{property:t}=e.node;if(this.memoiser.has(t)){return c(this.memoiser.get(t))}return c(t)},get(e){const{isStatic:t,getSuperRef:r}=this;const{computed:n}=e.node;const s=this.prop(e);let i;if(t){var a;i=(a=r())!=null?a:u(p("Function"),p("prototype"))}else{var o;i=u((o=r())!=null?o:p("Object"),p("prototype"))}return u(i,s,n)},set(e,t){const{computed:r}=e.node;const n=this.prop(e);return o("=",u(h(),n,r),t)},destructureSet(e){const{computed:t}=e.node;const r=this.prop(e);return u(h(),r,t)},call(e,t){return(0,s.default)(this.get(e),h(),t,false)},optionalCall(e,t){return(0,s.default)(this.get(e),h(),t,true)}});class ReplaceSupers{constructor(e){var t;const r=e.methodPath;this.methodPath=r;this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=r.isObjectMethod()||r.node.static||(r.isStaticBlock==null?void 0:r.isStaticBlock());this.isPrivateMethod=r.isPrivate()&&r.isMethod();this.file=e.file;this.constantSuper=(t=e.constantSuper)!=null?t:e.isLoose;this.opts=e}getObjectRef(){return c(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return c(this.opts.superRef);if(this.opts.getSuperRef){return c(this.opts.getSuperRef())}}replace(){const{methodPath:e}=this;if(this.opts.refToPreserve){e.traverse(y,{refName:this.opts.refToPreserve.name})}const t=this.constantSuper?T:this.file.availableHelper("superPropSet")?g:b;m.shouldSkip=t=>{if(t.parentPath===e){if(t.parentKey==="decorators"||t.parentKey==="key"){return true}}};(0,n.default)(e,m,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:t.get},t))}}t["default"]=ReplaceSupers},9102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransparentExprWrapper=isTransparentExprWrapper;t.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;t.skipTransparentExprWrappers=skipTransparentExprWrappers;var n=r(3061);const{isParenthesizedExpression:s,isTSAsExpression:i,isTSNonNullExpression:a,isTSSatisfiesExpression:o,isTSTypeAssertion:l,isTypeCastExpression:c}=n;function isTransparentExprWrapper(e){return i(e)||o(e)||l(e)||a(e)||c(e)||s(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},5241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readCodePoint=readCodePoint;t.readInt=readInt;t.readStringContents=readStringContents;var r=function isDigit(e){return e>=48&&e<=57};const n={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const s={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,n,s,i){const a=r;const o=n;const l=s;let c="";let p=null;let u=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(a,o,l);c+=t.slice(u,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(u,r);break}if(f===92){c+=t.slice(u,r);const a=readEscapedChar(t,r,n,s,e==="template",i);if(a.ch===null&&!p){p={pos:r,lineStart:n,curLine:s}}else{c+=a.ch}({pos:r,lineStart:n,curLine:s}=a);u=r}else if(f===8232||f===8233){++r;++s;n=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(u,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++s;u=n=r}else{i.unterminated(a,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:p,lineStart:n,curLine:s,containsInvalid:!!p}}function isStringEnd(e,t,r,n){if(e==="template"){return t===96||t===36&&r.charCodeAt(n+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,n,s,i){const a=!s;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:n});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let s;({code:s,pos:t}=readHexChar(e,t,r,n,2,false,a,i));return res(s===null?null:String.fromCharCode(s))}case 117:{let s;({code:s,pos:t}=readCodePoint(e,t,r,n,a,i));return res(s===null?null:String.fromCodePoint(s))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++n;case 8232:case 8233:return res("");case 56:case 57:if(s){return res(null)}else{i.strictNumericEscape(t-1,r,n)}default:if(o>=48&&o<=55){const a=t-1;const o=/^[0-7]+/.exec(e.slice(a,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const p=e.charCodeAt(t);if(l!=="0"||p===56||p===57){if(s){return res(null)}else{i.strictNumericEscape(a,r,n)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,n,s,i,a,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,n,16,s,i,false,o,!a));if(c===null){if(a){o.invalidEscapeSequence(l,r,n)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,i,a,o,l,c,p,u,d){const f=t;const h=o===16?n.hex:n.decBinOct;const m=o===16?s.hex:o===10?s.dec:o===8?s.oct:s.bin;let y=false;let g=0;for(let n=0,s=l==null?Infinity:l;n<s;++n){const n=e.charCodeAt(t);let s;if(n===95&&p!=="bail"){const r=e.charCodeAt(t-1);const n=e.charCodeAt(t+1);if(!p){if(d)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,i,a)}else if(Number.isNaN(n)||!m(n)||h.has(r)||h.has(n)){if(d)return{n:null,pos:t};u.unexpectedNumericSeparator(t,i,a)}++t;continue}if(n>=97){s=n-97+10}else if(n>=65){s=n-65+10}else if(r(n)){s=n-48}else{s=Infinity}if(s>=o){if(s<=9&&d){return{n:null,pos:t}}else if(s<=9&&u.invalidDigit(t,i,a,o)){s=0}else if(c){s=0;y=true}else{break}}++t;g=g*o+s}if(t===f||l!=null&&t-f!==l||y){return{n:null,pos:t}}return{n:g,pos:t}}function readCodePoint(e,t,r,n,s,i){const a=e.charCodeAt(t);let o;if(a===123){++t;({code:o,pos:t}=readHexChar(e,t,r,n,e.indexOf("}",t)-t,true,s,i));++t;if(o!==null&&o>1114111){if(s){i.invalidCodePoint(t,r,n)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,n,4,false,s,i))}return{code:o,pos:t}}},7008:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const s=new RegExp("["+r+"]");const i=new RegExp("["+r+n+"]");r=n=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){r+=t[n];if(r>e)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&s.test(String.fromCharCode(e))}return isInAstralSet(e,a)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,a)||isInAstralSet(e,o)}function isIdentifierName(e){let t=true;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){n=65536+((n&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(n)){return false}}else if(!isIdentifierChar(n)){return false}}return!t}},974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return n.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return n.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return n.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return s.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return s.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return s.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return s.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return s.isStrictReservedWord}});var n=r(7008);var s=r(1444)},1444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const n=new Set(r.keyword);const s=new Set(r.strict);const i=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||s.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return n.has(e)}},3648:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findSuggestion=findSuggestion;const{min:r}=Math;function levenshtein(e,t){let n=[],s=[],i,a;const o=e.length,l=t.length;if(!o){return l}if(!l){return o}for(a=0;a<=l;a++){n[a]=a}for(i=1;i<=o;i++){for(s=[i],a=1;a<=l;a++){s[a]=e[i-1]===t[a-1]?n[a-1]:r(n[a-1],n[a],s[a-1])+1}n=s}return s[l]}function findSuggestion(e,t){const n=t.map((t=>levenshtein(t,e)));return t[n.indexOf(r(...n))]}},3146:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"OptionValidator",{enumerable:true,get:function(){return n.OptionValidator}});Object.defineProperty(t,"findSuggestion",{enumerable:true,get:function(){return s.findSuggestion}});var n=r(2020);var s=r(3648)},2020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OptionValidator=void 0;var n=r(3648);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,t){const r=Object.keys(t);for(const t of Object.keys(e)){if(!r.includes(t)){throw new Error(this.formatMessage(`'${t}' is not a valid top-level option.\n- Did you mean '${(0,n.findSuggestion)(t,r)}'?`))}}}validateBooleanOption(e,t,r){if(t===undefined){return r}else{this.invariant(typeof t==="boolean",`'${e}' option must be a boolean.`)}return t}validateStringOption(e,t,r){if(t===undefined){return r}else{this.invariant(typeof t==="string",`'${e}' option must be a string.`)}return t}invariant(e,t){if(!e){throw new Error(this.formatMessage(t))}}formatMessage(e){return`${this.descriptor}: ${e}`}}t.OptionValidator=OptionValidator},3017:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(5326);function helper(e,t,r){return Object.freeze({minVersion:e,ast:()=>n.default.program.ast(t,{preserveComments:true}),metadata:r})}const s=t["default"]={__proto__:null,OverloadYield:helper("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{}}),applyDecoratedDescriptor:helper("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{}}),applyDecs2311:helper("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function b(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function applyDec(e,t,n,r,o,i,u,s,f,l,p){function d(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],w=!u,D=1===o,S=3===o,j=4===o,E=2===o;function I(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!w){var P={},k=[],F=S?"get":j||D?"set":"value";if(f?(l||D?P={get:setFunctionName((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:P[F]=v,l||setFunctionName(P[F],r,E?"":F)):l||(P=Object.getOwnPropertyDescriptor(e,r)),!l&&!f){if((c=y[+s][r])&&7!=(c^o))throw Error("Decorating two elements with the same name ("+P[F].name+") is not supported yet");y[+s][r]=o<3?1:o}}for(var N=e,O=h.length-1;O>=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i<n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}',{globals:["Symbol","Object","TypeError","Error"],locals:{applyDecs2311:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2311",dependencies:{checkInRHS:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.consequent.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.alternate.callee"]}}),arrayLikeToArray:helper("7.9.0","function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}",{globals:["Array"],locals:{_arrayLikeToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayLikeToArray",dependencies:{}}),arrayWithHoles:helper("7.0.0-beta.0","function _arrayWithHoles(r){if(Array.isArray(r))return r}",{globals:["Array"],locals:{_arrayWithHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithHoles",dependencies:{}}),arrayWithoutHoles:helper("7.0.0-beta.0","function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}",{globals:["Array"],locals:{_arrayWithoutHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithoutHoles",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.argument.callee"]}}),assertClassBrand:helper("7.24.0",'function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}',{globals:["TypeError"],locals:{_assertClassBrand:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertClassBrand",dependencies:{}}),assertThisInitialized:helper("7.0.0-beta.0","function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}",{globals:["ReferenceError"],locals:{_assertThisInitialized:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertThisInitialized",dependencies:{}}),asyncGeneratorDelegate:helper("7.0.0-beta.0",'function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise((function(n){n(t[e](r))})),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}',{globals:["Promise","Symbol"],locals:{_asyncGeneratorDelegate:["body.0.id"]},exportBindingAssignments:[],exportName:"_asyncGeneratorDelegate",dependencies:{OverloadYield:["body.0.body.body.1.body.body.0.argument.expressions.2.properties.1.value.callee"]}}),asyncIterator:helper("7.15.9",'function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then((function(r){return{value:r,done:n}}))}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}',{globals:["Symbol","TypeError","Object","Promise"],locals:{_asyncIterator:["body.0.id"],AsyncFromSyncIterator:["body.1.id","body.0.body.body.1.body.body.1.consequent.argument.callee","body.1.body.body.1.argument.expressions.1.left.object","body.1.body.body.1.argument.expressions.2.callee","body.1.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:[],exportName:"_asyncIterator",dependencies:{}}),asyncToGenerator:helper("7.0.0-beta.0",'function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}',{globals:["Promise"],locals:{asyncGeneratorStep:["body.0.id","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.1.body.body.0.expression.callee","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.2.body.body.0.expression.callee"],_asyncToGenerator:["body.1.id"]},exportBindingAssignments:[],exportName:"_asyncToGenerator",dependencies:{}}),awaitAsyncGenerator:helper("7.0.0-beta.0","function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}",{globals:[],locals:{_awaitAsyncGenerator:["body.0.id"]},exportBindingAssignments:[],exportName:"_awaitAsyncGenerator",dependencies:{OverloadYield:["body.0.body.body.0.argument.callee"]}}),callSuper:helper("7.23.8","function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Reflect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}",{globals:["Reflect"],locals:{_callSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_callSuper",dependencies:{getPrototypeOf:["body.0.body.body.0.argument.expressions.0.right.callee","body.0.body.body.0.argument.expressions.1.arguments.1.consequent.arguments.2.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.argument.expressions.1.arguments.1.test.callee"],possibleConstructorReturn:["body.0.body.body.0.argument.expressions.1.callee"]}}),checkInRHS:helper("7.20.5",'function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of \'in\' should be an object, got "+(null!==e?typeof e:"null"));return e}',{globals:["Object","TypeError"],locals:{_checkInRHS:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkInRHS",dependencies:{}}),checkPrivateRedeclaration:helper("7.14.1",'function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}',{globals:["TypeError"],locals:{_checkPrivateRedeclaration:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkPrivateRedeclaration",dependencies:{}}),classCallCheck:helper("7.0.0-beta.0",'function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}',{globals:["TypeError"],locals:{_classCallCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCallCheck",dependencies:{}}),classNameTDZError:helper("7.0.0-beta.0","function _classNameTDZError(e){throw new ReferenceError('Class \"'+e+'\" cannot be referenced in computed property keys.')}",{globals:["ReferenceError"],locals:{_classNameTDZError:["body.0.id"]},exportBindingAssignments:[],exportName:"_classNameTDZError",dependencies:{}}),classPrivateFieldGet2:helper("7.24.0","function _classPrivateFieldGet2(s,a){return s.get(assertClassBrand(s,a))}",{globals:[],locals:{_classPrivateFieldGet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]}}),classPrivateFieldInitSpec:helper("7.14.1","function _classPrivateFieldInitSpec(e,t,a){checkPrivateRedeclaration(e,t),t.set(e,a)}",{globals:[],locals:{_classPrivateFieldInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]}}),classPrivateFieldLooseBase:helper("7.0.0-beta.0",'function _classPrivateFieldBase(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}',{globals:["TypeError"],locals:{_classPrivateFieldBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldBase",dependencies:{}}),classPrivateFieldLooseKey:helper("7.0.0-beta.0",'var id=0;function _classPrivateFieldKey(e){return"__private_"+id+++"_"+e}',{globals:[],locals:{id:["body.0.declarations.0.id","body.1.body.body.0.argument.left.left.right.argument","body.1.body.body.0.argument.left.left.right.argument"],_classPrivateFieldKey:["body.1.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldKey",dependencies:{}}),classPrivateFieldSet2:helper("7.24.0","function _classPrivateFieldSet2(s,a,r){return s.set(assertClassBrand(s,a),r),r}",{globals:[],locals:{_classPrivateFieldSet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]}}),classPrivateGetter:helper("7.24.0","function _classPrivateGetter(s,r,a){return a(assertClassBrand(s,r))}",{globals:[],locals:{_classPrivateGetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateGetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]}}),classPrivateMethodInitSpec:helper("7.14.1","function _classPrivateMethodInitSpec(e,a){checkPrivateRedeclaration(e,a),a.add(e)}",{globals:[],locals:{_classPrivateMethodInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]}}),classPrivateSetter:helper("7.24.0","function _classPrivateSetter(s,r,a,t){return r(assertClassBrand(s,a),t),t}",{globals:[],locals:{_classPrivateSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateSetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]}}),classStaticPrivateMethodGet:helper("7.3.2","function _classStaticPrivateMethodGet(s,a,t){return assertClassBrand(a,s),t}",{globals:[],locals:{_classStaticPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),construct:helper("7.0.0-beta.0","function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}",{globals:["Reflect"],locals:{_construct:["body.0.id"]},exportBindingAssignments:[],exportName:"_construct",dependencies:{isNativeReflectConstruct:["body.0.body.body.0.test.callee"],setPrototypeOf:["body.0.body.body.4.argument.expressions.0.right.callee"]}}),createClass:helper("7.0.0-beta.0",'function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}',{globals:["Object"],locals:{_defineProperties:["body.0.id","body.1.body.body.0.argument.expressions.0.right.callee","body.1.body.body.0.argument.expressions.1.right.callee"],_createClass:["body.1.id"]},exportBindingAssignments:[],exportName:"_createClass",dependencies:{toPropertyKey:["body.0.body.body.0.body.body.1.expression.expressions.3.arguments.1.callee"]}}),createForOfIteratorHelper:helper("7.9.0",'function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function(){};return{s:F,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]}}),createForOfIteratorHelperLoose:helper("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]}}),createSuper:helper("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]}}),decorate:helper("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n<i.length;n++)o=i[n](o);var s=r((function(e){o.initializeInstanceElements(e,a.elements)}),t),a=o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),e);return o.initializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var o=r.placement;if(r.kind===i&&("static"===o||"prototype"===o)){var n="static"===o?e:t;this.defineClassElement(n,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!_hasDecorators(e))return t.push(e);var r=this.decorateElement(e,o);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var n=this.decorateConstructor(t,r);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],o=e.decorators,n=o.length-1;n>=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return toArray(e).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this)},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError(\'An element descriptor\\\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "\'+r+\'"\');var t=toPropertyKey(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError(\'An element descriptor\\\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "\'+i+\'"\');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:r,key:t,placement:i,descriptor:Object.assign({},o)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_optionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError(\'A class descriptor\\\'s .kind property must be "class", but a decorator created a class descriptor with .kind "\'+r+\'"\');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can\'t have a ."+r+" property.")}};return e}function _createElementDescriptor(e){var r,t=toPropertyKey(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var r=[],isSameElement=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},t=0;t<e.length;t++){var i,o=e[t];if("method"===o.kind&&(i=r.find(isSameElement)))if(_isDataDescriptor(o.descriptor)||_isDataDescriptor(i.descriptor)){if(_hasDecorators(o)||_hasDecorators(i))throw new ReferenceError("Duplicated methods ("+o.key+") can\'t be decorated.");i.descriptor=o.descriptor}else{if(_hasDecorators(o)){if(_hasDecorators(i))throw new ReferenceError("Decorators can\'t be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}_coalesceGetterSetter(o,i)}else r.push(o)}return r}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected \'"+r+"\' to be a function");return t}',{globals:["Object","TypeError","Symbol","ReferenceError"],locals:{_decorate:["body.0.id"],_getDecoratorsApi:["body.1.id","body.0.body.body.0.declarations.0.init.callee","body.1.body.body.0.expression.left"],_createElementDescriptor:["body.2.id","body.0.body.body.2.declarations.1.init.arguments.0.arguments.0.arguments.0"],_coalesceGetterSetter:["body.3.id","body.4.body.body.0.body.body.1.consequent.alternate.body.1.expression.callee"],_coalesceClassElements:["body.4.id","body.0.body.body.2.declarations.1.init.arguments.0.callee"],_hasDecorators:["body.5.id","body.1.body.body.1.declarations.0.init.properties.4.value.body.body.1.test.expressions.1.arguments.0.body.body.0.test.argument.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.left.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.right.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.test.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.consequent.body.0.test.callee"],_isDataDescriptor:["body.6.id","body.4.body.body.0.body.body.1.consequent.test.left.callee","body.4.body.body.0.body.body.1.consequent.test.right.callee"],_optionalCallableProperty:["body.7.id","body.1.body.body.1.declarations.0.init.properties.11.value.body.body.0.argument.properties.1.value.callee","body.1.body.body.1.declarations.0.init.properties.13.value.body.body.3.declarations.0.init.callee"]},exportBindingAssignments:[],exportName:"_decorate",dependencies:{toArray:["body.1.body.body.1.declarations.0.init.properties.9.value.body.body.0.consequent.argument.callee.object.callee"],toPropertyKey:["body.1.body.body.1.declarations.0.init.properties.10.value.body.body.2.declarations.0.init.callee","body.2.body.body.0.declarations.1.init.callee"]}}),defaults:helper("7.0.0-beta.0","function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}",{globals:["Object"],locals:{_defaults:["body.0.id"]},exportBindingAssignments:[],exportName:"_defaults",dependencies:{}}),defineAccessor:helper("7.20.7","function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}",{globals:["Object"],locals:{_defineAccessor:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineAccessor",dependencies:{}}),defineProperty:helper("7.0.0-beta.0","function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}",{globals:["Object"],locals:{_defineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineProperty",dependencies:{toPropertyKey:["body.0.body.body.0.argument.expressions.0.test.left.right.callee"]}}),extends:helper("7.0.0-beta.0","function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}",{globals:["Object"],locals:{_extends:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_extends",dependencies:{}}),get:helper("7.0.0-beta.0",'function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,arguments)}',{globals:["Reflect","Object"],locals:{_get:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_get",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.0.init.callee"]}}),getPrototypeOf:helper("7.0.0-beta.0","function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}",{globals:["Object"],locals:{_getPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_getPrototypeOf",dependencies:{}}),identity:helper("7.17.0","function _identity(t){return t}",{globals:[],locals:{_identity:["body.0.id"]},exportBindingAssignments:[],exportName:"_identity",dependencies:{}}),importDeferProxy:helper("7.23.0","function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}",{globals:["Proxy","Reflect"],locals:{_importDeferProxy:["body.0.id"]},exportBindingAssignments:[],exportName:"_importDeferProxy",dependencies:{}}),inherits:helper("7.0.0-beta.0",'function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&setPrototypeOf(t,e)}',{globals:["TypeError","Object"],locals:{_inherits:["body.0.id"]},exportBindingAssignments:[],exportName:"_inherits",dependencies:{setPrototypeOf:["body.0.body.body.1.expression.expressions.2.right.callee"]}}),inheritsLoose:helper("7.0.0-beta.0","function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,setPrototypeOf(t,o)}",{globals:["Object"],locals:{_inheritsLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_inheritsLoose",dependencies:{setPrototypeOf:["body.0.body.body.0.expression.expressions.2.callee"]}}),initializerDefineProperty:helper("7.0.0-beta.0","function _initializerDefineProperty(e,i,r,l){r&&Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0})}",{globals:["Object"],locals:{_initializerDefineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerDefineProperty",dependencies:{}}),initializerWarningHelper:helper("7.0.0-beta.0",'function _initializerWarningHelper(r,e){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}',{globals:["Error"],locals:{_initializerWarningHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerWarningHelper",dependencies:{}}),instanceof:helper("7.0.0-beta.0",'function _instanceof(n,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](n):n instanceof e}',{globals:["Symbol"],locals:{_instanceof:["body.0.id"]},exportBindingAssignments:[],exportName:"_instanceof",dependencies:{}}),interopRequireDefault:helper("7.0.0-beta.0","function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}",{globals:[],locals:{_interopRequireDefault:["body.0.id"]},exportBindingAssignments:[],exportName:"_interopRequireDefault",dependencies:{}}),interopRequireWildcard:helper("7.14.0",'function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}',{globals:["WeakMap","Object"],locals:{_getRequireWildcardCache:["body.0.id","body.1.body.body.2.declarations.0.init.callee","body.0.body.body.2.argument.callee.left"],_interopRequireWildcard:["body.1.id"]},exportBindingAssignments:[],exportName:"_interopRequireWildcard",dependencies:{}}),isNativeFunction:helper("7.0.0-beta.0",'function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}',{globals:["Function"],locals:{_isNativeFunction:["body.0.id"]},exportBindingAssignments:[],exportName:"_isNativeFunction",dependencies:{}}),isNativeReflectConstruct:helper("7.9.0","function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}",{globals:["Boolean","Reflect"],locals:{_isNativeReflectConstruct:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_isNativeReflectConstruct",dependencies:{}}),iterableToArray:helper("7.0.0-beta.0",'function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}',{globals:["Symbol","Array"],locals:{_iterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArray",dependencies:{}}),iterableToArrayLimit:helper("7.0.0-beta.0",'function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}',{globals:["Symbol","Object"],locals:{_iterableToArrayLimit:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArrayLimit",dependencies:{}}),jsx:helper("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;function _createRawReactElement(e,r,E,l){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,n=arguments.length-3;if(r||0===n||(r={children:void 0}),1===n)r.children=l;else if(n>1){for(var t=Array(n),f=0;f<n;f++)t[f]=arguments[f+3];r.children=t}if(r&&o)for(var i in o)void 0===r[i]&&(r[i]=o[i]);else r||(r=o||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===E?null:""+E,ref:null,props:r,_owner:null}}',{globals:["Symbol","Array"],locals:{REACT_ELEMENT_TYPE:["body.0.declarations.0.id","body.1.body.body.0.expression.left","body.1.body.body.4.argument.properties.0.value","body.1.body.body.0.expression.right.left"],_createRawReactElement:["body.1.id"]},exportBindingAssignments:[],exportName:"_createRawReactElement",dependencies:{}}),maybeArrayLike:helper("7.9.0",'function _maybeArrayLike(r,a,e){if(a&&!Array.isArray(a)&&"number"==typeof a.length){var y=a.length;return arrayLikeToArray(a,void 0!==e&&e<y?e:y)}return r(a,e)}',{globals:["Array"],locals:{_maybeArrayLike:["body.0.id"]},exportBindingAssignments:[],exportName:"_maybeArrayLike",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.1.argument.callee"]}}),newArrowCheck:helper("7.0.0-beta.0",'function _newArrowCheck(n,r){if(n!==r)throw new TypeError("Cannot instantiate an arrow function")}',{globals:["TypeError"],locals:{_newArrowCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_newArrowCheck",dependencies:{}}),nonIterableRest:helper("7.0.0-beta.0",'function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableRest:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableRest",dependencies:{}}),nonIterableSpread:helper("7.0.0-beta.0",'function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableSpread",dependencies:{}}),nullishReceiverError:helper("7.22.6",'function _nullishReceiverError(r){throw new TypeError("Cannot set property of null or undefined.")}',{globals:["TypeError"],locals:{_nullishReceiverError:["body.0.id"]},exportBindingAssignments:[],exportName:"_nullishReceiverError",dependencies:{}}),objectDestructuringEmpty:helper("7.0.0-beta.0",'function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+t)}',{globals:["TypeError"],locals:{_objectDestructuringEmpty:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectDestructuringEmpty",dependencies:{}}),objectSpread2:helper("7.5.0","function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}",{globals:["Object"],locals:{ownKeys:["body.0.id","body.1.body.body.0.body.body.1.expression.consequent.callee.object.callee","body.1.body.body.0.body.body.1.expression.alternate.alternate.callee.object.callee"],_objectSpread2:["body.1.id"]},exportBindingAssignments:[],exportName:"_objectSpread2",dependencies:{defineProperty:["body.1.body.body.0.body.body.1.expression.consequent.arguments.0.body.body.0.expression.callee"]}}),objectWithoutProperties:helper("7.0.0-beta.0","function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}",{globals:["Object"],locals:{_objectWithoutProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutProperties",dependencies:{objectWithoutPropertiesLoose:["body.0.body.body.1.declarations.2.init.callee"]}}),objectWithoutPropertiesLoose:helper("7.0.0-beta.0","function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n]}return t}",{globals:[],locals:{_objectWithoutPropertiesLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutPropertiesLoose",dependencies:{}}),possibleConstructorReturn:helper("7.0.0-beta.0",'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}',{globals:["TypeError"],locals:{_possibleConstructorReturn:["body.0.id"]},exportBindingAssignments:[],exportName:"_possibleConstructorReturn",dependencies:{assertThisInitialized:["body.0.body.body.2.argument.callee"]}}),readOnlyError:helper("7.0.0-beta.0","function _readOnlyError(r){throw new TypeError('\"'+r+'\" is read-only')}",{globals:["TypeError"],locals:{_readOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_readOnlyError",dependencies:{}}),regeneratorRuntime:helper("7.18.0",'function _regeneratorRuntime(){"use strict";\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a \'"+n+"\' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){return this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}return next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}',{globals:["Object","Symbol","Error","TypeError","isNaN","Promise"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_regeneratorRuntime",dependencies:{}}),set:helper("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]}}),setFunctionName:helper("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{}}),setPrototypeOf:helper("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{}}),skipFirstGeneratorNext:helper("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{}}),slicedToArray:helper("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),superPropBase:helper("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]}}),superPropGet:helper("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]}}),superPropSet:helper("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]}}),taggedTemplateLiteral:helper("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{}}),taggedTemplateLiteralLoose:helper("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{}}),tdz:helper("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{}}),temporalRef:helper("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]}}),temporalUndefined:helper("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{}}),toArray:helper("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]}}),toConsumableArray:helper("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]}}),toPrimitive:helper("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{}}),toPropertyKey:helper("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]}}),toSetter:helper("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{}}),tsRewriteRelativeImportExtensions:helper("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t})):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{}}),typeof:helper("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{}}),unsupportedIterableToArray:helper("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]}}),usingCtx:helper("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{}}),wrapAsyncGenerator:helper("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]}}),wrapNativeSuper:helper("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]}}),wrapRegExp:helper("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r}),Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>|$)/g,(function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]}}),writeOnlyError:helper("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{}})};{Object.assign(s,{AwaitValue:helper("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{}}),applyDecs:helper("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMetadataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&old_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.init)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberDec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPropertyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_memberDec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p);else for(var m=h.length-1;m>=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r<g.length;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.value=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===o?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(var i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a<t.length;a++)t[a].call(e);return e}))}function old_applyClassDecs(e,t,a,r){if(r.length>0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e<o.length;e++)o[e].call(i)}))}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyClassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}',{globals:["Object","Map","Symbol","Array","Error","TypeError","console"],locals:{old_createMetadataMethodsForProperty:["body.0.id","body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],old_convertMetadataMapToFinal:["body.1.id","body.13.body.body.1.argument.expressions.1.callee","body.13.body.body.1.argument.expressions.3.callee"],old_createAddInitializerMethod:["body.2.id","body.3.body.body.3.test.expressions.0.right.right.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],old_memberDec:["body.3.id","body.9.body.body.1.consequent.expression.left.right.right.callee","body.9.body.body.1.alternate.body.body.1.expression.left.right.right.callee"],old_assertNotFinished:["body.4.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee","body.2.body.body.0.argument.body.body.0.expression.expressions.0.callee"],old_assertMetadataKey:["body.5.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],old_assertCallable:["body.6.id","body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee","body.7.body.body.1.consequent.body.1.expression.expressions.0.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.2.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.3.right.callee"],old_assertValidReturnValue:["body.7.id","body.9.body.body.1.consequent.expression.right.expressions.0.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.0.callee","body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressions.0.callee"],old_getInit:["body.8.id","body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],old_applyMemberDec:["body.9.id","body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],old_applyMemberDecs:["body.10.id","body.13.body.body.1.argument.expressions.0.callee"],old_pushInitializers:["body.11.id","body.10.body.body.1.expression.expressions.0.callee","body.10.body.body.1.expression.expressions.1.callee"],old_applyClassDecs:["body.12.id","body.13.body.body.1.argument.expressions.2.callee"],applyDecs:["body.13.id"]},exportBindingAssignments:[],exportName:"applyDecs",dependencies:{setFunctionName:["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]}}),applyDecs2203:helper("7.19.0",'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=function(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{get:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.push(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push((function(e,t){return u.get.call(e,t)})),e.push((function(e,t){return u.set.call(e,t)}))):2===n?e.push(u):e.push((function(e,t){return u.call(e,t)})):Object.defineProperty(t,a,c))}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){var a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e<a.length;e++)a[e].call(n)}))}}(a,e,r),a}}var applyDecs2203Impl;function applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203Factory:["body.0.id","body.2.body.body.0.argument.callee.right.right.callee"],applyDecs2203Impl:["body.1.declarations.0.id","body.2.body.body.0.argument.callee.right.left","body.2.body.body.0.argument.callee.left"],applyDecs2203:["body.2.id"]},exportBindingAssignments:[],exportName:"applyDecs2203",dependencies:{}}),applyDecs2203R:helper("7.20.0",'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddInitializerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!==a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFunctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===a?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203RFactory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2203R:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2203R",dependencies:{setFunctionName:["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]}}),applyDecs2301:helper("7.21.0",'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="field"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPropertyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var m=g.length-1;m>=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n<I.length;n++)r=I[n].call(e,r);return r}}else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),s?1===a?(e.push((function(e,t){return p.get.call(e,t)})),e.push((function(e,t){return p.set.call(e,t)}))):2===a?e.push(p):e.push((function(e,t){return p.call(e,t)})):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2301Factory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2301:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2301",dependencies:{checkInRHS:["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]}}),applyDecs2305:helper("7.21.0",'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName((function(){return g(this)}),n,"get"),set:function(e){t[4](this,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var d=p[1],h=p[2],m=p.length>3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]}}),classApplyDescriptorDestructureSet:helper("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{}}),classApplyDescriptorGet:helper("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{}}),classApplyDescriptorSet:helper("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{}}),classCheckPrivateStaticAccess:helper("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]}}),classCheckPrivateStaticFieldDescriptor:helper("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{}}),classExtractFieldDescriptor:helper("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]}}),classPrivateFieldDestructureSet:helper("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldGet:helper("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateFieldSet:helper("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]}}),classPrivateMethodGet:helper("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]}}),classPrivateMethodSet:helper("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{}}),classStaticPrivateFieldDestructureSet:helper("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecGet:helper("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateFieldSpecSet:helper("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]}}),classStaticPrivateMethodSet:helper("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{}}),defineEnumerableProperties:helper("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',{globals:["Object"],locals:{_defineEnumerableProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineEnumerableProperties",dependencies:{}}),dispose:helper("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{}}),objectSpread:helper("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach((function(r){defineProperty(e,r,t[r])}))}return e}',{globals:["Object"],locals:{_objectSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectSpread",dependencies:{defineProperty:["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]}}),using:helper("7.22.0",'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}',{globals:["Object","TypeError","Symbol"],locals:{_using:["body.0.id"]},exportBindingAssignments:[],exportName:"_using",dependencies:{}})})}},8796:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.get=get;t.getDependencies=getDependencies;t.list=void 0;t.minVersion=minVersion;var n=r(3061);var s=r(3017);const{cloneNode:i,identifier:a}=n;function deep(e,t,r){try{const n=t.split(".");let s=n.shift();while(n.length>0){e=e[s];s=n.shift()}if(arguments.length>2){e[s]=r}else{return e[s]}}catch(e){e.message+=` (when accessing ${t})`;throw e}}function permuteHelperAST(e,t,r,n,s,o){const{locals:l,dependencies:c,exportBindingAssignments:p,exportName:u}=t;const d=new Set(n||[]);if(r)d.add(r);for(const[t,n]of(Object.entries||(e=>Object.keys(e).map((t=>[t,e[t]]))))(l)){let s=t;if(r&&t===u){s=r}else{while(d.has(s))s="_"+s}if(s!==t){for(const t of n){deep(e,t,a(s))}}}for(const[t,r]of(Object.entries||(e=>Object.keys(e).map((t=>[t,e[t]]))))(c)){const n=typeof s==="function"&&s(t)||a(t);for(const t of r){deep(e,t,i(n))}}o==null||o(e,u,(t=>{p.forEach((r=>deep(e,r,t(deep(e,r)))))}))}const o=Object.create(null);function loadHelper(e){if(!o[e]){const t=s.default[e];if(!t){throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e})}o[e]={minVersion:t.minVersion,build(e,r,n,s){const i=t.ast();permuteHelperAST(i,t.metadata,r,n,e,s);return{nodes:i.body,globals:t.metadata.globals}},getDependencies(){return Object.keys(t.metadata.dependencies)}}}return o[e]}function get(e,t,r,n,s){{if(typeof r==="object"){const e=r;if((e==null?void 0:e.type)==="Identifier"){r=e.name}else{r=undefined}}}return loadHelper(e).build(t,r,n,s)}function minVersion(e){return loadHelper(e).minVersion}function getDependencies(e){return loadHelper(e).getDependencies()}{t.ensure=e=>{loadHelper(e)}}const l=t.list=Object.keys(s.default).map((e=>e.replace(/^_/,"")));var c=t["default"]=get},9849:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}class Position{constructor(e,t,r){this.line=void 0;this.column=void 0;this.index=void 0;this.line=e;this.column=t;this.index=r}}class SourceLocation{constructor(e,t){this.start=void 0;this.end=void 0;this.filename=void 0;this.identifierName=void 0;this.start=e;this.end=t}}function createPositionWithColumnOffset(e,t){const{line:r,column:n,index:s}=e;return new Position(r,n+t,s+t)}const r="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var n={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:r},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:r}};const s={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"};const toNodeDescription=e=>e.type==="UpdateExpression"?s.UpdateExpression[`${e.prefix}`]:s[e.type];var i={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:`\`import()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};var a={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."};const o=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var l=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const c=["message"];function defineHidden(e,t,r){Object.defineProperty(e,t,{enumerable:false,configurable:true,value:r})}function toParseErrorConstructor({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){const s=r==="MissingPlugin"||r==="MissingOneOfPlugins";{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(e[r]){r=e[r]}}return function constructor(i,a){const o=new SyntaxError;o.code=t;o.reasonCode=r;o.loc=i;o.pos=i.index;o.syntaxPlugin=n;if(s){o.missingPlugin=a.missingPlugin}defineHidden(o,"clone",(function clone(e={}){var t;const{line:r,column:n,index:s}=(t=e.loc)!=null?t:i;return constructor(new Position(r,n,s),Object.assign({},a,e.details))}));defineHidden(o,"details",a);Object.defineProperty(o,"message",{configurable:true,get(){const t=`${e(a)} (${i.line}:${i.column})`;this.message=t;return t},set(e){Object.defineProperty(this,"message",{value:e,writable:true})}});return o}}function ParseErrorEnum(e,t){if(Array.isArray(e)){return t=>ParseErrorEnum(t,e[0])}const r={};for(const n of Object.keys(e)){const s=e[n];const i=typeof s==="string"?{message:()=>s}:typeof s==="function"?{message:s}:s,{message:a}=i,o=_objectWithoutPropertiesLoose(i,c);const l=typeof a==="string"?()=>a:a;r[n]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}const p=Object.assign({},ParseErrorEnum(n),ParseErrorEnum(i),ParseErrorEnum(a),ParseErrorEnum`pipelineOperator`(l));function createDefaultOptions(){return{sourceType:"script",sourceFilename:undefined,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowNewTargetOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,allowYieldOutsideFunction:false,plugins:[],strictMode:null,ranges:false,tokens:false,createImportExpressions:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true,annexB:true}}function getOptions(e){const t=createDefaultOptions();if(e==null){return t}if(e.annexB!=null&&e.annexB!==false){throw new Error("The `annexB` option can only be set to `false`.")}for(const r of Object.keys(t)){if(e[r]!=null)t[r]=e[r]}if(t.startLine===1){if(e.startIndex==null&&t.startColumn>0){t.startIndex=t.startColumn}else if(e.startColumn==null&&t.startIndex>0){t.startColumn=t.startIndex}}else if(e.startColumn==null||e.startIndex==null){if(e.startIndex!=null){throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}}return t}const{defineProperty:u}=Object;const toUnenumerable=(e,t)=>{if(e){u(e,t,{enumerable:false,value:e[t]})}};function toESTreeLocation(e){toUnenumerable(e.loc.start,"index");toUnenumerable(e.loc.end,"index");return e}var estree=e=>class ESTreeParserMixin extends e{parse(){const e=toESTreeLocation(super.parse());if(this.optionFlags&256){e.tokens=e.tokens.map(toESTreeLocation)}return e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const n=this.estreeParseLiteral(r);n.regex={pattern:e,flags:t};return n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);r.bigint=String(r.value||e);return r}parseDecimalLiteral(e){const t=null;const r=this.estreeParseLiteral(t);r.decimal=String(r.value||e);return r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){const t=e.value;delete e.value;t.type="Literal";t.raw=t.extra.raw;t.value=t.extra.expressionValue;const r=e;r.type="ExpressionStatement";r.expression=t;r.directive=t.extra.rawValue;delete t.extra;return r}initFunction(e,t){super.initFunction(e,t);e.expression=false}checkDeclaration(e){if(e!=null&&this.isObjectProperty(e)){this.checkDeclaration(e.value)}else{super.checkDeclaration(e)}}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,r,n,s){super.parseBlockBody(e,t,r,n,s);const i=e.directives.map((e=>this.directiveToStmt(e)));e.body=i.concat(e.body);delete e.directives}parsePrivateName(){const e=super.parsePrivateName();{if(!this.getPluginOption("estree","classFeatures")){return e}}return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);e=e;delete e.id;e.name=t;e.type="PrivateIdentifier";return e}isPrivateName(e){{if(!this.getPluginOption("estree","classFeatures")){return super.isPrivateName(e)}}return e.type==="PrivateIdentifier"}getPrivateNameSV(e){{if(!this.getPluginOption("estree","classFeatures")){return super.getPrivateNameSV(e)}}return e.name}parseLiteral(e,t){const r=super.parseLiteral(e,t);r.raw=r.extra.raw;delete r.extra;return r}parseFunctionBody(e,t,r=false){super.parseFunctionBody(e,t,r);e.expression=e.body.type!=="BlockStatement"}parseMethod(e,t,r,n,s,i,a=false){let o=this.startNode();o.kind=e.kind;o=super.parseMethod(o,t,r,n,s,i,a);o.type="FunctionExpression";delete o.kind;e.value=o;const{typeParameters:l}=e;if(l){delete e.typeParameters;o.typeParameters=l;this.resetStartLocationFromNode(o,l)}if(i==="ClassPrivateMethod"){e.computed=false}return this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){if(e.type==="Literal")return e.value==="constructor";return super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}{t.type="PropertyDefinition"}return t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}{t.type="PropertyDefinition"}t.computed=false;return t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);{if(!this.getPluginOption("estree","classFeatures")){return t}}t.type="AccessorProperty";return t}parseObjectMethod(e,t,r,n,s){const i=super.parseObjectMethod(e,t,r,n,s);if(i){i.type="Property";if(i.kind==="method"){i.kind="init"}i.shorthand=false}return i}parseObjectProperty(e,t,r,n){const s=super.parseObjectProperty(e,t,r,n);if(s){s.kind="init";s.type="Property"}return s}isValidLVal(e,t,r){return e==="Property"?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){if(e!=null&&this.isObjectProperty(e)){return this.isAssignable(e.value,t)}return super.isAssignable(e,t)}toAssignable(e,t=false){if(e!=null&&this.isObjectProperty(e)){const{key:r,value:n}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(n,t)}else{super.toAssignable(e,t)}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="Property"&&(e.kind==="get"||e.kind==="set")){this.raise(p.PatternHasAccessor,e.key)}else if(e.type==="Property"&&e.method){this.raise(p.PatternHasMethod,e.key)}else{super.toAssignableObjectExpressionProp(e,t,r)}}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);if(r.callee.type==="Import"){var n,s;r.type="ImportExpression";r.source=r.arguments[0];r.options=(n=r.arguments[1])!=null?n:null;r.attributes=(s=r.arguments[1])!=null?s:null;delete r.arguments;delete r.callee}return r}toReferencedArguments(e){if(e.type==="ImportExpression"){return}super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc;const n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":if(n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"){n.type="ExportAllDeclaration";n.exported=n.specifiers[0].exported;delete n.specifiers}case"ExportDefaultDeclaration":{var s;const{declaration:e}=n;if((e==null?void 0:e.type)==="ClassDeclaration"&&((s=e.decorators)==null?void 0:s.length)>0&&e.start===n.start){this.resetStartLocation(n,r)}}break}return n}parseSubscript(e,t,r,n){const s=super.parseSubscript(e,t,r,n);if(n.optionalChainMember){if(s.type==="OptionalMemberExpression"||s.type==="OptionalCallExpression"){s.type=s.type.substring(8)}if(n.stop){const e=this.startNodeAtNode(s);e.expression=s;return this.finishNode(e,"ChainExpression")}}else if(s.type==="MemberExpression"||s.type==="CallExpression"){s.optional=false}return s}isOptionalMemberExpression(e){if(e.type==="ChainExpression"){return e.expression.type==="MemberExpression"}return super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){if(e.type==="ChainExpression"){e=e.expression}return super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}finishNodeAt(e,t,r){return toESTreeLocation(super.finishNodeAt(e,t,r))}resetStartLocation(e,t){super.resetStartLocation(e,t);toESTreeLocation(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t);toESTreeLocation(e)}};class TokContext{constructor(e,t){this.token=void 0;this.preserveSpace=void 0;this.token=e;this.preserveSpace=!!t}}const d={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",true)};{d.template=new TokContext("`",true)}const f=true;const h=true;const m=true;const y=true;const g=true;const b=true;class ExportedTokenType{constructor(e,t={}){this.label=void 0;this.keyword=void 0;this.beforeExpr=void 0;this.startsExpr=void 0;this.rightAssociative=void 0;this.isLoop=void 0;this.isAssign=void 0;this.prefix=void 0;this.postfix=void 0;this.binop=void 0;this.label=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.rightAssociative=!!t.rightAssociative;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop!=null?t.binop:null;{this.updateContext=null}}}const T=new Map;function createKeyword(e,t={}){t.keyword=e;const r=createToken(e,t);T.set(e,r);return r}function createBinop(e,t){return createToken(e,{beforeExpr:f,binop:t})}let S=-1;const x=[];const E=[];const P=[];const v=[];const A=[];const w=[];function createToken(e,t={}){var r,n,s,i;++S;E.push(e);P.push((r=t.binop)!=null?r:-1);v.push((n=t.beforeExpr)!=null?n:false);A.push((s=t.startsExpr)!=null?s:false);w.push((i=t.prefix)!=null?i:false);x.push(new ExportedTokenType(e,t));return S}function createKeywordLike(e,t={}){var r,n,s,i;++S;T.set(e,S);E.push(e);P.push((r=t.binop)!=null?r:-1);v.push((n=t.beforeExpr)!=null?n:false);A.push((s=t.startsExpr)!=null?s:false);w.push((i=t.prefix)!=null?i:false);x.push(new ExportedTokenType("name",t));return S}const I={bracketL:createToken("[",{beforeExpr:f,startsExpr:h}),bracketHashL:createToken("#[",{beforeExpr:f,startsExpr:h}),bracketBarL:createToken("[|",{beforeExpr:f,startsExpr:h}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:f,startsExpr:h}),braceBarL:createToken("{|",{beforeExpr:f,startsExpr:h}),braceHashL:createToken("#{",{beforeExpr:f,startsExpr:h}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:f,startsExpr:h}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:f}),semi:createToken(";",{beforeExpr:f}),colon:createToken(":",{beforeExpr:f}),doubleColon:createToken("::",{beforeExpr:f}),dot:createToken("."),question:createToken("?",{beforeExpr:f}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:f}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:f}),backQuote:createToken("`",{startsExpr:h}),dollarBraceL:createToken("${",{beforeExpr:f,startsExpr:h}),templateTail:createToken("...`",{startsExpr:h}),templateNonTail:createToken("...${",{beforeExpr:f,startsExpr:h}),at:createToken("@"),hash:createToken("#",{startsExpr:h}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:f,isAssign:y}),assign:createToken("_=",{beforeExpr:f,isAssign:y}),slashAssign:createToken("_=",{beforeExpr:f,isAssign:y}),xorAssign:createToken("_=",{beforeExpr:f,isAssign:y}),moduloAssign:createToken("_=",{beforeExpr:f,isAssign:y}),incDec:createToken("++/--",{prefix:g,postfix:b,startsExpr:h}),bang:createToken("!",{beforeExpr:f,prefix:g,startsExpr:h}),tilde:createToken("~",{beforeExpr:f,prefix:g,startsExpr:h}),doubleCaret:createToken("^^",{startsExpr:h}),doubleAt:createToken("@@",{startsExpr:h}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:f,binop:9,prefix:g,startsExpr:h}),modulo:createToken("%",{binop:10,startsExpr:h}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:f,binop:11,rightAssociative:true}),_in:createKeyword("in",{beforeExpr:f,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:f,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:f}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:f}),_else:createKeyword("else",{beforeExpr:f}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:h}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:f}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:f,prefix:g,startsExpr:h}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:f,startsExpr:h}),_this:createKeyword("this",{startsExpr:h}),_super:createKeyword("super",{startsExpr:h}),_class:createKeyword("class",{startsExpr:h}),_extends:createKeyword("extends",{beforeExpr:f}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:h}),_null:createKeyword("null",{startsExpr:h}),_true:createKeyword("true",{startsExpr:h}),_false:createKeyword("false",{startsExpr:h}),_typeof:createKeyword("typeof",{beforeExpr:f,prefix:g,startsExpr:h}),_void:createKeyword("void",{beforeExpr:f,prefix:g,startsExpr:h}),_delete:createKeyword("delete",{beforeExpr:f,prefix:g,startsExpr:h}),_do:createKeyword("do",{isLoop:m,beforeExpr:f}),_for:createKeyword("for",{isLoop:m}),_while:createKeyword("while",{isLoop:m}),_as:createKeywordLike("as",{startsExpr:h}),_assert:createKeywordLike("assert",{startsExpr:h}),_async:createKeywordLike("async",{startsExpr:h}),_await:createKeywordLike("await",{startsExpr:h}),_defer:createKeywordLike("defer",{startsExpr:h}),_from:createKeywordLike("from",{startsExpr:h}),_get:createKeywordLike("get",{startsExpr:h}),_let:createKeywordLike("let",{startsExpr:h}),_meta:createKeywordLike("meta",{startsExpr:h}),_of:createKeywordLike("of",{startsExpr:h}),_sent:createKeywordLike("sent",{startsExpr:h}),_set:createKeywordLike("set",{startsExpr:h}),_source:createKeywordLike("source",{startsExpr:h}),_static:createKeywordLike("static",{startsExpr:h}),_using:createKeywordLike("using",{startsExpr:h}),_yield:createKeywordLike("yield",{startsExpr:h}),_asserts:createKeywordLike("asserts",{startsExpr:h}),_checks:createKeywordLike("checks",{startsExpr:h}),_exports:createKeywordLike("exports",{startsExpr:h}),_global:createKeywordLike("global",{startsExpr:h}),_implements:createKeywordLike("implements",{startsExpr:h}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:h}),_infer:createKeywordLike("infer",{startsExpr:h}),_is:createKeywordLike("is",{startsExpr:h}),_mixins:createKeywordLike("mixins",{startsExpr:h}),_proto:createKeywordLike("proto",{startsExpr:h}),_require:createKeywordLike("require",{startsExpr:h}),_satisfies:createKeywordLike("satisfies",{startsExpr:h}),_keyof:createKeywordLike("keyof",{startsExpr:h}),_readonly:createKeywordLike("readonly",{startsExpr:h}),_unique:createKeywordLike("unique",{startsExpr:h}),_abstract:createKeywordLike("abstract",{startsExpr:h}),_declare:createKeywordLike("declare",{startsExpr:h}),_enum:createKeywordLike("enum",{startsExpr:h}),_module:createKeywordLike("module",{startsExpr:h}),_namespace:createKeywordLike("namespace",{startsExpr:h}),_interface:createKeywordLike("interface",{startsExpr:h}),_type:createKeywordLike("type",{startsExpr:h}),_opaque:createKeywordLike("opaque",{startsExpr:h}),name:createToken("name",{startsExpr:h}),placeholder:createToken("%%",{startsExpr:true}),string:createToken("string",{startsExpr:h}),num:createToken("num",{startsExpr:h}),bigint:createToken("bigint",{startsExpr:h}),decimal:createToken("decimal",{startsExpr:h}),regexp:createToken("regexp",{startsExpr:h}),privateName:createToken("#name",{startsExpr:h}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:true}),jsxTagStart:createToken("jsxTagStart",{startsExpr:true}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenKeywordOrIdentifierIsKeyword(e){return e<=92}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenComesBeforeExpression(e){return v[e]}function tokenCanStartExpression(e){return A[e]}function tokenIsAssignment(e){return e>=29&&e<=33}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsLoop(e){return e>=90&&e<=92}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsOperator(e){return e>=39&&e<=59}function tokenIsPostfix(e){return e===34}function tokenIsPrefix(e){return w[e]}function tokenIsTSTypeOperator(e){return e>=121&&e<=123}function tokenIsTSDeclarationStart(e){return e>=124&&e<=130}function tokenLabelName(e){return E[e]}function tokenOperatorPrecedence(e){return P[e]}function tokenIsRightAssociative(e){return e===57}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return x[e]}{x[8].updateContext=e=>{e.pop()};x[5].updateContext=x[7].updateContext=x[23].updateContext=e=>{e.push(d.brace)};x[22].updateContext=e=>{if(e[e.length-1]===d.template){e.pop()}else{e.push(d.template)}};x[143].updateContext=e=>{e.push(d.j_expr,d.j_oTag)}}let C="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let O="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const N=new RegExp("["+C+"]");const k=new RegExp("["+C+O+"]");C=O=null;const _=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const D=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){r+=t[n];if(r>e)return false;r+=t[n+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&N.test(String.fromCharCode(e))}return isInAstralSet(e,_)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&k.test(String.fromCharCode(e))}return isInAstralSet(e,_)||isInAstralSet(e,D)}const M={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const L=new Set(M.keyword);const j=new Set(M.strict);const F=new Set(M.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||j.has(e)}function isStrictBindOnlyReservedWord(e){return F.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return L.has(e)}function isIteratorStart(e,t,r){return e===64&&t===64&&isIdentifierStart(r)}const B=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function canBeReservedWord(e){return B.has(e)}class Scope{constructor(e){this.flags=0;this.names=new Map;this.firstLexicalName="";this.flags=e}}class ScopeHandler{constructor(e,t){this.parser=void 0;this.scopeStack=[];this.inModule=void 0;this.undefinedExports=new Map;this.parser=e;this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&128){return true}if(t&(387|64)){return false}}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){const e=this.scopeStack.pop();return e.flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(2|128)||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let n=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(n,e,t,r);let s=n.names.get(e)||0;if(t&16){s=s|4}else{if(!n.firstLexicalName){n.firstLexicalName=e}s=s|2}n.names.set(e,s);if(t&8){this.maybeExportDefined(n,e)}}else if(t&4){for(let s=this.scopeStack.length-1;s>=0;--s){n=this.scopeStack[s];this.checkRedeclarationInScope(n,e,t,r);n.names.set(e,(n.names.get(e)||0)|1);this.maybeExportDefined(n,e);if(n.flags&387)break}}if(this.parser.inModule&&n.flags&1){this.undefinedExports.delete(e)}}maybeExportDefined(e,t){if(this.parser.inModule&&e.flags&1){this.undefinedExports.delete(t)}}checkRedeclarationInScope(e,t,r,n){if(this.isRedeclaredInScope(e,t,r)){this.parser.raise(p.VarRedeclaration,n,{identifierName:t})}}isRedeclaredInScope(e,t,r){if(!(r&1))return false;if(r&8){return e.names.has(t)}const n=e.names.get(t);if(r&16){return(n&2)>0||!this.treatFunctionsAsVarInScope(e)&&(n&1)>0}return(n&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(n&4)>0}checkLocalExport(e){const{name:t}=e;const r=this.scopeStack[0];if(!r.names.has(t)){this.undefinedExports.set(t,e.loc.start)}}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&387){return t}}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&(387|64)&&!(t&4)){return t}}}}class FlowScope extends Scope{constructor(...e){super(...e);this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,t,r){const n=this.currentScope();if(t&2048){this.checkRedeclarationInScope(n,e,t,r);this.maybeExportDefined(n,e);n.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return true;if(r&2048&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(r&4)>0||(r&2)>0}return false}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name)){super.checkLocalExport(e)}}}class BaseParser{constructor(){this.sawUnambiguousESM=false;this.ambiguousScriptDifferentAst=false}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==="string"){return this.plugins.has(e)}else{const[t,r]=e;if(!this.hasPlugin(t)){return false}const n=this.plugins.get(t);for(const e of Object.keys(r)){if((n==null?void 0:n[e])!==r[e]){return false}}return true}}getPluginOption(e,t){var r;return(r=this.plugins.get(e))==null?void 0:r[t]}}function setTrailingComments(e,t){if(e.trailingComments===undefined){e.trailingComments=t}else{e.trailingComments.unshift(...t)}}function setLeadingComments(e,t){if(e.leadingComments===undefined){e.leadingComments=t}else{e.leadingComments.unshift(...t)}}function setInnerComments(e,t){if(e.innerComments===undefined){e.innerComments=t}else{e.innerComments.unshift(...t)}}function adjustInnerComments(e,t,r){let n=null;let s=t.length;while(n===null&&s>0){n=t[--s]}if(n===null||n.start>r.start){setInnerComments(e,r.comments)}else{setTrailingComments(n,r.comments)}}class CommentsParser extends BaseParser{addComment(e){if(this.filename)e.loc.filename=this.filename;const{commentsLen:t}=this.state;if(this.comments.length!==t){this.comments.length=t}this.comments.push(e);this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state;const r=t.length;if(r===0)return;let n=r-1;const s=t[n];if(s.start===e.end){s.leadingNode=e;n--}const{start:i}=e;for(;n>=0;n--){const r=t[n];const s=r.end;if(s>i){r.containingNode=e;this.finalizeComment(r);t.splice(n,1)}else{if(s===i){r.trailingNode=e}break}}}finalizeComment(e){const{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null){setTrailingComments(e.leadingNode,t)}if(e.trailingNode!==null){setLeadingComments(e.trailingNode,t)}}else{const{containingNode:r,start:n}=e;if(this.input.charCodeAt(this.offsetToSourcePos(n)-1)===44){switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(r,r.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(r,r.specifiers,e);break;case"TSEnumDeclaration":{adjustInnerComments(r,r.members,e)}break;case"TSEnumBody":adjustInnerComments(r,r.members,e);break;default:{setInnerComments(r,t)}}}else{setInnerComments(r,t)}}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--){this.finalizeComment(e[t])}this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;const n=t[r-1];if(n.leadingNode===e){n.leadingNode=null}}resetPreviousIdentifierLeadingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;if(t[r-1].trailingNode===e){t[r-1].trailingNode=null}else if(r>=2&&t[r-2].trailingNode===e){t[r-2].trailingNode=null}}takeSurroundingComments(e,t,r){const{commentStack:n}=this.state;const s=n.length;if(s===0)return;let i=s-1;for(;i>=0;i--){const s=n[i];const a=s.end;const o=s.start;if(o===r){s.leadingNode=e}else if(a===t){s.trailingNode=e}else if(a<t){break}}}}const R=/\r\n|[\r\n\u2028\u2029]/;const U=new RegExp(R.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return true;default:return false}}function hasNewLine(e,t,r){for(let n=t;n<r;n++){if(isNewLine(e.charCodeAt(n))){return true}}return false}const K=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const V=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return true;default:return false}}class State{constructor(){this.flags=1024;this.startIndex=void 0;this.curLine=void 0;this.lineStart=void 0;this.startLoc=void 0;this.endLoc=void 0;this.errors=[];this.potentialArrowAt=-1;this.noArrowAt=[];this.noArrowParamsConversionAt=[];this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};this.labels=[];this.commentsLen=0;this.commentStack=[];this.pos=0;this.type=140;this.value=null;this.start=0;this.end=0;this.lastTokEndLoc=null;this.lastTokStartLoc=null;this.context=[d.brace];this.firstInvalidTemplateEscapePos=null;this.strictErrors=new Map;this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){if(e)this.flags|=1;else this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:n,startColumn:s}){this.strict=e===false?false:e===true?true:t==="module";this.startIndex=r;this.curLine=n;this.lineStart=-s;this.startLoc=this.endLoc=new Position(n,s,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){if(e)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){if(e)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){if(e)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){if(e)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){if(e)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){if(e)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){if(e)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){if(e)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){if(e)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){if(e)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){if(e)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){if(e)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;e.flags=this.flags;e.startIndex=this.startIndex;e.curLine=this.curLine;e.lineStart=this.lineStart;e.startLoc=this.startLoc;e.endLoc=this.endLoc;e.errors=this.errors.slice();e.potentialArrowAt=this.potentialArrowAt;e.noArrowAt=this.noArrowAt.slice();e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice();e.topicContext=this.topicContext;e.labels=this.labels.slice();e.commentsLen=this.commentsLen;e.commentStack=this.commentStack.slice();e.pos=this.pos;e.type=this.type;e.value=this.value;e.start=this.start;e.end=this.end;e.lastTokEndLoc=this.lastTokEndLoc;e.lastTokStartLoc=this.lastTokStartLoc;e.context=this.context.slice();e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos;e.strictErrors=this.strictErrors;e.tokensLength=this.tokensLength;return e}}var W=function isDigit(e){return e>=48&&e<=57};const $={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const q={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,n,s,i){const a=r;const o=n;const l=s;let c="";let p=null;let u=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(a,o,l);c+=t.slice(u,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(u,r);break}if(f===92){c+=t.slice(u,r);const a=readEscapedChar(t,r,n,s,e==="template",i);if(a.ch===null&&!p){p={pos:r,lineStart:n,curLine:s}}else{c+=a.ch}({pos:r,lineStart:n,curLine:s}=a);u=r}else if(f===8232||f===8233){++r;++s;n=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(u,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++s;u=n=r}else{i.unterminated(a,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:p,lineStart:n,curLine:s,containsInvalid:!!p}}function isStringEnd(e,t,r,n){if(e==="template"){return t===96||t===36&&r.charCodeAt(n+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,n,s,i){const a=!s;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:n});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let s;({code:s,pos:t}=readHexChar(e,t,r,n,2,false,a,i));return res(s===null?null:String.fromCharCode(s))}case 117:{let s;({code:s,pos:t}=readCodePoint(e,t,r,n,a,i));return res(s===null?null:String.fromCodePoint(s))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++n;case 8232:case 8233:return res("");case 56:case 57:if(s){return res(null)}else{i.strictNumericEscape(t-1,r,n)}default:if(o>=48&&o<=55){const a=t-1;const o=/^[0-7]+/.exec(e.slice(a,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const p=e.charCodeAt(t);if(l!=="0"||p===56||p===57){if(s){return res(null)}else{i.strictNumericEscape(a,r,n)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,n,s,i,a,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,n,16,s,i,false,o,!a));if(c===null){if(a){o.invalidEscapeSequence(l,r,n)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,r,n,s,i,a,o,l,c){const p=t;const u=s===16?$.hex:$.decBinOct;const d=s===16?q.hex:s===10?q.dec:s===8?q.oct:q.bin;let f=false;let h=0;for(let p=0,m=i==null?Infinity:i;p<m;++p){const i=e.charCodeAt(t);let p;if(i===95&&o!=="bail"){const s=e.charCodeAt(t-1);const i=e.charCodeAt(t+1);if(!o){if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}else if(Number.isNaN(i)||!d(i)||u.has(s)||u.has(i)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}++t;continue}if(i>=97){p=i-97+10}else if(i>=65){p=i-65+10}else if(W(i)){p=i-48}else{p=Infinity}if(p>=s){if(p<=9&&c){return{n:null,pos:t}}else if(p<=9&&l.invalidDigit(t,r,n,s)){p=0}else if(a){p=0;f=true}else{break}}++t;h=h*s+p}if(t===p||i!=null&&t-p!==i||f){return{n:null,pos:t}}return{n:h,pos:t}}function readCodePoint(e,t,r,n,s,i){const a=e.charCodeAt(t);let o;if(a===123){++t;({code:o,pos:t}=readHexChar(e,t,r,n,e.indexOf("}",t)-t,true,s,i));++t;if(o!==null&&o>1114111){if(s){i.invalidCodePoint(t,r,n)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,n,4,false,s,i))}return{code:o,pos:t}}function buildPosition(e,t,r){return new Position(r,e-t,e)}const H=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const t=e.startIndex||0;this.type=e.type;this.value=e.value;this.start=t+e.start;this.end=t+e.end;this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,t){super();this.isLookahead=void 0;this.tokens=[];this.errorHandlers_readInt={invalidDigit:(e,t,r,n)=>{if(!(this.optionFlags&2048))return false;this.raise(p.InvalidDigit,buildPosition(e,t,r),{radix:n});return true},numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)};this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)});this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,buildPosition(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedString,buildPosition(e-1,t,r))}});this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedTemplate,buildPosition(e,t,r))}});this.state=new State;this.state.init(e);this.input=t;this.length=t.length;this.comments=[];this.isLookahead=false}pushToken(e){this.tokens.length=this.state.tokensLength;this.tokens.push(e);++this.state.tokensLength}next(){this.checkKeywordEscapes();if(this.optionFlags&256){this.pushToken(new Token(this.state))}this.state.lastTokEndLoc=this.state.endLoc;this.state.lastTokStartLoc=this.state.startLoc;this.nextToken()}eat(e){if(this.match(e)){this.next();return true}else{return false}}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e);this.isLookahead=true;this.nextToken();this.isLookahead=false;const t=this.state;this.state=e;return t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){K.lastIndex=e;return K.test(this.input)?K.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){V.lastIndex=e;return V.test(this.input)?V.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){const r=this.input.charCodeAt(e);if((r&64512)===56320){t=65536+((t&1023)<<10)+(r&1023)}}return t}setStrict(e){this.state.strict=e;if(e){this.state.strictErrors.forEach((([e,t])=>this.raise(e,t)));this.state.strictErrors.clear()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace();this.state.start=this.state.pos;if(!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;if(!this.isLookahead)t=this.state.curPosition();const r=this.state.pos;const n=this.input.indexOf(e,r+2);if(n===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}this.state.pos=n+e.length;U.lastIndex=r+2;while(U.test(this.input)&&U.lastIndex<=n){++this.state.curLine;this.state.lineStart=U.lastIndex}if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new SourceLocation(t,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(s);return s}skipLineComment(e){const t=this.state.pos;let r;if(!this.isLookahead)r=this.state.curPosition();let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length){while(!isNewLine(n)&&++this.state.pos<this.length){n=this.input.charCodeAt(this.state.pos)}}if(this.isLookahead)return;const s=this.state.pos;const i=this.input.slice(t+e,s);const a={type:"CommentLine",value:i,start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),loc:new SourceLocation(r,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(a);return a}skipSpace(){const e=this.state.pos;const t=this.optionFlags&4096?[]:null;e:while(this.state.pos<this.length){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10){++this.state.pos}case 10:case 8232:case 8233:++this.state.pos;++this.state.curLine;this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");if(e!==undefined){this.addComment(e);t==null||t.push(e)}break}case 47:{const e=this.skipLineComment(2);if(e!==undefined){this.addComment(e);t==null||t.push(e)}break}default:break e}break;default:if(isWhitespace(r)){++this.state.pos}else if(r===45&&!this.inModule&&this.optionFlags&8192){const r=this.state.pos;if(this.input.charCodeAt(r+1)===45&&this.input.charCodeAt(r+2)===62&&(e===0||this.state.lineStart>e)){const e=this.skipLineComment(3);if(e!==undefined){this.addComment(e);t==null||t.push(e)}}else{break e}}else if(r===60&&!this.inModule&&this.optionFlags&8192){const e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){const e=this.skipLineComment(4);if(e!==undefined){this.addComment(e);t==null||t.push(e)}}else{break e}}else{break e}}}if((t==null?void 0:t.length)>0){const r=this.state.pos;const n={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos;this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e;this.state.value=t;if(!this.isLookahead){this.updateContext(r)}}replaceToken(e){this.state.type=e;this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter()){return}const e=this.state.pos+1;const t=this.codePointAtPos(e);if(t>=48&&t<=57){throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition())}if(t===123||t===91&&this.hasPlugin("recordAndTuple")){this.expectPlugin("recordAndTuple");if(this.getPluginOption("recordAndTuple","syntaxType")==="bar"){throw this.raise(t===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;if(t===123){this.finishToken(7)}else{this.finishToken(1)}}else if(isIdentifierStart(t)){++this.state.pos;this.finishToken(139,this.readWord1(t))}else if(t===92){++this.state.pos;this.finishToken(139,this.readWord1())}else{this.finishOp(27,1)}}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(true);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46){this.state.pos+=3;this.finishToken(21)}else{++this.state.pos;this.finishToken(16)}}readToken_slash(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(31,2)}else{this.finishOp(56,1)}}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return false;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return false;const t=this.state.pos;this.state.pos+=1;while(!isNewLine(e)&&++this.state.pos<this.length){e=this.input.charCodeAt(this.state.pos)}const r=this.input.slice(t+2,this.state.pos);this.finishToken(28,r);return true}readToken_mult_modulo(e){let t=e===42?55:54;let r=1;let n=this.input.charCodeAt(this.state.pos+1);if(e===42&&n===42){r++;n=this.input.charCodeAt(this.state.pos+2);t=57}if(n===61&&!this.state.inType){r++;t=e===37?33:30}this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){if(this.input.charCodeAt(this.state.pos+2)===61){this.finishOp(30,3)}else{this.finishOp(e===124?41:42,2)}return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61&&!this.state.inType){this.finishOp(32,2)}else if(e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);const e=this.input.codePointAt(this.state.pos);if(e===94){this.unexpected()}}else{this.finishOp(44,1)}}readToken_atSign(){const e=this.input.charCodeAt(this.state.pos+1);if(e===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])){this.finishOp(38,2)}else{this.finishOp(26,1)}}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}if(t===61){this.finishOp(30,2)}else{this.finishOp(53,1)}}readToken_lt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===62){const t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2;this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1);const t=this.input.charCodeAt(this.state.pos+2);if(e===63){if(t===61){this.finishOp(30,3)}else{this.finishOp(40,2)}}else if(e===46&&!(t>=48&&t<=57)){this.state.pos+=2;this.finishToken(18)}else{++this.state.pos;this.finishToken(17)}}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos;this.finishToken(10);return;case 41:++this.state.pos;this.finishToken(11);return;case 59:++this.state.pos;this.finishToken(13);return;case 44:++this.state.pos;this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(2)}else{++this.state.pos;this.finishToken(0)}return;case 93:++this.state.pos;this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(6)}else{++this.state.pos;this.finishToken(5)}return;case 125:++this.state.pos;this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58){this.finishOp(15,2)}else{++this.state.pos;this.finishToken(14)}return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(false);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(isIdentifierStart(e)){this.readWord(e);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t;this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc;const t=this.state.start+1;let r,n;let{pos:s}=this.state;for(;;++s){if(s>=this.length){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}const t=this.input.charCodeAt(s);if(isNewLine(t)){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}if(r){r=false}else{if(t===91){n=true}else if(t===93&&n){n=false}else if(t===47&&!n){break}r=t===92}}const i=this.input.slice(t,s);++s;let a="";const nextPos=()=>createPositionWithColumnOffset(e,s+2-t);while(s<this.length){const e=this.codePointAtPos(s);const t=String.fromCharCode(e);if(H.has(e)){if(e===118){if(a.includes("u")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}else if(e===117){if(a.includes("v")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}if(a.includes(t)){this.raise(p.DuplicateRegExpFlags,nextPos())}}else if(isIdentifierChar(e)||e===92){this.raise(p.MalformedRegExpFlags,nextPos())}else{break}++s;a+=t}this.state.pos=s;this.finishToken(138,{pattern:i,flags:a})}readInt(e,t,r=false,n=true){const{n:s,pos:i}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,false);this.state.pos=i;return s}readRadixNumber(e){const t=this.state.pos;const r=this.state.curPosition();let n=false;this.state.pos+=2;const s=this.readInt(e);if(s==null){this.raise(p.InvalidDigit,createPositionWithColumnOffset(r,2),{radix:e})}const i=this.input.charCodeAt(this.state.pos);if(i===110){++this.state.pos;n=true}else if(i===109){throw this.raise(p.InvalidDecimal,r)}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}if(n){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e);return}this.finishToken(135,s)}readNumber(e){const t=this.state.pos;const r=this.state.curPosition();let n=false;let s=false;let i=false;let a=false;if(!e&&this.readInt(10)===null){this.raise(p.InvalidNumber,this.state.curPosition())}const o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){const e=this.input.slice(t,this.state.pos);this.recordStrictModeErrors(p.StrictOctalLiteral,r);if(!this.state.strict){const t=e.indexOf("_");if(t>0){this.raise(p.ZeroDigitNumericSeparator,createPositionWithColumnOffset(r,t))}}a=o&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!a){++this.state.pos;this.readInt(10);n=true;l=this.input.charCodeAt(this.state.pos)}if((l===69||l===101)&&!a){l=this.input.charCodeAt(++this.state.pos);if(l===43||l===45){++this.state.pos}if(this.readInt(10)===null){this.raise(p.InvalidOrMissingExponent,r)}n=true;i=true;l=this.input.charCodeAt(this.state.pos)}if(l===110){if(n||o){this.raise(p.InvalidBigIntLiteral,r)}++this.state.pos;s=true}if(l===109){this.expectPlugin("decimal",this.state.curPosition());if(i||o){this.raise(p.InvalidDecimal,r)}++this.state.pos;var c=true}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(136,u);return}if(c){this.finishToken(137,u);return}const d=a?parseInt(u,8):parseFloat(u);this.finishToken(135,d)}readCodePoint(e){const{code:t,pos:r}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);this.state.pos=r;return t}readString(e){const{str:t,pos:r,curLine:n,lineStart:s}=readStringContents(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1;this.state.lineStart=s;this.state.curLine=n;this.finishToken(134,t)}readTemplateContinuation(){if(!this.match(8)){this.unexpected(null,8)}this.state.pos--;this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos];const{str:t,firstInvalidLoc:r,pos:n,curLine:s,lineStart:i}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1;this.state.lineStart=i;this.state.curLine=s;if(r){this.state.firstInvalidTemplateEscapePos=new Position(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))}if(this.input.codePointAt(n)===96){this.finishToken(24,r?null:e+t+"`")}else{this.state.pos++;this.finishToken(25,r?null:e+t+"${")}}recordStrictModeErrors(e,t){const r=t.index;if(this.state.strict&&!this.state.strictErrors.has(r)){this.raise(e,t)}else{this.state.strictErrors.set(r,[e,t])}}readWord1(e){this.state.containsEsc=false;let t="";const r=this.state.pos;let n=this.state.pos;if(e!==undefined){this.state.pos+=e<=65535?1:2}while(this.state.pos<this.length){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e)){this.state.pos+=e<=65535?1:2}else if(e===92){this.state.containsEsc=true;t+=this.input.slice(n,this.state.pos);const e=this.state.curPosition();const s=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(p.MissingUnicodeEscape,this.state.curPosition());n=this.state.pos-1;continue}++this.state.pos;const i=this.readCodePoint(true);if(i!==null){if(!s(i)){this.raise(p.EscapedCharNotAnIdentifier,e)}t+=String.fromCodePoint(i)}n=this.state.pos}else{break}}return t+this.input.slice(n,this.state.pos)}readWord(e){const t=this.readWord1(e);const r=T.get(t);if(r!==undefined){this.finishToken(r,tokenLabelName(r))}else{this.finishToken(132,t)}}checkKeywordEscapes(){const{type:e}=this.state;if(tokenIsKeyword(e)&&this.state.containsEsc){this.raise(p.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}}raise(e,t,r={}){const n=t instanceof Position?t:t.loc.start;const s=e(n,r);if(!(this.optionFlags&2048))throw s;if(!this.isLookahead)this.state.errors.push(s);return s}raiseOverwrite(e,t,r={}){const n=t instanceof Position?t:t.loc.start;const s=n.index;const i=this.state.errors;for(let t=i.length-1;t>=0;t--){const a=i[t];if(a.loc.index===s){return i[t]=e(n,r)}if(a.loc.index<s)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(p.UnexpectedToken,e!=null?e:this.state.startLoc,{expected:t?tokenLabelName(t):null})}expectPlugin(e,t){if(this.hasPlugin(e)){return true}throw this.raise(p.MissingPlugin,t!=null?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e)))){throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}}errorBuilder(e){return(t,r,n)=>{this.raise(e,buildPosition(t,r,n))}}}class ClassScope{constructor(){this.privateNames=new Set;this.loneAccessors=new Map;this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(e){this.parser=void 0;this.stack=[];this.undefinedPrivateNames=new Map;this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const e=this.stack.pop();const t=this.current();for(const[r,n]of Array.from(e.undefinedPrivateNames)){if(t){if(!t.undefinedPrivateNames.has(r)){t.undefinedPrivateNames.set(r,n)}}else{this.parser.raise(p.InvalidPrivateFieldResolution,n,{identifierName:r})}}}declarePrivateName(e,t,r){const{privateNames:n,loneAccessors:s,undefinedPrivateNames:i}=this.current();let a=n.has(e);if(t&3){const r=a&&s.get(e);if(r){const n=r&4;const i=t&4;const o=r&3;const l=t&3;a=o===l||n!==i;if(!a)s.delete(e)}else if(!a){s.set(e,t)}}if(a){this.parser.raise(p.PrivateNameRedeclaration,r,{identifierName:e})}n.add(e);i.delete(e)}usePrivateName(e,t){let r;for(r of this.stack){if(r.privateNames.has(e))return}if(r){r.undefinedPrivateNames.set(e,t)}else{this.parser.raise(p.InvalidPrivateFieldResolution,t,{identifierName:e})}}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e);this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0;this.stack=[new ExpressionScope];this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start;const{stack:n}=this;let s=n.length-1;let i=n[s];while(!i.isCertainlyParameterDeclaration()){if(i.canBeArrowParameterDeclaration()){i.recordDeclarationError(e,r)}else{return}i=n[--s]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this;const n=r[r.length-1];const s=t.loc.start;if(n.isCertainlyParameterDeclaration()){this.parser.raise(e,s)}else if(n.canBeArrowParameterDeclaration()){n.recordDeclarationError(e,s)}else{return}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1;let n=t[r];while(n.canBeArrowParameterDeclaration()){if(n.type===2){n.recordDeclarationError(p.AwaitBindingIdentifier,e)}n=t[--r]}}validateAsPattern(){const{stack:e}=this;const t=e[e.length-1];if(!t.canBeArrowParameterDeclaration())return;t.iterateErrors((([t,r])=>{this.parser.raise(t,r);let n=e.length-2;let s=e[n];while(s.canBeArrowParameterDeclaration()){s.clearDeclarationError(r.index);s=e[--n]}}))}}function newParameterDeclarationScope(){return new ExpressionScope(3)}function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}function newExpressionScope(){return new ExpressionScope}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function functionFlags(e,t){return(e?2:0)|(t?1:0)}class UtilParser extends Tokenizer{addExtra(e,t,r,n=true){if(!e)return;let{extra:s}=e;if(s==null){s={};e.extra=s}if(n){s[t]=r}else{Object.defineProperty(s,t,{enumerable:n,value:r})}}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);return!(isIdentifierChar(e)||(e&64512)===55296)}return false}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){if(this.isContextual(e)){this.next();return true}return false}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null){throw this.raise(t,this.state.startLoc)}this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=true){if(e?this.isLineTerminator():this.eat(13))return;this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){if(!this.eat(e)){this.unexpected(t,e)}}tryParse(e,t=this.state.clone()){const r={node:null};try{const n=e(((e=null)=>{r.node=e;throw r}));if(this.state.errors.length>t.errors.length){const e=this.state;this.state=t;this.state.tokensLength=e.tokensLength;return{node:n,error:e.errors[t.errors.length],thrown:false,aborted:false,failState:e}}return{node:n,error:null,thrown:false,aborted:false,failState:null}}catch(e){const n=this.state;this.state=t;if(e instanceof SyntaxError){return{node:null,error:e,thrown:true,aborted:false,failState:n}}if(e===r){return{node:r.node,error:null,thrown:false,aborted:true,failState:n}}throw e}}checkExpressionErrors(e,t){if(!e)return false;const{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:s,optionalParametersLoc:i}=e;const a=!!r||!!n||!!i||!!s;if(!t){return a}if(r!=null){this.raise(p.InvalidCoverInitializedName,r)}if(n!=null){this.raise(p.DuplicateProto,n)}if(s!=null){this.raise(p.UnexpectedPrivateField,s)}if(i!=null){this.unexpected(i)}}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const n=this.inModule;this.inModule=e;const s=this.scope;const i=this.getScopeHandler();this.scope=new i(this,e);const a=this.prodParam;this.prodParam=new ProductionParameterHandler;const o=this.classScope;this.classScope=new ClassScopeHandler(this);const l=this.expressionScope;this.expressionScope=new ExpressionScopeHandler(this);return()=>{this.state.labels=t;this.exportedIdentifiers=r;this.inModule=n;this.scope=s;this.prodParam=a;this.classScope=o;this.expressionScope=l}}enterInitialScopes(){let e=0;if(this.inModule){e|=2}if(this.optionFlags&32){e|=1}this.scope.enter(1);this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;if(t!==null){this.expectPlugin("destructuringPrivate",t)}}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null;this.doubleProtoLoc=null;this.privateKeyLoc=null;this.optionalParametersLoc=null}}class Node{constructor(e,t,r){this.type="";this.start=t;this.end=0;this.loc=new SourceLocation(r);if((e==null?void 0:e.optionFlags)&128)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}const G=Node.prototype;{G.__clone=function(){const e=new Node(undefined,this.start,this.loc.start);const t=Object.keys(this);for(let r=0,n=t.length;r<n;r++){const n=t[r];if(n!=="leadingComments"&&n!=="trailingComments"&&n!=="innerComments"){e[n]=this[n]}}return e}}function clonePlaceholder(e){return cloneIdentifier(e)}function cloneIdentifier(e){const{type:t,start:r,end:n,loc:s,range:i,extra:a,name:o}=e;const l=Object.create(G);l.type=t;l.start=r;l.end=n;l.loc=s;l.range=i;l.extra=a;l.name=o;if(t==="Placeholder"){l.expectedNode=e.expectedNode}return l}function cloneStringLiteral(e){const{type:t,start:r,end:n,loc:s,range:i,extra:a}=e;if(t==="Placeholder"){return clonePlaceholder(e)}const o=Object.create(G);o.type=t;o.start=r;o.end=n;o.loc=s;o.range=i;if(e.raw!==undefined){o.raw=e.raw}else{o.extra=a}o.value=e.value;return o}class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){e.type=t;e.end=r.index;e.loc.end=r;if(this.optionFlags&128)e.range[1]=r.index;if(this.optionFlags&4096){this.processComment(e)}return e}resetStartLocation(e,t){e.start=t.index;e.loc.start=t;if(this.optionFlags&128)e.range[0]=t.index}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index;e.loc.end=t;if(this.optionFlags&128)e.range[1]=t.index}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}}const J=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]);const z=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function isEsModuleType(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function hasTypeImportKind(e){return e.importKind==="type"||e.importKind==="typeof"}const X={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function partition(e,t){const r=[];const n=[];for(let s=0;s<e.length;s++){(t(e[s],s,e)?r:n).push(e[s])}return[r,n]}const Y=/\*?\s*@((?:no)?flow)\b/;var flow=e=>class FlowParserMixin extends e{constructor(...e){super(...e);this.flowPragma=undefined}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,t){if(e!==134&&e!==13&&e!==28){if(this.flowPragma===undefined){this.flowPragma=null}}super.finishToken(e,t)}addComment(e){if(this.flowPragma===undefined){const t=Y.exec(e.value);if(!t);else if(t[1]==="flow"){this.flowPragma="flow"}else if(t[1]==="noflow"){this.flowPragma="noflow"}else{throw new Error("Unexpected flow pragma")}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=true;this.expect(e||14);const r=this.flowParseType();this.state.inType=t;return r}flowParsePredicate(){const e=this.startNode();const t=this.state.startLoc;this.next();this.expectContextual(110);if(this.state.lastTokStartLoc.index>t.index+1){this.raise(z.UnexpectedSpaceBetweenModuloChecks,t)}if(this.eat(10)){e.value=super.parseExpression();this.expect(11);return this.finishNode(e,"DeclaredPredicate")}else{return this.finishNode(e,"InferredPredicate")}}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=true;this.expect(14);let t=null;let r=null;if(this.match(54)){this.state.inType=e;r=this.flowParsePredicate()}else{t=this.flowParseType();this.state.inType=e;if(this.match(54)){r=this.flowParsePredicate()}}return[t,r]}flowParseDeclareClass(e){this.next();this.flowParseInterfaceish(e,true);return this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier();const r=this.startNode();const n=this.startNode();if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}this.expect(10);const s=this.flowParseFunctionTypeParams();r.params=s.params;r.rest=s.rest;r.this=s._this;this.expect(11);[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser();n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation");t.typeAnnotation=this.finishNode(n,"TypeAnnotation");this.resetEndLocation(t);this.semicolon();this.scope.declareName(e.id.name,2048,e.id.loc.start);return this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80)){return this.flowParseDeclareClass(e)}else if(this.match(68)){return this.flowParseDeclareFunction(e)}else if(this.match(74)){return this.flowParseDeclareVariable(e)}else if(this.eatContextual(127)){if(this.match(16)){return this.flowParseDeclareModuleExports(e)}else{if(t){this.raise(z.NestedDeclareModule,this.state.lastTokStartLoc)}return this.flowParseDeclareModule(e)}}else if(this.isContextual(130)){return this.flowParseDeclareTypeAlias(e)}else if(this.isContextual(131)){return this.flowParseDeclareOpaqueType(e)}else if(this.isContextual(129)){return this.flowParseDeclareInterface(e)}else if(this.match(82)){return this.flowParseDeclareExportDeclaration(e,t)}else{this.unexpected()}}flowParseDeclareVariable(e){this.next();e.id=this.flowParseTypeAnnotatableIdentifier(true);this.scope.declareName(e.id.name,5,e.id.loc.start);this.semicolon();return this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0);if(this.match(134)){e.id=super.parseExprAtom()}else{e.id=this.parseIdentifier()}const t=e.body=this.startNode();const r=t.body=[];this.expect(5);while(!this.match(8)){let e=this.startNode();if(this.match(83)){this.next();if(!this.isContextual(130)&&!this.match(87)){this.raise(z.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc)}super.parseImport(e)}else{this.expectContextual(125,z.UnsupportedStatementInDeclareModule);e=this.flowParseDeclare(e,true)}r.push(e)}this.scope.exit();this.expect(8);this.finishNode(t,"BlockStatement");let n=null;let s=false;r.forEach((e=>{if(isEsModuleType(e)){if(n==="CommonJS"){this.raise(z.AmbiguousDeclareModuleKind,e)}n="ES"}else if(e.type==="DeclareModuleExports"){if(s){this.raise(z.DuplicateDeclareModuleExports,e)}if(n==="ES"){this.raise(z.AmbiguousDeclareModuleKind,e)}n="CommonJS";s=true}}));e.kind=n||"CommonJS";return this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){this.expect(82);if(this.eat(65)){if(this.match(68)||this.match(80)){e.declaration=this.flowParseDeclare(this.startNode())}else{e.declaration=this.flowParseType();this.semicolon()}e.default=true;return this.finishNode(e,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(z.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:X[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)){e.declaration=this.flowParseDeclare(this.startNode());e.default=false;return this.finishNode(e,"DeclareExportDeclaration")}else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){e=this.parseExport(e,null);if(e.type==="ExportNamedDeclaration"){e.type="ExportDeclaration";e.default=false;delete e.exportKind}e.type="Declare"+e.type;return e}}this.unexpected()}flowParseDeclareModuleExports(e){this.next();this.expectContextual(111);e.typeAnnotation=this.flowParseTypeAnnotation();this.semicolon();return this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);t.type="DeclareTypeAlias";return t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,true);t.type="DeclareOpaqueType";return t}flowParseDeclareInterface(e){this.next();this.flowParseInterfaceish(e,false);return this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){e.id=this.flowParseRestrictedIdentifier(!t,true);this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12))}if(t){e.implements=[];e.mixins=[];if(this.eatContextual(117)){do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12))}if(this.eatContextual(113)){do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}}e.body=this.flowParseObjectType({allowStatic:t,allowExact:false,allowSpread:false,allowProto:t,allowInexact:false})}flowParseInterfaceExtends(){const e=this.startNode();e.id=this.flowParseQualifiedTypeIdentifier();if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}return this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){this.flowParseInterfaceish(e,false);return this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){if(e==="_"){this.raise(z.UnexpectedReservedUnderscore,this.state.startLoc)}}checkReservedType(e,t,r){if(!J.has(e))return;this.raise(r?z.AssignReservedType:z.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){this.checkReservedType(this.state.value,this.state.startLoc,t);return this.parseIdentifier(e)}flowParseTypeAlias(e){e.id=this.flowParseRestrictedIdentifier(false,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.right=this.flowParseTypeInitialiser(29);this.semicolon();return this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){this.expectContextual(130);e.id=this.flowParseRestrictedIdentifier(true,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.supertype=null;if(this.match(14)){e.supertype=this.flowParseTypeInitialiser(14)}e.impltype=null;if(!t){e.impltype=this.flowParseTypeInitialiser(29)}this.semicolon();return this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=false){const t=this.state.startLoc;const r=this.startNode();const n=this.flowParseVariance();const s=this.flowParseTypeAnnotatableIdentifier();r.name=s.name;r.variance=n;r.bound=s.typeAnnotation;if(this.match(29)){this.eat(29);r.default=this.flowParseType()}else{if(e){this.raise(z.MissingTypeParamDefault,t)}}return this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType;const t=this.startNode();t.params=[];this.state.inType=true;if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}let r=false;do{const e=this.flowParseTypeParameter(r);t.params.push(e);if(e.default){r=true}if(!this.match(48)){this.expect(12)}}while(!this.match(48));this.expect(48);this.state.inType=e;return this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==d.brace){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else{return e()}}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode();const t=this.state.inType;this.state.inType=true;e.params=[];this.flowInTopLevelContext((()=>{this.expect(47);const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=false;while(!this.match(48)){e.params.push(this.flowParseType());if(!this.match(48)){this.expect(12)}}this.state.noAnonFunctionType=t}));this.state.inType=t;if(!this.state.inType&&this.curContext()===d.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expect(47);while(!this.match(48)){e.params.push(this.flowParseTypeOrImplicitInstantiation());if(!this.match(48)){this.expect(12)}}this.expect(48);this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();this.expectContextual(129);e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false});return this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(true)}flowParseObjectTypeIndexer(e,t,r){e.static=t;if(this.lookahead().type===14){e.id=this.flowParseObjectPropertyKey();e.key=this.flowParseTypeInitialiser()}else{e.id=null;e.key=this.flowParseType()}this.expect(3);e.value=this.flowParseTypeInitialiser();e.variance=r;return this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){e.static=t;e.id=this.flowParseObjectPropertyKey();this.expect(3);this.expect(3);if(this.match(47)||this.match(10)){e.method=true;e.optional=false;e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))}else{e.method=false;if(this.eat(17)){e.optional=true}e.value=this.flowParseTypeInitialiser()}return this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){e.params=[];e.rest=null;e.typeParameters=null;e.this=null;if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}this.expect(10);if(this.match(78)){e.this=this.flowParseFunctionTypeParam(true);e.this.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.params.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){e.rest=this.flowParseFunctionTypeParam(false)}this.expect(11);e.returnType=this.flowParseTypeInitialiser();return this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();e.static=t;e.value=this.flowParseObjectTypeMethodish(r);return this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:n,allowInexact:s}){const i=this.state.inType;this.state.inType=true;const a=this.startNode();a.callProperties=[];a.properties=[];a.indexers=[];a.internalSlots=[];let o;let l;let c=false;if(t&&this.match(6)){this.expect(6);o=9;l=true}else{this.expect(5);o=8;l=false}a.exact=l;while(!this.match(o)){let t=false;let i=null;let o=null;const p=this.startNode();if(n&&this.isContextual(118)){const t=this.lookahead();if(t.type!==14&&t.type!==17){this.next();i=this.state.startLoc;e=false}}if(e&&this.isContextual(106)){const e=this.lookahead();if(e.type!==14&&e.type!==17){this.next();t=true}}const u=this.flowParseVariance();if(this.eat(0)){if(i!=null){this.unexpected(i)}if(this.eat(0)){if(u){this.unexpected(u.loc.start)}a.internalSlots.push(this.flowParseObjectTypeInternalSlot(p,t))}else{a.indexers.push(this.flowParseObjectTypeIndexer(p,t,u))}}else if(this.match(10)||this.match(47)){if(i!=null){this.unexpected(i)}if(u){this.unexpected(u.loc.start)}a.callProperties.push(this.flowParseObjectTypeCallProperty(p,t))}else{let e="init";if(this.isContextual(99)||this.isContextual(104)){const t=this.lookahead();if(tokenIsLiteralPropertyName(t.type)){e=this.state.value;this.next()}}const n=this.flowParseObjectTypeProperty(p,t,i,u,e,r,s!=null?s:!l);if(n===null){c=true;o=this.state.lastTokStartLoc}else{a.properties.push(n)}}this.flowObjectTypeSemicolon();if(o&&!this.match(8)&&!this.match(9)){this.raise(z.UnexpectedExplicitInexactInObject,o)}}this.expect(o);if(r){a.inexact=c}const p=this.finishNode(a,"ObjectTypeAnnotation");this.state.inType=i;return p}flowParseObjectTypeProperty(e,t,r,n,s,i,a){if(this.eat(21)){const t=this.match(12)||this.match(13)||this.match(8)||this.match(9);if(t){if(!i){this.raise(z.InexactInsideNonObject,this.state.lastTokStartLoc)}else if(!a){this.raise(z.InexactInsideExact,this.state.lastTokStartLoc)}if(n){this.raise(z.InexactVariance,n)}return null}if(!i){this.raise(z.UnexpectedSpreadType,this.state.lastTokStartLoc)}if(r!=null){this.unexpected(r)}if(n){this.raise(z.SpreadVariance,n)}e.argument=this.flowParseType();return this.finishNode(e,"ObjectTypeSpreadProperty")}else{e.key=this.flowParseObjectPropertyKey();e.static=t;e.proto=r!=null;e.kind=s;let a=false;if(this.match(47)||this.match(10)){e.method=true;if(r!=null){this.unexpected(r)}if(n){this.unexpected(n.loc.start)}e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start));if(s==="get"||s==="set"){this.flowCheckGetterSetterParams(e)}if(!i&&e.key.name==="constructor"&&e.value.this){this.raise(z.ThisParamBannedInConstructor,e.value.this)}}else{if(s!=="init")this.unexpected();e.method=false;if(this.eat(17)){a=true}e.value=this.flowParseTypeInitialiser();e.variance=n}e.optional=a;return this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t=e.kind==="get"?0:1;const r=e.value.params.length+(e.value.rest?1:0);if(e.value.this){this.raise(e.kind==="get"?z.GetterMayNotHaveThisParam:z.SetterMayNotHaveThisParam,e.value.this)}if(r!==t){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&e.value.rest){this.raise(p.BadSetterRestParameter,e)}}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)){this.unexpected()}}flowParseQualifiedTypeIdentifier(e,t){e!=null?e:e=this.state.startLoc;let r=t||this.flowParseRestrictedIdentifier(true);while(this.eat(16)){const t=this.startNodeAt(e);t.qualification=r;t.id=this.flowParseRestrictedIdentifier(true);r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);r.typeParameters=null;r.id=this.flowParseQualifiedTypeIdentifier(e,t);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterInstantiation()}return this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();this.expect(87);e.argument=this.flowParsePrimaryType();return this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();e.types=[];this.expect(0);while(this.state.pos<this.length&&!this.match(3)){e.types.push(this.flowParseType());if(this.match(3))break;this.expect(12)}this.expect(3);return this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null;let r=false;let n=null;const s=this.startNode();const i=this.lookahead();const a=this.state.type===78;if(i.type===14||i.type===17){if(a&&!e){this.raise(z.ThisParamMustBeFirst,s)}t=this.parseIdentifier(a);if(this.eat(17)){r=true;if(a){this.raise(z.ThisParamMayNotBeOptional,s)}}n=this.flowParseTypeInitialiser()}else{n=this.flowParseType()}s.name=t;s.optional=r;s.typeAnnotation=n;return this.finishNode(s,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);t.name=null;t.optional=false;t.typeAnnotation=e;return this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;let r=null;if(this.match(78)){r=this.flowParseFunctionTypeParam(true);r.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){t=this.flowParseFunctionTypeParam(false)}return{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:this.checkNotUnderscore(r.name);return this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc;const t=this.startNode();let r;let n;let s=false;const i=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:true,allowProto:false,allowInexact:true});case 6:return this.flowParseObjectType({allowStatic:false,allowExact:true,allowSpread:true,allowProto:false,allowInexact:false});case 0:this.state.noAnonFunctionType=false;n=this.flowParseTupleType();this.state.noAnonFunctionType=i;return n;case 47:{const e=this.startNode();e.typeParameters=this.flowParseTypeParameterDeclaration();this.expect(10);r=this.flowParseFunctionTypeParams();e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();return this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();this.next();if(!this.match(11)&&!this.match(21)){if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;s=e!==17&&e!==14}else{s=true}}if(s){this.state.noAnonFunctionType=false;n=this.flowParseType();this.state.noAnonFunctionType=i;if(this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19)){this.expect(11);return n}else{this.eat(12)}}if(n){r=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)])}else{r=this.flowParseFunctionTypeParams()}e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();e.typeParameters=null;return this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:t.value=this.match(85);this.next();return this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){this.next();if(this.match(135)){return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t)}if(this.match(136)){return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t)}throw this.raise(z.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:this.next();return this.finishNode(t,"VoidTypeAnnotation");case 84:this.next();return this.finishNode(t,"NullLiteralTypeAnnotation");case 78:this.next();return this.finishNode(t,"ThisTypeAnnotation");case 55:this.next();return this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);this.next();return super.createIdentifier(t,e)}else if(tokenIsIdentifier(this.state.type)){if(this.isContextual(129)){return this.flowParseInterfaceType()}return this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType();let r=false;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const n=this.startNodeAt(e);const s=this.eat(18);r=r||s;this.expect(0);if(!s&&this.match(3)){n.elementType=t;this.next();t=this.finishNode(n,"ArrayTypeAnnotation")}else{n.objectType=t;n.indexType=this.flowParseType();this.expect(3);if(r){n.optional=s;t=this.finishNode(n,"OptionalIndexedAccessType")}else{t=this.finishNode(n,"IndexedAccessType")}}}return t}flowParsePrefixType(){const e=this.startNode();if(this.eat(17)){e.typeAnnotation=this.flowParsePrefixType();return this.finishNode(e,"NullableTypeAnnotation")}else{return this.flowParsePostfixType()}}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);t.params=[this.reinterpretTypeAsFunctionTypeParam(e)];t.rest=null;t.this=null;t.returnType=this.flowParseType();t.typeParameters=null;return this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();e.types=[t];while(this.eat(45)){e.types.push(this.flowParseAnonFunctionWithoutParens())}return e.types.length===1?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();e.types=[t];while(this.eat(43)){e.types.push(this.flowParseIntersectionType())}return e.types.length===1?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=true;const t=this.flowParseUnionType();this.state.inType=e;return t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const e=this.state.startLoc;const t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else{return this.flowParseType()}}flowParseTypeAnnotation(){const e=this.startNode();e.typeAnnotation=this.flowParseTypeInitialiser();return this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14)){t.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(t)}return t}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}flowParseVariance(){let e=null;if(this.match(53)){e=this.startNode();if(this.state.value==="+"){e.kind="plus"}else{e.kind="minus"}this.next();return this.finishNode(e,"Variance")}return e}parseFunctionBody(e,t,r=false){if(t){this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,true,r)));return}super.parseFunctionBody(e,false,r)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){const e=this.lookahead();if(tokenIsKeywordOrIdentifier(e.type)){const e=this.startNode();this.next();return this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);if(this.flowPragma===undefined&&!this.isValidDirective(t)){this.flowPragma=null}return t}parseExpressionStatement(e,t,r){if(t.type==="Identifier"){if(t.name==="declare"){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82)){return this.flowParseDeclare(e)}}else if(tokenIsIdentifier(this.state.type)){if(t.name==="interface"){return this.flowParseInterface(e)}else if(t.name==="type"){return this.flowParseTypeAlias(e)}else if(t.name==="opaque"){return this.flowParseOpaqueType(e,false)}}}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return!this.state.containsEsc}return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return this.state.containsEsc}return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}this.expect(17);const n=this.state.clone();const s=this.state.noArrowAt;const i=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent();let[l,c]=this.getArrowLikeExpressions(a);if(o||c.length>0){const e=[...s];if(c.length>0){this.state=n;this.state.noArrowAt=e;for(let t=0;t<c.length;t++){e.push(c[t].start)}({consequent:a,failed:o}=this.tryParseConditionalConsequent());[l,c]=this.getArrowLikeExpressions(a)}if(o&&l.length>1){this.raise(z.AmbiguousConditionalArrow,n.startLoc)}if(o&&l.length===1){this.state=n;e.push(l[0].start);this.state.noArrowAt=e;({consequent:a,failed:o}=this.tryParseConditionalConsequent())}}this.getArrowLikeExpressions(a,true);this.state.noArrowAt=s;this.expect(14);i.test=e;i.consequent=a;i.alternate=this.forwardNoArrowParamsConversionAt(i,(()=>this.parseMaybeAssign(undefined,undefined)));return this.finishNode(i,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn();const t=!this.match(14);this.state.noArrowParamsConversionAt.pop();return{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e];const n=[];while(r.length!==0){const e=r.pop();if(e.type==="ArrowFunctionExpression"&&e.body.type!=="BlockStatement"){if(e.typeParameters||!e.returnType){this.finishArrowValidation(e)}else{n.push(e)}r.push(e.body)}else if(e.type==="ConditionalExpression"){r.push(e.consequent);r.push(e.alternate)}}if(t){n.forEach((e=>this.finishArrowValidation(e)));return[n,[]]}return partition(n,(e=>e.params.every((e=>this.isAssignable(e,true)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingCommaLoc,false);this.scope.enter(2|4);super.checkParams(e,false,true);this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){this.state.noArrowParamsConversionAt.push(this.state.start);r=t();this.state.noArrowParamsConversionAt.pop()}else{r=t()}return r}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const e=this.startNodeAt(t);e.expression=r;e.typeAnnotation=this.flowParseTypeAnnotation();return this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){if(e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"){return}super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();this.next();if(this.match(5)){e.specifiers=this.parseExportSpecifiers(true);super.parseExportFrom(e);return null}else{return this.flowParseTypeAlias(t)}}else if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseOpaqueType(t,false)}else if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();this.next();return this.flowParseEnumDeclaration(t)}else{return super.parseExportDeclaration(e)}}eatExportStar(e){if(super.eatExportStar(e))return true;if(this.isContextual(130)&&this.lookahead().type===55){e.exportKind="type";this.next();this.next();return true}return false}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state;const r=super.maybeParseExportNamespaceSpecifier(e);if(r&&e.exportKind==="type"){this.unexpected(t)}return r}parseClassId(e,t,r){super.parseClassId(e,t,r);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}}parseClassMember(e,t,r){const{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t)){return}t.declare=true}super.parseClassMember(e,t,r);if(t.declare){if(t.type!=="ClassProperty"&&t.type!=="ClassPrivateProperty"&&t.type!=="PropertyDefinition"){this.raise(z.DeclareClassElement,n)}else if(t.value){this.raise(z.DeclareClassFieldInitializer,t.value)}}}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1();const t="@@"+e;if(!this.isIterator(e)||!this.state.inType){this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:t})}this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===123&&t===124){this.finishOp(6,2)}else if(this.state.inType&&(e===62||e===60)){this.finishOp(e===62?48:47,1)}else if(this.state.inType&&e===63){if(t===46){this.finishOp(18,2)}else{this.finishOp(17,1)}}else if(isIteratorStart(e,t,this.input.charCodeAt(this.state.pos+2))){this.state.pos+=2;this.readIterator()}else{super.getTokenFromCode(e)}}isAssignable(e,t){if(e.type==="TypeCastExpression"){return this.isAssignable(e.expression,t)}else{return super.isAssignable(e,t)}}toAssignable(e,t=false){if(!t&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"){e.left=this.typeCastToParameter(e.left)}super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];if((r==null?void 0:r.type)==="TypeCastExpression"){e[t]=this.typeCastToParameter(r)}}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let n=0;n<e.length;n++){var r;const s=e[n];if(s&&s.type==="TypeCastExpression"&&!((r=s.extra)!=null&&r.parenthesized)&&(e.length>1||!t)){this.raise(z.TypeCastInPattern,s.typeAnnotation)}}return e}parseArrayLike(e,t,r,n){const s=super.parseArrayLike(e,t,r,n);if(t&&!this.state.maybeInArrowParameters){this.toReferencedList(s.elements)}return s}isValidLVal(e,t,r){return e==="TypeCastExpression"||super.isValidLVal(e,t,r)}parseClassProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,n,s,i){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassMethod(e,t,r,n,s,i);if(t.params&&s){const e=t.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(z.ThisParamBannedInConstructor,t)}}else if(t.type==="MethodDefinition"&&s&&t.value.params){const e=t.value.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(z.ThisParamBannedInConstructor,t)}}}pushClassPrivateMethod(e,t,r,n){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassPrivateMethod(e,t,r,n)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){{e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()}}if(this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(true);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];if(this.isThisParam(r)&&e.kind==="get"){this.raise(z.GetterMayNotHaveThisParam,r)}else if(this.isThisParam(r)){this.raise(z.SetterMayNotHaveThisParam,r)}}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,n,s,i,a){if(e.variance){this.unexpected(e.variance.loc.start)}delete e.variance;let o;if(this.match(47)&&!i){o=this.flowParseTypeParameterDeclaration();if(!this.match(10))this.unexpected()}const l=super.parseObjPropValue(e,t,r,n,s,i,a);if(o){(l.value||l).typeParameters=o}return l}parseFunctionParamType(e){if(this.eat(17)){if(e.type!=="Identifier"){this.raise(z.PatternIsOptional,e)}if(this.isThisParam(e)){this.raise(z.ThisParamMayNotBeOptional,e)}e.optional=true}if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}else if(this.isThisParam(e)){this.raise(z.ThisParamAnnotationRequired,e)}if(this.match(29)&&this.isThisParam(e)){this.raise(z.ThisParamNoDefault,e)}this.resetEndLocation(e);return e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(z.TypeBeforeInitializer,r.typeAnnotation)}return r}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(z.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}parseImportSpecifierLocal(e,t,r){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(true,true):this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){if(!e)return true;const t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n);if(t){if(!r&&this.match(65)){return}e.exportKind=r==="type"?r:"value"}else{if(r==="type"&&this.match(55))this.unexpected();e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImportSpecifier(e,t,r,n,s){const i=e.imported;let a=null;if(i.type==="Identifier"){if(i.name==="type"){a="type"}else if(i.name==="typeof"){a="typeof"}}let o=false;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(true);if(a!==null&&!tokenIsKeywordOrIdentifier(this.state.type)){e.imported=t;e.importKind=a;e.local=cloneIdentifier(t)}else{e.imported=i;e.importKind=null;e.local=this.parseIdentifier()}}else{if(a!==null&&tokenIsKeywordOrIdentifier(this.state.type)){e.imported=this.parseIdentifier(true);e.importKind=a}else{if(t){throw this.raise(p.ImportBindingIsString,e,{importName:i.value})}e.imported=i;e.importKind=null}if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{o=true;e.local=cloneIdentifier(e.imported)}}const l=hasTypeImportKind(e);if(r&&l){this.raise(z.ImportTypeShorthandOnlyInPureImport,e)}if(r||l){this.checkReservedType(e.local.name,e.local.loc.start,true)}if(o&&!r&&!l){this.checkReservedWord(e.local.name,e.loc.start,true,true)}return this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(true);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){const r=e.kind;if(r!=="get"&&r!=="set"&&this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(this.match(14)){e.id.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;e.returnType=this.flowParseTypeAnnotation();this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let n=null;let s;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){n=this.state.clone();s=this.tryParse((()=>super.parseMaybeAssign(e,t)),n);if(!s.error)return s.node;const{context:r}=this.state;const i=r[r.length-1];if(i===d.j_oTag||i===d.j_expr){r.pop()}}if((r=s)!=null&&r.error||this.match(47)){var i,a;n=n||this.state.clone();let r;const o=this.tryParse((n=>{var s;r=this.flowParseTypeParameterDeclaration();const i=this.forwardNoArrowParamsConversionAt(r,(()=>{const n=super.parseMaybeAssign(e,t);this.resetStartLocationFromNode(n,r);return n}));if((s=i.extra)!=null&&s.parenthesized)n();const a=this.maybeUnwrapTypeCastExpression(i);if(a.type!=="ArrowFunctionExpression")n();a.typeParameters=r;this.resetStartLocationFromNode(a,r);return i}),n);let l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted){if(o.node.async){this.raise(z.UnexpectedTypeParameterBeforeAsyncArrowFunction,r)}return o.node}l=o.node}if((i=s)!=null&&i.node){this.state=s.failState;return s.node}if(l){this.state=o.failState;return l}if((a=s)!=null&&a.thrown)throw s.error;if(o.thrown)throw o.error;throw this.raise(z.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;const r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();this.state.noAnonFunctionType=t;if(this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return r}));if(t.thrown)return null;if(t.error)this.state=t.failState;e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){e.params=t}else{super.setArrowFunctionParameters(e,t)}}checkParams(e,t,r,n=true){if(r&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){return}for(let t=0;t<e.params.length;t++){if(this.isThisParam(e.params[t])&&t>0){this.raise(z.ThisParamMustBeFirst,e.params[t])}}super.checkParams(e,t,r,n)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e;r.arguments=super.parseCallExpressionArguments(11);e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){const n=this.state.clone();const s=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!s.error&&!s.aborted)return s.node;const i=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(i.node&&!i.error)return i.node;if(s.node){this.state=s.failState;return s.node}if(i.node){this.state=i.failState;return i.node}throw s.error||i.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,n){if(this.match(18)&&this.isLookaheadToken_lt()){n.optionalChainMember=true;if(r){n.stop=true;return e}this.next();const s=this.startNodeAt(t);s.callee=e;s.typeArguments=this.flowParseTypeParameterInstantiationInExpression();this.expect(10);s.arguments=this.parseCallExpressionArguments(11);s.optional=true;return this.finishCallExpression(s,true)}else if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const r=this.startNodeAt(t);r.callee=e;const s=this.tryParse((()=>{r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew();this.expect(10);r.arguments=super.parseCallExpressionArguments(11);if(n.optionalChainMember){r.optional=false}return this.finishCallExpression(r,n.optionalChainMember)}));if(s.node){if(s.error)this.state=s.failState;return s.node}}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let t=null;if(this.shouldParseTypes()&&this.match(47)){t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node}e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);this.parseFunctionParams(t,false);if(!this.parseArrow(t))return;return super.parseArrowExpression(t,undefined,true)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=false;this.state.pos+=2;this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);if(this.state.hasFlowComment){this.raise(z.UnterminatedFlowComment,this.state.curPosition())}return r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment){throw this.raise(z.NestedFlowComment,this.state.startLoc)}this.hasFlowCommentCompletion();const e=this.skipFlowComment();if(e){this.state.pos+=e;this.state.hasFlowComment=true}return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;while([32,9].includes(this.input.charCodeAt(e+t))){t++}const r=this.input.charCodeAt(t+e);const n=this.input.charCodeAt(t+e+1);if(r===58&&n===58){return t+2}if(this.input.slice(t+e,t+e+12)==="flow-include"){return t+12}if(r===58&&n!==58){return t}return false}hasFlowCommentCompletion(){const e=this.input.indexOf("*/",this.state.pos);if(e===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(z.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(!t.explicitType?z.EnumInvalidMemberInitializerUnknownType:t.explicitType==="symbol"?z.EnumInvalidMemberInitializerSymbolType:z.EnumInvalidMemberInitializerPrimaryType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(z.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(z.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc;const endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const t=this.parseNumericLiteral(this.state.value);if(endOfInit()){return{type:"number",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 134:{const t=this.parseStringLiteral(this.state.value);if(endOfInit()){return{type:"string",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 85:case 86:{const t=this.parseBooleanLiteral(this.match(85));if(endOfInit()){return{type:"boolean",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;const t=this.parseIdentifier(true);const r=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:t,init:r}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:n}=t;if(n===null){return}if(n!==r){this.flowEnumErrorInvalidMemberInitializer(e,t)}}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set;const n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let s=false;while(!this.match(8)){if(this.eat(21)){s=true;break}const i=this.startNode();const{id:a,init:o}=this.flowEnumMemberRaw();const l=a.name;if(l===""){continue}if(/^[a-z]/.test(l)){this.raise(z.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e})}if(r.has(l)){this.raise(z.EnumDuplicateMemberName,a,{memberName:l,enumName:e})}r.add(l);const c={enumName:e,explicitType:t,memberName:l};i.id=a;switch(o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean");i.init=o.value;n.booleanMembers.push(this.finishNode(i,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number");i.init=o.value;n.numberMembers.push(this.finishNode(i,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string");i.init=o.value;n.stringMembers.push(this.finishNode(i,"EnumStringMember"));break}case"invalid":{throw this.flowEnumErrorInvalidMemberInitializer(o.loc,c)}case"none":{switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,c);break;default:n.defaultedMembers.push(this.finishNode(i,"EnumDefaultedMember"))}}}if(!this.match(8)){this.expect(12)}}return{members:n,hasUnknownMembers:s}}flowEnumStringMembers(e,t,{enumName:r}){if(e.length===0){return t}else if(t.length===0){return e}else if(t.length>e.length){for(const t of e){this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r})}return t}else{for(const e of t){this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r})}return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type)){throw this.raise(z.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e})}const{value:t}=this.state;this.next();if(t!=="boolean"&&t!=="number"&&t!=="string"&&t!=="symbol"){this.raise(z.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t})}return t}flowEnumBody(e,t){const r=t.name;const n=t.loc.start;const s=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:i,hasUnknownMembers:a}=this.flowEnumMembers({enumName:r,explicitType:s});e.hasUnknownMembers=a;switch(s){case"boolean":e.explicitType=true;e.members=i.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody");case"number":e.explicitType=true;e.members=i.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody");case"string":e.explicitType=true;e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody");case"symbol":e.members=i.defaultedMembers;this.expect(8);return this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>{e.members=[];this.expect(8);return this.finishNode(e,"EnumStringBody")};e.explicitType=false;const t=i.booleanMembers.length;const s=i.numberMembers.length;const a=i.stringMembers.length;const o=i.defaultedMembers.length;if(!t&&!s&&!a&&!o){return empty()}else if(!t&&!s){e.members=this.flowEnumStringMembers(i.stringMembers,i.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody")}else if(!s&&!a&&t>=o){for(const e of i.defaultedMembers){this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=i.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody")}else if(!t&&!a&&s>=o){for(const e of i.defaultedMembers){this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=i.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody")}else{this.raise(z.EnumInconsistentMemberValues,n,{enumName:r});return empty()}}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();e.id=t;e.body=this.flowEnumBody(this.startNode(),t);return this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){if(this.shouldParseTypes()){if(this.match(47)||this.match(51)){e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}}return super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return false}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}};const Q={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const Z=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":false}function getQualifiedJSXName(e){if(e.type==="JSXIdentifier"){return e.name}if(e.type==="JSXNamespacedName"){return e.namespace.name+":"+e.name.name}if(e.type==="JSXMemberExpression"){return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property)}throw new Error("Node had unexpected type: "+e.type)}var jsx=e=>class JSXParserMixin extends e{jsxReadToken(){let e="";let t=this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(Z.UnterminatedJsxContent,this.state.startLoc)}const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){if(r===60&&this.state.canStartJSXElement){++this.state.pos;this.finishToken(143)}else{super.getTokenFromCode(r)}return}e+=this.input.slice(t,this.state.pos);this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos);e+=this.jsxReadEntity();t=this.state.pos;break;case 62:case 125:default:if(isNewLine(r)){e+=this.input.slice(t,this.state.pos);e+=this.jsxReadNewLine(true);t=this.state.pos}else{++this.state.pos}}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;++this.state.pos;if(t===13&&this.input.charCodeAt(this.state.pos)===10){++this.state.pos;r=e?"\n":"\r\n"}else{r=String.fromCharCode(t)}++this.state.curLine;this.state.lineStart=this.state.pos;return r}jsxReadString(e){let t="";let r=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(p.UnterminatedString,this.state.startLoc)}const n=this.input.charCodeAt(this.state.pos);if(n===e)break;if(n===38){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadEntity();r=this.state.pos}else if(isNewLine(n)){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadNewLine(false);r=this.state.pos}else{++this.state.pos}}t+=this.input.slice(r,this.state.pos++);this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;if(this.codePointAtPos(this.state.pos)===120){e=16;++this.state.pos}const t=this.readInt(e,undefined,false,"bail");if(t!==null&&this.codePointAtPos(this.state.pos)===59){++this.state.pos;return String.fromCodePoint(t)}}else{let t=0;let r=false;while(t++<10&&this.state.pos<this.length&&!(r=this.codePointAtPos(this.state.pos)===59)){++this.state.pos}if(r){const t=this.input.slice(e,this.state.pos);const r=Q[t];++this.state.pos;if(r){return r}}}this.state.pos=e;return"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();if(this.match(141)){e.name=this.state.value}else if(tokenIsKeyword(this.state.type)){e.name=tokenLabelName(this.state.type)}else{this.unexpected()}this.next();return this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc;const t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);r.namespace=t;r.name=this.jsxParseIdentifier();return this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if(t.type==="JSXNamespacedName"){return t}while(this.eat(16)){const r=this.startNodeAt(e);r.object=t;r.property=this.jsxParseIdentifier();t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:e=this.startNode();this.setContext(d.brace);this.next();e=this.jsxParseExpressionContainer(e,d.j_oTag);if(e.expression.type==="JSXEmptyExpression"){this.raise(Z.AttributeIsEmpty,e)}return e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Z.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){this.next();e.expression=this.parseExpression();this.setContext(d.j_expr);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8)){e.expression=this.jsxParseEmptyExpression()}else{const t=this.parseExpression();e.expression=t}this.setContext(t);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();if(this.match(5)){this.setContext(d.brace);this.next();this.expect(21);e.argument=this.parseMaybeAssignAllowIn();this.setContext(d.j_oTag);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadAttribute")}e.name=this.jsxParseNamespacedName();e.value=this.eat(29)?this.jsxParseAttributeValue():null;return this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXOpeningFragment")}t.name=this.jsxParseElementName();return this.jsxParseOpeningElementAfterName(t)}jsxParseOpeningElementAfterName(e){const t=[];while(!this.match(56)&&!this.match(144)){t.push(this.jsxParseAttribute())}e.attributes=t;e.selfClosing=this.eat(56);this.expect(144);return this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXClosingFragment")}t.name=this.jsxParseElementName();this.expect(144);return this.finishNode(t,"JSXClosingElement")}jsxParseElementAt(e){const t=this.startNodeAt(e);const r=[];const n=this.jsxParseOpeningElementAt(e);let s=null;if(!n.selfClosing){e:for(;;){switch(this.state.type){case 143:e=this.state.startLoc;this.next();if(this.eat(56)){s=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(d.brace);this.next();if(this.match(21)){r.push(this.jsxParseSpreadChild(e))}else{r.push(this.jsxParseExpressionContainer(e,d.j_expr))}break}default:this.unexpected()}}if(isFragment(n)&&!isFragment(s)&&s!==null){this.raise(Z.MissingClosingTagFragment,s)}else if(!isFragment(n)&&isFragment(s)){this.raise(Z.MissingClosingTagElement,s,{openingTagName:getQualifiedJSXName(n.name)})}else if(!isFragment(n)&&!isFragment(s)){if(getQualifiedJSXName(s.name)!==getQualifiedJSXName(n.name)){this.raise(Z.MissingClosingTagElement,s,{openingTagName:getQualifiedJSXName(n.name)})}}}if(isFragment(n)){t.openingFragment=n;t.closingFragment=s}else{t.openingElement=n;t.closingElement=s}t.children=r;if(this.match(47)){throw this.raise(Z.UnwrappedAdjacentJSXElements,this.state.startLoc)}return isFragment(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;this.next();return this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){if(this.match(143)){return this.jsxParseElement()}else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33){this.replaceToken(143);return this.jsxParseElement()}else{return super.parseExprAtom(e)}}skipSpace(){const e=this.curContext();if(!e.preserveSpace)super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t===d.j_expr){this.jsxReadToken();return}if(t===d.j_oTag||t===d.j_cTag){if(isIdentifierStart(e)){this.jsxReadWord();return}if(e===62){++this.state.pos;this.finishToken(144);return}if((e===34||e===39)&&t===d.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos;this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){const{context:t,type:r}=this.state;if(r===56&&e===143){t.splice(-2,2,d.j_cTag);this.state.canStartJSXElement=false}else if(r===143){t.push(d.j_oTag)}else if(r===144){const r=t[t.length-1];if(r===d.j_oTag&&e===56||r===d.j_cTag){t.pop();this.state.canStartJSXElement=t[t.length-1]===d.j_expr}else{this.setContext(d.j_expr);this.state.canStartJSXElement=true}}else{this.state.canStartJSXElement=tokenComesBeforeExpression(r)}}};class TypeScriptScope extends Scope{constructor(...e){super(...e);this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e);this.importsStack=[]}createScope(e){this.importsStack.push(new Set);return new TypeScriptScope(e)}enter(e){if(e===256){this.importsStack.push(new Set)}super.enter(e)}exit(){const e=super.exit();if(e===256){this.importsStack.pop()}return e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e)){return true}if(!t&&r>1){for(let t=0;t<r-1;t++){if(this.importsStack[t].has(e))return true}}return false}declareName(e,t,r){if(t&4096){if(this.hasImport(e,true)){this.parser.raise(p.VarRedeclaration,r,{identifierName:e})}this.importsStack[this.importsStack.length-1].add(e);return}const n=this.currentScope();let s=n.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(n,e);n.tsNames.set(e,s|16);return}super.declareName(e,t,r);if(t&2){if(!(t&1)){this.checkRedeclarationInScope(n,e,t,r);this.maybeExportDefined(n,e)}s=s|1}if(t&256){s=s|2}if(t&512){s=s|4}if(t&128){s=s|8}if(s)n.tsNames.set(e,s)}isRedeclaredInScope(e,t,r){const n=e.tsNames.get(t);if((n&2)>0){if(r&256){const e=!!(r&512);const t=(n&4)>0;return e!==t}return true}if(r&128&&(n&8)>0){if(e.names.get(t)&2){return!!(r&1)}else{return false}}if(r&2&&(n&1)>0){return true}return super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;const r=this.scopeStack.length;for(let e=r-1;e>=0;e--){const r=this.scopeStack[e];const n=r.tsNames.get(t);if((n&1)>0||(n&16)>0){return}}super.checkLocalExport(e)}}const unwrapParenthesizedExpression=e=>e.type==="ParenthesizedExpression"?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,t=false){var r,n;let s=undefined;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized){s=unwrapParenthesizedExpression(e);if(t){if(s.type==="Identifier"){this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,e)}else if(s.type!=="MemberExpression"&&!this.isOptionalMemberExpression(s)){this.raise(p.InvalidParenthesizedAssignment,e)}}else{this.raise(p.InvalidParenthesizedAssignment,e)}}switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(let r=0,n=e.properties.length,s=n-1;r<n;r++){var i;const n=e.properties[r];const a=r===s;this.toAssignableObjectExpressionProp(n,a,t);if(a&&n.type==="RestElement"&&(i=e.extra)!=null&&i.trailingCommaLoc){this.raise(p.RestTrailingComma,e.extra.trailingCommaLoc)}}break;case"ObjectProperty":{const{key:r,value:n}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(n,t);break}case"SpreadElement":{throw new Error("Internal @babel/parser error (this is a bug, please report it)."+" SpreadElement should be converted by .toAssignable's caller.")}case"ArrayExpression":e.type="ArrayPattern";this.toAssignableList(e.elements,(n=e.extra)==null?void 0:n.trailingCommaLoc,t);break;case"AssignmentExpression":if(e.operator!=="="){this.raise(p.MissingEqInAssignment,e.left.loc.end)}e.type="AssignmentPattern";delete e.operator;this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(s,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod"){this.raise(e.kind==="get"||e.kind==="set"?p.PatternHasAccessor:p.PatternHasMethod,e.key)}else if(e.type==="SpreadElement"){e.type="RestElement";const n=e.argument;this.checkToRestConversion(n,false);this.toAssignable(n,r);if(!t){this.raise(p.RestTrailingComma,e)}}else{this.toAssignable(e,r)}}toAssignableList(e,t,r){const n=e.length-1;for(let s=0;s<=n;s++){const i=e[s];if(!i)continue;this.toAssignableListItem(e,s,r);if(i.type==="RestElement"){if(s<n){this.raise(p.RestTrailingComma,i)}else if(t){this.raise(p.RestTrailingComma,t)}}}}toAssignableListItem(e,t,r){const n=e[t];if(n.type==="SpreadElement"){n.type="RestElement";const e=n.argument;this.checkToRestConversion(e,true);this.toAssignable(e,r)}else{this.toAssignable(n,r)}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return true;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,r)=>e.type!=="ObjectMethod"&&(r===t||e.type!=="SpreadElement")&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>e===null||this.isAssignable(e)));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return false}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e){if((t==null?void 0:t.type)==="ArrayExpression"){this.toReferencedListDeep(t.elements)}}}parseSpread(e){const t=this.startNode();this.next();t.argument=this.parseMaybeAssignAllowIn(e,undefined);return this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();this.next();e.elements=this.parseBindingList(3,93,1);return this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,true)}return this.parseIdentifier()}parseBindingList(e,t,r){const n=r&1;const s=[];let i=true;while(!this.eat(e)){if(i){i=false}else{this.expect(12)}if(n&&this.match(12)){s.push(null)}else if(this.eat(e)){break}else if(this.match(21)){let n=this.parseRestBinding();if(this.hasPlugin("flow")||r&2){n=this.parseFunctionParamType(n)}s.push(n);if(!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(r&2){if(this.match(26)&&this.hasPlugin("decorators")){this.raise(p.UnsupportedParameterDecorator,this.state.startLoc)}while(this.match(26)){e.push(this.parseDecorator())}}s.push(this.parseBindingElement(r,e))}}return s}parseBindingRestProperty(e){this.next();e.argument=this.parseIdentifier();this.checkCommaAfterRest(125);return this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(e===21){return this.parseBindingRestProperty(this.startNode())}const r=this.startNode();if(e===139){this.expectPlugin("destructuringPrivate",t);this.classScope.usePrivateName(this.state.value,t);r.key=this.parsePrivateName()}else{this.parsePropertyName(r)}r.method=false;return this.parseObjPropValue(r,t,false,false,true,false)}parseBindingElement(e,t){const r=this.parseMaybeDefault();if(this.hasPlugin("flow")||e&2){this.parseFunctionParamType(r)}const n=this.parseMaybeDefault(r.loc.start,r);if(t.length){r.decorators=t}return n}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){e!=null?e:e=this.state.startLoc;t=t!=null?t:this.parseBindingAtom();if(!this.eat(29))return t;const r=this.startNodeAt(e);r.left=t;r.right=this.parseMaybeAssignAllowIn();return this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return false}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,n=false,s=false,i=false){var a;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||o==="MemberExpression"){if(l){this.expectPlugin("optionalChainingAssign",e.loc.start);if(t.type!=="AssignmentExpression"){this.raise(p.InvalidLhsOptionalChaining,e,{ancestor:t})}}if(r!==64){this.raise(p.InvalidPropertyBindingPattern,e)}return}if(o==="Identifier"){this.checkIdentifier(e,r,s);const{name:t}=e;if(n){if(n.has(t)){this.raise(p.ParamDupe,e)}else{n.add(t)}}return}const c=this.isValidLVal(o,!(i||(a=e.extra)!=null&&a.parenthesized)&&t.type==="AssignmentExpression",r);if(c===true)return;if(c===false){const n=r===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(n,e,{ancestor:t});return}let u,d;if(typeof c==="string"){u=c;d=o==="ParenthesizedExpression"}else{[u,d]=c}const f=o==="ArrayPattern"||o==="ObjectPattern"?{type:o}:t;const h=e[u];if(Array.isArray(h)){for(const e of h){if(e){this.checkLVal(e,f,r,n,s,d)}}}else if(h){this.checkLVal(h,f,r,n,s,d)}}checkIdentifier(e,t,r=false){if(this.state.strict&&(r?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))){if(t===64){this.raise(p.StrictEvalArguments,e,{referenceName:e.name})}else{this.raise(p.StrictEvalArgumentsBinding,e,{bindingName:e.name})}}if(t&8192&&e.name==="let"){this.raise(p.LetInLexicalBinding,e)}if(!(t&64)){this.declareNameFromIdentifier(e,t)}}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(p.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){if(!this.match(12)){return false}this.raise(this.lookaheadCharCode()===e?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc);return true}}function nonNull(e){if(e==null){throw new Error(`Unexpected ${e} value.`)}return e}function assert(e){if(!e){throw new Error("Assert fail")}}const ee=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. "+"You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function keywordTypeFromName(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return undefined}}function tsIsAccessModifier(e){return e==="private"||e==="public"||e==="protected"}function tsIsVarianceAnnotations(e){return e==="in"||e==="out"}var typescript=e=>class TypeScriptParserMixin extends e{constructor(...e){super(...e);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:ee.InvalidModifierOnTypeParameter});this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:ee.InvalidModifierOnTypeParameterPositions});this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:ee.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){this.next();if(this.hasPrecedingLineBreak()){return false}return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106)){this.next();return this.tsTokenCanFollowModifier()}return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t){if(!tokenIsIdentifier(this.state.type)&&this.state.type!==58&&this.state.type!==75){return undefined}const r=this.state.value;if(e.includes(r)){if(t&&this.tsIsStartOfStaticBlocks()){return undefined}if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))){return r}}return undefined}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:n=ee.InvalidModifierOnTypeMember},s){const enforceOrder=(e,t,r,n)=>{if(t===r&&s[n]){this.raise(ee.InvalidModifiersOrder,e,{orderedModifiers:[r,n]})}};const incompatible=(e,t,r,n)=>{if(s[r]&&t===n||s[n]&&t===r){this.raise(ee.IncompatibleModifiers,e,{modifiers:[r,n]})}};for(;;){const{startLoc:i}=this.state;const a=this.tsParseModifier(e.concat(t!=null?t:[]),r);if(!a)break;if(tsIsAccessModifier(a)){if(s.accessibility){this.raise(ee.DuplicateAccessibilityModifier,i,{modifier:a})}else{enforceOrder(i,a,a,"override");enforceOrder(i,a,a,"static");enforceOrder(i,a,a,"readonly");s.accessibility=a}}else if(tsIsVarianceAnnotations(a)){if(s[a]){this.raise(ee.DuplicateModifier,i,{modifier:a})}s[a]=true;enforceOrder(i,a,"in","out")}else{if(hasOwnProperty.call(s,a)){this.raise(ee.DuplicateModifier,i,{modifier:a})}else{enforceOrder(i,a,"static","readonly");enforceOrder(i,a,"static","override");enforceOrder(i,a,"override","readonly");enforceOrder(i,a,"abstract","override");incompatible(i,a,"declare","override");incompatible(i,a,"static","abstract")}s[a]=true}if(t!=null&&t.includes(a)){this.raise(n,i,{modifier:a})}}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const r=[];while(!this.tsIsListTerminator(e)){r.push(t())}return r}tsParseDelimitedList(e,t,r){return nonNull(this.tsParseDelimitedListWorker(e,t,true,r))}tsParseDelimitedListWorker(e,t,r,n){const s=[];let i=-1;for(;;){if(this.tsIsListTerminator(e)){break}i=-1;const n=t();if(n==null){return undefined}s.push(n);if(this.eat(12)){i=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e)){break}if(r){this.expect(12)}return undefined}if(n){n.value=i}return s}tsParseBracketedList(e,t,r,n,s){if(!n){if(r){this.expect(0)}else{this.expect(47)}}const i=this.tsParseDelimitedList(e,t,s);if(r){this.expect(3)}else{this.expect(48)}return i}tsParseImportType(){const e=this.startNode();this.expect(83);this.expect(10);if(!this.match(134)){this.raise(ee.UnsupportedImportTypeArgument,this.state.startLoc);{e.argument=super.parseExprAtom()}}else{{e.argument=this.parseStringLiteral(this.state.value)}}if(this.eat(12)&&!this.match(11)){e.options=super.parseMaybeAssignAllowIn();this.eat(12)}else{e.options=null}this.expect(11);if(this.eat(16)){e.qualifier=this.tsParseEntityName(1|2)}if(this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSImportType")}tsParseEntityName(e){let t;if(e&1&&this.match(78)){if(e&2){t=this.parseIdentifier(true)}else{const e=this.startNode();this.next();t=this.finishNode(e,"ThisExpression")}}else{t=this.parseIdentifier(!!(e&1))}while(this.eat(16)){const r=this.startNodeAtNode(t);r.left=t;r.right=this.parseIdentifier(!!(e&1));t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();e.typeName=this.tsParseEntityName(1);if(!this.hasPrecedingLineBreak()&&this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);t.parameterName=e;t.typeAnnotation=this.tsParseTypeAnnotation(false);t.asserts=false;return this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();this.next();return this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();this.expect(87);if(this.match(83)){e.exprName=this.tsParseImportType()}else{{e.exprName=this.tsParseEntityName(1|2)}}if(!this.hasPrecedingLineBreak()&&this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();e(t);t.name=this.tsParseTypeParameterName();t.constraint=this.tsEatThenParseType(81);t.default=this.tsEatThenParseType(29);return this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47)){return this.tsParseTypeParameters(e)}}tsParseTypeParameters(e){const t=this.startNode();if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}const r={value:-1};t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),false,true,r);if(t.params.length===0){this.raise(ee.EmptyTypeParameters,t)}if(r.value!==-1){this.addExtra(t,"trailingComma",r.value)}return this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=e===19;const n="parameters";const s="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier);this.expect(10);t[n]=this.tsParseBindingListForSignature();if(r){t[s]=this.tsParseTypeOrTypePredicateAnnotation(e)}else if(this.match(e)){t[s]=this.tsParseTypeOrTypePredicateAnnotation(e)}}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;if(e==="AssignmentPattern"||e==="TSParameterProperty"){this.raise(ee.UnsupportedSignatureParameterKind,t,{type:e})}}return e}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator()){this.expect(13)}}tsParseSignatureMember(e,t){this.tsFillSignature(14,t);this.tsParseTypeMemberSemicolon();return this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){this.next();if(tokenIsIdentifier(this.state.type)){this.next();return this.match(14)}return false}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))){return}this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation();this.resetEndLocation(t);this.expect(3);e.parameters=[t];const r=this.tsTryParseTypeAnnotation();if(r)e.typeAnnotation=r;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17))e.optional=true;const r=e;if(this.match(10)||this.match(47)){if(t){this.raise(ee.ReadonlyForMethodSignature,e)}const n=r;if(n.kind&&this.match(47)){this.raise(ee.AccessorCannotHaveTypeParameters,this.state.curPosition())}this.tsFillSignature(14,n);this.tsParseTypeMemberSemicolon();const s="parameters";const i="typeAnnotation";if(n.kind==="get"){if(n[s].length>0){this.raise(p.BadGetterArity,this.state.curPosition());if(this.isThisParam(n[s][0])){this.raise(ee.AccessorCannotDeclareThisParameter,this.state.curPosition())}}}else if(n.kind==="set"){if(n[s].length!==1){this.raise(p.BadSetterArity,this.state.curPosition())}else{const e=n[s][0];if(this.isThisParam(e)){this.raise(ee.AccessorCannotDeclareThisParameter,this.state.curPosition())}if(e.type==="Identifier"&&e.optional){this.raise(ee.SetAccessorCannotHaveOptionalParameter,this.state.curPosition())}if(e.type==="RestElement"){this.raise(ee.SetAccessorCannotHaveRestParameter,this.state.curPosition())}}if(n[i]){this.raise(ee.SetAccessorCannotHaveReturnType,n[i])}}else{n.kind="method"}return this.finishNode(n,"TSMethodSignature")}else{const e=r;if(t)e.readonly=true;const n=this.tsTryParseTypeAnnotation();if(n)e.typeAnnotation=n;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSCallSignatureDeclaration",e)}if(this.match(77)){const t=this.startNode();this.next();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSConstructSignatureDeclaration",e)}else{e.key=this.createIdentifier(t,"new");return this.tsParsePropertyOrMethodSignature(e,false)}}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);if(t){return t}super.parsePropertyName(e);if(!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()){e.kind=e.key.name;super.parsePropertyName(e)}return this.tsParsePropertyOrMethodSignature(e,!!e.readonly)}tsParseTypeLiteral(){const e=this.startNode();e.members=this.tsParseObjectTypeMembers();return this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));this.expect(8);return e}tsIsStartOfMappedType(){this.next();if(this.eat(53)){return this.isContextual(122)}if(this.isContextual(122)){this.next()}if(!this.match(0)){return false}this.next();if(!this.tsIsIdentifier()){return false}this.next();return this.match(58)}tsParseMappedType(){const e=this.startNode();this.expect(5);if(this.match(53)){e.readonly=this.state.value;this.next();this.expectContextual(122)}else if(this.eatContextual(122)){e.readonly=true}this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsExpectThenParseType(58);e.typeParameter=this.finishNode(t,"TSTypeParameter")}e.nameType=this.eatContextual(93)?this.tsParseType():null;this.expect(3);if(this.match(53)){e.optional=this.state.value;this.next();this.expect(17)}else if(this.eat(17)){e.optional=true}e.typeAnnotation=this.tsTryParseType();this.semicolon();this.expect(8);return this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),true,false);let t=false;e.elementTypes.forEach((e=>{const{type:r}=e;if(t&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&e.optional)){this.raise(ee.OptionalTypeBeforeRequired,e)}t||(t=r==="TSNamedTupleMember"&&e.optional||r==="TSOptionalType")}));return this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc;const t=this.eat(21);const{startLoc:r}=this.state;let n;let s;let i;let a;const o=tokenIsKeywordOrIdentifier(this.state.type);const l=o?this.lookaheadCharCode():null;if(l===58){n=true;i=false;s=this.parseIdentifier(true);this.expect(14);a=this.tsParseType()}else if(l===63){i=true;const e=this.state.value;const t=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58){n=true;s=this.createIdentifier(this.startNodeAt(r),e);this.expect(17);this.expect(14);a=this.tsParseType()}else{n=false;a=t;this.expect(17)}}else{a=this.tsParseType();i=this.eat(17);n=this.eat(14)}if(n){let e;if(s){e=this.startNodeAt(r);e.optional=i;e.label=s;e.elementType=a;if(this.eat(17)){e.optional=true;this.raise(ee.TupleOptionalAfterType,this.state.lastTokStartLoc)}}else{e=this.startNodeAt(r);e.optional=i;this.raise(ee.InvalidTupleMemberLabel,a);e.label=a;e.elementType=this.tsParseType()}a=this.finishNode(e,"TSNamedTupleMember")}else if(i){const e=this.startNodeAt(r);e.typeAnnotation=a;a=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=a;a=this.finishNode(t,"TSRestType")}return a}tsParseParenthesizedType(){const e=this.startNode();this.expect(10);e.typeAnnotation=this.tsParseType();this.expect(11);return this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();if(e==="TSConstructorType"){r.abstract=!!t;if(t)this.next();this.next()}this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r)));return this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();e.literal=super.parseTemplate(false);return this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){return this.tsParseThisTypePredicate(e)}else{return e}}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const e=this.startNode();const t=this.lookahead();if(t.type!==135&&t.type!==136){this.unexpected()}e.literal=this.parseMaybeUnary();return this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(tokenIsIdentifier(e)||e===88||e===84){const t=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":keywordTypeFromName(this.state.value);if(t!==undefined&&this.lookaheadCharCode()!==46){const e=this.startNode();this.next();return this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0)){if(this.match(3)){const r=this.startNodeAt(e);r.elementType=t;this.expect(3);t=this.finishNode(r,"TSArrayType")}else{const r=this.startNodeAt(e);r.objectType=t;r.indexType=this.tsParseType();this.expect(3);t=this.finishNode(r,"TSIndexedAccessType")}}return t}tsParseTypeOperator(){const e=this.startNode();const t=this.state.value;this.next();e.operator=t;e.typeAnnotation=this.tsParseTypeOperatorOrHigher();if(t==="readonly"){this.tsCheckTypeAnnotationForReadOnly(e)}return this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(ee.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType()));e.typeParameter=this.finishNode(t,"TSTypeParameter");return this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17)){return e}}}tsParseTypeOperatorOrHigher(){const e=tokenIsTSTypeOperator(this.state.type)&&!this.state.containsEsc;return e?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){const n=this.startNode();const s=this.eat(r);const i=[];do{i.push(t())}while(this.eat(r));if(i.length===1&&!s){return i[0]}n.types=i;return this.finishNode(n,e)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47)){return true}return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78)){this.next();return true}if(this.match(5)){const{errors:e}=this.state;const t=e.length;try{this.parseObjectLike(8,true);return e.length===t}catch(e){return false}}if(this.match(0)){this.next();const{errors:e}=this.state;const t=e.length;try{super.parseBindingList(3,93,1);return e.length===t}catch(e){return false}}return false}tsIsUnambiguouslyStartOfFunctionType(){this.next();if(this.match(11)||this.match(21)){return true}if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29)){return true}if(this.match(11)){this.next();if(this.match(19)){return true}}}return false}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode();const n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();if(e.type==="TSThisType"){r.parameterName=e;r.asserts=true;r.typeAnnotation=null;e=this.finishNode(r,"TSTypePredicate")}else{this.resetStartLocationFromNode(e,r);e.asserts=true}t.typeAnnotation=e;return this.finishNode(t,"TSTypeAnnotation")}const s=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!s){if(!n){return this.tsParseTypeAnnotation(false,t)}r.parameterName=this.parseIdentifier();r.asserts=n;r.typeAnnotation=null;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}const i=this.tsParseTypeAnnotation(false);r.parameterName=s;r.typeAnnotation=i;r.asserts=n;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14)){return this.tsParseTypeOrTypePredicateAnnotation(14)}}tsTryParseTypeAnnotation(){if(this.match(14)){return this.tsParseTypeAnnotation()}}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){this.next();return e}}tsParseTypePredicateAsserts(){if(this.state.type!==109){return false}const e=this.state.containsEsc;this.next();if(!tokenIsIdentifier(this.state.type)&&!this.match(78)){return false}if(e){this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"})}return true}tsParseTypeAnnotation(e=true,t=this.startNode()){this.tsInType((()=>{if(e)this.expect(14);t.typeAnnotation=this.tsParseType()}));return this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81)){return e}const t=this.startNodeAtNode(e);t.checkType=e;t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType()));this.expect(17);t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));this.expect(14);t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));return this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType()){return this.tsParseFunctionOrConstructorType("TSFunctionType")}if(this.match(77)){return this.tsParseFunctionOrConstructorType("TSConstructorType")}else if(this.isAbstractConstructorSignature()){return this.tsParseFunctionOrConstructorType("TSConstructorType",true)}return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(ee.ReservedTypeAssertion,this.state.startLoc)}const e=this.startNode();e.typeAnnotation=this.tsInType((()=>{this.next();return this.match(75)?this.tsParseTypeReference():this.tsParseType()}));this.expect(48);e.expression=this.parseMaybeUnary();return this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc;const r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{const e=this.startNode();e.expression=this.tsParseEntityName(1|2);if(this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSExpressionWithTypeArguments")}}));if(!r.length){this.raise(ee.EmptyHeritageClauseType,t,{token:e})}return r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129);if(t.declare)e.declare=true;if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();this.checkIdentifier(e.id,130)}else{e.id=null;this.raise(ee.MissingInterfaceName,this.state.startLoc)}e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(this.eat(81)){e.extends=this.tsParseHeritageClause("extends")}const r=this.startNode();r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this));e.body=this.finishNode(r,"TSInterfaceBody");return this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){e.id=this.parseIdentifier();this.checkIdentifier(e.id,2);e.typeAnnotation=this.tsInType((()=>{e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers);this.expect(29);if(this.isContextual(114)&&this.lookahead().type!==16){const e=this.startNode();this.next();return this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}));this.semicolon();return this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==d.brace){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else{return e()}}tsInType(e){const t=this.state.inType;this.state.inType=true;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=true;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=false;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e)){return this.tsNextThenParseType()}}tsExpectThenParseType(e){return this.tsInType((()=>{this.expect(e);return this.tsParseType()}))}tsNextThenParseType(){return this.tsInType((()=>{this.next();return this.tsParseType()}))}tsParseEnumMember(){const e=this.startNode();e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(true);if(this.eat(29)){e.initializer=super.parseMaybeAssignAllowIn()}return this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){if(t.const)e.const=true;if(t.declare)e.declare=true;this.expectContextual(126);e.id=this.parseIdentifier();this.checkIdentifier(e.id,e.const?8971:8459);{this.expect(5);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8)}return this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();this.expect(5);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8);return this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();this.scope.enter(0);this.expect(5);super.parseBlockOrModuleBlockBody(e.body=[],undefined,true,8);this.scope.exit();return this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=false){e.id=this.parseIdentifier();if(!t){this.checkIdentifier(e.id,1024)}if(this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,true);e.body=t}else{this.scope.enter(256);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){if(this.isContextual(112)){e.kind="global";{e.global=true}e.id=this.parseIdentifier()}else if(this.match(134)){e.kind="module";e.id=super.parseStringLiteral(this.state.value)}else{this.unexpected()}if(this.match(5)){this.scope.enter(256);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}else{this.semicolon()}return this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){{e.isExport=r||false}e.id=t||this.parseIdentifier();this.checkIdentifier(e.id,4096);this.expect(29);const n=this.tsParseModuleReference();if(e.importKind==="type"&&n.type!=="TSExternalModuleReference"){this.raise(ee.ImportAliasHasImportType,n)}e.moduleReference=n;this.semicolon();return this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();this.expectContextual(119);this.expect(10);if(!this.match(134)){this.unexpected()}e.expression=super.parseExprAtom();this.expect(11);this.sawUnambiguousESM=true;return this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone();const r=e();this.state=t;return r}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(t.aborted||!t.node)return;if(t.error)this.state=t.failState;return t.node}tsTryParse(e){const t=this.state.clone();const r=e();if(r!==undefined&&r!==false){return r}this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator()){return}let t=this.state.type;let r;if(this.isContextual(100)){t=74;r="let"}return this.tsInAmbientContext((()=>{switch(t){case 68:e.declare=true;return super.parseFunctionStatement(e,false,false);case 80:e.declare=true;return this.parseClass(e,true,false);case 126:return this.tsParseEnumDeclaration(e,{declare:true});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum")){e.declare=true;return this.parseVarStatement(e,r||this.state.value,true)}this.expect(75);return this.tsParseEnumDeclaration(e,{const:true,declare:true});case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:true});if(t)return t}default:if(tokenIsIdentifier(t)){return this.tsParseDeclaration(e,this.state.value,true,null)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,true,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t){t.declare=true}return t}case"global":if(this.match(5)){this.scope.enter(256);this.prodParam.enter(0);const r=e;r.kind="global";{e.global=true}r.id=t;r.body=this.tsParseModuleBlock();this.scope.exit();this.prodParam.exit();return this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,false,r)}}tsParseDeclaration(e,t,r,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||tokenIsIdentifier(this.state.type))){return this.tsParseAbstractDeclaration(e,n)}break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134)){return this.tsParseAmbientExternalModuleDeclaration(e)}else if(tokenIsIdentifier(this.state.type)){e.kind="module";return this.tsParseModuleOrNamespaceDeclaration(e)}}break;case"namespace":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){e.kind="namespace";return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"type":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){return this.tsParseTypeAliasDeclaration(e)}break}}tsCheckLineTerminator(e){if(e){if(this.hasFollowingLineBreak())return false;this.next();return true}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;const r=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier);super.parseFunctionParams(t);t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation();this.expect(19);return t}));this.state.maybeInArrowParameters=t;if(!r)return;return super.parseArrowExpression(r,null,true)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();e.params=this.tsInType((()=>this.tsInTopLevelContext((()=>{this.expect(47);return this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))}))));if(e.params.length===0){this.raise(ee.EmptyTypeArguments,e)}else if(!this.state.inType&&this.curContext()===d.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tokenIsTSDeclarationStart(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return false;return super.isExportDefaultSpecifier()}parseBindingElement(e,t){const r=this.state.startLoc;const n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);const s=n.accessibility;const i=n.override;const a=n.readonly;if(!(e&4)&&(s||a||i)){this.raise(ee.UnexpectedParameterModifier,r)}const o=this.parseMaybeDefault();if(e&2){this.parseFunctionParamType(o)}const l=this.parseMaybeDefault(o.loc.start,o);if(s||a||i){const e=this.startNodeAt(r);if(t.length){e.decorators=t}if(s)e.accessibility=s;if(a)e.readonly=a;if(i)e.override=i;if(l.type!=="Identifier"&&l.type!=="AssignmentPattern"){this.raise(ee.UnsupportedParameterPropertyKind,e)}e.parameter=l;return this.finishNode(e,"TSParameterProperty")}if(t.length){o.decorators=t}return l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params){if(t.type!=="Identifier"&&t.optional&&!this.state.isAmbientContext){this.raise(ee.PatternIsOptional,t)}}}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r);this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14)}const n=t==="FunctionDeclaration"?"TSDeclareFunction":t==="ClassMethod"||t==="ClassPrivateMethod"?"TSDeclareMethod":undefined;if(n&&!this.match(5)&&this.isLineTerminator()){return this.finishNode(e,n)}if(n==="TSDeclareFunction"&&this.state.isAmbientContext){this.raise(ee.DeclareFunctionHasImplementation,e);if(e.declare){return super.parseFunctionBodyAndFinish(e,n,r)}}this.tsDisallowOptionalPattern(e);return super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){if(!e.body&&e.id){this.checkIdentifier(e.id,1024)}else{super.registerFunctionStatementId(e)}}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{if((e==null?void 0:e.type)==="TSTypeCastExpression"){this.raise(ee.UnexpectedTypeAnnotation,e.typeAnnotation)}}))}toReferencedList(e,t){this.tsCheckForInvalidTypeCasts(e);return e}parseArrayLike(e,t,r,n){const s=super.parseArrayLike(e,t,r,n);if(s.type==="ArrayExpression"){this.tsCheckForInvalidTypeCasts(s.elements)}return s}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=false;this.next();const r=this.startNodeAt(t);r.expression=e;return this.finishNode(r,"TSNonNullExpression")}let s=false;if(this.match(18)&&this.lookaheadCharCode()===60){if(r){n.stop=true;return e}n.optionalChainMember=s=true;this.next()}if(this.match(47)||this.match(51)){let i;const a=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e){return e}}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(s&&!this.match(10)){i=this.state.curPosition();return}if(tokenIsTemplate(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,n);{r.typeParameters=a}return r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.tsCheckForInvalidTypeCasts(r.arguments);{r.typeParameters=a}if(n.optionalChainMember){r.optional=s}return this.finishCallExpression(r,n.optionalChainMember)}const o=this.state.type;if(o===48||o===52||o!==10&&tokenCanStartExpression(o)&&!this.hasPrecedingLineBreak()){return}const l=this.startNodeAt(t);l.expression=e;{l.typeParameters=a}return this.finishNode(l,"TSInstantiationExpression")}));if(i){this.unexpected(i,10)}if(a){if(a.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)){this.raise(ee.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc)}return a}}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;if(r.type==="TSInstantiationExpression"&&!((t=r.extra)!=null&&t.parenthesized)){{e.typeParameters=r.typeParameters}e.callee=r.expression}}parseExprOp(e,t,r){let n;if(tokenOperatorPrecedence(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){const s=this.startNodeAt(t);s.expression=e;s.typeAnnotation=this.tsInType((()=>{this.next();if(this.match(75)){if(n){this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"})}return this.tsParseTypeReference()}return this.tsParseType()}));this.finishNode(s,n?"TSSatisfiesExpression":"TSAsExpression");this.reScan_lt_gt();return this.parseExprOp(s,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){if(!this.state.isAmbientContext){super.checkReservedWord(e,t,r,n)}}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(ee.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n);if(t){e.exportKind=r==="type"?"type":"value"}else{e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImport(e){if(this.match(134)){e.importKind="value";return super.parseImport(e)}let t;if(tokenIsIdentifier(this.state.type)&&this.lookaheadCharCode()===61){e.importKind="value";return this.tsParseImportEqualsDeclaration(e)}else if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,false);if(this.lookaheadCharCode()===61){return this.tsParseImportEqualsDeclaration(e,r)}else{t=super.parseImportSpecifiersAndAfter(e,r)}}else{t=super.parseImport(e)}if(t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier"){this.raise(ee.TypeImportCannotSpecifyDefaultAndNamed,t)}return t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let r=null;if(this.isContextual(130)&&this.isPotentialImportPhase(false)){r=this.parseMaybeImportPhase(t,false)}else{t.importKind="value"}const n=this.tsParseImportEqualsDeclaration(t,r,true);{return n}}else if(this.eat(29)){const t=e;t.expression=super.parseExpression();this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(t,"TSExportAssignment")}else if(this.eatContextual(93)){const t=e;this.expectContextual(128);t.id=this.parseIdentifier();this.semicolon();return this.finishNode(t,"TSNamespaceExportDeclaration")}else{return super.parseExport(e,t)}}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();this.next();e.abstract=true;return this.parseClass(e,true,true)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=false){const{isAmbientContext:n}=this.state;const s=super.parseVarStatement(e,t,r||n);if(!n)return s;for(const{id:e,init:r}of s.declarations){if(!r)continue;if(t!=="const"||!!e.typeAnnotation){this.raise(ee.InitializerNotAllowedInAmbientContext,r)}else if(!isValidAmbientConstInitializer(r,this.hasPlugin("estree"))){this.raise(ee.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r)}}return s}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();this.expect(75);return this.tsParseEnumDeclaration(e,{const:true})}if(this.isContextual(126)){return this.tsParseEnumDeclaration(this.startNode())}if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>{if(tsIsAccessModifier(t)){return e.accessibility===t}return!!e[t]}))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,r){const n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:true,errorTemplate:ee.InvalidModifierOnTypeParameterPositions},t);const callParseClassMemberWithIsStatic=()=>{if(this.tsIsStartOfStaticBlocks()){this.next();this.next();if(this.tsHasSomeModifiers(t,n)){this.raise(ee.StaticBlockCannotHaveModifier,this.state.curPosition())}super.parseClassStaticBlock(e,t)}else{this.parseClassMemberWithIsStatic(e,t,r,!!t.static)}};if(t.declare){this.tsInAmbientContext(callParseClassMemberWithIsStatic)}else{callParseClassMemberWithIsStatic()}}parseClassMemberWithIsStatic(e,t,r,n){const s=this.tsTryParseIndexSignature(t);if(s){e.body.push(s);if(t.abstract){this.raise(ee.IndexSignatureHasAbstract,t)}if(t.accessibility){this.raise(ee.IndexSignatureHasAccessibility,t,{modifier:t.accessibility})}if(t.declare){this.raise(ee.IndexSignatureHasDeclare,t)}if(t.override){this.raise(ee.IndexSignatureHasOverride,t)}return}if(!this.state.inAbstractClass&&t.abstract){this.raise(ee.NonAbstractClassHasAbstractMethod,t)}if(t.override){if(!r.hadSuperClass){this.raise(ee.OverrideNotInSubClass,t)}}super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){const t=this.eat(17);if(t)e.optional=true;if(e.readonly&&this.match(10)){this.raise(ee.ClassMethodHasReadonly,e)}if(e.declare&&this.match(10)){this.raise(ee.ClassMethodHasDeclare,e)}}parseExpressionStatement(e,t,r){const n=t.type==="Identifier"?this.tsParseExpressionStatement(e,t,r):undefined;return n||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return true;return super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}return super.parseConditional(e,t,r)}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const r=this.startNodeAt(t);r.expression=e;r.typeAnnotation=this.tsParseTypeAnnotation();return this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125)){return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)))}const t=this.state.startLoc;const r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration())){throw this.raise(ee.ExpectedAmbientAfterExportDeclare,this.state.startLoc)}const n=tokenIsIdentifier(this.state.type);const s=n&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);if(!s)return null;if(s.type==="TSInterfaceDeclaration"||s.type==="TSTypeAliasDeclaration"||r){e.exportKind="type"}if(r&&s.type!=="TSImportEqualsDeclaration"){this.resetStartLocation(s,t);s.declare=true}return s}parseClassId(e,t,r,n){if((!t||r)&&this.isContextual(113)){return}super.parseClassId(e,t,r,e.declare?1024:8331);const s=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(s)e.typeParameters=s}parseClassPropertyAnnotation(e){if(!e.optional){if(this.eat(35)){e.definite=true}else if(this.eat(17)){e.optional=true}}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t}parseClassProperty(e){this.parseClassPropertyAnnotation(e);if(this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)){this.raise(ee.DeclareClassFieldHasInitializer,this.state.startLoc)}if(e.abstract&&this.match(29)){const{key:t}=e;this.raise(ee.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type==="Identifier"&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(e.abstract){this.raise(ee.PrivateElementHasAbstract,e)}if(e.accessibility){this.raise(ee.PrivateElementHasAccessibility,e,{modifier:e.accessibility})}this.parseClassPropertyAnnotation(e);return super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){this.parseClassPropertyAnnotation(e);if(e.optional){this.raise(ee.AccessorCannotBeOptional,e)}return super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,s,i){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(a&&s){this.raise(ee.ConstructorHasTypeParameters,a)}const{declare:o=false,kind:l}=t;if(o&&(l==="get"||l==="set")){this.raise(ee.DeclareAccessor,t,{kind:l})}if(a)t.typeParameters=a;super.pushClassMethod(e,t,r,n,s,i)}pushClassPrivateMethod(e,t,r,n){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(s)t.typeParameters=s;super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){if(e.type==="TSDeclareMethod")return;if(e.type==="MethodDefinition"&&!hasOwnProperty.call(e.value,"body")){return}super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){{e.superTypeParameters=this.tsParseTypeArgumentsInExpression()}}if(this.eatContextual(113)){e.implements=this.tsParseHeritageClause("implements")}}parseObjPropValue(e,t,r,n,s,i,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(o)e.typeParameters=o;return super.parseObjPropValue(e,t,r,n,s,i,a)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(r)e.typeParameters=r;super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)){e.definite=true}const r=this.tsTryParseTypeAnnotation();if(r){e.id.typeAnnotation=r;this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){e.returnType=this.tsParseTypeAnnotation()}return super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,n,s,i,a;let o;let l;let c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){o=this.state.clone();l=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!l.error)return l.node;const{context:r}=this.state;const n=r[r.length-1];if(n===d.j_oTag||n===d.j_expr){r.pop()}}if(!((r=l)!=null&&r.error)&&!this.match(47)){return super.parseMaybeAssign(e,t)}if(!o||o===this.state)o=this.state.clone();let p;const u=this.tryParse((r=>{var n,s;p=this.tsParseTypeParameters(this.tsParseConstModifier);const i=super.parseMaybeAssign(e,t);if(i.type!=="ArrowFunctionExpression"||(n=i.extra)!=null&&n.parenthesized){r()}if(((s=p)==null?void 0:s.params.length)!==0){this.resetStartLocationFromNode(i,p)}i.typeParameters=p;return i}),o);if(!u.error&&!u.aborted){if(p)this.reportReservedArrowTypeParam(p);return u.node}if(!l){assert(!this.hasPlugin("jsx"));c=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!c.error)return c.node}if((n=l)!=null&&n.node){this.state=l.failState;return l.node}if(u.node){this.state=u.failState;if(p)this.reportReservedArrowTypeParam(p);return u.node}if((s=c)!=null&&s.node){this.state=c.failState;return c.node}throw((i=l)==null?void 0:i.error)||u.error||((a=c)==null?void 0:a.error)}reportReservedArrowTypeParam(e){var t;if(e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(ee.ReservedArrowTypeParam,e)}}parseMaybeUnary(e,t){if(!this.hasPlugin("jsx")&&this.match(47)){return this.tsParseTypeAssertion()}return super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))e();return t}));if(t.aborted)return;if(!t.thrown){if(t.error)this.state=t.failState;e.returnType=t.node}}return super.parseArrow(e)}parseFunctionParamType(e){if(this.eat(17)){e.optional=true}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t;this.resetEndLocation(e);return e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return true;default:return super.isAssignable(e,t)}}toAssignable(e,t=false){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(t){this.expressionScope.recordArrowParameterBindingError(ee.UnexpectedTypeCastInParameter,e)}else{this.raise(ee.UnexpectedTypeCastInParameter,e)}this.toAssignable(e.expression,t);break;case"AssignmentExpression":if(!t&&e.left.type==="TSTypeCastExpression"){e.left=this.typeCastToParameter(e.left)}default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,false);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){switch(e){case"TSTypeCastExpression":return true;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(r!==64||!t)&&["expression",true];default:return super.isValidLVal(e,t,r)}}parseBindingAtom(){if(this.state.type===78){return this.parseIdentifier(true)}return super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const n=super.parseMaybeDecoratorArguments(e,t);{n.typeParameters=r}return n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e){this.next();return false}return super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(ee.TypeAnnotationAfterAssign,r.typeAnnotation)}return r}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}toAssignableListItem(e,t,r){const n=e[t];if(n.type==="TSTypeCastExpression"){e[t]=this.typeCastToParameter(n)}super.toAssignableListItem(e,t,r)}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}shouldParseArrow(e){if(this.match(14)){return e.every((e=>this.isAssignable(e,true)))}return super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));if(t){{e.typeParameters=t}}}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e);const r=this.getObjectOrClassMethodParams(e);const n=r[0];const s=n&&this.isThisParam(n);return s?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam();const t=this.tsTryParseTypeAnnotation();if(t){e.typeAnnotation=t;this.resetEndLocation(e)}return e}tsInAmbientContext(e){const{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=true;this.state.strict=false;try{return e()}finally{this.state.isAmbientContext=t;this.state.strict=r}}parseClass(e,t,r){const n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(80)){e.abstract=true;return this.maybeTakeDecorators(t,this.parseClass(e,true,false))}else if(this.isContextual(129)){if(!this.hasFollowingLineBreak()){e.abstract=true;this.raise(ee.NonClassMethodPropertyHasAbstractModifer,e);return this.tsParseInterfaceDeclaration(e)}}else{this.unexpected(null,80)}}parseMethod(e,t,r,n,s,i,a){const o=super.parseMethod(e,t,r,n,s,i,a);if(o.abstract){const e=this.hasPlugin("estree");const t=e?o.value:o;if(t.body){const{key:e}=o;this.raise(ee.AbstractMethodHasImplementation,o,{methodName:e.type==="Identifier"&&!o.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}}return o}tsParseTypeParameterName(){const e=this.parseIdentifier();return e.name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.getExpression()}parseExportSpecifier(e,t,r,n){if(!t&&n){this.parseTypeOnlyImportExportSpecifier(e,false,r);return this.finishNode(e,"ExportSpecifier")}e.exportKind="value";return super.parseExportSpecifier(e,t,r,n)}parseImportSpecifier(e,t,r,n,s){if(!t&&n){this.parseTypeOnlyImportExportSpecifier(e,true,r);return this.finishNode(e,"ImportSpecifier")}e.importKind="value";return super.parseImportSpecifier(e,t,r,n,r?4098:4096)}parseTypeOnlyImportExportSpecifier(e,t,r){const n=t?"imported":"local";const s=t?"local":"exported";let i=e[n];let a;let o=false;let l=true;const c=i.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;i=e;a=t?this.parseIdentifier():this.parseModuleExportName();l=false}else{a=r;l=false}}else if(tokenIsKeywordOrIdentifier(this.state.type)){l=false;a=t?this.parseIdentifier():this.parseModuleExportName()}else{o=true;i=e}}else if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;if(t){i=this.parseIdentifier(true);if(!this.isContextual(93)){this.checkReservedWord(i.name,i.loc.start,true,true)}}else{i=this.parseModuleExportName()}}if(o&&r){this.raise(t?ee.TypeModifierIsUsedInTypeImports:ee.TypeModifierIsUsedInTypeExports,c)}e[n]=i;e[s]=a;const p=t?"importKind":"exportKind";e[p]=o?"type":"value";if(l&&this.eatContextual(93)){e[s]=t?this.parseIdentifier():this.parseModuleExportName()}if(!e[s]){e[s]=cloneIdentifier(e[n])}if(t){this.checkIdentifier(e[s],o?4098:4096)}}};function isPossiblyLiteralEnum(e){if(e.type!=="MemberExpression")return false;const{computed:t,property:r}=e;if(t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)){return false}return isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,t){var r;const{type:n}=e;if((r=e.extra)!=null&&r.parenthesized){return false}if(t){if(n==="Literal"){const{value:t}=e;if(typeof t==="string"||typeof t==="boolean"){return true}}}else{if(n==="StringLiteral"||n==="BooleanLiteral"){return true}}if(isNumber(e,t)||isNegativeNumber(e,t)){return true}if(n==="TemplateLiteral"&&e.expressions.length===0){return true}if(isPossiblyLiteralEnum(e)){return true}return false}function isNumber(e,t){if(t){return e.type==="Literal"&&(typeof e.value==="number"||"bigint"in e)}return e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function isNegativeNumber(e,t){if(e.type==="UnaryExpression"){const{operator:r,argument:n}=e;if(r==="-"&&isNumber(n,t)){return true}}return false}function isUncomputedMemberExpressionChain(e){if(e.type==="Identifier")return true;if(e.type!=="MemberExpression"||e.computed){return false}return isUncomputedMemberExpressionChain(e.object)}const te=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var placeholders=e=>class PlaceholdersParserMixin extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();this.next();this.assertNoSpace();t.name=super.parseIdentifier(true);this.assertNoSpace();this.expect(133);return this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;if(!r.expectedNode||!r.type){r=this.finishNode(r,"Placeholder")}r.expectedNode=t;return r}getTokenFromCode(e){if(e===37&&this.input.charCodeAt(this.state.pos+1)===37){this.finishOp(133,2)}else{super.getTokenFromCode(e)}}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){if(e!==undefined){super.checkReservedWord(e,t,r,n)}}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return e==="Placeholder"||super.isValidLVal(e,t,r)}toAssignable(e,t){if(e&&e.type==="Placeholder"&&e.expectedNode==="Expression"){e.expectedNode="Pattern"}else{super.toAssignable(e,t)}}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t)){return true}const r=this.lookahead();if(r.type===133){return true}return false}verifyBreakContinue(e,t){if(e.label&&e.label.type==="Placeholder")return;super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if(t.type!=="Placeholder"||(r=t.extra)!=null&&r.parenthesized){return super.parseExpressionStatement(e,t)}if(this.match(14)){const r=e;r.label=this.finishPlaceholder(t,"Identifier");this.next();r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration();return this.finishNode(r,"LabeledStatement")}this.semicolon();const n=e;n.name=t.name;return this.finishPlaceholder(n,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const n=t?"ClassDeclaration":"ClassExpression";this.next();const s=this.state.strict;const i=this.parsePlaceholder("Identifier");if(i){if(this.match(81)||this.match(133)||this.match(5)){e.id=i}else if(r||!t){e.id=null;e.body=this.finishPlaceholder(i,"ClassBody");return this.finishNode(e,n)}else{throw this.raise(te.ClassNameIsRequired,this.state.startLoc)}}else{this.parseClassId(e,t,r)}super.parseClassSuper(e);e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,s);return this.finishNode(e,n)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);const n=e;if(!this.isContextual(98)&&!this.match(12)){n.specifiers=[];n.source=null;n.declaration=this.finishPlaceholder(r,"Declaration");return this.finishNode(n,"ExportNamedDeclaration")}this.expectPlugin("exportDefaultFrom");const s=this.startNode();s.exported=r;n.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")];return super.parseExport(n,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")){if(this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4))){return true}}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;if((r=e.specifiers)!=null&&r.length){return true}return super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;if(t!=null&&t.length){e.specifiers=t.filter((e=>e.exported.type==="Placeholder"))}super.checkExport(e);e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);e.specifiers=[];if(!this.isContextual(98)&&!this.match(12)){e.source=this.finishPlaceholder(t,"StringLiteral");this.semicolon();return this.finishNode(e,"ImportDeclaration")}const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier"));if(this.eat(12)){const t=this.maybeParseStarImportSpecifier(e);if(!t)this.parseNamedImportSpecifiers(e)}this.expectContextual(98);e.source=this.parseImportSource();this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)){this.raise(te.UnexpectedSpace,this.state.lastTokEndLoc)}}};var v8intrinsic=e=>class V8IntrinsicMixin extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc;const t=this.startNode();this.next();if(tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName();const r=this.createIdentifier(t,e);r.type="V8IntrinsicIdentifier";if(this.match(10)){return r}}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};const re=["minimal","fsharp","hack","smart"];const ne=["^^","@@","^","%","#"];function validatePlugins(e){if(e.has("decorators")){if(e.has("decorators-legacy")){throw new Error("Cannot use the decorators and decorators-legacy plugin together")}const t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!=="boolean"){throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.")}const r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!=="boolean"){throw new Error("'allowCallParenthesized' must be a boolean.")}}if(e.has("flow")&&e.has("typescript")){throw new Error("Cannot combine flow and typescript plugins.")}if(e.has("placeholders")&&e.has("v8intrinsic")){throw new Error("Cannot combine placeholders and v8intrinsic plugins.")}if(e.has("pipelineOperator")){var t;const r=e.get("pipelineOperator").proposal;if(!re.includes(r)){const e=re.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}const n=((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(r==="hack"){if(e.has("placeholders")){throw new Error("Cannot combine placeholders plugin and Hack-style pipes.")}if(e.has("v8intrinsic")){throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.")}const t=e.get("pipelineOperator").topicToken;if(!ne.includes(t)){const e=ne.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t==="#"&&n){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}else if(r==="smart"&&n){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}if(e.has("moduleAttributes")){{if(e.has("deprecatedImportAssert")||e.has("importAssertions")){throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.")}const t=e.get("moduleAttributes").version;if(t!=="may-2020"){throw new Error("The 'moduleAttributes' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is 'may-2020'.")}}}if(e.has("importAssertions")){if(e.has("deprecatedImportAssert")){throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}}if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax){{e.set("deprecatedImportAssert",{})}}if(e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(t!=null){{const e=["hash","bar"];if(!e.includes(t)){throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map((e=>`'${e}'`)).join(", "))}}}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");e.missingPlugins="doExpressions";throw e}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07"){throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is '2023-07'.")}}const se={estree:estree,jsx:jsx,flow:flow,typescript:typescript,v8intrinsic:v8intrinsic,placeholders:placeholders};const ie=Object.keys(se);class ExpressionParser extends LValParser{checkProto(e,t,r,n){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand){return r}const s=e.key;const i=s.type==="Identifier"?s.name:s.value;if(i==="__proto__"){if(t){this.raise(p.RecordNoProto,s);return true}if(r){if(n){if(n.doubleProtoLoc===null){n.doubleProtoLoc=s.loc.start}}else{this.raise(p.DuplicateProto,s)}}return true}return r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes();this.nextToken();const e=this.parseExpression();if(!this.match(140)){this.unexpected()}this.finalizeRemainingComments();e.comments=this.comments;e.errors=this.state.errors;if(this.optionFlags&256){e.tokens=this.tokens}return e}parseExpression(e,t){if(e){return this.disallowInAnd((()=>this.parseExpressionBase(t)))}return this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc;const r=this.parseMaybeAssign(e);if(this.match(12)){const n=this.startNodeAt(t);n.expressions=[r];while(this.eat(12)){n.expressions.push(this.parseMaybeAssign(e))}this.toReferencedList(n.expressions);return this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;const n=this.isContextual(108);if(n){if(this.prodParam.hasYield){this.next();let e=this.parseYield(r);if(t){e=t.call(this,e,r)}return e}}let s;if(e){s=false}else{e=new ExpressionErrors;s=true}const{type:i}=this.state;if(i===10||tokenIsIdentifier(i)){this.state.potentialArrowAt=this.state.start}let a=this.parseMaybeConditional(e);if(t){a=t.call(this,a,r)}if(tokenIsAssignment(this.state.type)){const t=this.startNodeAt(r);const n=this.state.value;t.operator=n;if(this.match(29)){this.toAssignable(a,true);t.left=a;const n=r.index;if(e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=n){e.doubleProtoLoc=null}if(e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=n){e.shorthandAssignLoc=null}if(e.privateKeyLoc!=null&&e.privateKeyLoc.index>=n){this.checkDestructuringPrivate(e);e.privateKeyLoc=null}}else{t.left=a}this.next();t.right=this.parseMaybeAssign();this.checkLVal(a,this.finishNode(t,"AssignmentExpression"));return t}else if(s){this.checkExpressionErrors(e,true)}if(n){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(p.YieldNotInGeneratorFunction,r);return this.parseYield(r)}}return a}parseMaybeConditional(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const n=this.parseExprOps(e);if(this.shouldExitDescending(n,r)){return n}return this.parseConditional(n,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);r.test=e;r.consequent=this.parseMaybeAssignAllowIn();this.expect(14);r.alternate=this.parseMaybeAssign();return this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const n=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(n,r)){return n}return this.parseExprOp(n,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);if(r>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58)){this.raise(p.PrivateInExpectedIn,e,{identifierName:t})}this.classScope.usePrivateName(t,e.loc.start)}const n=this.state.type;if(tokenIsOperator(n)&&(this.prodParam.hasIn||!this.match(58))){let s=tokenOperatorPrecedence(n);if(s>r){if(n===39){this.expectPlugin("pipelineOperator");if(this.state.inFSharpPipelineDirectBody){return e}this.checkPipelineAtInfixOperator(e,t)}const i=this.startNodeAt(t);i.left=e;i.operator=this.state.value;const a=n===41||n===42;const o=n===40;if(o){s=tokenOperatorPrecedence(42)}this.next();if(n===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait){throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}}i.right=this.parseExprOpRightExpr(n,s);const l=this.finishNode(i,a||o?"LogicalExpression":"BinaryExpression");const c=this.state.type;if(o&&(c===41||c===42)||a&&c===40){throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc)}return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}if(this.getPluginOption("pipelineOperator","proposal")==="smart"){return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108)){throw this.raise(p.PipeBodyIsTighter,this.state.startLoc)}return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,tokenIsRightAssociative(e)?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state;const r=this.parseMaybeAssign();const n=o.has(r.type);if(n&&!((e=r.extra)!=null&&e.parenthesized)){this.raise(p.PipeUnparenthesizedBody,t,{type:r.type})}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipeTopicUnused,t)}return r}checkExponentialAfterUnary(e){if(this.match(57)){this.raise(p.UnexpectedTokenUnaryExponentiation,e.argument)}}parseMaybeUnary(e,t){const r=this.state.startLoc;const n=this.isContextual(96);if(n&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(r);if(!t)this.checkExponentialAfterUnary(e);return e}const s=this.match(34);const i=this.startNode();if(tokenIsPrefix(this.state.type)){i.operator=this.state.value;i.prefix=true;if(this.match(72)){this.expectPlugin("throwExpressions")}const r=this.match(89);this.next();i.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(this.state.strict&&r){const e=i.argument;if(e.type==="Identifier"){this.raise(p.StrictDelete,i)}else if(this.hasPropertyAsPrivateName(e)){this.raise(p.DeletePrivateField,i)}}if(!s){if(!t){this.checkExponentialAfterUnary(i)}return this.finishNode(i,"UnaryExpression")}}const a=this.parseUpdate(i,s,e);if(n){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(p.AwaitNotInAsyncContext,r);return this.parseAwait(r)}}return a}parseUpdate(e,t,r){if(t){const t=e;this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression"));return e}const n=this.state.startLoc;let s=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,false))return s;while(tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon()){const e=this.startNodeAt(n);e.operator=this.state.value;e.prefix=false;e.argument=s;this.next();this.checkLVal(s,s=this.finishNode(e,"UpdateExpression"))}return s}parseExprSubscripts(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const n=this.parseExprAtom(e);if(this.shouldExitDescending(n,r)){return n}return this.parseSubscripts(n,t)}parseSubscripts(e,t,r){const n={optionalChainMember:false,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:false};do{e=this.parseSubscript(e,t,r,n);n.maybeAsyncArrow=false}while(!n.stop);return e}parseSubscript(e,t,r,n){const{type:s}=this.state;if(!r&&s===15){return this.parseBind(e,t,r,n)}else if(tokenIsTemplate(s)){return this.parseTaggedTemplateExpression(e,t,n)}let i=false;if(s===18){if(r){this.raise(p.OptionalChainingNoNew,this.state.startLoc);if(this.lookaheadCharCode()===40){n.stop=true;return e}}n.optionalChainMember=i=true;this.next()}if(!r&&this.match(10)){return this.parseCoverCallAndAsyncArrowHead(e,t,n,i)}else{const r=this.eat(0);if(r||i||this.eat(16)){return this.parseMember(e,t,n,r,i)}else{n.stop=true;return e}}}parseMember(e,t,r,n,s){const i=this.startNodeAt(t);i.object=e;i.computed=n;if(n){i.property=this.parseExpression();this.expect(3)}else if(this.match(139)){if(e.type==="Super"){this.raise(p.SuperPrivateField,t)}this.classScope.usePrivateName(this.state.value,this.state.startLoc);i.property=this.parsePrivateName()}else{i.property=this.parseIdentifier(true)}if(r.optionalChainMember){i.optional=s;return this.finishNode(i,"OptionalMemberExpression")}else{return this.finishNode(i,"MemberExpression")}}parseBind(e,t,r,n){const s=this.startNodeAt(t);s.object=e;this.next();s.callee=this.parseNoCallExpr();n.stop=true;return this.parseSubscripts(this.finishNode(s,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,n){const s=this.state.maybeInArrowParameters;let i=null;this.state.maybeInArrowParameters=true;this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=r;if(o){this.expressionScope.enter(newAsyncArrowScope());i=new ExpressionErrors}if(l){a.optional=n}if(n){a.arguments=this.parseCallExpressionArguments(11)}else{a.arguments=this.parseCallExpressionArguments(11,e.type!=="Super",a,i)}let c=this.finishCallExpression(a,l);if(o&&this.shouldParseAsyncArrow()&&!n){r.stop=true;this.checkDestructuringPrivate(i);this.expressionScope.validateAsPattern();this.expressionScope.exit();c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)}else{if(o){this.checkExpressionErrors(i,true);this.expressionScope.exit()}this.toReferencedArguments(c)}this.state.maybeInArrowParameters=s;return c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const n=this.startNodeAt(t);n.tag=e;n.quasi=this.parseTemplate(true);if(r.optionalChainMember){this.raise(p.OptionalChainingNoTemplate,t)}return this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===0||e.arguments.length>2){this.raise(p.ImportCallArity,e)}else{for(const t of e.arguments){if(t.type==="SpreadElement"){this.raise(p.ImportCallSpreadArgument,t)}}}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,n){const s=[];let i=true;const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;while(!this.eat(e)){if(i){i=false}else{this.expect(12);if(this.match(e)){if(r){this.addTrailingCommaExtraToNode(r)}this.next();break}}s.push(this.parseExprListItem(false,n,t))}this.state.inFSharpPipelineDirectBody=a;return s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;this.resetPreviousNodeTrailingComments(t);this.expect(19);this.parseArrowExpression(e,t.arguments,true,(r=t.extra)==null?void 0:r.trailingCommaLoc);if(t.innerComments){setInnerComments(e,t.innerComments)}if(t.callee.trailingComments){setInnerComments(e,t.callee.trailingComments)}return e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,true)}parseExprAtom(e){let t;let r=null;const{type:n}=this.state;switch(n){case 79:return this.parseSuper();case 83:t=this.startNode();this.next();if(this.match(16)){return this.parseImportMetaProperty(t)}if(this.match(10)){if(this.optionFlags&512){return this.parseImportCall(t)}else{return this.finishNode(t,"Import")}}else{this.raise(p.UnsupportedImport,this.state.lastTokStartLoc);return this.finishNode(t,"Import")}case 78:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case 90:{return this.parseDo(this.startNode(),false)}case 56:case 31:{this.readRegexp();return this.parseRegExpLiteral(this.state.value)}case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(true);case 86:return this.parseBooleanLiteral(false);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:{return this.parseArrayLike(this.state.type===2?4:3,false,true)}case 0:{return this.parseArrayLike(3,true,false,e)}case 6:case 7:{return this.parseObjectLike(this.state.type===6?9:8,false,true)}case 5:{return this.parseObjectLike(8,false,false,e)}case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),false);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(false);case 15:{t=this.startNode();this.next();t.object=null;const e=t.callee=this.parseNoCallExpr();if(e.type==="MemberExpression"){return this.finishNode(t,"BindExpression")}else{throw this.raise(p.UnsupportedBind,e)}}case 139:{this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value});return this.parsePrivateName()}case 33:{return this.parseTopicReferenceThenEqualsSign(54,"%")}case 32:{return this.parseTopicReferenceThenEqualsSign(44,"^")}case 37:case 38:{return this.parseTopicReference("hack")}case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e){return this.parseTopicReference(e)}this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(e)||e===62){this.expectOnePlugin(["jsx","flow","typescript"])}else{this.unexpected()}break}default:if(n===137){return this.parseDecimalLiteral(this.state.value)}if(tokenIsIdentifier(n)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123){return this.parseModuleExpression()}const e=this.state.potentialArrowAt===this.state.start;const t=this.state.containsEsc;const r=this.parseIdentifier();if(!t&&r.name==="async"&&!this.canInsertSemicolon()){const{type:e}=this.state;if(e===68){this.resetPreviousNodeTrailingComments(r);this.next();return this.parseAsyncFunctionExpression(this.startNodeAtNode(r))}else if(tokenIsIdentifier(e)){if(this.lookaheadCharCode()===61){return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r))}else{return r}}else if(e===90){this.resetPreviousNodeTrailingComments(r);return this.parseDo(this.startNodeAtNode(r),true)}}if(e&&this.match(19)&&!this.canInsertSemicolon()){this.next();return this.parseArrowExpression(this.startNodeAtNode(r),[r],false)}return r}else{this.unexpected()}}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r){this.state.type=e;this.state.value=t;this.state.pos--;this.state.end--;this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1);return this.parseTopicReference(r)}else{this.unexpected()}}parseTopicReference(e){const t=this.startNode();const r=this.state.startLoc;const n=this.state.type;this.next();return this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n)){if(r==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(p.PipeTopicUnbound,t)}this.registerTopicReference();return this.finishNode(e,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(p.PrimaryTopicNotAllowed,t)}this.registerTopicReference();return this.finishNode(e,"PipelinePrimaryTopicReference")}}else{throw this.raise(p.PipeTopicUnconfiguredToken,t,{token:tokenLabelName(n)})}}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":{return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(r)}])}case"smart":return r===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(true,this.prodParam.hasYield));const t=[this.parseIdentifier()];this.prodParam.exit();if(this.hasPrecedingLineBreak()){this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition())}this.expect(19);return this.parseArrowExpression(e,t,true)}parseDo(e,t){this.expectPlugin("doExpressions");if(t){this.expectPlugin("asyncDoExpressions")}e.async=t;this.next();const r=this.state.labels;this.state.labels=[];if(t){this.prodParam.enter(2);e.body=this.parseBlock();this.prodParam.exit()}else{e.body=this.parseBlock()}this.state.labels=r;return this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();this.next();if(this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)){this.raise(p.SuperNotAllowed,e)}else if(!this.scope.allowSuper&&!(this.optionFlags&16)){this.raise(p.UnexpectedSuper,e)}if(!this.match(10)&&!this.match(0)&&!this.match(16)){this.raise(p.UnsupportedSuper,e)}return this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode();const t=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1));const r=this.state.value;this.next();e.id=this.createIdentifier(t,r);return this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();this.next();if(this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");this.next();if(this.match(103)){this.expectPlugin("functionSent")}else if(!this.hasPlugin("functionSent")){this.unexpected()}return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const n=this.state.containsEsc;e.property=this.parseIdentifier(true);if(e.property.name!==r||n){this.raise(p.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r})}return this.finishNode(e,"MetaProperty")}parseImportMetaProperty(e){const t=this.createIdentifier(this.startNodeAtNode(e),"import");this.next();if(this.isContextual(101)){if(!this.inModule){this.raise(p.ImportMetaOutsideModule,t)}this.sawUnambiguousESM=true}else if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation");if(!(this.optionFlags&512)){throw this.raise(p.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value})}this.next();e.phase=t?"source":"defer";return this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}parseLiteralAtNode(e,t,r){this.addExtra(r,"rawValue",e);this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end));r.value=e;this.next();return this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end));t.pattern=e.pattern;t.flags=e.flags;this.next();return this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();t.value=e;this.next();return this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();this.next();return this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next();this.expressionScope.enter(newArrowHeadScope());const n=this.state.maybeInArrowParameters;const s=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true;this.state.inFSharpPipelineDirectBody=false;const i=this.state.startLoc;const a=[];const o=new ExpressionErrors;let l=true;let c;let p;while(!this.match(11)){if(l){l=false}else{this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc);if(this.match(11)){p=this.state.startLoc;break}}if(this.match(21)){const e=this.state.startLoc;c=this.state.startLoc;a.push(this.parseParenItem(this.parseRestBinding(),e));if(!this.checkCommaAfterRest(41)){break}}else{a.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}}const u=this.state.lastTokEndLoc;this.expect(11);this.state.maybeInArrowParameters=n;this.state.inFSharpPipelineDirectBody=s;let d=this.startNodeAt(t);if(e&&this.shouldParseArrow(a)&&(d=this.parseArrow(d))){this.checkDestructuringPrivate(o);this.expressionScope.validateAsPattern();this.expressionScope.exit();this.parseArrowExpression(d,a,false);return d}this.expressionScope.exit();if(!a.length){this.unexpected(this.state.lastTokStartLoc)}if(p)this.unexpected(p);if(c)this.unexpected(c);this.checkExpressionErrors(o,true);this.toReferencedListDeep(a,true);if(a.length>1){r=this.startNodeAt(i);r.expressions=a;this.finishNode(r,"SequenceExpression");this.resetEndLocation(r,u)}else{r=a[0]}return this.wrapParenthesis(t,r)}wrapParenthesis(e,t){if(!(this.optionFlags&1024)){this.addExtra(t,"parenthesized",true);this.addExtra(t,"parenStart",e.index);this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index);return t}const r=this.startNodeAt(e);r.expression=t;return this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19)){return e}}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();this.next();if(this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4)){this.raise(p.UnexpectedNewTarget,r)}return r}return this.parseNew(e)}parseNew(e){this.parseNewCallee(e);if(this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t);e.arguments=t}else{e.arguments=[]}return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83);const r=this.parseNoCallExpr();e.callee=r;if(t&&(r.type==="Import"||r.type==="ImportExpression")){this.raise(p.ImportCallNotNewExpression,r)}}parseTemplateElement(e){const{start:t,startLoc:r,end:n,value:s}=this.state;const i=t+1;const a=this.startNodeAt(createPositionWithColumnOffset(r,1));if(s===null){if(!e){this.raise(p.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1))}}const o=this.match(24);const l=o?-1:-2;const c=n+l;a.value={raw:this.input.slice(i,c).replace(/\r\n?/g,"\n"),cooked:s===null?null:s.slice(1,l)};a.tail=o;this.next();const u=this.finishNode(a,"TemplateElement");this.resetEndLocation(u,createPositionWithColumnOffset(this.state.lastTokEndLoc,l));return u}parseTemplate(e){const t=this.startNode();let r=this.parseTemplateElement(e);const n=[r];const s=[];while(!r.tail){s.push(this.parseTemplateSubstitution());this.readTemplateContinuation();n.push(r=this.parseTemplateElement(e))}t.expressions=s;t.quasis=n;return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,n){if(r){this.expectPlugin("recordAndTuple")}const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;let i=false;let a=true;const o=this.startNode();o.properties=[];this.next();while(!this.match(e)){if(a){a=false}else{this.expect(12);if(this.match(e)){this.addTrailingCommaExtraToNode(o);break}}let s;if(t){s=this.parseBindingProperty()}else{s=this.parsePropertyDefinition(n);i=this.checkProto(s,r,i,n)}if(r&&!this.isObjectProperty(s)&&s.type!=="SpreadElement"){this.raise(p.InvalidRecordProperty,s)}{if(s.shorthand){this.addExtra(s,"shorthand",true)}}o.properties.push(s)}this.next();this.state.inFSharpPipelineDirectBody=s;let l="ObjectExpression";if(t){l="ObjectPattern"}else if(r){l="RecordExpression"}return this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index);this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,false)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26)){if(this.hasPlugin("decorators")){this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc)}while(this.match(26)){t.push(this.parseDecorator())}}const r=this.startNode();let n=false;let s=false;let i;if(this.match(21)){if(t.length)this.unexpected();return this.parseSpread()}if(t.length){r.decorators=t;t=[]}r.method=false;if(e){i=this.state.startLoc}let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;this.parsePropertyName(r,e);if(!a&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:e}=r;const t=e.name;if(t==="async"&&!this.hasPrecedingLineBreak()){n=true;this.resetPreviousNodeTrailingComments(e);a=this.eat(55);this.parsePropertyName(r)}if(t==="get"||t==="set"){s=true;this.resetPreviousNodeTrailingComments(e);r.kind=t;if(this.match(55)){a=true;this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:t});this.next()}this.parsePropertyName(r)}}return this.parseObjPropValue(r,i,a,n,false,s,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e);const n=this.getObjectOrClassMethodParams(e);if(n.length!==r){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&((t=n[n.length-1])==null?void 0:t.type)==="RestElement"){this.raise(p.BadSetterRestParameter,e)}}parseObjectMethod(e,t,r,n,s){if(s){const r=this.parseMethod(e,t,false,false,false,"ObjectMethod");this.checkGetterSetterParams(r);return r}if(r||t||this.match(10)){if(n)this.unexpected();e.kind="method";e.method=true;return this.parseMethod(e,t,r,false,false,"ObjectMethod")}}parseObjectProperty(e,t,r,n){e.shorthand=false;if(this.eat(14)){e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(n);return this.finishNode(e,"ObjectProperty")}if(!e.computed&&e.key.type==="Identifier"){this.checkReservedWord(e.key.name,e.key.loc.start,true,false);if(r){e.value=this.parseMaybeDefault(t,cloneIdentifier(e.key))}else if(this.match(29)){const r=this.state.startLoc;if(n!=null){if(n.shorthandAssignLoc===null){n.shorthandAssignLoc=r}}else{this.raise(p.InvalidCoverInitializedName,r)}e.value=this.parseMaybeDefault(t,cloneIdentifier(e.key))}else{e.value=cloneIdentifier(e.key)}e.shorthand=true;return this.finishNode(e,"ObjectProperty")}}parseObjPropValue(e,t,r,n,s,i,a){const o=this.parseObjectMethod(e,r,n,s,i)||this.parseObjectProperty(e,t,s,a);if(!o)this.unexpected();return o}parsePropertyName(e,t){if(this.eat(0)){e.computed=true;e.key=this.parseMaybeAssignAllowIn();this.expect(3)}else{const{type:r,value:n}=this.state;let s;if(tokenIsKeywordOrIdentifier(r)){s=this.parseIdentifier(true)}else{switch(r){case 135:s=this.parseNumericLiteral(n);break;case 134:s=this.parseStringLiteral(n);break;case 136:s=this.parseBigIntLiteral(n);break;case 139:{const e=this.state.startLoc;if(t!=null){if(t.privateKeyLoc===null){t.privateKeyLoc=e}}else{this.raise(p.UnexpectedPrivateField,e)}s=this.parsePrivateName();break}default:if(r===137){s=this.parseDecimalLiteral(n);break}this.unexpected()}}e.key=s;if(r!==139){e.computed=false}}}initFunction(e,t){e.id=null;e.generator=false;e.async=t}parseMethod(e,t,r,n,s,i,a=false){this.initFunction(e,r);e.generator=t;this.scope.enter(2|16|(a?64:0)|(s?32:0));this.prodParam.enter(functionFlags(r,e.generator));this.parseFunctionParams(e,n);const o=this.parseFunctionBodyAndFinish(e,i,true);this.prodParam.exit();this.scope.exit();return o}parseArrayLike(e,t,r,n){if(r){this.expectPlugin("recordAndTuple")}const s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const i=this.startNode();this.next();i.elements=this.parseExprList(e,!r,n,i);this.state.inFSharpPipelineDirectBody=s;return this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(2|4);let s=functionFlags(r,false);if(!this.match(5)&&this.prodParam.hasIn){s|=8}this.prodParam.enter(s);this.initFunction(e,r);const i=this.state.maybeInArrowParameters;if(t){this.state.maybeInArrowParameters=true;this.setArrowFunctionParameters(e,t,n)}this.state.maybeInArrowParameters=false;this.parseFunctionBody(e,true);this.prodParam.exit();this.scope.exit();this.state.maybeInArrowParameters=i;return this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,false);e.params=t}parseFunctionBodyAndFinish(e,t,r=false){this.parseFunctionBody(e,false,r);return this.finishNode(e,t)}parseFunctionBody(e,t,r=false){const n=t&&!this.match(5);this.expressionScope.enter(newExpressionScope());if(n){e.body=this.parseMaybeAssign();this.checkParams(e,false,t,false)}else{const n=this.state.strict;const s=this.state.labels;this.state.labels=[];this.prodParam.enter(this.prodParam.currentFlags()|4);e.body=this.parseBlock(true,false,(s=>{const i=!this.isSimpleParamList(e.params);if(s&&i){this.raise(p.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.loc.end:e)}const a=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!i,t,a);if(this.state.strict&&e.id){this.checkIdentifier(e.id,65,a)}}));this.prodParam.exit();this.state.labels=s}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++){if(!this.isSimpleParameter(e[t]))return false}return true}checkParams(e,t,r,n=true){const s=!t&&new Set;const i={type:"FormalParameters"};for(const t of e.params){this.checkLVal(t,i,5,s,n)}}parseExprList(e,t,r,n){const s=[];let i=true;while(!this.eat(e)){if(i){i=false}else{this.expect(12);if(this.match(e)){if(n){this.addTrailingCommaExtraToNode(n)}this.next();break}}s.push(this.parseExprListItem(t,r))}return s}parseExprListItem(e,t,r){let n;if(this.match(12)){if(!e){this.raise(p.UnexpectedToken,this.state.curPosition(),{unexpected:","})}n=null}else if(this.match(21)){const e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication");if(!r){this.raise(p.UnexpectedArgumentPlaceholder,this.state.startLoc)}const e=this.startNode();this.next();n=this.finishNode(e,"ArgumentPlaceholder")}else{n=this.parseMaybeAssignAllowIn(t,this.parseParenItem)}return n}parseIdentifier(e){const t=this.startNode();const r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){e.name=t;e.loc.identifierName=t;return this.finishNode(e,"Identifier")}parseIdentifierName(e){let t;const{startLoc:r,type:n}=this.state;if(tokenIsKeywordOrIdentifier(n)){t=this.state.value}else{this.unexpected()}const s=tokenKeywordOrIdentifierIsKeyword(n);if(e){if(s){this.replaceToken(132)}}else{this.checkReservedWord(t,r,s,false)}this.next();return t}checkReservedWord(e,t,r,n){if(e.length>10){return}if(!canBeReservedWord(e)){return}if(r&&isKeyword(e)){this.raise(p.UnexpectedKeyword,t,{keyword:e});return}const s=!this.state.strict?isReservedWord:n?isStrictBindReservedWord:isStrictReservedWord;if(s(e,this.inModule)){this.raise(p.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;if(e&&!this.scope.inFunction){this.state.hasTopLevelAwait=true}return e}parseAwait(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,t);if(this.eat(55)){this.raise(p.ObsoleteAwaitStar,t)}if(!this.scope.inFunction&&!(this.optionFlags&1)){if(this.isAmbiguousPrefixOrIdentifier()){this.ambiguousScriptDifferentAst=true}else{this.sawUnambiguousESM=true}}if(!this.state.soloAwait){t.argument=this.parseMaybeUnary(null,true)}return this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return true;const{type:e}=this.state;return e===53||e===10||e===0||tokenIsTemplate(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t);let r=false;let n=null;if(!this.hasPrecedingLineBreak()){r=this.eat(55);switch(this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}}t.delegate=r;t.argument=n;return this.finishNode(t,"YieldExpression")}parseImportCall(e){this.next();e.source=this.parseMaybeAssignAllowIn();e.options=null;if(this.eat(12)){if(!this.match(11)){e.options=this.parseMaybeAssignAllowIn();if(this.eat(12)&&!this.match(11)){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(p.ImportCallArity,e)}}}this.expect(11);return this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(e.type==="SequenceExpression"){this.raise(p.PipelineHeadSequenceExpression,t)}}}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);r.callee=e;return this.finishNode(r,"PipelineBareFunction")}else{const r=this.startNodeAt(t);this.checkSmartPipeTopicBodyEarlyErrors(t);r.expression=e;return this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return true;default:return false}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19)){throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc)}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipelineTopicUnused,e)}}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else{return e()}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=true;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();const r=8&~t;if(r){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();const r=8&t;if(r){this.prodParam.enter(t&~8);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=true;const n=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);this.state.inFSharpPipelineDirectBody=r;return n}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next();if(!this.match(5)){this.unexpected(null,5)}const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(true);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const ae={kind:1},oe={kind:2};const le=/[\uD800-\uDFFF]/u;const ce=/in(?:stanceof)?/y;function babel7CompatTokens(e,t,r){for(let n=0;n<e.length;n++){const s=e[n];const{type:i}=s;if(typeof i==="number"){{if(i===139){const{loc:t,start:r,value:i,end:a}=s;const o=r+1;const l=createPositionWithColumnOffset(t.start,1);e.splice(n,1,new Token({type:getExportedToken(27),value:"#",start:r,end:o,startLoc:t.start,endLoc:l}),new Token({type:getExportedToken(132),value:i,start:o,end:a,startLoc:l,endLoc:t.end}));n++;continue}if(tokenIsTemplate(i)){const{loc:a,start:o,value:l,end:c}=s;const p=o+1;const u=createPositionWithColumnOffset(a.start,1);let d;if(t.charCodeAt(o-r)===96){d=new Token({type:getExportedToken(22),value:"`",start:o,end:p,startLoc:a.start,endLoc:u})}else{d=new Token({type:getExportedToken(8),value:"}",start:o,end:p,startLoc:a.start,endLoc:u})}let f,h,m,y;if(i===24){h=c-1;m=createPositionWithColumnOffset(a.end,-1);f=l===null?null:l.slice(1,-1);y=new Token({type:getExportedToken(22),value:"`",start:h,end:c,startLoc:m,endLoc:a.end})}else{h=c-2;m=createPositionWithColumnOffset(a.end,-2);f=l===null?null:l.slice(1,-2);y=new Token({type:getExportedToken(23),value:"${",start:h,end:c,startLoc:m,endLoc:a.end})}e.splice(n,1,d,new Token({type:getExportedToken(20),value:f,start:p,end:h,startLoc:u,endLoc:m}),y);n+=2;continue}}s.type=getExportedToken(i)}}return e}class StatementParser extends ExpressionParser{parseTopLevel(e,t){e.program=this.parseProgram(t);e.comments=this.comments;if(this.optionFlags&256){e.tokens=babel7CompatTokens(this.tokens,this.input,this.startIndex)}return this.finishNode(e,"File")}parseProgram(e,t=140,r=this.options.sourceType){e.sourceType=r;e.interpreter=this.parseInterpreterDirective();this.parseBlockBody(e,true,true,t);if(this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0){for(const[e,t]of Array.from(this.scope.undefinedExports)){this.raise(p.ModuleExportUndefined,t,{localName:e})}}this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let n;if(t===140){n=this.finishNode(e,"Program")}else{n=this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1))}return n}stmtToDirective(e){const t=e;t.type="Directive";t.value=t.expression;delete t.expression;const r=t.value;const n=r.value;const s=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end));const i=r.value=s.slice(1,-1);this.addExtra(r,"raw",s);this.addExtra(r,"rawValue",i);this.addExtra(r,"expressionValue",n);r.type="DirectiveLiteral";return t}parseInterpreterDirective(){if(!this.match(28)){return null}const e=this.startNode();e.value=this.state.value;this.next();return this.finishNode(e,"InterpreterDirective")}isLet(){if(!this.isContextual(100)){return false}return this.hasFollowingBindingAtom()}chStartsBindingIdentifier(e,t){if(isIdentifierStart(e)){ce.lastIndex=t;if(ce.test(this.input)){const e=this.codePointAtPos(ce.lastIndex);if(!isIdentifierChar(e)&&e!==92){return false}}return true}else if(e===92){return true}else{return false}}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){const e=this.nextTokenStart();const t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart();const t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){const{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t){return false}else if(tokenIsIdentifier(e)&&!this.hasFollowingLineBreak()){this.expectPlugin("explicitResourceManagement");return true}}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e)){this.expectPlugin("explicitResourceManagement");return true}}return false}parseModuleItem(){return this.parseStatementLike(1|2|4|8)}parseStatementListItem(){return this.parseStatementLike(2|4|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=false){let t=0;if(this.options.annexB&&!this.state.strict){t|=4;if(e){t|=8}}return this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;if(this.match(26)){t=this.parseDecorators(true)}return this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type;const n=this.startNode();const s=!!(e&2);const i=!!(e&4);const a=e&1;switch(r){case 60:return this.parseBreakContinueStatement(n,true);case 63:return this.parseBreakContinueStatement(n,false);case 64:return this.parseDebuggerStatement(n);case 90:return this.parseDoWhileStatement(n);case 91:return this.parseForStatement(n);case 68:if(this.lookaheadCharCode()===46)break;if(!i){this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc)}return this.parseFunctionStatement(n,false,!s&&i);case 80:if(!s)this.unexpected();return this.parseClass(this.maybeTakeDecorators(t,n),true);case 69:return this.parseIfStatement(n);case 70:return this.parseReturnStatement(n);case 71:return this.parseSwitchStatement(n);case 72:return this.parseThrowStatement(n);case 73:return this.parseTryStatement(n);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing()){if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,n)}else if(!s){this.raise(p.UnexpectedLexicalDeclaration,n)}this.next();return this.parseVarStatement(n,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace()){break}this.expectPlugin("explicitResourceManagement");if(!this.scope.inModule&&this.scope.inTopLevel){this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc)}else if(!s){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}return this.parseVarStatement(n,"using");case 100:{if(this.state.containsEsc){break}const e=this.nextTokenStart();const t=this.codePointAtPos(e);if(t!==91){if(!s&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&t!==123){break}}}case 75:{if(!s){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}}case 74:{const e=this.state.value;return this.parseVarStatement(n,e)}case 92:return this.parseWhileStatement(n);case 76:return this.parseWithStatement(n);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(n);case 83:{const e=this.lookaheadCharCode();if(e===40||e===46){break}}case 82:{if(!(this.optionFlags&8)&&!a){this.raise(p.UnexpectedImportExport,this.state.startLoc)}this.next();let e;if(r===83){e=this.parseImport(n)}else{e=this.parseExport(n,t)}this.assertModuleNodeAllowed(e);return e}default:{if(this.isAsyncFunction()){if(!s){this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc)}this.next();return this.parseFunctionStatement(n,true,!s&&i)}}}const o=this.state.value;const l=this.parseExpression();if(tokenIsIdentifier(r)&&l.type==="Identifier"&&this.eat(14)){return this.parseLabeledStatement(n,o,l,e)}else{return this.parseExpressionStatement(n,l,t)}}assertModuleNodeAllowed(e){if(!(this.optionFlags&8)&&!this.inModule){this.raise(p.ImportOutsideModule,e)}}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return true;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==false}maybeTakeDecorators(e,t,r){if(e){var n;if((n=t.decorators)!=null&&n.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean"){this.raise(p.DecoratorsBeforeAfterExport,t.decorators[0])}t.decorators.unshift(...e)}else{t.decorators=e}this.resetStartLocationFromNode(t,e[0]);if(r)this.resetStartLocationFromNode(r,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82)){if(!e){this.unexpected()}if(!this.decoratorsEnabledBeforeExport()){this.raise(p.DecoratorExportClass,this.state.startLoc)}}else if(!this.canHaveLeadingDecorator()){throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc)}return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();this.next();if(this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next();r=this.parseExpression();this.expect(11);r=this.wrapParenthesis(t,r);const n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,t);if(this.getPluginOption("decorators","allowCallParenthesized")===false&&e.expression!==r){this.raise(p.DecoratorArgumentsOutsideParentheses,n)}}else{r=this.parseIdentifier(false);while(this.eat(16)){const e=this.startNodeAt(t);e.object=r;if(this.match(139)){this.classScope.usePrivateName(this.state.value,this.state.startLoc);e.property=this.parsePrivateName()}else{e.property=this.parseIdentifier(true)}e.computed=false;r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else{e.expression=this.parseExprSubscripts()}return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.toReferencedList(r.arguments);return this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){this.next();if(this.isLineTerminator()){e.label=null}else{e.label=this.parseIdentifier();this.semicolon()}this.verifyBreakContinue(e,t);return this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const n=this.state.labels[r];if(e.label==null||n.name===e.label.name){if(n.kind!=null&&(t||n.kind===1)){break}if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(p.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();this.expect(11);return e}parseDoWhileStatement(e){this.next();this.state.labels.push(ae);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();this.expect(92);e.test=this.parseHeaderExpression();this.eat(13);return this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next();this.state.labels.push(ae);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()){t=this.state.startLoc;this.next()}this.scope.enter(0);this.expect(10);if(this.match(13)){if(t!==null){this.unexpected(t)}return this.parseFor(e,null)}const r=this.isContextual(100);{const n=this.isContextual(96)&&this.startsAwaitUsing();const s=n||this.isContextual(107)&&this.startsUsingForOf();const i=r&&this.hasFollowingBindingAtom()||s;if(this.match(74)||this.match(75)||i){const r=this.startNode();let i;if(n){i="await using";if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc)}this.next()}else{i=this.state.value}this.next();this.parseVar(r,true,i);const a=this.finishNode(r,"VariableDeclaration");const o=this.match(58);if(o&&s){this.raise(p.ForInUsing,a)}if((o||this.isContextual(102))&&a.declarations.length===1){return this.parseForIn(e,a,t)}if(t!==null){this.unexpected(t)}return this.parseFor(e,a)}}const n=this.isContextual(95);const s=new ExpressionErrors;const i=this.parseExpression(true,s);const a=this.isContextual(102);if(a){if(r){this.raise(p.ForOfLet,i)}if(t===null&&n&&i.type==="Identifier"){this.raise(p.ForOfAsync,i)}}if(a||this.match(58)){this.checkDestructuringPrivate(s);this.toAssignable(i,true);const r=a?"ForOfStatement":"ForInStatement";this.checkLVal(i,{type:r});return this.parseForIn(e,i,t)}else{this.checkExpressionErrors(s,true)}if(t!==null){this.unexpected(t)}return this.parseFor(e,i)}parseFunctionStatement(e,t,r){this.next();return this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){this.next();e.test=this.parseHeaderExpression();e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration();e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null;return this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn&&!(this.optionFlags&2)){this.raise(p.IllegalReturn,this.state.startLoc)}this.next();if(this.isLineTerminator()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next();e.discriminant=this.parseHeaderExpression();const t=e.cases=[];this.expect(5);this.state.labels.push(oe);this.scope.enter(0);let r;for(let e;!this.match(8);){if(this.match(61)||this.match(65)){const n=this.match(61);if(r)this.finishNode(r,"SwitchCase");t.push(r=this.startNode());r.consequent=[];this.next();if(n){r.test=this.parseExpression()}else{if(e){this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc)}e=true;r.test=null}this.expect(14)}else{if(r){r.consequent.push(this.parseStatementListItem())}else{this.unexpected()}}}this.scope.exit();if(r)this.finishNode(r,"SwitchCase");this.next();this.state.labels.pop();return this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){this.next();if(this.hasPrecedingLineBreak()){this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc)}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0);this.checkLVal(e,{type:"CatchClause"},9);return e}parseTryStatement(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.match(62)){const t=this.startNode();this.next();if(this.match(10)){this.expect(10);t.param=this.parseCatchClauseParam();this.expect(11)}else{t.param=null;this.scope.enter(0)}t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(false,false)));this.scope.exit();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(67)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(p.NoCatchOrFinally,e)}return this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=false){this.next();this.parseVar(e,false,t,r);this.semicolon();return this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){this.next();e.test=this.parseHeaderExpression();this.state.labels.push(ae);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();return this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict){this.raise(p.StrictWith,this.state.startLoc)}this.next();e.object=this.parseHeaderExpression();e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));return this.finishNode(e,"WithStatement")}parseEmptyStatement(e){this.next();return this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){for(const e of this.state.labels){if(e.name===t){this.raise(p.LabelRedeclaration,r,{labelName:t})}}const s=tokenIsLoop(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart===e.start){r.statementStart=this.sourceToOffsetPos(this.state.start);r.kind=s}else{break}}this.state.labels.push({name:t,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)});e.body=n&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(true):this.parseStatement();this.state.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")}parseBlock(e=false,t=true,r){const n=this.startNode();if(e){this.state.strictErrors.clear()}this.expect(5);if(t){this.scope.enter(0)}this.parseBlockBody(n,e,false,8,r);if(t){this.scope.exit()}return this.finishNode(n,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,s){const i=e.body=[];const a=e.directives=[];this.parseBlockOrModuleBlockBody(i,t?a:undefined,r,n,s)}parseBlockOrModuleBlockBody(e,t,r,n,s){const i=this.state.strict;let a=false;let o=false;while(!this.match(n)){const n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){const e=this.stmtToDirective(n);t.push(e);if(!a&&e.value.value==="use strict"){a=true;this.setStrict(true)}continue}o=true;this.state.strictErrors.clear()}e.push(n)}s==null||s.call(this,a);if(!i){this.setStrict(false)}this.next()}parseFor(e,t){e.init=t;this.semicolon(false);e.test=this.match(13)?null:this.parseExpression();this.semicolon(false);e.update=this.match(11)?null:this.parseExpression();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const n=this.match(58);this.next();if(n){if(r!==null)this.unexpected(r)}else{e.await=r!==null}if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!n||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(p.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"})}if(t.type==="AssignmentPattern"){this.raise(p.InvalidLhs,t,{ancestor:{type:"ForStatement"}})}e.left=t;e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,n=false){const s=e.declarations=[];e.kind=r;for(;;){const e=this.startNode();this.parseVarId(e,r);e.init=!this.eat(29)?null:t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn();if(e.init===null&&!n){if(e.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})}else if((r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})}}s.push(this.finishNode(e,"VariableDeclarator"));if(!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();if(t==="using"||t==="await using"){if(r.type==="ArrayPattern"||r.type==="ObjectPattern"){this.raise(p.UsingDeclarationHasBindingPattern,r.loc.start)}}this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201);e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=t&2;const n=!!(t&1);const s=n&&!(t&4);const i=!!(t&8);this.initFunction(e,i);if(this.match(55)){if(r){this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc)}this.next();e.generator=true}if(n){e.id=this.parseFunctionId(s)}const a=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=false;this.scope.enter(2);this.prodParam.enter(functionFlags(i,e.generator));if(!n){e.id=this.parseFunctionId()}this.parseFunctionParams(e,false);this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression")}));this.prodParam.exit();this.scope.exit();if(n&&!r){this.registerFunctionStatementId(e)}this.state.maybeInArrowParameters=a;return e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10);this.expressionScope.enter(newParameterDeclarationScope());e.params=this.parseBindingList(11,41,2|(t?4:0));this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();const n=this.state.strict;this.state.strict=true;this.parseClassId(e,t,r);this.parseClassSuper(e);e.body=this.parseClassBody(!!e.superClass,n);return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:false,hadSuperClass:e};let n=[];const s=this.startNode();s.body=[];this.expect(5);this.withSmartMixTopicForbiddingContext((()=>{while(!this.match(8)){if(this.eat(13)){if(n.length>0){throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc)}continue}if(this.match(26)){n.push(this.parseDecorator());continue}const e=this.startNode();if(n.length){e.decorators=n;this.resetStartLocationFromNode(e,n[0]);n=[]}this.parseClassMember(s,e,r);if(e.kind==="constructor"&&e.decorators&&e.decorators.length>0){this.raise(p.DecoratorConstructor,e)}}}));this.state.strict=t;this.next();if(n.length){throw this.raise(p.TrailingDecorator,this.state.startLoc)}this.classScope.exit();return this.finishNode(s,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(true);if(this.isClassMethod()){const n=t;n.kind="method";n.computed=false;n.key=r;n.static=false;this.pushClassMethod(e,n,false,false,false,false);return true}else if(this.isClassProperty()){const n=t;n.computed=false;n.key=r;n.static=false;e.body.push(this.parseClassProperty(n));return true}this.resetPreviousNodeTrailingComments(r);return false}parseClassMember(e,t,r){const n=this.isContextual(106);if(n){if(this.parseClassMemberFromModifier(e,t)){return}if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){const s=t;const i=t;const a=t;const o=t;const l=t;const c=s;const u=s;t.static=n;this.parsePropertyNamePrefixOperator(t);if(this.eat(55)){c.kind="method";const t=this.match(139);this.parseClassElementName(c);if(t){this.pushClassPrivateMethod(e,i,true,false);return}if(this.isNonstaticConstructor(s)){this.raise(p.ConstructorIsGenerator,s.key)}this.pushClassMethod(e,s,true,false,false,false);return}const d=!this.state.containsEsc&&tokenIsIdentifier(this.state.type);const f=this.parseClassElementName(t);const h=d?f.name:null;const m=this.isPrivateName(f);const y=this.state.startLoc;this.parsePostMemberNameModifiers(u);if(this.isClassMethod()){c.kind="method";if(m){this.pushClassPrivateMethod(e,i,false,false);return}const n=this.isNonstaticConstructor(s);let a=false;if(n){s.kind="constructor";if(r.hadConstructor&&!this.hasPlugin("typescript")){this.raise(p.DuplicateConstructor,f)}if(n&&this.hasPlugin("typescript")&&t.override){this.raise(p.OverrideOnConstructor,f)}r.hadConstructor=true;a=r.hadSuperClass}this.pushClassMethod(e,s,false,false,n,a)}else if(this.isClassProperty()){if(m){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,a)}}else if(h==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);if(u.optional){this.unexpected(y)}c.kind="method";const r=this.match(139);this.parseClassElementName(c);this.parsePostMemberNameModifiers(u);if(r){this.pushClassPrivateMethod(e,i,t,true)}else{if(this.isNonstaticConstructor(s)){this.raise(p.ConstructorIsAsync,s.key)}this.pushClassMethod(e,s,t,true,false,false)}}else if((h==="get"||h==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f);c.kind=h;const t=this.match(139);this.parseClassElementName(s);if(t){this.pushClassPrivateMethod(e,i,false,false)}else{if(this.isNonstaticConstructor(s)){this.raise(p.ConstructorIsAccessor,s.key)}this.pushClassMethod(e,s,false,false,false,false)}this.checkGetterSetterParams(s)}else if(h==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors");this.resetPreviousNodeTrailingComments(f);const t=this.match(139);this.parseClassElementName(a);this.pushClassAccessorProperty(e,l,t)}else if(this.isLineTerminator()){if(m){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,a)}}else{this.unexpected()}}parseClassElementName(e){const{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"){this.raise(p.StaticPrototype,this.state.startLoc)}if(t===139){if(r==="constructor"){this.raise(p.ConstructorClassPrivateField,this.state.startLoc)}const t=this.parsePrivateName();e.key=t;return t}this.parsePropertyName(e);return e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(64|128|16);const n=this.state.labels;this.state.labels=[];this.prodParam.enter(0);const s=t.body=[];this.parseBlockOrModuleBlockBody(s,undefined,false,8);this.prodParam.exit();this.scope.exit();this.state.labels=n;e.body.push(this.finishNode(t,"StaticBlock"));if((r=t.decorators)!=null&&r.length){this.raise(p.DecoratorStaticBlock,t)}}pushClassProperty(e,t){if(!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r);this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}const n=this.parseClassAccessorProperty(t);e.body.push(n);if(r){this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}}pushClassMethod(e,t,r,n,s,i){e.body.push(this.parseMethod(t,r,n,s,i,"ClassMethod",true))}pushClassPrivateMethod(e,t,r,n){const s=this.parseMethod(t,r,n,false,false,"ClassPrivateMethod",true);e.body.push(s);const i=s.kind==="get"?s.static?6:2:s.kind==="set"?s.static?5:1:0;this.declareClassPrivateMethodInScope(s,i)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(64|16);this.expressionScope.enter(newExpressionScope());this.prodParam.enter(0);e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null;this.expressionScope.exit();this.prodParam.exit();this.scope.exit()}parseClassId(e,t,r,n=8331){if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();if(t){this.declareNameFromIdentifier(e.id,n)}}else{if(r||!t){e.id=null}else{throw this.raise(p.MissingClassName,this.state.startLoc)}}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,true);const n=this.maybeParseExportDefaultSpecifier(e,r);const s=!n||this.eat(12);const i=s&&this.eatExportStar(e);const a=i&&this.maybeParseExportNamespaceSpecifier(e);const o=s&&(!a||this.eat(12));const l=n||i;if(i&&!a){if(n)this.unexpected();if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,true);this.sawUnambiguousESM=true;return this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);if(n&&s&&!i&&!c){this.unexpected(null,5)}if(a&&o){this.unexpected(null,98)}let u;if(l||c){u=false;if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,l)}else{u=this.maybeParseExportDeclaration(e)}if(l||c||u){var d;const r=e;this.checkExport(r,true,false,!!r.source);if(((d=r.declaration)==null?void 0:d.type)==="ClassDeclaration"){this.maybeTakeDecorators(t,r.declaration,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.sawUnambiguousESM=true;return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e;const n=this.parseExportDefaultExpression();r.declaration=n;if(n.type==="ClassDeclaration"){this.maybeTakeDecorators(t,n,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.checkExport(r,true,true);this.sawUnambiguousESM=true;return this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t==null?void 0:t.loc.start);const r=t||this.parseIdentifier(true);const n=this.startNodeAtNode(r);n.exported=r;e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")];return true}return false}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,r;(r=(t=e).specifiers)!=null?r:t.specifiers=[];const n=this.startNodeAt(this.state.lastTokStartLoc);this.next();n.exported=this.parseModuleExportName();e.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier"));return true}return false}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;if(!t.specifiers)t.specifiers=[];const r=t.exportKind==="type";t.specifiers.push(...this.parseExportSpecifiers(r));t.source=null;if(this.hasPlugin("importAssertions")){t.assertions=[]}else{t.attributes=[]}t.declaration=null;return true}return false}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){e.specifiers=[];e.source=null;if(this.hasPlugin("importAssertions")){e.assertions=[]}else{e.attributes=[]}e.declaration=this.parseExportDeclaration(e);return true}return false}isAsyncFunction(){if(!this.isContextual(95))return false;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68)){this.next();return this.parseFunction(e,1|4)}else if(this.isAsyncFunction()){this.next();this.next();return this.parseFunction(e,1|4|8)}if(this.match(80)){return this.parseClass(e,true,true)}if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false),this.startNode()),true,true)}if(this.match(75)||this.match(74)||this.isLet()){throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc)}const t=this.parseMaybeAssignAllowIn();this.semicolon();return t}parseExportDeclaration(e){if(this.match(80)){const e=this.parseClass(this.startNode(),true,false);return e}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(e===95&&!this.state.containsEsc||e===100){return false}if((e===130||e===129)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(tokenIsIdentifier(e)&&e!==98||e===5){this.expectOnePlugin(["flow","typescript"]);return false}}}else if(!this.match(65)){return false}const t=this.nextTokenStart();const r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||tokenIsIdentifier(this.state.type)&&r){return true}if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return false}parseExportFrom(e,t){if(this.eatContextual(98)){e.source=this.parseImportSource();this.checkExport(e);this.maybeParseImportAttributes(e);this.checkJSONModuleImport(e)}else if(t){this.unexpected()}this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===26){this.expectOnePlugin(["decorators","decorators-legacy"]);if(this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return true}}if(this.isContextual(107)){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}if(this.isContextual(96)&&this.startsAwaitUsing()){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}return e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,n){if(t){var s;if(r){this.checkDuplicateExports(e,"default");if(this.hasPlugin("exportDefaultFrom")){var i;const t=e.declaration;if(t.type==="Identifier"&&t.name==="from"&&t.end-t.start===4&&!((i=t.extra)!=null&&i.parenthesized)){this.raise(p.ExportDefaultFromAsIdentifier,t)}}}else if((s=e.specifiers)!=null&&s.length){for(const t of e.specifiers){const{exported:e}=t;const r=e.type==="Identifier"?e.name:e.value;this.checkDuplicateExports(t,r);if(!n&&t.local){const{local:e}=t;if(e.type!=="Identifier"){this.raise(p.ExportBindingIsString,t,{localName:e.value,exportName:r})}else{this.checkReservedWord(e.name,e.loc.start,true,false);this.scope.checkLocalExport(e)}}}}else if(e.declaration){const t=e.declaration;if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){const{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if(t.type==="VariableDeclaration"){for(const e of t.declarations){this.checkDeclaration(e.id)}}}}}checkDeclaration(e){if(e.type==="Identifier"){this.checkDuplicateExports(e,e.name)}else if(e.type==="ObjectPattern"){for(const t of e.properties){this.checkDeclaration(t)}}else if(e.type==="ArrayPattern"){for(const t of e.elements){if(t){this.checkDeclaration(t)}}}else if(e.type==="ObjectProperty"){this.checkDeclaration(e.value)}else if(e.type==="RestElement"){this.checkDeclaration(e.argument)}else if(e.type==="AssignmentPattern"){this.checkDeclaration(e.left)}}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t)){if(t==="default"){this.raise(p.DuplicateDefaultExport,e)}else{this.raise(p.DuplicateExport,e,{exportName:t})}}this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=true;this.expect(5);while(!this.eat(8)){if(r){r=false}else{this.expect(12);if(this.eat(8))break}const n=this.isContextual(130);const s=this.match(134);const i=this.startNode();i.local=this.parseModuleExportName();t.push(this.parseExportSpecifier(i,s,e,n))}return t}parseExportSpecifier(e,t,r,n){if(this.eatContextual(93)){e.exported=this.parseModuleExportName()}else if(t){e.exported=cloneStringLiteral(e.local)}else if(!e.exported){e.exported=cloneIdentifier(e.local)}return this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value);const t=le.exec(e.value);if(t){this.raise(p.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)})}return e}return this.parseIdentifier(true)}isJSONModuleImport(e){if(e.assertions!=null){return e.assertions.some((({key:e,value:t})=>t.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")))}return false}checkImportReflection(e){const{specifiers:t}=e;const r=t.length===1?t[0].type:null;if(e.phase==="source"){if(r!=="ImportDefaultSpecifier"){this.raise(p.SourcePhaseImportRequiresDefault,t[0].loc.start)}}else if(e.phase==="defer"){if(r!=="ImportNamespaceSpecifier"){this.raise(p.DeferImportRequiresNamespace,t[0].loc.start)}}else if(e.module){var n;if(r!=="ImportDefaultSpecifier"){this.raise(p.ImportReflectionNotBinding,t[0].loc.start)}if(((n=e.assertions)==null?void 0:n.length)>0){this.raise(p.ImportReflectionHasAssertion,t[0].loc.start)}}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){const{specifiers:t}=e;if(t!=null){const e=t.find((e=>{let t;if(e.type==="ExportSpecifier"){t=e.local}else if(e.type==="ImportSpecifier"){t=e.imported}if(t!==undefined){return t.type==="Identifier"?t.name!=="default":t.value!=="default"}}));if(e!==undefined){this.raise(p.ImportJSONBindingNotDefault,e.loc.start)}}}}isPotentialImportPhase(e){if(e)return false;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,r,n){if(t){return}if(r==="module"){this.expectPlugin("importReflection",n);e.module=true}else if(this.hasPlugin("importReflection")){e.module=false}if(r==="source"){this.expectPlugin("sourcePhaseImports",n);e.phase="source"}else if(r==="defer"){this.expectPlugin("deferredImportEvaluation",n);e.phase="defer"}else if(this.hasPlugin("sourcePhaseImports")){e.phase=null}}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t)){this.applyImportPhase(e,t,null);return null}const r=this.parseIdentifier(true);const{type:n}=this.state;const s=tokenIsKeywordOrIdentifier(n)?n!==98||this.lookaheadCharCode()===102:n!==12;if(s){this.resetPreviousIdentifierLeadingComments(r);this.applyImportPhase(e,t,r.name,r.loc.start);return null}else{this.applyImportPhase(e,t,null);return r}}isPrecedingIdImportPhase(e){const{type:t}=this.state;return tokenIsIdentifier(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){if(this.match(134)){return this.parseImportSourceAndAttributes(e)}return this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,false))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=this.maybeParseDefaultImportSpecifier(e,t);const n=!r||this.eat(12);const s=n&&this.maybeParseStarImportSpecifier(e);if(n&&!s)this.parseNamedImportSpecifiers(e);this.expectContextual(98);return this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;(t=e.specifiers)!=null?t:e.specifiers=[];e.source=this.parseImportSource();this.maybeParseImportAttributes(e);this.checkImportReflection(e);this.checkJSONModuleImport(e);this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){this.checkLVal(e.local,{type:t},r);return this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[];const t=new Set;do{if(this.match(8)){break}const r=this.startNode();const n=this.state.value;if(t.has(n)){this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n})}t.add(n);if(this.match(134)){r.key=this.parseStringLiteral(n)}else{r.key=this.parseIdentifier(true)}this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));this.expect(8);return e}parseModuleAttributes(){const e=[];const t=new Set;do{const r=this.startNode();r.key=this.parseIdentifier(true);if(r.key.name!=="type"){this.raise(p.ModuleAttributeDifferentFromType,r.key)}if(t.has(r.key.name)){this.raise(p.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name})}t.add(r.key.name);this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;{var r=false}if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40){return}this.next();if(this.hasPlugin("moduleAttributes")){t=this.parseModuleAttributes();this.addExtra(e,"deprecatedWithLegacySyntax",true)}else{t=this.parseImportAttributes()}{r=true}}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")){this.raise(p.ImportAttributesUseAssert,this.state.startLoc)}if(!this.hasPlugin("importAssertions")){this.addExtra(e,"deprecatedAssertSyntax",true)}this.next();t=this.parseImportAttributes()}else{t=[]}if(!r&&this.hasPlugin("importAssertions")){e.assertions=t}else{e.attributes=t}}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier"));return true}else if(tokenIsKeywordOrIdentifier(this.state.type)){this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier");return true}return false}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();this.next();this.expectContextual(93);this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier");return true}return false}parseNamedImportSpecifiers(e){let t=true;this.expect(5);while(!this.eat(8)){if(t){t=false}else{if(this.eat(14)){throw this.raise(p.DestructureNamedImport,this.state.startLoc)}this.expect(12);if(this.eat(8))break}const r=this.startNode();const n=this.match(134);const s=this.isContextual(130);r.imported=this.parseModuleExportName();const i=this.parseImportSpecifier(r,n,e.importKind==="type"||e.importKind==="typeof",s,undefined);e.specifiers.push(i)}}parseImportSpecifier(e,t,r,n,s){if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{const{imported:r}=e;if(t){throw this.raise(p.ImportBindingIsString,e,{importName:r.value})}this.checkReservedWord(r.name,e.loc.start,true,true);if(!e.local){e.local=cloneIdentifier(r)}}return this.finishImportSpecifier(e,"ImportSpecifier",s)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class Parser extends StatementParser{constructor(e,t,r){e=getOptions(e);super(e,t);this.options=e;this.initializeScopes();this.plugins=r;this.filename=e.sourceFilename;this.startIndex=e.startIndex;let n=0;if(e.allowAwaitOutsideFunction){n|=1}if(e.allowReturnOutsideFunction){n|=2}if(e.allowImportExportEverywhere){n|=8}if(e.allowSuperOutsideMethod){n|=16}if(e.allowUndeclaredExports){n|=64}if(e.allowNewTargetOutsideFunction){n|=4}if(e.allowYieldOutsideFunction){n|=32}if(e.ranges){n|=128}if(e.tokens){n|=256}if(e.createImportExpressions){n|=512}if(e.createParenthesizedExpressions){n|=1024}if(e.errorRecovery){n|=2048}if(e.attachComment){n|=4096}if(e.annexB){n|=8192}this.optionFlags=n}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode();const t=this.startNode();this.nextToken();e.errors=null;this.parseTopLevel(e,t);e.errors=this.state.errors;e.comments.length=this.state.commentsLen;return e}}function parse(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e);const n=r.parse();if(r.sawUnambiguousESM){return n}if(r.ambiguousScriptDifferentAst){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}}else{n.program.sourceType="script"}return n}catch(r){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}throw r}}else{return getParser(t,e).parse()}}function parseExpression(e,t){const r=getParser(t,e);if(r.options.strictMode){r.state.strict=true}return r.getExpression()}function generateExportedTokenTypes(e){const t={};for(const r of Object.keys(e)){t[r]=getExportedToken(e[r])}return t}const pe=generateExportedTokenTypes(I);function getParser(e,t){let r=Parser;const n=new Map;if(e!=null&&e.plugins){for(const t of e.plugins){let e,r;if(typeof t==="string"){e=t}else{[e,r]=t}if(!n.has(e)){n.set(e,r||{})}}validatePlugins(n);r=getParserClass(n)}return new r(e,t,n)}const ue=new Map;function getParserClass(e){const t=[];for(const r of ie){if(e.has(r)){t.push(r)}}const r=t.join("|");let n=ue.get(r);if(!n){n=Parser;for(const e of t){n=se[e](n)}ue.set(r,n)}return n}t.parse=parse;t.parseExpression=parseExpression;t.tokTypes=pe},2698:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(9045);var s=t["default"]=(0,n.declare)((e=>{e.assertVersion(7);return{name:"syntax-jsx",manipulateOptions(e,t){{if(t.plugins.some((e=>(Array.isArray(e)?e[0]:e)==="typescript"))){return}}t.plugins.push("jsx")}}}))},8184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(9045);{var removePlugin=function(e,t){const r=[];e.forEach(((e,n)=>{const s=Array.isArray(e)?e[0]:e;if(s===t){r.unshift(n)}}));for(const t of r){e.splice(t,1)}}}var s=t["default"]=(0,n.declare)(((e,t)=>{e.assertVersion(7);const{disallowAmbiguousJSXLike:r,dts:n}=t;{var{isTSX:s}=t}return{name:"syntax-typescript",manipulateOptions(e,t){{const{plugins:e}=t;removePlugin(e,"flow");removePlugin(e,"jsx");{e.push("objectRestSpread","classProperties")}if(s){e.push("jsx")}}t.plugins.push(["typescript",{disallowAmbiguousJSXLike:r,dts:n}])}}}))},3086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.transformDynamicImport=transformDynamicImport;var n=r(2358);var s=r(9460);const requireNoInterop=e=>n.template.expression.ast`require(${e})`;const requireInterop=(e,t)=>n.types.callExpression(t.addHelper("interopRequireWildcard"),[requireNoInterop(e)]);function transformDynamicImport(e,t,r){const n=t?requireNoInterop:requireInterop;e.replaceWith((0,s.buildDynamicImport)(e.node,true,false,(e=>n(e,r))))}},5735:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.defineCommonJSHook=defineCommonJSHook;t.makeInvokers=makeInvokers;const r="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function defineCommonJSHook(e,t){let n=e.get(r);if(!n)e.set(r,n=[]);n.push(t)}function findMap(e,t){if(e){for(const r of e){const e=t(r);if(e!=null)return e}}}function makeInvokers(e){const t=e.get(r);return{getWrapperPayload(...e){return findMap(t,(t=>t.getWrapperPayload==null?void 0:t.getWrapperPayload(...e)))},wrapReference(...e){return findMap(t,(t=>t.wrapReference==null?void 0:t.wrapReference(...e)))},buildRequireWrapper(...e){return findMap(t,(t=>t.buildRequireWrapper==null?void 0:t.buildRequireWrapper(...e)))}}}},7179:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;Object.defineProperty(t,"defineCommonJSHook",{enumerable:true,get:function(){return l.defineCommonJSHook}});var n=r(9045);var s=r(9460);var i=r(2358);var a=r(3086);var o=r(2461);var l=r(5735);var c=t["default"]=(0,n.declare)(((e,t)=>{var r,n,c;e.assertVersion(7);const{strictNamespace:p=false,mjsStrictNamespace:u=p,allowTopLevelThis:d,strict:f,strictMode:h,noInterop:m,importInterop:y,lazy:g=false,allowCommonJSExports:b=true,loose:T=false}=t;const S=(r=e.assumption("constantReexports"))!=null?r:T;const x=(n=e.assumption("enumerableModuleMeta"))!=null?n:T;const E=(c=e.assumption("noIncompleteNsImportDetection"))!=null?c:false;if(typeof g!=="boolean"&&typeof g!=="function"&&(!Array.isArray(g)||!g.every((e=>typeof e==="string")))){throw new Error(`.lazy must be a boolean, array of strings, or a function`)}if(typeof p!=="boolean"){throw new Error(`.strictNamespace must be a boolean, or undefined`)}if(typeof u!=="boolean"){throw new Error(`.mjsStrictNamespace must be a boolean, or undefined`)}const getAssertion=e=>i.template.expression.ast`
|
||
(function(){
|
||
throw new Error(
|
||
"The CommonJS '" + "${e}" + "' variable is not available in ES6 modules." +
|
||
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
||
"Babel config for this file.");
|
||
})()
|
||
`;const P={ReferencedIdentifier(e){const t=e.node.name;if(t!=="module"&&t!=="exports")return;const r=e.scope.getBinding(t);const n=this.scope.getBinding(t);if(n!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})){return}e.replaceWith(getAssertion(t))},UpdateExpression(e){const t=e.get("argument");if(!t.isIdentifier())return;const r=t.node.name;if(r!=="module"&&r!=="exports")return;const n=e.scope.getBinding(r);const s=this.scope.getBinding(r);if(s!==n)return;e.replaceWith(i.types.assignmentExpression(e.node.operator[0]+"=",t.node,getAssertion(r)))},AssignmentExpression(e){const t=e.get("left");if(t.isIdentifier()){const r=t.node.name;if(r!=="module"&&r!=="exports")return;const n=e.scope.getBinding(r);const s=this.scope.getBinding(r);if(s!==n)return;const a=e.get("right");a.replaceWith(i.types.sequenceExpression([a.node,getAssertion(r)]))}else if(t.isPattern()){const r=t.getOuterBindingIdentifiers();const n=Object.keys(r).find((t=>{if(t!=="module"&&t!=="exports")return false;return this.scope.getBinding(t)===e.scope.getBinding(t)}));if(n){const t=e.get("right");t.replaceWith(i.types.sequenceExpression([t.node,getAssertion(n)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs");if(g)(0,l.defineCommonJSHook)(this.file,(0,o.lazyImportsHook)(g))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](e){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(e.isCallExpression()&&!i.types.isImport(e.node.callee))return;let{scope:t}=e;do{t.rename("require")}while(t=t.parent);(0,a.transformDynamicImport)(e,m,this.file)},Program:{exit(e,r){if(!(0,s.isModule)(e))return;e.scope.rename("exports");e.scope.rename("module");e.scope.rename("require");e.scope.rename("__filename");e.scope.rename("__dirname");if(!b){e.traverse(P,{scope:e.scope})}let n=(0,s.getModuleName)(this.file.opts,t);if(n)n=i.types.stringLiteral(n);const a=(0,l.makeInvokers)(this.file);const{meta:o,headers:c}=(0,s.rewriteModuleStatementsAndPrepareHeader)(e,{exportName:"exports",constantReexports:S,enumerableModuleMeta:x,strict:f,strictMode:h,allowTopLevelThis:d,noInterop:m,importInterop:y,wrapReference:a.wrapReference,getWrapperPayload:a.getWrapperPayload,esNamespaceOnly:typeof r.filename==="string"&&/\.mjs$/.test(r.filename)?u:p,noIncompleteNsImportDetection:E,filename:this.file.opts.filename});for(const[t,r]of o.source){const n=i.types.callExpression(i.types.identifier("require"),[i.types.stringLiteral(t)]);let l;if((0,s.isSideEffectImport)(r)){if(g&&r.wrap==="function"){throw new Error("Assertion failure")}l=i.types.expressionStatement(n)}else{var T;const t=(0,s.wrapInterop)(e,n,r.interop)||n;if(r.wrap){const e=a.buildRequireWrapper(r.name,t,r.wrap,r.referenced);if(e===false)continue;else l=e}(T=l)!=null?T:l=i.template.statement.ast`
|
||
var ${r.name} = ${t};
|
||
`}l.loc=r.loc;c.push(l);c.push(...(0,s.buildNamespaceInitStatements)(o,r,S,a.wrapReference))}(0,s.ensureStatementsHoisted)(c);e.unshiftContainer("body",c);e.get("body").forEach((e=>{if(!c.includes(e.node))return;if(e.isVariableDeclaration()){e.scope.registerDeclaration(e)}}))}}}}}))},2461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.lazyImportsHook=void 0;var n=r(2358);var s=r(9460);const lazyImportsHook=e=>({name:`${"@babel/plugin-transform-modules-commonjs"}/lazy`,version:"7.26.3",getWrapperPayload(t,r){if((0,s.isSideEffectImport)(r)||r.reexportAll){return null}if(e===true){return t.includes(".")?null:"lazy/function"}if(Array.isArray(e)){return!e.includes(t)?null:"lazy/function"}if(typeof e==="function"){return e(t)?"lazy/function":null}},buildRequireWrapper(e,t,r,s){if(r==="lazy/function"){if(!s)return false;return n.template.statement.ast`
|
||
function ${e}() {
|
||
const data = ${t};
|
||
${e} = function(){ return data; };
|
||
return data;
|
||
}
|
||
`}},wrapReference(e,t){if(t==="lazy/function")return n.types.callExpression(e,[])}});t.lazyImportsHook=lazyImportsHook},7077:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EXPORTED_CONST_ENUMS_IN_NAMESPACE=void 0;t["default"]=transpileConstEnum;var n=r(5886);const s=t.EXPORTED_CONST_ENUMS_IN_NAMESPACE=new WeakSet;function transpileConstEnum(e,t){const{name:r}=e.node.id;const i=e.parentPath.isExportNamedDeclaration();let a=i;if(!a&&t.isProgram(e.parent)){a=e.parent.body.some((e=>t.isExportNamedDeclaration(e)&&e.exportKind!=="type"&&!e.source&&e.specifiers.some((e=>t.isExportSpecifier(e)&&e.exportKind!=="type"&&e.local.name===r))))}const{enumValues:o}=(0,n.translateEnumValues)(e,t);if(a||s.has(e.node)){const n=t.objectExpression(o.map((([e,r])=>t.objectProperty(t.isValidIdentifier(e)?t.identifier(e):t.stringLiteral(e),r))));if(e.scope.hasOwnBinding(r)){(i?e.parentPath:e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[e.node.id,n])))}else{e.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(e.node.id,n)]));e.scope.registerDeclaration(e)}return}const l=new Map(o);e.scope.path.traverse({Scope(e){if(e.scope.hasOwnBinding(r))e.skip()},MemberExpression(e){if(!t.isIdentifier(e.node.object,{name:r}))return;let n;if(e.node.computed){if(t.isStringLiteral(e.node.property)){n=e.node.property.value}else{return}}else if(t.isIdentifier(e.node.property)){n=e.node.property.name}else{return}if(!l.has(n))return;e.replaceWith(t.cloneNode(l.get(n)))}});e.remove()}},5886:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=transpileEnum;t.isSyntacticallyString=isSyntacticallyString;t.translateEnumValues=translateEnumValues;var n=r(2358);var s=r(9491);var i=r(344);var a=r(9102);const o=new WeakMap;const l=n.template.expression(`\n (function (ID) {\n ASSIGNMENTS;\n return ID;\n })(INIT)\n `);function transpileEnum(e,t){const{node:r,parentPath:n}=e;if(r.declare){e.remove();return}const s=r.id.name;const{fill:a,data:c,isPure:p}=enumFill(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{const u=t.isProgram(e.parent);const d=seen(n);let f=t.objectExpression([]);if(d||u){f=t.logicalExpression("||",t.cloneNode(a.ID),f)}const h=l(Object.assign({},a,{INIT:f}));if(p)(0,i.default)(h);if(d){const s=n.isExportDeclaration()?n:e;s.replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),h)))}else{e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,h)]))[0])}o.set(e.scope.getBindingIdentifier(s),c);break}default:throw new Error(`Unexpected enum parent '${e.parent.type}`)}function seen(e){if(e.isExportDeclaration()){return seen(e.parentPath)}if(e.getData(s)){return true}else{e.setData(s,true);return false}}}const c=n.template.statement(`\n ENUM["NAME"] = VALUE;\n`);const p=n.template.statement(`\n ENUM[ENUM["NAME"] = VALUE] = "NAME";\n`);const buildEnumMember=(e,t)=>(e?c:p)(t);function enumFill(e,t,r){const{enumValues:n,data:s,isPure:i}=translateEnumValues(e,t);const a=e.get("members");const o=[];for(let e=0;e<a.length;e++){const[s,i]=n[e];o.push(t.inheritsComments(buildEnumMember(isSyntacticallyString(i),{ENUM:t.cloneNode(r),NAME:s,VALUE:i}),a[e].node))}return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:o},data:s,isPure:i}}function isSyntacticallyString(e){e=(0,a.skipTransparentExprWrapperNodes)(e);switch(e.type){case"BinaryExpression":{const t=e.left;const r=e.right;return e.operator==="+"&&(isSyntacticallyString(t)||isSyntacticallyString(r))}case"TemplateLiteral":case"StringLiteral":return true}return false}function ReferencedIdentifier(e,t){const{seen:r,path:n,t:s}=t;const i=e.node.name;if(r.has(i)){{for(let t=e.scope;t!==n.scope;t=t.parent){if(t.hasOwnBinding(i)){return}}}e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node)));e.skip()}}const u={ReferencedIdentifier:ReferencedIdentifier};function translateEnumValues(e,t){var r;const n=e.scope.getBindingIdentifier(e.node.id.name);const i=(r=o.get(n))!=null?r:new Map;let a=-1;let l;let c=true;const p=e.get("members");const d=p.map((r=>{const n=r.node;const o=t.isIdentifier(n.id)?n.id.name:n.id.value;const p=r.get("initializer");const d=n.initializer;let f;if(d){a=computeConstantValue(p,i);if(a!==undefined){i.set(o,a);s(typeof a==="number"||typeof a==="string");if(a===Infinity||Number.isNaN(a)){f=t.identifier(String(a))}else if(a===-Infinity){f=t.unaryExpression("-",t.identifier("Infinity"))}else{f=t.valueToNode(a)}}else{c&&(c=p.isPure());if(p.isReferencedIdentifier()){ReferencedIdentifier(p,{t:t,seen:i,path:e})}else{p.traverse(u,{t:t,seen:i,path:e})}f=p.node;i.set(o,undefined)}}else if(typeof a==="number"){a+=1;f=t.numericLiteral(a);i.set(o,a)}else if(typeof a==="string"){throw e.buildCodeFrameError("Enum member must have initializer.")}else{const r=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(l),true);f=t.binaryExpression("+",t.numericLiteral(1),r);i.set(o,undefined)}l=o;return[o,f]}));return{isPure:c,data:i,enumValues:d}}function computeConstantValue(e,t,r=new Set){return evaluate(e);function evaluate(e){const n=e.node;switch(n.type){case"MemberExpression":return evaluateRef(e,t,r);case"StringLiteral":return n.value;case"UnaryExpression":return evalUnaryExpression(e);case"BinaryExpression":return evalBinaryExpression(e);case"NumericLiteral":return n.value;case"ParenthesizedExpression":return evaluate(e.get("expression"));case"Identifier":return evaluateRef(e,t,r);case"TemplateLiteral":{if(n.quasis.length===1){return n.quasis[0].value.cooked}const s=e.get("expressions");const i=n.quasis;let a="";for(let e=0;e<i.length;e++){a+=i[e].value.cooked;if(e+1<i.length){const n=evaluateRef(s[e],t,r);if(n===undefined)return undefined;a+=n}}return a}default:return undefined}}function evaluateRef(e,t,r){if(e.isMemberExpression()){const t=e.node;const r=t.object;const s=t.property;if(!n.types.isIdentifier(r)||(t.computed?!n.types.isStringLiteral(s):!n.types.isIdentifier(s))){return}const i=e.scope.getBindingIdentifier(r.name);const a=o.get(i);if(!a)return;return a.get(s.computed?s.value:s.name)}else if(e.isIdentifier()){const n=e.node.name;if(["Infinity","NaN"].includes(n)){return Number(n)}let s=t==null?void 0:t.get(n);if(s!==undefined){return s}if(t!=null&&t.has(n)){return undefined}if(r.has(e.node))return;r.add(e.node);s=computeConstantValue(e.resolve(),t,r);return s}}function evalUnaryExpression(e){const t=evaluate(e.get("argument"));if(t===undefined){return undefined}switch(e.node.operator){case"+":return t;case"-":return-t;case"~":return~t;default:return undefined}}function evalBinaryExpression(e){const t=evaluate(e.get("left"));if(t===undefined){return undefined}const r=evaluate(e.get("right"));if(r===undefined){return undefined}switch(e.node.operator){case"|":return t|r;case"&":return t&r;case">>":return t>>r;case">>>":return t>>>r;case"<<":return t<<r;case"^":return t^r;case"*":return t*r;case"/":return t/r;case"+":return t+r;case"-":return t-r;case"%":return t%r;case"**":return Math.pow(t,r);default:return undefined}}}},9878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GLOBAL_TYPES=void 0;t.isGlobalType=isGlobalType;t.registerGlobalType=registerGlobalType;const r=t.GLOBAL_TYPES=new WeakMap;function isGlobalType({scope:e},t){if(e.hasBinding(t))return false;if(r.get(e).has(t))return true;console.warn(`The exported identifier "${t}" is not declared in Babel's scope tracker\n`+`as a JavaScript value binding, and "@babel/plugin-transform-typescript"\n`+`never encountered it as a TypeScript type declaration.\n`+`It will be treated as a JavaScript value.\n\n`+`This problem is likely caused by another plugin injecting\n`+`"${t}" without registering it in the scope tracker. If you are the author\n`+` of that plugin, please use "scope.registerDeclaration(declarationPath)".`);return false}function registerGlobalType(e,t){r.get(e).add(t)}},7687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(9045);var s=r(8184);var i=r(3713);var a=r(7077);var o=r(5886);var l=r(9878);var c=r(723);function isInType(e){switch(e.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return true;case"TSQualifiedName":return e.parentPath.findParent((e=>e.type!=="TSQualifiedName")).type!=="TSImportEqualsDeclaration";case"ExportSpecifier":return e.parent.exportKind==="type"||e.parentPath.parent.exportKind==="type";default:return false}}const p=new WeakMap;const u=new WeakSet;function safeRemove(e){const t=e.getBindingIdentifiers();for(const r of Object.keys(t)){const n=e.scope.getBinding(r);if(n&&n.identifier===t[r]){n.scope.removeBinding(r)}}e.opts.noScope=true;e.remove();e.opts.noScope=false}function assertCjsTransformEnabled(e,t,r,n,s=""){if(t.file.get("@babel/plugin-transform-modules-*")!=="commonjs"){throw e.buildCodeFrameError(`\`${r}\` is only supported when compiling modules to CommonJS.\n`+`Please consider using \`${n}\`${s}, or add `+`@babel/plugin-transform-modules-commonjs to your Babel config.`)}}var d=t["default"]=(0,n.declare)(((e,t)=>{const{types:r,template:n}=e;e.assertVersion(7);const d=/\*?\s*@jsx((?:Frag)?)\s+(\S+)/;const{allowNamespaces:f=true,jsxPragma:h="React.createElement",jsxPragmaFrag:m="React.Fragment",onlyRemoveTypeImports:y=false,optimizeConstEnums:g=false}=t;{var{allowDeclareFields:b=false}=t}const T={field(e){const{node:t}=e;{if(!b&&t.declare){throw e.buildCodeFrameError(`The 'declare' modifier is only allowed when the 'allowDeclareFields' option of `+`@babel/plugin-transform-typescript or @babel/preset-typescript is enabled.`)}}if(t.declare){if(t.value){throw e.buildCodeFrameError(`Fields with the 'declare' modifier cannot be initialized here, but only in the constructor`)}if(!t.decorators){e.remove()}}else if(t.definite){if(t.value){throw e.buildCodeFrameError(`Definitely assigned fields cannot be initialized here, but only in the constructor`)}{if(!b&&!t.decorators&&!r.isClassPrivateProperty(t)){e.remove()}}}else if(t.abstract){e.remove()}else{if(!b&&!t.value&&!t.decorators&&!r.isClassPrivateProperty(t)){e.remove()}}if(t.accessibility)t.accessibility=null;if(t.abstract)t.abstract=null;if(t.readonly)t.readonly=null;if(t.optional)t.optional=null;if(t.typeAnnotation)t.typeAnnotation=null;if(t.definite)t.definite=null;if(t.declare)t.declare=null;if(t.override)t.override=null},method({node:e}){if(e.accessibility)e.accessibility=null;if(e.abstract)e.abstract=null;if(e.optional)e.optional=null;if(e.override)e.override=null},constructor(e,t){if(e.node.accessibility)e.node.accessibility=null;const s=[];const{scope:a}=e;for(const t of e.get("params")){const e=t.node;if(e.type==="TSParameterProperty"){const i=e.parameter;if(u.has(i))continue;u.add(i);let o;if(r.isIdentifier(i)){o=i}else if(r.isAssignmentPattern(i)&&r.isIdentifier(i.left)){o=i.left}else{throw t.buildCodeFrameError("Parameter properties can not be destructuring patterns.")}s.push(n.statement.ast`
|
||
this.${r.cloneNode(o)} = ${r.cloneNode(o)}
|
||
`);t.replaceWith(t.get("parameter"));a.registerBinding("param",t)}}(0,i.injectInitialization)(t,e,s)}};return{name:"transform-typescript",inherits:s.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(e,t){const{file:r}=t;let n=null;let s=null;const i=e.scope;if(!l.GLOBAL_TYPES.has(i)){l.GLOBAL_TYPES.set(i,new Set)}if(r.ast.comments){for(const e of r.ast.comments){const t=d.exec(e.value);if(t){if(t[1]){s=t[2]}else{n=t[2]}}}}let a=n||h;if(a){[a]=a.split(".")}let o=s||m;if(o){[o]=o.split(".")}for(let r of e.get("body")){if(r.isImportDeclaration()){if(!p.has(t.file.ast.program)){p.set(t.file.ast.program,true)}if(r.node.importKind==="type"){for(const e of r.node.specifiers){(0,l.registerGlobalType)(i,e.local.name)}r.remove();continue}const n=new Set;const s=r.node.specifiers.length;const isAllSpecifiersElided=()=>s>0&&s===n.size;for(const e of r.node.specifiers){if(e.type==="ImportSpecifier"&&e.importKind==="type"){(0,l.registerGlobalType)(i,e.local.name);const t=r.scope.getBinding(e.local.name);if(t){n.add(t.path)}}}if(y){p.set(e.node,false)}else{if(r.node.specifiers.length===0){p.set(e.node,false);continue}for(const t of r.node.specifiers){const s=r.scope.getBinding(t.local.name);if(s&&!n.has(s.path)){if(isImportTypeOnly({binding:s,programPath:e,pragmaImportName:a,pragmaFragImportName:o})){n.add(s.path)}else{p.set(e.node,false)}}}}if(isAllSpecifiersElided()&&!y){r.remove()}else{for(const e of n){e.remove()}}continue}if(!y&&r.isTSImportEqualsDeclaration()){const{id:t}=r.node;const n=r.scope.getBinding(t.name);if(n&&!r.node.isExport&&isImportTypeOnly({binding:n,programPath:e,pragmaImportName:a,pragmaFragImportName:o})){r.remove();continue}}if(r.isExportDeclaration()){r=r.get("declaration")}if(r.isVariableDeclaration({declare:true})){for(const e of Object.keys(r.getBindingIdentifiers())){(0,l.registerGlobalType)(i,e)}}else if(r.isTSTypeAliasDeclaration()||r.isTSDeclareFunction()&&r.get("id").isIdentifier()||r.isTSInterfaceDeclaration()||r.isClassDeclaration({declare:true})||r.isTSEnumDeclaration({declare:true})||r.isTSModuleDeclaration({declare:true})&&r.get("id").isIdentifier()){(0,l.registerGlobalType)(i,r.node.id.name)}}},exit(e){if(e.node.sourceType==="module"&&p.get(e.node)){e.pushContainer("body",r.exportNamedDeclaration())}}},ExportNamedDeclaration(e,t){if(!p.has(t.file.ast.program)){p.set(t.file.ast.program,true)}if(e.node.exportKind==="type"){e.remove();return}if(e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every((e=>e.type==="ExportSpecifier"&&e.exportKind==="type"))){e.remove();return}if(!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every((t=>r.isExportSpecifier(t)&&(0,l.isGlobalType)(e,t.local.name)))){e.remove();return}if(r.isTSModuleDeclaration(e.node.declaration)){const t=e.node.declaration;if(!r.isStringLiteral(t.id)){const n=(0,c.getFirstIdentifier)(t.id);if(e.scope.hasOwnBinding(n.name)){e.replaceWith(t)}else{const[s]=e.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(n))])),t]);e.scope.registerDeclaration(s)}}}p.set(t.file.ast.program,false)},ExportAllDeclaration(e){if(e.node.exportKind==="type")e.remove()},ExportSpecifier(e){const t=e.parent;if(!t.source&&(0,l.isGlobalType)(e,e.node.local.name)||e.node.exportKind==="type"){e.remove()}},ExportDefaultDeclaration(e,t){if(!p.has(t.file.ast.program)){p.set(t.file.ast.program,true)}if(r.isIdentifier(e.node.declaration)&&(0,l.isGlobalType)(e,e.node.declaration.name)){e.remove();return}p.set(t.file.ast.program,false)},TSDeclareFunction(e){safeRemove(e)},TSDeclareMethod(e){safeRemove(e)},VariableDeclaration(e){if(e.node.declare){safeRemove(e)}},VariableDeclarator({node:e}){if(e.definite)e.definite=null},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;if(t.declare){safeRemove(e)}},Class(e){const{node:t}=e;if(t.typeParameters)t.typeParameters=null;{if(t.superTypeParameters)t.superTypeParameters=null}if(t.implements)t.implements=null;if(t.abstract)t.abstract=null;e.get("body.body").forEach((t=>{if(t.isClassMethod()||t.isClassPrivateMethod()){if(t.node.kind==="constructor"){T.constructor(t,e)}else{T.method(t)}}else if(t.isClassProperty()||t.isClassPrivateProperty()||t.isClassAccessorProperty()){T.field(t)}}))},Function(e){const{node:t}=e;if(t.typeParameters)t.typeParameters=null;if(t.returnType)t.returnType=null;const n=t.params;if(n.length>0&&r.isIdentifier(n[0],{name:"this"})){n.shift()}},TSModuleDeclaration(e){(0,c.default)(e,f)},TSInterfaceDeclaration(e){e.remove()},TSTypeAliasDeclaration(e){e.remove()},TSEnumDeclaration(e){if(g&&e.node.const){(0,a.default)(e,r)}else{(0,o.default)(e,r)}},TSImportEqualsDeclaration(e,t){const{id:n,moduleReference:s}=e.node;let i;let a;if(r.isTSExternalModuleReference(s)){assertCjsTransformEnabled(e,t,`import ${n.name} = require(...);`,`import ${n.name} from '...';`," alongside Typescript's --allowSyntheticDefaultImports option");i=r.callExpression(r.identifier("require"),[s.expression]);a="const"}else{i=entityNameToExpr(s);a="var"}const o=r.variableDeclaration(a,[r.variableDeclarator(n,i)]);{e.replaceWith(e.node.isExport?r.exportNamedDeclaration(o):o)}e.scope.registerDeclaration(e)},TSExportAssignment(e,t){assertCjsTransformEnabled(e,t,`export = <value>;`,`export default <value>;`);e.replaceWith(n.statement.ast`module.exports = ${e.node.expression}`)},TSTypeAssertion(e){e.replaceWith(e.node.expression)},[`TSAsExpression${r.tsSatisfiesExpression?"|TSSatisfiesExpression":""}`](e){let{node:t}=e;do{t=t.expression}while(r.isTSAsExpression(t)||r.isTSSatisfiesExpression!=null&&r.isTSSatisfiesExpression(t));e.replaceWith(t)},[e.types.tsInstantiationExpression?"TSNonNullExpression|TSInstantiationExpression":"TSNonNullExpression"](e){e.replaceWith(e.node.expression)},CallExpression(e){{e.node.typeParameters=null}},OptionalCallExpression(e){{e.node.typeParameters=null}},NewExpression(e){{e.node.typeParameters=null}},JSXOpeningElement(e){{e.node.typeParameters=null}},TaggedTemplateExpression(e){{e.node.typeParameters=null}}}};function entityNameToExpr(e){if(r.isTSQualifiedName(e)){return r.memberExpression(entityNameToExpr(e.left),e.right)}return e}function visitPattern({node:e}){if(e.typeAnnotation)e.typeAnnotation=null;if(r.isIdentifier(e)&&e.optional)e.optional=null}function isImportTypeOnly({binding:e,programPath:t,pragmaImportName:r,pragmaFragImportName:n}){for(const t of e.referencePaths){if(!isInType(t)){return false}}if(e.identifier.name!==r&&e.identifier.name!==n){return true}let s=false;t.traverse({"JSXElement|JSXFragment"(e){s=true;e.stop()}});return!s}}))},723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=transpileNamespace;t.getFirstIdentifier=getFirstIdentifier;var n=r(2358);var s=r(9878);var i=r(7077);function getFirstIdentifier(e){if(n.types.isIdentifier(e)){return e}return getFirstIdentifier(e.left)}function transpileNamespace(e,t){if(e.node.declare||e.node.id.type==="StringLiteral"){e.remove();return}if(!t){throw e.get("id").buildCodeFrameError("Namespace not marked type-only declare."+" Non-declarative namespaces are only supported experimentally in Babel."+" To enable and review caveats see:"+" https://babeljs.io/docs/en/babel-plugin-transform-typescript")}const r=getFirstIdentifier(e.node.id).name;const n=handleNested(e,e.node);if(n===null){const t=e.findParent((e=>e.isProgram()));(0,s.registerGlobalType)(t.scope,r);e.remove()}else if(e.scope.hasOwnBinding(r)){e.replaceWith(n)}else{e.scope.registerDeclaration(e.replaceWithMultiple([getDeclaration(r),n])[0])}}function getDeclaration(e){return n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.identifier(e))])}function getMemberExpression(e,t){return n.types.memberExpression(n.types.identifier(e),n.types.identifier(t))}function handleVariableDeclaration(e,t,r){if(e.kind!=="const"){throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel."+" Change to const or see:"+" https://babeljs.io/docs/en/babel-plugin-transform-typescript")}const{declarations:s}=e;if(s.every((e=>n.types.isIdentifier(e.id)))){for(const e of s){e.init=n.types.assignmentExpression("=",getMemberExpression(t,e.id.name),e.init)}return[e]}const i=n.types.getBindingIdentifiers(e);const a=[];for(const e in i){a.push(n.types.assignmentExpression("=",getMemberExpression(t,e),n.types.cloneNode(i[e])))}return[e,n.types.expressionStatement(n.types.sequenceExpression(a))]}function buildNestedAmbientModuleError(e,t){return e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function handleNested(e,t,r){const s=new Set;const a=t.id;const o=e.scope.generateUid(a.name);const l=t.body;let c=t.id;let p;{p=n.types.isTSModuleBlock(l)?l.body:[n.types.exportNamedDeclaration(l)]}let u=true;for(let t=0;t<p.length;t++){const r=p[t];switch(r.type){case"TSModuleDeclaration":{if(!n.types.isIdentifier(r.id)){throw buildNestedAmbientModuleError(e,r)}const i=handleNested(e,r);if(i!==null){u=false;const e=r.id.name;if(s.has(e)){p[t]=i}else{s.add(e);p.splice(t++,1,getDeclaration(e),i)}}continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":u=false;s.add(r.id.name);continue;case"VariableDeclaration":{u=false;for(const e in n.types.getBindingIdentifiers(r)){s.add(e)}continue}default:u&&(u=n.types.isTypeScript(r));continue;case"ExportNamedDeclaration":}if("declare"in r.declaration&&r.declaration.declare){continue}switch(r.declaration.type){case"TSEnumDeclaration":i.EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(r.declaration);case"FunctionDeclaration":case"ClassDeclaration":{u=false;const e=r.declaration.id.name;s.add(e);p.splice(t++,1,r.declaration,n.types.expressionStatement(n.types.assignmentExpression("=",getMemberExpression(o,e),n.types.identifier(e))));break}case"VariableDeclaration":{u=false;const n=handleVariableDeclaration(r.declaration,o,e.hub);p.splice(t,n.length,...n);t+=n.length-1;break}case"TSModuleDeclaration":{if(!n.types.isIdentifier(r.declaration.id)){throw buildNestedAmbientModuleError(e,r.declaration)}const i=handleNested(e,r.declaration,n.types.identifier(o));if(i!==null){u=false;const e=r.declaration.id.name;if(s.has(e)){p[t]=i}else{s.add(e);p.splice(t++,1,getDeclaration(e),i)}}else{p.splice(t,1);t--}}}}if(u)return null;let d=n.types.objectExpression([]);if(r){const e=n.types.memberExpression(r,a);d=n.template.expression.ast`
|
||
${n.types.cloneNode(e)} ||
|
||
(${n.types.cloneNode(e)} = ${d})
|
||
`}return n.template.statement.ast`
|
||
(function (${n.types.identifier(o)}) {
|
||
${p}
|
||
})(${a} || (${n.types.cloneNode(a)} = ${d}));
|
||
`}},8782:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(9045);var s=r(7687);r(2698);var i=r(7179);var a=r(3146);function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var o=_interopDefault(s);var l=_interopDefault(i);const c=new a.OptionValidator("@babel/preset-typescript");function normalizeOptions(e={}){let{allowNamespaces:t=true,jsxPragma:r,onlyRemoveTypeImports:n}=e;const s={ignoreExtensions:"ignoreExtensions",allowNamespaces:"allowNamespaces",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragma:"jsxPragma",jsxPragmaFrag:"jsxPragmaFrag",onlyRemoveTypeImports:"onlyRemoveTypeImports",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"};const i=c.validateStringOption(s.jsxPragmaFrag,e.jsxPragmaFrag,"React.Fragment");{var a=c.validateBooleanOption(s.allExtensions,e.allExtensions,false);var o=c.validateBooleanOption(s.isTSX,e.isTSX,false);if(o){c.invariant(a,"isTSX:true requires allExtensions:true")}}const l=c.validateBooleanOption(s.ignoreExtensions,e.ignoreExtensions,false);const p=c.validateBooleanOption(s.disallowAmbiguousJSXLike,e.disallowAmbiguousJSXLike,false);if(p){{c.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true")}}const u=c.validateBooleanOption(s.optimizeConstEnums,e.optimizeConstEnums,false);const d=c.validateBooleanOption(s.rewriteImportExtensions,e.rewriteImportExtensions,false);const f={ignoreExtensions:l,allowNamespaces:t,disallowAmbiguousJSXLike:p,jsxPragma:r,jsxPragmaFrag:i,onlyRemoveTypeImports:n,optimizeConstEnums:u,rewriteImportExtensions:d};{f.allExtensions=a;f.isTSX=o}return f}var p=n.declare((function({types:e,template:t}){function maybeReplace(r,n,s){if(!r)return;if(e.isStringLiteral(r)){if(/^\.\.?\//.test(r.value)){r.value=r.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,(function(e,t,r,n,s){return t?".js":r&&(!n||!s)?e:r+n+"."+s.toLowerCase()+"js"}))}return}if(s.availableHelper("tsRewriteRelativeImportExtensions")){n.replaceWith(e.callExpression(s.addHelper("tsRewriteRelativeImportExtensions"),[r]))}else{n.replaceWith(t.expression.ast`(${r} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`)}}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(t,r){const n=t.node;const s=e.isImportDeclaration(n)?n.importKind:n.exportKind;if(s==="value"){maybeReplace(n.source,t.get("source"),r)}},CallExpression(t,r){if(e.isImport(t.node.callee)){maybeReplace(t.node.arguments[0],t.get("arguments.0"),r)}},ImportExpression(e,t){maybeReplace(e.node.source,e.get("source"),t)}}}}));var u=n.declarePreset(((e,t)=>{e.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:a,jsxPragma:c,jsxPragmaFrag:u,onlyRemoveTypeImports:d,optimizeConstEnums:f,rewriteImportExtensions:h}=normalizeOptions(t);const pluginOptions=e=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:e,jsxPragma:c,jsxPragmaFrag:u,onlyRemoveTypeImports:d,optimizeConstEnums:f});const getPlugins=(e,t)=>{{return[[o.default,Object.assign({isTSX:e},pluginOptions(t))]]}};const m=r||n;return{plugins:h?[p]:[],overrides:m?[{plugins:getPlugins(a,i)}]:[{test:/\.ts$/,plugins:getPlugins(false,false)},{test:/\.mts$/,sourceType:"module",plugins:getPlugins(false,true)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[l.default,{allowTopLevelThis:true}],[o.default,pluginOptions(true)]]},{test:/\.tsx$/,plugins:getPlugins(true,false)}]}}));t["default"]=u},3725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createTemplateBuilder;var n=r(6657);var s=r(1510);var i=r(8671);const a=(0,n.validate)({placeholderPattern:false});function createTemplateBuilder(e,t){const r=new WeakMap;const o=new WeakMap;const l=t||(0,n.validate)(null);return Object.assign(((t,...a)=>{if(typeof t==="string"){if(a.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,s.default)(e,t,(0,n.merge)(l,(0,n.validate)(a[0]))))}else if(Array.isArray(t)){let n=r.get(t);if(!n){n=(0,i.default)(e,t,l);r.set(t,n)}return extendedTrace(n(a))}else if(typeof t==="object"&&t){if(a.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,n.merge)(l,(0,n.validate)(t)))}throw new Error(`Unexpected template param ${typeof t}`)}),{ast:(t,...r)=>{if(typeof t==="string"){if(r.length>1)throw new Error("Unexpected extra params.");return(0,s.default)(e,t,(0,n.merge)((0,n.merge)(l,(0,n.validate)(r[0])),a))()}else if(Array.isArray(t)){let s=o.get(t);if(!s){s=(0,i.default)(e,t,(0,n.merge)(l,a));o.set(t,s)}return s(r)()}throw new Error(`Unexpected template param ${typeof t}`)}})}function extendedTrace(e){let t="";try{throw new Error}catch(e){if(e.stack){t=e.stack.split("\n").slice(3).join("\n")}}return r=>{try{return e(r)}catch(e){e.stack+=`\n =============\n${t}`;throw e}}}},4792:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statements=t.statement=t.smart=t.program=t.expression=void 0;var n=r(3061);const{assertExpressionStatement:s}=n;function makeStatementFormatter(e){return{code:e=>`/* @babel/template */;\n${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}const i=t.smart=makeStatementFormatter((e=>{if(e.length>1){return e}else{return e[0]}}));const a=t.statements=makeStatementFormatter((e=>e));const o=t.statement=makeStatementFormatter((e=>{if(e.length===0){throw new Error("Found nothing to return.")}if(e.length>1){throw new Error("Found multiple statements but wanted one")}return e[0]}));const l=t.expression={code:e=>`(\n${e}\n)`,validate:e=>{if(e.program.body.length>1){throw new Error("Found multiple statements but wanted one")}if(l.unwrap(e).start===0){throw new Error("Parse result included parens.")}},unwrap:({program:e})=>{const[t]=e.body;s(t);return t.expression}};const c=t.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}},5326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.statements=t.statement=t.smart=t.program=t.expression=t["default"]=void 0;var n=r(4792);var s=r(3725);const i=t.smart=(0,s.default)(n.smart);const a=t.statement=(0,s.default)(n.statement);const o=t.statements=(0,s.default)(n.statements);const l=t.expression=(0,s.default)(n.expression);const c=t.program=(0,s.default)(n.program);var p=t["default"]=Object.assign(i.bind(undefined),{smart:i,statement:a,statements:o,expression:l,program:c,ast:i.ast})},8671:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=literalTemplate;var n=r(6657);var s=r(2082);var i=r(9534);function literalTemplate(e,t,r){const{metadata:s,names:a}=buildLiteralData(e,t,r);return t=>{const r={};t.forEach(((e,t)=>{r[a[t]]=e}));return t=>{const a=(0,n.normalizeReplacements)(t);if(a){Object.keys(a).forEach((e=>{if(hasOwnProperty.call(r,e)){throw new Error("Unexpected replacement overlap.")}}))}return e.unwrap((0,i.default)(s,a?Object.assign(a,r):r))}}}function buildLiteralData(e,t,r){let n="BABEL_TPL$";const i=t.join("");do{n="$$"+n}while(i.includes(n));const{names:a,code:o}=buildTemplateCode(t,n);const l=(0,s.default)(e,e.code(o),{parser:r.parser,placeholderWhitelist:new Set(a.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders});return{metadata:l,names:a}}function buildTemplateCode(e,t){const r=[];let n=e[0];for(let s=1;s<e.length;s++){const i=`${t}${s-1}`;r.push(i);n+=i+e[s]}return{names:r,code:n}}},6657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.merge=merge;t.normalizeReplacements=normalizeReplacements;t.validate=validate;const r=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}function merge(e,t){const{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}}function validate(e){if(e!=null&&typeof e!=="object"){throw new Error("Unknown template options.")}const t=e||{},{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=t,o=_objectWithoutPropertiesLoose(t,r);if(n!=null&&!(n instanceof Set)){throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined")}if(s!=null&&!(s instanceof RegExp)&&s!==false){throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined")}if(i!=null&&typeof i!=="boolean"){throw new Error("'.preserveComments' must be a boolean, null, or undefined")}if(a!=null&&typeof a!=="boolean"){throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined")}if(a===true&&(n!=null||s!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}return{parser:o,placeholderWhitelist:n||undefined,placeholderPattern:s==null?undefined:s,preserveComments:i==null?undefined:i,syntacticPlaceholders:a==null?undefined:a}}function normalizeReplacements(e){if(Array.isArray(e)){return e.reduce(((e,t,r)=>{e["$"+r]=t;return e}),{})}else if(typeof e==="object"||e==null){return e||undefined}throw new Error("Template replacements must be an array, object, null, or undefined")}},2082:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=parseAndBuildMetadata;var n=r(3061);var s=r(9849);var i=r(3554);const{isCallExpression:a,isExpressionStatement:o,isFunction:l,isIdentifier:c,isJSXIdentifier:p,isNewExpression:u,isPlaceholder:d,isStatement:f,isStringLiteral:h,removePropertiesDeep:m,traverse:y}=n;const g=/^[_$A-Z0-9]+$/;function parseAndBuildMetadata(e,t,r){const{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=r;const o=parseWithCodeFrame(t,r.parser,a);m(o,{preserveComments:i});e.validate(o);const l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:s,syntacticPlaceholders:a};y(o,placeholderVisitorHandler,l);return Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function placeholderVisitorHandler(e,t,r){var n;let s;let i=r.syntactic.placeholders.length>0;if(d(e)){if(r.syntacticPlaceholders===false){throw new Error("%%foo%%-style placeholders can't be used when "+"'.syntacticPlaceholders' is false.")}s=e.name.name;i=true}else if(i||r.syntacticPlaceholders){return}else if(c(e)||p(e)){s=e.name}else if(h(e)){s=e.value}else{return}if(i&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null)){throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible"+" with '.syntacticPlaceholders: true'")}if(!i&&(r.placeholderPattern===false||!(r.placeholderPattern||g).test(s))&&!((n=r.placeholderWhitelist)!=null&&n.has(s))){return}t=t.slice();const{node:m,key:y}=t[t.length-1];let b;if(h(e)||d(e,{expectedNode:"StringLiteral"})){b="string"}else if(u(m)&&y==="arguments"||a(m)&&y==="arguments"||l(m)&&y==="params"){b="param"}else if(o(m)&&!d(e)){b="statement";t=t.slice(0,-1)}else if(f(e)&&d(e)){b="statement"}else{b="other"}const{placeholders:T,placeholderNames:S}=!i?r.legacy:r.syntactic;T.push({name:s,type:b,resolve:e=>resolveAncestors(e,t),isDuplicate:S.has(s)});S.add(s)}function resolveAncestors(e,t){let r=e;for(let e=0;e<t.length-1;e++){const{key:n,index:s}=t[e];if(s===undefined){r=r[n]}else{r=r[n][s]}}const{key:n,index:s}=t[t.length-1];return{parent:r,key:n,index:s}}function parseWithCodeFrame(e,t,r){const n=(t.plugins||[]).slice();if(r!==false){n.push("placeholders")}t=Object.assign({allowAwaitOutsideFunction:true,allowReturnOutsideFunction:true,allowNewTargetOutsideFunction:true,allowSuperOutsideMethod:true,allowYieldOutsideFunction:true,sourceType:"module"},t,{plugins:n});try{return(0,s.parse)(e,t)}catch(t){const r=t.loc;if(r){t.message+="\n"+(0,i.codeFrameColumns)(e,{start:r});t.code="BABEL_TEMPLATE_PARSE_ERROR"}throw t}}},9534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=populatePlaceholders;var n=r(3061);const{blockStatement:s,cloneNode:i,emptyStatement:a,expressionStatement:o,identifier:l,isStatement:c,isStringLiteral:p,stringLiteral:u,validate:d}=n;function populatePlaceholders(e,t){const r=i(e.ast);if(t){e.placeholders.forEach((e=>{if(!hasOwnProperty.call(t,e.name)){const t=e.name;throw new Error(`Error: No substitution given for "${t}". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['${t}'])}\n - { placeholderPattern: /^${t}$/ }`)}}));Object.keys(t).forEach((t=>{if(!e.placeholderNames.has(t)){throw new Error(`Unknown substitution "${t}" given`)}}))}e.placeholders.slice().reverse().forEach((e=>{try{applyReplacement(e,r,t&&t[e.name]||null)}catch(t){t.message=`@babel/template placeholder "${e.name}": ${t.message}`;throw t}}));return r}function applyReplacement(e,t,r){if(e.isDuplicate){if(Array.isArray(r)){r=r.map((e=>i(e)))}else if(typeof r==="object"){r=i(r)}}const{parent:n,key:f,index:h}=e.resolve(t);if(e.type==="string"){if(typeof r==="string"){r=u(r)}if(!r||!p(r)){throw new Error("Expected string substitution")}}else if(e.type==="statement"){if(h===undefined){if(!r){r=a()}else if(Array.isArray(r)){r=s(r)}else if(typeof r==="string"){r=o(l(r))}else if(!c(r)){r=o(r)}}else{if(r&&!Array.isArray(r)){if(typeof r==="string"){r=l(r)}if(!c(r)){r=o(r)}}}}else if(e.type==="param"){if(typeof r==="string"){r=l(r)}if(h===undefined)throw new Error("Assertion failure.")}else{if(typeof r==="string"){r=l(r)}if(Array.isArray(r)){throw new Error("Cannot replace single expression with an array.")}}function set(e,t,r){const n=e[t];e[t]=r;if(n.type==="Identifier"||n.type==="Placeholder"){if(n.typeAnnotation){r.typeAnnotation=n.typeAnnotation}if(n.optional){r.optional=n.optional}if(n.decorators){r.decorators=n.decorators}}}if(h===undefined){d(n,f,r);set(n,f,r)}else{const t=n[f].slice();if(e.type==="statement"||e.type==="param"){if(r==null){t.splice(h,1)}else if(Array.isArray(r)){t.splice(h,1,...r)}else{set(t,h,r)}}else{set(t,h,r)}d(n,f,t);n[f]=t}}},1510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=stringTemplate;var n=r(6657);var s=r(2082);var i=r(9534);function stringTemplate(e,t,r){t=e.code(t);let a;return o=>{const l=(0,n.normalizeReplacements)(o);if(!a)a=(0,s.default)(e,t,r);return e.unwrap((0,i.default)(a,l))}}},8099:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clear=clear;t.clearPath=clearPath;t.clearScope=clearScope;t.getCachedPaths=getCachedPaths;t.getOrCreateCachedPaths=getOrCreateCachedPaths;t.scope=t.path=void 0;let r=t.path=new WeakMap;let n=t.scope=new WeakMap;function clear(){clearPath();clearScope()}function clearPath(){t.path=r=new WeakMap}function clearScope(){t.scope=n=new WeakMap}const s=Object.freeze({});function getCachedPaths(e,t){var n;{e=null}return(n=r.get(e!=null?e:s))==null?void 0:n.get(t)}function getOrCreateCachedPaths(e,t){{e=null}let n=r.get(e!=null?e:s);if(!n)r.set(e!=null?e:s,n=new WeakMap);let i=n.get(t);if(!i)n.set(t,i=new Map);return i}},5530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(9111);var s=r(3061);var i=r(4144);const{VISITOR_KEYS:a}=s;class TraversalContext{constructor(e,t,r,n){this.queue=null;this.priorityQueue=null;this.parentPath=n;this.scope=e;this.state=r;this.opts=t}shouldVisit(e){const t=this.opts;if(t.enter||t.exit)return true;if(t[e.type])return true;const r=a[e.type];if(!(r!=null&&r.length))return false;for(const t of r){if(e[t]){return true}}return false}create(e,t,r,s){return n.default.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:s})}maybeQueue(e,t){if(this.queue){if(t){this.queue.push(e)}else{this.priorityQueue.push(e)}}}visitMultiple(e,t,r){if(e.length===0)return false;const n=[];for(let s=0;s<e.length;s++){const i=e[s];if(i&&this.shouldVisit(i)){n.push(this.create(t,e,s,r))}}return this.visitQueue(n)}visitSingle(e,t){if(this.shouldVisit(e[t])){return this.visitQueue([this.create(e,e,t)])}else{return false}}visitQueue(e){this.queue=e;this.priorityQueue=[];const t=new WeakSet;let r=false;let n=0;for(;n<e.length;){const s=e[n];n++;i.resync.call(s);if(s.contexts.length===0||s.contexts[s.contexts.length-1]!==this){i.pushContext.call(s,this)}if(s.key===null)continue;const{node:a}=s;if(t.has(a))continue;if(a)t.add(a);if(s.visit()){r=true;break}if(this.priorityQueue.length){r=this.visitQueue(this.priorityQueue);this.priorityQueue=[];this.queue=e;if(r)break}}for(let t=0;t<n;t++){i.popContext.call(e[t])}this.queue=null;return r}visit(e,t){const r=e[t];if(!r)return false;if(Array.isArray(r)){return this.visitMultiple(r,e,t)}else{return this.visitSingle(e,t)}}}t["default"]=TraversalContext},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Hub{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}t["default"]=Hub},8026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"Hub",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"NodePath",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return l.default}});t.visitors=t["default"]=void 0;r(4144);var n=r(5621);t.visitors=n;var s=r(3061);var i=r(8099);var a=r(6265);var o=r(9111);var l=r(9877);var c=r(6903);const{VISITOR_KEYS:p,removeProperties:u,traverseFast:d}=s;function traverse(e,t={},r,s,i,o){if(!e)return;if(!t.noScope&&!r){if(e.type!=="Program"&&e.type!=="File"){throw new Error("You must pass a scope and parentPath unless traversing a Program/File. "+`Instead of that you tried to traverse a ${e.type} node without `+"passing scope and parentPath.")}}if(!i&&o){throw new Error("visitSelf can only be used when providing a NodePath.")}if(!p[e.type]){return}n.explode(t);(0,a.traverseNode)(e,t,r,s,i,null,o)}var f=t["default"]=traverse;traverse.visitors=n;traverse.verify=n.verify;traverse.explode=n.explode;traverse.cheap=function(e,t){d(e,t);return};traverse.node=function(e,t,r,n,s,i){(0,a.traverseNode)(e,t,r,n,s,i)};traverse.clearNode=function(e,t){u(e,t)};traverse.removeProperties=function(e,t){d(e,traverse.clearNode,t);return e};traverse.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return false;if(e.type===t)return true;return d(e,(function(e){if(r!=null&&r.includes(e.type)){return d.skip}if(e.type===t){return d.stop}}))};traverse.cache=i},8073:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.find=find;t.findParent=findParent;t.getAncestry=getAncestry;t.getDeepestCommonAncestorFrom=getDeepestCommonAncestorFrom;t.getEarliestCommonAncestorFrom=getEarliestCommonAncestorFrom;t.getFunctionParent=getFunctionParent;t.getStatementParent=getStatementParent;t.inType=inType;t.isAncestor=isAncestor;t.isDescendant=isDescendant;var n=r(3061);const{VISITOR_KEYS:s}=n;function findParent(e){let t=this;while(t=t.parentPath){if(e(t))return t}return null}function find(e){let t=this;do{if(e(t))return t}while(t=t.parentPath);return null}function getFunctionParent(){return this.findParent((e=>e.isFunction()))}function getStatementParent(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()){break}else{e=e.parentPath}}while(e);if(e&&(e.isProgram()||e.isFile())){throw new Error("File/Program node, we can't possibly find a statement parent to this")}return e}function getEarliestCommonAncestorFrom(e){return this.getDeepestCommonAncestorFrom(e,(function(e,t,r){let n;const i=s[e.type];for(const e of r){const r=e[t+1];if(!n){n=r;continue}if(r.listKey&&n.listKey===r.listKey){if(r.key<n.key){n=r;continue}}const s=i.indexOf(n.parentKey);const a=i.indexOf(r.parentKey);if(s>a){n=r}}return n}))}function getDeepestCommonAncestorFrom(e,t){if(!e.length){return this}if(e.length===1){return e[0]}let r=Infinity;let n,s;const i=e.map((e=>{const t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);if(t.length<r){r=t.length}return t}));const a=i[0];e:for(let e=0;e<r;e++){const t=a[e];for(const r of i){if(r[e]!==t){break e}}n=e;s=t}if(s){if(t){return t(s,n,i)}else{return s}}else{throw new Error("Couldn't find intersection")}}function getAncestry(){let e=this;const t=[];do{t.push(e)}while(e=e.parentPath);return t}function isAncestor(e){return e.isDescendant(this)}function isDescendant(e){return!!this.findParent((t=>t===e))}function inType(...e){let t=this;while(t){if(e.includes(t.node.type))return true;t=t.parentPath}return false}},3162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.addComment=addComment;t.addComments=addComments;t.shareCommentsWithSiblings=shareCommentsWithSiblings;var n=r(3061);const{addComment:s,addComments:i}=n;function shareCommentsWithSiblings(){if(typeof this.key==="string")return;const e=this.node;if(!e)return;const t=e.trailingComments;const r=e.leadingComments;if(!t&&!r)return;const n=this.getSibling(this.key-1);const s=this.getSibling(this.key+1);const i=Boolean(n.node);const a=Boolean(s.node);if(i){if(r){n.addComments("trailing",removeIfExisting(r,n.node.trailingComments))}if(t&&!a)n.addComments("trailing",t)}if(a){if(t){s.addComments("leading",removeIfExisting(t,s.node.leadingComments))}if(r&&!i)s.addComments("leading",r)}}function removeIfExisting(e,t){if(!(t!=null&&t.length))return e;const r=new Set(t);return e.filter((e=>!r.has(e)))}function addComment(e,t,r){s(this.node,e,t,r)}function addComments(e,t){i(this.node,e,t)}},4144:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._call=_call;t._getQueueContexts=_getQueueContexts;t._resyncKey=_resyncKey;t._resyncList=_resyncList;t._resyncParent=_resyncParent;t._resyncRemoved=_resyncRemoved;t.call=call;t.isDenylisted=isDenylisted;t.popContext=popContext;t.pushContext=pushContext;t.requeue=requeue;t.requeueComputedKeyAndDecorators=requeueComputedKeyAndDecorators;t.resync=resync;t.setContext=setContext;t.setKey=setKey;t.setScope=setScope;t.setup=setup;t.skip=skip;t.skipKey=skipKey;t.stop=stop;t.visit=visit;var n=r(6265);var s=r(9111);var i=r(6035);var a=r(3061);function call(e){const t=this.opts;this.debug(e);if(this.node){if(_call.call(this,t[e]))return true}if(this.node){var r;return _call.call(this,(r=t[this.node.type])==null?void 0:r[e])}return false}function _call(e){if(!e)return false;for(const t of e){if(!t)continue;const e=this.node;if(!e)return true;const r=t.call(this.state,this,this.state);if(r&&typeof r==="object"&&typeof r.then==="function"){throw new Error(`You appear to be using a plugin with an async traversal visitor, `+`which your current version of Babel does not support. `+`If you're using a published plugin, you may need to upgrade `+`your @babel/core version.`)}if(r){throw new Error(`Unexpected return value from visitor method ${t}`)}if(this.node!==e)return true;if(this._traverseFlags>0)return true}return false}function isDenylisted(){var e;const t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t==null?void 0:t.includes(this.node.type)}{t.isBlacklisted=isDenylisted}function restoreContext(e,t){if(e.context!==t){e.context=t;e.state=t.state;e.opts=t.opts}}function visit(){var e,t;if(!this.node){return false}if(this.isDenylisted()){return false}if((e=(t=this.opts).shouldSkip)!=null&&e.call(t,this)){return false}const r=this.context;if(this.shouldSkip||call.call(this,"enter")){this.debug("Skip...");return this.shouldStop}restoreContext(this,r);this.debug("Recursing into...");this.shouldStop=(0,n.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys);restoreContext(this,r);call.call(this,"exit");return this.shouldStop}function skip(){this.shouldSkip=true}function skipKey(e){if(this.skipKeys==null){this.skipKeys={}}this.skipKeys[e]=true}function stop(){this._traverseFlags|=s.SHOULD_SKIP|s.SHOULD_STOP}function setScope(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement()){r=r.parentPath}let n;while(r&&!n){var s;if((s=r.opts)!=null&&s.noScope)return;n=r.scope;r=r.parentPath}this.scope=this.getScope(n);(t=this.scope)==null||t.init()}function setContext(e){if(this.skipKeys!=null){this.skipKeys={}}this._traverseFlags=0;if(e){this.context=e;this.state=e.state;this.opts=e.opts}setScope.call(this);return this}function resync(){if(this.removed)return;_resyncParent.call(this);_resyncList.call(this);_resyncKey.call(this)}function _resyncParent(){if(this.parentPath){this.parent=this.parentPath.node}}function _resyncKey(){if(!this.container)return;if(this.node===this.container[this.key]){return}if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++){if(this.container[e]===this.node){setKey.call(this,e);return}}}else{for(const e of Object.keys(this.container)){if(this.container[e]===this.node){setKey.call(this,e);return}}}this.key=null}function _resyncList(){if(!this.parent||!this.inList)return;const e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null}function _resyncRemoved(){if(this.key==null||!this.container||this.container[this.key]!==this.node){i._markRemoved.call(this)}}function popContext(){this.contexts.pop();if(this.contexts.length>0){this.setContext(this.contexts[this.contexts.length-1])}else{this.setContext(undefined)}}function pushContext(e){this.contexts.push(e);this.setContext(e)}function setup(e,t,r,n){this.listKey=r;this.container=t;this.parentPath=e||this.parentPath;setKey.call(this,n)}function setKey(e){var t;this.key=e;this.node=this.container[this.key];this.type=(t=this.node)==null?void 0:t.type}function requeue(e=this){if(e.removed)return;const t=this.contexts;for(const r of t){r.maybeQueue(e)}}function requeueComputedKeyAndDecorators(){const{context:e,node:t}=this;if(!a.isPrivate(t)&&t.computed){e.maybeQueue(this.get("key"))}if(t.decorators){for(const t of this.get("decorators")){e.maybeQueue(t)}}}function _getQueueContexts(){let e=this;let t=this.contexts;while(!t.length){e=e.parentPath;if(!e)break;t=e.contexts}return t}},2919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.arrowFunctionToExpression=arrowFunctionToExpression;t.ensureBlock=ensureBlock;t.ensureFunctionName=ensureFunctionName;t.splitExportDeclaration=splitExportDeclaration;t.toComputedKey=toComputedKey;t.unwrapFunctionEnvironment=unwrapFunctionEnvironment;var n=r(3061);var s=r(5326);var i=r(5621);var a=r(4144);const{arrowFunctionExpression:o,assignmentExpression:l,binaryExpression:c,blockStatement:p,callExpression:u,conditionalExpression:d,expressionStatement:f,identifier:h,isIdentifier:m,jsxIdentifier:y,logicalExpression:g,LOGICAL_OPERATORS:b,memberExpression:T,metaProperty:S,numericLiteral:x,objectExpression:E,restElement:P,returnStatement:v,sequenceExpression:A,spreadElement:w,stringLiteral:I,super:C,thisExpression:O,toExpression:N,unaryExpression:k,toBindingIdentifierName:_,isFunction:D,isAssignmentPattern:M,isRestElement:L,getFunctionName:j,cloneNode:F,variableDeclaration:B,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:K,inherits:V}=n;function toComputedKey(){let e;if(this.isMemberExpression()){e=this.node.property}else if(this.isProperty()||this.isMethod()){e=this.node.key}else{throw new ReferenceError("todo")}if(!this.node.computed){if(m(e))e=I(e.name)}return e}function ensureBlock(){const e=this.get("body");const t=e.node;if(Array.isArray(e)){throw new Error("Can't convert array path to a block statement")}if(!t){throw new Error("Can't convert node without a body")}if(e.isBlockStatement()){return t}const r=[];let n="body";let s;let i;if(e.isStatement()){i="body";s=0;r.push(e.node)}else{n+=".body.0";if(this.isFunction()){s="argument";r.push(v(e.node))}else{s="expression";r.push(f(e.node))}}this.node.body=p(r);const o=this.get(n);a.setup.call(e,o,i?o.node[i]:o.node,i,s);return this.node}{t.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()}}function unwrapFunctionEnvironment(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration()){throw this.buildCodeFrameError("Can only unwrap the environment of a function.")}hoistFunctionEnvironment(this)}function setType(e,t){e.node.type=t}function arrowFunctionToExpression({allowInsertArrow:e=true,allowInsertArrowWithRest:t=e,noNewArrows:r=!(e=>(e=arguments[0])==null?void 0:e.specCompliant)()}={}){if(!this.isArrowFunctionExpression()){throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.")}let n=this;if(!r){var s;n=(s=n.ensureFunctionName(false))!=null?s:n}const{thisBinding:i,fnPath:a}=hoistFunctionEnvironment(n,r,e,t);a.ensureBlock();setType(a,"FunctionExpression");if(!r){const e=i?null:a.scope.generateUidIdentifier("arrowCheckId");if(e){a.parentPath.scope.push({id:e,init:E([])})}a.get("body").unshiftContainer("body",f(u(this.hub.addHelper("newArrowCheck"),[O(),e?h(e.name):h(i)])));a.replaceWith(u(T(a.node,h("bind")),[e?h(e.name):O()]));return a.get("callee.object")}return a}const W=(0,i.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){if(!e.get("callee").isSuper())return;t.push(e)}});function hoistFunctionEnvironment(e,t=true,r=true,n=true){let s;let i=e.findParent((e=>{if(e.isArrowFunctionExpression()){s!=null?s:s=e;return false}return e.isFunction()||e.isProgram()||e.isClassProperty({static:false})||e.isClassPrivateProperty({static:false})}));const a=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty()){if(s){i=s}else if(r){e.replaceWith(u(o([],N(e.node)),[]));i=e.get("callee");e=i.get("body")}else{throw e.buildCodeFrameError("Unable to transform arrow inside class property")}}const{thisPaths:l,argumentsPaths:p,newTargetPaths:f,superProps:m,superCalls:g}=getScopeInformation(e);if(a&&g.length>0){if(!r){throw g[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', "+"it's not possible to compile `super()` in an arrow function without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}if(!n){throw g[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', "+"it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}const e=[];i.traverse(W,{allSuperCalls:e});const t=getSuperBinding(i);e.forEach((e=>{const r=h(t);r.loc=e.node.callee.loc;e.get("callee").replaceWith(r)}))}if(p.length>0){const e=getBinding(i,"arguments",(()=>{const args=()=>h("arguments");if(i.scope.path.isProgram()){return d(c("===",k("typeof",args()),I("undefined")),i.scope.buildUndefinedNode(),args())}else{return args()}}));p.forEach((t=>{const r=h(e);r.loc=t.node.loc;t.replaceWith(r)}))}if(f.length>0){const e=getBinding(i,"newtarget",(()=>S(h("new"),h("target"))));f.forEach((t=>{const r=h(e);r.loc=t.node.loc;t.replaceWith(r)}))}if(m.length>0){if(!r){throw m[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', "+"it's not possible to compile `super.prop` in an arrow function without compiling classes.\n"+"Please add '@babel/plugin-transform-classes' to your Babel configuration.")}const e=m.reduce(((e,t)=>e.concat(standardizeSuperProperty(t))),[]);e.forEach((e=>{const t=e.node.computed?"":e.get("property").node.name;const r=e.parentPath;const n=r.isAssignmentExpression({left:e.node});const s=r.isCallExpression({callee:e.node});const a=r.isTaggedTemplateExpression({tag:e.node});const o=getSuperPropBinding(i,n,t);const c=[];if(e.node.computed){c.push(e.get("property").node)}if(n){const e=r.node.right;c.push(e)}const p=u(h(o),c);if(s){r.unshiftContainer("arguments",O());e.replaceWith(T(p,h("call")));l.push(r.get("arguments.0"))}else if(n){r.replaceWith(p)}else if(a){e.replaceWith(u(T(p,h("bind"),false),[O()]));l.push(e.get("arguments.0"))}else{e.replaceWith(p)}}))}let b;if(l.length>0||!t){b=getThisBinding(i,a);if(t||a&&hasSuperClass(i)){l.forEach((e=>{const t=e.isJSX()?y(b):h(b);t.loc=e.node.loc;e.replaceWith(t)}));if(!t)b=null}}return{thisBinding:b,fnPath:e}}function isLogicalOp(e){return b.includes(e)}function standardizeSuperProperty(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){const t=e.parentPath;const r=t.node.operator.slice(0,-1);const n=t.node.right;const s=isLogicalOp(r);if(e.node.computed){const i=e.scope.generateDeclaredUidIdentifier("tmp");const a=e.node.object;const o=e.node.property;t.get("left").replaceWith(T(a,l("=",i,o),true));t.get("right").replaceWith(rightExpression(s?"=":r,T(a,h(i.name),true),n))}else{const i=e.node.object;const a=e.node.property;t.get("left").replaceWith(T(i,a));t.get("right").replaceWith(rightExpression(s?"=":r,T(i,h(a.name)),n))}if(s){t.replaceWith(g(r,t.node.left,t.node.right))}else{t.node.operator="="}return[t.get("left"),t.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){const t=e.parentPath;const r=e.scope.generateDeclaredUidIdentifier("tmp");const n=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null;const s=[l("=",r,T(e.node.object,n?l("=",n,e.node.property):e.node.property,e.node.computed)),l("=",T(e.node.object,n?h(n.name):e.node.property,e.node.computed),c(e.parentPath.node.operator[0],h(r.name),x(1)))];if(!e.parentPath.node.prefix){s.push(h(r.name))}t.replaceWith(A(s));const i=t.get("expressions.0.right");const a=t.get("expressions.1.left");return[i,a]}return[e];function rightExpression(e,t,r){if(e==="="){return l("=",t,r)}else{return c(e,t,r)}}}function hasSuperClass(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}const $=(0,i.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){if(!e.get("callee").isSuper())return;if(t.has(e.node))return;t.add(e.node);e.replaceWithMultiple([e.node,l("=",h(r),h("this"))])}});function getThisBinding(e,t){return getBinding(e,"this",(r=>{if(!t||!hasSuperClass(e))return O();e.traverse($,{supers:new WeakSet,thisBinding:r})}))}function getSuperBinding(e){return getBinding(e,"supercall",(()=>{const t=e.scope.generateUidIdentifier("args");return o([P(t)],u(C(),[w(h(t.name))]))}))}function getSuperPropBinding(e,t,r){const n=t?"set":"get";return getBinding(e,`superprop_${n}:${r||""}`,(()=>{const n=[];let s;if(r){s=T(C(),h(r))}else{const t=e.scope.generateUidIdentifier("prop");n.unshift(t);s=T(C(),h(t.name),true)}if(t){const t=e.scope.generateUidIdentifier("value");n.push(t);s=l("=",s,h(t.name))}return o(n,s)}))}function getBinding(e,t,r){const n="binding:"+t;let s=e.getData(n);if(!s){const i=e.scope.generateUidIdentifier(t);s=i.name;e.setData(n,s);e.scope.push({id:i,init:r(s)})}return s}const q=(0,i.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){if(e.node.name!=="this")return;if(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})){return}t.push(e)},CallExpression(e,{superCalls:t}){if(e.get("callee").isSuper())t.push(e)},MemberExpression(e,{superProps:t}){if(e.get("object").isSuper())t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression()){break}}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){if(!e.get("meta").isIdentifier({name:"new"}))return;if(!e.get("property").isIdentifier({name:"target"}))return;t.push(e)}});function getScopeInformation(e){const t=[];const r=[];const n=[];const s=[];const i=[];e.traverse(q,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i});return{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}}function splitExportDeclaration(){if(!this.isExportDeclaration()||this.isExportAllDeclaration()){throw new Error("Only default and named export declarations can be split.")}if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration();const r=e.isFunctionExpression()||e.isClassExpression();const n=e.isScope()?e.scope.parent:e.scope;let s=e.node.id;let i=false;if(!s){i=true;s=n.generateUidIdentifier("default");if(t||r){e.node.id=F(s)}}else if(r&&n.hasBinding(s.name)){i=true;s=n.generateUidIdentifier(s.name)}const a=t?e.node:B("var",[R(F(s),e.node)]);const o=U(null,[K(F(s),h("default"))]);this.insertAfter(o);this.replaceWith(a);if(i){n.registerDeclaration(this)}return this}else if(this.get("specifiers").length>0){throw new Error("It doesn't make sense to split exported specifiers.")}const t=e.getOuterBindingIdentifiers();const r=Object.keys(t).map((e=>K(h(e),h(e))));const n=U(null,r);this.insertAfter(n);this.replaceWith(e.node);return this}const H={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;t.needsRename=true;e.stop()},Scope(e,t){if(e.scope.hasOwnBinding(t.name)){e.skip()}}};function ensureFunctionName(e){if(this.node.id)return this;const t=j(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)){return null}if(r.startsWith("get ")||r.startsWith("set ")){return null}r=_(r.replace(/[/ ]/g,"_"));const n=h(r);V(n,t.originalNode);const i={needsRename:false,name:r};const{scope:a}=this;const o=a.getOwnBinding(r);if(o){if(o.kind==="param"){i.needsRename=true}else{}}else if(a.parent.hasBinding(r)||a.hasGlobal(r)){this.traverse(H,i)}if(!i.needsRename){this.node.id=n;a.getProgramParent().references[n.name]=true;return this}if(a.hasBinding(n.name)&&!a.hasGlobal(n.name)){a.rename(n.name);this.node.id=n;a.getProgramParent().references[n.name]=true;return this}if(!D(this.node))return null;const l=a.generateUidIdentifier(n.name);const c=[];for(let e=0,t=getFunctionArity(this.node);e<t;e++){c.push(a.generateUidIdentifier("x"))}const p=s.default.expression.ast`
|
||
(function (${l}) {
|
||
function ${n}(${c}) {
|
||
return ${F(l)}.apply(this, arguments);
|
||
}
|
||
|
||
${F(n)}.toString = function () {
|
||
return ${F(l)}.toString();
|
||
}
|
||
|
||
return ${F(n)};
|
||
})(${N(this.node)})
|
||
`;return this.replaceWith(p)[0].get("arguments.0")}function getFunctionArity(e){const t=e.params.findIndex((e=>M(e)||L(e)));return t===-1?e.params.length:t}},9119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.evaluate=evaluate;t.evaluateTruthy=evaluateTruthy;const r=["Number","String","Math"];const n=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null];const s=["random"];function isValidObjectCallee(e){return r.includes(e)}function isValidIdentifierCallee(e){return n.includes(e)}function isInvalidMethod(e){return s.includes(e)}function evaluateTruthy(){const e=this.evaluate();if(e.confident)return!!e.value}function deopt(e,t){if(!t.confident)return;t.deoptPath=e;t.confident=false}const i=new Map([["undefined",undefined],["Infinity",Infinity],["NaN",NaN]]);function evaluateCached(e,t){const{node:r}=e;const{seen:n}=t;if(n.has(r)){const s=n.get(r);if(s.resolved){return s.value}else{deopt(e,t);return}}else{const s={resolved:false};n.set(r,s);const i=_evaluate(e,t);if(t.confident){s.resolved=true;s.value=i}return i}}function _evaluate(e,t){if(!t.confident)return;if(e.isSequenceExpression()){const r=e.get("expressions");return evaluateCached(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral()){return e.node.value}if(e.isNullLiteral()){return null}if(e.isTemplateLiteral()){return evaluateQuasis(e,e.node.quasis,t)}if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){const r=e.get("tag.object");const{node:{name:n}}=r;const s=e.get("tag.property");if(r.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&s.isIdentifier()&&s.node.name==="raw"){return evaluateQuasis(e,e.node.quasi.quasis,t,true)}}if(e.isConditionalExpression()){const r=evaluateCached(e.get("test"),t);if(!t.confident)return;if(r){return evaluateCached(e.get("consequent"),t)}else{return evaluateCached(e.get("alternate"),t)}}if(e.isExpressionWrapper()){return evaluateCached(e.get("expression"),t)}if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){const r=e.get("property");const n=e.get("object");if(n.isLiteral()){const s=n.node.value;const i=typeof s;let a=null;if(e.node.computed){a=evaluateCached(r,t);if(!t.confident)return}else if(r.isIdentifier()){a=r.node.name}if((i==="number"||i==="string")&&a!=null&&(typeof a==="number"||typeof a==="string")){return s[a]}}}if(e.isReferencedIdentifier()){const n=e.scope.getBinding(e.node.name);if(n){if(n.constantViolations.length>0||e.node.start<n.path.node.end){deopt(n.path,t);return}const s=n.path.scope;if(n.kind==="var"&&s!==n.scope){let i=!s.path.parentPath.isBlockStatement();for(let a=s.parent;a;a=a.parent){var r;if(a===e.scope){if(i){deopt(n.path,t);return}break}if((r=a.path.parentPath)!=null&&r.isBlockStatement()){i=true}}}if(n.hasValue){return n.value}}const s=e.node.name;if(i.has(s)){if(!n){return i.get(s)}deopt(n.path,t);return}const a=e.resolve();if(a===e){deopt(e,t);return}else{return evaluateCached(a,t)}}if(e.isUnaryExpression({prefix:true})){if(e.node.operator==="void"){return undefined}const r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass())){return"function"}const n=evaluateCached(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){const r=[];const n=e.get("elements");for(const e of n){const n=e.evaluate();if(n.confident){r.push(n.value)}else{deopt(n.deopt,t);return}}return r}if(e.isObjectExpression()){const r={};const n=e.get("properties");for(const e of n){if(e.isObjectMethod()||e.isSpreadElement()){deopt(e,t);return}const n=e.get("key");let s;if(e.node.computed){s=n.evaluate();if(!s.confident){deopt(s.deopt,t);return}s=s.value}else if(n.isIdentifier()){s=n.node.name}else{s=n.node.value}const i=e.get("value");let a=i.evaluate();if(!a.confident){deopt(a.deopt,t);return}a=a.value;r[s]=a}return r}if(e.isLogicalExpression()){const r=t.confident;const n=evaluateCached(e.get("left"),t);const s=t.confident;t.confident=r;const i=evaluateCached(e.get("right"),t);const a=t.confident;switch(e.node.operator){case"||":t.confident=s&&(!!n||a);if(!t.confident)return;return n||i;case"&&":t.confident=s&&(!n||a);if(!t.confident)return;return n&&i;case"??":t.confident=s&&(n!=null||a);if(!t.confident)return;return n!=null?n:i}}if(e.isBinaryExpression()){const r=evaluateCached(e.get("left"),t);if(!t.confident)return;const n=evaluateCached(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-n;case"+":return r+n;case"/":return r/n;case"*":return r*n;case"%":return r%n;case"**":return Math.pow(r,n);case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<<n;case">>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){const r=e.get("callee");let n;let s;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(isValidObjectCallee(r.node.name)||isValidIdentifierCallee(r.node.name))){s=global[r.node.name]}if(r.isMemberExpression()){const e=r.get("object");const t=r.get("property");if(e.isIdentifier()&&t.isIdentifier()&&isValidObjectCallee(e.node.name)&&!isInvalidMethod(t.node.name)){n=global[e.node.name];const r=t.node.name;if(hasOwnProperty.call(n,r)){s=n[r]}}if(e.isLiteral()&&t.isIdentifier()){const r=typeof e.node.value;if(r==="string"||r==="number"){n=e.node.value;s=n[t.node.name]}}}if(s){const r=e.get("arguments").map((e=>evaluateCached(e,t)));if(!t.confident)return;return s.apply(n,r)}}deopt(e,t)}function evaluateQuasis(e,t,r,n=false){let s="";let i=0;const a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(const e of t){if(!r.confident)break;s+=n?e.value.raw:e.value.cooked;const t=a[i++];if(t)s+=String(evaluateCached(t,r))}if(!r.confident)return;return s}function evaluate(){const e={confident:true,deoptPath:null,seen:new Map};let t=evaluateCached(this,e);if(!e.confident)t=undefined;return{confident:e.confident,deopt:e.deoptPath,value:t}}},4126:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._getKey=_getKey;t._getPattern=_getPattern;t.get=get;t.getAllNextSiblings=getAllNextSiblings;t.getAllPrevSiblings=getAllPrevSiblings;t.getAssignmentIdentifiers=getAssignmentIdentifiers;t.getBindingIdentifierPaths=getBindingIdentifierPaths;t.getBindingIdentifiers=getBindingIdentifiers;t.getCompletionRecords=getCompletionRecords;t.getNextSibling=getNextSibling;t.getOpposite=getOpposite;t.getOuterBindingIdentifierPaths=getOuterBindingIdentifierPaths;t.getOuterBindingIdentifiers=getOuterBindingIdentifiers;t.getPrevSibling=getPrevSibling;t.getSibling=getSibling;var n=r(9111);var s=r(3061);const{getAssignmentIdentifiers:i,getBindingIdentifiers:a,getOuterBindingIdentifiers:o,numericLiteral:l,unaryExpression:c}=s;const p=0;const u=1;function NormalCompletion(e){return{type:p,path:e}}function BreakCompletion(e){return{type:u,path:e}}function getOpposite(){if(this.key==="left"){return this.getSibling("right")}else if(this.key==="right"){return this.getSibling("left")}return null}function addCompletionRecords(e,t,r){if(e){t.push(..._getCompletionRecords(e,r))}return t}function completionRecordForSwitch(e,t,r){let n=[];for(let s=0;s<e.length;s++){const i=e[s];const a=_getCompletionRecords(i,r);const o=[];const l=[];for(const e of a){if(e.type===p){o.push(e)}if(e.type===u){l.push(e)}}if(o.length){n=o}t.push(...l)}t.push(...n);return t}function normalCompletionToBreak(e){e.forEach((e=>{e.type=u}))}function replaceBreakStatementInBreakCompletion(e,t){e.forEach((e=>{if(e.path.isBreakStatement({label:null})){if(t){e.path.replaceWith(c("void",l(0)))}else{e.path.remove()}}}))}function getStatementListCompletion(e,t){const r=[];if(t.canHaveBreak){let n=[];for(let s=0;s<e.length;s++){const i=e[s];const a=Object.assign({},t,{inCaseClause:false});if(i.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)){a.shouldPopulateBreak=true}else{a.shouldPopulateBreak=false}const o=_getCompletionRecords(i,a);if(o.length>0&&o.every((e=>e.type===u))){if(n.length>0&&o.every((e=>e.path.isBreakStatement({label:null})))){normalCompletionToBreak(n);r.push(...n);if(n.some((e=>e.path.isDeclaration()))){r.push(...o);replaceBreakStatementInBreakCompletion(o,true)}replaceBreakStatementInBreakCompletion(o,false)}else{r.push(...o);if(!t.shouldPopulateBreak){replaceBreakStatementInBreakCompletion(o,true)}}break}if(s===e.length-1){r.push(...o)}else{n=[];for(let e=0;e<o.length;e++){const t=o[e];if(t.type===u){r.push(t)}if(t.type===p){n.push(t)}}}}}else if(e.length){for(let n=e.length-1;n>=0;n--){const s=_getCompletionRecords(e[n],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()){r.push(...s);break}}}return r}function _getCompletionRecords(e,t){let r=[];if(e.isIfStatement()){r=addCompletionRecords(e.get("consequent"),r,t);r=addCompletionRecords(e.get("alternate"),r,t)}else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement()){return addCompletionRecords(e.get("body"),r,t)}else if(e.isProgram()||e.isBlockStatement()){return getStatementListCompletion(e.get("body"),t)}else if(e.isFunction()){return _getCompletionRecords(e.get("body"),t)}else if(e.isTryStatement()){r=addCompletionRecords(e.get("block"),r,t);r=addCompletionRecords(e.get("handler"),r,t)}else if(e.isCatchClause()){return addCompletionRecords(e.get("body"),r,t)}else if(e.isSwitchStatement()){return completionRecordForSwitch(e.get("cases"),r,t)}else if(e.isSwitchCase()){return getStatementListCompletion(e.get("consequent"),{canHaveBreak:true,shouldPopulateBreak:false,inCaseClause:true})}else if(e.isBreakStatement()){r.push(BreakCompletion(e))}else{r.push(NormalCompletion(e))}return r}function getCompletionRecords(){const e=_getCompletionRecords(this,{canHaveBreak:false,shouldPopulateBreak:false,inCaseClause:false});return e.map((e=>e.path))}function getSibling(e){return n.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function getPrevSibling(){return this.getSibling(this.key-1)}function getNextSibling(){return this.getSibling(this.key+1)}function getAllNextSiblings(){let e=this.key;let t=this.getSibling(++e);const r=[];while(t.node){r.push(t);t=this.getSibling(++e)}return r}function getAllPrevSiblings(){let e=this.key;let t=this.getSibling(--e);const r=[];while(t.node){r.push(t);t=this.getSibling(--e)}return r}function get(e,t=true){if(t===true)t=this.context;const r=e.split(".");if(r.length===1){return _getKey.call(this,e,t)}else{return _getPattern.call(this,r,t)}}function _getKey(e,t){const r=this.node;const s=r[e];if(Array.isArray(s)){return s.map(((i,a)=>n.default.get({listKey:e,parentPath:this,parent:r,container:s,key:a}).setContext(t)))}else{return n.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}}function _getPattern(e,t){let r=this;for(const n of e){if(n==="."){r=r.parentPath}else{if(Array.isArray(r)){r=r[n]}else{r=r.get(n,t)}}}return r}function getAssignmentIdentifiers(){return i(this.node)}function getBindingIdentifiers(e){return a(this.node,e)}function getOuterBindingIdentifiers(e){return o(this.node,e)}function getBindingIdentifierPaths(e=false,t=false){const r=this;const n=[r];const s=Object.create(null);while(n.length){const r=n.shift();if(!r)continue;if(!r.node)continue;const i=a.keys[r.node.type];if(r.isIdentifier()){if(e){const e=s[r.node.name]=s[r.node.name]||[];e.push(r)}else{s[r.node.name]=r}continue}if(r.isExportDeclaration()){const e=r.get("declaration");if(e.isDeclaration()){n.push(e)}continue}if(t){if(r.isFunctionDeclaration()){n.push(r.get("id"));continue}if(r.isFunctionExpression()){continue}}if(i){for(let e=0;e<i.length;e++){const t=i[e];const s=r.get(t);if(Array.isArray(s)){n.push(...s)}else if(s.node){n.push(s)}}}}return s}function getOuterBindingIdentifierPaths(e=false){return this.getBindingIdentifierPaths(e,true)}},9111:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=t.SHOULD_STOP=t.SHOULD_SKIP=t.REMOVED=void 0;var n=r(2490);var s=r(6937);var i=r(8026);var a=r(9877);var o=r(3061);var l=o;var c=r(8099);var p=r(1605);var u=r(8073);var d=r(1086);var f=r(3419);var h=r(9119);var m=r(2919);var y=r(7171);var g=r(4144);var b=g;var T=r(6035);var S=r(7116);var x=r(4126);var E=r(3162);var P=r(3053);const{validate:v}=o;const A=s("babel");const w=t.REMOVED=1<<0;const I=t.SHOULD_STOP=1<<1;const C=t.SHOULD_SKIP=1<<2;const O=t["default"]=class NodePath{constructor(e,t){this.contexts=[];this.state=null;this.opts=null;this._traverseFlags=0;this.skipKeys=null;this.parentPath=null;this.container=null;this.listKey=null;this.key=null;this.node=null;this.type=null;this.parent=t;this.hub=e;this.data=null;this.context=null;this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(e){if(e)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(e){if(e)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(e){if(e)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:e,parentPath:t,parent:r,container:n,listKey:s,key:i}){if(!e&&t){e=t.hub}if(!r){throw new Error("To get a node path the parent needs to exist")}const a=n[i];const o=c.getOrCreateCachedPaths(e,r);let l=o.get(a);if(!l){l=new NodePath(e,r);if(a)o.set(a,l)}g.setup.call(l,t,n,s,i);return l}getScope(e){return this.isScope()?new a.default(this):e}setData(e,t){if(this.data==null){this.data=Object.create(null)}return this.data[e]=t}getData(e,t){if(this.data==null){this.data=Object.create(null)}let r=this.data[e];if(r===undefined&&t!==undefined)r=this.data[e]=t;return r}hasNode(){return this.node!=null}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,i.default)(this.node,e,this.scope,t,this)}set(e,t){v(this.node,e,t);this.node[e]=t}getPathLocation(){const e=[];let t=this;do{let r=t.key;if(t.inList)r=`${t.listKey}[${r}]`;e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){if(!A.enabled)return;A(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return(0,p.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){if(!e){this.listKey=null}}get parentKey(){return this.listKey||this.key}};const N={findParent:u.findParent,find:u.find,getFunctionParent:u.getFunctionParent,getStatementParent:u.getStatementParent,getEarliestCommonAncestorFrom:u.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:u.getDeepestCommonAncestorFrom,getAncestry:u.getAncestry,isAncestor:u.isAncestor,isDescendant:u.isDescendant,inType:u.inType,getTypeAnnotation:d.getTypeAnnotation,isBaseType:d.isBaseType,couldBeBaseType:d.couldBeBaseType,baseTypeStrictlyMatches:d.baseTypeStrictlyMatches,isGenericType:d.isGenericType,replaceWithMultiple:f.replaceWithMultiple,replaceWithSourceString:f.replaceWithSourceString,replaceWith:f.replaceWith,replaceExpressionWithStatements:f.replaceExpressionWithStatements,replaceInline:f.replaceInline,evaluateTruthy:h.evaluateTruthy,evaluate:h.evaluate,toComputedKey:m.toComputedKey,ensureBlock:m.ensureBlock,unwrapFunctionEnvironment:m.unwrapFunctionEnvironment,arrowFunctionToExpression:m.arrowFunctionToExpression,splitExportDeclaration:m.splitExportDeclaration,ensureFunctionName:m.ensureFunctionName,matchesPattern:y.matchesPattern,isStatic:y.isStatic,isNodeType:y.isNodeType,canHaveVariableDeclarationOrExpression:y.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:y.canSwapBetweenExpressionAndStatement,isCompletionRecord:y.isCompletionRecord,isStatementOrBlock:y.isStatementOrBlock,referencesImport:y.referencesImport,getSource:y.getSource,willIMaybeExecuteBefore:y.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:y._guessExecutionStatusRelativeTo,resolve:y.resolve,isConstantExpression:y.isConstantExpression,isInStrictMode:y.isInStrictMode,isDenylisted:b.isDenylisted,visit:b.visit,skip:b.skip,skipKey:b.skipKey,stop:b.stop,setContext:b.setContext,requeue:b.requeue,requeueComputedKeyAndDecorators:b.requeueComputedKeyAndDecorators,remove:T.remove,insertBefore:S.insertBefore,insertAfter:S.insertAfter,unshiftContainer:S.unshiftContainer,pushContainer:S.pushContainer,getOpposite:x.getOpposite,getCompletionRecords:x.getCompletionRecords,getSibling:x.getSibling,getPrevSibling:x.getPrevSibling,getNextSibling:x.getNextSibling,getAllNextSiblings:x.getAllNextSiblings,getAllPrevSiblings:x.getAllPrevSiblings,get:x.get,getAssignmentIdentifiers:x.getAssignmentIdentifiers,getBindingIdentifiers:x.getBindingIdentifiers,getOuterBindingIdentifiers:x.getOuterBindingIdentifiers,getBindingIdentifierPaths:x.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:x.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:E.shareCommentsWithSiblings,addComment:E.addComment,addComments:E.addComments};Object.assign(O.prototype,N);{O.prototype.arrowFunctionToShadowed=m[String("arrowFunctionToShadowed")];Object.assign(O.prototype,{has:y[String("has")],is:y[String("is")],isnt:y[String("isnt")],equals:y[String("equals")],hoist:S[String("hoist")],updateSiblingKeys:S.updateSiblingKeys,call:b.call,isBlacklisted:b[String("isBlacklisted")],setScope:b.setScope,resync:b.resync,popContext:b.popContext,pushContext:b.pushContext,setup:b.setup,setKey:b.setKey})}{O.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;O.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;Object.assign(O.prototype,{_getTypeAnnotation:d._getTypeAnnotation,_replaceWith:f._replaceWith,_resolve:y._resolve,_call:b._call,_resyncParent:b._resyncParent,_resyncKey:b._resyncKey,_resyncList:b._resyncList,_resyncRemoved:b._resyncRemoved,_getQueueContexts:b._getQueueContexts,_removeFromScope:T._removeFromScope,_callRemovalHooks:T._callRemovalHooks,_remove:T._remove,_markRemoved:T._markRemoved,_assertUnremoved:T._assertUnremoved,_containerInsert:S._containerInsert,_containerInsertBefore:S._containerInsertBefore,_containerInsertAfter:S._containerInsertAfter,_verifyNodeList:S._verifyNodeList,_getKey:x._getKey,_getPattern:x._getPattern})}for(const e of l.TYPES){const t=`is${e}`;const r=l[t];O.prototype[t]=function(e){return r(this.node,e)};O.prototype[`assert${e}`]=function(t){if(!r(this.node,t)){throw new TypeError(`Expected node path of type ${e}`)}}}Object.assign(O.prototype,P);for(const e of Object.keys(n)){if(e[0]==="_")continue;if(!l.TYPES.includes(e))l.TYPES.push(e)}},1086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._getTypeAnnotation=_getTypeAnnotation;t.baseTypeStrictlyMatches=baseTypeStrictlyMatches;t.couldBeBaseType=couldBeBaseType;t.getTypeAnnotation=getTypeAnnotation;t.isBaseType=isBaseType;t.isGenericType=isGenericType;var n=r(6157);var s=r(3061);const{anyTypeAnnotation:i,isAnyTypeAnnotation:a,isArrayTypeAnnotation:o,isBooleanTypeAnnotation:l,isEmptyTypeAnnotation:c,isFlowBaseAnnotation:p,isGenericTypeAnnotation:u,isIdentifier:d,isMixedTypeAnnotation:f,isNumberTypeAnnotation:h,isStringTypeAnnotation:m,isTSArrayType:y,isTSTypeAnnotation:g,isTSTypeReference:b,isTupleTypeAnnotation:T,isTypeAnnotation:S,isUnionTypeAnnotation:x,isVoidTypeAnnotation:E,stringTypeAnnotation:P,voidTypeAnnotation:v}=s;function getTypeAnnotation(){let e=this.getData("typeAnnotation");if(e!=null){return e}e=_getTypeAnnotation.call(this)||i();if(S(e)||g(e)){e=e.typeAnnotation}this.setData("typeAnnotation",e);return e}const A=new WeakSet;function _getTypeAnnotation(){const e=this.node;if(!e){if(this.key==="init"&&this.parentPath.isVariableDeclarator()){const e=this.parentPath.parentPath;const t=e.parentPath;if(e.key==="left"&&t.isForInStatement()){return P()}if(e.key==="left"&&t.isForOfStatement()){return i()}return v()}else{return}}if(e.typeAnnotation){return e.typeAnnotation}if(A.has(e)){return}A.add(e);try{var t;let r=n[e.type];if(r){return r.call(this,e)}r=n[this.parentPath.type];if((t=r)!=null&&t.validParent){return this.parentPath.getTypeAnnotation()}}finally{A.delete(e)}}function isBaseType(e,t){return _isBaseType(e,this.getTypeAnnotation(),t)}function _isBaseType(e,t,r){if(e==="string"){return m(t)}else if(e==="number"){return h(t)}else if(e==="boolean"){return l(t)}else if(e==="any"){return a(t)}else if(e==="mixed"){return f(t)}else if(e==="empty"){return c(t)}else if(e==="void"){return E(t)}else{if(r){return false}else{throw new Error(`Unknown base type ${e}`)}}}function couldBeBaseType(e){const t=this.getTypeAnnotation();if(a(t))return true;if(x(t)){for(const r of t.types){if(a(r)||_isBaseType(e,r,true)){return true}}return false}else{return _isBaseType(e,t,true)}}function baseTypeStrictlyMatches(e){const t=this.getTypeAnnotation();const r=e.getTypeAnnotation();if(!a(t)&&p(t)){return r.type===t.type}return false}function isGenericType(e){const t=this.getTypeAnnotation();if(e==="Array"){if(y(t)||o(t)||T(t)){return true}}return u(t)&&d(t.id,{name:e})||b(t)&&d(t.typeName,{name:e})}},9919:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;var n=r(3061);var s=r(550);const{BOOLEAN_NUMBER_BINARY_OPERATORS:i,createTypeAnnotationBasedOnTypeof:a,numberTypeAnnotation:o,voidTypeAnnotation:l}=n;function _default(e){if(!this.isReferenced())return;const t=this.scope.getBinding(e.name);if(t){if(t.identifier.typeAnnotation){return t.identifier.typeAnnotation}else{return getTypeAnnotationBindingConstantViolations(t,this,e.name)}}if(e.name==="undefined"){return l()}else if(e.name==="NaN"||e.name==="Infinity"){return o()}else if(e.name==="arguments"){}}function getTypeAnnotationBindingConstantViolations(e,t,r){const n=[];const i=[];let a=getConstantViolationsBefore(e,t,i);const o=getConditionalAnnotation(e,t,r);if(o){const t=getConstantViolationsBefore(e,o.ifStatement);a=a.filter((e=>!t.includes(e)));n.push(o.typeAnnotation)}if(a.length){a.push(...i);for(const e of a){n.push(e.getTypeAnnotation())}}if(!n.length){return}return(0,s.createUnionType)(n)}function getConstantViolationsBefore(e,t,r){const n=e.constantViolations.slice();n.unshift(e.path);return n.filter((e=>{e=e.resolve();const n=e._guessExecutionStatusRelativeTo(t);if(r&&n==="unknown")r.push(e);return n==="before"}))}function inferAnnotationFromBinaryExpression(e,t){const r=t.node.operator;const n=t.get("right").resolve();const s=t.get("left").resolve();let l;if(s.isIdentifier({name:e})){l=n}else if(n.isIdentifier({name:e})){l=s}if(l){if(r==="==="){return l.getTypeAnnotation()}if(i.includes(r)){return o()}return}if(r!=="==="&&r!=="==")return;let c;let p;if(s.isUnaryExpression({operator:"typeof"})){c=s;p=n}else if(n.isUnaryExpression({operator:"typeof"})){c=n;p=s}if(!c)return;if(!c.get("argument").isIdentifier({name:e}))return;p=p.resolve();if(!p.isLiteral())return;const u=p.node.value;if(typeof u!=="string")return;return a(u)}function getParentConditionalPath(e,t,r){let n;while(n=t.parentPath){if(n.isIfStatement()||n.isConditionalExpression()){if(t.key==="test"){return}return n}if(n.isFunction()){if(n.parentPath.scope.getBinding(r)!==e)return}t=n}}function getConditionalAnnotation(e,t,r){const n=getParentConditionalPath(e,t,r);if(!n)return;const i=n.get("test");const a=[i];const o=[];for(let e=0;e<a.length;e++){const t=a[e];if(t.isLogicalExpression()){if(t.node.operator==="&&"){a.push(t.get("left"));a.push(t.get("right"))}}else if(t.isBinaryExpression()){const e=inferAnnotationFromBinaryExpression(r,t);if(e)o.push(e)}}if(o.length){return{typeAnnotation:(0,s.createUnionType)(o),ifStatement:n}}return getConditionalAnnotation(e,n,r)}},6157:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ArrayExpression=ArrayExpression;t.AssignmentExpression=AssignmentExpression;t.BinaryExpression=BinaryExpression;t.BooleanLiteral=BooleanLiteral;t.CallExpression=CallExpression;t.ConditionalExpression=ConditionalExpression;t.ClassDeclaration=t.ClassExpression=t.FunctionDeclaration=t.ArrowFunctionExpression=t.FunctionExpression=Func;Object.defineProperty(t,"Identifier",{enumerable:true,get:function(){return s.default}});t.LogicalExpression=LogicalExpression;t.NewExpression=NewExpression;t.NullLiteral=NullLiteral;t.NumericLiteral=NumericLiteral;t.ObjectExpression=ObjectExpression;t.ParenthesizedExpression=ParenthesizedExpression;t.RegExpLiteral=RegExpLiteral;t.RestElement=RestElement;t.SequenceExpression=SequenceExpression;t.StringLiteral=StringLiteral;t.TSAsExpression=TSAsExpression;t.TSNonNullExpression=TSNonNullExpression;t.TaggedTemplateExpression=TaggedTemplateExpression;t.TemplateLiteral=TemplateLiteral;t.TypeCastExpression=TypeCastExpression;t.UnaryExpression=UnaryExpression;t.UpdateExpression=UpdateExpression;t.VariableDeclarator=VariableDeclarator;var n=r(3061);var s=r(9919);var i=r(550);const{BOOLEAN_BINARY_OPERATORS:a,BOOLEAN_UNARY_OPERATORS:o,NUMBER_BINARY_OPERATORS:l,NUMBER_UNARY_OPERATORS:c,STRING_UNARY_OPERATORS:p,anyTypeAnnotation:u,arrayTypeAnnotation:d,booleanTypeAnnotation:f,buildMatchMemberExpression:h,genericTypeAnnotation:m,identifier:y,nullLiteralTypeAnnotation:g,numberTypeAnnotation:b,stringTypeAnnotation:T,tupleTypeAnnotation:S,unionTypeAnnotation:x,voidTypeAnnotation:E,isIdentifier:P}=n;function VariableDeclarator(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function TypeCastExpression(e){return e.typeAnnotation}TypeCastExpression.validParent=true;function TSAsExpression(e){return e.typeAnnotation}TSAsExpression.validParent=true;function TSNonNullExpression(){return this.get("expression").getTypeAnnotation()}function NewExpression(e){if(e.callee.type==="Identifier"){return m(e.callee)}}function TemplateLiteral(){return T()}function UnaryExpression(e){const t=e.operator;if(t==="void"){return E()}else if(c.includes(t)){return b()}else if(p.includes(t)){return T()}else if(o.includes(t)){return f()}}function BinaryExpression(e){const t=e.operator;if(l.includes(t)){return b()}else if(a.includes(t)){return f()}else if(t==="+"){const e=this.get("right");const t=this.get("left");if(t.isBaseType("number")&&e.isBaseType("number")){return b()}else if(t.isBaseType("string")||e.isBaseType("string")){return T()}return x([T(),b()])}}function LogicalExpression(){const e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,i.createUnionType)(e)}function ConditionalExpression(){const e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,i.createUnionType)(e)}function SequenceExpression(){return this.get("expressions").pop().getTypeAnnotation()}function ParenthesizedExpression(){return this.get("expression").getTypeAnnotation()}function AssignmentExpression(){return this.get("right").getTypeAnnotation()}function UpdateExpression(e){const t=e.operator;if(t==="++"||t==="--"){return b()}}function StringLiteral(){return T()}function NumericLiteral(){return b()}function BooleanLiteral(){return f()}function NullLiteral(){return g()}function RegExpLiteral(){return m(y("RegExp"))}function ObjectExpression(){return m(y("Object"))}function ArrayExpression(){return m(y("Array"))}function RestElement(){return ArrayExpression()}RestElement.validParent=true;function Func(){return m(y("Function"))}const v=h("Array.from");const A=h("Object.keys");const w=h("Object.values");const I=h("Object.entries");function CallExpression(){const{callee:e}=this.node;if(A(e)){return d(T())}else if(v(e)||w(e)||P(e,{name:"Array"})){return d(u())}else if(I(e)){return d(S([T(),u()]))}return resolveCall(this.get("callee"))}function TaggedTemplateExpression(){return resolveCall(this.get("tag"))}function resolveCall(e){e=e.resolve();if(e.isFunction()){const{node:t}=e;if(t.async){if(t.generator){return m(y("AsyncIterator"))}else{return m(y("Promise"))}}else{if(t.generator){return m(y("Iterator"))}else if(e.node.returnType){return e.node.returnType}else{}}}}},550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createUnionType=createUnionType;var n=r(3061);const{createFlowUnionType:s,createTSUnionType:i,createUnionTypeAnnotation:a,isFlowType:o,isTSType:l}=n;function createUnionType(e){{if(e.every((e=>o(e)))){if(s){return s(e)}return a(e)}else if(e.every((e=>l(e)))){if(i){return i(e)}}}}},7171:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._guessExecutionStatusRelativeTo=_guessExecutionStatusRelativeTo;t._resolve=_resolve;t.canHaveVariableDeclarationOrExpression=canHaveVariableDeclarationOrExpression;t.canSwapBetweenExpressionAndStatement=canSwapBetweenExpressionAndStatement;t.getSource=getSource;t.isCompletionRecord=isCompletionRecord;t.isConstantExpression=isConstantExpression;t.isInStrictMode=isInStrictMode;t.isNodeType=isNodeType;t.isStatementOrBlock=isStatementOrBlock;t.isStatic=isStatic;t.matchesPattern=matchesPattern;t.referencesImport=referencesImport;t.resolve=resolve;t.willIMaybeExecuteBefore=willIMaybeExecuteBefore;var n=r(3061);const{STATEMENT_OR_BLOCK_KEYS:s,VISITOR_KEYS:i,isBlockStatement:a,isExpression:o,isIdentifier:l,isLiteral:c,isStringLiteral:p,isType:u,matchesPattern:d}=n;function matchesPattern(e,t){return d(this.node,e,t)}{t.has=function has(e){var t;const r=(t=this.node)==null?void 0:t[e];if(r&&Array.isArray(r)){return!!r.length}else{return!!r}}}function isStatic(){return this.scope.isStatic(this.node)}{t.is=t.has;t.isnt=function isnt(e){return!this.has(e)};t.equals=function equals(e,t){return this.node[e]===t}}function isNodeType(e){return u(this.type,e)}function canHaveVariableDeclarationOrExpression(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function canSwapBetweenExpressionAndStatement(e){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression()){return false}if(this.isExpression()){return a(e)}else if(this.isBlockStatement()){return o(e)}return false}function isCompletionRecord(e){let t=this;let r=true;do{const{type:n,container:s}=t;if(!r&&(t.isFunction()||n==="StaticBlock")){return!!e}r=false;if(Array.isArray(s)&&t.key!==s.length-1){return false}}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return true}function isStatementOrBlock(){if(this.parentPath.isLabeledStatement()||a(this.container)){return false}else{return s.includes(this.key)}}function referencesImport(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?p(this.node.property,{value:t}):this.node.property.name===t)){const t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return false}const r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return false;const n=r.path;const s=n.parentPath;if(!s.isImportDeclaration())return false;if(s.node.source.value===e){if(!t)return true}else{return false}if(n.isImportDefaultSpecifier()&&t==="default"){return true}if(n.isImportNamespaceSpecifier()&&t==="*"){return true}if(n.isImportSpecifier()&&l(n.node.imported,{name:t})){return true}return false}function getSource(){const e=this.node;if(e.end){const t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function willIMaybeExecuteBefore(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function getOuterFunction(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function isExecutionUncertain(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return false}}function isExecutionUncertainInList(e,t){for(let r=0;r<t;r++){const t=e[r];if(isExecutionUncertain(t.parent.type,t.parentKey)){return true}}return false}const f=Symbol();function _guessExecutionStatusRelativeTo(e){return _guessExecutionStatusRelativeToCached(this,e,new Map)}function _guessExecutionStatusRelativeToCached(e,t,r){const n={this:getOuterFunction(e),target:getOuterFunction(t)};if(n.target.node!==n.this.node){return _guessExecutionStatusRelativeToDifferentFunctionsCached(e,n.target,r)}const s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let a;const o={target:0,this:0};while(!a&&o.this<s.this.length){const e=s.this[o.this];o.target=s.target.indexOf(e);if(o.target>=0){a=e}else{o.this++}}if(!a){throw new Error("Internal Babel error - The two compared nodes"+" don't appear to belong to the same program.")}if(isExecutionUncertainInList(s.this,o.this-1)||isExecutionUncertainInList(s.target,o.target-1)){return"unknown"}const l={this:s.this[o.this-1],target:s.target[o.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container){return l.target.key>l.this.key?"before":"after"}const c=i[a.type];const p={this:c.indexOf(l.this.parentKey),target:c.indexOf(l.target.parentKey)};return p.target>p.this?"before":"after"}function _guessExecutionStatusRelativeToDifferentFunctionsInternal(e,t,r){if(!t.isFunctionDeclaration()){if(_guessExecutionStatusRelativeToCached(e,t,r)==="before"){return"before"}return"unknown"}else if(t.parentPath.isExportDeclaration()){return"unknown"}const n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";const s=n.referencePaths;let i;for(const n of s){const s=!!n.find((e=>e.node===t.node));if(s)continue;if(n.key!=="callee"||!n.parentPath.isCallExpression()){return"unknown"}const a=_guessExecutionStatusRelativeToCached(e,n,r);if(i&&i!==a){return"unknown"}else{i=a}}return i}function _guessExecutionStatusRelativeToDifferentFunctionsCached(e,t,r){let n=r.get(e.node);let s;if(!n){r.set(e.node,n=new Map)}else if(s=n.get(t.node)){if(s===f){return"unknown"}return s}n.set(t.node,f);const i=_guessExecutionStatusRelativeToDifferentFunctionsInternal(e,t,r);n.set(t.node,i);return i}function resolve(e,t){return _resolve.call(this,e,t)||this}function _resolve(e,t){var r;if((r=t)!=null&&r.includes(this))return;t=t||[];t.push(this);if(this.isVariableDeclarator()){if(this.get("id").isIdentifier()){return this.get("init").resolve(e,t)}else{}}else if(this.isReferencedIdentifier()){const r=this.scope.getBinding(this.node.name);if(!r)return;if(!r.constant)return;if(r.kind==="module")return;if(r.path!==this){const n=r.path.resolve(e,t);if(this.find((e=>e.node===n.node)))return;return n}}else if(this.isTypeCastExpression()){return this.get("expression").resolve(e,t)}else if(e&&this.isMemberExpression()){const r=this.toComputedKey();if(!c(r))return;const n=r.value;const s=this.get("object").resolve(e,t);if(s.isObjectExpression()){const r=s.get("properties");for(const s of r){if(!s.isProperty())continue;const r=s.get("key");let i=s.isnt("computed")&&r.isIdentifier({name:n});i=i||r.isLiteral({value:n});if(i)return s.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+n)){const r=s.get("elements");const i=r[n];if(i)return i.resolve(e,t)}}}function isConstantExpression(){if(this.isIdentifier()){const e=this.scope.getBinding(this.node.name);if(!e)return false;return e.constant}if(this.isLiteral()){if(this.isRegExpLiteral()){return false}if(this.isTemplateLiteral()){return this.get("expressions").every((e=>e.isConstantExpression()))}return true}if(this.isUnaryExpression()){if(this.node.operator!=="void"){return false}return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){const{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression()){return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:true})}if(this.isCallExpression()){return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:true})&&this.get("arguments")[0].isStringLiteral()}return false}function isInStrictMode(){const e=this.isProgram()?this:this.parentPath;const t=e.find((e=>{if(e.isProgram({sourceType:"module"}))return true;if(e.isClass())return true;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement()){return false}let t;if(e.isFunction()){t=e.node.body}else if(e.isProgram()){t=e.node}else{return false}for(const e of t.directives){if(e.value.value==="use strict"){return true}}}));return!!t}},6378:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(3061);var s=n;const{react:i}=n;const{cloneNode:a,jsxExpressionContainer:o,variableDeclaration:l,variableDeclarator:c}=s;const p={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&i.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression()){return}if(e.node.name==="this"){let r=e.scope;do{if(r.path.isFunction()&&!r.path.isArrowFunctionExpression()){break}}while(r=r.parent);if(r)t.breakOnScopePaths.push(r.path)}const r=e.scope.getBinding(e.node.name);if(!r)return;for(const n of r.constantViolations){if(n.scope!==r.path.scope){t.mutableBinding=true;e.stop();return}}if(r!==t.scope.getBinding(e.node.name))return;t.bindings[e.node.name]=r}};class PathHoister{constructor(e,t){this.breakOnScopePaths=void 0;this.bindings=void 0;this.mutableBinding=void 0;this.scopes=void 0;this.scope=void 0;this.path=void 0;this.attachAfter=void 0;this.breakOnScopePaths=[];this.bindings={};this.mutableBinding=false;this.scopes=[];this.scope=t;this.path=e;this.attachAfter=false}isCompatibleScope(e){for(const t of Object.keys(this.bindings)){const r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier)){return false}}return true}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e)){this.scopes.push(e)}else{break}if(this.breakOnScopePaths.includes(e.path)){break}}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e){t=e.scope.parent}if(t.path.isProgram()||t.path.isFunction()){for(const r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;const n=this.bindings[r];if(n.kind==="param"||n.path.parentKey==="params"){continue}const s=this.getAttachmentParentForPath(n.path);if(s.key>=e.key){this.attachAfter=true;e=n.path;for(const t of n.constantViolations){if(this.getAttachmentParentForPath(t).key>e.key){e=t}}}}}return e}_getAttachmentPath(){const e=this.scopes;const t=e.pop();if(!t)return;if(t.path.isFunction()){if(this.hasOwnParamBindings(t)){if(this.scope===t)return;const e=t.path.get("body").get("body");for(let t=0;t<e.length;t++){if(e[t].node._blockHoist)continue;return e[t]}}else{return this.getNextScopeAttachmentParent()}}else if(t.path.isProgram()){return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){const e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement()){return e}}while(e=e.parentPath)}hasOwnParamBindings(e){for(const t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;const r=this.bindings[t];if(r.kind==="param"&&r.constant)return true}return false}run(){this.path.traverse(p,this);if(this.mutableBinding)return;this.getCompatibleScopes();const e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref");const r=c(t,this.path.node);const n=this.attachAfter?"insertAfter":"insertBefore";const[s]=e[n]([e.isVariableDeclarator()?r:l("var",[r])]);const i=this.path.parentPath;if(i.isJSXElement()&&this.path.container===i.node.children){t=o(t)}this.path.replaceWith(a(t));return e.isVariableDeclarator()?s.get("init"):s.get("declarations.0.init")}}t["default"]=PathHoister},7978:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.hooks=void 0;const r=t.hooks=[function(e,t){const r=e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement();if(r){t.remove();return true}},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1){t.replaceWith(t.node.expressions[0]);return true}},function(e,t){if(t.isBinary()){if(e.key==="left"){t.replaceWith(t.node.right)}else{t.replaceWith(t.node.left)}return true}},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression())){e.replaceWith({type:"BlockStatement",body:[]});return true}}]},3053:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBindingIdentifier=isBindingIdentifier;t.isBlockScoped=isBlockScoped;t.isExpression=isExpression;t.isFlow=isFlow;t.isForAwaitStatement=isForAwaitStatement;t.isGenerated=isGenerated;t.isPure=isPure;t.isReferenced=isReferenced;t.isReferencedIdentifier=isReferencedIdentifier;t.isReferencedMemberExpression=isReferencedMemberExpression;t.isRestProperty=isRestProperty;t.isScope=isScope;t.isSpreadProperty=isSpreadProperty;t.isStatement=isStatement;t.isUser=isUser;t.isVar=isVar;var n=r(3061);const{isBinding:s,isBlockScoped:i,isExportDeclaration:a,isExpression:o,isFlow:l,isForStatement:c,isForXStatement:p,isIdentifier:u,isImportDeclaration:d,isImportSpecifier:f,isJSXIdentifier:h,isJSXMemberExpression:m,isMemberExpression:y,isRestElement:g,isReferenced:b,isScope:T,isStatement:S,isVar:x,isVariableDeclaration:E,react:P,isForOfStatement:v}=n;const{isCompatTag:A}=P;function isReferencedIdentifier(e){const{node:t,parent:r}=this;if(!u(t,e)&&!m(r,e)){if(h(t,e)){if(A(t.name))return false}else{return false}}return b(t,r,this.parentPath.parent)}function isReferencedMemberExpression(){const{node:e,parent:t}=this;return y(e)&&b(e,t)}function isBindingIdentifier(){const{node:e,parent:t}=this;const r=this.parentPath.parent;return u(e)&&s(e,t,r)}function isStatement(){const{node:e,parent:t}=this;if(S(e)){if(E(e)){if(p(t,{left:e}))return false;if(c(t,{init:e}))return false}return true}else{return false}}function isExpression(){if(this.isIdentifier()){return this.isReferencedIdentifier()}else{return o(this.node)}}function isScope(){return T(this.node,this.parent)}function isReferenced(){return b(this.node,this.parent)}function isBlockScoped(){return i(this.node)}function isVar(){return x(this.node)}function isUser(){return this.node&&!!this.node.loc}function isGenerated(){return!this.isUser()}function isPure(e){return this.scope.isPure(this.node,e)}function isFlow(){const{node:e}=this;if(l(e)){return true}else if(d(e)){return e.importKind==="type"||e.importKind==="typeof"}else if(a(e)){return e.exportKind==="type"}else if(f(e)){return e.importKind==="type"||e.importKind==="typeof"}else{return false}}function isRestProperty(){var e;return g(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function isSpreadProperty(){var e;return g(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function isForAwaitStatement(){return v(this.node,{await:true})}{t.isExistentialTypeParam=function isExistentialTypeParam(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};t.isNumericLiteralTypeAnnotation=function isNumericLiteralTypeAnnotation(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}}},2490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Var=t.User=t.Statement=t.SpreadProperty=t.Scope=t.RestProperty=t.ReferencedMemberExpression=t.ReferencedIdentifier=t.Referenced=t.Pure=t.NumericLiteralTypeAnnotation=t.Generated=t.ForAwaitStatement=t.Flow=t.Expression=t.ExistentialTypeParam=t.BlockScoped=t.BindingIdentifier=void 0;const r=t.ReferencedIdentifier=["Identifier","JSXIdentifier"];const n=t.ReferencedMemberExpression=["MemberExpression"];const s=t.BindingIdentifier=["Identifier"];const i=t.Statement=["Statement"];const a=t.Expression=["Expression"];const o=t.Scope=["Scopable","Pattern"];const l=t.Referenced=null;const c=t.BlockScoped=null;const p=t.Var=["VariableDeclaration"];const u=t.User=null;const d=t.Generated=null;const f=t.Pure=null;const h=t.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"];const m=t.RestProperty=["RestElement"];const y=t.SpreadProperty=["RestElement"];const g=t.ExistentialTypeParam=["ExistsTypeAnnotation"];const b=t.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"];const T=t.ForAwaitStatement=["ForOfStatement"]},7116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._containerInsert=_containerInsert;t._containerInsertAfter=_containerInsertAfter;t._containerInsertBefore=_containerInsertBefore;t._verifyNodeList=_verifyNodeList;t.insertAfter=insertAfter;t.insertBefore=insertBefore;t.pushContainer=pushContainer;t.unshiftContainer=unshiftContainer;t.updateSiblingKeys=updateSiblingKeys;var n=r(8099);var s=r(9111);var i=r(4144);var a=r(6035);var o=r(3061);var l=r(6378);const{arrowFunctionExpression:c,assertExpression:p,assignmentExpression:u,blockStatement:d,callExpression:f,cloneNode:h,expressionStatement:m,isAssignmentExpression:y,isCallExpression:g,isExportNamedDeclaration:b,isExpression:T,isIdentifier:S,isSequenceExpression:x,isSuper:E,thisExpression:P}=o;function insertBefore(e){a._assertUnremoved.call(this);const t=_verifyNodeList.call(this,e);const{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||b(n)||r.isExportDefaultDeclaration()&&this.isDeclaration()){return r.insertBefore(t)}else if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node)t.push(this.node);return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container)){return _containerInsertBefore.call(this,t)}else if(this.isStatementOrBlock()){const e=this.node;const r=e&&(!this.isExpressionStatement()||e.expression!=null);this.replaceWith(d(r?[e]:[]));return this.unshiftContainer("body",t)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function _containerInsert(e,t){updateSiblingKeys.call(this,e,t.length);const r=[];this.container.splice(e,0,...t);for(let s=0;s<t.length;s++){var n;const t=e+s;const a=this.getSibling(t);r.push(a);if((n=this.context)!=null&&n.queue){i.pushContext.call(a,this.context)}}const s=i._getQueueContexts.call(this);for(const e of r){i.setScope.call(e);e.debug("Inserted.");for(const t of s){t.maybeQueue(e,true)}}return r}function _containerInsertBefore(e){return _containerInsert.call(this,this.key,e)}function _containerInsertAfter(e){return _containerInsert.call(this,this.key+1,e)}const last=e=>e[e.length-1];function isHiddenInSequenceExpression(e){return x(e.parent)&&(last(e.parent.expressions)!==e.node||isHiddenInSequenceExpression(e.parentPath))}function isAlmostConstantAssignment(e,t){if(!y(e)||!S(e.left)){return false}const r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function insertAfter(e){a._assertUnremoved.call(this);if(this.isSequenceExpression()){return last(this.get("expressions")).insertAfter(e)}const t=_verifyNodeList.call(this,e);const{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||b(n)||r.isExportDefaultDeclaration()&&this.isDeclaration()){return r.insertAfter(t.map((e=>T(e)?m(e):e)))}else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){const e=this;if(e.node){const n=e.node;let{scope:s}=this;if(s.path.isPattern()){p(n);e.replaceWith(f(c([],n),[]));e.get("callee.body").insertAfter(t);return[e]}if(isHiddenInSequenceExpression(e)){t.unshift(n)}else if(g(n)&&E(n.callee)){t.unshift(n);t.push(P())}else if(isAlmostConstantAssignment(n,s)){t.unshift(n);t.push(h(n.left))}else if(s.isPure(n,true)){t.push(n)}else{if(r.isMethod({computed:true,key:n})){s=s.parent}const e=s.generateDeclaredUidIdentifier();t.unshift(m(u("=",h(e),n)));t.push(m(h(e)))}}return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container)){return _containerInsertAfter.call(this,t)}else if(this.isStatementOrBlock()){const e=this.node;const r=e&&(!this.isExpressionStatement()||e.expression!=null);this.replaceWith(d(r?[e]:[]));return this.pushContainer("body",t)}else{throw new Error("We don't know what to do with this node type. "+"We were previously a Statement but we can't fit in here?")}}function updateSiblingKeys(e,t){if(!this.parent)return;const r=(0,n.getCachedPaths)(this.hub,this.parent)||[];for(const[,n]of r){if(typeof n.key==="number"&&n.container===this.container&&n.key>=e){n.key+=t}}}function _verifyNodeList(e){if(!e){return[]}if(!Array.isArray(e)){e=[e]}for(let t=0;t<e.length;t++){const r=e[t];let n;if(!r){n="has falsy node"}else if(typeof r!=="object"){n="contains a non-object node"}else if(!r.type){n="without a type"}else if(r instanceof s.default){n="has a NodePath when it expected a raw object"}if(n){const e=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${n} with the index of ${t} and type of ${e}`)}}return e}function unshiftContainer(e,t){a._assertUnremoved.call(this);t=_verifyNodeList.call(this,t);const r=s.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context);return _containerInsertBefore.call(r,t)}function pushContainer(e,t){a._assertUnremoved.call(this);const r=_verifyNodeList.call(this,t);const n=this.node[e];const i=s.default.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).setContext(this.context);return i.replaceWithMultiple(r)}{t.hoist=function hoist(e=this.scope){const t=new l.default(this,e);return t.run()}}},6035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._assertUnremoved=_assertUnremoved;t._callRemovalHooks=_callRemovalHooks;t._markRemoved=_markRemoved;t._remove=_remove;t._removeFromScope=_removeFromScope;t.remove=remove;var n=r(7978);var s=r(8099);var i=r(3419);var a=r(9111);var o=r(3061);var l=r(7116);var c=r(4144);const{getBindingIdentifiers:p}=o;function remove(){var e;_assertUnremoved.call(this);c.resync.call(this);if(_callRemovalHooks.call(this)){_markRemoved.call(this);return}if(!((e=this.opts)!=null&&e.noScope)){_removeFromScope.call(this)}this.shareCommentsWithSiblings();_remove.call(this);_markRemoved.call(this)}function _removeFromScope(){const e=p(this.node,false,false,true);Object.keys(e).forEach((e=>this.scope.removeBinding(e)))}function _callRemovalHooks(){if(this.parentPath){for(const e of n.hooks){if(e(this,this.parentPath))return true}}}function _remove(){if(Array.isArray(this.container)){this.container.splice(this.key,1);l.updateSiblingKeys.call(this,this.key,-1)}else{i._replaceWith.call(this,null)}}function _markRemoved(){this._traverseFlags|=a.SHOULD_SKIP|a.REMOVED;if(this.parent){(0,s.getCachedPaths)(this.hub,this.parent).delete(this.node)}this.node=null}function _assertUnremoved(){if(this.removed){throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}}},3419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t._replaceWith=_replaceWith;t.replaceExpressionWithStatements=replaceExpressionWithStatements;t.replaceInline=replaceInline;t.replaceWith=replaceWith;t.replaceWithMultiple=replaceWithMultiple;t.replaceWithSourceString=replaceWithSourceString;var n=r(3554);var s=r(8026);var i=r(9111);var a=r(8099);var o=r(7116);var l=r(9849);var c=r(3061);var p=r(4144);const{FUNCTION_TYPES:u,arrowFunctionExpression:d,assignmentExpression:f,awaitExpression:h,blockStatement:m,buildUndefinedNode:y,callExpression:g,cloneNode:b,conditionalExpression:T,expressionStatement:S,getBindingIdentifiers:x,identifier:E,inheritLeadingComments:P,inheritTrailingComments:v,inheritsComments:A,isBlockStatement:w,isEmptyStatement:I,isExpression:C,isExpressionStatement:O,isIfStatement:N,isProgram:k,isStatement:_,isVariableDeclaration:D,removeComments:M,returnStatement:L,sequenceExpression:j,validate:F,yieldExpression:B}=c;function replaceWithMultiple(e){var t;p.resync.call(this);e=o._verifyNodeList.call(this,e);P(e[0],this.node);v(e[e.length-1],this.node);(t=(0,a.getCachedPaths)(this.hub,this.parent))==null||t.delete(this.node);this.node=this.container[this.key]=null;const r=this.insertAfter(e);if(this.node){this.requeue()}else{this.remove()}return r}function replaceWithSourceString(e){p.resync.call(this);let t;try{e=`(${e})`;t=(0,l.parse)(e)}catch(t){const r=t.loc;if(r){t.message+=" - make sure this is an expression.\n"+(0,n.codeFrameColumns)(e,{start:{line:r.line,column:r.column+1}});t.code="BABEL_REPLACE_SOURCE_ERROR"}throw t}const r=t.program.body[0].expression;s.default.removeProperties(r);return this.replaceWith(r)}function replaceWith(e){p.resync.call(this);if(this.removed){throw new Error("You can't replace this node, we've already removed it")}let t=e instanceof i.default?e.node:e;if(!t){throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead")}if(this.node===t){return[this]}if(this.isProgram()&&!k(t)){throw new Error("You can only replace a Program root node with another Program node")}if(Array.isArray(t)){throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`")}if(typeof t==="string"){throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`")}let r="";if(this.isNodeType("Statement")&&C(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()){t=S(t);r="expression"}}if(this.isNodeType("Expression")&&_(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)){return this.replaceExpressionWithStatements([t])}}const n=this.node;if(n){A(t,n);M(n)}_replaceWith.call(this,t);this.type=t.type;p.setScope.call(this);this.requeue();return[r?this.get(r):this]}function _replaceWith(e){var t;if(!this.container){throw new ReferenceError("Container is falsy")}if(this.inList){F(this.parent,this.key,[e])}else{F(this.parent,this.key,e)}this.debug(`Replace with ${e==null?void 0:e.type}`);(t=(0,a.getCachedPaths)(this.hub,this.parent))==null||t.set(e,this).delete(this.node);this.node=this.container[this.key]=e}function replaceExpressionWithStatements(e){p.resync.call(this);const t=[];const r=gatherSequenceExpressions(e,t);if(r){for(const e of t)this.scope.push({id:e});return this.replaceWith(r)[0].get("expressions")}const n=this.getFunctionParent();const i=n==null?void 0:n.node.async;const a=n==null?void 0:n.node.generator;const o=d([],m(e));this.replaceWith(g(o,[]));const l=this.get("callee");l.get("body").scope.hoistVariables((e=>this.scope.push({id:e})));const c=l.getCompletionRecords();for(const e of c){if(!e.isExpressionStatement())continue;const t=e.findParent((e=>e.isLoop()));if(t){let r=t.getData("expressionReplacementReturnUid");if(!r){r=l.scope.generateDeclaredUidIdentifier("ret");l.get("body").pushContainer("body",L(b(r)));t.setData("expressionReplacementReturnUid",r)}else{r=E(r.name)}e.get("expression").replaceWith(f("=",b(r),e.node.expression))}else{e.replaceWith(L(e.node.expression))}}l.arrowFunctionToExpression();const y=l;const T=i&&s.default.hasType(this.get("callee.body").node,"AwaitExpression",u);const S=a&&s.default.hasType(this.get("callee.body").node,"YieldExpression",u);if(T){y.set("async",true);if(!S){this.replaceWith(h(this.node))}}if(S){y.set("generator",true);this.replaceWith(B(this.node,true))}return y.get("body.body")}function gatherSequenceExpressions(e,t){const r=[];let n=true;for(const s of e){if(!I(s)){n=false}if(C(s)){r.push(s)}else if(O(s)){r.push(s.expression)}else if(D(s)){if(s.kind!=="var")return;for(const e of s.declarations){const n=x(e);for(const e of Object.keys(n)){t.push(b(n[e]))}if(e.init){r.push(f("=",e.id,e.init))}}n=true}else if(N(s)){const e=s.consequent?gatherSequenceExpressions([s.consequent],t):y();const n=s.alternate?gatherSequenceExpressions([s.alternate],t):y();if(!e||!n)return;r.push(T(s.test,e,n))}else if(w(s)){const e=gatherSequenceExpressions(s.body,t);if(!e)return;r.push(e)}else if(I(s)){if(e.indexOf(s)===0){n=true}}else{return}}if(n)r.push(y());if(r.length===1){return r[0]}else{return j(r)}}function replaceInline(e){p.resync.call(this);if(Array.isArray(e)){if(Array.isArray(this.container)){e=o._verifyNodeList.call(this,e);const t=o._containerInsertAfter.call(this,e);this.remove();return t}else{return this.replaceWithMultiple(e)}}else{return this.replaceWith(e)}}},7033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;class Binding{constructor({identifier:e,scope:t,path:r,kind:n}){this.identifier=void 0;this.scope=void 0;this.path=void 0;this.kind=void 0;this.constantViolations=[];this.constant=true;this.referencePaths=[];this.referenced=false;this.references=0;this.identifier=e;this.scope=t;this.path=r;this.kind=n;if((n==="var"||n==="hoisted")&&isInitInLoop(r)){this.reassign(r)}this.clearValue()}deoptValue(){this.clearValue();this.hasDeoptedValue=true}setValue(e){if(this.hasDeoptedValue)return;this.hasValue=true;this.value=e}clearValue(){this.hasDeoptedValue=false;this.hasValue=false;this.value=null}reassign(e){this.constant=false;if(this.constantViolations.includes(e)){return}this.constantViolations.push(e)}reference(e){if(this.referencePaths.includes(e)){return}this.referenced=true;this.references++;this.referencePaths.push(e)}dereference(){this.references--;this.referenced=!!this.references}}t["default"]=Binding;function isInitInLoop(e){const t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:n}=e;r;({parentPath:r,key:n}=r)){if(r.isFunctionParent())return false;if(n==="left"&&r.isForXStatement()||t&&n==="body"&&r.isLoop()){return true}}return false}},9877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(3855);var s=r(8026);var i=r(7033);var a=r(6929);var o=r(3061);var l=o;var c=r(8099);const{assignmentExpression:p,callExpression:u,cloneNode:d,getBindingIdentifiers:f,identifier:h,isArrayExpression:m,isBinary:y,isCallExpression:g,isClass:b,isClassBody:T,isClassDeclaration:S,isExportAllDeclaration:x,isExportDefaultDeclaration:E,isExportNamedDeclaration:P,isFunctionDeclaration:v,isIdentifier:A,isImportDeclaration:w,isLiteral:I,isMemberExpression:C,isMethod:O,isModuleSpecifier:N,isNullLiteral:k,isObjectExpression:_,isProperty:D,isPureish:M,isRegExpLiteral:L,isSuper:j,isTaggedTemplateExpression:F,isTemplateLiteral:B,isThisExpression:R,isUnaryExpression:U,isVariableDeclaration:K,expressionStatement:V,matchesPattern:W,memberExpression:$,numericLiteral:q,toIdentifier:H,variableDeclaration:G,variableDeclarator:J,isRecordExpression:z,isTupleExpression:X,isObjectProperty:Y,isTopicReference:Q,isMetaProperty:Z,isPrivateName:ee,isExportDeclaration:te,buildUndefinedNode:re,sequenceExpression:ne}=o;function gatherNodeParts(e,t){switch(e==null?void 0:e.type){default:if(w(e)||te(e)){var r;if((x(e)||P(e)||w(e))&&e.source){gatherNodeParts(e.source,t)}else if((P(e)||w(e))&&(r=e.specifiers)!=null&&r.length){for(const r of e.specifiers)gatherNodeParts(r,t)}else if((E(e)||P(e))&&e.declaration){gatherNodeParts(e.declaration,t)}}else if(N(e)){gatherNodeParts(e.local,t)}else if(I(e)&&!k(e)&&!L(e)&&!B(e)){t.push(e.value)}break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":gatherNodeParts(e.object,t);gatherNodeParts(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":gatherNodeParts(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(const r of e.properties){gatherNodeParts(r,t)}break;case"SpreadElement":case"RestElement":gatherNodeParts(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":gatherNodeParts(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield");gatherNodeParts(e.argument,t);break;case"AwaitExpression":t.push("await");gatherNodeParts(e.argument,t);break;case"AssignmentExpression":gatherNodeParts(e.left,t);break;case"VariableDeclarator":gatherNodeParts(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":gatherNodeParts(e.id,t);break;case"PrivateName":gatherNodeParts(e.id,t);break;case"ParenthesizedExpression":gatherNodeParts(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":gatherNodeParts(e.argument,t);break;case"MetaProperty":gatherNodeParts(e.meta,t);gatherNodeParts(e.property,t);break;case"JSXElement":gatherNodeParts(e.openingElement,t);break;case"JSXOpeningElement":gatherNodeParts(e.name,t);break;case"JSXFragment":gatherNodeParts(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":gatherNodeParts(e.namespace,t);gatherNodeParts(e.name,t);break}}function resetScope(e){e.references=Object.create(null);e.bindings=Object.create(null);e.globals=Object.create(null);e.uids=Object.create(null)}{var se=Symbol.for("should not be considered a local binding")}const ie={ForStatement(e){const t=e.get("init");if(t.isVar()){const{scope:r}=e;const n=r.getFunctionParent()||r.getProgramParent();n.registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;const t=e.scope.getFunctionParent()||e.scope.getProgramParent();t.registerDeclaration(e)},ImportDeclaration(e){const t=e.scope.getBlockParent();t.registerDeclaration(e)},TSImportEqualsDeclaration(e){const t=e.scope.getBlockParent();t.registerDeclaration(e)},ReferencedIdentifier(e,t){if(l.isTSQualifiedName(e.parent)&&e.parent.right===e.node){return}if(e.parentPath.isTSImportEqualsDeclaration())return;t.references.push(e)},ForXStatement(e,t){const r=e.get("left");if(r.isPattern()||r.isIdentifier()){t.constantViolations.push(e)}else if(r.isVar()){const{scope:t}=e;const n=t.getFunctionParent()||t.getProgramParent();n.registerBinding("var",r)}},ExportDeclaration:{exit(e){const{node:t,scope:r}=e;if(x(t))return;const n=t.declaration;if(S(n)||v(n)){const t=n.id;if(!t)return;const s=r.getBinding(t.name);s==null||s.reference(e)}else if(K(n)){for(const t of n.declarations){for(const n of Object.keys(f(t))){const t=r.getBinding(n);t==null||t.reference(e)}}}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){if(e.node.operator==="delete"){t.constantViolations.push(e)}},BlockScoped(e){let t=e.scope;if(t.path===e)t=t.parent;const r=t.getBlockParent();r.registerDeclaration(e);if(e.isClassDeclaration()&&e.node.id){const t=e.node.id;const r=t.name;e.scope.bindings[r]=e.scope.parent.getBinding(r)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){const t=e.get("params");for(const r of t){e.scope.registerBinding("param",r)}if(e.isFunctionExpression()&&e.node.id&&!e.node.id[se]){e.scope.registerBinding("local",e.get("id"),e)}},ClassExpression(e){if(e.node.id&&!e.node.id[se]){e.scope.registerBinding("local",e.get("id"),e)}},TSTypeAnnotation(e){e.skip()}};let ae;let oe=0;class Scope{constructor(e){this.uid=void 0;this.path=void 0;this.block=void 0;this.inited=void 0;this.labels=void 0;this.bindings=void 0;this.references=void 0;this.globals=void 0;this.uids=void 0;this.data=void 0;this.crawling=void 0;const{node:t}=e;const r=c.scope.get(t);if((r==null?void 0:r.path)===e){return r}c.scope.set(t,this);this.uid=oe++;this.block=t;this.path=e;this.labels=new Map;this.inited=false}get parent(){var e;let t,r=this.path;do{var n;const e=r.key==="key"||r.listKey==="decorators";r=r.parentPath;if(e&&r.isMethod())r=r.parentPath;if((n=r)!=null&&n.isScope())t=r}while(r&&!t);return(e=t)==null?void 0:e.scope}generateDeclaredUidIdentifier(e){const t=this.generateUidIdentifier(e);this.push({id:t});return d(t)}generateUidIdentifier(e){return h(this.generateUid(e))}generateUid(e="temp"){e=H(e).replace(/^_+/,"").replace(/\d+$/g,"");let t;let r=1;do{t=`_${e}`;if(r>1)t+=r;r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));const n=this.getProgramParent();n.references[t]=true;n.uids[t]=true;return t}generateUidBasedOnNode(e,t){const r=[];gatherNodeParts(e,r);let n=r.join("$");n=n.replace(/^_/,"")||t||"ref";return this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return h(this.generateUidBasedOnNode(e,t))}isStatic(e){if(R(e)||j(e)||Q(e)){return true}if(A(e)){const t=this.getBinding(e.name);if(t){return t.constant}else{return this.hasBinding(e.name)}}return false}maybeGenerateMemoised(e,t){if(this.isStatic(e)){return null}else{const r=this.generateUidIdentifierBasedOnNode(e);if(!t){this.push({id:r});return d(r)}return r}}checkBlockScopedCollisions(e,t,r,n){if(t==="param")return;if(e.kind==="local")return;const s=t==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&t==="const";if(s){throw this.path.hub.buildError(n,`Duplicate declaration "${r}"`,TypeError)}}rename(e,t){const r=this.getBinding(e);if(r){t||(t=this.generateUidIdentifier(e).name);const s=new n.default(r,e,t);{s.rename(arguments[2])}}}dump(){const e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(const e of Object.keys(t.bindings)){const r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement()){this.registerLabel(e)}else if(e.isFunctionDeclaration()){this.registerBinding("hoisted",e.get("id"),e)}else if(e.isVariableDeclaration()){const t=e.get("declarations");const{kind:r}=e.node;for(const e of t){this.registerBinding(r==="using"||r==="await using"?"const":r,e)}}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){const t=e.node.importKind==="type"||e.node.importKind==="typeof";const r=e.get("specifiers");for(const e of r){const r=t||e.isImportSpecifier()&&(e.node.importKind==="type"||e.node.importKind==="typeof");this.registerBinding(r?"unknown":"module",e)}}else if(e.isExportDeclaration()){const t=e.get("declaration");if(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration()){this.registerDeclaration(t)}}else{this.registerBinding("unknown",e)}}buildUndefinedNode(){return re()}registerConstantViolation(e){const t=e.getAssignmentIdentifiers();for(const n of Object.keys(t)){var r;(r=this.getBinding(n))==null||r.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){const r=t.get("declarations");for(const t of r){this.registerBinding(e,t)}return}const n=this.getProgramParent();const s=t.getOuterBindingIdentifiers(true);for(const t of Object.keys(s)){n.references[t]=true;for(const n of s[t]){const s=this.getOwnBinding(t);if(s){if(s.identifier===n)continue;this.checkBlockScopedCollisions(s,e,t,n)}if(s){s.reassign(r)}else{this.bindings[t]=new i.default({identifier:n,scope:this,path:r,kind:e})}}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do{if(t.uids[e])return true}while(t=t.parent);return false}hasGlobal(e){let t=this;do{if(t.globals[e])return true}while(t=t.parent);return false}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(A(e)){const r=this.getBinding(e.name);if(!r)return false;if(t)return r.constant;return true}else if(R(e)||Z(e)||Q(e)||ee(e)){return true}else if(b(e)){var r;if(e.superClass&&!this.isPure(e.superClass,t)){return false}if(((r=e.decorators)==null?void 0:r.length)>0){return false}return this.isPure(e.body,t)}else if(T(e)){for(const r of e.body){if(!this.isPure(r,t))return false}return true}else if(y(e)){return this.isPure(e.left,t)&&this.isPure(e.right,t)}else if(m(e)||X(e)){for(const r of e.elements){if(r!==null&&!this.isPure(r,t))return false}return true}else if(_(e)||z(e)){for(const r of e.properties){if(!this.isPure(r,t))return false}return true}else if(O(e)){var n;if(e.computed&&!this.isPure(e.key,t))return false;if(((n=e.decorators)==null?void 0:n.length)>0){return false}return true}else if(D(e)){var s;if(e.computed&&!this.isPure(e.key,t))return false;if(((s=e.decorators)==null?void 0:s.length)>0){return false}if(Y(e)||e.static){if(e.value!==null&&!this.isPure(e.value,t)){return false}}return true}else if(U(e)){return this.isPure(e.argument,t)}else if(B(e)){for(const r of e.expressions){if(!this.isPure(r,t))return false}return true}else if(F(e)){return W(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:true})&&this.isPure(e.quasi,t)}else if(C(e)){return!e.computed&&A(e.object)&&e.object.name==="Symbol"&&A(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:true})}else if(g(e)){return W(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:true})&&e.arguments.length===1&&l.isStringLiteral(e.arguments[0])}else{return M(e)}}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{const r=t.data[e];if(r!=null)return r}while(t=t.parent)}removeData(e){let t=this;do{const r=t.data[e];if(r!=null)t.data[e]=null}while(t=t.parent)}init(){if(!this.inited){this.inited=true;this.crawl()}}crawl(){const e=this.path;resetScope(this);this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram()){break}}while(t=t.parent);const r=t;const n={references:[],constantViolations:[],assignments:[]};this.crawling=true;ae||(ae=s.default.visitors.merge([{Scope(e){resetScope(e.scope)}},ie]));if(e.type!=="Program"){for(const t of ae.enter){t.call(n,e,n)}const t=ae[e.type];if(t){for(const r of t.enter){r.call(n,e,n)}}}e.traverse(ae,n);this.crawling=false;for(const e of n.assignments){const t=e.getAssignmentIdentifiers();for(const n of Object.keys(t)){if(e.scope.getBinding(n))continue;r.addGlobal(t[n])}e.scope.registerConstantViolation(e)}for(const e of n.references){const t=e.scope.getBinding(e.node.name);if(t){t.reference(e)}else{r.addGlobal(e.node)}}for(const e of n.constantViolations){e.scope.registerConstantViolation(e)}}push(e){let t=this.path;if(t.isPattern()){t=this.getPatternParent().path}else if(!t.isBlockStatement()&&!t.isProgram()){t=this.getBlockParent().path}if(t.isSwitchStatement()){t=(this.getFunctionParent()||this.getProgramParent()).path}const{init:r,unique:n,kind:s="var",id:i}=e;if(!r&&!n&&(s==="var"||s==="let")&&t.isFunction()&&!t.node.name&&g(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&A(i)){t.pushContainer("params",i);t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);return}if(t.isLoop()||t.isCatchClause()||t.isFunction()){t.ensureBlock();t=t.get("body")}const a=e._blockHoist==null?2:e._blockHoist;const o=`declaration:${s}:${a}`;let l=!n&&t.getData(o);if(!l){const e=G(s,[]);e._blockHoist=a;[l]=t.unshiftContainer("body",[e]);if(!n)t.setData(o,l)}const c=J(i,r);const p=l.node.declarations.push(c);t.scope.registerBinding(s,l.get("declarations")[p-1])}getProgramParent(){let e=this;do{if(e.path.isProgram()){return e}}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let e=this;do{if(e.path.isFunctionParent()){return e}}while(e=e.parent);return null}getBlockParent(){let e=this;do{if(e.path.isBlockParent()){return e}}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do{if(!e.path.isPattern()){return e.getBlockParent()}}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){const e=Object.create(null);let t=this;do{for(const r of Object.keys(t.bindings)){if(r in e===false){e[r]=t.bindings[r]}}t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this;let r;do{const s=t.getOwnBinding(e);if(s){var n;if((n=r)!=null&&n.isPattern()&&s.kind!=="param"&&s.kind!=="local"){}else{return s}}else if(!s&&e==="arguments"&&t.path.isFunction()&&!t.path.isArrowFunctionExpression()){break}r=t.path}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return(t=this.getBinding(e))==null?void 0:t.identifier}getOwnBindingIdentifier(e){const t=this.bindings[e];return t==null?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return false;let r;let n;let s;if(typeof t==="object"){r=t.noGlobals;n=t.noUids;s=t.upToScope}else if(typeof t==="boolean"){r=t}let i=this;do{if(s===i){break}if(i.hasOwnBinding(e)){return true}}while(i=i.parent);if(!n&&this.hasUid(e))return true;if(!r&&Scope.globals.includes(e))return true;if(!r&&Scope.contextVariables.includes(e))return true;return false}parentHasBinding(e,t){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){const r=this.getBinding(e);if(r){r.scope.removeOwnBinding(e);r.scope=t;t.bindings[e]=r}}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;(t=this.getBinding(e))==null||t.scope.removeOwnBinding(e);let r=this;do{if(r.uids[e]){r.uids[e]=false}}while(r=r.parent)}hoistVariables(e=(e=>this.push({id:e}))){this.crawl();const t=new Set;for(const r of Object.keys(this.bindings)){const n=this.bindings[r];if(!n)continue;const{path:s}=n;if(!s.isVariableDeclarator())continue;const{parent:i,parentPath:a}=s;if(i.kind!=="var"||t.has(i))continue;t.add(s.parent);let o;const l=[];for(const t of i.declarations){o!=null?o:o=t.id;if(t.init){l.push(p("=",t.id,t.init))}const r=Object.keys(f(t,false,true,true));for(const n of r){e(h(n),t.init!=null)}}if(a.parentPath.isFor({left:i})){a.replaceWith(o)}else if(l.length===0){a.remove()}else{const e=l.length===1?l[0]:ne(l);if(a.parentPath.isForStatement({init:i})){a.replaceWith(e)}else{a.replaceWith(V(e))}}}}}t["default"]=Scope;Scope.globals=Object.keys(a.builtin);Scope.contextVariables=["arguments","undefined","Infinity","NaN"];{Scope.prototype._renameFromMap=function _renameFromMap(e,t,r,n){if(e[t]){e[r]=n;e[t]=null}};Scope.prototype.traverse=function(e,t,r){(0,s.default)(e,t,this,r,this.path)};Scope.prototype._generateUid=function _generateUid(e,t){let r=e;if(t>1)r+=t;return`_${r}`};Scope.prototype.toArray=function toArray(e,t,r){if(A(e)){const t=this.getBinding(e.name);if(t!=null&&t.constant&&t.path.isGenericType("Array")){return e}}if(m(e)){return e}if(A(e,{name:"arguments"})){return u($($($(h("Array"),h("prototype")),h("slice")),h("call")),[e])}let n;const s=[e];if(t===true){n="toConsumableArray"}else if(typeof t==="number"){s.push(q(t));n="slicedToArray"}else{n="toArray"}if(r){s.unshift(this.path.hub.addHelper(n));n="maybeArrayLike"}return u(this.path.hub.addHelper(n),s)};Scope.prototype.getAllBindingsOfKind=function getAllBindingsOfKind(...e){const t=Object.create(null);for(const r of e){let e=this;do{for(const n of Object.keys(e.bindings)){const s=e.bindings[n];if(s.kind===r)t[n]=s}e=e.parent}while(e)}return t};Object.defineProperties(Scope.prototype,{parentBlock:{configurable:true,enumerable:true,get(){return this.path.parent}},hub:{configurable:true,enumerable:true,get(){return this.path.hub}}})}},3855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(3061);var s=n;var i=r(6265);var a=r(5621);var o=r(4144);const{getAssignmentIdentifiers:l}=s;const c={ReferencedIdentifier({node:e},t){if(e.name===t.oldName){e.name=t.newName}},Scope(e,t){if(!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)){e.skip();if(e.isMethod()){if(!e.requeueComputedKeyAndDecorators){o.requeueComputedKeyAndDecorators.call(e)}else{e.requeueComputedKeyAndDecorators()}}}},ObjectProperty({node:e,scope:t},r){const{name:n}=e.key;if(e.shorthand&&(n===r.oldName||n===r.newName)&&t.getBindingIdentifier(n)===r.binding.identifier){e.shorthand=false;{var s;if((s=e.extra)!=null&&s.shorthand)e.extra.shorthand=false}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;const r=e.isAssignmentExpression()?l(e.node):e.getOuterBindingIdentifiers();for(const e in r){if(e===t.oldName)r[e].name=t.newName}}};class Renamer{constructor(e,t,r){this.newName=r;this.oldName=t;this.binding=e}maybeConvertFromExportDeclaration(e){const t=e.parentPath;if(!t.isExportDeclaration()){return}if(t.isExportDefaultDeclaration()){const{declaration:e}=t.node;if(n.isDeclaration(e)&&!e.id){return}}if(t.isExportAllDeclaration()){return}t.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){const{binding:e,oldName:t,newName:r}=this;const{scope:s,path:o}=e;const l=o.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));if(l){const r=l.getOuterBindingIdentifiers();if(r[t]===e.identifier){this.maybeConvertFromExportDeclaration(l)}}const p=arguments[0]||s.block;const u={discriminant:true};if(n.isMethod(p)){if(p.computed){u.key=true}if(!n.isObjectMethod(p)){u.decorators=true}}(0,i.traverseNode)(p,(0,a.explode)(c),s,this,s.path,u);if(!arguments[0]){s.removeOwnBinding(t);s.bindings[r]=e;this.binding.identifier.name=r}if(l){this.maybeConvertFromClassFunctionDeclaration(o);this.maybeConvertFromClassFunctionExpression(o)}}}t["default"]=Renamer},6265:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.traverseNode=traverseNode;var n=r(5530);var s=r(3061);const{VISITOR_KEYS:i}=s;function traverseNode(e,t,r,s,a,o,l){const c=i[e.type];if(!c)return false;const p=new n.default(r,t,s,a);if(l){if(o!=null&&o[a.parentKey])return false;return p.visitQueue([a])}for(const t of c){if(o!=null&&o[t])continue;if(p.visit(e,t)){return true}}return false}},5621:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.environmentVisitor=environmentVisitor;t.explode=explode$1;t.isExplodedVisitor=isExplodedVisitor;t.merge=merge;t.verify=verify$1;var n=r(2490);var s=r(3053);var i=r(3061);var a=r(4144);const{DEPRECATED_KEYS:o,DEPRECATED_ALIASES:l,FLIPPED_ALIAS_KEYS:c,TYPES:p,__internal__deprecationWarning:u}=i;function isVirtualType(e){return e in n}function isExplodedVisitor(e){return e==null?void 0:e._exploded}function explode$1(e){if(isExplodedVisitor(e))return e;e._exploded=true;for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=t.split("|");if(r.length===1)continue;const n=e[t];delete e[t];for(const t of r){e[t]=n}}verify$1(e);delete e.__esModule;ensureEntranceObjects(e);ensureCallbackArrays(e);for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;if(!isVirtualType(t))continue;const r=e[t];for(const e of Object.keys(r)){r[e]=wrapCheck(t,r[e])}delete e[t];const s=n[t];if(s!==null){for(const t of s){if(e[t]){mergePair(e[t],r)}else{e[t]=r}}}else{mergePair(e,r)}}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;let r=c[t];if(t in o){const e=o[t];u(t,e,"Visitor ");r=[e]}else if(t in l){const e=l[t];u(t,e,"Visitor ");r=c[e]}if(!r)continue;const n=e[t];delete e[t];for(const t of r){const r=e[t];if(r){mergePair(r,n)}else{e[t]=Object.assign({},n)}}}for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;ensureCallbackArrays(e[t])}return e}function verify$1(e){if(e._verified)return;if(typeof e==="function"){throw new Error("You passed `traverse()` a function when it expected a visitor object, "+"are you sure you didn't mean `{ enter: Function }`?")}for(const t of Object.keys(e)){if(t==="enter"||t==="exit"){validateVisitorMethods(t,e[t])}if(shouldIgnoreKey(t))continue;if(!p.includes(t)){throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse ${"7.27.0"}`)}const r=e[t];if(typeof r==="object"){for(const e of Object.keys(r)){if(e==="enter"||e==="exit"){validateVisitorMethods(`${t}.${e}`,r[e])}else{throw new Error("You passed `traverse()` a visitor object with the property "+`${t} that has the invalid property ${e}`)}}}}e._verified=true}function validateVisitorMethods(e,t){const r=[].concat(t);for(const t of r){if(typeof t!=="function"){throw new TypeError(`Non-function found defined in ${e} with type ${typeof t}`)}}}function merge(e,t=[],r){const n={_verified:true,_exploded:true};{Object.defineProperty(n,"_exploded",{enumerable:false});Object.defineProperty(n,"_verified",{enumerable:false})}for(let s=0;s<e.length;s++){const i=explode$1(e[s]);const a=t[s];let o=i;if(a||r){o=wrapWithStateOrWrapper(o,a,r)}mergePair(n,o);for(const e of Object.keys(i)){if(shouldIgnoreKey(e))continue;let t=i[e];if(a||r){t=wrapWithStateOrWrapper(t,a,r)}const s=n[e]||(n[e]={});mergePair(s,t)}}return n}function wrapWithStateOrWrapper(e,t,r){const n={};for(const s of["enter","exit"]){let i=e[s];if(!Array.isArray(i))continue;i=i.map((function(e){let n=e;if(t){n=function(r){e.call(t,r,t)}}if(r){n=r(t==null?void 0:t.key,s,n)}if(n!==e){n.toString=()=>e.toString()}return n}));n[s]=i}return n}function ensureEntranceObjects(e){for(const t of Object.keys(e)){if(shouldIgnoreKey(t))continue;const r=e[t];if(typeof r==="function"){e[t]={enter:r}}}}function ensureCallbackArrays(e){if(e.enter&&!Array.isArray(e.enter))e.enter=[e.enter];if(e.exit&&!Array.isArray(e.exit))e.exit=[e.exit]}function wrapCheck(e,t){const r=`is${e}`;const n=s[r];const newFn=function(e){if(n.call(e)){return t.apply(this,arguments)}};newFn.toString=()=>t.toString();return newFn}function shouldIgnoreKey(e){if(e[0]==="_")return true;if(e==="enter"||e==="exit"||e==="shouldSkip")return true;if(e==="denylist"||e==="noScope"||e==="skipKeys"){return true}{if(e==="blacklist"){return true}}return false}function mergePair(e,t){for(const r of["enter","exit"]){if(!t[r])continue;e[r]=[].concat(e[r]||[],t[r])}}const d={FunctionParent(e){if(e.isArrowFunctionExpression())return;e.skip();if(e.isMethod()){if(!e.requeueComputedKeyAndDecorators){a.requeueComputedKeyAndDecorators.call(e)}else{e.requeueComputedKeyAndDecorators()}}},Property(e){if(e.isObjectProperty())return;e.skip();if(!e.requeueComputedKeyAndDecorators){a.requeueComputedKeyAndDecorators.call(e)}else{e.requeueComputedKeyAndDecorators()}}};function environmentVisitor(e){return merge([d,e])}},2856:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=assertNode;var n=r(6087);function assertNode(e){if(!(0,n.default)(e)){var t;const r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}},1501:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertAccessor=assertAccessor;t.assertAnyTypeAnnotation=assertAnyTypeAnnotation;t.assertArgumentPlaceholder=assertArgumentPlaceholder;t.assertArrayExpression=assertArrayExpression;t.assertArrayPattern=assertArrayPattern;t.assertArrayTypeAnnotation=assertArrayTypeAnnotation;t.assertArrowFunctionExpression=assertArrowFunctionExpression;t.assertAssignmentExpression=assertAssignmentExpression;t.assertAssignmentPattern=assertAssignmentPattern;t.assertAwaitExpression=assertAwaitExpression;t.assertBigIntLiteral=assertBigIntLiteral;t.assertBinary=assertBinary;t.assertBinaryExpression=assertBinaryExpression;t.assertBindExpression=assertBindExpression;t.assertBlock=assertBlock;t.assertBlockParent=assertBlockParent;t.assertBlockStatement=assertBlockStatement;t.assertBooleanLiteral=assertBooleanLiteral;t.assertBooleanLiteralTypeAnnotation=assertBooleanLiteralTypeAnnotation;t.assertBooleanTypeAnnotation=assertBooleanTypeAnnotation;t.assertBreakStatement=assertBreakStatement;t.assertCallExpression=assertCallExpression;t.assertCatchClause=assertCatchClause;t.assertClass=assertClass;t.assertClassAccessorProperty=assertClassAccessorProperty;t.assertClassBody=assertClassBody;t.assertClassDeclaration=assertClassDeclaration;t.assertClassExpression=assertClassExpression;t.assertClassImplements=assertClassImplements;t.assertClassMethod=assertClassMethod;t.assertClassPrivateMethod=assertClassPrivateMethod;t.assertClassPrivateProperty=assertClassPrivateProperty;t.assertClassProperty=assertClassProperty;t.assertCompletionStatement=assertCompletionStatement;t.assertConditional=assertConditional;t.assertConditionalExpression=assertConditionalExpression;t.assertContinueStatement=assertContinueStatement;t.assertDebuggerStatement=assertDebuggerStatement;t.assertDecimalLiteral=assertDecimalLiteral;t.assertDeclaration=assertDeclaration;t.assertDeclareClass=assertDeclareClass;t.assertDeclareExportAllDeclaration=assertDeclareExportAllDeclaration;t.assertDeclareExportDeclaration=assertDeclareExportDeclaration;t.assertDeclareFunction=assertDeclareFunction;t.assertDeclareInterface=assertDeclareInterface;t.assertDeclareModule=assertDeclareModule;t.assertDeclareModuleExports=assertDeclareModuleExports;t.assertDeclareOpaqueType=assertDeclareOpaqueType;t.assertDeclareTypeAlias=assertDeclareTypeAlias;t.assertDeclareVariable=assertDeclareVariable;t.assertDeclaredPredicate=assertDeclaredPredicate;t.assertDecorator=assertDecorator;t.assertDirective=assertDirective;t.assertDirectiveLiteral=assertDirectiveLiteral;t.assertDoExpression=assertDoExpression;t.assertDoWhileStatement=assertDoWhileStatement;t.assertEmptyStatement=assertEmptyStatement;t.assertEmptyTypeAnnotation=assertEmptyTypeAnnotation;t.assertEnumBody=assertEnumBody;t.assertEnumBooleanBody=assertEnumBooleanBody;t.assertEnumBooleanMember=assertEnumBooleanMember;t.assertEnumDeclaration=assertEnumDeclaration;t.assertEnumDefaultedMember=assertEnumDefaultedMember;t.assertEnumMember=assertEnumMember;t.assertEnumNumberBody=assertEnumNumberBody;t.assertEnumNumberMember=assertEnumNumberMember;t.assertEnumStringBody=assertEnumStringBody;t.assertEnumStringMember=assertEnumStringMember;t.assertEnumSymbolBody=assertEnumSymbolBody;t.assertExistsTypeAnnotation=assertExistsTypeAnnotation;t.assertExportAllDeclaration=assertExportAllDeclaration;t.assertExportDeclaration=assertExportDeclaration;t.assertExportDefaultDeclaration=assertExportDefaultDeclaration;t.assertExportDefaultSpecifier=assertExportDefaultSpecifier;t.assertExportNamedDeclaration=assertExportNamedDeclaration;t.assertExportNamespaceSpecifier=assertExportNamespaceSpecifier;t.assertExportSpecifier=assertExportSpecifier;t.assertExpression=assertExpression;t.assertExpressionStatement=assertExpressionStatement;t.assertExpressionWrapper=assertExpressionWrapper;t.assertFile=assertFile;t.assertFlow=assertFlow;t.assertFlowBaseAnnotation=assertFlowBaseAnnotation;t.assertFlowDeclaration=assertFlowDeclaration;t.assertFlowPredicate=assertFlowPredicate;t.assertFlowType=assertFlowType;t.assertFor=assertFor;t.assertForInStatement=assertForInStatement;t.assertForOfStatement=assertForOfStatement;t.assertForStatement=assertForStatement;t.assertForXStatement=assertForXStatement;t.assertFunction=assertFunction;t.assertFunctionDeclaration=assertFunctionDeclaration;t.assertFunctionExpression=assertFunctionExpression;t.assertFunctionParent=assertFunctionParent;t.assertFunctionTypeAnnotation=assertFunctionTypeAnnotation;t.assertFunctionTypeParam=assertFunctionTypeParam;t.assertGenericTypeAnnotation=assertGenericTypeAnnotation;t.assertIdentifier=assertIdentifier;t.assertIfStatement=assertIfStatement;t.assertImmutable=assertImmutable;t.assertImport=assertImport;t.assertImportAttribute=assertImportAttribute;t.assertImportDeclaration=assertImportDeclaration;t.assertImportDefaultSpecifier=assertImportDefaultSpecifier;t.assertImportExpression=assertImportExpression;t.assertImportNamespaceSpecifier=assertImportNamespaceSpecifier;t.assertImportOrExportDeclaration=assertImportOrExportDeclaration;t.assertImportSpecifier=assertImportSpecifier;t.assertIndexedAccessType=assertIndexedAccessType;t.assertInferredPredicate=assertInferredPredicate;t.assertInterfaceDeclaration=assertInterfaceDeclaration;t.assertInterfaceExtends=assertInterfaceExtends;t.assertInterfaceTypeAnnotation=assertInterfaceTypeAnnotation;t.assertInterpreterDirective=assertInterpreterDirective;t.assertIntersectionTypeAnnotation=assertIntersectionTypeAnnotation;t.assertJSX=assertJSX;t.assertJSXAttribute=assertJSXAttribute;t.assertJSXClosingElement=assertJSXClosingElement;t.assertJSXClosingFragment=assertJSXClosingFragment;t.assertJSXElement=assertJSXElement;t.assertJSXEmptyExpression=assertJSXEmptyExpression;t.assertJSXExpressionContainer=assertJSXExpressionContainer;t.assertJSXFragment=assertJSXFragment;t.assertJSXIdentifier=assertJSXIdentifier;t.assertJSXMemberExpression=assertJSXMemberExpression;t.assertJSXNamespacedName=assertJSXNamespacedName;t.assertJSXOpeningElement=assertJSXOpeningElement;t.assertJSXOpeningFragment=assertJSXOpeningFragment;t.assertJSXSpreadAttribute=assertJSXSpreadAttribute;t.assertJSXSpreadChild=assertJSXSpreadChild;t.assertJSXText=assertJSXText;t.assertLVal=assertLVal;t.assertLabeledStatement=assertLabeledStatement;t.assertLiteral=assertLiteral;t.assertLogicalExpression=assertLogicalExpression;t.assertLoop=assertLoop;t.assertMemberExpression=assertMemberExpression;t.assertMetaProperty=assertMetaProperty;t.assertMethod=assertMethod;t.assertMiscellaneous=assertMiscellaneous;t.assertMixedTypeAnnotation=assertMixedTypeAnnotation;t.assertModuleDeclaration=assertModuleDeclaration;t.assertModuleExpression=assertModuleExpression;t.assertModuleSpecifier=assertModuleSpecifier;t.assertNewExpression=assertNewExpression;t.assertNoop=assertNoop;t.assertNullLiteral=assertNullLiteral;t.assertNullLiteralTypeAnnotation=assertNullLiteralTypeAnnotation;t.assertNullableTypeAnnotation=assertNullableTypeAnnotation;t.assertNumberLiteral=assertNumberLiteral;t.assertNumberLiteralTypeAnnotation=assertNumberLiteralTypeAnnotation;t.assertNumberTypeAnnotation=assertNumberTypeAnnotation;t.assertNumericLiteral=assertNumericLiteral;t.assertObjectExpression=assertObjectExpression;t.assertObjectMember=assertObjectMember;t.assertObjectMethod=assertObjectMethod;t.assertObjectPattern=assertObjectPattern;t.assertObjectProperty=assertObjectProperty;t.assertObjectTypeAnnotation=assertObjectTypeAnnotation;t.assertObjectTypeCallProperty=assertObjectTypeCallProperty;t.assertObjectTypeIndexer=assertObjectTypeIndexer;t.assertObjectTypeInternalSlot=assertObjectTypeInternalSlot;t.assertObjectTypeProperty=assertObjectTypeProperty;t.assertObjectTypeSpreadProperty=assertObjectTypeSpreadProperty;t.assertOpaqueType=assertOpaqueType;t.assertOptionalCallExpression=assertOptionalCallExpression;t.assertOptionalIndexedAccessType=assertOptionalIndexedAccessType;t.assertOptionalMemberExpression=assertOptionalMemberExpression;t.assertParenthesizedExpression=assertParenthesizedExpression;t.assertPattern=assertPattern;t.assertPatternLike=assertPatternLike;t.assertPipelineBareFunction=assertPipelineBareFunction;t.assertPipelinePrimaryTopicReference=assertPipelinePrimaryTopicReference;t.assertPipelineTopicExpression=assertPipelineTopicExpression;t.assertPlaceholder=assertPlaceholder;t.assertPrivate=assertPrivate;t.assertPrivateName=assertPrivateName;t.assertProgram=assertProgram;t.assertProperty=assertProperty;t.assertPureish=assertPureish;t.assertQualifiedTypeIdentifier=assertQualifiedTypeIdentifier;t.assertRecordExpression=assertRecordExpression;t.assertRegExpLiteral=assertRegExpLiteral;t.assertRegexLiteral=assertRegexLiteral;t.assertRestElement=assertRestElement;t.assertRestProperty=assertRestProperty;t.assertReturnStatement=assertReturnStatement;t.assertScopable=assertScopable;t.assertSequenceExpression=assertSequenceExpression;t.assertSpreadElement=assertSpreadElement;t.assertSpreadProperty=assertSpreadProperty;t.assertStandardized=assertStandardized;t.assertStatement=assertStatement;t.assertStaticBlock=assertStaticBlock;t.assertStringLiteral=assertStringLiteral;t.assertStringLiteralTypeAnnotation=assertStringLiteralTypeAnnotation;t.assertStringTypeAnnotation=assertStringTypeAnnotation;t.assertSuper=assertSuper;t.assertSwitchCase=assertSwitchCase;t.assertSwitchStatement=assertSwitchStatement;t.assertSymbolTypeAnnotation=assertSymbolTypeAnnotation;t.assertTSAnyKeyword=assertTSAnyKeyword;t.assertTSArrayType=assertTSArrayType;t.assertTSAsExpression=assertTSAsExpression;t.assertTSBaseType=assertTSBaseType;t.assertTSBigIntKeyword=assertTSBigIntKeyword;t.assertTSBooleanKeyword=assertTSBooleanKeyword;t.assertTSCallSignatureDeclaration=assertTSCallSignatureDeclaration;t.assertTSConditionalType=assertTSConditionalType;t.assertTSConstructSignatureDeclaration=assertTSConstructSignatureDeclaration;t.assertTSConstructorType=assertTSConstructorType;t.assertTSDeclareFunction=assertTSDeclareFunction;t.assertTSDeclareMethod=assertTSDeclareMethod;t.assertTSEntityName=assertTSEntityName;t.assertTSEnumBody=assertTSEnumBody;t.assertTSEnumDeclaration=assertTSEnumDeclaration;t.assertTSEnumMember=assertTSEnumMember;t.assertTSExportAssignment=assertTSExportAssignment;t.assertTSExpressionWithTypeArguments=assertTSExpressionWithTypeArguments;t.assertTSExternalModuleReference=assertTSExternalModuleReference;t.assertTSFunctionType=assertTSFunctionType;t.assertTSImportEqualsDeclaration=assertTSImportEqualsDeclaration;t.assertTSImportType=assertTSImportType;t.assertTSIndexSignature=assertTSIndexSignature;t.assertTSIndexedAccessType=assertTSIndexedAccessType;t.assertTSInferType=assertTSInferType;t.assertTSInstantiationExpression=assertTSInstantiationExpression;t.assertTSInterfaceBody=assertTSInterfaceBody;t.assertTSInterfaceDeclaration=assertTSInterfaceDeclaration;t.assertTSIntersectionType=assertTSIntersectionType;t.assertTSIntrinsicKeyword=assertTSIntrinsicKeyword;t.assertTSLiteralType=assertTSLiteralType;t.assertTSMappedType=assertTSMappedType;t.assertTSMethodSignature=assertTSMethodSignature;t.assertTSModuleBlock=assertTSModuleBlock;t.assertTSModuleDeclaration=assertTSModuleDeclaration;t.assertTSNamedTupleMember=assertTSNamedTupleMember;t.assertTSNamespaceExportDeclaration=assertTSNamespaceExportDeclaration;t.assertTSNeverKeyword=assertTSNeverKeyword;t.assertTSNonNullExpression=assertTSNonNullExpression;t.assertTSNullKeyword=assertTSNullKeyword;t.assertTSNumberKeyword=assertTSNumberKeyword;t.assertTSObjectKeyword=assertTSObjectKeyword;t.assertTSOptionalType=assertTSOptionalType;t.assertTSParameterProperty=assertTSParameterProperty;t.assertTSParenthesizedType=assertTSParenthesizedType;t.assertTSPropertySignature=assertTSPropertySignature;t.assertTSQualifiedName=assertTSQualifiedName;t.assertTSRestType=assertTSRestType;t.assertTSSatisfiesExpression=assertTSSatisfiesExpression;t.assertTSStringKeyword=assertTSStringKeyword;t.assertTSSymbolKeyword=assertTSSymbolKeyword;t.assertTSTemplateLiteralType=assertTSTemplateLiteralType;t.assertTSThisType=assertTSThisType;t.assertTSTupleType=assertTSTupleType;t.assertTSType=assertTSType;t.assertTSTypeAliasDeclaration=assertTSTypeAliasDeclaration;t.assertTSTypeAnnotation=assertTSTypeAnnotation;t.assertTSTypeAssertion=assertTSTypeAssertion;t.assertTSTypeElement=assertTSTypeElement;t.assertTSTypeLiteral=assertTSTypeLiteral;t.assertTSTypeOperator=assertTSTypeOperator;t.assertTSTypeParameter=assertTSTypeParameter;t.assertTSTypeParameterDeclaration=assertTSTypeParameterDeclaration;t.assertTSTypeParameterInstantiation=assertTSTypeParameterInstantiation;t.assertTSTypePredicate=assertTSTypePredicate;t.assertTSTypeQuery=assertTSTypeQuery;t.assertTSTypeReference=assertTSTypeReference;t.assertTSUndefinedKeyword=assertTSUndefinedKeyword;t.assertTSUnionType=assertTSUnionType;t.assertTSUnknownKeyword=assertTSUnknownKeyword;t.assertTSVoidKeyword=assertTSVoidKeyword;t.assertTaggedTemplateExpression=assertTaggedTemplateExpression;t.assertTemplateElement=assertTemplateElement;t.assertTemplateLiteral=assertTemplateLiteral;t.assertTerminatorless=assertTerminatorless;t.assertThisExpression=assertThisExpression;t.assertThisTypeAnnotation=assertThisTypeAnnotation;t.assertThrowStatement=assertThrowStatement;t.assertTopicReference=assertTopicReference;t.assertTryStatement=assertTryStatement;t.assertTupleExpression=assertTupleExpression;t.assertTupleTypeAnnotation=assertTupleTypeAnnotation;t.assertTypeAlias=assertTypeAlias;t.assertTypeAnnotation=assertTypeAnnotation;t.assertTypeCastExpression=assertTypeCastExpression;t.assertTypeParameter=assertTypeParameter;t.assertTypeParameterDeclaration=assertTypeParameterDeclaration;t.assertTypeParameterInstantiation=assertTypeParameterInstantiation;t.assertTypeScript=assertTypeScript;t.assertTypeofTypeAnnotation=assertTypeofTypeAnnotation;t.assertUnaryExpression=assertUnaryExpression;t.assertUnaryLike=assertUnaryLike;t.assertUnionTypeAnnotation=assertUnionTypeAnnotation;t.assertUpdateExpression=assertUpdateExpression;t.assertUserWhitespacable=assertUserWhitespacable;t.assertV8IntrinsicIdentifier=assertV8IntrinsicIdentifier;t.assertVariableDeclaration=assertVariableDeclaration;t.assertVariableDeclarator=assertVariableDeclarator;t.assertVariance=assertVariance;t.assertVoidTypeAnnotation=assertVoidTypeAnnotation;t.assertWhile=assertWhile;t.assertWhileStatement=assertWhileStatement;t.assertWithStatement=assertWithStatement;t.assertYieldExpression=assertYieldExpression;var n=r(7670);var s=r(8760);function assert(e,t,r){if(!(0,n.default)(e,t,r)){throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, `+`but instead got "${t.type}".`)}}function assertArrayExpression(e,t){assert("ArrayExpression",e,t)}function assertAssignmentExpression(e,t){assert("AssignmentExpression",e,t)}function assertBinaryExpression(e,t){assert("BinaryExpression",e,t)}function assertInterpreterDirective(e,t){assert("InterpreterDirective",e,t)}function assertDirective(e,t){assert("Directive",e,t)}function assertDirectiveLiteral(e,t){assert("DirectiveLiteral",e,t)}function assertBlockStatement(e,t){assert("BlockStatement",e,t)}function assertBreakStatement(e,t){assert("BreakStatement",e,t)}function assertCallExpression(e,t){assert("CallExpression",e,t)}function assertCatchClause(e,t){assert("CatchClause",e,t)}function assertConditionalExpression(e,t){assert("ConditionalExpression",e,t)}function assertContinueStatement(e,t){assert("ContinueStatement",e,t)}function assertDebuggerStatement(e,t){assert("DebuggerStatement",e,t)}function assertDoWhileStatement(e,t){assert("DoWhileStatement",e,t)}function assertEmptyStatement(e,t){assert("EmptyStatement",e,t)}function assertExpressionStatement(e,t){assert("ExpressionStatement",e,t)}function assertFile(e,t){assert("File",e,t)}function assertForInStatement(e,t){assert("ForInStatement",e,t)}function assertForStatement(e,t){assert("ForStatement",e,t)}function assertFunctionDeclaration(e,t){assert("FunctionDeclaration",e,t)}function assertFunctionExpression(e,t){assert("FunctionExpression",e,t)}function assertIdentifier(e,t){assert("Identifier",e,t)}function assertIfStatement(e,t){assert("IfStatement",e,t)}function assertLabeledStatement(e,t){assert("LabeledStatement",e,t)}function assertStringLiteral(e,t){assert("StringLiteral",e,t)}function assertNumericLiteral(e,t){assert("NumericLiteral",e,t)}function assertNullLiteral(e,t){assert("NullLiteral",e,t)}function assertBooleanLiteral(e,t){assert("BooleanLiteral",e,t)}function assertRegExpLiteral(e,t){assert("RegExpLiteral",e,t)}function assertLogicalExpression(e,t){assert("LogicalExpression",e,t)}function assertMemberExpression(e,t){assert("MemberExpression",e,t)}function assertNewExpression(e,t){assert("NewExpression",e,t)}function assertProgram(e,t){assert("Program",e,t)}function assertObjectExpression(e,t){assert("ObjectExpression",e,t)}function assertObjectMethod(e,t){assert("ObjectMethod",e,t)}function assertObjectProperty(e,t){assert("ObjectProperty",e,t)}function assertRestElement(e,t){assert("RestElement",e,t)}function assertReturnStatement(e,t){assert("ReturnStatement",e,t)}function assertSequenceExpression(e,t){assert("SequenceExpression",e,t)}function assertParenthesizedExpression(e,t){assert("ParenthesizedExpression",e,t)}function assertSwitchCase(e,t){assert("SwitchCase",e,t)}function assertSwitchStatement(e,t){assert("SwitchStatement",e,t)}function assertThisExpression(e,t){assert("ThisExpression",e,t)}function assertThrowStatement(e,t){assert("ThrowStatement",e,t)}function assertTryStatement(e,t){assert("TryStatement",e,t)}function assertUnaryExpression(e,t){assert("UnaryExpression",e,t)}function assertUpdateExpression(e,t){assert("UpdateExpression",e,t)}function assertVariableDeclaration(e,t){assert("VariableDeclaration",e,t)}function assertVariableDeclarator(e,t){assert("VariableDeclarator",e,t)}function assertWhileStatement(e,t){assert("WhileStatement",e,t)}function assertWithStatement(e,t){assert("WithStatement",e,t)}function assertAssignmentPattern(e,t){assert("AssignmentPattern",e,t)}function assertArrayPattern(e,t){assert("ArrayPattern",e,t)}function assertArrowFunctionExpression(e,t){assert("ArrowFunctionExpression",e,t)}function assertClassBody(e,t){assert("ClassBody",e,t)}function assertClassExpression(e,t){assert("ClassExpression",e,t)}function assertClassDeclaration(e,t){assert("ClassDeclaration",e,t)}function assertExportAllDeclaration(e,t){assert("ExportAllDeclaration",e,t)}function assertExportDefaultDeclaration(e,t){assert("ExportDefaultDeclaration",e,t)}function assertExportNamedDeclaration(e,t){assert("ExportNamedDeclaration",e,t)}function assertExportSpecifier(e,t){assert("ExportSpecifier",e,t)}function assertForOfStatement(e,t){assert("ForOfStatement",e,t)}function assertImportDeclaration(e,t){assert("ImportDeclaration",e,t)}function assertImportDefaultSpecifier(e,t){assert("ImportDefaultSpecifier",e,t)}function assertImportNamespaceSpecifier(e,t){assert("ImportNamespaceSpecifier",e,t)}function assertImportSpecifier(e,t){assert("ImportSpecifier",e,t)}function assertImportExpression(e,t){assert("ImportExpression",e,t)}function assertMetaProperty(e,t){assert("MetaProperty",e,t)}function assertClassMethod(e,t){assert("ClassMethod",e,t)}function assertObjectPattern(e,t){assert("ObjectPattern",e,t)}function assertSpreadElement(e,t){assert("SpreadElement",e,t)}function assertSuper(e,t){assert("Super",e,t)}function assertTaggedTemplateExpression(e,t){assert("TaggedTemplateExpression",e,t)}function assertTemplateElement(e,t){assert("TemplateElement",e,t)}function assertTemplateLiteral(e,t){assert("TemplateLiteral",e,t)}function assertYieldExpression(e,t){assert("YieldExpression",e,t)}function assertAwaitExpression(e,t){assert("AwaitExpression",e,t)}function assertImport(e,t){assert("Import",e,t)}function assertBigIntLiteral(e,t){assert("BigIntLiteral",e,t)}function assertExportNamespaceSpecifier(e,t){assert("ExportNamespaceSpecifier",e,t)}function assertOptionalMemberExpression(e,t){assert("OptionalMemberExpression",e,t)}function assertOptionalCallExpression(e,t){assert("OptionalCallExpression",e,t)}function assertClassProperty(e,t){assert("ClassProperty",e,t)}function assertClassAccessorProperty(e,t){assert("ClassAccessorProperty",e,t)}function assertClassPrivateProperty(e,t){assert("ClassPrivateProperty",e,t)}function assertClassPrivateMethod(e,t){assert("ClassPrivateMethod",e,t)}function assertPrivateName(e,t){assert("PrivateName",e,t)}function assertStaticBlock(e,t){assert("StaticBlock",e,t)}function assertImportAttribute(e,t){assert("ImportAttribute",e,t)}function assertAnyTypeAnnotation(e,t){assert("AnyTypeAnnotation",e,t)}function assertArrayTypeAnnotation(e,t){assert("ArrayTypeAnnotation",e,t)}function assertBooleanTypeAnnotation(e,t){assert("BooleanTypeAnnotation",e,t)}function assertBooleanLiteralTypeAnnotation(e,t){assert("BooleanLiteralTypeAnnotation",e,t)}function assertNullLiteralTypeAnnotation(e,t){assert("NullLiteralTypeAnnotation",e,t)}function assertClassImplements(e,t){assert("ClassImplements",e,t)}function assertDeclareClass(e,t){assert("DeclareClass",e,t)}function assertDeclareFunction(e,t){assert("DeclareFunction",e,t)}function assertDeclareInterface(e,t){assert("DeclareInterface",e,t)}function assertDeclareModule(e,t){assert("DeclareModule",e,t)}function assertDeclareModuleExports(e,t){assert("DeclareModuleExports",e,t)}function assertDeclareTypeAlias(e,t){assert("DeclareTypeAlias",e,t)}function assertDeclareOpaqueType(e,t){assert("DeclareOpaqueType",e,t)}function assertDeclareVariable(e,t){assert("DeclareVariable",e,t)}function assertDeclareExportDeclaration(e,t){assert("DeclareExportDeclaration",e,t)}function assertDeclareExportAllDeclaration(e,t){assert("DeclareExportAllDeclaration",e,t)}function assertDeclaredPredicate(e,t){assert("DeclaredPredicate",e,t)}function assertExistsTypeAnnotation(e,t){assert("ExistsTypeAnnotation",e,t)}function assertFunctionTypeAnnotation(e,t){assert("FunctionTypeAnnotation",e,t)}function assertFunctionTypeParam(e,t){assert("FunctionTypeParam",e,t)}function assertGenericTypeAnnotation(e,t){assert("GenericTypeAnnotation",e,t)}function assertInferredPredicate(e,t){assert("InferredPredicate",e,t)}function assertInterfaceExtends(e,t){assert("InterfaceExtends",e,t)}function assertInterfaceDeclaration(e,t){assert("InterfaceDeclaration",e,t)}function assertInterfaceTypeAnnotation(e,t){assert("InterfaceTypeAnnotation",e,t)}function assertIntersectionTypeAnnotation(e,t){assert("IntersectionTypeAnnotation",e,t)}function assertMixedTypeAnnotation(e,t){assert("MixedTypeAnnotation",e,t)}function assertEmptyTypeAnnotation(e,t){assert("EmptyTypeAnnotation",e,t)}function assertNullableTypeAnnotation(e,t){assert("NullableTypeAnnotation",e,t)}function assertNumberLiteralTypeAnnotation(e,t){assert("NumberLiteralTypeAnnotation",e,t)}function assertNumberTypeAnnotation(e,t){assert("NumberTypeAnnotation",e,t)}function assertObjectTypeAnnotation(e,t){assert("ObjectTypeAnnotation",e,t)}function assertObjectTypeInternalSlot(e,t){assert("ObjectTypeInternalSlot",e,t)}function assertObjectTypeCallProperty(e,t){assert("ObjectTypeCallProperty",e,t)}function assertObjectTypeIndexer(e,t){assert("ObjectTypeIndexer",e,t)}function assertObjectTypeProperty(e,t){assert("ObjectTypeProperty",e,t)}function assertObjectTypeSpreadProperty(e,t){assert("ObjectTypeSpreadProperty",e,t)}function assertOpaqueType(e,t){assert("OpaqueType",e,t)}function assertQualifiedTypeIdentifier(e,t){assert("QualifiedTypeIdentifier",e,t)}function assertStringLiteralTypeAnnotation(e,t){assert("StringLiteralTypeAnnotation",e,t)}function assertStringTypeAnnotation(e,t){assert("StringTypeAnnotation",e,t)}function assertSymbolTypeAnnotation(e,t){assert("SymbolTypeAnnotation",e,t)}function assertThisTypeAnnotation(e,t){assert("ThisTypeAnnotation",e,t)}function assertTupleTypeAnnotation(e,t){assert("TupleTypeAnnotation",e,t)}function assertTypeofTypeAnnotation(e,t){assert("TypeofTypeAnnotation",e,t)}function assertTypeAlias(e,t){assert("TypeAlias",e,t)}function assertTypeAnnotation(e,t){assert("TypeAnnotation",e,t)}function assertTypeCastExpression(e,t){assert("TypeCastExpression",e,t)}function assertTypeParameter(e,t){assert("TypeParameter",e,t)}function assertTypeParameterDeclaration(e,t){assert("TypeParameterDeclaration",e,t)}function assertTypeParameterInstantiation(e,t){assert("TypeParameterInstantiation",e,t)}function assertUnionTypeAnnotation(e,t){assert("UnionTypeAnnotation",e,t)}function assertVariance(e,t){assert("Variance",e,t)}function assertVoidTypeAnnotation(e,t){assert("VoidTypeAnnotation",e,t)}function assertEnumDeclaration(e,t){assert("EnumDeclaration",e,t)}function assertEnumBooleanBody(e,t){assert("EnumBooleanBody",e,t)}function assertEnumNumberBody(e,t){assert("EnumNumberBody",e,t)}function assertEnumStringBody(e,t){assert("EnumStringBody",e,t)}function assertEnumSymbolBody(e,t){assert("EnumSymbolBody",e,t)}function assertEnumBooleanMember(e,t){assert("EnumBooleanMember",e,t)}function assertEnumNumberMember(e,t){assert("EnumNumberMember",e,t)}function assertEnumStringMember(e,t){assert("EnumStringMember",e,t)}function assertEnumDefaultedMember(e,t){assert("EnumDefaultedMember",e,t)}function assertIndexedAccessType(e,t){assert("IndexedAccessType",e,t)}function assertOptionalIndexedAccessType(e,t){assert("OptionalIndexedAccessType",e,t)}function assertJSXAttribute(e,t){assert("JSXAttribute",e,t)}function assertJSXClosingElement(e,t){assert("JSXClosingElement",e,t)}function assertJSXElement(e,t){assert("JSXElement",e,t)}function assertJSXEmptyExpression(e,t){assert("JSXEmptyExpression",e,t)}function assertJSXExpressionContainer(e,t){assert("JSXExpressionContainer",e,t)}function assertJSXSpreadChild(e,t){assert("JSXSpreadChild",e,t)}function assertJSXIdentifier(e,t){assert("JSXIdentifier",e,t)}function assertJSXMemberExpression(e,t){assert("JSXMemberExpression",e,t)}function assertJSXNamespacedName(e,t){assert("JSXNamespacedName",e,t)}function assertJSXOpeningElement(e,t){assert("JSXOpeningElement",e,t)}function assertJSXSpreadAttribute(e,t){assert("JSXSpreadAttribute",e,t)}function assertJSXText(e,t){assert("JSXText",e,t)}function assertJSXFragment(e,t){assert("JSXFragment",e,t)}function assertJSXOpeningFragment(e,t){assert("JSXOpeningFragment",e,t)}function assertJSXClosingFragment(e,t){assert("JSXClosingFragment",e,t)}function assertNoop(e,t){assert("Noop",e,t)}function assertPlaceholder(e,t){assert("Placeholder",e,t)}function assertV8IntrinsicIdentifier(e,t){assert("V8IntrinsicIdentifier",e,t)}function assertArgumentPlaceholder(e,t){assert("ArgumentPlaceholder",e,t)}function assertBindExpression(e,t){assert("BindExpression",e,t)}function assertDecorator(e,t){assert("Decorator",e,t)}function assertDoExpression(e,t){assert("DoExpression",e,t)}function assertExportDefaultSpecifier(e,t){assert("ExportDefaultSpecifier",e,t)}function assertRecordExpression(e,t){assert("RecordExpression",e,t)}function assertTupleExpression(e,t){assert("TupleExpression",e,t)}function assertDecimalLiteral(e,t){assert("DecimalLiteral",e,t)}function assertModuleExpression(e,t){assert("ModuleExpression",e,t)}function assertTopicReference(e,t){assert("TopicReference",e,t)}function assertPipelineTopicExpression(e,t){assert("PipelineTopicExpression",e,t)}function assertPipelineBareFunction(e,t){assert("PipelineBareFunction",e,t)}function assertPipelinePrimaryTopicReference(e,t){assert("PipelinePrimaryTopicReference",e,t)}function assertTSParameterProperty(e,t){assert("TSParameterProperty",e,t)}function assertTSDeclareFunction(e,t){assert("TSDeclareFunction",e,t)}function assertTSDeclareMethod(e,t){assert("TSDeclareMethod",e,t)}function assertTSQualifiedName(e,t){assert("TSQualifiedName",e,t)}function assertTSCallSignatureDeclaration(e,t){assert("TSCallSignatureDeclaration",e,t)}function assertTSConstructSignatureDeclaration(e,t){assert("TSConstructSignatureDeclaration",e,t)}function assertTSPropertySignature(e,t){assert("TSPropertySignature",e,t)}function assertTSMethodSignature(e,t){assert("TSMethodSignature",e,t)}function assertTSIndexSignature(e,t){assert("TSIndexSignature",e,t)}function assertTSAnyKeyword(e,t){assert("TSAnyKeyword",e,t)}function assertTSBooleanKeyword(e,t){assert("TSBooleanKeyword",e,t)}function assertTSBigIntKeyword(e,t){assert("TSBigIntKeyword",e,t)}function assertTSIntrinsicKeyword(e,t){assert("TSIntrinsicKeyword",e,t)}function assertTSNeverKeyword(e,t){assert("TSNeverKeyword",e,t)}function assertTSNullKeyword(e,t){assert("TSNullKeyword",e,t)}function assertTSNumberKeyword(e,t){assert("TSNumberKeyword",e,t)}function assertTSObjectKeyword(e,t){assert("TSObjectKeyword",e,t)}function assertTSStringKeyword(e,t){assert("TSStringKeyword",e,t)}function assertTSSymbolKeyword(e,t){assert("TSSymbolKeyword",e,t)}function assertTSUndefinedKeyword(e,t){assert("TSUndefinedKeyword",e,t)}function assertTSUnknownKeyword(e,t){assert("TSUnknownKeyword",e,t)}function assertTSVoidKeyword(e,t){assert("TSVoidKeyword",e,t)}function assertTSThisType(e,t){assert("TSThisType",e,t)}function assertTSFunctionType(e,t){assert("TSFunctionType",e,t)}function assertTSConstructorType(e,t){assert("TSConstructorType",e,t)}function assertTSTypeReference(e,t){assert("TSTypeReference",e,t)}function assertTSTypePredicate(e,t){assert("TSTypePredicate",e,t)}function assertTSTypeQuery(e,t){assert("TSTypeQuery",e,t)}function assertTSTypeLiteral(e,t){assert("TSTypeLiteral",e,t)}function assertTSArrayType(e,t){assert("TSArrayType",e,t)}function assertTSTupleType(e,t){assert("TSTupleType",e,t)}function assertTSOptionalType(e,t){assert("TSOptionalType",e,t)}function assertTSRestType(e,t){assert("TSRestType",e,t)}function assertTSNamedTupleMember(e,t){assert("TSNamedTupleMember",e,t)}function assertTSUnionType(e,t){assert("TSUnionType",e,t)}function assertTSIntersectionType(e,t){assert("TSIntersectionType",e,t)}function assertTSConditionalType(e,t){assert("TSConditionalType",e,t)}function assertTSInferType(e,t){assert("TSInferType",e,t)}function assertTSParenthesizedType(e,t){assert("TSParenthesizedType",e,t)}function assertTSTypeOperator(e,t){assert("TSTypeOperator",e,t)}function assertTSIndexedAccessType(e,t){assert("TSIndexedAccessType",e,t)}function assertTSMappedType(e,t){assert("TSMappedType",e,t)}function assertTSTemplateLiteralType(e,t){assert("TSTemplateLiteralType",e,t)}function assertTSLiteralType(e,t){assert("TSLiteralType",e,t)}function assertTSExpressionWithTypeArguments(e,t){assert("TSExpressionWithTypeArguments",e,t)}function assertTSInterfaceDeclaration(e,t){assert("TSInterfaceDeclaration",e,t)}function assertTSInterfaceBody(e,t){assert("TSInterfaceBody",e,t)}function assertTSTypeAliasDeclaration(e,t){assert("TSTypeAliasDeclaration",e,t)}function assertTSInstantiationExpression(e,t){assert("TSInstantiationExpression",e,t)}function assertTSAsExpression(e,t){assert("TSAsExpression",e,t)}function assertTSSatisfiesExpression(e,t){assert("TSSatisfiesExpression",e,t)}function assertTSTypeAssertion(e,t){assert("TSTypeAssertion",e,t)}function assertTSEnumBody(e,t){assert("TSEnumBody",e,t)}function assertTSEnumDeclaration(e,t){assert("TSEnumDeclaration",e,t)}function assertTSEnumMember(e,t){assert("TSEnumMember",e,t)}function assertTSModuleDeclaration(e,t){assert("TSModuleDeclaration",e,t)}function assertTSModuleBlock(e,t){assert("TSModuleBlock",e,t)}function assertTSImportType(e,t){assert("TSImportType",e,t)}function assertTSImportEqualsDeclaration(e,t){assert("TSImportEqualsDeclaration",e,t)}function assertTSExternalModuleReference(e,t){assert("TSExternalModuleReference",e,t)}function assertTSNonNullExpression(e,t){assert("TSNonNullExpression",e,t)}function assertTSExportAssignment(e,t){assert("TSExportAssignment",e,t)}function assertTSNamespaceExportDeclaration(e,t){assert("TSNamespaceExportDeclaration",e,t)}function assertTSTypeAnnotation(e,t){assert("TSTypeAnnotation",e,t)}function assertTSTypeParameterInstantiation(e,t){assert("TSTypeParameterInstantiation",e,t)}function assertTSTypeParameterDeclaration(e,t){assert("TSTypeParameterDeclaration",e,t)}function assertTSTypeParameter(e,t){assert("TSTypeParameter",e,t)}function assertStandardized(e,t){assert("Standardized",e,t)}function assertExpression(e,t){assert("Expression",e,t)}function assertBinary(e,t){assert("Binary",e,t)}function assertScopable(e,t){assert("Scopable",e,t)}function assertBlockParent(e,t){assert("BlockParent",e,t)}function assertBlock(e,t){assert("Block",e,t)}function assertStatement(e,t){assert("Statement",e,t)}function assertTerminatorless(e,t){assert("Terminatorless",e,t)}function assertCompletionStatement(e,t){assert("CompletionStatement",e,t)}function assertConditional(e,t){assert("Conditional",e,t)}function assertLoop(e,t){assert("Loop",e,t)}function assertWhile(e,t){assert("While",e,t)}function assertExpressionWrapper(e,t){assert("ExpressionWrapper",e,t)}function assertFor(e,t){assert("For",e,t)}function assertForXStatement(e,t){assert("ForXStatement",e,t)}function assertFunction(e,t){assert("Function",e,t)}function assertFunctionParent(e,t){assert("FunctionParent",e,t)}function assertPureish(e,t){assert("Pureish",e,t)}function assertDeclaration(e,t){assert("Declaration",e,t)}function assertPatternLike(e,t){assert("PatternLike",e,t)}function assertLVal(e,t){assert("LVal",e,t)}function assertTSEntityName(e,t){assert("TSEntityName",e,t)}function assertLiteral(e,t){assert("Literal",e,t)}function assertImmutable(e,t){assert("Immutable",e,t)}function assertUserWhitespacable(e,t){assert("UserWhitespacable",e,t)}function assertMethod(e,t){assert("Method",e,t)}function assertObjectMember(e,t){assert("ObjectMember",e,t)}function assertProperty(e,t){assert("Property",e,t)}function assertUnaryLike(e,t){assert("UnaryLike",e,t)}function assertPattern(e,t){assert("Pattern",e,t)}function assertClass(e,t){assert("Class",e,t)}function assertImportOrExportDeclaration(e,t){assert("ImportOrExportDeclaration",e,t)}function assertExportDeclaration(e,t){assert("ExportDeclaration",e,t)}function assertModuleSpecifier(e,t){assert("ModuleSpecifier",e,t)}function assertAccessor(e,t){assert("Accessor",e,t)}function assertPrivate(e,t){assert("Private",e,t)}function assertFlow(e,t){assert("Flow",e,t)}function assertFlowType(e,t){assert("FlowType",e,t)}function assertFlowBaseAnnotation(e,t){assert("FlowBaseAnnotation",e,t)}function assertFlowDeclaration(e,t){assert("FlowDeclaration",e,t)}function assertFlowPredicate(e,t){assert("FlowPredicate",e,t)}function assertEnumBody(e,t){assert("EnumBody",e,t)}function assertEnumMember(e,t){assert("EnumMember",e,t)}function assertJSX(e,t){assert("JSX",e,t)}function assertMiscellaneous(e,t){assert("Miscellaneous",e,t)}function assertTypeScript(e,t){assert("TypeScript",e,t)}function assertTSTypeElement(e,t){assert("TSTypeElement",e,t)}function assertTSType(e,t){assert("TSType",e,t)}function assertTSBaseType(e,t){assert("TSBaseType",e,t)}function assertNumberLiteral(e,t){(0,s.default)("assertNumberLiteral","assertNumericLiteral");assert("NumberLiteral",e,t)}function assertRegexLiteral(e,t){(0,s.default)("assertRegexLiteral","assertRegExpLiteral");assert("RegexLiteral",e,t)}function assertRestProperty(e,t){(0,s.default)("assertRestProperty","assertRestElement");assert("RestProperty",e,t)}function assertSpreadProperty(e,t){(0,s.default)("assertSpreadProperty","assertSpreadElement");assert("SpreadProperty",e,t)}function assertModuleDeclaration(e,t){(0,s.default)("assertModuleDeclaration","assertImportOrExportDeclaration");assert("ModuleDeclaration",e,t)}},5164:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createFlowUnionType;var n=r(4755);var s=r(1078);function createFlowUnionType(e){const t=(0,s.default)(e);if(t.length===1){return t[0]}else{return(0,n.unionTypeAnnotation)(t)}}},1655:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(4755);var s=t["default"]=createTypeAnnotationBasedOnTypeof;function createTypeAnnotationBasedOnTypeof(e){switch(e){case"string":return(0,n.stringTypeAnnotation)();case"number":return(0,n.numberTypeAnnotation)();case"undefined":return(0,n.voidTypeAnnotation)();case"boolean":return(0,n.booleanTypeAnnotation)();case"function":return(0,n.genericTypeAnnotation)((0,n.identifier)("Function"));case"object":return(0,n.genericTypeAnnotation)((0,n.identifier)("Object"));case"symbol":return(0,n.genericTypeAnnotation)((0,n.identifier)("Symbol"));case"bigint":return(0,n.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}},4755:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(3259);Object.keys(n).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===n[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return n[e]}})}));var s=r(7903);Object.keys(s).forEach((function(e){if(e==="default"||e==="__esModule")return;if(e in t&&t[e]===s[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return s[e]}})}))},3259:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.anyTypeAnnotation=anyTypeAnnotation;t.argumentPlaceholder=argumentPlaceholder;t.arrayExpression=arrayExpression;t.arrayPattern=arrayPattern;t.arrayTypeAnnotation=arrayTypeAnnotation;t.arrowFunctionExpression=arrowFunctionExpression;t.assignmentExpression=assignmentExpression;t.assignmentPattern=assignmentPattern;t.awaitExpression=awaitExpression;t.bigIntLiteral=bigIntLiteral;t.binaryExpression=binaryExpression;t.bindExpression=bindExpression;t.blockStatement=blockStatement;t.booleanLiteral=booleanLiteral;t.booleanLiteralTypeAnnotation=booleanLiteralTypeAnnotation;t.booleanTypeAnnotation=booleanTypeAnnotation;t.breakStatement=breakStatement;t.callExpression=callExpression;t.catchClause=catchClause;t.classAccessorProperty=classAccessorProperty;t.classBody=classBody;t.classDeclaration=classDeclaration;t.classExpression=classExpression;t.classImplements=classImplements;t.classMethod=classMethod;t.classPrivateMethod=classPrivateMethod;t.classPrivateProperty=classPrivateProperty;t.classProperty=classProperty;t.conditionalExpression=conditionalExpression;t.continueStatement=continueStatement;t.debuggerStatement=debuggerStatement;t.decimalLiteral=decimalLiteral;t.declareClass=declareClass;t.declareExportAllDeclaration=declareExportAllDeclaration;t.declareExportDeclaration=declareExportDeclaration;t.declareFunction=declareFunction;t.declareInterface=declareInterface;t.declareModule=declareModule;t.declareModuleExports=declareModuleExports;t.declareOpaqueType=declareOpaqueType;t.declareTypeAlias=declareTypeAlias;t.declareVariable=declareVariable;t.declaredPredicate=declaredPredicate;t.decorator=decorator;t.directive=directive;t.directiveLiteral=directiveLiteral;t.doExpression=doExpression;t.doWhileStatement=doWhileStatement;t.emptyStatement=emptyStatement;t.emptyTypeAnnotation=emptyTypeAnnotation;t.enumBooleanBody=enumBooleanBody;t.enumBooleanMember=enumBooleanMember;t.enumDeclaration=enumDeclaration;t.enumDefaultedMember=enumDefaultedMember;t.enumNumberBody=enumNumberBody;t.enumNumberMember=enumNumberMember;t.enumStringBody=enumStringBody;t.enumStringMember=enumStringMember;t.enumSymbolBody=enumSymbolBody;t.existsTypeAnnotation=existsTypeAnnotation;t.exportAllDeclaration=exportAllDeclaration;t.exportDefaultDeclaration=exportDefaultDeclaration;t.exportDefaultSpecifier=exportDefaultSpecifier;t.exportNamedDeclaration=exportNamedDeclaration;t.exportNamespaceSpecifier=exportNamespaceSpecifier;t.exportSpecifier=exportSpecifier;t.expressionStatement=expressionStatement;t.file=file;t.forInStatement=forInStatement;t.forOfStatement=forOfStatement;t.forStatement=forStatement;t.functionDeclaration=functionDeclaration;t.functionExpression=functionExpression;t.functionTypeAnnotation=functionTypeAnnotation;t.functionTypeParam=functionTypeParam;t.genericTypeAnnotation=genericTypeAnnotation;t.identifier=identifier;t.ifStatement=ifStatement;t["import"]=_import;t.importAttribute=importAttribute;t.importDeclaration=importDeclaration;t.importDefaultSpecifier=importDefaultSpecifier;t.importExpression=importExpression;t.importNamespaceSpecifier=importNamespaceSpecifier;t.importSpecifier=importSpecifier;t.indexedAccessType=indexedAccessType;t.inferredPredicate=inferredPredicate;t.interfaceDeclaration=interfaceDeclaration;t.interfaceExtends=interfaceExtends;t.interfaceTypeAnnotation=interfaceTypeAnnotation;t.interpreterDirective=interpreterDirective;t.intersectionTypeAnnotation=intersectionTypeAnnotation;t.jSXAttribute=t.jsxAttribute=jsxAttribute;t.jSXClosingElement=t.jsxClosingElement=jsxClosingElement;t.jSXClosingFragment=t.jsxClosingFragment=jsxClosingFragment;t.jSXElement=t.jsxElement=jsxElement;t.jSXEmptyExpression=t.jsxEmptyExpression=jsxEmptyExpression;t.jSXExpressionContainer=t.jsxExpressionContainer=jsxExpressionContainer;t.jSXFragment=t.jsxFragment=jsxFragment;t.jSXIdentifier=t.jsxIdentifier=jsxIdentifier;t.jSXMemberExpression=t.jsxMemberExpression=jsxMemberExpression;t.jSXNamespacedName=t.jsxNamespacedName=jsxNamespacedName;t.jSXOpeningElement=t.jsxOpeningElement=jsxOpeningElement;t.jSXOpeningFragment=t.jsxOpeningFragment=jsxOpeningFragment;t.jSXSpreadAttribute=t.jsxSpreadAttribute=jsxSpreadAttribute;t.jSXSpreadChild=t.jsxSpreadChild=jsxSpreadChild;t.jSXText=t.jsxText=jsxText;t.labeledStatement=labeledStatement;t.logicalExpression=logicalExpression;t.memberExpression=memberExpression;t.metaProperty=metaProperty;t.mixedTypeAnnotation=mixedTypeAnnotation;t.moduleExpression=moduleExpression;t.newExpression=newExpression;t.noop=noop;t.nullLiteral=nullLiteral;t.nullLiteralTypeAnnotation=nullLiteralTypeAnnotation;t.nullableTypeAnnotation=nullableTypeAnnotation;t.numberLiteral=NumberLiteral;t.numberLiteralTypeAnnotation=numberLiteralTypeAnnotation;t.numberTypeAnnotation=numberTypeAnnotation;t.numericLiteral=numericLiteral;t.objectExpression=objectExpression;t.objectMethod=objectMethod;t.objectPattern=objectPattern;t.objectProperty=objectProperty;t.objectTypeAnnotation=objectTypeAnnotation;t.objectTypeCallProperty=objectTypeCallProperty;t.objectTypeIndexer=objectTypeIndexer;t.objectTypeInternalSlot=objectTypeInternalSlot;t.objectTypeProperty=objectTypeProperty;t.objectTypeSpreadProperty=objectTypeSpreadProperty;t.opaqueType=opaqueType;t.optionalCallExpression=optionalCallExpression;t.optionalIndexedAccessType=optionalIndexedAccessType;t.optionalMemberExpression=optionalMemberExpression;t.parenthesizedExpression=parenthesizedExpression;t.pipelineBareFunction=pipelineBareFunction;t.pipelinePrimaryTopicReference=pipelinePrimaryTopicReference;t.pipelineTopicExpression=pipelineTopicExpression;t.placeholder=placeholder;t.privateName=privateName;t.program=program;t.qualifiedTypeIdentifier=qualifiedTypeIdentifier;t.recordExpression=recordExpression;t.regExpLiteral=regExpLiteral;t.regexLiteral=RegexLiteral;t.restElement=restElement;t.restProperty=RestProperty;t.returnStatement=returnStatement;t.sequenceExpression=sequenceExpression;t.spreadElement=spreadElement;t.spreadProperty=SpreadProperty;t.staticBlock=staticBlock;t.stringLiteral=stringLiteral;t.stringLiteralTypeAnnotation=stringLiteralTypeAnnotation;t.stringTypeAnnotation=stringTypeAnnotation;t["super"]=_super;t.switchCase=switchCase;t.switchStatement=switchStatement;t.symbolTypeAnnotation=symbolTypeAnnotation;t.taggedTemplateExpression=taggedTemplateExpression;t.templateElement=templateElement;t.templateLiteral=templateLiteral;t.thisExpression=thisExpression;t.thisTypeAnnotation=thisTypeAnnotation;t.throwStatement=throwStatement;t.topicReference=topicReference;t.tryStatement=tryStatement;t.tSAnyKeyword=t.tsAnyKeyword=tsAnyKeyword;t.tSArrayType=t.tsArrayType=tsArrayType;t.tSAsExpression=t.tsAsExpression=tsAsExpression;t.tSBigIntKeyword=t.tsBigIntKeyword=tsBigIntKeyword;t.tSBooleanKeyword=t.tsBooleanKeyword=tsBooleanKeyword;t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=tsCallSignatureDeclaration;t.tSConditionalType=t.tsConditionalType=tsConditionalType;t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=tsConstructSignatureDeclaration;t.tSConstructorType=t.tsConstructorType=tsConstructorType;t.tSDeclareFunction=t.tsDeclareFunction=tsDeclareFunction;t.tSDeclareMethod=t.tsDeclareMethod=tsDeclareMethod;t.tSEnumBody=t.tsEnumBody=tsEnumBody;t.tSEnumDeclaration=t.tsEnumDeclaration=tsEnumDeclaration;t.tSEnumMember=t.tsEnumMember=tsEnumMember;t.tSExportAssignment=t.tsExportAssignment=tsExportAssignment;t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=tsExpressionWithTypeArguments;t.tSExternalModuleReference=t.tsExternalModuleReference=tsExternalModuleReference;t.tSFunctionType=t.tsFunctionType=tsFunctionType;t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=tsImportEqualsDeclaration;t.tSImportType=t.tsImportType=tsImportType;t.tSIndexSignature=t.tsIndexSignature=tsIndexSignature;t.tSIndexedAccessType=t.tsIndexedAccessType=tsIndexedAccessType;t.tSInferType=t.tsInferType=tsInferType;t.tSInstantiationExpression=t.tsInstantiationExpression=tsInstantiationExpression;t.tSInterfaceBody=t.tsInterfaceBody=tsInterfaceBody;t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=tsInterfaceDeclaration;t.tSIntersectionType=t.tsIntersectionType=tsIntersectionType;t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=tsIntrinsicKeyword;t.tSLiteralType=t.tsLiteralType=tsLiteralType;t.tSMappedType=t.tsMappedType=tsMappedType;t.tSMethodSignature=t.tsMethodSignature=tsMethodSignature;t.tSModuleBlock=t.tsModuleBlock=tsModuleBlock;t.tSModuleDeclaration=t.tsModuleDeclaration=tsModuleDeclaration;t.tSNamedTupleMember=t.tsNamedTupleMember=tsNamedTupleMember;t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=tsNamespaceExportDeclaration;t.tSNeverKeyword=t.tsNeverKeyword=tsNeverKeyword;t.tSNonNullExpression=t.tsNonNullExpression=tsNonNullExpression;t.tSNullKeyword=t.tsNullKeyword=tsNullKeyword;t.tSNumberKeyword=t.tsNumberKeyword=tsNumberKeyword;t.tSObjectKeyword=t.tsObjectKeyword=tsObjectKeyword;t.tSOptionalType=t.tsOptionalType=tsOptionalType;t.tSParameterProperty=t.tsParameterProperty=tsParameterProperty;t.tSParenthesizedType=t.tsParenthesizedType=tsParenthesizedType;t.tSPropertySignature=t.tsPropertySignature=tsPropertySignature;t.tSQualifiedName=t.tsQualifiedName=tsQualifiedName;t.tSRestType=t.tsRestType=tsRestType;t.tSSatisfiesExpression=t.tsSatisfiesExpression=tsSatisfiesExpression;t.tSStringKeyword=t.tsStringKeyword=tsStringKeyword;t.tSSymbolKeyword=t.tsSymbolKeyword=tsSymbolKeyword;t.tSTemplateLiteralType=t.tsTemplateLiteralType=tsTemplateLiteralType;t.tSThisType=t.tsThisType=tsThisType;t.tSTupleType=t.tsTupleType=tsTupleType;t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=tsTypeAliasDeclaration;t.tSTypeAnnotation=t.tsTypeAnnotation=tsTypeAnnotation;t.tSTypeAssertion=t.tsTypeAssertion=tsTypeAssertion;t.tSTypeLiteral=t.tsTypeLiteral=tsTypeLiteral;t.tSTypeOperator=t.tsTypeOperator=tsTypeOperator;t.tSTypeParameter=t.tsTypeParameter=tsTypeParameter;t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=tsTypeParameterDeclaration;t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=tsTypeParameterInstantiation;t.tSTypePredicate=t.tsTypePredicate=tsTypePredicate;t.tSTypeQuery=t.tsTypeQuery=tsTypeQuery;t.tSTypeReference=t.tsTypeReference=tsTypeReference;t.tSUndefinedKeyword=t.tsUndefinedKeyword=tsUndefinedKeyword;t.tSUnionType=t.tsUnionType=tsUnionType;t.tSUnknownKeyword=t.tsUnknownKeyword=tsUnknownKeyword;t.tSVoidKeyword=t.tsVoidKeyword=tsVoidKeyword;t.tupleExpression=tupleExpression;t.tupleTypeAnnotation=tupleTypeAnnotation;t.typeAlias=typeAlias;t.typeAnnotation=typeAnnotation;t.typeCastExpression=typeCastExpression;t.typeParameter=typeParameter;t.typeParameterDeclaration=typeParameterDeclaration;t.typeParameterInstantiation=typeParameterInstantiation;t.typeofTypeAnnotation=typeofTypeAnnotation;t.unaryExpression=unaryExpression;t.unionTypeAnnotation=unionTypeAnnotation;t.updateExpression=updateExpression;t.v8IntrinsicIdentifier=v8IntrinsicIdentifier;t.variableDeclaration=variableDeclaration;t.variableDeclarator=variableDeclarator;t.variance=variance;t.voidTypeAnnotation=voidTypeAnnotation;t.whileStatement=whileStatement;t.withStatement=withStatement;t.yieldExpression=yieldExpression;var n=r(8966);var s=r(8760);var i=r(6624);const{validateInternal:a}=n;const{NODE_FIELDS:o}=i;function arrayExpression(e=[]){const t={type:"ArrayExpression",elements:e};const r=o.ArrayExpression;a(r.elements,t,"elements",e,1);return t}function assignmentExpression(e,t,r){const n={type:"AssignmentExpression",operator:e,left:t,right:r};const s=o.AssignmentExpression;a(s.operator,n,"operator",e);a(s.left,n,"left",t,1);a(s.right,n,"right",r,1);return n}function binaryExpression(e,t,r){const n={type:"BinaryExpression",operator:e,left:t,right:r};const s=o.BinaryExpression;a(s.operator,n,"operator",e);a(s.left,n,"left",t,1);a(s.right,n,"right",r,1);return n}function interpreterDirective(e){const t={type:"InterpreterDirective",value:e};const r=o.InterpreterDirective;a(r.value,t,"value",e);return t}function directive(e){const t={type:"Directive",value:e};const r=o.Directive;a(r.value,t,"value",e,1);return t}function directiveLiteral(e){const t={type:"DirectiveLiteral",value:e};const r=o.DirectiveLiteral;a(r.value,t,"value",e);return t}function blockStatement(e,t=[]){const r={type:"BlockStatement",body:e,directives:t};const n=o.BlockStatement;a(n.body,r,"body",e,1);a(n.directives,r,"directives",t,1);return r}function breakStatement(e=null){const t={type:"BreakStatement",label:e};const r=o.BreakStatement;a(r.label,t,"label",e,1);return t}function callExpression(e,t){const r={type:"CallExpression",callee:e,arguments:t};const n=o.CallExpression;a(n.callee,r,"callee",e,1);a(n.arguments,r,"arguments",t,1);return r}function catchClause(e=null,t){const r={type:"CatchClause",param:e,body:t};const n=o.CatchClause;a(n.param,r,"param",e,1);a(n.body,r,"body",t,1);return r}function conditionalExpression(e,t,r){const n={type:"ConditionalExpression",test:e,consequent:t,alternate:r};const s=o.ConditionalExpression;a(s.test,n,"test",e,1);a(s.consequent,n,"consequent",t,1);a(s.alternate,n,"alternate",r,1);return n}function continueStatement(e=null){const t={type:"ContinueStatement",label:e};const r=o.ContinueStatement;a(r.label,t,"label",e,1);return t}function debuggerStatement(){return{type:"DebuggerStatement"}}function doWhileStatement(e,t){const r={type:"DoWhileStatement",test:e,body:t};const n=o.DoWhileStatement;a(n.test,r,"test",e,1);a(n.body,r,"body",t,1);return r}function emptyStatement(){return{type:"EmptyStatement"}}function expressionStatement(e){const t={type:"ExpressionStatement",expression:e};const r=o.ExpressionStatement;a(r.expression,t,"expression",e,1);return t}function file(e,t=null,r=null){const n={type:"File",program:e,comments:t,tokens:r};const s=o.File;a(s.program,n,"program",e,1);a(s.comments,n,"comments",t,1);a(s.tokens,n,"tokens",r);return n}function forInStatement(e,t,r){const n={type:"ForInStatement",left:e,right:t,body:r};const s=o.ForInStatement;a(s.left,n,"left",e,1);a(s.right,n,"right",t,1);a(s.body,n,"body",r,1);return n}function forStatement(e=null,t=null,r=null,n){const s={type:"ForStatement",init:e,test:t,update:r,body:n};const i=o.ForStatement;a(i.init,s,"init",e,1);a(i.test,s,"test",t,1);a(i.update,s,"update",r,1);a(i.body,s,"body",n,1);return s}function functionDeclaration(e=null,t,r,n=false,s=false){const i={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:s};const l=o.FunctionDeclaration;a(l.id,i,"id",e,1);a(l.params,i,"params",t,1);a(l.body,i,"body",r,1);a(l.generator,i,"generator",n);a(l.async,i,"async",s);return i}function functionExpression(e=null,t,r,n=false,s=false){const i={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:s};const l=o.FunctionExpression;a(l.id,i,"id",e,1);a(l.params,i,"params",t,1);a(l.body,i,"body",r,1);a(l.generator,i,"generator",n);a(l.async,i,"async",s);return i}function identifier(e){const t={type:"Identifier",name:e};const r=o.Identifier;a(r.name,t,"name",e);return t}function ifStatement(e,t,r=null){const n={type:"IfStatement",test:e,consequent:t,alternate:r};const s=o.IfStatement;a(s.test,n,"test",e,1);a(s.consequent,n,"consequent",t,1);a(s.alternate,n,"alternate",r,1);return n}function labeledStatement(e,t){const r={type:"LabeledStatement",label:e,body:t};const n=o.LabeledStatement;a(n.label,r,"label",e,1);a(n.body,r,"body",t,1);return r}function stringLiteral(e){const t={type:"StringLiteral",value:e};const r=o.StringLiteral;a(r.value,t,"value",e);return t}function numericLiteral(e){const t={type:"NumericLiteral",value:e};const r=o.NumericLiteral;a(r.value,t,"value",e);return t}function nullLiteral(){return{type:"NullLiteral"}}function booleanLiteral(e){const t={type:"BooleanLiteral",value:e};const r=o.BooleanLiteral;a(r.value,t,"value",e);return t}function regExpLiteral(e,t=""){const r={type:"RegExpLiteral",pattern:e,flags:t};const n=o.RegExpLiteral;a(n.pattern,r,"pattern",e);a(n.flags,r,"flags",t);return r}function logicalExpression(e,t,r){const n={type:"LogicalExpression",operator:e,left:t,right:r};const s=o.LogicalExpression;a(s.operator,n,"operator",e);a(s.left,n,"left",t,1);a(s.right,n,"right",r,1);return n}function memberExpression(e,t,r=false,n=null){const s={type:"MemberExpression",object:e,property:t,computed:r,optional:n};const i=o.MemberExpression;a(i.object,s,"object",e,1);a(i.property,s,"property",t,1);a(i.computed,s,"computed",r);a(i.optional,s,"optional",n);return s}function newExpression(e,t){const r={type:"NewExpression",callee:e,arguments:t};const n=o.NewExpression;a(n.callee,r,"callee",e,1);a(n.arguments,r,"arguments",t,1);return r}function program(e,t=[],r="script",n=null){const s={type:"Program",body:e,directives:t,sourceType:r,interpreter:n};const i=o.Program;a(i.body,s,"body",e,1);a(i.directives,s,"directives",t,1);a(i.sourceType,s,"sourceType",r);a(i.interpreter,s,"interpreter",n,1);return s}function objectExpression(e){const t={type:"ObjectExpression",properties:e};const r=o.ObjectExpression;a(r.properties,t,"properties",e,1);return t}function objectMethod(e="method",t,r,n,s=false,i=false,l=false){const c={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:s,generator:i,async:l};const p=o.ObjectMethod;a(p.kind,c,"kind",e);a(p.key,c,"key",t,1);a(p.params,c,"params",r,1);a(p.body,c,"body",n,1);a(p.computed,c,"computed",s);a(p.generator,c,"generator",i);a(p.async,c,"async",l);return c}function objectProperty(e,t,r=false,n=false,s=null){const i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:s};const l=o.ObjectProperty;a(l.key,i,"key",e,1);a(l.value,i,"value",t,1);a(l.computed,i,"computed",r);a(l.shorthand,i,"shorthand",n);a(l.decorators,i,"decorators",s,1);return i}function restElement(e){const t={type:"RestElement",argument:e};const r=o.RestElement;a(r.argument,t,"argument",e,1);return t}function returnStatement(e=null){const t={type:"ReturnStatement",argument:e};const r=o.ReturnStatement;a(r.argument,t,"argument",e,1);return t}function sequenceExpression(e){const t={type:"SequenceExpression",expressions:e};const r=o.SequenceExpression;a(r.expressions,t,"expressions",e,1);return t}function parenthesizedExpression(e){const t={type:"ParenthesizedExpression",expression:e};const r=o.ParenthesizedExpression;a(r.expression,t,"expression",e,1);return t}function switchCase(e=null,t){const r={type:"SwitchCase",test:e,consequent:t};const n=o.SwitchCase;a(n.test,r,"test",e,1);a(n.consequent,r,"consequent",t,1);return r}function switchStatement(e,t){const r={type:"SwitchStatement",discriminant:e,cases:t};const n=o.SwitchStatement;a(n.discriminant,r,"discriminant",e,1);a(n.cases,r,"cases",t,1);return r}function thisExpression(){return{type:"ThisExpression"}}function throwStatement(e){const t={type:"ThrowStatement",argument:e};const r=o.ThrowStatement;a(r.argument,t,"argument",e,1);return t}function tryStatement(e,t=null,r=null){const n={type:"TryStatement",block:e,handler:t,finalizer:r};const s=o.TryStatement;a(s.block,n,"block",e,1);a(s.handler,n,"handler",t,1);a(s.finalizer,n,"finalizer",r,1);return n}function unaryExpression(e,t,r=true){const n={type:"UnaryExpression",operator:e,argument:t,prefix:r};const s=o.UnaryExpression;a(s.operator,n,"operator",e);a(s.argument,n,"argument",t,1);a(s.prefix,n,"prefix",r);return n}function updateExpression(e,t,r=false){const n={type:"UpdateExpression",operator:e,argument:t,prefix:r};const s=o.UpdateExpression;a(s.operator,n,"operator",e);a(s.argument,n,"argument",t,1);a(s.prefix,n,"prefix",r);return n}function variableDeclaration(e,t){const r={type:"VariableDeclaration",kind:e,declarations:t};const n=o.VariableDeclaration;a(n.kind,r,"kind",e);a(n.declarations,r,"declarations",t,1);return r}function variableDeclarator(e,t=null){const r={type:"VariableDeclarator",id:e,init:t};const n=o.VariableDeclarator;a(n.id,r,"id",e,1);a(n.init,r,"init",t,1);return r}function whileStatement(e,t){const r={type:"WhileStatement",test:e,body:t};const n=o.WhileStatement;a(n.test,r,"test",e,1);a(n.body,r,"body",t,1);return r}function withStatement(e,t){const r={type:"WithStatement",object:e,body:t};const n=o.WithStatement;a(n.object,r,"object",e,1);a(n.body,r,"body",t,1);return r}function assignmentPattern(e,t){const r={type:"AssignmentPattern",left:e,right:t};const n=o.AssignmentPattern;a(n.left,r,"left",e,1);a(n.right,r,"right",t,1);return r}function arrayPattern(e){const t={type:"ArrayPattern",elements:e};const r=o.ArrayPattern;a(r.elements,t,"elements",e,1);return t}function arrowFunctionExpression(e,t,r=false){const n={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null};const s=o.ArrowFunctionExpression;a(s.params,n,"params",e,1);a(s.body,n,"body",t,1);a(s.async,n,"async",r);return n}function classBody(e){const t={type:"ClassBody",body:e};const r=o.ClassBody;a(r.body,t,"body",e,1);return t}function classExpression(e=null,t=null,r,n=null){const s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n};const i=o.ClassExpression;a(i.id,s,"id",e,1);a(i.superClass,s,"superClass",t,1);a(i.body,s,"body",r,1);a(i.decorators,s,"decorators",n,1);return s}function classDeclaration(e=null,t=null,r,n=null){const s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n};const i=o.ClassDeclaration;a(i.id,s,"id",e,1);a(i.superClass,s,"superClass",t,1);a(i.body,s,"body",r,1);a(i.decorators,s,"decorators",n,1);return s}function exportAllDeclaration(e){const t={type:"ExportAllDeclaration",source:e};const r=o.ExportAllDeclaration;a(r.source,t,"source",e,1);return t}function exportDefaultDeclaration(e){const t={type:"ExportDefaultDeclaration",declaration:e};const r=o.ExportDefaultDeclaration;a(r.declaration,t,"declaration",e,1);return t}function exportNamedDeclaration(e=null,t=[],r=null){const n={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r};const s=o.ExportNamedDeclaration;a(s.declaration,n,"declaration",e,1);a(s.specifiers,n,"specifiers",t,1);a(s.source,n,"source",r,1);return n}function exportSpecifier(e,t){const r={type:"ExportSpecifier",local:e,exported:t};const n=o.ExportSpecifier;a(n.local,r,"local",e,1);a(n.exported,r,"exported",t,1);return r}function forOfStatement(e,t,r,n=false){const s={type:"ForOfStatement",left:e,right:t,body:r,await:n};const i=o.ForOfStatement;a(i.left,s,"left",e,1);a(i.right,s,"right",t,1);a(i.body,s,"body",r,1);a(i.await,s,"await",n);return s}function importDeclaration(e,t){const r={type:"ImportDeclaration",specifiers:e,source:t};const n=o.ImportDeclaration;a(n.specifiers,r,"specifiers",e,1);a(n.source,r,"source",t,1);return r}function importDefaultSpecifier(e){const t={type:"ImportDefaultSpecifier",local:e};const r=o.ImportDefaultSpecifier;a(r.local,t,"local",e,1);return t}function importNamespaceSpecifier(e){const t={type:"ImportNamespaceSpecifier",local:e};const r=o.ImportNamespaceSpecifier;a(r.local,t,"local",e,1);return t}function importSpecifier(e,t){const r={type:"ImportSpecifier",local:e,imported:t};const n=o.ImportSpecifier;a(n.local,r,"local",e,1);a(n.imported,r,"imported",t,1);return r}function importExpression(e,t=null){const r={type:"ImportExpression",source:e,options:t};const n=o.ImportExpression;a(n.source,r,"source",e,1);a(n.options,r,"options",t,1);return r}function metaProperty(e,t){const r={type:"MetaProperty",meta:e,property:t};const n=o.MetaProperty;a(n.meta,r,"meta",e,1);a(n.property,r,"property",t,1);return r}function classMethod(e="method",t,r,n,s=false,i=false,l=false,c=false){const p={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:s,static:i,generator:l,async:c};const u=o.ClassMethod;a(u.kind,p,"kind",e);a(u.key,p,"key",t,1);a(u.params,p,"params",r,1);a(u.body,p,"body",n,1);a(u.computed,p,"computed",s);a(u.static,p,"static",i);a(u.generator,p,"generator",l);a(u.async,p,"async",c);return p}function objectPattern(e){const t={type:"ObjectPattern",properties:e};const r=o.ObjectPattern;a(r.properties,t,"properties",e,1);return t}function spreadElement(e){const t={type:"SpreadElement",argument:e};const r=o.SpreadElement;a(r.argument,t,"argument",e,1);return t}function _super(){return{type:"Super"}}function taggedTemplateExpression(e,t){const r={type:"TaggedTemplateExpression",tag:e,quasi:t};const n=o.TaggedTemplateExpression;a(n.tag,r,"tag",e,1);a(n.quasi,r,"quasi",t,1);return r}function templateElement(e,t=false){const r={type:"TemplateElement",value:e,tail:t};const n=o.TemplateElement;a(n.value,r,"value",e);a(n.tail,r,"tail",t);return r}function templateLiteral(e,t){const r={type:"TemplateLiteral",quasis:e,expressions:t};const n=o.TemplateLiteral;a(n.quasis,r,"quasis",e,1);a(n.expressions,r,"expressions",t,1);return r}function yieldExpression(e=null,t=false){const r={type:"YieldExpression",argument:e,delegate:t};const n=o.YieldExpression;a(n.argument,r,"argument",e,1);a(n.delegate,r,"delegate",t);return r}function awaitExpression(e){const t={type:"AwaitExpression",argument:e};const r=o.AwaitExpression;a(r.argument,t,"argument",e,1);return t}function _import(){return{type:"Import"}}function bigIntLiteral(e){const t={type:"BigIntLiteral",value:e};const r=o.BigIntLiteral;a(r.value,t,"value",e);return t}function exportNamespaceSpecifier(e){const t={type:"ExportNamespaceSpecifier",exported:e};const r=o.ExportNamespaceSpecifier;a(r.exported,t,"exported",e,1);return t}function optionalMemberExpression(e,t,r=false,n){const s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n};const i=o.OptionalMemberExpression;a(i.object,s,"object",e,1);a(i.property,s,"property",t,1);a(i.computed,s,"computed",r);a(i.optional,s,"optional",n);return s}function optionalCallExpression(e,t,r){const n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r};const s=o.OptionalCallExpression;a(s.callee,n,"callee",e,1);a(s.arguments,n,"arguments",t,1);a(s.optional,n,"optional",r);return n}function classProperty(e,t=null,r=null,n=null,s=false,i=false){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:s,static:i};const c=o.ClassProperty;a(c.key,l,"key",e,1);a(c.value,l,"value",t,1);a(c.typeAnnotation,l,"typeAnnotation",r,1);a(c.decorators,l,"decorators",n,1);a(c.computed,l,"computed",s);a(c.static,l,"static",i);return l}function classAccessorProperty(e,t=null,r=null,n=null,s=false,i=false){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:s,static:i};const c=o.ClassAccessorProperty;a(c.key,l,"key",e,1);a(c.value,l,"value",t,1);a(c.typeAnnotation,l,"typeAnnotation",r,1);a(c.decorators,l,"decorators",n,1);a(c.computed,l,"computed",s);a(c.static,l,"static",i);return l}function classPrivateProperty(e,t=null,r=null,n=false){const s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n};const i=o.ClassPrivateProperty;a(i.key,s,"key",e,1);a(i.value,s,"value",t,1);a(i.decorators,s,"decorators",r,1);a(i.static,s,"static",n);return s}function classPrivateMethod(e="method",t,r,n,s=false){const i={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:s};const l=o.ClassPrivateMethod;a(l.kind,i,"kind",e);a(l.key,i,"key",t,1);a(l.params,i,"params",r,1);a(l.body,i,"body",n,1);a(l.static,i,"static",s);return i}function privateName(e){const t={type:"PrivateName",id:e};const r=o.PrivateName;a(r.id,t,"id",e,1);return t}function staticBlock(e){const t={type:"StaticBlock",body:e};const r=o.StaticBlock;a(r.body,t,"body",e,1);return t}function importAttribute(e,t){const r={type:"ImportAttribute",key:e,value:t};const n=o.ImportAttribute;a(n.key,r,"key",e,1);a(n.value,r,"value",t,1);return r}function anyTypeAnnotation(){return{type:"AnyTypeAnnotation"}}function arrayTypeAnnotation(e){const t={type:"ArrayTypeAnnotation",elementType:e};const r=o.ArrayTypeAnnotation;a(r.elementType,t,"elementType",e,1);return t}function booleanTypeAnnotation(){return{type:"BooleanTypeAnnotation"}}function booleanLiteralTypeAnnotation(e){const t={type:"BooleanLiteralTypeAnnotation",value:e};const r=o.BooleanLiteralTypeAnnotation;a(r.value,t,"value",e);return t}function nullLiteralTypeAnnotation(){return{type:"NullLiteralTypeAnnotation"}}function classImplements(e,t=null){const r={type:"ClassImplements",id:e,typeParameters:t};const n=o.ClassImplements;a(n.id,r,"id",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function declareClass(e,t=null,r=null,n){const s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n};const i=o.DeclareClass;a(i.id,s,"id",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.extends,s,"extends",r,1);a(i.body,s,"body",n,1);return s}function declareFunction(e){const t={type:"DeclareFunction",id:e};const r=o.DeclareFunction;a(r.id,t,"id",e,1);return t}function declareInterface(e,t=null,r=null,n){const s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n};const i=o.DeclareInterface;a(i.id,s,"id",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.extends,s,"extends",r,1);a(i.body,s,"body",n,1);return s}function declareModule(e,t,r=null){const n={type:"DeclareModule",id:e,body:t,kind:r};const s=o.DeclareModule;a(s.id,n,"id",e,1);a(s.body,n,"body",t,1);a(s.kind,n,"kind",r);return n}function declareModuleExports(e){const t={type:"DeclareModuleExports",typeAnnotation:e};const r=o.DeclareModuleExports;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function declareTypeAlias(e,t=null,r){const n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r};const s=o.DeclareTypeAlias;a(s.id,n,"id",e,1);a(s.typeParameters,n,"typeParameters",t,1);a(s.right,n,"right",r,1);return n}function declareOpaqueType(e,t=null,r=null){const n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r};const s=o.DeclareOpaqueType;a(s.id,n,"id",e,1);a(s.typeParameters,n,"typeParameters",t,1);a(s.supertype,n,"supertype",r,1);return n}function declareVariable(e){const t={type:"DeclareVariable",id:e};const r=o.DeclareVariable;a(r.id,t,"id",e,1);return t}function declareExportDeclaration(e=null,t=null,r=null,n=null){const s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:n};const i=o.DeclareExportDeclaration;a(i.declaration,s,"declaration",e,1);a(i.specifiers,s,"specifiers",t,1);a(i.source,s,"source",r,1);a(i.attributes,s,"attributes",n,1);return s}function declareExportAllDeclaration(e,t=null){const r={type:"DeclareExportAllDeclaration",source:e,attributes:t};const n=o.DeclareExportAllDeclaration;a(n.source,r,"source",e,1);a(n.attributes,r,"attributes",t,1);return r}function declaredPredicate(e){const t={type:"DeclaredPredicate",value:e};const r=o.DeclaredPredicate;a(r.value,t,"value",e,1);return t}function existsTypeAnnotation(){return{type:"ExistsTypeAnnotation"}}function functionTypeAnnotation(e=null,t,r=null,n){const s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n};const i=o.FunctionTypeAnnotation;a(i.typeParameters,s,"typeParameters",e,1);a(i.params,s,"params",t,1);a(i.rest,s,"rest",r,1);a(i.returnType,s,"returnType",n,1);return s}function functionTypeParam(e=null,t){const r={type:"FunctionTypeParam",name:e,typeAnnotation:t};const n=o.FunctionTypeParam;a(n.name,r,"name",e,1);a(n.typeAnnotation,r,"typeAnnotation",t,1);return r}function genericTypeAnnotation(e,t=null){const r={type:"GenericTypeAnnotation",id:e,typeParameters:t};const n=o.GenericTypeAnnotation;a(n.id,r,"id",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function inferredPredicate(){return{type:"InferredPredicate"}}function interfaceExtends(e,t=null){const r={type:"InterfaceExtends",id:e,typeParameters:t};const n=o.InterfaceExtends;a(n.id,r,"id",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function interfaceDeclaration(e,t=null,r=null,n){const s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n};const i=o.InterfaceDeclaration;a(i.id,s,"id",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.extends,s,"extends",r,1);a(i.body,s,"body",n,1);return s}function interfaceTypeAnnotation(e=null,t){const r={type:"InterfaceTypeAnnotation",extends:e,body:t};const n=o.InterfaceTypeAnnotation;a(n.extends,r,"extends",e,1);a(n.body,r,"body",t,1);return r}function intersectionTypeAnnotation(e){const t={type:"IntersectionTypeAnnotation",types:e};const r=o.IntersectionTypeAnnotation;a(r.types,t,"types",e,1);return t}function mixedTypeAnnotation(){return{type:"MixedTypeAnnotation"}}function emptyTypeAnnotation(){return{type:"EmptyTypeAnnotation"}}function nullableTypeAnnotation(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e};const r=o.NullableTypeAnnotation;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function numberLiteralTypeAnnotation(e){const t={type:"NumberLiteralTypeAnnotation",value:e};const r=o.NumberLiteralTypeAnnotation;a(r.value,t,"value",e);return t}function numberTypeAnnotation(){return{type:"NumberTypeAnnotation"}}function objectTypeAnnotation(e,t=[],r=[],n=[],s=false){const i={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:s};const l=o.ObjectTypeAnnotation;a(l.properties,i,"properties",e,1);a(l.indexers,i,"indexers",t,1);a(l.callProperties,i,"callProperties",r,1);a(l.internalSlots,i,"internalSlots",n,1);a(l.exact,i,"exact",s);return i}function objectTypeInternalSlot(e,t,r,n,s){const i={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:s};const l=o.ObjectTypeInternalSlot;a(l.id,i,"id",e,1);a(l.value,i,"value",t,1);a(l.optional,i,"optional",r);a(l.static,i,"static",n);a(l.method,i,"method",s);return i}function objectTypeCallProperty(e){const t={type:"ObjectTypeCallProperty",value:e,static:null};const r=o.ObjectTypeCallProperty;a(r.value,t,"value",e,1);return t}function objectTypeIndexer(e=null,t,r,n=null){const s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null};const i=o.ObjectTypeIndexer;a(i.id,s,"id",e,1);a(i.key,s,"key",t,1);a(i.value,s,"value",r,1);a(i.variance,s,"variance",n,1);return s}function objectTypeProperty(e,t,r=null){const n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null};const s=o.ObjectTypeProperty;a(s.key,n,"key",e,1);a(s.value,n,"value",t,1);a(s.variance,n,"variance",r,1);return n}function objectTypeSpreadProperty(e){const t={type:"ObjectTypeSpreadProperty",argument:e};const r=o.ObjectTypeSpreadProperty;a(r.argument,t,"argument",e,1);return t}function opaqueType(e,t=null,r=null,n){const s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n};const i=o.OpaqueType;a(i.id,s,"id",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.supertype,s,"supertype",r,1);a(i.impltype,s,"impltype",n,1);return s}function qualifiedTypeIdentifier(e,t){const r={type:"QualifiedTypeIdentifier",id:e,qualification:t};const n=o.QualifiedTypeIdentifier;a(n.id,r,"id",e,1);a(n.qualification,r,"qualification",t,1);return r}function stringLiteralTypeAnnotation(e){const t={type:"StringLiteralTypeAnnotation",value:e};const r=o.StringLiteralTypeAnnotation;a(r.value,t,"value",e);return t}function stringTypeAnnotation(){return{type:"StringTypeAnnotation"}}function symbolTypeAnnotation(){return{type:"SymbolTypeAnnotation"}}function thisTypeAnnotation(){return{type:"ThisTypeAnnotation"}}function tupleTypeAnnotation(e){const t={type:"TupleTypeAnnotation",types:e};const r=o.TupleTypeAnnotation;a(r.types,t,"types",e,1);return t}function typeofTypeAnnotation(e){const t={type:"TypeofTypeAnnotation",argument:e};const r=o.TypeofTypeAnnotation;a(r.argument,t,"argument",e,1);return t}function typeAlias(e,t=null,r){const n={type:"TypeAlias",id:e,typeParameters:t,right:r};const s=o.TypeAlias;a(s.id,n,"id",e,1);a(s.typeParameters,n,"typeParameters",t,1);a(s.right,n,"right",r,1);return n}function typeAnnotation(e){const t={type:"TypeAnnotation",typeAnnotation:e};const r=o.TypeAnnotation;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function typeCastExpression(e,t){const r={type:"TypeCastExpression",expression:e,typeAnnotation:t};const n=o.TypeCastExpression;a(n.expression,r,"expression",e,1);a(n.typeAnnotation,r,"typeAnnotation",t,1);return r}function typeParameter(e=null,t=null,r=null){const n={type:"TypeParameter",bound:e,default:t,variance:r,name:null};const s=o.TypeParameter;a(s.bound,n,"bound",e,1);a(s.default,n,"default",t,1);a(s.variance,n,"variance",r,1);return n}function typeParameterDeclaration(e){const t={type:"TypeParameterDeclaration",params:e};const r=o.TypeParameterDeclaration;a(r.params,t,"params",e,1);return t}function typeParameterInstantiation(e){const t={type:"TypeParameterInstantiation",params:e};const r=o.TypeParameterInstantiation;a(r.params,t,"params",e,1);return t}function unionTypeAnnotation(e){const t={type:"UnionTypeAnnotation",types:e};const r=o.UnionTypeAnnotation;a(r.types,t,"types",e,1);return t}function variance(e){const t={type:"Variance",kind:e};const r=o.Variance;a(r.kind,t,"kind",e);return t}function voidTypeAnnotation(){return{type:"VoidTypeAnnotation"}}function enumDeclaration(e,t){const r={type:"EnumDeclaration",id:e,body:t};const n=o.EnumDeclaration;a(n.id,r,"id",e,1);a(n.body,r,"body",t,1);return r}function enumBooleanBody(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null};const r=o.EnumBooleanBody;a(r.members,t,"members",e,1);return t}function enumNumberBody(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null};const r=o.EnumNumberBody;a(r.members,t,"members",e,1);return t}function enumStringBody(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null};const r=o.EnumStringBody;a(r.members,t,"members",e,1);return t}function enumSymbolBody(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null};const r=o.EnumSymbolBody;a(r.members,t,"members",e,1);return t}function enumBooleanMember(e){const t={type:"EnumBooleanMember",id:e,init:null};const r=o.EnumBooleanMember;a(r.id,t,"id",e,1);return t}function enumNumberMember(e,t){const r={type:"EnumNumberMember",id:e,init:t};const n=o.EnumNumberMember;a(n.id,r,"id",e,1);a(n.init,r,"init",t,1);return r}function enumStringMember(e,t){const r={type:"EnumStringMember",id:e,init:t};const n=o.EnumStringMember;a(n.id,r,"id",e,1);a(n.init,r,"init",t,1);return r}function enumDefaultedMember(e){const t={type:"EnumDefaultedMember",id:e};const r=o.EnumDefaultedMember;a(r.id,t,"id",e,1);return t}function indexedAccessType(e,t){const r={type:"IndexedAccessType",objectType:e,indexType:t};const n=o.IndexedAccessType;a(n.objectType,r,"objectType",e,1);a(n.indexType,r,"indexType",t,1);return r}function optionalIndexedAccessType(e,t){const r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null};const n=o.OptionalIndexedAccessType;a(n.objectType,r,"objectType",e,1);a(n.indexType,r,"indexType",t,1);return r}function jsxAttribute(e,t=null){const r={type:"JSXAttribute",name:e,value:t};const n=o.JSXAttribute;a(n.name,r,"name",e,1);a(n.value,r,"value",t,1);return r}function jsxClosingElement(e){const t={type:"JSXClosingElement",name:e};const r=o.JSXClosingElement;a(r.name,t,"name",e,1);return t}function jsxElement(e,t=null,r,n=null){const s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n};const i=o.JSXElement;a(i.openingElement,s,"openingElement",e,1);a(i.closingElement,s,"closingElement",t,1);a(i.children,s,"children",r,1);a(i.selfClosing,s,"selfClosing",n);return s}function jsxEmptyExpression(){return{type:"JSXEmptyExpression"}}function jsxExpressionContainer(e){const t={type:"JSXExpressionContainer",expression:e};const r=o.JSXExpressionContainer;a(r.expression,t,"expression",e,1);return t}function jsxSpreadChild(e){const t={type:"JSXSpreadChild",expression:e};const r=o.JSXSpreadChild;a(r.expression,t,"expression",e,1);return t}function jsxIdentifier(e){const t={type:"JSXIdentifier",name:e};const r=o.JSXIdentifier;a(r.name,t,"name",e);return t}function jsxMemberExpression(e,t){const r={type:"JSXMemberExpression",object:e,property:t};const n=o.JSXMemberExpression;a(n.object,r,"object",e,1);a(n.property,r,"property",t,1);return r}function jsxNamespacedName(e,t){const r={type:"JSXNamespacedName",namespace:e,name:t};const n=o.JSXNamespacedName;a(n.namespace,r,"namespace",e,1);a(n.name,r,"name",t,1);return r}function jsxOpeningElement(e,t,r=false){const n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r};const s=o.JSXOpeningElement;a(s.name,n,"name",e,1);a(s.attributes,n,"attributes",t,1);a(s.selfClosing,n,"selfClosing",r);return n}function jsxSpreadAttribute(e){const t={type:"JSXSpreadAttribute",argument:e};const r=o.JSXSpreadAttribute;a(r.argument,t,"argument",e,1);return t}function jsxText(e){const t={type:"JSXText",value:e};const r=o.JSXText;a(r.value,t,"value",e);return t}function jsxFragment(e,t,r){const n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r};const s=o.JSXFragment;a(s.openingFragment,n,"openingFragment",e,1);a(s.closingFragment,n,"closingFragment",t,1);a(s.children,n,"children",r,1);return n}function jsxOpeningFragment(){return{type:"JSXOpeningFragment"}}function jsxClosingFragment(){return{type:"JSXClosingFragment"}}function noop(){return{type:"Noop"}}function placeholder(e,t){const r={type:"Placeholder",expectedNode:e,name:t};const n=o.Placeholder;a(n.expectedNode,r,"expectedNode",e);a(n.name,r,"name",t,1);return r}function v8IntrinsicIdentifier(e){const t={type:"V8IntrinsicIdentifier",name:e};const r=o.V8IntrinsicIdentifier;a(r.name,t,"name",e);return t}function argumentPlaceholder(){return{type:"ArgumentPlaceholder"}}function bindExpression(e,t){const r={type:"BindExpression",object:e,callee:t};const n=o.BindExpression;a(n.object,r,"object",e,1);a(n.callee,r,"callee",t,1);return r}function decorator(e){const t={type:"Decorator",expression:e};const r=o.Decorator;a(r.expression,t,"expression",e,1);return t}function doExpression(e,t=false){const r={type:"DoExpression",body:e,async:t};const n=o.DoExpression;a(n.body,r,"body",e,1);a(n.async,r,"async",t);return r}function exportDefaultSpecifier(e){const t={type:"ExportDefaultSpecifier",exported:e};const r=o.ExportDefaultSpecifier;a(r.exported,t,"exported",e,1);return t}function recordExpression(e){const t={type:"RecordExpression",properties:e};const r=o.RecordExpression;a(r.properties,t,"properties",e,1);return t}function tupleExpression(e=[]){const t={type:"TupleExpression",elements:e};const r=o.TupleExpression;a(r.elements,t,"elements",e,1);return t}function decimalLiteral(e){const t={type:"DecimalLiteral",value:e};const r=o.DecimalLiteral;a(r.value,t,"value",e);return t}function moduleExpression(e){const t={type:"ModuleExpression",body:e};const r=o.ModuleExpression;a(r.body,t,"body",e,1);return t}function topicReference(){return{type:"TopicReference"}}function pipelineTopicExpression(e){const t={type:"PipelineTopicExpression",expression:e};const r=o.PipelineTopicExpression;a(r.expression,t,"expression",e,1);return t}function pipelineBareFunction(e){const t={type:"PipelineBareFunction",callee:e};const r=o.PipelineBareFunction;a(r.callee,t,"callee",e,1);return t}function pipelinePrimaryTopicReference(){return{type:"PipelinePrimaryTopicReference"}}function tsParameterProperty(e){const t={type:"TSParameterProperty",parameter:e};const r=o.TSParameterProperty;a(r.parameter,t,"parameter",e,1);return t}function tsDeclareFunction(e=null,t=null,r,n=null){const s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n};const i=o.TSDeclareFunction;a(i.id,s,"id",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.params,s,"params",r,1);a(i.returnType,s,"returnType",n,1);return s}function tsDeclareMethod(e=null,t,r=null,n,s=null){const i={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:s};const l=o.TSDeclareMethod;a(l.decorators,i,"decorators",e,1);a(l.key,i,"key",t,1);a(l.typeParameters,i,"typeParameters",r,1);a(l.params,i,"params",n,1);a(l.returnType,i,"returnType",s,1);return i}function tsQualifiedName(e,t){const r={type:"TSQualifiedName",left:e,right:t};const n=o.TSQualifiedName;a(n.left,r,"left",e,1);a(n.right,r,"right",t,1);return r}function tsCallSignatureDeclaration(e=null,t,r=null){const n={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r};const s=o.TSCallSignatureDeclaration;a(s.typeParameters,n,"typeParameters",e,1);a(s.parameters,n,"parameters",t,1);a(s.typeAnnotation,n,"typeAnnotation",r,1);return n}function tsConstructSignatureDeclaration(e=null,t,r=null){const n={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r};const s=o.TSConstructSignatureDeclaration;a(s.typeParameters,n,"typeParameters",e,1);a(s.parameters,n,"parameters",t,1);a(s.typeAnnotation,n,"typeAnnotation",r,1);return n}function tsPropertySignature(e,t=null){const r={type:"TSPropertySignature",key:e,typeAnnotation:t};const n=o.TSPropertySignature;a(n.key,r,"key",e,1);a(n.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsMethodSignature(e,t=null,r,n=null){const s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null};const i=o.TSMethodSignature;a(i.key,s,"key",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.parameters,s,"parameters",r,1);a(i.typeAnnotation,s,"typeAnnotation",n,1);return s}function tsIndexSignature(e,t=null){const r={type:"TSIndexSignature",parameters:e,typeAnnotation:t};const n=o.TSIndexSignature;a(n.parameters,r,"parameters",e,1);a(n.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsAnyKeyword(){return{type:"TSAnyKeyword"}}function tsBooleanKeyword(){return{type:"TSBooleanKeyword"}}function tsBigIntKeyword(){return{type:"TSBigIntKeyword"}}function tsIntrinsicKeyword(){return{type:"TSIntrinsicKeyword"}}function tsNeverKeyword(){return{type:"TSNeverKeyword"}}function tsNullKeyword(){return{type:"TSNullKeyword"}}function tsNumberKeyword(){return{type:"TSNumberKeyword"}}function tsObjectKeyword(){return{type:"TSObjectKeyword"}}function tsStringKeyword(){return{type:"TSStringKeyword"}}function tsSymbolKeyword(){return{type:"TSSymbolKeyword"}}function tsUndefinedKeyword(){return{type:"TSUndefinedKeyword"}}function tsUnknownKeyword(){return{type:"TSUnknownKeyword"}}function tsVoidKeyword(){return{type:"TSVoidKeyword"}}function tsThisType(){return{type:"TSThisType"}}function tsFunctionType(e=null,t,r=null){const n={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r};const s=o.TSFunctionType;a(s.typeParameters,n,"typeParameters",e,1);a(s.parameters,n,"parameters",t,1);a(s.typeAnnotation,n,"typeAnnotation",r,1);return n}function tsConstructorType(e=null,t,r=null){const n={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r};const s=o.TSConstructorType;a(s.typeParameters,n,"typeParameters",e,1);a(s.parameters,n,"parameters",t,1);a(s.typeAnnotation,n,"typeAnnotation",r,1);return n}function tsTypeReference(e,t=null){const r={type:"TSTypeReference",typeName:e,typeParameters:t};const n=o.TSTypeReference;a(n.typeName,r,"typeName",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function tsTypePredicate(e,t=null,r=null){const n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r};const s=o.TSTypePredicate;a(s.parameterName,n,"parameterName",e,1);a(s.typeAnnotation,n,"typeAnnotation",t,1);a(s.asserts,n,"asserts",r);return n}function tsTypeQuery(e,t=null){const r={type:"TSTypeQuery",exprName:e,typeParameters:t};const n=o.TSTypeQuery;a(n.exprName,r,"exprName",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function tsTypeLiteral(e){const t={type:"TSTypeLiteral",members:e};const r=o.TSTypeLiteral;a(r.members,t,"members",e,1);return t}function tsArrayType(e){const t={type:"TSArrayType",elementType:e};const r=o.TSArrayType;a(r.elementType,t,"elementType",e,1);return t}function tsTupleType(e){const t={type:"TSTupleType",elementTypes:e};const r=o.TSTupleType;a(r.elementTypes,t,"elementTypes",e,1);return t}function tsOptionalType(e){const t={type:"TSOptionalType",typeAnnotation:e};const r=o.TSOptionalType;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsRestType(e){const t={type:"TSRestType",typeAnnotation:e};const r=o.TSRestType;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsNamedTupleMember(e,t,r=false){const n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r};const s=o.TSNamedTupleMember;a(s.label,n,"label",e,1);a(s.elementType,n,"elementType",t,1);a(s.optional,n,"optional",r);return n}function tsUnionType(e){const t={type:"TSUnionType",types:e};const r=o.TSUnionType;a(r.types,t,"types",e,1);return t}function tsIntersectionType(e){const t={type:"TSIntersectionType",types:e};const r=o.TSIntersectionType;a(r.types,t,"types",e,1);return t}function tsConditionalType(e,t,r,n){const s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n};const i=o.TSConditionalType;a(i.checkType,s,"checkType",e,1);a(i.extendsType,s,"extendsType",t,1);a(i.trueType,s,"trueType",r,1);a(i.falseType,s,"falseType",n,1);return s}function tsInferType(e){const t={type:"TSInferType",typeParameter:e};const r=o.TSInferType;a(r.typeParameter,t,"typeParameter",e,1);return t}function tsParenthesizedType(e){const t={type:"TSParenthesizedType",typeAnnotation:e};const r=o.TSParenthesizedType;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsTypeOperator(e){const t={type:"TSTypeOperator",typeAnnotation:e,operator:null};const r=o.TSTypeOperator;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsIndexedAccessType(e,t){const r={type:"TSIndexedAccessType",objectType:e,indexType:t};const n=o.TSIndexedAccessType;a(n.objectType,r,"objectType",e,1);a(n.indexType,r,"indexType",t,1);return r}function tsMappedType(e,t=null,r=null){const n={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r};const s=o.TSMappedType;a(s.typeParameter,n,"typeParameter",e,1);a(s.typeAnnotation,n,"typeAnnotation",t,1);a(s.nameType,n,"nameType",r,1);return n}function tsTemplateLiteralType(e,t){const r={type:"TSTemplateLiteralType",quasis:e,types:t};const n=o.TSTemplateLiteralType;a(n.quasis,r,"quasis",e,1);a(n.types,r,"types",t,1);return r}function tsLiteralType(e){const t={type:"TSLiteralType",literal:e};const r=o.TSLiteralType;a(r.literal,t,"literal",e,1);return t}function tsExpressionWithTypeArguments(e,t=null){const r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t};const n=o.TSExpressionWithTypeArguments;a(n.expression,r,"expression",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function tsInterfaceDeclaration(e,t=null,r=null,n){const s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n};const i=o.TSInterfaceDeclaration;a(i.id,s,"id",e,1);a(i.typeParameters,s,"typeParameters",t,1);a(i.extends,s,"extends",r,1);a(i.body,s,"body",n,1);return s}function tsInterfaceBody(e){const t={type:"TSInterfaceBody",body:e};const r=o.TSInterfaceBody;a(r.body,t,"body",e,1);return t}function tsTypeAliasDeclaration(e,t=null,r){const n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r};const s=o.TSTypeAliasDeclaration;a(s.id,n,"id",e,1);a(s.typeParameters,n,"typeParameters",t,1);a(s.typeAnnotation,n,"typeAnnotation",r,1);return n}function tsInstantiationExpression(e,t=null){const r={type:"TSInstantiationExpression",expression:e,typeParameters:t};const n=o.TSInstantiationExpression;a(n.expression,r,"expression",e,1);a(n.typeParameters,r,"typeParameters",t,1);return r}function tsAsExpression(e,t){const r={type:"TSAsExpression",expression:e,typeAnnotation:t};const n=o.TSAsExpression;a(n.expression,r,"expression",e,1);a(n.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsSatisfiesExpression(e,t){const r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t};const n=o.TSSatisfiesExpression;a(n.expression,r,"expression",e,1);a(n.typeAnnotation,r,"typeAnnotation",t,1);return r}function tsTypeAssertion(e,t){const r={type:"TSTypeAssertion",typeAnnotation:e,expression:t};const n=o.TSTypeAssertion;a(n.typeAnnotation,r,"typeAnnotation",e,1);a(n.expression,r,"expression",t,1);return r}function tsEnumBody(e){const t={type:"TSEnumBody",members:e};const r=o.TSEnumBody;a(r.members,t,"members",e,1);return t}function tsEnumDeclaration(e,t){const r={type:"TSEnumDeclaration",id:e,members:t};const n=o.TSEnumDeclaration;a(n.id,r,"id",e,1);a(n.members,r,"members",t,1);return r}function tsEnumMember(e,t=null){const r={type:"TSEnumMember",id:e,initializer:t};const n=o.TSEnumMember;a(n.id,r,"id",e,1);a(n.initializer,r,"initializer",t,1);return r}function tsModuleDeclaration(e,t){const r={type:"TSModuleDeclaration",id:e,body:t,kind:null};const n=o.TSModuleDeclaration;a(n.id,r,"id",e,1);a(n.body,r,"body",t,1);return r}function tsModuleBlock(e){const t={type:"TSModuleBlock",body:e};const r=o.TSModuleBlock;a(r.body,t,"body",e,1);return t}function tsImportType(e,t=null,r=null){const n={type:"TSImportType",argument:e,qualifier:t,typeParameters:r};const s=o.TSImportType;a(s.argument,n,"argument",e,1);a(s.qualifier,n,"qualifier",t,1);a(s.typeParameters,n,"typeParameters",r,1);return n}function tsImportEqualsDeclaration(e,t){const r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null};const n=o.TSImportEqualsDeclaration;a(n.id,r,"id",e,1);a(n.moduleReference,r,"moduleReference",t,1);return r}function tsExternalModuleReference(e){const t={type:"TSExternalModuleReference",expression:e};const r=o.TSExternalModuleReference;a(r.expression,t,"expression",e,1);return t}function tsNonNullExpression(e){const t={type:"TSNonNullExpression",expression:e};const r=o.TSNonNullExpression;a(r.expression,t,"expression",e,1);return t}function tsExportAssignment(e){const t={type:"TSExportAssignment",expression:e};const r=o.TSExportAssignment;a(r.expression,t,"expression",e,1);return t}function tsNamespaceExportDeclaration(e){const t={type:"TSNamespaceExportDeclaration",id:e};const r=o.TSNamespaceExportDeclaration;a(r.id,t,"id",e,1);return t}function tsTypeAnnotation(e){const t={type:"TSTypeAnnotation",typeAnnotation:e};const r=o.TSTypeAnnotation;a(r.typeAnnotation,t,"typeAnnotation",e,1);return t}function tsTypeParameterInstantiation(e){const t={type:"TSTypeParameterInstantiation",params:e};const r=o.TSTypeParameterInstantiation;a(r.params,t,"params",e,1);return t}function tsTypeParameterDeclaration(e){const t={type:"TSTypeParameterDeclaration",params:e};const r=o.TSTypeParameterDeclaration;a(r.params,t,"params",e,1);return t}function tsTypeParameter(e=null,t=null,r){const n={type:"TSTypeParameter",constraint:e,default:t,name:r};const s=o.TSTypeParameter;a(s.constraint,n,"constraint",e,1);a(s.default,n,"default",t,1);a(s.name,n,"name",r);return n}function NumberLiteral(e){(0,s.default)("NumberLiteral","NumericLiteral","The node type ");return numericLiteral(e)}function RegexLiteral(e,t=""){(0,s.default)("RegexLiteral","RegExpLiteral","The node type ");return regExpLiteral(e,t)}function RestProperty(e){(0,s.default)("RestProperty","RestElement","The node type ");return restElement(e)}function SpreadProperty(e){(0,s.default)("SpreadProperty","SpreadElement","The node type ");return spreadElement(e)}},7903:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"AnyTypeAnnotation",{enumerable:true,get:function(){return n.anyTypeAnnotation}});Object.defineProperty(t,"ArgumentPlaceholder",{enumerable:true,get:function(){return n.argumentPlaceholder}});Object.defineProperty(t,"ArrayExpression",{enumerable:true,get:function(){return n.arrayExpression}});Object.defineProperty(t,"ArrayPattern",{enumerable:true,get:function(){return n.arrayPattern}});Object.defineProperty(t,"ArrayTypeAnnotation",{enumerable:true,get:function(){return n.arrayTypeAnnotation}});Object.defineProperty(t,"ArrowFunctionExpression",{enumerable:true,get:function(){return n.arrowFunctionExpression}});Object.defineProperty(t,"AssignmentExpression",{enumerable:true,get:function(){return n.assignmentExpression}});Object.defineProperty(t,"AssignmentPattern",{enumerable:true,get:function(){return n.assignmentPattern}});Object.defineProperty(t,"AwaitExpression",{enumerable:true,get:function(){return n.awaitExpression}});Object.defineProperty(t,"BigIntLiteral",{enumerable:true,get:function(){return n.bigIntLiteral}});Object.defineProperty(t,"BinaryExpression",{enumerable:true,get:function(){return n.binaryExpression}});Object.defineProperty(t,"BindExpression",{enumerable:true,get:function(){return n.bindExpression}});Object.defineProperty(t,"BlockStatement",{enumerable:true,get:function(){return n.blockStatement}});Object.defineProperty(t,"BooleanLiteral",{enumerable:true,get:function(){return n.booleanLiteral}});Object.defineProperty(t,"BooleanLiteralTypeAnnotation",{enumerable:true,get:function(){return n.booleanLiteralTypeAnnotation}});Object.defineProperty(t,"BooleanTypeAnnotation",{enumerable:true,get:function(){return n.booleanTypeAnnotation}});Object.defineProperty(t,"BreakStatement",{enumerable:true,get:function(){return n.breakStatement}});Object.defineProperty(t,"CallExpression",{enumerable:true,get:function(){return n.callExpression}});Object.defineProperty(t,"CatchClause",{enumerable:true,get:function(){return n.catchClause}});Object.defineProperty(t,"ClassAccessorProperty",{enumerable:true,get:function(){return n.classAccessorProperty}});Object.defineProperty(t,"ClassBody",{enumerable:true,get:function(){return n.classBody}});Object.defineProperty(t,"ClassDeclaration",{enumerable:true,get:function(){return n.classDeclaration}});Object.defineProperty(t,"ClassExpression",{enumerable:true,get:function(){return n.classExpression}});Object.defineProperty(t,"ClassImplements",{enumerable:true,get:function(){return n.classImplements}});Object.defineProperty(t,"ClassMethod",{enumerable:true,get:function(){return n.classMethod}});Object.defineProperty(t,"ClassPrivateMethod",{enumerable:true,get:function(){return n.classPrivateMethod}});Object.defineProperty(t,"ClassPrivateProperty",{enumerable:true,get:function(){return n.classPrivateProperty}});Object.defineProperty(t,"ClassProperty",{enumerable:true,get:function(){return n.classProperty}});Object.defineProperty(t,"ConditionalExpression",{enumerable:true,get:function(){return n.conditionalExpression}});Object.defineProperty(t,"ContinueStatement",{enumerable:true,get:function(){return n.continueStatement}});Object.defineProperty(t,"DebuggerStatement",{enumerable:true,get:function(){return n.debuggerStatement}});Object.defineProperty(t,"DecimalLiteral",{enumerable:true,get:function(){return n.decimalLiteral}});Object.defineProperty(t,"DeclareClass",{enumerable:true,get:function(){return n.declareClass}});Object.defineProperty(t,"DeclareExportAllDeclaration",{enumerable:true,get:function(){return n.declareExportAllDeclaration}});Object.defineProperty(t,"DeclareExportDeclaration",{enumerable:true,get:function(){return n.declareExportDeclaration}});Object.defineProperty(t,"DeclareFunction",{enumerable:true,get:function(){return n.declareFunction}});Object.defineProperty(t,"DeclareInterface",{enumerable:true,get:function(){return n.declareInterface}});Object.defineProperty(t,"DeclareModule",{enumerable:true,get:function(){return n.declareModule}});Object.defineProperty(t,"DeclareModuleExports",{enumerable:true,get:function(){return n.declareModuleExports}});Object.defineProperty(t,"DeclareOpaqueType",{enumerable:true,get:function(){return n.declareOpaqueType}});Object.defineProperty(t,"DeclareTypeAlias",{enumerable:true,get:function(){return n.declareTypeAlias}});Object.defineProperty(t,"DeclareVariable",{enumerable:true,get:function(){return n.declareVariable}});Object.defineProperty(t,"DeclaredPredicate",{enumerable:true,get:function(){return n.declaredPredicate}});Object.defineProperty(t,"Decorator",{enumerable:true,get:function(){return n.decorator}});Object.defineProperty(t,"Directive",{enumerable:true,get:function(){return n.directive}});Object.defineProperty(t,"DirectiveLiteral",{enumerable:true,get:function(){return n.directiveLiteral}});Object.defineProperty(t,"DoExpression",{enumerable:true,get:function(){return n.doExpression}});Object.defineProperty(t,"DoWhileStatement",{enumerable:true,get:function(){return n.doWhileStatement}});Object.defineProperty(t,"EmptyStatement",{enumerable:true,get:function(){return n.emptyStatement}});Object.defineProperty(t,"EmptyTypeAnnotation",{enumerable:true,get:function(){return n.emptyTypeAnnotation}});Object.defineProperty(t,"EnumBooleanBody",{enumerable:true,get:function(){return n.enumBooleanBody}});Object.defineProperty(t,"EnumBooleanMember",{enumerable:true,get:function(){return n.enumBooleanMember}});Object.defineProperty(t,"EnumDeclaration",{enumerable:true,get:function(){return n.enumDeclaration}});Object.defineProperty(t,"EnumDefaultedMember",{enumerable:true,get:function(){return n.enumDefaultedMember}});Object.defineProperty(t,"EnumNumberBody",{enumerable:true,get:function(){return n.enumNumberBody}});Object.defineProperty(t,"EnumNumberMember",{enumerable:true,get:function(){return n.enumNumberMember}});Object.defineProperty(t,"EnumStringBody",{enumerable:true,get:function(){return n.enumStringBody}});Object.defineProperty(t,"EnumStringMember",{enumerable:true,get:function(){return n.enumStringMember}});Object.defineProperty(t,"EnumSymbolBody",{enumerable:true,get:function(){return n.enumSymbolBody}});Object.defineProperty(t,"ExistsTypeAnnotation",{enumerable:true,get:function(){return n.existsTypeAnnotation}});Object.defineProperty(t,"ExportAllDeclaration",{enumerable:true,get:function(){return n.exportAllDeclaration}});Object.defineProperty(t,"ExportDefaultDeclaration",{enumerable:true,get:function(){return n.exportDefaultDeclaration}});Object.defineProperty(t,"ExportDefaultSpecifier",{enumerable:true,get:function(){return n.exportDefaultSpecifier}});Object.defineProperty(t,"ExportNamedDeclaration",{enumerable:true,get:function(){return n.exportNamedDeclaration}});Object.defineProperty(t,"ExportNamespaceSpecifier",{enumerable:true,get:function(){return n.exportNamespaceSpecifier}});Object.defineProperty(t,"ExportSpecifier",{enumerable:true,get:function(){return n.exportSpecifier}});Object.defineProperty(t,"ExpressionStatement",{enumerable:true,get:function(){return n.expressionStatement}});Object.defineProperty(t,"File",{enumerable:true,get:function(){return n.file}});Object.defineProperty(t,"ForInStatement",{enumerable:true,get:function(){return n.forInStatement}});Object.defineProperty(t,"ForOfStatement",{enumerable:true,get:function(){return n.forOfStatement}});Object.defineProperty(t,"ForStatement",{enumerable:true,get:function(){return n.forStatement}});Object.defineProperty(t,"FunctionDeclaration",{enumerable:true,get:function(){return n.functionDeclaration}});Object.defineProperty(t,"FunctionExpression",{enumerable:true,get:function(){return n.functionExpression}});Object.defineProperty(t,"FunctionTypeAnnotation",{enumerable:true,get:function(){return n.functionTypeAnnotation}});Object.defineProperty(t,"FunctionTypeParam",{enumerable:true,get:function(){return n.functionTypeParam}});Object.defineProperty(t,"GenericTypeAnnotation",{enumerable:true,get:function(){return n.genericTypeAnnotation}});Object.defineProperty(t,"Identifier",{enumerable:true,get:function(){return n.identifier}});Object.defineProperty(t,"IfStatement",{enumerable:true,get:function(){return n.ifStatement}});Object.defineProperty(t,"Import",{enumerable:true,get:function(){return n.import}});Object.defineProperty(t,"ImportAttribute",{enumerable:true,get:function(){return n.importAttribute}});Object.defineProperty(t,"ImportDeclaration",{enumerable:true,get:function(){return n.importDeclaration}});Object.defineProperty(t,"ImportDefaultSpecifier",{enumerable:true,get:function(){return n.importDefaultSpecifier}});Object.defineProperty(t,"ImportExpression",{enumerable:true,get:function(){return n.importExpression}});Object.defineProperty(t,"ImportNamespaceSpecifier",{enumerable:true,get:function(){return n.importNamespaceSpecifier}});Object.defineProperty(t,"ImportSpecifier",{enumerable:true,get:function(){return n.importSpecifier}});Object.defineProperty(t,"IndexedAccessType",{enumerable:true,get:function(){return n.indexedAccessType}});Object.defineProperty(t,"InferredPredicate",{enumerable:true,get:function(){return n.inferredPredicate}});Object.defineProperty(t,"InterfaceDeclaration",{enumerable:true,get:function(){return n.interfaceDeclaration}});Object.defineProperty(t,"InterfaceExtends",{enumerable:true,get:function(){return n.interfaceExtends}});Object.defineProperty(t,"InterfaceTypeAnnotation",{enumerable:true,get:function(){return n.interfaceTypeAnnotation}});Object.defineProperty(t,"InterpreterDirective",{enumerable:true,get:function(){return n.interpreterDirective}});Object.defineProperty(t,"IntersectionTypeAnnotation",{enumerable:true,get:function(){return n.intersectionTypeAnnotation}});Object.defineProperty(t,"JSXAttribute",{enumerable:true,get:function(){return n.jsxAttribute}});Object.defineProperty(t,"JSXClosingElement",{enumerable:true,get:function(){return n.jsxClosingElement}});Object.defineProperty(t,"JSXClosingFragment",{enumerable:true,get:function(){return n.jsxClosingFragment}});Object.defineProperty(t,"JSXElement",{enumerable:true,get:function(){return n.jsxElement}});Object.defineProperty(t,"JSXEmptyExpression",{enumerable:true,get:function(){return n.jsxEmptyExpression}});Object.defineProperty(t,"JSXExpressionContainer",{enumerable:true,get:function(){return n.jsxExpressionContainer}});Object.defineProperty(t,"JSXFragment",{enumerable:true,get:function(){return n.jsxFragment}});Object.defineProperty(t,"JSXIdentifier",{enumerable:true,get:function(){return n.jsxIdentifier}});Object.defineProperty(t,"JSXMemberExpression",{enumerable:true,get:function(){return n.jsxMemberExpression}});Object.defineProperty(t,"JSXNamespacedName",{enumerable:true,get:function(){return n.jsxNamespacedName}});Object.defineProperty(t,"JSXOpeningElement",{enumerable:true,get:function(){return n.jsxOpeningElement}});Object.defineProperty(t,"JSXOpeningFragment",{enumerable:true,get:function(){return n.jsxOpeningFragment}});Object.defineProperty(t,"JSXSpreadAttribute",{enumerable:true,get:function(){return n.jsxSpreadAttribute}});Object.defineProperty(t,"JSXSpreadChild",{enumerable:true,get:function(){return n.jsxSpreadChild}});Object.defineProperty(t,"JSXText",{enumerable:true,get:function(){return n.jsxText}});Object.defineProperty(t,"LabeledStatement",{enumerable:true,get:function(){return n.labeledStatement}});Object.defineProperty(t,"LogicalExpression",{enumerable:true,get:function(){return n.logicalExpression}});Object.defineProperty(t,"MemberExpression",{enumerable:true,get:function(){return n.memberExpression}});Object.defineProperty(t,"MetaProperty",{enumerable:true,get:function(){return n.metaProperty}});Object.defineProperty(t,"MixedTypeAnnotation",{enumerable:true,get:function(){return n.mixedTypeAnnotation}});Object.defineProperty(t,"ModuleExpression",{enumerable:true,get:function(){return n.moduleExpression}});Object.defineProperty(t,"NewExpression",{enumerable:true,get:function(){return n.newExpression}});Object.defineProperty(t,"Noop",{enumerable:true,get:function(){return n.noop}});Object.defineProperty(t,"NullLiteral",{enumerable:true,get:function(){return n.nullLiteral}});Object.defineProperty(t,"NullLiteralTypeAnnotation",{enumerable:true,get:function(){return n.nullLiteralTypeAnnotation}});Object.defineProperty(t,"NullableTypeAnnotation",{enumerable:true,get:function(){return n.nullableTypeAnnotation}});Object.defineProperty(t,"NumberLiteral",{enumerable:true,get:function(){return n.numberLiteral}});Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return n.numberLiteralTypeAnnotation}});Object.defineProperty(t,"NumberTypeAnnotation",{enumerable:true,get:function(){return n.numberTypeAnnotation}});Object.defineProperty(t,"NumericLiteral",{enumerable:true,get:function(){return n.numericLiteral}});Object.defineProperty(t,"ObjectExpression",{enumerable:true,get:function(){return n.objectExpression}});Object.defineProperty(t,"ObjectMethod",{enumerable:true,get:function(){return n.objectMethod}});Object.defineProperty(t,"ObjectPattern",{enumerable:true,get:function(){return n.objectPattern}});Object.defineProperty(t,"ObjectProperty",{enumerable:true,get:function(){return n.objectProperty}});Object.defineProperty(t,"ObjectTypeAnnotation",{enumerable:true,get:function(){return n.objectTypeAnnotation}});Object.defineProperty(t,"ObjectTypeCallProperty",{enumerable:true,get:function(){return n.objectTypeCallProperty}});Object.defineProperty(t,"ObjectTypeIndexer",{enumerable:true,get:function(){return n.objectTypeIndexer}});Object.defineProperty(t,"ObjectTypeInternalSlot",{enumerable:true,get:function(){return n.objectTypeInternalSlot}});Object.defineProperty(t,"ObjectTypeProperty",{enumerable:true,get:function(){return n.objectTypeProperty}});Object.defineProperty(t,"ObjectTypeSpreadProperty",{enumerable:true,get:function(){return n.objectTypeSpreadProperty}});Object.defineProperty(t,"OpaqueType",{enumerable:true,get:function(){return n.opaqueType}});Object.defineProperty(t,"OptionalCallExpression",{enumerable:true,get:function(){return n.optionalCallExpression}});Object.defineProperty(t,"OptionalIndexedAccessType",{enumerable:true,get:function(){return n.optionalIndexedAccessType}});Object.defineProperty(t,"OptionalMemberExpression",{enumerable:true,get:function(){return n.optionalMemberExpression}});Object.defineProperty(t,"ParenthesizedExpression",{enumerable:true,get:function(){return n.parenthesizedExpression}});Object.defineProperty(t,"PipelineBareFunction",{enumerable:true,get:function(){return n.pipelineBareFunction}});Object.defineProperty(t,"PipelinePrimaryTopicReference",{enumerable:true,get:function(){return n.pipelinePrimaryTopicReference}});Object.defineProperty(t,"PipelineTopicExpression",{enumerable:true,get:function(){return n.pipelineTopicExpression}});Object.defineProperty(t,"Placeholder",{enumerable:true,get:function(){return n.placeholder}});Object.defineProperty(t,"PrivateName",{enumerable:true,get:function(){return n.privateName}});Object.defineProperty(t,"Program",{enumerable:true,get:function(){return n.program}});Object.defineProperty(t,"QualifiedTypeIdentifier",{enumerable:true,get:function(){return n.qualifiedTypeIdentifier}});Object.defineProperty(t,"RecordExpression",{enumerable:true,get:function(){return n.recordExpression}});Object.defineProperty(t,"RegExpLiteral",{enumerable:true,get:function(){return n.regExpLiteral}});Object.defineProperty(t,"RegexLiteral",{enumerable:true,get:function(){return n.regexLiteral}});Object.defineProperty(t,"RestElement",{enumerable:true,get:function(){return n.restElement}});Object.defineProperty(t,"RestProperty",{enumerable:true,get:function(){return n.restProperty}});Object.defineProperty(t,"ReturnStatement",{enumerable:true,get:function(){return n.returnStatement}});Object.defineProperty(t,"SequenceExpression",{enumerable:true,get:function(){return n.sequenceExpression}});Object.defineProperty(t,"SpreadElement",{enumerable:true,get:function(){return n.spreadElement}});Object.defineProperty(t,"SpreadProperty",{enumerable:true,get:function(){return n.spreadProperty}});Object.defineProperty(t,"StaticBlock",{enumerable:true,get:function(){return n.staticBlock}});Object.defineProperty(t,"StringLiteral",{enumerable:true,get:function(){return n.stringLiteral}});Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return n.stringLiteralTypeAnnotation}});Object.defineProperty(t,"StringTypeAnnotation",{enumerable:true,get:function(){return n.stringTypeAnnotation}});Object.defineProperty(t,"Super",{enumerable:true,get:function(){return n.super}});Object.defineProperty(t,"SwitchCase",{enumerable:true,get:function(){return n.switchCase}});Object.defineProperty(t,"SwitchStatement",{enumerable:true,get:function(){return n.switchStatement}});Object.defineProperty(t,"SymbolTypeAnnotation",{enumerable:true,get:function(){return n.symbolTypeAnnotation}});Object.defineProperty(t,"TSAnyKeyword",{enumerable:true,get:function(){return n.tsAnyKeyword}});Object.defineProperty(t,"TSArrayType",{enumerable:true,get:function(){return n.tsArrayType}});Object.defineProperty(t,"TSAsExpression",{enumerable:true,get:function(){return n.tsAsExpression}});Object.defineProperty(t,"TSBigIntKeyword",{enumerable:true,get:function(){return n.tsBigIntKeyword}});Object.defineProperty(t,"TSBooleanKeyword",{enumerable:true,get:function(){return n.tsBooleanKeyword}});Object.defineProperty(t,"TSCallSignatureDeclaration",{enumerable:true,get:function(){return n.tsCallSignatureDeclaration}});Object.defineProperty(t,"TSConditionalType",{enumerable:true,get:function(){return n.tsConditionalType}});Object.defineProperty(t,"TSConstructSignatureDeclaration",{enumerable:true,get:function(){return n.tsConstructSignatureDeclaration}});Object.defineProperty(t,"TSConstructorType",{enumerable:true,get:function(){return n.tsConstructorType}});Object.defineProperty(t,"TSDeclareFunction",{enumerable:true,get:function(){return n.tsDeclareFunction}});Object.defineProperty(t,"TSDeclareMethod",{enumerable:true,get:function(){return n.tsDeclareMethod}});Object.defineProperty(t,"TSEnumBody",{enumerable:true,get:function(){return n.tsEnumBody}});Object.defineProperty(t,"TSEnumDeclaration",{enumerable:true,get:function(){return n.tsEnumDeclaration}});Object.defineProperty(t,"TSEnumMember",{enumerable:true,get:function(){return n.tsEnumMember}});Object.defineProperty(t,"TSExportAssignment",{enumerable:true,get:function(){return n.tsExportAssignment}});Object.defineProperty(t,"TSExpressionWithTypeArguments",{enumerable:true,get:function(){return n.tsExpressionWithTypeArguments}});Object.defineProperty(t,"TSExternalModuleReference",{enumerable:true,get:function(){return n.tsExternalModuleReference}});Object.defineProperty(t,"TSFunctionType",{enumerable:true,get:function(){return n.tsFunctionType}});Object.defineProperty(t,"TSImportEqualsDeclaration",{enumerable:true,get:function(){return n.tsImportEqualsDeclaration}});Object.defineProperty(t,"TSImportType",{enumerable:true,get:function(){return n.tsImportType}});Object.defineProperty(t,"TSIndexSignature",{enumerable:true,get:function(){return n.tsIndexSignature}});Object.defineProperty(t,"TSIndexedAccessType",{enumerable:true,get:function(){return n.tsIndexedAccessType}});Object.defineProperty(t,"TSInferType",{enumerable:true,get:function(){return n.tsInferType}});Object.defineProperty(t,"TSInstantiationExpression",{enumerable:true,get:function(){return n.tsInstantiationExpression}});Object.defineProperty(t,"TSInterfaceBody",{enumerable:true,get:function(){return n.tsInterfaceBody}});Object.defineProperty(t,"TSInterfaceDeclaration",{enumerable:true,get:function(){return n.tsInterfaceDeclaration}});Object.defineProperty(t,"TSIntersectionType",{enumerable:true,get:function(){return n.tsIntersectionType}});Object.defineProperty(t,"TSIntrinsicKeyword",{enumerable:true,get:function(){return n.tsIntrinsicKeyword}});Object.defineProperty(t,"TSLiteralType",{enumerable:true,get:function(){return n.tsLiteralType}});Object.defineProperty(t,"TSMappedType",{enumerable:true,get:function(){return n.tsMappedType}});Object.defineProperty(t,"TSMethodSignature",{enumerable:true,get:function(){return n.tsMethodSignature}});Object.defineProperty(t,"TSModuleBlock",{enumerable:true,get:function(){return n.tsModuleBlock}});Object.defineProperty(t,"TSModuleDeclaration",{enumerable:true,get:function(){return n.tsModuleDeclaration}});Object.defineProperty(t,"TSNamedTupleMember",{enumerable:true,get:function(){return n.tsNamedTupleMember}});Object.defineProperty(t,"TSNamespaceExportDeclaration",{enumerable:true,get:function(){return n.tsNamespaceExportDeclaration}});Object.defineProperty(t,"TSNeverKeyword",{enumerable:true,get:function(){return n.tsNeverKeyword}});Object.defineProperty(t,"TSNonNullExpression",{enumerable:true,get:function(){return n.tsNonNullExpression}});Object.defineProperty(t,"TSNullKeyword",{enumerable:true,get:function(){return n.tsNullKeyword}});Object.defineProperty(t,"TSNumberKeyword",{enumerable:true,get:function(){return n.tsNumberKeyword}});Object.defineProperty(t,"TSObjectKeyword",{enumerable:true,get:function(){return n.tsObjectKeyword}});Object.defineProperty(t,"TSOptionalType",{enumerable:true,get:function(){return n.tsOptionalType}});Object.defineProperty(t,"TSParameterProperty",{enumerable:true,get:function(){return n.tsParameterProperty}});Object.defineProperty(t,"TSParenthesizedType",{enumerable:true,get:function(){return n.tsParenthesizedType}});Object.defineProperty(t,"TSPropertySignature",{enumerable:true,get:function(){return n.tsPropertySignature}});Object.defineProperty(t,"TSQualifiedName",{enumerable:true,get:function(){return n.tsQualifiedName}});Object.defineProperty(t,"TSRestType",{enumerable:true,get:function(){return n.tsRestType}});Object.defineProperty(t,"TSSatisfiesExpression",{enumerable:true,get:function(){return n.tsSatisfiesExpression}});Object.defineProperty(t,"TSStringKeyword",{enumerable:true,get:function(){return n.tsStringKeyword}});Object.defineProperty(t,"TSSymbolKeyword",{enumerable:true,get:function(){return n.tsSymbolKeyword}});Object.defineProperty(t,"TSTemplateLiteralType",{enumerable:true,get:function(){return n.tsTemplateLiteralType}});Object.defineProperty(t,"TSThisType",{enumerable:true,get:function(){return n.tsThisType}});Object.defineProperty(t,"TSTupleType",{enumerable:true,get:function(){return n.tsTupleType}});Object.defineProperty(t,"TSTypeAliasDeclaration",{enumerable:true,get:function(){return n.tsTypeAliasDeclaration}});Object.defineProperty(t,"TSTypeAnnotation",{enumerable:true,get:function(){return n.tsTypeAnnotation}});Object.defineProperty(t,"TSTypeAssertion",{enumerable:true,get:function(){return n.tsTypeAssertion}});Object.defineProperty(t,"TSTypeLiteral",{enumerable:true,get:function(){return n.tsTypeLiteral}});Object.defineProperty(t,"TSTypeOperator",{enumerable:true,get:function(){return n.tsTypeOperator}});Object.defineProperty(t,"TSTypeParameter",{enumerable:true,get:function(){return n.tsTypeParameter}});Object.defineProperty(t,"TSTypeParameterDeclaration",{enumerable:true,get:function(){return n.tsTypeParameterDeclaration}});Object.defineProperty(t,"TSTypeParameterInstantiation",{enumerable:true,get:function(){return n.tsTypeParameterInstantiation}});Object.defineProperty(t,"TSTypePredicate",{enumerable:true,get:function(){return n.tsTypePredicate}});Object.defineProperty(t,"TSTypeQuery",{enumerable:true,get:function(){return n.tsTypeQuery}});Object.defineProperty(t,"TSTypeReference",{enumerable:true,get:function(){return n.tsTypeReference}});Object.defineProperty(t,"TSUndefinedKeyword",{enumerable:true,get:function(){return n.tsUndefinedKeyword}});Object.defineProperty(t,"TSUnionType",{enumerable:true,get:function(){return n.tsUnionType}});Object.defineProperty(t,"TSUnknownKeyword",{enumerable:true,get:function(){return n.tsUnknownKeyword}});Object.defineProperty(t,"TSVoidKeyword",{enumerable:true,get:function(){return n.tsVoidKeyword}});Object.defineProperty(t,"TaggedTemplateExpression",{enumerable:true,get:function(){return n.taggedTemplateExpression}});Object.defineProperty(t,"TemplateElement",{enumerable:true,get:function(){return n.templateElement}});Object.defineProperty(t,"TemplateLiteral",{enumerable:true,get:function(){return n.templateLiteral}});Object.defineProperty(t,"ThisExpression",{enumerable:true,get:function(){return n.thisExpression}});Object.defineProperty(t,"ThisTypeAnnotation",{enumerable:true,get:function(){return n.thisTypeAnnotation}});Object.defineProperty(t,"ThrowStatement",{enumerable:true,get:function(){return n.throwStatement}});Object.defineProperty(t,"TopicReference",{enumerable:true,get:function(){return n.topicReference}});Object.defineProperty(t,"TryStatement",{enumerable:true,get:function(){return n.tryStatement}});Object.defineProperty(t,"TupleExpression",{enumerable:true,get:function(){return n.tupleExpression}});Object.defineProperty(t,"TupleTypeAnnotation",{enumerable:true,get:function(){return n.tupleTypeAnnotation}});Object.defineProperty(t,"TypeAlias",{enumerable:true,get:function(){return n.typeAlias}});Object.defineProperty(t,"TypeAnnotation",{enumerable:true,get:function(){return n.typeAnnotation}});Object.defineProperty(t,"TypeCastExpression",{enumerable:true,get:function(){return n.typeCastExpression}});Object.defineProperty(t,"TypeParameter",{enumerable:true,get:function(){return n.typeParameter}});Object.defineProperty(t,"TypeParameterDeclaration",{enumerable:true,get:function(){return n.typeParameterDeclaration}});Object.defineProperty(t,"TypeParameterInstantiation",{enumerable:true,get:function(){return n.typeParameterInstantiation}});Object.defineProperty(t,"TypeofTypeAnnotation",{enumerable:true,get:function(){return n.typeofTypeAnnotation}});Object.defineProperty(t,"UnaryExpression",{enumerable:true,get:function(){return n.unaryExpression}});Object.defineProperty(t,"UnionTypeAnnotation",{enumerable:true,get:function(){return n.unionTypeAnnotation}});Object.defineProperty(t,"UpdateExpression",{enumerable:true,get:function(){return n.updateExpression}});Object.defineProperty(t,"V8IntrinsicIdentifier",{enumerable:true,get:function(){return n.v8IntrinsicIdentifier}});Object.defineProperty(t,"VariableDeclaration",{enumerable:true,get:function(){return n.variableDeclaration}});Object.defineProperty(t,"VariableDeclarator",{enumerable:true,get:function(){return n.variableDeclarator}});Object.defineProperty(t,"Variance",{enumerable:true,get:function(){return n.variance}});Object.defineProperty(t,"VoidTypeAnnotation",{enumerable:true,get:function(){return n.voidTypeAnnotation}});Object.defineProperty(t,"WhileStatement",{enumerable:true,get:function(){return n.whileStatement}});Object.defineProperty(t,"WithStatement",{enumerable:true,get:function(){return n.withStatement}});Object.defineProperty(t,"YieldExpression",{enumerable:true,get:function(){return n.yieldExpression}});var n=r(3259)},3396:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildUndefinedNode=buildUndefinedNode;var n=r(4755);function buildUndefinedNode(){return(0,n.unaryExpression)("void",(0,n.numericLiteral)(0),true)}},1323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=buildChildren;var n=r(46);var s=r(8530);function buildChildren(e){const t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,n.isJSXText)(i)){(0,s.default)(i,t);continue}if((0,n.isJSXExpressionContainer)(i))i=i.expression;if((0,n.isJSXEmptyExpression)(i))continue;t.push(i)}return t}},1258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=createTSUnionType;var n=r(4755);var s=r(6066);var i=r(46);function createTSUnionType(e){const t=e.map((e=>(0,i.isTSTypeAnnotation)(e)?e.typeAnnotation:e));const r=(0,s.default)(t);if(r.length===1){return r[0]}else{return(0,n.tsUnionType)(r)}}},8329:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=clone;var n=r(363);function clone(e){return(0,n.default)(e,false)}},8637:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneDeep;var n=r(363);function cloneDeep(e){return(0,n.default)(e)}},7684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneDeepWithoutLoc;var n=r(363);function cloneDeepWithoutLoc(e){return(0,n.default)(e,true,true)}},363:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneNode;var n=r(6767);var s=r(46);const{hasOwn:i}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function cloneIfNode(e,t,r,n){if(e&&typeof e.type==="string"){return cloneNodeInternal(e,t,r,n)}return e}function cloneIfNodeOrArray(e,t,r,n){if(Array.isArray(e)){return e.map((e=>cloneIfNode(e,t,r,n)))}return cloneIfNode(e,t,r,n)}function cloneNode(e,t=true,r=false){return cloneNodeInternal(e,t,r,new Map)}function cloneNodeInternal(e,t=true,r=false,a){if(!e)return e;const{type:o}=e;const l={type:e.type};if((0,s.isIdentifier)(e)){l.name=e.name;if(i(e,"optional")&&typeof e.optional==="boolean"){l.optional=e.optional}if(i(e,"typeAnnotation")){l.typeAnnotation=t?cloneIfNodeOrArray(e.typeAnnotation,true,r,a):e.typeAnnotation}if(i(e,"decorators")){l.decorators=t?cloneIfNodeOrArray(e.decorators,true,r,a):e.decorators}}else if(!i(n.NODE_FIELDS,o)){throw new Error(`Unknown node type: "${o}"`)}else{for(const c of Object.keys(n.NODE_FIELDS[o])){if(i(e,c)){if(t){l[c]=(0,s.isFile)(e)&&c==="comments"?maybeCloneComments(e.comments,t,r,a):cloneIfNodeOrArray(e[c],true,r,a)}else{l[c]=e[c]}}}}if(i(e,"loc")){if(r){l.loc=null}else{l.loc=e.loc}}if(i(e,"leadingComments")){l.leadingComments=maybeCloneComments(e.leadingComments,t,r,a)}if(i(e,"innerComments")){l.innerComments=maybeCloneComments(e.innerComments,t,r,a)}if(i(e,"trailingComments")){l.trailingComments=maybeCloneComments(e.trailingComments,t,r,a)}if(i(e,"extra")){l.extra=Object.assign({},e.extra)}return l}function maybeCloneComments(e,t,r,n){if(!e||!t){return e}return e.map((e=>{const t=n.get(e);if(t)return t;const{type:s,value:i,loc:a}=e;const o={type:s,value:i,loc:a};if(r){o.loc=null}n.set(e,o);return o}))}},9410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cloneWithoutLoc;var n=r(363);function cloneWithoutLoc(e){return(0,n.default)(e,false,true)}},5185:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=addComment;var n=r(9039);function addComment(e,t,r,s){return(0,n.default)(e,t,[{type:s?"CommentLine":"CommentBlock",value:r}])}},9039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=addComments;function addComments(e,t,r){if(!r||!e)return e;const n=`${t}Comments`;if(e[n]){if(t==="leading"){e[n]=r.concat(e[n])}else{e[n].push(...r)}}else{e[n]=r}return e}},3041:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritInnerComments;var n=r(2660);function inheritInnerComments(e,t){(0,n.default)("innerComments",e,t)}},5151:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritLeadingComments;var n=r(2660);function inheritLeadingComments(e,t){(0,n.default)("leadingComments",e,t)}},8538:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritTrailingComments;var n=r(2660);function inheritTrailingComments(e,t){(0,n.default)("trailingComments",e,t)}},5060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inheritsComments;var n=r(8538);var s=r(5151);var i=r(3041);function inheritsComments(e,t){(0,n.default)(e,t);(0,s.default)(e,t);(0,i.default)(e,t);return e}},170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeComments;var n=r(1164);function removeComments(e){n.COMMENT_KEYS.forEach((t=>{e[t]=null}));return e}},4766:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var n=r(6767);const s=t.STANDARDIZED_TYPES=n.FLIPPED_ALIAS_KEYS["Standardized"];const i=t.EXPRESSION_TYPES=n.FLIPPED_ALIAS_KEYS["Expression"];const a=t.BINARY_TYPES=n.FLIPPED_ALIAS_KEYS["Binary"];const o=t.SCOPABLE_TYPES=n.FLIPPED_ALIAS_KEYS["Scopable"];const l=t.BLOCKPARENT_TYPES=n.FLIPPED_ALIAS_KEYS["BlockParent"];const c=t.BLOCK_TYPES=n.FLIPPED_ALIAS_KEYS["Block"];const p=t.STATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS["Statement"];const u=t.TERMINATORLESS_TYPES=n.FLIPPED_ALIAS_KEYS["Terminatorless"];const d=t.COMPLETIONSTATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS["CompletionStatement"];const f=t.CONDITIONAL_TYPES=n.FLIPPED_ALIAS_KEYS["Conditional"];const h=t.LOOP_TYPES=n.FLIPPED_ALIAS_KEYS["Loop"];const m=t.WHILE_TYPES=n.FLIPPED_ALIAS_KEYS["While"];const y=t.EXPRESSIONWRAPPER_TYPES=n.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];const g=t.FOR_TYPES=n.FLIPPED_ALIAS_KEYS["For"];const b=t.FORXSTATEMENT_TYPES=n.FLIPPED_ALIAS_KEYS["ForXStatement"];const T=t.FUNCTION_TYPES=n.FLIPPED_ALIAS_KEYS["Function"];const S=t.FUNCTIONPARENT_TYPES=n.FLIPPED_ALIAS_KEYS["FunctionParent"];const x=t.PUREISH_TYPES=n.FLIPPED_ALIAS_KEYS["Pureish"];const E=t.DECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS["Declaration"];const P=t.PATTERNLIKE_TYPES=n.FLIPPED_ALIAS_KEYS["PatternLike"];const v=t.LVAL_TYPES=n.FLIPPED_ALIAS_KEYS["LVal"];const A=t.TSENTITYNAME_TYPES=n.FLIPPED_ALIAS_KEYS["TSEntityName"];const w=t.LITERAL_TYPES=n.FLIPPED_ALIAS_KEYS["Literal"];const I=t.IMMUTABLE_TYPES=n.FLIPPED_ALIAS_KEYS["Immutable"];const C=t.USERWHITESPACABLE_TYPES=n.FLIPPED_ALIAS_KEYS["UserWhitespacable"];const O=t.METHOD_TYPES=n.FLIPPED_ALIAS_KEYS["Method"];const N=t.OBJECTMEMBER_TYPES=n.FLIPPED_ALIAS_KEYS["ObjectMember"];const k=t.PROPERTY_TYPES=n.FLIPPED_ALIAS_KEYS["Property"];const _=t.UNARYLIKE_TYPES=n.FLIPPED_ALIAS_KEYS["UnaryLike"];const D=t.PATTERN_TYPES=n.FLIPPED_ALIAS_KEYS["Pattern"];const M=t.CLASS_TYPES=n.FLIPPED_ALIAS_KEYS["Class"];const L=t.IMPORTOREXPORTDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"];const j=t.EXPORTDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS["ExportDeclaration"];const F=t.MODULESPECIFIER_TYPES=n.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];const B=t.ACCESSOR_TYPES=n.FLIPPED_ALIAS_KEYS["Accessor"];const R=t.PRIVATE_TYPES=n.FLIPPED_ALIAS_KEYS["Private"];const U=t.FLOW_TYPES=n.FLIPPED_ALIAS_KEYS["Flow"];const K=t.FLOWTYPE_TYPES=n.FLIPPED_ALIAS_KEYS["FlowType"];const V=t.FLOWBASEANNOTATION_TYPES=n.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];const W=t.FLOWDECLARATION_TYPES=n.FLIPPED_ALIAS_KEYS["FlowDeclaration"];const $=t.FLOWPREDICATE_TYPES=n.FLIPPED_ALIAS_KEYS["FlowPredicate"];const q=t.ENUMBODY_TYPES=n.FLIPPED_ALIAS_KEYS["EnumBody"];const H=t.ENUMMEMBER_TYPES=n.FLIPPED_ALIAS_KEYS["EnumMember"];const G=t.JSX_TYPES=n.FLIPPED_ALIAS_KEYS["JSX"];const J=t.MISCELLANEOUS_TYPES=n.FLIPPED_ALIAS_KEYS["Miscellaneous"];const z=t.TYPESCRIPT_TYPES=n.FLIPPED_ALIAS_KEYS["TypeScript"];const X=t.TSTYPEELEMENT_TYPES=n.FLIPPED_ALIAS_KEYS["TSTypeElement"];const Y=t.TSTYPE_TYPES=n.FLIPPED_ALIAS_KEYS["TSType"];const Q=t.TSBASETYPE_TYPES=n.FLIPPED_ALIAS_KEYS["TSBaseType"];const Z=t.MODULEDECLARATION_TYPES=L},1164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0;const r=t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"];const n=t.FLATTENABLE_KEYS=["body","expressions"];const s=t.FOR_INIT_KEYS=["left","init"];const i=t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const a=t.LOGICAL_OPERATORS=["||","&&","??"];const o=t.UPDATE_OPERATORS=["++","--"];const l=t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="];const c=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="];const p=t.COMPARISON_BINARY_OPERATORS=[...c,"in","instanceof"];const u=t.BOOLEAN_BINARY_OPERATORS=[...p,...l];const d=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];const f=t.BINARY_OPERATORS=["+",...d,...u,"|>"];const h=t.ASSIGNMENT_OPERATORS=["=","+=",...d.map((e=>e+"=")),...a.map((e=>e+"="))];const m=t.BOOLEAN_UNARY_OPERATORS=["delete","!"];const y=t.NUMBER_UNARY_OPERATORS=["+","-","~"];const g=t.STRING_UNARY_OPERATORS=["typeof"];const b=t.UNARY_OPERATORS=["void","throw",...m,...y,...g];const T=t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};{t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")}},7234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=ensureBlock;var n=r(3670);function ensureBlock(e,t="body"){const r=(0,n.default)(e[t],e);e[t]=r;return r}},6673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=gatherSequenceExpressions;var n=r(6306);var s=r(46);var i=r(4755);var a=r(3396);var o=r(363);function gatherSequenceExpressions(e,t){const r=[];let l=true;for(const c of e){if(!(0,s.isEmptyStatement)(c)){l=false}if((0,s.isExpression)(c)){r.push(c)}else if((0,s.isExpressionStatement)(c)){r.push(c.expression)}else if((0,s.isVariableDeclaration)(c)){if(c.kind!=="var")return;for(const e of c.declarations){const s=(0,n.default)(e);for(const e of Object.keys(s)){t.push({kind:c.kind,id:(0,o.default)(s[e])})}if(e.init){r.push((0,i.assignmentExpression)("=",e.id,e.init))}}l=true}else if((0,s.isIfStatement)(c)){const e=c.consequent?gatherSequenceExpressions([c.consequent],t):(0,a.buildUndefinedNode)();const n=c.alternate?gatherSequenceExpressions([c.alternate],t):(0,a.buildUndefinedNode)();if(!e||!n)return;r.push((0,i.conditionalExpression)(c.test,e,n))}else if((0,s.isBlockStatement)(c)){const e=gatherSequenceExpressions(c.body,t);if(!e)return;r.push(e)}else if((0,s.isEmptyStatement)(c)){if(e.indexOf(c)===0){l=true}}else{return}}if(l){r.push((0,a.buildUndefinedNode)())}if(r.length===1){return r[0]}else{return(0,i.sequenceExpression)(r)}}},1350:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toBindingIdentifierName;var n=r(1334);function toBindingIdentifierName(e){e=(0,n.default)(e);if(e==="eval"||e==="arguments")e="_"+e;return e}},3670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toBlock;var n=r(46);var s=r(4755);function toBlock(e,t){if((0,n.isBlockStatement)(e)){return e}let r=[];if((0,n.isEmptyStatement)(e)){r=[]}else{if(!(0,n.isStatement)(e)){if((0,n.isFunction)(t)){e=(0,s.returnStatement)(e)}else{e=(0,s.expressionStatement)(e)}}r=[e]}return(0,s.blockStatement)(r)}},5847:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toComputedKey;var n=r(46);var s=r(4755);function toComputedKey(e,t=e.key||e.property){if(!e.computed&&(0,n.isIdentifier)(t))t=(0,s.stringLiteral)(t.name);return t}},4811:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(46);var s=t["default"]=toExpression;function toExpression(e){if((0,n.isExpressionStatement)(e)){e=e.expression}if((0,n.isExpression)(e)){return e}if((0,n.isClass)(e)){e.type="ClassExpression"}else if((0,n.isFunction)(e)){e.type="FunctionExpression"}if(!(0,n.isExpression)(e)){throw new Error(`cannot turn ${e.type} to an expression`)}return e}},1334:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toIdentifier;var n=r(2892);var s=r(974);function toIdentifier(e){e=e+"";let t="";for(const r of e){t+=(0,s.isIdentifierChar)(r.codePointAt(0))?r:"-"}t=t.replace(/^[-0-9]+/,"");t=t.replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}));if(!(0,n.default)(t)){t=`_${t}`}return t||"_"}},1480:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toKeyAlias;var n=r(46);var s=r(363);var i=r(9437);function toKeyAlias(e,t=e.key){let r;if(e.kind==="method"){return toKeyAlias.increment()+""}else if((0,n.isIdentifier)(t)){r=t.name}else if((0,n.isStringLiteral)(t)){r=JSON.stringify(t.value)}else{r=JSON.stringify((0,i.default)((0,s.default)(t)))}if(e.computed){r=`[${r}]`}if(e.static){r=`static:${r}`}return r}toKeyAlias.uid=0;toKeyAlias.increment=function(){if(toKeyAlias.uid>=Number.MAX_SAFE_INTEGER){return toKeyAlias.uid=0}else{return toKeyAlias.uid++}}},4136:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=toSequenceExpression;var n=r(6673);function toSequenceExpression(e,t){if(!(e!=null&&e.length))return;const r=[];const s=(0,n.default)(e,r);if(!s)return;for(const e of r){t.push(e)}return s}},1035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(46);var s=r(4755);var i=t["default"]=toStatement;function toStatement(e,t){if((0,n.isStatement)(e)){return e}let r=false;let i;if((0,n.isClass)(e)){r=true;i="ClassDeclaration"}else if((0,n.isFunction)(e)){r=true;i="FunctionDeclaration"}else if((0,n.isAssignmentExpression)(e)){return(0,s.expressionStatement)(e)}if(r&&!e.id){i=false}if(!i){if(t){return false}else{throw new Error(`cannot turn ${e.type} to a statement`)}}e.type=i;return e}},5222:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(2892);var s=r(4755);var i=t["default"]=valueToNode;const a=Function.call.bind(Object.prototype.toString);function isRegExp(e){return a(e)==="[object RegExp]"}function isPlainObject(e){if(typeof e!=="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]"){return false}const t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function valueToNode(e){if(e===undefined){return(0,s.identifier)("undefined")}if(e===true||e===false){return(0,s.booleanLiteral)(e)}if(e===null){return(0,s.nullLiteral)()}if(typeof e==="string"){return(0,s.stringLiteral)(e)}if(typeof e==="number"){let t;if(Number.isFinite(e)){t=(0,s.numericLiteral)(Math.abs(e))}else{let r;if(Number.isNaN(e)){r=(0,s.numericLiteral)(0)}else{r=(0,s.numericLiteral)(1)}t=(0,s.binaryExpression)("/",r,(0,s.numericLiteral)(0))}if(e<0||Object.is(e,-0)){t=(0,s.unaryExpression)("-",t)}return t}if(typeof e==="bigint"){return(0,s.bigIntLiteral)(e.toString())}if(isRegExp(e)){const t=e.source;const r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,s.regExpLiteral)(t,r)}if(Array.isArray(e)){return(0,s.arrayExpression)(e.map(valueToNode))}if(isPlainObject(e)){const t=[];for(const r of Object.keys(e)){let i,a=false;if((0,n.default)(r)){if(r==="__proto__"){a=true;i=(0,s.stringLiteral)(r)}else{i=(0,s.identifier)(r)}}else{i=(0,s.stringLiteral)(r)}t.push((0,s.objectProperty)(i,valueToNode(e[r]),a))}return(0,s.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}},485:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var n=r(7670);var s=r(2892);var i=r(974);var a=r(5241);var o=r(1164);var l=r(6624);const c=(0,l.defineAliasedType)("Standardized");c("ArrayExpression",{fields:{elements:{validate:(0,l.arrayOf)((0,l.assertNodeOrValueType)("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:undefined}},visitor:["elements"],aliases:["Expression"]});c("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertValueType)("string"):Object.assign(function(){const e=(0,l.assertOneOf)(...o.ASSIGNMENT_OPERATORS);const t=(0,l.assertOneOf)("=");return function(r,s,i){const a=(0,n.default)("Pattern",r.left)?t:e;a(r,s,i)}}(),{type:"string"})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("LVal","OptionalMemberExpression"):(0,l.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});c("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,l.assertOneOf)(...o.BINARY_OPERATORS)},left:{validate:function(){const e=(0,l.assertNodeType)("Expression");const t=(0,l.assertNodeType)("Expression","PrivateName");const r=Object.assign((function(r,n,s){const i=r.operator==="in"?t:e;i(r,n,s)}),{oneOfNodeTypes:["Expression","PrivateName"]});return r}()},right:{validate:(0,l.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});c("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}});c("Directive",{visitor:["value"],fields:{value:{validate:(0,l.assertNodeType)("DirectiveLiteral")}}});c("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}}});c("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});c("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:true}},{optional:{validate:(0,l.assertValueType)("boolean"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:true}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,l.assertValueType)("boolean"),optional:true}})});c("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:true},body:{validate:(0,l.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});c("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Expression")},alternate:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});c("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,l.assertNodeType)("Identifier"),optional:true}},aliases:["Statement","Terminatorless","CompletionStatement"]});c("DebuggerStatement",{aliases:["Statement"]});c("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});c("EmptyStatement",{aliases:["Statement"]});c("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});c("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,l.assertNodeType)("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):(0,l.assertEach)((0,l.assertNodeType)("CommentBlock","CommentLine")),optional:true},tokens:{validate:(0,l.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:true}}});c("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("VariableDeclaration","LVal"):(0,l.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,l.assertNodeType)("VariableDeclaration","Expression"),optional:true},test:{validate:(0,l.assertNodeType)("Expression"),optional:true},update:{validate:(0,l.assertNodeType)("Expression"),optional:true},body:{validate:(0,l.assertNodeType)("Statement")}}});const functionCommon=()=>({params:(0,l.validateArrayOfType)("Identifier","Pattern","RestElement"),generator:{default:false},async:{default:false}});t.functionCommon=functionCommon;const functionTypeAnnotationCommon=()=>({returnType:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true}});t.functionTypeAnnotationCommon=functionTypeAnnotationCommon;const functionDeclarationCommon=()=>Object.assign({},functionCommon(),{declare:{validate:(0,l.assertValueType)("boolean"),optional:true},id:{validate:(0,l.assertNodeType)("Identifier"),optional:true}});t.functionDeclarationCommon=functionDeclarationCommon;c("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},functionDeclarationCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){if(!(0,n.default)("ExportDefaultDeclaration",t)){e(s,"id",s.id)}}}()});c("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{id:{validate:(0,l.assertNodeType)("Identifier"),optional:true},body:{validate:(0,l.assertNodeType)("BlockStatement")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});const patternLikeCommon=()=>({typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},optional:{validate:(0,l.assertValueType)("boolean"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}});t.patternLikeCommon=patternLikeCommon;c("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},patternLikeCommon(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){if(!(0,s.default)(r,false)){throw new TypeError(`"${r}" is not a valid identifier name`)}}),{type:"string"})):(0,l.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){const s=/\.(\w+)$/.exec(t.toString());if(!s)return;const[,a]=s;const o={computed:false};if(a==="property"){if((0,n.default)("MemberExpression",e,o))return;if((0,n.default)("OptionalMemberExpression",e,o))return}else if(a==="key"){if((0,n.default)("Property",e,o))return;if((0,n.default)("Method",e,o))return}else if(a==="exported"){if((0,n.default)("ExportSpecifier",e))return}else if(a==="imported"){if((0,n.default)("ImportSpecifier",e,{imported:r}))return}else if(a==="meta"){if((0,n.default)("MetaProperty",e,{meta:r}))return}if(((0,i.isKeyword)(r.name)||(0,i.isReservedWord)(r.name,false))&&r.name!=="this"){throw new TypeError(`"${r.name}" is not a valid identifier`)}}:undefined});c("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},consequent:{validate:(0,l.assertNodeType)("Statement")},alternate:{optional:true,validate:(0,l.assertNodeType)("Statement")}}});c("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,l.assertNodeType)("Identifier")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("StringLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,l.chain)((0,l.assertValueType)("number"),Object.assign((function(e,t,r){if(1/r<0||!Number.isFinite(r)){const e=new Error("NumericLiterals must be non-negative finite numbers. "+`You can use t.valueToNode(${r}) instead.`);{}}}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});c("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});c("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,l.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("string"),Object.assign((function(e,t,r){const n=/[^gimsuy]/.exec(r);if(n){throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)}}),{type:"string"})):(0,l.assertValueType)("string"),default:""}}});c("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,l.assertOneOf)(...o.LOGICAL_OPERATORS)},left:{validate:(0,l.assertNodeType)("Expression")},right:{validate:(0,l.assertNodeType)("Expression")}}});c("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,l.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier","PrivateName");const t=(0,l.assertNodeType)("Expression");const validator=function(r,n,s){const i=r.computed?t:e;i(r,n,s)};validator.oneOfNodeTypes=["Expression","Identifier","PrivateName"];return validator}()},computed:{default:false}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,l.assertValueType)("boolean"),optional:true}}:{})});c("NewExpression",{inherits:"CallExpression"});c("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,l.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,l.assertNodeType)("InterpreterDirective"),default:null,optional:true},directives:{validate:(0,l.arrayOfType)("Directive"),default:[]},body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});c("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,l.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});c("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{kind:Object.assign({validate:(0,l.assertOneOf)("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:false},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral");const t=(0,l.assertNodeType)("Expression");const validator=function(r,n,s){const i=r.computed?t:e;i(r,n,s)};validator.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"];return validator}()},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},body:{validate:(0,l.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});c("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],fields:{computed:{default:false},key:{validate:function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName");const t=(0,l.assertNodeType)("Expression");const r=Object.assign((function(r,n,s){const i=r.computed?t:e;i(r,n,s)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]});return r}()},value:{validate:(0,l.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(!r)return;if(e.computed){throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")}if(!(0,n.default)("Identifier",e.key)){throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}}),{type:"boolean"})):(0,l.assertValueType)("boolean"),default:false},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const e=(0,l.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion");const t=(0,l.assertNodeType)("Expression");return function(r,s,i){const a=(0,n.default)("ObjectPattern",r)?e:t;a(i,"value",i.value)}}()});c("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},patternLikeCommon(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("LVal"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){const r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");const[,n,s]=r;if(e[n].length>+s+1){throw new TypeError(`RestElement must be last element of ${n}`)}}:undefined});c("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression"),optional:true}}});c("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,l.validateArrayOfType)("Expression")},aliases:["Expression"]});c("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,l.assertNodeType)("Expression")}}});c("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,l.assertNodeType)("Expression"),optional:true},consequent:(0,l.validateArrayOfType)("Statement")}});c("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,l.assertNodeType)("Expression")},cases:(0,l.validateArrayOfType)("SwitchCase")}});c("ThisExpression",{aliases:["Expression"]});c("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}});c("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("BlockStatement"),Object.assign((function(e){if(!e.handler&&!e.finalizer){throw new TypeError("TryStatement expects either a handler or finalizer, or both")}}),{oneOfNodeTypes:["BlockStatement"]})):(0,l.assertNodeType)("BlockStatement")},handler:{optional:true,validate:(0,l.assertNodeType)("CatchClause")},finalizer:{optional:true,validate:(0,l.assertNodeType)("BlockStatement")}}});c("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:true},argument:{validate:(0,l.assertNodeType)("Expression")},operator:{validate:(0,l.assertOneOf)(...o.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});c("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:false},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("Expression"):(0,l.assertNodeType)("Identifier","MemberExpression")},operator:{validate:(0,l.assertOneOf)(...o.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});c("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,l.assertValueType)("boolean"),optional:true},kind:{validate:(0,l.assertOneOf)("var","let","const","using","await using")},declarations:(0,l.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){if((0,n.default)("ForXStatement",t,{left:s})){if(s.declarations.length!==1){throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`)}}else{s.declarations.forEach((t=>{if(!t.init)e(t,"id",t.id)}))}}})():undefined});c("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertNodeType)("LVal"):(0,l.assertNodeType)("Identifier","ArrayPattern","ObjectPattern")},definite:{optional:true,validate:(0,l.assertValueType)("boolean")},init:{optional:true,validate:(0,l.assertNodeType)("Expression")}}});c("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")}}});c("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{left:{validate:(0,l.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,l.assertNodeType)("Expression")},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}})});c("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{elements:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeOrValueType)("null","PatternLike","LVal")))}})});c("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},functionCommon(),functionTypeAnnotationCommon(),{expression:{validate:(0,l.assertValueType)("boolean")},body:{validate:(0,l.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,l.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:true}})});c("ClassBody",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});c("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,l.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:true}}});c("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,l.assertNodeType)("Identifier"),optional:true},typeParameters:{validate:(0,l.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:true},body:{validate:(0,l.assertNodeType)("ClassBody")},superClass:{optional:true,validate:(0,l.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true},implements:{validate:(0,l.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},mixins:{validate:(0,l.assertNodeType)("InterfaceExtends"),optional:true},declare:{validate:(0,l.assertValueType)("boolean"),optional:true},abstract:{validate:(0,l.assertValueType)("boolean"),optional:true}},validate:!process.env.BABEL_TYPES_8_BREAKING?undefined:function(){const e=(0,l.assertNodeType)("Identifier");return function(t,r,s){if(!(0,n.default)("ExportDefaultDeclaration",t)){e(s,"id",s.id)}}}()});const p=t.importAttributes={attributes:{optional:true,validate:(0,l.arrayOfType)("ImportAttribute")},assertions:{deprecated:true,optional:true,validate:(0,l.arrayOfType)("ImportAttribute")}};c("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,l.assertNodeType)("StringLiteral")},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))},p)});c("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,l.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,l.validateOptional)((0,l.assertOneOf)("value"))}});c("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:process.env?["declaration","specifiers","source","attributes"]:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:true,validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(r&&e.specifiers.length){throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")}if(r&&e.source){throw new TypeError("Cannot export a declaration from a source")}}),{oneOfNodeTypes:["Declaration"]})):(0,l.assertNodeType)("Declaration")}},p,{specifiers:{default:[],validate:(0,l.arrayOf)(function(){const e=(0,l.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier");const t=(0,l.assertNodeType)("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return e;return Object.assign((function(r,n,s){const i=r.source?e:t;i(r,n,s)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:(0,l.assertNodeType)("StringLiteral"),optional:true},exportKind:(0,l.validateOptional)((0,l.assertOneOf)("type","value"))})});c("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},exported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,l.assertOneOf)("type","value"),optional:true}}});c("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING){return(0,l.assertNodeType)("VariableDeclaration","LVal")}const e=(0,l.assertNodeType)("VariableDeclaration");const t=(0,l.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(r,s,i){if((0,n.default)("VariableDeclaration",i)){e(r,s,i)}else{t(r,s,i)}}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,l.assertNodeType)("Expression")},body:{validate:(0,l.assertNodeType)("Statement")},await:{default:false}}});c("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},p,{module:{optional:true,validate:(0,l.assertValueType)("boolean")},phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},specifiers:(0,l.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,l.assertNodeType)("StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:true}})});c("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}});c("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")}}});c("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,l.assertNodeType)("Identifier")},imported:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,l.assertOneOf)("type","typeof","value"),optional:true}}});c("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,l.assertOneOf)("source","defer")},source:{validate:(0,l.assertNodeType)("Expression")},options:{validate:(0,l.assertNodeType)("Expression"),optional:true}}});c("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertNodeType)("Identifier"),Object.assign((function(e,t,r){let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta";break}if(!(0,n.default)("Identifier",e.property,{name:s})){throw new TypeError("Unrecognised MetaProperty")}}),{oneOfNodeTypes:["Identifier"]})):(0,l.assertNodeType)("Identifier")},property:{validate:(0,l.assertNodeType)("Identifier")}}});const classMethodOrPropertyCommon=()=>({abstract:{validate:(0,l.assertValueType)("boolean"),optional:true},accessibility:{validate:(0,l.assertOneOf)("public","private","protected"),optional:true},static:{default:false},override:{default:false},computed:{default:false},optional:{validate:(0,l.assertValueType)("boolean"),optional:true},key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral");const t=(0,l.assertNodeType)("Expression");return function(r,n,s){const i=r.computed?t:e;i(r,n,s)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=classMethodOrPropertyCommon;const classMethodOrDeclareMethodCommon=()=>Object.assign({},functionCommon(),classMethodOrPropertyCommon(),{params:(0,l.validateArrayOfType)("Identifier","Pattern","RestElement","TSParameterProperty"),kind:{validate:(0,l.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,l.chain)((0,l.assertValueType)("string"),(0,l.assertOneOf)("public","private","protected")),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true}});t.classMethodOrDeclareMethodCommon=classMethodOrDeclareMethodCommon;c("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{body:{validate:(0,l.assertNodeType)("BlockStatement")}})});c("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},patternLikeCommon(),{properties:(0,l.validateArrayOfType)("RestElement","ObjectProperty")})});c("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}});c("Super",{aliases:["Expression"]});c("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,l.assertNodeType)("Expression")},quasi:{validate:(0,l.assertNodeType)("TemplateLiteral")},["typeParameters"]:{validate:(0,l.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:true}}});c("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,l.chain)((0,l.assertShape)({raw:{validate:(0,l.assertValueType)("string")},cooked:{validate:(0,l.assertValueType)("string"),optional:true}}),(function templateElementCookedValidator(e){const t=e.value.raw;let r=false;const error=()=>{throw new Error("Internal @babel/types error.")};const{str:n,firstInvalidLoc:s}=(0,a.readStringContents)("template",t,0,0,0,{unterminated(){r=true},strictNumericEscape:error,invalidEscapeSequence:error,numericSeparatorInEscapeSequence:error,unexpectedNumericSeparator:error,invalidDigit:error,invalidCodePoint:error});if(!r)throw new Error("Invalid raw");e.value.cooked=s?null:n}))},tail:{default:false}}});c("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,l.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,l.chain)((0,l.assertValueType)("array"),(0,l.assertEach)((0,l.assertNodeType)("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1){throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)}}))}}});c("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,l.chain)((0,l.assertValueType)("boolean"),Object.assign((function(e,t,r){if(r&&!e.argument){throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}}),{type:"boolean"})):(0,l.assertValueType)("boolean"),default:false},argument:{optional:true,validate:(0,l.assertNodeType)("Expression")}}});c("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,l.assertNodeType)("Expression")}}});c("Import",{aliases:["Expression"]});c("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,l.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});c("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,l.assertNodeType)("Identifier")}}});c("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,l.assertNodeType)("Expression")},property:{validate:function(){const e=(0,l.assertNodeType)("Identifier");const t=(0,l.assertNodeType)("Expression");const r=Object.assign((function(r,n,s){const i=r.computed?t:e;i(r,n,s)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:false},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertValueType)("boolean"):(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)())}}});c("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,l.assertNodeType)("Expression")},arguments:(0,l.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,l.assertValueType)("boolean"):(0,l.chain)((0,l.assertValueType)("boolean"),(0,l.assertOptionalChainStart)())},typeArguments:{validate:(0,l.assertNodeType)("TypeParameterInstantiation"),optional:true}},{typeParameters:{validate:(0,l.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});c("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},classMethodOrPropertyCommon(),{value:{validate:(0,l.assertNodeType)("Expression"),optional:true},definite:{validate:(0,l.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0,l.assertValueType)("boolean"),optional:true},declare:{validate:(0,l.assertValueType)("boolean"),optional:true},variance:{validate:(0,l.assertNodeType)("Variance"),optional:true}})});c("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},classMethodOrPropertyCommon(),{key:{validate:(0,l.chain)(function(){const e=(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName");const t=(0,l.assertNodeType)("Expression");return function(r,n,s){const i=r.computed?t:e;i(r,n,s)}}(),(0,l.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,l.assertNodeType)("Expression"),optional:true},definite:{validate:(0,l.assertValueType)("boolean"),optional:true},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},readonly:{validate:(0,l.assertValueType)("boolean"),optional:true},declare:{validate:(0,l.assertValueType)("boolean"),optional:true},variance:{validate:(0,l.assertNodeType)("Variance"),optional:true}})});c("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,l.assertNodeType)("PrivateName")},value:{validate:(0,l.assertNodeType)("Expression"),optional:true},typeAnnotation:{validate:(0,l.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:true},decorators:{validate:(0,l.arrayOfType)("Decorator"),optional:true},static:{validate:(0,l.assertValueType)("boolean"),default:false},readonly:{validate:(0,l.assertValueType)("boolean"),optional:true},optional:{validate:(0,l.assertValueType)("boolean"),optional:true},definite:{validate:(0,l.assertValueType)("boolean"),optional:true},variance:{validate:(0,l.assertNodeType)("Variance"),optional:true}}});c("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},classMethodOrDeclareMethodCommon(),functionTypeAnnotationCommon(),{kind:{validate:(0,l.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,l.assertNodeType)("PrivateName")},body:{validate:(0,l.assertNodeType)("BlockStatement")}})});c("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,l.assertNodeType)("Identifier")}}});c("StaticBlock",{visitor:["body"],fields:{body:(0,l.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});c("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,l.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,l.assertNodeType)("StringLiteral")}}})},6738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DEPRECATED_ALIASES=void 0;const r=t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},4414:(e,t,r)=>{"use strict";var n=r(6624);(0,n.default)("ArgumentPlaceholder",{});(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}});(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}});(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:false}}});(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}});(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,n.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});{(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]})}(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]});(0,n.default)("TopicReference",{aliases:["Expression"]});(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]});(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]});(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})},6769:(e,t,r)=>{"use strict";var n=r(485);var s=r(6624);const i=(0,s.defineAliasedType)("Flow");const defineInterfaceishType=e=>{const t=e==="DeclareClass";i(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),extends:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends")),implements:(0,s.validateOptional)((0,s.arrayOfType)("ClassImplements"))}:{},{body:(0,s.validateType)("ObjectTypeAnnotation")})})};i("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,s.validateType)("FlowType")}});i("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}});defineInterfaceishType("DeclareClass");i("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),predicate:(0,s.validateOptionalType)("DeclaredPredicate")}});defineInterfaceishType("DeclareInterface");i("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier","StringLiteral"),body:(0,s.validateType)("BlockStatement"),kind:(0,s.validateOptional)((0,s.assertOneOf)("CommonJS","ES"))}});i("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,s.validateType)("TypeAnnotation")}});i("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),right:(0,s.validateType)("FlowType")}});i("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,s.validateOptionalType)("FlowType"),impltype:(0,s.validateOptionalType)("FlowType")}});i("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier")}});i("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,s.validateOptionalType)("Flow"),specifiers:(0,s.validateOptional)((0,s.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,s.validateOptionalType)("StringLiteral"),default:(0,s.validateOptional)((0,s.assertValueType)("boolean"))},n.importAttributes)});i("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,s.validateType)("StringLiteral"),exportKind:(0,s.validateOptional)((0,s.assertOneOf)("type","value"))},n.importAttributes)});i("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,s.validateType)("Flow")}});i("ExistsTypeAnnotation",{aliases:["FlowType"]});i("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),params:(0,s.validateArrayOfType)("FunctionTypeParam"),rest:(0,s.validateOptionalType)("FunctionTypeParam"),this:(0,s.validateOptionalType)("FunctionTypeParam"),returnType:(0,s.validateType)("FlowType")}});i("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,s.validateOptionalType)("Identifier"),typeAnnotation:(0,s.validateType)("FlowType"),optional:(0,s.validateOptional)((0,s.assertValueType)("boolean"))}});i("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,s.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}});i("InferredPredicate",{aliases:["FlowPredicate"]});i("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,s.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterInstantiation")}});defineInterfaceishType("InterfaceDeclaration");i("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,s.validateOptional)((0,s.arrayOfType)("InterfaceExtends")),body:(0,s.validateType)("ObjectTypeAnnotation")}});i("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}});i("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,s.validateType)("FlowType")}});i("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("number"))}});i("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,s.validate)((0,s.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,s.arrayOfType)("ObjectTypeIndexer"),optional:true,default:[]},callProperties:{validate:(0,s.arrayOfType)("ObjectTypeCallProperty"),optional:true,default:[]},internalSlots:{validate:(0,s.arrayOfType)("ObjectTypeInternalSlot"),optional:true,default:[]},exact:{validate:(0,s.assertValueType)("boolean"),default:false},inexact:(0,s.validateOptional)((0,s.assertValueType)("boolean"))}});i("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,s.validateType)("Identifier"),value:(0,s.validateType)("FlowType"),optional:(0,s.validate)((0,s.assertValueType)("boolean")),static:(0,s.validate)((0,s.assertValueType)("boolean")),method:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,s.validateType)("FlowType"),static:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,s.validateOptionalType)("Identifier"),key:(0,s.validateType)("FlowType"),value:(0,s.validateType)("FlowType"),static:(0,s.validate)((0,s.assertValueType)("boolean")),variance:(0,s.validateOptionalType)("Variance")}});i("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,s.validateType)("Identifier","StringLiteral"),value:(0,s.validateType)("FlowType"),kind:(0,s.validate)((0,s.assertOneOf)("init","get","set")),static:(0,s.validate)((0,s.assertValueType)("boolean")),proto:(0,s.validate)((0,s.assertValueType)("boolean")),optional:(0,s.validate)((0,s.assertValueType)("boolean")),variance:(0,s.validateOptionalType)("Variance"),method:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,s.validateType)("FlowType")}});i("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,s.validateOptionalType)("FlowType"),impltype:(0,s.validateType)("FlowType")}});i("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,s.validateType)("Identifier"),qualification:(0,s.validateType)("Identifier","QualifiedTypeIdentifier")}});i("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,s.validate)((0,s.assertValueType)("string"))}});i("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}});i("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,s.validateType)("FlowType")}});i("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,s.validateType)("Identifier"),typeParameters:(0,s.validateOptionalType)("TypeParameterDeclaration"),right:(0,s.validateType)("FlowType")}});i("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,s.validateType)("FlowType")}});i("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,s.validateType)("Expression"),typeAnnotation:(0,s.validateType)("TypeAnnotation")}});i("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,s.validate)((0,s.assertValueType)("string")),bound:(0,s.validateOptionalType)("TypeAnnotation"),default:(0,s.validateOptionalType)("FlowType"),variance:(0,s.validateOptionalType)("Variance")}});i("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,s.validate)((0,s.arrayOfType)("TypeParameter"))}});i("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,s.validate)((0,s.arrayOfType)("FlowType"))}});i("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,s.validate)((0,s.arrayOfType)("FlowType"))}});i("Variance",{builder:["kind"],fields:{kind:(0,s.validate)((0,s.assertOneOf)("minus","plus"))}});i("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});i("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,s.validateType)("Identifier"),body:(0,s.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});i("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,s.validate)((0,s.assertValueType)("boolean")),members:(0,s.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,s.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,s.validate)((0,s.assertValueType)("boolean"))}});i("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("BooleanLiteral")}});i("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("NumericLiteral")}});i("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,s.validateType)("Identifier"),init:(0,s.validateType)("StringLiteral")}});i("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,s.validateType)("Identifier")}});i("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,s.validateType)("FlowType"),indexType:(0,s.validateType)("FlowType")}});i("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,s.validateType)("FlowType"),indexType:(0,s.validateType)("FlowType"),optional:(0,s.validate)((0,s.assertValueType)("boolean"))}})},6767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ALIAS_KEYS",{enumerable:true,get:function(){return n.ALIAS_KEYS}});Object.defineProperty(t,"BUILDER_KEYS",{enumerable:true,get:function(){return n.BUILDER_KEYS}});Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:true,get:function(){return i.DEPRECATED_ALIASES}});Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:true,get:function(){return n.DEPRECATED_KEYS}});Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:true,get:function(){return n.FLIPPED_ALIAS_KEYS}});Object.defineProperty(t,"NODE_FIELDS",{enumerable:true,get:function(){return n.NODE_FIELDS}});Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:true,get:function(){return n.NODE_PARENT_VALIDATIONS}});Object.defineProperty(t,"PLACEHOLDERS",{enumerable:true,get:function(){return s.PLACEHOLDERS}});Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:true,get:function(){return s.PLACEHOLDERS_ALIAS}});Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:true,get:function(){return s.PLACEHOLDERS_FLIPPED_ALIAS}});t.TYPES=void 0;Object.defineProperty(t,"VISITOR_KEYS",{enumerable:true,get:function(){return n.VISITOR_KEYS}});r(485);r(6769);r(4985);r(3482);r(4414);r(2273);var n=r(6624);var s=r(771);var i=r(6738);Object.keys(i.DEPRECATED_ALIASES).forEach((e=>{n.FLIPPED_ALIAS_KEYS[e]=n.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[e]]}));for(const{types:e,set:t}of n.allExpandedTypes){for(const r of e){const e=n.FLIPPED_ALIAS_KEYS[r];if(e){e.forEach(t.add,t)}else{t.add(r)}}}const a=t.TYPES=[].concat(Object.keys(n.VISITOR_KEYS),Object.keys(n.FLIPPED_ALIAS_KEYS),Object.keys(n.DEPRECATED_KEYS))},4985:(e,t,r)=>{"use strict";var n=r(6624);const s=(0,n.defineAliasedType)("JSX");s("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:true,validate:(0,n.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});s("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});s("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,n.assertNodeType)("JSXOpeningElement")},closingElement:{optional:true,validate:(0,n.assertNodeType)("JSXClosingElement")},children:(0,n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,n.assertValueType)("boolean"),optional:true}})});s("JSXEmptyExpression",{});s("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression","JSXEmptyExpression")}}});s("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}});s("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,n.assertValueType)("string")}}});s("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,n.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,n.assertNodeType)("JSXIdentifier")}}});s("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,n.assertNodeType)("JSXIdentifier")},name:{validate:(0,n.assertNodeType)("JSXIdentifier")}}});s("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,n.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:false},attributes:(0,n.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,n.assertNodeType)("TypeParameterInstantiation"),optional:true}},{typeParameters:{validate:(0,n.assertNodeType)("TSTypeParameterInstantiation"),optional:true}})});s("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,n.assertNodeType)("Expression")}}});s("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}}});s("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,n.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,n.assertNodeType)("JSXClosingFragment")},children:(0,n.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});s("JSXOpeningFragment",{aliases:["Immutable"]});s("JSXClosingFragment",{aliases:["Immutable"]})},3482:(e,t,r)=>{"use strict";var n=r(6624);var s=r(771);var i=r(485);const a=(0,n.defineAliasedType)("Miscellaneous");{a("Noop",{visitor:[]})}a("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,n.assertNodeType)("Identifier")},expectedNode:{validate:(0,n.assertOneOf)(...s.PLACEHOLDERS)}},(0,i.patternLikeCommon)())});a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,n.assertValueType)("string")}}})},771:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var n=r(6624);const s=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"];const i=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of s){const t=n.ALIAS_KEYS[e];if(t!=null&&t.length)i[e]=t}const a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(i).forEach((e=>{i[e].forEach((t=>{if(!hasOwnProperty.call(a,t)){a[t]=[]}a[t].push(e)}))}))},2273:(e,t,r)=>{"use strict";var n=r(6624);var s=r(485);var i=r(7670);const a=(0,n.defineAliasedType)("TypeScript");const o=(0,n.assertValueType)("boolean");const tSFunctionTypeAnnotationCommon=()=>({returnType:{validate:(0,n.assertNodeType)("TSTypeAnnotation","Noop"),optional:true},typeParameters:{validate:(0,n.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:true}});a("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,n.assertOneOf)("public","private","protected"),optional:true},readonly:{validate:(0,n.assertValueType)("boolean"),optional:true},parameter:{validate:(0,n.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,n.assertValueType)("boolean"),optional:true},decorators:{validate:(0,n.arrayOfType)("Decorator"),optional:true}}});a("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,s.functionDeclarationCommon)(),tSFunctionTypeAnnotationCommon())});a("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,s.classMethodOrDeclareMethodCommon)(),tSFunctionTypeAnnotationCommon())});a("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,n.validateType)("TSEntityName"),right:(0,n.validateType)("Identifier")}});const signatureDeclarationCommon=()=>({typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),["parameters"]:(0,n.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:(0,n.validateOptionalType)("TSTypeAnnotation")});const l={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:signatureDeclarationCommon()};a("TSCallSignatureDeclaration",l);a("TSConstructSignatureDeclaration",l);const namedTypeElementCommon=()=>({key:(0,n.validateType)("Expression"),computed:{default:false},optional:(0,n.validateOptional)(o)});a("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},namedTypeElementCommon(),{readonly:(0,n.validateOptional)(o),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation"),kind:{optional:true,validate:(0,n.assertOneOf)("get","set")}})});a("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},signatureDeclarationCommon(),namedTypeElementCommon(),{kind:{validate:(0,n.assertOneOf)("method","get","set")}})});a("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,n.validateOptional)(o),static:(0,n.validateOptional)(o),parameters:(0,n.validateArrayOfType)("Identifier"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation")}});const c=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of c){a(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}})}a("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const p={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};a("TSFunctionType",Object.assign({},p,{fields:signatureDeclarationCommon()}));a("TSConstructorType",Object.assign({},p,{fields:Object.assign({},signatureDeclarationCommon(),{abstract:(0,n.validateOptional)(o)})}));a("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,n.validateType)("TSEntityName"),["typeParameters"]:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}});a("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,n.validateType)("Identifier","TSThisType"),typeAnnotation:(0,n.validateOptionalType)("TSTypeAnnotation"),asserts:(0,n.validateOptional)(o)}});a("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,n.validateType)("TSEntityName","TSImportType"),["typeParameters"]:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}});a("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("TSTypeElement")}});a("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,n.validateType)("TSType")}});a("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,n.validateArrayOfType)("TSType","TSNamedTupleMember")}});a("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}});a("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}});a("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,n.validateType)("Identifier"),optional:{validate:o,default:false},elementType:(0,n.validateType)("TSType")}});const u={aliases:["TSType"],visitor:["types"],fields:{types:(0,n.validateArrayOfType)("TSType")}};a("TSUnionType",u);a("TSIntersectionType",u);a("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,n.validateType)("TSType"),extendsType:(0,n.validateType)("TSType"),trueType:(0,n.validateType)("TSType"),falseType:(0,n.validateType)("TSType")}});a("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,n.validateType)("TSTypeParameter")}});a("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("TSType")}});a("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,n.validate)((0,n.assertValueType)("string")),typeAnnotation:(0,n.validateType)("TSType")}});a("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,n.validateType)("TSType"),indexType:(0,n.validateType)("TSType")}});a("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,n.validateType)("TSTypeParameter")},{readonly:(0,n.validateOptional)((0,n.assertOneOf)(true,false,"+","-")),optional:(0,n.validateOptional)((0,n.assertOneOf)(true,false,"+","-")),typeAnnotation:(0,n.validateOptionalType)("TSType"),nameType:(0,n.validateOptionalType)("TSType")})});a("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,n.validateArrayOfType)("TemplateElement"),types:{validate:(0,n.chain)((0,n.assertValueType)("array"),(0,n.assertEach)((0,n.assertNodeType)("TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1){throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${r.length+1} quasis but got ${e.quasis.length}`)}}))}}});a("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,n.assertNodeType)("NumericLiteral","BigIntLiteral");const t=(0,n.assertOneOf)("-");const r=(0,n.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function validator(n,s,a){if((0,i.default)("UnaryExpression",a)){t(a,"operator",a.operator);e(a,"argument",a.argument)}else{r(n,s,a)}}validator.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"];return validator}()}}});{a("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,n.validateType)("TSEntityName"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}})}a("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,n.validateOptional)(o),id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,n.validateOptional)((0,n.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,n.validateType)("TSInterfaceBody")}});a("TSInterfaceBody",{visitor:["body"],fields:{body:(0,n.validateArrayOfType)("TSTypeElement")}});a("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,n.validateOptional)(o),id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,n.validateType)("TSType")}});a("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,n.validateType)("Expression"),["typeParameters"]:(0,n.validateOptionalType)("TSTypeParameterInstantiation")}});const d={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TSType")}};a("TSAsExpression",d);a("TSSatisfiesExpression",d);a("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,n.validateType)("TSType"),expression:(0,n.validateType)("Expression")}});a("TSEnumBody",{visitor:["members"],fields:{members:(0,n.validateArrayOfType)("TSEnumMember")}});{a("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,n.validateOptional)(o),const:(0,n.validateOptional)(o),id:(0,n.validateType)("Identifier"),members:(0,n.validateArrayOfType)("TSEnumMember"),initializer:(0,n.validateOptionalType)("Expression"),body:(0,n.validateOptionalType)("TSEnumBody")}})}a("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,n.validateType)("Identifier","StringLiteral"),initializer:(0,n.validateOptionalType)("Expression")}});a("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,n.assertOneOf)("global","module","namespace")},declare:(0,n.validateOptional)(o)},{global:(0,n.validateOptional)(o)},{id:(0,n.validateType)("Identifier","StringLiteral"),body:(0,n.validateType)("TSModuleBlock","TSModuleDeclaration")})});a("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,n.validateArrayOfType)("Statement")}});a("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,n.validateType)("StringLiteral"),qualifier:(0,n.validateOptionalType)("TSEntityName"),["typeParameters"]:(0,n.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,n.assertNodeType)("Expression"),optional:true}}});a("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,n.validate)(o)},{id:(0,n.validateType)("Identifier"),moduleReference:(0,n.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,n.assertOneOf)("type","value"),optional:true}})});a("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,n.validateType)("StringLiteral")}});a("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,n.validateType)("Expression")}});a("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,n.validateType)("Expression")}});a("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}});a("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,n.assertNodeType)("TSType")}}});a("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,n.validateArrayOfType)("TSType")}});a("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,n.validateArrayOfType)("TSTypeParameter")}});a("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,n.assertValueType)("string")},in:{validate:(0,n.assertValueType)("boolean"),optional:true},out:{validate:(0,n.assertValueType)("boolean"),optional:true},const:{validate:(0,n.assertValueType)("boolean"),optional:true},constraint:{validate:(0,n.assertNodeType)("TSType"),optional:true},default:{validate:(0,n.assertNodeType)("TSType"),optional:true}}})},6624:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0;t.arrayOf=arrayOf;t.arrayOfType=arrayOfType;t.assertEach=assertEach;t.assertNodeOrValueType=assertNodeOrValueType;t.assertNodeType=assertNodeType;t.assertOneOf=assertOneOf;t.assertOptionalChainStart=assertOptionalChainStart;t.assertShape=assertShape;t.assertValueType=assertValueType;t.chain=chain;t["default"]=defineType;t.defineAliasedType=defineAliasedType;t.validate=validate;t.validateArrayOfType=validateArrayOfType;t.validateOptional=validateOptional;t.validateOptionalType=validateOptionalType;t.validateType=validateType;var n=r(7670);var s=r(8966);const i=t.VISITOR_KEYS={};const a=t.ALIAS_KEYS={};const o=t.FLIPPED_ALIAS_KEYS={};const l=t.NODE_FIELDS={};const c=t.BUILDER_KEYS={};const p=t.DEPRECATED_KEYS={};const u=t.NODE_PARENT_VALIDATIONS={};function getType(e){if(Array.isArray(e)){return"array"}else if(e===null){return"null"}else{return typeof e}}function validate(e){return{validate:e}}function validateType(...e){return validate(assertNodeType(...e))}function validateOptional(e){return{validate:e,optional:true}}function validateOptionalType(...e){return{validate:assertNodeType(...e),optional:true}}function arrayOf(e){return chain(assertValueType("array"),assertEach(e))}function arrayOfType(...e){return arrayOf(assertNodeType(...e))}function validateArrayOfType(...e){return validate(arrayOfType(...e))}function assertEach(e){const t=process.env.BABEL_TYPES_8_BREAKING?s.validateChild:()=>{};function validator(r,n,s){if(!Array.isArray(s))return;let i=0;const a={toString(){return`${n}[${i}]`}};for(;i<s.length;i++){const n=s[i];e(r,a,n);t(r,a,n)}}validator.each=e;return validator}function assertOneOf(...e){function validate(t,r,n){if(!e.includes(n)){throw new TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}}validate.oneOf=e;return validate}const d=t.allExpandedTypes=[];function assertNodeType(...e){const t=new Set;d.push({types:e,set:t});function validate(r,i,a){const o=a==null?void 0:a.type;if(o!=null){if(t.has(o)){(0,s.validateChild)(r,i,a);return}if(o==="Placeholder"){for(const t of e){if((0,n.default)(t,a)){(0,s.validateChild)(r,i,a);return}}}}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`)}validate.oneOfNodeTypes=e;return validate}function assertNodeOrValueType(...e){function validate(t,r,i){const a=getType(i);for(const o of e){if(a===o||(0,n.default)(o,i)){(0,s.validateChild)(t,r,i);return}}throw new TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}validate.oneOfNodeOrValueTypes=e;return validate}function assertValueType(e){function validate(t,r,n){if(getType(n)===e){return}throw new TypeError(`Property ${r} expected type of ${e} but got ${getType(n)}`)}validate.type=e;return validate}function assertShape(e){const t=Object.keys(e);function validate(r,n,i){const a=[];for(const n of t){try{(0,s.validateField)(r,n,i[n],e[n])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}}if(a.length){throw new TypeError(`Property ${n} of ${r.type} expected to have the following:\n${a.join("\n")}`)}}validate.shapeOf=e;return validate}function assertOptionalChainStart(){function validate(e){var t;let r=e;while(e){const{type:e}=r;if(e==="OptionalCallExpression"){if(r.optional)return;r=r.callee;continue}if(e==="OptionalMemberExpression"){if(r.optional)return;r=r.object;continue}break}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(t=r)==null?void 0:t.type}`)}return validate}function chain(...e){function validate(...t){for(const r of e){r(...t)}}validate.chainOf=e;if(e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1])){throw new Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`)}return validate}const f=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]);const h=new Set(["default","optional","deprecated","validate"]);const m={};function defineAliasedType(...e){return(t,r={})=>{let n=r.aliases;if(!n){var s;if(r.inherits)n=(s=m[r.inherits].aliases)==null?void 0:s.slice();n!=null?n:n=[];r.aliases=n}const i=e.filter((e=>!n.includes(e)));n.unshift(...i);defineType(t,r)}}function defineType(e,t={}){const r=t.inherits&&m[t.inherits]||{};let n=t.fields;if(!n){n={};if(r.fields){const e=Object.getOwnPropertyNames(r.fields);for(const t of e){const e=r.fields[t];const s=e.default;if(Array.isArray(s)?s.length>0:s&&typeof s==="object"){throw new Error("field defaults can only be primitives or empty arrays currently")}n[t]={default:Array.isArray(s)?[]:s,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}}const s=t.visitor||r.visitor||[];const d=t.aliases||r.aliases||[];const y=t.builder||r.builder||t.visitor||[];for(const r of Object.keys(t)){if(!f.has(r)){throw new Error(`Unknown type option "${r}" on ${e}`)}}if(t.deprecatedAlias){p[t.deprecatedAlias]=e}for(const e of s.concat(y)){n[e]=n[e]||{}}for(const t of Object.keys(n)){const r=n[t];if(r.default!==undefined&&!y.includes(t)){r.optional=true}if(r.default===undefined){r.default=null}else if(!r.validate&&r.default!=null){r.validate=assertValueType(getType(r.default))}for(const n of Object.keys(r)){if(!h.has(n)){throw new Error(`Unknown field key "${n}" on ${e}.${t}`)}}}i[e]=t.visitor=s;c[e]=t.builder=y;l[e]=t.fields=n;a[e]=t.aliases=d;d.forEach((t=>{o[t]=o[t]||[];o[t].push(e)}));if(t.validate){u[e]=t.validate}m[e]=t}},3061:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={react:true,assertNode:true,createTypeAnnotationBasedOnTypeof:true,createUnionTypeAnnotation:true,createFlowUnionType:true,createTSUnionType:true,cloneNode:true,clone:true,cloneDeep:true,cloneDeepWithoutLoc:true,cloneWithoutLoc:true,addComment:true,addComments:true,inheritInnerComments:true,inheritLeadingComments:true,inheritsComments:true,inheritTrailingComments:true,removeComments:true,ensureBlock:true,toBindingIdentifierName:true,toBlock:true,toComputedKey:true,toExpression:true,toIdentifier:true,toKeyAlias:true,toStatement:true,valueToNode:true,appendToMemberExpression:true,inherits:true,prependToMemberExpression:true,removeProperties:true,removePropertiesDeep:true,removeTypeDuplicates:true,getAssignmentIdentifiers:true,getBindingIdentifiers:true,getOuterBindingIdentifiers:true,getFunctionName:true,traverse:true,traverseFast:true,shallowEqual:true,is:true,isBinding:true,isBlockScoped:true,isImmutable:true,isLet:true,isNode:true,isNodesEquivalent:true,isPlaceholderType:true,isReferenced:true,isScope:true,isSpecifierDefault:true,isType:true,isValidES3Identifier:true,isValidIdentifier:true,isVar:true,matchesPattern:true,validate:true,buildMatchMemberExpression:true,__internal__deprecationWarning:true};Object.defineProperty(t,"__internal__deprecationWarning",{enumerable:true,get:function(){return ye.default}});Object.defineProperty(t,"addComment",{enumerable:true,get:function(){return T.default}});Object.defineProperty(t,"addComments",{enumerable:true,get:function(){return S.default}});Object.defineProperty(t,"appendToMemberExpression",{enumerable:true,get:function(){return B.default}});Object.defineProperty(t,"assertNode",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:true,get:function(){return he.default}});Object.defineProperty(t,"clone",{enumerable:true,get:function(){return m.default}});Object.defineProperty(t,"cloneDeep",{enumerable:true,get:function(){return y.default}});Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:true,get:function(){return g.default}});Object.defineProperty(t,"cloneNode",{enumerable:true,get:function(){return h.default}});Object.defineProperty(t,"cloneWithoutLoc",{enumerable:true,get:function(){return b.default}});Object.defineProperty(t,"createFlowUnionType",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"createTSUnionType",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"ensureBlock",{enumerable:true,get:function(){return C.default}});Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:true,get:function(){return $.default}});Object.defineProperty(t,"getBindingIdentifiers",{enumerable:true,get:function(){return q.default}});Object.defineProperty(t,"getFunctionName",{enumerable:true,get:function(){return G.default}});Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:true,get:function(){return H.default}});Object.defineProperty(t,"inheritInnerComments",{enumerable:true,get:function(){return x.default}});Object.defineProperty(t,"inheritLeadingComments",{enumerable:true,get:function(){return E.default}});Object.defineProperty(t,"inheritTrailingComments",{enumerable:true,get:function(){return v.default}});Object.defineProperty(t,"inherits",{enumerable:true,get:function(){return R.default}});Object.defineProperty(t,"inheritsComments",{enumerable:true,get:function(){return P.default}});Object.defineProperty(t,"is",{enumerable:true,get:function(){return Y.default}});Object.defineProperty(t,"isBinding",{enumerable:true,get:function(){return Q.default}});Object.defineProperty(t,"isBlockScoped",{enumerable:true,get:function(){return Z.default}});Object.defineProperty(t,"isImmutable",{enumerable:true,get:function(){return ee.default}});Object.defineProperty(t,"isLet",{enumerable:true,get:function(){return te.default}});Object.defineProperty(t,"isNode",{enumerable:true,get:function(){return re.default}});Object.defineProperty(t,"isNodesEquivalent",{enumerable:true,get:function(){return ne.default}});Object.defineProperty(t,"isPlaceholderType",{enumerable:true,get:function(){return se.default}});Object.defineProperty(t,"isReferenced",{enumerable:true,get:function(){return ie.default}});Object.defineProperty(t,"isScope",{enumerable:true,get:function(){return ae.default}});Object.defineProperty(t,"isSpecifierDefault",{enumerable:true,get:function(){return oe.default}});Object.defineProperty(t,"isType",{enumerable:true,get:function(){return le.default}});Object.defineProperty(t,"isValidES3Identifier",{enumerable:true,get:function(){return ce.default}});Object.defineProperty(t,"isValidIdentifier",{enumerable:true,get:function(){return pe.default}});Object.defineProperty(t,"isVar",{enumerable:true,get:function(){return ue.default}});Object.defineProperty(t,"matchesPattern",{enumerable:true,get:function(){return de.default}});Object.defineProperty(t,"prependToMemberExpression",{enumerable:true,get:function(){return U.default}});t.react=void 0;Object.defineProperty(t,"removeComments",{enumerable:true,get:function(){return A.default}});Object.defineProperty(t,"removeProperties",{enumerable:true,get:function(){return K.default}});Object.defineProperty(t,"removePropertiesDeep",{enumerable:true,get:function(){return V.default}});Object.defineProperty(t,"removeTypeDuplicates",{enumerable:true,get:function(){return W.default}});Object.defineProperty(t,"shallowEqual",{enumerable:true,get:function(){return X.default}});Object.defineProperty(t,"toBindingIdentifierName",{enumerable:true,get:function(){return O.default}});Object.defineProperty(t,"toBlock",{enumerable:true,get:function(){return N.default}});Object.defineProperty(t,"toComputedKey",{enumerable:true,get:function(){return k.default}});Object.defineProperty(t,"toExpression",{enumerable:true,get:function(){return _.default}});Object.defineProperty(t,"toIdentifier",{enumerable:true,get:function(){return D.default}});Object.defineProperty(t,"toKeyAlias",{enumerable:true,get:function(){return M.default}});Object.defineProperty(t,"toStatement",{enumerable:true,get:function(){return L.default}});Object.defineProperty(t,"traverse",{enumerable:true,get:function(){return J.default}});Object.defineProperty(t,"traverseFast",{enumerable:true,get:function(){return z.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return fe.default}});Object.defineProperty(t,"valueToNode",{enumerable:true,get:function(){return j.default}});var s=r(9651);var i=r(339);var a=r(1323);var o=r(2856);var l=r(1501);Object.keys(l).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===l[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return l[e]}})}));var c=r(1655);var p=r(5164);var u=r(1258);var d=r(3396);Object.keys(d).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===d[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return d[e]}})}));var f=r(4755);Object.keys(f).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===f[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return f[e]}})}));var h=r(363);var m=r(8329);var y=r(8637);var g=r(7684);var b=r(9410);var T=r(5185);var S=r(9039);var x=r(3041);var E=r(5151);var P=r(5060);var v=r(8538);var A=r(170);var w=r(4766);Object.keys(w).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===w[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return w[e]}})}));var I=r(1164);Object.keys(I).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===I[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return I[e]}})}));var C=r(7234);var O=r(1350);var N=r(3670);var k=r(5847);var _=r(4811);var D=r(1334);var M=r(1480);var L=r(1035);var j=r(5222);var F=r(6767);Object.keys(F).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===F[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return F[e]}})}));var B=r(2246);var R=r(2774);var U=r(6254);var K=r(4370);var V=r(9437);var W=r(1078);var $=r(3573);var q=r(6306);var H=r(6128);var G=r(6626);var J=r(6348);Object.keys(J).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===J[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return J[e]}})}));var z=r(4865);var X=r(1119);var Y=r(7670);var Q=r(5195);var Z=r(3652);var ee=r(8597);var te=r(9626);var re=r(6087);var ne=r(8486);var se=r(8557);var ie=r(5028);var ae=r(1559);var oe=r(8445);var le=r(8388);var ce=r(3502);var pe=r(2892);var ue=r(7581);var de=r(3447);var fe=r(8966);var he=r(7723);var me=r(46);Object.keys(me).forEach((function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(n,e))return;if(e in t&&t[e]===me[e])return;Object.defineProperty(t,e,{enumerable:true,get:function(){return me[e]}})}));var ye=r(8760);var ge=r(4136);const be=t.react={isReactComponent:s.default,isCompatTag:i.default,buildChildren:a.default};{t.toSequenceExpression=ge.default}if(process.env.BABEL_TYPES_8_BREAKING){console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")}},2246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=appendToMemberExpression;var n=r(4755);function appendToMemberExpression(e,t,r=false){e.object=(0,n.memberExpression)(e.object,e.property,e.computed);e.property=t;e.computed=!!r;return e}},1078:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeTypeDuplicates;var n=r(46);function getQualifiedName(e){return(0,n.isIdentifier)(e)?e.name:`${e.id.name}.${getQualifiedName(e.qualification)}`}function removeTypeDuplicates(e){const t=Array.from(e);const r=new Map;const s=new Map;const i=new Set;const a=[];for(let e=0;e<t.length;e++){const o=t[e];if(!o)continue;if(a.includes(o)){continue}if((0,n.isAnyTypeAnnotation)(o)){return[o]}if((0,n.isFlowBaseAnnotation)(o)){s.set(o.type,o);continue}if((0,n.isUnionTypeAnnotation)(o)){if(!i.has(o.types)){t.push(...o.types);i.add(o.types)}continue}if((0,n.isGenericTypeAnnotation)(o)){const e=getQualifiedName(o.id);if(r.has(e)){let t=r.get(e);if(t.typeParameters){if(o.typeParameters){t.typeParameters.params.push(...o.typeParameters.params);t.typeParameters.params=removeTypeDuplicates(t.typeParameters.params)}}else{t=o.typeParameters}}else{r.set(e,o)}continue}a.push(o)}for(const[,e]of s){a.push(e)}for(const[,e]of r){a.push(e)}return a}},2774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inherits;var n=r(1164);var s=r(5060);function inherits(e,t){if(!e||!t)return e;for(const r of n.INHERIT_KEYS.optional){if(e[r]==null){e[r]=t[r]}}for(const r of Object.keys(t)){if(r[0]==="_"&&r!=="__clone"){e[r]=t[r]}}for(const r of n.INHERIT_KEYS.force){e[r]=t[r]}(0,s.default)(e,t);return e}},6254:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=prependToMemberExpression;var n=r(4755);var s=r(3061);function prependToMemberExpression(e,t){if((0,s.isSuper)(e.object)){throw new Error("Cannot prepend node to super property access (`super.foo`).")}e.object=(0,n.memberExpression)(t,e.object);return e}},4370:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeProperties;var n=r(1164);const s=["tokens","start","end","loc","raw","rawValue"];const i=[...n.COMMENT_KEYS,"comments",...s];function removeProperties(e,t={}){const r=t.preserveComments?s:i;for(const t of r){if(e[t]!=null)e[t]=undefined}for(const t of Object.keys(e)){if(t[0]==="_"&&e[t]!=null)e[t]=undefined}const n=Object.getOwnPropertySymbols(e);for(const t of n){e[t]=null}}},9437:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removePropertiesDeep;var n=r(4865);var s=r(4370);function removePropertiesDeep(e,t){(0,n.default)(e,s.default,t);return e}},6066:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=removeTypeDuplicates;var n=r(46);function getQualifiedName(e){return(0,n.isIdentifier)(e)?e.name:(0,n.isThisExpression)(e)?"this":`${e.right.name}.${getQualifiedName(e.left)}`}function removeTypeDuplicates(e){const t=Array.from(e);const r=new Map;const s=new Map;const i=new Set;const a=[];for(let e=0;e<t.length;e++){const o=t[e];if(!o)continue;if(a.includes(o)){continue}if((0,n.isTSAnyKeyword)(o)){return[o]}if((0,n.isTSBaseType)(o)){s.set(o.type,o);continue}if((0,n.isTSUnionType)(o)){if(!i.has(o.types)){t.push(...o.types);i.add(o.types)}continue}const l="typeParameters";if((0,n.isTSTypeReference)(o)&&o[l]){const e=o[l];const t=getQualifiedName(o.typeName);if(r.has(t)){let n=r.get(t);const s=n[l];if(s){s.params.push(...e.params);s.params=removeTypeDuplicates(s.params)}else{n=e}}else{r.set(t,o)}continue}a.push(o)}for(const[,e]of s){a.push(e)}for(const[,e]of r){a.push(e)}return a}},3573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getAssignmentIdentifiers;function getAssignmentIdentifiers(e){const t=[].concat(e);const r=Object.create(null);while(t.length){const e=t.pop();if(!e)continue;switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":if(e.operator==="delete"){t.push(e.argument)}break;case"Identifier":r[e.name]=e;break;default:break}}return r}},6306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getBindingIdentifiers;var n=r(46);function getBindingIdentifiers(e,t,r,s){const i=[].concat(e);const a=Object.create(null);while(i.length){const e=i.shift();if(!e)continue;if(s&&((0,n.isAssignmentExpression)(e)||(0,n.isUnaryExpression)(e)||(0,n.isUpdateExpression)(e))){continue}if((0,n.isIdentifier)(e)){if(t){const t=a[e.name]=a[e.name]||[];t.push(e)}else{a[e.name]=e}continue}if((0,n.isExportDeclaration)(e)&&!(0,n.isExportAllDeclaration)(e)){if((0,n.isDeclaration)(e.declaration)){i.push(e.declaration)}continue}if(r){if((0,n.isFunctionDeclaration)(e)){i.push(e.id);continue}if((0,n.isFunctionExpression)(e)){continue}}const o=getBindingIdentifiers.keys[e.type];if(o){for(let t=0;t<o.length;t++){const r=o[t];const n=e[r];if(n){if(Array.isArray(n)){i.push(...n)}else{i.push(n)}}}}}return a}const s={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};getBindingIdentifiers.keys=s},6626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getFunctionName;var n=r(46);function getNameFromLiteralId(e){if((0,n.isNullLiteral)(e)){return"null"}if((0,n.isRegExpLiteral)(e)){return`/${e.pattern}/${e.flags}`}if((0,n.isTemplateLiteral)(e)){return e.quasis.map((e=>e.value.raw)).join("")}if(e.value!==undefined){return String(e.value)}return null}function getObjectMemberKey(e){if(!e.computed||(0,n.isLiteral)(e.key)){return e.key}}function getFunctionName(e,t){if("id"in e&&e.id){return{name:e.id.name,originalNode:e.id}}let r="";let s;if((0,n.isObjectProperty)(t,{value:e})){s=getObjectMemberKey(t)}else if((0,n.isObjectMethod)(e)||(0,n.isClassMethod)(e)){s=getObjectMemberKey(e);if(e.kind==="get")r="get ";else if(e.kind==="set")r="set "}else if((0,n.isVariableDeclarator)(t,{init:e})){s=t.id}else if((0,n.isAssignmentExpression)(t,{operator:"=",right:e})){s=t.left}if(!s)return null;const i=(0,n.isLiteral)(s)?getNameFromLiteralId(s):(0,n.isIdentifier)(s)?s.name:(0,n.isPrivateName)(s)?s.id.name:null;if(i==null)return null;return{name:r+i,originalNode:s}}},6128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(6306);var s=t["default"]=getOuterBindingIdentifiers;function getOuterBindingIdentifiers(e,t){return(0,n.default)(e,t,true)}},6348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=traverse;var n=r(6767);function traverse(e,t,r){if(typeof t==="function"){t={enter:t}}const{enter:n,exit:s}=t;traverseSimpleImpl(e,n,s,r,[])}function traverseSimpleImpl(e,t,r,s,i){const a=n.VISITOR_KEYS[e.type];if(!a)return;if(t)t(e,i,s);for(const n of a){const a=e[n];if(Array.isArray(a)){for(let o=0;o<a.length;o++){const l=a[o];if(!l)continue;i.push({node:e,key:n,index:o});traverseSimpleImpl(l,t,r,s,i);i.pop()}}else if(a){i.push({node:e,key:n});traverseSimpleImpl(a,t,r,s,i);i.pop()}}if(r)r(e,i,s)}},4865:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=traverseFast;var n=r(6767);const s=Symbol();const i=Symbol();function traverseFast(e,t,r){if(!e)return false;const a=n.VISITOR_KEYS[e.type];if(!a)return false;r=r||{};const o=t(e,r);if(o!==undefined){switch(o){case s:return false;case i:return true}}for(const n of a){const s=e[n];if(!s)continue;if(Array.isArray(s)){for(const e of s){if(traverseFast(e,t,r))return true}}else{if(traverseFast(s,t,r))return true}}return false}traverseFast.skip=s;traverseFast.stop=i},8760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=deprecationWarning;const r=new Set;function deprecationWarning(e,t,n=""){if(r.has(e))return;r.add(e);const{internal:s,trace:i}=captureShortStackTrace(1,2);if(s){return}console.warn(`${n}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${i}`)}function captureShortStackTrace(e,t){const{stackTraceLimit:r,prepareStackTrace:n}=Error;let s;Error.stackTraceLimit=1+e+t;Error.prepareStackTrace=function(e,t){s=t};(new Error).stack;Error.stackTraceLimit=r;Error.prepareStackTrace=n;if(!s)return{internal:false,trace:""};const i=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map((e=>` at ${e}`)).join("\n")}}},2660:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=inherit;function inherit(e,t,r){if(t&&r){t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean)))}}},8530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=cleanJSXElementLiteralChild;var n=r(4755);var s=r(3061);function cleanJSXElementLiteralChild(e,t){const r=e.value.split(/\r\n|\n|\r/);let i=0;for(let e=0;e<r.length;e++){if(/[^ \t]/.exec(r[e])){i=e}}let a="";for(let e=0;e<r.length;e++){const t=r[e];const n=e===0;const s=e===r.length-1;const o=e===i;let l=t.replace(/\t/g," ");if(!n){l=l.replace(/^ +/,"")}if(!s){l=l.replace(/ +$/,"")}if(l){if(!o){l+=" "}a+=l}}if(a)t.push((0,s.inherits)((0,n.stringLiteral)(a),e))}},1119:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=shallowEqual;function shallowEqual(e,t){const r=Object.keys(t);for(const n of r){if(e[n]!==t[n]){return false}}return true}},7723:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=buildMatchMemberExpression;var n=r(3447);function buildMatchMemberExpression(e,t){const r=e.split(".");return e=>(0,n.default)(e,r,t)}},46:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAccessor=isAccessor;t.isAnyTypeAnnotation=isAnyTypeAnnotation;t.isArgumentPlaceholder=isArgumentPlaceholder;t.isArrayExpression=isArrayExpression;t.isArrayPattern=isArrayPattern;t.isArrayTypeAnnotation=isArrayTypeAnnotation;t.isArrowFunctionExpression=isArrowFunctionExpression;t.isAssignmentExpression=isAssignmentExpression;t.isAssignmentPattern=isAssignmentPattern;t.isAwaitExpression=isAwaitExpression;t.isBigIntLiteral=isBigIntLiteral;t.isBinary=isBinary;t.isBinaryExpression=isBinaryExpression;t.isBindExpression=isBindExpression;t.isBlock=isBlock;t.isBlockParent=isBlockParent;t.isBlockStatement=isBlockStatement;t.isBooleanLiteral=isBooleanLiteral;t.isBooleanLiteralTypeAnnotation=isBooleanLiteralTypeAnnotation;t.isBooleanTypeAnnotation=isBooleanTypeAnnotation;t.isBreakStatement=isBreakStatement;t.isCallExpression=isCallExpression;t.isCatchClause=isCatchClause;t.isClass=isClass;t.isClassAccessorProperty=isClassAccessorProperty;t.isClassBody=isClassBody;t.isClassDeclaration=isClassDeclaration;t.isClassExpression=isClassExpression;t.isClassImplements=isClassImplements;t.isClassMethod=isClassMethod;t.isClassPrivateMethod=isClassPrivateMethod;t.isClassPrivateProperty=isClassPrivateProperty;t.isClassProperty=isClassProperty;t.isCompletionStatement=isCompletionStatement;t.isConditional=isConditional;t.isConditionalExpression=isConditionalExpression;t.isContinueStatement=isContinueStatement;t.isDebuggerStatement=isDebuggerStatement;t.isDecimalLiteral=isDecimalLiteral;t.isDeclaration=isDeclaration;t.isDeclareClass=isDeclareClass;t.isDeclareExportAllDeclaration=isDeclareExportAllDeclaration;t.isDeclareExportDeclaration=isDeclareExportDeclaration;t.isDeclareFunction=isDeclareFunction;t.isDeclareInterface=isDeclareInterface;t.isDeclareModule=isDeclareModule;t.isDeclareModuleExports=isDeclareModuleExports;t.isDeclareOpaqueType=isDeclareOpaqueType;t.isDeclareTypeAlias=isDeclareTypeAlias;t.isDeclareVariable=isDeclareVariable;t.isDeclaredPredicate=isDeclaredPredicate;t.isDecorator=isDecorator;t.isDirective=isDirective;t.isDirectiveLiteral=isDirectiveLiteral;t.isDoExpression=isDoExpression;t.isDoWhileStatement=isDoWhileStatement;t.isEmptyStatement=isEmptyStatement;t.isEmptyTypeAnnotation=isEmptyTypeAnnotation;t.isEnumBody=isEnumBody;t.isEnumBooleanBody=isEnumBooleanBody;t.isEnumBooleanMember=isEnumBooleanMember;t.isEnumDeclaration=isEnumDeclaration;t.isEnumDefaultedMember=isEnumDefaultedMember;t.isEnumMember=isEnumMember;t.isEnumNumberBody=isEnumNumberBody;t.isEnumNumberMember=isEnumNumberMember;t.isEnumStringBody=isEnumStringBody;t.isEnumStringMember=isEnumStringMember;t.isEnumSymbolBody=isEnumSymbolBody;t.isExistsTypeAnnotation=isExistsTypeAnnotation;t.isExportAllDeclaration=isExportAllDeclaration;t.isExportDeclaration=isExportDeclaration;t.isExportDefaultDeclaration=isExportDefaultDeclaration;t.isExportDefaultSpecifier=isExportDefaultSpecifier;t.isExportNamedDeclaration=isExportNamedDeclaration;t.isExportNamespaceSpecifier=isExportNamespaceSpecifier;t.isExportSpecifier=isExportSpecifier;t.isExpression=isExpression;t.isExpressionStatement=isExpressionStatement;t.isExpressionWrapper=isExpressionWrapper;t.isFile=isFile;t.isFlow=isFlow;t.isFlowBaseAnnotation=isFlowBaseAnnotation;t.isFlowDeclaration=isFlowDeclaration;t.isFlowPredicate=isFlowPredicate;t.isFlowType=isFlowType;t.isFor=isFor;t.isForInStatement=isForInStatement;t.isForOfStatement=isForOfStatement;t.isForStatement=isForStatement;t.isForXStatement=isForXStatement;t.isFunction=isFunction;t.isFunctionDeclaration=isFunctionDeclaration;t.isFunctionExpression=isFunctionExpression;t.isFunctionParent=isFunctionParent;t.isFunctionTypeAnnotation=isFunctionTypeAnnotation;t.isFunctionTypeParam=isFunctionTypeParam;t.isGenericTypeAnnotation=isGenericTypeAnnotation;t.isIdentifier=isIdentifier;t.isIfStatement=isIfStatement;t.isImmutable=isImmutable;t.isImport=isImport;t.isImportAttribute=isImportAttribute;t.isImportDeclaration=isImportDeclaration;t.isImportDefaultSpecifier=isImportDefaultSpecifier;t.isImportExpression=isImportExpression;t.isImportNamespaceSpecifier=isImportNamespaceSpecifier;t.isImportOrExportDeclaration=isImportOrExportDeclaration;t.isImportSpecifier=isImportSpecifier;t.isIndexedAccessType=isIndexedAccessType;t.isInferredPredicate=isInferredPredicate;t.isInterfaceDeclaration=isInterfaceDeclaration;t.isInterfaceExtends=isInterfaceExtends;t.isInterfaceTypeAnnotation=isInterfaceTypeAnnotation;t.isInterpreterDirective=isInterpreterDirective;t.isIntersectionTypeAnnotation=isIntersectionTypeAnnotation;t.isJSX=isJSX;t.isJSXAttribute=isJSXAttribute;t.isJSXClosingElement=isJSXClosingElement;t.isJSXClosingFragment=isJSXClosingFragment;t.isJSXElement=isJSXElement;t.isJSXEmptyExpression=isJSXEmptyExpression;t.isJSXExpressionContainer=isJSXExpressionContainer;t.isJSXFragment=isJSXFragment;t.isJSXIdentifier=isJSXIdentifier;t.isJSXMemberExpression=isJSXMemberExpression;t.isJSXNamespacedName=isJSXNamespacedName;t.isJSXOpeningElement=isJSXOpeningElement;t.isJSXOpeningFragment=isJSXOpeningFragment;t.isJSXSpreadAttribute=isJSXSpreadAttribute;t.isJSXSpreadChild=isJSXSpreadChild;t.isJSXText=isJSXText;t.isLVal=isLVal;t.isLabeledStatement=isLabeledStatement;t.isLiteral=isLiteral;t.isLogicalExpression=isLogicalExpression;t.isLoop=isLoop;t.isMemberExpression=isMemberExpression;t.isMetaProperty=isMetaProperty;t.isMethod=isMethod;t.isMiscellaneous=isMiscellaneous;t.isMixedTypeAnnotation=isMixedTypeAnnotation;t.isModuleDeclaration=isModuleDeclaration;t.isModuleExpression=isModuleExpression;t.isModuleSpecifier=isModuleSpecifier;t.isNewExpression=isNewExpression;t.isNoop=isNoop;t.isNullLiteral=isNullLiteral;t.isNullLiteralTypeAnnotation=isNullLiteralTypeAnnotation;t.isNullableTypeAnnotation=isNullableTypeAnnotation;t.isNumberLiteral=isNumberLiteral;t.isNumberLiteralTypeAnnotation=isNumberLiteralTypeAnnotation;t.isNumberTypeAnnotation=isNumberTypeAnnotation;t.isNumericLiteral=isNumericLiteral;t.isObjectExpression=isObjectExpression;t.isObjectMember=isObjectMember;t.isObjectMethod=isObjectMethod;t.isObjectPattern=isObjectPattern;t.isObjectProperty=isObjectProperty;t.isObjectTypeAnnotation=isObjectTypeAnnotation;t.isObjectTypeCallProperty=isObjectTypeCallProperty;t.isObjectTypeIndexer=isObjectTypeIndexer;t.isObjectTypeInternalSlot=isObjectTypeInternalSlot;t.isObjectTypeProperty=isObjectTypeProperty;t.isObjectTypeSpreadProperty=isObjectTypeSpreadProperty;t.isOpaqueType=isOpaqueType;t.isOptionalCallExpression=isOptionalCallExpression;t.isOptionalIndexedAccessType=isOptionalIndexedAccessType;t.isOptionalMemberExpression=isOptionalMemberExpression;t.isParenthesizedExpression=isParenthesizedExpression;t.isPattern=isPattern;t.isPatternLike=isPatternLike;t.isPipelineBareFunction=isPipelineBareFunction;t.isPipelinePrimaryTopicReference=isPipelinePrimaryTopicReference;t.isPipelineTopicExpression=isPipelineTopicExpression;t.isPlaceholder=isPlaceholder;t.isPrivate=isPrivate;t.isPrivateName=isPrivateName;t.isProgram=isProgram;t.isProperty=isProperty;t.isPureish=isPureish;t.isQualifiedTypeIdentifier=isQualifiedTypeIdentifier;t.isRecordExpression=isRecordExpression;t.isRegExpLiteral=isRegExpLiteral;t.isRegexLiteral=isRegexLiteral;t.isRestElement=isRestElement;t.isRestProperty=isRestProperty;t.isReturnStatement=isReturnStatement;t.isScopable=isScopable;t.isSequenceExpression=isSequenceExpression;t.isSpreadElement=isSpreadElement;t.isSpreadProperty=isSpreadProperty;t.isStandardized=isStandardized;t.isStatement=isStatement;t.isStaticBlock=isStaticBlock;t.isStringLiteral=isStringLiteral;t.isStringLiteralTypeAnnotation=isStringLiteralTypeAnnotation;t.isStringTypeAnnotation=isStringTypeAnnotation;t.isSuper=isSuper;t.isSwitchCase=isSwitchCase;t.isSwitchStatement=isSwitchStatement;t.isSymbolTypeAnnotation=isSymbolTypeAnnotation;t.isTSAnyKeyword=isTSAnyKeyword;t.isTSArrayType=isTSArrayType;t.isTSAsExpression=isTSAsExpression;t.isTSBaseType=isTSBaseType;t.isTSBigIntKeyword=isTSBigIntKeyword;t.isTSBooleanKeyword=isTSBooleanKeyword;t.isTSCallSignatureDeclaration=isTSCallSignatureDeclaration;t.isTSConditionalType=isTSConditionalType;t.isTSConstructSignatureDeclaration=isTSConstructSignatureDeclaration;t.isTSConstructorType=isTSConstructorType;t.isTSDeclareFunction=isTSDeclareFunction;t.isTSDeclareMethod=isTSDeclareMethod;t.isTSEntityName=isTSEntityName;t.isTSEnumBody=isTSEnumBody;t.isTSEnumDeclaration=isTSEnumDeclaration;t.isTSEnumMember=isTSEnumMember;t.isTSExportAssignment=isTSExportAssignment;t.isTSExpressionWithTypeArguments=isTSExpressionWithTypeArguments;t.isTSExternalModuleReference=isTSExternalModuleReference;t.isTSFunctionType=isTSFunctionType;t.isTSImportEqualsDeclaration=isTSImportEqualsDeclaration;t.isTSImportType=isTSImportType;t.isTSIndexSignature=isTSIndexSignature;t.isTSIndexedAccessType=isTSIndexedAccessType;t.isTSInferType=isTSInferType;t.isTSInstantiationExpression=isTSInstantiationExpression;t.isTSInterfaceBody=isTSInterfaceBody;t.isTSInterfaceDeclaration=isTSInterfaceDeclaration;t.isTSIntersectionType=isTSIntersectionType;t.isTSIntrinsicKeyword=isTSIntrinsicKeyword;t.isTSLiteralType=isTSLiteralType;t.isTSMappedType=isTSMappedType;t.isTSMethodSignature=isTSMethodSignature;t.isTSModuleBlock=isTSModuleBlock;t.isTSModuleDeclaration=isTSModuleDeclaration;t.isTSNamedTupleMember=isTSNamedTupleMember;t.isTSNamespaceExportDeclaration=isTSNamespaceExportDeclaration;t.isTSNeverKeyword=isTSNeverKeyword;t.isTSNonNullExpression=isTSNonNullExpression;t.isTSNullKeyword=isTSNullKeyword;t.isTSNumberKeyword=isTSNumberKeyword;t.isTSObjectKeyword=isTSObjectKeyword;t.isTSOptionalType=isTSOptionalType;t.isTSParameterProperty=isTSParameterProperty;t.isTSParenthesizedType=isTSParenthesizedType;t.isTSPropertySignature=isTSPropertySignature;t.isTSQualifiedName=isTSQualifiedName;t.isTSRestType=isTSRestType;t.isTSSatisfiesExpression=isTSSatisfiesExpression;t.isTSStringKeyword=isTSStringKeyword;t.isTSSymbolKeyword=isTSSymbolKeyword;t.isTSTemplateLiteralType=isTSTemplateLiteralType;t.isTSThisType=isTSThisType;t.isTSTupleType=isTSTupleType;t.isTSType=isTSType;t.isTSTypeAliasDeclaration=isTSTypeAliasDeclaration;t.isTSTypeAnnotation=isTSTypeAnnotation;t.isTSTypeAssertion=isTSTypeAssertion;t.isTSTypeElement=isTSTypeElement;t.isTSTypeLiteral=isTSTypeLiteral;t.isTSTypeOperator=isTSTypeOperator;t.isTSTypeParameter=isTSTypeParameter;t.isTSTypeParameterDeclaration=isTSTypeParameterDeclaration;t.isTSTypeParameterInstantiation=isTSTypeParameterInstantiation;t.isTSTypePredicate=isTSTypePredicate;t.isTSTypeQuery=isTSTypeQuery;t.isTSTypeReference=isTSTypeReference;t.isTSUndefinedKeyword=isTSUndefinedKeyword;t.isTSUnionType=isTSUnionType;t.isTSUnknownKeyword=isTSUnknownKeyword;t.isTSVoidKeyword=isTSVoidKeyword;t.isTaggedTemplateExpression=isTaggedTemplateExpression;t.isTemplateElement=isTemplateElement;t.isTemplateLiteral=isTemplateLiteral;t.isTerminatorless=isTerminatorless;t.isThisExpression=isThisExpression;t.isThisTypeAnnotation=isThisTypeAnnotation;t.isThrowStatement=isThrowStatement;t.isTopicReference=isTopicReference;t.isTryStatement=isTryStatement;t.isTupleExpression=isTupleExpression;t.isTupleTypeAnnotation=isTupleTypeAnnotation;t.isTypeAlias=isTypeAlias;t.isTypeAnnotation=isTypeAnnotation;t.isTypeCastExpression=isTypeCastExpression;t.isTypeParameter=isTypeParameter;t.isTypeParameterDeclaration=isTypeParameterDeclaration;t.isTypeParameterInstantiation=isTypeParameterInstantiation;t.isTypeScript=isTypeScript;t.isTypeofTypeAnnotation=isTypeofTypeAnnotation;t.isUnaryExpression=isUnaryExpression;t.isUnaryLike=isUnaryLike;t.isUnionTypeAnnotation=isUnionTypeAnnotation;t.isUpdateExpression=isUpdateExpression;t.isUserWhitespacable=isUserWhitespacable;t.isV8IntrinsicIdentifier=isV8IntrinsicIdentifier;t.isVariableDeclaration=isVariableDeclaration;t.isVariableDeclarator=isVariableDeclarator;t.isVariance=isVariance;t.isVoidTypeAnnotation=isVoidTypeAnnotation;t.isWhile=isWhile;t.isWhileStatement=isWhileStatement;t.isWithStatement=isWithStatement;t.isYieldExpression=isYieldExpression;var n=r(1119);var s=r(8760);function isArrayExpression(e,t){if(!e)return false;if(e.type!=="ArrayExpression")return false;return t==null||(0,n.default)(e,t)}function isAssignmentExpression(e,t){if(!e)return false;if(e.type!=="AssignmentExpression")return false;return t==null||(0,n.default)(e,t)}function isBinaryExpression(e,t){if(!e)return false;if(e.type!=="BinaryExpression")return false;return t==null||(0,n.default)(e,t)}function isInterpreterDirective(e,t){if(!e)return false;if(e.type!=="InterpreterDirective")return false;return t==null||(0,n.default)(e,t)}function isDirective(e,t){if(!e)return false;if(e.type!=="Directive")return false;return t==null||(0,n.default)(e,t)}function isDirectiveLiteral(e,t){if(!e)return false;if(e.type!=="DirectiveLiteral")return false;return t==null||(0,n.default)(e,t)}function isBlockStatement(e,t){if(!e)return false;if(e.type!=="BlockStatement")return false;return t==null||(0,n.default)(e,t)}function isBreakStatement(e,t){if(!e)return false;if(e.type!=="BreakStatement")return false;return t==null||(0,n.default)(e,t)}function isCallExpression(e,t){if(!e)return false;if(e.type!=="CallExpression")return false;return t==null||(0,n.default)(e,t)}function isCatchClause(e,t){if(!e)return false;if(e.type!=="CatchClause")return false;return t==null||(0,n.default)(e,t)}function isConditionalExpression(e,t){if(!e)return false;if(e.type!=="ConditionalExpression")return false;return t==null||(0,n.default)(e,t)}function isContinueStatement(e,t){if(!e)return false;if(e.type!=="ContinueStatement")return false;return t==null||(0,n.default)(e,t)}function isDebuggerStatement(e,t){if(!e)return false;if(e.type!=="DebuggerStatement")return false;return t==null||(0,n.default)(e,t)}function isDoWhileStatement(e,t){if(!e)return false;if(e.type!=="DoWhileStatement")return false;return t==null||(0,n.default)(e,t)}function isEmptyStatement(e,t){if(!e)return false;if(e.type!=="EmptyStatement")return false;return t==null||(0,n.default)(e,t)}function isExpressionStatement(e,t){if(!e)return false;if(e.type!=="ExpressionStatement")return false;return t==null||(0,n.default)(e,t)}function isFile(e,t){if(!e)return false;if(e.type!=="File")return false;return t==null||(0,n.default)(e,t)}function isForInStatement(e,t){if(!e)return false;if(e.type!=="ForInStatement")return false;return t==null||(0,n.default)(e,t)}function isForStatement(e,t){if(!e)return false;if(e.type!=="ForStatement")return false;return t==null||(0,n.default)(e,t)}function isFunctionDeclaration(e,t){if(!e)return false;if(e.type!=="FunctionDeclaration")return false;return t==null||(0,n.default)(e,t)}function isFunctionExpression(e,t){if(!e)return false;if(e.type!=="FunctionExpression")return false;return t==null||(0,n.default)(e,t)}function isIdentifier(e,t){if(!e)return false;if(e.type!=="Identifier")return false;return t==null||(0,n.default)(e,t)}function isIfStatement(e,t){if(!e)return false;if(e.type!=="IfStatement")return false;return t==null||(0,n.default)(e,t)}function isLabeledStatement(e,t){if(!e)return false;if(e.type!=="LabeledStatement")return false;return t==null||(0,n.default)(e,t)}function isStringLiteral(e,t){if(!e)return false;if(e.type!=="StringLiteral")return false;return t==null||(0,n.default)(e,t)}function isNumericLiteral(e,t){if(!e)return false;if(e.type!=="NumericLiteral")return false;return t==null||(0,n.default)(e,t)}function isNullLiteral(e,t){if(!e)return false;if(e.type!=="NullLiteral")return false;return t==null||(0,n.default)(e,t)}function isBooleanLiteral(e,t){if(!e)return false;if(e.type!=="BooleanLiteral")return false;return t==null||(0,n.default)(e,t)}function isRegExpLiteral(e,t){if(!e)return false;if(e.type!=="RegExpLiteral")return false;return t==null||(0,n.default)(e,t)}function isLogicalExpression(e,t){if(!e)return false;if(e.type!=="LogicalExpression")return false;return t==null||(0,n.default)(e,t)}function isMemberExpression(e,t){if(!e)return false;if(e.type!=="MemberExpression")return false;return t==null||(0,n.default)(e,t)}function isNewExpression(e,t){if(!e)return false;if(e.type!=="NewExpression")return false;return t==null||(0,n.default)(e,t)}function isProgram(e,t){if(!e)return false;if(e.type!=="Program")return false;return t==null||(0,n.default)(e,t)}function isObjectExpression(e,t){if(!e)return false;if(e.type!=="ObjectExpression")return false;return t==null||(0,n.default)(e,t)}function isObjectMethod(e,t){if(!e)return false;if(e.type!=="ObjectMethod")return false;return t==null||(0,n.default)(e,t)}function isObjectProperty(e,t){if(!e)return false;if(e.type!=="ObjectProperty")return false;return t==null||(0,n.default)(e,t)}function isRestElement(e,t){if(!e)return false;if(e.type!=="RestElement")return false;return t==null||(0,n.default)(e,t)}function isReturnStatement(e,t){if(!e)return false;if(e.type!=="ReturnStatement")return false;return t==null||(0,n.default)(e,t)}function isSequenceExpression(e,t){if(!e)return false;if(e.type!=="SequenceExpression")return false;return t==null||(0,n.default)(e,t)}function isParenthesizedExpression(e,t){if(!e)return false;if(e.type!=="ParenthesizedExpression")return false;return t==null||(0,n.default)(e,t)}function isSwitchCase(e,t){if(!e)return false;if(e.type!=="SwitchCase")return false;return t==null||(0,n.default)(e,t)}function isSwitchStatement(e,t){if(!e)return false;if(e.type!=="SwitchStatement")return false;return t==null||(0,n.default)(e,t)}function isThisExpression(e,t){if(!e)return false;if(e.type!=="ThisExpression")return false;return t==null||(0,n.default)(e,t)}function isThrowStatement(e,t){if(!e)return false;if(e.type!=="ThrowStatement")return false;return t==null||(0,n.default)(e,t)}function isTryStatement(e,t){if(!e)return false;if(e.type!=="TryStatement")return false;return t==null||(0,n.default)(e,t)}function isUnaryExpression(e,t){if(!e)return false;if(e.type!=="UnaryExpression")return false;return t==null||(0,n.default)(e,t)}function isUpdateExpression(e,t){if(!e)return false;if(e.type!=="UpdateExpression")return false;return t==null||(0,n.default)(e,t)}function isVariableDeclaration(e,t){if(!e)return false;if(e.type!=="VariableDeclaration")return false;return t==null||(0,n.default)(e,t)}function isVariableDeclarator(e,t){if(!e)return false;if(e.type!=="VariableDeclarator")return false;return t==null||(0,n.default)(e,t)}function isWhileStatement(e,t){if(!e)return false;if(e.type!=="WhileStatement")return false;return t==null||(0,n.default)(e,t)}function isWithStatement(e,t){if(!e)return false;if(e.type!=="WithStatement")return false;return t==null||(0,n.default)(e,t)}function isAssignmentPattern(e,t){if(!e)return false;if(e.type!=="AssignmentPattern")return false;return t==null||(0,n.default)(e,t)}function isArrayPattern(e,t){if(!e)return false;if(e.type!=="ArrayPattern")return false;return t==null||(0,n.default)(e,t)}function isArrowFunctionExpression(e,t){if(!e)return false;if(e.type!=="ArrowFunctionExpression")return false;return t==null||(0,n.default)(e,t)}function isClassBody(e,t){if(!e)return false;if(e.type!=="ClassBody")return false;return t==null||(0,n.default)(e,t)}function isClassExpression(e,t){if(!e)return false;if(e.type!=="ClassExpression")return false;return t==null||(0,n.default)(e,t)}function isClassDeclaration(e,t){if(!e)return false;if(e.type!=="ClassDeclaration")return false;return t==null||(0,n.default)(e,t)}function isExportAllDeclaration(e,t){if(!e)return false;if(e.type!=="ExportAllDeclaration")return false;return t==null||(0,n.default)(e,t)}function isExportDefaultDeclaration(e,t){if(!e)return false;if(e.type!=="ExportDefaultDeclaration")return false;return t==null||(0,n.default)(e,t)}function isExportNamedDeclaration(e,t){if(!e)return false;if(e.type!=="ExportNamedDeclaration")return false;return t==null||(0,n.default)(e,t)}function isExportSpecifier(e,t){if(!e)return false;if(e.type!=="ExportSpecifier")return false;return t==null||(0,n.default)(e,t)}function isForOfStatement(e,t){if(!e)return false;if(e.type!=="ForOfStatement")return false;return t==null||(0,n.default)(e,t)}function isImportDeclaration(e,t){if(!e)return false;if(e.type!=="ImportDeclaration")return false;return t==null||(0,n.default)(e,t)}function isImportDefaultSpecifier(e,t){if(!e)return false;if(e.type!=="ImportDefaultSpecifier")return false;return t==null||(0,n.default)(e,t)}function isImportNamespaceSpecifier(e,t){if(!e)return false;if(e.type!=="ImportNamespaceSpecifier")return false;return t==null||(0,n.default)(e,t)}function isImportSpecifier(e,t){if(!e)return false;if(e.type!=="ImportSpecifier")return false;return t==null||(0,n.default)(e,t)}function isImportExpression(e,t){if(!e)return false;if(e.type!=="ImportExpression")return false;return t==null||(0,n.default)(e,t)}function isMetaProperty(e,t){if(!e)return false;if(e.type!=="MetaProperty")return false;return t==null||(0,n.default)(e,t)}function isClassMethod(e,t){if(!e)return false;if(e.type!=="ClassMethod")return false;return t==null||(0,n.default)(e,t)}function isObjectPattern(e,t){if(!e)return false;if(e.type!=="ObjectPattern")return false;return t==null||(0,n.default)(e,t)}function isSpreadElement(e,t){if(!e)return false;if(e.type!=="SpreadElement")return false;return t==null||(0,n.default)(e,t)}function isSuper(e,t){if(!e)return false;if(e.type!=="Super")return false;return t==null||(0,n.default)(e,t)}function isTaggedTemplateExpression(e,t){if(!e)return false;if(e.type!=="TaggedTemplateExpression")return false;return t==null||(0,n.default)(e,t)}function isTemplateElement(e,t){if(!e)return false;if(e.type!=="TemplateElement")return false;return t==null||(0,n.default)(e,t)}function isTemplateLiteral(e,t){if(!e)return false;if(e.type!=="TemplateLiteral")return false;return t==null||(0,n.default)(e,t)}function isYieldExpression(e,t){if(!e)return false;if(e.type!=="YieldExpression")return false;return t==null||(0,n.default)(e,t)}function isAwaitExpression(e,t){if(!e)return false;if(e.type!=="AwaitExpression")return false;return t==null||(0,n.default)(e,t)}function isImport(e,t){if(!e)return false;if(e.type!=="Import")return false;return t==null||(0,n.default)(e,t)}function isBigIntLiteral(e,t){if(!e)return false;if(e.type!=="BigIntLiteral")return false;return t==null||(0,n.default)(e,t)}function isExportNamespaceSpecifier(e,t){if(!e)return false;if(e.type!=="ExportNamespaceSpecifier")return false;return t==null||(0,n.default)(e,t)}function isOptionalMemberExpression(e,t){if(!e)return false;if(e.type!=="OptionalMemberExpression")return false;return t==null||(0,n.default)(e,t)}function isOptionalCallExpression(e,t){if(!e)return false;if(e.type!=="OptionalCallExpression")return false;return t==null||(0,n.default)(e,t)}function isClassProperty(e,t){if(!e)return false;if(e.type!=="ClassProperty")return false;return t==null||(0,n.default)(e,t)}function isClassAccessorProperty(e,t){if(!e)return false;if(e.type!=="ClassAccessorProperty")return false;return t==null||(0,n.default)(e,t)}function isClassPrivateProperty(e,t){if(!e)return false;if(e.type!=="ClassPrivateProperty")return false;return t==null||(0,n.default)(e,t)}function isClassPrivateMethod(e,t){if(!e)return false;if(e.type!=="ClassPrivateMethod")return false;return t==null||(0,n.default)(e,t)}function isPrivateName(e,t){if(!e)return false;if(e.type!=="PrivateName")return false;return t==null||(0,n.default)(e,t)}function isStaticBlock(e,t){if(!e)return false;if(e.type!=="StaticBlock")return false;return t==null||(0,n.default)(e,t)}function isImportAttribute(e,t){if(!e)return false;if(e.type!=="ImportAttribute")return false;return t==null||(0,n.default)(e,t)}function isAnyTypeAnnotation(e,t){if(!e)return false;if(e.type!=="AnyTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isArrayTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ArrayTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isBooleanTypeAnnotation(e,t){if(!e)return false;if(e.type!=="BooleanTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isBooleanLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="BooleanLiteralTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isNullLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NullLiteralTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isClassImplements(e,t){if(!e)return false;if(e.type!=="ClassImplements")return false;return t==null||(0,n.default)(e,t)}function isDeclareClass(e,t){if(!e)return false;if(e.type!=="DeclareClass")return false;return t==null||(0,n.default)(e,t)}function isDeclareFunction(e,t){if(!e)return false;if(e.type!=="DeclareFunction")return false;return t==null||(0,n.default)(e,t)}function isDeclareInterface(e,t){if(!e)return false;if(e.type!=="DeclareInterface")return false;return t==null||(0,n.default)(e,t)}function isDeclareModule(e,t){if(!e)return false;if(e.type!=="DeclareModule")return false;return t==null||(0,n.default)(e,t)}function isDeclareModuleExports(e,t){if(!e)return false;if(e.type!=="DeclareModuleExports")return false;return t==null||(0,n.default)(e,t)}function isDeclareTypeAlias(e,t){if(!e)return false;if(e.type!=="DeclareTypeAlias")return false;return t==null||(0,n.default)(e,t)}function isDeclareOpaqueType(e,t){if(!e)return false;if(e.type!=="DeclareOpaqueType")return false;return t==null||(0,n.default)(e,t)}function isDeclareVariable(e,t){if(!e)return false;if(e.type!=="DeclareVariable")return false;return t==null||(0,n.default)(e,t)}function isDeclareExportDeclaration(e,t){if(!e)return false;if(e.type!=="DeclareExportDeclaration")return false;return t==null||(0,n.default)(e,t)}function isDeclareExportAllDeclaration(e,t){if(!e)return false;if(e.type!=="DeclareExportAllDeclaration")return false;return t==null||(0,n.default)(e,t)}function isDeclaredPredicate(e,t){if(!e)return false;if(e.type!=="DeclaredPredicate")return false;return t==null||(0,n.default)(e,t)}function isExistsTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ExistsTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isFunctionTypeAnnotation(e,t){if(!e)return false;if(e.type!=="FunctionTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isFunctionTypeParam(e,t){if(!e)return false;if(e.type!=="FunctionTypeParam")return false;return t==null||(0,n.default)(e,t)}function isGenericTypeAnnotation(e,t){if(!e)return false;if(e.type!=="GenericTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isInferredPredicate(e,t){if(!e)return false;if(e.type!=="InferredPredicate")return false;return t==null||(0,n.default)(e,t)}function isInterfaceExtends(e,t){if(!e)return false;if(e.type!=="InterfaceExtends")return false;return t==null||(0,n.default)(e,t)}function isInterfaceDeclaration(e,t){if(!e)return false;if(e.type!=="InterfaceDeclaration")return false;return t==null||(0,n.default)(e,t)}function isInterfaceTypeAnnotation(e,t){if(!e)return false;if(e.type!=="InterfaceTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isIntersectionTypeAnnotation(e,t){if(!e)return false;if(e.type!=="IntersectionTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isMixedTypeAnnotation(e,t){if(!e)return false;if(e.type!=="MixedTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isEmptyTypeAnnotation(e,t){if(!e)return false;if(e.type!=="EmptyTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isNullableTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NullableTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isNumberLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NumberLiteralTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isNumberTypeAnnotation(e,t){if(!e)return false;if(e.type!=="NumberTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isObjectTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ObjectTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isObjectTypeInternalSlot(e,t){if(!e)return false;if(e.type!=="ObjectTypeInternalSlot")return false;return t==null||(0,n.default)(e,t)}function isObjectTypeCallProperty(e,t){if(!e)return false;if(e.type!=="ObjectTypeCallProperty")return false;return t==null||(0,n.default)(e,t)}function isObjectTypeIndexer(e,t){if(!e)return false;if(e.type!=="ObjectTypeIndexer")return false;return t==null||(0,n.default)(e,t)}function isObjectTypeProperty(e,t){if(!e)return false;if(e.type!=="ObjectTypeProperty")return false;return t==null||(0,n.default)(e,t)}function isObjectTypeSpreadProperty(e,t){if(!e)return false;if(e.type!=="ObjectTypeSpreadProperty")return false;return t==null||(0,n.default)(e,t)}function isOpaqueType(e,t){if(!e)return false;if(e.type!=="OpaqueType")return false;return t==null||(0,n.default)(e,t)}function isQualifiedTypeIdentifier(e,t){if(!e)return false;if(e.type!=="QualifiedTypeIdentifier")return false;return t==null||(0,n.default)(e,t)}function isStringLiteralTypeAnnotation(e,t){if(!e)return false;if(e.type!=="StringLiteralTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isStringTypeAnnotation(e,t){if(!e)return false;if(e.type!=="StringTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isSymbolTypeAnnotation(e,t){if(!e)return false;if(e.type!=="SymbolTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isThisTypeAnnotation(e,t){if(!e)return false;if(e.type!=="ThisTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isTupleTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TupleTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isTypeofTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TypeofTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isTypeAlias(e,t){if(!e)return false;if(e.type!=="TypeAlias")return false;return t==null||(0,n.default)(e,t)}function isTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isTypeCastExpression(e,t){if(!e)return false;if(e.type!=="TypeCastExpression")return false;return t==null||(0,n.default)(e,t)}function isTypeParameter(e,t){if(!e)return false;if(e.type!=="TypeParameter")return false;return t==null||(0,n.default)(e,t)}function isTypeParameterDeclaration(e,t){if(!e)return false;if(e.type!=="TypeParameterDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTypeParameterInstantiation(e,t){if(!e)return false;if(e.type!=="TypeParameterInstantiation")return false;return t==null||(0,n.default)(e,t)}function isUnionTypeAnnotation(e,t){if(!e)return false;if(e.type!=="UnionTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isVariance(e,t){if(!e)return false;if(e.type!=="Variance")return false;return t==null||(0,n.default)(e,t)}function isVoidTypeAnnotation(e,t){if(!e)return false;if(e.type!=="VoidTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isEnumDeclaration(e,t){if(!e)return false;if(e.type!=="EnumDeclaration")return false;return t==null||(0,n.default)(e,t)}function isEnumBooleanBody(e,t){if(!e)return false;if(e.type!=="EnumBooleanBody")return false;return t==null||(0,n.default)(e,t)}function isEnumNumberBody(e,t){if(!e)return false;if(e.type!=="EnumNumberBody")return false;return t==null||(0,n.default)(e,t)}function isEnumStringBody(e,t){if(!e)return false;if(e.type!=="EnumStringBody")return false;return t==null||(0,n.default)(e,t)}function isEnumSymbolBody(e,t){if(!e)return false;if(e.type!=="EnumSymbolBody")return false;return t==null||(0,n.default)(e,t)}function isEnumBooleanMember(e,t){if(!e)return false;if(e.type!=="EnumBooleanMember")return false;return t==null||(0,n.default)(e,t)}function isEnumNumberMember(e,t){if(!e)return false;if(e.type!=="EnumNumberMember")return false;return t==null||(0,n.default)(e,t)}function isEnumStringMember(e,t){if(!e)return false;if(e.type!=="EnumStringMember")return false;return t==null||(0,n.default)(e,t)}function isEnumDefaultedMember(e,t){if(!e)return false;if(e.type!=="EnumDefaultedMember")return false;return t==null||(0,n.default)(e,t)}function isIndexedAccessType(e,t){if(!e)return false;if(e.type!=="IndexedAccessType")return false;return t==null||(0,n.default)(e,t)}function isOptionalIndexedAccessType(e,t){if(!e)return false;if(e.type!=="OptionalIndexedAccessType")return false;return t==null||(0,n.default)(e,t)}function isJSXAttribute(e,t){if(!e)return false;if(e.type!=="JSXAttribute")return false;return t==null||(0,n.default)(e,t)}function isJSXClosingElement(e,t){if(!e)return false;if(e.type!=="JSXClosingElement")return false;return t==null||(0,n.default)(e,t)}function isJSXElement(e,t){if(!e)return false;if(e.type!=="JSXElement")return false;return t==null||(0,n.default)(e,t)}function isJSXEmptyExpression(e,t){if(!e)return false;if(e.type!=="JSXEmptyExpression")return false;return t==null||(0,n.default)(e,t)}function isJSXExpressionContainer(e,t){if(!e)return false;if(e.type!=="JSXExpressionContainer")return false;return t==null||(0,n.default)(e,t)}function isJSXSpreadChild(e,t){if(!e)return false;if(e.type!=="JSXSpreadChild")return false;return t==null||(0,n.default)(e,t)}function isJSXIdentifier(e,t){if(!e)return false;if(e.type!=="JSXIdentifier")return false;return t==null||(0,n.default)(e,t)}function isJSXMemberExpression(e,t){if(!e)return false;if(e.type!=="JSXMemberExpression")return false;return t==null||(0,n.default)(e,t)}function isJSXNamespacedName(e,t){if(!e)return false;if(e.type!=="JSXNamespacedName")return false;return t==null||(0,n.default)(e,t)}function isJSXOpeningElement(e,t){if(!e)return false;if(e.type!=="JSXOpeningElement")return false;return t==null||(0,n.default)(e,t)}function isJSXSpreadAttribute(e,t){if(!e)return false;if(e.type!=="JSXSpreadAttribute")return false;return t==null||(0,n.default)(e,t)}function isJSXText(e,t){if(!e)return false;if(e.type!=="JSXText")return false;return t==null||(0,n.default)(e,t)}function isJSXFragment(e,t){if(!e)return false;if(e.type!=="JSXFragment")return false;return t==null||(0,n.default)(e,t)}function isJSXOpeningFragment(e,t){if(!e)return false;if(e.type!=="JSXOpeningFragment")return false;return t==null||(0,n.default)(e,t)}function isJSXClosingFragment(e,t){if(!e)return false;if(e.type!=="JSXClosingFragment")return false;return t==null||(0,n.default)(e,t)}function isNoop(e,t){if(!e)return false;if(e.type!=="Noop")return false;return t==null||(0,n.default)(e,t)}function isPlaceholder(e,t){if(!e)return false;if(e.type!=="Placeholder")return false;return t==null||(0,n.default)(e,t)}function isV8IntrinsicIdentifier(e,t){if(!e)return false;if(e.type!=="V8IntrinsicIdentifier")return false;return t==null||(0,n.default)(e,t)}function isArgumentPlaceholder(e,t){if(!e)return false;if(e.type!=="ArgumentPlaceholder")return false;return t==null||(0,n.default)(e,t)}function isBindExpression(e,t){if(!e)return false;if(e.type!=="BindExpression")return false;return t==null||(0,n.default)(e,t)}function isDecorator(e,t){if(!e)return false;if(e.type!=="Decorator")return false;return t==null||(0,n.default)(e,t)}function isDoExpression(e,t){if(!e)return false;if(e.type!=="DoExpression")return false;return t==null||(0,n.default)(e,t)}function isExportDefaultSpecifier(e,t){if(!e)return false;if(e.type!=="ExportDefaultSpecifier")return false;return t==null||(0,n.default)(e,t)}function isRecordExpression(e,t){if(!e)return false;if(e.type!=="RecordExpression")return false;return t==null||(0,n.default)(e,t)}function isTupleExpression(e,t){if(!e)return false;if(e.type!=="TupleExpression")return false;return t==null||(0,n.default)(e,t)}function isDecimalLiteral(e,t){if(!e)return false;if(e.type!=="DecimalLiteral")return false;return t==null||(0,n.default)(e,t)}function isModuleExpression(e,t){if(!e)return false;if(e.type!=="ModuleExpression")return false;return t==null||(0,n.default)(e,t)}function isTopicReference(e,t){if(!e)return false;if(e.type!=="TopicReference")return false;return t==null||(0,n.default)(e,t)}function isPipelineTopicExpression(e,t){if(!e)return false;if(e.type!=="PipelineTopicExpression")return false;return t==null||(0,n.default)(e,t)}function isPipelineBareFunction(e,t){if(!e)return false;if(e.type!=="PipelineBareFunction")return false;return t==null||(0,n.default)(e,t)}function isPipelinePrimaryTopicReference(e,t){if(!e)return false;if(e.type!=="PipelinePrimaryTopicReference")return false;return t==null||(0,n.default)(e,t)}function isTSParameterProperty(e,t){if(!e)return false;if(e.type!=="TSParameterProperty")return false;return t==null||(0,n.default)(e,t)}function isTSDeclareFunction(e,t){if(!e)return false;if(e.type!=="TSDeclareFunction")return false;return t==null||(0,n.default)(e,t)}function isTSDeclareMethod(e,t){if(!e)return false;if(e.type!=="TSDeclareMethod")return false;return t==null||(0,n.default)(e,t)}function isTSQualifiedName(e,t){if(!e)return false;if(e.type!=="TSQualifiedName")return false;return t==null||(0,n.default)(e,t)}function isTSCallSignatureDeclaration(e,t){if(!e)return false;if(e.type!=="TSCallSignatureDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSConstructSignatureDeclaration(e,t){if(!e)return false;if(e.type!=="TSConstructSignatureDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSPropertySignature(e,t){if(!e)return false;if(e.type!=="TSPropertySignature")return false;return t==null||(0,n.default)(e,t)}function isTSMethodSignature(e,t){if(!e)return false;if(e.type!=="TSMethodSignature")return false;return t==null||(0,n.default)(e,t)}function isTSIndexSignature(e,t){if(!e)return false;if(e.type!=="TSIndexSignature")return false;return t==null||(0,n.default)(e,t)}function isTSAnyKeyword(e,t){if(!e)return false;if(e.type!=="TSAnyKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSBooleanKeyword(e,t){if(!e)return false;if(e.type!=="TSBooleanKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSBigIntKeyword(e,t){if(!e)return false;if(e.type!=="TSBigIntKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSIntrinsicKeyword(e,t){if(!e)return false;if(e.type!=="TSIntrinsicKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSNeverKeyword(e,t){if(!e)return false;if(e.type!=="TSNeverKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSNullKeyword(e,t){if(!e)return false;if(e.type!=="TSNullKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSNumberKeyword(e,t){if(!e)return false;if(e.type!=="TSNumberKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSObjectKeyword(e,t){if(!e)return false;if(e.type!=="TSObjectKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSStringKeyword(e,t){if(!e)return false;if(e.type!=="TSStringKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSSymbolKeyword(e,t){if(!e)return false;if(e.type!=="TSSymbolKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSUndefinedKeyword(e,t){if(!e)return false;if(e.type!=="TSUndefinedKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSUnknownKeyword(e,t){if(!e)return false;if(e.type!=="TSUnknownKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSVoidKeyword(e,t){if(!e)return false;if(e.type!=="TSVoidKeyword")return false;return t==null||(0,n.default)(e,t)}function isTSThisType(e,t){if(!e)return false;if(e.type!=="TSThisType")return false;return t==null||(0,n.default)(e,t)}function isTSFunctionType(e,t){if(!e)return false;if(e.type!=="TSFunctionType")return false;return t==null||(0,n.default)(e,t)}function isTSConstructorType(e,t){if(!e)return false;if(e.type!=="TSConstructorType")return false;return t==null||(0,n.default)(e,t)}function isTSTypeReference(e,t){if(!e)return false;if(e.type!=="TSTypeReference")return false;return t==null||(0,n.default)(e,t)}function isTSTypePredicate(e,t){if(!e)return false;if(e.type!=="TSTypePredicate")return false;return t==null||(0,n.default)(e,t)}function isTSTypeQuery(e,t){if(!e)return false;if(e.type!=="TSTypeQuery")return false;return t==null||(0,n.default)(e,t)}function isTSTypeLiteral(e,t){if(!e)return false;if(e.type!=="TSTypeLiteral")return false;return t==null||(0,n.default)(e,t)}function isTSArrayType(e,t){if(!e)return false;if(e.type!=="TSArrayType")return false;return t==null||(0,n.default)(e,t)}function isTSTupleType(e,t){if(!e)return false;if(e.type!=="TSTupleType")return false;return t==null||(0,n.default)(e,t)}function isTSOptionalType(e,t){if(!e)return false;if(e.type!=="TSOptionalType")return false;return t==null||(0,n.default)(e,t)}function isTSRestType(e,t){if(!e)return false;if(e.type!=="TSRestType")return false;return t==null||(0,n.default)(e,t)}function isTSNamedTupleMember(e,t){if(!e)return false;if(e.type!=="TSNamedTupleMember")return false;return t==null||(0,n.default)(e,t)}function isTSUnionType(e,t){if(!e)return false;if(e.type!=="TSUnionType")return false;return t==null||(0,n.default)(e,t)}function isTSIntersectionType(e,t){if(!e)return false;if(e.type!=="TSIntersectionType")return false;return t==null||(0,n.default)(e,t)}function isTSConditionalType(e,t){if(!e)return false;if(e.type!=="TSConditionalType")return false;return t==null||(0,n.default)(e,t)}function isTSInferType(e,t){if(!e)return false;if(e.type!=="TSInferType")return false;return t==null||(0,n.default)(e,t)}function isTSParenthesizedType(e,t){if(!e)return false;if(e.type!=="TSParenthesizedType")return false;return t==null||(0,n.default)(e,t)}function isTSTypeOperator(e,t){if(!e)return false;if(e.type!=="TSTypeOperator")return false;return t==null||(0,n.default)(e,t)}function isTSIndexedAccessType(e,t){if(!e)return false;if(e.type!=="TSIndexedAccessType")return false;return t==null||(0,n.default)(e,t)}function isTSMappedType(e,t){if(!e)return false;if(e.type!=="TSMappedType")return false;return t==null||(0,n.default)(e,t)}function isTSTemplateLiteralType(e,t){if(!e)return false;if(e.type!=="TSTemplateLiteralType")return false;return t==null||(0,n.default)(e,t)}function isTSLiteralType(e,t){if(!e)return false;if(e.type!=="TSLiteralType")return false;return t==null||(0,n.default)(e,t)}function isTSExpressionWithTypeArguments(e,t){if(!e)return false;if(e.type!=="TSExpressionWithTypeArguments")return false;return t==null||(0,n.default)(e,t)}function isTSInterfaceDeclaration(e,t){if(!e)return false;if(e.type!=="TSInterfaceDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSInterfaceBody(e,t){if(!e)return false;if(e.type!=="TSInterfaceBody")return false;return t==null||(0,n.default)(e,t)}function isTSTypeAliasDeclaration(e,t){if(!e)return false;if(e.type!=="TSTypeAliasDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSInstantiationExpression(e,t){if(!e)return false;if(e.type!=="TSInstantiationExpression")return false;return t==null||(0,n.default)(e,t)}function isTSAsExpression(e,t){if(!e)return false;if(e.type!=="TSAsExpression")return false;return t==null||(0,n.default)(e,t)}function isTSSatisfiesExpression(e,t){if(!e)return false;if(e.type!=="TSSatisfiesExpression")return false;return t==null||(0,n.default)(e,t)}function isTSTypeAssertion(e,t){if(!e)return false;if(e.type!=="TSTypeAssertion")return false;return t==null||(0,n.default)(e,t)}function isTSEnumBody(e,t){if(!e)return false;if(e.type!=="TSEnumBody")return false;return t==null||(0,n.default)(e,t)}function isTSEnumDeclaration(e,t){if(!e)return false;if(e.type!=="TSEnumDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSEnumMember(e,t){if(!e)return false;if(e.type!=="TSEnumMember")return false;return t==null||(0,n.default)(e,t)}function isTSModuleDeclaration(e,t){if(!e)return false;if(e.type!=="TSModuleDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSModuleBlock(e,t){if(!e)return false;if(e.type!=="TSModuleBlock")return false;return t==null||(0,n.default)(e,t)}function isTSImportType(e,t){if(!e)return false;if(e.type!=="TSImportType")return false;return t==null||(0,n.default)(e,t)}function isTSImportEqualsDeclaration(e,t){if(!e)return false;if(e.type!=="TSImportEqualsDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSExternalModuleReference(e,t){if(!e)return false;if(e.type!=="TSExternalModuleReference")return false;return t==null||(0,n.default)(e,t)}function isTSNonNullExpression(e,t){if(!e)return false;if(e.type!=="TSNonNullExpression")return false;return t==null||(0,n.default)(e,t)}function isTSExportAssignment(e,t){if(!e)return false;if(e.type!=="TSExportAssignment")return false;return t==null||(0,n.default)(e,t)}function isTSNamespaceExportDeclaration(e,t){if(!e)return false;if(e.type!=="TSNamespaceExportDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSTypeAnnotation(e,t){if(!e)return false;if(e.type!=="TSTypeAnnotation")return false;return t==null||(0,n.default)(e,t)}function isTSTypeParameterInstantiation(e,t){if(!e)return false;if(e.type!=="TSTypeParameterInstantiation")return false;return t==null||(0,n.default)(e,t)}function isTSTypeParameterDeclaration(e,t){if(!e)return false;if(e.type!=="TSTypeParameterDeclaration")return false;return t==null||(0,n.default)(e,t)}function isTSTypeParameter(e,t){if(!e)return false;if(e.type!=="TSTypeParameter")return false;return t==null||(0,n.default)(e,t)}function isStandardized(e,t){if(!e)return false;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return false}break;default:return false}return t==null||(0,n.default)(e,t)}function isExpression(e,t){if(!e)return false;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return false}break;default:return false}return t==null||(0,n.default)(e,t)}function isBinary(e,t){if(!e)return false;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return false}return t==null||(0,n.default)(e,t)}function isScopable(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0,n.default)(e,t)}function isBlockParent(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0,n.default)(e,t)}function isBlock(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return false}return t==null||(0,n.default)(e,t)}function isStatement(e,t){if(!e)return false;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return false}break;default:return false}return t==null||(0,n.default)(e,t)}function isTerminatorless(e,t){if(!e)return false;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return false}return t==null||(0,n.default)(e,t)}function isCompletionStatement(e,t){if(!e)return false;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return false}return t==null||(0,n.default)(e,t)}function isConditional(e,t){if(!e)return false;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return false}return t==null||(0,n.default)(e,t)}function isLoop(e,t){if(!e)return false;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return false}return t==null||(0,n.default)(e,t)}function isWhile(e,t){if(!e)return false;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return false}return t==null||(0,n.default)(e,t)}function isExpressionWrapper(e,t){if(!e)return false;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return false}return t==null||(0,n.default)(e,t)}function isFor(e,t){if(!e)return false;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return false}return t==null||(0,n.default)(e,t)}function isForXStatement(e,t){if(!e)return false;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return false}return t==null||(0,n.default)(e,t)}function isFunction(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return false}return t==null||(0,n.default)(e,t)}function isFunctionParent(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return false}return t==null||(0,n.default)(e,t)}function isPureish(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return false}return t==null||(0,n.default)(e,t)}function isDeclaration(e,t){if(!e)return false;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return false}return t==null||(0,n.default)(e,t)}function isPatternLike(e,t){if(!e)return false;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return false}break;default:return false}return t==null||(0,n.default)(e,t)}function isLVal(e,t){if(!e)return false;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return false}break;default:return false}return t==null||(0,n.default)(e,t)}function isTSEntityName(e,t){if(!e)return false;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return false}return t==null||(0,n.default)(e,t)}function isLiteral(e,t){if(!e)return false;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return false}return t==null||(0,n.default)(e,t)}function isImmutable(e,t){if(!e)return false;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return false}return t==null||(0,n.default)(e,t)}function isUserWhitespacable(e,t){if(!e)return false;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return false}return t==null||(0,n.default)(e,t)}function isMethod(e,t){if(!e)return false;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return false}return t==null||(0,n.default)(e,t)}function isObjectMember(e,t){if(!e)return false;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return false}return t==null||(0,n.default)(e,t)}function isProperty(e,t){if(!e)return false;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return false}return t==null||(0,n.default)(e,t)}function isUnaryLike(e,t){if(!e)return false;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return false}return t==null||(0,n.default)(e,t)}function isPattern(e,t){if(!e)return false;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return false}return t==null||(0,n.default)(e,t)}function isClass(e,t){if(!e)return false;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return false}return t==null||(0,n.default)(e,t)}function isImportOrExportDeclaration(e,t){if(!e)return false;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return false}return t==null||(0,n.default)(e,t)}function isExportDeclaration(e,t){if(!e)return false;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return false}return t==null||(0,n.default)(e,t)}function isModuleSpecifier(e,t){if(!e)return false;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return false}return t==null||(0,n.default)(e,t)}function isAccessor(e,t){if(!e)return false;switch(e.type){case"ClassAccessorProperty":break;default:return false}return t==null||(0,n.default)(e,t)}function isPrivate(e,t){if(!e)return false;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return false}return t==null||(0,n.default)(e,t)}function isFlow(e,t){if(!e)return false;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return false}return t==null||(0,n.default)(e,t)}function isFlowType(e,t){if(!e)return false;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return false}return t==null||(0,n.default)(e,t)}function isFlowBaseAnnotation(e,t){if(!e)return false;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return false}return t==null||(0,n.default)(e,t)}function isFlowDeclaration(e,t){if(!e)return false;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return false}return t==null||(0,n.default)(e,t)}function isFlowPredicate(e,t){if(!e)return false;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return false}return t==null||(0,n.default)(e,t)}function isEnumBody(e,t){if(!e)return false;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return false}return t==null||(0,n.default)(e,t)}function isEnumMember(e,t){if(!e)return false;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return false}return t==null||(0,n.default)(e,t)}function isJSX(e,t){if(!e)return false;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return false}return t==null||(0,n.default)(e,t)}function isMiscellaneous(e,t){if(!e)return false;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return false}return t==null||(0,n.default)(e,t)}function isTypeScript(e,t){if(!e)return false;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return false}return t==null||(0,n.default)(e,t)}function isTSTypeElement(e,t){if(!e)return false;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return false}return t==null||(0,n.default)(e,t)}function isTSType(e,t){if(!e)return false;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return false}return t==null||(0,n.default)(e,t)}function isTSBaseType(e,t){if(!e)return false;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return false}return t==null||(0,n.default)(e,t)}function isNumberLiteral(e,t){(0,s.default)("isNumberLiteral","isNumericLiteral");if(!e)return false;if(e.type!=="NumberLiteral")return false;return t==null||(0,n.default)(e,t)}function isRegexLiteral(e,t){(0,s.default)("isRegexLiteral","isRegExpLiteral");if(!e)return false;if(e.type!=="RegexLiteral")return false;return t==null||(0,n.default)(e,t)}function isRestProperty(e,t){(0,s.default)("isRestProperty","isRestElement");if(!e)return false;if(e.type!=="RestProperty")return false;return t==null||(0,n.default)(e,t)}function isSpreadProperty(e,t){(0,s.default)("isSpreadProperty","isSpreadElement");if(!e)return false;if(e.type!=="SpreadProperty")return false;return t==null||(0,n.default)(e,t)}function isModuleDeclaration(e,t){(0,s.default)("isModuleDeclaration","isImportOrExportDeclaration");return isImportOrExportDeclaration(e,t)}},7670:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=is;var n=r(1119);var s=r(8388);var i=r(8557);var a=r(6767);function is(e,t,r){if(!t)return false;const o=(0,s.default)(t.type,e);if(!o){if(!r&&t.type==="Placeholder"&&e in a.FLIPPED_ALIAS_KEYS){return(0,i.default)(t.expectedNode,e)}return false}if(r===undefined){return true}else{return(0,n.default)(t,r)}}},5195:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isBinding;var n=r(6306);function isBinding(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression"){return false}const s=n.default.keys[t.type];if(s){for(let r=0;r<s.length;r++){const n=s[r];const i=t[n];if(Array.isArray(i)){if(i.includes(e))return true}else{if(i===e)return true}}}return false}},3652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isBlockScoped;var n=r(46);var s=r(9626);function isBlockScoped(e){return(0,n.isFunctionDeclaration)(e)||(0,n.isClassDeclaration)(e)||(0,s.default)(e)}},8597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isImmutable;var n=r(8388);var s=r(46);function isImmutable(e){if((0,n.default)(e.type,"Immutable"))return true;if((0,s.isIdentifier)(e)){if(e.name==="undefined"){return true}else{return false}}return false}},9626:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isLet;var n=r(46);{var s=Symbol.for("var used to be block scoped")}function isLet(e){{return(0,n.isVariableDeclaration)(e)&&(e.kind!=="var"||e[s])}}},6087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isNode;var n=r(6767);function isNode(e){return!!(e&&n.VISITOR_KEYS[e.type])}},8486:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isNodesEquivalent;var n=r(6767);function isNodesEquivalent(e,t){if(typeof e!=="object"||typeof t!=="object"||e==null||t==null){return e===t}if(e.type!==t.type){return false}const r=Object.keys(n.NODE_FIELDS[e.type]||e.type);const s=n.VISITOR_KEYS[e.type];for(const n of r){const r=e[n];const i=t[n];if(typeof r!==typeof i){return false}if(r==null&&i==null){continue}else if(r==null||i==null){return false}if(Array.isArray(r)){if(!Array.isArray(i)){return false}if(r.length!==i.length){return false}for(let e=0;e<r.length;e++){if(!isNodesEquivalent(r[e],i[e])){return false}}continue}if(typeof r==="object"&&!(s!=null&&s.includes(n))){for(const e of Object.keys(r)){if(r[e]!==i[e]){return false}}continue}if(!isNodesEquivalent(r,i)){return false}}return true}},8557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isPlaceholderType;var n=r(6767);function isPlaceholderType(e,t){if(e===t)return true;const r=n.PLACEHOLDERS_ALIAS[e];if(r!=null&&r.includes(t))return true;return false}},5028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isReferenced;function isReferenced(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e){return!!t.computed}return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return false;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e){return!!t.computed}return false;case"ObjectProperty":if(t.key===e){return!!t.computed}return!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(t.key===e){return!!t.computed}return true;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return false;case"CatchClause":return false;case"RestElement":return false;case"BreakStatement":case"ContinueStatement":return false;case"FunctionDeclaration":case"FunctionExpression":return false;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return false;case"ExportSpecifier":if(r!=null&&r.source){return false}return t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return false;case"ImportAttribute":return false;case"JSXAttribute":return false;case"ObjectPattern":case"ArrayPattern":return false;case"MetaProperty":return false;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":if(t.key===e){return!!t.computed}return true}return true}},1559:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isScope;var n=r(46);function isScope(e,t){if((0,n.isBlockStatement)(e)&&((0,n.isFunction)(t)||(0,n.isCatchClause)(t))){return false}if((0,n.isPattern)(e)&&((0,n.isFunction)(t)||(0,n.isCatchClause)(t))){return true}return(0,n.isScopable)(e)}},8445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isSpecifierDefault;var n=r(46);function isSpecifierDefault(e){return(0,n.isImportDefaultSpecifier)(e)||(0,n.isIdentifier)(e.imported||e.exported,{name:"default"})}},8388:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isType;var n=r(6767);function isType(e,t){if(e===t)return true;if(e==null)return false;if(n.ALIAS_KEYS[t])return false;const r=n.FLIPPED_ALIAS_KEYS[t];if(r!=null&&r.includes(e))return true;return false}},3502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isValidES3Identifier;var n=r(2892);const s=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function isValidES3Identifier(e){return(0,n.default)(e)&&!s.has(e)}},2892:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isValidIdentifier;var n=r(974);function isValidIdentifier(e,t=true){if(typeof e!=="string")return false;if(t){if((0,n.isKeyword)(e)||(0,n.isStrictReservedWord)(e,true)){return false}}return(0,n.isIdentifierName)(e)}},7581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isVar;var n=r(46);{var s=Symbol.for("var used to be block scoped")}function isVar(e){{return(0,n.isVariableDeclaration)(e,{kind:"var"})&&!e[s]}}},3447:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=matchesPattern;var n=r(46);function matchesPattern(e,t,r){if(!(0,n.isMemberExpression)(e))return false;const s=Array.isArray(t)?t:t.split(".");const i=[];let a;for(a=e;(0,n.isMemberExpression)(a);a=a.object){i.push(a.property)}i.push(a);if(i.length<s.length)return false;if(!r&&i.length>s.length)return false;for(let e=0,t=i.length-1;e<s.length;e++,t--){const r=i[t];let a;if((0,n.isIdentifier)(r)){a=r.name}else if((0,n.isStringLiteral)(r)){a=r.value}else if((0,n.isThisExpression)(r)){a="this"}else{return false}if(s[e]!==a)return false}return true}},339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isCompatTag;function isCompatTag(e){return!!e&&/^[a-z]/.test(e)}},9651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var n=r(7723);const s=(0,n.default)("React.Component");var i=t["default"]=s},8966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=validate;t.validateChild=validateChild;t.validateField=validateField;t.validateInternal=validateInternal;var n=r(6767);function validate(e,t,r){if(!e)return;const s=n.NODE_FIELDS[e.type];if(!s)return;const i=s[t];validateField(e,t,r,i);validateChild(e,t,r)}function validateInternal(e,t,r,s,i){if(!(e!=null&&e.validate))return;if(e.optional&&s==null)return;e.validate(t,r,s);if(i){var a;const e=s.type;if(e==null)return;(a=n.NODE_PARENT_VALIDATIONS[e])==null||a.call(n.NODE_PARENT_VALIDATIONS,t,r,s)}}function validateField(e,t,r,n){if(!(n!=null&&n.validate))return;if(n.optional&&r==null)return;n.validate(e,t,r)}function validateChild(e,t,r){var s;const i=r==null?void 0:r.type;if(i==null)return;(s=n.NODE_PARENT_VALIDATIONS[i])==null||s.call(n.NODE_PARENT_VALIDATIONS,e,t,r)}},1824:(e,t,r)=>{e.exports=function import_(e){return r(5565)(e)};0&&0},9938:(e,t,r)=>{{t.getModuleName=()=>r(9460).getModuleName}0&&0},3702:e=>{"use strict";e.exports=JSON.parse('{"es6.module":{"chrome":"61","and_chr":"61","edge":"16","firefox":"60","and_ff":"60","node":"13.2.0","opera":"48","op_mob":"45","safari":"10.1","ios":"10.3","samsung":"8.2","android":"61","electron":"2.0","ios_saf":"10.3"}}')},8427:e=>{"use strict";e.exports=JSON.parse('{"transform-duplicate-named-capturing-groups-regex":{"chrome":"126","opera":"112","edge":"126","firefox":"129","safari":"17.4","node":"23","ios":"17.4","electron":"31.0"},"transform-regexp-modifiers":{"chrome":"125","opera":"111","edge":"125","firefox":"132","node":"23","electron":"31.0"},"transform-unicode-sets-regex":{"chrome":"112","opera":"98","edge":"112","firefox":"116","safari":"17","node":"20","deno":"1.32","ios":"17","opera_mobile":"75","electron":"24.0"},"bugfix/transform-v8-static-class-fields-redefine-readonly":{"chrome":"98","opera":"84","edge":"98","firefox":"75","safari":"15","node":"12","deno":"1.18","ios":"15","samsung":"11","opera_mobile":"52","electron":"17.0"},"bugfix/transform-firefox-class-in-computed-class-key":{"chrome":"74","opera":"62","edge":"79","safari":"16","node":"12","deno":"1","ios":"16","samsung":"11","opera_mobile":"53","electron":"6.0"},"bugfix/transform-safari-class-field-initializer-scope":{"chrome":"74","opera":"62","edge":"79","firefox":"69","safari":"16","node":"12","deno":"1","ios":"16","samsung":"11","opera_mobile":"53","electron":"6.0"},"transform-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","safari":"16.4","node":"16.11","deno":"1.14","ios":"16.4","samsung":"17","opera_mobile":"66","electron":"15.0"},"proposal-class-static-block":{"chrome":"94","opera":"80","edge":"94","firefox":"93","safari":"16.4","node":"16.11","deno":"1.14","ios":"16.4","samsung":"17","opera_mobile":"66","electron":"15.0"},"transform-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","opera_mobile":"64","electron":"13.0"},"proposal-private-property-in-object":{"chrome":"91","opera":"77","edge":"91","firefox":"90","safari":"15","node":"16.9","deno":"1.9","ios":"15","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"14.5","samsung":"11","opera_mobile":"53","electron":"6.0"},"proposal-class-properties":{"chrome":"74","opera":"62","edge":"79","firefox":"90","safari":"14.1","node":"12","deno":"1","ios":"14.5","samsung":"11","opera_mobile":"53","electron":"6.0"},"transform-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","opera_mobile":"60","electron":"10.0"},"proposal-private-methods":{"chrome":"84","opera":"70","edge":"84","firefox":"90","safari":"15","node":"14.6","deno":"1","ios":"15","samsung":"14","opera_mobile":"60","electron":"10.0"},"transform-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","opera_mobile":"54","electron":"6.0"},"proposal-numeric-separator":{"chrome":"75","opera":"62","edge":"79","firefox":"70","safari":"13","node":"12.5","deno":"1","ios":"13","samsung":"11","rhino":"1.7.14","opera_mobile":"54","electron":"6.0"},"transform-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","opera_mobile":"60","electron":"10.0"},"proposal-logical-assignment-operators":{"chrome":"85","opera":"71","edge":"85","firefox":"79","safari":"14","node":"15","deno":"1.2","ios":"14","samsung":"14","opera_mobile":"60","electron":"10.0"},"transform-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"proposal-nullish-coalescing-operator":{"chrome":"80","opera":"67","edge":"80","firefox":"72","safari":"13.1","node":"14","deno":"1","ios":"13.4","samsung":"13","opera_mobile":"57","electron":"8.0"},"transform-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"proposal-optional-chaining":{"chrome":"91","opera":"77","edge":"91","firefox":"74","safari":"13.1","node":"16.9","deno":"1.9","ios":"13.4","samsung":"16","opera_mobile":"64","electron":"13.0"},"transform-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","opera_mobile":"47","electron":"3.0"},"proposal-json-strings":{"chrome":"66","opera":"53","edge":"79","firefox":"62","safari":"12","node":"10","deno":"1","ios":"12","samsung":"9","rhino":"1.7.14","opera_mobile":"47","electron":"3.0"},"transform-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"proposal-optional-catch-binding":{"chrome":"66","opera":"53","edge":"79","firefox":"58","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-parameters":{"chrome":"49","opera":"36","edge":"18","firefox":"53","safari":"16.3","node":"6","deno":"1","ios":"16.3","samsung":"5","opera_mobile":"36","electron":"0.37"},"transform-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"proposal-async-generator-functions":{"chrome":"63","opera":"50","edge":"79","firefox":"57","safari":"12","node":"10","deno":"1","ios":"12","samsung":"8","opera_mobile":"46","electron":"3.0"},"transform-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"44","electron":"2.0"},"proposal-object-rest-spread":{"chrome":"60","opera":"47","edge":"79","firefox":"55","safari":"11.1","node":"8.3","deno":"1","ios":"11.3","samsung":"8","opera_mobile":"44","electron":"2.0"},"transform-dotall-regex":{"chrome":"62","opera":"49","edge":"79","firefox":"78","safari":"11.1","node":"8.10","deno":"1","ios":"11.3","samsung":"8","rhino":"1.7.15","opera_mobile":"46","electron":"3.0"},"transform-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"proposal-unicode-property-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-named-capturing-groups-regex":{"chrome":"64","opera":"51","edge":"79","firefox":"78","safari":"11.1","node":"10","deno":"1","ios":"11.3","samsung":"9","opera_mobile":"47","electron":"3.0"},"transform-async-to-generator":{"chrome":"55","opera":"42","edge":"15","firefox":"52","safari":"11","node":"7.6","deno":"1","ios":"11","samsung":"6","opera_mobile":"42","electron":"1.6"},"transform-exponentiation-operator":{"chrome":"52","opera":"39","edge":"14","firefox":"52","safari":"10.1","node":"7","deno":"1","ios":"10.3","samsung":"6","rhino":"1.7.14","opera_mobile":"41","electron":"1.3"},"transform-template-literals":{"chrome":"41","opera":"28","edge":"13","firefox":"34","safari":"13","node":"4","deno":"1","ios":"13","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-literals":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.15","opera_mobile":"32","electron":"0.30"},"transform-function-name":{"chrome":"51","opera":"38","edge":"79","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-arrow-functions":{"chrome":"47","opera":"34","edge":"13","firefox":"43","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.13","opera_mobile":"34","electron":"0.36"},"transform-block-scoped-functions":{"chrome":"41","opera":"28","edge":"12","firefox":"46","safari":"10","node":"4","deno":"1","ie":"11","ios":"10","samsung":"3.4","opera_mobile":"28","electron":"0.21"},"transform-classes":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-object-super":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-shorthand-properties":{"chrome":"43","opera":"30","edge":"12","firefox":"33","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.14","opera_mobile":"30","electron":"0.27"},"transform-duplicate-keys":{"chrome":"42","opera":"29","edge":"12","firefox":"34","safari":"9","node":"4","deno":"1","ios":"9","samsung":"3.4","opera_mobile":"29","electron":"0.25"},"transform-computed-properties":{"chrome":"44","opera":"31","edge":"12","firefox":"34","safari":"7.1","node":"4","deno":"1","ios":"8","samsung":"4","opera_mobile":"32","electron":"0.30"},"transform-for-of":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-sticky-regex":{"chrome":"49","opera":"36","edge":"13","firefox":"3","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","rhino":"1.7.15","opera_mobile":"36","electron":"0.37"},"transform-unicode-escapes":{"chrome":"44","opera":"31","edge":"12","firefox":"53","safari":"9","node":"4","deno":"1","ios":"9","samsung":"4","rhino":"1.7.15","opera_mobile":"32","electron":"0.30"},"transform-unicode-regex":{"chrome":"50","opera":"37","edge":"13","firefox":"46","safari":"12","node":"6","deno":"1","ios":"12","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-spread":{"chrome":"46","opera":"33","edge":"13","firefox":"45","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-destructuring":{"chrome":"51","opera":"38","edge":"15","firefox":"53","safari":"10","node":"6.5","deno":"1","ios":"10","samsung":"5","opera_mobile":"41","electron":"1.2"},"transform-block-scoping":{"chrome":"50","opera":"37","edge":"14","firefox":"53","safari":"11","node":"6","deno":"1","ios":"11","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-typeof-symbol":{"chrome":"48","opera":"35","edge":"12","firefox":"36","safari":"9","node":"6","deno":"1","ios":"9","samsung":"5","opera_mobile":"35","electron":"0.37"},"transform-new-target":{"chrome":"46","opera":"33","edge":"14","firefox":"41","safari":"10","node":"5","deno":"1","ios":"10","samsung":"5","opera_mobile":"33","electron":"0.36"},"transform-regenerator":{"chrome":"50","opera":"37","edge":"13","firefox":"53","safari":"10","node":"6","deno":"1","ios":"10","samsung":"5","opera_mobile":"37","electron":"1.1"},"transform-member-expression-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"transform-property-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.4","deno":"1","ie":"9","android":"4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"12","electron":"0.20"},"transform-reserved-words":{"chrome":"13","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.6","deno":"1","ie":"9","android":"4.4","ios":"6","phantom":"1.9","samsung":"1","rhino":"1.7.13","opera_mobile":"10.1","electron":"0.20"},"transform-export-namespace-from":{"chrome":"72","deno":"1.0","edge":"79","firefox":"80","node":"13.2","opera":"60","opera_mobile":"51","safari":"14.1","ios":"14.5","samsung":"11.0","android":"72","electron":"5.0"},"proposal-export-namespace-from":{"chrome":"72","deno":"1.0","edge":"79","firefox":"80","node":"13.2","opera":"60","opera_mobile":"51","safari":"14.1","ios":"14.5","samsung":"11.0","android":"72","electron":"5.0"}}')},1628:e=>{"use strict";e.exports=JSON.parse('{"name":"@babel/preset-typescript","version":"7.27.0","description":"Babel preset for TypeScript.","repository":{"type":"git","url":"https://github.com/babel/babel.git","directory":"packages/babel-preset-typescript"},"license":"MIT","publishConfig":{"access":"public"},"main":"./lib/index.js","keywords":["babel-preset","typescript"],"dependencies":{"@babel/helper-plugin-utils":"^7.26.5","@babel/helper-validator-option":"^7.25.9","@babel/plugin-syntax-jsx":"^7.25.9","@babel/plugin-transform-modules-commonjs":"^7.26.3","@babel/plugin-transform-typescript":"^7.27.0"},"peerDependencies":{"@babel/core":"^7.0.0-0"},"devDependencies":{"@babel/core":"^7.26.10","@babel/helper-plugin-test-runner":"^7.25.9"},"homepage":"https://babel.dev/docs/en/next/babel-preset-typescript","bugs":"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen","engines":{"node":">=6.9.0"},"author":"The Babel Team (https://babel.dev/team)","type":"commonjs"}')},3676:e=>{"use strict";e.exports=JSON.parse('{"builtin":{"Array":false,"ArrayBuffer":false,"Atomics":false,"BigInt":false,"BigInt64Array":false,"BigUint64Array":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"globalThis":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es5":{"Array":false,"Boolean":false,"constructor":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"propertyIsEnumerable":false,"RangeError":false,"ReferenceError":false,"RegExp":false,"String":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false},"es2015":{"Array":false,"ArrayBuffer":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"es2017":{"Array":false,"ArrayBuffer":false,"Atomics":false,"Boolean":false,"constructor":false,"DataView":false,"Date":false,"decodeURI":false,"decodeURIComponent":false,"encodeURI":false,"encodeURIComponent":false,"Error":false,"escape":false,"eval":false,"EvalError":false,"Float32Array":false,"Float64Array":false,"Function":false,"hasOwnProperty":false,"Infinity":false,"Int16Array":false,"Int32Array":false,"Int8Array":false,"isFinite":false,"isNaN":false,"isPrototypeOf":false,"JSON":false,"Map":false,"Math":false,"NaN":false,"Number":false,"Object":false,"parseFloat":false,"parseInt":false,"Promise":false,"propertyIsEnumerable":false,"Proxy":false,"RangeError":false,"ReferenceError":false,"Reflect":false,"RegExp":false,"Set":false,"SharedArrayBuffer":false,"String":false,"Symbol":false,"SyntaxError":false,"toLocaleString":false,"toString":false,"TypeError":false,"Uint16Array":false,"Uint32Array":false,"Uint8Array":false,"Uint8ClampedArray":false,"undefined":false,"unescape":false,"URIError":false,"valueOf":false,"WeakMap":false,"WeakSet":false},"browser":{"AbortController":false,"AbortSignal":false,"addEventListener":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffectReadOnly":false,"AnimationEffectTiming":false,"AnimationEffectTimingReadOnly":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"applicationCache":false,"ApplicationCache":false,"ApplicationCacheErrorEvent":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioDestinationNode":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioWorkletGlobalScope ":false,"AudioWorkletNode":false,"AudioWorkletProcessor":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"blur":false,"BroadcastChannel":false,"btoa":false,"BudgetService":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"ClipboardEvent":false,"close":false,"closed":false,"CloseEvent":false,"Comment":false,"CompositionEvent":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ConvolverNode":false,"CountQueuingStrategy":false,"createImageBitmap":false,"Credential":false,"CredentialsContainer":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSS":false,"CSSConditionRule":false,"CSSFontFaceRule":false,"CSSGroupingRule":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSPageRule":false,"CSSRule":false,"CSSRuleList":false,"CSSStyleDeclaration":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSSupportsRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"defaultstatus":false,"defaultStatus":false,"DelayNode":false,"DeviceMotionEvent":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"dispatchEvent":false,"document":false,"Document":false,"DocumentFragment":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"Element":false,"ErrorEvent":false,"event":false,"Event":false,"EventSource":false,"EventTarget":false,"external":false,"fetch":false,"File":false,"FileList":false,"FileReader":false,"find":false,"focus":false,"FocusEvent":false,"FontFace":false,"FontFaceSetLoadEvent":false,"FormData":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadButton":false,"GamepadEvent":false,"getComputedStyle":false,"getSelection":false,"HashChangeEvent":false,"Headers":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLContentElement":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectElement":false,"HTMLShadowElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdleDeadline":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"indexedDB":false,"innerHeight":false,"innerWidth":false,"InputEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"Intl":false,"isSecureContext":false,"KeyboardEvent":false,"KeyframeEffect":false,"KeyframeEffectReadOnly":false,"length":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"matchMedia":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyMessageEvent":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaSettingsRange":false,"MediaSource":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackEvent":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigationPreloadManager":false,"navigator":false,"Navigator":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":true,"onabort":true,"onafterprint":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinstallprompt":true,"onbeforeprint":true,"onbeforeunload":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncontextmenu":true,"oncuechange":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpageshow":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onsearch":true,"onseeked":true,"onseeking":true,"onselect":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitionend":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"openDatabase":false,"opener":false,"Option":false,"origin":false,"OscillatorNode":false,"outerHeight":false,"outerWidth":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"Path2D":false,"PaymentAddress":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"personalbar":false,"PhotoCapabilities":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"print":false,"ProcessingInstruction":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queueMicrotask":false,"RadioNodeList":false,"Range":false,"ReadableStream":false,"registerProcessor":false,"RemotePlayback":false,"removeEventListener":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"resizeTo":false,"Response":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCIceCandidate":false,"RTCIceGatherer":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceEvent":false,"RTCRtpContributingSource":false,"RTCRtpReceiver":false,"RTCRtpSender":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"screen":false,"Screen":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"SharedWorker":false,"SourceBuffer":false,"SourceBufferList":false,"speechSynthesis":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageEvent":false,"StorageManager":false,"styleMedia":false,"StyleSheet":false,"StyleSheetList":false,"SubtleCrypto":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGDiscardElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"TaskAttributionTiming":false,"Text":false,"TextDecoder":false,"TextEncoder":false,"TextEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TimeRanges":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransitionEvent":false,"TreeWalker":false,"UIEvent":false,"URL":false,"URLSearchParams":false,"ValidityState":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WheelEvent":false,"window":false,"Window":false,"Worker":false,"WritableStream":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XSLTProcessor":false},"worker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"clearInterval":false,"clearTimeout":false,"close":true,"console":false,"fetch":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":true,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onlanguagechange":true,"onmessage":true,"onoffline":true,"ononline":true,"onrejectionhandled":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"removeEventListener":false,"Request":false,"Response":false,"self":true,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"node":{"__dirname":false,"__filename":false,"Buffer":false,"clearImmediate":false,"clearInterval":false,"clearTimeout":false,"console":false,"exports":true,"global":false,"Intl":false,"module":false,"process":false,"queueMicrotask":false,"require":false,"setImmediate":false,"setInterval":false,"setTimeout":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false},"commonjs":{"exports":true,"global":false,"module":false,"require":false},"amd":{"define":false,"require":false},"mocha":{"after":false,"afterEach":false,"before":false,"beforeEach":false,"context":false,"describe":false,"it":false,"mocha":false,"run":false,"setup":false,"specify":false,"suite":false,"suiteSetup":false,"suiteTeardown":false,"teardown":false,"test":false,"xcontext":false,"xdescribe":false,"xit":false,"xspecify":false},"jasmine":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fail":false,"fdescribe":false,"fit":false,"it":false,"jasmine":false,"pending":false,"runs":false,"spyOn":false,"spyOnProperty":false,"waits":false,"waitsFor":false,"xdescribe":false,"xit":false},"jest":{"afterAll":false,"afterEach":false,"beforeAll":false,"beforeEach":false,"describe":false,"expect":false,"fdescribe":false,"fit":false,"it":false,"jest":false,"pit":false,"require":false,"test":false,"xdescribe":false,"xit":false,"xtest":false},"qunit":{"asyncTest":false,"deepEqual":false,"equal":false,"expect":false,"module":false,"notDeepEqual":false,"notEqual":false,"notOk":false,"notPropEqual":false,"notStrictEqual":false,"ok":false,"propEqual":false,"QUnit":false,"raises":false,"start":false,"stop":false,"strictEqual":false,"test":false,"throws":false},"phantomjs":{"console":true,"exports":true,"phantom":true,"require":true,"WebPage":true},"couch":{"emit":false,"exports":false,"getRow":false,"log":false,"module":false,"provides":false,"require":false,"respond":false,"send":false,"start":false,"sum":false},"rhino":{"defineClass":false,"deserialize":false,"gc":false,"help":false,"importClass":false,"importPackage":false,"java":false,"load":false,"loadClass":false,"Packages":false,"print":false,"quit":false,"readFile":false,"readUrl":false,"runCommand":false,"seal":false,"serialize":false,"spawn":false,"sync":false,"toint32":false,"version":false},"nashorn":{"__DIR__":false,"__FILE__":false,"__LINE__":false,"com":false,"edu":false,"exit":false,"java":false,"Java":false,"javafx":false,"JavaImporter":false,"javax":false,"JSAdapter":false,"load":false,"loadWithNewGlobal":false,"org":false,"Packages":false,"print":false,"quit":false},"wsh":{"ActiveXObject":true,"Enumerator":true,"GetObject":true,"ScriptEngine":true,"ScriptEngineBuildVersion":true,"ScriptEngineMajorVersion":true,"ScriptEngineMinorVersion":true,"VBArray":true,"WScript":true,"WSH":true,"XDomainRequest":true},"jquery":{"$":false,"jQuery":false},"yui":{"YAHOO":false,"YAHOO_config":false,"YUI":false,"YUI_config":false},"shelljs":{"cat":false,"cd":false,"chmod":false,"config":false,"cp":false,"dirs":false,"echo":false,"env":false,"error":false,"exec":false,"exit":false,"find":false,"grep":false,"ln":false,"ls":false,"mkdir":false,"mv":false,"popd":false,"pushd":false,"pwd":false,"rm":false,"sed":false,"set":false,"target":false,"tempdir":false,"test":false,"touch":false,"which":false},"prototypejs":{"$":false,"$$":false,"$A":false,"$break":false,"$continue":false,"$F":false,"$H":false,"$R":false,"$w":false,"Abstract":false,"Ajax":false,"Autocompleter":false,"Builder":false,"Class":false,"Control":false,"Draggable":false,"Draggables":false,"Droppables":false,"Effect":false,"Element":false,"Enumerable":false,"Event":false,"Field":false,"Form":false,"Hash":false,"Insertion":false,"ObjectRange":false,"PeriodicalExecuter":false,"Position":false,"Prototype":false,"Scriptaculous":false,"Selector":false,"Sortable":false,"SortableObserver":false,"Sound":false,"Template":false,"Toggle":false,"Try":false},"meteor":{"_":false,"$":false,"Accounts":false,"AccountsClient":false,"AccountsCommon":false,"AccountsServer":false,"App":false,"Assets":false,"Blaze":false,"check":false,"Cordova":false,"DDP":false,"DDPRateLimiter":false,"DDPServer":false,"Deps":false,"EJSON":false,"Email":false,"HTTP":false,"Log":false,"Match":false,"Meteor":false,"Mongo":false,"MongoInternals":false,"Npm":false,"Package":false,"Plugin":false,"process":false,"Random":false,"ReactiveDict":false,"ReactiveVar":false,"Router":false,"ServiceConfiguration":false,"Session":false,"share":false,"Spacebars":false,"Template":false,"Tinytest":false,"Tracker":false,"UI":false,"Utils":false,"WebApp":false,"WebAppInternals":false},"mongo":{"_isWindows":false,"_rand":false,"BulkWriteResult":false,"cat":false,"cd":false,"connect":false,"db":false,"getHostName":false,"getMemInfo":false,"hostname":false,"ISODate":false,"listFiles":false,"load":false,"ls":false,"md5sumFile":false,"mkdir":false,"Mongo":false,"NumberInt":false,"NumberLong":false,"ObjectId":false,"PlanCache":false,"print":false,"printjson":false,"pwd":false,"quit":false,"removeFile":false,"rs":false,"sh":false,"UUID":false,"version":false,"WriteResult":false},"applescript":{"$":false,"Application":false,"Automation":false,"console":false,"delay":false,"Library":false,"ObjC":false,"ObjectSpecifier":false,"Path":false,"Progress":false,"Ref":false},"serviceworker":{"addEventListener":false,"applicationCache":false,"atob":false,"Blob":false,"BroadcastChannel":false,"btoa":false,"Cache":false,"caches":false,"CacheStorage":false,"clearInterval":false,"clearTimeout":false,"Client":false,"clients":false,"Clients":false,"close":true,"console":false,"ExtendableEvent":false,"ExtendableMessageEvent":false,"fetch":false,"FetchEvent":false,"FileReaderSync":false,"FormData":false,"Headers":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"ImageData":false,"importScripts":false,"indexedDB":false,"location":false,"MessageChannel":false,"MessagePort":false,"name":false,"navigator":false,"Notification":false,"onclose":true,"onconnect":true,"onerror":true,"onfetch":true,"oninstall":true,"onlanguagechange":true,"onmessage":true,"onmessageerror":true,"onnotificationclick":true,"onnotificationclose":true,"onoffline":true,"ononline":true,"onpush":true,"onpushsubscriptionchange":true,"onrejectionhandled":true,"onsync":true,"onunhandledrejection":true,"performance":false,"Performance":false,"PerformanceEntry":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceResourceTiming":false,"PerformanceTiming":false,"postMessage":true,"Promise":false,"queueMicrotask":false,"registration":false,"removeEventListener":false,"Request":false,"Response":false,"self":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerGlobalScope":false,"ServiceWorkerMessageEvent":false,"ServiceWorkerRegistration":false,"setInterval":false,"setTimeout":false,"skipWaiting":false,"TextDecoder":false,"TextEncoder":false,"URL":false,"URLSearchParams":false,"WebSocket":false,"WindowClient":false,"Worker":false,"WorkerGlobalScope":false,"XMLHttpRequest":false},"atomtest":{"advanceClock":false,"fakeClearInterval":false,"fakeClearTimeout":false,"fakeSetInterval":false,"fakeSetTimeout":false,"resetTimeouts":false,"waitsForPromise":false},"embertest":{"andThen":false,"click":false,"currentPath":false,"currentRouteName":false,"currentURL":false,"fillIn":false,"find":false,"findAll":false,"findWithAssert":false,"keyEvent":false,"pauseTest":false,"resumeTest":false,"triggerEvent":false,"visit":false,"wait":false},"protractor":{"$":false,"$$":false,"browser":false,"by":false,"By":false,"DartObject":false,"element":false,"protractor":false},"shared-node-browser":{"clearInterval":false,"clearTimeout":false,"console":false,"setInterval":false,"setTimeout":false,"URL":false,"URLSearchParams":false},"webextensions":{"browser":false,"chrome":false,"opr":false},"greasemonkey":{"cloneInto":false,"createObjectIn":false,"exportFunction":false,"GM":false,"GM_addStyle":false,"GM_deleteValue":false,"GM_getResourceText":false,"GM_getResourceURL":false,"GM_getValue":false,"GM_info":false,"GM_listValues":false,"GM_log":false,"GM_openInTab":false,"GM_registerMenuCommand":false,"GM_setClipboard":false,"GM_setValue":false,"GM_xmlhttpRequest":false,"unsafeWindow":false},"devtools":{"$":false,"$_":false,"$$":false,"$0":false,"$1":false,"$2":false,"$3":false,"$4":false,"$x":false,"chrome":false,"clear":false,"copy":false,"debug":false,"dir":false,"dirxml":false,"getEventListeners":false,"inspect":false,"keys":false,"monitor":false,"monitorEvents":false,"profile":false,"profileEnd":false,"queryObjects":false,"table":false,"undebug":false,"unmonitor":false,"unmonitorEvents":false,"values":false}}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(3050);module.exports=r})(); |