ic-mops 1.7.2 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/bundle/bench/bench-canister.mo +113 -0
- package/bundle/bench/user-bench.mo +14 -0
- package/bundle/bin/moc-wrapper.sh +40 -0
- package/bundle/bin/mops.js +3 -0
- package/bundle/cli.js +14 -14
- package/bundle/cli.tgz +0 -0
- package/bundle/declarations/bench/bench.did +30 -0
- package/bundle/declarations/bench/bench.did.d.ts +33 -0
- package/bundle/declarations/bench/bench.did.js +30 -0
- package/bundle/declarations/bench/index.d.ts +50 -0
- package/bundle/declarations/bench/index.js +40 -0
- package/bundle/declarations/main/index.d.ts +50 -0
- package/bundle/declarations/main/index.js +40 -0
- package/bundle/declarations/main/main.did +465 -0
- package/bundle/declarations/main/main.did.d.ts +392 -0
- package/bundle/declarations/main/main.did.js +454 -0
- package/bundle/declarations/storage/index.d.ts +50 -0
- package/bundle/declarations/storage/index.js +30 -0
- package/bundle/declarations/storage/storage.did +46 -0
- package/bundle/declarations/storage/storage.did.d.ts +40 -0
- package/bundle/declarations/storage/storage.did.js +38 -0
- package/bundle/package.json +35 -0
- package/bundle/templates/README.md +13 -0
- package/bundle/templates/licenses/Apache-2.0 +202 -0
- package/bundle/templates/licenses/Apache-2.0-NOTICE +13 -0
- package/bundle/templates/licenses/MIT +21 -0
- package/bundle/templates/mops-publish.yml +17 -0
- package/bundle/templates/mops-test.yml +24 -0
- package/bundle/templates/src/lib.mo +15 -0
- package/bundle/templates/test/lib.test.mo +4 -0
- package/bundle/wasm_bg.wasm +0 -0
- package/cli.ts +16 -0
- package/commands/format.ts +169 -0
- package/commands/publish.ts +1 -0
- package/commands/watch/formatter.ts +74 -0
- package/commands/watch/watch.ts +23 -2
- package/dist/cli.js +15 -0
- package/dist/commands/format.d.ts +14 -0
- package/dist/commands/format.js +131 -0
- package/dist/commands/publish.js +1 -0
- package/dist/commands/watch/formatter.d.ts +19 -0
- package/dist/commands/watch/formatter.js +57 -0
- package/dist/commands/watch/watch.d.ts +1 -0
- package/dist/commands/watch/watch.js +19 -1
- package/dist/package.json +4 -2
- package/package.json +6 -4
- package/types.ts +10 -0
package/bundle/cli.js
CHANGED
|
@@ -298,7 +298,7 @@ ${e.join(`
|
|
|
298
298
|
* Licensed under the MIT License.
|
|
299
299
|
*/var CDn=Rt("util"),Wgt=Ogt(),Qgt=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e),EDn=(e)=>{return(t)=>e===!0?Number(t):String(t)},_Se=(e)=>{return typeof e==="number"||typeof e==="string"&&e!==""},lW=(e)=>Number.isInteger(+e),cSe=(e)=>{let t=`${e}`,r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return!1;while(t[++r]==="0");return r>0},kDn=(e,t,r)=>{if(typeof e==="string"||typeof t==="string")return!0;return r.stringify===!0},FDn=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";if(n)e=e.slice(1);e=n+e.padStart(n?t-1:t,"0")}if(r===!1)return String(e);return e},M_e=(e,t)=>{let r=e[0]==="-"?"-":"";if(r)e=e.slice(1),t--;while(e.length<t)e="0"+e;return r?"-"+e:e},SDn=(e,t,r)=>{e.negatives.sort((s,l)=>s<l?-1:s>l?1:0),e.positives.sort((s,l)=>s<l?-1:s>l?1:0);let n=t.capture?"":"?:",i="",a="",u;if(e.positives.length)i=e.positives.map((s)=>M_e(String(s),r)).join("|");if(e.negatives.length)a=`-(${n}${e.negatives.map((s)=>M_e(String(s),r)).join("|")})`;if(i&&a)u=`${i}|${a}`;else u=i||a;if(t.wrap)return`(${n}${u})`;return u},Ygt=(e,t,r,n)=>{if(r)return Wgt(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let a=String.fromCharCode(t);return`[${i}-${a}]`},Hgt=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Wgt(e,t,r)},Ggt=(...e)=>{return new RangeError("Invalid range arguments: "+CDn.inspect(...e))},Rgt=(e,t,r)=>{if(r.strictRanges===!0)throw Ggt([e,t]);return[]},PDn=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},NDn=(e,t,r=1,n={})=>{let i=Number(e),a=Number(t);if(!Number.isInteger(i)||!Number.isInteger(a)){if(n.strictRanges===!0)throw Ggt([e,t]);return[]}if(i===0)i=0;if(a===0)a=0;let u=i>a,s=String(e),l=String(t),h=String(r);r=Math.max(Math.abs(r),1);let _=cSe(s)||cSe(l)||cSe(h),p=_?Math.max(s.length,l.length,h.length):0,f=_===!1&&kDn(e,t,n)===!1,m=n.transform||EDn(f);if(n.toRegex&&r===1)return Ygt(M_e(e,p),M_e(t,p),!0,n);let d={negatives:[],positives:[]},x=(F)=>d[F<0?"negatives":"positives"].push(Math.abs(F)),T=[],A=0;while(u?i>=a:i<=a){if(n.toRegex===!0&&r>1)x(i);else T.push(FDn(m(i,A),p,f));i=u?i-r:i+r,A++}if(n.toRegex===!0)return r>1?SDn(d,n,p):Hgt(T,null,{wrap:!1,...n});return T},BDn=(e,t,r=1,n={})=>{if(!lW(e)&&e.length>1||!lW(t)&&t.length>1)return Rgt(e,t,n);let i=n.transform||((f)=>String.fromCharCode(f)),a=`${e}`.charCodeAt(0),u=`${t}`.charCodeAt(0),s=a>u,l=Math.min(a,u),h=Math.max(a,u);if(n.toRegex&&r===1)return Ygt(l,h,!1,n);let _=[],p=0;while(s?a>=u:a<=u)_.push(i(a,p)),a=s?a-r:a+r,p++;if(n.toRegex===!0)return Hgt(_,null,{wrap:!1,options:n});return _},I_e=(e,t,r,n={})=>{if(t==null&&_Se(e))return[e];if(!_Se(e)||!_Se(t))return Rgt(e,t,n);if(typeof r==="function")return I_e(e,t,1,{transform:r});if(Qgt(r))return I_e(e,t,0,r);let i={...n};if(i.capture===!0)i.wrap=!0;if(r=r||i.step||1,!lW(r)){if(r!=null&&!Qgt(r))return PDn(r,i);return I_e(e,t,1,r)}if(lW(e)&&lW(t))return NDn(e,t,r,i);return BDn(e,t,Math.max(Math.abs(r),1),i)};e3t.exports=I_e});var n3t=he((_80,r3t)=>{var qDn=hSe(),t3t=$_e(),$Dn=(e,t={})=>{let r=(n,i={})=>{let a=t3t.isInvalidBrace(i),u=n.invalid===!0&&t.escapeInvalid===!0,s=a===!0||u===!0,l=t.escapeInvalid===!0?"\\":"",h="";if(n.isOpen===!0)return l+n.value;if(n.isClose===!0)return console.log("node.isClose",l,n.value),l+n.value;if(n.type==="open")return s?l+n.value:"(";if(n.type==="close")return s?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let _=t3t.reduce(n.nodes),p=qDn(..._,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(p.length!==0)return _.length>1&&p.length>1?`(${p})`:p}if(n.nodes)for(let _ of n.nodes)h+=r(_,n);return h};return r(e)};r3t.exports=$Dn});var u3t=he((c80,a3t)=>{var JDn=hSe(),i3t=J_e(),DV=$_e(),jq=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?DV.flatten(t).map((i)=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let a of i)n.push(jq(a,t,r));else for(let a of t){if(r===!0&&typeof a==="string")a=`{${a}}`;n.push(Array.isArray(a)?jq(i,a,r):i+a)}return DV.flatten(n)},IDn=(e,t={})=>{let r=t.rangeLimit===void 0?1000:t.rangeLimit,n=(i,a={})=>{i.queue=[];let u=a,s=a.queue;while(u.type!=="brace"&&u.type!=="root"&&u.parent)u=u.parent,s=u.queue;if(i.invalid||i.dollar){s.push(jq(s.pop(),i3t(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(jq(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let p=DV.reduce(i.nodes);if(DV.exceedsLimit(...p,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=JDn(...p,t);if(f.length===0)f=i3t(i,t);s.push(jq(s.pop(),f)),i.nodes=[];return}let l=DV.encloseBrace(i),h=i.queue,_=i;while(_.type!=="brace"&&_.type!=="root"&&_.parent)_=_.parent,h=_.queue;for(let p=0;p<i.nodes.length;p++){let f=i.nodes[p];if(f.type==="comma"&&i.type==="brace"){if(p===1)h.push("");h.push("");continue}if(f.type==="close"){s.push(jq(s.pop(),h,l));continue}if(f.value&&f.type!=="open"){h.push(jq(h.pop(),f.value));continue}if(f.nodes)n(f,i)}return h};return DV.flatten(n(e))};a3t.exports=IDn});var s3t=he((h80,o3t)=>{o3t.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
300
300
|
`,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var p3t=he((p80,h3t)=>{var MDn=J_e(),{MAX_LENGTH:l3t,CHAR_BACKSLASH:pSe,CHAR_BACKTICK:zDn,CHAR_COMMA:VDn,CHAR_DOT:LDn,CHAR_LEFT_PARENTHESES:XDn,CHAR_RIGHT_PARENTHESES:jDn,CHAR_LEFT_CURLY_BRACE:KDn,CHAR_RIGHT_CURLY_BRACE:UDn,CHAR_LEFT_SQUARE_BRACKET:_3t,CHAR_RIGHT_SQUARE_BRACKET:c3t,CHAR_DOUBLE_QUOTE:ZDn,CHAR_SINGLE_QUOTE:ODn,CHAR_NO_BREAK_SPACE:QDn,CHAR_ZERO_WIDTH_NOBREAK_SPACE:WDn}=s3t(),YDn=(e,t={})=>{if(typeof e!=="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength==="number"?Math.min(l3t,r.maxLength):l3t;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},a=[i],u=i,s=i,l=0,h=e.length,_=0,p=0,f,m=()=>e[_++],d=(x)=>{if(x.type==="text"&&s.type==="dot")s.type="text";if(s&&s.type==="text"&&x.type==="text"){s.value+=x.value;return}return u.nodes.push(x),x.parent=u,x.prev=s,s=x,x};d({type:"bos"});while(_<h){if(u=a[a.length-1],f=m(),f===WDn||f===QDn)continue;if(f===pSe){d({type:"text",value:(t.keepEscaping?f:"")+m()});continue}if(f===c3t){d({type:"text",value:"\\"+f});continue}if(f===_3t){l++;let x;while(_<h&&(x=m())){if(f+=x,x===_3t){l++;continue}if(x===pSe){f+=m();continue}if(x===c3t){if(l--,l===0)break}}d({type:"text",value:f});continue}if(f===XDn){u=d({type:"paren",nodes:[]}),a.push(u),d({type:"text",value:f});continue}if(f===jDn){if(u.type!=="paren"){d({type:"text",value:f});continue}u=a.pop(),d({type:"text",value:f}),u=a[a.length-1];continue}if(f===ZDn||f===ODn||f===zDn){let x=f,T;if(t.keepQuotes!==!0)f="";while(_<h&&(T=m())){if(T===pSe){f+=T+m();continue}if(T===x){if(t.keepQuotes===!0)f+=T;break}f+=T}d({type:"text",value:f});continue}if(f===KDn){p++;let T={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||u.dollar===!0,depth:p,commas:0,ranges:0,nodes:[]};u=d(T),a.push(u),d({type:"open",value:f});continue}if(f===UDn){if(u.type!=="brace"){d({type:"text",value:f});continue}let x="close";u=a.pop(),u.close=!0,d({type:x,value:f}),p--,u=a[a.length-1];continue}if(f===VDn&&p>0){if(u.ranges>0){u.ranges=0;let x=u.nodes.shift();u.nodes=[x,{type:"text",value:MDn(u)}]}d({type:"comma",value:f}),u.commas++;continue}if(f===LDn&&p>0&&u.commas===0){let x=u.nodes;if(p===0||x.length===0){d({type:"text",value:f});continue}if(s.type==="dot"){if(u.range=[],s.value+=f,s.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,s.type="text";continue}u.ranges++,u.args=[];continue}if(s.type==="range"){x.pop();let T=x[x.length-1];T.value+=s.value+f,s=T,u.ranges--;continue}d({type:"dot",value:f});continue}d({type:"text",value:f})}do if(u=a.pop(),u.type!=="root"){u.nodes.forEach((A)=>{if(!A.nodes){if(A.type==="open")A.isOpen=!0;if(A.type==="close")A.isClose=!0;if(!A.nodes)A.type="text";A.invalid=!0}});let x=a[a.length-1],T=x.nodes.indexOf(u);x.nodes.splice(T,1,...u.nodes)}while(a.length>0);return d({type:"eos"}),i};h3t.exports=YDn});var fSe=he((f80,m3t)=>{var f3t=J_e(),HDn=n3t(),GDn=u3t(),RDn=p3t(),Gd=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Gd.create(n,t);if(Array.isArray(i))r.push(...i);else r.push(i)}else r=[].concat(Gd.create(e,t));if(t&&t.expand===!0&&t.nodupes===!0)r=[...new Set(r)];return r};Gd.parse=(e,t={})=>RDn(e,t);Gd.stringify=(e,t={})=>{if(typeof e==="string")return f3t(Gd.parse(e,t),t);return f3t(e,t)};Gd.compile=(e,t={})=>{if(typeof e==="string")e=Gd.parse(e,t);return HDn(e,t)};Gd.expand=(e,t={})=>{if(typeof e==="string")e=Gd.parse(e,t);let r=GDn(e,t);if(t.noempty===!0)r=r.filter(Boolean);if(t.nodupes===!0)r=[...new Set(r)];return r};Gd.create=(e,t={})=>{if(e===""||e.length<3)return[e];return t.expand!==!0?Gd.compile(e,t):Gd.expand(e,t)};m3t.exports=Gd});var _W=he((m80,y3t)=>{var ewn=Rt("path"),d3t={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},twn={...d3t,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},rwn={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};y3t.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:rwn,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:ewn.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?twn:d3t}}});var cW=he((lwn)=>{var nwn=Rt("path"),iwn=process.platform==="win32",{REGEX_BACKSLASH:awn,REGEX_REMOVE_BACKSLASH:uwn,REGEX_SPECIAL_CHARS:own,REGEX_SPECIAL_CHARS_GLOBAL:swn}=_W();lwn.isObject=(e)=>e!==null&&typeof e==="object"&&!Array.isArray(e);lwn.hasRegexChars=(e)=>own.test(e);lwn.isRegexChar=(e)=>e.length===1&&lwn.hasRegexChars(e);lwn.escapeRegex=(e)=>e.replace(swn,"\\$1");lwn.toPosixSlashes=(e)=>e.replace(awn,"/");lwn.removeBackslashes=(e)=>{return e.replace(uwn,(t)=>{return t==="\\"?"":t})};lwn.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10)return!0;return!1};lwn.isWindows=(e)=>{if(e&&typeof e.windows==="boolean")return e.windows;return iwn===!0||nwn.sep==="\\"};lwn.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);if(n===-1)return e;if(e[n-1]==="\\")return lwn.escapeLast(e,t,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};lwn.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./"))r=r.slice(2),t.prefix="./";return r};lwn.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",a=`${n}(?:${e})${i}`;if(t.negated===!0)a=`(?:^(?!${a}).*$)`;return a}});var E3t=he((y80,C3t)=>{var v3t=cW(),{CHAR_ASTERISK:mSe,CHAR_AT:xwn,CHAR_BACKWARD_SLASH:hW,CHAR_COMMA:vwn,CHAR_DOT:dSe,CHAR_EXCLAMATION_MARK:ySe,CHAR_FORWARD_SLASH:T3t,CHAR_LEFT_CURLY_BRACE:gSe,CHAR_LEFT_PARENTHESES:xSe,CHAR_LEFT_SQUARE_BRACKET:Dwn,CHAR_PLUS:wwn,CHAR_QUESTION_MARK:D3t,CHAR_RIGHT_CURLY_BRACE:Awn,CHAR_RIGHT_PARENTHESES:w3t,CHAR_RIGHT_SQUARE_BRACKET:bwn}=_W(),A3t=(e)=>{return e===T3t||e===hW},b3t=(e)=>{if(e.isPrefix!==!0)e.depth=e.isGlobstar?1/0:1},Twn=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,a=[],u=[],s=[],l=e,h=-1,_=0,p=0,f=!1,m=!1,d=!1,x=!1,T=!1,A=!1,F=!1,b=!1,N=!1,E=!1,P=0,q,$,M={value:"",depth:0,isGlob:!1},O=()=>h>=n,K=()=>l.charCodeAt(h+1),ue=()=>{return q=$,l.charCodeAt(++h)};while(h<n){$=ue();let ge;if($===hW){if(F=M.backslashes=!0,$=ue(),$===gSe)A=!0;continue}if(A===!0||$===gSe){P++;while(O()!==!0&&($=ue())){if($===hW){F=M.backslashes=!0,ue();continue}if($===gSe){P++;continue}if(A!==!0&&$===dSe&&($=ue())===dSe){if(f=M.isBrace=!0,d=M.isGlob=!0,E=!0,i===!0)continue;break}if(A!==!0&&$===vwn){if(f=M.isBrace=!0,d=M.isGlob=!0,E=!0,i===!0)continue;break}if($===Awn){if(P--,P===0){A=!1,f=M.isBrace=!0,E=!0;break}}}if(i===!0)continue;break}if($===T3t){if(a.push(h),u.push(M),M={value:"",depth:0,isGlob:!1},E===!0)continue;if(q===dSe&&h===_+1){_+=2;continue}p=h+1;continue}if(r.noext!==!0){if(($===wwn||$===xwn||$===mSe||$===D3t||$===ySe)===!0&&K()===xSe){if(d=M.isGlob=!0,x=M.isExtglob=!0,E=!0,$===ySe&&h===_)N=!0;if(i===!0){while(O()!==!0&&($=ue())){if($===hW){F=M.backslashes=!0,$=ue();continue}if($===w3t){d=M.isGlob=!0,E=!0;break}}continue}break}}if($===mSe){if(q===mSe)T=M.isGlobstar=!0;if(d=M.isGlob=!0,E=!0,i===!0)continue;break}if($===D3t){if(d=M.isGlob=!0,E=!0,i===!0)continue;break}if($===Dwn){while(O()!==!0&&(ge=ue())){if(ge===hW){F=M.backslashes=!0,ue();continue}if(ge===bwn){m=M.isBracket=!0,d=M.isGlob=!0,E=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&$===ySe&&h===_){b=M.negated=!0,_++;continue}if(r.noparen!==!0&&$===xSe){if(d=M.isGlob=!0,i===!0){while(O()!==!0&&($=ue())){if($===xSe){F=M.backslashes=!0,$=ue();continue}if($===w3t){E=!0;break}}continue}break}if(d===!0){if(E=!0,i===!0)continue;break}}if(r.noext===!0)x=!1,d=!1;let Q=l,G="",Z="";if(_>0)G=l.slice(0,_),l=l.slice(_),p-=_;if(Q&&d===!0&&p>0)Q=l.slice(0,p),Z=l.slice(p);else if(d===!0)Q="",Z=l;else Q=l;if(Q&&Q!==""&&Q!=="/"&&Q!==l){if(A3t(Q.charCodeAt(Q.length-1)))Q=Q.slice(0,-1)}if(r.unescape===!0){if(Z)Z=v3t.removeBackslashes(Z);if(Q&&F===!0)Q=v3t.removeBackslashes(Q)}let ee={prefix:G,input:e,start:_,base:Q,glob:Z,isBrace:f,isBracket:m,isGlob:d,isExtglob:x,isGlobstar:T,negated:b,negatedExtglob:N};if(r.tokens===!0){if(ee.maxDepth=0,!A3t($))u.push(M);ee.tokens=u}if(r.parts===!0||r.tokens===!0){let ge;for(let Fe=0;Fe<a.length;Fe++){let He=ge?ge+1:_,xe=a[Fe],$e=e.slice(He,xe);if(r.tokens){if(Fe===0&&_!==0)u[Fe].isPrefix=!0,u[Fe].value=G;else u[Fe].value=$e;b3t(u[Fe]),ee.maxDepth+=u[Fe].depth}if(Fe!==0||$e!=="")s.push($e);ge=xe}if(ge&&ge+1<e.length){let Fe=e.slice(ge+1);if(s.push(Fe),r.tokens)u[u.length-1].value=Fe,b3t(u[u.length-1]),ee.maxDepth+=u[u.length-1].depth}ee.slashes=a,ee.parts=s}return ee};C3t.exports=Twn});var S3t=he((g80,F3t)=>{var z_e=_W(),Rd=cW(),{MAX_LENGTH:V_e,POSIX_REGEX_SOURCE:Cwn,REGEX_NON_SPECIAL_CHARS:Ewn,REGEX_SPECIAL_CHARS_BACKREF:kwn,REPLACEMENTS:k3t}=z_e,Fwn=(e,t)=>{if(typeof t.expandRange==="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map((i)=>Rd.escapeRegex(i)).join("..")}return r},wV=(e,t)=>{return`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`},vSe=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");e=k3t[e]||e;let r={...t},n=typeof r.maxLength==="number"?Math.min(V_e,r.maxLength):V_e,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let a={type:"bos",value:"",output:r.prepend||""},u=[a],s=r.capture?"":"?:",l=Rd.isWindows(t),h=z_e.globChars(l),_=z_e.extglobChars(h),{DOT_LITERAL:p,PLUS_LITERAL:f,SLASH_LITERAL:m,ONE_CHAR:d,DOTS_SLASH:x,NO_DOT:T,NO_DOT_SLASH:A,NO_DOTS_SLASH:F,QMARK:b,QMARK_NO_DOT:N,STAR:E,START_ANCHOR:P}=h,q=(ie)=>{return`(${s}(?:(?!${P}${ie.dot?x:p}).)*?)`},$=r.dot?"":T,M=r.dot?b:N,O=r.bash===!0?q(r):E;if(r.capture)O=`(${O})`;if(typeof r.noext==="boolean")r.noextglob=r.noext;let K={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};e=Rd.removePrefix(e,K),i=e.length;let ue=[],Q=[],G=[],Z=a,ee,ge=()=>K.index===i-1,Fe=K.peek=(ie=1)=>e[K.index+ie],He=K.advance=()=>e[++K.index]||"",xe=()=>e.slice(K.index+1),$e=(ie="",ke=0)=>{K.consumed+=ie,K.index+=ke},Ie=(ie)=>{K.output+=ie.output!=null?ie.output:ie.value,$e(ie.value)},te=()=>{let ie=1;while(Fe()==="!"&&(Fe(2)!=="("||Fe(3)==="?"))He(),K.start++,ie++;if(ie%2===0)return!1;return K.negated=!0,K.start++,!0},de=(ie)=>{K[ie]++,G.push(ie)},Xe=(ie)=>{K[ie]--,G.pop()},Ne=(ie)=>{if(Z.type==="globstar"){let ke=K.braces>0&&(ie.type==="comma"||ie.type==="brace"),Je=ie.extglob===!0||ue.length&&(ie.type==="pipe"||ie.type==="paren");if(ie.type!=="slash"&&ie.type!=="paren"&&!ke&&!Je)K.output=K.output.slice(0,-Z.output.length),Z.type="star",Z.value="*",Z.output=O,K.output+=Z.output}if(ue.length&&ie.type!=="paren")ue[ue.length-1].inner+=ie.value;if(ie.value||ie.output)Ie(ie);if(Z&&Z.type==="text"&&ie.type==="text"){Z.value+=ie.value,Z.output=(Z.output||"")+ie.value;return}ie.prev=Z,u.push(ie),Z=ie},Ce=(ie,ke)=>{let Je={..._[ke],conditions:1,inner:""};Je.prev=Z,Je.parens=K.parens,Je.output=K.output;let ut=(r.capture?"(":"")+Je.open;de("parens"),Ne({type:ie,value:ke,output:K.output?"":d}),Ne({type:"paren",extglob:!0,value:He(),output:ut}),ue.push(Je)},pe=(ie)=>{let ke=ie.close+(r.capture?")":""),Je;if(ie.type==="negate"){let ut=O;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/"))ut=q(r);if(ut!==O||ge()||/^\)+$/.test(xe()))ke=ie.close=`)$))${ut}`;if(ie.inner.includes("*")&&(Je=xe())&&/^\.[^\\/.]+$/.test(Je)){let ot=vSe(Je,{...t,fastpaths:!1}).output;ke=ie.close=`)${ot})${ut})`}if(ie.prev.type==="bos")K.negatedExtglob=!0}Ne({type:"paren",extglob:!0,value:ee,output:ke}),Xe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let ie=!1,ke=e.replace(kwn,(Je,ut,ot,gt,Bt,pt)=>{if(gt==="\\")return ie=!0,Je;if(gt==="?"){if(ut)return ut+gt+(Bt?b.repeat(Bt.length):"");if(pt===0)return M+(Bt?b.repeat(Bt.length):"");return b.repeat(ot.length)}if(gt===".")return p.repeat(ot.length);if(gt==="*"){if(ut)return ut+gt+(Bt?O:"");return O}return ut?Je:`\\${Je}`});if(ie===!0)if(r.unescape===!0)ke=ke.replace(/\\/g,"");else ke=ke.replace(/\\+/g,(Je)=>{return Je.length%2===0?"\\\\":Je?"\\":""});if(ke===e&&r.contains===!0)return K.output=e,K;return K.output=Rd.wrapOutput(ke,K,t),K}while(!ge()){if(ee=He(),ee==="\x00")continue;if(ee==="\\"){let Je=Fe();if(Je==="/"&&r.bash!==!0)continue;if(Je==="."||Je===";")continue;if(!Je){ee+="\\",Ne({type:"text",value:ee});continue}let ut=/^\\+/.exec(xe()),ot=0;if(ut&&ut[0].length>2){if(ot=ut[0].length,K.index+=ot,ot%2!==0)ee+="\\"}if(r.unescape===!0)ee=He();else ee+=He();if(K.brackets===0){Ne({type:"text",value:ee});continue}}if(K.brackets>0&&(ee!=="]"||Z.value==="["||Z.value==="[^")){if(r.posix!==!1&&ee===":"){let Je=Z.value.slice(1);if(Je.includes("[")){if(Z.posix=!0,Je.includes(":")){let ut=Z.value.lastIndexOf("["),ot=Z.value.slice(0,ut),gt=Z.value.slice(ut+2),Bt=Cwn[gt];if(Bt){if(Z.value=ot+Bt,K.backtrack=!0,He(),!a.output&&u.indexOf(Z)===1)a.output=d;continue}}}}if(ee==="["&&Fe()!==":"||ee==="-"&&Fe()==="]")ee=`\\${ee}`;if(ee==="]"&&(Z.value==="["||Z.value==="[^"))ee=`\\${ee}`;if(r.posix===!0&&ee==="!"&&Z.value==="[")ee="^";Z.value+=ee,Ie({value:ee});continue}if(K.quotes===1&&ee!=='"'){ee=Rd.escapeRegex(ee),Z.value+=ee,Ie({value:ee});continue}if(ee==='"'){if(K.quotes=K.quotes===1?0:1,r.keepQuotes===!0)Ne({type:"text",value:ee});continue}if(ee==="("){de("parens"),Ne({type:"paren",value:ee});continue}if(ee===")"){if(K.parens===0&&r.strictBrackets===!0)throw new SyntaxError(wV("opening","("));let Je=ue[ue.length-1];if(Je&&K.parens===Je.parens+1){pe(ue.pop());continue}Ne({type:"paren",value:ee,output:K.parens?")":"\\)"}),Xe("parens");continue}if(ee==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(wV("closing","]"));ee=`\\${ee}`}else de("brackets");Ne({type:"bracket",value:ee});continue}if(ee==="]"){if(r.nobracket===!0||Z&&Z.type==="bracket"&&Z.value.length===1){Ne({type:"text",value:ee,output:`\\${ee}`});continue}if(K.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(wV("opening","["));Ne({type:"text",value:ee,output:`\\${ee}`});continue}Xe("brackets");let Je=Z.value.slice(1);if(Z.posix!==!0&&Je[0]==="^"&&!Je.includes("/"))ee=`/${ee}`;if(Z.value+=ee,Ie({value:ee}),r.literalBrackets===!1||Rd.hasRegexChars(Je))continue;let ut=Rd.escapeRegex(Z.value);if(K.output=K.output.slice(0,-Z.value.length),r.literalBrackets===!0){K.output+=ut,Z.value=ut;continue}Z.value=`(${s}${ut}|${Z.value})`,K.output+=Z.value;continue}if(ee==="{"&&r.nobrace!==!0){de("braces");let Je={type:"brace",value:ee,output:"(",outputIndex:K.output.length,tokensIndex:K.tokens.length};Q.push(Je),Ne(Je);continue}if(ee==="}"){let Je=Q[Q.length-1];if(r.nobrace===!0||!Je){Ne({type:"text",value:ee,output:ee});continue}let ut=")";if(Je.dots===!0){let ot=u.slice(),gt=[];for(let Bt=ot.length-1;Bt>=0;Bt--){if(u.pop(),ot[Bt].type==="brace")break;if(ot[Bt].type!=="dots")gt.unshift(ot[Bt].value)}ut=Fwn(gt,r),K.backtrack=!0}if(Je.comma!==!0&&Je.dots!==!0){let ot=K.output.slice(0,Je.outputIndex),gt=K.tokens.slice(Je.tokensIndex);Je.value=Je.output="\\{",ee=ut="\\}",K.output=ot;for(let Bt of gt)K.output+=Bt.output||Bt.value}Ne({type:"brace",value:ee,output:ut}),Xe("braces"),Q.pop();continue}if(ee==="|"){if(ue.length>0)ue[ue.length-1].conditions++;Ne({type:"text",value:ee});continue}if(ee===","){let Je=ee,ut=Q[Q.length-1];if(ut&&G[G.length-1]==="braces")ut.comma=!0,Je="|";Ne({type:"comma",value:ee,output:Je});continue}if(ee==="/"){if(Z.type==="dot"&&K.index===K.start+1){K.start=K.index+1,K.consumed="",K.output="",u.pop(),Z=a;continue}Ne({type:"slash",value:ee,output:m});continue}if(ee==="."){if(K.braces>0&&Z.type==="dot"){if(Z.value===".")Z.output=p;let Je=Q[Q.length-1];Z.type="dots",Z.output+=ee,Z.value+=ee,Je.dots=!0;continue}if(K.braces+K.parens===0&&Z.type!=="bos"&&Z.type!=="slash"){Ne({type:"text",value:ee,output:p});continue}Ne({type:"dot",value:ee,output:p});continue}if(ee==="?"){if(!(Z&&Z.value==="(")&&r.noextglob!==!0&&Fe()==="("&&Fe(2)!=="?"){Ce("qmark",ee);continue}if(Z&&Z.type==="paren"){let ut=Fe(),ot=ee;if(ut==="<"&&!Rd.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");if(Z.value==="("&&!/[!=<:]/.test(ut)||ut==="<"&&!/<([!=]|\w+>)/.test(xe()))ot=`\\${ee}`;Ne({type:"text",value:ee,output:ot});continue}if(r.dot!==!0&&(Z.type==="slash"||Z.type==="bos")){Ne({type:"qmark",value:ee,output:N});continue}Ne({type:"qmark",value:ee,output:b});continue}if(ee==="!"){if(r.noextglob!==!0&&Fe()==="("){if(Fe(2)!=="?"||!/[!=<:]/.test(Fe(3))){Ce("negate",ee);continue}}if(r.nonegate!==!0&&K.index===0){te();continue}}if(ee==="+"){if(r.noextglob!==!0&&Fe()==="("&&Fe(2)!=="?"){Ce("plus",ee);continue}if(Z&&Z.value==="("||r.regex===!1){Ne({type:"plus",value:ee,output:f});continue}if(Z&&(Z.type==="bracket"||Z.type==="paren"||Z.type==="brace")||K.parens>0){Ne({type:"plus",value:ee});continue}Ne({type:"plus",value:f});continue}if(ee==="@"){if(r.noextglob!==!0&&Fe()==="("&&Fe(2)!=="?"){Ne({type:"at",extglob:!0,value:ee,output:""});continue}Ne({type:"text",value:ee});continue}if(ee!=="*"){if(ee==="$"||ee==="^")ee=`\\${ee}`;let Je=Ewn.exec(xe());if(Je)ee+=Je[0],K.index+=Je[0].length;Ne({type:"text",value:ee});continue}if(Z&&(Z.type==="globstar"||Z.star===!0)){Z.type="star",Z.star=!0,Z.value+=ee,Z.output=O,K.backtrack=!0,K.globstar=!0,$e(ee);continue}let ie=xe();if(r.noextglob!==!0&&/^\([^?]/.test(ie)){Ce("star",ee);continue}if(Z.type==="star"){if(r.noglobstar===!0){$e(ee);continue}let Je=Z.prev,ut=Je.prev,ot=Je.type==="slash"||Je.type==="bos",gt=ut&&(ut.type==="star"||ut.type==="globstar");if(r.bash===!0&&(!ot||ie[0]&&ie[0]!=="/")){Ne({type:"star",value:ee,output:""});continue}let Bt=K.braces>0&&(Je.type==="comma"||Je.type==="brace"),pt=ue.length&&(Je.type==="pipe"||Je.type==="paren");if(!ot&&Je.type!=="paren"&&!Bt&&!pt){Ne({type:"star",value:ee,output:""});continue}while(ie.slice(0,3)==="/**"){let St=e[K.index+4];if(St&&St!=="/")break;ie=ie.slice(3),$e("/**",3)}if(Je.type==="bos"&&ge()){Z.type="globstar",Z.value+=ee,Z.output=q(r),K.output=Z.output,K.globstar=!0,$e(ee);continue}if(Je.type==="slash"&&Je.prev.type!=="bos"&&!gt&&ge()){K.output=K.output.slice(0,-(Je.output+Z.output).length),Je.output=`(?:${Je.output}`,Z.type="globstar",Z.output=q(r)+(r.strictSlashes?")":"|$)"),Z.value+=ee,K.globstar=!0,K.output+=Je.output+Z.output,$e(ee);continue}if(Je.type==="slash"&&Je.prev.type!=="bos"&&ie[0]==="/"){let St=ie[1]!==void 0?"|$":"";K.output=K.output.slice(0,-(Je.output+Z.output).length),Je.output=`(?:${Je.output}`,Z.type="globstar",Z.output=`${q(r)}${m}|${m}${St})`,Z.value+=ee,K.output+=Je.output+Z.output,K.globstar=!0,$e(ee+He()),Ne({type:"slash",value:"/",output:""});continue}if(Je.type==="bos"&&ie[0]==="/"){Z.type="globstar",Z.value+=ee,Z.output=`(?:^|${m}|${q(r)}${m})`,K.output=Z.output,K.globstar=!0,$e(ee+He()),Ne({type:"slash",value:"/",output:""});continue}K.output=K.output.slice(0,-Z.output.length),Z.type="globstar",Z.output=q(r),Z.value+=ee,K.output+=Z.output,K.globstar=!0,$e(ee);continue}let ke={type:"star",value:ee,output:O};if(r.bash===!0){if(ke.output=".*?",Z.type==="bos"||Z.type==="slash")ke.output=$+ke.output;Ne(ke);continue}if(Z&&(Z.type==="bracket"||Z.type==="paren")&&r.regex===!0){ke.output=ee,Ne(ke);continue}if(K.index===K.start||Z.type==="slash"||Z.type==="dot"){if(Z.type==="dot")K.output+=A,Z.output+=A;else if(r.dot===!0)K.output+=F,Z.output+=F;else K.output+=$,Z.output+=$;if(Fe()!=="*")K.output+=d,Z.output+=d}Ne(ke)}while(K.brackets>0){if(r.strictBrackets===!0)throw new SyntaxError(wV("closing","]"));K.output=Rd.escapeLast(K.output,"["),Xe("brackets")}while(K.parens>0){if(r.strictBrackets===!0)throw new SyntaxError(wV("closing",")"));K.output=Rd.escapeLast(K.output,"("),Xe("parens")}while(K.braces>0){if(r.strictBrackets===!0)throw new SyntaxError(wV("closing","}"));K.output=Rd.escapeLast(K.output,"{"),Xe("braces")}if(r.strictSlashes!==!0&&(Z.type==="star"||Z.type==="bracket"))Ne({type:"maybe_slash",value:"",output:`${m}?`});if(K.backtrack===!0){K.output="";for(let ie of K.tokens)if(K.output+=ie.output!=null?ie.output:ie.value,ie.suffix)K.output+=ie.suffix}return K};vSe.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength==="number"?Math.min(V_e,r.maxLength):V_e,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=k3t[e]||e;let a=Rd.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:s,ONE_CHAR:l,DOTS_SLASH:h,NO_DOT:_,NO_DOTS:p,NO_DOTS_SLASH:f,STAR:m,START_ANCHOR:d}=z_e.globChars(a),x=r.dot?p:_,T=r.dot?f:_,A=r.capture?"":"?:",F={negated:!1,prefix:""},b=r.bash===!0?".*?":m;if(r.capture)b=`(${b})`;let N=($)=>{if($.noglobstar===!0)return b;return`(${A}(?:(?!${d}${$.dot?h:u}).)*?)`},E=($)=>{switch($){case"*":return`${x}${l}${b}`;case".*":return`${u}${l}${b}`;case"*.*":return`${x}${b}${u}${l}${b}`;case"*/*":return`${x}${b}${s}${l}${T}${b}`;case"**":return x+N(r);case"**/*":return`(?:${x}${N(r)}${s})?${T}${l}${b}`;case"**/*.*":return`(?:${x}${N(r)}${s})?${T}${b}${u}${l}${b}`;case"**/.*":return`(?:${x}${N(r)}${s})?${u}${l}${b}`;default:{let M=/^(.*?)\.(\w+)$/.exec($);if(!M)return;let O=E(M[1]);if(!O)return;return O+u+M[2]}}},P=Rd.removePrefix(e,F),q=E(P);if(q&&r.strictSlashes!==!0)q+=`${s}?`;return q};F3t.exports=vSe});var L_e=he((x80,P3t)=>{var Swn=Rt("path"),Pwn=E3t(),DSe=S3t(),wSe=cW(),Nwn=_W(),Bwn=(e)=>e&&typeof e==="object"&&!Array.isArray(e),gc=(e,t,r=!1)=>{if(Array.isArray(e)){let _=e.map((f)=>gc(f,t,r));return(f)=>{for(let m of _){let d=m(f);if(d)return d}return!1}}let n=Bwn(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},a=wSe.isWindows(t),u=n?gc.compileRe(e,t):gc.makeRe(e,t,!1,!0),s=u.state;delete u.state;let l=()=>!1;if(i.ignore){let _={...t,ignore:null,onMatch:null,onResult:null};l=gc(i.ignore,_,r)}let h=(_,p=!1)=>{let{isMatch:f,match:m,output:d}=gc.test(_,u,t,{glob:e,posix:a}),x={glob:e,state:s,regex:u,posix:a,input:_,output:d,match:m,isMatch:f};if(typeof i.onResult==="function")i.onResult(x);if(f===!1)return x.isMatch=!1,p?x:!1;if(l(_)){if(typeof i.onIgnore==="function")i.onIgnore(x);return x.isMatch=!1,p?x:!1}if(typeof i.onMatch==="function")i.onMatch(x);return p?x:!0};if(r)h.state=s;return h};gc.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!=="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let a=r||{},u=a.format||(i?wSe.toPosixSlashes:null),s=e===n,l=s&&u?u(e):e;if(s===!1)l=u?u(e):e,s=l===n;if(s===!1||a.capture===!0)if(a.matchBase===!0||a.basename===!0)s=gc.matchBase(e,t,r,i);else s=t.exec(l);return{isMatch:Boolean(s),match:s,output:l}};gc.matchBase=(e,t,r,n=wSe.isWindows(r))=>{return(t instanceof RegExp?t:gc.makeRe(t,r)).test(Swn.basename(e))};gc.isMatch=(e,t,r)=>gc(t,r)(e);gc.parse=(e,t)=>{if(Array.isArray(e))return e.map((r)=>gc.parse(r,t));return DSe(e,{...t,fastpaths:!1})};gc.scan=(e,t)=>Pwn(e,t);gc.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},a=i.contains?"":"^",u=i.contains?"":"$",s=`${a}(?:${e.output})${u}`;if(e&&e.negated===!0)s=`^(?!${s}).*$`;let l=gc.toRegex(s,t);if(n===!0)l.state=e;return l};gc.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!=="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};if(t.fastpaths!==!1&&(e[0]==="."||e[0]==="*"))i.output=DSe.fastpaths(e,t);if(!i.output)i=DSe(e,t);return gc.compileRe(i,t,r,n)};gc.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};gc.constants=Nwn;P3t.exports=gc});var I3t=he((v80,J3t)=>{var B3t=Rt("util"),q3t=fSe(),ZD=L_e(),ASe=cW(),N3t=(e)=>e===""||e==="./",$3t=(e)=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Cl=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,a=new Set,u=0,s=(_)=>{if(a.add(_.output),r&&r.onResult)r.onResult(_)};for(let _=0;_<t.length;_++){let p=ZD(String(t[_]),{...r,onResult:s},!0),f=p.state.negated||p.state.negatedExtglob;if(f)u++;for(let m of e){let d=p(m,!0);if(!(f?!d.isMatch:d.isMatch))continue;if(f)n.add(d.output);else n.delete(d.output),i.add(d.output)}}let h=(u===t.length?[...a]:[...i]).filter((_)=>!n.has(_));if(r&&h.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map((_)=>_.replace(/\\/g,"")):t}return h};Cl.match=Cl;Cl.matcher=(e,t)=>ZD(e,t);Cl.isMatch=(e,t,r)=>ZD(t,r)(e);Cl.any=Cl.isMatch;Cl.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],u=new Set(Cl(e,t,{...r,onResult:(s)=>{if(r.onResult)r.onResult(s);i.push(s.output)}}));for(let s of i)if(!u.has(s))n.add(s);return[...n]};Cl.contains=(e,t,r)=>{if(typeof e!=="string")throw new TypeError(`Expected a string: "${B3t.inspect(e)}"`);if(Array.isArray(t))return t.some((n)=>Cl.contains(e,n,r));if(typeof t==="string"){if(N3t(e)||N3t(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Cl.isMatch(e,t,{...r,contains:!0})};Cl.matchKeys=(e,t,r)=>{if(!ASe.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Cl(Object.keys(e),t,r),i={};for(let a of n)i[a]=e[a];return i};Cl.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let a=ZD(String(i),r);if(n.some((u)=>a(u)))return!0}return!1};Cl.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let a=ZD(String(i),r);if(!n.every((u)=>a(u)))return!1}return!0};Cl.all=(e,t,r)=>{if(typeof e!=="string")throw new TypeError(`Expected a string: "${B3t.inspect(e)}"`);return[].concat(t).every((n)=>ZD(n,r)(e))};Cl.capture=(e,t,r)=>{let n=ASe.isWindows(r),a=ZD.makeRe(String(e),{...r,capture:!0}).exec(n?ASe.toPosixSlashes(t):t);if(a)return a.slice(1).map((u)=>u===void 0?"":u)};Cl.makeRe=(...e)=>ZD.makeRe(...e);Cl.scan=(...e)=>ZD.scan(...e);Cl.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of q3t(String(n),t))r.push(ZD.parse(i,t));return r};Cl.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===!0||!$3t(e))return[e];return q3t(e,t)};Cl.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return Cl.braces(e,{...t,expand:!0})};Cl.hasBraces=$3t;J3t.exports=Cl});var O3t=he((U3t)=>{Object.defineProperty(U3t,"__esModule",{value:!0});U3t.removeDuplicateSlashes=U3t.matchAny=U3t.convertPatternsToRe=U3t.makeRe=U3t.getPatternParts=U3t.expandBraceExpansion=U3t.expandPatternsWithBraceExpansion=U3t.isAffectDepthOfReadingPattern=U3t.endsWithSlashGlobStar=U3t.hasGlobStar=U3t.getBaseDirectory=U3t.isPatternRelatedToParentDirectory=U3t.getPatternsOutsideCurrentDirectory=U3t.getPatternsInsideCurrentDirectory=U3t.getPositivePatterns=U3t.getNegativePatterns=U3t.isPositivePattern=U3t.isNegativePattern=U3t.convertToNegativePattern=U3t.convertToPositivePattern=U3t.isDynamicPattern=U3t.isStaticPattern=void 0;var qwn=Rt("path"),$wn=oSe(),bSe=I3t(),M3t="**",Jwn="\\",Iwn=/[*?]|^!/,Mwn=/\[[^[]*]/,zwn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Vwn=/[!*+?@]\([^(]*\)/,Lwn=/,|\.\./,Xwn=/(?!^)\/{2,}/g;function z3t(e,t={}){return!V3t(e,t)}U3t.isStaticPattern=z3t;function V3t(e,t={}){if(e==="")return!1;if(t.caseSensitiveMatch===!1||e.includes(Jwn))return!0;if(Iwn.test(e)||Mwn.test(e)||zwn.test(e))return!0;if(t.extglob!==!1&&Vwn.test(e))return!0;if(t.braceExpansion!==!1&&jwn(e))return!0;return!1}U3t.isDynamicPattern=V3t;function jwn(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Lwn.test(n)}function Kwn(e){return X_e(e)?e.slice(1):e}U3t.convertToPositivePattern=Kwn;function Uwn(e){return"!"+e}U3t.convertToNegativePattern=Uwn;function X_e(e){return e.startsWith("!")&&e[1]!=="("}U3t.isNegativePattern=X_e;function L3t(e){return!X_e(e)}U3t.isPositivePattern=L3t;function Zwn(e){return e.filter(X_e)}U3t.getNegativePatterns=Zwn;function Own(e){return e.filter(L3t)}U3t.getPositivePatterns=Own;function Qwn(e){return e.filter((t)=>!TSe(t))}U3t.getPatternsInsideCurrentDirectory=Qwn;function Wwn(e){return e.filter(TSe)}U3t.getPatternsOutsideCurrentDirectory=Wwn;function TSe(e){return e.startsWith("..")||e.startsWith("./..")}U3t.isPatternRelatedToParentDirectory=TSe;function Ywn(e){return $wn(e,{flipBackslashes:!1})}U3t.getBaseDirectory=Ywn;function Hwn(e){return e.includes(M3t)}U3t.hasGlobStar=Hwn;function X3t(e){return e.endsWith("/"+M3t)}U3t.endsWithSlashGlobStar=X3t;function Gwn(e){let t=qwn.basename(e);return X3t(e)||z3t(t)}U3t.isAffectDepthOfReadingPattern=Gwn;function Rwn(e){return e.reduce((t,r)=>{return t.concat(j3t(r))},[])}U3t.expandPatternsWithBraceExpansion=Rwn;function j3t(e){let t=bSe.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter((r)=>r!=="")}U3t.expandBraceExpansion=j3t;function eAn(e,t){let{parts:r}=bSe.scan(e,Object.assign(Object.assign({},t),{parts:!0}));if(r.length===0)r=[e];if(r[0].startsWith("/"))r[0]=r[0].slice(1),r.unshift("");return r}U3t.getPatternParts=eAn;function K3t(e,t){return bSe.makeRe(e,t)}U3t.makeRe=K3t;function tAn(e,t){return e.map((r)=>K3t(r,t))}U3t.convertPatternsToRe=tAn;function rAn(e,t){return t.some((r)=>r.test(e))}U3t.matchAny=rAn;function nAn(e){return e.replace(Xwn,"/")}U3t.removeDuplicateSlashes=nAn});var H3t=he((W3t)=>{Object.defineProperty(W3t,"__esModule",{value:!0});W3t.merge=void 0;var TAn=nSe();function CAn(e){let t=TAn(e);return e.forEach((r)=>{r.once("error",(n)=>t.emit("error",n))}),t.once("close",()=>Q3t(e)),t.once("end",()=>Q3t(e)),t}W3t.merge=CAn;function Q3t(e){e.forEach((t)=>t.emit("close"))}});var ext=he((G3t)=>{Object.defineProperty(G3t,"__esModule",{value:!0});G3t.isEmpty=G3t.isString=void 0;function EAn(e){return typeof e==="string"}G3t.isString=EAn;function kAn(e){return e===""}G3t.isEmpty=kAn});var iT=he((txt)=>{Object.defineProperty(txt,"__esModule",{value:!0});txt.string=txt.stream=txt.pattern=txt.path=txt.fs=txt.errno=txt.array=void 0;var SAn=dgt();txt.array=SAn;var PAn=xgt();txt.errno=PAn;var NAn=Agt();txt.fs=NAn;var BAn=Fgt();txt.path=BAn;var qAn=O3t();txt.pattern=qAn;var $An=H3t();txt.stream=$An;var JAn=ext();txt.string=JAn});var sxt=he((uxt)=>{Object.defineProperty(uxt,"__esModule",{value:!0});uxt.convertPatternGroupToTask=uxt.convertPatternGroupsToTasks=uxt.groupPatternsByBaseDirectory=uxt.getNegativePatternsAsPositive=uxt.getPositivePatterns=uxt.convertPatternsToTasks=uxt.generate=void 0;var pg=iT();function jAn(e,t){let r=nxt(e,t),n=nxt(t.ignore,t),i=ixt(r),a=axt(r,n),u=i.filter((_)=>pg.pattern.isStaticPattern(_,t)),s=i.filter((_)=>pg.pattern.isDynamicPattern(_,t)),l=CSe(u,a,!1),h=CSe(s,a,!0);return l.concat(h)}uxt.generate=jAn;function nxt(e,t){let r=e;if(t.braceExpansion)r=pg.pattern.expandPatternsWithBraceExpansion(r);if(t.baseNameMatch)r=r.map((n)=>n.includes("/")?n:`**/${n}`);return r.map((n)=>pg.pattern.removeDuplicateSlashes(n))}function CSe(e,t,r){let n=[],i=pg.pattern.getPatternsOutsideCurrentDirectory(e),a=pg.pattern.getPatternsInsideCurrentDirectory(e),u=ESe(i),s=ESe(a);if(n.push(...kSe(u,t,r)),"."in s)n.push(FSe(".",a,t,r));else n.push(...kSe(s,t,r));return n}uxt.convertPatternsToTasks=CSe;function ixt(e){return pg.pattern.getPositivePatterns(e)}uxt.getPositivePatterns=ixt;function axt(e,t){return pg.pattern.getNegativePatterns(e).concat(t).map(pg.pattern.convertToPositivePattern)}uxt.getNegativePatternsAsPositive=axt;function ESe(e){let t={};return e.reduce((r,n)=>{let i=pg.pattern.getBaseDirectory(n);if(i in r)r[i].push(n);else r[i]=[n];return r},t)}uxt.groupPatternsByBaseDirectory=ESe;function kSe(e,t,r){return Object.keys(e).map((n)=>{return FSe(n,e[n],t,r)})}uxt.convertPatternGroupsToTasks=kSe;function FSe(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(pg.pattern.convertToNegativePattern))}}uxt.convertPatternGroupToTask=FSe});var hxt=he((_xt)=>{Object.defineProperty(_xt,"__esModule",{value:!0});_xt.read=void 0;function YAn(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){lxt(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){SSe(r,i);return}t.fs.stat(e,(a,u)=>{if(a!==null){if(t.throwErrorOnBrokenSymbolicLink){lxt(r,a);return}SSe(r,i);return}if(t.markSymbolicLink)u.isSymbolicLink=()=>!0;SSe(r,u)})})}_xt.read=YAn;function lxt(e,t){e(t)}function SSe(e,t){e(null,t)}});var mxt=he((pxt)=>{Object.defineProperty(pxt,"__esModule",{value:!0});pxt.read=void 0;function HAn(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);if(t.markSymbolicLink)n.isSymbolicLink=()=>!0;return n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}pxt.read=HAn});var gxt=he((dxt)=>{Object.defineProperty(dxt,"__esModule",{value:!0});dxt.createFileSystemAdapter=dxt.FILE_SYSTEM_ADAPTER=void 0;var j_e=Rt("fs");dxt.FILE_SYSTEM_ADAPTER={lstat:j_e.lstat,stat:j_e.stat,lstatSync:j_e.lstatSync,statSync:j_e.statSync};function GAn(e){if(e===void 0)return dxt.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},dxt.FILE_SYSTEM_ADAPTER),e)}dxt.createFileSystemAdapter=GAn});var Dxt=he((vxt)=>{Object.defineProperty(vxt,"__esModule",{value:!0});var RAn=gxt();class xxt{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=RAn.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,t){return e!==null&&e!==void 0?e:t}}vxt.default=xxt});var Kq=he((Axt)=>{Object.defineProperty(Axt,"__esModule",{value:!0});Axt.statSync=Axt.stat=Axt.Settings=void 0;var wxt=hxt(),tbn=mxt(),NSe=Dxt();Axt.Settings=NSe.default;function rbn(e,t,r){if(typeof t==="function"){wxt.read(e,BSe(),t);return}wxt.read(e,BSe(t),r)}Axt.stat=rbn;function nbn(e,t){let r=BSe(t);return tbn.read(e,r)}Axt.statSync=nbn;function BSe(e={}){if(e instanceof NSe.default)return e;return new NSe.default(e)}});var Ext=he((P80,Cxt)=>{/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Txt;Cxt.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):(e)=>(Txt||(Txt=Promise.resolve())).then(e).catch((t)=>setTimeout(()=>{throw t},0))});var Fxt=he((N80,kxt)=>{/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */kxt.exports=obn;var ubn=Ext();function obn(e,t){let r,n,i,a=!0;if(Array.isArray(e))r=[],n=e.length;else i=Object.keys(e),r={},n=i.length;function u(l){function h(){if(t)t(l,r);t=null}if(a)ubn(h);else h()}function s(l,h,_){if(r[l]=_,--n===0||h)u(h)}if(!n)u(null);else if(i)i.forEach(function(l){e[l](function(h,_){s(l,h,_)})});else e.forEach(function(l,h){l(function(_,p){s(h,_,p)})});a=!1}});var qSe=he((Nxt)=>{Object.defineProperty(Nxt,"__esModule",{value:!0});Nxt.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var K_e=process.versions.node.split(".");if(K_e[0]===void 0||K_e[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Sxt=Number.parseInt(K_e[0],10),sbn=Number.parseInt(K_e[1],10),Pxt=10,lbn=10,_bn=Sxt>Pxt,cbn=Sxt===Pxt&&sbn>=lbn;Nxt.IS_SUPPORT_READDIR_WITH_FILE_TYPES=_bn||cbn});var Ixt=he(($xt)=>{Object.defineProperty($xt,"__esModule",{value:!0});$xt.createDirentFromStats=void 0;class qxt{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}}function hbn(e,t){return new qxt(e,t)}$xt.createDirentFromStats=hbn});var $Se=he((Mxt)=>{Object.defineProperty(Mxt,"__esModule",{value:!0});Mxt.fs=void 0;var pbn=Ixt();Mxt.fs=pbn});var JSe=he((Vxt)=>{Object.defineProperty(Vxt,"__esModule",{value:!0});Vxt.joinPathSegments=void 0;function fbn(e,t,r){if(e.endsWith(r))return e+t;return e+r+t}Vxt.joinPathSegments=fbn});var Wxt=he((Oxt)=>{Object.defineProperty(Oxt,"__esModule",{value:!0});Oxt.readdir=Oxt.readdirWithFileTypes=Oxt.read=void 0;var mbn=Kq(),Xxt=Fxt(),dbn=qSe(),jxt=$Se(),Kxt=JSe();function ybn(e,t,r){if(!t.stats&&dbn.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Uxt(e,t,r);return}Zxt(e,t,r)}Oxt.read=ybn;function Uxt(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){U_e(r,n);return}let a=i.map((s)=>({dirent:s,name:s.name,path:Kxt.joinPathSegments(e,s.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ISe(r,a);return}let u=a.map((s)=>gbn(s,t));Xxt(u,(s,l)=>{if(s!==null){U_e(r,s);return}ISe(r,l)})})}Oxt.readdirWithFileTypes=Uxt;function gbn(e,t){return(r)=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=jxt.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Zxt(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){U_e(r,n);return}let a=i.map((u)=>{let s=Kxt.joinPathSegments(e,u,t.pathSegmentSeparator);return(l)=>{mbn.stat(s,t.fsStatSettings,(h,_)=>{if(h!==null){l(h);return}let p={name:u,path:s,dirent:jxt.fs.createDirentFromStats(u,_)};if(t.stats)p.stats=_;l(null,p)})}});Xxt(a,(u,s)=>{if(u!==null){U_e(r,u);return}ISe(r,s)})})}Oxt.readdir=Zxt;function U_e(e,t){e(t)}function ISe(e,t){e(null,t)}});var r5t=he((e5t)=>{Object.defineProperty(e5t,"__esModule",{value:!0});e5t.readdir=e5t.readdirWithFileTypes=e5t.read=void 0;var Dbn=Kq(),wbn=qSe(),Yxt=$Se(),Hxt=JSe();function Abn(e,t){if(!t.stats&&wbn.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return Gxt(e,t);return Rxt(e,t)}e5t.read=Abn;function Gxt(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map((n)=>{let i={dirent:n,name:n.name,path:Hxt.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let a=t.fs.statSync(i.path);i.dirent=Yxt.fs.createDirentFromStats(i.name,a)}catch(a){if(t.throwErrorOnBrokenSymbolicLink)throw a}return i})}e5t.readdirWithFileTypes=Gxt;function Rxt(e,t){return t.fs.readdirSync(e).map((n)=>{let i=Hxt.joinPathSegments(e,n,t.pathSegmentSeparator),a=Dbn.statSync(i,t.fsStatSettings),u={name:n,path:i,dirent:Yxt.fs.createDirentFromStats(n,a)};if(t.stats)u.stats=a;return u})}e5t.readdir=Rxt});var a5t=he((n5t)=>{Object.defineProperty(n5t,"__esModule",{value:!0});n5t.createFileSystemAdapter=n5t.FILE_SYSTEM_ADAPTER=void 0;var AV=Rt("fs");n5t.FILE_SYSTEM_ADAPTER={lstat:AV.lstat,stat:AV.stat,lstatSync:AV.lstatSync,statSync:AV.statSync,readdir:AV.readdir,readdirSync:AV.readdirSync};function Cbn(e){if(e===void 0)return n5t.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},n5t.FILE_SYSTEM_ADAPTER),e)}n5t.createFileSystemAdapter=Cbn});var s5t=he((o5t)=>{Object.defineProperty(o5t,"__esModule",{value:!0});var Ebn=Rt("path"),kbn=Kq(),Fbn=a5t();class u5t{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Fbn.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ebn.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new kbn.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}o5t.default=u5t});var Z_e=he((_5t)=>{Object.defineProperty(_5t,"__esModule",{value:!0});_5t.Settings=_5t.scandirSync=_5t.scandir=void 0;var l5t=Wxt(),Pbn=r5t(),zSe=s5t();_5t.Settings=zSe.default;function Nbn(e,t,r){if(typeof t==="function"){l5t.read(e,VSe(),t);return}l5t.read(e,VSe(t),r)}_5t.scandir=Nbn;function Bbn(e,t){let r=VSe(t);return Pbn.read(e,r)}_5t.scandirSync=Bbn;function VSe(e={}){if(e instanceof zSe.default)return e;return new zSe.default(e)}});var p5t=he((X80,h5t)=>{function Jbn(e){var t=new e,r=t;function n(){var a=t;if(a.next)t=a.next;else t=new e,r=t;return a.next=null,a}function i(a){r.next=a,r=a}return{get:n,release:i}}h5t.exports=Jbn});var m5t=he((j80,LSe)=>{var Ibn=p5t();function f5t(e,t,r){if(typeof e==="function")r=t,t=e,e=null;if(!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Ibn(Mbn),i=null,a=null,u=0,s=null,l={push:x,drain:X6,saturated:X6,pause:_,paused:!1,get concurrency(){return r},set concurrency(E){if(!(E>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=E,l.paused)return;for(;i&&u<r;)u++,A()},running:h,resume:m,idle:d,length:p,getQueue:f,unshift:T,empty:X6,kill:F,killAndDrain:b,error:N};return l;function h(){return u}function _(){l.paused=!0}function p(){var E=i,P=0;while(E)E=E.next,P++;return P}function f(){var E=i,P=[];while(E)P.push(E.value),E=E.next;return P}function m(){if(!l.paused)return;if(l.paused=!1,i===null){u++,A();return}for(;i&&u<r;)u++,A()}function d(){return u===0&&l.length()===0}function x(E,P){var q=n.get();if(q.context=e,q.release=A,q.value=E,q.callback=P||X6,q.errorHandler=s,u>=r||l.paused)if(a)a.next=q,a=q;else i=q,a=q,l.saturated();else u++,t.call(e,q.value,q.worked)}function T(E,P){var q=n.get();if(q.context=e,q.release=A,q.value=E,q.callback=P||X6,q.errorHandler=s,u>=r||l.paused)if(i)q.next=i,i=q;else i=q,a=q,l.saturated();else u++,t.call(e,q.value,q.worked)}function A(E){if(E)n.release(E);var P=i;if(P&&u<=r)if(!l.paused){if(a===i)a=null;if(i=P.next,P.next=null,t.call(e,P.value,P.worked),a===null)l.empty()}else u--;else if(--u===0)l.drain()}function F(){i=null,a=null,l.drain=X6}function b(){i=null,a=null,l.drain(),l.drain=X6}function N(E){s=E}}function X6(){}function Mbn(){this.value=null,this.callback=X6,this.next=null,this.release=X6,this.context=null,this.errorHandler=null;var e=this;this.worked=function t(r,n){var{callback:i,errorHandler:a,value:u}=e;if(e.value=null,e.callback=X6,e.errorHandler)a(r,u);i.call(e.context,r,n),e.release(e)}}function zbn(e,t,r){if(typeof e==="function")r=t,t=e,e=null;function n(_,p){t.call(this,_).then(function(f){p(null,f)},p)}var i=f5t(e,n,r),a=i.push,u=i.unshift;return i.push=s,i.unshift=l,i.drained=h,i;function s(_){var p=new Promise(function(f,m){a(_,function(d,x){if(d){m(d);return}f(x)})});return p.catch(X6),p}function l(_){var p=new Promise(function(f,m){u(_,function(d,x){if(d){m(d);return}f(x)})});return p.catch(X6),p}function h(){if(i.idle())return new Promise(function(f){f()});var _=i.drain,p=new Promise(function(f){i.drain=function(){_(),f()}});return p}}LSe.exports=f5t;LSe.exports.promise=zbn});var O_e=he((d5t)=>{Object.defineProperty(d5t,"__esModule",{value:!0});d5t.joinPathSegments=d5t.replacePathSegmentSeparator=d5t.isAppliedFilter=d5t.isFatalError=void 0;function Vbn(e,t){if(e.errorFilter===null)return!0;return!e.errorFilter(t)}d5t.isFatalError=Vbn;function Lbn(e,t){return e===null||e(t)}d5t.isAppliedFilter=Lbn;function Xbn(e,t){return e.split(/[/\\]/).join(t)}d5t.replacePathSegmentSeparator=Xbn;function jbn(e,t,r){if(e==="")return t;if(e.endsWith(r))return e+t;return e+r+t}d5t.joinPathSegments=jbn});var XSe=he((x5t)=>{Object.defineProperty(x5t,"__esModule",{value:!0});var Obn=O_e();class g5t{constructor(e,t){this._root=e,this._settings=t,this._root=Obn.replacePathSegmentSeparator(e,t.pathSegmentSeparator)}}x5t.default=g5t});var jSe=he((D5t)=>{Object.defineProperty(D5t,"__esModule",{value:!0});var Wbn=Rt("events"),Ybn=Z_e(),Hbn=m5t(),Q_e=O_e(),Gbn=XSe();class v5t extends Gbn.default{constructor(e,t){super(e,t);this._settings=t,this._scandir=Ybn.scandir,this._emitter=new Wbn.EventEmitter,this._queue=Hbn(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,t){let r={directory:e,base:t};this._queue.push(r,(n)=>{if(n!==null)this._handleError(n)})}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(r,n)=>{if(r!==null){t(r,void 0);return}for(let i of n)this._handleEntry(i,e.base);t(null,void 0)})}_handleError(e){if(this._isDestroyed||!Q_e.isFatalError(this._settings,e))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e)}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let r=e.path;if(t!==void 0)e.path=Q_e.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator);if(Q_e.isAppliedFilter(this._settings.entryFilter,e))this._emitEntry(e);if(e.dirent.isDirectory()&&Q_e.isAppliedFilter(this._settings.deepFilter,e))this._pushToQueue(r,t===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}}D5t.default=v5t});var b5t=he((A5t)=>{Object.defineProperty(A5t,"__esModule",{value:!0});var eTn=jSe();class w5t{constructor(e,t){this._root=e,this._settings=t,this._reader=new eTn.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError((t)=>{tTn(e,t)}),this._reader.onEntry((t)=>{this._storage.push(t)}),this._reader.onEnd(()=>{rTn(e,this._storage)}),this._reader.read()}}A5t.default=w5t;function tTn(e,t){e(t)}function rTn(e,t){e(null,t)}});var E5t=he((C5t)=>{Object.defineProperty(C5t,"__esModule",{value:!0});var iTn=Rt("stream"),aTn=jSe();class T5t{constructor(e,t){this._root=e,this._settings=t,this._reader=new aTn.default(this._root,this._settings),this._stream=new iTn.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((e)=>{this._stream.emit("error",e)}),this._reader.onEntry((e)=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}C5t.default=T5t});var S5t=he((F5t)=>{Object.defineProperty(F5t,"__esModule",{value:!0});var oTn=Z_e(),W_e=O_e(),sTn=XSe();class k5t extends sTn.default{constructor(){super(...arguments);this._scandir=oTn.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,t){try{let r=this._scandir(e,this._settings.fsScandirSettings);for(let n of r)this._handleEntry(n,t)}catch(r){this._handleError(r)}}_handleError(e){if(!W_e.isFatalError(this._settings,e))return;throw e}_handleEntry(e,t){let r=e.path;if(t!==void 0)e.path=W_e.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator);if(W_e.isAppliedFilter(this._settings.entryFilter,e))this._pushToStorage(e);if(e.dirent.isDirectory()&&W_e.isAppliedFilter(this._settings.deepFilter,e))this._pushToQueue(r,t===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}}F5t.default=k5t});var B5t=he((N5t)=>{Object.defineProperty(N5t,"__esModule",{value:!0});var _Tn=S5t();class P5t{constructor(e,t){this._root=e,this._settings=t,this._reader=new _Tn.default(this._root,this._settings)}read(){return this._reader.read()}}N5t.default=P5t});var J5t=he(($5t)=>{Object.defineProperty($5t,"__esModule",{value:!0});var hTn=Rt("path"),pTn=Z_e();class q5t{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,hTn.sep),this.fsScandirSettings=new pTn.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,t){return e!==null&&e!==void 0?e:t}}$5t.default=q5t});var H_e=he((M5t)=>{Object.defineProperty(M5t,"__esModule",{value:!0});M5t.Settings=M5t.walkStream=M5t.walkSync=M5t.walk=void 0;var I5t=b5t(),mTn=E5t(),dTn=B5t(),KSe=J5t();M5t.Settings=KSe.default;function yTn(e,t,r){if(typeof t==="function"){new I5t.default(e,Y_e()).read(t);return}new I5t.default(e,Y_e(t)).read(r)}M5t.walk=yTn;function gTn(e,t){let r=Y_e(t);return new dTn.default(e,r).read()}M5t.walkSync=gTn;function xTn(e,t){let r=Y_e(t);return new mTn.default(e,r).read()}M5t.walkStream=xTn;function Y_e(e={}){if(e instanceof KSe.default)return e;return new KSe.default(e)}});var G_e=he((X5t)=>{Object.defineProperty(X5t,"__esModule",{value:!0});var ATn=Rt("path"),bTn=Kq(),V5t=iT();class L5t{constructor(e){this._settings=e,this._fsStatSettings=new bTn.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return ATn.resolve(this._settings.cwd,e)}_makeEntry(e,t){let r={name:t,path:t,dirent:V5t.fs.createDirentFromStats(t,e)};if(this._settings.stats)r.stats=e;return r}_isFatalError(e){return!V5t.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}}X5t.default=L5t});var USe=he((K5t)=>{Object.defineProperty(K5t,"__esModule",{value:!0});var CTn=Rt("stream"),ETn=Kq(),kTn=H_e(),FTn=G_e();class j5t extends FTn.default{constructor(){super(...arguments);this._walkStream=kTn.walkStream,this._stat=ETn.stat}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let r=e.map(this._getFullEntryPath,this),n=new CTn.PassThrough({objectMode:!0});n._write=(i,a,u)=>{return this._getEntry(r[i],e[i],t).then((s)=>{if(s!==null&&t.entryFilter(s))n.push(s);if(i===r.length-1)n.end();u()}).catch(u)};for(let i=0;i<r.length;i++)n.write(i);return n}_getEntry(e,t,r){return this._getStat(e).then((n)=>this._makeEntry(n,t)).catch((n)=>{if(r.errorFilter(n))return null;throw n})}_getStat(e){return new Promise((t,r)=>{this._stat(e,this._fsStatSettings,(n,i)=>{return n===null?t(i):r(n)})})}}K5t.default=j5t});var O5t=he((Z5t)=>{Object.defineProperty(Z5t,"__esModule",{value:!0});var PTn=H_e(),NTn=G_e(),BTn=USe();class U5t extends NTn.default{constructor(){super(...arguments);this._walkAsync=PTn.walk,this._readerStream=new BTn.default(this._settings)}dynamic(e,t){return new Promise((r,n)=>{this._walkAsync(e,t,(i,a)=>{if(i===null)r(a);else n(i)})})}async static(e,t){let r=[],n=this._readerStream.static(e,t);return new Promise((i,a)=>{n.once("error",a),n.on("data",(u)=>r.push(u)),n.once("end",()=>i(r))})}}Z5t.default=U5t});var Y5t=he((W5t)=>{Object.defineProperty(W5t,"__esModule",{value:!0});var pW=iT();class Q5t{constructor(e,t,r){this._patterns=e,this._settings=t,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(e){return pW.pattern.getPatternParts(e,this._micromatchOptions).map((r)=>{if(!pW.pattern.isDynamicPattern(r,this._settings))return{dynamic:!1,pattern:r};return{dynamic:!0,pattern:r,patternRe:pW.pattern.makeRe(r,this._micromatchOptions)}})}_splitSegmentsIntoSections(e){return pW.array.splitWhen(e,(t)=>t.dynamic&&pW.pattern.hasGlobStar(t.pattern))}}W5t.default=Q5t});var R5t=he((G5t)=>{Object.defineProperty(G5t,"__esModule",{value:!0});var JTn=Y5t();class H5t extends JTn.default{match(e){let t=e.split("/"),r=t.length,n=this._storage.filter((i)=>!i.complete||i.segments.length>r);for(let i of n){let a=i.sections[0];if(!i.complete&&r>a.length)return!0;if(t.every((s,l)=>{let h=i.segments[l];if(h.dynamic&&h.patternRe.test(s))return!0;if(!h.dynamic&&h.pattern===s)return!0;return!1}))return!0}return!1}}G5t.default=H5t});var rvt=he((tvt)=>{Object.defineProperty(tvt,"__esModule",{value:!0});var R_e=iT(),MTn=R5t();class evt{constructor(e,t){this._settings=e,this._micromatchOptions=t}getFilter(e,t,r){let n=this._getMatcher(t),i=this._getNegativePatternsRe(r);return(a)=>this._filter(e,a,n,i)}_getMatcher(e){return new MTn.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let t=e.filter(R_e.pattern.isAffectDepthOfReadingPattern);return R_e.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,n){if(this._isSkippedByDeep(e,t.path))return!1;if(this._isSkippedSymbolicLink(t))return!1;let i=R_e.path.removeLeadingDotSegment(t.path);if(this._isSkippedByPositivePatterns(i,r))return!1;return this._isSkippedByNegativePatterns(i,n)}_isSkippedByDeep(e,t){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let r=t.split("/").length;if(e==="")return r;let n=e.split("/").length;return r-n}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return!this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return!R_e.pattern.matchAny(e,t)}}tvt.default=evt});var avt=he((ivt)=>{Object.defineProperty(ivt,"__esModule",{value:!0});var Uq=iT();class nvt{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map}getFilter(e,t){let r=Uq.pattern.convertPatternsToRe(e,this._micromatchOptions),n=Uq.pattern.convertPatternsToRe(t,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return(i)=>this._filter(i,r,n)}_filter(e,t,r){let n=Uq.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n))return!1;if(this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;if(this._isSkippedByAbsoluteNegativePatterns(n,r))return!1;let i=e.dirent.isDirectory(),a=this._isMatchToPatterns(n,t,i)&&!this._isMatchToPatterns(n,r,i);if(this._settings.unique&&a)this._createIndexRecord(n);return a}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return!1;let r=Uq.path.makeAbsolute(this._settings.cwd,e);return Uq.pattern.matchAny(r,t)}_isMatchToPatterns(e,t,r){let n=Uq.pattern.matchAny(e,t);if(!n&&r)return Uq.pattern.matchAny(e+"/",t);return n}}ivt.default=nvt});var svt=he((ovt)=>{Object.defineProperty(ovt,"__esModule",{value:!0});var LTn=iT();class uvt{constructor(e){this._settings=e}getFilter(){return(e)=>this._isNonFatalError(e)}_isNonFatalError(e){return LTn.errno.isEnoentCodeError(e)||this._settings.suppressErrors}}ovt.default=uvt});var hvt=he((cvt)=>{Object.defineProperty(cvt,"__esModule",{value:!0});var lvt=iT();class _vt{constructor(e){this._settings=e}getTransformer(){return(e)=>this._transform(e)}_transform(e){let t=e.path;if(this._settings.absolute)t=lvt.path.makeAbsolute(this._settings.cwd,t),t=lvt.path.unixify(t);if(this._settings.markDirectories&&e.dirent.isDirectory())t+="/";if(!this._settings.objectMode)return t;return Object.assign(Object.assign({},e),{path:t})}}cvt.default=_vt});var ece=he((fvt)=>{Object.defineProperty(fvt,"__esModule",{value:!0});var KTn=Rt("path"),UTn=rvt(),ZTn=avt(),OTn=svt(),QTn=hvt();class pvt{constructor(e){this._settings=e,this.errorFilter=new OTn.default(this._settings),this.entryFilter=new ZTn.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new UTn.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new QTn.default(this._settings)}_getRootDirectory(e){return KTn.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t=e.base==="."?"":e.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}fvt.default=pvt});var yvt=he((dvt)=>{Object.defineProperty(dvt,"__esModule",{value:!0});var YTn=O5t(),HTn=ece();class mvt extends HTn.default{constructor(){super(...arguments);this._reader=new YTn.default(this._settings)}async read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return(await this.api(t,e,r)).map((i)=>r.transform(i))}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}dvt.default=mvt});var vvt=he((xvt)=>{Object.defineProperty(xvt,"__esModule",{value:!0});var RTn=Rt("stream"),eCn=USe(),tCn=ece();class gvt extends tCn.default{constructor(){super(...arguments);this._reader=new eCn.default(this._settings)}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e),n=this.api(t,e,r),i=new RTn.Readable({objectMode:!0,read:()=>{}});return n.once("error",(a)=>i.emit("error",a)).on("data",(a)=>i.emit("data",r.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>n.destroy()),i}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}xvt.default=gvt});var Avt=he((wvt)=>{Object.defineProperty(wvt,"__esModule",{value:!0});var nCn=Kq(),iCn=H_e(),aCn=G_e();class Dvt extends aCn.default{constructor(){super(...arguments);this._walkSync=iCn.walkSync,this._statSync=nCn.statSync}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let r=[];for(let n of e){let i=this._getFullEntryPath(n),a=this._getEntry(i,n,t);if(a===null||!t.entryFilter(a))continue;r.push(a)}return r}_getEntry(e,t,r){try{let n=this._getStat(e);return this._makeEntry(n,t)}catch(n){if(r.errorFilter(n))return null;throw n}}_getStat(e){return this._statSync(e,this._fsStatSettings)}}wvt.default=Dvt});var Cvt=he((Tvt)=>{Object.defineProperty(Tvt,"__esModule",{value:!0});var oCn=Avt(),sCn=ece();class bvt extends sCn.default{constructor(){super(...arguments);this._reader=new oCn.default(this._settings)}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(t,e,r).map(r.transform)}api(e,t,r){if(t.dynamic)return this._reader.dynamic(e,r);return this._reader.static(t.patterns,r)}}Tvt.default=bvt});var Fvt=he((kvt)=>{Object.defineProperty(kvt,"__esModule",{value:!0});kvt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bV=Rt("fs"),_Cn=Rt("os"),cCn=Math.max(_Cn.cpus().length,1);kvt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bV.lstat,lstatSync:bV.lstatSync,stat:bV.stat,statSync:bV.statSync,readdir:bV.readdir,readdirSync:bV.readdirSync};class Evt{constructor(e={}){if(this._options=e,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,cCn),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(e,t){return e===void 0?t:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},kvt.DEFAULT_FILE_SYSTEM_ADAPTER),e)}}kvt.default=Evt});var fW=he((fg0,Pvt)=>{var Svt=sxt(),pCn=yvt(),fCn=vvt(),mCn=Cvt(),OSe=Fvt(),j6=iT();async function QSe(e,t){fg(e);let r=WSe(e,pCn.default,t),n=await Promise.all(r);return j6.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(h,_){fg(h);let p=WSe(h,mCn.default,_);return j6.array.flatten(p)}e.sync=t;function r(h,_){fg(h);let p=WSe(h,fCn.default,_);return j6.stream.merge(p)}e.stream=r;function n(h,_){fg(h);let p=[].concat(h),f=new OSe.default(_);return Svt.generate(p,f)}e.generateTasks=n;function i(h,_){fg(h);let p=new OSe.default(_);return j6.pattern.isDynamicPattern(h,p)}e.isDynamicPattern=i;function a(h){return fg(h),j6.path.escape(h)}e.escapePath=a;function u(h){return fg(h),j6.path.convertPathToPattern(h)}e.convertPathToPattern=u;let s;(function(h){function _(f){return fg(f),j6.path.escapePosixPath(f)}h.escapePath=_;function p(f){return fg(f),j6.path.convertPosixPathToPattern(f)}h.convertPathToPattern=p})(s=e.posix||(e.posix={}));let l;(function(h){function _(f){return fg(f),j6.path.escapeWindowsPath(f)}h.escapePath=_;function p(f){return fg(f),j6.path.convertWindowsPathToPattern(f)}h.convertPathToPattern=p})(l=e.win32||(e.win32={}))})(QSe||(QSe={}));function WSe(e,t,r){let n=[].concat(e),i=new OSe.default(r),a=Svt.generate(n,i),u=new t(i);return a.map(u.read,u)}function fg(e){if(![].concat(e).every((n)=>j6.string.isString(n)&&!j6.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pvt.exports=QSe});var Bvt=he((yCn)=>{var{promisify:dCn}=Rt("util"),Nvt=Rt("fs");async function YSe(e,t,r){if(typeof r!=="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await dCn(Nvt[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function HSe(e,t,r){if(typeof r!=="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return Nvt[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}yCn.isFile=YSe.bind(null,"stat","isFile");yCn.isDirectory=YSe.bind(null,"stat","isDirectory");yCn.isSymlink=YSe.bind(null,"lstat","isSymbolicLink");yCn.isFileSync=HSe.bind(null,"statSync","isFile");yCn.isDirectorySync=HSe.bind(null,"statSync","isDirectory");yCn.isSymlinkSync=HSe.bind(null,"lstatSync","isSymbolicLink")});var Mvt=he((dg0,GSe)=>{var Zq=Rt("path"),qvt=Bvt(),$vt=(e)=>e.length>1?`{${e.join(",")}}`:e[0],Jvt=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return Zq.isAbsolute(r)?r:Zq.join(t,r)},bCn=(e,t)=>{if(Zq.extname(e))return`**/${e}`;return`**/${e}.${$vt(t)}`},Ivt=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);if(t.files&&t.extensions)return t.files.map((r)=>Zq.posix.join(e,bCn(r,t.extensions)));if(t.files)return t.files.map((r)=>Zq.posix.join(e,`**/${r}`));if(t.extensions)return[Zq.posix.join(e,`**/*.${$vt(t.extensions)}`)];return[Zq.posix.join(e,"**")]};GSe.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!=="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async(n)=>{return await qvt.isDirectory(Jvt(n,t.cwd))?Ivt(n,t):n}));return[].concat.apply([],r)};GSe.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!=="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map((n)=>qvt.isDirectorySync(Jvt(n,t.cwd))?Ivt(n,t):n);return[].concat.apply([],r)}});var nPe=he((yg0,Qvt)=>{function zvt(e){return Array.isArray(e)?e:[e]}var tPe="",Vvt=" ",RSe="\\",TCn=/^\s+$/,CCn=/(?:[^\\]|^)\\$/,ECn=/^\\!/,kCn=/^\\#/,FCn=/\r?\n/g,SCn=/^\.*\/|^\.+$/,ePe="/",jvt="node-ignore";if(typeof Symbol!=="undefined")jvt=Symbol.for("node-ignore");var Lvt=jvt,PCn=(e,t,r)=>Object.defineProperty(e,t,{value:r}),NCn=/([0-z])-([0-z])/g,Kvt=()=>!1,BCn=(e)=>e.replace(NCn,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:tPe),qCn=(e)=>{let{length:t}=e;return e.slice(0,t-t%2)},$Cn=[[/^\uFEFF/,()=>tPe],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?Vvt:tPe)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+Vvt}],[/[\\$.|*+(){^]/g,(e)=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function e(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>RSe],[/\\\\/g,()=>RSe],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===RSe?`\\[${r}${qCn(n)}${i}`:i==="]"?n.length%2===0?`[${BCn(r)}${n}]`:"[]":"[]"],[/(?:[^*])$/,(e)=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>{return`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`}]],Xvt=Object.create(null),JCn=(e,t)=>{let r=Xvt[e];if(!r)r=$Cn.reduce((n,[i,a])=>n.replace(i,a.bind(e)),e),Xvt[e]=r;return t?new RegExp(r,"i"):new RegExp(r)},rPe=(e)=>typeof e==="string",ICn=(e)=>e&&rPe(e)&&!TCn.test(e)&&!CCn.test(e)&&e.indexOf("#")!==0,MCn=(e)=>e.split(FCn);class Uvt{constructor(e,t,r,n){this.origin=e,this.pattern=t,this.negative=r,this.regex=n}}var zCn=(e,t)=>{let r=e,n=!1;if(e.indexOf("!")===0)n=!0,e=e.substr(1);e=e.replace(ECn,"!").replace(kCn,"#");let i=JCn(e,t);return new Uvt(r,e,n,i)},VCn=(e,t)=>{throw new t(e)},aT=(e,t,r)=>{if(!rPe(e))return r(`path must be a string, but got \`${t}\``,TypeError);if(!e)return r("path must not be empty",TypeError);if(aT.isNotRelative(e))return r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError);return!0},Zvt=(e)=>SCn.test(e);aT.isNotRelative=Zvt;aT.convert=(e)=>e;class Ovt{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:r=!1}={}){PCn(this,Lvt,!0),this._rules=[],this._ignoreCase=t,this._allowRelativePaths=r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[Lvt]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(ICn(e)){let t=zCn(e,this._ignoreCase);this._added=!0,this._rules.push(t)}}add(e){if(this._added=!1,zvt(rPe(e)?MCn(e):e).forEach(this._addPattern,this),this._added)this._initCache();return this}addPattern(e){return this.add(e)}_testOne(e,t){let r=!1,n=!1;return this._rules.forEach((i)=>{let{negative:a}=i;if(n===a&&r!==n||a&&!r&&!n&&!t)return;if(i.regex.test(e))r=!a,n=a}),{ignored:r,unignored:n}}_test(e,t,r,n){let i=e&&aT.convert(e);return aT(i,e,this._allowRelativePaths?Kvt:VCn),this._t(i,t,r,n)}_t(e,t,r,n){if(e in t)return t[e];if(!n)n=e.split(ePe);if(n.pop(),!n.length)return t[e]=this._testOne(e,r);let i=this._t(n.join(ePe)+ePe,t,r,n);return t[e]=i.ignored?i:this._testOne(e,r)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return(e)=>!this.ignores(e)}filter(e){return zvt(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}var tce=(e)=>new Ovt(e),LCn=(e)=>aT(e&&aT.convert(e),e,Kvt);tce.isPathValid=LCn;tce.default=tce;Qvt.exports=tce;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=(r)=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");aT.convert=e;let t=/^[a-z]:\//i;aT.isNotRelative=(r)=>t.test(r)||Zvt(r)}});var m9t=he((Vg0,f9t)=>{var XF=Rt("constants"),tEn=process.cwd,ice=null,rEn=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!ice)ice=tEn.call(process);return ice};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){if(ace=process.chdir,process.chdir=function(e){ice=null,ace.call(process,e)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,ace)}var ace;f9t.exports=nEn;function nEn(e){if(XF.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))t(e);if(!e.lutimes)r(e);if(e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=u(e.chownSync),e.fchownSync=u(e.fchownSync),e.lchownSync=u(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=s(e.stat),e.fstat=s(e.fstat),e.lstat=s(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.chmod&&!e.lchmod)e.lchmod=function(_,p,f){if(f)process.nextTick(f)},e.lchmodSync=function(){};if(e.chown&&!e.lchown)e.lchown=function(_,p,f,m){if(m)process.nextTick(m)},e.lchownSync=function(){};if(rEn==="win32")e.rename=typeof e.rename!=="function"?e.rename:function(_){function p(f,m,d){var x=Date.now(),T=0;_(f,m,function A(F){if(F&&(F.code==="EACCES"||F.code==="EPERM"||F.code==="EBUSY")&&Date.now()-x<60000){if(setTimeout(function(){e.stat(m,function(b,N){if(b&&b.code==="ENOENT")_(f,m,A);else d(F)})},T),T<100)T+=10;return}if(d)d(F)})}if(Object.setPrototypeOf)Object.setPrototypeOf(p,_);return p}(e.rename);e.read=typeof e.read!=="function"?e.read:function(_){function p(f,m,d,x,T,A){var F;if(A&&typeof A==="function"){var b=0;F=function(N,E,P){if(N&&N.code==="EAGAIN"&&b<10)return b++,_.call(e,f,m,d,x,T,F);A.apply(this,arguments)}}return _.call(e,f,m,d,x,T,F)}if(Object.setPrototypeOf)Object.setPrototypeOf(p,_);return p}(e.read),e.readSync=typeof e.readSync!=="function"?e.readSync:function(_){return function(p,f,m,d,x){var T=0;while(!0)try{return _.call(e,p,f,m,d,x)}catch(A){if(A.code==="EAGAIN"&&T<10){T++;continue}throw A}}}(e.readSync);function t(_){_.lchmod=function(p,f,m){_.open(p,XF.O_WRONLY|XF.O_SYMLINK,f,function(d,x){if(d){if(m)m(d);return}_.fchmod(x,f,function(T){_.close(x,function(A){if(m)m(T||A)})})})},_.lchmodSync=function(p,f){var m=_.openSync(p,XF.O_WRONLY|XF.O_SYMLINK,f),d=!0,x;try{x=_.fchmodSync(m,f),d=!1}finally{if(d)try{_.closeSync(m)}catch(T){}else _.closeSync(m)}return x}}function r(_){if(XF.hasOwnProperty("O_SYMLINK")&&_.futimes)_.lutimes=function(p,f,m,d){_.open(p,XF.O_SYMLINK,function(x,T){if(x){if(d)d(x);return}_.futimes(T,f,m,function(A){_.close(T,function(F){if(d)d(A||F)})})})},_.lutimesSync=function(p,f,m){var d=_.openSync(p,XF.O_SYMLINK),x,T=!0;try{x=_.futimesSync(d,f,m),T=!1}finally{if(T)try{_.closeSync(d)}catch(A){}else _.closeSync(d)}return x};else if(_.futimes)_.lutimes=function(p,f,m,d){if(d)process.nextTick(d)},_.lutimesSync=function(){}}function n(_){if(!_)return _;return function(p,f,m){return _.call(e,p,f,function(d){if(h(d))d=null;if(m)m.apply(this,arguments)})}}function i(_){if(!_)return _;return function(p,f){try{return _.call(e,p,f)}catch(m){if(!h(m))throw m}}}function a(_){if(!_)return _;return function(p,f,m,d){return _.call(e,p,f,m,function(x){if(h(x))x=null;if(d)d.apply(this,arguments)})}}function u(_){if(!_)return _;return function(p,f,m){try{return _.call(e,p,f,m)}catch(d){if(!h(d))throw d}}}function s(_){if(!_)return _;return function(p,f,m){if(typeof f==="function")m=f,f=null;function d(x,T){if(T){if(T.uid<0)T.uid+=4294967296;if(T.gid<0)T.gid+=4294967296}if(m)m.apply(this,arguments)}return f?_.call(e,p,f,d):_.call(e,p,d)}}function l(_){if(!_)return _;return function(p,f){var m=f?_.call(e,p,f):_.call(e,p);if(m){if(m.uid<0)m.uid+=4294967296;if(m.gid<0)m.gid+=4294967296}return m}}function h(_){if(!_)return!0;if(_.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;if(p){if(_.code==="EINVAL"||_.code==="EPERM")return!0}return!1}}});var g9t=he((Lg0,y9t)=>{var d9t=Rt("stream").Stream;y9t.exports=iEn;function iEn(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);d9t.call(this);var a=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};var u=Object.keys(i);for(var s=0,l=u.length;s<l;s++){var h=u[s];this[h]=i[h]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){a._read()});return}e.open(this.path,this.flags,this.mode,function(_,p){if(_){a.emit("error",_),a.readable=!1;return}a.fd=p,a.emit("open",p),a._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);d9t.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};var a=Object.keys(i);for(var u=0,s=a.length;u<s;u++){var l=a[u];this[l]=i[l]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var v9t=he((Xg0,x9t)=>{x9t.exports=uEn;var aEn=Object.getPrototypeOf||function(e){return e.__proto__};function uEn(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:aEn(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var jF=he((jg0,cPe)=>{var y_=Rt("fs"),oEn=m9t(),sEn=g9t(),lEn=v9t(),uce=Rt("util"),$h,sce;if(typeof Symbol==="function"&&typeof Symbol.for==="function")$h=Symbol.for("graceful-fs.queue"),sce=Symbol.for("graceful-fs.previous");else $h="___graceful-fs.queue",sce="___graceful-fs.previous";function _En(){}function w9t(e,t){Object.defineProperty(e,$h,{get:function(){return t}})}var Oq=_En;if(uce.debuglog)Oq=uce.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))Oq=function(){var e=uce.format.apply(uce,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
301
|
-
GFS4: `),console.error(e)};if(!y_[$h]){if(sPe=global[$h]||[],w9t(y_,sPe),y_.close=function(e){function t(r,n){return e.call(y_,r,function(i){if(!i)D9t();if(typeof n==="function")n.apply(this,arguments)})}return Object.defineProperty(t,sce,{value:e}),t}(y_.close),y_.closeSync=function(e){function t(r){e.apply(y_,arguments),D9t()}return Object.defineProperty(t,sce,{value:e}),t}(y_.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){Oq(y_[$h]),Rt("assert").equal(y_[$h].length,0)})}var sPe;if(!global[$h])w9t(global,y_[$h]);cPe.exports=lPe(lEn(y_));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!y_.__patched)cPe.exports=lPe(y_),y_.__patched=!0;function lPe(e){oEn(e),e.gracefulify=lPe,e.createReadStream=E,e.createWriteStream=P;var t=e.readFile;e.readFile=r;function r(M,O,K){if(typeof O==="function")K=O,O=null;return ue(M,O,K);function ue(Q,G,Z,ee){return t(Q,G,function(ge){if(ge&&(ge.code==="EMFILE"||ge.code==="ENFILE"))CV([ue,[Q,G,Z],ge,ee||Date.now(),Date.now()]);else if(typeof Z==="function")Z.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(M,O,K,ue){if(typeof K==="function")ue=K,K=null;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return n(G,Z,ee,function(He){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}var a=e.appendFile;if(a)e.appendFile=u;function u(M,O,K,ue){if(typeof K==="function")ue=K,K=null;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return a(G,Z,ee,function(He){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}var s=e.copyFile;if(s)e.copyFile=l;function l(M,O,K,ue){if(typeof K==="function")ue=K,K=0;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return s(G,Z,ee,function(He){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}var h=e.readdir;e.readdir=p;var _=/^v[0-5]\./;function p(M,O,K){if(typeof O==="function")K=O,O=null;var ue=_.test(process.version)?function G(Z,ee,ge,Fe){return h(Z,Q(Z,ee,ge,Fe))}:function G(Z,ee,ge,Fe){return h(Z,ee,Q(Z,ee,ge,Fe))};return ue(M,O,K);function Q(G,Z,ee,ge){return function(Fe,He){if(Fe&&(Fe.code==="EMFILE"||Fe.code==="ENFILE"))CV([ue,[G,Z,ee],Fe,ge||Date.now(),Date.now()]);else{if(He&&He.sort)He.sort();if(typeof ee==="function")ee.call(this,Fe,He)}}}}if(process.version.substr(0,4)==="v0.8"){var f=sEn(e);A=f.ReadStream,b=f.WriteStream}var m=e.ReadStream;if(m)A.prototype=Object.create(m.prototype),A.prototype.open=F;var d=e.WriteStream;if(d)b.prototype=Object.create(d.prototype),b.prototype.open=N;Object.defineProperty(e,"ReadStream",{get:function(){return A},set:function(M){A=M},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return b},set:function(M){b=M},enumerable:!0,configurable:!0});var x=A;Object.defineProperty(e,"FileReadStream",{get:function(){return x},set:function(M){x=M},enumerable:!0,configurable:!0});var T=b;Object.defineProperty(e,"FileWriteStream",{get:function(){return T},set:function(M){T=M},enumerable:!0,configurable:!0});function A(M,O){if(this instanceof A)return m.apply(this,arguments),this;else return A.apply(Object.create(A.prototype),arguments)}function F(){var M=this;$(M.path,M.flags,M.mode,function(O,K){if(O){if(M.autoClose)M.destroy();M.emit("error",O)}else M.fd=K,M.emit("open",K),M.read()})}function b(M,O){if(this instanceof b)return d.apply(this,arguments),this;else return b.apply(Object.create(b.prototype),arguments)}function N(){var M=this;$(M.path,M.flags,M.mode,function(O,K){if(O)M.destroy(),M.emit("error",O);else M.fd=K,M.emit("open",K)})}function E(M,O){return new e.ReadStream(M,O)}function P(M,O){return new e.WriteStream(M,O)}var q=e.open;e.open=$;function $(M,O,K,ue){if(typeof K==="function")ue=K,K=null;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return q(G,Z,ee,function(He,xe){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}return e}function CV(e){Oq("ENQUEUE",e[0].name,e[1]),y_[$h].push(e),_Pe()}var oce;function D9t(){var e=Date.now();for(var t=0;t<y_[$h].length;++t)if(y_[$h][t].length>2)y_[$h][t][3]=e,y_[$h][t][4]=e;_Pe()}function _Pe(){if(clearTimeout(oce),oce=void 0,y_[$h].length===0)return;var e=y_[$h].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(i===void 0)Oq("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=60000){Oq("TIMEOUT",t.name,r);var u=r.pop();if(typeof u==="function")u.call(null,n)}else{var s=Date.now()-a,l=Math.max(a-i,1),h=Math.min(l*1.2,100);if(s>=h)Oq("RETRY",t.name,r),t.apply(null,r.concat([i]));else y_[$h].push(e)}if(oce===void 0)oce=setTimeout(_Pe,0)}});var b9t=he((mEn)=>{var Qq=Rt("path"),UF=process.platform==="win32",KF=Rt("fs"),hEn=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function pEn(){var e;if(hEn){var t=new Error;e=r}else e=n;return e;function r(i){if(i)t.message=i.message,i=t,n(i)}function n(i){if(i){if(process.throwDeprecation)throw i;else if(!process.noDeprecation){var a="fs: missing callback "+(i.stack||i.message);if(process.traceDeprecation)console.trace(a);else console.error(a)}}}}function fEn(e){return typeof e==="function"?e:pEn()}var Wg0=Qq.normalize;if(UF)OD=/(.*?)(?:[\/\\]+|$)/g;else OD=/(.*?)(?:[\/]+|$)/g;var OD;if(UF)EV=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else EV=/^[\/]*/;var EV;mEn.realpathSync=function e(t,r){if(t=Qq.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},a={},u,s,l,h;_();function _(){var T=EV.exec(t);if(u=T[0].length,s=T[0],l=T[0],h="",UF&&!a[l])KF.lstatSync(l),a[l]=!0}while(u<t.length){OD.lastIndex=u;var p=OD.exec(t);if(h=s,s+=p[0],l=h+p[1],u=OD.lastIndex,a[l]||r&&r[l]===l)continue;var f;if(r&&Object.prototype.hasOwnProperty.call(r,l))f=r[l];else{var m=KF.lstatSync(l);if(!m.isSymbolicLink()){if(a[l]=!0,r)r[l]=l;continue}var d=null;if(!UF){var x=m.dev.toString(32)+":"+m.ino.toString(32);if(i.hasOwnProperty(x))d=i[x]}if(d===null)KF.statSync(l),d=KF.readlinkSync(l);if(f=Qq.resolve(h,d),r)r[l]=f;if(!UF)i[x]=d}t=Qq.resolve(f,t.slice(u)),_()}if(r)r[n]=t;return t};mEn.realpath=function e(t,r,n){if(typeof n!=="function")n=fEn(r),r=null;if(t=Qq.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,a={},u={},s,l,h,_;p();function p(){var T=EV.exec(t);if(s=T[0].length,l=T[0],h=T[0],_="",UF&&!u[h])KF.lstat(h,function(A){if(A)return n(A);u[h]=!0,f()});else process.nextTick(f)}function f(){if(s>=t.length){if(r)r[i]=t;return n(null,t)}OD.lastIndex=s;var T=OD.exec(t);if(_=l,l+=T[0],h=_+T[1],s=OD.lastIndex,u[h]||r&&r[h]===h)return process.nextTick(f);if(r&&Object.prototype.hasOwnProperty.call(r,h))return x(r[h]);return KF.lstat(h,m)}function m(T,A){if(T)return n(T);if(!A.isSymbolicLink()){if(u[h]=!0,r)r[h]=h;return process.nextTick(f)}if(!UF){var F=A.dev.toString(32)+":"+A.ino.toString(32);if(a.hasOwnProperty(F))return d(null,a[F],h)}KF.stat(h,function(b){if(b)return n(b);KF.readlink(h,function(N,E){if(!UF)a[F]=E;d(N,E)})})}function d(T,A,F){if(T)return n(T);var b=Qq.resolve(_,A);if(r)r[F]=b;x(b)}function x(T){t=Qq.resolve(T,t.slice(s)),p()}}});var gPe=he((Hg0,k9t)=>{k9t.exports=ZF;ZF.realpath=ZF;ZF.sync=yPe;ZF.realpathSync=yPe;ZF.monkeypatch=xEn;ZF.unmonkeypatch=vEn;var kV=Rt("fs"),mPe=kV.realpath,dPe=kV.realpathSync,gEn=process.version,T9t=/^v[0-5]\./.test(gEn),C9t=b9t();function E9t(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function ZF(e,t,r){if(T9t)return mPe(e,t,r);if(typeof t==="function")r=t,t=null;mPe(e,t,function(n,i){if(E9t(n))C9t.realpath(e,t,r);else r(n,i)})}function yPe(e,t){if(T9t)return dPe(e,t);try{return dPe(e,t)}catch(r){if(E9t(r))return C9t.realpathSync(e,t);else throw r}}function xEn(){kV.realpath=ZF,kV.realpathSync=yPe}function vEn(){kV.realpath=mPe,kV.realpathSync=dPe}});var S9t=he((Gg0,F9t)=>{F9t.exports=function(e,t){var r=[];for(var n=0;n<e.length;n++){var i=t(e[n],n);if(DEn(i))r.push.apply(r,i);else r.push(i)}return r};var DEn=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var xPe=he((Rg0,q9t)=>{q9t.exports=N9t;function N9t(e,t,r){if(e instanceof RegExp)e=P9t(e,r);if(t instanceof RegExp)t=P9t(t,r);var n=B9t(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function P9t(e,t){var r=t.match(e);return r?r[0]:null}N9t.range=B9t;function B9t(e,t,r){var n,i,a,u,s,l=r.indexOf(e),h=r.indexOf(t,l+1),_=l;if(l>=0&&h>0){if(e===t)return[l,h];n=[],a=r.length;while(_>=0&&!s){if(_==l)n.push(_),l=r.indexOf(e,_+1);else if(n.length==1)s=[n.pop(),h];else{if(i=n.pop(),i<a)a=i,u=h;h=r.indexOf(t,_+1)}_=l<h&&l>=0?l:h}if(n.length)s=[a,u]}return s}});var X9t=he((e30,L9t)=>{var wEn=S9t(),$9t=xPe();L9t.exports=TEn;var J9t="\x00SLASH"+Math.random()+"\x00",I9t="\x00OPEN"+Math.random()+"\x00",DPe="\x00CLOSE"+Math.random()+"\x00",M9t="\x00COMMA"+Math.random()+"\x00",z9t="\x00PERIOD"+Math.random()+"\x00";function vPe(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function AEn(e){return e.split("\\\\").join(J9t).split("\\{").join(I9t).split("\\}").join(DPe).split("\\,").join(M9t).split("\\.").join(z9t)}function bEn(e){return e.split(J9t).join("\\").split(I9t).join("{").split(DPe).join("}").split(M9t).join(",").split(z9t).join(".")}function V9t(e){if(!e)return[""];var t=[],r=$9t("{","}",e);if(!r)return e.split(",");var{pre:n,body:i,post:a}=r,u=n.split(",");u[u.length-1]+="{"+i+"}";var s=V9t(a);if(a.length)u[u.length-1]+=s.shift(),u.push.apply(u,s);return t.push.apply(t,u),t}function TEn(e){if(!e)return[];if(e.substr(0,2)==="{}")e="\\{\\}"+e.substr(2);return FV(AEn(e),!0).map(bEn)}function CEn(e){return"{"+e+"}"}function EEn(e){return/^-?0\d/.test(e)}function kEn(e,t){return e<=t}function FEn(e,t){return e>=t}function FV(e,t){var r=[],n=$9t("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=i||a,s=n.body.indexOf(",")>=0;if(!u&&!s){if(n.post.match(/,.*\}/))return e=n.pre+"{"+n.body+DPe+n.post,FV(e);return[e]}var l;if(u)l=n.body.split(/\.\./);else if(l=V9t(n.body),l.length===1){if(l=FV(l[0],!1).map(CEn),l.length===1){var _=n.post.length?FV(n.post,!1):[""];return _.map(function(K){return n.pre+l[0]+K})}}var h=n.pre,_=n.post.length?FV(n.post,!1):[""],p;if(u){var f=vPe(l[0]),m=vPe(l[1]),d=Math.max(l[0].length,l[1].length),x=l.length==3?Math.abs(vPe(l[2])):1,T=kEn,A=m<f;if(A)x*=-1,T=FEn;var F=l.some(EEn);p=[];for(var b=f;T(b,m);b+=x){var N;if(a){if(N=String.fromCharCode(b),N==="\\")N=""}else if(N=String(b),F){var E=d-N.length;if(E>0){var P=new Array(E+1).join("0");if(b<0)N="-"+P+N.slice(1);else N=P+N}}p.push(N)}}else p=wEn(l,function(O){return FV(O,!1)});for(var q=0;q<p.length;q++)for(var $=0;$<_.length;$++){var M=h+p[q]+_[$];if(!t||u||M)r.push(M)}return r}});var cce=he((t30,O9t)=>{O9t.exports=ey;ey.Minimatch=Jh;var gW=function(){try{return Rt("path")}catch(e){}}()||{sep:"/"};ey.sep=gW.sep;var bPe=ey.GLOBSTAR=Jh.GLOBSTAR={},SEn=X9t(),j9t={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},wPe="[^/]",APe=wPe+"*?",PEn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",NEn="(?:(?!(?:\\/|^)\\.).)*?",K9t=BEn("().*{}+?[]^$\\!");function BEn(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var U9t=/\/+/;ey.filter=qEn;function qEn(e,t){return t=t||{},function(r,n,i){return ey(r,e,t)}}function OF(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}ey.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length)return ey;var t=ey,r=function n(i,a,u){return t(i,a,OF(e,u))};return r.Minimatch=function n(i,a){return new t.Minimatch(i,OF(e,a))},r.Minimatch.defaults=function n(i){return t.defaults(OF(e,i)).Minimatch},r.filter=function n(i,a){return t.filter(i,OF(e,a))},r.defaults=function n(i){return t.defaults(OF(e,i))},r.makeRe=function n(i,a){return t.makeRe(i,OF(e,a))},r.braceExpand=function n(i,a){return t.braceExpand(i,OF(e,a))},r.match=function(n,i,a){return t.match(n,i,OF(e,a))},r};Jh.defaults=function(e){return ey.defaults(e).Minimatch};function ey(e,t,r){if(_ce(t),!r)r={};if(!r.nocomment&&t.charAt(0)==="#")return!1;return new Jh(t,r).match(e)}function Jh(e,t){if(!(this instanceof Jh))return new Jh(e,t);if(_ce(e),!t)t={};if(e=e.trim(),!t.allowWindowsEscape&&gW.sep!=="/")e=e.split(gW.sep).join("/");this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}Jh.prototype.debug=function(){};Jh.prototype.make=$En;function $En(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function n(){console.error.apply(console,arguments)};this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(U9t)}),this.debug(this.pattern,r),r=r.map(function(n,i,a){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}Jh.prototype.parseNegate=JEn;function JEn(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++)t=!t,n++;if(n)this.pattern=e.substr(n);this.negate=t}ey.braceExpand=function(e,t){return Z9t(e,t)};Jh.prototype.braceExpand=Z9t;function Z9t(e,t){if(!t)if(this instanceof Jh)t=this.options;else t={};if(e=typeof e==="undefined"?this.pattern:e,_ce(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))return[e];return SEn(e)}var IEn=65536,_ce=function(e){if(typeof e!=="string")throw new TypeError("invalid pattern");if(e.length>IEn)throw new TypeError("pattern is too long")};Jh.prototype.parse=MEn;var lce={};function MEn(e,t){_ce(e);var r=this.options;if(e==="**")if(!r.noglobstar)return bPe;else e="*";if(e==="")return"";var n="",i=!!r.nocase,a=!1,u=[],s=[],l,h=!1,_=-1,p=-1,f=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function d(){if(l){switch(l){case"*":n+=APe,i=!0;break;case"?":n+=wPe,i=!0;break;default:n+="\\"+l;break}m.debug("clearStateChar %j %j",l,n),l=!1}}for(var x=0,T=e.length,A;x<T&&(A=e.charAt(x));x++){if(this.debug("%s %s %s %j",e,x,n,A),a&&K9t[A]){n+="\\"+A,a=!1;continue}switch(A){case"/":return!1;case"\\":d(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,x,n,A),h){if(this.debug(" in class"),A==="!"&&x===p+1)A="^";n+=A;continue}if(m.debug("call clearStateChar %j",l),d(),l=A,r.noext)d();continue;case"(":if(h){n+="(";continue}if(!l){n+="\\(";continue}u.push({type:l,start:x-1,reStart:n.length,open:j9t[l].open,close:j9t[l].close}),n+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,n),l=!1;continue;case")":if(h||!u.length){n+="\\)";continue}d(),i=!0;var F=u.pop();if(n+=F.close,F.type==="!")s.push(F);F.reEnd=n.length;continue;case"|":if(h||!u.length||a){n+="\\|",a=!1;continue}d(),n+="|";continue;case"[":if(d(),h){n+="\\"+A;continue}h=!0,p=x,_=n.length,n+=A;continue;case"]":if(x===p+1||!h){n+="\\"+A,a=!1;continue}var b=e.substring(p+1,x);try{RegExp("["+b+"]")}catch(xe){var N=this.parse(b,lce);n=n.substr(0,_)+"\\["+N[0]+"\\]",i=i||N[1],h=!1;continue}i=!0,h=!1,n+=A;continue;default:if(d(),a)a=!1;else if(K9t[A]&&!(A==="^"&&h))n+="\\";n+=A}}if(h)b=e.substr(p+1),N=this.parse(b,lce),n=n.substr(0,_)+"\\["+N[0],i=i||N[1];for(F=u.pop();F;F=u.pop()){var E=n.slice(F.reStart+F.open.length);this.debug("setting tail",n,F),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(xe,$e,Ie){if(!Ie)Ie="\\";return $e+$e+Ie+"|"}),this.debug(`tail=%j
|
|
301
|
+
GFS4: `),console.error(e)};if(!y_[$h]){if(sPe=global[$h]||[],w9t(y_,sPe),y_.close=function(e){function t(r,n){return e.call(y_,r,function(i){if(!i)D9t();if(typeof n==="function")n.apply(this,arguments)})}return Object.defineProperty(t,sce,{value:e}),t}(y_.close),y_.closeSync=function(e){function t(r){e.apply(y_,arguments),D9t()}return Object.defineProperty(t,sce,{value:e}),t}(y_.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){Oq(y_[$h]),Rt("assert").equal(y_[$h].length,0)})}var sPe;if(!global[$h])w9t(global,y_[$h]);cPe.exports=lPe(lEn(y_));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!y_.__patched)cPe.exports=lPe(y_),y_.__patched=!0;function lPe(e){oEn(e),e.gracefulify=lPe,e.createReadStream=E,e.createWriteStream=P;var t=e.readFile;e.readFile=r;function r(M,O,K){if(typeof O==="function")K=O,O=null;return ue(M,O,K);function ue(Q,G,Z,ee){return t(Q,G,function(ge){if(ge&&(ge.code==="EMFILE"||ge.code==="ENFILE"))CV([ue,[Q,G,Z],ge,ee||Date.now(),Date.now()]);else if(typeof Z==="function")Z.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(M,O,K,ue){if(typeof K==="function")ue=K,K=null;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return n(G,Z,ee,function(He){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}var a=e.appendFile;if(a)e.appendFile=u;function u(M,O,K,ue){if(typeof K==="function")ue=K,K=null;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return a(G,Z,ee,function(He){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}var s=e.copyFile;if(s)e.copyFile=l;function l(M,O,K,ue){if(typeof K==="function")ue=K,K=0;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return s(G,Z,ee,function(He){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}var h=e.readdir;e.readdir=p;var _=/^v[0-5]\./;function p(M,O,K){if(typeof O==="function")K=O,O=null;var ue=_.test(process.version)?function G(Z,ee,ge,Fe){return h(Z,Q(Z,ee,ge,Fe))}:function G(Z,ee,ge,Fe){return h(Z,ee,Q(Z,ee,ge,Fe))};return ue(M,O,K);function Q(G,Z,ee,ge){return function(Fe,He){if(Fe&&(Fe.code==="EMFILE"||Fe.code==="ENFILE"))CV([ue,[G,Z,ee],Fe,ge||Date.now(),Date.now()]);else{if(He&&He.sort)He.sort();if(typeof ee==="function")ee.call(this,Fe,He)}}}}if(process.version.substr(0,4)==="v0.8"){var f=sEn(e);A=f.ReadStream,b=f.WriteStream}var m=e.ReadStream;if(m)A.prototype=Object.create(m.prototype),A.prototype.open=F;var d=e.WriteStream;if(d)b.prototype=Object.create(d.prototype),b.prototype.open=N;Object.defineProperty(e,"ReadStream",{get:function(){return A},set:function(M){A=M},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return b},set:function(M){b=M},enumerable:!0,configurable:!0});var x=A;Object.defineProperty(e,"FileReadStream",{get:function(){return x},set:function(M){x=M},enumerable:!0,configurable:!0});var T=b;Object.defineProperty(e,"FileWriteStream",{get:function(){return T},set:function(M){T=M},enumerable:!0,configurable:!0});function A(M,O){if(this instanceof A)return m.apply(this,arguments),this;else return A.apply(Object.create(A.prototype),arguments)}function F(){var M=this;$(M.path,M.flags,M.mode,function(O,K){if(O){if(M.autoClose)M.destroy();M.emit("error",O)}else M.fd=K,M.emit("open",K),M.read()})}function b(M,O){if(this instanceof b)return d.apply(this,arguments),this;else return b.apply(Object.create(b.prototype),arguments)}function N(){var M=this;$(M.path,M.flags,M.mode,function(O,K){if(O)M.destroy(),M.emit("error",O);else M.fd=K,M.emit("open",K)})}function E(M,O){return new e.ReadStream(M,O)}function P(M,O){return new e.WriteStream(M,O)}var q=e.open;e.open=$;function $(M,O,K,ue){if(typeof K==="function")ue=K,K=null;return Q(M,O,K,ue);function Q(G,Z,ee,ge,Fe){return q(G,Z,ee,function(He,xe){if(He&&(He.code==="EMFILE"||He.code==="ENFILE"))CV([Q,[G,Z,ee,ge],He,Fe||Date.now(),Date.now()]);else if(typeof ge==="function")ge.apply(this,arguments)})}}return e}function CV(e){Oq("ENQUEUE",e[0].name,e[1]),y_[$h].push(e),_Pe()}var oce;function D9t(){var e=Date.now();for(var t=0;t<y_[$h].length;++t)if(y_[$h][t].length>2)y_[$h][t][3]=e,y_[$h][t][4]=e;_Pe()}function _Pe(){if(clearTimeout(oce),oce=void 0,y_[$h].length===0)return;var e=y_[$h].shift(),t=e[0],r=e[1],n=e[2],i=e[3],a=e[4];if(i===void 0)Oq("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=60000){Oq("TIMEOUT",t.name,r);var u=r.pop();if(typeof u==="function")u.call(null,n)}else{var s=Date.now()-a,l=Math.max(a-i,1),h=Math.min(l*1.2,100);if(s>=h)Oq("RETRY",t.name,r),t.apply(null,r.concat([i]));else y_[$h].push(e)}if(oce===void 0)oce=setTimeout(_Pe,0)}});var b9t=he((mEn)=>{var Qq=Rt("path"),UF=process.platform==="win32",KF=Rt("fs"),hEn=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function pEn(){var e;if(hEn){var t=new Error;e=r}else e=n;return e;function r(i){if(i)t.message=i.message,i=t,n(i)}function n(i){if(i){if(process.throwDeprecation)throw i;else if(!process.noDeprecation){var a="fs: missing callback "+(i.stack||i.message);if(process.traceDeprecation)console.trace(a);else console.error(a)}}}}function fEn(e){return typeof e==="function"?e:pEn()}var Wg0=Qq.normalize;if(UF)OD=/(.*?)(?:[\/\\]+|$)/g;else OD=/(.*?)(?:[\/]+|$)/g;var OD;if(UF)EV=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else EV=/^[\/]*/;var EV;mEn.realpathSync=function e(t,r){if(t=Qq.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},a={},u,s,l,h;_();function _(){var T=EV.exec(t);if(u=T[0].length,s=T[0],l=T[0],h="",UF&&!a[l])KF.lstatSync(l),a[l]=!0}while(u<t.length){OD.lastIndex=u;var p=OD.exec(t);if(h=s,s+=p[0],l=h+p[1],u=OD.lastIndex,a[l]||r&&r[l]===l)continue;var f;if(r&&Object.prototype.hasOwnProperty.call(r,l))f=r[l];else{var m=KF.lstatSync(l);if(!m.isSymbolicLink()){if(a[l]=!0,r)r[l]=l;continue}var d=null;if(!UF){var x=m.dev.toString(32)+":"+m.ino.toString(32);if(i.hasOwnProperty(x))d=i[x]}if(d===null)KF.statSync(l),d=KF.readlinkSync(l);if(f=Qq.resolve(h,d),r)r[l]=f;if(!UF)i[x]=d}t=Qq.resolve(f,t.slice(u)),_()}if(r)r[n]=t;return t};mEn.realpath=function e(t,r,n){if(typeof n!=="function")n=fEn(r),r=null;if(t=Qq.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,a={},u={},s,l,h,_;p();function p(){var T=EV.exec(t);if(s=T[0].length,l=T[0],h=T[0],_="",UF&&!u[h])KF.lstat(h,function(A){if(A)return n(A);u[h]=!0,f()});else process.nextTick(f)}function f(){if(s>=t.length){if(r)r[i]=t;return n(null,t)}OD.lastIndex=s;var T=OD.exec(t);if(_=l,l+=T[0],h=_+T[1],s=OD.lastIndex,u[h]||r&&r[h]===h)return process.nextTick(f);if(r&&Object.prototype.hasOwnProperty.call(r,h))return x(r[h]);return KF.lstat(h,m)}function m(T,A){if(T)return n(T);if(!A.isSymbolicLink()){if(u[h]=!0,r)r[h]=h;return process.nextTick(f)}if(!UF){var F=A.dev.toString(32)+":"+A.ino.toString(32);if(a.hasOwnProperty(F))return d(null,a[F],h)}KF.stat(h,function(b){if(b)return n(b);KF.readlink(h,function(N,E){if(!UF)a[F]=E;d(N,E)})})}function d(T,A,F){if(T)return n(T);var b=Qq.resolve(_,A);if(r)r[F]=b;x(b)}function x(T){t=Qq.resolve(T,t.slice(s)),p()}}});var gPe=he((Hg0,k9t)=>{k9t.exports=ZF;ZF.realpath=ZF;ZF.sync=yPe;ZF.realpathSync=yPe;ZF.monkeypatch=xEn;ZF.unmonkeypatch=vEn;var kV=Rt("fs"),mPe=kV.realpath,dPe=kV.realpathSync,gEn=process.version,T9t=/^v[0-5]\./.test(gEn),C9t=b9t();function E9t(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function ZF(e,t,r){if(T9t)return mPe(e,t,r);if(typeof t==="function")r=t,t=null;mPe(e,t,function(n,i){if(E9t(n))C9t.realpath(e,t,r);else r(n,i)})}function yPe(e,t){if(T9t)return dPe(e,t);try{return dPe(e,t)}catch(r){if(E9t(r))return C9t.realpathSync(e,t);else throw r}}function xEn(){kV.realpath=ZF,kV.realpathSync=yPe}function vEn(){kV.realpath=mPe,kV.realpathSync=dPe}});var S9t=he((Gg0,F9t)=>{F9t.exports=function(e,t){var r=[];for(var n=0;n<e.length;n++){var i=t(e[n],n);if(DEn(i))r.push.apply(r,i);else r.push(i)}return r};var DEn=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}});var xPe=he((Rg0,q9t)=>{q9t.exports=N9t;function N9t(e,t,r){if(e instanceof RegExp)e=P9t(e,r);if(t instanceof RegExp)t=P9t(t,r);var n=B9t(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function P9t(e,t){var r=t.match(e);return r?r[0]:null}N9t.range=B9t;function B9t(e,t,r){var n,i,a,u,s,l=r.indexOf(e),h=r.indexOf(t,l+1),_=l;if(l>=0&&h>0){if(e===t)return[l,h];n=[],a=r.length;while(_>=0&&!s){if(_==l)n.push(_),l=r.indexOf(e,_+1);else if(n.length==1)s=[n.pop(),h];else{if(i=n.pop(),i<a)a=i,u=h;h=r.indexOf(t,_+1)}_=l<h&&l>=0?l:h}if(n.length)s=[a,u]}return s}});var X9t=he((e30,L9t)=>{var wEn=S9t(),$9t=xPe();L9t.exports=TEn;var J9t="\x00SLASH"+Math.random()+"\x00",I9t="\x00OPEN"+Math.random()+"\x00",DPe="\x00CLOSE"+Math.random()+"\x00",M9t="\x00COMMA"+Math.random()+"\x00",z9t="\x00PERIOD"+Math.random()+"\x00";function vPe(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function AEn(e){return e.split("\\\\").join(J9t).split("\\{").join(I9t).split("\\}").join(DPe).split("\\,").join(M9t).split("\\.").join(z9t)}function bEn(e){return e.split(J9t).join("\\").split(I9t).join("{").split(DPe).join("}").split(M9t).join(",").split(z9t).join(".")}function V9t(e){if(!e)return[""];var t=[],r=$9t("{","}",e);if(!r)return e.split(",");var{pre:n,body:i,post:a}=r,u=n.split(",");u[u.length-1]+="{"+i+"}";var s=V9t(a);if(a.length)u[u.length-1]+=s.shift(),u.push.apply(u,s);return t.push.apply(t,u),t}function TEn(e){if(!e)return[];if(e.substr(0,2)==="{}")e="\\{\\}"+e.substr(2);return FV(AEn(e),!0).map(bEn)}function CEn(e){return"{"+e+"}"}function EEn(e){return/^-?0\d/.test(e)}function kEn(e,t){return e<=t}function FEn(e,t){return e>=t}function FV(e,t){var r=[],n=$9t("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=i||a,s=n.body.indexOf(",")>=0;if(!u&&!s){if(n.post.match(/,.*\}/))return e=n.pre+"{"+n.body+DPe+n.post,FV(e);return[e]}var l;if(u)l=n.body.split(/\.\./);else if(l=V9t(n.body),l.length===1){if(l=FV(l[0],!1).map(CEn),l.length===1){var _=n.post.length?FV(n.post,!1):[""];return _.map(function(K){return n.pre+l[0]+K})}}var h=n.pre,_=n.post.length?FV(n.post,!1):[""],p;if(u){var f=vPe(l[0]),m=vPe(l[1]),d=Math.max(l[0].length,l[1].length),x=l.length==3?Math.abs(vPe(l[2])):1,T=kEn,A=m<f;if(A)x*=-1,T=FEn;var F=l.some(EEn);p=[];for(var b=f;T(b,m);b+=x){var N;if(a){if(N=String.fromCharCode(b),N==="\\")N=""}else if(N=String(b),F){var E=d-N.length;if(E>0){var P=new Array(E+1).join("0");if(b<0)N="-"+P+N.slice(1);else N=P+N}}p.push(N)}}else p=wEn(l,function(O){return FV(O,!1)});for(var q=0;q<p.length;q++)for(var $=0;$<_.length;$++){var M=h+p[q]+_[$];if(!t||u||M)r.push(M)}return r}});var cce=he((t30,O9t)=>{O9t.exports=ey;ey.Minimatch=Jh;var gW=function(){try{return Rt("path")}catch(e){}}()||{sep:"/"};ey.sep=gW.sep;var bPe=ey.GLOBSTAR=Jh.GLOBSTAR={},SEn=X9t(),j9t={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},wPe="[^/]",APe=wPe+"*?",PEn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",NEn="(?:(?!(?:\\/|^)\\.).)*?",K9t=BEn("().*{}+?[]^$\\!");function BEn(e){return e.split("").reduce(function(t,r){return t[r]=!0,t},{})}var U9t=/\/+/;ey.filter=qEn;function qEn(e,t){return t=t||{},function(r,n,i){return ey(r,e,t)}}function OF(e,t){t=t||{};var r={};return Object.keys(e).forEach(function(n){r[n]=e[n]}),Object.keys(t).forEach(function(n){r[n]=t[n]}),r}ey.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length)return ey;var t=ey,r=function n(i,a,u){return t(i,a,OF(e,u))};return r.Minimatch=function n(i,a){return new t.Minimatch(i,OF(e,a))},r.Minimatch.defaults=function n(i){return t.defaults(OF(e,i)).Minimatch},r.filter=function n(i,a){return t.filter(i,OF(e,a))},r.defaults=function n(i){return t.defaults(OF(e,i))},r.makeRe=function n(i,a){return t.makeRe(i,OF(e,a))},r.braceExpand=function n(i,a){return t.braceExpand(i,OF(e,a))},r.match=function(n,i,a){return t.match(n,i,OF(e,a))},r};Jh.defaults=function(e){return ey.defaults(e).Minimatch};function ey(e,t,r){if(_ce(t),!r)r={};if(!r.nocomment&&t.charAt(0)==="#")return!1;return new Jh(t,r).match(e)}function Jh(e,t){if(!(this instanceof Jh))return new Jh(e,t);if(_ce(e),!t)t={};if(e=e.trim(),!t.allowWindowsEscape&&gW.sep!=="/")e=e.split(gW.sep).join("/");this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}Jh.prototype.debug=function(){};Jh.prototype.make=$En;function $En(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function n(){console.error.apply(console,arguments)};this.debug(this.pattern,r),r=this.globParts=r.map(function(n){return n.split(U9t)}),this.debug(this.pattern,r),r=r.map(function(n,i,a){return n.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(n){return n.indexOf(!1)===-1}),this.debug(this.pattern,r),this.set=r}Jh.prototype.parseNegate=JEn;function JEn(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++)t=!t,n++;if(n)this.pattern=e.substr(n);this.negate=t}ey.braceExpand=function(e,t){return Z9t(e,t)};Jh.prototype.braceExpand=Z9t;function Z9t(e,t){if(!t)if(this instanceof Jh)t=this.options;else t={};if(e=typeof e==="undefined"?this.pattern:e,_ce(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e))return[e];return SEn(e)}var IEn=65536,_ce=function(e){if(typeof e!=="string")throw new TypeError("invalid pattern");if(e.length>IEn)throw new TypeError("pattern is too long")};Jh.prototype.parse=MEn;var lce={};function MEn(e,t){_ce(e);var r=this.options;if(e==="**")if(!r.noglobstar)return bPe;else e="*";if(e==="")return"";var n="",i=!!r.nocase,a=!1,u=[],s=[],l,h=!1,_=-1,p=-1,f=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",m=this;function d(){if(l){switch(l){case"*":n+=APe,i=!0;break;case"?":n+=wPe,i=!0;break;default:n+="\\"+l;break}m.debug("clearStateChar %j %j",l,n),l=!1}}for(var x=0,T=e.length,A;x<T&&(A=e.charAt(x));x++){if(this.debug("%s\t%s %s %j",e,x,n,A),a&&K9t[A]){n+="\\"+A,a=!1;continue}switch(A){case"/":return!1;case"\\":d(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,x,n,A),h){if(this.debug(" in class"),A==="!"&&x===p+1)A="^";n+=A;continue}if(m.debug("call clearStateChar %j",l),d(),l=A,r.noext)d();continue;case"(":if(h){n+="(";continue}if(!l){n+="\\(";continue}u.push({type:l,start:x-1,reStart:n.length,open:j9t[l].open,close:j9t[l].close}),n+=l==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",l,n),l=!1;continue;case")":if(h||!u.length){n+="\\)";continue}d(),i=!0;var F=u.pop();if(n+=F.close,F.type==="!")s.push(F);F.reEnd=n.length;continue;case"|":if(h||!u.length||a){n+="\\|",a=!1;continue}d(),n+="|";continue;case"[":if(d(),h){n+="\\"+A;continue}h=!0,p=x,_=n.length,n+=A;continue;case"]":if(x===p+1||!h){n+="\\"+A,a=!1;continue}var b=e.substring(p+1,x);try{RegExp("["+b+"]")}catch(xe){var N=this.parse(b,lce);n=n.substr(0,_)+"\\["+N[0]+"\\]",i=i||N[1],h=!1;continue}i=!0,h=!1,n+=A;continue;default:if(d(),a)a=!1;else if(K9t[A]&&!(A==="^"&&h))n+="\\";n+=A}}if(h)b=e.substr(p+1),N=this.parse(b,lce),n=n.substr(0,_)+"\\["+N[0],i=i||N[1];for(F=u.pop();F;F=u.pop()){var E=n.slice(F.reStart+F.open.length);this.debug("setting tail",n,F),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(xe,$e,Ie){if(!Ie)Ie="\\";return $e+$e+Ie+"|"}),this.debug(`tail=%j
|
|
302
302
|
%s`,E,E,F,n);var P=F.type==="*"?APe:F.type==="?"?wPe:"\\"+F.type;i=!0,n=n.slice(0,F.reStart)+P+"\\("+E}if(d(),a)n+="\\\\";var q=!1;switch(n.charAt(0)){case"[":case".":case"(":q=!0}for(var $=s.length-1;$>-1;$--){var M=s[$],O=n.slice(0,M.reStart),K=n.slice(M.reStart,M.reEnd-8),ue=n.slice(M.reEnd-8,M.reEnd),Q=n.slice(M.reEnd);ue+=Q;var G=O.split("(").length-1,Z=Q;for(x=0;x<G;x++)Z=Z.replace(/\)[+*?]?/,"");Q=Z;var ee="";if(Q===""&&t!==lce)ee="$";var ge=O+K+Q+ee+ue;n=ge}if(n!==""&&i)n="(?=.)"+n;if(q)n=f+n;if(t===lce)return[n,i];if(!i)return VEn(e);var Fe=r.nocase?"i":"";try{var He=new RegExp("^"+n+"$",Fe)}catch(xe){return new RegExp("$.")}return He._glob=e,He._src=n,He}ey.makeRe=function(e,t){return new Jh(e,t||{}).makeRe()};Jh.prototype.makeRe=zEn;function zEn(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?APe:t.dot?PEn:NEn,n=t.nocase?"i":"",i=e.map(function(a){return a.map(function(u){return u===bPe?r:typeof u==="string"?LEn(u):u._src}).join("\\/")}).join("|");if(i="^(?:"+i+")$",this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,n)}catch(a){this.regexp=!1}return this.regexp}ey.match=function(e,t,r){r=r||{};var n=new Jh(t,r);if(e=e.filter(function(i){return n.match(i)}),n.options.nonull&&!e.length)e.push(t);return e};Jh.prototype.match=function e(t,r){if(typeof r==="undefined")r=this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;var n=this.options;if(gW.sep!=="/")t=t.split(gW.sep).join("/");t=t.split(U9t),this.debug(this.pattern,"split",t);var i=this.set;this.debug(this.pattern,"set",i);var a,u;for(u=t.length-1;u>=0;u--)if(a=t[u],a)break;for(u=0;u<i.length;u++){var s=i[u],l=t;if(n.matchBase&&s.length===1)l=[a];var h=this.matchOne(l,s,r);if(h){if(n.flipNegate)return!0;return!this.negate}}if(n.flipNegate)return!1;return this.negate};Jh.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,u=e.length,s=t.length;i<u&&a<s;i++,a++){this.debug("matchOne loop");var l=t[a],h=e[i];if(this.debug(t,l,h),l===!1)return!1;if(l===bPe){this.debug("GLOBSTAR",[t,l,h]);var _=i,p=a+1;if(p===s){this.debug("** at the end");for(;i<u;i++)if(e[i]==="."||e[i]===".."||!n.dot&&e[i].charAt(0)===".")return!1;return!0}while(_<u){var f=e[_];if(this.debug(`
|
|
303
303
|
globstar while`,e,_,t,p,f),this.matchOne(e.slice(_),t.slice(p),r))return this.debug("globstar found match!",_,u,f),!0;else{if(f==="."||f===".."||!n.dot&&f.charAt(0)==="."){this.debug("dot detected!",e,_,t,p);break}this.debug("globstar swallow a segment, and continue"),_++}}if(r){if(this.debug(`
|
|
304
304
|
>>> no match, partial?`,e,_,t,p),_===u)return!0}return!1}var m;if(typeof l==="string")m=h===l,this.debug("string match",l,h,m);else m=h.match(l),this.debug("pattern match",l,h,m);if(!m)return!1}if(i===u&&a===s)return!0;else if(i===u)return r;else if(a===s)return i===u-1&&e[i]==="";throw new Error("wtf?")};function VEn(e){return e.replace(/\\(.)/g,"$1")}function LEn(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Q9t=he((r30,TPe)=>{if(typeof Object.create==="function")TPe.exports=function e(t,r){if(r)t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};else TPe.exports=function e(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var K6=he((n30,CPe)=>{try{if(hce=Rt("util"),typeof hce.inherits!=="function")throw"";CPe.exports=hce.inherits}catch(e){CPe.exports=Q9t()}var hce});var fce=he((i30,pce)=>{function W9t(e){return e.charAt(0)==="/"}function Y9t(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,r=t.exec(e),n=r[1]||"",i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}pce.exports=process.platform==="win32"?Y9t:W9t;pce.exports.posix=W9t;pce.exports.win32=Y9t});var kPe=he((HEn)=>{HEn.setopts=OEn;HEn.ownProp=H9t;HEn.makeAbs=xW;HEn.finish=QEn;HEn.mark=WEn;HEn.isIgnored=R9t;HEn.childrenIgnored=YEn;function H9t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var XEn=Rt("fs"),SV=Rt("path"),jEn=cce(),G9t=fce(),EPe=jEn.Minimatch;function KEn(e,t){return e.localeCompare(t,"en")}function UEn(e,t){if(e.ignore=t.ignore||[],!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length)e.ignore=e.ignore.map(ZEn)}function ZEn(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new EPe(r,{dot:!0})}return{matcher:new EPe(e,{dot:!0}),gmatcher:t}}function OEn(e,t,r){if(!r)r={};if(r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}if(e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir)e.mark=!0;e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||XEn,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),UEn(e,r),e.changedCwd=!1;var n=process.cwd();if(!H9t(r,"cwd"))e.cwd=n;else e.cwd=SV.resolve(r.cwd),e.changedCwd=e.cwd!==n;if(e.root=r.root||SV.resolve(e.cwd,"/"),e.root=SV.resolve(e.root),process.platform==="win32")e.root=e.root.replace(/\\/g,"/");if(e.cwdAbs=G9t(e.cwd)?e.cwd:xW(e,e.cwd),process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,r.allowWindowsEscape=!1,e.minimatch=new EPe(t,r),e.options=e.minimatch.options}function QEn(e){var t=e.nounique,r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(!a||Object.keys(a).length===0){if(e.nonull){var u=e.minimatch.globSet[n];if(t)r.push(u);else r[u]=!0}}else{var s=Object.keys(a);if(t)r.push.apply(r,s);else s.forEach(function(l){r[l]=!0})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(KEn);if(e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);if(e.nodir)r=r.filter(function(l){var h=!/\/$/.test(l),_=e.cache[l]||e.cache[xW(e,l)];if(h&&_)h=_!=="DIR"&&!Array.isArray(_);return h})}if(e.ignore.length)r=r.filter(function(l){return!R9t(e,l)});e.found=r}function WEn(e,t){var r=xW(e,t),n=e.cache[r],i=t;if(n){var a=n==="DIR"||Array.isArray(n),u=t.slice(-1)==="/";if(a&&!u)i+="/";else if(!a&&u)i=i.slice(0,-1);if(i!==t){var s=xW(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i}function xW(e,t){var r=t;if(t.charAt(0)==="/")r=SV.join(e.root,t);else if(G9t(t)||t==="")r=t;else if(e.changedCwd)r=SV.resolve(e.cwd,t);else r=SV.resolve(t);if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function R9t(e,t){if(!e.ignore.length)return!1;return e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))})}function YEn(e,t){if(!e.ignore.length)return!1;return e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))})}});var iDt=he((l30,nDt)=>{nDt.exports=rDt;rDt.GlobSync=X1;var akn=gPe(),eDt=cce(),u30=eDt.Minimatch,o30=PPe().Glob,s30=Rt("util"),FPe=Rt("path"),tDt=Rt("assert"),mce=fce(),Wq=kPe(),ukn=Wq.setopts,SPe=Wq.ownProp,okn=Wq.childrenIgnored,skn=Wq.isIgnored;function rDt(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
@@ -359,12 +359,12 @@ It seems you are running on an Apple Silicon Mac. The PocketIC binary can not ru
|
|
|
359
359
|
Please install and enable Rosetta if it is not enabled and try again.
|
|
360
360
|
|
|
361
361
|
Original error: ${e.name} ${e.message}.
|
|
362
|
-
${e.stack}`,{cause:e})}}CYt.BinStartMacOSArmError=vYt;class DYt extends Error{constructor(e){super(`Could not find the PocketIC binary. The PocketIC binary could not be found at ${e}. Please try installing @hadronous/pic again.`)}}CYt.BinNotFoundError=DYt;class wYt extends Error{constructor(){super("The PocketIC binary took too long to start. Please try again.")}}CYt.BinTimeoutError=wYt;class AYt extends Error{constructor(){super("A request to the PocketIC server timed out.")}}CYt.ServerRequestTimeoutError=AYt;class bYt extends Error{constructor(){super("This PocketIC instance has been torn down. Please create a new instance before interacting further with PocketIC.")}}CYt.InstanceDeletedError=bYt;class TYt extends Error{constructor(){super("The provided subnet configuration is invalid. At least one subnet must be configured and the number of both application and system subnets must be at least 0 (non-negative).")}}CYt.TopologyValidationError=TYt});var NYt=he((SYt)=>{Object.defineProperty(SYt,"__esModule",{value:!0});SYt.Http2Client=SYt.JSON_HEADER=void 0;var kYt=n7e(),KG=jG();SYt.JSON_HEADER={"Content-Type":"application/json"};class FYt{baseUrl;processingTimeoutMs;constructor(e,t){this.baseUrl=e,this.processingTimeoutMs=t}request(e){let t=new AbortController,r=new AbortController,n=async()=>{return await new Promise((a,u)=>{let s=setTimeout(()=>{r.abort(),u(new kYt.ServerRequestTimeoutError)},this.processingTimeoutMs);t.signal.addEventListener("abort",()=>{clearTimeout(s),u(new kYt.ServerRequestTimeoutError)})})},i=async()=>{let a=`${this.baseUrl}${e.path}`,u=await fetch(a,{method:e.method,headers:e.headers,body:e.body,signal:r.signal});return t.abort(),u};return Promise.race([i(),n()])}async jsonGet(e){return await KG.poll(async()=>{let t=await this.request({method:"GET",path:e.path,headers:{...e.headers,...SYt.JSON_HEADER}}),r=await t.json();if(!r)return r;if("message"in r)throw console.error("PocketIC server encountered an error",r.message),new Error(r.message);if("state_label"in r){if(t.status===409)throw new Error("Server busy");if(t.status===202)throw new Error("Server started processing");throw new Error("Unknown state")}return r},{intervalMs:rLe,timeoutMs:this.processingTimeoutMs})}async jsonPost(e){let t=e.body?new TextEncoder().encode(JSON.stringify(e.body)):void 0;return await KG.poll(async()=>{let r=await this.request({method:"POST",path:e.path,headers:{...e.headers,...SYt.JSON_HEADER},body:t}),n=await r.json();if(KG.isNil(n))return n;if("message"in n)throw console.error("PocketIC server encountered an error",n.message),new Error(n.message);if("state_label"in n){if(r.status===409)throw new Error("Server busy");if(r.status===202)return await KG.poll(async()=>{let a=await(await this.request({method:"GET",path:`/read_graph/${n.state_label}/${n.op_id}`})).json();if(KG.isNil(a)||"message"in a||"state_label"in a)throw new Error("Polling has not succeeded yet");return a},{intervalMs:rLe,timeoutMs:this.processingTimeoutMs});throw new Error("Unknown state")}return n},{intervalMs:rLe,timeoutMs:this.processingTimeoutMs})}}SYt.Http2Client=FYt;var rLe=10});var LYt=he((zYt)=>{Object.defineProperty(zYt,"__esModule",{value:!0});zYt.SubnetType=zYt.SubnetStateType=void 0;zYt.encodeCreateInstanceRequest=Bdi;zYt.encodeGetPubKeyRequest=qdi;zYt.decodeInstanceTopology=$di;zYt.decodeSubnetTopology=JYt;zYt.decodeSubnetKind=IYt;zYt.decodeGetTimeResponse=Jdi;zYt.encodeSetTimeRequest=Idi;zYt.encodeGetSubnetIdRequest=Mdi;zYt.decodeGetSubnetIdResponse=zdi;zYt.encodeGetCyclesBalanceRequest=Vdi;zYt.decodeGetCyclesBalanceResponse=Ldi;zYt.encodeAddCyclesRequest=Xdi;zYt.decodeAddCyclesResponse=jdi;zYt.encodeUploadBlobRequest=Kdi;zYt.decodeUploadBlobResponse=Udi;zYt.encodeSetStableMemoryRequest=Zdi;zYt.encodeGetStableMemoryRequest=Odi;zYt.decodeGetStableMemoryResponse=Qdi;zYt.encodeEffectivePrincipal=MYt;zYt.encodeCanisterCallRequest=Wdi;zYt.decodeCanisterCallResponse=Ydi;var Pdi=dc(),Vs=jG(),Ndi=n7e(),UG;(function(e){e.New="new",e.FromPath="fromPath"})(UG||(zYt.SubnetStateType=UG={}));function BYt(e=[]){return e.map(IX).filter(Vs.isNotNil)}function IX(e){if(Vs.isNil(e))return;switch(e.state.type){default:return;case UG.New:return{dts_flag:qYt(e.enableDeterministicTimeSlicing),instruction_config:$Yt(e.enableBenchmarkingInstructionLimits),state_config:"New"};case UG.FromPath:return{dts_flag:qYt(e.enableDeterministicTimeSlicing),instruction_config:$Yt(e.enableBenchmarkingInstructionLimits),state_config:{FromPath:[e.state.path,{subnet_id:Vs.base64EncodePrincipal(e.state.subnetId)}]}}}}function qYt(e){return e===!1?"Disabled":"Enabled"}function $Yt(e){return e===!0?"Benchmarking":"Production"}function Bdi(e){let t={state:{type:UG.New}},r=e??{application:[t]},n={nns:IX(r.nns),sns:IX(r.sns),ii:IX(r.ii),fiduciary:IX(r.fiduciary),bitcoin:IX(r.bitcoin),system:BYt(r.system),application:BYt(r.application??[t])};if(Vs.isNil(n.nns)&&Vs.isNil(n.sns)&&Vs.isNil(n.ii)&&Vs.isNil(n.fiduciary)&&Vs.isNil(n.bitcoin)&&n.system.length===0&&n.application.length===0||n.system.length<0||n.application.length<0)throw new Ndi.TopologyValidationError;return n}function qdi(e){return{subnet_id:Vs.base64EncodePrincipal(e.subnetId)}}var GT;(function(e){e.Application="Application",e.Bitcoin="Bitcoin",e.Fiduciary="Fiduciary",e.InternetIdentity="II",e.NNS="NNS",e.SNS="SNS",e.System="System"})(GT||(zYt.SubnetType=GT={}));function $di(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,JYt(t,r)]))}function JYt(e,t){return{id:Pdi.Principal.fromText(e),type:IYt(t.subnet_kind),size:t.size,canisterRanges:t.canister_ranges.map((r)=>({start:Vs.base64DecodePrincipal(r.start.canister_id),end:Vs.base64DecodePrincipal(r.end.canister_id)}))}}function IYt(e){switch(e){case"Application":return GT.Application;case"Bitcoin":return GT.Bitcoin;case"Fiduciary":return GT.Fiduciary;case"II":return GT.InternetIdentity;case"NNS":return GT.NNS;case"SNS":return GT.SNS;case"System":return GT.System;default:throw new Error(`Unknown subnet kind: ${e}`)}}function Jdi(e){return{millisSinceEpoch:e.nanos_since_epoch/1e6}}function Idi(e){return{nanos_since_epoch:e.millisSinceEpoch*1e6}}function Mdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId)}}function zdi(e){if(Vs.isNil(e))return{subnetId:null};if("subnet_id"in e)return{subnetId:Vs.base64DecodePrincipal(e.subnet_id)};return{subnetId:null}}function Vdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId)}}function Ldi(e){return{cycles:e.cycles}}function Xdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId),amount:e.amount}}function jdi(e){return{cycles:e.cycles}}function Kdi(e){return e.blob}function Udi(e){return{blobId:new Uint8Array(Vs.hexDecode(e))}}function Zdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId),blob_id:Vs.base64Encode(e.blobId)}}function Odi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId)}}function Qdi(e){return{blob:Vs.base64Decode(e.blob)}}function MYt(e){if(Vs.isNil(e))return"None";if("subnetId"in e)return{SubnetId:Vs.base64EncodePrincipal(e.subnetId)};else return{CanisterId:Vs.base64EncodePrincipal(e.canisterId)}}function Wdi(e){return{sender:Vs.base64EncodePrincipal(e.sender),canister_id:Vs.base64EncodePrincipal(e.canisterId),method:e.method,payload:Vs.base64Encode(e.payload),effective_principal:MYt(e.effectivePrincipal)}}function Ydi(e){if("Err"in e)throw new Error(e.Err.description);if("Reject"in e.Ok)throw new Error(e.Ok.Reject);return{body:Vs.base64Decode(e.Ok.Reply)}}});var KYt=he((XYt)=>{Object.defineProperty(XYt,"__esModule",{value:!0});XYt.PocketIcClient=void 0;var xyi=NYt(),Z2=LYt(),vyi=1e4;class iLe{serverClient;instancePath;topology;isInstanceDeleted=!1;constructor(e,t,r){this.serverClient=e,this.instancePath=t,this.topology=r}static async create(e,t){let r=t?.processingTimeoutMs??vyi,n=new xyi.Http2Client(e,r),i=await n.jsonPost({path:"/instances",body:Z2.encodeCreateInstanceRequest(t)});if("Error"in i)throw console.error("Error creating instance",i.Error.message),new Error(i.Error.message);let a=Z2.decodeInstanceTopology(i.Created.topology),u=i.Created.instance_id;return new iLe(n,`/instances/${u}`,a)}async deleteInstance(){this.assertInstanceNotDeleted(),await this.serverClient.request({method:"DELETE",path:this.instancePath}),this.isInstanceDeleted=!0}async tick(){return this.assertInstanceNotDeleted(),await this.post("/update/tick")}async getPubKey(e){return this.assertInstanceNotDeleted(),await this.post("/read/pub_key",Z2.encodeGetPubKeyRequest(e))}getTopology(){return this.topology}async getTime(){this.assertInstanceNotDeleted();let e=await this.get("/read/get_time");return Z2.decodeGetTimeResponse(e)}async setTime(e){this.assertInstanceNotDeleted(),await this.post("/update/set_time",Z2.encodeSetTimeRequest(e))}async getSubnetId(e){this.assertInstanceNotDeleted();let t=await this.post("/read/get_subnet",Z2.encodeGetSubnetIdRequest(e));return Z2.decodeGetSubnetIdResponse(t)}async getCyclesBalance(e){this.assertInstanceNotDeleted();let t=await this.post("/read/get_cycles",Z2.encodeGetCyclesBalanceRequest(e));return Z2.decodeGetCyclesBalanceResponse(t)}async addCycles(e){this.assertInstanceNotDeleted();let t=await this.post("/update/add_cycles",Z2.encodeAddCyclesRequest(e));return Z2.decodeAddCyclesResponse(t)}async uploadBlob(e){this.assertInstanceNotDeleted();let r=await(await this.serverClient.request({method:"POST",path:"/blobstore",body:Z2.encodeUploadBlobRequest(e)})).text();return Z2.decodeUploadBlobResponse(r)}async setStableMemory(e){this.assertInstanceNotDeleted(),await this.serverClient.jsonPost({path:`${this.instancePath}/update/set_stable_memory`,body:Z2.encodeSetStableMemoryRequest(e)})}async getStableMemory(e){this.assertInstanceNotDeleted();let t=await this.post("/read/get_stable_memory",Z2.encodeGetStableMemoryRequest(e));return Z2.decodeGetStableMemoryResponse(t)}async updateCall(e){return this.assertInstanceNotDeleted(),await this.canisterCall("/update/execute_ingress_message",e)}async queryCall(e){return this.assertInstanceNotDeleted(),await this.canisterCall("/read/query",e)}async canisterCall(e,t){let r=await this.post(e,Z2.encodeCanisterCallRequest(t));return Z2.decodeCanisterCallResponse(r)}async post(e,t){return await this.serverClient.jsonPost({path:`${this.instancePath}${e}`,body:t})}async get(e){return await this.serverClient.jsonGet({path:`${this.instancePath}${e}`})}assertInstanceNotDeleted(){if(this.isInstanceDeleted)throw new Error("Instance was deleted")}}XYt.PocketIcClient=iLe});var aLe=he((OYt)=>{Object.defineProperty(OYt,"__esModule",{value:!0});OYt.SubnetType=OYt.SubnetStateType=void 0;var UYt;(function(e){e.New="new",e.FromPath="fromPath"})(UYt||(OYt.SubnetStateType=UYt={}));var ZYt;(function(e){e.Application="Application",e.Bitcoin="Bitcoin",e.Fiduciary="Fiduciary",e.InternetIdentity="II",e.NNS="NNS",e.SNS="SNS",e.System="System"})(ZYt||(OYt.SubnetType=ZYt={}))});var YYt=he((WYt)=>{Object.defineProperty(WYt,"__esModule",{value:!0});WYt.CanisterSettings=WYt.MANAGEMENT_CANISTER_ID=void 0;WYt.encodeCreateCanisterRequest=byi;WYt.decodeCreateCanisterResponse=Cyi;WYt.encodeStartCanisterRequest=kyi;WYt.encodeStopCanisterRequest=Syi;WYt.encodeInstallCodeRequest=Nyi;WYt.encodeUpdateCanisterSettingsRequest=qyi;var _u=Yk(),wyi=dc();WYt.MANAGEMENT_CANISTER_ID=wyi.Principal.fromText("aaaaa-aa");WYt.CanisterSettings=_u.IDL.Record({controllers:_u.IDL.Opt(_u.IDL.Vec(_u.IDL.Principal)),compute_allocation:_u.IDL.Opt(_u.IDL.Nat),memory_allocation:_u.IDL.Opt(_u.IDL.Nat),freezing_threshold:_u.IDL.Opt(_u.IDL.Nat),reserved_cycles_limit:_u.IDL.Opt(_u.IDL.Nat)});var Ayi=_u.IDL.Record({settings:_u.IDL.Opt(WYt.CanisterSettings),amount:_u.IDL.Opt(_u.IDL.Nat),specified_id:_u.IDL.Opt(_u.IDL.Principal)});function byi(e){return new Uint8Array(_u.IDL.encode([Ayi],[e]))}var Tyi=_u.IDL.Record({canister_id:_u.IDL.Principal});function Cyi(e){let[t]=_u.IDL.decode([Tyi],e);return t}var Eyi=_u.IDL.Record({canister_id:_u.IDL.Principal});function kyi(e){return new Uint8Array(_u.IDL.encode([Eyi],[e]))}var Fyi=_u.IDL.Record({canister_id:_u.IDL.Principal});function Syi(e){return new Uint8Array(_u.IDL.encode([Fyi],[e]))}var Pyi=_u.IDL.Record({arg:_u.IDL.Vec(_u.IDL.Nat8),wasm_module:_u.IDL.Vec(_u.IDL.Nat8),mode:_u.IDL.Variant({reinstall:_u.IDL.Null,upgrade:_u.IDL.Null,install:_u.IDL.Null}),canister_id:_u.IDL.Principal});function Nyi(e){return new Uint8Array(_u.IDL.encode([Pyi],[e]))}var Byi=_u.IDL.Record({canister_id:_u.IDL.Principal,settings:WYt.CanisterSettings});function qyi(e){return new Uint8Array(_u.IDL.encode([Byi],[e]))}});var RYt=he((HYt)=>{Object.defineProperty(HYt,"__esModule",{value:!0});HYt.PocketIc=void 0;var RT=dc(),Pm=jG(),Xyi=KYt(),jyi=eLe(),O$=aLe(),s7=YYt();class uLe{client;constructor(e){this.client=e}static async create(e,t){let r=await Xyi.PocketIcClient.create(e,t);return new uLe(r)}async setupCanister({sender:e,arg:t,wasm:r,idlFactory:n,computeAllocation:i,controllers:a,cycles:u,freezingThreshold:s,memoryAllocation:l,targetCanisterId:h,targetSubnetId:_,reservedCyclesLimit:p}){let f=await this.createCanister({computeAllocation:i,controllers:a,cycles:u,freezingThreshold:s,memoryAllocation:l,reservedCyclesLimit:p,targetCanisterId:h,targetSubnetId:_,sender:e});return await this.installCode({canisterId:f,wasm:r,arg:t,sender:e,targetSubnetId:_}),{actor:this.createActor(n,f),canisterId:f}}async createCanister({sender:e=RT.Principal.anonymous(),cycles:t=1000000000000000000n,controllers:r,computeAllocation:n,freezingThreshold:i,memoryAllocation:a,reservedCyclesLimit:u,targetCanisterId:s,targetSubnetId:l}={}){let h=s7.encodeCreateCanisterRequest({settings:[{controllers:Pm.optional(r),compute_allocation:Pm.optional(n),memory_allocation:Pm.optional(a),freezing_threshold:Pm.optional(i),reserved_cycles_limit:Pm.optional(u)}],amount:[t],specified_id:Pm.optional(s)}),_=await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:e,method:"provisional_create_canister_with_cycles",payload:h,effectivePrincipal:l?{subnetId:l}:void 0});return s7.decodeCreateCanisterResponse(_.body).canister_id}async startCanister({canisterId:e,sender:t=RT.Principal.anonymous(),targetSubnetId:r}){let n=s7.encodeStartCanisterRequest({canister_id:e});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:t,method:"start_canister",payload:n,effectivePrincipal:r?{subnetId:r}:void 0})}async stopCanister({canisterId:e,sender:t=RT.Principal.anonymous(),targetSubnetId:r}){let n=s7.encodeStartCanisterRequest({canister_id:e});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:t,method:"stop_canister",payload:n,effectivePrincipal:r?{subnetId:r}:void 0})}async installCode({arg:e=new Uint8Array,sender:t=RT.Principal.anonymous(),canisterId:r,wasm:n,targetSubnetId:i}){if(typeof n==="string")n=await Pm.readFileAsBytes(n);let a=s7.encodeInstallCodeRequest({arg:new Uint8Array(e),canister_id:r,mode:{install:null},wasm_module:new Uint8Array(n)});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:t,method:"install_code",payload:a,effectivePrincipal:i?{subnetId:i}:void 0})}async reinstallCode({sender:e=RT.Principal.anonymous(),arg:t=new Uint8Array,canisterId:r,wasm:n}){if(typeof n==="string")n=await Pm.readFileAsBytes(n);let i=s7.encodeInstallCodeRequest({arg:new Uint8Array(t),canister_id:r,mode:{reinstall:null},wasm_module:new Uint8Array(n)});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:e,method:"install_code",payload:i})}async upgradeCanister({sender:e=RT.Principal.anonymous(),arg:t=new Uint8Array,canisterId:r,wasm:n}){if(typeof n==="string")n=await Pm.readFileAsBytes(n);let i=s7.encodeInstallCodeRequest({arg:new Uint8Array(t),canister_id:r,mode:{upgrade:null},wasm_module:new Uint8Array(n)});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:e,method:"install_code",payload:i})}async updateCanisterSettings({canisterId:e,computeAllocation:t,controllers:r,freezingThreshold:n,memoryAllocation:i,reservedCyclesLimit:a,sender:u=RT.Principal.anonymous()}){let s=s7.encodeUpdateCanisterSettingsRequest({canister_id:e,settings:{controllers:Pm.optional(r),compute_allocation:Pm.optional(t),memory_allocation:Pm.optional(i),freezing_threshold:Pm.optional(n),reserved_cycles_limit:Pm.optional(a)}});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:u,method:"update_settings",payload:s})}createActor(e,t){return new(jyi.createActorClass(e,t,this.client))}async queryCall({canisterId:e,method:t,arg:r=new Uint8Array,sender:n=RT.Principal.anonymous(),targetSubnetId:i}){return(await this.client.queryCall({canisterId:e,method:t,payload:new Uint8Array(r),sender:n,effectivePrincipal:i?{subnetId:i}:void 0})).body}async updateCall({canisterId:e,method:t,arg:r=new Uint8Array,sender:n=RT.Principal.anonymous(),targetSubnetId:i}){return(await this.client.updateCall({canisterId:e,method:t,payload:new Uint8Array(r),sender:n,effectivePrincipal:i?{subnetId:i}:void 0})).body}async tearDown(){await this.client.deleteInstance()}async tick(e=1){for(let t=0;t<e;t++)await this.client.tick()}async getTime(){let{millisSinceEpoch:e}=await this.client.getTime();return e}async resetTime(){await this.setTime(Date.now())}async setTime(e){if(e instanceof Date)e=e.getTime();await this.client.setTime({millisSinceEpoch:e})}async advanceTime(e){let r=await this.getTime()+e;await this.setTime(r)}async getPubKey(e){return await this.client.getPubKey({subnetId:e})}async getCanisterSubnetId(e){let{subnetId:t}=await this.client.getSubnetId({canisterId:e});return t}getTopology(){return Object.values(this.client.getTopology())}getBitcoinSubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.Bitcoin)}getFiduciarySubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.Fiduciary)}getInternetIdentitySubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.InternetIdentity)}getNnsSubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.NNS)}getSnsSubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.SNS)}getApplicationSubnets(){return this.getTopology().filter((e)=>e.type===O$.SubnetType.Application)}getSystemSubnets(){return this.getTopology().filter((e)=>e.type===O$.SubnetType.System)}async getCyclesBalance(e){let{cycles:t}=await this.client.getCyclesBalance({canisterId:e});return t}async addCycles(e,t){let{cycles:r}=await this.client.addCycles({canisterId:e,amount:t});return r}async setStableMemory(e,t){let{blobId:r}=await this.client.uploadBlob({blob:new Uint8Array(t)});await this.client.setStableMemory({canisterId:e,blobId:r})}async getStableMemory(e){let{blob:t}=await this.client.getStableMemory({canisterId:e});return t}}HYt.PocketIc=uLe});var rHt=he((eHt)=>{var __dirname="/Users/shamil/dev/ic/mops/cli/node_modules/pic-ic/dist";Object.defineProperty(eHt,"__esModule",{value:!0});eHt.PocketIcServer=void 0;var Kyi=Rt("node:child_process"),Uyi=Rt("node:path"),oLe=Rt("node:fs"),a7e=n7e(),Bw=jG(),Zyi=Rt("node:stream");class lLe{serverProcess;url;constructor(e,t){this.serverProcess=e,this.url=`http://127.0.0.1:${t}`}static async start(e={}){let t=e.binPath||this.getBinPath();await this.assertBinExists(t);let r=process.ppid,n=`pocket_ic_${r}`,i=Bw.tmpFile(`${n}.port`),a=Bw.tmpFile(`${n}.ready`),u=Kyi.spawn(t,["--pid",r.toString(),"--ttl",e.ttl?e.ttl.toString():"60"]);if(e.showRuntimeLogs)u.stdout.pipe(process.stdout);else u.stdout.pipe(new sLe);if(e.showCanisterLogs)u.stderr.pipe(process.stderr);else u.stderr.pipe(new sLe);return u.on("error",(s)=>{if(Bw.isArm()&&Bw.isDarwin())throw new a7e.BinStartMacOSArmError(s);throw new a7e.BinStartError(s)}),await Bw.poll(async()=>{if(await Bw.exists(a)){let l=await Bw.readFileAsString(i),h=parseInt(l);return new lLe(u,h)}throw new a7e.BinTimeoutError},{intervalMs:Oyi,timeoutMs:Qyi})}getUrl(){return this.url}async stop(){return new Promise((e,t)=>{this.serverProcess.on("exit",()=>{e()}),this.serverProcess.on("error",(n)=>{t(n)}),this.serverProcess.kill();let r=`pocket_ic_${process.ppid}`;oLe.rmSync(Bw.tmpFile(`${r}.port`),{force:!0}),oLe.rmSync(Bw.tmpFile(`${r}.ready`),{force:!0})})}static getBinPath(){return Uyi.resolve(__dirname,"..","pocket-ic")}static async assertBinExists(e){if(!await Bw.exists(e))throw new a7e.BinNotFoundError(e);oLe.chmodSync(e,448)}}eHt.PocketIcServer=lLe;var Oyi=20,Qyi=5000;class sLe extends Zyi.Writable{_write(e,t,r){r()}}});var iHt=he((nHt)=>{Object.defineProperty(nHt,"__esModule",{value:!0})});var _Le=he((u4)=>{var Wyi=u4&&u4.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),MX=u4&&u4.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))Wyi(t,e,r)};Object.defineProperty(u4,"__esModule",{value:!0});MX(iYt(),u4);MX(eLe(),u4);MX(RYt(),u4);MX(aLe(),u4);MX(rHt(),u4);MX(iHt(),u4)});var ELe=he((zW0,MHt)=>{function m4i(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=u,r.humanize=oze(),r.destroy=h,Object.keys(e).forEach((_)=>{r[_]=e[_]}),r.names=[],r.skips=[],r.formatters={};function t(_){let p=0;for(let f=0;f<_.length;f++)p=(p<<5)-p+_.charCodeAt(f),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(_){let p,f=null,m,d;function x(...T){if(!x.enabled)return;let A=x,F=Number(new Date),b=F-(p||F);if(A.diff=b,A.prev=p,A.curr=F,p=F,T[0]=r.coerce(T[0]),typeof T[0]!=="string")T.unshift("%O");let N=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(P,q)=>{if(P==="%%")return"%";N++;let $=r.formatters[q];if(typeof $==="function"){let M=T[N];P=$.call(A,M),T.splice(N,1),N--}return P}),r.formatArgs.call(A,T),(A.log||r.log).apply(A,T)}if(x.namespace=_,x.useColors=r.useColors(),x.color=r.selectColor(_),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(f!==null)return f;if(m!==r.namespaces)m=r.namespaces,d=r.enabled(_);return d},set:(T)=>{f=T}}),typeof r.init==="function")r.init(x);return x}function n(_,p){let f=r(this.namespace+(typeof p==="undefined"?":":p)+_);return f.log=this.log,f}function i(_){r.save(_),r.namespaces=_,r.names=[],r.skips=[];let p,f=(typeof _==="string"?_:"").split(/[\s,]+/),m=f.length;for(p=0;p<m;p++){if(!f[p])continue;if(_=f[p].replace(/\*/g,".*?"),_[0]==="-")r.skips.push(new RegExp("^"+_.slice(1)+"$"));else r.names.push(new RegExp("^"+_+"$"))}}function a(){let _=[...r.names.map(s),...r.skips.map(s).map((p)=>"-"+p)].join(",");return r.enable(""),_}function u(_){if(_[_.length-1]==="*")return!0;let p,f;for(p=0,f=r.skips.length;p<f;p++)if(r.skips[p].test(_))return!1;for(p=0,f=r.names.length;p<f;p++)if(r.names[p].test(_))return!0;return!1}function s(_){return _.toString().substring(2,_.toString().length-2).replace(/\.\*\?$/,"*")}function l(_){if(_ instanceof Error)return _.stack||_.message;return _}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}MHt.exports=m4i});var VHt=he((zHt,w7e)=>{zHt.formatArgs=y4i;zHt.save=g4i;zHt.load=x4i;zHt.useColors=d4i;zHt.storage=v4i();zHt.destroy=(()=>{let e=!1;return()=>{if(!e)e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();zHt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function d4i(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function y4i(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+w7e.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,(i)=>{if(i==="%%")return;if(r++,i==="%c")n=r}),e.splice(n,0,t)}zHt.log=console.debug||console.log||(()=>{});function g4i(e){try{if(e)zHt.storage.setItem("debug",e);else zHt.storage.removeItem("debug")}catch(t){}}function x4i(){let e;try{e=zHt.storage.getItem("debug")}catch(t){}if(!e&&typeof process!=="undefined"&&"env"in process)e=process.env.DEBUG;return e}function v4i(){try{return localStorage}catch(e){}}w7e.exports=ELe()(zHt);var{formatters:D4i}=w7e.exports;D4i.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var XHt=he((LW0,LHt)=>{LHt.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var UHt=he((XW0,KHt)=>{var F4i=Rt("os"),jHt=Rt("tty"),o4=XHt(),{env:O2}=process,US;if(o4("no-color")||o4("no-colors")||o4("color=false")||o4("color=never"))US=0;else if(o4("color")||o4("colors")||o4("color=true")||o4("color=always"))US=1;if("FORCE_COLOR"in O2)if(O2.FORCE_COLOR==="true")US=1;else if(O2.FORCE_COLOR==="false")US=0;else US=O2.FORCE_COLOR.length===0?1:Math.min(parseInt(O2.FORCE_COLOR,10),3);function kLe(e){if(e===0)return!1;return{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function FLe(e,t){if(US===0)return 0;if(o4("color=16m")||o4("color=full")||o4("color=truecolor"))return 3;if(o4("color=256"))return 2;if(e&&!t&&US===void 0)return 0;let r=US||0;if(O2.TERM==="dumb")return r;if(process.platform==="win32"){let n=F4i.release().split(".");if(Number(n[0])>=10&&Number(n[2])>=10586)return Number(n[2])>=14931?3:2;return 1}if("CI"in O2){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((n)=>(n in O2))||O2.CI_NAME==="codeship")return 1;return r}if("TEAMCITY_VERSION"in O2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O2.TEAMCITY_VERSION)?1:0;if(O2.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O2){let n=parseInt((O2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O2.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(O2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O2.TERM))return 1;if("COLORTERM"in O2)return 1;return r}function S4i(e){let t=FLe(e,e&&e.isTTY);return kLe(t)}KHt.exports={supportsColor:S4i,stdout:kLe(FLe(!0,jHt.isatty(1))),stderr:kLe(FLe(!0,jHt.isatty(2)))}});var WHt=he((OHt,b7e)=>{var P4i=Rt("tty"),A7e=Rt("util");OHt.init=M4i;OHt.log=$4i;OHt.formatArgs=B4i;OHt.save=J4i;OHt.load=I4i;OHt.useColors=N4i;OHt.destroy=A7e.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");OHt.colors=[6,2,3,4,5,1];try{let e=UHt();if(e&&(e.stderr||e).level>=2)OHt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(e){}OHt.inspectOpts=Object.keys(process.env).filter((e)=>{return/^debug_/i.test(e)}).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,a)=>{return a.toUpperCase()}),n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=!0;else if(/^(no|off|false|disabled)$/i.test(n))n=!1;else if(n==="null")n=null;else n=Number(n);return e[r]=n,e},{});function N4i(){return"colors"in OHt.inspectOpts?Boolean(OHt.inspectOpts.colors):P4i.isatty(process.stderr.fd)}function B4i(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${i};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
|
|
362
|
+
${e.stack}`,{cause:e})}}CYt.BinStartMacOSArmError=vYt;class DYt extends Error{constructor(e){super(`Could not find the PocketIC binary. The PocketIC binary could not be found at ${e}. Please try installing @hadronous/pic again.`)}}CYt.BinNotFoundError=DYt;class wYt extends Error{constructor(){super("The PocketIC binary took too long to start. Please try again.")}}CYt.BinTimeoutError=wYt;class AYt extends Error{constructor(){super("A request to the PocketIC server timed out.")}}CYt.ServerRequestTimeoutError=AYt;class bYt extends Error{constructor(){super("This PocketIC instance has been torn down. Please create a new instance before interacting further with PocketIC.")}}CYt.InstanceDeletedError=bYt;class TYt extends Error{constructor(){super("The provided subnet configuration is invalid. At least one subnet must be configured and the number of both application and system subnets must be at least 0 (non-negative).")}}CYt.TopologyValidationError=TYt});var NYt=he((SYt)=>{Object.defineProperty(SYt,"__esModule",{value:!0});SYt.Http2Client=SYt.JSON_HEADER=void 0;var kYt=n7e(),KG=jG();SYt.JSON_HEADER={"Content-Type":"application/json"};class FYt{baseUrl;processingTimeoutMs;constructor(e,t){this.baseUrl=e,this.processingTimeoutMs=t}request(e){let t=new AbortController,r=new AbortController,n=async()=>{return await new Promise((a,u)=>{let s=setTimeout(()=>{r.abort(),u(new kYt.ServerRequestTimeoutError)},this.processingTimeoutMs);t.signal.addEventListener("abort",()=>{clearTimeout(s),u(new kYt.ServerRequestTimeoutError)})})},i=async()=>{let a=`${this.baseUrl}${e.path}`,u=await fetch(a,{method:e.method,headers:e.headers,body:e.body,signal:r.signal});return t.abort(),u};return Promise.race([i(),n()])}async jsonGet(e){return await KG.poll(async()=>{let t=await this.request({method:"GET",path:e.path,headers:{...e.headers,...SYt.JSON_HEADER}}),r=await t.json();if(!r)return r;if("message"in r)throw console.error("PocketIC server encountered an error",r.message),new Error(r.message);if("state_label"in r){if(t.status===409)throw new Error("Server busy");if(t.status===202)throw new Error("Server started processing");throw new Error("Unknown state")}return r},{intervalMs:rLe,timeoutMs:this.processingTimeoutMs})}async jsonPost(e){let t=e.body?new TextEncoder().encode(JSON.stringify(e.body)):void 0;return await KG.poll(async()=>{let r=await this.request({method:"POST",path:e.path,headers:{...e.headers,...SYt.JSON_HEADER},body:t}),n=await r.json();if(KG.isNil(n))return n;if("message"in n)throw console.error("PocketIC server encountered an error",n.message),new Error(n.message);if("state_label"in n){if(r.status===409)throw new Error("Server busy");if(r.status===202)return await KG.poll(async()=>{let a=await(await this.request({method:"GET",path:`/read_graph/${n.state_label}/${n.op_id}`})).json();if(KG.isNil(a)||"message"in a||"state_label"in a)throw new Error("Polling has not succeeded yet");return a},{intervalMs:rLe,timeoutMs:this.processingTimeoutMs});throw new Error("Unknown state")}return n},{intervalMs:rLe,timeoutMs:this.processingTimeoutMs})}}SYt.Http2Client=FYt;var rLe=10});var LYt=he((zYt)=>{Object.defineProperty(zYt,"__esModule",{value:!0});zYt.SubnetType=zYt.SubnetStateType=void 0;zYt.encodeCreateInstanceRequest=Bdi;zYt.encodeGetPubKeyRequest=qdi;zYt.decodeInstanceTopology=$di;zYt.decodeSubnetTopology=JYt;zYt.decodeSubnetKind=IYt;zYt.decodeGetTimeResponse=Jdi;zYt.encodeSetTimeRequest=Idi;zYt.encodeGetSubnetIdRequest=Mdi;zYt.decodeGetSubnetIdResponse=zdi;zYt.encodeGetCyclesBalanceRequest=Vdi;zYt.decodeGetCyclesBalanceResponse=Ldi;zYt.encodeAddCyclesRequest=Xdi;zYt.decodeAddCyclesResponse=jdi;zYt.encodeUploadBlobRequest=Kdi;zYt.decodeUploadBlobResponse=Udi;zYt.encodeSetStableMemoryRequest=Zdi;zYt.encodeGetStableMemoryRequest=Odi;zYt.decodeGetStableMemoryResponse=Qdi;zYt.encodeEffectivePrincipal=MYt;zYt.encodeCanisterCallRequest=Wdi;zYt.decodeCanisterCallResponse=Ydi;var Pdi=dc(),Vs=jG(),Ndi=n7e(),UG;(function(e){e.New="new",e.FromPath="fromPath"})(UG||(zYt.SubnetStateType=UG={}));function BYt(e=[]){return e.map(IX).filter(Vs.isNotNil)}function IX(e){if(Vs.isNil(e))return;switch(e.state.type){default:return;case UG.New:return{dts_flag:qYt(e.enableDeterministicTimeSlicing),instruction_config:$Yt(e.enableBenchmarkingInstructionLimits),state_config:"New"};case UG.FromPath:return{dts_flag:qYt(e.enableDeterministicTimeSlicing),instruction_config:$Yt(e.enableBenchmarkingInstructionLimits),state_config:{FromPath:[e.state.path,{subnet_id:Vs.base64EncodePrincipal(e.state.subnetId)}]}}}}function qYt(e){return e===!1?"Disabled":"Enabled"}function $Yt(e){return e===!0?"Benchmarking":"Production"}function Bdi(e){let t={state:{type:UG.New}},r=e??{application:[t]},n={nns:IX(r.nns),sns:IX(r.sns),ii:IX(r.ii),fiduciary:IX(r.fiduciary),bitcoin:IX(r.bitcoin),system:BYt(r.system),application:BYt(r.application??[t])};if(Vs.isNil(n.nns)&&Vs.isNil(n.sns)&&Vs.isNil(n.ii)&&Vs.isNil(n.fiduciary)&&Vs.isNil(n.bitcoin)&&n.system.length===0&&n.application.length===0||n.system.length<0||n.application.length<0)throw new Ndi.TopologyValidationError;return n}function qdi(e){return{subnet_id:Vs.base64EncodePrincipal(e.subnetId)}}var GT;(function(e){e.Application="Application",e.Bitcoin="Bitcoin",e.Fiduciary="Fiduciary",e.InternetIdentity="II",e.NNS="NNS",e.SNS="SNS",e.System="System"})(GT||(zYt.SubnetType=GT={}));function $di(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,JYt(t,r)]))}function JYt(e,t){return{id:Pdi.Principal.fromText(e),type:IYt(t.subnet_kind),size:t.size,canisterRanges:t.canister_ranges.map((r)=>({start:Vs.base64DecodePrincipal(r.start.canister_id),end:Vs.base64DecodePrincipal(r.end.canister_id)}))}}function IYt(e){switch(e){case"Application":return GT.Application;case"Bitcoin":return GT.Bitcoin;case"Fiduciary":return GT.Fiduciary;case"II":return GT.InternetIdentity;case"NNS":return GT.NNS;case"SNS":return GT.SNS;case"System":return GT.System;default:throw new Error(`Unknown subnet kind: ${e}`)}}function Jdi(e){return{millisSinceEpoch:e.nanos_since_epoch/1e6}}function Idi(e){return{nanos_since_epoch:e.millisSinceEpoch*1e6}}function Mdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId)}}function zdi(e){if(Vs.isNil(e))return{subnetId:null};if("subnet_id"in e)return{subnetId:Vs.base64DecodePrincipal(e.subnet_id)};return{subnetId:null}}function Vdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId)}}function Ldi(e){return{cycles:e.cycles}}function Xdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId),amount:e.amount}}function jdi(e){return{cycles:e.cycles}}function Kdi(e){return e.blob}function Udi(e){return{blobId:new Uint8Array(Vs.hexDecode(e))}}function Zdi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId),blob_id:Vs.base64Encode(e.blobId)}}function Odi(e){return{canister_id:Vs.base64EncodePrincipal(e.canisterId)}}function Qdi(e){return{blob:Vs.base64Decode(e.blob)}}function MYt(e){if(Vs.isNil(e))return"None";if("subnetId"in e)return{SubnetId:Vs.base64EncodePrincipal(e.subnetId)};else return{CanisterId:Vs.base64EncodePrincipal(e.canisterId)}}function Wdi(e){return{sender:Vs.base64EncodePrincipal(e.sender),canister_id:Vs.base64EncodePrincipal(e.canisterId),method:e.method,payload:Vs.base64Encode(e.payload),effective_principal:MYt(e.effectivePrincipal)}}function Ydi(e){if("Err"in e)throw new Error(e.Err.description);if("Reject"in e.Ok)throw new Error(e.Ok.Reject);return{body:Vs.base64Decode(e.Ok.Reply)}}});var KYt=he((XYt)=>{Object.defineProperty(XYt,"__esModule",{value:!0});XYt.PocketIcClient=void 0;var xyi=NYt(),Z2=LYt(),vyi=1e4;class iLe{serverClient;instancePath;topology;isInstanceDeleted=!1;constructor(e,t,r){this.serverClient=e,this.instancePath=t,this.topology=r}static async create(e,t){let r=t?.processingTimeoutMs??vyi,n=new xyi.Http2Client(e,r),i=await n.jsonPost({path:"/instances",body:Z2.encodeCreateInstanceRequest(t)});if("Error"in i)throw console.error("Error creating instance",i.Error.message),new Error(i.Error.message);let a=Z2.decodeInstanceTopology(i.Created.topology),u=i.Created.instance_id;return new iLe(n,`/instances/${u}`,a)}async deleteInstance(){this.assertInstanceNotDeleted(),await this.serverClient.request({method:"DELETE",path:this.instancePath}),this.isInstanceDeleted=!0}async tick(){return this.assertInstanceNotDeleted(),await this.post("/update/tick")}async getPubKey(e){return this.assertInstanceNotDeleted(),await this.post("/read/pub_key",Z2.encodeGetPubKeyRequest(e))}getTopology(){return this.topology}async getTime(){this.assertInstanceNotDeleted();let e=await this.get("/read/get_time");return Z2.decodeGetTimeResponse(e)}async setTime(e){this.assertInstanceNotDeleted(),await this.post("/update/set_time",Z2.encodeSetTimeRequest(e))}async getSubnetId(e){this.assertInstanceNotDeleted();let t=await this.post("/read/get_subnet",Z2.encodeGetSubnetIdRequest(e));return Z2.decodeGetSubnetIdResponse(t)}async getCyclesBalance(e){this.assertInstanceNotDeleted();let t=await this.post("/read/get_cycles",Z2.encodeGetCyclesBalanceRequest(e));return Z2.decodeGetCyclesBalanceResponse(t)}async addCycles(e){this.assertInstanceNotDeleted();let t=await this.post("/update/add_cycles",Z2.encodeAddCyclesRequest(e));return Z2.decodeAddCyclesResponse(t)}async uploadBlob(e){this.assertInstanceNotDeleted();let r=await(await this.serverClient.request({method:"POST",path:"/blobstore",body:Z2.encodeUploadBlobRequest(e)})).text();return Z2.decodeUploadBlobResponse(r)}async setStableMemory(e){this.assertInstanceNotDeleted(),await this.serverClient.jsonPost({path:`${this.instancePath}/update/set_stable_memory`,body:Z2.encodeSetStableMemoryRequest(e)})}async getStableMemory(e){this.assertInstanceNotDeleted();let t=await this.post("/read/get_stable_memory",Z2.encodeGetStableMemoryRequest(e));return Z2.decodeGetStableMemoryResponse(t)}async updateCall(e){return this.assertInstanceNotDeleted(),await this.canisterCall("/update/execute_ingress_message",e)}async queryCall(e){return this.assertInstanceNotDeleted(),await this.canisterCall("/read/query",e)}async canisterCall(e,t){let r=await this.post(e,Z2.encodeCanisterCallRequest(t));return Z2.decodeCanisterCallResponse(r)}async post(e,t){return await this.serverClient.jsonPost({path:`${this.instancePath}${e}`,body:t})}async get(e){return await this.serverClient.jsonGet({path:`${this.instancePath}${e}`})}assertInstanceNotDeleted(){if(this.isInstanceDeleted)throw new Error("Instance was deleted")}}XYt.PocketIcClient=iLe});var aLe=he((OYt)=>{Object.defineProperty(OYt,"__esModule",{value:!0});OYt.SubnetType=OYt.SubnetStateType=void 0;var UYt;(function(e){e.New="new",e.FromPath="fromPath"})(UYt||(OYt.SubnetStateType=UYt={}));var ZYt;(function(e){e.Application="Application",e.Bitcoin="Bitcoin",e.Fiduciary="Fiduciary",e.InternetIdentity="II",e.NNS="NNS",e.SNS="SNS",e.System="System"})(ZYt||(OYt.SubnetType=ZYt={}))});var YYt=he((WYt)=>{Object.defineProperty(WYt,"__esModule",{value:!0});WYt.CanisterSettings=WYt.MANAGEMENT_CANISTER_ID=void 0;WYt.encodeCreateCanisterRequest=byi;WYt.decodeCreateCanisterResponse=Cyi;WYt.encodeStartCanisterRequest=kyi;WYt.encodeStopCanisterRequest=Syi;WYt.encodeInstallCodeRequest=Nyi;WYt.encodeUpdateCanisterSettingsRequest=qyi;var _u=Yk(),wyi=dc();WYt.MANAGEMENT_CANISTER_ID=wyi.Principal.fromText("aaaaa-aa");WYt.CanisterSettings=_u.IDL.Record({controllers:_u.IDL.Opt(_u.IDL.Vec(_u.IDL.Principal)),compute_allocation:_u.IDL.Opt(_u.IDL.Nat),memory_allocation:_u.IDL.Opt(_u.IDL.Nat),freezing_threshold:_u.IDL.Opt(_u.IDL.Nat),reserved_cycles_limit:_u.IDL.Opt(_u.IDL.Nat)});var Ayi=_u.IDL.Record({settings:_u.IDL.Opt(WYt.CanisterSettings),amount:_u.IDL.Opt(_u.IDL.Nat),specified_id:_u.IDL.Opt(_u.IDL.Principal)});function byi(e){return new Uint8Array(_u.IDL.encode([Ayi],[e]))}var Tyi=_u.IDL.Record({canister_id:_u.IDL.Principal});function Cyi(e){let[t]=_u.IDL.decode([Tyi],e);return t}var Eyi=_u.IDL.Record({canister_id:_u.IDL.Principal});function kyi(e){return new Uint8Array(_u.IDL.encode([Eyi],[e]))}var Fyi=_u.IDL.Record({canister_id:_u.IDL.Principal});function Syi(e){return new Uint8Array(_u.IDL.encode([Fyi],[e]))}var Pyi=_u.IDL.Record({arg:_u.IDL.Vec(_u.IDL.Nat8),wasm_module:_u.IDL.Vec(_u.IDL.Nat8),mode:_u.IDL.Variant({reinstall:_u.IDL.Null,upgrade:_u.IDL.Null,install:_u.IDL.Null}),canister_id:_u.IDL.Principal});function Nyi(e){return new Uint8Array(_u.IDL.encode([Pyi],[e]))}var Byi=_u.IDL.Record({canister_id:_u.IDL.Principal,settings:WYt.CanisterSettings});function qyi(e){return new Uint8Array(_u.IDL.encode([Byi],[e]))}});var RYt=he((HYt)=>{Object.defineProperty(HYt,"__esModule",{value:!0});HYt.PocketIc=void 0;var RT=dc(),Pm=jG(),Xyi=KYt(),jyi=eLe(),O$=aLe(),s7=YYt();class uLe{client;constructor(e){this.client=e}static async create(e,t){let r=await Xyi.PocketIcClient.create(e,t);return new uLe(r)}async setupCanister({sender:e,arg:t,wasm:r,idlFactory:n,computeAllocation:i,controllers:a,cycles:u,freezingThreshold:s,memoryAllocation:l,targetCanisterId:h,targetSubnetId:_,reservedCyclesLimit:p}){let f=await this.createCanister({computeAllocation:i,controllers:a,cycles:u,freezingThreshold:s,memoryAllocation:l,reservedCyclesLimit:p,targetCanisterId:h,targetSubnetId:_,sender:e});return await this.installCode({canisterId:f,wasm:r,arg:t,sender:e,targetSubnetId:_}),{actor:this.createActor(n,f),canisterId:f}}async createCanister({sender:e=RT.Principal.anonymous(),cycles:t=1000000000000000000n,controllers:r,computeAllocation:n,freezingThreshold:i,memoryAllocation:a,reservedCyclesLimit:u,targetCanisterId:s,targetSubnetId:l}={}){let h=s7.encodeCreateCanisterRequest({settings:[{controllers:Pm.optional(r),compute_allocation:Pm.optional(n),memory_allocation:Pm.optional(a),freezing_threshold:Pm.optional(i),reserved_cycles_limit:Pm.optional(u)}],amount:[t],specified_id:Pm.optional(s)}),_=await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:e,method:"provisional_create_canister_with_cycles",payload:h,effectivePrincipal:l?{subnetId:l}:void 0});return s7.decodeCreateCanisterResponse(_.body).canister_id}async startCanister({canisterId:e,sender:t=RT.Principal.anonymous(),targetSubnetId:r}){let n=s7.encodeStartCanisterRequest({canister_id:e});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:t,method:"start_canister",payload:n,effectivePrincipal:r?{subnetId:r}:void 0})}async stopCanister({canisterId:e,sender:t=RT.Principal.anonymous(),targetSubnetId:r}){let n=s7.encodeStartCanisterRequest({canister_id:e});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:t,method:"stop_canister",payload:n,effectivePrincipal:r?{subnetId:r}:void 0})}async installCode({arg:e=new Uint8Array,sender:t=RT.Principal.anonymous(),canisterId:r,wasm:n,targetSubnetId:i}){if(typeof n==="string")n=await Pm.readFileAsBytes(n);let a=s7.encodeInstallCodeRequest({arg:new Uint8Array(e),canister_id:r,mode:{install:null},wasm_module:new Uint8Array(n)});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:t,method:"install_code",payload:a,effectivePrincipal:i?{subnetId:i}:void 0})}async reinstallCode({sender:e=RT.Principal.anonymous(),arg:t=new Uint8Array,canisterId:r,wasm:n}){if(typeof n==="string")n=await Pm.readFileAsBytes(n);let i=s7.encodeInstallCodeRequest({arg:new Uint8Array(t),canister_id:r,mode:{reinstall:null},wasm_module:new Uint8Array(n)});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:e,method:"install_code",payload:i})}async upgradeCanister({sender:e=RT.Principal.anonymous(),arg:t=new Uint8Array,canisterId:r,wasm:n}){if(typeof n==="string")n=await Pm.readFileAsBytes(n);let i=s7.encodeInstallCodeRequest({arg:new Uint8Array(t),canister_id:r,mode:{upgrade:null},wasm_module:new Uint8Array(n)});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:e,method:"install_code",payload:i})}async updateCanisterSettings({canisterId:e,computeAllocation:t,controllers:r,freezingThreshold:n,memoryAllocation:i,reservedCyclesLimit:a,sender:u=RT.Principal.anonymous()}){let s=s7.encodeUpdateCanisterSettingsRequest({canister_id:e,settings:{controllers:Pm.optional(r),compute_allocation:Pm.optional(t),memory_allocation:Pm.optional(i),freezing_threshold:Pm.optional(n),reserved_cycles_limit:Pm.optional(a)}});await this.client.updateCall({canisterId:s7.MANAGEMENT_CANISTER_ID,sender:u,method:"update_settings",payload:s})}createActor(e,t){return new(jyi.createActorClass(e,t,this.client))}async queryCall({canisterId:e,method:t,arg:r=new Uint8Array,sender:n=RT.Principal.anonymous(),targetSubnetId:i}){return(await this.client.queryCall({canisterId:e,method:t,payload:new Uint8Array(r),sender:n,effectivePrincipal:i?{subnetId:i}:void 0})).body}async updateCall({canisterId:e,method:t,arg:r=new Uint8Array,sender:n=RT.Principal.anonymous(),targetSubnetId:i}){return(await this.client.updateCall({canisterId:e,method:t,payload:new Uint8Array(r),sender:n,effectivePrincipal:i?{subnetId:i}:void 0})).body}async tearDown(){await this.client.deleteInstance()}async tick(e=1){for(let t=0;t<e;t++)await this.client.tick()}async getTime(){let{millisSinceEpoch:e}=await this.client.getTime();return e}async resetTime(){await this.setTime(Date.now())}async setTime(e){if(e instanceof Date)e=e.getTime();await this.client.setTime({millisSinceEpoch:e})}async advanceTime(e){let r=await this.getTime()+e;await this.setTime(r)}async getPubKey(e){return await this.client.getPubKey({subnetId:e})}async getCanisterSubnetId(e){let{subnetId:t}=await this.client.getSubnetId({canisterId:e});return t}getTopology(){return Object.values(this.client.getTopology())}getBitcoinSubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.Bitcoin)}getFiduciarySubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.Fiduciary)}getInternetIdentitySubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.InternetIdentity)}getNnsSubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.NNS)}getSnsSubnet(){return this.getTopology().find((e)=>e.type===O$.SubnetType.SNS)}getApplicationSubnets(){return this.getTopology().filter((e)=>e.type===O$.SubnetType.Application)}getSystemSubnets(){return this.getTopology().filter((e)=>e.type===O$.SubnetType.System)}async getCyclesBalance(e){let{cycles:t}=await this.client.getCyclesBalance({canisterId:e});return t}async addCycles(e,t){let{cycles:r}=await this.client.addCycles({canisterId:e,amount:t});return r}async setStableMemory(e,t){let{blobId:r}=await this.client.uploadBlob({blob:new Uint8Array(t)});await this.client.setStableMemory({canisterId:e,blobId:r})}async getStableMemory(e){let{blob:t}=await this.client.getStableMemory({canisterId:e});return t}}HYt.PocketIc=uLe});var rHt=he((eHt)=>{Object.defineProperty(eHt,"__esModule",{value:!0});eHt.PocketIcServer=void 0;var Kyi=Rt("node:child_process"),Uyi=Rt("node:path"),oLe=Rt("node:fs"),a7e=n7e(),Bw=jG(),Zyi=Rt("node:stream");class lLe{serverProcess;url;constructor(e,t){this.serverProcess=e,this.url=`http://127.0.0.1:${t}`}static async start(e={}){let t=e.binPath||this.getBinPath();await this.assertBinExists(t);let r=process.ppid,n=`pocket_ic_${r}`,i=Bw.tmpFile(`${n}.port`),a=Bw.tmpFile(`${n}.ready`),u=Kyi.spawn(t,["--pid",r.toString(),"--ttl",e.ttl?e.ttl.toString():"60"]);if(e.showRuntimeLogs)u.stdout.pipe(process.stdout);else u.stdout.pipe(new sLe);if(e.showCanisterLogs)u.stderr.pipe(process.stderr);else u.stderr.pipe(new sLe);return u.on("error",(s)=>{if(Bw.isArm()&&Bw.isDarwin())throw new a7e.BinStartMacOSArmError(s);throw new a7e.BinStartError(s)}),await Bw.poll(async()=>{if(await Bw.exists(a)){let l=await Bw.readFileAsString(i),h=parseInt(l);return new lLe(u,h)}throw new a7e.BinTimeoutError},{intervalMs:Oyi,timeoutMs:Qyi})}getUrl(){return this.url}async stop(){return new Promise((e,t)=>{this.serverProcess.on("exit",()=>{e()}),this.serverProcess.on("error",(n)=>{t(n)}),this.serverProcess.kill();let r=`pocket_ic_${process.ppid}`;oLe.rmSync(Bw.tmpFile(`${r}.port`),{force:!0}),oLe.rmSync(Bw.tmpFile(`${r}.ready`),{force:!0})})}static getBinPath(){return Uyi.resolve("import.meta.dirname","..","pocket-ic")}static async assertBinExists(e){if(!await Bw.exists(e))throw new a7e.BinNotFoundError(e);oLe.chmodSync(e,448)}}eHt.PocketIcServer=lLe;var Oyi=20,Qyi=5000;class sLe extends Zyi.Writable{_write(e,t,r){r()}}});var iHt=he((nHt)=>{Object.defineProperty(nHt,"__esModule",{value:!0})});var _Le=he((u4)=>{var Wyi=u4&&u4.__createBinding||(Object.create?function(e,t,r,n){if(n===void 0)n=r;var i=Object.getOwnPropertyDescriptor(t,r);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return t[r]}};Object.defineProperty(e,n,i)}:function(e,t,r,n){if(n===void 0)n=r;e[n]=t[r]}),MX=u4&&u4.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))Wyi(t,e,r)};Object.defineProperty(u4,"__esModule",{value:!0});MX(iYt(),u4);MX(eLe(),u4);MX(RYt(),u4);MX(aLe(),u4);MX(rHt(),u4);MX(iHt(),u4)});var ELe=he((zW0,MHt)=>{function m4i(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=u,r.humanize=oze(),r.destroy=h,Object.keys(e).forEach((_)=>{r[_]=e[_]}),r.names=[],r.skips=[],r.formatters={};function t(_){let p=0;for(let f=0;f<_.length;f++)p=(p<<5)-p+_.charCodeAt(f),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(_){let p,f=null,m,d;function x(...T){if(!x.enabled)return;let A=x,F=Number(new Date),b=F-(p||F);if(A.diff=b,A.prev=p,A.curr=F,p=F,T[0]=r.coerce(T[0]),typeof T[0]!=="string")T.unshift("%O");let N=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(P,q)=>{if(P==="%%")return"%";N++;let $=r.formatters[q];if(typeof $==="function"){let M=T[N];P=$.call(A,M),T.splice(N,1),N--}return P}),r.formatArgs.call(A,T),(A.log||r.log).apply(A,T)}if(x.namespace=_,x.useColors=r.useColors(),x.color=r.selectColor(_),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(f!==null)return f;if(m!==r.namespaces)m=r.namespaces,d=r.enabled(_);return d},set:(T)=>{f=T}}),typeof r.init==="function")r.init(x);return x}function n(_,p){let f=r(this.namespace+(typeof p==="undefined"?":":p)+_);return f.log=this.log,f}function i(_){r.save(_),r.namespaces=_,r.names=[],r.skips=[];let p,f=(typeof _==="string"?_:"").split(/[\s,]+/),m=f.length;for(p=0;p<m;p++){if(!f[p])continue;if(_=f[p].replace(/\*/g,".*?"),_[0]==="-")r.skips.push(new RegExp("^"+_.slice(1)+"$"));else r.names.push(new RegExp("^"+_+"$"))}}function a(){let _=[...r.names.map(s),...r.skips.map(s).map((p)=>"-"+p)].join(",");return r.enable(""),_}function u(_){if(_[_.length-1]==="*")return!0;let p,f;for(p=0,f=r.skips.length;p<f;p++)if(r.skips[p].test(_))return!1;for(p=0,f=r.names.length;p<f;p++)if(r.names[p].test(_))return!0;return!1}function s(_){return _.toString().substring(2,_.toString().length-2).replace(/\.\*\?$/,"*")}function l(_){if(_ instanceof Error)return _.stack||_.message;return _}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}MHt.exports=m4i});var VHt=he((zHt,w7e)=>{zHt.formatArgs=y4i;zHt.save=g4i;zHt.load=x4i;zHt.useColors=d4i;zHt.storage=v4i();zHt.destroy=(()=>{let e=!1;return()=>{if(!e)e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();zHt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function d4i(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function y4i(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+w7e.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,(i)=>{if(i==="%%")return;if(r++,i==="%c")n=r}),e.splice(n,0,t)}zHt.log=console.debug||console.log||(()=>{});function g4i(e){try{if(e)zHt.storage.setItem("debug",e);else zHt.storage.removeItem("debug")}catch(t){}}function x4i(){let e;try{e=zHt.storage.getItem("debug")}catch(t){}if(!e&&typeof process!=="undefined"&&"env"in process)e=process.env.DEBUG;return e}function v4i(){try{return localStorage}catch(e){}}w7e.exports=ELe()(zHt);var{formatters:D4i}=w7e.exports;D4i.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var XHt=he((LW0,LHt)=>{LHt.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var UHt=he((XW0,KHt)=>{var F4i=Rt("os"),jHt=Rt("tty"),o4=XHt(),{env:O2}=process,US;if(o4("no-color")||o4("no-colors")||o4("color=false")||o4("color=never"))US=0;else if(o4("color")||o4("colors")||o4("color=true")||o4("color=always"))US=1;if("FORCE_COLOR"in O2)if(O2.FORCE_COLOR==="true")US=1;else if(O2.FORCE_COLOR==="false")US=0;else US=O2.FORCE_COLOR.length===0?1:Math.min(parseInt(O2.FORCE_COLOR,10),3);function kLe(e){if(e===0)return!1;return{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function FLe(e,t){if(US===0)return 0;if(o4("color=16m")||o4("color=full")||o4("color=truecolor"))return 3;if(o4("color=256"))return 2;if(e&&!t&&US===void 0)return 0;let r=US||0;if(O2.TERM==="dumb")return r;if(process.platform==="win32"){let n=F4i.release().split(".");if(Number(n[0])>=10&&Number(n[2])>=10586)return Number(n[2])>=14931?3:2;return 1}if("CI"in O2){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((n)=>(n in O2))||O2.CI_NAME==="codeship")return 1;return r}if("TEAMCITY_VERSION"in O2)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(O2.TEAMCITY_VERSION)?1:0;if(O2.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in O2){let n=parseInt((O2.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(O2.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(O2.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(O2.TERM))return 1;if("COLORTERM"in O2)return 1;return r}function S4i(e){let t=FLe(e,e&&e.isTTY);return kLe(t)}KHt.exports={supportsColor:S4i,stdout:kLe(FLe(!0,jHt.isatty(1))),stderr:kLe(FLe(!0,jHt.isatty(2)))}});var WHt=he((OHt,b7e)=>{var P4i=Rt("tty"),A7e=Rt("util");OHt.init=M4i;OHt.log=$4i;OHt.formatArgs=B4i;OHt.save=J4i;OHt.load=I4i;OHt.useColors=N4i;OHt.destroy=A7e.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");OHt.colors=[6,2,3,4,5,1];try{let e=UHt();if(e&&(e.stderr||e).level>=2)OHt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(e){}OHt.inspectOpts=Object.keys(process.env).filter((e)=>{return/^debug_/i.test(e)}).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,a)=>{return a.toUpperCase()}),n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=!0;else if(/^(no|off|false|disabled)$/i.test(n))n=!1;else if(n==="null")n=null;else n=Number(n);return e[r]=n,e},{});function N4i(){return"colors"in OHt.inspectOpts?Boolean(OHt.inspectOpts.colors):P4i.isatty(process.stderr.fd)}function B4i(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${i};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
|
|
363
363
|
`).join(`
|
|
364
364
|
`+a),e.push(i+"m+"+b7e.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=q4i()+t+" "+e[0]}function q4i(){if(OHt.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function $4i(...e){return process.stderr.write(A7e.formatWithOptions(OHt.inspectOpts,...e)+`
|
|
365
365
|
`)}function J4i(e){if(e)process.env.DEBUG=e;else delete process.env.DEBUG}function I4i(){return process.env.DEBUG}function M4i(e){e.inspectOpts={};let t=Object.keys(OHt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=OHt.inspectOpts[t[r]]}b7e.exports=ELe()(OHt);var{formatters:ZHt}=b7e.exports;ZHt.o=function(e){return this.inspectOpts.colors=this.useColors,A7e.inspect(e,this.inspectOpts).split(`
|
|
366
366
|
`).map((t)=>t.trim()).join(" ")};ZHt.O=function(e){return this.inspectOpts.colors=this.useColors,A7e.inspect(e,this.inspectOpts)}});var YHt=he((KW0,SLe)=>{if(typeof process==="undefined"||process.type==="renderer"||!1||process.__nwjs)SLe.exports=VHt();else SLe.exports=WHt()});var GGt=he((yea,sXe)=>{var H8i=function(){function e(t,r){var n=[],i=!0,a=!1,u=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done);i=!0)if(n.push(l.value),r&&n.length===r)break}catch(h){a=!0,u=h}finally{try{if(!i&&s.return)s.return()}finally{if(a)throw u}}return n}return function(t,r){if(Array.isArray(t))return t;else if(Symbol.iterator in Object(t))return e(t,r);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),z7e="[\x1B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]",HGt="\x00-\b\v-\x19\x1B\u2028\u2029\uFEFF︀-️",oXe=`
|
|
367
|
-
`+HGt,G8i=new RegExp("(?:"+z7e+")|["+HGt+"]","g"),aXe=new RegExp("(?:"+z7e+")|["+oXe+"]","g"),uXe=new RegExp("((?:"+z7e+")|[
|
|
367
|
+
`+HGt,G8i=new RegExp("(?:"+z7e+")|["+HGt+"]","g"),aXe=new RegExp("(?:"+z7e+")|["+oXe+"]","g"),uXe=new RegExp("((?:"+z7e+")|[\t"+oXe+"])?([^\t"+oXe+"]*)","g");sXe.exports={zeroWidthCharacters:aXe,ansiEscapeCodes:new RegExp(z7e,"g"),strlen:(e)=>Array.from(e.replace(aXe,"")).length,isBlank:(e)=>e.replace(aXe,"").replace(/\s/g,"").length===0,blank:(e)=>Array.from(e.replace(G8i,"")).map((t)=>t==="\t"||t===`
|
|
368
368
|
`?t:" ").join(""),partition(e){for(var t,r=[];uXe.lastIndex!==e.length&&(t=uXe.exec(e));)r.push([t[1]||"",t[2]]);return uXe.lastIndex=0,r},first(e,t){let r="",n=0;for(let a of sXe.exports.partition(e)){var i=H8i(a,2);let u=i[0],s=i[1],l=Array.from(s).slice(0,t-n);r+=u+l.join(""),n+=l.length}return r}}});var nRt=he((gea,rRt)=>{function QX(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var V7e=Object,eRt=GGt(),R8i=eRt.first,L7e=eRt.strlen,egi=(e,t)=>R8i(e,t-1)+"…",RGt=(e,t)=>{let r=(d,x)=>d.reduce((T,A)=>A.map((F,b)=>[].concat(QX(T[b]||[]),[F])),[]).map((T)=>x.apply(void 0,QX(T))),n=e.map((d)=>d.map((x)=>x.replace(/\n/g,"\\n"))),i=n.map((d)=>d.map(L7e)),a=r(i,Math.max),u=V7e.assign({delimiter:" ",minColumnWidths:a.map((d)=>0),maxTotalWidth:0},t),s=L7e(u.delimiter),l=a.reduce((d,x)=>d+x,0),h=a.map((d)=>d/l),_=u.maxTotalWidth-s*(a.length-1),p=Math.max(0,l-_),f=r([u.minColumnWidths,a,h],(d,x,T)=>Math.max(d,Math.floor(x-p*T))),m=i.map((d)=>r([f,d],(x,T)=>x-T));return r([n,m],(d,x)=>r([d,x],(T,A)=>A>=0?u.right?" ".repeat(A)+T:T+" ".repeat(A):egi(T,L7e(T)+A)).join(u.delimiter))},tRt=(e)=>V7e.assign((t)=>{var r;if(t[0]&&Array.isArray(t[0]))return RGt(t.map((u)=>u.map((s,l)=>s===void 0?"":e.print(s,l))),e).join(`
|
|
369
369
|
`);let n=[].concat(QX(new Set((r=[]).concat.apply(r,QX(t.map(V7e.keys)))))),i=[n.map(e.title)].concat(QX(t.map((u)=>n.map((s)=>u[s]===void 0?"":e.print(u[s],s))))),a=RGt(i,e);return(e.dash?[a[0],e.dash.repeat(L7e(a[0]))].concat(QX(a.slice(1))):a).join(`
|
|
370
370
|
`)},e,{configure:(t)=>tRt(V7e.assign({},e,t))});rRt.exports=tRt({maxTotalWidth:Number.MAX_SAFE_INTEGER,print:String,title:String,dash:"-",right:!1})});var Y7e={};$_(Y7e,{utils:()=>XRt,printer:()=>LRt,default:()=>b3i,builders:()=>VRt});function Bgi(e){if(typeof e==="string")return iJ;if(Array.isArray(e))return iC;if(!e)return;let{type:t}=e;if(NRt.has(t))return t}function $gi(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
@@ -403,7 +403,7 @@ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=1
|
|
|
403
403
|
`);case 114:return xt("\r");case 120:{let kt;return{code:kt,pos:g}=kr(k,g,B,V,2,!1,et,Pe),xt(kt===null?null:String.fromCharCode(kt))}case 117:{let kt;return{code:kt,pos:g}=Ji(k,g,B,V,et,Pe),xt(kt===null?null:String.fromCodePoint(kt))}case 116:return xt("\t");case 98:return xt("\b");case 118:return xt("\v");case 102:return xt("\f");case 13:k.charCodeAt(g)===10&&++g;case 10:B=g,++V;case 8232:case 8233:return xt("");case 56:case 57:if(re)return xt(null);Pe.strictNumericEscape(g-1,B,V);default:if(Vt>=48&&Vt<=55){let kt=g-1,an=/^[0-7]+/.exec(k.slice(kt,g+2))[0],zn=parseInt(an,8);zn>255&&(an=an.slice(0,-1),zn=parseInt(an,8)),g+=an.length-1;let yi=k.charCodeAt(g);if(an!=="0"||yi===56||yi===57){if(re)return xt(null);Pe.strictNumericEscape(kt,B,V)}return xt(String.fromCharCode(zn))}return xt(String.fromCharCode(Vt))}}function kr(k,g,B,V,re,Pe,et,xt){let Vt=g,kt;return{n:kt,pos:g}=mn(k,g,B,V,16,re,Pe,!1,xt,!et),kt===null&&(et?xt.invalidEscapeSequence(Vt,B,V):g=Vt-1),{code:kt,pos:g}}function mn(k,g,B,V,re,Pe,et,xt,Vt,kt){let an=g,zn=re===16?wt.hex:wt.decBinOct,yi=re===16?Fn.hex:re===10?Fn.dec:re===8?Fn.oct:Fn.bin,i0=!1,Y0=0;for(let Nu=0,Za=Pe??1/0;Nu<Za;++Nu){let Xa=k.charCodeAt(g),mo;if(Xa===95&&xt!=="bail"){let c1=k.charCodeAt(g-1),Rs=k.charCodeAt(g+1);if(xt){if(Number.isNaN(Rs)||!yi(Rs)||zn.has(c1)||zn.has(Rs)){if(kt)return{n:null,pos:g};Vt.unexpectedNumericSeparator(g,B,V)}}else{if(kt)return{n:null,pos:g};Vt.numericSeparatorInEscapeSequence(g,B,V)}++g;continue}if(Xa>=97?mo=Xa-97+10:Xa>=65?mo=Xa-65+10:Pn(Xa)?mo=Xa-48:mo=1/0,mo>=re){if(mo<=9&&kt)return{n:null,pos:g};if(mo<=9&&Vt.invalidDigit(g,B,V,re))mo=0;else if(et)mo=0,i0=!0;else break}++g,Y0=Y0*re+mo}return g===an||Pe!=null&&g-an!==Pe||i0?{n:null,pos:g}:{n:Y0,pos:g}}function Ji(k,g,B,V,re,Pe){let et=k.charCodeAt(g),xt;if(et===123){if(++g,{code:xt,pos:g}=kr(k,g,B,V,k.indexOf("}",g)-g,!0,re,Pe),++g,xt!==null&&xt>1114111)if(re)Pe.invalidCodePoint(g,B,V);else return{code:null,pos:g}}else({code:xt,pos:g}=kr(k,g,B,V,4,!1,re,Pe));return{code:xt,pos:g}}function Un(k,g,B){return new r(B,k-g,k)}var nr=new Set([103,109,115,105,121,117,100,118]),l0=class{constructor(k){let g=k.startIndex||0;this.type=k.type,this.value=k.value,this.start=g+k.start,this.end=g+k.end,this.loc=new n(k.startLoc,k.endLoc)}},Yn=class extends me{constructor(k,g){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(B,V,re,Pe)=>this.optionFlags&1024?(this.raise(A.InvalidDigit,Un(B,V,re),{radix:Pe}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(A.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(A.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(A.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(A.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(B,V,re)=>{this.recordStrictModeErrors(A.StrictNumericEscape,Un(B,V,re))},unterminated:(B,V,re)=>{throw this.raise(A.UnterminatedString,Un(B-1,V,re))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(A.StrictNumericEscape),unterminated:(B,V,re)=>{throw this.raise(A.UnterminatedTemplate,Un(B,V,re))}}),this.state=new Jr,this.state.init(k),this.input=g,this.length=g.length,this.comments=[],this.isLookahead=!1}pushToken(k){this.tokens.length=this.state.tokensLength,this.tokens.push(k),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&128&&this.pushToken(new l0(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(k){return this.match(k)?(this.next(),!0):!1}match(k){return this.state.type===k}createLookaheadState(k){return{pos:k.pos,value:null,type:k.type,start:k.start,end:k.end,context:[this.curContext()],inType:k.inType,startLoc:k.startLoc,lastTokEndLoc:k.lastTokEndLoc,curLine:k.curLine,lineStart:k.lineStart,curPosition:k.curPosition}}lookahead(){let k=this.state;this.state=this.createLookaheadState(k),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let g=this.state;return this.state=k,g}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(k){return To.lastIndex=k,To.test(this.input)?To.lastIndex:k}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(k){return W0.lastIndex=k,W0.test(this.input)?W0.lastIndex:k}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(k){let g=this.input.charCodeAt(k);if((g&64512)===55296&&++k<this.input.length){let B=this.input.charCodeAt(k);(B&64512)===56320&&(g=65536+((g&1023)<<10)+(B&1023))}return g}setStrict(k){this.state.strict=k,k&&(this.state.strictErrors.forEach(([g,B])=>this.raise(g,B)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(k){let g;this.isLookahead||(g=this.state.curPosition());let B=this.state.pos,V=this.input.indexOf(k,B+2);if(V===-1)throw this.raise(A.UnterminatedComment,this.state.curPosition());for(this.state.pos=V+k.length,Ki.lastIndex=B+2;Ki.test(this.input)&&Ki.lastIndex<=V;)++this.state.curLine,this.state.lineStart=Ki.lastIndex;if(this.isLookahead)return;let re={type:"CommentBlock",value:this.input.slice(B+2,V),start:this.sourceToOffsetPos(B),end:this.sourceToOffsetPos(V+k.length),loc:new n(g,this.state.curPosition())};return this.optionFlags&128&&this.pushToken(re),re}skipLineComment(k){let g=this.state.pos,B;this.isLookahead||(B=this.state.curPosition());let V=this.input.charCodeAt(this.state.pos+=k);if(this.state.pos<this.length)for(;!vr(V)&&++this.state.pos<this.length;)V=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let re=this.state.pos,Pe={type:"CommentLine",value:this.input.slice(g+k,re),start:this.sourceToOffsetPos(g),end:this.sourceToOffsetPos(re),loc:new n(B,this.state.curPosition())};return this.optionFlags&128&&this.pushToken(Pe),Pe}skipSpace(){let k=this.state.pos,g=this.optionFlags&2048?[]:null;e:for(;this.state.pos<this.length;){let B=this.input.charCodeAt(this.state.pos);switch(B){case 32:case 160:case 9:++this.state.pos;break;case 13: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:{let V=this.skipBlockComment("*/");V!==void 0&&(this.addComment(V),g==null||g.push(V));break}case 47:{let V=this.skipLineComment(2);V!==void 0&&(this.addComment(V),g==null||g.push(V));break}default:break e}break;default:if(Ve(B))++this.state.pos;else if(B===45&&!this.inModule&&this.optionFlags&4096){let V=this.state.pos;if(this.input.charCodeAt(V+1)===45&&this.input.charCodeAt(V+2)===62&&(k===0||this.state.lineStart>k)){let re=this.skipLineComment(3);re!==void 0&&(this.addComment(re),g==null||g.push(re))}else break e}else if(B===60&&!this.inModule&&this.optionFlags&4096){let V=this.state.pos;if(this.input.charCodeAt(V+1)===33&&this.input.charCodeAt(V+2)===45&&this.input.charCodeAt(V+3)===45){let re=this.skipLineComment(4);re!==void 0&&(this.addComment(re),g==null||g.push(re))}else break e}else break e}}if((g==null?void 0:g.length)>0){let B=this.state.pos,V={start:this.sourceToOffsetPos(k),end:this.sourceToOffsetPos(B),comments:g,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(V)}}finishToken(k,g){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let B=this.state.type;this.state.type=k,this.state.value=g,this.isLookahead||this.updateContext(B)}replaceToken(k){this.state.type=k,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let k=this.state.pos+1,g=this.codePointAtPos(k);if(g>=48&&g<=57)throw this.raise(A.UnexpectedDigitAfterHash,this.state.curPosition());if(g===123||g===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(g===123?A.RecordExpressionHashIncorrectStartSyntaxType:A.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,g===123?this.finishToken(7):this.finishToken(1)}else en(g)?(++this.state.pos,this.finishToken(139,this.readWord1(g))):g===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let k=this.input.charCodeAt(this.state.pos+1);if(k>=48&&k<=57){this.readNumber(!0);return}k===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let k=this.input.charCodeAt(this.state.pos+1);if(k!==33)return!1;let g=this.state.pos;for(this.state.pos+=1;!vr(k)&&++this.state.pos<this.length;)k=this.input.charCodeAt(this.state.pos);let B=this.input.slice(g+2,this.state.pos);return this.finishToken(28,B),!0}readToken_mult_modulo(k){let g=k===42?55:54,B=1,V=this.input.charCodeAt(this.state.pos+1);k===42&&V===42&&(B++,V=this.input.charCodeAt(this.state.pos+2),g=57),V===61&&!this.state.inType&&(B++,g=k===37?33:30),this.finishOp(g,B)}readToken_pipe_amp(k){let g=this.input.charCodeAt(this.state.pos+1);if(g===k){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(k===124?41:42,2);return}if(k===124){if(g===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&g===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(A.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&g===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(A.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(g===61){this.finishOp(30,2);return}this.finishOp(k===124?43:45,1)}readToken_caret(){let k=this.input.charCodeAt(this.state.pos+1);k===61&&!this.state.inType?this.finishOp(32,2):k===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(k){let g=this.input.charCodeAt(this.state.pos+1);if(g===k){this.finishOp(34,2);return}g===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:k}=this.state,g=this.input.charCodeAt(k+1);if(g===60){if(this.input.charCodeAt(k+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(g===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:k}=this.state,g=this.input.charCodeAt(k+1);if(g===62){let B=this.input.charCodeAt(k+2)===62?3:2;if(this.input.charCodeAt(k+B)===61){this.finishOp(30,B+1);return}this.finishOp(52,B);return}if(g===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(k){let g=this.input.charCodeAt(this.state.pos+1);if(g===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(k===61&&g===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(k===61?29:35,1)}readToken_question(){let k=this.input.charCodeAt(this.state.pos+1),g=this.input.charCodeAt(this.state.pos+2);k===63?g===61?this.finishOp(30,3):this.finishOp(40,2):k===46&&!(g>=48&&g<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(k){switch(k){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(A.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(A.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:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let g=this.input.charCodeAt(this.state.pos+1);if(g===120||g===88){this.readRadixNumber(16);return}if(g===111||g===79){this.readRadixNumber(8);return}if(g===98||g===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(!1);return;case 34:case 39:this.readString(k);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(k);return;case 124:case 38:this.readToken_pipe_amp(k);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(k);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(k);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(en(k)){this.readWord(k);return}}throw this.raise(A.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(k)})}finishOp(k,g){let B=this.input.slice(this.state.pos,this.state.pos+g);this.state.pos+=g,this.finishToken(k,B)}readRegexp(){let k=this.state.startLoc,g=this.state.start+1,B,V,{pos:re}=this.state;for(;;++re){if(re>=this.length)throw this.raise(A.UnterminatedRegExp,i(k,1));let Vt=this.input.charCodeAt(re);if(vr(Vt))throw this.raise(A.UnterminatedRegExp,i(k,1));if(B)B=!1;else{if(Vt===91)V=!0;else if(Vt===93&&V)V=!1;else if(Vt===47&&!V)break;B=Vt===92}}let Pe=this.input.slice(g,re);++re;let et="",xt=()=>i(k,re+2-g);for(;re<this.length;){let Vt=this.codePointAtPos(re),kt=String.fromCharCode(Vt);if(nr.has(Vt))Vt===118?et.includes("u")&&this.raise(A.IncompatibleRegExpUVFlags,xt()):Vt===117&&et.includes("v")&&this.raise(A.IncompatibleRegExpUVFlags,xt()),et.includes(kt)&&this.raise(A.DuplicateRegExpFlags,xt());else if(ki(Vt)||Vt===92)this.raise(A.MalformedRegExpFlags,xt());else break;++re,et+=kt}this.state.pos=re,this.finishToken(138,{pattern:Pe,flags:et})}readInt(k,g,B=!1,V=!0){let{n:re,pos:Pe}=mn(this.input,this.state.pos,this.state.lineStart,this.state.curLine,k,g,B,V,this.errorHandlers_readInt,!1);return this.state.pos=Pe,re}readRadixNumber(k){let g=this.state.pos,B=this.state.curPosition(),V=!1;this.state.pos+=2;let re=this.readInt(k);re==null&&this.raise(A.InvalidDigit,i(B,2),{radix:k});let Pe=this.input.charCodeAt(this.state.pos);if(Pe===110)++this.state.pos,V=!0;else if(Pe===109)throw this.raise(A.InvalidDecimal,B);if(en(this.codePointAtPos(this.state.pos)))throw this.raise(A.NumberIdentifier,this.state.curPosition());if(V){let et=this.input.slice(g,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,et);return}this.finishToken(135,re)}readNumber(k){let g=this.state.pos,B=this.state.curPosition(),V=!1,re=!1,Pe=!1,et=!1;!k&&this.readInt(10)===null&&this.raise(A.InvalidNumber,this.state.curPosition());let xt=this.state.pos-g>=2&&this.input.charCodeAt(g)===48;if(xt){let yi=this.input.slice(g,this.state.pos);if(this.recordStrictModeErrors(A.StrictOctalLiteral,B),!this.state.strict){let i0=yi.indexOf("_");i0>0&&this.raise(A.ZeroDigitNumericSeparator,i(B,i0))}et=xt&&!/[89]/.test(yi)}let Vt=this.input.charCodeAt(this.state.pos);if(Vt===46&&!et&&(++this.state.pos,this.readInt(10),V=!0,Vt=this.input.charCodeAt(this.state.pos)),(Vt===69||Vt===101)&&!et&&(Vt=this.input.charCodeAt(++this.state.pos),(Vt===43||Vt===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(A.InvalidOrMissingExponent,B),V=!0,Pe=!0,Vt=this.input.charCodeAt(this.state.pos)),Vt===110&&((V||xt)&&this.raise(A.InvalidBigIntLiteral,B),++this.state.pos,re=!0),Vt===109){this.expectPlugin("decimal",this.state.curPosition()),(Pe||xt)&&this.raise(A.InvalidDecimal,B),++this.state.pos;var kt=!0}if(en(this.codePointAtPos(this.state.pos)))throw this.raise(A.NumberIdentifier,this.state.curPosition());let an=this.input.slice(g,this.state.pos).replace(/[_mn]/g,"");if(re){this.finishToken(136,an);return}if(kt){this.finishToken(137,an);return}let zn=et?parseInt(an,8):parseFloat(an);this.finishToken(135,zn)}readCodePoint(k){let{code:g,pos:B}=Ji(this.input,this.state.pos,this.state.lineStart,this.state.curLine,k,this.errorHandlers_readCodePoint);return this.state.pos=B,g}readString(k){let{str:g,pos:B,curLine:V,lineStart:re}=gn(k===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=B+1,this.state.lineStart=re,this.state.curLine=V,this.finishToken(134,g)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let k=this.input[this.state.pos],{str:g,firstInvalidLoc:B,pos:V,curLine:re,lineStart:Pe}=gn("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=V+1,this.state.lineStart=Pe,this.state.curLine=re,B&&(this.state.firstInvalidTemplateEscapePos=new r(B.curLine,B.pos-B.lineStart,this.sourceToOffsetPos(B.pos))),this.input.codePointAt(V)===96?this.finishToken(24,B?null:k+g+"`"):(this.state.pos++,this.finishToken(25,B?null:k+g+"${"))}recordStrictModeErrors(k,g){let B=g.index;this.state.strict&&!this.state.strictErrors.has(B)?this.raise(k,g):this.state.strictErrors.set(B,[k,g])}readWord1(k){this.state.containsEsc=!1;let g="",B=this.state.pos,V=this.state.pos;for(k!==void 0&&(this.state.pos+=k<=65535?1:2);this.state.pos<this.length;){let re=this.codePointAtPos(this.state.pos);if(ki(re))this.state.pos+=re<=65535?1:2;else if(re===92){this.state.containsEsc=!0,g+=this.input.slice(V,this.state.pos);let Pe=this.state.curPosition(),et=this.state.pos===B?en:ki;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(A.MissingUnicodeEscape,this.state.curPosition()),V=this.state.pos-1;continue}++this.state.pos;let xt=this.readCodePoint(!0);xt!==null&&(et(xt)||this.raise(A.EscapedCharNotAnIdentifier,Pe),g+=String.fromCodePoint(xt)),V=this.state.pos}else break}return g+this.input.slice(V,this.state.pos)}readWord(k){let g=this.readWord1(k),B=ge.get(g);B!==void 0?this.finishToken(B,Cn(B)):this.finishToken(132,g)}checkKeywordEscapes(){let{type:k}=this.state;Mt(k)&&this.state.containsEsc&&this.raise(A.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Cn(k)})}raise(k,g,B={}){let V=g instanceof r?g:g.loc.start,re=k(V,B);if(!(this.optionFlags&1024))throw re;return this.isLookahead||this.state.errors.push(re),re}raiseOverwrite(k,g,B={}){let V=g instanceof r?g:g.loc.start,re=V.index,Pe=this.state.errors;for(let et=Pe.length-1;et>=0;et--){let xt=Pe[et];if(xt.loc.index===re)return Pe[et]=k(V,B);if(xt.loc.index<re)break}return this.raise(k,g,B)}updateContext(k){}unexpected(k,g){throw this.raise(A.UnexpectedToken,k??this.state.startLoc,{expected:g?Cn(g):null})}expectPlugin(k,g){if(this.hasPlugin(k))return!0;throw this.raise(A.MissingPlugin,g??this.state.startLoc,{missingPlugin:[k]})}expectOnePlugin(k){if(!k.some((g)=>this.hasPlugin(g)))throw this.raise(A.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:k})}errorBuilder(k){return(g,B,V)=>{this.raise(k,Un(g,B,V))}}},Ea=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Aa=class{constructor(k){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=k}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Ea)}exit(){let k=this.stack.pop(),g=this.current();for(let[B,V]of Array.from(k.undefinedPrivateNames))g?g.undefinedPrivateNames.has(B)||g.undefinedPrivateNames.set(B,V):this.parser.raise(A.InvalidPrivateFieldResolution,V,{identifierName:B})}declarePrivateName(k,g,B){let{privateNames:V,loneAccessors:re,undefinedPrivateNames:Pe}=this.current(),et=V.has(k);if(g&3){let xt=et&&re.get(k);if(xt){let Vt=xt&4,kt=g&4,an=xt&3,zn=g&3;et=an===zn||Vt!==kt,et||re.delete(k)}else et||re.set(k,g)}et&&this.parser.raise(A.PrivateNameRedeclaration,B,{identifierName:k}),V.add(k),Pe.delete(k)}usePrivateName(k,g){let B;for(B of this.stack)if(B.privateNames.has(k))return;B?B.undefinedPrivateNames.set(k,g):this.parser.raise(A.InvalidPrivateFieldResolution,g,{identifierName:k})}},hl=class{constructor(k=0){this.type=k}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},vs=class extends hl{constructor(k){super(k),this.declarationErrors=new Map}recordDeclarationError(k,g){let B=g.index;this.declarationErrors.set(B,[k,g])}clearDeclarationError(k){this.declarationErrors.delete(k)}iterateErrors(k){this.declarationErrors.forEach(k)}},Ds=class{constructor(k){this.parser=void 0,this.stack=[new hl],this.parser=k}enter(k){this.stack.push(k)}exit(){this.stack.pop()}recordParameterInitializerError(k,g){let B=g.loc.start,{stack:V}=this,re=V.length-1,Pe=V[re];for(;!Pe.isCertainlyParameterDeclaration();){if(Pe.canBeArrowParameterDeclaration())Pe.recordDeclarationError(k,B);else return;Pe=V[--re]}this.parser.raise(k,B)}recordArrowParameterBindingError(k,g){let{stack:B}=this,V=B[B.length-1],re=g.loc.start;if(V.isCertainlyParameterDeclaration())this.parser.raise(k,re);else if(V.canBeArrowParameterDeclaration())V.recordDeclarationError(k,re);else return}recordAsyncArrowParametersError(k){let{stack:g}=this,B=g.length-1,V=g[B];for(;V.canBeArrowParameterDeclaration();)V.type===2&&V.recordDeclarationError(A.AwaitBindingIdentifier,k),V=g[--B]}validateAsPattern(){let{stack:k}=this,g=k[k.length-1];g.canBeArrowParameterDeclaration()&&g.iterateErrors(([B,V])=>{this.parser.raise(B,V);let re=k.length-2,Pe=k[re];for(;Pe.canBeArrowParameterDeclaration();)Pe.clearDeclarationError(V.index),Pe=k[--re]})}};function d0(){return new hl(3)}function B0(){return new vs(1)}function ep(){return new vs(2)}function pl(){return new hl}var E7=class{constructor(){this.stacks=[]}enter(k){this.stacks.push(k)}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 to(k,g){return(k?2:0)|(g?1:0)}var O_=class extends Yn{addExtra(k,g,B,V=!0){if(!k)return;let{extra:re}=k;re==null&&(re={},k.extra=re),V?re[g]=B:Object.defineProperty(re,g,{enumerable:V,value:B})}isContextual(k){return this.state.type===k&&!this.state.containsEsc}isUnparsedContextual(k,g){let B=k+g.length;if(this.input.slice(k,B)===g){let V=this.input.charCodeAt(B);return!(ki(V)||(V&64512)===55296)}return!1}isLookaheadContextual(k){let g=this.nextTokenStart();return this.isUnparsedContextual(g,k)}eatContextual(k){return this.isContextual(k)?(this.next(),!0):!1}expectContextual(k,g){if(!this.eatContextual(k)){if(g!=null)throw this.raise(g,this.state.startLoc);this.unexpected(null,k)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return U0(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return U0(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(k=!0){(k?this.isLineTerminator():this.eat(13))||this.raise(A.MissingSemicolon,this.state.lastTokEndLoc)}expect(k,g){this.eat(k)||this.unexpected(g,k)}tryParse(k,g=this.state.clone()){let B={node:null};try{let V=k((re=null)=>{throw B.node=re,B});if(this.state.errors.length>g.errors.length){let re=this.state;return this.state=g,this.state.tokensLength=re.tokensLength,{node:V,error:re.errors[g.errors.length],thrown:!1,aborted:!1,failState:re}}return{node:V,error:null,thrown:!1,aborted:!1,failState:null}}catch(V){let re=this.state;if(this.state=g,V instanceof SyntaxError)return{node:null,error:V,thrown:!0,aborted:!1,failState:re};if(V===B)return{node:B.node,error:null,thrown:!1,aborted:!0,failState:re};throw V}}checkExpressionErrors(k,g){if(!k)return!1;let{shorthandAssignLoc:B,doubleProtoLoc:V,privateKeyLoc:re,optionalParametersLoc:Pe}=k,et=!!B||!!V||!!Pe||!!re;if(!g)return et;B!=null&&this.raise(A.InvalidCoverInitializedName,B),V!=null&&this.raise(A.DuplicateProto,V),re!=null&&this.raise(A.UnexpectedPrivateField,re),Pe!=null&&this.unexpected(Pe)}isLiteralPropertyName(){return ot(this.state.type)}isPrivateName(k){return k.type==="PrivateName"}getPrivateNameSV(k){return k.id.name}hasPropertyAsPrivateName(k){return(k.type==="MemberExpression"||k.type==="OptionalMemberExpression")&&this.isPrivateName(k.property)}isObjectProperty(k){return k.type==="ObjectProperty"}isObjectMethod(k){return k.type==="ObjectMethod"}initializeScopes(k=this.options.sourceType==="module"){let g=this.state.labels;this.state.labels=[];let B=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let V=this.inModule;this.inModule=k;let re=this.scope,Pe=this.getScopeHandler();this.scope=new Pe(this,k);let et=this.prodParam;this.prodParam=new E7;let xt=this.classScope;this.classScope=new Aa(this);let Vt=this.expressionScope;return this.expressionScope=new Ds(this),()=>{this.state.labels=g,this.exportedIdentifiers=B,this.inModule=V,this.scope=re,this.prodParam=et,this.classScope=xt,this.expressionScope=Vt}}enterInitialScopes(){let k=0;this.inModule&&(k|=2),this.scope.enter(1),this.prodParam.enter(k)}checkDestructuringPrivate(k){let{privateKeyLoc:g}=k;g!==null&&this.expectPlugin("destructuringPrivate",g)}},Hs=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},H1=class{constructor(k,g,B){this.type="",this.start=g,this.end=0,this.loc=new n(B),(k==null?void 0:k.optionFlags)&64&&(this.range=[g,0]),k!=null&&k.filename&&(this.loc.filename=k.filename)}},ro=H1.prototype;ro.__clone=function(){let k=new H1(void 0,this.start,this.loc.start),g=Object.keys(this);for(let B=0,V=g.length;B<V;B++){let re=g[B];re!=="leadingComments"&&re!=="trailingComments"&&re!=="innerComments"&&(k[re]=this[re])}return k};function Jo(k){return Zt(k)}function Zt(k){let{type:g,start:B,end:V,loc:re,range:Pe,extra:et,name:xt}=k,Vt=Object.create(ro);return Vt.type=g,Vt.start=B,Vt.end=V,Vt.loc=re,Vt.range=Pe,Vt.extra=et,Vt.name=xt,g==="Placeholder"&&(Vt.expectedNode=k.expectedNode),Vt}function ws(k){let{type:g,start:B,end:V,loc:re,range:Pe,extra:et}=k;if(g==="Placeholder")return Jo(k);let xt=Object.create(ro);return xt.type=g,xt.start=B,xt.end=V,xt.loc=re,xt.range=Pe,k.raw!==void 0?xt.raw=k.raw:xt.extra=et,xt.value=k.value,xt}var fl=class extends O_{startNode(){let k=this.state.startLoc;return new H1(this,k.index,k)}startNodeAt(k){return new H1(this,k.index,k)}startNodeAtNode(k){return this.startNodeAt(k.loc.start)}finishNode(k,g){return this.finishNodeAt(k,g,this.state.lastTokEndLoc)}finishNodeAt(k,g,B){return k.type=g,k.end=B.index,k.loc.end=B,this.optionFlags&64&&(k.range[1]=B.index),this.optionFlags&2048&&this.processComment(k),k}resetStartLocation(k,g){k.start=g.index,k.loc.start=g,this.optionFlags&64&&(k.range[0]=g.index)}resetEndLocation(k,g=this.state.lastTokEndLoc){k.end=g.index,k.loc.end=g,this.optionFlags&64&&(k.range[1]=g.index)}resetStartLocationFromNode(k,g){this.resetStartLocation(k,g.loc.start)}},Q_=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Ii=T`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:k})=>`Cannot overwrite reserved type ${k}.`,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:k,enumName:g})=>`Boolean enum members need to be initialized. Use either \`${k} = true,\` or \`${k} = false,\` in enum \`${g}\`.`,EnumDuplicateMemberName:({memberName:k,enumName:g})=>`Enum member names need to be unique, but the name \`${k}\` has already been used before in enum \`${g}\`.`,EnumInconsistentMemberValues:({enumName:k})=>`Enum \`${k}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:k,enumName:g})=>`Enum type \`${k}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${g}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:k})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${k}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:k,memberName:g,explicitType:B})=>`Enum \`${k}\` has type \`${B}\`, so the initializer of \`${g}\` needs to be a ${B} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:k,memberName:g})=>`Symbol enum members cannot be initialized. Use \`${g},\` in enum \`${k}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:k,memberName:g})=>`The enum member initializer for \`${g}\` needs to be a literal (either a boolean, number, or string) in enum \`${k}\`.`,EnumInvalidMemberName:({enumName:k,memberName:g,suggestion:B})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${g}\`, consider using \`${B}\`, in enum \`${k}\`.`,EnumNumberMemberNotInitialized:({enumName:k,memberName:g})=>`Number enum members need to be initialized, e.g. \`${g} = 1\` in enum \`${k}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:k})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${k}\`.`,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:k})=>`Unexpected reserved type ${k}.`,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:k,suggestion:g})=>`\`declare export ${k}\` is not supported. Use \`${g}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function xu(k){return k.type==="DeclareExportAllDeclaration"||k.type==="DeclareExportDeclaration"&&(!k.declaration||k.declaration.type!=="TypeAlias"&&k.declaration.type!=="InterfaceDeclaration")}function Vu(k){return k.importKind==="type"||k.importKind==="typeof"}var tp={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function i1(k,g){let B=[],V=[];for(let re=0;re<k.length;re++)(g(k[re],re,k)?B:V).push(k[re]);return[B,V]}var nf=/\*?\s*@((?:no)?flow)\b/,w_=(k)=>class extends k{constructor(...g){super(...g),this.flowPragma=void 0}getScopeHandler(){return Qu}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(g,B){g!==134&&g!==13&&g!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(g,B)}addComment(g){if(this.flowPragma===void 0){let B=nf.exec(g.value);if(B)if(B[1]==="flow")this.flowPragma="flow";else if(B[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(g)}flowParseTypeInitialiser(g){let B=this.state.inType;this.state.inType=!0,this.expect(g||14);let V=this.flowParseType();return this.state.inType=B,V}flowParsePredicate(){let g=this.startNode(),B=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>B.index+1&&this.raise(Ii.UnexpectedSpaceBetweenModuloChecks,B),this.eat(10)?(g.value=super.parseExpression(),this.expect(11),this.finishNode(g,"DeclaredPredicate")):this.finishNode(g,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let g=this.state.inType;this.state.inType=!0,this.expect(14);let B=null,V=null;return this.match(54)?(this.state.inType=g,V=this.flowParsePredicate()):(B=this.flowParseType(),this.state.inType=g,this.match(54)&&(V=this.flowParsePredicate())),[B,V]}flowParseDeclareClass(g){return this.next(),this.flowParseInterfaceish(g,!0),this.finishNode(g,"DeclareClass")}flowParseDeclareFunction(g){this.next();let B=g.id=this.parseIdentifier(),V=this.startNode(),re=this.startNode();this.match(47)?V.typeParameters=this.flowParseTypeParameterDeclaration():V.typeParameters=null,this.expect(10);let Pe=this.flowParseFunctionTypeParams();return V.params=Pe.params,V.rest=Pe.rest,V.this=Pe._this,this.expect(11),[V.returnType,g.predicate]=this.flowParseTypeAndPredicateInitialiser(),re.typeAnnotation=this.finishNode(V,"FunctionTypeAnnotation"),B.typeAnnotation=this.finishNode(re,"TypeAnnotation"),this.resetEndLocation(B),this.semicolon(),this.scope.declareName(g.id.name,2048,g.id.loc.start),this.finishNode(g,"DeclareFunction")}flowParseDeclare(g,B){if(this.match(80))return this.flowParseDeclareClass(g);if(this.match(68))return this.flowParseDeclareFunction(g);if(this.match(74))return this.flowParseDeclareVariable(g);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(g):(B&&this.raise(Ii.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(g));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(g);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(g);if(this.isContextual(129))return this.flowParseDeclareInterface(g);if(this.match(82))return this.flowParseDeclareExportDeclaration(g,B);this.unexpected()}flowParseDeclareVariable(g){return this.next(),g.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(g.id.name,5,g.id.loc.start),this.semicolon(),this.finishNode(g,"DeclareVariable")}flowParseDeclareModule(g){this.scope.enter(0),this.match(134)?g.id=super.parseExprAtom():g.id=this.parseIdentifier();let B=g.body=this.startNode(),V=B.body=[];for(this.expect(5);!this.match(8);){let et=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ii.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(et)):(this.expectContextual(125,Ii.UnsupportedStatementInDeclareModule),et=this.flowParseDeclare(et,!0)),V.push(et)}this.scope.exit(),this.expect(8),this.finishNode(B,"BlockStatement");let re=null,Pe=!1;return V.forEach((et)=>{xu(et)?(re==="CommonJS"&&this.raise(Ii.AmbiguousDeclareModuleKind,et),re="ES"):et.type==="DeclareModuleExports"&&(Pe&&this.raise(Ii.DuplicateDeclareModuleExports,et),re==="ES"&&this.raise(Ii.AmbiguousDeclareModuleKind,et),re="CommonJS",Pe=!0)}),g.kind=re||"CommonJS",this.finishNode(g,"DeclareModule")}flowParseDeclareExportDeclaration(g,B){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?g.declaration=this.flowParseDeclare(this.startNode()):(g.declaration=this.flowParseType(),this.semicolon()),g.default=!0,this.finishNode(g,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!B){let V=this.state.value;throw this.raise(Ii.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:V,suggestion:tp[V]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return g.declaration=this.flowParseDeclare(this.startNode()),g.default=!1,this.finishNode(g,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return g=this.parseExport(g,null),g.type==="ExportNamedDeclaration"&&(g.type="ExportDeclaration",g.default=!1,delete g.exportKind),g.type="Declare"+g.type,g;this.unexpected()}flowParseDeclareModuleExports(g){return this.next(),this.expectContextual(111),g.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(g,"DeclareModuleExports")}flowParseDeclareTypeAlias(g){this.next();let B=this.flowParseTypeAlias(g);return B.type="DeclareTypeAlias",B}flowParseDeclareOpaqueType(g){this.next();let B=this.flowParseOpaqueType(g,!0);return B.type="DeclareOpaqueType",B}flowParseDeclareInterface(g){return this.next(),this.flowParseInterfaceish(g,!1),this.finishNode(g,"DeclareInterface")}flowParseInterfaceish(g,B){if(g.id=this.flowParseRestrictedIdentifier(!B,!0),this.scope.declareName(g.id.name,B?17:8201,g.id.loc.start),this.match(47)?g.typeParameters=this.flowParseTypeParameterDeclaration():g.typeParameters=null,g.extends=[],this.eat(81))do g.extends.push(this.flowParseInterfaceExtends());while(!B&&this.eat(12));if(B){if(g.implements=[],g.mixins=[],this.eatContextual(117))do g.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do g.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}g.body=this.flowParseObjectType({allowStatic:B,allowExact:!1,allowSpread:!1,allowProto:B,allowInexact:!1})}flowParseInterfaceExtends(){let g=this.startNode();return g.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?g.typeParameters=this.flowParseTypeParameterInstantiation():g.typeParameters=null,this.finishNode(g,"InterfaceExtends")}flowParseInterface(g){return this.flowParseInterfaceish(g,!1),this.finishNode(g,"InterfaceDeclaration")}checkNotUnderscore(g){g==="_"&&this.raise(Ii.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(g,B,V){Q_.has(g)&&this.raise(V?Ii.AssignReservedType:Ii.UnexpectedReservedType,B,{reservedType:g})}flowParseRestrictedIdentifier(g,B){return this.checkReservedType(this.state.value,this.state.startLoc,B),this.parseIdentifier(g)}flowParseTypeAlias(g){return g.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(g.id.name,8201,g.id.loc.start),this.match(47)?g.typeParameters=this.flowParseTypeParameterDeclaration():g.typeParameters=null,g.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(g,"TypeAlias")}flowParseOpaqueType(g,B){return this.expectContextual(130),g.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(g.id.name,8201,g.id.loc.start),this.match(47)?g.typeParameters=this.flowParseTypeParameterDeclaration():g.typeParameters=null,g.supertype=null,this.match(14)&&(g.supertype=this.flowParseTypeInitialiser(14)),g.impltype=null,B||(g.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(g,"OpaqueType")}flowParseTypeParameter(g=!1){let B=this.state.startLoc,V=this.startNode(),re=this.flowParseVariance(),Pe=this.flowParseTypeAnnotatableIdentifier();return V.name=Pe.name,V.variance=re,V.bound=Pe.typeAnnotation,this.match(29)?(this.eat(29),V.default=this.flowParseType()):g&&this.raise(Ii.MissingTypeParamDefault,B),this.finishNode(V,"TypeParameter")}flowParseTypeParameterDeclaration(){let g=this.state.inType,B=this.startNode();B.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let V=!1;do{let re=this.flowParseTypeParameter(V);B.params.push(re),re.default&&(V=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=g,this.finishNode(B,"TypeParameterDeclaration")}flowInTopLevelContext(g){if(this.curContext()!==M.brace){let B=this.state.context;this.state.context=[B[0]];try{return g()}finally{this.state.context=B}}else return g()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let g=this.startNode(),B=this.state.inType;return this.state.inType=!0,g.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let V=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)g.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=V}),this.state.inType=B,!this.state.inType&&this.curContext()===M.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(g,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;let g=this.startNode(),B=this.state.inType;for(g.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)g.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=B,this.finishNode(g,"TypeParameterInstantiation")}flowParseInterfaceType(){let g=this.startNode();if(this.expectContextual(129),g.extends=[],this.eat(81))do g.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return g.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(g,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(g,B,V){return g.static=B,this.lookahead().type===14?(g.id=this.flowParseObjectPropertyKey(),g.key=this.flowParseTypeInitialiser()):(g.id=null,g.key=this.flowParseType()),this.expect(3),g.value=this.flowParseTypeInitialiser(),g.variance=V,this.finishNode(g,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(g,B){return g.static=B,g.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(g.method=!0,g.optional=!1,g.value=this.flowParseObjectTypeMethodish(this.startNodeAt(g.loc.start))):(g.method=!1,this.eat(17)&&(g.optional=!0),g.value=this.flowParseTypeInitialiser()),this.finishNode(g,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(g){for(g.params=[],g.rest=null,g.typeParameters=null,g.this=null,this.match(47)&&(g.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(g.this=this.flowParseFunctionTypeParam(!0),g.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)g.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(g.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),g.returnType=this.flowParseTypeInitialiser(),this.finishNode(g,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(g,B){let V=this.startNode();return g.static=B,g.value=this.flowParseObjectTypeMethodish(V),this.finishNode(g,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:g,allowExact:B,allowSpread:V,allowProto:re,allowInexact:Pe}){let et=this.state.inType;this.state.inType=!0;let xt=this.startNode();xt.callProperties=[],xt.properties=[],xt.indexers=[],xt.internalSlots=[];let Vt,kt,an=!1;for(B&&this.match(6)?(this.expect(6),Vt=9,kt=!0):(this.expect(5),Vt=8,kt=!1),xt.exact=kt;!this.match(Vt);){let yi=!1,i0=null,Y0=null,Nu=this.startNode();if(re&&this.isContextual(118)){let Xa=this.lookahead();Xa.type!==14&&Xa.type!==17&&(this.next(),i0=this.state.startLoc,g=!1)}if(g&&this.isContextual(106)){let Xa=this.lookahead();Xa.type!==14&&Xa.type!==17&&(this.next(),yi=!0)}let Za=this.flowParseVariance();if(this.eat(0))i0!=null&&this.unexpected(i0),this.eat(0)?(Za&&this.unexpected(Za.loc.start),xt.internalSlots.push(this.flowParseObjectTypeInternalSlot(Nu,yi))):xt.indexers.push(this.flowParseObjectTypeIndexer(Nu,yi,Za));else if(this.match(10)||this.match(47))i0!=null&&this.unexpected(i0),Za&&this.unexpected(Za.loc.start),xt.callProperties.push(this.flowParseObjectTypeCallProperty(Nu,yi));else{let Xa="init";if(this.isContextual(99)||this.isContextual(104)){let c1=this.lookahead();ot(c1.type)&&(Xa=this.state.value,this.next())}let mo=this.flowParseObjectTypeProperty(Nu,yi,i0,Za,Xa,V,Pe??!kt);mo===null?(an=!0,Y0=this.state.lastTokStartLoc):xt.properties.push(mo)}this.flowObjectTypeSemicolon(),Y0&&!this.match(8)&&!this.match(9)&&this.raise(Ii.UnexpectedExplicitInexactInObject,Y0)}this.expect(Vt),V&&(xt.inexact=an);let zn=this.finishNode(xt,"ObjectTypeAnnotation");return this.state.inType=et,zn}flowParseObjectTypeProperty(g,B,V,re,Pe,et,xt){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(et?xt||this.raise(Ii.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Ii.InexactInsideNonObject,this.state.lastTokStartLoc),re&&this.raise(Ii.InexactVariance,re),null):(et||this.raise(Ii.UnexpectedSpreadType,this.state.lastTokStartLoc),V!=null&&this.unexpected(V),re&&this.raise(Ii.SpreadVariance,re),g.argument=this.flowParseType(),this.finishNode(g,"ObjectTypeSpreadProperty"));{g.key=this.flowParseObjectPropertyKey(),g.static=B,g.proto=V!=null,g.kind=Pe;let Vt=!1;return this.match(47)||this.match(10)?(g.method=!0,V!=null&&this.unexpected(V),re&&this.unexpected(re.loc.start),g.value=this.flowParseObjectTypeMethodish(this.startNodeAt(g.loc.start)),(Pe==="get"||Pe==="set")&&this.flowCheckGetterSetterParams(g),!et&&g.key.name==="constructor"&&g.value.this&&this.raise(Ii.ThisParamBannedInConstructor,g.value.this)):(Pe!=="init"&&this.unexpected(),g.method=!1,this.eat(17)&&(Vt=!0),g.value=this.flowParseTypeInitialiser(),g.variance=re),g.optional=Vt,this.finishNode(g,"ObjectTypeProperty")}}flowCheckGetterSetterParams(g){let B=g.kind==="get"?0:1,V=g.value.params.length+(g.value.rest?1:0);g.value.this&&this.raise(g.kind==="get"?Ii.GetterMayNotHaveThisParam:Ii.SetterMayNotHaveThisParam,g.value.this),V!==B&&this.raise(g.kind==="get"?A.BadGetterArity:A.BadSetterArity,g),g.kind==="set"&&g.value.rest&&this.raise(A.BadSetterRestParameter,g)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(g,B){var V;(V=g)!=null||(g=this.state.startLoc);let re=B||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let Pe=this.startNodeAt(g);Pe.qualification=re,Pe.id=this.flowParseRestrictedIdentifier(!0),re=this.finishNode(Pe,"QualifiedTypeIdentifier")}return re}flowParseGenericType(g,B){let V=this.startNodeAt(g);return V.typeParameters=null,V.id=this.flowParseQualifiedTypeIdentifier(g,B),this.match(47)&&(V.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(V,"GenericTypeAnnotation")}flowParseTypeofType(){let g=this.startNode();return this.expect(87),g.argument=this.flowParsePrimaryType(),this.finishNode(g,"TypeofTypeAnnotation")}flowParseTupleType(){let g=this.startNode();for(g.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(g.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(g,"TupleTypeAnnotation")}flowParseFunctionTypeParam(g){let B=null,V=!1,re=null,Pe=this.startNode(),et=this.lookahead(),xt=this.state.type===78;return et.type===14||et.type===17?(xt&&!g&&this.raise(Ii.ThisParamMustBeFirst,Pe),B=this.parseIdentifier(xt),this.eat(17)&&(V=!0,xt&&this.raise(Ii.ThisParamMayNotBeOptional,Pe)),re=this.flowParseTypeInitialiser()):re=this.flowParseType(),Pe.name=B,Pe.optional=V,Pe.typeAnnotation=re,this.finishNode(Pe,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(g){let B=this.startNodeAt(g.loc.start);return B.name=null,B.optional=!1,B.typeAnnotation=g,this.finishNode(B,"FunctionTypeParam")}flowParseFunctionTypeParams(g=[]){let B=null,V=null;for(this.match(78)&&(V=this.flowParseFunctionTypeParam(!0),V.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)g.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(B=this.flowParseFunctionTypeParam(!1)),{params:g,rest:B,_this:V}}flowIdentToTypeAnnotation(g,B,V){switch(V.name){case"any":return this.finishNode(B,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(B,"BooleanTypeAnnotation");case"mixed":return this.finishNode(B,"MixedTypeAnnotation");case"empty":return this.finishNode(B,"EmptyTypeAnnotation");case"number":return this.finishNode(B,"NumberTypeAnnotation");case"string":return this.finishNode(B,"StringTypeAnnotation");case"symbol":return this.finishNode(B,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(V.name),this.flowParseGenericType(g,V)}}flowParsePrimaryType(){let g=this.state.startLoc,B=this.startNode(),V,re,Pe=!1,et=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,re=this.flowParseTupleType(),this.state.noAnonFunctionType=et,re;case 47:{let xt=this.startNode();return xt.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),V=this.flowParseFunctionTypeParams(),xt.params=V.params,xt.rest=V.rest,xt.this=V._this,this.expect(11),this.expect(19),xt.returnType=this.flowParseType(),this.finishNode(xt,"FunctionTypeAnnotation")}case 10:{let xt=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(ke(this.state.type)||this.match(78)){let Vt=this.lookahead().type;Pe=Vt!==17&&Vt!==14}else Pe=!0;if(Pe){if(this.state.noAnonFunctionType=!1,re=this.flowParseType(),this.state.noAnonFunctionType=et,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),re;this.eat(12)}return re?V=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(re)]):V=this.flowParseFunctionTypeParams(),xt.params=V.params,xt.rest=V.rest,xt.this=V._this,this.expect(11),this.expect(19),xt.returnType=this.flowParseType(),xt.typeParameters=null,this.finishNode(xt,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return B.value=this.match(85),this.next(),this.finishNode(B,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",B);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",B);throw this.raise(Ii.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:return this.next(),this.finishNode(B,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(B,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(B,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(B,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Mt(this.state.type)){let xt=Cn(this.state.type);return this.next(),super.createIdentifier(B,xt)}else if(ke(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(g,B,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let g=this.state.startLoc,B=this.flowParsePrimaryType(),V=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let re=this.startNodeAt(g),Pe=this.eat(18);V=V||Pe,this.expect(0),!Pe&&this.match(3)?(re.elementType=B,this.next(),B=this.finishNode(re,"ArrayTypeAnnotation")):(re.objectType=B,re.indexType=this.flowParseType(),this.expect(3),V?(re.optional=Pe,B=this.finishNode(re,"OptionalIndexedAccessType")):B=this.finishNode(re,"IndexedAccessType"))}return B}flowParsePrefixType(){let g=this.startNode();return this.eat(17)?(g.typeAnnotation=this.flowParsePrefixType(),this.finishNode(g,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let g=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let B=this.startNodeAt(g.loc.start);return B.params=[this.reinterpretTypeAsFunctionTypeParam(g)],B.rest=null,B.this=null,B.returnType=this.flowParseType(),B.typeParameters=null,this.finishNode(B,"FunctionTypeAnnotation")}return g}flowParseIntersectionType(){let g=this.startNode();this.eat(45);let B=this.flowParseAnonFunctionWithoutParens();for(g.types=[B];this.eat(45);)g.types.push(this.flowParseAnonFunctionWithoutParens());return g.types.length===1?B:this.finishNode(g,"IntersectionTypeAnnotation")}flowParseUnionType(){let g=this.startNode();this.eat(43);let B=this.flowParseIntersectionType();for(g.types=[B];this.eat(43);)g.types.push(this.flowParseIntersectionType());return g.types.length===1?B:this.finishNode(g,"UnionTypeAnnotation")}flowParseType(){let g=this.state.inType;this.state.inType=!0;let B=this.flowParseUnionType();return this.state.inType=g,B}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let g=this.state.startLoc,B=this.parseIdentifier();return this.flowParseGenericType(g,B)}else return this.flowParseType()}flowParseTypeAnnotation(){let g=this.startNode();return g.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(g,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(g){let B=g?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(B.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(B)),B}typeCastToParameter(g){return g.expression.typeAnnotation=g.typeAnnotation,this.resetEndLocation(g.expression,g.typeAnnotation.loc.end),g.expression}flowParseVariance(){let g=null;return this.match(53)?(g=this.startNode(),this.state.value==="+"?g.kind="plus":g.kind="minus",this.next(),this.finishNode(g,"Variance")):g}parseFunctionBody(g,B,V=!1){if(B){this.forwardNoArrowParamsConversionAt(g,()=>super.parseFunctionBody(g,!0,V));return}super.parseFunctionBody(g,!1,V)}parseFunctionBodyAndFinish(g,B,V=!1){if(this.match(14)){let re=this.startNode();[re.typeAnnotation,g.predicate]=this.flowParseTypeAndPredicateInitialiser(),g.returnType=re.typeAnnotation?this.finishNode(re,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(g,B,V)}parseStatementLike(g){if(this.state.strict&&this.isContextual(129)){let V=this.lookahead();if(ut(V.type)){let re=this.startNode();return this.next(),this.flowParseInterface(re)}}else if(this.isContextual(126)){let V=this.startNode();return this.next(),this.flowParseEnumDeclaration(V)}let B=super.parseStatementLike(g);return this.flowPragma===void 0&&!this.isValidDirective(B)&&(this.flowPragma=null),B}parseExpressionStatement(g,B,V){if(B.type==="Identifier"){if(B.name==="declare"){if(this.match(80)||ke(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(g)}else if(ke(this.state.type)){if(B.name==="interface")return this.flowParseInterface(g);if(B.name==="type")return this.flowParseTypeAlias(g);if(B.name==="opaque")return this.flowParseOpaqueType(g,!1)}}return super.parseExpressionStatement(g,B,V)}shouldParseExportDeclaration(){let{type:g}=this.state;return g===126||St(g)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:g}=this.state;return g===126||St(g)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let g=this.startNode();return this.next(),this.flowParseEnumDeclaration(g)}return super.parseExportDefaultExpression()}parseConditional(g,B,V){if(!this.match(17))return g;if(this.state.maybeInArrowParameters){let zn=this.lookaheadCharCode();if(zn===44||zn===61||zn===58||zn===41)return this.setOptionalParametersError(V),g}this.expect(17);let re=this.state.clone(),Pe=this.state.noArrowAt,et=this.startNodeAt(B),{consequent:xt,failed:Vt}=this.tryParseConditionalConsequent(),[kt,an]=this.getArrowLikeExpressions(xt);if(Vt||an.length>0){let zn=[...Pe];if(an.length>0){this.state=re,this.state.noArrowAt=zn;for(let yi=0;yi<an.length;yi++)zn.push(an[yi].start);({consequent:xt,failed:Vt}=this.tryParseConditionalConsequent()),[kt,an]=this.getArrowLikeExpressions(xt)}Vt&&kt.length>1&&this.raise(Ii.AmbiguousConditionalArrow,re.startLoc),Vt&&kt.length===1&&(this.state=re,zn.push(kt[0].start),this.state.noArrowAt=zn,{consequent:xt,failed:Vt}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(xt,!0),this.state.noArrowAt=Pe,this.expect(14),et.test=g,et.consequent=xt,et.alternate=this.forwardNoArrowParamsConversionAt(et,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(et,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let g=this.parseMaybeAssignAllowIn(),B=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:g,failed:B}}getArrowLikeExpressions(g,B){let V=[g],re=[];for(;V.length!==0;){let Pe=V.pop();Pe.type==="ArrowFunctionExpression"&&Pe.body.type!=="BlockStatement"?(Pe.typeParameters||!Pe.returnType?this.finishArrowValidation(Pe):re.push(Pe),V.push(Pe.body)):Pe.type==="ConditionalExpression"&&(V.push(Pe.consequent),V.push(Pe.alternate))}return B?(re.forEach((Pe)=>this.finishArrowValidation(Pe)),[re,[]]):i1(re,(Pe)=>Pe.params.every((et)=>this.isAssignable(et,!0)))}finishArrowValidation(g){var B;this.toAssignableList(g.params,(B=g.extra)==null?void 0:B.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(g,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(g,B){let V;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(g.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),V=B(),this.state.noArrowParamsConversionAt.pop()):V=B(),V}parseParenItem(g,B){let V=super.parseParenItem(g,B);if(this.eat(17)&&(V.optional=!0,this.resetEndLocation(g)),this.match(14)){let re=this.startNodeAt(B);return re.expression=V,re.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(re,"TypeCastExpression")}return V}assertModuleNodeAllowed(g){g.type==="ImportDeclaration"&&(g.importKind==="type"||g.importKind==="typeof")||g.type==="ExportNamedDeclaration"&&g.exportKind==="type"||g.type==="ExportAllDeclaration"&&g.exportKind==="type"||super.assertModuleNodeAllowed(g)}parseExportDeclaration(g){if(this.isContextual(130)){g.exportKind="type";let B=this.startNode();return this.next(),this.match(5)?(g.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(g),null):this.flowParseTypeAlias(B)}else if(this.isContextual(131)){g.exportKind="type";let B=this.startNode();return this.next(),this.flowParseOpaqueType(B,!1)}else if(this.isContextual(129)){g.exportKind="type";let B=this.startNode();return this.next(),this.flowParseInterface(B)}else if(this.isContextual(126)){g.exportKind="value";let B=this.startNode();return this.next(),this.flowParseEnumDeclaration(B)}else return super.parseExportDeclaration(g)}eatExportStar(g){return super.eatExportStar(g)?!0:this.isContextual(130)&&this.lookahead().type===55?(g.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(g){let{startLoc:B}=this.state,V=super.maybeParseExportNamespaceSpecifier(g);return V&&g.exportKind==="type"&&this.unexpected(B),V}parseClassId(g,B,V){super.parseClassId(g,B,V),this.match(47)&&(g.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(g,B,V){let{startLoc:re}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(g,B))return;B.declare=!0}super.parseClassMember(g,B,V),B.declare&&(B.type!=="ClassProperty"&&B.type!=="ClassPrivateProperty"&&B.type!=="PropertyDefinition"?this.raise(Ii.DeclareClassElement,re):B.value&&this.raise(Ii.DeclareClassFieldInitializer,B.value))}isIterator(g){return g==="iterator"||g==="asyncIterator"}readIterator(){let g=super.readWord1(),B="@@"+g;(!this.isIterator(g)||!this.state.inType)&&this.raise(A.InvalidIdentifier,this.state.curPosition(),{identifierName:B}),this.finishToken(132,B)}getTokenFromCode(g){let B=this.input.charCodeAt(this.state.pos+1);g===123&&B===124?this.finishOp(6,2):this.state.inType&&(g===62||g===60)?this.finishOp(g===62?48:47,1):this.state.inType&&g===63?B===46?this.finishOp(18,2):this.finishOp(17,1):Vi(g,B,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(g)}isAssignable(g,B){return g.type==="TypeCastExpression"?this.isAssignable(g.expression,B):super.isAssignable(g,B)}toAssignable(g,B=!1){!B&&g.type==="AssignmentExpression"&&g.left.type==="TypeCastExpression"&&(g.left=this.typeCastToParameter(g.left)),super.toAssignable(g,B)}toAssignableList(g,B,V){for(let re=0;re<g.length;re++){let Pe=g[re];(Pe==null?void 0:Pe.type)==="TypeCastExpression"&&(g[re]=this.typeCastToParameter(Pe))}super.toAssignableList(g,B,V)}toReferencedList(g,B){for(let re=0;re<g.length;re++){var V;let Pe=g[re];Pe&&Pe.type==="TypeCastExpression"&&!((V=Pe.extra)!=null&&V.parenthesized)&&(g.length>1||!B)&&this.raise(Ii.TypeCastInPattern,Pe.typeAnnotation)}return g}parseArrayLike(g,B,V,re){let Pe=super.parseArrayLike(g,B,V,re);return B&&!this.state.maybeInArrowParameters&&this.toReferencedList(Pe.elements),Pe}isValidLVal(g,B,V){return g==="TypeCastExpression"||super.isValidLVal(g,B,V)}parseClassProperty(g){return this.match(14)&&(g.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(g)}parseClassPrivateProperty(g){return this.match(14)&&(g.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(g)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(g){return!this.match(14)&&super.isNonstaticConstructor(g)}pushClassMethod(g,B,V,re,Pe,et){if(B.variance&&this.unexpected(B.variance.loc.start),delete B.variance,this.match(47)&&(B.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(g,B,V,re,Pe,et),B.params&&Pe){let xt=B.params;xt.length>0&&this.isThisParam(xt[0])&&this.raise(Ii.ThisParamBannedInConstructor,B)}else if(B.type==="MethodDefinition"&&Pe&&B.value.params){let xt=B.value.params;xt.length>0&&this.isThisParam(xt[0])&&this.raise(Ii.ThisParamBannedInConstructor,B)}}pushClassPrivateMethod(g,B,V,re){B.variance&&this.unexpected(B.variance.loc.start),delete B.variance,this.match(47)&&(B.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(g,B,V,re)}parseClassSuper(g){if(super.parseClassSuper(g),g.superClass&&(this.match(47)||this.match(51))&&(g.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let B=g.implements=[];do{let V=this.startNode();V.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?V.typeParameters=this.flowParseTypeParameterInstantiation():V.typeParameters=null,B.push(this.finishNode(V,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(g){super.checkGetterSetterParams(g);let B=this.getObjectOrClassMethodParams(g);if(B.length>0){let V=B[0];this.isThisParam(V)&&g.kind==="get"?this.raise(Ii.GetterMayNotHaveThisParam,V):this.isThisParam(V)&&this.raise(Ii.SetterMayNotHaveThisParam,V)}}parsePropertyNamePrefixOperator(g){g.variance=this.flowParseVariance()}parseObjPropValue(g,B,V,re,Pe,et,xt){g.variance&&this.unexpected(g.variance.loc.start),delete g.variance;let Vt;this.match(47)&&!et&&(Vt=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let kt=super.parseObjPropValue(g,B,V,re,Pe,et,xt);return Vt&&((kt.value||kt).typeParameters=Vt),kt}parseFunctionParamType(g){return this.eat(17)&&(g.type!=="Identifier"&&this.raise(Ii.PatternIsOptional,g),this.isThisParam(g)&&this.raise(Ii.ThisParamMayNotBeOptional,g),g.optional=!0),this.match(14)?g.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(g)&&this.raise(Ii.ThisParamAnnotationRequired,g),this.match(29)&&this.isThisParam(g)&&this.raise(Ii.ThisParamNoDefault,g),this.resetEndLocation(g),g}parseMaybeDefault(g,B){let V=super.parseMaybeDefault(g,B);return V.type==="AssignmentPattern"&&V.typeAnnotation&&V.right.start<V.typeAnnotation.start&&this.raise(Ii.TypeBeforeInitializer,V.typeAnnotation),V}checkImportReflection(g){super.checkImportReflection(g),g.module&&g.importKind!=="value"&&this.raise(Ii.ImportReflectionHasImportType,g.specifiers[0].loc.start)}parseImportSpecifierLocal(g,B,V){B.local=Vu(g)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),g.specifiers.push(this.finishImportSpecifier(B,V))}isPotentialImportPhase(g){if(super.isPotentialImportPhase(g))return!0;if(this.isContextual(130)){if(!g)return!0;let B=this.lookaheadCharCode();return B===123||B===42}return!g&&this.isContextual(87)}applyImportPhase(g,B,V,re){if(super.applyImportPhase(g,B,V,re),B){if(!V&&this.match(65))return;g.exportKind=V==="type"?V:"value"}else V==="type"&&this.match(55)&&this.unexpected(),g.importKind=V==="type"||V==="typeof"?V:"value"}parseImportSpecifier(g,B,V,re,Pe){let et=g.imported,xt=null;et.type==="Identifier"&&(et.name==="type"?xt="type":et.name==="typeof"&&(xt="typeof"));let Vt=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let an=this.parseIdentifier(!0);xt!==null&&!ut(this.state.type)?(g.imported=an,g.importKind=xt,g.local=Zt(an)):(g.imported=et,g.importKind=null,g.local=this.parseIdentifier())}else{if(xt!==null&&ut(this.state.type))g.imported=this.parseIdentifier(!0),g.importKind=xt;else{if(B)throw this.raise(A.ImportBindingIsString,g,{importName:et.value});g.imported=et,g.importKind=null}this.eatContextual(93)?g.local=this.parseIdentifier():(Vt=!0,g.local=Zt(g.imported))}let kt=Vu(g);return V&&kt&&this.raise(Ii.ImportTypeShorthandOnlyInPureImport,g),(V||kt)&&this.checkReservedType(g.local.name,g.local.loc.start,!0),Vt&&!V&&!kt&&this.checkReservedWord(g.local.name,g.loc.start,!0,!0),this.finishImportSpecifier(g,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(g,B){let V=g.kind;V!=="get"&&V!=="set"&&this.match(47)&&(g.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(g,B)}parseVarId(g,B){super.parseVarId(g,B),this.match(14)&&(g.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(g.id))}parseAsyncArrowFromCallExpression(g,B){if(this.match(14)){let V=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,g.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=V}return super.parseAsyncArrowFromCallExpression(g,B)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(g,B){var V;let re=null,Pe;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(re=this.state.clone(),Pe=this.tryParse(()=>super.parseMaybeAssign(g,B),re),!Pe.error)return Pe.node;let{context:Vt}=this.state,kt=Vt[Vt.length-1];(kt===M.j_oTag||kt===M.j_expr)&&Vt.pop()}if((V=Pe)!=null&&V.error||this.match(47)){var et,xt;re=re||this.state.clone();let Vt,kt=this.tryParse((zn)=>{var yi;Vt=this.flowParseTypeParameterDeclaration();let i0=this.forwardNoArrowParamsConversionAt(Vt,()=>{let Nu=super.parseMaybeAssign(g,B);return this.resetStartLocationFromNode(Nu,Vt),Nu});(yi=i0.extra)!=null&&yi.parenthesized&&zn();let Y0=this.maybeUnwrapTypeCastExpression(i0);return Y0.type!=="ArrowFunctionExpression"&&zn(),Y0.typeParameters=Vt,this.resetStartLocationFromNode(Y0,Vt),i0},re),an=null;if(kt.node&&this.maybeUnwrapTypeCastExpression(kt.node).type==="ArrowFunctionExpression"){if(!kt.error&&!kt.aborted)return kt.node.async&&this.raise(Ii.UnexpectedTypeParameterBeforeAsyncArrowFunction,Vt),kt.node;an=kt.node}if((et=Pe)!=null&&et.node)return this.state=Pe.failState,Pe.node;if(an)return this.state=kt.failState,an;throw(xt=Pe)!=null&&xt.thrown?Pe.error:kt.thrown?kt.error:this.raise(Ii.UnexpectedTokenAfterTypeParameter,Vt)}return super.parseMaybeAssign(g,B)}parseArrow(g){if(this.match(14)){let B=this.tryParse(()=>{let V=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let re=this.startNode();return[re.typeAnnotation,g.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=V,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),re});if(B.thrown)return null;B.error&&(this.state=B.failState),g.returnType=B.node.typeAnnotation?this.finishNode(B.node,"TypeAnnotation"):null}return super.parseArrow(g)}shouldParseArrow(g){return this.match(14)||super.shouldParseArrow(g)}setArrowFunctionParameters(g,B){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(g.start))?g.params=B:super.setArrowFunctionParameters(g,B)}checkParams(g,B,V,re=!0){if(!(V&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(g.start)))){for(let Pe=0;Pe<g.params.length;Pe++)this.isThisParam(g.params[Pe])&&Pe>0&&this.raise(Ii.ThisParamMustBeFirst,g.params[Pe]);super.checkParams(g,B,V,re)}}parseParenAndDistinguishExpression(g){return super.parseParenAndDistinguishExpression(g&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(g,B,V){if(g.type==="Identifier"&&g.name==="async"&&this.state.noArrowAt.includes(B.index)){this.next();let re=this.startNodeAt(B);re.callee=g,re.arguments=super.parseCallExpressionArguments(11),g=this.finishNode(re,"CallExpression")}else if(g.type==="Identifier"&&g.name==="async"&&this.match(47)){let re=this.state.clone(),Pe=this.tryParse((xt)=>this.parseAsyncArrowWithTypeParameters(B)||xt(),re);if(!Pe.error&&!Pe.aborted)return Pe.node;let et=this.tryParse(()=>super.parseSubscripts(g,B,V),re);if(et.node&&!et.error)return et.node;if(Pe.node)return this.state=Pe.failState,Pe.node;if(et.node)return this.state=et.failState,et.node;throw Pe.error||et.error}return super.parseSubscripts(g,B,V)}parseSubscript(g,B,V,re){if(this.match(18)&&this.isLookaheadToken_lt()){if(re.optionalChainMember=!0,V)return re.stop=!0,g;this.next();let Pe=this.startNodeAt(B);return Pe.callee=g,Pe.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),Pe.arguments=this.parseCallExpressionArguments(11),Pe.optional=!0,this.finishCallExpression(Pe,!0)}else if(!V&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let Pe=this.startNodeAt(B);Pe.callee=g;let et=this.tryParse(()=>(Pe.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),Pe.arguments=super.parseCallExpressionArguments(11),re.optionalChainMember&&(Pe.optional=!1),this.finishCallExpression(Pe,re.optionalChainMember)));if(et.node)return et.error&&(this.state=et.failState),et.node}return super.parseSubscript(g,B,V,re)}parseNewCallee(g){super.parseNewCallee(g);let B=null;this.shouldParseTypes()&&this.match(47)&&(B=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),g.typeArguments=B}parseAsyncArrowWithTypeParameters(g){let B=this.startNodeAt(g);if(this.parseFunctionParams(B,!1),!!this.parseArrow(B))return super.parseArrowExpression(B,void 0,!0)}readToken_mult_modulo(g){let B=this.input.charCodeAt(this.state.pos+1);if(g===42&&B===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(g)}readToken_pipe_amp(g){let B=this.input.charCodeAt(this.state.pos+1);if(g===124&&B===125){this.finishOp(9,2);return}super.readToken_pipe_amp(g)}parseTopLevel(g,B){let V=super.parseTopLevel(g,B);return this.state.hasFlowComment&&this.raise(Ii.UnterminatedFlowComment,this.state.curPosition()),V}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ii.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let g=this.skipFlowComment();g&&(this.state.pos+=g,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:g}=this.state,B=2;for(;[32,9].includes(this.input.charCodeAt(g+B));)B++;let V=this.input.charCodeAt(B+g),re=this.input.charCodeAt(B+g+1);return V===58&&re===58?B+2:this.input.slice(B+g,B+g+12)==="flow-include"?B+12:V===58&&re!==58?B:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(A.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(g,{enumName:B,memberName:V}){this.raise(Ii.EnumBooleanMemberNotInitialized,g,{memberName:V,enumName:B})}flowEnumErrorInvalidMemberInitializer(g,B){return this.raise(B.explicitType?B.explicitType==="symbol"?Ii.EnumInvalidMemberInitializerSymbolType:Ii.EnumInvalidMemberInitializerPrimaryType:Ii.EnumInvalidMemberInitializerUnknownType,g,B)}flowEnumErrorNumberMemberNotInitialized(g,B){this.raise(Ii.EnumNumberMemberNotInitialized,g,B)}flowEnumErrorStringMemberInconsistentlyInitialized(g,B){this.raise(Ii.EnumStringMemberInconsistentlyInitialized,g,B)}flowEnumMemberInit(){let g=this.state.startLoc,B=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let V=this.parseNumericLiteral(this.state.value);return B()?{type:"number",loc:V.loc.start,value:V}:{type:"invalid",loc:g}}case 134:{let V=this.parseStringLiteral(this.state.value);return B()?{type:"string",loc:V.loc.start,value:V}:{type:"invalid",loc:g}}case 85:case 86:{let V=this.parseBooleanLiteral(this.match(85));return B()?{type:"boolean",loc:V.loc.start,value:V}:{type:"invalid",loc:g}}default:return{type:"invalid",loc:g}}}flowEnumMemberRaw(){let g=this.state.startLoc,B=this.parseIdentifier(!0),V=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:g};return{id:B,init:V}}flowEnumCheckExplicitTypeMismatch(g,B,V){let{explicitType:re}=B;re!==null&&re!==V&&this.flowEnumErrorInvalidMemberInitializer(g,B)}flowEnumMembers({enumName:g,explicitType:B}){let V=new Set,re={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},Pe=!1;for(;!this.match(8);){if(this.eat(21)){Pe=!0;break}let et=this.startNode(),{id:xt,init:Vt}=this.flowEnumMemberRaw(),kt=xt.name;if(kt==="")continue;/^[a-z]/.test(kt)&&this.raise(Ii.EnumInvalidMemberName,xt,{memberName:kt,suggestion:kt[0].toUpperCase()+kt.slice(1),enumName:g}),V.has(kt)&&this.raise(Ii.EnumDuplicateMemberName,xt,{memberName:kt,enumName:g}),V.add(kt);let an={enumName:g,explicitType:B,memberName:kt};switch(et.id=xt,Vt.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(Vt.loc,an,"boolean"),et.init=Vt.value,re.booleanMembers.push(this.finishNode(et,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(Vt.loc,an,"number"),et.init=Vt.value,re.numberMembers.push(this.finishNode(et,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(Vt.loc,an,"string"),et.init=Vt.value,re.stringMembers.push(this.finishNode(et,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(Vt.loc,an);case"none":switch(B){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(Vt.loc,an);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(Vt.loc,an);break;default:re.defaultedMembers.push(this.finishNode(et,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:re,hasUnknownMembers:Pe}}flowEnumStringMembers(g,B,{enumName:V}){if(g.length===0)return B;if(B.length===0)return g;if(B.length>g.length){for(let re of g)this.flowEnumErrorStringMemberInconsistentlyInitialized(re,{enumName:V});return B}else{for(let re of B)this.flowEnumErrorStringMemberInconsistentlyInitialized(re,{enumName:V});return g}}flowEnumParseExplicitType({enumName:g}){if(!this.eatContextual(102))return null;if(!ke(this.state.type))throw this.raise(Ii.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:g});let{value:B}=this.state;return this.next(),B!=="boolean"&&B!=="number"&&B!=="string"&&B!=="symbol"&&this.raise(Ii.EnumInvalidExplicitType,this.state.startLoc,{enumName:g,invalidEnumType:B}),B}flowEnumBody(g,B){let V=B.name,re=B.loc.start,Pe=this.flowEnumParseExplicitType({enumName:V});this.expect(5);let{members:et,hasUnknownMembers:xt}=this.flowEnumMembers({enumName:V,explicitType:Pe});switch(g.hasUnknownMembers=xt,Pe){case"boolean":return g.explicitType=!0,g.members=et.booleanMembers,this.expect(8),this.finishNode(g,"EnumBooleanBody");case"number":return g.explicitType=!0,g.members=et.numberMembers,this.expect(8),this.finishNode(g,"EnumNumberBody");case"string":return g.explicitType=!0,g.members=this.flowEnumStringMembers(et.stringMembers,et.defaultedMembers,{enumName:V}),this.expect(8),this.finishNode(g,"EnumStringBody");case"symbol":return g.members=et.defaultedMembers,this.expect(8),this.finishNode(g,"EnumSymbolBody");default:{let Vt=()=>(g.members=[],this.expect(8),this.finishNode(g,"EnumStringBody"));g.explicitType=!1;let kt=et.booleanMembers.length,an=et.numberMembers.length,zn=et.stringMembers.length,yi=et.defaultedMembers.length;if(!kt&&!an&&!zn&&!yi)return Vt();if(!kt&&!an)return g.members=this.flowEnumStringMembers(et.stringMembers,et.defaultedMembers,{enumName:V}),this.expect(8),this.finishNode(g,"EnumStringBody");if(!an&&!zn&&kt>=yi){for(let i0 of et.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(i0.loc.start,{enumName:V,memberName:i0.id.name});return g.members=et.booleanMembers,this.expect(8),this.finishNode(g,"EnumBooleanBody")}else if(!kt&&!zn&&an>=yi){for(let i0 of et.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(i0.loc.start,{enumName:V,memberName:i0.id.name});return g.members=et.numberMembers,this.expect(8),this.finishNode(g,"EnumNumberBody")}else return this.raise(Ii.EnumInconsistentMemberValues,re,{enumName:V}),Vt()}}}flowParseEnumDeclaration(g){let B=this.parseIdentifier();return g.id=B,g.body=this.flowEnumBody(this.startNode(),B),this.finishNode(g,"EnumDeclaration")}jsxParseOpeningElementAfterName(g){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(g.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(g)}isLookaheadToken_lt(){let g=this.nextTokenStart();if(this.input.charCodeAt(g)===60){let B=this.input.charCodeAt(g+1);return B!==60&&B!==61}return!1}reScan_lt_gt(){let{type:g}=this.state;g===47?(this.state.pos-=1,this.readToken_lt()):g===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:g}=this.state;return g===51?(this.state.pos-=2,this.finishOp(47,1),47):g}maybeUnwrapTypeCastExpression(g){return g.type==="TypeCastExpression"?g.expression:g}},Gs=T`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:k})=>`Expected corresponding JSX closing tag for <${k}>.`,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:k,HTMLEntity:g})=>`Unexpected token \`${k}\`. Did you mean \`${g}\` or \`{'${k}'}\`?`,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 W_(k){return k?k.type==="JSXOpeningFragment"||k.type==="JSXClosingFragment":!1}function Pc(k){if(k.type==="JSXIdentifier")return k.name;if(k.type==="JSXNamespacedName")return k.namespace.name+":"+k.name.name;if(k.type==="JSXMemberExpression")return Pc(k.object)+"."+Pc(k.property);throw new Error("Node had unexpected type: "+k.type)}var rp=(k)=>class extends k{jsxReadToken(){let g="",B=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Gs.UnterminatedJsxContent,this.state.startLoc);let V=this.input.charCodeAt(this.state.pos);switch(V){case 60:case 123:if(this.state.pos===this.state.start){V===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(V);return}g+=this.input.slice(B,this.state.pos),this.finishToken(142,g);return;case 38:g+=this.input.slice(B,this.state.pos),g+=this.jsxReadEntity(),B=this.state.pos;break;case 62:case 125:default:vr(V)?(g+=this.input.slice(B,this.state.pos),g+=this.jsxReadNewLine(!0),B=this.state.pos):++this.state.pos}}}jsxReadNewLine(g){let B=this.input.charCodeAt(this.state.pos),V;return++this.state.pos,B===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,V=g?`
|
|
404
404
|
`:`\r
|
|
405
405
|
`):V=String.fromCharCode(B),++this.state.curLine,this.state.lineStart=this.state.pos,V}jsxReadString(g){let B="",V=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(A.UnterminatedString,this.state.startLoc);let re=this.input.charCodeAt(this.state.pos);if(re===g)break;re===38?(B+=this.input.slice(V,this.state.pos),B+=this.jsxReadEntity(),V=this.state.pos):vr(re)?(B+=this.input.slice(V,this.state.pos),B+=this.jsxReadNewLine(!1),V=this.state.pos):++this.state.pos}B+=this.input.slice(V,this.state.pos++),this.finishToken(134,B)}jsxReadEntity(){let g=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let B=10;this.codePointAtPos(this.state.pos)===120&&(B=16,++this.state.pos);let V=this.readInt(B,void 0,!1,"bail");if(V!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(V)}else{let B=0,V=!1;for(;B++<10&&this.state.pos<this.length&&!(V=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(V){let re=this.input.slice(g,this.state.pos),Pe=void 0;if(++this.state.pos,Pe)return Pe}}return this.state.pos=g,"&"}jsxReadWord(){let g,B=this.state.pos;do g=this.input.charCodeAt(++this.state.pos);while(ki(g)||g===45);this.finishToken(141,this.input.slice(B,this.state.pos))}jsxParseIdentifier(){let g=this.startNode();return this.match(141)?g.name=this.state.value:Mt(this.state.type)?g.name=Cn(this.state.type):this.unexpected(),this.next(),this.finishNode(g,"JSXIdentifier")}jsxParseNamespacedName(){let g=this.state.startLoc,B=this.jsxParseIdentifier();if(!this.eat(14))return B;let V=this.startNodeAt(g);return V.namespace=B,V.name=this.jsxParseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsxParseElementName(){let g=this.state.startLoc,B=this.jsxParseNamespacedName();if(B.type==="JSXNamespacedName")return B;for(;this.eat(16);){let V=this.startNodeAt(g);V.object=B,V.property=this.jsxParseIdentifier(),B=this.finishNode(V,"JSXMemberExpression")}return B}jsxParseAttributeValue(){let g;switch(this.state.type){case 5:return g=this.startNode(),this.setContext(M.brace),this.next(),g=this.jsxParseExpressionContainer(g,M.j_oTag),g.expression.type==="JSXEmptyExpression"&&this.raise(Gs.AttributeIsEmpty,g),g;case 143:case 134:return this.parseExprAtom();default:throw this.raise(Gs.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let g=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(g,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(g){return this.next(),g.expression=this.parseExpression(),this.setContext(M.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(g,"JSXSpreadChild")}jsxParseExpressionContainer(g,B){if(this.match(8))g.expression=this.jsxParseEmptyExpression();else{let V=this.parseExpression();g.expression=V}return this.setContext(B),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(g,"JSXExpressionContainer")}jsxParseAttribute(){let g=this.startNode();return this.match(5)?(this.setContext(M.brace),this.next(),this.expect(21),g.argument=this.parseMaybeAssignAllowIn(),this.setContext(M.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(g,"JSXSpreadAttribute")):(g.name=this.jsxParseNamespacedName(),g.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(g,"JSXAttribute"))}jsxParseOpeningElementAt(g){let B=this.startNodeAt(g);return this.eat(144)?this.finishNode(B,"JSXOpeningFragment"):(B.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(B))}jsxParseOpeningElementAfterName(g){let B=[];for(;!this.match(56)&&!this.match(144);)B.push(this.jsxParseAttribute());return g.attributes=B,g.selfClosing=this.eat(56),this.expect(144),this.finishNode(g,"JSXOpeningElement")}jsxParseClosingElementAt(g){let B=this.startNodeAt(g);return this.eat(144)?this.finishNode(B,"JSXClosingFragment"):(B.name=this.jsxParseElementName(),this.expect(144),this.finishNode(B,"JSXClosingElement"))}jsxParseElementAt(g){let B=this.startNodeAt(g),V=[],re=this.jsxParseOpeningElementAt(g),Pe=null;if(!re.selfClosing){e:for(;;)switch(this.state.type){case 143:if(g=this.state.startLoc,this.next(),this.eat(56)){Pe=this.jsxParseClosingElementAt(g);break e}V.push(this.jsxParseElementAt(g));break;case 142:V.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let et=this.startNode();this.setContext(M.brace),this.next(),this.match(21)?V.push(this.jsxParseSpreadChild(et)):V.push(this.jsxParseExpressionContainer(et,M.j_expr));break}default:this.unexpected()}W_(re)&&!W_(Pe)&&Pe!==null?this.raise(Gs.MissingClosingTagFragment,Pe):!W_(re)&&W_(Pe)?this.raise(Gs.MissingClosingTagElement,Pe,{openingTagName:Pc(re.name)}):!W_(re)&&!W_(Pe)&&Pc(Pe.name)!==Pc(re.name)&&this.raise(Gs.MissingClosingTagElement,Pe,{openingTagName:Pc(re.name)})}if(W_(re)?(B.openingFragment=re,B.closingFragment=Pe):(B.openingElement=re,B.closingElement=Pe),B.children=V,this.match(47))throw this.raise(Gs.UnwrappedAdjacentJSXElements,this.state.startLoc);return W_(re)?this.finishNode(B,"JSXFragment"):this.finishNode(B,"JSXElement")}jsxParseElement(){let g=this.state.startLoc;return this.next(),this.jsxParseElementAt(g)}setContext(g){let{context:B}=this.state;B[B.length-1]=g}parseExprAtom(g){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(g)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(g){let B=this.curContext();if(B===M.j_expr){this.jsxReadToken();return}if(B===M.j_oTag||B===M.j_cTag){if(en(g)){this.jsxReadWord();return}if(g===62){++this.state.pos,this.finishToken(144);return}if((g===34||g===39)&&B===M.j_oTag){this.jsxReadString(g);return}}if(g===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(g)}updateContext(g){let{context:B,type:V}=this.state;if(V===56&&g===143)B.splice(-2,2,M.j_cTag),this.state.canStartJSXElement=!1;else if(V===143)B.push(M.j_oTag);else if(V===144){let re=B[B.length-1];re===M.j_oTag&&g===56||re===M.j_cTag?(B.pop(),this.state.canStartJSXElement=B[B.length-1]===M.j_expr):(this.setContext(M.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=gt(V)}},Py=class extends na{constructor(...k){super(...k),this.tsNames=new Map}},a1=class extends K0{constructor(...k){super(...k),this.importsStack=[]}createScope(k){return this.importsStack.push(new Set),new Py(k)}enter(k){k===256&&this.importsStack.push(new Set),super.enter(k)}exit(){let k=super.exit();return k===256&&this.importsStack.pop(),k}hasImport(k,g){let B=this.importsStack.length;if(this.importsStack[B-1].has(k))return!0;if(!g&&B>1){for(let V=0;V<B-1;V++)if(this.importsStack[V].has(k))return!0}return!1}declareName(k,g,B){if(g&4096){this.hasImport(k,!0)&&this.parser.raise(A.VarRedeclaration,B,{identifierName:k}),this.importsStack[this.importsStack.length-1].add(k);return}let V=this.currentScope(),re=V.tsNames.get(k)||0;if(g&1024){this.maybeExportDefined(V,k),V.tsNames.set(k,re|16);return}super.declareName(k,g,B),g&2&&(g&1||(this.checkRedeclarationInScope(V,k,g,B),this.maybeExportDefined(V,k)),re=re|1),g&256&&(re=re|2),g&512&&(re=re|4),g&128&&(re=re|8),re&&V.tsNames.set(k,re)}isRedeclaredInScope(k,g,B){let V=k.tsNames.get(g);if((V&2)>0){if(B&256){let re=!!(B&512),Pe=(V&4)>0;return re!==Pe}return!0}return B&128&&(V&8)>0?k.names.get(g)&2?!!(B&1):!1:B&2&&(V&1)>0?!0:super.isRedeclaredInScope(k,g,B)}checkLocalExport(k){let{name:g}=k;if(this.hasImport(g))return;let B=this.scopeStack.length;for(let V=B-1;V>=0;V--){let re=this.scopeStack[V].tsNames.get(g);if((re&1)>0||(re&16)>0)return}super.checkLocalExport(k)}},np=(k)=>k.type==="ParenthesizedExpression"?np(k.expression):k,Ny=class extends fl{toAssignable(k,g=!1){var B,V;let re;switch((k.type==="ParenthesizedExpression"||(B=k.extra)!=null&&B.parenthesized)&&(re=np(k),g?re.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(A.InvalidParenthesizedAssignment,k):re.type!=="MemberExpression"&&!this.isOptionalMemberExpression(re)&&this.raise(A.InvalidParenthesizedAssignment,k):this.raise(A.InvalidParenthesizedAssignment,k)),k.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":k.type="ObjectPattern";for(let et=0,xt=k.properties.length,Vt=xt-1;et<xt;et++){var Pe;let kt=k.properties[et],an=et===Vt;this.toAssignableObjectExpressionProp(kt,an,g),an&&kt.type==="RestElement"&&(Pe=k.extra)!=null&&Pe.trailingCommaLoc&&this.raise(A.RestTrailingComma,k.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:et,value:xt}=k;this.isPrivateName(et)&&this.classScope.usePrivateName(this.getPrivateNameSV(et),et.loc.start),this.toAssignable(xt,g);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":k.type="ArrayPattern",this.toAssignableList(k.elements,(V=k.extra)==null?void 0:V.trailingCommaLoc,g);break;case"AssignmentExpression":k.operator!=="="&&this.raise(A.MissingEqInAssignment,k.left.loc.end),k.type="AssignmentPattern",delete k.operator,this.toAssignable(k.left,g);break;case"ParenthesizedExpression":this.toAssignable(re,g);break}}toAssignableObjectExpressionProp(k,g,B){if(k.type==="ObjectMethod")this.raise(k.kind==="get"||k.kind==="set"?A.PatternHasAccessor:A.PatternHasMethod,k.key);else if(k.type==="SpreadElement"){k.type="RestElement";let V=k.argument;this.checkToRestConversion(V,!1),this.toAssignable(V,B),g||this.raise(A.RestTrailingComma,k)}else this.toAssignable(k,B)}toAssignableList(k,g,B){let V=k.length-1;for(let re=0;re<=V;re++){let Pe=k[re];if(Pe){if(Pe.type==="SpreadElement"){Pe.type="RestElement";let et=Pe.argument;this.checkToRestConversion(et,!0),this.toAssignable(et,B)}else this.toAssignable(Pe,B);Pe.type==="RestElement"&&(re<V?this.raise(A.RestTrailingComma,Pe):g&&this.raise(A.RestTrailingComma,g))}}}isAssignable(k,g){switch(k.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let B=k.properties.length-1;return k.properties.every((V,re)=>V.type!=="ObjectMethod"&&(re===B||V.type!=="SpreadElement")&&this.isAssignable(V))}case"ObjectProperty":return this.isAssignable(k.value);case"SpreadElement":return this.isAssignable(k.argument);case"ArrayExpression":return k.elements.every((B)=>B===null||this.isAssignable(B));case"AssignmentExpression":return k.operator==="=";case"ParenthesizedExpression":return this.isAssignable(k.expression);case"MemberExpression":case"OptionalMemberExpression":return!g;default:return!1}}toReferencedList(k,g){return k}toReferencedListDeep(k,g){this.toReferencedList(k,g);for(let B of k)(B==null?void 0:B.type)==="ArrayExpression"&&this.toReferencedListDeep(B.elements)}parseSpread(k){let g=this.startNode();return this.next(),g.argument=this.parseMaybeAssignAllowIn(k,void 0),this.finishNode(g,"SpreadElement")}parseRestBinding(){let k=this.startNode();return this.next(),k.argument=this.parseBindingAtom(),this.finishNode(k,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let k=this.startNode();return this.next(),k.elements=this.parseBindingList(3,93,1),this.finishNode(k,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(k,g,B){let V=B&1,re=[],Pe=!0;for(;!this.eat(k);)if(Pe?Pe=!1:this.expect(12),V&&this.match(12))re.push(null);else{if(this.eat(k))break;if(this.match(21)){let et=this.parseRestBinding();if((this.hasPlugin("flow")||B&2)&&(et=this.parseFunctionParamType(et)),re.push(et),!this.checkCommaAfterRest(g)){this.expect(k);break}}else{let et=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(A.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)et.push(this.parseDecorator());re.push(this.parseAssignableListItem(B,et))}}return re}parseBindingRestProperty(k){return this.next(),k.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(k,"RestElement")}parseBindingProperty(){let{type:k,startLoc:g}=this.state;if(k===21)return this.parseBindingRestProperty(this.startNode());let B=this.startNode();return k===139?(this.expectPlugin("destructuringPrivate",g),this.classScope.usePrivateName(this.state.value,g),B.key=this.parsePrivateName()):this.parsePropertyName(B),B.method=!1,this.parseObjPropValue(B,g,!1,!1,!0,!1)}parseAssignableListItem(k,g){let B=this.parseMaybeDefault();(this.hasPlugin("flow")||k&2)&&this.parseFunctionParamType(B);let V=this.parseMaybeDefault(B.loc.start,B);return g.length&&(B.decorators=g),V}parseFunctionParamType(k){return k}parseMaybeDefault(k,g){var B,V;if((B=k)!=null||(k=this.state.startLoc),g=(V=g)!=null?V:this.parseBindingAtom(),!this.eat(29))return g;let re=this.startNodeAt(k);return re.left=g,re.right=this.parseMaybeAssignAllowIn(),this.finishNode(re,"AssignmentPattern")}isValidLVal(k,g,B){switch(k){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!1}isOptionalMemberExpression(k){return k.type==="OptionalMemberExpression"}checkLVal(k,g,B=64,V=!1,re=!1,Pe=!1){var et;let xt=k.type;if(this.isObjectMethod(k))return;let Vt=this.isOptionalMemberExpression(k);if(Vt||xt==="MemberExpression"){Vt&&(this.expectPlugin("optionalChainingAssign",k.loc.start),g.type!=="AssignmentExpression"&&this.raise(A.InvalidLhsOptionalChaining,k,{ancestor:g})),B!==64&&this.raise(A.InvalidPropertyBindingPattern,k);return}if(xt==="Identifier"){this.checkIdentifier(k,B,re);let{name:Y0}=k;V&&(V.has(Y0)?this.raise(A.ParamDupe,k):V.add(Y0));return}let kt=this.isValidLVal(xt,!(Pe||(et=k.extra)!=null&&et.parenthesized)&&g.type==="AssignmentExpression",B);if(kt===!0)return;if(kt===!1){let Y0=B===64?A.InvalidLhs:A.InvalidLhsBinding;this.raise(Y0,k,{ancestor:g});return}let an,zn;typeof kt=="string"?(an=kt,zn=xt==="ParenthesizedExpression"):[an,zn]=kt;let yi=xt==="ArrayPattern"||xt==="ObjectPattern"?{type:xt}:g,i0=k[an];if(Array.isArray(i0))for(let Y0 of i0)Y0&&this.checkLVal(Y0,yi,B,V,re,zn);else i0&&this.checkLVal(i0,yi,B,V,re,zn)}checkIdentifier(k,g,B=!1){this.state.strict&&(B?kn(k.name,this.inModule):Pr(k.name))&&(g===64?this.raise(A.StrictEvalArguments,k,{referenceName:k.name}):this.raise(A.StrictEvalArgumentsBinding,k,{bindingName:k.name})),g&8192&&k.name==="let"&&this.raise(A.LetInLexicalBinding,k),g&64||this.declareNameFromIdentifier(k,g)}declareNameFromIdentifier(k,g){this.scope.declareName(k.name,g,k.loc.start)}checkToRestConversion(k,g){switch(k.type){case"ParenthesizedExpression":this.checkToRestConversion(k.expression,g);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(g)break;default:this.raise(A.InvalidRestAssignmentPattern,k)}}checkCommaAfterRest(k){return this.match(12)?(this.raise(this.lookaheadCharCode()===k?A.RestTrailingComma:A.ElementAfterRest,this.state.startLoc),!0):!1}};function id(k){if(k==null)throw new Error(`Unexpected ${k} value.`);return k}function Nc(k){if(!k)throw new Error("Assert fail")}var o0=T`typescript`({AbstractMethodHasImplementation:({methodName:k})=>`Method '${k}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:k})=>`Property '${k}' 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:k})=>`'declare' is not allowed in ${k}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:k})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:k})=>`Duplicate modifier: '${k}'.`,EmptyHeritageClauseType:({token:k})=>`'${k}' 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:k})=>`'${k[0]}' modifier cannot be used with '${k[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:k})=>`Index signatures cannot have an accessibility modifier ('${k}').`,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.",InvalidModifierOnTypeMember:({modifier:k})=>`'${k}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:k})=>`'${k}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:k})=>`'${k}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:k})=>`'${k[0]}' modifier must precede '${k[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:k})=>`Private elements cannot have an accessibility modifier ('${k}').`,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:k})=>`Single type parameter ${k} should have a trailing comma. Example usage: <${k},>.`,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:k})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${k}.`});function u1(k){switch(k){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}}function a_(k){return k==="private"||k==="public"||k==="protected"}function Bc(k){return k==="in"||k==="out"}var ih=(k)=>class extends k{constructor(...g){super(...g),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:o0.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:o0.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:o0.InvalidModifierOnTypeParameter})}getScopeHandler(){return a1}tsIsIdentifier(){return ke(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(g,B){if(!ke(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let V=this.state.value;if(g.includes(V)){if(B&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return V}}tsParseModifiers({allowedModifiers:g,disallowedModifiers:B,stopOnStartOfClassStaticBlock:V,errorTemplate:re=o0.InvalidModifierOnTypeMember},Pe){let et=(Vt,kt,an,zn)=>{kt===an&&Pe[zn]&&this.raise(o0.InvalidModifiersOrder,Vt,{orderedModifiers:[an,zn]})},xt=(Vt,kt,an,zn)=>{(Pe[an]&&kt===zn||Pe[zn]&&kt===an)&&this.raise(o0.IncompatibleModifiers,Vt,{modifiers:[an,zn]})};for(;;){let{startLoc:Vt}=this.state,kt=this.tsParseModifier(g.concat(B??[]),V);if(!kt)break;a_(kt)?Pe.accessibility?this.raise(o0.DuplicateAccessibilityModifier,Vt,{modifier:kt}):(et(Vt,kt,kt,"override"),et(Vt,kt,kt,"static"),et(Vt,kt,kt,"readonly"),Pe.accessibility=kt):Bc(kt)?(Pe[kt]&&this.raise(o0.DuplicateModifier,Vt,{modifier:kt}),Pe[kt]=!0,et(Vt,kt,"in","out")):(hasOwnProperty.call(Pe,kt)?this.raise(o0.DuplicateModifier,Vt,{modifier:kt}):(et(Vt,kt,"static","readonly"),et(Vt,kt,"static","override"),et(Vt,kt,"override","readonly"),et(Vt,kt,"abstract","override"),xt(Vt,kt,"declare","override"),xt(Vt,kt,"static","abstract")),Pe[kt]=!0),B!=null&&B.includes(kt)&&this.raise(re,Vt,{modifier:kt})}}tsIsListTerminator(g){switch(g){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(g,B){let V=[];for(;!this.tsIsListTerminator(g);)V.push(B());return V}tsParseDelimitedList(g,B,V){return id(this.tsParseDelimitedListWorker(g,B,!0,V))}tsParseDelimitedListWorker(g,B,V,re){let Pe=[],et=-1;for(;!this.tsIsListTerminator(g);){et=-1;let xt=B();if(xt==null)return;if(Pe.push(xt),this.eat(12)){et=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(g))break;V&&this.expect(12);return}return re&&(re.value=et),Pe}tsParseBracketedList(g,B,V,re,Pe){re||(V?this.expect(0):this.expect(47));let et=this.tsParseDelimitedList(g,B,Pe);return V?this.expect(3):this.expect(48),et}tsParseImportType(){let g=this.startNode();return this.expect(83),this.expect(10),this.match(134)?g.argument=this.parseStringLiteral(this.state.value):(this.raise(o0.UnsupportedImportTypeArgument,this.state.startLoc),g.argument=super.parseExprAtom()),this.eat(12)&&!this.match(11)?(g.options=super.parseMaybeAssignAllowIn(),this.eat(12)):g.options=null,this.expect(11),this.eat(16)&&(g.qualifier=this.tsParseEntityName(3)),this.match(47)&&(g.typeParameters=this.tsParseTypeArguments()),this.finishNode(g,"TSImportType")}tsParseEntityName(g){let B;if(g&1&&this.match(78))if(g&2)B=this.parseIdentifier(!0);else{let V=this.startNode();this.next(),B=this.finishNode(V,"ThisExpression")}else B=this.parseIdentifier(!!(g&1));for(;this.eat(16);){let V=this.startNodeAtNode(B);V.left=B,V.right=this.parseIdentifier(!!(g&1)),B=this.finishNode(V,"TSQualifiedName")}return B}tsParseTypeReference(){let g=this.startNode();return g.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(g.typeParameters=this.tsParseTypeArguments()),this.finishNode(g,"TSTypeReference")}tsParseThisTypePredicate(g){this.next();let B=this.startNodeAtNode(g);return B.parameterName=g,B.typeAnnotation=this.tsParseTypeAnnotation(!1),B.asserts=!1,this.finishNode(B,"TSTypePredicate")}tsParseThisTypeNode(){let g=this.startNode();return this.next(),this.finishNode(g,"TSThisType")}tsParseTypeQuery(){let g=this.startNode();return this.expect(87),this.match(83)?g.exprName=this.tsParseImportType():g.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(g.typeParameters=this.tsParseTypeArguments()),this.finishNode(g,"TSTypeQuery")}tsParseTypeParameter(g){let B=this.startNode();return g(B),B.name=this.tsParseTypeParameterName(),B.constraint=this.tsEatThenParseType(81),B.default=this.tsEatThenParseType(29),this.finishNode(B,"TSTypeParameter")}tsTryParseTypeParameters(g){if(this.match(47))return this.tsParseTypeParameters(g)}tsParseTypeParameters(g){let B=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let V={value:-1};return B.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,g),!1,!0,V),B.params.length===0&&this.raise(o0.EmptyTypeParameters,B),V.value!==-1&&this.addExtra(B,"trailingComma",V.value),this.finishNode(B,"TSTypeParameterDeclaration")}tsFillSignature(g,B){let V=g===19,re="parameters",Pe="typeAnnotation";B.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),B[re]=this.tsParseBindingListForSignature(),V?B[Pe]=this.tsParseTypeOrTypePredicateAnnotation(g):this.match(g)&&(B[Pe]=this.tsParseTypeOrTypePredicateAnnotation(g))}tsParseBindingListForSignature(){let g=super.parseBindingList(11,41,2);for(let B of g){let{type:V}=B;(V==="AssignmentPattern"||V==="TSParameterProperty")&&this.raise(o0.UnsupportedSignatureParameterKind,B,{type:V})}return g}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(g,B){return this.tsFillSignature(14,B),this.tsParseTypeMemberSemicolon(),this.finishNode(B,g)}tsIsUnambiguouslyIndexSignature(){return this.next(),ke(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(g){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let B=this.parseIdentifier();B.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(B),this.expect(3),g.parameters=[B];let V=this.tsTryParseTypeAnnotation();return V&&(g.typeAnnotation=V),this.tsParseTypeMemberSemicolon(),this.finishNode(g,"TSIndexSignature")}tsParsePropertyOrMethodSignature(g,B){this.eat(17)&&(g.optional=!0);let V=g;if(this.match(10)||this.match(47)){B&&this.raise(o0.ReadonlyForMethodSignature,g);let re=V;re.kind&&this.match(47)&&this.raise(o0.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,re),this.tsParseTypeMemberSemicolon();let Pe="parameters",et="typeAnnotation";if(re.kind==="get")re[Pe].length>0&&(this.raise(A.BadGetterArity,this.state.curPosition()),this.isThisParam(re[Pe][0])&&this.raise(o0.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(re.kind==="set"){if(re[Pe].length!==1)this.raise(A.BadSetterArity,this.state.curPosition());else{let xt=re[Pe][0];this.isThisParam(xt)&&this.raise(o0.AccessorCannotDeclareThisParameter,this.state.curPosition()),xt.type==="Identifier"&&xt.optional&&this.raise(o0.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),xt.type==="RestElement"&&this.raise(o0.SetAccessorCannotHaveRestParameter,this.state.curPosition())}re[et]&&this.raise(o0.SetAccessorCannotHaveReturnType,re[et])}else re.kind="method";return this.finishNode(re,"TSMethodSignature")}else{let re=V;B&&(re.readonly=!0);let Pe=this.tsTryParseTypeAnnotation();return Pe&&(re.typeAnnotation=Pe),this.tsParseTypeMemberSemicolon(),this.finishNode(re,"TSPropertySignature")}}tsParseTypeMember(){let g=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",g);if(this.match(77)){let V=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",g):(g.key=this.createIdentifier(V,"new"),this.tsParsePropertyOrMethodSignature(g,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},g),this.tsTryParseIndexSignature(g)||(super.parsePropertyName(g),!g.computed&&g.key.type==="Identifier"&&(g.key.name==="get"||g.key.name==="set")&&this.tsTokenCanFollowModifier()&&(g.kind=g.key.name,super.parsePropertyName(g)),this.tsParsePropertyOrMethodSignature(g,!!g.readonly))}tsParseTypeLiteral(){let g=this.startNode();return g.members=this.tsParseObjectTypeMembers(),this.finishNode(g,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let g=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),g}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let g=this.startNode();this.expect(5),this.match(53)?(g.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(g.readonly=!0),this.expect(0);{let B=this.startNode();B.name=this.tsParseTypeParameterName(),B.constraint=this.tsExpectThenParseType(58),g.typeParameter=this.finishNode(B,"TSTypeParameter")}return g.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(g.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(g.optional=!0),g.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(g,"TSMappedType")}tsParseTupleType(){let g=this.startNode();g.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let B=!1;return g.elementTypes.forEach((V)=>{let{type:re}=V;B&&re!=="TSRestType"&&re!=="TSOptionalType"&&!(re==="TSNamedTupleMember"&&V.optional)&&this.raise(o0.OptionalTypeBeforeRequired,V),B||(B=re==="TSNamedTupleMember"&&V.optional||re==="TSOptionalType")}),this.finishNode(g,"TSTupleType")}tsParseTupleElementType(){let g=this.state.startLoc,B=this.eat(21),{startLoc:V}=this.state,re,Pe,et,xt,Vt=ut(this.state.type)?this.lookaheadCharCode():null;if(Vt===58)re=!0,et=!1,Pe=this.parseIdentifier(!0),this.expect(14),xt=this.tsParseType();else if(Vt===63){et=!0;let kt=this.state.value,an=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(re=!0,Pe=this.createIdentifier(this.startNodeAt(V),kt),this.expect(17),this.expect(14),xt=this.tsParseType()):(re=!1,xt=an,this.expect(17))}else xt=this.tsParseType(),et=this.eat(17),re=this.eat(14);if(re){let kt;Pe?(kt=this.startNodeAt(V),kt.optional=et,kt.label=Pe,kt.elementType=xt,this.eat(17)&&(kt.optional=!0,this.raise(o0.TupleOptionalAfterType,this.state.lastTokStartLoc))):(kt=this.startNodeAt(V),kt.optional=et,this.raise(o0.InvalidTupleMemberLabel,xt),kt.label=xt,kt.elementType=this.tsParseType()),xt=this.finishNode(kt,"TSNamedTupleMember")}else if(et){let kt=this.startNodeAt(V);kt.typeAnnotation=xt,xt=this.finishNode(kt,"TSOptionalType")}if(B){let kt=this.startNodeAt(g);kt.typeAnnotation=xt,xt=this.finishNode(kt,"TSRestType")}return xt}tsParseParenthesizedType(){let g=this.startNode();return this.expect(10),g.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(g,"TSParenthesizedType")}tsParseFunctionOrConstructorType(g,B){let V=this.startNode();return g==="TSConstructorType"&&(V.abstract=!!B,B&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,V)),this.finishNode(V,g)}tsParseLiteralTypeNode(){let g=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:g.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(g,"TSLiteralType")}tsParseTemplateLiteralType(){{let g=this.startNode();return g.literal=super.parseTemplate(!1),this.finishNode(g,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let g=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(g):g}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let g=this.startNode(),B=this.lookahead();return B.type!==135&&B.type!==136&&this.unexpected(),g.literal=this.parseMaybeUnary(),this.finishNode(g,"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:{let{type:g}=this.state;if(ke(g)||g===88||g===84){let B=g===88?"TSVoidKeyword":g===84?"TSNullKeyword":u1(this.state.value);if(B!==void 0&&this.lookaheadCharCode()!==46){let V=this.startNode();return this.next(),this.finishNode(V,B)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:g}=this.state,B=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let V=this.startNodeAt(g);V.elementType=B,this.expect(3),B=this.finishNode(V,"TSArrayType")}else{let V=this.startNodeAt(g);V.objectType=B,V.indexType=this.tsParseType(),this.expect(3),B=this.finishNode(V,"TSIndexedAccessType")}return B}tsParseTypeOperator(){let g=this.startNode(),B=this.state.value;return this.next(),g.operator=B,g.typeAnnotation=this.tsParseTypeOperatorOrHigher(),B==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(g),this.finishNode(g,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(g){switch(g.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(o0.UnexpectedReadonly,g)}}tsParseInferType(){let g=this.startNode();this.expectContextual(115);let B=this.startNode();return B.name=this.tsParseTypeParameterName(),B.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),g.typeParameter=this.finishNode(B,"TSTypeParameter"),this.finishNode(g,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let g=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return g}}tsParseTypeOperatorOrHigher(){return Tr(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(g,B,V){let re=this.startNode(),Pe=this.eat(V),et=[];do et.push(B());while(this.eat(V));return et.length===1&&!Pe?et[0]:(re.types=et,this.finishNode(re,g))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ke(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:g}=this.state,B=g.length;try{return this.parseObjectLike(8,!0),g.length===B}catch{return!1}}if(this.match(0)){this.next();let{errors:g}=this.state,B=g.length;try{return super.parseBindingList(3,93,1),g.length===B}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(g){return this.tsInType(()=>{let B=this.startNode();this.expect(g);let V=this.startNode(),re=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(re&&this.match(78)){let xt=this.tsParseThisTypeOrThisTypePredicate();return xt.type==="TSThisType"?(V.parameterName=xt,V.asserts=!0,V.typeAnnotation=null,xt=this.finishNode(V,"TSTypePredicate")):(this.resetStartLocationFromNode(xt,V),xt.asserts=!0),B.typeAnnotation=xt,this.finishNode(B,"TSTypeAnnotation")}let Pe=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!Pe)return re?(V.parameterName=this.parseIdentifier(),V.asserts=re,V.typeAnnotation=null,B.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(B,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,B);let et=this.tsParseTypeAnnotation(!1);return V.parameterName=Pe,V.typeAnnotation=et,V.asserts=re,B.typeAnnotation=this.finishNode(V,"TSTypePredicate"),this.finishNode(B,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let g=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),g}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let g=this.state.containsEsc;return this.next(),!ke(this.state.type)&&!this.match(78)?!1:(g&&this.raise(A.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(g=!0,B=this.startNode()){return this.tsInType(()=>{g&&this.expect(14),B.typeAnnotation=this.tsParseType()}),this.finishNode(B,"TSTypeAnnotation")}tsParseType(){Nc(this.state.inType);let g=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return g;let B=this.startNodeAtNode(g);return B.checkType=g,B.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),B.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),B.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(B,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(o0.ReservedTypeAssertion,this.state.startLoc);let g=this.startNode();return g.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),g.expression=this.parseMaybeUnary(),this.finishNode(g,"TSTypeAssertion")}tsParseHeritageClause(g){let B=this.state.startLoc,V=this.tsParseDelimitedList("HeritageClauseElement",()=>{let re=this.startNode();return re.expression=this.tsParseEntityName(3),this.match(47)&&(re.typeParameters=this.tsParseTypeArguments()),this.finishNode(re,"TSExpressionWithTypeArguments")});return V.length||this.raise(o0.EmptyHeritageClauseType,B,{token:g}),V}tsParseInterfaceDeclaration(g,B={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),B.declare&&(g.declare=!0),ke(this.state.type)?(g.id=this.parseIdentifier(),this.checkIdentifier(g.id,130)):(g.id=null,this.raise(o0.MissingInterfaceName,this.state.startLoc)),g.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(g.extends=this.tsParseHeritageClause("extends"));let V=this.startNode();return V.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),g.body=this.finishNode(V,"TSInterfaceBody"),this.finishNode(g,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(g){return g.id=this.parseIdentifier(),this.checkIdentifier(g.id,2),g.typeAnnotation=this.tsInType(()=>{if(g.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let B=this.startNode();return this.next(),this.finishNode(B,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(g,"TSTypeAliasDeclaration")}tsInTopLevelContext(g){if(this.curContext()!==M.brace){let B=this.state.context;this.state.context=[B[0]];try{return g()}finally{this.state.context=B}}else return g()}tsInType(g){let B=this.state.inType;this.state.inType=!0;try{return g()}finally{this.state.inType=B}}tsInDisallowConditionalTypesContext(g){let B=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return g()}finally{this.state.inDisallowConditionalTypesContext=B}}tsInAllowConditionalTypesContext(g){let B=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return g()}finally{this.state.inDisallowConditionalTypesContext=B}}tsEatThenParseType(g){if(this.match(g))return this.tsNextThenParseType()}tsExpectThenParseType(g){return this.tsInType(()=>(this.expect(g),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let g=this.startNode();return g.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(g.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(g,"TSEnumMember")}tsParseEnumDeclaration(g,B={}){return B.const&&(g.const=!0),B.declare&&(g.declare=!0),this.expectContextual(126),g.id=this.parseIdentifier(),this.checkIdentifier(g.id,g.const?8971:8459),this.expect(5),g.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(g,"TSEnumDeclaration")}tsParseEnumBody(){let g=this.startNode();return this.expect(5),g.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(g,"TSEnumBody")}tsParseModuleBlock(){let g=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(g.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(g,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(g,B=!1){if(g.id=this.parseIdentifier(),B||this.checkIdentifier(g.id,1024),this.eat(16)){let V=this.startNode();this.tsParseModuleOrNamespaceDeclaration(V,!0),g.body=V}else this.scope.enter(256),this.prodParam.enter(0),g.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(g,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(g){return this.isContextual(112)?(g.kind="global",g.global=!0,g.id=this.parseIdentifier()):this.match(134)?(g.kind="module",g.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),g.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(g,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(g,B,V){g.isExport=V||!1,g.id=B||this.parseIdentifier(),this.checkIdentifier(g.id,4096),this.expect(29);let re=this.tsParseModuleReference();return g.importKind==="type"&&re.type!=="TSExternalModuleReference"&&this.raise(o0.ImportAliasHasImportType,re),g.moduleReference=re,this.semicolon(),this.finishNode(g,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let g=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),g.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(g,"TSExternalModuleReference")}tsLookAhead(g){let B=this.state.clone(),V=g();return this.state=B,V}tsTryParseAndCatch(g){let B=this.tryParse((V)=>g()||V());if(!(B.aborted||!B.node))return B.error&&(this.state=B.failState),B.node}tsTryParse(g){let B=this.state.clone(),V=g();if(V!==void 0&&V!==!1)return V;this.state=B}tsTryParseDeclare(g){if(this.isLineTerminator())return;let B=this.state.type,V;return this.isContextual(100)&&(B=74,V="let"),this.tsInAmbientContext(()=>{switch(B){case 68:return g.declare=!0,super.parseFunctionStatement(g,!1,!1);case 80:return g.declare=!0,this.parseClass(g,!0,!1);case 126:return this.tsParseEnumDeclaration(g,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(g);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(g.declare=!0,this.parseVarStatement(g,V||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(g,{const:!0,declare:!0}));case 129:{let re=this.tsParseInterfaceDeclaration(g,{declare:!0});if(re)return re}default:if(ke(B))return this.tsParseDeclaration(g,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(g,B,V){switch(B.name){case"declare":{let re=this.tsTryParseDeclare(g);return re&&(re.declare=!0),re}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let re=g;return re.kind="global",g.global=!0,re.id=B,re.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(re,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(g,B.name,!1,V)}}tsParseDeclaration(g,B,V,re){switch(B){case"abstract":if(this.tsCheckLineTerminator(V)&&(this.match(80)||ke(this.state.type)))return this.tsParseAbstractDeclaration(g,re);break;case"module":if(this.tsCheckLineTerminator(V)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(g);if(ke(this.state.type))return g.kind="module",this.tsParseModuleOrNamespaceDeclaration(g)}break;case"namespace":if(this.tsCheckLineTerminator(V)&&ke(this.state.type))return g.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(g);break;case"type":if(this.tsCheckLineTerminator(V)&&ke(this.state.type))return this.tsParseTypeAliasDeclaration(g);break}}tsCheckLineTerminator(g){return g?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(g){if(!this.match(47))return;let B=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let V=this.tsTryParseAndCatch(()=>{let re=this.startNodeAt(g);return re.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(re),re.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),re});if(this.state.maybeInArrowParameters=B,!!V)return super.parseArrowExpression(V,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let g=this.startNode();return g.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),g.params.length===0?this.raise(o0.EmptyTypeArguments,g):!this.state.inType&&this.curContext()===M.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(g,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return Yr(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(g,B){let V=this.state.startLoc,re={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},re);let{accessibility:Pe,override:et,readonly:xt}=re;!(g&4)&&(Pe||xt||et)&&this.raise(o0.UnexpectedParameterModifier,V);let Vt=this.parseMaybeDefault();g&2&&this.parseFunctionParamType(Vt);let kt=this.parseMaybeDefault(Vt.loc.start,Vt);if(Pe||xt||et){let an=this.startNodeAt(V);return B.length&&(an.decorators=B),Pe&&(an.accessibility=Pe),xt&&(an.readonly=xt),et&&(an.override=et),kt.type!=="Identifier"&&kt.type!=="AssignmentPattern"&&this.raise(o0.UnsupportedParameterPropertyKind,an),an.parameter=kt,this.finishNode(an,"TSParameterProperty")}return B.length&&(Vt.decorators=B),kt}isSimpleParameter(g){return g.type==="TSParameterProperty"&&super.isSimpleParameter(g.parameter)||super.isSimpleParameter(g)}tsDisallowOptionalPattern(g){for(let B of g.params)B.type!=="Identifier"&&B.optional&&!this.state.isAmbientContext&&this.raise(o0.PatternIsOptional,B)}setArrowFunctionParameters(g,B,V){super.setArrowFunctionParameters(g,B,V),this.tsDisallowOptionalPattern(g)}parseFunctionBodyAndFinish(g,B,V=!1){this.match(14)&&(g.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let re=B==="FunctionDeclaration"?"TSDeclareFunction":B==="ClassMethod"||B==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return re&&!this.match(5)&&this.isLineTerminator()?this.finishNode(g,re):re==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(o0.DeclareFunctionHasImplementation,g),g.declare)?super.parseFunctionBodyAndFinish(g,re,V):(this.tsDisallowOptionalPattern(g),super.parseFunctionBodyAndFinish(g,B,V))}registerFunctionStatementId(g){!g.body&&g.id?this.checkIdentifier(g.id,1024):super.registerFunctionStatementId(g)}tsCheckForInvalidTypeCasts(g){g.forEach((B)=>{(B==null?void 0:B.type)==="TSTypeCastExpression"&&this.raise(o0.UnexpectedTypeAnnotation,B.typeAnnotation)})}toReferencedList(g,B){return this.tsCheckForInvalidTypeCasts(g),g}parseArrayLike(g,B,V,re){let Pe=super.parseArrayLike(g,B,V,re);return Pe.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(Pe.elements),Pe}parseSubscript(g,B,V,re){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let et=this.startNodeAt(B);return et.expression=g,this.finishNode(et,"TSNonNullExpression")}let Pe=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(V)return re.stop=!0,g;re.optionalChainMember=Pe=!0,this.next()}if(this.match(47)||this.match(51)){let et,xt=this.tsTryParseAndCatch(()=>{if(!V&&this.atPossibleAsyncArrow(g)){let zn=this.tsTryParseGenericAsyncArrowFunction(B);if(zn)return zn}let Vt=this.tsParseTypeArgumentsInExpression();if(!Vt)return;if(Pe&&!this.match(10)){et=this.state.curPosition();return}if(fe(this.state.type)){let zn=super.parseTaggedTemplateExpression(g,B,re);return zn.typeParameters=Vt,zn}if(!V&&this.eat(10)){let zn=this.startNodeAt(B);return zn.callee=g,zn.arguments=this.parseCallExpressionArguments(11),this.tsCheckForInvalidTypeCasts(zn.arguments),zn.typeParameters=Vt,re.optionalChainMember&&(zn.optional=Pe),this.finishCallExpression(zn,re.optionalChainMember)}let kt=this.state.type;if(kt===48||kt===52||kt!==10&&Bt(kt)&&!this.hasPrecedingLineBreak())return;let an=this.startNodeAt(B);return an.expression=g,an.typeParameters=Vt,this.finishNode(an,"TSInstantiationExpression")});if(et&&this.unexpected(et,10),xt)return xt.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(o0.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),xt}return super.parseSubscript(g,B,V,re)}parseNewCallee(g){var B;super.parseNewCallee(g);let{callee:V}=g;V.type==="TSInstantiationExpression"&&!((B=V.extra)!=null&&B.parenthesized)&&(g.typeParameters=V.typeParameters,g.callee=V.expression)}parseExprOp(g,B,V){let re;if(Te(58)>V&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(re=this.isContextual(120)))){let Pe=this.startNodeAt(B);return Pe.expression=g,Pe.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(re&&this.raise(A.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(Pe,re?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(Pe,B,V)}return super.parseExprOp(g,B,V)}checkReservedWord(g,B,V,re){this.state.isAmbientContext||super.checkReservedWord(g,B,V,re)}checkImportReflection(g){super.checkImportReflection(g),g.module&&g.importKind!=="value"&&this.raise(o0.ImportReflectionHasImportType,g.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(g){if(super.isPotentialImportPhase(g))return!0;if(this.isContextual(130)){let B=this.lookaheadCharCode();return g?B===123||B===42:B!==61}return!g&&this.isContextual(87)}applyImportPhase(g,B,V,re){super.applyImportPhase(g,B,V,re),B?g.exportKind=V==="type"?"type":"value":g.importKind=V==="type"||V==="typeof"?V:"value"}parseImport(g){if(this.match(134))return g.importKind="value",super.parseImport(g);let B;if(ke(this.state.type)&&this.lookaheadCharCode()===61)return g.importKind="value",this.tsParseImportEqualsDeclaration(g);if(this.isContextual(130)){let V=this.parseMaybeImportPhase(g,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(g,V);B=super.parseImportSpecifiersAndAfter(g,V)}else B=super.parseImport(g);return B.importKind==="type"&&B.specifiers.length>1&&B.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(o0.TypeImportCannotSpecifyDefaultAndNamed,B),B}parseExport(g,B){if(this.match(83)){let V=g;this.next();let re=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?re=this.parseMaybeImportPhase(V,!1):V.importKind="value",this.tsParseImportEqualsDeclaration(V,re,!0)}else if(this.eat(29)){let V=g;return V.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(V,"TSExportAssignment")}else if(this.eatContextual(93)){let V=g;return this.expectContextual(128),V.id=this.parseIdentifier(),this.semicolon(),this.finishNode(V,"TSNamespaceExportDeclaration")}else return super.parseExport(g,B)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let g=this.startNode();return this.next(),g.abstract=!0,this.parseClass(g,!0,!0)}if(this.match(129)){let g=this.tsParseInterfaceDeclaration(this.startNode());if(g)return g}return super.parseExportDefaultExpression()}parseVarStatement(g,B,V=!1){let{isAmbientContext:re}=this.state,Pe=super.parseVarStatement(g,B,V||re);if(!re)return Pe;for(let{id:et,init:xt}of Pe.declarations)xt&&(B!=="const"||et.typeAnnotation?this.raise(o0.InitializerNotAllowedInAmbientContext,xt):Jl(xt,this.hasPlugin("estree"))||this.raise(o0.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,xt));return Pe}parseStatementContent(g,B){if(this.match(75)&&this.isLookaheadContextual("enum")){let V=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(V,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let V=this.tsParseInterfaceDeclaration(this.startNode());if(V)return V}return super.parseStatementContent(g,B)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(g,B){return B.some((V)=>a_(V)?g.accessibility===V:!!g[V])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(g,B,V){let re=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:re,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:o0.InvalidModifierOnTypeParameterPositions},B);let Pe=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(B,re)&&this.raise(o0.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(g,B)):this.parseClassMemberWithIsStatic(g,B,V,!!B.static)};B.declare?this.tsInAmbientContext(Pe):Pe()}parseClassMemberWithIsStatic(g,B,V,re){let Pe=this.tsTryParseIndexSignature(B);if(Pe){g.body.push(Pe),B.abstract&&this.raise(o0.IndexSignatureHasAbstract,B),B.accessibility&&this.raise(o0.IndexSignatureHasAccessibility,B,{modifier:B.accessibility}),B.declare&&this.raise(o0.IndexSignatureHasDeclare,B),B.override&&this.raise(o0.IndexSignatureHasOverride,B);return}!this.state.inAbstractClass&&B.abstract&&this.raise(o0.NonAbstractClassHasAbstractMethod,B),B.override&&(V.hadSuperClass||this.raise(o0.OverrideNotInSubClass,B)),super.parseClassMemberWithIsStatic(g,B,V,re)}parsePostMemberNameModifiers(g){this.eat(17)&&(g.optional=!0),g.readonly&&this.match(10)&&this.raise(o0.ClassMethodHasReadonly,g),g.declare&&this.match(10)&&this.raise(o0.ClassMethodHasDeclare,g)}parseExpressionStatement(g,B,V){return(B.type==="Identifier"?this.tsParseExpressionStatement(g,B,V):void 0)||super.parseExpressionStatement(g,B,V)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(g,B,V){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(g,B,V);let re=this.tryParse(()=>super.parseConditional(g,B));return re.node?(re.error&&(this.state=re.failState),re.node):(re.error&&super.setOptionalParametersError(V,re.error),g)}parseParenItem(g,B){let V=super.parseParenItem(g,B);if(this.eat(17)&&(V.optional=!0,this.resetEndLocation(g)),this.match(14)){let re=this.startNodeAt(B);return re.expression=g,re.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(re,"TSTypeCastExpression")}return g}parseExportDeclaration(g){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(g));let B=this.state.startLoc,V=this.eatContextual(125);if(V&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(o0.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let re=ke(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(g);return re?((re.type==="TSInterfaceDeclaration"||re.type==="TSTypeAliasDeclaration"||V)&&(g.exportKind="type"),V&&re.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(re,B),re.declare=!0),re):null}parseClassId(g,B,V,re){if((!B||V)&&this.isContextual(113))return;super.parseClassId(g,B,V,g.declare?1024:8331);let Pe=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);Pe&&(g.typeParameters=Pe)}parseClassPropertyAnnotation(g){g.optional||(this.eat(35)?g.definite=!0:this.eat(17)&&(g.optional=!0));let B=this.tsTryParseTypeAnnotation();B&&(g.typeAnnotation=B)}parseClassProperty(g){if(this.parseClassPropertyAnnotation(g),this.state.isAmbientContext&&!(g.readonly&&!g.typeAnnotation)&&this.match(29)&&this.raise(o0.DeclareClassFieldHasInitializer,this.state.startLoc),g.abstract&&this.match(29)){let{key:B}=g;this.raise(o0.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:B.type==="Identifier"&&!g.computed?B.name:`[${this.input.slice(this.offsetToSourcePos(B.start),this.offsetToSourcePos(B.end))}]`})}return super.parseClassProperty(g)}parseClassPrivateProperty(g){return g.abstract&&this.raise(o0.PrivateElementHasAbstract,g),g.accessibility&&this.raise(o0.PrivateElementHasAccessibility,g,{modifier:g.accessibility}),this.parseClassPropertyAnnotation(g),super.parseClassPrivateProperty(g)}parseClassAccessorProperty(g){return this.parseClassPropertyAnnotation(g),g.optional&&this.raise(o0.AccessorCannotBeOptional,g),super.parseClassAccessorProperty(g)}pushClassMethod(g,B,V,re,Pe,et){let xt=this.tsTryParseTypeParameters(this.tsParseConstModifier);xt&&Pe&&this.raise(o0.ConstructorHasTypeParameters,xt);let{declare:Vt=!1,kind:kt}=B;Vt&&(kt==="get"||kt==="set")&&this.raise(o0.DeclareAccessor,B,{kind:kt}),xt&&(B.typeParameters=xt),super.pushClassMethod(g,B,V,re,Pe,et)}pushClassPrivateMethod(g,B,V,re){let Pe=this.tsTryParseTypeParameters(this.tsParseConstModifier);Pe&&(B.typeParameters=Pe),super.pushClassPrivateMethod(g,B,V,re)}declareClassPrivateMethodInScope(g,B){g.type!=="TSDeclareMethod"&&(g.type==="MethodDefinition"&&!hasOwnProperty.call(g.value,"body")||super.declareClassPrivateMethodInScope(g,B))}parseClassSuper(g){super.parseClassSuper(g),g.superClass&&(this.match(47)||this.match(51))&&(g.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(g.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(g,B,V,re,Pe,et,xt){let Vt=this.tsTryParseTypeParameters(this.tsParseConstModifier);return Vt&&(g.typeParameters=Vt),super.parseObjPropValue(g,B,V,re,Pe,et,xt)}parseFunctionParams(g,B){let V=this.tsTryParseTypeParameters(this.tsParseConstModifier);V&&(g.typeParameters=V),super.parseFunctionParams(g,B)}parseVarId(g,B){super.parseVarId(g,B),g.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(g.definite=!0);let V=this.tsTryParseTypeAnnotation();V&&(g.id.typeAnnotation=V,this.resetEndLocation(g.id))}parseAsyncArrowFromCallExpression(g,B){return this.match(14)&&(g.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(g,B)}parseMaybeAssign(g,B){var V,re,Pe,et,xt;let Vt,kt,an;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(Vt=this.state.clone(),kt=this.tryParse(()=>super.parseMaybeAssign(g,B),Vt),!kt.error)return kt.node;let{context:i0}=this.state,Y0=i0[i0.length-1];(Y0===M.j_oTag||Y0===M.j_expr)&&i0.pop()}if(!((V=kt)!=null&&V.error)&&!this.match(47))return super.parseMaybeAssign(g,B);(!Vt||Vt===this.state)&&(Vt=this.state.clone());let zn,yi=this.tryParse((i0)=>{var Y0,Nu;zn=this.tsParseTypeParameters(this.tsParseConstModifier);let Za=super.parseMaybeAssign(g,B);return(Za.type!=="ArrowFunctionExpression"||(Y0=Za.extra)!=null&&Y0.parenthesized)&&i0(),((Nu=zn)==null?void 0:Nu.params.length)!==0&&this.resetStartLocationFromNode(Za,zn),Za.typeParameters=zn,Za},Vt);if(!yi.error&&!yi.aborted)return zn&&this.reportReservedArrowTypeParam(zn),yi.node;if(!kt&&(Nc(!this.hasPlugin("jsx")),an=this.tryParse(()=>super.parseMaybeAssign(g,B),Vt),!an.error))return an.node;if((re=kt)!=null&&re.node)return this.state=kt.failState,kt.node;if(yi.node)return this.state=yi.failState,zn&&this.reportReservedArrowTypeParam(zn),yi.node;if((Pe=an)!=null&&Pe.node)return this.state=an.failState,an.node;throw((et=kt)==null?void 0:et.error)||yi.error||((xt=an)==null?void 0:xt.error)}reportReservedArrowTypeParam(g){var B;g.params.length===1&&!g.params[0].constraint&&!((B=g.extra)!=null&&B.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(o0.ReservedArrowTypeParam,g)}parseMaybeUnary(g,B){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(g,B)}parseArrow(g){if(this.match(14)){let B=this.tryParse((V)=>{let re=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&V(),re});if(B.aborted)return;B.thrown||(B.error&&(this.state=B.failState),g.returnType=B.node)}return super.parseArrow(g)}parseFunctionParamType(g){this.eat(17)&&(g.optional=!0);let B=this.tsTryParseTypeAnnotation();return B&&(g.typeAnnotation=B),this.resetEndLocation(g),g}isAssignable(g,B){switch(g.type){case"TSTypeCastExpression":return this.isAssignable(g.expression,B);case"TSParameterProperty":return!0;default:return super.isAssignable(g,B)}}toAssignable(g,B=!1){switch(g.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(g,B);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":B?this.expressionScope.recordArrowParameterBindingError(o0.UnexpectedTypeCastInParameter,g):this.raise(o0.UnexpectedTypeCastInParameter,g),this.toAssignable(g.expression,B);break;case"AssignmentExpression":!B&&g.left.type==="TSTypeCastExpression"&&(g.left=this.typeCastToParameter(g.left));default:super.toAssignable(g,B)}}toAssignableParenthesizedExpression(g,B){switch(g.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(g.expression,B);break;default:super.toAssignable(g,B)}}checkToRestConversion(g,B){switch(g.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(g.expression,!1);break;default:super.checkToRestConversion(g,B)}}isValidLVal(g,B,V){switch(g){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(V!==64||!B)&&["expression",!0];default:return super.isValidLVal(g,B,V)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(g,B){if(this.match(47)||this.match(51)){let V=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let re=super.parseMaybeDecoratorArguments(g,B);return re.typeParameters=V,re}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(g,B)}checkCommaAfterRest(g){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===g?(this.next(),!1):super.checkCommaAfterRest(g)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(g,B){let V=super.parseMaybeDefault(g,B);return V.type==="AssignmentPattern"&&V.typeAnnotation&&V.right.start<V.typeAnnotation.start&&this.raise(o0.TypeAnnotationAfterAssign,V.typeAnnotation),V}getTokenFromCode(g){if(this.state.inType){if(g===62){this.finishOp(48,1);return}if(g===60){this.finishOp(47,1);return}}super.getTokenFromCode(g)}reScan_lt_gt(){let{type:g}=this.state;g===47?(this.state.pos-=1,this.readToken_lt()):g===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:g}=this.state;return g===51?(this.state.pos-=2,this.finishOp(47,1),47):g}toAssignableList(g,B,V){for(let re=0;re<g.length;re++){let Pe=g[re];(Pe==null?void 0:Pe.type)==="TSTypeCastExpression"&&(g[re]=this.typeCastToParameter(Pe))}super.toAssignableList(g,B,V)}typeCastToParameter(g){return g.expression.typeAnnotation=g.typeAnnotation,this.resetEndLocation(g.expression,g.typeAnnotation.loc.end),g.expression}shouldParseArrow(g){return this.match(14)?g.every((B)=>this.isAssignable(B,!0)):super.shouldParseArrow(g)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(g){if(this.match(47)||this.match(51)){let B=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());B&&(g.typeParameters=B)}return super.jsxParseOpeningElementAfterName(g)}getGetterSetterExpectedParamCount(g){let B=super.getGetterSetterExpectedParamCount(g),V=this.getObjectOrClassMethodParams(g)[0];return V&&this.isThisParam(V)?B+1:B}parseCatchClauseParam(){let g=super.parseCatchClauseParam(),B=this.tsTryParseTypeAnnotation();return B&&(g.typeAnnotation=B,this.resetEndLocation(g)),g}tsInAmbientContext(g){let{isAmbientContext:B,strict:V}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return g()}finally{this.state.isAmbientContext=B,this.state.strict=V}}parseClass(g,B,V){let re=this.state.inAbstractClass;this.state.inAbstractClass=!!g.abstract;try{return super.parseClass(g,B,V)}finally{this.state.inAbstractClass=re}}tsParseAbstractDeclaration(g,B){if(this.match(80))return g.abstract=!0,this.maybeTakeDecorators(B,this.parseClass(g,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return g.abstract=!0,this.raise(o0.NonClassMethodPropertyHasAbstractModifer,g),this.tsParseInterfaceDeclaration(g)}else this.unexpected(null,80)}parseMethod(g,B,V,re,Pe,et,xt){let Vt=super.parseMethod(g,B,V,re,Pe,et,xt);if(Vt.abstract&&(this.hasPlugin("estree")?Vt.value:Vt).body){let{key:kt}=Vt;this.raise(o0.AbstractMethodHasImplementation,Vt,{methodName:kt.type==="Identifier"&&!Vt.computed?kt.name:`[${this.input.slice(this.offsetToSourcePos(kt.start),this.offsetToSourcePos(kt.end))}]`})}return Vt}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(g,B,V,re){return!B&&re?(this.parseTypeOnlyImportExportSpecifier(g,!1,V),this.finishNode(g,"ExportSpecifier")):(g.exportKind="value",super.parseExportSpecifier(g,B,V,re))}parseImportSpecifier(g,B,V,re,Pe){return!B&&re?(this.parseTypeOnlyImportExportSpecifier(g,!0,V),this.finishNode(g,"ImportSpecifier")):(g.importKind="value",super.parseImportSpecifier(g,B,V,re,V?4098:4096))}parseTypeOnlyImportExportSpecifier(g,B,V){let re=B?"imported":"local",Pe=B?"local":"exported",et=g[re],xt,Vt=!1,kt=!0,an=et.loc.start;if(this.isContextual(93)){let yi=this.parseIdentifier();if(this.isContextual(93)){let i0=this.parseIdentifier();ut(this.state.type)?(Vt=!0,et=yi,xt=B?this.parseIdentifier():this.parseModuleExportName(),kt=!1):(xt=i0,kt=!1)}else ut(this.state.type)?(kt=!1,xt=B?this.parseIdentifier():this.parseModuleExportName()):(Vt=!0,et=yi)}else ut(this.state.type)&&(Vt=!0,B?(et=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(et.name,et.loc.start,!0,!0)):et=this.parseModuleExportName());Vt&&V&&this.raise(B?o0.TypeModifierIsUsedInTypeImports:o0.TypeModifierIsUsedInTypeExports,an),g[re]=et,g[Pe]=xt;let zn=B?"importKind":"exportKind";g[zn]=Vt?"type":"value",kt&&this.eatContextual(93)&&(g[Pe]=B?this.parseIdentifier():this.parseModuleExportName()),g[Pe]||(g[Pe]=Zt(g[re])),B&&this.checkIdentifier(g[Pe],Vt?4098:4096)}};function By(k){if(k.type!=="MemberExpression")return!1;let{computed:g,property:B}=k;return g&&B.type!=="StringLiteral"&&(B.type!=="TemplateLiteral"||B.expressions.length>0)?!1:ah(k.object)}function Jl(k,g){var B;let{type:V}=k;if((B=k.extra)!=null&&B.parenthesized)return!1;if(g){if(V==="Literal"){let{value:re}=k;if(typeof re=="string"||typeof re=="boolean")return!0}}else if(V==="StringLiteral"||V==="BooleanLiteral")return!0;return!!(o1(k,g)||qc(k,g)||V==="TemplateLiteral"&&k.expressions.length===0||By(k))}function o1(k,g){return g?k.type==="Literal"&&(typeof k.value=="number"||("bigint"in k)):k.type==="NumericLiteral"||k.type==="BigIntLiteral"}function qc(k,g){if(k.type==="UnaryExpression"){let{operator:B,argument:V}=k;if(B==="-"&&o1(V,g))return!0}return!1}function ah(k){return k.type==="Identifier"?!0:k.type!=="MemberExpression"||k.computed?!1:ah(k.object)}var s1=T`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),k7=(k)=>class extends k{parsePlaceholder(g){if(this.match(133)){let B=this.startNode();return this.next(),this.assertNoSpace(),B.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(B,g)}}finishPlaceholder(g,B){let V=g;return(!V.expectedNode||!V.type)&&(V=this.finishNode(V,"Placeholder")),V.expectedNode=B,V}getTokenFromCode(g){g===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(g)}parseExprAtom(g){return this.parsePlaceholder("Expression")||super.parseExprAtom(g)}parseIdentifier(g){return this.parsePlaceholder("Identifier")||super.parseIdentifier(g)}checkReservedWord(g,B,V,re){g!==void 0&&super.checkReservedWord(g,B,V,re)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(g,B,V){return g==="Placeholder"||super.isValidLVal(g,B,V)}toAssignable(g,B){g&&g.type==="Placeholder"&&g.expectedNode==="Expression"?g.expectedNode="Pattern":super.toAssignable(g,B)}chStartsBindingIdentifier(g,B){return!!(super.chStartsBindingIdentifier(g,B)||this.lookahead().type===133)}verifyBreakContinue(g,B){g.label&&g.label.type==="Placeholder"||super.verifyBreakContinue(g,B)}parseExpressionStatement(g,B){var V;if(B.type!=="Placeholder"||(V=B.extra)!=null&&V.parenthesized)return super.parseExpressionStatement(g,B);if(this.match(14)){let Pe=g;return Pe.label=this.finishPlaceholder(B,"Identifier"),this.next(),Pe.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(Pe,"LabeledStatement")}this.semicolon();let re=g;return re.name=B.name,this.finishPlaceholder(re,"Statement")}parseBlock(g,B,V){return this.parsePlaceholder("BlockStatement")||super.parseBlock(g,B,V)}parseFunctionId(g){return this.parsePlaceholder("Identifier")||super.parseFunctionId(g)}parseClass(g,B,V){let re=B?"ClassDeclaration":"ClassExpression";this.next();let Pe=this.state.strict,et=this.parsePlaceholder("Identifier");if(et)if(this.match(81)||this.match(133)||this.match(5))g.id=et;else{if(V||!B)return g.id=null,g.body=this.finishPlaceholder(et,"ClassBody"),this.finishNode(g,re);throw this.raise(s1.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(g,B,V);return super.parseClassSuper(g),g.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!g.superClass,Pe),this.finishNode(g,re)}parseExport(g,B){let V=this.parsePlaceholder("Identifier");if(!V)return super.parseExport(g,B);let re=g;if(!this.isContextual(98)&&!this.match(12))return re.specifiers=[],re.source=null,re.declaration=this.finishPlaceholder(V,"Declaration"),this.finishNode(re,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let Pe=this.startNode();return Pe.exported=V,re.specifiers=[this.finishNode(Pe,"ExportDefaultSpecifier")],super.parseExport(re,B)}isExportDefaultSpecifier(){if(this.match(65)){let g=this.nextTokenStart();if(this.isUnparsedContextual(g,"from")&&this.input.startsWith(Cn(133),this.nextTokenStartSince(g+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(g,B){var V;return(V=g.specifiers)!=null&&V.length?!0:super.maybeParseExportDefaultSpecifier(g,B)}checkExport(g){let{specifiers:B}=g;B!=null&&B.length&&(g.specifiers=B.filter((V)=>V.exported.type==="Placeholder")),super.checkExport(g),g.specifiers=B}parseImport(g){let B=this.parsePlaceholder("Identifier");if(!B)return super.parseImport(g);if(g.specifiers=[],!this.isContextual(98)&&!this.match(12))return g.source=this.finishPlaceholder(B,"StringLiteral"),this.semicolon(),this.finishNode(g,"ImportDeclaration");let V=this.startNodeAtNode(B);return V.local=B,g.specifiers.push(this.finishNode(V,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(g)||this.parseNamedImportSpecifiers(g)),this.expectContextual(98),g.source=this.parseImportSource(),this.semicolon(),this.finishNode(g,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(s1.UnexpectedSpace,this.state.lastTokEndLoc)}},F7=(k)=>class extends k{parseV8Intrinsic(){if(this.match(54)){let g=this.state.startLoc,B=this.startNode();if(this.next(),ke(this.state.type)){let V=this.parseIdentifierName(),re=this.createIdentifier(B,V);if(re.type="V8IntrinsicIdentifier",this.match(10))return re}this.unexpected(g)}}parseExprAtom(g){return this.parseV8Intrinsic()||super.parseExprAtom(g)}},ml=["minimal","fsharp","hack","smart"],S7=["^^","@@","^","%","#"];function af(k){if(k.has("decorators")){if(k.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let B=k.get("decorators").decoratorsBeforeExport;if(B!=null&&typeof B!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let V=k.get("decorators").allowCallParenthesized;if(V!=null&&typeof V!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(k.has("flow")&&k.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(k.has("placeholders")&&k.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(k.has("pipelineOperator")){var g;let B=k.get("pipelineOperator").proposal;if(!ml.includes(B)){let re=ml.map((Pe)=>`"${Pe}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${re}.`)}let V=((g=k.get("recordAndTuple"))==null?void 0:g.syntaxType)==="hash";if(B==="hack"){if(k.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(k.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let re=k.get("pipelineOperator").topicToken;if(!S7.includes(re)){let Pe=S7.map((et)=>`"${et}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${Pe}.`)}if(re==="#"&&V)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",k.get("recordAndTuple")])}\`.`)}else if(B==="smart"&&V)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",k.get("recordAndTuple")])}\`.`)}if(k.has("moduleAttributes")){if(k.has("deprecatedImportAssert")||k.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(k.get("moduleAttributes").version!=="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(k.has("importAssertions")&&k.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!k.has("deprecatedImportAssert")&&k.has("importAttributes")&&k.get("importAttributes").deprecatedAssertSyntax&&k.set("deprecatedImportAssert",{}),k.has("recordAndTuple")){let B=k.get("recordAndTuple").syntaxType;if(B!=null){let V=["hash","bar"];if(!V.includes(B))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+V.map((re)=>`'${re}'`).join(", "))}}if(k.has("asyncDoExpressions")&&!k.has("doExpressions")){let B=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw B.missingPlugins="doExpressions",B}if(k.has("optionalChainingAssign")&&k.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'.")}var ad={estree:q,jsx:rp,flow:w_,typescript:ih,v8intrinsic:F7,placeholders:k7},qy=Object.keys(ad),Y_=class extends Ny{checkProto(k,g,B,V){if(k.type==="SpreadElement"||this.isObjectMethod(k)||k.computed||k.shorthand)return;let re=k.key;if((re.type==="Identifier"?re.name:re.value)==="__proto__"){if(g){this.raise(A.RecordNoProto,re);return}B.used&&(V?V.doubleProtoLoc===null&&(V.doubleProtoLoc=re.loc.start):this.raise(A.DuplicateProto,re)),B.used=!0}}shouldExitDescending(k,g){return k.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(k.start)===g}getExpression(){this.enterInitialScopes(),this.nextToken();let k=this.parseExpression();return this.match(140)||this.unexpected(),this.finalizeRemainingComments(),k.comments=this.comments,k.errors=this.state.errors,this.optionFlags&128&&(k.tokens=this.tokens),k}parseExpression(k,g){return k?this.disallowInAnd(()=>this.parseExpressionBase(g)):this.allowInAnd(()=>this.parseExpressionBase(g))}parseExpressionBase(k){let g=this.state.startLoc,B=this.parseMaybeAssign(k);if(this.match(12)){let V=this.startNodeAt(g);for(V.expressions=[B];this.eat(12);)V.expressions.push(this.parseMaybeAssign(k));return this.toReferencedList(V.expressions),this.finishNode(V,"SequenceExpression")}return B}parseMaybeAssignDisallowIn(k,g){return this.disallowInAnd(()=>this.parseMaybeAssign(k,g))}parseMaybeAssignAllowIn(k,g){return this.allowInAnd(()=>this.parseMaybeAssign(k,g))}setOptionalParametersError(k,g){var B;k.optionalParametersLoc=(B=g==null?void 0:g.loc)!=null?B:this.state.startLoc}parseMaybeAssign(k,g){let B=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let et=this.parseYield();return g&&(et=g.call(this,et,B)),et}let V;k?V=!1:(k=new Hs,V=!0);let{type:re}=this.state;(re===10||ke(re))&&(this.state.potentialArrowAt=this.state.start);let Pe=this.parseMaybeConditional(k);if(g&&(Pe=g.call(this,Pe,B)),pt(this.state.type)){let et=this.startNodeAt(B),xt=this.state.value;if(et.operator=xt,this.match(29)){this.toAssignable(Pe,!0),et.left=Pe;let Vt=B.index;k.doubleProtoLoc!=null&&k.doubleProtoLoc.index>=Vt&&(k.doubleProtoLoc=null),k.shorthandAssignLoc!=null&&k.shorthandAssignLoc.index>=Vt&&(k.shorthandAssignLoc=null),k.privateKeyLoc!=null&&k.privateKeyLoc.index>=Vt&&(this.checkDestructuringPrivate(k),k.privateKeyLoc=null)}else et.left=Pe;return this.next(),et.right=this.parseMaybeAssign(),this.checkLVal(Pe,this.finishNode(et,"AssignmentExpression")),et}else V&&this.checkExpressionErrors(k,!0);return Pe}parseMaybeConditional(k){let g=this.state.startLoc,B=this.state.potentialArrowAt,V=this.parseExprOps(k);return this.shouldExitDescending(V,B)?V:this.parseConditional(V,g,k)}parseConditional(k,g,B){if(this.eat(17)){let V=this.startNodeAt(g);return V.test=k,V.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),V.alternate=this.parseMaybeAssign(),this.finishNode(V,"ConditionalExpression")}return k}parseMaybeUnaryOrPrivate(k){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(k)}parseExprOps(k){let g=this.state.startLoc,B=this.state.potentialArrowAt,V=this.parseMaybeUnaryOrPrivate(k);return this.shouldExitDescending(V,B)?V:this.parseExprOp(V,g,-1)}parseExprOp(k,g,B){if(this.isPrivateName(k)){let re=this.getPrivateNameSV(k);(B>=Te(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(A.PrivateInExpectedIn,k,{identifierName:re}),this.classScope.usePrivateName(re,k.loc.start)}let V=this.state.type;if(wr(V)&&(this.prodParam.hasIn||!this.match(58))){let re=Te(V);if(re>B){if(V===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return k;this.checkPipelineAtInfixOperator(k,g)}let Pe=this.startNodeAt(g);Pe.left=k,Pe.operator=this.state.value;let et=V===41||V===42,xt=V===40;if(xt&&(re=Te(42)),this.next(),V===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(A.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);Pe.right=this.parseExprOpRightExpr(V,re);let Vt=this.finishNode(Pe,et||xt?"LogicalExpression":"BinaryExpression"),kt=this.state.type;if(xt&&(kt===41||kt===42)||et&&kt===40)throw this.raise(A.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(Vt,g,B)}}return k}parseExprOpRightExpr(k,g){let B=this.state.startLoc;switch(k){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(g))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(A.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(k,g),B)});default:return this.parseExprOpBaseRightExpr(k,g)}}parseExprOpBaseRightExpr(k,g){let B=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),B,De(k)?g-1:g)}parseHackPipeBody(){var k;let{startLoc:g}=this.state,B=this.parseMaybeAssign();return p.has(B.type)&&!((k=B.extra)!=null&&k.parenthesized)&&this.raise(A.PipeUnparenthesizedBody,g,{type:B.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(A.PipeTopicUnused,g),B}checkExponentialAfterUnary(k){this.match(57)&&this.raise(A.UnexpectedTokenUnaryExponentiation,k.argument)}parseMaybeUnary(k,g){let B=this.state.startLoc,V=this.isContextual(96);if(V&&this.recordAwaitIfAllowed()){this.next();let xt=this.parseAwait(B);return g||this.checkExponentialAfterUnary(xt),xt}let re=this.match(34),Pe=this.startNode();if(Vr(this.state.type)){Pe.operator=this.state.value,Pe.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let xt=this.match(89);if(this.next(),Pe.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(k,!0),this.state.strict&&xt){let Vt=Pe.argument;Vt.type==="Identifier"?this.raise(A.StrictDelete,Pe):this.hasPropertyAsPrivateName(Vt)&&this.raise(A.DeletePrivateField,Pe)}if(!re)return g||this.checkExponentialAfterUnary(Pe),this.finishNode(Pe,"UnaryExpression")}let et=this.parseUpdate(Pe,re,k);if(V){let{type:xt}=this.state;if((this.hasPlugin("v8intrinsic")?Bt(xt):Bt(xt)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(A.AwaitNotInAsyncContext,B),this.parseAwait(B)}return et}parseUpdate(k,g,B){if(g){let Pe=k;return this.checkLVal(Pe.argument,this.finishNode(Pe,"UpdateExpression")),k}let V=this.state.startLoc,re=this.parseExprSubscripts(B);if(this.checkExpressionErrors(B,!1))return re;for(;tr(this.state.type)&&!this.canInsertSemicolon();){let Pe=this.startNodeAt(V);Pe.operator=this.state.value,Pe.prefix=!1,Pe.argument=re,this.next(),this.checkLVal(re,re=this.finishNode(Pe,"UpdateExpression"))}return re}parseExprSubscripts(k){let g=this.state.startLoc,B=this.state.potentialArrowAt,V=this.parseExprAtom(k);return this.shouldExitDescending(V,B)?V:this.parseSubscripts(V,g)}parseSubscripts(k,g,B){let V={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(k),stop:!1};do k=this.parseSubscript(k,g,B,V),V.maybeAsyncArrow=!1;while(!V.stop);return k}parseSubscript(k,g,B,V){let{type:re}=this.state;if(!B&&re===15)return this.parseBind(k,g,B,V);if(fe(re))return this.parseTaggedTemplateExpression(k,g,V);let Pe=!1;if(re===18){if(B&&(this.raise(A.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return V.stop=!0,k;V.optionalChainMember=Pe=!0,this.next()}if(!B&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(k,g,V,Pe);{let et=this.eat(0);return et||Pe||this.eat(16)?this.parseMember(k,g,V,et,Pe):(V.stop=!0,k)}}parseMember(k,g,B,V,re){let Pe=this.startNodeAt(g);return Pe.object=k,Pe.computed=V,V?(Pe.property=this.parseExpression(),this.expect(3)):this.match(139)?(k.type==="Super"&&this.raise(A.SuperPrivateField,g),this.classScope.usePrivateName(this.state.value,this.state.startLoc),Pe.property=this.parsePrivateName()):Pe.property=this.parseIdentifier(!0),B.optionalChainMember?(Pe.optional=re,this.finishNode(Pe,"OptionalMemberExpression")):this.finishNode(Pe,"MemberExpression")}parseBind(k,g,B,V){let re=this.startNodeAt(g);return re.object=k,this.next(),re.callee=this.parseNoCallExpr(),V.stop=!0,this.parseSubscripts(this.finishNode(re,"BindExpression"),g,B)}parseCoverCallAndAsyncArrowHead(k,g,B,V){let re=this.state.maybeInArrowParameters,Pe=null;this.state.maybeInArrowParameters=!0,this.next();let et=this.startNodeAt(g);et.callee=k;let{maybeAsyncArrow:xt,optionalChainMember:Vt}=B;xt&&(this.expressionScope.enter(ep()),Pe=new Hs),Vt&&(et.optional=V),V?et.arguments=this.parseCallExpressionArguments(11):et.arguments=this.parseCallExpressionArguments(11,k.type!=="Super",et,Pe);let kt=this.finishCallExpression(et,Vt);return xt&&this.shouldParseAsyncArrow()&&!V?(B.stop=!0,this.checkDestructuringPrivate(Pe),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),kt=this.parseAsyncArrowFromCallExpression(this.startNodeAt(g),kt)):(xt&&(this.checkExpressionErrors(Pe,!0),this.expressionScope.exit()),this.toReferencedArguments(kt)),this.state.maybeInArrowParameters=re,kt}toReferencedArguments(k,g){this.toReferencedListDeep(k.arguments,g)}parseTaggedTemplateExpression(k,g,B){let V=this.startNodeAt(g);return V.tag=k,V.quasi=this.parseTemplate(!0),B.optionalChainMember&&this.raise(A.OptionalChainingNoTemplate,g),this.finishNode(V,"TaggedTemplateExpression")}atPossibleAsyncArrow(k){return k.type==="Identifier"&&k.name==="async"&&this.state.lastTokEndLoc.index===k.end&&!this.canInsertSemicolon()&&k.end-k.start===5&&this.offsetToSourcePos(k.start)===this.state.potentialArrowAt}finishCallExpression(k,g){if(k.callee.type==="Import")if(k.arguments.length===0||k.arguments.length>2)this.raise(A.ImportCallArity,k);else for(let B of k.arguments)B.type==="SpreadElement"&&this.raise(A.ImportCallSpreadArgument,B);return this.finishNode(k,g?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(k,g,B,V){let re=[],Pe=!0,et=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(k);){if(Pe)Pe=!1;else if(this.expect(12),this.match(k)){B&&this.addTrailingCommaExtraToNode(B),this.next();break}re.push(this.parseExprListItem(!1,V,g))}return this.state.inFSharpPipelineDirectBody=et,re}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(k,g){var B;return this.resetPreviousNodeTrailingComments(g),this.expect(19),this.parseArrowExpression(k,g.arguments,!0,(B=g.extra)==null?void 0:B.trailingCommaLoc),g.innerComments&&Qt(k,g.innerComments),g.callee.trailingComments&&Qt(k,g.callee.trailingComments),k}parseNoCallExpr(){let k=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),k,!0)}parseExprAtom(k){let g,B=null,{type:V}=this.state;switch(V){case 79:return this.parseSuper();case 83:return g=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(g):this.match(10)?this.optionFlags&256?this.parseImportCall(g):this.finishNode(g,"Import"):(this.raise(A.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(g,"Import"));case 78:return g=this.startNode(),this.next(),this.finishNode(g,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),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(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let re=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(re)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,k);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,k);case 68:return this.parseFunctionOrFunctionSent();case 26:B=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(B,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{g=this.startNode(),this.next(),g.object=null;let re=g.callee=this.parseNoCallExpr();if(re.type==="MemberExpression")return this.finishNode(g,"BindExpression");throw this.raise(A.UnsupportedBind,re)}case 139:return this.raise(A.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),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:{let re=this.getPluginOption("pipelineOperator","proposal");if(re)return this.parseTopicReference(re);this.unexpected();break}case 47:{let re=this.input.codePointAt(this.nextTokenStart());en(re)||re===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(V===137)return this.parseDecimalLiteral(this.state.value);if(ke(V)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let re=this.state.potentialArrowAt===this.state.start,Pe=this.state.containsEsc,et=this.parseIdentifier();if(!Pe&&et.name==="async"&&!this.canInsertSemicolon()){let{type:xt}=this.state;if(xt===68)return this.resetPreviousNodeTrailingComments(et),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(et));if(ke(xt))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(et)):et;if(xt===90)return this.resetPreviousNodeTrailingComments(et),this.parseDo(this.startNodeAtNode(et),!0)}return re&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(et),[et],!1)):et}else this.unexpected()}}parseTopicReferenceThenEqualsSign(k,g){let B=this.getPluginOption("pipelineOperator","proposal");if(B)return this.state.type=k,this.state.value=g,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(B);this.unexpected()}parseTopicReference(k){let g=this.startNode(),B=this.state.startLoc,V=this.state.type;return this.next(),this.finishTopicReference(g,B,k,V)}finishTopicReference(k,g,B,V){if(this.testTopicReferenceConfiguration(B,g,V))return B==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(A.PipeTopicUnbound,g),this.registerTopicReference(),this.finishNode(k,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(A.PrimaryTopicNotAllowed,g),this.registerTopicReference(),this.finishNode(k,"PipelinePrimaryTopicReference"));throw this.raise(A.PipeTopicUnconfiguredToken,g,{token:Cn(V)})}testTopicReferenceConfiguration(k,g,B){switch(k){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Cn(B)}]);case"smart":return B===27;default:throw this.raise(A.PipeTopicRequiresHackPipes,g)}}parseAsyncArrowUnaryFunction(k){this.prodParam.enter(to(!0,this.prodParam.hasYield));let g=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(A.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(k,g,!0)}parseDo(k,g){this.expectPlugin("doExpressions"),g&&this.expectPlugin("asyncDoExpressions"),k.async=g,this.next();let B=this.state.labels;return this.state.labels=[],g?(this.prodParam.enter(2),k.body=this.parseBlock(),this.prodParam.exit()):k.body=this.parseBlock(),this.state.labels=B,this.finishNode(k,"DoExpression")}parseSuper(){let k=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)?this.raise(A.SuperNotAllowed,k):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(A.UnexpectedSuper,k),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(A.UnsupportedSuper,k),this.finishNode(k,"Super")}parsePrivateName(){let k=this.startNode(),g=this.startNodeAt(i(this.state.startLoc,1)),B=this.state.value;return this.next(),k.id=this.createIdentifier(g,B),this.finishNode(k,"PrivateName")}parseFunctionOrFunctionSent(){let k=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let g=this.createIdentifier(this.startNodeAtNode(k),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(k,g,"sent")}return this.parseFunction(k)}parseMetaProperty(k,g,B){k.meta=g;let V=this.state.containsEsc;return k.property=this.parseIdentifier(!0),(k.property.name!==B||V)&&this.raise(A.UnsupportedMetaProperty,k.property,{target:g.name,onlyValidPropertyName:B}),this.finishNode(k,"MetaProperty")}parseImportMetaProperty(k){let g=this.createIdentifier(this.startNodeAtNode(k),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(A.ImportMetaOutsideModule,g),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let B=this.isContextual(105);if(this.expectPlugin(B?"sourcePhaseImports":"deferredImportEvaluation"),!(this.optionFlags&256))throw this.raise(A.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),k.phase=B?"source":"defer",this.parseImportCall(k)}return this.parseMetaProperty(k,g,"meta")}parseLiteralAtNode(k,g,B){return this.addExtra(B,"rawValue",k),this.addExtra(B,"raw",this.input.slice(this.offsetToSourcePos(B.start),this.state.end)),B.value=k,this.next(),this.finishNode(B,g)}parseLiteral(k,g){let B=this.startNode();return this.parseLiteralAtNode(k,g,B)}parseStringLiteral(k){return this.parseLiteral(k,"StringLiteral")}parseNumericLiteral(k){return this.parseLiteral(k,"NumericLiteral")}parseBigIntLiteral(k){return this.parseLiteral(k,"BigIntLiteral")}parseDecimalLiteral(k){return this.parseLiteral(k,"DecimalLiteral")}parseRegExpLiteral(k){let g=this.startNode();return this.addExtra(g,"raw",this.input.slice(this.offsetToSourcePos(g.start),this.state.end)),g.pattern=k.pattern,g.flags=k.flags,this.next(),this.finishNode(g,"RegExpLiteral")}parseBooleanLiteral(k){let g=this.startNode();return g.value=k,this.next(),this.finishNode(g,"BooleanLiteral")}parseNullLiteral(){let k=this.startNode();return this.next(),this.finishNode(k,"NullLiteral")}parseParenAndDistinguishExpression(k){let g=this.state.startLoc,B;this.next(),this.expressionScope.enter(B0());let V=this.state.maybeInArrowParameters,re=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let Pe=this.state.startLoc,et=[],xt=new Hs,Vt=!0,kt,an;for(;!this.match(11);){if(Vt)Vt=!1;else if(this.expect(12,xt.optionalParametersLoc===null?null:xt.optionalParametersLoc),this.match(11)){an=this.state.startLoc;break}if(this.match(21)){let i0=this.state.startLoc;if(kt=this.state.startLoc,et.push(this.parseParenItem(this.parseRestBinding(),i0)),!this.checkCommaAfterRest(41))break}else et.push(this.parseMaybeAssignAllowIn(xt,this.parseParenItem))}let zn=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=V,this.state.inFSharpPipelineDirectBody=re;let yi=this.startNodeAt(g);return k&&this.shouldParseArrow(et)&&(yi=this.parseArrow(yi))?(this.checkDestructuringPrivate(xt),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(yi,et,!1),yi):(this.expressionScope.exit(),et.length||this.unexpected(this.state.lastTokStartLoc),an&&this.unexpected(an),kt&&this.unexpected(kt),this.checkExpressionErrors(xt,!0),this.toReferencedListDeep(et,!0),et.length>1?(B=this.startNodeAt(Pe),B.expressions=et,this.finishNode(B,"SequenceExpression"),this.resetEndLocation(B,zn)):B=et[0],this.wrapParenthesis(g,B))}wrapParenthesis(k,g){if(!(this.optionFlags&512))return this.addExtra(g,"parenthesized",!0),this.addExtra(g,"parenStart",k.index),this.takeSurroundingComments(g,k.index,this.state.lastTokEndLoc.index),g;let B=this.startNodeAt(k);return B.expression=g,this.finishNode(B,"ParenthesizedExpression")}shouldParseArrow(k){return!this.canInsertSemicolon()}parseArrow(k){if(this.eat(19))return k}parseParenItem(k,g){return k}parseNewOrNewTarget(){let k=this.startNode();if(this.next(),this.match(16)){let g=this.createIdentifier(this.startNodeAtNode(k),"new");this.next();let B=this.parseMetaProperty(k,g,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4)&&this.raise(A.UnexpectedNewTarget,B),B}return this.parseNew(k)}parseNew(k){if(this.parseNewCallee(k),this.eat(10)){let g=this.parseExprList(11);this.toReferencedList(g),k.arguments=g}else k.arguments=[];return this.finishNode(k,"NewExpression")}parseNewCallee(k){let g=this.match(83),B=this.parseNoCallExpr();k.callee=B,g&&(B.type==="Import"||B.type==="ImportExpression")&&this.raise(A.ImportCallNotNewExpression,B)}parseTemplateElement(k){let{start:g,startLoc:B,end:V,value:re}=this.state,Pe=g+1,et=this.startNodeAt(i(B,1));re===null&&(k||this.raise(A.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let xt=this.match(24),Vt=xt?-1:-2,kt=V+Vt;et.value={raw:this.input.slice(Pe,kt).replace(/\r\n?/g,`
|
|
406
|
-
`),cooked:re===null?null:re.slice(1,Vt)},et.tail=xt,this.next();let an=this.finishNode(et,"TemplateElement");return this.resetEndLocation(an,i(this.state.lastTokEndLoc,Vt)),an}parseTemplate(k){let g=this.startNode(),B=this.parseTemplateElement(k),V=[B],re=[];for(;!B.tail;)re.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),V.push(B=this.parseTemplateElement(k));return g.expressions=re,g.quasis=V,this.finishNode(g,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(k,g,B,V){B&&this.expectPlugin("recordAndTuple");let re=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Pe=Object.create(null),et=!0,xt=this.startNode();for(xt.properties=[],this.next();!this.match(k);){if(et)et=!1;else if(this.expect(12),this.match(k)){this.addTrailingCommaExtraToNode(xt);break}let kt;g?kt=this.parseBindingProperty():(kt=this.parsePropertyDefinition(V),this.checkProto(kt,B,Pe,V)),B&&!this.isObjectProperty(kt)&&kt.type!=="SpreadElement"&&this.raise(A.InvalidRecordProperty,kt),kt.shorthand&&this.addExtra(kt,"shorthand",!0),xt.properties.push(kt)}this.next(),this.state.inFSharpPipelineDirectBody=re;let Vt="ObjectExpression";return g?Vt="ObjectPattern":B&&(Vt="RecordExpression"),this.finishNode(xt,Vt)}addTrailingCommaExtraToNode(k){this.addExtra(k,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(k,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(k){return!k.computed&&k.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(k){let g=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(A.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)g.push(this.parseDecorator());let B=this.startNode(),V=!1,re=!1,Pe;if(this.match(21))return g.length&&this.unexpected(),this.parseSpread();g.length&&(B.decorators=g,g=[]),B.method=!1,k&&(Pe=this.state.startLoc);let et=this.eat(55);this.parsePropertyNamePrefixOperator(B);let xt=this.state.containsEsc;if(this.parsePropertyName(B,k),!et&&!xt&&this.maybeAsyncOrAccessorProp(B)){let{key:Vt}=B,kt=Vt.name;kt==="async"&&!this.hasPrecedingLineBreak()&&(V=!0,this.resetPreviousNodeTrailingComments(Vt),et=this.eat(55),this.parsePropertyName(B)),(kt==="get"||kt==="set")&&(re=!0,this.resetPreviousNodeTrailingComments(Vt),B.kind=kt,this.match(55)&&(et=!0,this.raise(A.AccessorIsGenerator,this.state.curPosition(),{kind:kt}),this.next()),this.parsePropertyName(B))}return this.parseObjPropValue(B,Pe,et,V,!1,re,k)}getGetterSetterExpectedParamCount(k){return k.kind==="get"?0:1}getObjectOrClassMethodParams(k){return k.params}checkGetterSetterParams(k){var g;let B=this.getGetterSetterExpectedParamCount(k),V=this.getObjectOrClassMethodParams(k);V.length!==B&&this.raise(k.kind==="get"?A.BadGetterArity:A.BadSetterArity,k),k.kind==="set"&&((g=V[V.length-1])==null?void 0:g.type)==="RestElement"&&this.raise(A.BadSetterRestParameter,k)}parseObjectMethod(k,g,B,V,re){if(re){let Pe=this.parseMethod(k,g,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Pe),Pe}if(B||g||this.match(10))return V&&this.unexpected(),k.kind="method",k.method=!0,this.parseMethod(k,g,B,!1,!1,"ObjectMethod")}parseObjectProperty(k,g,B,V){if(k.shorthand=!1,this.eat(14))return k.value=B?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(V),this.finishNode(k,"ObjectProperty");if(!k.computed&&k.key.type==="Identifier"){if(this.checkReservedWord(k.key.name,k.key.loc.start,!0,!1),B)k.value=this.parseMaybeDefault(g,Zt(k.key));else if(this.match(29)){let re=this.state.startLoc;V!=null?V.shorthandAssignLoc===null&&(V.shorthandAssignLoc=re):this.raise(A.InvalidCoverInitializedName,re),k.value=this.parseMaybeDefault(g,Zt(k.key))}else k.value=Zt(k.key);return k.shorthand=!0,this.finishNode(k,"ObjectProperty")}}parseObjPropValue(k,g,B,V,re,Pe,et){let xt=this.parseObjectMethod(k,B,V,re,Pe)||this.parseObjectProperty(k,g,re,et);return xt||this.unexpected(),xt}parsePropertyName(k,g){if(this.eat(0))k.computed=!0,k.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:B,value:V}=this.state,re;if(ut(B))re=this.parseIdentifier(!0);else switch(B){case 135:re=this.parseNumericLiteral(V);break;case 134:re=this.parseStringLiteral(V);break;case 136:re=this.parseBigIntLiteral(V);break;case 139:{let Pe=this.state.startLoc;g!=null?g.privateKeyLoc===null&&(g.privateKeyLoc=Pe):this.raise(A.UnexpectedPrivateField,Pe),re=this.parsePrivateName();break}default:if(B===137){re=this.parseDecimalLiteral(V);break}this.unexpected()}k.key=re,B!==139&&(k.computed=!1)}}initFunction(k,g){k.id=null,k.generator=!1,k.async=g}parseMethod(k,g,B,V,re,Pe,et=!1){this.initFunction(k,B),k.generator=g,this.scope.enter(18|(et?64:0)|(re?32:0)),this.prodParam.enter(to(B,k.generator)),this.parseFunctionParams(k,V);let xt=this.parseFunctionBodyAndFinish(k,Pe,!0);return this.prodParam.exit(),this.scope.exit(),xt}parseArrayLike(k,g,B,V){B&&this.expectPlugin("recordAndTuple");let re=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Pe=this.startNode();return this.next(),Pe.elements=this.parseExprList(k,!B,V,Pe),this.state.inFSharpPipelineDirectBody=re,this.finishNode(Pe,B?"TupleExpression":"ArrayExpression")}parseArrowExpression(k,g,B,V){this.scope.enter(6);let re=to(B,!1);!this.match(5)&&this.prodParam.hasIn&&(re|=8),this.prodParam.enter(re),this.initFunction(k,B);let Pe=this.state.maybeInArrowParameters;return g&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(k,g,V)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(k,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Pe,this.finishNode(k,"ArrowFunctionExpression")}setArrowFunctionParameters(k,g,B){this.toAssignableList(g,B,!1),k.params=g}parseFunctionBodyAndFinish(k,g,B=!1){return this.parseFunctionBody(k,!1,B),this.finishNode(k,g)}parseFunctionBody(k,g,B=!1){let V=g&&!this.match(5);if(this.expressionScope.enter(pl()),V)k.body=this.parseMaybeAssign(),this.checkParams(k,!1,g,!1);else{let re=this.state.strict,Pe=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),k.body=this.parseBlock(!0,!1,(et)=>{let xt=!this.isSimpleParamList(k.params);et&&xt&&this.raise(A.IllegalLanguageModeDirective,(k.kind==="method"||k.kind==="constructor")&&k.key?k.key.loc.end:k);let Vt=!re&&this.state.strict;this.checkParams(k,!this.state.strict&&!g&&!B&&!xt,g,Vt),this.state.strict&&k.id&&this.checkIdentifier(k.id,65,Vt)}),this.prodParam.exit(),this.state.labels=Pe}this.expressionScope.exit()}isSimpleParameter(k){return k.type==="Identifier"}isSimpleParamList(k){for(let g=0,B=k.length;g<B;g++)if(!this.isSimpleParameter(k[g]))return!1;return!0}checkParams(k,g,B,V=!0){let re=!g&&new Set,Pe={type:"FormalParameters"};for(let et of k.params)this.checkLVal(et,Pe,5,re,V)}parseExprList(k,g,B,V){let re=[],Pe=!0;for(;!this.eat(k);){if(Pe)Pe=!1;else if(this.expect(12),this.match(k)){V&&this.addTrailingCommaExtraToNode(V),this.next();break}re.push(this.parseExprListItem(g,B))}return re}parseExprListItem(k,g,B){let V;if(this.match(12))k||this.raise(A.UnexpectedToken,this.state.curPosition(),{unexpected:","}),V=null;else if(this.match(21)){let re=this.state.startLoc;V=this.parseParenItem(this.parseSpread(g),re)}else if(this.match(17)){this.expectPlugin("partialApplication"),B||this.raise(A.UnexpectedArgumentPlaceholder,this.state.startLoc);let re=this.startNode();this.next(),V=this.finishNode(re,"ArgumentPlaceholder")}else V=this.parseMaybeAssignAllowIn(g,this.parseParenItem);return V}parseIdentifier(k){let g=this.startNode(),B=this.parseIdentifierName(k);return this.createIdentifier(g,B)}createIdentifier(k,g){return k.name=g,k.loc.identifierName=g,this.finishNode(k,"Identifier")}parseIdentifierName(k){let g,{startLoc:B,type:V}=this.state;ut(V)?g=this.state.value:this.unexpected();let re=Je(V);return k?re&&this.replaceToken(132):this.checkReservedWord(g,B,re,!1),this.next(),g}checkReservedWord(k,g,B,V){if(k.length>10||!Pi(k))return;if(B&&ri(k)){this.raise(A.UnexpectedKeyword,g,{keyword:k});return}if((this.state.strict?V?kn:Ar:pr)(k,this.inModule)){this.raise(A.UnexpectedReservedWord,g,{reservedWord:k});return}else if(k==="yield"){if(this.prodParam.hasYield){this.raise(A.YieldBindingIdentifier,g);return}}else if(k==="await"){if(this.prodParam.hasAwait){this.raise(A.AwaitBindingIdentifier,g);return}if(this.scope.inStaticBlock){this.raise(A.AwaitBindingIdentifierInStaticBlock,g);return}this.expressionScope.recordAsyncArrowParametersError(g)}else if(k==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(A.ArgumentsInClass,g);return}}recordAwaitIfAllowed(){let k=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;return k&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),k}parseAwait(k){let g=this.startNodeAt(k);return this.expressionScope.recordParameterInitializerError(A.AwaitExpressionFormalParameter,g),this.eat(55)&&this.raise(A.ObsoleteAwaitStar,g),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(g.argument=this.parseMaybeUnary(null,!0)),this.finishNode(g,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:k}=this.state;return k===53||k===10||k===0||fe(k)||k===102&&!this.state.containsEsc||k===138||k===56||this.hasPlugin("v8intrinsic")&&k===54}parseYield(){let k=this.startNode();this.expressionScope.recordParameterInitializerError(A.YieldInParameter,k),this.next();let g=!1,B=null;if(!this.hasPrecedingLineBreak())switch(g=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!g)break;default:B=this.parseMaybeAssign()}return k.delegate=g,k.argument=B,this.finishNode(k,"YieldExpression")}parseImportCall(k){if(this.next(),k.source=this.parseMaybeAssignAllowIn(),k.options=null,this.eat(12)&&!this.match(11)&&(k.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(A.ImportCallArity,k)}return this.expect(11),this.finishNode(k,"ImportExpression")}checkPipelineAtInfixOperator(k,g){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&k.type==="SequenceExpression"&&this.raise(A.PipelineHeadSequenceExpression,g)}parseSmartPipelineBodyInStyle(k,g){if(this.isSimpleReference(k)){let B=this.startNodeAt(g);return B.callee=k,this.finishNode(B,"PipelineBareFunction")}else{let B=this.startNodeAt(g);return this.checkSmartPipeTopicBodyEarlyErrors(g),B.expression=k,this.finishNode(B,"PipelineTopicExpression")}}isSimpleReference(k){switch(k.type){case"MemberExpression":return!k.computed&&this.isSimpleReference(k.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(k){if(this.match(19))throw this.raise(A.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(A.PipelineTopicUnused,k)}withTopicBindingContext(k){let g=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return k()}finally{this.state.topicContext=g}}withSmartMixTopicForbiddingContext(k){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let g=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return k()}finally{this.state.topicContext=g}}else return k()}withSoloAwaitPermittingContext(k){let g=this.state.soloAwait;this.state.soloAwait=!0;try{return k()}finally{this.state.soloAwait=g}}allowInAnd(k){let g=this.prodParam.currentFlags();if(8&~g){this.prodParam.enter(g|8);try{return k()}finally{this.prodParam.exit()}}return k()}disallowInAnd(k){let g=this.prodParam.currentFlags();if(8&g){this.prodParam.enter(g&-9);try{return k()}finally{this.prodParam.exit()}}return k()}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(k){let g=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let V=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),g,k);return this.state.inFSharpPipelineDirectBody=B,V}parseModuleExpression(){this.expectPlugin("moduleBlocks");let k=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let g=this.startNodeAt(this.state.endLoc);this.next();let B=this.initializeScopes(!0);this.enterInitialScopes();try{k.body=this.parseProgram(g,8,"module")}finally{B()}return this.finishNode(k,"ModuleExpression")}parsePropertyNamePrefixOperator(k){}},A_={kind:1},V4={kind:2},P7=/[\uD800-\uDFFF]/u,G1=/in(?:stanceof)?/y;function ip(k,g,B){for(let V=0;V<k.length;V++){let re=k[V],{type:Pe}=re;if(typeof Pe=="number"){{if(Pe===139){let{loc:et,start:xt,value:Vt,end:kt}=re,an=xt+1,zn=i(et.start,1);k.splice(V,1,new l0({type:oe(27),value:"#",start:xt,end:an,startLoc:et.start,endLoc:zn}),new l0({type:oe(132),value:Vt,start:an,end:kt,startLoc:zn,endLoc:et.end})),V++;continue}if(fe(Pe)){let{loc:et,start:xt,value:Vt,end:kt}=re,an=xt+1,zn=i(et.start,1),yi;g.charCodeAt(xt-B)===96?yi=new l0({type:oe(22),value:"`",start:xt,end:an,startLoc:et.start,endLoc:zn}):yi=new l0({type:oe(8),value:"}",start:xt,end:an,startLoc:et.start,endLoc:zn});let i0,Y0,Nu,Za;Pe===24?(Y0=kt-1,Nu=i(et.end,-1),i0=Vt===null?null:Vt.slice(1,-1),Za=new l0({type:oe(22),value:"`",start:Y0,end:kt,startLoc:Nu,endLoc:et.end})):(Y0=kt-2,Nu=i(et.end,-2),i0=Vt===null?null:Vt.slice(1,-2),Za=new l0({type:oe(23),value:"${",start:Y0,end:kt,startLoc:Nu,endLoc:et.end})),k.splice(V,1,yi,new l0({type:oe(20),value:i0,start:an,end:Y0,startLoc:zn,endLoc:Nu}),Za),V+=2;continue}}re.type=oe(Pe)}}return k}var $c=class extends Y_{parseTopLevel(k,g){return k.program=this.parseProgram(g),k.comments=this.comments,this.optionFlags&128&&(k.tokens=ip(this.tokens,this.input,this.startIndex)),this.finishNode(k,"File")}parseProgram(k,g=140,B=this.options.sourceType){if(k.sourceType=B,k.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(k,!0,!0,g),this.inModule){if(!(this.optionFlags&32)&&this.scope.undefinedExports.size>0)for(let[re,Pe]of Array.from(this.scope.undefinedExports))this.raise(A.ModuleExportUndefined,Pe,{localName:re});this.addExtra(k,"topLevelAwait",this.state.hasTopLevelAwait)}let V;return g===140?V=this.finishNode(k,"Program"):V=this.finishNodeAt(k,"Program",i(this.state.startLoc,-1)),V}stmtToDirective(k){let g=k;g.type="Directive",g.value=g.expression,delete g.expression;let B=g.value,V=B.value,re=this.input.slice(this.offsetToSourcePos(B.start),this.offsetToSourcePos(B.end)),Pe=B.value=re.slice(1,-1);return this.addExtra(B,"raw",re),this.addExtra(B,"rawValue",Pe),this.addExtra(B,"expressionValue",V),B.type="DirectiveLiteral",g}parseInterpreterDirective(){if(!this.match(28))return null;let k=this.startNode();return k.value=this.state.value,this.next(),this.finishNode(k,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(k,g){if(en(k)){if(G1.lastIndex=g,G1.test(this.input)){let B=this.codePointAtPos(G1.lastIndex);if(!ki(B)&&B!==92)return!1}return!0}else return k===92}chStartsBindingPattern(k){return k===91||k===123}hasFollowingBindingAtom(){let k=this.nextTokenStart(),g=this.codePointAtPos(k);return this.chStartsBindingPattern(g)||this.chStartsBindingIdentifier(g,k)}hasInLineFollowingBindingIdentifierOrBrace(){let k=this.nextTokenInLineStart(),g=this.codePointAtPos(k);return g===123||this.chStartsBindingIdentifier(g,k)}startsUsingForOf(){let{type:k,containsEsc:g}=this.lookahead();if(k===102&&!g)return!1;if(ke(k)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let k=this.nextTokenInLineStart();if(this.isUnparsedContextual(k,"using")){k=this.nextTokenInLineStartSince(k+5);let g=this.codePointAtPos(k);if(this.chStartsBindingIdentifier(g,k))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(k=!1){let g=0;return this.options.annexB&&!this.state.strict&&(g|=4,k&&(g|=8)),this.parseStatementLike(g)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(k){let g=null;return this.match(26)&&(g=this.parseDecorators(!0)),this.parseStatementContent(k,g)}parseStatementContent(k,g){let B=this.state.type,V=this.startNode(),re=!!(k&2),Pe=!!(k&4),et=k&1;switch(B){case 60:return this.parseBreakContinueStatement(V,!0);case 63:return this.parseBreakContinueStatement(V,!1);case 64:return this.parseDebuggerStatement(V);case 90:return this.parseDoWhileStatement(V);case 91:return this.parseForStatement(V);case 68:if(this.lookaheadCharCode()===46)break;return Pe||this.raise(this.state.strict?A.StrictFunction:this.options.annexB?A.SloppyFunctionAnnexB:A.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(V,!1,!re&&Pe);case 80:return re||this.unexpected(),this.parseClass(this.maybeTakeDecorators(g,V),!0);case 69:return this.parseIfStatement(V);case 70:return this.parseReturnStatement(V);case 71:return this.parseSwitchStatement(V);case 72:return this.parseThrowStatement(V);case 73:return this.parseTryStatement(V);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?re||this.raise(A.UnexpectedLexicalDeclaration,V):this.raise(A.AwaitUsingNotInAsyncContext,V),this.next(),this.parseVarStatement(V,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(A.UnexpectedUsingDeclaration,this.state.startLoc):re||this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(V,"using");case 100:{if(this.state.containsEsc)break;let kt=this.nextTokenStart(),an=this.codePointAtPos(kt);if(an!==91&&(!re&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(an,kt)&&an!==123))break}case 75:re||this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let kt=this.state.value;return this.parseVarStatement(V,kt)}case 92:return this.parseWhileStatement(V);case 76:return this.parseWithStatement(V);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(V);case 83:{let kt=this.lookaheadCharCode();if(kt===40||kt===46)break}case 82:{!(this.optionFlags&8)&&!et&&this.raise(A.UnexpectedImportExport,this.state.startLoc),this.next();let kt;return B===83?(kt=this.parseImport(V),kt.type==="ImportDeclaration"&&(!kt.importKind||kt.importKind==="value")&&(this.sawUnambiguousESM=!0)):(kt=this.parseExport(V,g),(kt.type==="ExportNamedDeclaration"&&(!kt.exportKind||kt.exportKind==="value")||kt.type==="ExportAllDeclaration"&&(!kt.exportKind||kt.exportKind==="value")||kt.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(kt),kt}default:if(this.isAsyncFunction())return re||this.raise(A.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(V,!0,!re&&Pe)}let xt=this.state.value,Vt=this.parseExpression();return ke(B)&&Vt.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(V,xt,Vt,k):this.parseExpressionStatement(V,Vt,g)}assertModuleNodeAllowed(k){!(this.optionFlags&8)&&!this.inModule&&this.raise(A.ImportOutsideModule,k)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(k,g,B){if(k){var V;(V=g.decorators)!=null&&V.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(A.DecoratorsBeforeAfterExport,g.decorators[0]),g.decorators.unshift(...k)):g.decorators=k,this.resetStartLocationFromNode(g,k[0]),B&&this.resetStartLocationFromNode(B,g)}return g}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(k){let g=[];do g.push(this.parseDecorator());while(this.match(26));if(this.match(82))k||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(A.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(A.UnexpectedLeadingDecorator,this.state.startLoc);return g}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let k=this.startNode();if(this.next(),this.hasPlugin("decorators")){let g=this.state.startLoc,B;if(this.match(10)){let V=this.state.startLoc;this.next(),B=this.parseExpression(),this.expect(11),B=this.wrapParenthesis(V,B);let re=this.state.startLoc;k.expression=this.parseMaybeDecoratorArguments(B,V),this.getPluginOption("decorators","allowCallParenthesized")===!1&&k.expression!==B&&this.raise(A.DecoratorArgumentsOutsideParentheses,re)}else{for(B=this.parseIdentifier(!1);this.eat(16);){let V=this.startNodeAt(g);V.object=B,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),V.property=this.parsePrivateName()):V.property=this.parseIdentifier(!0),V.computed=!1,B=this.finishNode(V,"MemberExpression")}k.expression=this.parseMaybeDecoratorArguments(B,g)}}else k.expression=this.parseExprSubscripts();return this.finishNode(k,"Decorator")}parseMaybeDecoratorArguments(k,g){if(this.eat(10)){let B=this.startNodeAt(g);return B.callee=k,B.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(B.arguments),this.finishNode(B,"CallExpression")}return k}parseBreakContinueStatement(k,g){return this.next(),this.isLineTerminator()?k.label=null:(k.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(k,g),this.finishNode(k,g?"BreakStatement":"ContinueStatement")}verifyBreakContinue(k,g){let B;for(B=0;B<this.state.labels.length;++B){let V=this.state.labels[B];if((k.label==null||V.name===k.label.name)&&(V.kind!=null&&(g||V.kind===1)||k.label&&g))break}if(B===this.state.labels.length){let V=g?"BreakStatement":"ContinueStatement";this.raise(A.IllegalBreakContinue,k,{type:V})}}parseDebuggerStatement(k){return this.next(),this.semicolon(),this.finishNode(k,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let k=this.parseExpression();return this.expect(11),k}parseDoWhileStatement(k){return this.next(),this.state.labels.push(A_),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),k.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(k,"DoWhileStatement")}parseForStatement(k){this.next(),this.state.labels.push(A_);let g=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(g=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return g!==null&&this.unexpected(g),this.parseFor(k,null);let B=this.isContextual(100);{let xt=this.isContextual(96)&&this.startsAwaitUsing(),Vt=xt||this.isContextual(107)&&this.startsUsingForOf(),kt=B&&this.hasFollowingBindingAtom()||Vt;if(this.match(74)||this.match(75)||kt){let an=this.startNode(),zn;xt?(zn="await using",this.recordAwaitIfAllowed()||this.raise(A.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):zn=this.state.value,this.next(),this.parseVar(an,!0,zn);let yi=this.finishNode(an,"VariableDeclaration"),i0=this.match(58);return i0&&Vt&&this.raise(A.ForInUsing,yi),(i0||this.isContextual(102))&&yi.declarations.length===1?this.parseForIn(k,yi,g):(g!==null&&this.unexpected(g),this.parseFor(k,yi))}}let V=this.isContextual(95),re=new Hs,Pe=this.parseExpression(!0,re),et=this.isContextual(102);if(et&&(B&&this.raise(A.ForOfLet,Pe),g===null&&V&&Pe.type==="Identifier"&&this.raise(A.ForOfAsync,Pe)),et||this.match(58)){this.checkDestructuringPrivate(re),this.toAssignable(Pe,!0);let xt=et?"ForOfStatement":"ForInStatement";return this.checkLVal(Pe,{type:xt}),this.parseForIn(k,Pe,g)}else this.checkExpressionErrors(re,!0);return g!==null&&this.unexpected(g),this.parseFor(k,Pe)}parseFunctionStatement(k,g,B){return this.next(),this.parseFunction(k,1|(B?2:0)|(g?8:0))}parseIfStatement(k){return this.next(),k.test=this.parseHeaderExpression(),k.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),k.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(k,"IfStatement")}parseReturnStatement(k){return!this.prodParam.hasReturn&&!(this.optionFlags&2)&&this.raise(A.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?k.argument=null:(k.argument=this.parseExpression(),this.semicolon()),this.finishNode(k,"ReturnStatement")}parseSwitchStatement(k){this.next(),k.discriminant=this.parseHeaderExpression();let g=k.cases=[];this.expect(5),this.state.labels.push(V4),this.scope.enter(0);let B;for(let V;!this.match(8);)if(this.match(61)||this.match(65)){let re=this.match(61);B&&this.finishNode(B,"SwitchCase"),g.push(B=this.startNode()),B.consequent=[],this.next(),re?B.test=this.parseExpression():(V&&this.raise(A.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),V=!0,B.test=null),this.expect(14)}else B?B.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),B&&this.finishNode(B,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(k,"SwitchStatement")}parseThrowStatement(k){return this.next(),this.hasPrecedingLineBreak()&&this.raise(A.NewlineAfterThrow,this.state.lastTokEndLoc),k.argument=this.parseExpression(),this.semicolon(),this.finishNode(k,"ThrowStatement")}parseCatchClauseParam(){let k=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&k.type==="Identifier"?8:0),this.checkLVal(k,{type:"CatchClause"},9),k}parseTryStatement(k){if(this.next(),k.block=this.parseBlock(),k.handler=null,this.match(62)){let g=this.startNode();this.next(),this.match(10)?(this.expect(10),g.param=this.parseCatchClauseParam(),this.expect(11)):(g.param=null,this.scope.enter(0)),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),k.handler=this.finishNode(g,"CatchClause")}return k.finalizer=this.eat(67)?this.parseBlock():null,!k.handler&&!k.finalizer&&this.raise(A.NoCatchOrFinally,k),this.finishNode(k,"TryStatement")}parseVarStatement(k,g,B=!1){return this.next(),this.parseVar(k,!1,g,B),this.semicolon(),this.finishNode(k,"VariableDeclaration")}parseWhileStatement(k){return this.next(),k.test=this.parseHeaderExpression(),this.state.labels.push(A_),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(k,"WhileStatement")}parseWithStatement(k){return this.state.strict&&this.raise(A.StrictWith,this.state.startLoc),this.next(),k.object=this.parseHeaderExpression(),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(k,"WithStatement")}parseEmptyStatement(k){return this.next(),this.finishNode(k,"EmptyStatement")}parseLabeledStatement(k,g,B,V){for(let Pe of this.state.labels)Pe.name===g&&this.raise(A.LabelRedeclaration,B,{labelName:g});let re=Tt(this.state.type)?1:this.match(71)?2:null;for(let Pe=this.state.labels.length-1;Pe>=0;Pe--){let et=this.state.labels[Pe];if(et.statementStart===k.start)et.statementStart=this.sourceToOffsetPos(this.state.start),et.kind=re;else break}return this.state.labels.push({name:g,kind:re,statementStart:this.sourceToOffsetPos(this.state.start)}),k.body=V&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),k.label=B,this.finishNode(k,"LabeledStatement")}parseExpressionStatement(k,g,B){return k.expression=g,this.semicolon(),this.finishNode(k,"ExpressionStatement")}parseBlock(k=!1,g=!0,B){let V=this.startNode();return k&&this.state.strictErrors.clear(),this.expect(5),g&&this.scope.enter(0),this.parseBlockBody(V,k,!1,8,B),g&&this.scope.exit(),this.finishNode(V,"BlockStatement")}isValidDirective(k){return k.type==="ExpressionStatement"&&k.expression.type==="StringLiteral"&&!k.expression.extra.parenthesized}parseBlockBody(k,g,B,V,re){let Pe=k.body=[],et=k.directives=[];this.parseBlockOrModuleBlockBody(Pe,g?et:void 0,B,V,re)}parseBlockOrModuleBlockBody(k,g,B,V,re){let Pe=this.state.strict,et=!1,xt=!1;for(;!this.match(V);){let Vt=B?this.parseModuleItem():this.parseStatementListItem();if(g&&!xt){if(this.isValidDirective(Vt)){let kt=this.stmtToDirective(Vt);g.push(kt),!et&&kt.value.value==="use strict"&&(et=!0,this.setStrict(!0));continue}xt=!0,this.state.strictErrors.clear()}k.push(Vt)}re==null||re.call(this,et),Pe||this.setStrict(!1),this.next()}parseFor(k,g){return k.init=g,this.semicolon(!1),k.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),k.update=this.match(11)?null:this.parseExpression(),this.expect(11),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(k,"ForStatement")}parseForIn(k,g,B){let V=this.match(58);return this.next(),V?B!==null&&this.unexpected(B):k.await=B!==null,g.type==="VariableDeclaration"&&g.declarations[0].init!=null&&(!V||!this.options.annexB||this.state.strict||g.kind!=="var"||g.declarations[0].id.type!=="Identifier")&&this.raise(A.ForInOfLoopInitializer,g,{type:V?"ForInStatement":"ForOfStatement"}),g.type==="AssignmentPattern"&&this.raise(A.InvalidLhs,g,{ancestor:{type:"ForStatement"}}),k.left=g,k.right=V?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(k,V?"ForInStatement":"ForOfStatement")}parseVar(k,g,B,V=!1){let re=k.declarations=[];for(k.kind=B;;){let Pe=this.startNode();if(this.parseVarId(Pe,B),Pe.init=this.eat(29)?g?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,Pe.init===null&&!V&&(Pe.id.type!=="Identifier"&&!(g&&(this.match(58)||this.isContextual(102)))?this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(B==="const"||B==="using"||B==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:B})),re.push(this.finishNode(Pe,"VariableDeclarator")),!this.eat(12))break}return k}parseVarId(k,g){let B=this.parseBindingAtom();(g==="using"||g==="await using")&&(B.type==="ArrayPattern"||B.type==="ObjectPattern")&&this.raise(A.UsingDeclarationHasBindingPattern,B.loc.start),this.checkLVal(B,{type:"VariableDeclarator"},g==="var"?5:8201),k.id=B}parseAsyncFunctionExpression(k){return this.parseFunction(k,8)}parseFunction(k,g=0){let B=g&2,V=!!(g&1),re=V&&!(g&4),Pe=!!(g&8);this.initFunction(k,Pe),this.match(55)&&(B&&this.raise(A.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),k.generator=!0),V&&(k.id=this.parseFunctionId(re));let et=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(to(Pe,k.generator)),V||(k.id=this.parseFunctionId()),this.parseFunctionParams(k,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(k,V?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),V&&!B&&this.registerFunctionStatementId(k),this.state.maybeInArrowParameters=et,k}parseFunctionId(k){return k||ke(this.state.type)?this.parseIdentifier():null}parseFunctionParams(k,g){this.expect(10),this.expressionScope.enter(d0()),k.params=this.parseBindingList(11,41,2|(g?4:0)),this.expressionScope.exit()}registerFunctionStatementId(k){k.id&&this.scope.declareName(k.id.name,!this.options.annexB||this.state.strict||k.generator||k.async?this.scope.treatFunctionsAsVar?5:8201:17,k.id.loc.start)}parseClass(k,g,B){this.next();let V=this.state.strict;return this.state.strict=!0,this.parseClassId(k,g,B),this.parseClassSuper(k),k.body=this.parseClassBody(!!k.superClass,V),this.finishNode(k,g?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(k){return k.type==="Identifier"&&k.name==="constructor"||k.type==="StringLiteral"&&k.value==="constructor"}isNonstaticConstructor(k){return!k.computed&&!k.static&&this.nameIsConstructor(k.key)}parseClassBody(k,g){this.classScope.enter();let B={hadConstructor:!1,hadSuperClass:k},V=[],re=this.startNode();if(re.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(V.length>0)throw this.raise(A.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){V.push(this.parseDecorator());continue}let Pe=this.startNode();V.length&&(Pe.decorators=V,this.resetStartLocationFromNode(Pe,V[0]),V=[]),this.parseClassMember(re,Pe,B),Pe.kind==="constructor"&&Pe.decorators&&Pe.decorators.length>0&&this.raise(A.DecoratorConstructor,Pe)}}),this.state.strict=g,this.next(),V.length)throw this.raise(A.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(re,"ClassBody")}parseClassMemberFromModifier(k,g){let B=this.parseIdentifier(!0);if(this.isClassMethod()){let V=g;return V.kind="method",V.computed=!1,V.key=B,V.static=!1,this.pushClassMethod(k,V,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let V=g;return V.computed=!1,V.key=B,V.static=!1,k.body.push(this.parseClassProperty(V)),!0}return this.resetPreviousNodeTrailingComments(B),!1}parseClassMember(k,g,B){let V=this.isContextual(106);if(V){if(this.parseClassMemberFromModifier(k,g))return;if(this.eat(5)){this.parseClassStaticBlock(k,g);return}}this.parseClassMemberWithIsStatic(k,g,B,V)}parseClassMemberWithIsStatic(k,g,B,V){let re=g,Pe=g,et=g,xt=g,Vt=g,kt=re,an=re;if(g.static=V,this.parsePropertyNamePrefixOperator(g),this.eat(55)){kt.kind="method";let Za=this.match(139);if(this.parseClassElementName(kt),Za){this.pushClassPrivateMethod(k,Pe,!0,!1);return}this.isNonstaticConstructor(re)&&this.raise(A.ConstructorIsGenerator,re.key),this.pushClassMethod(k,re,!0,!1,!1,!1);return}let zn=!this.state.containsEsc&&ke(this.state.type),yi=this.parseClassElementName(g),i0=zn?yi.name:null,Y0=this.isPrivateName(yi),Nu=this.state.startLoc;if(this.parsePostMemberNameModifiers(an),this.isClassMethod()){if(kt.kind="method",Y0){this.pushClassPrivateMethod(k,Pe,!1,!1);return}let Za=this.isNonstaticConstructor(re),Xa=!1;Za&&(re.kind="constructor",B.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(A.DuplicateConstructor,yi),Za&&this.hasPlugin("typescript")&&g.override&&this.raise(A.OverrideOnConstructor,yi),B.hadConstructor=!0,Xa=B.hadSuperClass),this.pushClassMethod(k,re,!1,!1,Za,Xa)}else if(this.isClassProperty())Y0?this.pushClassPrivateProperty(k,xt):this.pushClassProperty(k,et);else if(i0==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(yi);let Za=this.eat(55);an.optional&&this.unexpected(Nu),kt.kind="method";let Xa=this.match(139);this.parseClassElementName(kt),this.parsePostMemberNameModifiers(an),Xa?this.pushClassPrivateMethod(k,Pe,Za,!0):(this.isNonstaticConstructor(re)&&this.raise(A.ConstructorIsAsync,re.key),this.pushClassMethod(k,re,Za,!0,!1,!1))}else if((i0==="get"||i0==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(yi),kt.kind=i0;let Za=this.match(139);this.parseClassElementName(re),Za?this.pushClassPrivateMethod(k,Pe,!1,!1):(this.isNonstaticConstructor(re)&&this.raise(A.ConstructorIsAccessor,re.key),this.pushClassMethod(k,re,!1,!1,!1,!1)),this.checkGetterSetterParams(re)}else if(i0==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(yi);let Za=this.match(139);this.parseClassElementName(et),this.pushClassAccessorProperty(k,Vt,Za)}else this.isLineTerminator()?Y0?this.pushClassPrivateProperty(k,xt):this.pushClassProperty(k,et):this.unexpected()}parseClassElementName(k){let{type:g,value:B}=this.state;if((g===132||g===134)&&k.static&&B==="prototype"&&this.raise(A.StaticPrototype,this.state.startLoc),g===139){B==="constructor"&&this.raise(A.ConstructorClassPrivateField,this.state.startLoc);let V=this.parsePrivateName();return k.key=V,V}return this.parsePropertyName(k),k.key}parseClassStaticBlock(k,g){var B;this.scope.enter(208);let V=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let re=g.body=[];this.parseBlockOrModuleBlockBody(re,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=V,k.body.push(this.finishNode(g,"StaticBlock")),(B=g.decorators)!=null&&B.length&&this.raise(A.DecoratorStaticBlock,g)}pushClassProperty(k,g){!g.computed&&this.nameIsConstructor(g.key)&&this.raise(A.ConstructorClassField,g.key),k.body.push(this.parseClassProperty(g))}pushClassPrivateProperty(k,g){let B=this.parseClassPrivateProperty(g);k.body.push(B),this.classScope.declarePrivateName(this.getPrivateNameSV(B.key),0,B.key.loc.start)}pushClassAccessorProperty(k,g,B){!B&&!g.computed&&this.nameIsConstructor(g.key)&&this.raise(A.ConstructorClassField,g.key);let V=this.parseClassAccessorProperty(g);k.body.push(V),B&&this.classScope.declarePrivateName(this.getPrivateNameSV(V.key),0,V.key.loc.start)}pushClassMethod(k,g,B,V,re,Pe){k.body.push(this.parseMethod(g,B,V,re,Pe,"ClassMethod",!0))}pushClassPrivateMethod(k,g,B,V){let re=this.parseMethod(g,B,V,!1,!1,"ClassPrivateMethod",!0);k.body.push(re);let Pe=re.kind==="get"?re.static?6:2:re.kind==="set"?re.static?5:1:0;this.declareClassPrivateMethodInScope(re,Pe)}declareClassPrivateMethodInScope(k,g){this.classScope.declarePrivateName(this.getPrivateNameSV(k.key),g,k.key.loc.start)}parsePostMemberNameModifiers(k){}parseClassPrivateProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassPrivateProperty")}parseClassProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassProperty")}parseClassAccessorProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassAccessorProperty")}parseInitializer(k){this.scope.enter(80),this.expressionScope.enter(pl()),this.prodParam.enter(0),k.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(k,g,B,V=8331){if(ke(this.state.type))k.id=this.parseIdentifier(),g&&this.declareNameFromIdentifier(k.id,V);else if(B||!g)k.id=null;else throw this.raise(A.MissingClassName,this.state.startLoc)}parseClassSuper(k){k.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(k,g){let B=this.parseMaybeImportPhase(k,!0),V=this.maybeParseExportDefaultSpecifier(k,B),re=!V||this.eat(12),Pe=re&&this.eatExportStar(k),et=Pe&&this.maybeParseExportNamespaceSpecifier(k),xt=re&&(!et||this.eat(12)),Vt=V||Pe;if(Pe&&!et){if(V&&this.unexpected(),g)throw this.raise(A.UnsupportedDecoratorExport,k);return this.parseExportFrom(k,!0),this.finishNode(k,"ExportAllDeclaration")}let kt=this.maybeParseExportNamedSpecifiers(k);V&&re&&!Pe&&!kt&&this.unexpected(null,5),et&&xt&&this.unexpected(null,98);let an;if(Vt||kt){if(an=!1,g)throw this.raise(A.UnsupportedDecoratorExport,k);this.parseExportFrom(k,Vt)}else an=this.maybeParseExportDeclaration(k);if(Vt||kt||an){var zn;let yi=k;if(this.checkExport(yi,!0,!1,!!yi.source),((zn=yi.declaration)==null?void 0:zn.type)==="ClassDeclaration")this.maybeTakeDecorators(g,yi.declaration,yi);else if(g)throw this.raise(A.UnsupportedDecoratorExport,k);return this.finishNode(yi,"ExportNamedDeclaration")}if(this.eat(65)){let yi=k,i0=this.parseExportDefaultExpression();if(yi.declaration=i0,i0.type==="ClassDeclaration")this.maybeTakeDecorators(g,i0,yi);else if(g)throw this.raise(A.UnsupportedDecoratorExport,k);return this.checkExport(yi,!0,!0),this.finishNode(yi,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(k){return this.eat(55)}maybeParseExportDefaultSpecifier(k,g){if(g||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",g==null?void 0:g.loc.start);let B=g||this.parseIdentifier(!0),V=this.startNodeAtNode(B);return V.exported=B,k.specifiers=[this.finishNode(V,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(k){if(this.isContextual(93)){var g,B;(B=(g=k).specifiers)!=null||(g.specifiers=[]);let V=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),V.exported=this.parseModuleExportName(),k.specifiers.push(this.finishNode(V,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(k){if(this.match(5)){let g=k;g.specifiers||(g.specifiers=[]);let B=g.exportKind==="type";return g.specifiers.push(...this.parseExportSpecifiers(B)),g.source=null,g.declaration=null,this.hasPlugin("importAssertions")&&(g.assertions=[]),!0}return!1}maybeParseExportDeclaration(k){return this.shouldParseExportDeclaration()?(k.specifiers=[],k.source=null,this.hasPlugin("importAssertions")&&(k.assertions=[]),k.declaration=this.parseExportDeclaration(k),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let k=this.nextTokenInLineStart();return this.isUnparsedContextual(k,"function")}parseExportDefaultExpression(){let k=this.startNode();if(this.match(68))return this.next(),this.parseFunction(k,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(k,13);if(this.match(80))return this.parseClass(k,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(A.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(A.UnsupportedDefaultExport,this.state.startLoc);let g=this.parseMaybeAssignAllowIn();return this.semicolon(),g}parseExportDeclaration(k){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:k}=this.state;if(ke(k)){if(k===95&&!this.state.containsEsc||k===100)return!1;if((k===130||k===129)&&!this.state.containsEsc){let{type:V}=this.lookahead();if(ke(V)&&V!==98||V===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let g=this.nextTokenStart(),B=this.isUnparsedContextual(g,"from");if(this.input.charCodeAt(g)===44||ke(this.state.type)&&B)return!0;if(this.match(65)&&B){let V=this.input.charCodeAt(this.nextTokenStartSince(g+4));return V===34||V===39}return!1}parseExportFrom(k,g){this.eatContextual(98)?(k.source=this.parseImportSource(),this.checkExport(k),this.maybeParseImportAttributes(k),this.checkJSONModuleImport(k)):g&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:k}=this.state;return k===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(A.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(A.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(A.UsingDeclarationExport,this.state.startLoc),!0):k===74||k===75||k===68||k===80||this.isLet()||this.isAsyncFunction()}checkExport(k,g,B,V){if(g){var re;if(B){if(this.checkDuplicateExports(k,"default"),this.hasPlugin("exportDefaultFrom")){var Pe;let et=k.declaration;et.type==="Identifier"&&et.name==="from"&&et.end-et.start===4&&!((Pe=et.extra)!=null&&Pe.parenthesized)&&this.raise(A.ExportDefaultFromAsIdentifier,et)}}else if((re=k.specifiers)!=null&&re.length)for(let et of k.specifiers){let{exported:xt}=et,Vt=xt.type==="Identifier"?xt.name:xt.value;if(this.checkDuplicateExports(et,Vt),!V&&et.local){let{local:kt}=et;kt.type!=="Identifier"?this.raise(A.ExportBindingIsString,et,{localName:kt.value,exportName:Vt}):(this.checkReservedWord(kt.name,kt.loc.start,!0,!1),this.scope.checkLocalExport(kt))}}else if(k.declaration){let et=k.declaration;if(et.type==="FunctionDeclaration"||et.type==="ClassDeclaration"){let{id:xt}=et;if(!xt)throw new Error("Assertion failure");this.checkDuplicateExports(k,xt.name)}else if(et.type==="VariableDeclaration")for(let xt of et.declarations)this.checkDeclaration(xt.id)}}}checkDeclaration(k){if(k.type==="Identifier")this.checkDuplicateExports(k,k.name);else if(k.type==="ObjectPattern")for(let g of k.properties)this.checkDeclaration(g);else if(k.type==="ArrayPattern")for(let g of k.elements)g&&this.checkDeclaration(g);else k.type==="ObjectProperty"?this.checkDeclaration(k.value):k.type==="RestElement"?this.checkDeclaration(k.argument):k.type==="AssignmentPattern"&&this.checkDeclaration(k.left)}checkDuplicateExports(k,g){this.exportedIdentifiers.has(g)&&(g==="default"?this.raise(A.DuplicateDefaultExport,k):this.raise(A.DuplicateExport,k,{exportName:g})),this.exportedIdentifiers.add(g)}parseExportSpecifiers(k){let g=[],B=!0;for(this.expect(5);!this.eat(8);){if(B)B=!1;else if(this.expect(12),this.eat(8))break;let V=this.isContextual(130),re=this.match(134),Pe=this.startNode();Pe.local=this.parseModuleExportName(),g.push(this.parseExportSpecifier(Pe,re,k,V))}return g}parseExportSpecifier(k,g,B,V){return this.eatContextual(93)?k.exported=this.parseModuleExportName():g?k.exported=ws(k.local):k.exported||(k.exported=Zt(k.local)),this.finishNode(k,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let k=this.parseStringLiteral(this.state.value),g=P7.exec(k.value);return g&&this.raise(A.ModuleExportNameHasLoneSurrogate,k,{surrogateCharCode:g[0].charCodeAt(0)}),k}return this.parseIdentifier(!0)}isJSONModuleImport(k){return k.assertions!=null?k.assertions.some(({key:g,value:B})=>B.value==="json"&&(g.type==="Identifier"?g.name==="type":g.value==="type")):!1}checkImportReflection(k){let{specifiers:g}=k,B=g.length===1?g[0].type:null;if(k.phase==="source")B!=="ImportDefaultSpecifier"&&this.raise(A.SourcePhaseImportRequiresDefault,g[0].loc.start);else if(k.phase==="defer")B!=="ImportNamespaceSpecifier"&&this.raise(A.DeferImportRequiresNamespace,g[0].loc.start);else if(k.module){var V;B!=="ImportDefaultSpecifier"&&this.raise(A.ImportReflectionNotBinding,g[0].loc.start),((V=k.assertions)==null?void 0:V.length)>0&&this.raise(A.ImportReflectionHasAssertion,g[0].loc.start)}}checkJSONModuleImport(k){if(this.isJSONModuleImport(k)&&k.type!=="ExportAllDeclaration"){let{specifiers:g}=k;if(g!=null){let B=g.find((V)=>{let re;if(V.type==="ExportSpecifier"?re=V.local:V.type==="ImportSpecifier"&&(re=V.imported),re!==void 0)return re.type==="Identifier"?re.name!=="default":re.value!=="default"});B!==void 0&&this.raise(A.ImportJSONBindingNotDefault,B.loc.start)}}}isPotentialImportPhase(k){return k?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(k,g,B,V){g||(B==="module"?(this.expectPlugin("importReflection",V),k.module=!0):this.hasPlugin("importReflection")&&(k.module=!1),B==="source"?(this.expectPlugin("sourcePhaseImports",V),k.phase="source"):B==="defer"?(this.expectPlugin("deferredImportEvaluation",V),k.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(k.phase=null))}parseMaybeImportPhase(k,g){if(!this.isPotentialImportPhase(g))return this.applyImportPhase(k,g,null),null;let B=this.parseIdentifier(!0),{type:V}=this.state;return(ut(V)?V!==98||this.lookaheadCharCode()===102:V!==12)?(this.resetPreviousIdentifierLeadingComments(B),this.applyImportPhase(k,g,B.name,B.loc.start),null):(this.applyImportPhase(k,g,null),B)}isPrecedingIdImportPhase(k){let{type:g}=this.state;return ke(g)?g!==98||this.lookaheadCharCode()===102:g!==12}parseImport(k){return this.match(134)?this.parseImportSourceAndAttributes(k):this.parseImportSpecifiersAndAfter(k,this.parseMaybeImportPhase(k,!1))}parseImportSpecifiersAndAfter(k,g){k.specifiers=[];let B=!this.maybeParseDefaultImportSpecifier(k,g)||this.eat(12),V=B&&this.maybeParseStarImportSpecifier(k);return B&&!V&&this.parseNamedImportSpecifiers(k),this.expectContextual(98),this.parseImportSourceAndAttributes(k)}parseImportSourceAndAttributes(k){var g;return(g=k.specifiers)!=null||(k.specifiers=[]),k.source=this.parseImportSource(),this.maybeParseImportAttributes(k),this.checkImportReflection(k),this.checkJSONModuleImport(k),this.semicolon(),this.finishNode(k,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(k,g,B){g.local=this.parseIdentifier(),k.specifiers.push(this.finishImportSpecifier(g,B))}finishImportSpecifier(k,g,B=8201){return this.checkLVal(k.local,{type:g},B),this.finishNode(k,g)}parseImportAttributes(){this.expect(5);let k=[],g=new Set;do{if(this.match(8))break;let B=this.startNode(),V=this.state.value;if(g.has(V)&&this.raise(A.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:V}),g.add(V),this.match(134)?B.key=this.parseStringLiteral(V):B.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);B.value=this.parseStringLiteral(this.state.value),k.push(this.finishNode(B,"ImportAttribute"))}while(this.eat(12));return this.expect(8),k}parseModuleAttributes(){let k=[],g=new Set;do{let B=this.startNode();if(B.key=this.parseIdentifier(!0),B.key.name!=="type"&&this.raise(A.ModuleAttributeDifferentFromType,B.key),g.has(B.key.name)&&this.raise(A.ModuleAttributesWithDuplicateKeys,B.key,{key:B.key.name}),g.add(B.key.name),this.expect(14),!this.match(134))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);B.value=this.parseStringLiteral(this.state.value),k.push(this.finishNode(B,"ImportAttribute"))}while(this.eat(12));return k}maybeParseImportAttributes(k){let g;var B=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?g=this.parseModuleAttributes():g=this.parseImportAttributes(),B=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(A.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(k,"deprecatedAssertSyntax",!0),this.next(),g=this.parseImportAttributes()):g=[];!B&&this.hasPlugin("importAssertions")?k.assertions=g:k.attributes=g}maybeParseDefaultImportSpecifier(k,g){if(g){let B=this.startNodeAtNode(g);return B.local=g,k.specifiers.push(this.finishImportSpecifier(B,"ImportDefaultSpecifier")),!0}else if(ut(this.state.type))return this.parseImportSpecifierLocal(k,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(k){if(this.match(55)){let g=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(k,g,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(k){let g=!0;for(this.expect(5);!this.eat(8);){if(g)g=!1;else{if(this.eat(14))throw this.raise(A.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let B=this.startNode(),V=this.match(134),re=this.isContextual(130);B.imported=this.parseModuleExportName();let Pe=this.parseImportSpecifier(B,V,k.importKind==="type"||k.importKind==="typeof",re,void 0);k.specifiers.push(Pe)}}parseImportSpecifier(k,g,B,V,re){if(this.eatContextual(93))k.local=this.parseIdentifier();else{let{imported:Pe}=k;if(g)throw this.raise(A.ImportBindingIsString,k,{importName:Pe.value});this.checkReservedWord(Pe.name,k.loc.start,!0,!0),k.local||(k.local=Zt(Pe))}return this.finishImportSpecifier(k,"ImportSpecifier",re)}isThisParam(k){return k.type==="Identifier"&&k.name==="this"}},l1=class extends $c{constructor(k,g,B){k=b(k),super(k,g),this.options=k,this.initializeScopes(),this.plugins=B,this.filename=k.sourceFilename,this.startIndex=k.startIndex;let V=0;k.allowAwaitOutsideFunction&&(V|=1),k.allowReturnOutsideFunction&&(V|=2),k.allowImportExportEverywhere&&(V|=8),k.allowSuperOutsideMethod&&(V|=16),k.allowUndeclaredExports&&(V|=32),k.allowNewTargetOutsideFunction&&(V|=4),k.ranges&&(V|=64),k.tokens&&(V|=128),k.createImportExpressions&&(V|=256),k.createParenthesizedExpressions&&(V|=512),k.errorRecovery&&(V|=1024),k.attachComment&&(V|=2048),k.annexB&&(V|=4096),this.optionFlags=V}getScopeHandler(){return K0}parse(){this.enterInitialScopes();let k=this.startNode(),g=this.startNode();return this.nextToken(),k.errors=null,this.parseTopLevel(k,g),k.errors=this.state.errors,k.comments.length=this.state.commentsLen,k}};function _1(k,g){var B;if(((B=g)==null?void 0:B.sourceType)==="unambiguous"){g=Object.assign({},g);try{g.sourceType="module";let V=Ml(g,k),re=V.parse();if(V.sawUnambiguousESM)return re;if(V.ambiguousScriptDifferentAst)try{return g.sourceType="script",Ml(g,k).parse()}catch{}else re.program.sourceType="script";return re}catch(V){try{return g.sourceType="script",Ml(g,k).parse()}catch{}throw V}}else return Ml(g,k).parse()}function N7(k,g){let B=Ml(g,k);return B.options.strictMode&&(B.state.strict=!0),B.getExpression()}function b_(k){let g={};for(let B of Object.keys(k))g[B]=oe(k[B]);return g}var Il=b_(ie);function Ml(k,g){let B=l1,V=new Map;if(k!=null&&k.plugins){for(let re of k.plugins){let Pe,et;typeof re=="string"?Pe=re:[Pe,et]=re,V.has(Pe)||V.set(Pe,et||{})}af(V),B=R1(V)}return new B(k,g,V)}var ud=new Map;function R1(k){let g=[];for(let re of qy)k.has(re)&&g.push(re);let B=g.join("|"),V=ud.get(B);if(!V){V=l1;for(let re of g)V=ad[re](V);ud.set(B,V)}return V}e.parse=_1,e.parseExpression=N7,e.tokTypes=Il}),tnr={};D9i(tnr,{parsers:()=>_nr});Xrr=Rrr(enr(),1);cia=xme(/\s/u),A9i=xme(" "),hia=xme(",; "),b9i=xme(/[^\n\r]/u);C9i=T9i;k9i=E9i;S9i=F9i;N9i=P9i;q9i=B9i;rnr=$9i,jrr=J9i;Eje=I9i;z9i=M9i,V9i=z9i(["Block","CommentBlock","MultiLine"]),Aje=V9i;Krr=L9i;j9i=X9i;for(let e=0;e<=K9i;e++)PR();O9i=Z9i,Q9i={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},W9i=O9i(Q9i),Y9i=W9i;Dje=bje;G9i=H9i;inr=R9i;anr=eDi,gme=tDi,rDi=/\*\/$/,nDi=/^\/\*\*?/,iDi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,aDi=/(^|\s+)\/\/([^\n\r]*)/g,Urr=/^(\r?\n)+/,uDi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Zrr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,oDi=/(\r?\n|^) *\* ?/g,sDi=[];SR=pDi;mDi=fDi;unr=dDi,yDi={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},Qrr=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],gDi=/@(?:no)?flow\b/u;wDi=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert"]),onr=[fC(["jsx"])],Wrr=cj({optionsCombinations:onr}),Yrr=cj({optionsCombinations:[fC(["jsx","typescript"]),fC(["typescript"])]}),Hrr=cj({isExpression:!0,optionsCombinations:[fC(["jsx"])]}),Grr=cj({isExpression:!0,optionsCombinations:[fC(["typescript"])]}),snr=cj({optionsCombinations:[fC(["jsx",["flow",{all:!0}],"flowComments"])]}),ADi=cj({optionsCombinations:onr.map((e)=>fC(["estree"],e))}),bDi={babel:Wrr,"babel-flow":snr,"babel-ts":Yrr,__js_expression:Hrr,__ts_expression:Grr,__vue_expression:Hrr,__vue_ts_expression:Grr,__vue_event_binding:Wrr,__vue_ts_event_binding:Yrr,__babel_estree:ADi},TDi=Rrr(enr(),1);wje=lnr(),CDi={json:SR({parse:wje,hasPragma(){return!0}}),json5:SR(wje),jsonc:SR(wje),"json-stringify":SR({parse:lnr({allowComments:!1}),astFormat:"estree-json"})},EDi=CDi,_nr={...bDi,...EDi},kDi=tnr});var H0r={};$_(H0r,{printers:()=>W0r,options:()=>Q0r,languages:()=>Y0r,default:()=>MEi});function $Di(e){return e!==null&&typeof e=="object"}function*IDi(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=(a)=>JDi(a)&&n(a);for(let a of r(e)){let u=e[a];if(Array.isArray(u))for(let s of u)i(s)&&(yield s);else i(u)&&(yield u)}}function*MDi(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let a of IDi(i,t))yield a,r.push(a)}}function zDi(e,{getVisitorKeys:t,predicate:r}){for(let n of MDi(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}function LDi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function XDi(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function UDi(e){if(!e)return 0;if(!KDi.test(e))return e.length;e=e.replace(VDi()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=jDi(n)?1:2)}return t}function qme(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:a}=t,u=r;for(;u>=0&&u<a;){let s=t.charAt(u);if(e instanceof RegExp){if(!e.test(s))return u}else if(!e.includes(s))return u;i?u--:u++}return u===-1||u===a?u:!1}}function QDi(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
406
|
+
`),cooked:re===null?null:re.slice(1,Vt)},et.tail=xt,this.next();let an=this.finishNode(et,"TemplateElement");return this.resetEndLocation(an,i(this.state.lastTokEndLoc,Vt)),an}parseTemplate(k){let g=this.startNode(),B=this.parseTemplateElement(k),V=[B],re=[];for(;!B.tail;)re.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),V.push(B=this.parseTemplateElement(k));return g.expressions=re,g.quasis=V,this.finishNode(g,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(k,g,B,V){B&&this.expectPlugin("recordAndTuple");let re=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Pe=Object.create(null),et=!0,xt=this.startNode();for(xt.properties=[],this.next();!this.match(k);){if(et)et=!1;else if(this.expect(12),this.match(k)){this.addTrailingCommaExtraToNode(xt);break}let kt;g?kt=this.parseBindingProperty():(kt=this.parsePropertyDefinition(V),this.checkProto(kt,B,Pe,V)),B&&!this.isObjectProperty(kt)&&kt.type!=="SpreadElement"&&this.raise(A.InvalidRecordProperty,kt),kt.shorthand&&this.addExtra(kt,"shorthand",!0),xt.properties.push(kt)}this.next(),this.state.inFSharpPipelineDirectBody=re;let Vt="ObjectExpression";return g?Vt="ObjectPattern":B&&(Vt="RecordExpression"),this.finishNode(xt,Vt)}addTrailingCommaExtraToNode(k){this.addExtra(k,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(k,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(k){return!k.computed&&k.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(k){let g=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(A.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)g.push(this.parseDecorator());let B=this.startNode(),V=!1,re=!1,Pe;if(this.match(21))return g.length&&this.unexpected(),this.parseSpread();g.length&&(B.decorators=g,g=[]),B.method=!1,k&&(Pe=this.state.startLoc);let et=this.eat(55);this.parsePropertyNamePrefixOperator(B);let xt=this.state.containsEsc;if(this.parsePropertyName(B,k),!et&&!xt&&this.maybeAsyncOrAccessorProp(B)){let{key:Vt}=B,kt=Vt.name;kt==="async"&&!this.hasPrecedingLineBreak()&&(V=!0,this.resetPreviousNodeTrailingComments(Vt),et=this.eat(55),this.parsePropertyName(B)),(kt==="get"||kt==="set")&&(re=!0,this.resetPreviousNodeTrailingComments(Vt),B.kind=kt,this.match(55)&&(et=!0,this.raise(A.AccessorIsGenerator,this.state.curPosition(),{kind:kt}),this.next()),this.parsePropertyName(B))}return this.parseObjPropValue(B,Pe,et,V,!1,re,k)}getGetterSetterExpectedParamCount(k){return k.kind==="get"?0:1}getObjectOrClassMethodParams(k){return k.params}checkGetterSetterParams(k){var g;let B=this.getGetterSetterExpectedParamCount(k),V=this.getObjectOrClassMethodParams(k);V.length!==B&&this.raise(k.kind==="get"?A.BadGetterArity:A.BadSetterArity,k),k.kind==="set"&&((g=V[V.length-1])==null?void 0:g.type)==="RestElement"&&this.raise(A.BadSetterRestParameter,k)}parseObjectMethod(k,g,B,V,re){if(re){let Pe=this.parseMethod(k,g,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(Pe),Pe}if(B||g||this.match(10))return V&&this.unexpected(),k.kind="method",k.method=!0,this.parseMethod(k,g,B,!1,!1,"ObjectMethod")}parseObjectProperty(k,g,B,V){if(k.shorthand=!1,this.eat(14))return k.value=B?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(V),this.finishNode(k,"ObjectProperty");if(!k.computed&&k.key.type==="Identifier"){if(this.checkReservedWord(k.key.name,k.key.loc.start,!0,!1),B)k.value=this.parseMaybeDefault(g,Zt(k.key));else if(this.match(29)){let re=this.state.startLoc;V!=null?V.shorthandAssignLoc===null&&(V.shorthandAssignLoc=re):this.raise(A.InvalidCoverInitializedName,re),k.value=this.parseMaybeDefault(g,Zt(k.key))}else k.value=Zt(k.key);return k.shorthand=!0,this.finishNode(k,"ObjectProperty")}}parseObjPropValue(k,g,B,V,re,Pe,et){let xt=this.parseObjectMethod(k,B,V,re,Pe)||this.parseObjectProperty(k,g,re,et);return xt||this.unexpected(),xt}parsePropertyName(k,g){if(this.eat(0))k.computed=!0,k.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:B,value:V}=this.state,re;if(ut(B))re=this.parseIdentifier(!0);else switch(B){case 135:re=this.parseNumericLiteral(V);break;case 134:re=this.parseStringLiteral(V);break;case 136:re=this.parseBigIntLiteral(V);break;case 139:{let Pe=this.state.startLoc;g!=null?g.privateKeyLoc===null&&(g.privateKeyLoc=Pe):this.raise(A.UnexpectedPrivateField,Pe),re=this.parsePrivateName();break}default:if(B===137){re=this.parseDecimalLiteral(V);break}this.unexpected()}k.key=re,B!==139&&(k.computed=!1)}}initFunction(k,g){k.id=null,k.generator=!1,k.async=g}parseMethod(k,g,B,V,re,Pe,et=!1){this.initFunction(k,B),k.generator=g,this.scope.enter(18|(et?64:0)|(re?32:0)),this.prodParam.enter(to(B,k.generator)),this.parseFunctionParams(k,V);let xt=this.parseFunctionBodyAndFinish(k,Pe,!0);return this.prodParam.exit(),this.scope.exit(),xt}parseArrayLike(k,g,B,V){B&&this.expectPlugin("recordAndTuple");let re=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let Pe=this.startNode();return this.next(),Pe.elements=this.parseExprList(k,!B,V,Pe),this.state.inFSharpPipelineDirectBody=re,this.finishNode(Pe,B?"TupleExpression":"ArrayExpression")}parseArrowExpression(k,g,B,V){this.scope.enter(6);let re=to(B,!1);!this.match(5)&&this.prodParam.hasIn&&(re|=8),this.prodParam.enter(re),this.initFunction(k,B);let Pe=this.state.maybeInArrowParameters;return g&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(k,g,V)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(k,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=Pe,this.finishNode(k,"ArrowFunctionExpression")}setArrowFunctionParameters(k,g,B){this.toAssignableList(g,B,!1),k.params=g}parseFunctionBodyAndFinish(k,g,B=!1){return this.parseFunctionBody(k,!1,B),this.finishNode(k,g)}parseFunctionBody(k,g,B=!1){let V=g&&!this.match(5);if(this.expressionScope.enter(pl()),V)k.body=this.parseMaybeAssign(),this.checkParams(k,!1,g,!1);else{let re=this.state.strict,Pe=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),k.body=this.parseBlock(!0,!1,(et)=>{let xt=!this.isSimpleParamList(k.params);et&&xt&&this.raise(A.IllegalLanguageModeDirective,(k.kind==="method"||k.kind==="constructor")&&k.key?k.key.loc.end:k);let Vt=!re&&this.state.strict;this.checkParams(k,!this.state.strict&&!g&&!B&&!xt,g,Vt),this.state.strict&&k.id&&this.checkIdentifier(k.id,65,Vt)}),this.prodParam.exit(),this.state.labels=Pe}this.expressionScope.exit()}isSimpleParameter(k){return k.type==="Identifier"}isSimpleParamList(k){for(let g=0,B=k.length;g<B;g++)if(!this.isSimpleParameter(k[g]))return!1;return!0}checkParams(k,g,B,V=!0){let re=!g&&new Set,Pe={type:"FormalParameters"};for(let et of k.params)this.checkLVal(et,Pe,5,re,V)}parseExprList(k,g,B,V){let re=[],Pe=!0;for(;!this.eat(k);){if(Pe)Pe=!1;else if(this.expect(12),this.match(k)){V&&this.addTrailingCommaExtraToNode(V),this.next();break}re.push(this.parseExprListItem(g,B))}return re}parseExprListItem(k,g,B){let V;if(this.match(12))k||this.raise(A.UnexpectedToken,this.state.curPosition(),{unexpected:","}),V=null;else if(this.match(21)){let re=this.state.startLoc;V=this.parseParenItem(this.parseSpread(g),re)}else if(this.match(17)){this.expectPlugin("partialApplication"),B||this.raise(A.UnexpectedArgumentPlaceholder,this.state.startLoc);let re=this.startNode();this.next(),V=this.finishNode(re,"ArgumentPlaceholder")}else V=this.parseMaybeAssignAllowIn(g,this.parseParenItem);return V}parseIdentifier(k){let g=this.startNode(),B=this.parseIdentifierName(k);return this.createIdentifier(g,B)}createIdentifier(k,g){return k.name=g,k.loc.identifierName=g,this.finishNode(k,"Identifier")}parseIdentifierName(k){let g,{startLoc:B,type:V}=this.state;ut(V)?g=this.state.value:this.unexpected();let re=Je(V);return k?re&&this.replaceToken(132):this.checkReservedWord(g,B,re,!1),this.next(),g}checkReservedWord(k,g,B,V){if(k.length>10||!Pi(k))return;if(B&&ri(k)){this.raise(A.UnexpectedKeyword,g,{keyword:k});return}if((this.state.strict?V?kn:Ar:pr)(k,this.inModule)){this.raise(A.UnexpectedReservedWord,g,{reservedWord:k});return}else if(k==="yield"){if(this.prodParam.hasYield){this.raise(A.YieldBindingIdentifier,g);return}}else if(k==="await"){if(this.prodParam.hasAwait){this.raise(A.AwaitBindingIdentifier,g);return}if(this.scope.inStaticBlock){this.raise(A.AwaitBindingIdentifierInStaticBlock,g);return}this.expressionScope.recordAsyncArrowParametersError(g)}else if(k==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(A.ArgumentsInClass,g);return}}recordAwaitIfAllowed(){let k=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;return k&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),k}parseAwait(k){let g=this.startNodeAt(k);return this.expressionScope.recordParameterInitializerError(A.AwaitExpressionFormalParameter,g),this.eat(55)&&this.raise(A.ObsoleteAwaitStar,g),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(g.argument=this.parseMaybeUnary(null,!0)),this.finishNode(g,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:k}=this.state;return k===53||k===10||k===0||fe(k)||k===102&&!this.state.containsEsc||k===138||k===56||this.hasPlugin("v8intrinsic")&&k===54}parseYield(){let k=this.startNode();this.expressionScope.recordParameterInitializerError(A.YieldInParameter,k),this.next();let g=!1,B=null;if(!this.hasPrecedingLineBreak())switch(g=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!g)break;default:B=this.parseMaybeAssign()}return k.delegate=g,k.argument=B,this.finishNode(k,"YieldExpression")}parseImportCall(k){if(this.next(),k.source=this.parseMaybeAssignAllowIn(),k.options=null,this.eat(12)&&!this.match(11)&&(k.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(A.ImportCallArity,k)}return this.expect(11),this.finishNode(k,"ImportExpression")}checkPipelineAtInfixOperator(k,g){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&k.type==="SequenceExpression"&&this.raise(A.PipelineHeadSequenceExpression,g)}parseSmartPipelineBodyInStyle(k,g){if(this.isSimpleReference(k)){let B=this.startNodeAt(g);return B.callee=k,this.finishNode(B,"PipelineBareFunction")}else{let B=this.startNodeAt(g);return this.checkSmartPipeTopicBodyEarlyErrors(g),B.expression=k,this.finishNode(B,"PipelineTopicExpression")}}isSimpleReference(k){switch(k.type){case"MemberExpression":return!k.computed&&this.isSimpleReference(k.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(k){if(this.match(19))throw this.raise(A.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(A.PipelineTopicUnused,k)}withTopicBindingContext(k){let g=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return k()}finally{this.state.topicContext=g}}withSmartMixTopicForbiddingContext(k){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let g=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return k()}finally{this.state.topicContext=g}}else return k()}withSoloAwaitPermittingContext(k){let g=this.state.soloAwait;this.state.soloAwait=!0;try{return k()}finally{this.state.soloAwait=g}}allowInAnd(k){let g=this.prodParam.currentFlags();if(8&~g){this.prodParam.enter(g|8);try{return k()}finally{this.prodParam.exit()}}return k()}disallowInAnd(k){let g=this.prodParam.currentFlags();if(8&g){this.prodParam.enter(g&-9);try{return k()}finally{this.prodParam.exit()}}return k()}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(k){let g=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let B=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let V=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),g,k);return this.state.inFSharpPipelineDirectBody=B,V}parseModuleExpression(){this.expectPlugin("moduleBlocks");let k=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let g=this.startNodeAt(this.state.endLoc);this.next();let B=this.initializeScopes(!0);this.enterInitialScopes();try{k.body=this.parseProgram(g,8,"module")}finally{B()}return this.finishNode(k,"ModuleExpression")}parsePropertyNamePrefixOperator(k){}},A_={kind:1},V4={kind:2},P7=/[\uD800-\uDFFF]/u,G1=/in(?:stanceof)?/y;function ip(k,g,B){for(let V=0;V<k.length;V++){let re=k[V],{type:Pe}=re;if(typeof Pe=="number"){{if(Pe===139){let{loc:et,start:xt,value:Vt,end:kt}=re,an=xt+1,zn=i(et.start,1);k.splice(V,1,new l0({type:oe(27),value:"#",start:xt,end:an,startLoc:et.start,endLoc:zn}),new l0({type:oe(132),value:Vt,start:an,end:kt,startLoc:zn,endLoc:et.end})),V++;continue}if(fe(Pe)){let{loc:et,start:xt,value:Vt,end:kt}=re,an=xt+1,zn=i(et.start,1),yi;g.charCodeAt(xt-B)===96?yi=new l0({type:oe(22),value:"`",start:xt,end:an,startLoc:et.start,endLoc:zn}):yi=new l0({type:oe(8),value:"}",start:xt,end:an,startLoc:et.start,endLoc:zn});let i0,Y0,Nu,Za;Pe===24?(Y0=kt-1,Nu=i(et.end,-1),i0=Vt===null?null:Vt.slice(1,-1),Za=new l0({type:oe(22),value:"`",start:Y0,end:kt,startLoc:Nu,endLoc:et.end})):(Y0=kt-2,Nu=i(et.end,-2),i0=Vt===null?null:Vt.slice(1,-2),Za=new l0({type:oe(23),value:"${",start:Y0,end:kt,startLoc:Nu,endLoc:et.end})),k.splice(V,1,yi,new l0({type:oe(20),value:i0,start:an,end:Y0,startLoc:zn,endLoc:Nu}),Za),V+=2;continue}}re.type=oe(Pe)}}return k}var $c=class extends Y_{parseTopLevel(k,g){return k.program=this.parseProgram(g),k.comments=this.comments,this.optionFlags&128&&(k.tokens=ip(this.tokens,this.input,this.startIndex)),this.finishNode(k,"File")}parseProgram(k,g=140,B=this.options.sourceType){if(k.sourceType=B,k.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(k,!0,!0,g),this.inModule){if(!(this.optionFlags&32)&&this.scope.undefinedExports.size>0)for(let[re,Pe]of Array.from(this.scope.undefinedExports))this.raise(A.ModuleExportUndefined,Pe,{localName:re});this.addExtra(k,"topLevelAwait",this.state.hasTopLevelAwait)}let V;return g===140?V=this.finishNode(k,"Program"):V=this.finishNodeAt(k,"Program",i(this.state.startLoc,-1)),V}stmtToDirective(k){let g=k;g.type="Directive",g.value=g.expression,delete g.expression;let B=g.value,V=B.value,re=this.input.slice(this.offsetToSourcePos(B.start),this.offsetToSourcePos(B.end)),Pe=B.value=re.slice(1,-1);return this.addExtra(B,"raw",re),this.addExtra(B,"rawValue",Pe),this.addExtra(B,"expressionValue",V),B.type="DirectiveLiteral",g}parseInterpreterDirective(){if(!this.match(28))return null;let k=this.startNode();return k.value=this.state.value,this.next(),this.finishNode(k,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(k,g){if(en(k)){if(G1.lastIndex=g,G1.test(this.input)){let B=this.codePointAtPos(G1.lastIndex);if(!ki(B)&&B!==92)return!1}return!0}else return k===92}chStartsBindingPattern(k){return k===91||k===123}hasFollowingBindingAtom(){let k=this.nextTokenStart(),g=this.codePointAtPos(k);return this.chStartsBindingPattern(g)||this.chStartsBindingIdentifier(g,k)}hasInLineFollowingBindingIdentifierOrBrace(){let k=this.nextTokenInLineStart(),g=this.codePointAtPos(k);return g===123||this.chStartsBindingIdentifier(g,k)}startsUsingForOf(){let{type:k,containsEsc:g}=this.lookahead();if(k===102&&!g)return!1;if(ke(k)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let k=this.nextTokenInLineStart();if(this.isUnparsedContextual(k,"using")){k=this.nextTokenInLineStartSince(k+5);let g=this.codePointAtPos(k);if(this.chStartsBindingIdentifier(g,k))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(k=!1){let g=0;return this.options.annexB&&!this.state.strict&&(g|=4,k&&(g|=8)),this.parseStatementLike(g)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(k){let g=null;return this.match(26)&&(g=this.parseDecorators(!0)),this.parseStatementContent(k,g)}parseStatementContent(k,g){let B=this.state.type,V=this.startNode(),re=!!(k&2),Pe=!!(k&4),et=k&1;switch(B){case 60:return this.parseBreakContinueStatement(V,!0);case 63:return this.parseBreakContinueStatement(V,!1);case 64:return this.parseDebuggerStatement(V);case 90:return this.parseDoWhileStatement(V);case 91:return this.parseForStatement(V);case 68:if(this.lookaheadCharCode()===46)break;return Pe||this.raise(this.state.strict?A.StrictFunction:this.options.annexB?A.SloppyFunctionAnnexB:A.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(V,!1,!re&&Pe);case 80:return re||this.unexpected(),this.parseClass(this.maybeTakeDecorators(g,V),!0);case 69:return this.parseIfStatement(V);case 70:return this.parseReturnStatement(V);case 71:return this.parseSwitchStatement(V);case 72:return this.parseThrowStatement(V);case 73:return this.parseTryStatement(V);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?re||this.raise(A.UnexpectedLexicalDeclaration,V):this.raise(A.AwaitUsingNotInAsyncContext,V),this.next(),this.parseVarStatement(V,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(A.UnexpectedUsingDeclaration,this.state.startLoc):re||this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(V,"using");case 100:{if(this.state.containsEsc)break;let kt=this.nextTokenStart(),an=this.codePointAtPos(kt);if(an!==91&&(!re&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(an,kt)&&an!==123))break}case 75:re||this.raise(A.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let kt=this.state.value;return this.parseVarStatement(V,kt)}case 92:return this.parseWhileStatement(V);case 76:return this.parseWithStatement(V);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(V);case 83:{let kt=this.lookaheadCharCode();if(kt===40||kt===46)break}case 82:{!(this.optionFlags&8)&&!et&&this.raise(A.UnexpectedImportExport,this.state.startLoc),this.next();let kt;return B===83?(kt=this.parseImport(V),kt.type==="ImportDeclaration"&&(!kt.importKind||kt.importKind==="value")&&(this.sawUnambiguousESM=!0)):(kt=this.parseExport(V,g),(kt.type==="ExportNamedDeclaration"&&(!kt.exportKind||kt.exportKind==="value")||kt.type==="ExportAllDeclaration"&&(!kt.exportKind||kt.exportKind==="value")||kt.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(kt),kt}default:if(this.isAsyncFunction())return re||this.raise(A.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(V,!0,!re&&Pe)}let xt=this.state.value,Vt=this.parseExpression();return ke(B)&&Vt.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(V,xt,Vt,k):this.parseExpressionStatement(V,Vt,g)}assertModuleNodeAllowed(k){!(this.optionFlags&8)&&!this.inModule&&this.raise(A.ImportOutsideModule,k)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(k,g,B){if(k){var V;(V=g.decorators)!=null&&V.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(A.DecoratorsBeforeAfterExport,g.decorators[0]),g.decorators.unshift(...k)):g.decorators=k,this.resetStartLocationFromNode(g,k[0]),B&&this.resetStartLocationFromNode(B,g)}return g}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(k){let g=[];do g.push(this.parseDecorator());while(this.match(26));if(this.match(82))k||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(A.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(A.UnexpectedLeadingDecorator,this.state.startLoc);return g}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let k=this.startNode();if(this.next(),this.hasPlugin("decorators")){let g=this.state.startLoc,B;if(this.match(10)){let V=this.state.startLoc;this.next(),B=this.parseExpression(),this.expect(11),B=this.wrapParenthesis(V,B);let re=this.state.startLoc;k.expression=this.parseMaybeDecoratorArguments(B,V),this.getPluginOption("decorators","allowCallParenthesized")===!1&&k.expression!==B&&this.raise(A.DecoratorArgumentsOutsideParentheses,re)}else{for(B=this.parseIdentifier(!1);this.eat(16);){let V=this.startNodeAt(g);V.object=B,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),V.property=this.parsePrivateName()):V.property=this.parseIdentifier(!0),V.computed=!1,B=this.finishNode(V,"MemberExpression")}k.expression=this.parseMaybeDecoratorArguments(B,g)}}else k.expression=this.parseExprSubscripts();return this.finishNode(k,"Decorator")}parseMaybeDecoratorArguments(k,g){if(this.eat(10)){let B=this.startNodeAt(g);return B.callee=k,B.arguments=this.parseCallExpressionArguments(11),this.toReferencedList(B.arguments),this.finishNode(B,"CallExpression")}return k}parseBreakContinueStatement(k,g){return this.next(),this.isLineTerminator()?k.label=null:(k.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(k,g),this.finishNode(k,g?"BreakStatement":"ContinueStatement")}verifyBreakContinue(k,g){let B;for(B=0;B<this.state.labels.length;++B){let V=this.state.labels[B];if((k.label==null||V.name===k.label.name)&&(V.kind!=null&&(g||V.kind===1)||k.label&&g))break}if(B===this.state.labels.length){let V=g?"BreakStatement":"ContinueStatement";this.raise(A.IllegalBreakContinue,k,{type:V})}}parseDebuggerStatement(k){return this.next(),this.semicolon(),this.finishNode(k,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let k=this.parseExpression();return this.expect(11),k}parseDoWhileStatement(k){return this.next(),this.state.labels.push(A_),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),k.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(k,"DoWhileStatement")}parseForStatement(k){this.next(),this.state.labels.push(A_);let g=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(g=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return g!==null&&this.unexpected(g),this.parseFor(k,null);let B=this.isContextual(100);{let xt=this.isContextual(96)&&this.startsAwaitUsing(),Vt=xt||this.isContextual(107)&&this.startsUsingForOf(),kt=B&&this.hasFollowingBindingAtom()||Vt;if(this.match(74)||this.match(75)||kt){let an=this.startNode(),zn;xt?(zn="await using",this.recordAwaitIfAllowed()||this.raise(A.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):zn=this.state.value,this.next(),this.parseVar(an,!0,zn);let yi=this.finishNode(an,"VariableDeclaration"),i0=this.match(58);return i0&&Vt&&this.raise(A.ForInUsing,yi),(i0||this.isContextual(102))&&yi.declarations.length===1?this.parseForIn(k,yi,g):(g!==null&&this.unexpected(g),this.parseFor(k,yi))}}let V=this.isContextual(95),re=new Hs,Pe=this.parseExpression(!0,re),et=this.isContextual(102);if(et&&(B&&this.raise(A.ForOfLet,Pe),g===null&&V&&Pe.type==="Identifier"&&this.raise(A.ForOfAsync,Pe)),et||this.match(58)){this.checkDestructuringPrivate(re),this.toAssignable(Pe,!0);let xt=et?"ForOfStatement":"ForInStatement";return this.checkLVal(Pe,{type:xt}),this.parseForIn(k,Pe,g)}else this.checkExpressionErrors(re,!0);return g!==null&&this.unexpected(g),this.parseFor(k,Pe)}parseFunctionStatement(k,g,B){return this.next(),this.parseFunction(k,1|(B?2:0)|(g?8:0))}parseIfStatement(k){return this.next(),k.test=this.parseHeaderExpression(),k.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),k.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(k,"IfStatement")}parseReturnStatement(k){return!this.prodParam.hasReturn&&!(this.optionFlags&2)&&this.raise(A.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?k.argument=null:(k.argument=this.parseExpression(),this.semicolon()),this.finishNode(k,"ReturnStatement")}parseSwitchStatement(k){this.next(),k.discriminant=this.parseHeaderExpression();let g=k.cases=[];this.expect(5),this.state.labels.push(V4),this.scope.enter(0);let B;for(let V;!this.match(8);)if(this.match(61)||this.match(65)){let re=this.match(61);B&&this.finishNode(B,"SwitchCase"),g.push(B=this.startNode()),B.consequent=[],this.next(),re?B.test=this.parseExpression():(V&&this.raise(A.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),V=!0,B.test=null),this.expect(14)}else B?B.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),B&&this.finishNode(B,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(k,"SwitchStatement")}parseThrowStatement(k){return this.next(),this.hasPrecedingLineBreak()&&this.raise(A.NewlineAfterThrow,this.state.lastTokEndLoc),k.argument=this.parseExpression(),this.semicolon(),this.finishNode(k,"ThrowStatement")}parseCatchClauseParam(){let k=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&k.type==="Identifier"?8:0),this.checkLVal(k,{type:"CatchClause"},9),k}parseTryStatement(k){if(this.next(),k.block=this.parseBlock(),k.handler=null,this.match(62)){let g=this.startNode();this.next(),this.match(10)?(this.expect(10),g.param=this.parseCatchClauseParam(),this.expect(11)):(g.param=null,this.scope.enter(0)),g.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),k.handler=this.finishNode(g,"CatchClause")}return k.finalizer=this.eat(67)?this.parseBlock():null,!k.handler&&!k.finalizer&&this.raise(A.NoCatchOrFinally,k),this.finishNode(k,"TryStatement")}parseVarStatement(k,g,B=!1){return this.next(),this.parseVar(k,!1,g,B),this.semicolon(),this.finishNode(k,"VariableDeclaration")}parseWhileStatement(k){return this.next(),k.test=this.parseHeaderExpression(),this.state.labels.push(A_),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(k,"WhileStatement")}parseWithStatement(k){return this.state.strict&&this.raise(A.StrictWith,this.state.startLoc),this.next(),k.object=this.parseHeaderExpression(),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(k,"WithStatement")}parseEmptyStatement(k){return this.next(),this.finishNode(k,"EmptyStatement")}parseLabeledStatement(k,g,B,V){for(let Pe of this.state.labels)Pe.name===g&&this.raise(A.LabelRedeclaration,B,{labelName:g});let re=Tt(this.state.type)?1:this.match(71)?2:null;for(let Pe=this.state.labels.length-1;Pe>=0;Pe--){let et=this.state.labels[Pe];if(et.statementStart===k.start)et.statementStart=this.sourceToOffsetPos(this.state.start),et.kind=re;else break}return this.state.labels.push({name:g,kind:re,statementStart:this.sourceToOffsetPos(this.state.start)}),k.body=V&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),k.label=B,this.finishNode(k,"LabeledStatement")}parseExpressionStatement(k,g,B){return k.expression=g,this.semicolon(),this.finishNode(k,"ExpressionStatement")}parseBlock(k=!1,g=!0,B){let V=this.startNode();return k&&this.state.strictErrors.clear(),this.expect(5),g&&this.scope.enter(0),this.parseBlockBody(V,k,!1,8,B),g&&this.scope.exit(),this.finishNode(V,"BlockStatement")}isValidDirective(k){return k.type==="ExpressionStatement"&&k.expression.type==="StringLiteral"&&!k.expression.extra.parenthesized}parseBlockBody(k,g,B,V,re){let Pe=k.body=[],et=k.directives=[];this.parseBlockOrModuleBlockBody(Pe,g?et:void 0,B,V,re)}parseBlockOrModuleBlockBody(k,g,B,V,re){let Pe=this.state.strict,et=!1,xt=!1;for(;!this.match(V);){let Vt=B?this.parseModuleItem():this.parseStatementListItem();if(g&&!xt){if(this.isValidDirective(Vt)){let kt=this.stmtToDirective(Vt);g.push(kt),!et&&kt.value.value==="use strict"&&(et=!0,this.setStrict(!0));continue}xt=!0,this.state.strictErrors.clear()}k.push(Vt)}re==null||re.call(this,et),Pe||this.setStrict(!1),this.next()}parseFor(k,g){return k.init=g,this.semicolon(!1),k.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),k.update=this.match(11)?null:this.parseExpression(),this.expect(11),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(k,"ForStatement")}parseForIn(k,g,B){let V=this.match(58);return this.next(),V?B!==null&&this.unexpected(B):k.await=B!==null,g.type==="VariableDeclaration"&&g.declarations[0].init!=null&&(!V||!this.options.annexB||this.state.strict||g.kind!=="var"||g.declarations[0].id.type!=="Identifier")&&this.raise(A.ForInOfLoopInitializer,g,{type:V?"ForInStatement":"ForOfStatement"}),g.type==="AssignmentPattern"&&this.raise(A.InvalidLhs,g,{ancestor:{type:"ForStatement"}}),k.left=g,k.right=V?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),k.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(k,V?"ForInStatement":"ForOfStatement")}parseVar(k,g,B,V=!1){let re=k.declarations=[];for(k.kind=B;;){let Pe=this.startNode();if(this.parseVarId(Pe,B),Pe.init=this.eat(29)?g?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,Pe.init===null&&!V&&(Pe.id.type!=="Identifier"&&!(g&&(this.match(58)||this.isContextual(102)))?this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(B==="const"||B==="using"||B==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(A.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:B})),re.push(this.finishNode(Pe,"VariableDeclarator")),!this.eat(12))break}return k}parseVarId(k,g){let B=this.parseBindingAtom();(g==="using"||g==="await using")&&(B.type==="ArrayPattern"||B.type==="ObjectPattern")&&this.raise(A.UsingDeclarationHasBindingPattern,B.loc.start),this.checkLVal(B,{type:"VariableDeclarator"},g==="var"?5:8201),k.id=B}parseAsyncFunctionExpression(k){return this.parseFunction(k,8)}parseFunction(k,g=0){let B=g&2,V=!!(g&1),re=V&&!(g&4),Pe=!!(g&8);this.initFunction(k,Pe),this.match(55)&&(B&&this.raise(A.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),k.generator=!0),V&&(k.id=this.parseFunctionId(re));let et=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(to(Pe,k.generator)),V||(k.id=this.parseFunctionId()),this.parseFunctionParams(k,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(k,V?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),V&&!B&&this.registerFunctionStatementId(k),this.state.maybeInArrowParameters=et,k}parseFunctionId(k){return k||ke(this.state.type)?this.parseIdentifier():null}parseFunctionParams(k,g){this.expect(10),this.expressionScope.enter(d0()),k.params=this.parseBindingList(11,41,2|(g?4:0)),this.expressionScope.exit()}registerFunctionStatementId(k){k.id&&this.scope.declareName(k.id.name,!this.options.annexB||this.state.strict||k.generator||k.async?this.scope.treatFunctionsAsVar?5:8201:17,k.id.loc.start)}parseClass(k,g,B){this.next();let V=this.state.strict;return this.state.strict=!0,this.parseClassId(k,g,B),this.parseClassSuper(k),k.body=this.parseClassBody(!!k.superClass,V),this.finishNode(k,g?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(k){return k.type==="Identifier"&&k.name==="constructor"||k.type==="StringLiteral"&&k.value==="constructor"}isNonstaticConstructor(k){return!k.computed&&!k.static&&this.nameIsConstructor(k.key)}parseClassBody(k,g){this.classScope.enter();let B={hadConstructor:!1,hadSuperClass:k},V=[],re=this.startNode();if(re.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(V.length>0)throw this.raise(A.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){V.push(this.parseDecorator());continue}let Pe=this.startNode();V.length&&(Pe.decorators=V,this.resetStartLocationFromNode(Pe,V[0]),V=[]),this.parseClassMember(re,Pe,B),Pe.kind==="constructor"&&Pe.decorators&&Pe.decorators.length>0&&this.raise(A.DecoratorConstructor,Pe)}}),this.state.strict=g,this.next(),V.length)throw this.raise(A.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(re,"ClassBody")}parseClassMemberFromModifier(k,g){let B=this.parseIdentifier(!0);if(this.isClassMethod()){let V=g;return V.kind="method",V.computed=!1,V.key=B,V.static=!1,this.pushClassMethod(k,V,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let V=g;return V.computed=!1,V.key=B,V.static=!1,k.body.push(this.parseClassProperty(V)),!0}return this.resetPreviousNodeTrailingComments(B),!1}parseClassMember(k,g,B){let V=this.isContextual(106);if(V){if(this.parseClassMemberFromModifier(k,g))return;if(this.eat(5)){this.parseClassStaticBlock(k,g);return}}this.parseClassMemberWithIsStatic(k,g,B,V)}parseClassMemberWithIsStatic(k,g,B,V){let re=g,Pe=g,et=g,xt=g,Vt=g,kt=re,an=re;if(g.static=V,this.parsePropertyNamePrefixOperator(g),this.eat(55)){kt.kind="method";let Za=this.match(139);if(this.parseClassElementName(kt),Za){this.pushClassPrivateMethod(k,Pe,!0,!1);return}this.isNonstaticConstructor(re)&&this.raise(A.ConstructorIsGenerator,re.key),this.pushClassMethod(k,re,!0,!1,!1,!1);return}let zn=!this.state.containsEsc&&ke(this.state.type),yi=this.parseClassElementName(g),i0=zn?yi.name:null,Y0=this.isPrivateName(yi),Nu=this.state.startLoc;if(this.parsePostMemberNameModifiers(an),this.isClassMethod()){if(kt.kind="method",Y0){this.pushClassPrivateMethod(k,Pe,!1,!1);return}let Za=this.isNonstaticConstructor(re),Xa=!1;Za&&(re.kind="constructor",B.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(A.DuplicateConstructor,yi),Za&&this.hasPlugin("typescript")&&g.override&&this.raise(A.OverrideOnConstructor,yi),B.hadConstructor=!0,Xa=B.hadSuperClass),this.pushClassMethod(k,re,!1,!1,Za,Xa)}else if(this.isClassProperty())Y0?this.pushClassPrivateProperty(k,xt):this.pushClassProperty(k,et);else if(i0==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(yi);let Za=this.eat(55);an.optional&&this.unexpected(Nu),kt.kind="method";let Xa=this.match(139);this.parseClassElementName(kt),this.parsePostMemberNameModifiers(an),Xa?this.pushClassPrivateMethod(k,Pe,Za,!0):(this.isNonstaticConstructor(re)&&this.raise(A.ConstructorIsAsync,re.key),this.pushClassMethod(k,re,Za,!0,!1,!1))}else if((i0==="get"||i0==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(yi),kt.kind=i0;let Za=this.match(139);this.parseClassElementName(re),Za?this.pushClassPrivateMethod(k,Pe,!1,!1):(this.isNonstaticConstructor(re)&&this.raise(A.ConstructorIsAccessor,re.key),this.pushClassMethod(k,re,!1,!1,!1,!1)),this.checkGetterSetterParams(re)}else if(i0==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(yi);let Za=this.match(139);this.parseClassElementName(et),this.pushClassAccessorProperty(k,Vt,Za)}else this.isLineTerminator()?Y0?this.pushClassPrivateProperty(k,xt):this.pushClassProperty(k,et):this.unexpected()}parseClassElementName(k){let{type:g,value:B}=this.state;if((g===132||g===134)&&k.static&&B==="prototype"&&this.raise(A.StaticPrototype,this.state.startLoc),g===139){B==="constructor"&&this.raise(A.ConstructorClassPrivateField,this.state.startLoc);let V=this.parsePrivateName();return k.key=V,V}return this.parsePropertyName(k),k.key}parseClassStaticBlock(k,g){var B;this.scope.enter(208);let V=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let re=g.body=[];this.parseBlockOrModuleBlockBody(re,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=V,k.body.push(this.finishNode(g,"StaticBlock")),(B=g.decorators)!=null&&B.length&&this.raise(A.DecoratorStaticBlock,g)}pushClassProperty(k,g){!g.computed&&this.nameIsConstructor(g.key)&&this.raise(A.ConstructorClassField,g.key),k.body.push(this.parseClassProperty(g))}pushClassPrivateProperty(k,g){let B=this.parseClassPrivateProperty(g);k.body.push(B),this.classScope.declarePrivateName(this.getPrivateNameSV(B.key),0,B.key.loc.start)}pushClassAccessorProperty(k,g,B){!B&&!g.computed&&this.nameIsConstructor(g.key)&&this.raise(A.ConstructorClassField,g.key);let V=this.parseClassAccessorProperty(g);k.body.push(V),B&&this.classScope.declarePrivateName(this.getPrivateNameSV(V.key),0,V.key.loc.start)}pushClassMethod(k,g,B,V,re,Pe){k.body.push(this.parseMethod(g,B,V,re,Pe,"ClassMethod",!0))}pushClassPrivateMethod(k,g,B,V){let re=this.parseMethod(g,B,V,!1,!1,"ClassPrivateMethod",!0);k.body.push(re);let Pe=re.kind==="get"?re.static?6:2:re.kind==="set"?re.static?5:1:0;this.declareClassPrivateMethodInScope(re,Pe)}declareClassPrivateMethodInScope(k,g){this.classScope.declarePrivateName(this.getPrivateNameSV(k.key),g,k.key.loc.start)}parsePostMemberNameModifiers(k){}parseClassPrivateProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassPrivateProperty")}parseClassProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassProperty")}parseClassAccessorProperty(k){return this.parseInitializer(k),this.semicolon(),this.finishNode(k,"ClassAccessorProperty")}parseInitializer(k){this.scope.enter(80),this.expressionScope.enter(pl()),this.prodParam.enter(0),k.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(k,g,B,V=8331){if(ke(this.state.type))k.id=this.parseIdentifier(),g&&this.declareNameFromIdentifier(k.id,V);else if(B||!g)k.id=null;else throw this.raise(A.MissingClassName,this.state.startLoc)}parseClassSuper(k){k.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(k,g){let B=this.parseMaybeImportPhase(k,!0),V=this.maybeParseExportDefaultSpecifier(k,B),re=!V||this.eat(12),Pe=re&&this.eatExportStar(k),et=Pe&&this.maybeParseExportNamespaceSpecifier(k),xt=re&&(!et||this.eat(12)),Vt=V||Pe;if(Pe&&!et){if(V&&this.unexpected(),g)throw this.raise(A.UnsupportedDecoratorExport,k);return this.parseExportFrom(k,!0),this.finishNode(k,"ExportAllDeclaration")}let kt=this.maybeParseExportNamedSpecifiers(k);V&&re&&!Pe&&!kt&&this.unexpected(null,5),et&&xt&&this.unexpected(null,98);let an;if(Vt||kt){if(an=!1,g)throw this.raise(A.UnsupportedDecoratorExport,k);this.parseExportFrom(k,Vt)}else an=this.maybeParseExportDeclaration(k);if(Vt||kt||an){var zn;let yi=k;if(this.checkExport(yi,!0,!1,!!yi.source),((zn=yi.declaration)==null?void 0:zn.type)==="ClassDeclaration")this.maybeTakeDecorators(g,yi.declaration,yi);else if(g)throw this.raise(A.UnsupportedDecoratorExport,k);return this.finishNode(yi,"ExportNamedDeclaration")}if(this.eat(65)){let yi=k,i0=this.parseExportDefaultExpression();if(yi.declaration=i0,i0.type==="ClassDeclaration")this.maybeTakeDecorators(g,i0,yi);else if(g)throw this.raise(A.UnsupportedDecoratorExport,k);return this.checkExport(yi,!0,!0),this.finishNode(yi,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(k){return this.eat(55)}maybeParseExportDefaultSpecifier(k,g){if(g||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",g==null?void 0:g.loc.start);let B=g||this.parseIdentifier(!0),V=this.startNodeAtNode(B);return V.exported=B,k.specifiers=[this.finishNode(V,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(k){if(this.isContextual(93)){var g,B;(B=(g=k).specifiers)!=null||(g.specifiers=[]);let V=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),V.exported=this.parseModuleExportName(),k.specifiers.push(this.finishNode(V,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(k){if(this.match(5)){let g=k;g.specifiers||(g.specifiers=[]);let B=g.exportKind==="type";return g.specifiers.push(...this.parseExportSpecifiers(B)),g.source=null,g.declaration=null,this.hasPlugin("importAssertions")&&(g.assertions=[]),!0}return!1}maybeParseExportDeclaration(k){return this.shouldParseExportDeclaration()?(k.specifiers=[],k.source=null,this.hasPlugin("importAssertions")&&(k.assertions=[]),k.declaration=this.parseExportDeclaration(k),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let k=this.nextTokenInLineStart();return this.isUnparsedContextual(k,"function")}parseExportDefaultExpression(){let k=this.startNode();if(this.match(68))return this.next(),this.parseFunction(k,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(k,13);if(this.match(80))return this.parseClass(k,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(A.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(A.UnsupportedDefaultExport,this.state.startLoc);let g=this.parseMaybeAssignAllowIn();return this.semicolon(),g}parseExportDeclaration(k){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:k}=this.state;if(ke(k)){if(k===95&&!this.state.containsEsc||k===100)return!1;if((k===130||k===129)&&!this.state.containsEsc){let{type:V}=this.lookahead();if(ke(V)&&V!==98||V===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let g=this.nextTokenStart(),B=this.isUnparsedContextual(g,"from");if(this.input.charCodeAt(g)===44||ke(this.state.type)&&B)return!0;if(this.match(65)&&B){let V=this.input.charCodeAt(this.nextTokenStartSince(g+4));return V===34||V===39}return!1}parseExportFrom(k,g){this.eatContextual(98)?(k.source=this.parseImportSource(),this.checkExport(k),this.maybeParseImportAttributes(k),this.checkJSONModuleImport(k)):g&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:k}=this.state;return k===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(A.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(A.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(A.UsingDeclarationExport,this.state.startLoc),!0):k===74||k===75||k===68||k===80||this.isLet()||this.isAsyncFunction()}checkExport(k,g,B,V){if(g){var re;if(B){if(this.checkDuplicateExports(k,"default"),this.hasPlugin("exportDefaultFrom")){var Pe;let et=k.declaration;et.type==="Identifier"&&et.name==="from"&&et.end-et.start===4&&!((Pe=et.extra)!=null&&Pe.parenthesized)&&this.raise(A.ExportDefaultFromAsIdentifier,et)}}else if((re=k.specifiers)!=null&&re.length)for(let et of k.specifiers){let{exported:xt}=et,Vt=xt.type==="Identifier"?xt.name:xt.value;if(this.checkDuplicateExports(et,Vt),!V&&et.local){let{local:kt}=et;kt.type!=="Identifier"?this.raise(A.ExportBindingIsString,et,{localName:kt.value,exportName:Vt}):(this.checkReservedWord(kt.name,kt.loc.start,!0,!1),this.scope.checkLocalExport(kt))}}else if(k.declaration){let et=k.declaration;if(et.type==="FunctionDeclaration"||et.type==="ClassDeclaration"){let{id:xt}=et;if(!xt)throw new Error("Assertion failure");this.checkDuplicateExports(k,xt.name)}else if(et.type==="VariableDeclaration")for(let xt of et.declarations)this.checkDeclaration(xt.id)}}}checkDeclaration(k){if(k.type==="Identifier")this.checkDuplicateExports(k,k.name);else if(k.type==="ObjectPattern")for(let g of k.properties)this.checkDeclaration(g);else if(k.type==="ArrayPattern")for(let g of k.elements)g&&this.checkDeclaration(g);else k.type==="ObjectProperty"?this.checkDeclaration(k.value):k.type==="RestElement"?this.checkDeclaration(k.argument):k.type==="AssignmentPattern"&&this.checkDeclaration(k.left)}checkDuplicateExports(k,g){this.exportedIdentifiers.has(g)&&(g==="default"?this.raise(A.DuplicateDefaultExport,k):this.raise(A.DuplicateExport,k,{exportName:g})),this.exportedIdentifiers.add(g)}parseExportSpecifiers(k){let g=[],B=!0;for(this.expect(5);!this.eat(8);){if(B)B=!1;else if(this.expect(12),this.eat(8))break;let V=this.isContextual(130),re=this.match(134),Pe=this.startNode();Pe.local=this.parseModuleExportName(),g.push(this.parseExportSpecifier(Pe,re,k,V))}return g}parseExportSpecifier(k,g,B,V){return this.eatContextual(93)?k.exported=this.parseModuleExportName():g?k.exported=ws(k.local):k.exported||(k.exported=Zt(k.local)),this.finishNode(k,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let k=this.parseStringLiteral(this.state.value),g=P7.exec(k.value);return g&&this.raise(A.ModuleExportNameHasLoneSurrogate,k,{surrogateCharCode:g[0].charCodeAt(0)}),k}return this.parseIdentifier(!0)}isJSONModuleImport(k){return k.assertions!=null?k.assertions.some(({key:g,value:B})=>B.value==="json"&&(g.type==="Identifier"?g.name==="type":g.value==="type")):!1}checkImportReflection(k){let{specifiers:g}=k,B=g.length===1?g[0].type:null;if(k.phase==="source")B!=="ImportDefaultSpecifier"&&this.raise(A.SourcePhaseImportRequiresDefault,g[0].loc.start);else if(k.phase==="defer")B!=="ImportNamespaceSpecifier"&&this.raise(A.DeferImportRequiresNamespace,g[0].loc.start);else if(k.module){var V;B!=="ImportDefaultSpecifier"&&this.raise(A.ImportReflectionNotBinding,g[0].loc.start),((V=k.assertions)==null?void 0:V.length)>0&&this.raise(A.ImportReflectionHasAssertion,g[0].loc.start)}}checkJSONModuleImport(k){if(this.isJSONModuleImport(k)&&k.type!=="ExportAllDeclaration"){let{specifiers:g}=k;if(g!=null){let B=g.find((V)=>{let re;if(V.type==="ExportSpecifier"?re=V.local:V.type==="ImportSpecifier"&&(re=V.imported),re!==void 0)return re.type==="Identifier"?re.name!=="default":re.value!=="default"});B!==void 0&&this.raise(A.ImportJSONBindingNotDefault,B.loc.start)}}}isPotentialImportPhase(k){return k?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(k,g,B,V){g||(B==="module"?(this.expectPlugin("importReflection",V),k.module=!0):this.hasPlugin("importReflection")&&(k.module=!1),B==="source"?(this.expectPlugin("sourcePhaseImports",V),k.phase="source"):B==="defer"?(this.expectPlugin("deferredImportEvaluation",V),k.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(k.phase=null))}parseMaybeImportPhase(k,g){if(!this.isPotentialImportPhase(g))return this.applyImportPhase(k,g,null),null;let B=this.parseIdentifier(!0),{type:V}=this.state;return(ut(V)?V!==98||this.lookaheadCharCode()===102:V!==12)?(this.resetPreviousIdentifierLeadingComments(B),this.applyImportPhase(k,g,B.name,B.loc.start),null):(this.applyImportPhase(k,g,null),B)}isPrecedingIdImportPhase(k){let{type:g}=this.state;return ke(g)?g!==98||this.lookaheadCharCode()===102:g!==12}parseImport(k){return this.match(134)?this.parseImportSourceAndAttributes(k):this.parseImportSpecifiersAndAfter(k,this.parseMaybeImportPhase(k,!1))}parseImportSpecifiersAndAfter(k,g){k.specifiers=[];let B=!this.maybeParseDefaultImportSpecifier(k,g)||this.eat(12),V=B&&this.maybeParseStarImportSpecifier(k);return B&&!V&&this.parseNamedImportSpecifiers(k),this.expectContextual(98),this.parseImportSourceAndAttributes(k)}parseImportSourceAndAttributes(k){var g;return(g=k.specifiers)!=null||(k.specifiers=[]),k.source=this.parseImportSource(),this.maybeParseImportAttributes(k),this.checkImportReflection(k),this.checkJSONModuleImport(k),this.semicolon(),this.finishNode(k,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(k,g,B){g.local=this.parseIdentifier(),k.specifiers.push(this.finishImportSpecifier(g,B))}finishImportSpecifier(k,g,B=8201){return this.checkLVal(k.local,{type:g},B),this.finishNode(k,g)}parseImportAttributes(){this.expect(5);let k=[],g=new Set;do{if(this.match(8))break;let B=this.startNode(),V=this.state.value;if(g.has(V)&&this.raise(A.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:V}),g.add(V),this.match(134)?B.key=this.parseStringLiteral(V):B.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);B.value=this.parseStringLiteral(this.state.value),k.push(this.finishNode(B,"ImportAttribute"))}while(this.eat(12));return this.expect(8),k}parseModuleAttributes(){let k=[],g=new Set;do{let B=this.startNode();if(B.key=this.parseIdentifier(!0),B.key.name!=="type"&&this.raise(A.ModuleAttributeDifferentFromType,B.key),g.has(B.key.name)&&this.raise(A.ModuleAttributesWithDuplicateKeys,B.key,{key:B.key.name}),g.add(B.key.name),this.expect(14),!this.match(134))throw this.raise(A.ModuleAttributeInvalidValue,this.state.startLoc);B.value=this.parseStringLiteral(this.state.value),k.push(this.finishNode(B,"ImportAttribute"))}while(this.eat(12));return k}maybeParseImportAttributes(k){let g;var B=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?g=this.parseModuleAttributes():g=this.parseImportAttributes(),B=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(A.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(k,"deprecatedAssertSyntax",!0),this.next(),g=this.parseImportAttributes()):g=[];!B&&this.hasPlugin("importAssertions")?k.assertions=g:k.attributes=g}maybeParseDefaultImportSpecifier(k,g){if(g){let B=this.startNodeAtNode(g);return B.local=g,k.specifiers.push(this.finishImportSpecifier(B,"ImportDefaultSpecifier")),!0}else if(ut(this.state.type))return this.parseImportSpecifierLocal(k,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(k){if(this.match(55)){let g=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(k,g,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(k){let g=!0;for(this.expect(5);!this.eat(8);){if(g)g=!1;else{if(this.eat(14))throw this.raise(A.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let B=this.startNode(),V=this.match(134),re=this.isContextual(130);B.imported=this.parseModuleExportName();let Pe=this.parseImportSpecifier(B,V,k.importKind==="type"||k.importKind==="typeof",re,void 0);k.specifiers.push(Pe)}}parseImportSpecifier(k,g,B,V,re){if(this.eatContextual(93))k.local=this.parseIdentifier();else{let{imported:Pe}=k;if(g)throw this.raise(A.ImportBindingIsString,k,{importName:Pe.value});this.checkReservedWord(Pe.name,k.loc.start,!0,!0),k.local||(k.local=Zt(Pe))}return this.finishImportSpecifier(k,"ImportSpecifier",re)}isThisParam(k){return k.type==="Identifier"&&k.name==="this"}},l1=class extends $c{constructor(k,g,B){k=b(k),super(k,g),this.options=k,this.initializeScopes(),this.plugins=B,this.filename=k.sourceFilename,this.startIndex=k.startIndex;let V=0;k.allowAwaitOutsideFunction&&(V|=1),k.allowReturnOutsideFunction&&(V|=2),k.allowImportExportEverywhere&&(V|=8),k.allowSuperOutsideMethod&&(V|=16),k.allowUndeclaredExports&&(V|=32),k.allowNewTargetOutsideFunction&&(V|=4),k.ranges&&(V|=64),k.tokens&&(V|=128),k.createImportExpressions&&(V|=256),k.createParenthesizedExpressions&&(V|=512),k.errorRecovery&&(V|=1024),k.attachComment&&(V|=2048),k.annexB&&(V|=4096),this.optionFlags=V}getScopeHandler(){return K0}parse(){this.enterInitialScopes();let k=this.startNode(),g=this.startNode();return this.nextToken(),k.errors=null,this.parseTopLevel(k,g),k.errors=this.state.errors,k.comments.length=this.state.commentsLen,k}};function _1(k,g){var B;if(((B=g)==null?void 0:B.sourceType)==="unambiguous"){g=Object.assign({},g);try{g.sourceType="module";let V=Ml(g,k),re=V.parse();if(V.sawUnambiguousESM)return re;if(V.ambiguousScriptDifferentAst)try{return g.sourceType="script",Ml(g,k).parse()}catch{}else re.program.sourceType="script";return re}catch(V){try{return g.sourceType="script",Ml(g,k).parse()}catch{}throw V}}else return Ml(g,k).parse()}function N7(k,g){let B=Ml(g,k);return B.options.strictMode&&(B.state.strict=!0),B.getExpression()}function b_(k){let g={};for(let B of Object.keys(k))g[B]=oe(k[B]);return g}var Il=b_(ie);function Ml(k,g){let B=l1,V=new Map;if(k!=null&&k.plugins){for(let re of k.plugins){let Pe,et;typeof re=="string"?Pe=re:[Pe,et]=re,V.has(Pe)||V.set(Pe,et||{})}af(V),B=R1(V)}return new B(k,g,V)}var ud=new Map;function R1(k){let g=[];for(let re of qy)k.has(re)&&g.push(re);let B=g.join("|"),V=ud.get(B);if(!V){V=l1;for(let re of g)V=ad[re](V);ud.set(B,V)}return V}e.parse=_1,e.parseExpression=N7,e.tokTypes=Il}),tnr={};D9i(tnr,{parsers:()=>_nr});Xrr=Rrr(enr(),1);cia=xme(/\s/u),A9i=xme(" \t"),hia=xme(",; \t"),b9i=xme(/[^\n\r]/u);C9i=T9i;k9i=E9i;S9i=F9i;N9i=P9i;q9i=B9i;rnr=$9i,jrr=J9i;Eje=I9i;z9i=M9i,V9i=z9i(["Block","CommentBlock","MultiLine"]),Aje=V9i;Krr=L9i;j9i=X9i;for(let e=0;e<=K9i;e++)PR();O9i=Z9i,Q9i={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},W9i=O9i(Q9i),Y9i=W9i;Dje=bje;G9i=H9i;inr=R9i;anr=eDi,gme=tDi,rDi=/\*\/$/,nDi=/^\/\*\*?/,iDi=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,aDi=/(^|\s+)\/\/([^\n\r]*)/g,Urr=/^(\r?\n)+/,uDi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Zrr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,oDi=/(\r?\n|^) *\* ?/g,sDi=[];SR=pDi;mDi=fDi;unr=dDi,yDi={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},Qrr=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],gDi=/@(?:no)?flow\b/u;wDi=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert"]),onr=[fC(["jsx"])],Wrr=cj({optionsCombinations:onr}),Yrr=cj({optionsCombinations:[fC(["jsx","typescript"]),fC(["typescript"])]}),Hrr=cj({isExpression:!0,optionsCombinations:[fC(["jsx"])]}),Grr=cj({isExpression:!0,optionsCombinations:[fC(["typescript"])]}),snr=cj({optionsCombinations:[fC(["jsx",["flow",{all:!0}],"flowComments"])]}),ADi=cj({optionsCombinations:onr.map((e)=>fC(["estree"],e))}),bDi={babel:Wrr,"babel-flow":snr,"babel-ts":Yrr,__js_expression:Hrr,__ts_expression:Grr,__vue_expression:Hrr,__vue_ts_expression:Grr,__vue_event_binding:Wrr,__vue_ts_event_binding:Yrr,__babel_estree:ADi},TDi=Rrr(enr(),1);wje=lnr(),CDi={json:SR({parse:wje,hasPragma(){return!0}}),json5:SR(wje),jsonc:SR(wje),"json-stringify":SR({parse:lnr({allowComments:!1}),astFormat:"estree-json"})},EDi=CDi,_nr={...bDi,...EDi},kDi=tnr});var H0r={};$_(H0r,{printers:()=>W0r,options:()=>Q0r,languages:()=>Y0r,default:()=>MEi});function $Di(e){return e!==null&&typeof e=="object"}function*IDi(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,i=(a)=>JDi(a)&&n(a);for(let a of r(e)){let u=e[a];if(Array.isArray(u))for(let s of u)i(s)&&(yield s);else i(u)&&(yield u)}}function*MDi(e,t){let r=[e];for(let n=0;n<r.length;n++){let i=r[n];for(let a of IDi(i,t))yield a,r.push(a)}}function zDi(e,{getVisitorKeys:t,predicate:r}){for(let n of MDi(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}function LDi(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function XDi(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function UDi(e){if(!e)return 0;if(!KDi.test(e))return e.length;e=e.replace(VDi()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=jDi(n)?1:2)}return t}function qme(e){return(t,r,n)=>{let i=!!(n!=null&&n.backwards);if(r===!1)return!1;let{length:a}=t,u=r;for(;u>=0&&u<a;){let s=t.charAt(u);if(e instanceof RegExp){if(!e.test(s))return u}else if(!e.includes(s))return u;i?u--:u++}return u===-1||u===a?u:!1}}function QDi(e,t,r){let n=!!(r!=null&&r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
407
407
|
`)return t-2;if(i===`
|
|
408
408
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
409
409
|
`)return t+2;if(i===`
|
|
@@ -437,7 +437,7 @@ Expected it to be ${n}.`}function Xwi(e,t,r,n){let i=[e];for(;i.length>0;){let a
|
|
|
437
437
|
|
|
438
438
|
`)+a}function zbi(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:i,locEnd:a,[Symbol.for("printedComments")]:u}=t,{node:s}=e,l=i(s),h=a(s);for(let _ of n)i(_)>=l&&a(_)<=h&&u.add(_);return r.slice(l,h)}function Qje(e,t){var r,n,i,a,u,s,l,h,_;if(e.isRoot)return!1;let{node:p,key:f,parent:m}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Kbi(p)&&qR(e))return!0;if(Lbi(p))return!1;if(p.type==="Identifier"){if((r=p.extra)!=null&&r.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(p.name)||f==="left"&&(p.name==="async"&&!m.await||p.name==="let")&&m.type==="ForOfStatement")return!0;if(p.name==="let"){let d=(n=e.findAncestor((x)=>x.type==="ForOfStatement"))==null?void 0:n.left;if(d&&f7(d,(x)=>x===p))return!0}if(f==="object"&&p.name==="let"&&m.type==="MemberExpression"&&m.computed&&!m.optional){let d=e.findAncestor((T)=>T.type==="ExpressionStatement"||T.type==="ForStatement"||T.type==="ForInStatement"),x=d?d.type==="ExpressionStatement"?d.expression:d.type==="ForStatement"?d.init:d.left:void 0;if(x&&f7(x,(T)=>T===p))return!0}if(f==="expression")switch(p.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let d=e.findAncestor((x)=>!Uw(x));if(d!==m&&d.type==="ExpressionStatement")return!0}}return!1}if(p.type==="ObjectExpression"||p.type==="FunctionExpression"||p.type==="ClassExpression"||p.type==="DoExpression"){let d=(i=e.findAncestor((x)=>x.type==="ExpressionStatement"))==null?void 0:i.expression;if(d&&f7(d,(x)=>x===p))return!0}if(p.type==="ObjectExpression"){let d=(a=e.findAncestor((x)=>x.type==="ArrowFunctionExpression"))==null?void 0:a.body;if(d&&d.type!=="SequenceExpression"&&d.type!=="AssignmentExpression"&&f7(d,(x)=>x===p))return!0}switch(m.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(f==="superClass"&&(p.type==="ArrowFunctionExpression"||p.type==="AssignmentExpression"||p.type==="AwaitExpression"||p.type==="BinaryExpression"||p.type==="ConditionalExpression"||p.type==="LogicalExpression"||p.type==="NewExpression"||p.type==="ObjectExpression"||p.type==="SequenceExpression"||p.type==="TaggedTemplateExpression"||p.type==="UnaryExpression"||p.type==="UpdateExpression"||p.type==="YieldExpression"||p.type==="TSNonNullExpression"||p.type==="ClassExpression"&&Ko(p.decorators)))return!0;break;case"ExportDefaultDeclaration":return Bir(e,t)||p.type==="SequenceExpression";case"Decorator":if(f==="expression"&&!Zbi(p))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(d,x)=>x==="returnType"&&d.type==="ArrowFunctionExpression")&&jbi(p))return!0;break;case"BinaryExpression":if(f==="left"&&(m.operator==="in"||m.operator==="instanceof")&&p.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(f==="init"&&e.match(void 0,void 0,(d,x)=>x==="declarations"&&d.type==="VariableDeclaration",(d,x)=>x==="left"&&d.type==="ForInStatement"))return!0;break}switch(p.type){case"UpdateExpression":if(m.type==="UnaryExpression")return p.prefix&&(p.operator==="++"&&m.operator==="+"||p.operator==="--"&&m.operator==="-");case"UnaryExpression":switch(m.type){case"UnaryExpression":return p.operator===m.operator&&(p.operator==="+"||p.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return f==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return f==="callee";case"BinaryExpression":return f==="left"&&m.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(m.type==="UpdateExpression"||p.operator==="in"&&Xbi(e))return!0;if(p.operator==="|>"&&((u=p.extra)!=null&&u.parenthesized)){let d=e.grandparent;if(d.type==="BinaryExpression"&&d.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(m.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Uw(p);case"ConditionalExpression":return Uw(p)||vwi(p);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return f==="callee";case"ClassExpression":case"ClassDeclaration":return f==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return f==="object";case"AssignmentExpression":case"AssignmentPattern":return f==="left"&&(p.type==="TSTypeAssertion"||Uw(p));case"LogicalExpression":if(p.type==="LogicalExpression")return m.operator!==p.operator;case"BinaryExpression":{let{operator:d,type:x}=p;if(!d&&x!=="TSTypeAssertion")return!0;let T=kme(d),A=m.operator,F=kme(A);return F>T||f==="right"&&F===T||F===T&&!lKe(A,d)?!0:F<T&&d==="%"?A==="+"||A==="-":!!Bwi(A)}default:return!1}case"SequenceExpression":switch(m.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return f!=="expression";case"ArrowFunctionExpression":return f!=="body";default:return!0}case"YieldExpression":if(m.type==="AwaitExpression"||m.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(m.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return f==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return f==="callee";case"ConditionalExpression":return f==="test";case"BinaryExpression":return!(!p.argument&&m.operator==="|>");default:return!1}case"TSFunctionType":if(e.match((d)=>d.type==="TSFunctionType",(d,x)=>x==="typeAnnotation"&&d.type==="TSTypeAnnotation",(d,x)=>x==="returnType"&&d.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(f==="extendsType"&&pP(p)&&m.type===p.type||f==="checkType"&&pP(m))return!0;if(f==="extendsType"&&m.type==="TSConditionalType"){let{typeAnnotation:d}=p.returnType||p.typeAnnotation;if(d.type==="TSTypePredicate"&&d.typeAnnotation&&(d=d.typeAnnotation.typeAnnotation),d.type==="TSInferType"&&d.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if((hP(m)||_Ke(m))&&m.types.length>1&&(!p.types||p.types.length>1))return!0;case"TSInferType":if(p.type==="TSInferType"){if(m.type==="TSRestType")return!1;if(f==="types"&&(m.type==="TSUnionType"||m.type==="TSIntersectionType")&&p.typeParameter.type==="TSTypeParameter"&&p.typeParameter.constraint)return!0}case"TSTypeOperator":return m.type==="TSArrayType"||m.type==="TSOptionalType"||m.type==="TSRestType"||f==="objectType"&&m.type==="TSIndexedAccessType"||m.type==="TSTypeOperator"||m.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return f==="objectType"&&m.type==="TSIndexedAccessType"||f==="elementType"&&m.type==="TSArrayType";case"TypeOperator":return m.type==="ArrayTypeAnnotation"||m.type==="NullableTypeAnnotation"||f==="objectType"&&(m.type==="IndexedAccessType"||m.type==="OptionalIndexedAccessType")||m.type==="TypeOperator";case"TypeofTypeAnnotation":return f==="objectType"&&(m.type==="IndexedAccessType"||m.type==="OptionalIndexedAccessType")||f==="elementType"&&m.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return m.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return m.type==="TypeOperator"||m.type==="ArrayTypeAnnotation"||m.type==="NullableTypeAnnotation"||m.type==="IntersectionTypeAnnotation"||m.type==="UnionTypeAnnotation"||f==="objectType"&&(m.type==="IndexedAccessType"||m.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return m.type==="ArrayTypeAnnotation"||f==="objectType"&&(m.type==="IndexedAccessType"||m.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(p.type==="ComponentTypeAnnotation"&&(p.rendersType===null||p.rendersType===void 0))return!1;if(e.match(void 0,(x,T)=>T==="typeAnnotation"&&x.type==="TypeAnnotation",(x,T)=>T==="returnType"&&x.type==="ArrowFunctionExpression")||e.match(void 0,(x,T)=>T==="typeAnnotation"&&x.type==="TypePredicate",(x,T)=>T==="typeAnnotation"&&x.type==="TypeAnnotation",(x,T)=>T==="returnType"&&x.type==="ArrowFunctionExpression"))return!0;let d=m.type==="NullableTypeAnnotation"?e.grandparent:m;return d.type==="UnionTypeAnnotation"||d.type==="IntersectionTypeAnnotation"||d.type==="ArrayTypeAnnotation"||f==="objectType"&&(d.type==="IndexedAccessType"||d.type==="OptionalIndexedAccessType")||f==="checkType"&&m.type==="ConditionalTypeAnnotation"||f==="extendsType"&&m.type==="ConditionalTypeAnnotation"&&((s=p.returnType)==null?void 0:s.type)==="InferTypeAnnotation"&&((l=p.returnType)==null?void 0:l.typeParameter.bound)||d.type==="NullableTypeAnnotation"||m.type==="FunctionTypeParam"&&m.name===null&&Wp(p).some((x)=>{var T;return((T=x.typeAnnotation)==null?void 0:T.type)==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return f==="objectType"&&m.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof p.value=="string"&&m.type==="ExpressionStatement"&&!m.directive){let d=e.grandparent;return d.type==="Program"||d.type==="BlockStatement"}return f==="object"&&m.type==="MemberExpression"&&typeof p.value=="number";case"AssignmentExpression":{let d=e.grandparent;return f==="body"&&m.type==="ArrowFunctionExpression"?!0:f==="key"&&(m.type==="ClassProperty"||m.type==="PropertyDefinition")&&m.computed||(f==="init"||f==="update")&&m.type==="ForStatement"?!1:m.type==="ExpressionStatement"?p.left.type==="ObjectPattern":!(f==="key"&&m.type==="TSPropertySignature"||m.type==="AssignmentExpression"||m.type==="SequenceExpression"&&d.type==="ForStatement"&&(d.init===m||d.update===m)||f==="value"&&m.type==="Property"&&d.type==="ObjectPattern"&&d.properties.includes(m)||m.type==="NGChainedExpression"||f==="node"&&m.type==="JsExpressionRoot")}case"ConditionalExpression":switch(m.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return f==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:f==="test";case"MemberExpression":case"OptionalMemberExpression":return f==="object";default:return!1}case"FunctionExpression":switch(m.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return f==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(m.type){case"BinaryExpression":return m.operator!=="|>"||((h=p.extra)==null?void 0:h.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return f==="callee";case"MemberExpression":case"OptionalMemberExpression":return f==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return f==="test";default:return!1}case"ClassExpression":switch(m.type){case"NewExpression":return f==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(Ubi(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(f==="callee"&&(m.type==="BindExpression"||m.type==="NewExpression")){let d=p;for(;d;)switch(d.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":d=d.object;break;case"TaggedTemplateExpression":d=d.tag;break;case"TSNonNullExpression":d=d.expression;break;default:return!1}}return!1;case"BindExpression":return f==="callee"&&(m.type==="BindExpression"||m.type==="NewExpression")||f==="object"&&L_(m);case"NGPipeExpression":return!(m.type==="NGRoot"||m.type==="NGMicrosyntaxExpression"||m.type==="ObjectProperty"&&!((_=p.extra)!=null&&_.parenthesized)||Wh(m)||f==="arguments"&&$o(m)||f==="right"&&m.type==="NGPipeExpression"||f==="property"&&m.type==="MemberExpression"||m.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return f==="callee"||f==="left"&&m.type==="BinaryExpression"&&m.operator==="<"||!Wh(m)&&m.type!=="ArrowFunctionExpression"&&m.type!=="AssignmentExpression"&&m.type!=="AssignmentPattern"&&m.type!=="BinaryExpression"&&m.type!=="NewExpression"&&m.type!=="ConditionalExpression"&&m.type!=="ExpressionStatement"&&m.type!=="JsExpressionRoot"&&m.type!=="JSXAttribute"&&m.type!=="JSXElement"&&m.type!=="JSXExpressionContainer"&&m.type!=="JSXFragment"&&m.type!=="LogicalExpression"&&!$o(m)&&!DC(m)&&m.type!=="ReturnStatement"&&m.type!=="ThrowStatement"&&m.type!=="TypeCastExpression"&&m.type!=="VariableDeclarator"&&m.type!=="YieldExpression";case"TSInstantiationExpression":return f==="object"&&L_(m)}return!1}function Xbi(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if((n==null?void 0:n.type)==="ForStatement"&&n.init===r)return!0;r=n}return!1}function jbi(e){return zje(e,(t)=>t.type==="ObjectTypeAnnotation"&&zje(t,(r)=>r.type==="FunctionTypeAnnotation"))}function Kbi(e){return Qg(e)}function qR(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(qR);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(qR);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(qR);break;case"UnaryExpression":if(t.prefix)return e.callParent(qR);break}return!1}function Bir(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!Qje(e,t):!aKe(r)||n.type!=="ExportDefaultDeclaration"&&Qje(e,t)?!1:e.call(()=>Bir(e,t),...Qnr(r))}function Ubi(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match((t)=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match((t)=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match((t)=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match((t)=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match((t)=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match((t)=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function Wje(e){return e.type==="Identifier"?!0:L_(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Wje(e.object):!1}function Zbi(e){return e.type==="ChainExpression"&&(e=e.expression),Wje(e)||$o(e)&&!e.optional&&Wje(e.callee)}function Obi(e,t){let r=t-1;r=yj(e,r,{backwards:!0}),r=gj(e,r,{backwards:!0}),r=yj(e,r,{backwards:!0});let n=gj(e,r,{backwards:!0});return r!==n}function vKe(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function Ybi(e,t){var r;let n=e.node,i=[vKe(e,t)],{printer:a,originalText:u,locStart:s,locEnd:l}=t;if((r=a.isBlockComment)==null?void 0:r.call(a,n)){let _=dy(u,l(n))?dy(u,s(n),{backwards:!0})?Wn:m0:" ";i.push(_)}else i.push(Wn);let h=gj(u,yj(u,l(n)));return h!==!1&&dy(u,h)&&i.push(Wn),i}function Hbi(e,t,r){var n;let i=e.node,a=vKe(e,t),{printer:u,originalText:s,locStart:l}=t,h=(n=u.isBlockComment)==null?void 0:n.call(u,i);if(r!=null&&r.hasLineSuffix&&!(r!=null&&r.isBlock)||dy(s,l(i),{backwards:!0})){let _=Qbi(s,l(i));return{doc:vnr([Wn,_?Wn:"",a]),isBlock:h,hasLineSuffix:!0}}return!h||r!=null&&r.hasLineSuffix?{doc:[vnr([" ",a]),Ww],isBlock:h,hasLineSuffix:!0}:{doc:[" ",a],isBlock:h,hasLineSuffix:!1}}function Hl(e,t,r={}){let{node:n}=e;if(!Ko(n==null?void 0:n.comments))return"";let{indent:i=!1,marker:a,filter:u=Wbi}=r,s=[];if(e.each(({node:h})=>{h.leading||h.trailing||h.marker!==a||!u(h)||s.push(vKe(e,t))},"comments"),s.length===0)return"";let l=po(Wn,s);return i?Gn([Wn,l]):l}function qir(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter((s)=>!n.has(s)).length===0)return{leading:"",trailing:""};let i=[],a=[],u;return e.each(()=>{let s=e.node;if(n!=null&&n.has(s))return;let{leading:l,trailing:h}=s;l?i.push(Ybi(e,t)):h&&(u=Hbi(e,t,u),a.push(u.doc))},"comments"),{leading:i,trailing:a}}function Og(e,t,r){let{leading:n,trailing:i}=qir(e,r);return!n&&!i?t:Xje(t,(a)=>[n,a,i])}function Rbi(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function rTi(e,t,r){var n,i,a,u,s;let{node:l}=e;if(l.type==="JSXElement"&&yTi(l))return[r("openingElement"),r("closingElement")];let h=l.type==="JSXElement"?r("openingElement"):r("openingFragment"),_=l.type==="JSXElement"?r("closingElement"):r("closingFragment");if(l.children.length===1&&l.children[0].type==="JSXExpressionContainer"&&(l.children[0].expression.type==="TemplateLiteral"||l.children[0].expression.type==="TaggedTemplateExpression"))return[h,...e.map(r,"children"),_];l.children=l.children.map(($)=>gTi($)?{type:"JSXText",value:" ",raw:" "}:$);let p=l.children.some(Y2),f=l.children.filter(($)=>$.type==="JSXExpressionContainer").length>1,m=l.type==="JSXElement"&&l.openingElement.attributes.length>1,d=m7(h)||p||m||f,x=e.parent.rootMarker==="mdx",T=t.singleQuote?"{' '}":'{" "}',A=x?m0:cu([T,Qn]," "),F=((i=(n=l.openingElement)==null?void 0:n.name)==null?void 0:i.name)==="fbt",b=nTi(e,t,r,A,F),N=l.children.some(($)=>VR($));for(let $=b.length-2;$>=0;$--){let M=b[$]===""&&b[$+1]==="",O=b[$]===Wn&&b[$+1]===""&&b[$+2]===Wn,K=(b[$]===Qn||b[$]===Wn)&&b[$+1]===""&&b[$+2]===A,ue=b[$]===A&&b[$+1]===""&&(b[$+2]===Qn||b[$+2]===Wn),Q=b[$]===A&&b[$+1]===""&&b[$+2]===A,G=b[$]===Qn&&b[$+1]===""&&b[$+2]===Wn||b[$]===Wn&&b[$+1]===""&&b[$+2]===Qn;O&&N||M||K||Q||G?b.splice($,2):ue&&b.splice($+1,2)}for(;b.length>0&&Bje(xs(!1,b,-1));)b.pop();for(;b.length>1&&Bje(b[0])&&Bje(b[1]);)b.shift(),b.shift();let E=[""];for(let[$,M]of b.entries()){if(M===A){if($===1&&Wwi(b[$-1])){if(b.length===2){E.push([E.pop(),T]);continue}E.push([T,Wn],"");continue}else if($===b.length-1){E.push([E.pop(),T]);continue}else if(b[$-1]===""&&b[$-2]===Wn){E.push([E.pop(),T]);continue}}$%2===0?E.push([E.pop(),M]):E.push(M,""),m7(M)&&(d=!0)}let P=N?lir(E):Qr(E,{shouldBreak:!0});if(((a=t.cursorNode)==null?void 0:a.type)==="JSXText"&&l.children.includes(t.cursorNode)?P=[wme,P,wme]:((u=t.nodeBeforeCursor)==null?void 0:u.type)==="JSXText"&&l.children.includes(t.nodeBeforeCursor)?P=[wme,P]:((s=t.nodeAfterCursor)==null?void 0:s.type)==="JSXText"&&l.children.includes(t.nodeAfterCursor)&&(P=[P,wme]),x)return P;let q=Qr([h,Gn([Wn,P]),Wn,_]);return d?q:pJ([Qr([h,...b,_]),q])}function nTi(e,t,r,n,i){let a="",u=[a];function s(h){a=h,u.push([u.pop(),h])}function l(h){h!==""&&(a=h,u.push(h,""))}return e.each(({node:h,next:_})=>{if(h.type==="JSXText"){let p=d4(h);if(VR(h)){let f=Tme.split(p,!0);f[0]===""&&(f.shift(),/\n/u.test(f[0])?l(Cnr(i,f[1],h,_)):l(n),f.shift());let m;if(xs(!1,f,-1)===""&&(f.pop(),m=f.pop()),f.length===0)return;for(let[d,x]of f.entries())d%2===1?l(m0):s(x);m!==void 0?/\n/u.test(m)?l(Cnr(i,a,h,_)):l(n):l(Tnr(i,a,h,_))}else/\n/u.test(p)?p.match(/\n/gu).length>1&&l(Wn):l(n)}else{let p=r();if(s(p),_&&VR(_)){let f=Tme.trim(d4(_)),[m]=Tme.split(f);l(Tnr(i,m,h,_))}else l(Wn)}},"children"),u}function Tnr(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?Qn:Wn:Qn}function Cnr(e,t,r,n){return e?Wn:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?Wn:Qn:Wn}function aTi(e,t,r){let{parent:n}=e;if(iTi.has(n.type))return t;let i=e.match(void 0,(u)=>u.type==="ArrowFunctionExpression",$o,(u)=>u.type==="JSXExpressionContainer"),a=AJ(e,r);return Qr([a?"":cu("("),Gn([Qn,t]),Qn,a?"":cu(")")],{shouldBreak:i})}function uTi(e,t,r){let{node:n}=e,i=[];if(i.push(r("name")),n.value){let a;if(Im(n.value)){let u=d4(n.value),s=Oh(!1,Oh(!1,u.slice(1,-1),"'","'"),""",'"'),l=jnr(s,t.jsxSingleQuote);s=l==='"'?Oh(!1,s,'"',"""):Oh(!1,s,"'","'"),a=e.call(()=>Og(e,fJ(l+s+l),t),"value")}else a=r("value");i.push("=",a)}return i}function oTi(e,t,r){let{node:n}=e,i=(a,u)=>a.type==="JSXEmptyExpression"||!Zi(a)&&(Wh(a)||Qg(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(i(a.argument,a)||a.argument.type==="JSXElement")||$o(a)||a.type==="ChainExpression"&&$o(a.expression)||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||Y2(u)&&(a.type==="ConditionalExpression"||dC(a)));return i(n.expression,e.parent)?Qr(["{",r("expression"),gC,"}"]):Qr(["{",Gn([Qn,r("expression")]),Qn,gC,"}"])}function sTi(e,t,r){var n,i;let{node:a}=e,u=Zi(a.name)||Zi(a.typeParameters)||Zi(a.typeArguments);if(a.selfClosing&&a.attributes.length===0&&!u)return["<",r("name"),a.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((n=a.attributes)==null?void 0:n.length)===1&&Im(a.attributes[0].value)&&!a.attributes[0].value.value.includes(`
|
|
439
439
|
`)&&!u&&!Zi(a.attributes[0]))return Qr(["<",r("name"),a.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),a.selfClosing?" />":">"]);let s=(i=a.attributes)==null?void 0:i.some((h)=>Im(h.value)&&h.value.value.includes(`
|
|
440
|
-
`)),l=t.singleAttributePerLine&&a.attributes.length>1?Wn:m0;return Qr(["<",r("name"),a.typeArguments?r("typeArguments"):r("typeParameters"),Gn(e.map(()=>[l,r()],"attributes")),...lTi(a,t,u)],{shouldBreak:s})}function lTi(e,t,r){return e.selfClosing?[m0,"/>"]:_Ti(e,t,r)?[">"]:[Qn,">"]}function _Ti(e,t,r){let n=e.attributes.length>0&&Zi(xs(!1,e.attributes,-1),E0.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function cTi(e,t,r){let{node:n}=e,i=[];i.push("</");let a=r("name");return Zi(n.name,E0.Leading|E0.Line)?i.push(Gn([Wn,a]),Wn):Zi(n.name,E0.Leading|E0.Block)?i.push(" ",a):i.push(a),i.push(">"),i}function hTi(e,t){let{node:r}=e,n=Zi(r),i=Zi(r,E0.Line),a=r.type==="JSXOpeningFragment";return[a?"<":"</",Gn([i?Wn:n&&!a?" ":"",Hl(e,t)]),i?Wn:"",">"]}function pTi(e,t,r){let n=Og(e,rTi(e,t,r),t);return aTi(e,n,t)}function fTi(e,t){let{node:r}=e,n=Zi(r,E0.Line);return[Hl(e,t,{indent:n}),n?Wn:""]}function mTi(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let a=["...",r()];return!Zi(i)||!Air(e)?a:[Gn([Qn,Og(e,a,t)]),Qn]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function dTi(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return uTi(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return po(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return po(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return mTi(e,t,r);case"JSXExpressionContainer":return oTi(e,t,r);case"JSXFragment":case"JSXElement":return pTi(e,t,r);case"JSXOpeningElement":return sTi(e,t,r);case"JSXClosingElement":return cTi(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return hTi(e,t);case"JSXEmptyExpression":return fTi(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Cj(n,"JSX")}}function yTi(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!VR(t)}function VR(e){return e.type==="JSXText"&&(Tme.hasNonWhitespaceCharacter(d4(e))||!/\n/u.test(d4(e)))}function gTi(e){return e.type==="JSXExpressionContainer"&&Im(e.expression)&&e.expression.value===" "&&!Zi(e.expression)}function xTi(e){let{node:t,parent:r}=e;if(!Y2(t)||!Y2(r))return!1;let{index:n,siblings:i}=e,a;for(let u=n;u>0;u--){let s=i[u-1];if(!(s.type==="JSXText"&&!VR(s))){a=s;break}}return(a==null?void 0:a.type)==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&Mme(a.expression)}function vTi(e){return Mme(e.node)||xTi(e)}function Jir(e,t,r){var n;let{node:i,parent:a,grandparent:u,key:s}=e,l=s!=="body"&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),h=i.operator==="|>"&&((n=e.root.extra)==null?void 0:n.__isUsingHackPipeline),_=Yje(e,r,t,!1,l);if(l)return _;if(h)return Qr(_);if($o(a)&&a.callee===i||a.type==="UnaryExpression"||L_(a)&&!a.computed)return Qr([Gn([Qn,..._]),Qn]);let p=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||i.operator!=="|"&&a.type==="JsExpressionRoot"||i.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&t.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||i===a.body&&a.type==="ArrowFunctionExpression"||i!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!$o(u)||a.type==="TemplateLiteral",f=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractPropertyDefinition"||a.type==="ClassPrivateProperty"||DC(a),m=dC(i.left)&&lKe(i.operator,i.left.operator);if(p||LR(i)&&!m||!LR(i)&&f)return Qr(_);if(_.length===0)return"";let d=Y2(i.right),x=_.findIndex((E)=>typeof E!="string"&&!Array.isArray(E)&&E.type===y4),T=_.slice(0,x===-1?1:x+1),A=_.slice(T.length,d?-1:void 0),F=Symbol("logicalChain-"+ ++DTi),b=Qr([...T,Gn(A)],{id:F});if(!d)return b;let N=xs(!1,_,-1);return Qr([b,zme(N,{groupId:F})])}function Yje(e,t,r,n,i){var a;let{node:u}=e;if(!dC(u))return[Qr(t())];let s=[];lKe(u.operator,u.left.operator)?s=e.call((T)=>Yje(T,t,r,!0,i),"left"):s.push(Qr(t("left")));let l=LR(u),h=(u.operator==="|>"||u.type==="NGPipeExpression"||wTi(e,r))&&!cP(r.originalText,u.right),_=!Zi(u.right,E0.Leading,pir)&&cP(r.originalText,u.right),p=u.type==="NGPipeExpression"?"|":u.operator,f=u.type==="NGPipeExpression"&&u.arguments.length>0?Qr(Gn([Qn,": ",po([m0,": "],e.map(()=>Qw(2,Qr(t())),"arguments"))])):"",m;if(l)m=[p," ",t("right"),f];else{let T=p==="|>"&&((a=e.root.extra)==null?void 0:a.__isUsingHackPipeline)?e.call((A)=>Yje(A,t,r,!0,i),"right"):t("right");if(r.experimentalOperatorPosition==="start"){let A="";if(_)switch(yP(T)){case yC:A=T.splice(0,1)[0];break;case wC:A=T.contents.splice(0,1)[0];break}m=[m0,A,p," ",T,f]}else m=[h?m0:"",p,h?" ":m0,T,f]}let{parent:d}=e,x=Zi(u.left,E0.Trailing|E0.Line);if((x||!(i&&u.type==="LogicalExpression")&&d.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type)&&(m=Qr(m,{shouldBreak:x})),r.experimentalOperatorPosition==="start"?s.push(l||_?" ":"",m):s.push(h?"":" ",m),n&&Zi(u)){let T=hKe(Og(e,s,r));return T.type===mP?T.parts:Array.isArray(T)?T:[T]}return s}function LR(e){return e.type!=="LogicalExpression"?!1:!!(Qg(e.right)&&e.right.properties.length>0||Wh(e.right)&&e.right.elements.length>0||Y2(e.right))}function wTi(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Enr(e.node)&&!e.hasAncestor((r)=>!Enr(r)&&r.type!=="JsExpressionRoot")}function ATi(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),Zi(n.node)?" //"+mj(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Jir(e,t,r);case"NGChainedExpression":return Qr(po([";",m0],e.map(()=>TTi(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":knr(e)?" ":[";",m0],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:a}=e,u=knr(e)||(i===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||(i===2||i===3)&&(n.key.name==="else"&&a.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[i-1].key.name==="then"||n.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[r("key"),u?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Cj(n,"Angular")}}function knr({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function TTi({node:e}){return zje(e,bTi)}function Iir(e,t,r){let{node:n}=e;return Qr([po(m0,e.map(r,"decorators")),Mir(n,t)?Wn:m0])}function CTi(e,t,r){return zir(e.node)?[po(Wn,e.map(r,"declaration","decorators")),Wn]:""}function ETi(e,t,r){let{node:n,parent:i}=e,{decorators:a}=n;if(!Ko(a)||zir(i)||$ir(e))return"";let u=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Mir(n,t);return[e.key==="declaration"&&xwi(i)?Wn:u?Ww:"",po(m0,e.map(r,"decorators")),m0]}function Mir(e,t){return e.decorators.some((r)=>dy(t.originalText,fo(r)))}function zir(e){var t;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let r=(t=e.declaration)==null?void 0:t.decorators;return Ko(r)&&$me(e,r[0])}function kTi(e,t,r){let{node:n}=e,i=v4(n);if(i.length===0)return["(",Hl(e,t),")"];let a=i.length-1;if(PTi(i)){let p=["("];return Fme(e,(f,m)=>{p.push(r()),m!==a&&p.push(", ")}),p.push(")"),p}let u=!1,s=[];Fme(e,({node:p},f)=>{let m=r();f===a||(vC(p,t)?(u=!0,m=[m,",",Wn,Wn]):m=[m,",",m0]),s.push(m)});let l=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&xC(t,"all")?",":"";function h(){return Qr(["(",Gn([m0,...s]),l,m0,")"],{shouldBreak:!0})}if(u||e.parent.type!=="Decorator"&&Fwi(i))return h();if(STi(i)){let p=s.slice(1);if(p.some(m7))return h();let f;try{f=r(ynr(n,0),{expandFirstArg:!0})}catch(m){if(m instanceof Pme)return h();throw m}return m7(f)?[Ww,pJ([["(",Qr(f,{shouldBreak:!0}),", ",...p,")"],h()])]:pJ([["(",f,", ",...p,")"],["(",Qr(f,{shouldBreak:!0}),", ",...p,")"],h()])}if(FTi(i,s,t)){let p=s.slice(0,-1);if(p.some(m7))return h();let f;try{f=r(ynr(n,-1),{expandLastArg:!0})}catch(m){if(m instanceof Pme)return h();throw m}return m7(f)?[Ww,pJ([["(",...p,Qr(f,{shouldBreak:!0}),")"],h()])]:pJ([["(",...p,f,")"],["(",...p,Qr(f,{shouldBreak:!0}),")"],h()])}let _=["(",Gn([Qn,...s]),cu(l),Qn,")"];return rir(e)?_:Qr(_,{shouldBreak:s.some(m7)||u})}function JR(e,t=!1){return Qg(e)&&(e.properties.length>0||Zi(e))||Wh(e)&&(e.elements.length>0||Zi(e))||e.type==="TSTypeAssertion"&&JR(e.expression)||Uw(e)&&JR(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||NTi(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&JR(e.body,!0)||Qg(e.body)||Wh(e.body)||!t&&($o(e.body)||e.body.type==="ConditionalExpression")||Y2(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function FTi(e,t,r){var n,i;let a=xs(!1,e,-1);if(e.length===1){let s=xs(!1,t,-1);if((n=s.label)!=null&&n.embed&&((i=s.label)==null?void 0:i.hug)!==!1)return!0}let u=xs(!1,e,-2);return!Zi(a,E0.Leading)&&!Zi(a,E0.Trailing)&&JR(a)&&(!u||u.type!==a.type)&&(e.length!==2||u.type!=="ArrowFunctionExpression"||!Wh(a))&&!(e.length>1&&c0r(a,r))}function STi(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&BTi(r)?!0:!Zi(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Vir(r)&&!JR(r)}function Vir(e){if(e.type==="ParenthesizedExpression")return Vir(e.expression);if(Uw(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.typeArguments??t.typeParameters;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return oKe(t)&&Zg(e.expression,1)}return vj(e)&&v4(e).length>1?!1:dC(e)?Zg(e.left,1)&&Zg(e.right,1):Ynr(e)||Zg(e)}function PTi(e){return e.length===2?Fnr(e,0):e.length===3?e[0].type==="Identifier"&&Fnr(e,1):!1}function Fnr(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&Wp(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some((i)=>Zi(i))}function NTi(e){return e.type==="BlockStatement"&&(e.body.some((t)=>t.type!=="EmptyStatement")||Zi(e,E0.Dangling))}function BTi(e){return e.type==="ObjectExpression"&&e.properties.length===1&&DC(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Im(e.properties[0].value)&&e.properties[0].value.value==="module"}function $Ti(e,t,r){var n;let i=r("object"),a=Lir(e,t,r),{node:u}=e,s=e.findAncestor((_)=>!(L_(_)||_.type==="TSNonNullExpression")),l=e.findAncestor((_)=>!(_.type==="ChainExpression"||_.type==="TSNonNullExpression")),h=s&&(s.type==="NewExpression"||s.type==="BindExpression"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!L_(l)||(l.type==="AssignmentExpression"||l.type==="VariableDeclarator")&&(qTi(u.object)||((n=i.label)==null?void 0:n.memberChain));return XR(i.label,[i,h?a:Qr(Gn([Qn,a]))])}function Lir(e,t,r){let n=r("property"),{node:i}=e,a=d7(e);return i.computed?!i.property||mC(i.property)?[a,"[",n,"]"]:Qr([a,"[",Gn([Qn,n]),Qn,"]"]):[a,".",n]}function Xir(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Xir(e,t,r),"expression");let{parent:n}=e,i=!n||n.type==="ExpressionStatement",a=[];function u(G){let{originalText:Z}=t,ee=Tj(Z,fo(G));return Z.charAt(ee)===")"?ee!==!1&&nKe(Z,ee+1):vC(G,t)}function s(){let{node:G}=e;if(G.type==="ChainExpression")return e.call(s,"expression");if($o(G)&&(pj(G.callee)||$o(G.callee))){let Z=u(G);a.unshift({node:G,hasTrailingEmptyLine:Z,printed:[Og(e,[d7(e),mJ(e,t,r),Hje(e,t,r)],t),Z?Wn:""]}),e.call(s,"callee")}else pj(G)?(a.unshift({node:G,needsParens:AJ(e,t),printed:Og(e,L_(G)?Lir(e,t,r):l0r(e,t,r),t)}),e.call(s,"object")):G.type==="TSNonNullExpression"?(a.unshift({node:G,printed:Og(e,"!",t)}),e.call(s,"expression")):a.unshift({node:G,printed:r()})}let{node:l}=e;a.unshift({node:l,printed:[d7(e),mJ(e,t,r),Hje(e,t,r)]}),l.callee&&e.call(s,"callee");let h=[],_=[a[0]],p=1;for(;p<a.length&&(a[p].node.type==="TSNonNullExpression"||$o(a[p].node)||L_(a[p].node)&&a[p].node.computed&&mC(a[p].node.property));++p)_.push(a[p]);if(!$o(a[0].node))for(;p+1<a.length&&(pj(a[p].node)&&pj(a[p+1].node));++p)_.push(a[p]);h.push(_),_=[];let f=!1;for(;p<a.length;++p){if(f&&pj(a[p].node)){if(a[p].node.computed&&mC(a[p].node.property)){_.push(a[p]);continue}h.push(_),_=[],f=!1}($o(a[p].node)||a[p].node.type==="ImportExpression")&&(f=!0),_.push(a[p]),Zi(a[p].node,E0.Trailing)&&(h.push(_),_=[],f=!1)}_.length>0&&h.push(_);function m(G){return/^[A-Z]|^[$_]+$/u.test(G)}function d(G){return G.length<=t.tabWidth}function x(G){var Z;let ee=(Z=G[1][0])==null?void 0:Z.node.computed;if(G[0].length===1){let Fe=G[0][0].node;return Fe.type==="ThisExpression"||Fe.type==="Identifier"&&(m(Fe.name)||i&&d(Fe.name)||ee)}let ge=xs(!1,G[0],-1).node;return L_(ge)&&ge.property.type==="Identifier"&&(m(ge.property.name)||ee)}let T=h.length>=2&&!Zi(h[1][0].node)&&x(h);function A(G){let Z=G.map((ee)=>ee.printed);return G.length>0&&xs(!1,G,-1).needsParens?["(",...Z,")"]:Z}function F(G){return G.length===0?"":Gn([Wn,po(Wn,G.map(A))])}let b=h.map(A),N=b,E=T?3:2,P=h.flat(),q=P.slice(1,-1).some((G)=>Zi(G.node,E0.Leading))||P.slice(0,-1).some((G)=>Zi(G.node,E0.Trailing))||h[E]&&Zi(h[E][0].node,E0.Leading);if(h.length<=E&&!q&&!h.some((G)=>xs(!1,G,-1).hasTrailingEmptyLine))return rir(e)?N:Qr(N);let $=xs(!1,h[T?1:0],-1).node,M=!$o($)&&u($),O=[A(h[0]),T?h.slice(1,2).map(A):"",M?Wn:"",F(h.slice(T?2:1))],K=a.map(({node:G})=>G).filter($o);function ue(){let G=xs(!1,xs(!1,h,-1),-1).node,Z=xs(!1,b,-1);return $o(G)&&m7(Z)&&K.slice(0,-1).some((ee)=>ee.arguments.some(MR))}let Q;return q||K.length>2&&K.some((G)=>!G.arguments.every((Z)=>Zg(Z)))||b.slice(0,-1).some(m7)||ue()?Q=Qr(O):Q=[m7(N)||M?Ww:"",pJ([N,O])],XR({memberChain:!0},Q)}function jir(e,t,r){var n;let{node:i}=e,a=i.type==="NewExpression",u=i.type==="ImportExpression",s=d7(e),l=v4(i),h=l.length===1&&eir(l[0],t.originalText);if(h||ITi(e)||Ime(i,e.parent)){let p=[];if(Fme(e,()=>{p.push(r())}),!(h&&((n=p[0].label)!=null&&n.embed)))return[a?"new ":"",Snr(e,r),s,mJ(e,t,r),"(",po(", ",p),")"]}if(!u&&!a&&pj(i.callee)&&!e.call((p)=>AJ(p,t),"callee",...i.callee.type==="ChainExpression"?["expression"]:[]))return JTi(e,t,r);let _=[a?"new ":"",Snr(e,r),s,mJ(e,t,r),Hje(e,t,r)];return u||$o(i.callee)?Qr(_):_}function Snr(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:t("callee")}function ITi(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=v4(t);return t.callee.name==="require"?r.length===1&&Im(r[0])||r.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Im(r[0])&&r[1].type==="ArrayExpression":!1}function jR(e,t,r,n,i,a){let u=VTi(e,t,r,n,a),s=a?r(a,{assignmentLayout:u}):"";switch(u){case"break-after-operator":return Qr([Qr(n),i,Qr(Gn([m0,s]))]);case"never-break-after-operator":return Qr([Qr(n),i," ",s]);case"fluid":{let l=Symbol("assignment");return Qr([Qr(n),i,Qr(Gn(m0),{id:l}),gC,zme(s,{groupId:l})])}case"break-lhs":return Qr([n,i," ",Qr(s)]);case"chain":return[Qr(n),i,m0,s];case"chain-tail":return[Qr(n),i,Gn([m0,s])];case"chain-tail-arrow-chain":return[Qr(n),i,s];case"only-left":return n}}function MTi(e,t,r){let{node:n}=e;return jR(e,t,r,r("left"),[" ",n.operator],"right")}function zTi(e,t,r){return jR(e,t,r,r("id")," =","init")}function VTi(e,t,r,n,i){let{node:a}=e,u=a[i];if(!u)return"only-left";let s=!Cme(u);if(e.match(Cme,Kir,(_)=>!s||_.type!=="ExpressionStatement"&&_.type!=="VariableDeclaration"))return s?u.type==="ArrowFunctionExpression"&&u.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&Cme(u.right)||cP(t.originalText,u))return"break-after-operator";if(a.type==="ImportAttribute"||u.type==="CallExpression"&&u.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let l=Qwi(n);if(XTi(a)||ZTi(a)||Uir(a)&&l)return"break-lhs";let h=QTi(a,n,t);return e.call(()=>LTi(e,t,r,h),i)?"break-after-operator":jTi(a)?"break-lhs":!l&&(h||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="BooleanLiteral"||mC(u)||u.type==="ClassExpression")?"never-break-after-operator":"fluid"}function LTi(e,t,r,n){let i=e.node;if(dC(i)&&!LR(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!HTi(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:h}=i;return dC(h)&&!LR(h)}let{consequent:s,alternate:l}=i;return s.type==="ConditionalExpression"||l.type==="ConditionalExpression"}case"ClassExpression":return Ko(i.decorators)}if(n)return!1;let a=i,u=[];for(;;)if(a.type==="UnaryExpression"||a.type==="AwaitExpression"||a.type==="YieldExpression"&&a.argument!==null)a=a.argument,u.push("argument");else if(a.type==="TSNonNullExpression")a=a.expression,u.push("expression");else break;return!!(Im(a)||e.call(()=>Zir(e,t,r),...u))}function XTi(e){if(Kir(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some((r)=>{var n;return DC(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Cme(e){return e.type==="AssignmentExpression"}function Kir(e){return Cme(e)||e.type==="VariableDeclarator"}function jTi(e){let t=UTi(e);if(Ko(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some((n)=>n[r]||n.default))return!0}return!1}function UTi(e){var t;if(KTi(e))return(t=e.typeParameters)==null?void 0:t.params}function ZTi(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=Pnr(t.typeAnnotation);return Ko(r)&&r.length>1&&r.some((n)=>Ko(Pnr(n))||n.type==="TSConditionalType")}function Uir(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function Pnr(e){var t;if(OTi(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function Zir(e,t,r,n=!1){var i;let{node:a}=e,u=()=>Zir(e,t,r,!0);if(a.type==="ChainExpression"||a.type==="TSNonNullExpression")return e.call(u,"expression");if($o(a)){if((i=jir(e,t,r).label)!=null&&i.memberChain)return!1;let s=v4(a);return!(s.length===0||s.length===1&&sKe(s[0],t))||WTi(a,r)?!1:e.call(u,"callee")}return L_(a)?e.call(u,"object"):n&&(a.type==="Identifier"||a.type==="ThisExpression")}function QTi(e,t,r){return DC(e)?(t=hKe(t),typeof t=="string"&&dj(t)<r.tabWidth+3):!1}function WTi(e,t){let r=YTi(e);if(Ko(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(hP(i)||_Ke(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(m7(t(n)))return!0}return!1}function YTi(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function HTi(e){function t(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!(r.typeArguments??r.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function bJ(e,t,r,n,i){let a=e.node,u=Wp(a),s=i?mJ(e,r,t):"";if(u.length===0)return[s,"(",Hl(e,r,{filter:(m)=>Wg(r.originalText,fo(m))===")"}),")"];let{parent:l}=e,h=Ime(l),_=Oir(a),p=[];if($wi(e,(m,d)=>{let x=d===u.length-1;x&&a.rest&&p.push("..."),p.push(t()),!x&&(p.push(","),h||_?p.push(" "):vC(u[d],r)?p.push(Wn,Wn):p.push(m0))}),n&&!RTi(e)){if(m7(s)||m7(p))throw new Pme;return Qr([Lje(s),"(",Lje(p),")"])}let f=u.every((m)=>!Ko(m.decorators));return _&&f?[s,"(",...p,")"]:h?[s,"(",...p,")"]:(Hnr(l)||Awi(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===a)&&u.length===1&&u[0].name===null&&a.this!==u[0]&&u[0].typeAnnotation&&a.typeParameters===null&&oKe(u[0].typeAnnotation)&&!a.rest?r.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...p,")"]:p:[s,"(",Gn([Qn,...p]),cu(!qwi(a)&&xC(r,"all")?",":""),Qn,")"]}function Oir(e){if(!e)return!1;let t=Wp(e);if(t.length!==1)return!1;let[r]=t;return!Zi(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&_P(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&_P(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Qg(r.right)&&r.right.properties.length===0||Wh(r.right)&&r.right.elements.length===0))}function GTi(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Ej(e,t){var r;let n=GTi(e);if(!n)return!1;let i=(r=e.typeParameters)==null?void 0:r.params;if(i){if(i.length>1)return!1;if(i.length===1){let a=i[0];if(a.constraint||a.default)return!1}}return Wp(e).length===1&&(_P(n)||m7(t))}function RTi(e){return e.match((t)=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",(t)=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function eCi(e){let t=Wp(e);return t.length>1&&t.some((r)=>r.type==="TSParameterProperty")}function nCi(e){let{types:t}=e;if(t.some((n)=>Zi(n)))return!1;let r=t.find((n)=>rCi(n));return r?t.every((n)=>n===r||tCi(n)):!1}function Qir(e){return oKe(e)||_P(e)?!0:hP(e)?nCi(e):!1}function iCi(e,t,r){let n=t.semi?";":"",{node:i}=e,a=[Mm(e),"opaque type ",r("id"),r("typeParameters")];return i.supertype&&a.push(": ",r("supertype")),i.impltype&&a.push(" = ",r("impltype")),a.push(n),a}function Wir(e,t,r){let n=t.semi?";":"",{node:i}=e,a=[Mm(e)];a.push("type ",r("id"),r("typeParameters"));let u=i.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[jR(e,t,r,a," =",u),n]}function Yir(e,t,r){let n=!1;return Qr(e.map(({isFirst:i,previous:a,node:u,index:s})=>{let l=r();if(i)return l;let h=_P(u),_=_P(a);return _&&h?[" & ",n?Gn(l):l]:!_&&!h?t.experimentalOperatorPosition==="start"?Gn([m0,"& ",l]):Gn([" &",m0,l]):(s>1&&(n=!0),[" & ",s>1?Gn(l):l])},"types"))}function Hir(e,t,r){let{node:n}=e,{parent:i}=e,a=i.type!=="TypeParameterInstantiation"&&(!pP(i)||!t.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&e.grandparent.this!==i)&&!((i.type==="TypeAlias"||i.type==="VariableDeclarator"||i.type==="TSTypeAliasDeclaration")&&cP(t.originalText,n)),u=Qir(n),s=e.map((_)=>{let p=r();return u||(p=Qw(2,p)),Og(_,p,t)},"types");if(u)return po(" | ",s);let l=a&&!cP(t.originalText,n),h=[cu([l?m0:"","| "]),po([m0,"| "],s)];return AJ(e,t)?Qr([Gn(h),Qn]):(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?Qr([Gn([cu(["(",Qn]),h]),Qn,cu(")")]):Qr(a?Gn(h):h)}function aCi(e){var t;let{node:r,parent:n}=e;return r.type==="FunctionTypeAnnotation"&&(Hnr(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&$me(n,r)||n.type==="ObjectTypeCallProperty"||((t=e.getParentNode(2))==null?void 0:t.type)==="DeclareFunction"))}function Gir(e,t,r){let{node:n}=e,i=[Vme(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let a=bJ(e,r,t,!1,!0),u=[];return n.type==="FunctionTypeAnnotation"?u.push(aCi(e)?" => ":": ",r("returnType")):u.push(Qh(e,r,n.returnType?"returnType":"typeAnnotation")),Ej(n,u)&&(a=Qr(a)),i.push(a,u),Qr(i)}function Rir(e,t,r){return[r("objectType"),d7(e),"[",r("indexType"),"]"]}function e0r(e,t,r){return["infer ",r("typeParameter")]}function Nnr(e,t,r){let{node:n}=e;return[n.postfix?"":r,Qh(e,t),n.postfix?r:""]}function t0r(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function r0r(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function Qh(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let i=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let a=e.call(n0r,r);(a==="=>"||a===":"&&Zi(n,E0.Leading))&&(i=!0),uCi.add(n)}return i?[" ",t(r)]:t(r)}function i0r(e,t,r){let n=n0r(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function a0r(e){return[e("elementType"),"[]"]}function u0r({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument",n=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function o0r(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Qh(e,t)]:""]}function d7(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":$o(t)||L_(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function s0r(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}function Mm(e){let{node:t}=e;return t.declare||oCi.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}function Vme({node:e}){return e.abstract||sCi.has(e.type)?"abstract ":""}function mJ(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function l0r(e,t,r){return["::",r("callee")]}function sP(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:Gn([m0,t])}function _0r(e,t){return["...",t("argument"),Qh(e,t)]}function Nme(e){return e.accessibility?e.accessibility+" ":""}function lCi(e,t,r,n){let{node:i}=e,a=i.inexact?"...":"";return Zi(i,E0.Dangling)?Qr([r,a,Hl(e,t,{indent:!0}),Qn,n]):[r,a,n]}function DKe(e,t,r){let{node:n}=e,i=[],a=n.type==="TupleExpression"?"#[":"[",u="]",s=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",l=n[s];if(l.length===0)i.push(lCi(e,t,a,u));else{let h=xs(!1,l,-1),_=(h==null?void 0:h.type)!=="RestElement"&&!n.inexact,p=h===null,f=Symbol("array"),m=!t.__inJestEach&&l.length>1&&l.every((T,A,F)=>{let b=T==null?void 0:T.type;if(!Wh(T)&&!Qg(T))return!1;let N=F[A+1];if(N&&b!==N.type)return!1;let E=Wh(T)?"elements":"properties";return T[E]&&T[E].length>1}),d=c0r(n,t),x=_?p?",":xC(t)?d?cu(",","",{groupId:f}):cu(","):"":"";i.push(Qr([a,Gn([Qn,d?cCi(e,t,r,x):[_Ci(e,t,s,n.inexact,r),x],Hl(e,t)]),Qn,u],{shouldBreak:m,id:f}))}return i.push(d7(e),Qh(e,r)),i}function c0r(e,t){return Wh(e)&&e.elements.length>1&&e.elements.every((r)=>r&&(mC(r)||Wnr(r)&&!Zi(r.argument))&&!Zi(r,E0.Trailing|E0.Line,(n)=>!dy(t.originalText,v_(n),{backwards:!0})))}function h0r({node:e},{originalText:t}){let r=(i)=>tKe(t,rKe(t,i)),n=(i)=>t[i]===","?i:n(r(i+1));return nKe(t,n(fo(e)))}function _Ci(e,t,r,n,i){let a=[];return e.each(({node:u,isLast:s})=>{a.push(u?Qr(i()):""),(!s||n)&&a.push([",",m0,u&&h0r(e,t)?Qn:""])},r),n&&a.push("..."),a}function cCi(e,t,r,n){let i=[];return e.each(({isLast:a,next:u})=>{i.push([r(),a?n:","]),a||i.push(h0r(e,t)?[Wn,Wn]:Zi(u,E0.Leading|E0.Line)?Wn:m0)},"elements"),lir(i)}function mCi(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}function p0r(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Bnr(e,t){return t.parser==="json"||t.parser==="jsonc"||!Im(e.key)||xj(d4(e.key),t).slice(1,-1)!==e.key.value?!1:!!(fCi(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||p0r(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function dCi(e,t){let{key:r}=e.node;return(r.type==="Identifier"||mC(r)&&p0r(Dj(d4(r)))&&String(r.value)===Dj(d4(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Eme.get(e.parent))}function KR(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:a}=n;if(t.quoteProps==="consistent"&&!Eme.has(i)){let u=e.siblings.some((s)=>!s.computed&&Im(s.key)&&!Bnr(s,t));Eme.set(i,u)}if(dCi(e,t)){let u=xj(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),t);return e.call((s)=>Og(s,u,t),"key")}return Bnr(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Eme.get(i))?e.call((u)=>Og(u,/^\d/u.test(a.value)?Dj(a.value):a.value,t),"key"):r("key")}function qje(e,t,r){let{node:n}=e;return n.shorthand?r("value"):jR(e,t,r,KR(e,t,r),":","value")}function f0r(e,t,r,n){if(yCi(e))return wKe(e,r,t);let{node:i}=e,a=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:_}=e;$o(_)&&(v4(_).length>1||Wp(i).every((p)=>p.type==="Identifier"&&!p.typeAnnotation))&&(a=!0)}let u=[Mm(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?t("id"):""],s=bJ(e,t,r,a),l=Lme(e,t),h=Ej(i,l);return u.push(mJ(e,r,t),Qr([h?Qr(s):s,l]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&u.push(";"),u}function Gje(e,t,r){let{node:n}=e,{kind:i}=n,a=n.value||n,u=[];return!i||i==="init"||i==="method"||i==="constructor"?a.async&&u.push("async "):(iKe.ok(i==="get"||i==="set"),u.push(i," ")),a.generator&&u.push("*"),u.push(KR(e,t,r),n.optional||n.key.optional?"?":"",n===a?wKe(e,t,r):r("value")),u}function wKe(e,t,r){let{node:n}=e,i=bJ(e,r,t),a=Lme(e,r),u=eCi(n),s=Ej(n,a),l=[mJ(e,t,r),Qr([u?Qr(i,{shouldBreak:!0}):s?Qr(i):i,a])];return n.body?l.push(" ",r("body")):l.push(t.semi?";":""),l}function gCi(e){let t=Wp(e);return t.length===1&&!e.typeParameters&&!Zi(e,E0.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!Zi(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function m0r(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return gCi(r)}return!1}function Lme(e,t){let{node:r}=e,n=[Qh(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function d0r(e,t,r){let{node:n}=e,i=t.semi?";":"",a=[];if(n.argument){let l=r("argument");DCi(t,n.argument)?l=["(",Gn([Wn,l]),Wn,")"]:(dC(n.argument)||n.argument.type==="SequenceExpression"||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(l=Qr([cu("("),Gn([Qn,l]),Qn,cu(")")])),a.push(" ",l)}let u=Zi(n,E0.Dangling),s=i&&u&&Zi(n,E0.Last|E0.Line);return s&&a.push(i),u&&a.push(" ",Hl(e,t)),s||a.push(i),a}function xCi(e,t,r){return["return",d0r(e,t,r)]}function vCi(e,t,r){return["throw",d0r(e,t,r)]}function DCi(e,t){if(cP(e.originalText,t)||Zi(t,E0.Leading,(r)=>fP(e.originalText,v_(r),fo(r)))&&!Y2(t))return!0;if(aKe(t)){let r=t,n;for(;n=gwi(r);)if(r=n,cP(e.originalText,r))return!0}return!1}function y0r(e){return $je.has(e)||$je.set(e,e.type==="ConditionalExpression"&&!f7(e,(t)=>t.type==="ObjectExpression")),$je.get(e)}function wCi(e,t,r,n={}){let i=[],a,u=[],s=!1,l=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",h;(function A(){let{node:F}=e,b=ACi(e,t,r,n);if(i.length===0)i.push(b);else{let{leading:N,trailing:E}=qir(e,t);i.push([N,b]),u.unshift(E)}l&&(s||(s=F.returnType&&Wp(F).length>0||F.typeParameters||Wp(F).some((N)=>N.type!=="Identifier"))),!l||F.body.type!=="ArrowFunctionExpression"?(a=r("body",n),h=F.body):e.call(A,"body")})();let _=!cP(t.originalText,h)&&(g0r(h)||bCi(h,a,t)||!s&&y0r(h)),p=e.key==="callee"&&vj(e.parent),f=Symbol("arrow-chain"),m=TCi(e,n,{signatureDocs:i,shouldBreak:s}),d=!1,x=!1,T=!1;return l&&(p||n.assignmentLayout)&&(x=!0,T=!Zi(e.node,E0.Leading&E0.Line),d=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!_),a=CCi(e,t,n,{bodyDoc:a,bodyComments:u,functionBody:h,shouldPutBodyOnSameLine:_}),Qr([Qr(x?Gn([T?Qn:"",m]):m,{shouldBreak:d,id:f})," =>",l?zme(a,{groupId:f}):Qr(a),l&&p?cu(Qn,"",{groupId:f}):""])}function ACi(e,t,r,n){let{node:i}=e,a=[];if(i.async&&a.push("async "),m0r(e,t))a.push(r(["params",0]));else{let s=n.expandLastArg||n.expandFirstArg,l=Lme(e,r);if(s){if(m7(l))throw new Pme;l=Qr(Lje(l))}a.push(Qr([bJ(e,r,t,s,!0),l]))}let u=Hl(e,t,{filter(s){let l=Tj(t.originalText,fo(s));return l!==!1&&t.originalText.slice(l,l+2)==="=>"}});return u&&a.push(" ",u),a}function bCi(e,t,r){var n,i;return Wh(e)||Qg(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Y2(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((i=t.label)==null?void 0:i.embed)||eir(e,r.originalText))}function TCi(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:a}=e;return a!=="callee"&&vj(i)||dC(i)?Qr([r[0]," =>",Gn([m0,po([" =>",m0],r.slice(1))])],{shouldBreak:n}):a==="callee"&&vj(i)||t.assignmentLayout?Qr(po([" =>",m0],r),{shouldBreak:n}):Qr(Gn(po([" =>",m0],r)),{shouldBreak:n})}function CCi(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:u}){let{node:s,parent:l}=e,h=r.expandLastArg&&xC(t,"all")?cu(","):"",_=(r.expandLastArg||l.type==="JSXExpressionContainer")&&!Zi(s)?Qn:"";return u&&y0r(a)?[" ",Qr([cu("","("),Gn([Qn,n]),cu("",")"),h,_]),i]:(g0r(a)&&(n=Qr(["(",Gn([Qn,n]),Qn,")"])),u?[" ",n,i]:[Gn([m0,n,i]),h,_])}function Rje(e,t,r,n){let{node:i}=e,a=[],u=kCi(!1,i[n],(s)=>s.type!=="EmptyStatement");return e.each(({node:s})=>{s.type!=="EmptyStatement"&&(a.push(r()),s!==u&&(a.push(Wn),vC(s,t)&&a.push(Wn)))},n),a}function x0r(e,t,r){let n=FCi(e,t,r),{node:i,parent:a}=e;if(i.type==="Program"&&(a==null?void 0:a.type)!=="ModuleExpression")return n?[n,Wn]:"";let u=[];if(i.type==="StaticBlock"&&u.push("static "),u.push("{"),n)u.push(Gn([Wn,n]),Wn);else{let s=e.grandparent;a.type==="ArrowFunctionExpression"||a.type==="FunctionExpression"||a.type==="FunctionDeclaration"||a.type==="ComponentDeclaration"||a.type==="HookDeclaration"||a.type==="ObjectMethod"||a.type==="ClassMethod"||a.type==="ClassPrivateMethod"||a.type==="ForStatement"||a.type==="WhileStatement"||a.type==="DoWhileStatement"||a.type==="DoExpression"||a.type==="ModuleExpression"||a.type==="CatchClause"&&!s.finalizer||a.type==="TSModuleDeclaration"||i.type==="StaticBlock"||u.push(Wn)}return u.push("}"),u}function FCi(e,t,r){let{node:n}=e,i=Ko(n.directives),a=n.body.some((l)=>l.type!=="EmptyStatement"),u=Zi(n,E0.Dangling);if(!i&&!a&&!u)return"";let s=[];return i&&(s.push(Rje(e,t,r,"directives")),(a||u)&&(s.push(Wn),vC(xs(!1,n.directives,-1),t)&&s.push(Wn))),a&&s.push(Rje(e,t,r,"body")),u&&s.push(Hl(e,t)),s}function SCi(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}function PCi(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function NCi(e,t,r){let{node:n}=e;return Qr([n.variance?r("variance"):"","[",Gn([r("keyTparam")," in ",r("sourceType")]),"]",PCi(n.optional),": ",r("propType")])}function D0r(e,t){return e==="+"||e==="-"?e+t:t}function BCi(e,t,r){let{node:n}=e,i=t.objectWrap==="preserve"&&fP(t.originalText,v_(n),v_(n.typeParameter));return Qr(["{",Gn([t.bracketSpacing?m0:Qn,Qr([r("typeParameter"),n.optional?D0r(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?cu(";"):""]),Hl(e,t),t.bracketSpacing?m0:Qn,"}"],{shouldBreak:i})}function qCi(e,t,r){let{node:n}=e;return Wp(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function IR(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let a=Ime(e.grandparent),u=e.match((l)=>!(l[n].length===1&&_P(l[n][0])),void 0,(l,h)=>h==="typeAnnotation",(l)=>l.type==="Identifier",Uir);if(i[n].length===0||!u&&(a||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||Qir(i[n][0]))))return["<",po(", ",e.map(r,n)),$Ci(e,t),">"];let s=i.type==="TSTypeParameterInstantiation"?"":qCi(e,t,n)?",":xC(t)?cu(","):"";return Qr(["<",Gn([Qn,po([",",m0],e.map(r,n))]),s,Qn,">"],{id:AKe(i)})}function $Ci(e,t){let{node:r}=e;if(!Zi(r,E0.Dangling))return"";let n=!Zi(r,E0.Line),i=Hl(e,t,{indent:!n});return n?i:[i,Wn]}function w0r(e,t,r){let{node:n,parent:i}=e,a=[n.const?"const ":""],u=n.type==="TSTypeParameter"?r("name"):n.name;if(i.type==="TSMappedType")return i.readonly&&a.push(D0r(i.readonly,"readonly")," "),a.push("[",u),n.constraint&&a.push(" in ",r("constraint")),i.nameType&&a.push(" as ",e.callParent(()=>r("nameType"))),a.push("]"),a;if(n.variance&&a.push(r("variance")),n.in&&a.push("in "),n.out&&a.push("out "),a.push(u),n.bound&&(n.usesExtendsBound&&a.push(" extends "),a.push(Qh(e,r,"bound"))),n.constraint){let s=Symbol("constraint");a.push(" extends",Qr(Gn(m0),{id:s}),gC,zme(r("constraint"),{groupId:s}))}return n.default&&a.push(" = ",r("default")),Qr(a)}function b0r(e,t,r){let{node:n}=e,i=[Mm(e),Vme(e),"class"],a=Zi(n.id,E0.Trailing)||Zi(n.typeParameters,E0.Trailing)||Zi(n.superClass)||Ko(n.extends)||Ko(n.mixins)||Ko(n.implements),u=[],s=[];if(n.id&&u.push(" ",r("id")),u.push(r("typeParameters")),n.superClass){let _=[MCi(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=e.call((f)=>["extends ",Og(f,_,t)],"superClass");a?s.push(m0,Qr(p)):s.push(" ",p)}else s.push(Jje(e,t,r,"extends"));s.push(Jje(e,t,r,"mixins"),Jje(e,t,r,"implements"));let l;if(a){let _;C0r(n)?_=[...u,Gn(s)]:_=Gn([...u,s]),l=T0r(n),i.push(Qr(_,{id:l}))}else i.push(...u,...s);let h=n.body;return a&&Ko(h.body)?i.push(cu(Wn," ",{groupId:l})):i.push(" "),i.push(r("body")),i}function JCi(e){return cu(Wn,"",{groupId:T0r(e)})}function ICi(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function C0r(e){return e.typeParameters&&!Zi(e.typeParameters,E0.Trailing|E0.Line)&&!ICi(e)}function Jje(e,t,r,n){let{node:i}=e;if(!Ko(i[n]))return"";let a=Hl(e,t,{marker:n});return[C0r(i)?cu(" ",m0,{groupId:AKe(i.typeParameters)}):m0,a,a&&Wn,n,Qr(Gn([m0,po([",",m0],e.map(r,n))]))]}function MCi(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?Qr(cu(["(",Gn([Qn,n]),Qn,")"],n)):n}function E0r(e,t,r){let{node:n}=e,i=[];return Ko(n.decorators)&&i.push(Iir(e,t,r)),i.push(Nme(n)),n.static&&i.push("static "),i.push(Vme(e)),n.override&&i.push("override "),i.push(Gje(e,t,r)),i}function k0r(e,t,r){let{node:n}=e,i=[],a=t.semi?";":"";Ko(n.decorators)&&i.push(Iir(e,t,r)),i.push(Mm(e),Nme(n)),n.static&&i.push("static "),i.push(Vme(e)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(KR(e,t,r),d7(e),s0r(e),Qh(e,r));let u=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[jR(e,t,r,i," =",u?void 0:"value"),a]}function zCi(e,t,r){let{node:n}=e,i=[];return e.each(({node:a,next:u,isLast:s})=>{i.push(r()),!t.semi&&A0r(a)&&VCi(a,u)&&i.push(";"),s||(i.push(Wn),vC(a,t)&&i.push(Wn))},"body"),Zi(n,E0.Dangling)&&i.push(Hl(e,t)),["{",i.length>0?[Gn([Wn,i]),Wn]:"","}"]}function VCi(e,t){var r;let{type:n,name:i}=e.key;if(!e.computed&&n==="Identifier"&&(i==="static"||i==="get"||i==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let a=(r=t.key)==null?void 0:r.name;if(a==="in"||a==="instanceof")return!0}if(A0r(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let a=t.value?t.value.generator:t.generator;return!!(t.computed||a)}case"TSIndexSignature":return!0}return!1}function F0r(e){return LCi(e)?F0r(e.expression):e}function jCi(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function KCi(e,t){if(t.semi||P0r(e,t)||N0r(e,t))return!1;let{node:r,key:n,parent:i}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||n==="consequent"&&i.type==="SwitchCase")&&e.call(()=>S0r(e,t),"expression"))}function S0r(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!m0r(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(Y2(r))return!0}return AJ(e,t)?!0:aKe(r)?e.call(()=>S0r(e,t),...Qnr(r)):!1}function P0r({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&Y2(e.expression)&&t.type==="Program"&&t.body.length===1}function N0r({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function UCi(e,t,r){let n=[r("expression")];if(N0r(e,t)){let i=F0r(e.node.expression);(XCi(i)||jCi(i))&&n.push(";")}else P0r(e,t)||t.semi&&n.push(";");return n}function ZCi(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let i=po([",",m0],n);return t.__isVueForBindingLeft?["(",Gn([Qn,Qr(i)]),Qn,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return po([",",m0],n)}}function OCi(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return qnr(r);case"BigIntLiteral":return eKe(r.extra.raw);case"NumericLiteral":return Dj(r.extra.raw);case"StringLiteral":return fJ(xj(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return $nr(r.extra.raw,t);case"Literal":{if(r.regex)return qnr(r.regex);if(r.bigint)return eKe(r.raw);let{value:n}=r;return typeof n=="number"?Dj(r.raw):typeof n=="string"?QCi(e)?$nr(r.raw,t):fJ(xj(r.raw,t)):String(n)}}}function QCi(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function eKe(e){return e.toLowerCase()}function qnr({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function $nr(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}function WCi(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let a=v_(i);if(a>r)break;let u=fo(i);if(u<t)continue;let s=u-a;n=n.slice(0,a-t)+" ".repeat(s)+n.slice(u-t)}return n}function YCi(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",J0r(n),M0r(e,t,r),I0r(e,t,r),V0r(e,t,r),t.semi?";":""]}function $0r(e,t,r){let{node:n}=e,i=[CTi(e,t,r),Mm(e),"export",q0r(n)?" default":""],{declaration:a,exported:u}=n;return Zi(n,E0.Dangling)&&(i.push(" ",Hl(e,t)),tir(n)&&i.push(Wn)),a?i.push(" ",r("declaration")):(i.push(RCi(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),u&&i.push(" as ",r("exported"))):i.push(M0r(e,t,r)),i.push(I0r(e,t,r),V0r(e,t,r))),i.push(GCi(n,t)),i}function GCi(e,t){return t.semi&&(!e.declaration||q0r(e)&&!HCi(e.declaration))?";":""}function bKe(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function J0r(e,t){return bKe(e.importKind,t)}function RCi(e){return bKe(e.exportKind)}function I0r(e,t,r){let{node:n}=e;if(!n.source)return"";let i=[];return z0r(n,t)&&i.push(" from"),i.push(" ",r("source")),i}function M0r(e,t,r){let{node:n}=e;if(!z0r(n,t))return"";let i=[" "];if(Ko(n.specifiers)){let a=[],u=[];e.each(()=>{let s=e.node.type;if(s==="ExportNamespaceSpecifier"||s==="ExportDefaultSpecifier"||s==="ImportNamespaceSpecifier"||s==="ImportDefaultSpecifier")a.push(r());else if(s==="ExportSpecifier"||s==="ImportSpecifier")u.push(r());else throw new Cj(n,"specifier")},"specifiers"),i.push(po(", ",a)),u.length>0&&(a.length>0&&i.push(", "),u.length>1||a.length>0||n.specifiers.some((s)=>Zi(s))?i.push(Qr(["{",Gn([t.bracketSpacing?m0:Qn,po([",",m0],u)]),cu(xC(t)?",":""),t.bracketSpacing?m0:Qn,"}"])):i.push(["{",t.bracketSpacing?" ":"",...u,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function z0r(e,t){return e.type!=="ImportDeclaration"||Ko(e.specifiers)||e.importKind==="type"?!0:B0r(t,v_(e),v_(e.source)).trimEnd().endsWith("from")}function eEi(e,t){var r,n;if((r=e.extra)!=null&&r.deprecatedAssertSyntax)return"assert";let i=B0r(t,fo(e.source),(n=e.attributes)!=null&&n[0]?v_(e.attributes[0]):fo(e)).trimStart();return i.startsWith("assert")?"assert":i.startsWith("with")||Ko(e.attributes)?"with":void 0}function V0r(e,t,r){let{node:n}=e;if(!n.source)return"";let i=eEi(n,t);if(!i)return"";let a=[` ${i} {`];return Ko(n.attributes)&&(t.bracketSpacing&&a.push(" "),a.push(po(", ",e.map(r,"attributes"))),t.bracketSpacing&&a.push(" ")),a.push("}"),a}function tEi(e,t,r){let{node:n}=e,{type:i}=n,a=i.startsWith("Import"),u=a?"imported":"local",s=a?"local":"exported",l=n[u],h=n[s],_="",p="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?_="*":l&&(_=r(u)),h&&!rEi(n)&&(p=r(s)),[bKe(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),_,_&&p?" as ":"",p]}function rEi(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!awi(t,r))return!1;if(Im(t))return t.value===r.value&&d4(t)===d4(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Xme(e,t,r){var n;let i=t.semi?";":"",{node:a}=e,u=a.type==="ObjectTypeAnnotation",s=a.type==="TSEnumDeclaration"||a.type==="EnumBooleanBody"||a.type==="EnumNumberBody"||a.type==="EnumBigIntBody"||a.type==="EnumStringBody"||a.type==="EnumSymbolBody",l=[a.type==="TSTypeLiteral"||s?"members":a.type==="TSInterfaceBody"?"body":"properties"];u&&l.push("indexers","callProperties","internalSlots");let h=l.flatMap((P)=>e.map(({node:q})=>({node:q,printed:r(),loc:v_(q)}),P));l.length>1&&h.sort((P,q)=>P.loc-q.loc);let{parent:_,key:p}=e,f=u&&p==="body"&&(_.type==="InterfaceDeclaration"||_.type==="DeclareInterface"||_.type==="DeclareClass"),m=a.type==="TSInterfaceBody"||s||f||a.type==="ObjectPattern"&&_.type!=="FunctionDeclaration"&&_.type!=="FunctionExpression"&&_.type!=="ArrowFunctionExpression"&&_.type!=="ObjectMethod"&&_.type!=="ClassMethod"&&_.type!=="ClassPrivateMethod"&&_.type!=="AssignmentPattern"&&_.type!=="CatchClause"&&a.properties.some((P)=>P.value&&(P.value.type==="ObjectPattern"||P.value.type==="ArrayPattern"))||a.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&h.length>0&&fP(t.originalText,v_(a),h[0].loc),d=f?";":a.type==="TSInterfaceBody"||a.type==="TSTypeLiteral"?cu(i,";"):",",x=a.type==="RecordExpression"?"#{":a.exact?"{|":"{",T=a.exact?"|}":"}",A=[],F=h.map((P)=>{let q=[...A,Qr(P.printed)];return A=[d,m0],(P.node.type==="TSPropertySignature"||P.node.type==="TSMethodSignature"||P.node.type==="TSConstructSignatureDeclaration"||P.node.type==="TSCallSignatureDeclaration")&&Zi(P.node,E0.PrettierIgnore)&&A.shift(),vC(P.node,t)&&A.push(Wn),q});if(a.inexact||a.hasUnknownMembers){let P;if(Zi(a,E0.Dangling)){let q=Zi(a,E0.Line);P=[Hl(e,t),q||dy(t.originalText,fo(xs(!1,mj(a),-1)))?Wn:m0,"..."]}else P=["..."];F.push([...A,...P])}let b=(n=xs(!1,h,-1))==null?void 0:n.node,N=!(a.inexact||a.hasUnknownMembers||b&&(b.type==="RestElement"||(b.type==="TSPropertySignature"||b.type==="TSCallSignatureDeclaration"||b.type==="TSMethodSignature"||b.type==="TSConstructSignatureDeclaration")&&Zi(b,E0.PrettierIgnore))),E;if(F.length===0){if(!Zi(a,E0.Dangling))return[x,T,Qh(e,r)];E=Qr([x,Hl(e,t,{indent:!0}),Qn,T,d7(e),Qh(e,r)])}else E=[f&&Ko(a.properties)?JCi(_):"",x,Gn([t.bracketSpacing?m0:Qn,...F]),cu(N&&(d!==","||xC(t))?d:""),t.bracketSpacing?m0:Qn,T,d7(e),Qh(e,r)];return e.match((P)=>P.type==="ObjectPattern"&&!Ko(P.decorators),Ije)||_P(a)&&(e.match(void 0,(P,q)=>q==="typeAnnotation",(P,q)=>q==="typeAnnotation",Ije)||e.match(void 0,(P,q)=>P.type==="FunctionTypeParam"&&q==="typeAnnotation",Ije))||!m&&e.match((P)=>P.type==="ObjectPattern",(P)=>P.type==="AssignmentExpression"||P.type==="VariableDeclarator")?E:Qr(E,{shouldBreak:m})}function Ije(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Oir(e)}function nEi(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let i of["test","consequent","alternate"]){let a=n[i];if(Y2(a))return!0;a.type==="ConditionalExpression"&&t.push(a)}}return!1}function iEi(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",a=i?"alternate":"falseType",{parent:u}=e,s=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return u.type===n.type&&u[a]===n?Qw(2,s):s}function uEi(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let a=e.getParentNode(i);if(a.type==="ChainExpression"&&a.expression===n||$o(a)&&a.callee===n||L_(a)&&a.object===n||a.type==="TSNonNullExpression"&&a.expression===n){n=a;continue}a.type==="NewExpression"&&a.callee===n||Uw(a)&&a.expression===n?(r=e.getParentNode(i+1),n=a):r=a}return n===t?!1:r[aEi.get(r.type)]===n}function oEi(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",a=i?"consequent":"trueType",u=i?"alternate":"falseType",s=i?["test"]:["checkType","extendsType"],l=n[a],h=n[u],_=[],p=!1,{parent:f}=e,m=f.type===n.type&&s.some((M)=>f[M]===n),d=f.type===n.type&&!m,x,T,A=0;do T=x||n,x=e.getParentNode(A),A++;while(x&&x.type===n.type&&s.every((M)=>x[M]!==T));let F=x||f,b=T;if(i&&(Y2(n[s[0]])||Y2(l)||Y2(h)||nEi(b))){p=!0,d=!0;let M=(K)=>[cu("("),Gn([Qn,K]),Qn,cu(")")],O=(K)=>K.type==="NullLiteral"||K.type==="Literal"&&K.value===null||K.type==="Identifier"&&K.name==="undefined";_.push(" ? ",O(l)?r(a):M(r(a))," : ",h.type===n.type||O(h)?r(u):M(r(u)))}else{let M=(K)=>t.useTabs?Gn(r(K)):Qw(2,r(K)),O=[m0,"? ",l.type===n.type?cu("","("):"",M(a),l.type===n.type?cu("",")"):"",m0,": ",M(u)];_.push(f.type!==n.type||f[u]===n||m?O:t.useTabs?sir(Gn(O)):Qw(Math.max(0,t.tabWidth-2),O))}let N=[a,u,...s].some((M)=>Zi(n[M],(O)=>x4(O)&&fP(t.originalText,v_(O),fo(O)))),E=(M)=>f===F?Qr(M,{shouldBreak:N}):N?[M,Ww]:M,P=!p&&(L_(f)||f.type==="NGPipeExpression"&&f.left===n)&&!f.computed,q=uEi(e),$=E([iEi(e,t,r),d?_:Gn(_),i&&P&&!q?Qn:""]);return m||q?Qr([Gn([Qn,$]),Qn]):$}function sEi(e,t){return(L_(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function lEi(e,t,r,n){return[...e.map((i)=>mj(i)),mj(t),mj(r)].flat().some((i)=>x4(i)&&fP(n.originalText,v_(i),fo(i)))}function cEi(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let a=e.getParentNode(i);if(a.type==="ChainExpression"&&a.expression===n||$o(a)&&a.callee===n||L_(a)&&a.object===n||a.type==="TSNonNullExpression"&&a.expression===n){n=a;continue}a.type==="NewExpression"&&a.callee===n||Uw(a)&&a.expression===n?(r=e.getParentNode(i+1),n=a):r=a}return n===t?!1:r[_Ei.get(r.type)]===n}function TKe(e,t,r,n){if(!t.experimentalTernaries)return oEi(e,t,r);let{node:i}=e,a=i.type==="ConditionalExpression",u=pP(i),s=a?"consequent":"trueType",l=a?"alternate":"falseType",h=a?["test"]:["checkType","extendsType"],_=i[s],p=i[l],f=h.map((ut)=>i[ut]),{parent:m}=e,d=m.type===i.type,x=d&&h.some((ut)=>m[ut]===i),T=d&&m[l]===i,A=_.type===i.type,F=p.type===i.type,b=F||T,N=t.tabWidth>2||t.useTabs,E,P,q=0;do P=E||i,E=e.getParentNode(q),q++;while(E&&E.type===i.type&&h.every((ut)=>E[ut]!==P));let $=E||m,M=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(m.type==="AssignmentExpression"||m.type==="VariableDeclarator"||m.type==="ClassProperty"||m.type==="PropertyDefinition"||m.type==="ClassPrivateProperty"||m.type==="ObjectProperty"||m.type==="Property"),O=(m.type==="ReturnStatement"||m.type==="ThrowStatement")&&!(A||F),K=a&&$.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",ue=cEi(e),Q=sEi(i,m),G=u&&AJ(e,t),Z=N?t.useTabs?"\t":" ".repeat(t.tabWidth-1):"",ee=lEi(f,_,p,t)||A||F,ge=!b&&!d&&!u&&(K?_.type==="NullLiteral"||_.type==="Literal"&&_.value===null:sKe(_,t)&&fnr(i.test,3)),Fe=b||T||u&&!d||d&&a&&fnr(i.test,1)||ge,He=[];!A&&Zi(_,E0.Dangling)&&e.call((ut)=>{He.push(Hl(ut,t),Wn)},"consequent");let xe=[];Zi(i.test,E0.Dangling)&&e.call((ut)=>{xe.push(Hl(ut,t))},"test"),!F&&Zi(p,E0.Dangling)&&e.call((ut)=>{xe.push(Hl(ut,t))},"alternate"),Zi(i,E0.Dangling)&&xe.push(Hl(e,t));let $e=Symbol("test"),Ie=Symbol("consequent"),te=Symbol("test-and-consequent"),de=a?[Mje(r("test")),i.test.type==="ConditionalExpression"?Ww:""]:[r("checkType")," ","extends"," ",pP(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):Qr(Mje(r("extendsType")))],Xe=Qr([de," ?"],{id:$e}),Ne=r(s),Ce=Gn([A||K&&(Y2(_)||d||b)?Wn:m0,He,Ne]),pe=Fe?Qr([Xe,b?Ce:cu(Ce,Qr(Ce,{id:Ie}),{groupId:$e})],{id:te}):[Xe,Ce],ie=r(l),ke=ge?cu(ie,sir(Mje(ie)),{groupId:te}):ie,Je=[pe,xe.length>0?[Gn([Wn,xe]),Wn]:F?Wn:ge?cu(m0," ",{groupId:te}):m0,":",F?" ":N?Fe?cu(Z,cu(b||ge?" ":Z," "),{groupId:te}):cu(Z," "):" ",F?ke:Qr([Gn(ke),K&&!ge?Qn:""]),Q&&!ue?Qn:"",ee?Ww:""];return M&&!ee?Qr(Gn([Qn,Qr(Je)])):M||O?Qr(Gn(Je)):ue||u&&x?Qr([Gn([Qn,Je]),G?Qn:""]):m===$?Qr(Je):Je}function hEi(e,t,r,n){let{node:i}=e;if(uKe(i))return OCi(e,t);let a=t.semi?";":"",u=[];switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),Wn];case"File":return ZCi(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return UCi(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!Zi(i.expression)&&(Qg(i.expression)||Wh(i.expression))?["(",r("expression"),")"]:Qr(["(",Gn([Qn,r("expression")]),Qn,")"]);case"AssignmentExpression":return MTi(e,t,r);case"VariableDeclarator":return zTi(e,t,r);case"BinaryExpression":case"LogicalExpression":return Jir(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return $Ti(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return i.object&&u.push(r("object")),u.push(Qr(Gn([Qn,l0r(e,t,r)]))),u;case"Identifier":return[i.name,d7(e),s0r(e),Qh(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return _0r(e,r);case"FunctionDeclaration":case"FunctionExpression":return f0r(e,r,t,n);case"ArrowFunctionExpression":return wCi(e,t,r,n);case"YieldExpression":return u.push("yield"),i.delegate&&u.push("*"),i.argument&&u.push(" ",r("argument")),u;case"AwaitExpression":if(u.push("await"),i.argument){u.push(" ",r("argument"));let{parent:s}=e;if($o(s)&&s.callee===i||L_(s)&&s.object===i){u=[Gn([Qn,...u]),Qn];let l=e.findAncestor((h)=>h.type==="AwaitExpression"||h.type==="BlockStatement");if((l==null?void 0:l.type)!=="AwaitExpression"||!f7(l.argument,(h)=>h===i))return Qr(u)}}return u;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return $0r(e,t,r);case"ImportDeclaration":return YCi(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return tEi(e,t,r);case"ImportAttribute":return qje(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return x0r(e,t,r);case"ClassBody":return zCi(e,t,r);case"ThrowStatement":return vCi(e,t,r);case"ReturnStatement":return xCi(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return jir(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Xme(e,t,r);case"Property":return Jme(i)?Gje(e,t,r):qje(e,t,r);case"ObjectProperty":return qje(e,t,r);case"ObjectMethod":return Gje(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return DKe(e,t,r);case"SequenceExpression":{let{parent:s}=e;if(s.type==="ExpressionStatement"||s.type==="ForStatement"){let l=[];return e.each(({isFirst:h})=>{h?l.push(r()):l.push(",",Gn([m0,r()]))},"expressions"),Qr(l)}return Qr(po([",",m0],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),a];case"UnaryExpression":return u.push(i.operator),/[a-z]$/u.test(i.operator)&&u.push(" "),Zi(i.argument)?u.push(Qr(["(",Gn([Qn,r("argument")]),Qn,")"])):u.push(r("argument")),u;case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return TKe(e,t,r,n);case"VariableDeclaration":{let s=e.map(r,"declarations"),l=e.parent,h=l.type==="ForStatement"||l.type==="ForInStatement"||l.type==="ForOfStatement",_=i.declarations.some((f)=>f.init),p;return s.length===1&&!Zi(i.declarations[0])?p=s[0]:s.length>0&&(p=Gn(s[0])),u=[Mm(e),i.kind,p?[" ",p]:"",Gn(s.slice(1).map((f)=>[",",_&&!h?Wn:m0,f]))],h&&l.body!==i||u.push(a),Qr(u)}case"WithStatement":return Qr(["with (",r("object"),")",sP(i.body,r("body"))]);case"IfStatement":{let s=sP(i.consequent,r("consequent")),l=Qr(["if (",Qr([Gn([Qn,r("test")]),Qn]),")",s]);if(u.push(l),i.alternate){let h=Zi(i.consequent,E0.Trailing|E0.Line)||tir(i),_=i.consequent.type==="BlockStatement"&&!h;u.push(_?" ":Wn),Zi(i,E0.Dangling)&&u.push(Hl(e,t),h?Wn:" "),u.push("else",Qr(sP(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return u}case"ForStatement":{let s=sP(i.body,r("body")),l=Hl(e,t),h=l?[l,Qn]:"";return!i.init&&!i.test&&!i.update?[h,Qr(["for (;;)",s])]:[h,Qr(["for (",Qr([Gn([Qn,r("init"),";",m0,r("test"),";",m0,r("update")]),Qn]),")",s])]}case"WhileStatement":return Qr(["while (",Qr([Gn([Qn,r("test")]),Qn]),")",sP(i.body,r("body"))]);case"ForInStatement":return Qr(["for (",r("left")," in ",r("right"),")",sP(i.body,r("body"))]);case"ForOfStatement":return Qr(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",sP(i.body,r("body"))]);case"DoWhileStatement":{let s=sP(i.body,r("body"));return u=[Qr(["do",s])],i.body.type==="BlockStatement"?u.push(" "):u.push(Wn),u.push("while (",Qr([Gn([Qn,r("test")]),Qn]),")",a),u}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return u.push(i.type==="BreakStatement"?"break":"continue"),i.label&&u.push(" ",r("label")),u.push(a),u;case"LabeledStatement":return i.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let s=Zi(i.param,(h)=>!x4(h)||h.leading&&dy(t.originalText,fo(h))||h.trailing&&dy(t.originalText,v_(h),{backwards:!0})),l=r("param");return["catch ",s?["(",Gn([Qn,l]),Qn,") "]:["(",l,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[Qr(["switch (",Gn([Qn,r("discriminant")]),Qn,")"])," {",i.cases.length>0?Gn([Wn,po(Wn,e.map(({node:s,isLast:l})=>[r(),!l&&vC(s,t)?Wn:""],"cases"))]):"",Wn,"}"];case"SwitchCase":{i.test?u.push("case ",r("test"),":"):u.push("default:"),Zi(i,E0.Dangling)&&u.push(" ",Hl(e,t));let s=i.consequent.filter((l)=>l.type!=="EmptyStatement");if(s.length>0){let l=Rje(e,t,r,"consequent");u.push(s.length===1&&s[0].type==="BlockStatement"?[" ",l]:Gn([Wn,l]))}return u}case"DebuggerStatement":return["debugger",a];case"ClassDeclaration":case"ClassExpression":return b0r(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return E0r(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return k0r(e,t,r);case"TemplateElement":return fJ(i.value.raw);case"TemplateLiteral":return Cir(e,r,t);case"TaggedTemplateExpression":return QAi(e,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"InterpreterDirective":default:throw new Cj(i,"ESTree")}}function L0r(e,t,r){let{parent:n,node:i,key:a}=e,u=[r("expression")];switch(i.type){case"AsConstExpression":u.push(" as const");break;case"AsExpression":case"TSAsExpression":u.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":u.push(" satisfies ",r("typeAnnotation"));break}return a==="callee"&&$o(n)||a==="object"&&L_(n)?Qr([Gn([Qn,...u]),Qn]):u}function pEi(e,t,r){let{node:n}=e,i=[Mm(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let a=fEi(e,r,t);return n.rendersType?i.push(Qr([a," ",r("rendersType")])):i.push(Qr([a])),n.body&&i.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function fEi(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",Hl(e,r,{filter:(u)=>Wg(r.originalText,fo(u))===")"}),")"];let a=[];return dEi(e,(u,s)=>{let l=s===i.length-1;l&&n.rest&&a.push("..."),a.push(t()),!l&&(a.push(","),vC(i[s],r)?a.push(Wn,Wn):a.push(m0))}),["(",Gn([Qn,...a]),cu(xC(r,"all")&&!mEi(n,i)?",":""),Qn,")"]}function mEi(e,t){var r;return e.rest||((r=xs(!1,t,-1))==null?void 0:r.type)==="RestElement"}function dEi(e,t){let{node:r}=e,n=0,i=(a)=>t(a,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}function yEi(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function gEi(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function X0r(e,t,r){return Xme(e,r,t)}function j0r(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=t("initializer")),r.init&&(i=t("init")),i?[n," = ",i]:n}function xEi(e,t,r){let{node:n}=e,i;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":i="boolean";break;case"EnumNumberBody":i="number";break;case"EnumBigIntBody":i="bigint";break;case"EnumStringBody":i="string";break;case"EnumSymbolBody":i="symbol";break}return[i?`of ${i} `:"",X0r(e,t,r)]}function K0r(e,t,r){let{node:n}=e;return[Mm(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?X0r(e,t,r):t("body")]}function vEi(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let a=bJ(e,r,t,!1,!0),u=Lme(e,r),s=Ej(n,u);return i.push(Qr([s?Qr(a):a,u]),n.body?" ":"",r("body")),i}function DEi(e,t,r){let{node:n}=e,i=[Mm(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}function Jnr(e){var t;let{node:r}=e;return r.type==="HookTypeAnnotation"&&((t=e.getParentNode(2))==null?void 0:t.type)==="DeclareHook"}function wEi(e,t,r){let{node:n}=e,i=[];i.push(Jnr(e)?"":"hook ");let a=bJ(e,r,t,!1,!0),u=[];return u.push(Jnr(e)?": ":" => ",r("returnType")),Ej(n,u)&&(a=Qr(a)),i.push(a,u),Qr(i)}function U0r(e,t,r){let{node:n}=e,i=[Mm(e),"interface"],a=[],u=[];n.type!=="InterfaceTypeAnnotation"&&a.push(" ",r("id"),r("typeParameters"));let s=n.typeParameters&&!Zi(n.typeParameters,E0.Trailing|E0.Line);return Ko(n.extends)&&u.push(s?cu(" ",m0,{groupId:AKe(n.typeParameters)}):m0,"extends ",(n.extends.length===1?Pwi:Gn)(po([",",m0],e.map(r,"extends")))),Zi(n.id,E0.Trailing)||Ko(n.extends)?s?i.push(Qr([...a,Gn(u)])):i.push(Qr(Gn([...a,...u]))):i.push(...a,...u),i.push(" ",r("body")),Qr(i)}function AEi(e,t,r){let{node:n}=e;if(Znr(n))return n.type.slice(0,-14).toLowerCase();let i=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return pEi(e,t,r);case"ComponentParameter":return yEi(e,t,r);case"ComponentTypeParameter":return gEi(e,t,r);case"HookDeclaration":return vEi(e,t,r);case"DeclareHook":return DEi(e,t,r);case"HookTypeAnnotation":return wEi(e,t,r);case"DeclareClass":return b0r(e,t,r);case"DeclareFunction":return[Mm(e),"function ",r("id"),r("predicate"),i];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Qh(e,r),i];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Mm(e),n.kind??"var"," ",r("id"),i];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return $0r(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return iCi(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Wir(e,t,r);case"IntersectionTypeAnnotation":return Yir(e,t,r);case"UnionTypeAnnotation":return Hir(e,t,r);case"ConditionalTypeAnnotation":return TKe(e,t,r);case"InferTypeAnnotation":return e0r(e,t,r);case"FunctionTypeAnnotation":return Gir(e,t,r);case"TupleTypeAnnotation":return DKe(e,t,r);case"TupleTypeLabeledElement":return r0r(e,t,r);case"TupleTypeSpreadElement":return t0r(e,t,r);case"GenericTypeAnnotation":return[r("id"),IR(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Rir(e,t,r);case"TypeAnnotation":return i0r(e,t,r);case"TypeParameter":return w0r(e,t,r);case"TypeofTypeAnnotation":return u0r(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return a0r(r);case"DeclareEnum":case"EnumDeclaration":return K0r(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return xEi(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return j0r(e,r);case"FunctionTypeParam":{let a=n.name?r("name"):e.parent.this===n?"this":"";return[a,d7(e),a?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return U0r(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:a}=n;return iKe.ok(a==="plus"||a==="minus"),a==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return NCi(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let a="";return n.proto?a="proto ":n.static&&(a="static "),[a,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",KR(e,t,r),d7(e),Jme(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return Xme(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",d7(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return _0r(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return fJ(xj(d4(n),t));case"NumberLiteralTypeAnnotation":return Dj(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return eKe(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),Qh(e,r),")"];case"TypePredicate":return o0r(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return IR(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return L0r(e,t,r)}}function bEi(e,t,r){var n;let{node:i}=e;if(!i.type.startsWith("TS"))return;if(Onr(i))return i.type.slice(2,-7).toLowerCase();let a=t.semi?";":"",u=[];switch(i.type){case"TSThisType":return"this";case"TSTypeAssertion":{let s=!(Wh(i.expression)||Qg(i.expression)),l=Qr(["<",Gn([Qn,r("typeAnnotation")]),Qn,">"]),h=[cu("("),Gn([Qn,r("expression")]),Qn,cu(")")];return s?pJ([[l,r("expression")],[l,Qr(h,{shouldBreak:!0})],[l,r("expression")]]):Qr([l,r("expression")])}case"TSDeclareFunction":return f0r(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),a];case"TSModuleBlock":return x0r(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Xme(e,t,r);case"TSTypeAliasDeclaration":return Wir(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return E0r(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return k0r(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(i.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return Cir(e,r,t);case"TSNamedTupleMember":return r0r(e,t,r);case"TSRestType":return t0r(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return U0r(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return IR(e,t,r,"params");case"TSTypeParameter":return w0r(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return L0r(e,t,r);case"TSArrayType":return a0r(r);case"TSPropertySignature":return[i.readonly?"readonly ":"",KR(e,t,r),d7(e),Qh(e,r)];case"TSParameterProperty":return[Nme(i),i.static?"static ":"",i.override?"override ":"",i.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return u0r(e,r);case"TSIndexSignature":{let s=i.parameters.length>1?cu(xC(t)?",":""):"",l=Qr([Gn([Qn,po([", ",Qn],e.map(r,"parameters"))]),s,Qn]),h=e.parent.type==="ClassBody"&&e.key==="body";return[h&&i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?l:"","]",Qh(e,r),h?a:""]}case"TSTypePredicate":return o0r(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return["import(",r("argument"),")",i.qualifier?[".",r("qualifier")]:"",IR(e,t,r,i.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Rir(e,t,r);case"TSTypeOperator":return[i.operator," ",r("typeAnnotation")];case"TSMappedType":return BCi(e,t,r);case"TSMethodSignature":{let s=i.kind&&i.kind!=="method"?`${i.kind} `:"";u.push(Nme(i),s,i.computed?"[":"",r("key"),i.computed?"]":"",d7(e));let l=bJ(e,r,t,!1,!0),h=i.returnType?"returnType":"typeAnnotation",_=i[h],p=_?Qh(e,r,h):"",f=Ej(i,p);return u.push(f?Qr(l):l),_&&u.push(Qr(p)),Qr(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return K0r(e,r,t);case"TSEnumMember":return j0r(e,r);case"TSImportEqualsDeclaration":return[i.isExport?"export ":"","import ",J0r(i,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:s}=e,l=s.type==="TSModuleDeclaration",h=((n=i.body)==null?void 0:n.type)==="TSModuleDeclaration";return l?u.push("."):(u.push(Mm(e)),i.kind!=="global"&&u.push(i.kind," ")),u.push(r("id")),h?u.push(r("body")):i.body?u.push(" ",Qr(r("body"))):u.push(a),u}case"TSConditionalType":return TKe(e,t,r);case"TSInferType":return e0r(e,t,r);case"TSIntersectionType":return Yir(e,t,r);case"TSUnionType":return Hir(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Gir(e,t,r);case"TSTupleType":return DKe(e,t,r);case"TSTypeReference":return[r("typeName"),IR(e,t,r,i.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return i0r(e,t,r);case"TSEmptyBodyFunctionExpression":return wKe(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Nnr(e,r,"?");case"TSJSDocNonNullableType":return Nnr(e,r,"!");case"TSParenthesizedType":default:throw new Cj(i,"TypeScript")}}function TEi(e,t,r,n){if($ir(e))return Vbi(e,t);for(let i of[ATi,dTi,AEi,bEi,hEi]){let a=i(e,t,r,n);if(a!==void 0)return a}}function EEi(e,t,r,n){var i;e.isRoot&&((i=t.__onHtmlBindingRoot)==null||i.call(t,e.node,t));let a=TEi(e,t,r,n);if(!a)return"";let{node:u}=e;if(CEi(u))return a;let s=Ko(u.decorators),l=ETi(e,t,r),h=u.type==="ClassExpression";if(s&&!h)return Xje(a,(f)=>Qr([l,f]));let _=AJ(e,t),p=KCi(e,t);return!l&&!_&&!p?a:Xje(a,(f)=>[p?";":"",_?"(":"",_&&h&&s?[Gn([m0,l,f]),m0]:[l,f],_?")":""])}function $Ei(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),Wn];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",Gn([Wn,po([",",Wn],i)]),Wn,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",Gn([Wn,po([",",Wn],e.map(r,"properties"))]),Wn,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Inr(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Inr(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Cj(n,"JSON")}}function Inr(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}function O0r(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,i]of e.elements.entries())i===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}var FDi,Mnr=(e)=>{throw TypeError(e)},Bme=(e,t)=>{for(var r in t)FDi(e,r,{get:t[r],enumerable:!0})},znr=(e,t,r)=>t.has(e)||Mnr("Cannot "+r),oP=(e,t,r)=>(znr(e,t,"read from private field"),r?r.call(e):t.get(e)),SDi=(e,t,r)=>t.has(e)?Mnr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),PDi=(e,t,r,n)=>(znr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Vnr,NDi,Lnr,BDi=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Oh,qDi=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},xs,JDi,VDi=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,jDi=(e)=>!(LDi(e)||XDi(e)),KDi,dj,Oia,yj,ZDi,ODi,gj,dy,tKe,rKe,nKe,Ko,Xnr,iKe,vme="'",pnr='"',jnr,rwi,xj,NR=null,uwi=10,Knr,lwi,_wi,Unr,is,hwi,x4,pwi,Znr,dwi,Onr,wj,xwi,Wh,Qg,uKe,Dwi,_P,MR,Y2,dC,bwi,Cwi,Gnr=(e)=>(t)=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),$o,L_,kwi=0.25,Swi,dnr,Dme,Vje,Nwi,Fje,Sje,E0,nir=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,i)=>!(e&E0.Leading&&!r.leading||e&E0.Trailing&&!r.trailing||e&E0.Dangling&&(r.leading||r.trailing)||e&E0.Block&&!x4(r)||e&E0.Line&&!wj(r)||e&E0.First&&n!==0||e&E0.Last&&n!==i.length-1||e&E0.PrettierIgnore&&!Sme(r)||t&&!t(r))},vC=(e,{originalText:t})=>nKe(t,fo(e)),Uw,hP,_Ke,pP,Jwi,hj=(e)=>{for(let t of e.quasis)delete t.value},Iwi,dJ="string",yC="array",Aj="cursor",yJ="indent",gJ="align",xJ="trim",y4="group",mP="fill",Zw="if-break",vJ="indent-if-break",DJ="line-suffix",dP="line-suffix-boundary",zm="line",wC="label",AC="break-parent",air,yP,zwi=(e)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),Lwi,zR,gnr,cKe,pKe=()=>{},Ow,oir,Ywi,gC,Ww,_ir,Gwi,m0,Qn,Wn,cir,wme,tAi,hir,Tj,Wg,fP,pir,dAi,yAi,gAi,kAi,FAi,wir,IAi,Jm,Kw,fj,Kje,UAi,OAi,Oje,obi,hbi,Nje=0,fbi,mbi,ybi,wbi,Tbi,Cbi,Ebi,Pir,kbi,wnr,Fbi,Anr,Sbi,Nir,Jbi,Vbi,Lbi,AJ,Qbi,Wbi=()=>!0,Gbi,Cj,Ug,eTi=class{constructor(e){SDi(this,Ug),PDi(this,Ug,new Set(e))}getLeadingWhitespaceCount(e){let t=oP(this,Ug),r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=oP(this,Ug),r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return oP(this,Ug).has(e.charAt(0))}hasTrailingWhitespace(e){return oP(this,Ug).has(xs(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${Rbi([...oP(this,Ug)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=oP(this,Ug);return Array.prototype.some.call(e,(r)=>t.has(r))}hasNonWhitespaceCharacter(e){let t=oP(this,Ug);return Array.prototype.some.call(e,(r)=>!t.has(r))}isWhitespaceOnly(e){let t=oP(this,Ug);return Array.prototype.every.call(e,(r)=>t.has(r))}},tTi,Tme,Bje=(e)=>e===""||e===m0||e===Wn||e===Qn,iTi,$ir,DTi=0,Enr=(e)=>e.type==="BinaryExpression"&&e.operator==="|",bTi,Pme,Hje,qTi=(e)=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),$o(e)&&v4(e).length>0),JTi,KTi,OTi,tCi,rCi,uCi,n0r=(e)=>e.match((t)=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match((t)=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match((t)=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match((t)=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match((t)=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":",oCi,sCi,hCi,pCi=(e)=>hCi.test(e),fCi,Dj,Eme,yCi=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Jme(r)),$je,g0r=(e)=>e.type==="SequenceExpression",ECi=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return i}}},kCi,v0r,AKe,A0r,T0r,LCi,XCi,B0r,q0r=(e)=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default,HCi,aEi,_Ei,Mje=(e)=>[cu("("),Gn([Qn,e]),Qn,cu(")")],CEi,kEi,FEi,SEi,Z0r,PEi,NEi,BEi,qEi,JEi,BR,lP="JavaScript",IEi,Q0r,W0r,Y0r,MEi;var G0r=Is(()=>{FDi=Object.defineProperty,Vnr={};Bme(Vnr,{languages:()=>Y0r,options:()=>Q0r,printers:()=>W0r});NDi=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],Lnr={};Bme(Lnr,{canAttachComment:()=>MAi,embed:()=>Tbi,experimentalFeatures:()=>FEi,getCommentChildNodes:()=>zAi,getVisitorKeys:()=>Unr,handleComments:()=>hir,insertPragma:()=>Mbi,isBlockComment:()=>x4,isGap:()=>VAi,massageAstNode:()=>Iwi,print:()=>kEi,printComment:()=>rAi,willPrintOwnComments:()=>Air});Oh=BDi,xs=qDi;JDi=$Di;KDi=/[^\x20-\x7F]/u;dj=UDi;Oia=qme(/\s/u),yj=qme(" "),ZDi=qme(",; "),ODi=qme(/[^\n\r]/u);gj=QDi;dy=WDi;tKe=YDi;rKe=HDi;nKe=GDi;Ko=RDi,Xnr=new Proxy(()=>{},{get:()=>Xnr}),iKe=Xnr;jnr=ewi;rwi=twi;xj=nwi;for(let e=0;e<=uwi;e++)$R();Knr=swi,lwi={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},_wi=Knr(lwi),Unr=_wi;is=cwi,hwi=is(["Block","CommentBlock","MultiLine"]),x4=hwi,pwi=is(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Znr=pwi;dwi=mwi;Onr=ywi;wj=is(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),xwi=is(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Wh=is(["ArrayExpression","TupleExpression"]),Qg=is(["ObjectExpression","RecordExpression"]);uKe=is(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Dwi=is(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),_P=is(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),MR=is(["FunctionExpression","ArrowFunctionExpression"]);Y2=is(["JSXElement","JSXFragment"]);dC=is(["BinaryExpression","LogicalExpression","NGPipeExpression"]);bwi=is(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);Cwi=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];$o=Gnr(is(["CallExpression","OptionalCallExpression"])),L_=Gnr(is(["MemberExpression","OptionalMemberExpression"]));Swi=new Set(["!","-","+","~"]);dnr={"==":!0,"!=":!0,"===":!0,"!==":!0},Dme={"*":!0,"/":!0,"%":!0},Vje={">>":!0,">>>":!0,"<<":!0};Nwi=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map((r)=>[r,t])));Fje=new WeakMap;Sje=new WeakMap;E0={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256};Uw=is(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),hP=is(["TSUnionType","UnionTypeAnnotation"]),_Ke=is(["TSIntersectionType","IntersectionTypeAnnotation"]),pP=is(["TSConditionalType","ConditionalTypeAnnotation"]),Jwi=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]);iir.ignoredProperties=Jwi;Iwi=iir,air=new Set([Aj,yJ,gJ,xJ,y4,mP,Zw,vJ,DJ,dP,zm,wC,AC]);yP=Mwi;Lwi=class extends Error{name="InvalidDocError";constructor(e){super(Vwi(e)),this.doc=e}},zR=Lwi,gnr={};cKe=Xwi;Ow=pKe,oir=pKe,Ywi=pKe;gC={type:dP},Ww={type:AC},_ir={type:zm,hard:!0},Gwi={type:zm,hard:!0,literal:!0},m0={type:zm},Qn={type:zm,soft:!0},Wn=[_ir,Ww],cir=[Gwi,Ww],wme={type:Aj};tAi=eAi;hir={};Bme(hir,{endOfLine:()=>_Ai,ownLine:()=>lAi,remaining:()=>cAi});Tj=aAi;Wg=uAi;fP=oAi;pir=sAi;dAi=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);yAi=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);gAi=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);kAi=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),FAi=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);wir=is(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),IAi=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);Jm=Symbol("MODE_BREAK"),Kw=Symbol("MODE_FLAT"),fj=Symbol("cursor"),Kje=Symbol("DOC_FILL_PRINTED_LENGTH");UAi=KAi;OAi=ZAi;Oje=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];obi=ubi;hbi=cbi;fbi=Sir.bind(void 0,"html"),mbi=Sir.bind(void 0,"angular");ybi=dbi;wbi=vbi;Tbi=Abi,Cbi=/\*\/$/,Ebi=/^\/\*\*?/,Pir=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,kbi=/(^|\s+)\/\/([^\n\r]*)/g,wnr=/^(\r?\n)+/,Fbi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Anr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Sbi=/(\r?\n|^) *\* ?/g,Nir=[];Jbi=$bi;Vbi=zbi;Lbi=is(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);AJ=Qje;Qbi=Obi;Gbi=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Cj=Gbi;Ug=new WeakMap;tTi=eTi,Tme=new tTi(`
|
|
440
|
+
`)),l=t.singleAttributePerLine&&a.attributes.length>1?Wn:m0;return Qr(["<",r("name"),a.typeArguments?r("typeArguments"):r("typeParameters"),Gn(e.map(()=>[l,r()],"attributes")),...lTi(a,t,u)],{shouldBreak:s})}function lTi(e,t,r){return e.selfClosing?[m0,"/>"]:_Ti(e,t,r)?[">"]:[Qn,">"]}function _Ti(e,t,r){let n=e.attributes.length>0&&Zi(xs(!1,e.attributes,-1),E0.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function cTi(e,t,r){let{node:n}=e,i=[];i.push("</");let a=r("name");return Zi(n.name,E0.Leading|E0.Line)?i.push(Gn([Wn,a]),Wn):Zi(n.name,E0.Leading|E0.Block)?i.push(" ",a):i.push(a),i.push(">"),i}function hTi(e,t){let{node:r}=e,n=Zi(r),i=Zi(r,E0.Line),a=r.type==="JSXOpeningFragment";return[a?"<":"</",Gn([i?Wn:n&&!a?" ":"",Hl(e,t)]),i?Wn:"",">"]}function pTi(e,t,r){let n=Og(e,rTi(e,t,r),t);return aTi(e,n,t)}function fTi(e,t){let{node:r}=e,n=Zi(r,E0.Line);return[Hl(e,t,{indent:n}),n?Wn:""]}function mTi(e,t,r){let{node:n}=e;return["{",e.call(({node:i})=>{let a=["...",r()];return!Zi(i)||!Air(e)?a:[Gn([Qn,Og(e,a,t)]),Qn]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function dTi(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return uTi(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return po(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return po(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return mTi(e,t,r);case"JSXExpressionContainer":return oTi(e,t,r);case"JSXFragment":case"JSXElement":return pTi(e,t,r);case"JSXOpeningElement":return sTi(e,t,r);case"JSXClosingElement":return cTi(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return hTi(e,t);case"JSXEmptyExpression":return fTi(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Cj(n,"JSX")}}function yTi(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!VR(t)}function VR(e){return e.type==="JSXText"&&(Tme.hasNonWhitespaceCharacter(d4(e))||!/\n/u.test(d4(e)))}function gTi(e){return e.type==="JSXExpressionContainer"&&Im(e.expression)&&e.expression.value===" "&&!Zi(e.expression)}function xTi(e){let{node:t,parent:r}=e;if(!Y2(t)||!Y2(r))return!1;let{index:n,siblings:i}=e,a;for(let u=n;u>0;u--){let s=i[u-1];if(!(s.type==="JSXText"&&!VR(s))){a=s;break}}return(a==null?void 0:a.type)==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&Mme(a.expression)}function vTi(e){return Mme(e.node)||xTi(e)}function Jir(e,t,r){var n;let{node:i,parent:a,grandparent:u,key:s}=e,l=s!=="body"&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),h=i.operator==="|>"&&((n=e.root.extra)==null?void 0:n.__isUsingHackPipeline),_=Yje(e,r,t,!1,l);if(l)return _;if(h)return Qr(_);if($o(a)&&a.callee===i||a.type==="UnaryExpression"||L_(a)&&!a.computed)return Qr([Gn([Qn,..._]),Qn]);let p=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||i.operator!=="|"&&a.type==="JsExpressionRoot"||i.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&t.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||i===a.body&&a.type==="ArrowFunctionExpression"||i!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!$o(u)||a.type==="TemplateLiteral",f=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractPropertyDefinition"||a.type==="ClassPrivateProperty"||DC(a),m=dC(i.left)&&lKe(i.operator,i.left.operator);if(p||LR(i)&&!m||!LR(i)&&f)return Qr(_);if(_.length===0)return"";let d=Y2(i.right),x=_.findIndex((E)=>typeof E!="string"&&!Array.isArray(E)&&E.type===y4),T=_.slice(0,x===-1?1:x+1),A=_.slice(T.length,d?-1:void 0),F=Symbol("logicalChain-"+ ++DTi),b=Qr([...T,Gn(A)],{id:F});if(!d)return b;let N=xs(!1,_,-1);return Qr([b,zme(N,{groupId:F})])}function Yje(e,t,r,n,i){var a;let{node:u}=e;if(!dC(u))return[Qr(t())];let s=[];lKe(u.operator,u.left.operator)?s=e.call((T)=>Yje(T,t,r,!0,i),"left"):s.push(Qr(t("left")));let l=LR(u),h=(u.operator==="|>"||u.type==="NGPipeExpression"||wTi(e,r))&&!cP(r.originalText,u.right),_=!Zi(u.right,E0.Leading,pir)&&cP(r.originalText,u.right),p=u.type==="NGPipeExpression"?"|":u.operator,f=u.type==="NGPipeExpression"&&u.arguments.length>0?Qr(Gn([Qn,": ",po([m0,": "],e.map(()=>Qw(2,Qr(t())),"arguments"))])):"",m;if(l)m=[p," ",t("right"),f];else{let T=p==="|>"&&((a=e.root.extra)==null?void 0:a.__isUsingHackPipeline)?e.call((A)=>Yje(A,t,r,!0,i),"right"):t("right");if(r.experimentalOperatorPosition==="start"){let A="";if(_)switch(yP(T)){case yC:A=T.splice(0,1)[0];break;case wC:A=T.contents.splice(0,1)[0];break}m=[m0,A,p," ",T,f]}else m=[h?m0:"",p,h?" ":m0,T,f]}let{parent:d}=e,x=Zi(u.left,E0.Trailing|E0.Line);if((x||!(i&&u.type==="LogicalExpression")&&d.type!==u.type&&u.left.type!==u.type&&u.right.type!==u.type)&&(m=Qr(m,{shouldBreak:x})),r.experimentalOperatorPosition==="start"?s.push(l||_?" ":"",m):s.push(h?"":" ",m),n&&Zi(u)){let T=hKe(Og(e,s,r));return T.type===mP?T.parts:Array.isArray(T)?T:[T]}return s}function LR(e){return e.type!=="LogicalExpression"?!1:!!(Qg(e.right)&&e.right.properties.length>0||Wh(e.right)&&e.right.elements.length>0||Y2(e.right))}function wTi(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Enr(e.node)&&!e.hasAncestor((r)=>!Enr(r)&&r.type!=="JsExpressionRoot")}function ATi(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return[r("node"),Zi(n.node)?" //"+mj(n.node)[0].value.trimEnd():""];case"NGPipeExpression":return Jir(e,t,r);case"NGChainedExpression":return Qr(po([";",m0],e.map(()=>TTi(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":knr(e)?" ":[";",m0],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:i,parent:a}=e,u=knr(e)||(i===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||(i===2||i===3)&&(n.key.name==="else"&&a.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[i-1].key.name==="then"||n.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[r("key"),u?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new Cj(n,"Angular")}}function knr({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function TTi({node:e}){return zje(e,bTi)}function Iir(e,t,r){let{node:n}=e;return Qr([po(m0,e.map(r,"decorators")),Mir(n,t)?Wn:m0])}function CTi(e,t,r){return zir(e.node)?[po(Wn,e.map(r,"declaration","decorators")),Wn]:""}function ETi(e,t,r){let{node:n,parent:i}=e,{decorators:a}=n;if(!Ko(a)||zir(i)||$ir(e))return"";let u=n.type==="ClassExpression"||n.type==="ClassDeclaration"||Mir(n,t);return[e.key==="declaration"&&xwi(i)?Wn:u?Ww:"",po(m0,e.map(r,"decorators")),m0]}function Mir(e,t){return e.decorators.some((r)=>dy(t.originalText,fo(r)))}function zir(e){var t;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let r=(t=e.declaration)==null?void 0:t.decorators;return Ko(r)&&$me(e,r[0])}function kTi(e,t,r){let{node:n}=e,i=v4(n);if(i.length===0)return["(",Hl(e,t),")"];let a=i.length-1;if(PTi(i)){let p=["("];return Fme(e,(f,m)=>{p.push(r()),m!==a&&p.push(", ")}),p.push(")"),p}let u=!1,s=[];Fme(e,({node:p},f)=>{let m=r();f===a||(vC(p,t)?(u=!0,m=[m,",",Wn,Wn]):m=[m,",",m0]),s.push(m)});let l=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&xC(t,"all")?",":"";function h(){return Qr(["(",Gn([m0,...s]),l,m0,")"],{shouldBreak:!0})}if(u||e.parent.type!=="Decorator"&&Fwi(i))return h();if(STi(i)){let p=s.slice(1);if(p.some(m7))return h();let f;try{f=r(ynr(n,0),{expandFirstArg:!0})}catch(m){if(m instanceof Pme)return h();throw m}return m7(f)?[Ww,pJ([["(",Qr(f,{shouldBreak:!0}),", ",...p,")"],h()])]:pJ([["(",f,", ",...p,")"],["(",Qr(f,{shouldBreak:!0}),", ",...p,")"],h()])}if(FTi(i,s,t)){let p=s.slice(0,-1);if(p.some(m7))return h();let f;try{f=r(ynr(n,-1),{expandLastArg:!0})}catch(m){if(m instanceof Pme)return h();throw m}return m7(f)?[Ww,pJ([["(",...p,Qr(f,{shouldBreak:!0}),")"],h()])]:pJ([["(",...p,f,")"],["(",...p,Qr(f,{shouldBreak:!0}),")"],h()])}let _=["(",Gn([Qn,...s]),cu(l),Qn,")"];return rir(e)?_:Qr(_,{shouldBreak:s.some(m7)||u})}function JR(e,t=!1){return Qg(e)&&(e.properties.length>0||Zi(e))||Wh(e)&&(e.elements.length>0||Zi(e))||e.type==="TSTypeAssertion"&&JR(e.expression)||Uw(e)&&JR(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||NTi(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&JR(e.body,!0)||Qg(e.body)||Wh(e.body)||!t&&($o(e.body)||e.body.type==="ConditionalExpression")||Y2(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function FTi(e,t,r){var n,i;let a=xs(!1,e,-1);if(e.length===1){let s=xs(!1,t,-1);if((n=s.label)!=null&&n.embed&&((i=s.label)==null?void 0:i.hug)!==!1)return!0}let u=xs(!1,e,-2);return!Zi(a,E0.Leading)&&!Zi(a,E0.Trailing)&&JR(a)&&(!u||u.type!==a.type)&&(e.length!==2||u.type!=="ArrowFunctionExpression"||!Wh(a))&&!(e.length>1&&c0r(a,r))}function STi(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&BTi(r)?!0:!Zi(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&Vir(r)&&!JR(r)}function Vir(e){if(e.type==="ParenthesizedExpression")return Vir(e.expression);if(Uw(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.typeArguments??t.typeParameters;(r==null?void 0:r.params.length)===1&&(t=r.params[0])}return oKe(t)&&Zg(e.expression,1)}return vj(e)&&v4(e).length>1?!1:dC(e)?Zg(e.left,1)&&Zg(e.right,1):Ynr(e)||Zg(e)}function PTi(e){return e.length===2?Fnr(e,0):e.length===3?e[0].type==="Identifier"&&Fnr(e,1):!1}function Fnr(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&Wp(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some((i)=>Zi(i))}function NTi(e){return e.type==="BlockStatement"&&(e.body.some((t)=>t.type!=="EmptyStatement")||Zi(e,E0.Dangling))}function BTi(e){return e.type==="ObjectExpression"&&e.properties.length===1&&DC(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&Im(e.properties[0].value)&&e.properties[0].value.value==="module"}function $Ti(e,t,r){var n;let i=r("object"),a=Lir(e,t,r),{node:u}=e,s=e.findAncestor((_)=>!(L_(_)||_.type==="TSNonNullExpression")),l=e.findAncestor((_)=>!(_.type==="ChainExpression"||_.type==="TSNonNullExpression")),h=s&&(s.type==="NewExpression"||s.type==="BindExpression"||s.type==="AssignmentExpression"&&s.left.type!=="Identifier")||u.computed||u.object.type==="Identifier"&&u.property.type==="Identifier"&&!L_(l)||(l.type==="AssignmentExpression"||l.type==="VariableDeclarator")&&(qTi(u.object)||((n=i.label)==null?void 0:n.memberChain));return XR(i.label,[i,h?a:Qr(Gn([Qn,a]))])}function Lir(e,t,r){let n=r("property"),{node:i}=e,a=d7(e);return i.computed?!i.property||mC(i.property)?[a,"[",n,"]"]:Qr([a,"[",Gn([Qn,n]),Qn,"]"]):[a,".",n]}function Xir(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>Xir(e,t,r),"expression");let{parent:n}=e,i=!n||n.type==="ExpressionStatement",a=[];function u(G){let{originalText:Z}=t,ee=Tj(Z,fo(G));return Z.charAt(ee)===")"?ee!==!1&&nKe(Z,ee+1):vC(G,t)}function s(){let{node:G}=e;if(G.type==="ChainExpression")return e.call(s,"expression");if($o(G)&&(pj(G.callee)||$o(G.callee))){let Z=u(G);a.unshift({node:G,hasTrailingEmptyLine:Z,printed:[Og(e,[d7(e),mJ(e,t,r),Hje(e,t,r)],t),Z?Wn:""]}),e.call(s,"callee")}else pj(G)?(a.unshift({node:G,needsParens:AJ(e,t),printed:Og(e,L_(G)?Lir(e,t,r):l0r(e,t,r),t)}),e.call(s,"object")):G.type==="TSNonNullExpression"?(a.unshift({node:G,printed:Og(e,"!",t)}),e.call(s,"expression")):a.unshift({node:G,printed:r()})}let{node:l}=e;a.unshift({node:l,printed:[d7(e),mJ(e,t,r),Hje(e,t,r)]}),l.callee&&e.call(s,"callee");let h=[],_=[a[0]],p=1;for(;p<a.length&&(a[p].node.type==="TSNonNullExpression"||$o(a[p].node)||L_(a[p].node)&&a[p].node.computed&&mC(a[p].node.property));++p)_.push(a[p]);if(!$o(a[0].node))for(;p+1<a.length&&(pj(a[p].node)&&pj(a[p+1].node));++p)_.push(a[p]);h.push(_),_=[];let f=!1;for(;p<a.length;++p){if(f&&pj(a[p].node)){if(a[p].node.computed&&mC(a[p].node.property)){_.push(a[p]);continue}h.push(_),_=[],f=!1}($o(a[p].node)||a[p].node.type==="ImportExpression")&&(f=!0),_.push(a[p]),Zi(a[p].node,E0.Trailing)&&(h.push(_),_=[],f=!1)}_.length>0&&h.push(_);function m(G){return/^[A-Z]|^[$_]+$/u.test(G)}function d(G){return G.length<=t.tabWidth}function x(G){var Z;let ee=(Z=G[1][0])==null?void 0:Z.node.computed;if(G[0].length===1){let Fe=G[0][0].node;return Fe.type==="ThisExpression"||Fe.type==="Identifier"&&(m(Fe.name)||i&&d(Fe.name)||ee)}let ge=xs(!1,G[0],-1).node;return L_(ge)&&ge.property.type==="Identifier"&&(m(ge.property.name)||ee)}let T=h.length>=2&&!Zi(h[1][0].node)&&x(h);function A(G){let Z=G.map((ee)=>ee.printed);return G.length>0&&xs(!1,G,-1).needsParens?["(",...Z,")"]:Z}function F(G){return G.length===0?"":Gn([Wn,po(Wn,G.map(A))])}let b=h.map(A),N=b,E=T?3:2,P=h.flat(),q=P.slice(1,-1).some((G)=>Zi(G.node,E0.Leading))||P.slice(0,-1).some((G)=>Zi(G.node,E0.Trailing))||h[E]&&Zi(h[E][0].node,E0.Leading);if(h.length<=E&&!q&&!h.some((G)=>xs(!1,G,-1).hasTrailingEmptyLine))return rir(e)?N:Qr(N);let $=xs(!1,h[T?1:0],-1).node,M=!$o($)&&u($),O=[A(h[0]),T?h.slice(1,2).map(A):"",M?Wn:"",F(h.slice(T?2:1))],K=a.map(({node:G})=>G).filter($o);function ue(){let G=xs(!1,xs(!1,h,-1),-1).node,Z=xs(!1,b,-1);return $o(G)&&m7(Z)&&K.slice(0,-1).some((ee)=>ee.arguments.some(MR))}let Q;return q||K.length>2&&K.some((G)=>!G.arguments.every((Z)=>Zg(Z)))||b.slice(0,-1).some(m7)||ue()?Q=Qr(O):Q=[m7(N)||M?Ww:"",pJ([N,O])],XR({memberChain:!0},Q)}function jir(e,t,r){var n;let{node:i}=e,a=i.type==="NewExpression",u=i.type==="ImportExpression",s=d7(e),l=v4(i),h=l.length===1&&eir(l[0],t.originalText);if(h||ITi(e)||Ime(i,e.parent)){let p=[];if(Fme(e,()=>{p.push(r())}),!(h&&((n=p[0].label)!=null&&n.embed)))return[a?"new ":"",Snr(e,r),s,mJ(e,t,r),"(",po(", ",p),")"]}if(!u&&!a&&pj(i.callee)&&!e.call((p)=>AJ(p,t),"callee",...i.callee.type==="ChainExpression"?["expression"]:[]))return JTi(e,t,r);let _=[a?"new ":"",Snr(e,r),s,mJ(e,t,r),Hje(e,t,r)];return u||$o(i.callee)?Qr(_):_}function Snr(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:t("callee")}function ITi(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=v4(t);return t.callee.name==="require"?r.length===1&&Im(r[0])||r.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Im(r[0])&&r[1].type==="ArrayExpression":!1}function jR(e,t,r,n,i,a){let u=VTi(e,t,r,n,a),s=a?r(a,{assignmentLayout:u}):"";switch(u){case"break-after-operator":return Qr([Qr(n),i,Qr(Gn([m0,s]))]);case"never-break-after-operator":return Qr([Qr(n),i," ",s]);case"fluid":{let l=Symbol("assignment");return Qr([Qr(n),i,Qr(Gn(m0),{id:l}),gC,zme(s,{groupId:l})])}case"break-lhs":return Qr([n,i," ",Qr(s)]);case"chain":return[Qr(n),i,m0,s];case"chain-tail":return[Qr(n),i,Gn([m0,s])];case"chain-tail-arrow-chain":return[Qr(n),i,s];case"only-left":return n}}function MTi(e,t,r){let{node:n}=e;return jR(e,t,r,r("left"),[" ",n.operator],"right")}function zTi(e,t,r){return jR(e,t,r,r("id")," =","init")}function VTi(e,t,r,n,i){let{node:a}=e,u=a[i];if(!u)return"only-left";let s=!Cme(u);if(e.match(Cme,Kir,(_)=>!s||_.type!=="ExpressionStatement"&&_.type!=="VariableDeclaration"))return s?u.type==="ArrowFunctionExpression"&&u.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!s&&Cme(u.right)||cP(t.originalText,u))return"break-after-operator";if(a.type==="ImportAttribute"||u.type==="CallExpression"&&u.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let l=Qwi(n);if(XTi(a)||ZTi(a)||Uir(a)&&l)return"break-lhs";let h=QTi(a,n,t);return e.call(()=>LTi(e,t,r,h),i)?"break-after-operator":jTi(a)?"break-lhs":!l&&(h||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="BooleanLiteral"||mC(u)||u.type==="ClassExpression")?"never-break-after-operator":"fluid"}function LTi(e,t,r,n){let i=e.node;if(dC(i)&&!LR(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!HTi(i))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:h}=i;return dC(h)&&!LR(h)}let{consequent:s,alternate:l}=i;return s.type==="ConditionalExpression"||l.type==="ConditionalExpression"}case"ClassExpression":return Ko(i.decorators)}if(n)return!1;let a=i,u=[];for(;;)if(a.type==="UnaryExpression"||a.type==="AwaitExpression"||a.type==="YieldExpression"&&a.argument!==null)a=a.argument,u.push("argument");else if(a.type==="TSNonNullExpression")a=a.expression,u.push("expression");else break;return!!(Im(a)||e.call(()=>Zir(e,t,r),...u))}function XTi(e){if(Kir(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some((r)=>{var n;return DC(r)&&(!r.shorthand||((n=r.value)==null?void 0:n.type)==="AssignmentPattern")})}return!1}function Cme(e){return e.type==="AssignmentExpression"}function Kir(e){return Cme(e)||e.type==="VariableDeclarator"}function jTi(e){let t=UTi(e);if(Ko(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some((n)=>n[r]||n.default))return!0}return!1}function UTi(e){var t;if(KTi(e))return(t=e.typeParameters)==null?void 0:t.params}function ZTi(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=Pnr(t.typeAnnotation);return Ko(r)&&r.length>1&&r.some((n)=>Ko(Pnr(n))||n.type==="TSConditionalType")}function Uir(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function Pnr(e){var t;if(OTi(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function Zir(e,t,r,n=!1){var i;let{node:a}=e,u=()=>Zir(e,t,r,!0);if(a.type==="ChainExpression"||a.type==="TSNonNullExpression")return e.call(u,"expression");if($o(a)){if((i=jir(e,t,r).label)!=null&&i.memberChain)return!1;let s=v4(a);return!(s.length===0||s.length===1&&sKe(s[0],t))||WTi(a,r)?!1:e.call(u,"callee")}return L_(a)?e.call(u,"object"):n&&(a.type==="Identifier"||a.type==="ThisExpression")}function QTi(e,t,r){return DC(e)?(t=hKe(t),typeof t=="string"&&dj(t)<r.tabWidth+3):!1}function WTi(e,t){let r=YTi(e);if(Ko(r)){if(r.length>1)return!0;if(r.length===1){let i=r[0];if(hP(i)||_Ke(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(m7(t(n)))return!0}return!1}function YTi(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function HTi(e){function t(r){switch(r.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!r.typeParameters;case"TSTypeReference":return!!(r.typeArguments??r.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function bJ(e,t,r,n,i){let a=e.node,u=Wp(a),s=i?mJ(e,r,t):"";if(u.length===0)return[s,"(",Hl(e,r,{filter:(m)=>Wg(r.originalText,fo(m))===")"}),")"];let{parent:l}=e,h=Ime(l),_=Oir(a),p=[];if($wi(e,(m,d)=>{let x=d===u.length-1;x&&a.rest&&p.push("..."),p.push(t()),!x&&(p.push(","),h||_?p.push(" "):vC(u[d],r)?p.push(Wn,Wn):p.push(m0))}),n&&!RTi(e)){if(m7(s)||m7(p))throw new Pme;return Qr([Lje(s),"(",Lje(p),")"])}let f=u.every((m)=>!Ko(m.decorators));return _&&f?[s,"(",...p,")"]:h?[s,"(",...p,")"]:(Hnr(l)||Awi(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===a)&&u.length===1&&u[0].name===null&&a.this!==u[0]&&u[0].typeAnnotation&&a.typeParameters===null&&oKe(u[0].typeAnnotation)&&!a.rest?r.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...p,")"]:p:[s,"(",Gn([Qn,...p]),cu(!qwi(a)&&xC(r,"all")?",":""),Qn,")"]}function Oir(e){if(!e)return!1;let t=Wp(e);if(t.length!==1)return!1;let[r]=t;return!Zi(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&_P(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&_P(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Qg(r.right)&&r.right.properties.length===0||Wh(r.right)&&r.right.elements.length===0))}function GTi(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Ej(e,t){var r;let n=GTi(e);if(!n)return!1;let i=(r=e.typeParameters)==null?void 0:r.params;if(i){if(i.length>1)return!1;if(i.length===1){let a=i[0];if(a.constraint||a.default)return!1}}return Wp(e).length===1&&(_P(n)||m7(t))}function RTi(e){return e.match((t)=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",(t)=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function eCi(e){let t=Wp(e);return t.length>1&&t.some((r)=>r.type==="TSParameterProperty")}function nCi(e){let{types:t}=e;if(t.some((n)=>Zi(n)))return!1;let r=t.find((n)=>rCi(n));return r?t.every((n)=>n===r||tCi(n)):!1}function Qir(e){return oKe(e)||_P(e)?!0:hP(e)?nCi(e):!1}function iCi(e,t,r){let n=t.semi?";":"",{node:i}=e,a=[Mm(e),"opaque type ",r("id"),r("typeParameters")];return i.supertype&&a.push(": ",r("supertype")),i.impltype&&a.push(" = ",r("impltype")),a.push(n),a}function Wir(e,t,r){let n=t.semi?";":"",{node:i}=e,a=[Mm(e)];a.push("type ",r("id"),r("typeParameters"));let u=i.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[jR(e,t,r,a," =",u),n]}function Yir(e,t,r){let n=!1;return Qr(e.map(({isFirst:i,previous:a,node:u,index:s})=>{let l=r();if(i)return l;let h=_P(u),_=_P(a);return _&&h?[" & ",n?Gn(l):l]:!_&&!h?t.experimentalOperatorPosition==="start"?Gn([m0,"& ",l]):Gn([" &",m0,l]):(s>1&&(n=!0),[" & ",s>1?Gn(l):l])},"types"))}function Hir(e,t,r){let{node:n}=e,{parent:i}=e,a=i.type!=="TypeParameterInstantiation"&&(!pP(i)||!t.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&e.grandparent.this!==i)&&!((i.type==="TypeAlias"||i.type==="VariableDeclarator"||i.type==="TSTypeAliasDeclaration")&&cP(t.originalText,n)),u=Qir(n),s=e.map((_)=>{let p=r();return u||(p=Qw(2,p)),Og(_,p,t)},"types");if(u)return po(" | ",s);let l=a&&!cP(t.originalText,n),h=[cu([l?m0:"","| "]),po([m0,"| "],s)];return AJ(e,t)?Qr([Gn(h),Qn]):(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?Qr([Gn([cu(["(",Qn]),h]),Qn,cu(")")]):Qr(a?Gn(h):h)}function aCi(e){var t;let{node:r,parent:n}=e;return r.type==="FunctionTypeAnnotation"&&(Hnr(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&$me(n,r)||n.type==="ObjectTypeCallProperty"||((t=e.getParentNode(2))==null?void 0:t.type)==="DeclareFunction"))}function Gir(e,t,r){let{node:n}=e,i=[Vme(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&i.push("new ");let a=bJ(e,r,t,!1,!0),u=[];return n.type==="FunctionTypeAnnotation"?u.push(aCi(e)?" => ":": ",r("returnType")):u.push(Qh(e,r,n.returnType?"returnType":"typeAnnotation")),Ej(n,u)&&(a=Qr(a)),i.push(a,u),Qr(i)}function Rir(e,t,r){return[r("objectType"),d7(e),"[",r("indexType"),"]"]}function e0r(e,t,r){return["infer ",r("typeParameter")]}function Nnr(e,t,r){let{node:n}=e;return[n.postfix?"":r,Qh(e,t),n.postfix?r:""]}function t0r(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function r0r(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function Qh(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let i=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let a=e.call(n0r,r);(a==="=>"||a===":"&&Zi(n,E0.Leading))&&(i=!0),uCi.add(n)}return i?[" ",t(r)]:t(r)}function i0r(e,t,r){let n=n0r(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function a0r(e){return[e("elementType"),"[]"]}function u0r({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument",n=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(r),t(n)]}function o0r(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",Qh(e,t)]:""]}function d7(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":$o(t)||L_(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function s0r(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}function Mm(e){let{node:t}=e;return t.declare||oCi.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}function Vme({node:e}){return e.abstract||sCi.has(e.type)?"abstract ":""}function mJ(e,t,r){let n=e.node;return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""}function l0r(e,t,r){return["::",r("callee")]}function sP(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:Gn([m0,t])}function _0r(e,t){return["...",t("argument"),Qh(e,t)]}function Nme(e){return e.accessibility?e.accessibility+" ":""}function lCi(e,t,r,n){let{node:i}=e,a=i.inexact?"...":"";return Zi(i,E0.Dangling)?Qr([r,a,Hl(e,t,{indent:!0}),Qn,n]):[r,a,n]}function DKe(e,t,r){let{node:n}=e,i=[],a=n.type==="TupleExpression"?"#[":"[",u="]",s=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",l=n[s];if(l.length===0)i.push(lCi(e,t,a,u));else{let h=xs(!1,l,-1),_=(h==null?void 0:h.type)!=="RestElement"&&!n.inexact,p=h===null,f=Symbol("array"),m=!t.__inJestEach&&l.length>1&&l.every((T,A,F)=>{let b=T==null?void 0:T.type;if(!Wh(T)&&!Qg(T))return!1;let N=F[A+1];if(N&&b!==N.type)return!1;let E=Wh(T)?"elements":"properties";return T[E]&&T[E].length>1}),d=c0r(n,t),x=_?p?",":xC(t)?d?cu(",","",{groupId:f}):cu(","):"":"";i.push(Qr([a,Gn([Qn,d?cCi(e,t,r,x):[_Ci(e,t,s,n.inexact,r),x],Hl(e,t)]),Qn,u],{shouldBreak:m,id:f}))}return i.push(d7(e),Qh(e,r)),i}function c0r(e,t){return Wh(e)&&e.elements.length>1&&e.elements.every((r)=>r&&(mC(r)||Wnr(r)&&!Zi(r.argument))&&!Zi(r,E0.Trailing|E0.Line,(n)=>!dy(t.originalText,v_(n),{backwards:!0})))}function h0r({node:e},{originalText:t}){let r=(i)=>tKe(t,rKe(t,i)),n=(i)=>t[i]===","?i:n(r(i+1));return nKe(t,n(fo(e)))}function _Ci(e,t,r,n,i){let a=[];return e.each(({node:u,isLast:s})=>{a.push(u?Qr(i()):""),(!s||n)&&a.push([",",m0,u&&h0r(e,t)?Qn:""])},r),n&&a.push("..."),a}function cCi(e,t,r,n){let i=[];return e.each(({isLast:a,next:u})=>{i.push([r(),a?n:","]),a||i.push(h0r(e,t)?[Wn,Wn]:Zi(u,E0.Leading|E0.Line)?Wn:m0)},"elements"),lir(i)}function mCi(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}function p0r(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Bnr(e,t){return t.parser==="json"||t.parser==="jsonc"||!Im(e.key)||xj(d4(e.key),t).slice(1,-1)!==e.key.value?!1:!!(fCi(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||p0r(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function dCi(e,t){let{key:r}=e.node;return(r.type==="Identifier"||mC(r)&&p0r(Dj(d4(r)))&&String(r.value)===Dj(d4(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Eme.get(e.parent))}function KR(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:i}=e,{key:a}=n;if(t.quoteProps==="consistent"&&!Eme.has(i)){let u=e.siblings.some((s)=>!s.computed&&Im(s.key)&&!Bnr(s,t));Eme.set(i,u)}if(dCi(e,t)){let u=xj(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),t);return e.call((s)=>Og(s,u,t),"key")}return Bnr(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Eme.get(i))?e.call((u)=>Og(u,/^\d/u.test(a.value)?Dj(a.value):a.value,t),"key"):r("key")}function qje(e,t,r){let{node:n}=e;return n.shorthand?r("value"):jR(e,t,r,KR(e,t,r),":","value")}function f0r(e,t,r,n){if(yCi(e))return wKe(e,r,t);let{node:i}=e,a=!1;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&(n!=null&&n.expandLastArg)){let{parent:_}=e;$o(_)&&(v4(_).length>1||Wp(i).every((p)=>p.type==="Identifier"&&!p.typeAnnotation))&&(a=!0)}let u=[Mm(e),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?t("id"):""],s=bJ(e,t,r,a),l=Lme(e,t),h=Ej(i,l);return u.push(mJ(e,r,t),Qr([h?Qr(s):s,l]),i.body?" ":"",t("body")),r.semi&&(i.declare||!i.body)&&u.push(";"),u}function Gje(e,t,r){let{node:n}=e,{kind:i}=n,a=n.value||n,u=[];return!i||i==="init"||i==="method"||i==="constructor"?a.async&&u.push("async "):(iKe.ok(i==="get"||i==="set"),u.push(i," ")),a.generator&&u.push("*"),u.push(KR(e,t,r),n.optional||n.key.optional?"?":"",n===a?wKe(e,t,r):r("value")),u}function wKe(e,t,r){let{node:n}=e,i=bJ(e,r,t),a=Lme(e,r),u=eCi(n),s=Ej(n,a),l=[mJ(e,t,r),Qr([u?Qr(i,{shouldBreak:!0}):s?Qr(i):i,a])];return n.body?l.push(" ",r("body")):l.push(t.semi?";":""),l}function gCi(e){let t=Wp(e);return t.length===1&&!e.typeParameters&&!Zi(e,E0.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!Zi(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function m0r(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return gCi(r)}return!1}function Lme(e,t){let{node:r}=e,n=[Qh(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function d0r(e,t,r){let{node:n}=e,i=t.semi?";":"",a=[];if(n.argument){let l=r("argument");DCi(t,n.argument)?l=["(",Gn([Wn,l]),Wn,")"]:(dC(n.argument)||n.argument.type==="SequenceExpression"||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(l=Qr([cu("("),Gn([Qn,l]),Qn,cu(")")])),a.push(" ",l)}let u=Zi(n,E0.Dangling),s=i&&u&&Zi(n,E0.Last|E0.Line);return s&&a.push(i),u&&a.push(" ",Hl(e,t)),s||a.push(i),a}function xCi(e,t,r){return["return",d0r(e,t,r)]}function vCi(e,t,r){return["throw",d0r(e,t,r)]}function DCi(e,t){if(cP(e.originalText,t)||Zi(t,E0.Leading,(r)=>fP(e.originalText,v_(r),fo(r)))&&!Y2(t))return!0;if(aKe(t)){let r=t,n;for(;n=gwi(r);)if(r=n,cP(e.originalText,r))return!0}return!1}function y0r(e){return $je.has(e)||$je.set(e,e.type==="ConditionalExpression"&&!f7(e,(t)=>t.type==="ObjectExpression")),$je.get(e)}function wCi(e,t,r,n={}){let i=[],a,u=[],s=!1,l=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",h;(function A(){let{node:F}=e,b=ACi(e,t,r,n);if(i.length===0)i.push(b);else{let{leading:N,trailing:E}=qir(e,t);i.push([N,b]),u.unshift(E)}l&&(s||(s=F.returnType&&Wp(F).length>0||F.typeParameters||Wp(F).some((N)=>N.type!=="Identifier"))),!l||F.body.type!=="ArrowFunctionExpression"?(a=r("body",n),h=F.body):e.call(A,"body")})();let _=!cP(t.originalText,h)&&(g0r(h)||bCi(h,a,t)||!s&&y0r(h)),p=e.key==="callee"&&vj(e.parent),f=Symbol("arrow-chain"),m=TCi(e,n,{signatureDocs:i,shouldBreak:s}),d=!1,x=!1,T=!1;return l&&(p||n.assignmentLayout)&&(x=!0,T=!Zi(e.node,E0.Leading&E0.Line),d=n.assignmentLayout==="chain-tail-arrow-chain"||p&&!_),a=CCi(e,t,n,{bodyDoc:a,bodyComments:u,functionBody:h,shouldPutBodyOnSameLine:_}),Qr([Qr(x?Gn([T?Qn:"",m]):m,{shouldBreak:d,id:f})," =>",l?zme(a,{groupId:f}):Qr(a),l&&p?cu(Qn,"",{groupId:f}):""])}function ACi(e,t,r,n){let{node:i}=e,a=[];if(i.async&&a.push("async "),m0r(e,t))a.push(r(["params",0]));else{let s=n.expandLastArg||n.expandFirstArg,l=Lme(e,r);if(s){if(m7(l))throw new Pme;l=Qr(Lje(l))}a.push(Qr([bJ(e,r,t,s,!0),l]))}let u=Hl(e,t,{filter(s){let l=Tj(t.originalText,fo(s));return l!==!1&&t.originalText.slice(l,l+2)==="=>"}});return u&&a.push(" ",u),a}function bCi(e,t,r){var n,i;return Wh(e)||Qg(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Y2(e)||((n=t.label)==null?void 0:n.hug)!==!1&&(((i=t.label)==null?void 0:i.embed)||eir(e,r.originalText))}function TCi(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:i,key:a}=e;return a!=="callee"&&vj(i)||dC(i)?Qr([r[0]," =>",Gn([m0,po([" =>",m0],r.slice(1))])],{shouldBreak:n}):a==="callee"&&vj(i)||t.assignmentLayout?Qr(po([" =>",m0],r),{shouldBreak:n}):Qr(Gn(po([" =>",m0],r)),{shouldBreak:n})}function CCi(e,t,r,{bodyDoc:n,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:u}){let{node:s,parent:l}=e,h=r.expandLastArg&&xC(t,"all")?cu(","):"",_=(r.expandLastArg||l.type==="JSXExpressionContainer")&&!Zi(s)?Qn:"";return u&&y0r(a)?[" ",Qr([cu("","("),Gn([Qn,n]),cu("",")"),h,_]),i]:(g0r(a)&&(n=Qr(["(",Gn([Qn,n]),Qn,")"])),u?[" ",n,i]:[Gn([m0,n,i]),h,_])}function Rje(e,t,r,n){let{node:i}=e,a=[],u=kCi(!1,i[n],(s)=>s.type!=="EmptyStatement");return e.each(({node:s})=>{s.type!=="EmptyStatement"&&(a.push(r()),s!==u&&(a.push(Wn),vC(s,t)&&a.push(Wn)))},n),a}function x0r(e,t,r){let n=FCi(e,t,r),{node:i,parent:a}=e;if(i.type==="Program"&&(a==null?void 0:a.type)!=="ModuleExpression")return n?[n,Wn]:"";let u=[];if(i.type==="StaticBlock"&&u.push("static "),u.push("{"),n)u.push(Gn([Wn,n]),Wn);else{let s=e.grandparent;a.type==="ArrowFunctionExpression"||a.type==="FunctionExpression"||a.type==="FunctionDeclaration"||a.type==="ComponentDeclaration"||a.type==="HookDeclaration"||a.type==="ObjectMethod"||a.type==="ClassMethod"||a.type==="ClassPrivateMethod"||a.type==="ForStatement"||a.type==="WhileStatement"||a.type==="DoWhileStatement"||a.type==="DoExpression"||a.type==="ModuleExpression"||a.type==="CatchClause"&&!s.finalizer||a.type==="TSModuleDeclaration"||i.type==="StaticBlock"||u.push(Wn)}return u.push("}"),u}function FCi(e,t,r){let{node:n}=e,i=Ko(n.directives),a=n.body.some((l)=>l.type!=="EmptyStatement"),u=Zi(n,E0.Dangling);if(!i&&!a&&!u)return"";let s=[];return i&&(s.push(Rje(e,t,r,"directives")),(a||u)&&(s.push(Wn),vC(xs(!1,n.directives,-1),t)&&s.push(Wn))),a&&s.push(Rje(e,t,r,"body")),u&&s.push(Hl(e,t)),s}function SCi(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}function PCi(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function NCi(e,t,r){let{node:n}=e;return Qr([n.variance?r("variance"):"","[",Gn([r("keyTparam")," in ",r("sourceType")]),"]",PCi(n.optional),": ",r("propType")])}function D0r(e,t){return e==="+"||e==="-"?e+t:t}function BCi(e,t,r){let{node:n}=e,i=t.objectWrap==="preserve"&&fP(t.originalText,v_(n),v_(n.typeParameter));return Qr(["{",Gn([t.bracketSpacing?m0:Qn,Qr([r("typeParameter"),n.optional?D0r(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?cu(";"):""]),Hl(e,t),t.bracketSpacing?m0:Qn,"}"],{shouldBreak:i})}function qCi(e,t,r){let{node:n}=e;return Wp(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function IR(e,t,r,n){let{node:i}=e;if(!i[n])return"";if(!Array.isArray(i[n]))return r(n);let a=Ime(e.grandparent),u=e.match((l)=>!(l[n].length===1&&_P(l[n][0])),void 0,(l,h)=>h==="typeAnnotation",(l)=>l.type==="Identifier",Uir);if(i[n].length===0||!u&&(a||i[n].length===1&&(i[n][0].type==="NullableTypeAnnotation"||Qir(i[n][0]))))return["<",po(", ",e.map(r,n)),$Ci(e,t),">"];let s=i.type==="TSTypeParameterInstantiation"?"":qCi(e,t,n)?",":xC(t)?cu(","):"";return Qr(["<",Gn([Qn,po([",",m0],e.map(r,n))]),s,Qn,">"],{id:AKe(i)})}function $Ci(e,t){let{node:r}=e;if(!Zi(r,E0.Dangling))return"";let n=!Zi(r,E0.Line),i=Hl(e,t,{indent:!n});return n?i:[i,Wn]}function w0r(e,t,r){let{node:n,parent:i}=e,a=[n.const?"const ":""],u=n.type==="TSTypeParameter"?r("name"):n.name;if(i.type==="TSMappedType")return i.readonly&&a.push(D0r(i.readonly,"readonly")," "),a.push("[",u),n.constraint&&a.push(" in ",r("constraint")),i.nameType&&a.push(" as ",e.callParent(()=>r("nameType"))),a.push("]"),a;if(n.variance&&a.push(r("variance")),n.in&&a.push("in "),n.out&&a.push("out "),a.push(u),n.bound&&(n.usesExtendsBound&&a.push(" extends "),a.push(Qh(e,r,"bound"))),n.constraint){let s=Symbol("constraint");a.push(" extends",Qr(Gn(m0),{id:s}),gC,zme(r("constraint"),{groupId:s}))}return n.default&&a.push(" = ",r("default")),Qr(a)}function b0r(e,t,r){let{node:n}=e,i=[Mm(e),Vme(e),"class"],a=Zi(n.id,E0.Trailing)||Zi(n.typeParameters,E0.Trailing)||Zi(n.superClass)||Ko(n.extends)||Ko(n.mixins)||Ko(n.implements),u=[],s=[];if(n.id&&u.push(" ",r("id")),u.push(r("typeParameters")),n.superClass){let _=[MCi(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],p=e.call((f)=>["extends ",Og(f,_,t)],"superClass");a?s.push(m0,Qr(p)):s.push(" ",p)}else s.push(Jje(e,t,r,"extends"));s.push(Jje(e,t,r,"mixins"),Jje(e,t,r,"implements"));let l;if(a){let _;C0r(n)?_=[...u,Gn(s)]:_=Gn([...u,s]),l=T0r(n),i.push(Qr(_,{id:l}))}else i.push(...u,...s);let h=n.body;return a&&Ko(h.body)?i.push(cu(Wn," ",{groupId:l})):i.push(" "),i.push(r("body")),i}function JCi(e){return cu(Wn,"",{groupId:T0r(e)})}function ICi(e){return["extends","mixins","implements"].reduce((t,r)=>t+(Array.isArray(e[r])?e[r].length:0),e.superClass?1:0)>1}function C0r(e){return e.typeParameters&&!Zi(e.typeParameters,E0.Trailing|E0.Line)&&!ICi(e)}function Jje(e,t,r,n){let{node:i}=e;if(!Ko(i[n]))return"";let a=Hl(e,t,{marker:n});return[C0r(i)?cu(" ",m0,{groupId:AKe(i.typeParameters)}):m0,a,a&&Wn,n,Qr(Gn([m0,po([",",m0],e.map(r,n))]))]}function MCi(e,t,r){let n=r("superClass"),{parent:i}=e;return i.type==="AssignmentExpression"?Qr(cu(["(",Gn([Qn,n]),Qn,")"],n)):n}function E0r(e,t,r){let{node:n}=e,i=[];return Ko(n.decorators)&&i.push(Iir(e,t,r)),i.push(Nme(n)),n.static&&i.push("static "),i.push(Vme(e)),n.override&&i.push("override "),i.push(Gje(e,t,r)),i}function k0r(e,t,r){let{node:n}=e,i=[],a=t.semi?";":"";Ko(n.decorators)&&i.push(Iir(e,t,r)),i.push(Mm(e),Nme(n)),n.static&&i.push("static "),i.push(Vme(e)),n.override&&i.push("override "),n.readonly&&i.push("readonly "),n.variance&&i.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(KR(e,t,r),d7(e),s0r(e),Qh(e,r));let u=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[jR(e,t,r,i," =",u?void 0:"value"),a]}function zCi(e,t,r){let{node:n}=e,i=[];return e.each(({node:a,next:u,isLast:s})=>{i.push(r()),!t.semi&&A0r(a)&&VCi(a,u)&&i.push(";"),s||(i.push(Wn),vC(a,t)&&i.push(Wn))},"body"),Zi(n,E0.Dangling)&&i.push(Hl(e,t)),["{",i.length>0?[Gn([Wn,i]),Wn]:"","}"]}function VCi(e,t){var r;let{type:n,name:i}=e.key;if(!e.computed&&n==="Identifier"&&(i==="static"||i==="get"||i==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let a=(r=t.key)==null?void 0:r.name;if(a==="in"||a==="instanceof")return!0}if(A0r(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let a=t.value?t.value.generator:t.generator;return!!(t.computed||a)}case"TSIndexSignature":return!0}return!1}function F0r(e){return LCi(e)?F0r(e.expression):e}function jCi(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function KCi(e,t){if(t.semi||P0r(e,t)||N0r(e,t))return!1;let{node:r,key:n,parent:i}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||n==="consequent"&&i.type==="SwitchCase")&&e.call(()=>S0r(e,t),"expression"))}function S0r(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!m0r(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:i}=r;if(n&&(i==="+"||i==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(Y2(r))return!0}return AJ(e,t)?!0:aKe(r)?e.call(()=>S0r(e,t),...Qnr(r)):!1}function P0r({node:e,parent:t},r){return(r.parentParser==="markdown"||r.parentParser==="mdx")&&e.type==="ExpressionStatement"&&Y2(e.expression)&&t.type==="Program"&&t.body.length===1}function N0r({node:e,parent:t},r){return(r.parser==="__vue_event_binding"||r.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function UCi(e,t,r){let n=[r("expression")];if(N0r(e,t)){let i=F0r(e.node.expression);(XCi(i)||jCi(i))&&n.push(";")}else P0r(e,t)||t.semi&&n.push(";");return n}function ZCi(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let i=po([",",m0],n);return t.__isVueForBindingLeft?["(",Gn([Qn,Qr(i)]),Qn,")"]:i}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return po([",",m0],n)}}function OCi(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return qnr(r);case"BigIntLiteral":return eKe(r.extra.raw);case"NumericLiteral":return Dj(r.extra.raw);case"StringLiteral":return fJ(xj(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return $nr(r.extra.raw,t);case"Literal":{if(r.regex)return qnr(r.regex);if(r.bigint)return eKe(r.raw);let{value:n}=r;return typeof n=="number"?Dj(r.raw):typeof n=="string"?QCi(e)?$nr(r.raw,t):fJ(xj(r.raw,t)):String(n)}}}function QCi(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function eKe(e){return e.toLowerCase()}function qnr({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function $nr(e,t){let r=e.slice(1,-1);if(r.includes('"')||r.includes("'"))return e;let n=t.singleQuote?"'":'"';return n+r+n}function WCi(e,t,r){let n=e.originalText.slice(t,r);for(let i of e[Symbol.for("comments")]){let a=v_(i);if(a>r)break;let u=fo(i);if(u<t)continue;let s=u-a;n=n.slice(0,a-t)+" ".repeat(s)+n.slice(u-t)}return n}function YCi(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",J0r(n),M0r(e,t,r),I0r(e,t,r),V0r(e,t,r),t.semi?";":""]}function $0r(e,t,r){let{node:n}=e,i=[CTi(e,t,r),Mm(e),"export",q0r(n)?" default":""],{declaration:a,exported:u}=n;return Zi(n,E0.Dangling)&&(i.push(" ",Hl(e,t)),tir(n)&&i.push(Wn)),a?i.push(" ",r("declaration")):(i.push(RCi(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(i.push(" *"),u&&i.push(" as ",r("exported"))):i.push(M0r(e,t,r)),i.push(I0r(e,t,r),V0r(e,t,r))),i.push(GCi(n,t)),i}function GCi(e,t){return t.semi&&(!e.declaration||q0r(e)&&!HCi(e.declaration))?";":""}function bKe(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function J0r(e,t){return bKe(e.importKind,t)}function RCi(e){return bKe(e.exportKind)}function I0r(e,t,r){let{node:n}=e;if(!n.source)return"";let i=[];return z0r(n,t)&&i.push(" from"),i.push(" ",r("source")),i}function M0r(e,t,r){let{node:n}=e;if(!z0r(n,t))return"";let i=[" "];if(Ko(n.specifiers)){let a=[],u=[];e.each(()=>{let s=e.node.type;if(s==="ExportNamespaceSpecifier"||s==="ExportDefaultSpecifier"||s==="ImportNamespaceSpecifier"||s==="ImportDefaultSpecifier")a.push(r());else if(s==="ExportSpecifier"||s==="ImportSpecifier")u.push(r());else throw new Cj(n,"specifier")},"specifiers"),i.push(po(", ",a)),u.length>0&&(a.length>0&&i.push(", "),u.length>1||a.length>0||n.specifiers.some((s)=>Zi(s))?i.push(Qr(["{",Gn([t.bracketSpacing?m0:Qn,po([",",m0],u)]),cu(xC(t)?",":""),t.bracketSpacing?m0:Qn,"}"])):i.push(["{",t.bracketSpacing?" ":"",...u,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function z0r(e,t){return e.type!=="ImportDeclaration"||Ko(e.specifiers)||e.importKind==="type"?!0:B0r(t,v_(e),v_(e.source)).trimEnd().endsWith("from")}function eEi(e,t){var r,n;if((r=e.extra)!=null&&r.deprecatedAssertSyntax)return"assert";let i=B0r(t,fo(e.source),(n=e.attributes)!=null&&n[0]?v_(e.attributes[0]):fo(e)).trimStart();return i.startsWith("assert")?"assert":i.startsWith("with")||Ko(e.attributes)?"with":void 0}function V0r(e,t,r){let{node:n}=e;if(!n.source)return"";let i=eEi(n,t);if(!i)return"";let a=[` ${i} {`];return Ko(n.attributes)&&(t.bracketSpacing&&a.push(" "),a.push(po(", ",e.map(r,"attributes"))),t.bracketSpacing&&a.push(" ")),a.push("}"),a}function tEi(e,t,r){let{node:n}=e,{type:i}=n,a=i.startsWith("Import"),u=a?"imported":"local",s=a?"local":"exported",l=n[u],h=n[s],_="",p="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?_="*":l&&(_=r(u)),h&&!rEi(n)&&(p=r(s)),[bKe(i==="ImportSpecifier"?n.importKind:n.exportKind,!1),_,_&&p?" as ":"",p]}function rEi(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;if(t.type!==r.type||!awi(t,r))return!1;if(Im(t))return t.value===r.value&&d4(t)===d4(r);switch(t.type){case"Identifier":return t.name===r.name;default:return!1}}function Xme(e,t,r){var n;let i=t.semi?";":"",{node:a}=e,u=a.type==="ObjectTypeAnnotation",s=a.type==="TSEnumDeclaration"||a.type==="EnumBooleanBody"||a.type==="EnumNumberBody"||a.type==="EnumBigIntBody"||a.type==="EnumStringBody"||a.type==="EnumSymbolBody",l=[a.type==="TSTypeLiteral"||s?"members":a.type==="TSInterfaceBody"?"body":"properties"];u&&l.push("indexers","callProperties","internalSlots");let h=l.flatMap((P)=>e.map(({node:q})=>({node:q,printed:r(),loc:v_(q)}),P));l.length>1&&h.sort((P,q)=>P.loc-q.loc);let{parent:_,key:p}=e,f=u&&p==="body"&&(_.type==="InterfaceDeclaration"||_.type==="DeclareInterface"||_.type==="DeclareClass"),m=a.type==="TSInterfaceBody"||s||f||a.type==="ObjectPattern"&&_.type!=="FunctionDeclaration"&&_.type!=="FunctionExpression"&&_.type!=="ArrowFunctionExpression"&&_.type!=="ObjectMethod"&&_.type!=="ClassMethod"&&_.type!=="ClassPrivateMethod"&&_.type!=="AssignmentPattern"&&_.type!=="CatchClause"&&a.properties.some((P)=>P.value&&(P.value.type==="ObjectPattern"||P.value.type==="ArrayPattern"))||a.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&h.length>0&&fP(t.originalText,v_(a),h[0].loc),d=f?";":a.type==="TSInterfaceBody"||a.type==="TSTypeLiteral"?cu(i,";"):",",x=a.type==="RecordExpression"?"#{":a.exact?"{|":"{",T=a.exact?"|}":"}",A=[],F=h.map((P)=>{let q=[...A,Qr(P.printed)];return A=[d,m0],(P.node.type==="TSPropertySignature"||P.node.type==="TSMethodSignature"||P.node.type==="TSConstructSignatureDeclaration"||P.node.type==="TSCallSignatureDeclaration")&&Zi(P.node,E0.PrettierIgnore)&&A.shift(),vC(P.node,t)&&A.push(Wn),q});if(a.inexact||a.hasUnknownMembers){let P;if(Zi(a,E0.Dangling)){let q=Zi(a,E0.Line);P=[Hl(e,t),q||dy(t.originalText,fo(xs(!1,mj(a),-1)))?Wn:m0,"..."]}else P=["..."];F.push([...A,...P])}let b=(n=xs(!1,h,-1))==null?void 0:n.node,N=!(a.inexact||a.hasUnknownMembers||b&&(b.type==="RestElement"||(b.type==="TSPropertySignature"||b.type==="TSCallSignatureDeclaration"||b.type==="TSMethodSignature"||b.type==="TSConstructSignatureDeclaration")&&Zi(b,E0.PrettierIgnore))),E;if(F.length===0){if(!Zi(a,E0.Dangling))return[x,T,Qh(e,r)];E=Qr([x,Hl(e,t,{indent:!0}),Qn,T,d7(e),Qh(e,r)])}else E=[f&&Ko(a.properties)?JCi(_):"",x,Gn([t.bracketSpacing?m0:Qn,...F]),cu(N&&(d!==","||xC(t))?d:""),t.bracketSpacing?m0:Qn,T,d7(e),Qh(e,r)];return e.match((P)=>P.type==="ObjectPattern"&&!Ko(P.decorators),Ije)||_P(a)&&(e.match(void 0,(P,q)=>q==="typeAnnotation",(P,q)=>q==="typeAnnotation",Ije)||e.match(void 0,(P,q)=>P.type==="FunctionTypeParam"&&q==="typeAnnotation",Ije))||!m&&e.match((P)=>P.type==="ObjectPattern",(P)=>P.type==="AssignmentExpression"||P.type==="VariableDeclarator")?E:Qr(E,{shouldBreak:m})}function Ije(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Oir(e)}function nEi(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let i of["test","consequent","alternate"]){let a=n[i];if(Y2(a))return!0;a.type==="ConditionalExpression"&&t.push(a)}}return!1}function iEi(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",a=i?"alternate":"falseType",{parent:u}=e,s=i?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return u.type===n.type&&u[a]===n?Qw(2,s):s}function uEi(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let a=e.getParentNode(i);if(a.type==="ChainExpression"&&a.expression===n||$o(a)&&a.callee===n||L_(a)&&a.object===n||a.type==="TSNonNullExpression"&&a.expression===n){n=a;continue}a.type==="NewExpression"&&a.callee===n||Uw(a)&&a.expression===n?(r=e.getParentNode(i+1),n=a):r=a}return n===t?!1:r[aEi.get(r.type)]===n}function oEi(e,t,r){let{node:n}=e,i=n.type==="ConditionalExpression",a=i?"consequent":"trueType",u=i?"alternate":"falseType",s=i?["test"]:["checkType","extendsType"],l=n[a],h=n[u],_=[],p=!1,{parent:f}=e,m=f.type===n.type&&s.some((M)=>f[M]===n),d=f.type===n.type&&!m,x,T,A=0;do T=x||n,x=e.getParentNode(A),A++;while(x&&x.type===n.type&&s.every((M)=>x[M]!==T));let F=x||f,b=T;if(i&&(Y2(n[s[0]])||Y2(l)||Y2(h)||nEi(b))){p=!0,d=!0;let M=(K)=>[cu("("),Gn([Qn,K]),Qn,cu(")")],O=(K)=>K.type==="NullLiteral"||K.type==="Literal"&&K.value===null||K.type==="Identifier"&&K.name==="undefined";_.push(" ? ",O(l)?r(a):M(r(a))," : ",h.type===n.type||O(h)?r(u):M(r(u)))}else{let M=(K)=>t.useTabs?Gn(r(K)):Qw(2,r(K)),O=[m0,"? ",l.type===n.type?cu("","("):"",M(a),l.type===n.type?cu("",")"):"",m0,": ",M(u)];_.push(f.type!==n.type||f[u]===n||m?O:t.useTabs?sir(Gn(O)):Qw(Math.max(0,t.tabWidth-2),O))}let N=[a,u,...s].some((M)=>Zi(n[M],(O)=>x4(O)&&fP(t.originalText,v_(O),fo(O)))),E=(M)=>f===F?Qr(M,{shouldBreak:N}):N?[M,Ww]:M,P=!p&&(L_(f)||f.type==="NGPipeExpression"&&f.left===n)&&!f.computed,q=uEi(e),$=E([iEi(e,t,r),d?_:Gn(_),i&&P&&!q?Qn:""]);return m||q?Qr([Gn([Qn,$]),Qn]):$}function sEi(e,t){return(L_(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function lEi(e,t,r,n){return[...e.map((i)=>mj(i)),mj(t),mj(r)].flat().some((i)=>x4(i)&&fP(n.originalText,v_(i),fo(i)))}function cEi(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let i=0;!r;i++){let a=e.getParentNode(i);if(a.type==="ChainExpression"&&a.expression===n||$o(a)&&a.callee===n||L_(a)&&a.object===n||a.type==="TSNonNullExpression"&&a.expression===n){n=a;continue}a.type==="NewExpression"&&a.callee===n||Uw(a)&&a.expression===n?(r=e.getParentNode(i+1),n=a):r=a}return n===t?!1:r[_Ei.get(r.type)]===n}function TKe(e,t,r,n){if(!t.experimentalTernaries)return oEi(e,t,r);let{node:i}=e,a=i.type==="ConditionalExpression",u=pP(i),s=a?"consequent":"trueType",l=a?"alternate":"falseType",h=a?["test"]:["checkType","extendsType"],_=i[s],p=i[l],f=h.map((ut)=>i[ut]),{parent:m}=e,d=m.type===i.type,x=d&&h.some((ut)=>m[ut]===i),T=d&&m[l]===i,A=_.type===i.type,F=p.type===i.type,b=F||T,N=t.tabWidth>2||t.useTabs,E,P,q=0;do P=E||i,E=e.getParentNode(q),q++;while(E&&E.type===i.type&&h.every((ut)=>E[ut]!==P));let $=E||m,M=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(m.type==="AssignmentExpression"||m.type==="VariableDeclarator"||m.type==="ClassProperty"||m.type==="PropertyDefinition"||m.type==="ClassPrivateProperty"||m.type==="ObjectProperty"||m.type==="Property"),O=(m.type==="ReturnStatement"||m.type==="ThrowStatement")&&!(A||F),K=a&&$.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",ue=cEi(e),Q=sEi(i,m),G=u&&AJ(e,t),Z=N?t.useTabs?"\t":" ".repeat(t.tabWidth-1):"",ee=lEi(f,_,p,t)||A||F,ge=!b&&!d&&!u&&(K?_.type==="NullLiteral"||_.type==="Literal"&&_.value===null:sKe(_,t)&&fnr(i.test,3)),Fe=b||T||u&&!d||d&&a&&fnr(i.test,1)||ge,He=[];!A&&Zi(_,E0.Dangling)&&e.call((ut)=>{He.push(Hl(ut,t),Wn)},"consequent");let xe=[];Zi(i.test,E0.Dangling)&&e.call((ut)=>{xe.push(Hl(ut,t))},"test"),!F&&Zi(p,E0.Dangling)&&e.call((ut)=>{xe.push(Hl(ut,t))},"alternate"),Zi(i,E0.Dangling)&&xe.push(Hl(e,t));let $e=Symbol("test"),Ie=Symbol("consequent"),te=Symbol("test-and-consequent"),de=a?[Mje(r("test")),i.test.type==="ConditionalExpression"?Ww:""]:[r("checkType")," ","extends"," ",pP(i.extendsType)||i.extendsType.type==="TSMappedType"?r("extendsType"):Qr(Mje(r("extendsType")))],Xe=Qr([de," ?"],{id:$e}),Ne=r(s),Ce=Gn([A||K&&(Y2(_)||d||b)?Wn:m0,He,Ne]),pe=Fe?Qr([Xe,b?Ce:cu(Ce,Qr(Ce,{id:Ie}),{groupId:$e})],{id:te}):[Xe,Ce],ie=r(l),ke=ge?cu(ie,sir(Mje(ie)),{groupId:te}):ie,Je=[pe,xe.length>0?[Gn([Wn,xe]),Wn]:F?Wn:ge?cu(m0," ",{groupId:te}):m0,":",F?" ":N?Fe?cu(Z,cu(b||ge?" ":Z," "),{groupId:te}):cu(Z," "):" ",F?ke:Qr([Gn(ke),K&&!ge?Qn:""]),Q&&!ue?Qn:"",ee?Ww:""];return M&&!ee?Qr(Gn([Qn,Qr(Je)])):M||O?Qr(Gn(Je)):ue||u&&x?Qr([Gn([Qn,Je]),G?Qn:""]):m===$?Qr(Je):Je}function hEi(e,t,r,n){let{node:i}=e;if(uKe(i))return OCi(e,t);let a=t.semi?";":"",u=[];switch(i.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[r("node"),Wn];case"File":return ZCi(e,t,r)??r("program");case"EmptyStatement":return"";case"ExpressionStatement":return UCi(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!Zi(i.expression)&&(Qg(i.expression)||Wh(i.expression))?["(",r("expression"),")"]:Qr(["(",Gn([Qn,r("expression")]),Qn,")"]);case"AssignmentExpression":return MTi(e,t,r);case"VariableDeclarator":return zTi(e,t,r);case"BinaryExpression":case"LogicalExpression":return Jir(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return $Ti(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return i.object&&u.push(r("object")),u.push(Qr(Gn([Qn,l0r(e,t,r)]))),u;case"Identifier":return[i.name,d7(e),s0r(e),Qh(e,r)];case"V8IntrinsicIdentifier":return["%",i.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return _0r(e,r);case"FunctionDeclaration":case"FunctionExpression":return f0r(e,r,t,n);case"ArrowFunctionExpression":return wCi(e,t,r,n);case"YieldExpression":return u.push("yield"),i.delegate&&u.push("*"),i.argument&&u.push(" ",r("argument")),u;case"AwaitExpression":if(u.push("await"),i.argument){u.push(" ",r("argument"));let{parent:s}=e;if($o(s)&&s.callee===i||L_(s)&&s.object===i){u=[Gn([Qn,...u]),Qn];let l=e.findAncestor((h)=>h.type==="AwaitExpression"||h.type==="BlockStatement");if((l==null?void 0:l.type)!=="AwaitExpression"||!f7(l.argument,(h)=>h===i))return Qr(u)}}return u;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return $0r(e,t,r);case"ImportDeclaration":return YCi(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return tEi(e,t,r);case"ImportAttribute":return qje(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return x0r(e,t,r);case"ClassBody":return zCi(e,t,r);case"ThrowStatement":return vCi(e,t,r);case"ReturnStatement":return xCi(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return jir(e,t,r);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Xme(e,t,r);case"Property":return Jme(i)?Gje(e,t,r):qje(e,t,r);case"ObjectProperty":return qje(e,t,r);case"ObjectMethod":return Gje(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return DKe(e,t,r);case"SequenceExpression":{let{parent:s}=e;if(s.type==="ExpressionStatement"||s.type==="ForStatement"){let l=[];return e.each(({isFirst:h})=>{h?l.push(r()):l.push(",",Gn([m0,r()]))},"expressions"),Qr(l)}return Qr(po([",",m0],e.map(r,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),a];case"UnaryExpression":return u.push(i.operator),/[a-z]$/u.test(i.operator)&&u.push(" "),Zi(i.argument)?u.push(Qr(["(",Gn([Qn,r("argument")]),Qn,")"])):u.push(r("argument")),u;case"UpdateExpression":return[i.prefix?i.operator:"",r("argument"),i.prefix?"":i.operator];case"ConditionalExpression":return TKe(e,t,r,n);case"VariableDeclaration":{let s=e.map(r,"declarations"),l=e.parent,h=l.type==="ForStatement"||l.type==="ForInStatement"||l.type==="ForOfStatement",_=i.declarations.some((f)=>f.init),p;return s.length===1&&!Zi(i.declarations[0])?p=s[0]:s.length>0&&(p=Gn(s[0])),u=[Mm(e),i.kind,p?[" ",p]:"",Gn(s.slice(1).map((f)=>[",",_&&!h?Wn:m0,f]))],h&&l.body!==i||u.push(a),Qr(u)}case"WithStatement":return Qr(["with (",r("object"),")",sP(i.body,r("body"))]);case"IfStatement":{let s=sP(i.consequent,r("consequent")),l=Qr(["if (",Qr([Gn([Qn,r("test")]),Qn]),")",s]);if(u.push(l),i.alternate){let h=Zi(i.consequent,E0.Trailing|E0.Line)||tir(i),_=i.consequent.type==="BlockStatement"&&!h;u.push(_?" ":Wn),Zi(i,E0.Dangling)&&u.push(Hl(e,t),h?Wn:" "),u.push("else",Qr(sP(i.alternate,r("alternate"),i.alternate.type==="IfStatement")))}return u}case"ForStatement":{let s=sP(i.body,r("body")),l=Hl(e,t),h=l?[l,Qn]:"";return!i.init&&!i.test&&!i.update?[h,Qr(["for (;;)",s])]:[h,Qr(["for (",Qr([Gn([Qn,r("init"),";",m0,r("test"),";",m0,r("update")]),Qn]),")",s])]}case"WhileStatement":return Qr(["while (",Qr([Gn([Qn,r("test")]),Qn]),")",sP(i.body,r("body"))]);case"ForInStatement":return Qr(["for (",r("left")," in ",r("right"),")",sP(i.body,r("body"))]);case"ForOfStatement":return Qr(["for",i.await?" await":""," (",r("left")," of ",r("right"),")",sP(i.body,r("body"))]);case"DoWhileStatement":{let s=sP(i.body,r("body"));return u=[Qr(["do",s])],i.body.type==="BlockStatement"?u.push(" "):u.push(Wn),u.push("while (",Qr([Gn([Qn,r("test")]),Qn]),")",a),u}case"DoExpression":return[i.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return u.push(i.type==="BreakStatement"?"break":"continue"),i.label&&u.push(" ",r("label")),u.push(a),u;case"LabeledStatement":return i.body.type==="EmptyStatement"?[r("label"),":;"]:[r("label"),": ",r("body")];case"TryStatement":return["try ",r("block"),i.handler?[" ",r("handler")]:"",i.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(i.param){let s=Zi(i.param,(h)=>!x4(h)||h.leading&&dy(t.originalText,fo(h))||h.trailing&&dy(t.originalText,v_(h),{backwards:!0})),l=r("param");return["catch ",s?["(",Gn([Qn,l]),Qn,") "]:["(",l,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[Qr(["switch (",Gn([Qn,r("discriminant")]),Qn,")"])," {",i.cases.length>0?Gn([Wn,po(Wn,e.map(({node:s,isLast:l})=>[r(),!l&&vC(s,t)?Wn:""],"cases"))]):"",Wn,"}"];case"SwitchCase":{i.test?u.push("case ",r("test"),":"):u.push("default:"),Zi(i,E0.Dangling)&&u.push(" ",Hl(e,t));let s=i.consequent.filter((l)=>l.type!=="EmptyStatement");if(s.length>0){let l=Rje(e,t,r,"consequent");u.push(s.length===1&&s[0].type==="BlockStatement"?[" ",l]:Gn([Wn,l]))}return u}case"DebuggerStatement":return["debugger",a];case"ClassDeclaration":case"ClassExpression":return b0r(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return E0r(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return k0r(e,t,r);case"TemplateElement":return fJ(i.value.raw);case"TemplateLiteral":return Cir(e,r,t);case"TaggedTemplateExpression":return QAi(e,r);case"PrivateIdentifier":return["#",i.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"InterpreterDirective":default:throw new Cj(i,"ESTree")}}function L0r(e,t,r){let{parent:n,node:i,key:a}=e,u=[r("expression")];switch(i.type){case"AsConstExpression":u.push(" as const");break;case"AsExpression":case"TSAsExpression":u.push(" as ",r("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":u.push(" satisfies ",r("typeAnnotation"));break}return a==="callee"&&$o(n)||a==="object"&&L_(n)?Qr([Gn([Qn,...u]),Qn]):u}function pEi(e,t,r){let{node:n}=e,i=[Mm(e),"component"];n.id&&i.push(" ",r("id")),i.push(r("typeParameters"));let a=fEi(e,r,t);return n.rendersType?i.push(Qr([a," ",r("rendersType")])):i.push(Qr([a])),n.body&&i.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&i.push(";"),i}function fEi(e,t,r){let{node:n}=e,i=n.params;if(n.rest&&(i=[...i,n.rest]),i.length===0)return["(",Hl(e,r,{filter:(u)=>Wg(r.originalText,fo(u))===")"}),")"];let a=[];return dEi(e,(u,s)=>{let l=s===i.length-1;l&&n.rest&&a.push("..."),a.push(t()),!l&&(a.push(","),vC(i[s],r)?a.push(Wn,Wn):a.push(m0))}),["(",Gn([Qn,...a]),cu(xC(r,"all")&&!mEi(n,i)?",":""),Qn,")"]}function mEi(e,t){var r;return e.rest||((r=xs(!1,t,-1))==null?void 0:r.type)==="RestElement"}function dEi(e,t){let{node:r}=e,n=0,i=(a)=>t(a,n++);e.each(i,"params"),r.rest&&e.call(i,"rest")}function yEi(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function gEi(e,t,r){let{node:n}=e,i=[];return n.name&&i.push(r("name"),n.optional?"?: ":": "),i.push(r("typeAnnotation")),i}function X0r(e,t,r){return Xme(e,r,t)}function j0r(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let i="";return r.initializer&&(i=t("initializer")),r.init&&(i=t("init")),i?[n," = ",i]:n}function xEi(e,t,r){let{node:n}=e,i;if(n.type==="EnumSymbolBody"||n.explicitType)switch(n.type){case"EnumBooleanBody":i="boolean";break;case"EnumNumberBody":i="number";break;case"EnumBigIntBody":i="bigint";break;case"EnumStringBody":i="string";break;case"EnumSymbolBody":i="symbol";break}return[i?`of ${i} `:"",X0r(e,t,r)]}function K0r(e,t,r){let{node:n}=e;return[Mm(e),n.const?"const ":"","enum ",t("id")," ",n.type==="TSEnumDeclaration"?X0r(e,t,r):t("body")]}function vEi(e,t,r){let{node:n}=e,i=["hook"];n.id&&i.push(" ",r("id"));let a=bJ(e,r,t,!1,!0),u=Lme(e,r),s=Ej(n,u);return i.push(Qr([s?Qr(a):a,u]),n.body?" ":"",r("body")),i}function DEi(e,t,r){let{node:n}=e,i=[Mm(e),"hook"];return n.id&&i.push(" ",r("id")),t.semi&&i.push(";"),i}function Jnr(e){var t;let{node:r}=e;return r.type==="HookTypeAnnotation"&&((t=e.getParentNode(2))==null?void 0:t.type)==="DeclareHook"}function wEi(e,t,r){let{node:n}=e,i=[];i.push(Jnr(e)?"":"hook ");let a=bJ(e,r,t,!1,!0),u=[];return u.push(Jnr(e)?": ":" => ",r("returnType")),Ej(n,u)&&(a=Qr(a)),i.push(a,u),Qr(i)}function U0r(e,t,r){let{node:n}=e,i=[Mm(e),"interface"],a=[],u=[];n.type!=="InterfaceTypeAnnotation"&&a.push(" ",r("id"),r("typeParameters"));let s=n.typeParameters&&!Zi(n.typeParameters,E0.Trailing|E0.Line);return Ko(n.extends)&&u.push(s?cu(" ",m0,{groupId:AKe(n.typeParameters)}):m0,"extends ",(n.extends.length===1?Pwi:Gn)(po([",",m0],e.map(r,"extends")))),Zi(n.id,E0.Trailing)||Ko(n.extends)?s?i.push(Qr([...a,Gn(u)])):i.push(Qr(Gn([...a,...u]))):i.push(...a,...u),i.push(" ",r("body")),Qr(i)}function AEi(e,t,r){let{node:n}=e;if(Znr(n))return n.type.slice(0,-14).toLowerCase();let i=t.semi?";":"";switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return pEi(e,t,r);case"ComponentParameter":return yEi(e,t,r);case"ComponentTypeParameter":return gEi(e,t,r);case"HookDeclaration":return vEi(e,t,r);case"DeclareHook":return DEi(e,t,r);case"HookTypeAnnotation":return wEi(e,t,r);case"DeclareClass":return b0r(e,t,r);case"DeclareFunction":return[Mm(e),"function ",r("id"),r("predicate"),i];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",Qh(e,r),i];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[Mm(e),n.kind??"var"," ",r("id"),i];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return $0r(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return iCi(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return Wir(e,t,r);case"IntersectionTypeAnnotation":return Yir(e,t,r);case"UnionTypeAnnotation":return Hir(e,t,r);case"ConditionalTypeAnnotation":return TKe(e,t,r);case"InferTypeAnnotation":return e0r(e,t,r);case"FunctionTypeAnnotation":return Gir(e,t,r);case"TupleTypeAnnotation":return DKe(e,t,r);case"TupleTypeLabeledElement":return r0r(e,t,r);case"TupleTypeSpreadElement":return t0r(e,t,r);case"GenericTypeAnnotation":return[r("id"),IR(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Rir(e,t,r);case"TypeAnnotation":return i0r(e,t,r);case"TypeParameter":return w0r(e,t,r);case"TypeofTypeAnnotation":return u0r(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return a0r(r);case"DeclareEnum":case"EnumDeclaration":return K0r(e,r,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return xEi(e,r,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return j0r(e,r);case"FunctionTypeParam":{let a=n.name?r("name"):e.parent.this===n?"this":"";return[a,d7(e),a?": ":"",r("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return U0r(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:a}=n;return iKe.ok(a==="plus"||a==="minus"),a==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value")];case"ObjectTypeMappedTypeProperty":return NCi(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value")];case"ObjectTypeProperty":{let a="";return n.proto?a="proto ":n.static&&(a="static "),[a,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",KR(e,t,r),d7(e),Jme(n)?"":": ",r("value")]}case"ObjectTypeAnnotation":return Xme(e,t,r);case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",d7(e),n.method?"":": ",r("value")];case"ObjectTypeSpreadProperty":return _0r(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return fJ(xj(d4(n),t));case"NumberLiteralTypeAnnotation":return Dj(n.raw??n.extra.raw);case"BigIntLiteralTypeAnnotation":return eKe(n.raw??n.extra.raw);case"TypeCastExpression":return["(",r("expression"),Qh(e,r),")"];case"TypePredicate":return o0r(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return IR(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return L0r(e,t,r)}}function bEi(e,t,r){var n;let{node:i}=e;if(!i.type.startsWith("TS"))return;if(Onr(i))return i.type.slice(2,-7).toLowerCase();let a=t.semi?";":"",u=[];switch(i.type){case"TSThisType":return"this";case"TSTypeAssertion":{let s=!(Wh(i.expression)||Qg(i.expression)),l=Qr(["<",Gn([Qn,r("typeAnnotation")]),Qn,">"]),h=[cu("("),Gn([Qn,r("expression")]),Qn,cu(")")];return s?pJ([[l,r("expression")],[l,Qr(h,{shouldBreak:!0})],[l,r("expression")]]):Qr([l,r("expression")])}case"TSDeclareFunction":return f0r(e,r,t);case"TSExportAssignment":return["export = ",r("expression"),a];case"TSModuleBlock":return x0r(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return Xme(e,t,r);case"TSTypeAliasDeclaration":return Wir(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return E0r(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return k0r(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[r("expression"),r(i.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return Cir(e,r,t);case"TSNamedTupleMember":return r0r(e,t,r);case"TSRestType":return t0r(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return U0r(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return IR(e,t,r,"params");case"TSTypeParameter":return w0r(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return L0r(e,t,r);case"TSArrayType":return a0r(r);case"TSPropertySignature":return[i.readonly?"readonly ":"",KR(e,t,r),d7(e),Qh(e,r)];case"TSParameterProperty":return[Nme(i),i.static?"static ":"",i.override?"override ":"",i.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return u0r(e,r);case"TSIndexSignature":{let s=i.parameters.length>1?cu(xC(t)?",":""):"",l=Qr([Gn([Qn,po([", ",Qn],e.map(r,"parameters"))]),s,Qn]),h=e.parent.type==="ClassBody"&&e.key==="body";return[h&&i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?l:"","]",Qh(e,r),h?a:""]}case"TSTypePredicate":return o0r(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return["import(",r("argument"),")",i.qualifier?[".",r("qualifier")]:"",IR(e,t,r,i.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return Rir(e,t,r);case"TSTypeOperator":return[i.operator," ",r("typeAnnotation")];case"TSMappedType":return BCi(e,t,r);case"TSMethodSignature":{let s=i.kind&&i.kind!=="method"?`${i.kind} `:"";u.push(Nme(i),s,i.computed?"[":"",r("key"),i.computed?"]":"",d7(e));let l=bJ(e,r,t,!1,!0),h=i.returnType?"returnType":"typeAnnotation",_=i[h],p=_?Qh(e,r,h):"",f=Ej(i,p);return u.push(f?Qr(l):l),_&&u.push(Qr(p)),Qr(u)}case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return K0r(e,r,t);case"TSEnumMember":return j0r(e,r);case"TSImportEqualsDeclaration":return[i.isExport?"export ":"","import ",J0r(i,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",r("expression"),")"];case"TSModuleDeclaration":{let{parent:s}=e,l=s.type==="TSModuleDeclaration",h=((n=i.body)==null?void 0:n.type)==="TSModuleDeclaration";return l?u.push("."):(u.push(Mm(e)),i.kind!=="global"&&u.push(i.kind," ")),u.push(r("id")),h?u.push(r("body")):i.body?u.push(" ",Qr(r("body"))):u.push(a),u}case"TSConditionalType":return TKe(e,t,r);case"TSInferType":return e0r(e,t,r);case"TSIntersectionType":return Yir(e,t,r);case"TSUnionType":return Hir(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Gir(e,t,r);case"TSTupleType":return DKe(e,t,r);case"TSTypeReference":return[r("typeName"),IR(e,t,r,i.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return i0r(e,t,r);case"TSEmptyBodyFunctionExpression":return wKe(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Nnr(e,r,"?");case"TSJSDocNonNullableType":return Nnr(e,r,"!");case"TSParenthesizedType":default:throw new Cj(i,"TypeScript")}}function TEi(e,t,r,n){if($ir(e))return Vbi(e,t);for(let i of[ATi,dTi,AEi,bEi,hEi]){let a=i(e,t,r,n);if(a!==void 0)return a}}function EEi(e,t,r,n){var i;e.isRoot&&((i=t.__onHtmlBindingRoot)==null||i.call(t,e.node,t));let a=TEi(e,t,r,n);if(!a)return"";let{node:u}=e;if(CEi(u))return a;let s=Ko(u.decorators),l=ETi(e,t,r),h=u.type==="ClassExpression";if(s&&!h)return Xje(a,(f)=>Qr([l,f]));let _=AJ(e,t),p=KCi(e,t);return!l&&!_&&!p?a:Xje(a,(f)=>[p?";":"",_?"(":"",_&&h&&s?[Gn([m0,l,f]),m0]:[l,f],_?")":""])}function $Ei(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),Wn];case"ArrayExpression":{if(n.elements.length===0)return"[]";let i=e.map(()=>e.node===null?"null":r(),"elements");return["[",Gn([Wn,po([",",Wn],i)]),Wn,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",Gn([Wn,po([",",Wn],e.map(r,"properties"))]),Wn,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return Inr(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return Inr(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new Cj(n,"JSON")}}function Inr(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}function O0r(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,i]of e.elements.entries())i===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}var FDi,Mnr=(e)=>{throw TypeError(e)},Bme=(e,t)=>{for(var r in t)FDi(e,r,{get:t[r],enumerable:!0})},znr=(e,t,r)=>t.has(e)||Mnr("Cannot "+r),oP=(e,t,r)=>(znr(e,t,"read from private field"),r?r.call(e):t.get(e)),SDi=(e,t,r)=>t.has(e)?Mnr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),PDi=(e,t,r,n)=>(znr(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Vnr,NDi,Lnr,BDi=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Oh,qDi=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},xs,JDi,VDi=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,jDi=(e)=>!(LDi(e)||XDi(e)),KDi,dj,Oia,yj,ZDi,ODi,gj,dy,tKe,rKe,nKe,Ko,Xnr,iKe,vme="'",pnr='"',jnr,rwi,xj,NR=null,uwi=10,Knr,lwi,_wi,Unr,is,hwi,x4,pwi,Znr,dwi,Onr,wj,xwi,Wh,Qg,uKe,Dwi,_P,MR,Y2,dC,bwi,Cwi,Gnr=(e)=>(t)=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),$o,L_,kwi=0.25,Swi,dnr,Dme,Vje,Nwi,Fje,Sje,E0,nir=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,i)=>!(e&E0.Leading&&!r.leading||e&E0.Trailing&&!r.trailing||e&E0.Dangling&&(r.leading||r.trailing)||e&E0.Block&&!x4(r)||e&E0.Line&&!wj(r)||e&E0.First&&n!==0||e&E0.Last&&n!==i.length-1||e&E0.PrettierIgnore&&!Sme(r)||t&&!t(r))},vC=(e,{originalText:t})=>nKe(t,fo(e)),Uw,hP,_Ke,pP,Jwi,hj=(e)=>{for(let t of e.quasis)delete t.value},Iwi,dJ="string",yC="array",Aj="cursor",yJ="indent",gJ="align",xJ="trim",y4="group",mP="fill",Zw="if-break",vJ="indent-if-break",DJ="line-suffix",dP="line-suffix-boundary",zm="line",wC="label",AC="break-parent",air,yP,zwi=(e)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e),Lwi,zR,gnr,cKe,pKe=()=>{},Ow,oir,Ywi,gC,Ww,_ir,Gwi,m0,Qn,Wn,cir,wme,tAi,hir,Tj,Wg,fP,pir,dAi,yAi,gAi,kAi,FAi,wir,IAi,Jm,Kw,fj,Kje,UAi,OAi,Oje,obi,hbi,Nje=0,fbi,mbi,ybi,wbi,Tbi,Cbi,Ebi,Pir,kbi,wnr,Fbi,Anr,Sbi,Nir,Jbi,Vbi,Lbi,AJ,Qbi,Wbi=()=>!0,Gbi,Cj,Ug,eTi=class{constructor(e){SDi(this,Ug),PDi(this,Ug,new Set(e))}getLeadingWhitespaceCount(e){let t=oP(this,Ug),r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=oP(this,Ug),r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return oP(this,Ug).has(e.charAt(0))}hasTrailingWhitespace(e){return oP(this,Ug).has(xs(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let r=`[${Rbi([...oP(this,Ug)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=oP(this,Ug);return Array.prototype.some.call(e,(r)=>t.has(r))}hasNonWhitespaceCharacter(e){let t=oP(this,Ug);return Array.prototype.some.call(e,(r)=>!t.has(r))}isWhitespaceOnly(e){let t=oP(this,Ug);return Array.prototype.every.call(e,(r)=>t.has(r))}},tTi,Tme,Bje=(e)=>e===""||e===m0||e===Wn||e===Qn,iTi,$ir,DTi=0,Enr=(e)=>e.type==="BinaryExpression"&&e.operator==="|",bTi,Pme,Hje,qTi=(e)=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),$o(e)&&v4(e).length>0),JTi,KTi,OTi,tCi,rCi,uCi,n0r=(e)=>e.match((t)=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match((t)=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match((t)=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match((t)=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match((t)=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":",oCi,sCi,hCi,pCi=(e)=>hCi.test(e),fCi,Dj,Eme,yCi=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&Jme(r)),$je,g0r=(e)=>e.type==="SequenceExpression",ECi=(e,t,r)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let i=t[n];if(r(i,n,t))return i}}},kCi,v0r,AKe,A0r,T0r,LCi,XCi,B0r,q0r=(e)=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default,HCi,aEi,_Ei,Mje=(e)=>[cu("("),Gn([Qn,e]),Qn,cu(")")],CEi,kEi,FEi,SEi,Z0r,PEi,NEi,BEi,qEi,JEi,BR,lP="JavaScript",IEi,Q0r,W0r,Y0r,MEi;var G0r=Is(()=>{FDi=Object.defineProperty,Vnr={};Bme(Vnr,{languages:()=>Y0r,options:()=>Q0r,printers:()=>W0r});NDi=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],Lnr={};Bme(Lnr,{canAttachComment:()=>MAi,embed:()=>Tbi,experimentalFeatures:()=>FEi,getCommentChildNodes:()=>zAi,getVisitorKeys:()=>Unr,handleComments:()=>hir,insertPragma:()=>Mbi,isBlockComment:()=>x4,isGap:()=>VAi,massageAstNode:()=>Iwi,print:()=>kEi,printComment:()=>rAi,willPrintOwnComments:()=>Air});Oh=BDi,xs=qDi;JDi=$Di;KDi=/[^\x20-\x7F]/u;dj=UDi;Oia=qme(/\s/u),yj=qme(" \t"),ZDi=qme(",; \t"),ODi=qme(/[^\n\r]/u);gj=QDi;dy=WDi;tKe=YDi;rKe=HDi;nKe=GDi;Ko=RDi,Xnr=new Proxy(()=>{},{get:()=>Xnr}),iKe=Xnr;jnr=ewi;rwi=twi;xj=nwi;for(let e=0;e<=uwi;e++)$R();Knr=swi,lwi={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},_wi=Knr(lwi),Unr=_wi;is=cwi,hwi=is(["Block","CommentBlock","MultiLine"]),x4=hwi,pwi=is(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Znr=pwi;dwi=mwi;Onr=ywi;wj=is(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),xwi=is(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Wh=is(["ArrayExpression","TupleExpression"]),Qg=is(["ObjectExpression","RecordExpression"]);uKe=is(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Dwi=is(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),_P=is(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),MR=is(["FunctionExpression","ArrowFunctionExpression"]);Y2=is(["JSXElement","JSXFragment"]);dC=is(["BinaryExpression","LogicalExpression","NGPipeExpression"]);bwi=is(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);Cwi=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];$o=Gnr(is(["CallExpression","OptionalCallExpression"])),L_=Gnr(is(["MemberExpression","OptionalMemberExpression"]));Swi=new Set(["!","-","+","~"]);dnr={"==":!0,"!=":!0,"===":!0,"!==":!0},Dme={"*":!0,"/":!0,"%":!0},Vje={">>":!0,">>>":!0,"<<":!0};Nwi=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map((r)=>[r,t])));Fje=new WeakMap;Sje=new WeakMap;E0={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256};Uw=is(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),hP=is(["TSUnionType","UnionTypeAnnotation"]),_Ke=is(["TSIntersectionType","IntersectionTypeAnnotation"]),pP=is(["TSConditionalType","ConditionalTypeAnnotation"]),Jwi=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]);iir.ignoredProperties=Jwi;Iwi=iir,air=new Set([Aj,yJ,gJ,xJ,y4,mP,Zw,vJ,DJ,dP,zm,wC,AC]);yP=Mwi;Lwi=class extends Error{name="InvalidDocError";constructor(e){super(Vwi(e)),this.doc=e}},zR=Lwi,gnr={};cKe=Xwi;Ow=pKe,oir=pKe,Ywi=pKe;gC={type:dP},Ww={type:AC},_ir={type:zm,hard:!0},Gwi={type:zm,hard:!0,literal:!0},m0={type:zm},Qn={type:zm,soft:!0},Wn=[_ir,Ww],cir=[Gwi,Ww],wme={type:Aj};tAi=eAi;hir={};Bme(hir,{endOfLine:()=>_Ai,ownLine:()=>lAi,remaining:()=>cAi});Tj=aAi;Wg=uAi;fP=oAi;pir=sAi;dAi=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);yAi=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);gAi=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);kAi=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),FAi=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);wir=is(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),IAi=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);Jm=Symbol("MODE_BREAK"),Kw=Symbol("MODE_FLAT"),fj=Symbol("cursor"),Kje=Symbol("DOC_FILL_PRINTED_LENGTH");UAi=KAi;OAi=ZAi;Oje=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];obi=ubi;hbi=cbi;fbi=Sir.bind(void 0,"html"),mbi=Sir.bind(void 0,"angular");ybi=dbi;wbi=vbi;Tbi=Abi,Cbi=/\*\/$/,Ebi=/^\/\*\*?/,Pir=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,kbi=/(^|\s+)\/\/([^\n\r]*)/g,wnr=/^(\r?\n)+/,Fbi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Anr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Sbi=/(\r?\n|^) *\* ?/g,Nir=[];Jbi=$bi;Vbi=zbi;Lbi=is(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);AJ=Qje;Qbi=Obi;Gbi=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Cj=Gbi;Ug=new WeakMap;tTi=eTi,Tme=new tTi(`
|
|
441
441
|
\r `);iTi=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);$ir=vTi;bTi=is(["CallExpression","OptionalCallExpression","AssignmentExpression"]);Pme=class extends Error{name="ArgExpansionBailout"};Hje=kTi;JTi=Xir;KTi=is(["TSTypeAliasDeclaration","TypeAlias"]);OTi=is(["TSTypeReference","GenericTypeAnnotation"]);tCi=is(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),rCi=is(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);uCi=new WeakSet;oCi=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);sCi=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);hCi=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,fCi=pCi;Dj=mCi,Eme=new WeakMap;$je=new WeakMap;kCi=ECi;v0r=SCi;AKe=v0r("typeParameters");A0r=is(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);T0r=v0r("heritageGroup");LCi=is(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);XCi=is(["FunctionExpression","ArrowFunctionExpression"]);B0r=WCi;HCi=is(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);aEi=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);_Ei=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);CEi=is(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);kEi=EEi,FEi={avoidAstMutation:!0},SEi=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],Z0r={};Bme(Z0r,{getVisitorKeys:()=>qEi,massageAstNode:()=>O0r,print:()=>$Ei});PEi={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},NEi=PEi,BEi=Knr(NEi),qEi=BEi;JEi=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);O0r.ignoredProperties=JEi;BR={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},IEi={arrowParens:{category:lP,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:BR.bracketSameLine,objectWrap:BR.objectWrap,bracketSpacing:BR.bracketSpacing,jsxBracketSameLine:{category:lP,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:lP,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:lP,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:lP,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:BR.singleQuote,jsxSingleQuote:{category:lP,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:lP,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:lP,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:BR.singleAttributePerLine},Q0r=IEi,W0r={estree:Lnr,"estree-json":Z0r},Y0r=[...NDi,...SEi],MEi=Vnr});var uar={};$_(uar,{parsers:()=>PKe,default:()=>Iki});function WEi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function GEi(e){return Array.isArray(e)&&e.length>0}function Yw(e){var t,r,n;let i=((t=e.range)==null?void 0:t[0])??e.start,a=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return a?Math.min(Yw(a),i):i}function TJ(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function eki(e){let t=new Set(e);return(r)=>t.has(r==null?void 0:r.type)}function nki(e){let t=`*${e.value}*`.split(`
|
|
442
442
|
`);return t.length>1&&t.every((r)=>r.trimStart()[0]==="*")}function iki(e){return EKe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}function ZR(e){if(UR!==null&&typeof UR.property){let t=UR;return UR=ZR.prototype=null,t}return UR=ZR.prototype=e??Object.create(null),new ZR}function oki(e){return ZR(e)}function ski(e,t="type"){oki(e);function r(n){let i=n[t],a=e[i];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:n});return a}return r}function kKe(e,t){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=kKe(e[n],t);return e}let r=hki(e);for(let n=0;n<r.length;n++)e[r[n]]=kKe(e[r[n]],t);return t(e)||e}function pki(e,t){let{parser:r,text:n}=t;if(e.type==="File"&&e.program.interpreter){let{program:{interpreter:i},comments:a}=e;delete e.program.interpreter,a.unshift(i)}if(r==="babel"){let i=new Set;e=CKe(e,(a)=>{var u;(u=a.leadingComments)!=null&&u.some(aki)&&i.add(Yw(a))}),e=CKe(e,(a)=>{if(a.type==="ParenthesizedExpression"){let{expression:u}=a;if(u.type==="TypeCastExpression")return u.range=[...a.range],u;let s=Yw(a);if(!i.has(s))return u.extra={...u.extra,parenthesized:!0},u}})}if(e=CKe(e,(i)=>{switch(i.type){case"LogicalExpression":if(aar(i))return FKe(i);break;case"VariableDeclaration":{let a=R0r(!1,i.declarations,-1);a!=null&&a.init&&n[TJ(a)]!==";"&&(i.range=[Yw(i),TJ(a)]);break}case"TSParenthesizedType":return i.typeAnnotation;case"TSTypeParameter":if(typeof i.name=="string"){let a=Yw(i);i.name={type:"Identifier",name:i.name,range:[a,a+i.name.length]}}break;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(i.types.length===1)return i.types[0];break}}),REi(e.comments)){let i=R0r(!1,e.comments,-1);for(let a=e.comments.length-2;a>=0;a--){let u=e.comments[a];TJ(u)===Yw(i)&&EKe(u)&&EKe(i)&&ear(u)&&ear(i)&&(e.comments.splice(a+1,1),u.value+="*//*"+i.value,u.range=[Yw(u),TJ(i)]),i=u}}return e.type==="Program"&&(e.range=[0,n.length]),e}function aar(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function FKe(e){return aar(e)?FKe({type:"LogicalExpression",operator:e.operator,left:FKe({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Yw(e.left),TJ(e.right.left)]}),right:e.right.right,range:[Yw(e),TJ(e)]}):e}function Aki(e){let t=e.match(gki);return t?t[0].trimStart():""}function bki(e){let t=`
|
|
443
443
|
`;e=jme(!1,e.replace(yki,"").replace(dki,""),Dki,"$1");let r="";for(;r!==e;)r=e,e=jme(!1,e,vki,`${t}$1 $2${t}`);e=e.replace(tar,"").trimEnd();let n=Object.create(null),i=jme(!1,e,rar,"").replace(tar,"").trimEnd(),a;for(;a=rar.exec(e);){let u=jme(!1,a[2],xki,"");if(typeof n[a[1]]=="string"||Array.isArray(n[a[1]])){let s=n[a[1]];n[a[1]]=[...wki,...Array.isArray(s)?s:[s],u]}else n[a[1]]=u}return{comments:i,pragmas:n}}function Tki(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
@@ -498,7 +498,7 @@ Expecting `+ct.join(", ")+", got '"+(this.terminals_[Vr]||Vr)+"'":st="Parse erro
|
|
|
498
498
|
`,_=n.split(/\r\n|[\n\r]/g),p=_[i];if(p.length>120){let f=Math.floor(l/80),m=l%80,d=[];for(let x=0;x<p.length;x+=80)d.push(p.slice(x,x+80));return h+bur([[`${u} |`,d[0]],...d.slice(1,f+1).map((x)=>["|",x]),["|","^".padStart(m)],["|",d[f+1]]])}return h+bur([[`${u-1} |`,_[i-1]],[`${u} |`,p],["|","^".padStart(l)],[`${u+1} |`,_[i+1]]])}function bur(e){let t=e.filter(([n,i])=>i!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
|
|
499
499
|
`)}function MPi(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function Tur(e){return e===void 0||e.length===0?void 0:e}function H2(e,t,r){return new zPi(`Syntax Error: ${r}`,{source:e,positions:[t]})}function VPi(e){return e===9||e===32}function oee(e){return e>=48&&e<=57}function Xur(e){return e>=97&&e<=122||e>=65&&e<=90}function jur(e){return Xur(e)||e===95}function LPi(e){return Xur(e)||oee(e)||e===95}function XPi(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let u=0;u<e.length;++u){var a;let s=e[u],l=jPi(s);l!==s.length&&(n=(a=n)!==null&&a!==void 0?a:u,i=u,u!==0&&l<r&&(r=l))}return e.map((u,s)=>s===0?u:u.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,i+1)}function jPi(e){let t=0;for(;t<e.length&&VPi(e.charCodeAt(t));)++t;return t}function UPi(e){return e===$n.BANG||e===$n.DOLLAR||e===$n.AMP||e===$n.PAREN_L||e===$n.PAREN_R||e===$n.SPREAD||e===$n.COLON||e===$n.EQUALS||e===$n.AT||e===$n.BRACKET_L||e===$n.BRACKET_R||e===$n.BRACE_L||e===$n.PIPE||e===$n.BRACE_R}function Mj(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function sde(e,t){return Kur(e.charCodeAt(t))&&Uur(e.charCodeAt(t+1))}function Kur(e){return e>=55296&&e<=56319}function Uur(e){return e>=56320&&e<=57343}function PJ(e,t){let r=e.source.body.codePointAt(t);if(r===void 0)return $n.EOF;if(r>=32&&r<=126){let n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function e1(e,t,r,n,i){let a=e.line,u=1+r-e.lineStart;return new qur(t,r,n,a,u,i)}function ZPi(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let a=r.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:r.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return OPi(e,i);case 33:return e1(e,$n.BANG,i,i+1);case 36:return e1(e,$n.DOLLAR,i,i+1);case 38:return e1(e,$n.AMP,i,i+1);case 40:return e1(e,$n.PAREN_L,i,i+1);case 41:return e1(e,$n.PAREN_R,i,i+1);case 46:if(r.charCodeAt(i+1)===46&&r.charCodeAt(i+2)===46)return e1(e,$n.SPREAD,i,i+3);break;case 58:return e1(e,$n.COLON,i,i+1);case 61:return e1(e,$n.EQUALS,i,i+1);case 64:return e1(e,$n.AT,i,i+1);case 91:return e1(e,$n.BRACKET_L,i,i+1);case 93:return e1(e,$n.BRACKET_R,i,i+1);case 123:return e1(e,$n.BRACE_L,i,i+1);case 124:return e1(e,$n.PIPE,i,i+1);case 125:return e1(e,$n.BRACE_R,i,i+1);case 34:return r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34?RPi(e,i):WPi(e,i)}if(oee(a)||a===45)return QPi(e,i,a);if(jur(a))return eNi(e,i);throw H2(e.source,i,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Mj(a)||sde(r,i)?`Unexpected character: ${PJ(e,i)}.`:`Invalid character: ${PJ(e,i)}.`)}return e1(e,$n.EOF,n,n)}function OPi(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let a=r.charCodeAt(i);if(a===10||a===13)break;if(Mj(a))++i;else if(sde(r,i))i+=2;else break}return e1(e,$n.COMMENT,t,i,r.slice(t+1,i))}function QPi(e,t,r){let n=e.source.body,i=t,a=r,u=!1;if(a===45&&(a=n.charCodeAt(++i)),a===48){if(a=n.charCodeAt(++i),oee(a))throw H2(e.source,i,`Invalid number, unexpected digit after 0: ${PJ(e,i)}.`)}else i=fUe(e,i,a),a=n.charCodeAt(i);if(a===46&&(u=!0,a=n.charCodeAt(++i),i=fUe(e,i,a),a=n.charCodeAt(i)),(a===69||a===101)&&(u=!0,a=n.charCodeAt(++i),(a===43||a===45)&&(a=n.charCodeAt(++i)),i=fUe(e,i,a),a=n.charCodeAt(i)),a===46||jur(a))throw H2(e.source,i,`Invalid number, expected digit but got: ${PJ(e,i)}.`);return e1(e,u?$n.FLOAT:$n.INT,t,i,n.slice(t,i))}function fUe(e,t,r){if(!oee(r))throw H2(e.source,t,`Invalid number, expected digit but got: ${PJ(e,t)}.`);let n=e.source.body,i=t+1;for(;oee(n.charCodeAt(i));)++i;return i}function WPi(e,t){let r=e.source.body,n=r.length,i=t+1,a=i,u="";for(;i<n;){let s=r.charCodeAt(i);if(s===34)return u+=r.slice(a,i),e1(e,$n.STRING,t,i+1,u);if(s===92){u+=r.slice(a,i);let l=r.charCodeAt(i+1)===117?r.charCodeAt(i+2)===123?YPi(e,i):HPi(e,i):GPi(e,i);u+=l.value,i+=l.size,a=i;continue}if(s===10||s===13)break;if(Mj(s))++i;else if(sde(r,i))i+=2;else throw H2(e.source,i,`Invalid character within String: ${PJ(e,i)}.`)}throw H2(e.source,i,"Unterminated string.")}function YPi(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let a=r.charCodeAt(t+i++);if(a===125){if(i<5||!Mj(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|iee(a),n<0)break}throw H2(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function HPi(e,t){let r=e.source.body,n=Cur(r,t+2);if(Mj(n))return{value:String.fromCodePoint(n),size:6};if(Kur(n)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){let i=Cur(r,t+8);if(Uur(i))return{value:String.fromCodePoint(n,i),size:12}}throw H2(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function Cur(e,t){return iee(e.charCodeAt(t))<<12|iee(e.charCodeAt(t+1))<<8|iee(e.charCodeAt(t+2))<<4|iee(e.charCodeAt(t+3))}function iee(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function GPi(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
500
500
|
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw H2(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function RPi(e,t){let r=e.source.body,n=r.length,i=e.lineStart,a=t+3,u=a,s="",l=[];for(;a<n;){let h=r.charCodeAt(a);if(h===34&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){s+=r.slice(u,a),l.push(s);let _=e1(e,$n.BLOCK_STRING,t,a+3,XPi(l).join(`
|
|
501
|
-
`));return e.line+=l.length-1,e.lineStart=i,_}if(h===92&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34&&r.charCodeAt(a+3)===34){s+=r.slice(u,a),u=a+1,a+=4;continue}if(h===10||h===13){s+=r.slice(u,a),l.push(s),h===13&&r.charCodeAt(a+1)===10?a+=2:++a,s="",u=a,i=a;continue}if(Mj(h))++a;else if(sde(r,a))a+=2;else throw H2(e.source,a,`Invalid character within String: ${PJ(e,a)}.`)}throw H2(e.source,a,"Unterminated string.")}function eNi(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let a=r.charCodeAt(i);if(LPi(a))++i;else break}return e1(e,$n.NAME,t,i,r.slice(t,i))}function mUe(e,t){if(!e)throw new Error(t)}function Zur(e){return lde(e,[])}function lde(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return tNi(e,t);default:return String(e)}}function tNi(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(rNi(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:lde(n,r)}else if(Array.isArray(e))return iNi(e,r);return nNi(e,r)}function rNi(e){return typeof e.toJSON=="function"}function nNi(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>2?"["+aNi(e)+"]":"{ "+r.map(([n,i])=>n+": "+lde(i,t)).join(", ")+" }"}function iNi(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let r=Math.min(10,e.length),n=e.length-r,i=[];for(let a=0;a<r;++a)i.push(lde(e[a],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function aNi(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}function sNi(e){return oNi(e,Our)}function lNi(e,t){let r=new _Ni(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function ude(e){let t=e.value;return Qur(e.kind)+(t!=null?` "${t}"`:"")}function Qur(e){return UPi(e)?`"${e}"`:e}function cNi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function pNi(e){let t=[],{startToken:r,endToken:n}=e.loc;for(let i=r;i!==n;i=i.next)i.kind==="Comment"&&t.push({...i,loc:{start:i.start,end:i.end}});return t}function mNi(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[r]}=e;return hNi(t,{loc:{start:r},cause:e})}return e}function dNi(e){let t;try{t=lNi(e,fNi)}catch(r){throw mNi(r)}return t.comments=pNi(t),t}var OSi,Eur=(e,t)=>{for(var r in t)OSi(e,r,{get:t[r],enumerable:!0})},kur,QSi=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},pUe,WSi="indent",YSi="group",HSi="if-break",gUe="line",GSi="break-parent",Fur=()=>{},uee,Sur,RSi,ePi,Ij,X_,Rc,T0a,Pur,tPi,rPi,Nur,aPi,oPi,lPi,cPi,Bur,pPi,fPi,nee=null,mPi=10,gPi,xPi,qur,$ur,C0a,Jj,vPi,DPi,CC,SPi,PPi,zur,NPi,BPi,Vur,xUe,JPi,zPi,yUe,$a,$n,KPi,uNi,oNi,Our,_Ni=class{constructor(e,t={}){let r=sNi(e)?e:new Our(e);this._lexer=new KPi(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken($n.NAME);return this.node(e,{kind:$a.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:$a.DOCUMENT,definitions:this.many($n.SOF,this.parseDefinition,$n.EOF)})}parseDefinition(){if(this.peek($n.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===$n.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw H2(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek($n.BRACE_L))return this.node(e,{kind:$a.OPERATION_DEFINITION,operation:Jj.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseOperationType(),r;return this.peek($n.NAME)&&(r=this.parseName()),this.node(e,{kind:$a.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken($n.NAME);switch(e.value){case"query":return Jj.QUERY;case"mutation":return Jj.MUTATION;case"subscription":return Jj.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany($n.PAREN_L,this.parseVariableDefinition,$n.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:$a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken($n.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken($n.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken($n.DOLLAR),this.node(e,{kind:$a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:$a.SELECTION_SET,selections:this.many($n.BRACE_L,this.parseSelection,$n.BRACE_R)})}parseSelection(){return this.peek($n.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),r,n;return this.expectOptionalToken($n.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:$a.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek($n.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany($n.PAREN_L,t,$n.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken($n.COLON),this.node(t,{kind:$a.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken($n.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek($n.NAME)?this.node(e,{kind:$a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:$a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:$a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:$a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case $n.BRACKET_L:return this.parseList(e);case $n.BRACE_L:return this.parseObject(e);case $n.INT:return this.advanceLexer(),this.node(t,{kind:$a.INT,value:t.value});case $n.FLOAT:return this.advanceLexer(),this.node(t,{kind:$a.FLOAT,value:t.value});case $n.STRING:case $n.BLOCK_STRING:return this.parseStringLiteral();case $n.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:$a.BOOLEAN,value:!0});case"false":return this.node(t,{kind:$a.BOOLEAN,value:!1});case"null":return this.node(t,{kind:$a.NULL});default:return this.node(t,{kind:$a.ENUM,value:t.value})}case $n.DOLLAR:if(e)if(this.expectToken($n.DOLLAR),this._lexer.token.kind===$n.NAME){let r=this._lexer.token.value;throw H2(this._lexer.source,t.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:$a.STRING,value:e.value,block:e.kind===$n.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:$a.LIST,values:this.any($n.BRACKET_L,t,$n.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:$a.OBJECT,fields:this.any($n.BRACE_L,t,$n.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken($n.COLON),this.node(t,{kind:$a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek($n.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken($n.AT),this.node(t,{kind:$a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken($n.BRACKET_L)){let r=this.parseTypeReference();this.expectToken($n.BRACKET_R),t=this.node(e,{kind:$a.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken($n.BANG)?this.node(e,{kind:$a.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:$a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek($n.STRING)||this.peek($n.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many($n.BRACE_L,this.parseOperationTypeDefinition,$n.BRACE_R);return this.node(e,{kind:$a.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken($n.COLON);let r=this.parseNamedType();return this.node(e,{kind:$a.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:$a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany($n.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany($n.BRACE_L,this.parseFieldDefinition,$n.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken($n.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:$a.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany($n.PAREN_L,this.parseInputValueDef,$n.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken($n.COLON);let n=this.parseTypeReference(),i;this.expectOptionalToken($n.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:$a.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$a.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:$a.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken($n.EQUALS)?this.delimitedMany($n.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:$a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany($n.BRACE_L,this.parseEnumValueDefinition,$n.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:$a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw H2(this._lexer.source,this._lexer.token.start,`${ude(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:$a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany($n.BRACE_L,this.parseInputValueDef,$n.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===$n.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany($n.BRACE_L,this.parseOperationTypeDefinition,$n.BRACE_R);if(t.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:$a.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(e,{kind:$a.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:$a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:$a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:$a.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:$a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:$a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken($n.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:$a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany($n.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(yUe,t.value))return t;throw this.unexpected(e)}node(e,t){return this._options.noLocation!==!0&&(t.loc=new xPi(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw H2(this._lexer.source,t.start,`Expected ${Qur(e)}, found ${ude(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===$n.NAME&&t.value===e)this.advanceLexer();else throw H2(this._lexer.source,t.start,`Expected "${e}", found ${ude(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===$n.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return H2(this._lexer.source,t.start,`Unexpected ${ude(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==$n.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw H2(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}},hNi,fNi,yNi,Wur,gNi;var Hur=Is(()=>{OSi=Object.defineProperty,kur={};Eur(kur,{languages:()=>zur,options:()=>Vur,parsers:()=>xUe,printers:()=>Wur});pUe=QSi,uee=Fur,Sur=Fur;RSi={type:GSi},ePi={type:gUe,hard:!0},Ij={type:gUe},X_={type:gUe,soft:!0},Rc=[ePi,RSi];T0a=ode(/\s/u),Pur=ode(" "),tPi=ode(",; "),rPi=ode(/[^\n\r]/u);Nur=nPi;aPi=iPi;oPi=uPi;lPi=sPi;cPi=_Pi;Bur=hPi,pPi=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},fPi=pPi;for(let e=0;e<=mPi;e++)aee();gPi=yPi,xPi=class{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},qur=class{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},$ur={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},C0a=new Set(Object.keys($ur));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Jj||(Jj={}));vPi=gPi($ur,"kind"),DPi=vPi;CC=bPi;Mur.ignoredProperties=new Set(["loc","comments"]);SPi={print:TPi,massageAstNode:Mur,hasPrettierIgnore:FPi,insertPragma:APi,printComment:EPi,canAttachComment:CPi,getVisitorKeys:DPi},PPi=SPi,zur=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],NPi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},BPi={bracketSpacing:NPi.bracketSpacing},Vur=BPi,xUe={};Eur(xUe,{graphql:()=>yNi});JPi=/\r\n|[\n\r]/g;zPi=class e extends Error{constructor(t,...r){var n,i,a;let{nodes:u,source:s,positions:l,path:h,originalError:_,extensions:p}=MPi(r);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=_??void 0,this.nodes=Tur(Array.isArray(u)?u:u?[u]:void 0);let f=Tur((n=this.nodes)===null||n===void 0?void 0:n.map((d)=>d.loc).filter((d)=>d!=null));this.source=s??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=l??(f==null?void 0:f.map((d)=>d.start)),this.locations=l&&s?l.map((d)=>dUe(s,d)):f==null?void 0:f.map((d)=>dUe(d.source,d.start));let m=qPi(_==null?void 0:_.extensions)?_==null?void 0:_.extensions:void 0;this.extensions=(a=p??m)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),_!=null&&_.stack?Object.defineProperty(this,"stack",{value:_.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let r of this.nodes)r.loc&&(t+=`
|
|
501
|
+
`));return e.line+=l.length-1,e.lineStart=i,_}if(h===92&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34&&r.charCodeAt(a+3)===34){s+=r.slice(u,a),u=a+1,a+=4;continue}if(h===10||h===13){s+=r.slice(u,a),l.push(s),h===13&&r.charCodeAt(a+1)===10?a+=2:++a,s="",u=a,i=a;continue}if(Mj(h))++a;else if(sde(r,a))a+=2;else throw H2(e.source,a,`Invalid character within String: ${PJ(e,a)}.`)}throw H2(e.source,a,"Unterminated string.")}function eNi(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let a=r.charCodeAt(i);if(LPi(a))++i;else break}return e1(e,$n.NAME,t,i,r.slice(t,i))}function mUe(e,t){if(!e)throw new Error(t)}function Zur(e){return lde(e,[])}function lde(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return tNi(e,t);default:return String(e)}}function tNi(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let r=[...t,e];if(rNi(e)){let n=e.toJSON();if(n!==e)return typeof n=="string"?n:lde(n,r)}else if(Array.isArray(e))return iNi(e,r);return nNi(e,r)}function rNi(e){return typeof e.toJSON=="function"}function nNi(e,t){let r=Object.entries(e);return r.length===0?"{}":t.length>2?"["+aNi(e)+"]":"{ "+r.map(([n,i])=>n+": "+lde(i,t)).join(", ")+" }"}function iNi(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let r=Math.min(10,e.length),n=e.length-r,i=[];for(let a=0;a<r;++a)i.push(lde(e[a],t));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function aNi(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}function sNi(e){return oNi(e,Our)}function lNi(e,t){let r=new _Ni(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}function ude(e){let t=e.value;return Qur(e.kind)+(t!=null?` "${t}"`:"")}function Qur(e){return UPi(e)?`"${e}"`:e}function cNi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function pNi(e){let t=[],{startToken:r,endToken:n}=e.loc;for(let i=r;i!==n;i=i.next)i.kind==="Comment"&&t.push({...i,loc:{start:i.start,end:i.end}});return t}function mNi(e){if((e==null?void 0:e.name)==="GraphQLError"){let{message:t,locations:[r]}=e;return hNi(t,{loc:{start:r},cause:e})}return e}function dNi(e){let t;try{t=lNi(e,fNi)}catch(r){throw mNi(r)}return t.comments=pNi(t),t}var OSi,Eur=(e,t)=>{for(var r in t)OSi(e,r,{get:t[r],enumerable:!0})},kur,QSi=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},pUe,WSi="indent",YSi="group",HSi="if-break",gUe="line",GSi="break-parent",Fur=()=>{},uee,Sur,RSi,ePi,Ij,X_,Rc,T0a,Pur,tPi,rPi,Nur,aPi,oPi,lPi,cPi,Bur,pPi,fPi,nee=null,mPi=10,gPi,xPi,qur,$ur,C0a,Jj,vPi,DPi,CC,SPi,PPi,zur,NPi,BPi,Vur,xUe,JPi,zPi,yUe,$a,$n,KPi,uNi,oNi,Our,_Ni=class{constructor(e,t={}){let r=sNi(e)?e:new Our(e);this._lexer=new KPi(r),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken($n.NAME);return this.node(e,{kind:$a.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:$a.DOCUMENT,definitions:this.many($n.SOF,this.parseDefinition,$n.EOF)})}parseDefinition(){if(this.peek($n.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===$n.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw H2(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek($n.BRACE_L))return this.node(e,{kind:$a.OPERATION_DEFINITION,operation:Jj.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseOperationType(),r;return this.peek($n.NAME)&&(r=this.parseName()),this.node(e,{kind:$a.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken($n.NAME);switch(e.value){case"query":return Jj.QUERY;case"mutation":return Jj.MUTATION;case"subscription":return Jj.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany($n.PAREN_L,this.parseVariableDefinition,$n.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:$a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken($n.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken($n.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken($n.DOLLAR),this.node(e,{kind:$a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:$a.SELECTION_SET,selections:this.many($n.BRACE_L,this.parseSelection,$n.BRACE_R)})}parseSelection(){return this.peek($n.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),r,n;return this.expectOptionalToken($n.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:$a.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek($n.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany($n.PAREN_L,t,$n.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken($n.COLON),this.node(t,{kind:$a.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken($n.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek($n.NAME)?this.node(e,{kind:$a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:$a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:$a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:$a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case $n.BRACKET_L:return this.parseList(e);case $n.BRACE_L:return this.parseObject(e);case $n.INT:return this.advanceLexer(),this.node(t,{kind:$a.INT,value:t.value});case $n.FLOAT:return this.advanceLexer(),this.node(t,{kind:$a.FLOAT,value:t.value});case $n.STRING:case $n.BLOCK_STRING:return this.parseStringLiteral();case $n.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:$a.BOOLEAN,value:!0});case"false":return this.node(t,{kind:$a.BOOLEAN,value:!1});case"null":return this.node(t,{kind:$a.NULL});default:return this.node(t,{kind:$a.ENUM,value:t.value})}case $n.DOLLAR:if(e)if(this.expectToken($n.DOLLAR),this._lexer.token.kind===$n.NAME){let r=this._lexer.token.value;throw H2(this._lexer.source,t.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:$a.STRING,value:e.value,block:e.kind===$n.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:$a.LIST,values:this.any($n.BRACKET_L,t,$n.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:$a.OBJECT,fields:this.any($n.BRACE_L,t,$n.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken($n.COLON),this.node(t,{kind:$a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek($n.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken($n.AT),this.node(t,{kind:$a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken($n.BRACKET_L)){let r=this.parseTypeReference();this.expectToken($n.BRACKET_R),t=this.node(e,{kind:$a.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken($n.BANG)?this.node(e,{kind:$a.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:$a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek($n.STRING)||this.peek($n.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many($n.BRACE_L,this.parseOperationTypeDefinition,$n.BRACE_R);return this.node(e,{kind:$a.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken($n.COLON);let r=this.parseNamedType();return this.node(e,{kind:$a.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:$a.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$a.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany($n.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany($n.BRACE_L,this.parseFieldDefinition,$n.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken($n.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:$a.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany($n.PAREN_L,this.parseInputValueDef,$n.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken($n.COLON);let n=this.parseTypeReference(),i;this.expectOptionalToken($n.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:$a.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:$a.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:$a.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken($n.EQUALS)?this.delimitedMany($n.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:$a.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany($n.BRACE_L,this.parseEnumValueDefinition,$n.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:$a.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw H2(this._lexer.source,this._lexer.token.start,`${ude(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:$a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany($n.BRACE_L,this.parseInputValueDef,$n.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===$n.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany($n.BRACE_L,this.parseOperationTypeDefinition,$n.BRACE_R);if(t.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:$a.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(e,{kind:$a.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:$a.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(r.length===0&&n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:$a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:$a.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:$a.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:$a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken($n.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let a=this.parseDirectiveLocations();return this.node(e,{kind:$a.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany($n.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(yUe,t.value))return t;throw this.unexpected(e)}node(e,t){return this._options.noLocation!==!0&&(t.loc=new xPi(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw H2(this._lexer.source,t.start,`Expected ${Qur(e)}, found ${ude(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===$n.NAME&&t.value===e)this.advanceLexer();else throw H2(this._lexer.source,t.start,`Expected "${e}", found ${ude(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===$n.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return H2(this._lexer.source,t.start,`Unexpected ${ude(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==$n.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw H2(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}},hNi,fNi,yNi,Wur,gNi;var Hur=Is(()=>{OSi=Object.defineProperty,kur={};Eur(kur,{languages:()=>zur,options:()=>Vur,parsers:()=>xUe,printers:()=>Wur});pUe=QSi,uee=Fur,Sur=Fur;RSi={type:GSi},ePi={type:gUe,hard:!0},Ij={type:gUe},X_={type:gUe,soft:!0},Rc=[ePi,RSi];T0a=ode(/\s/u),Pur=ode(" \t"),tPi=ode(",; \t"),rPi=ode(/[^\n\r]/u);Nur=nPi;aPi=iPi;oPi=uPi;lPi=sPi;cPi=_Pi;Bur=hPi,pPi=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},fPi=pPi;for(let e=0;e<=mPi;e++)aee();gPi=yPi,xPi=class{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},qur=class{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},$ur={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},C0a=new Set(Object.keys($ur));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Jj||(Jj={}));vPi=gPi($ur,"kind"),DPi=vPi;CC=bPi;Mur.ignoredProperties=new Set(["loc","comments"]);SPi={print:TPi,massageAstNode:Mur,hasPrettierIgnore:FPi,insertPragma:APi,printComment:EPi,canAttachComment:CPi,getVisitorKeys:DPi},PPi=SPi,zur=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],NPi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},BPi={bracketSpacing:NPi.bracketSpacing},Vur=BPi,xUe={};Eur(xUe,{graphql:()=>yNi});JPi=/\r\n|[\n\r]/g;zPi=class e extends Error{constructor(t,...r){var n,i,a;let{nodes:u,source:s,positions:l,path:h,originalError:_,extensions:p}=MPi(r);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=_??void 0,this.nodes=Tur(Array.isArray(u)?u:u?[u]:void 0);let f=Tur((n=this.nodes)===null||n===void 0?void 0:n.map((d)=>d.loc).filter((d)=>d!=null));this.source=s??(f==null||(i=f[0])===null||i===void 0?void 0:i.source),this.positions=l??(f==null?void 0:f.map((d)=>d.start)),this.locations=l&&s?l.map((d)=>dUe(s,d)):f==null?void 0:f.map((d)=>dUe(d.source,d.start));let m=qPi(_==null?void 0:_.extensions)?_==null?void 0:_.extensions:void 0;this.extensions=(a=p??m)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),_!=null&&_.stack?Object.defineProperty(this,"stack",{value:_.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let r of this.nodes)r.loc&&(t+=`
|
|
502
502
|
|
|
503
503
|
`+IPi(r.loc));else if(this.source&&this.locations)for(let r of this.locations)t+=`
|
|
504
504
|
|
|
@@ -652,7 +652,7 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let K=P(...O);
|
|
|
652
652
|
`),He=Fe.length-1,He>0?(Ie=pe+He,te=ee-Fe[He].length):(Ie=pe,te=Ce),Q.push(["comment",xe,pe,ie-Ce,Ie,ee-te,ie]),Ce=te,pe=Ie,ie=ee):(O.lastIndex=ie+1,O.test(G),O.lastIndex===0?ee=G.length-1:ee=O.lastIndex-2,Q.push(["word",G.slice(ie,ee+1),pe,ie-Ce,pe,ee-Ce,ie]),ie=ee);break}ie++}return Q}t.exports=e.default}),cji=vi((e,t)=>{e.__esModule=!0;var r=function(){function Ce(pe,ie){for(var ke=0;ke<ie.length;ke++){var Je=ie[ke];Je.enumerable=Je.enumerable||!1,Je.configurable=!0,"value"in Je&&(Je.writable=!0),Object.defineProperty(pe,Je.key,Je)}}return function(pe,ie,ke){return ie&&Ce(pe.prototype,ie),ke&&Ce(pe,ke),pe}}(),n=W_r(),i=de(n),a=Y_r(),u=de(a),s=H_r(),l=de(s),h=HXi(),_=de(h),p=GXi(),f=de(p),m=RXi(),d=de(m),x=eji(),T=de(x),A=tji(),F=de(A),b=rji(),N=de(b),E=nji(),P=de(E),q=iji(),$=de(q),M=aji(),O=de(M),K=uji(),ue=de(K),Q=oji(),G=de(Q),Z=sji(),ee=de(Z),ge=lji(),Fe=de(ge),He=_ji(),xe=de(He),$e=Um(),Ie=te($e);function te(Ce){if(Ce&&Ce.__esModule)return Ce;var pe={};if(Ce!=null)for(var ie in Ce)Object.prototype.hasOwnProperty.call(Ce,ie)&&(pe[ie]=Ce[ie]);return pe.default=Ce,pe}function de(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}function Xe(Ce,pe){if(!(Ce instanceof pe))throw new TypeError("Cannot call a class as a function")}var Ne=function(){function Ce(pe){Xe(this,Ce),this.input=pe,this.lossy=pe.options.lossless===!1,this.position=0,this.root=new _.default;var ie=new f.default;return this.root.append(ie),this.current=ie,this.lossy?this.tokens=xe.default({safe:pe.safe,css:pe.css.trim()}):this.tokens=xe.default(pe),this.loop()}return Ce.prototype.attribute=function(){var pe="",ie=void 0,ke=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)pe+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~pe.indexOf("]")&&this.error("Expected a closing square bracket.");var Je=pe.split(/((?:[*~^$|]?=))([^]*)/),ut=Je[0].split(/(\|)/g),ot={operator:Je[1],value:Je[2],source:{start:{line:ke[2],column:ke[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:ke[4]};if(ut.length>1?(ut[0]===""&&(ut[0]=!0),ot.attribute=this.parseValue(ut[2]),ot.namespace=this.parseNamespace(ut[0])):ot.attribute=this.parseValue(Je[0]),ie=new O.default(ot),Je[2]){var gt=Je[2].split(/(\s+i\s*?)$/),Bt=gt[0].trim();ie.value=this.lossy?Bt:gt[0],gt[1]&&(ie.insensitive=!0,this.lossy||(ie.raws.insensitive=gt[1])),ie.quoted=Bt[0]==="'"||Bt[0]==='"',ie.raws.unquoted=ie.quoted?Bt.slice(1,-1):Bt}this.newNode(ie),this.position++},Ce.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var pe=new G.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(pe.spaces.before=this.parseSpace(this.currToken[1]),pe.source.start.line=this.nextToken[2],pe.source.start.column=this.nextToken[3],pe.source.end.column=this.nextToken[3],pe.source.end.line=this.nextToken[2],pe.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?pe.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?pe.value=this.currToken[1]:this.currToken[0]==="space"&&(pe.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(pe)},Ce.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var pe=new f.default;this.current.parent.append(pe),this.current=pe,this.position++},Ce.prototype.comment=function(){var pe=new T.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(pe),this.position++},Ce.prototype.error=function(pe){throw new this.input.error(pe)},Ce.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},Ce.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},Ce.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},Ce.prototype.namespace=function(){var pe=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(pe);if(this.nextToken[0]==="*")return this.position++,this.universal(pe)},Ce.prototype.nesting=function(){this.newNode(new ee.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},Ce.prototype.parentheses=function(){var pe=this.current.last;if(pe&&pe.type===Ie.PSEUDO){var ie=new f.default,ke=this.current;pe.append(ie),this.current=ie;var Je=1;for(this.position++;this.position<this.tokens.length&&Je;)this.currToken[0]==="("&&Je++,this.currToken[0]===")"&&Je--,Je?this.parse():(ie.parent.source.end.line=this.currToken[2],ie.parent.source.end.column=this.currToken[3],this.position++);Je&&this.error("Expected closing parenthesis."),this.current=ke}else{var ut=1;for(this.position++,pe.value+="(";this.position<this.tokens.length&&ut;)this.currToken[0]==="("&&ut++,this.currToken[0]===")"&&ut--,pe.value+=this.parseParenthesisToken(this.currToken),this.position++;ut&&this.error("Expected closing parenthesis.")}},Ce.prototype.pseudo=function(){for(var pe=this,ie="",ke=this.currToken;this.currToken&&this.currToken[0]===":";)ie+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var Je=void 0;this.splitWord(!1,function(ut,ot){ie+=ut,Je=new $.default({value:ie,source:{start:{line:ke[2],column:ke[3]},end:{line:pe.currToken[4],column:pe.currToken[5]}},sourceIndex:ke[4]}),pe.newNode(Je),ot>1&&pe.nextToken&&pe.nextToken[0]==="("&&pe.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},Ce.prototype.space=function(){var pe=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(pe[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(pe[1]),this.position++):this.combinator()},Ce.prototype.string=function(){var pe=this.currToken;this.newNode(new P.default({value:this.currToken[1],source:{start:{line:pe[2],column:pe[3]},end:{line:pe[4],column:pe[5]}},sourceIndex:pe[6]})),this.position++},Ce.prototype.universal=function(pe){var ie=this.nextToken;if(ie&&ie[1]==="|")return this.position++,this.namespace();this.newNode(new ue.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),pe),this.position++},Ce.prototype.splitWord=function(pe,ie){for(var ke=this,Je=this.nextToken,ut=this.currToken[1];Je&&Je[0]==="word";){this.position++;var ot=this.currToken[1];if(ut+=ot,ot.lastIndexOf("\\")===ot.length-1){var gt=this.nextToken;gt&>[0]==="space"&&(ut+=this.parseSpace(gt[1]," "),this.position++)}Je=this.nextToken}var Bt=u.default(ut,"."),pt=u.default(ut,"#"),St=u.default(ut,"#{");St.length&&(pt=pt.filter(function(Mt){return!~St.indexOf(Mt)}));var Tt=Fe.default(l.default(i.default([[0],Bt,pt])));Tt.forEach(function(Mt,wr){var tr=Tt[wr+1]||ut.length,Vr=ut.slice(Mt,tr);if(wr===0&&ie)return ie.call(ke,Vr,Tt.length);var Tr=void 0;~Bt.indexOf(Mt)?Tr=new d.default({value:Vr.slice(1),source:{start:{line:ke.currToken[2],column:ke.currToken[3]+Mt},end:{line:ke.currToken[4],column:ke.currToken[3]+(tr-1)}},sourceIndex:ke.currToken[6]+Tt[wr]}):~pt.indexOf(Mt)?Tr=new F.default({value:Vr.slice(1),source:{start:{line:ke.currToken[2],column:ke.currToken[3]+Mt},end:{line:ke.currToken[4],column:ke.currToken[3]+(tr-1)}},sourceIndex:ke.currToken[6]+Tt[wr]}):Tr=new N.default({value:Vr,source:{start:{line:ke.currToken[2],column:ke.currToken[3]+Mt},end:{line:ke.currToken[4],column:ke.currToken[3]+(tr-1)}},sourceIndex:ke.currToken[6]+Tt[wr]}),ke.newNode(Tr,pe)}),this.position++},Ce.prototype.word=function(pe){var ie=this.nextToken;return ie&&ie[1]==="|"?(this.position++,this.namespace()):this.splitWord(pe)},Ce.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},Ce.prototype.parse=function(pe){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":pe&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},Ce.prototype.parseNamespace=function(pe){if(this.lossy&&typeof pe=="string"){var ie=pe.trim();return ie.length?ie:!0}return pe},Ce.prototype.parseSpace=function(pe,ie){return this.lossy?ie||"":pe},Ce.prototype.parseValue=function(pe){return this.lossy&&pe&&typeof pe=="string"?pe.trim():pe},Ce.prototype.parseParenthesisToken=function(pe){return this.lossy?pe[0]==="space"?this.parseSpace(pe[1]," "):this.parseValue(pe[1]):pe[1]},Ce.prototype.newNode=function(pe,ie){return ie&&(pe.namespace=this.parseNamespace(ie)),this.spaces&&(pe.spaces.before=this.spaces,this.spaces=""),this.current.append(pe)},r(Ce,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),Ce}();e.default=Ne,t.exports=e.default}),hji=vi((e,t)=>{e.__esModule=!0;var r=function(){function l(h,_){for(var p=0;p<_.length;p++){var f=_[p];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,_,p){return _&&l(h.prototype,_),p&&l(h,p),h}}(),n=cji(),i=a(n);function a(l){return l&&l.__esModule?l:{default:l}}function u(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(h){return u(this,l),this.func=h||function(){},this}return l.prototype.process=function(h){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=new i.default({css:h,error:function(f){throw new Error(f)},options:_});return this.res=p,this.func(p),this},r(l,[{key:"result",get:function(){return String(this.res)}}]),l}();e.default=s,t.exports=e.default}),aA=vi((e,t)=>{var r=function(n,i){let a=new n.constructor;for(let u in n){if(!n.hasOwnProperty(u))continue;let s=n[u],l=typeof s;u==="parent"&&l==="object"?i&&(a[u]=i):u==="source"?a[u]=s:s instanceof Array?a[u]=s.map((h)=>r(h,a)):u!=="before"&&u!=="after"&&u!=="between"&&u!=="semicolon"&&(l==="object"&&s!==null&&(s=r(s)),a[u]=s)}return a};t.exports=class{constructor(n){n=n||{},this.raws={before:"",after:""};for(let i in n)this[i]=n[i]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(n){n=n||{};let i=r(this);for(let a in n)i[a]=n[a];return i}cloneBefore(n){n=n||{};let i=this.clone(n);return this.parent.insertBefore(this,i),i}cloneAfter(n){n=n||{};let i=this.clone(n);return this.parent.insertAfter(this,i),i}replaceWith(){let n=Array.prototype.slice.call(arguments);if(this.parent){for(let i of n)this.parent.insertBefore(this,i);this.remove()}return this}moveTo(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.append(this),this}moveBefore(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.parent.insertBefore(n,this),this}moveAfter(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.parent.insertAfter(n,this),this}next(){let n=this.parent.index(this);return this.parent.nodes[n+1]}prev(){let n=this.parent.index(this);return this.parent.nodes[n-1]}toJSON(){let n={};for(let i in this){if(!this.hasOwnProperty(i)||i==="parent")continue;let a=this[i];a instanceof Array?n[i]=a.map((u)=>typeof u=="object"&&u.toJSON?u.toJSON():u):typeof a=="object"&&a.toJSON?n[i]=a.toJSON():n[i]=a}return n}root(){let n=this;for(;n.parent;)n=n.parent;return n}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}positionInside(n){let i=this.toString(),a=this.source.start.column,u=this.source.start.line;for(let s=0;s<n;s++)i[s]===`
|
|
653
653
|
`?(a=1,u+=1):a+=1;return{line:u,column:a}}positionBy(n){let i=this.source.start;if(Object(n).index)i=this.positionInside(n.index);else if(Object(n).word){let a=this.toString().indexOf(n.word);a!==-1&&(i=this.positionInside(a))}return i}}}),by=vi((e,t)=>{var r=aA(),n=class extends r{constructor(i){super(i),this.nodes||(this.nodes=[])}push(i){return i.parent=this,this.nodes.push(i),this}each(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach,u,s;if(this.indexes[a]=0,!!this.nodes){for(;this.indexes[a]<this.nodes.length&&(u=this.indexes[a],s=i(this.nodes[u],u),s!==!1);)this.indexes[a]+=1;return delete this.indexes[a],s}}walk(i){return this.each((a,u)=>{let s=i(a,u);return s!==!1&&a.walk&&(s=a.walk(i)),s})}walkType(i,a){if(!i||!a)throw new Error("Parameters {type} and {callback} are required.");let u=typeof i=="function";return this.walk((s,l)=>{if(u&&s instanceof i||!u&&s.type===i)return a.call(this,s,l)})}append(i){return i.parent=this,this.nodes.push(i),this}prepend(i){return i.parent=this,this.nodes.unshift(i),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let a of this.nodes)a.cleanRaws(i)}insertAfter(i,a){let u=this.index(i),s;this.nodes.splice(u+1,0,a);for(let l in this.indexes)s=this.indexes[l],u<=s&&(this.indexes[l]=s+this.nodes.length);return this}insertBefore(i,a){let u=this.index(i),s;this.nodes.splice(u,0,a);for(let l in this.indexes)s=this.indexes[l],u<=s&&(this.indexes[l]=s+this.nodes.length);return this}removeChild(i){i=this.index(i),this.nodes[i].parent=void 0,this.nodes.splice(i,1);let a;for(let u in this.indexes)a=this.indexes[u],a>=i&&(this.indexes[u]=a-1);return this}removeAll(){for(let i of this.nodes)i.parent=void 0;return this.nodes=[],this}every(i){return this.nodes.every(i)}some(i){return this.nodes.some(i)}index(i){return typeof i=="number"?i:this.nodes.indexOf(i)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let i=this.nodes.map(String).join("");return this.value&&(i=this.value+i),this.raws.before&&(i=this.raws.before+i),this.raws.after&&(i+=this.raws.after),i}};n.registerWalker=(i)=>{let a="walk"+i.name;a.lastIndexOf("s")!==a.length-1&&(a+="s"),!n.prototype[a]&&(n.prototype[a]=function(u){return this.walkType(i,u)})},t.exports=n}),pji=vi((e,t)=>{var r=by();t.exports=class extends r{constructor(n){super(n),this.type="root"}}}),fji=vi((e,t)=>{var r=by();t.exports=class extends r{constructor(n){super(n),this.type="value",this.unbalanced=0}}}),mji=vi((e,t)=>{var r=by(),n=class extends r{constructor(i){super(i),this.type="atword"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(n),t.exports=n}),dji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="colon"}};r.registerWalker(i),t.exports=i}),yji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="comma"}};r.registerWalker(i),t.exports=i}),gji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="comment",this.inline=Object(a).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(i),t.exports=i}),xji=vi((e,t)=>{var r=by(),n=class extends r{constructor(i){super(i),this.type="func",this.unbalanced=-1}};r.registerWalker(n),t.exports=n}),vji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="number",this.unit=Object(a).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(i),t.exports=i}),Dji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="operator"}};r.registerWalker(i),t.exports=i}),wji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="paren",this.parenType=""}};r.registerWalker(i),t.exports=i}),Aji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="string"}toString(){let a=this.quoted?this.raws.quote:"";return[this.raws.before,a,this.value+"",a,this.raws.after].join("")}};r.registerWalker(i),t.exports=i}),bji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="word"}};r.registerWalker(i),t.exports=i}),Tji=vi((e,t)=>{var r=by(),n=aA(),i=class extends n{constructor(a){super(a),this.type="unicode-range"}};r.registerWalker(i),t.exports=i}),Cji=vi((e,t)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};t.exports=r}),Eji=vi((e,t)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,a=/^[a-z0-9]/i,u=/^[a-f0-9?\-]/i,s=Cji();t.exports=function(l,h){h=h||{};let _=[],p=l.valueOf(),f=p.length,m=-1,d=1,x=0,T=0,A=null,F,b,N,E,P,q,$,M,O,K,ue,Q;function G(ee){let ge=`Unclosed ${ee} at line: ${d}, column: ${x-m}, token: ${x}`;throw new s(ge)}function Z(){let ee=`Syntax error at line: ${d}, column: ${x-m}, token: ${x}`;throw new s(ee)}for(;x<f;){switch(F=p.charCodeAt(x),F===10&&(m=x,d+=1),F){case 10:case 32:case 9:case 13:case 12:b=x;do b+=1,F=p.charCodeAt(b),F===10&&(m=b,d+=1);while(F===32||F===10||F===9||F===13||F===12);_.push(["space",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;break;case 58:b=x+1,_.push(["colon",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;break;case 44:b=x+1,_.push(["comma",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;break;case 123:_.push(["{","{",d,x-m,d,b-m,x]);break;case 125:_.push(["}","}",d,x-m,d,b-m,x]);break;case 40:T++,A=!A&&T===1&&_.length>0&&_[_.length-1][0]==="word"&&_[_.length-1][1]==="url",_.push(["(","(",d,x-m,d,b-m,x]);break;case 41:T--,A=A&&T>0,_.push([")",")",d,x-m,d,b-m,x]);break;case 39:case 34:N=F===39?"'":'"',b=x;do for(K=!1,b=p.indexOf(N,b+1),b===-1&&G("quote",N),ue=b;p.charCodeAt(ue-1)===92;)ue-=1,K=!K;while(K);_.push(["string",p.slice(x,b+1),d,x-m,d,b-m,x]),x=b;break;case 64:r.lastIndex=x+1,r.test(p),r.lastIndex===0?b=p.length-1:b=r.lastIndex-2,_.push(["atword",p.slice(x,b+1),d,x-m,d,b-m,x]),x=b;break;case 92:b=x,F=p.charCodeAt(b+1),$&&F!==47&&F!==32&&F!==10&&F!==9&&F!==13&&F!==12&&(b+=1),_.push(["word",p.slice(x,b+1),d,x-m,d,b-m,x]),x=b;break;case 43:case 45:case 42:b=x+1,Q=p.slice(x+1,b+1);let ee=p.slice(x-1,x);if(F===45&&Q.charCodeAt(0)===45){b++,_.push(["word",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;break}_.push(["operator",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;break;default:if(F===47&&(p.charCodeAt(x+1)===42||h.loose&&!A&&p.charCodeAt(x+1)===47)){if(p.charCodeAt(x+1)===42)b=p.indexOf("*/",x+2)+1,b===0&&G("comment","*/");else{let ge=p.indexOf(`
|
|
654
654
|
`,x+2);b=ge!==-1?ge-1:f}q=p.slice(x,b+1),E=q.split(`
|
|
655
|
-
`),P=E.length-1,P>0?(M=d+P,O=b-E[P].length):(M=d,O=m),_.push(["comment",q,d,x-m,M,b-O,x]),m=O,d=M,x=b}else if(F===35&&!a.test(p.slice(x+1,x+2)))b=x+1,_.push(["#",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;else if((F===117||F===85)&&p.charCodeAt(x+1)===43){b=x+2;do b+=1,F=p.charCodeAt(b);while(b<f&&u.test(p.slice(b,b+1)));_.push(["unicoderange",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1}else if(F===47)b=x+1,_.push(["operator",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;else{let ge=n;if(F>=48&&F<=57&&(ge=i),ge.lastIndex=x+1,ge.test(p),ge.lastIndex===0?b=p.length-1:b=ge.lastIndex-2,ge===i||F===46){let Fe=p.charCodeAt(b),He=p.charCodeAt(b+1),xe=p.charCodeAt(b+2);(Fe===101||Fe===69)&&(He===45||He===43)&&xe>=48&&xe<=57&&(i.lastIndex=b+2,i.test(p),i.lastIndex===0?b=p.length-1:b=i.lastIndex-2)}_.push(["word",p.slice(x,b+1),d,x-m,d,b-m,x]),x=b}break}x++}return _}}),kji=vi((e,t)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};t.exports=r}),Fji=vi((e,t)=>{var r=pji(),n=fji(),i=mji(),a=dji(),u=yji(),s=gji(),l=xji(),h=vji(),_=Dji(),p=wji(),f=Aji(),m=bji(),d=Tji(),x=Eji(),T=W_r(),A=Y_r(),F=H_r(),b=kji();function N(E){return E.sort((P,q)=>P-q)}t.exports=class{constructor(E,P){let q={loose:!1};this.cache=[],this.input=E,this.options=Object.assign({},q,P),this.position=0,this.unbalanced=0,this.root=new r;let $=new n;this.root.append($),this.current=$,this.tokens=x(E,this.options)}parse(){return this.loop()}colon(){let E=this.currToken;this.newNode(new a({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}comma(){let E=this.currToken;this.newNode(new u({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}comment(){let E=!1,P=this.currToken[1].replace(/\/\*|\*\//g,""),q;this.options.loose&&P.startsWith("//")&&(P=P.substring(2),E=!0),q=new s({value:P,inline:E,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(q),this.position++}error(E,P){throw new b(E+` at line: ${P[2]}, column ${P[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let E=this.currToken[1],P;if(E==="+"||E==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return P=new _({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(P)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let E=1,P=this.position+1,q=this.currToken,$;for(;P<this.tokens.length&&E;){let M=this.tokens[P];M[0]==="("&&E++,M[0]===")"&&E--,P++}if(E&&this.error("Expected closing parenthesis",q),$=this.current.last,$&&$.type==="func"&&$.unbalanced<0&&($.unbalanced=0,this.current=$),this.current.unbalanced++,this.newNode(new p({value:q[1],source:{start:{line:q[2],column:q[3]},end:{line:q[4],column:q[5]}},sourceIndex:q[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let M=this.nextToken,O=this.currToken[1],K={line:this.currToken[2],column:this.currToken[3]};for(;M&&M[0]!==")"&&this.current.unbalanced;)this.position++,O+=this.currToken[1],M=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new m({value:O,source:{start:K,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let E=this.currToken;this.newNode(new p({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",E),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let E=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=E[1],this.position++):(this.spaces=E[1],this.position++)}unicodeRange(){let E=this.currToken;this.newNode(new d({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}splitWord(){let E=this.nextToken,P=this.currToken[1],q=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,$=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,M,O;if(!$.test(P))for(;E&&E[0]==="word";){this.position++;let K=this.currToken[1];P+=K,E=this.nextToken}M=A(P,"@"),O=N(F(T([[0],M]))),O.forEach((K,ue)=>{let Q=O[ue+1]||P.length,G=P.slice(K,Q),Z;if(~M.indexOf(K))Z=new i({value:G.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+K},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+O[ue]});else if(q.test(this.currToken[1])){let ee=G.replace(q,"");Z=new h({value:G.replace(ee,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+K},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+O[ue],unit:ee})}else Z=new(E&&E[0]==="("?l:m)({value:G,source:{start:{line:this.currToken[2],column:this.currToken[3]+K},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+O[ue]}),Z.type==="word"?(Z.isHex=/^#(.+)/.test(G),Z.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(G)):this.cache.push(this.current);this.newNode(Z)}),this.position++}string(){let E=this.currToken,P=this.currToken[1],q=/^(\"|\')/,$=q.test(P),M="",O;$&&(M=P.match(q)[0],P=P.slice(1,P.length-1)),O=new f({value:P,source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6],quoted:$}),O.raws.quote=M,this.newNode(O),this.position++}word(){return this.splitWord()}newNode(E){return this.spaces&&(E.raws.before+=this.spaces,this.spaces=""),this.current.append(E)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),G_r={};z_r(G_r,{languages:()=>Fcr,options:()=>Scr,parsers:()=>xOe,printers:()=>Mcr});Fc=Sji,ucr=new Set([tcr,Tye,_Oe,rcr,Cye,Eye,kye,ncr,cOe,icr,gK,acr,hOe]),mK=Pji;Ree=Nji;$ji=class extends Error{name="InvalidDocError";constructor(e){super(qji(e)),this.doc=e}},Jji=$ji;OJ=pOe,fOe=pOe,Vji=pOe;mOe={type:hOe},jji={type:gK,hard:!0},D7={type:gK},k4={type:gK,soft:!0},K_=[jji,mOe];Fye=Kji,lcr=new Proxy(()=>{},{get:()=>lcr}),Uji=lcr;Oji=Zji;Wji=Qji;_cr=Yji,Hji=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Gji=Hji;vye=Rji,eKi=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);ccr.ignoredProperties=eKi;rKi=ccr;iKi=nKi;hcr.getVisitorKeys=(e)=>e.type==="css-root"?["frontMatter"]:[];aKi=hcr;for(let e=0;e<=uKi;e++)ete();lKi=sKi,_Ki={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},cKi=_Ki,hKi=lKi(cKi),pKi=hKi;pcr=fKi;maa=Sye(/\s/u),fcr=Sye(" "),mKi=Sye(",; "),mcr=Sye(/[^\n\r]/u);gKi=/\*\/$/,xKi=/^\/\*\*?/,xcr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,vKi=/(^|\s+)\/\/([^\n\r]*)/g,N_r=/^(\r?\n)+/,DKi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,B_r=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,wKi=/(\r?\n|^) *\* ?/g,vcr=[];kKi=EKi;yOe=NKi;$Ki=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);IKi=new Set(["initial","inherit","unset","revert"]);uUi=aUi;sUi=oUi,I_r=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);Acr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,_Ui=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,cUi=/[a-z]+/giu,hUi=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,pUi=new RegExp(Acr.source+`|(${hUi.source})?(${_Ui.source})(${cUi.source})?`,"giu");Tcr=dUi;Ccr=yUi;xUi=gUi;DUi=vUi;Ecr=wUi;Gee=kUi;SUi={print:FUi,embed:aKi,insertPragma:qKi,massageAstNode:rKi,getVisitorKeys:pKi},PUi=SUi,Fcr=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],NUi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},BUi={singleQuote:NUi.singleQuote},Scr=BUi,xOe={};z_r(xOe,{css:()=>_Zi,less:()=>cZi,scss:()=>hZi});qUi=dK(bye(),1),$Ui=dK(LXi(),1),JUi=dK(QXi(),1);MUi=IUi,zUi=dK(YXi(),1);VUi=zUi.default.default;XUi=LUi,jUi=dK(hji(),1);ZJ=KUi,UUi=dK(Fji(),1),Ncr=ZUi;QUi=OUi;YUi=WUi;GUi=HUi;eZi=RUi;UJ=rZi,nZi=new Set(["import","use","forward"]);aZi=iZi;oZi=uZi,sZi=/(\s*)(!default).*$/u,lZi=/(\s*)(!global).*$/u;DOe={astFormat:"postcss",hasPragma:BKi,locStart:Ay,locEnd:wy},_Zi={...DOe,parse:$cr},cZi={...DOe,parse:Jcr},hZi={...DOe,parse:Icr},Mcr={postcss:PUi},pZi=G_r});var upr={};$_(upr,{parsers:()=>uQe,default:()=>pe0});function mte(e){return e!==void 0?e.length:0}function ky(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n)return n}}function DZi(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n!==void 0)return n}}function Lcr(e,t,r){let n=[];Mr.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n}function sQe(e,t){if(e!==void 0){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function o2r(e,t,r){if(e!==void 0)for(let n=r??0;n<e.length;n++){let i=e[n];if(t(i,n))return i}}function wOe(e,t,r){if(e===void 0)return-1;for(let n=r??0;n<e.length;n++)if(t(e[n],n))return n;return-1}function wZi(e,t,r=cQe){if(e!==void 0){for(let n=0;n<e.length;n++)if(r(e[n],t))return!0}return!1}function MC(e,t){if(e!==void 0){let r=e.length,n=0;for(;n<r&&t(e[n]);)n++;if(n<r){let i=e.slice(0,n);for(n++;n<r;){let a=e[n];t(a)&&i.push(a),n++}return i}}return e}function JOe(e,t){let r;if(e!==void 0){r=[];for(let n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function s2r(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];n&&(zC(n)?Wm(t,n):t.push(n))}return t}function l2r(e,t){let r;if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);i&&(zC(i)?r=Wm(r,i):r=Om(r,i))}return r??t_}function AZi(e,t){let r;if(e!==void 0)for(let n=0;n<e.length;n++){let i=e[n],a=t(i,n);(r||i!==a||zC(a))&&(r||(r=e.slice(0,n)),zC(a)?Wm(r,a):r.push(a))}return r??e}function bZi(e,t){let r=[];if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);i!==void 0&&r.push(i)}return r}function eh(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r<e.length;r++)if(t(e[r]))return!0}else return e.length>0;return!1}function lQe(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function TZi(e,t,r=cQe){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0}function Om(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function IOe(e,t){return t<0?e.length+t:t}function Wm(e,t,r,n){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,n);r=r===void 0?0:IOe(t,r),n=n===void 0?t.length:IOe(t,n);for(let i=r;i<n&&i<t.length;i++)t[i]!==void 0&&e.push(t[i]);return e}function CZi(e,t,r){return wZi(e,t,r)?!1:(e.push(t),!0)}function EZi(e,t,r){return e!==void 0?(CZi(e,t,r),e):[t]}function kZi(e,t){return e.length===0?t_:e.slice().sort(t)}function _Qe(e){return e===void 0||e.length===0?void 0:e[0]}function nI(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function FZi(e){return Mr.assert(e.length!==0),e[e.length-1]}function SZi(e){return e!==void 0&&e.length===1?e[0]:void 0}function PZi(e,t,r,n,i){return NZi(e,r(t),r,n,i)}function NZi(e,t,r,n,i){if(!eh(e))return-1;let a=i??0,u=e.length-1;for(;a<=u;){let s=a+(u-a>>1),l=r(e[s],s);switch(n(l,t)){case-1:a=s+1;break;case 0:return s;case 1:u=s-1;break}}return~a}function BZi(e,t,r,n,i){if(e&&e.length>0){let a=e.length;if(a>0){let u=n===void 0||n<0?0:n,s=i===void 0||u+i>a-1?a-1:u+i,l;for(arguments.length<=2?(l=e[u],u++):l=r;u<=s;)l=t(l,e[u],u),u++;return l}}return r}function _A(e,t){return _2r.call(e,t)}function qZi(e){let t=[];for(let r in e)_2r.call(e,r)&&t.push(r);return t}function $Zi(){let e=new Map;return e.add=JZi,e.remove=IZi,e}function JZi(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function IZi(e,t){let r=this.get(e);r!==void 0&&(ZZi(r,t),r.length||this.delete(e))}function zC(e){return Array.isArray(e)}function AOe(e){return zC(e)?e:[e]}function MZi(e,t){return e!==void 0&&t(e)?e:void 0}function oA(e,t){return e!==void 0&&t(e)?e:Mr.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Mr.getFunctionName(t)}'.`)}function $K(e){}function zZi(){return!0}function _l(e){return e}function Xcr(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function S4(e){let t=new Map;return(r)=>{let n=`${typeof r}:${r}`,i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(r),t.set(n,i)),i}}function cQe(e,t){return e===t}function hQe(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function VZi(e,t){return cQe(e,t)}function LZi(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function c2r(e,t){return LZi(e,t)}function XZi(e,t,r){for(let n=0;n<e.length;n++)t=Math.max(t,r(e[n]));return t}function dte(e,t,r){let n=Math.max(2,Math.floor(e.length*0.34)),i=Math.floor(e.length*0.4)+1,a;for(let u of t){let s=r(u);if(s!==void 0&&Math.abs(s.length-e.length)<=n){if(s===e||s.length<3&&s.toLowerCase()!==e.toLowerCase())continue;let l=jZi(e,s,i-0.1);if(l===void 0)continue;Mr.assert(l<i),i=l,a=u}}return a}function jZi(e,t,r){let n=new Array(t.length+1),i=new Array(t.length+1),a=r+0.01;for(let s=0;s<=t.length;s++)n[s]=s;for(let s=1;s<=e.length;s++){let l=e.charCodeAt(s-1),h=Math.ceil(s>r?s-r:1),_=Math.floor(t.length>r+s?r+s:t.length);i[0]=s;let p=s;for(let m=1;m<h;m++)i[m]=a;for(let m=h;m<=_;m++){let d=e[s-1].toLowerCase()===t[m-1].toLowerCase()?n[m-1]+0.1:n[m-1]+2,x=l===t.charCodeAt(m-1)?n[m-1]:Math.min(n[m]+1,i[m-1]+1,d);i[m]=x,p=Math.min(p,x)}for(let m=_+1;m<=t.length;m++)i[m]=a;if(p>r)return;let f=n;n=i,i=f}let u=n[t.length];return u>r?void 0:u}function KZi(e,t,r){let n=e.length-t.length;return n>=0&&(r?hQe(e.slice(n),t):e.indexOf(t,n)===n)}function UZi(e,t){e[t]=e[e.length-1],e.pop()}function ZZi(e,t){return OZi(e,(r)=>r===t)}function OZi(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return UZi(e,r),!0;return!1}function Kye(e,t,r){return r?hQe(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function MOe(e){return e===void 0?void 0:[e]}function HZi(e){return e===47||e===92}function GZi(e,t){return e.length>t.length&&KZi(e,t)}function fQe(e){return e.length>0&&HZi(e.charCodeAt(e.length-1))}function Ucr(e){return e>=97&&e<=122||e>=65&&e<=90}function RZi(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function eOi(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?sI:WZi,2);return n<0?e.length:n+1}if(Ucr(t)&&e.charCodeAt(1)===58){let n=e.charCodeAt(2);if(n===47||n===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Kcr);if(r!==-1){let n=r+Kcr.length,i=e.indexOf(sI,n);if(i!==-1){let a=e.slice(0,r),u=e.slice(n,i);if(a==="file"&&(u===""||u==="localhost")&&Ucr(e.charCodeAt(i+1))){let s=RZi(e,i+2);if(s!==-1){if(e.charCodeAt(s)===47)return~(s+1);if(s===e.length)return~s}}return~(i+1)}return~e.length}return 0}function Uye(e){let t=eOi(e);return t<0?~t:t}function A2r(e,t,r){if(e=Zye(e),Uye(e)===e.length)return"";e=T2r(e);let n=e.slice(Math.max(Uye(e),e.lastIndexOf(sI)+1)),i=t!==void 0&&r!==void 0?b2r(n,t,r):void 0;return i?n.slice(0,n.length-i.length):n}function Zcr(e,t,r){if(Kye(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let n=e.slice(e.length-t.length);if(r(n,t))return n}}function tOi(e,t,r){if(typeof t=="string")return Zcr(e,t,r)||"";for(let n of t){let i=Zcr(e,n,r);if(i)return i}return""}function b2r(e,t,r){if(t)return tOi(T2r(e),t,r?hQe:VZi);let n=A2r(e),i=n.lastIndexOf(".");return i>=0?n.substring(i):""}function rOi(e,t){let r=e.substring(0,t),n=e.substring(t).split(sI);return n.length&&!nI(n)&&n.pop(),[r,...n]}function nOi(e,t=""){return e=uOi(t,e),rOi(e,Uye(e))}function iOi(e,t){return e.length===0?"":(e[0]&&mQe(e[0]))+e.slice(1,t).join(sI)}function Zye(e){return e.includes("\\")?e.replace(YZi,sI):e}function aOi(e){if(!eh(e))return[];let t=[e[0]];for(let r=1;r<e.length;r++){let n=e[r];if(n&&n!=="."){if(n===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(n)}}return t}function uOi(e,...t){e&&(e=Zye(e));for(let r of t)r&&(r=Zye(r),!e||Uye(r)!==0?e=r:e=mQe(e)+r);return e}function oOi(e){if(e=Zye(e),!Ocr.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Ocr.test(e)))return e;let r=iOi(aOi(nOi(e)));return r&&fQe(e)?mQe(r):r}function T2r(e){return fQe(e)?e.substr(0,e.length-1):e}function mQe(e){return fQe(e)?e:e+sI}function w(e,t,r,n,i,a,u){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:u}}function Bl(e){return e>=80}function sOi(e){return e===32||Bl(e)}function Oye(e,t){if(e<t[0])return!1;let r=0,n=t.length,i;for(;r+1<n;){if(i=r+(n-r)/2,i-=i%2,t[i]<=e&&e<=t[i+1])return!0;e<t[i]?n=i:r=i+2}return!1}function gOi(e,t){return t>=2?Oye(e,pOi):Oye(e,cOi)}function xOi(e,t){return t>=2?Oye(e,fOi):Oye(e,hOi)}function k2r(e){let t=[];return e.forEach((r,n)=>{t[r]=n}),t}function Ss(e){return vOi[e]}function F2r(e){return C2r.get(e)}function Qcr(e){return E2r.get(e)}function S2r(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e.charCodeAt(r);switch(r++,i){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(n),n=r;break;default:i>127&&Qm(i)&&(t.push(n),n=r);break}}return t.push(n),t}function DOi(e,t,r,n,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:Mr.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${n!==void 0?TZi(e,S2r(n)):"unknown"}`));let a=e[t]+r;return i?a>e[t+1]?e[t+1]:typeof n=="string"&&a>n.length?n.length:a:(t<e.length-1?Mr.assert(a<e[t+1]):n!==void 0&&Mr.assert(a<=n.length),a)}function VOe(e){return e.lineMap||(e.lineMap=S2r(e.text))}function wOi(e,t){let r=AOi(e,t);return{line:r,character:t-e[r]}}function AOi(e,t,r){let n=PZi(e,t,_l,c2r,r);return n<0&&(n=~n-1,Mr.assert(n!==-1,"position cannot precede the beginning of the file")),n}function P2r(e,t){return wOi(VOe(e),t)}function PK(e){return gte(e)||Qm(e)}function gte(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Qm(e){return e===10||e===13||e===8232||e===8233}function MP(e){return e>=48&&e<=57}function bOe(e){return MP(e)||e>=65&&e<=70||e>=97&&e<=102}function yQe(e){return e>=65&&e<=90||e>=97&&e<=122}function N2r(e){return yQe(e)||MP(e)||e===95}function TOe(e){return e>=48&&e<=55}function sA(e,t,r,n,i){if(Fte(t))return t;let a=!1;for(;;){let u=e.charCodeAt(t);switch(u){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;a=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Qm(e.charCodeAt(t));)t++;a=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}a=!1;continue}break;case 60:case 124:case 61:case 62:if(RJ(e,t)){t=wK(e,t),a=!1;continue}break;case 35:if(t===0&&B2r(e,t)){t=q2r(e,t),a=!1;continue}break;case 42:if(a){t++,a=!1;continue}break;default:if(u>127&&PK(u)){t++;continue}break}return t}}function RJ(e,t){if(Mr.assert(t>=0),t===0||Qm(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+zye<e.length){for(let n=0;n<zye;n++)if(e.charCodeAt(t+n)!==r)return!1;return r===61||e.charCodeAt(t+zye)===32}}return!1}function wK(e,t,r){r&&r(Ot.Merge_conflict_marker_encountered,t,zye);let n=e.charCodeAt(t),i=e.length;if(n===60||n===62)for(;t<i&&!Qm(e.charCodeAt(t));)t++;else for(Mr.assert(n===124||n===61);t<i;){let a=e.charCodeAt(t);if((a===61||a===62)&&a!==n&&RJ(e,t))break;t++}return t}function B2r(e,t){return Mr.assert(t===0),gQe.test(e)}function q2r(e,t){let r=gQe.exec(e)[0];return t=t+r.length,t}function r6e(e,t,r,n,i,a,u){let s,l,h,_,p=!1,f=n,m=u;if(r===0){f=!0;let d=J2r(t);d&&(r=d.length)}e:for(;r>=0&&r<t.length;){let d=t.charCodeAt(r);switch(d){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,n)break e;f=!0,p&&(_=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:let x=t.charCodeAt(r+1),T=!1;if(x===47||x===42){let A=x===47?2:3,F=r;if(r+=2,x===47)for(;r<t.length;){if(Qm(t.charCodeAt(r))){T=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(f){if(p&&(m=i(s,l,h,_,a,m),!e&&m))return m;s=F,l=r,h=A,_=T,p=!0}continue}break e;default:if(d>127&&PK(d)){p&&Qm(d)&&(_=!0),r++;continue}break e}}return p&&(m=i(s,l,h,_,a,m)),m}function bOi(e,t,r,n){return r6e(!1,e,t,!1,r,n)}function TOi(e,t,r,n){return r6e(!1,e,t,!0,r,n)}function COi(e,t,r,n,i){return r6e(!0,e,t,!1,r,n,i)}function EOi(e,t,r,n,i){return r6e(!0,e,t,!0,r,n,i)}function $2r(e,t,r,n,i,a=[]){return a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function LOe(e,t){return COi(e,t,$2r,void 0,void 0)}function kOi(e,t){return EOi(e,t,$2r,void 0,void 0)}function J2r(e){let t=gQe.exec(e);if(t)return t[0]}function u3(e,t){return yQe(e)||e===36||e===95||e>127&&gOi(e,t)}function $C(e,t,r){return N2r(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&xOi(e,t)}function FOi(e,t,r){let n=eI(e,0);if(!u3(n,t))return!1;for(let i=Y1(n);i<e.length;i+=Y1(n))if(!$C(n=eI(e,i),t,r))return!1;return!0}function xQe(e,t,r=0,n,i,a,u){var s=n,l,h,_,p,f,m,d,x,T=0,A=0,F=0;mr(s,a,u);var b={getTokenFullStart:()=>_,getStartPos:()=>_,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>f,getTokenStart:()=>p,getTokenPos:()=>p,getTokenText:()=>s.substring(p,l),getTokenValue:()=>m,hasUnicodeEscape:()=>(d&1024)!==0,hasExtendedUnicodeEscape:()=>(d&8)!==0,hasPrecedingLineBreak:()=>(d&1)!==0,hasPrecedingJSDocComment:()=>(d&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(d&32768)!==0,isIdentifier:()=>f===80||f>118,isReservedWord:()=>f>=83&&f<=118,isUnterminated:()=>(d&4)!==0,getCommentDirectives:()=>x,getNumericLiteralFlags:()=>d&25584,getTokenFlags:()=>d,reScanGreaterToken:ke,reScanAsteriskEqualsToken:Je,reScanSlashToken:ut,reScanTemplateToken:St,reScanTemplateHeadOrNoSubstitutionTemplate:Tt,scanJsxIdentifier:Yr,scanJsxAttributeValue:Cn,reScanJsxAttributeValue:Te,reScanJsxToken:Mt,reScanLessThanToken:wr,reScanHashToken:tr,reScanQuestionToken:Vr,reScanInvalidIdentifier:pe,scanJsxToken:Tr,scanJsDocToken:fe,scanJSDocCommentTextToken:De,scan:Ne,getText:st,clearCommentDirectives:Lt,setText:mr,setScriptTarget:en,setLanguageVariant:ki,setScriptKind:Jn,setJSDocParsingMode:c0,setOnError:Dr,resetTokenState:r0,setTextPos:r0,setSkipJsDocLeadingAsterisks:e0,tryScan:ct,lookAhead:Qe,scanRange:be};return Mr.isDebugging&&Object.defineProperty(b,"__debugShowCurrentPositionInText",{get:()=>{let pr=b.getText();return pr.slice(0,b.getTokenFullStart())+"║"+pr.slice(b.getTokenFullStart())}}),b;function N(pr){return eI(s,pr)}function E(pr){return pr>=0&&pr<h?N(pr):-1}function P(pr){return s.charCodeAt(pr)}function q(pr){return pr>=0&&pr<h?P(pr):-1}function $(pr,Ar=l,Pr,kn){if(i){let ri=l;l=Ar,i(pr,Pr||0,kn),l=ri}}function M(){let pr=l,Ar=!1,Pr=!1,kn="";for(;;){let ri=P(l);if(ri===95){d|=512,Ar?(Ar=!1,Pr=!0,kn+=s.substring(pr,l)):(d|=16384,$(Pr?Ot.Multiple_consecutive_numeric_separators_are_not_permitted:Ot.Numeric_separators_are_not_allowed_here,l,1)),l++,pr=l;continue}if(MP(ri)){Ar=!0,Pr=!1,l++;continue}break}return P(l-1)===95&&(d|=16384,$(Ot.Numeric_separators_are_not_allowed_here,l-1,1)),kn+s.substring(pr,l)}function O(){let pr=l,Ar;if(P(l)===48)if(l++,P(l)===95)d|=16896,$(Ot.Numeric_separators_are_not_allowed_here,l,1),l--,Ar=M();else if(!ue())d|=8192,Ar=""+ +m;else if(!m)Ar="0";else{m=""+parseInt(m,8),d|=32;let di=f===41,Pi=(di?"-":"")+"0o"+(+m).toString(8);return di&&pr--,$(Ot.Octal_literals_are_not_allowed_Use_the_syntax_0,pr,l-pr,Pi),9}else Ar=M();let Pr,kn;P(l)===46&&(l++,Pr=M());let ri=l;if(P(l)===69||P(l)===101){l++,d|=16,(P(l)===43||P(l)===45)&&l++;let di=l,Pi=M();Pi?(kn=s.substring(ri,di)+Pi,ri=l):$(Ot.Digit_expected)}let Vi;if(d&512?(Vi=Ar,Pr&&(Vi+="."+Pr),kn&&(Vi+=kn)):Vi=s.substring(pr,ri),d&8192)return $(Ot.Decimals_with_leading_zeros_are_not_allowed,pr,ri-pr),m=""+ +Vi,9;if(Pr!==void 0||d&16)return K(pr,Pr===void 0&&!!(d&16)),m=""+ +Vi,9;{m=Vi;let di=Xe();return K(pr),di}}function K(pr,Ar){if(!u3(N(l),e))return;let Pr=l,{length:kn}=Ie();kn===1&&s[Pr]==="n"?$(Ar?Ot.A_bigint_literal_cannot_use_exponential_notation:Ot.A_bigint_literal_must_be_an_integer,pr,Pr-pr+1):($(Ot.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Pr,kn),l=Pr)}function ue(){let pr=l,Ar=!0;for(;MP(q(l));)TOe(P(l))||(Ar=!1),l++;return m=s.substring(pr,l),Ar}function Q(pr,Ar){let Pr=Z(pr,!1,Ar);return Pr?parseInt(Pr,16):-1}function G(pr,Ar){return Z(pr,!0,Ar)}function Z(pr,Ar,Pr){let kn=[],ri=!1,Vi=!1;for(;kn.length<pr||Ar;){let di=P(l);if(Pr&&di===95){d|=512,ri?(ri=!1,Vi=!0):$(Vi?Ot.Multiple_consecutive_numeric_separators_are_not_permitted:Ot.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(ri=Pr,di>=65&&di<=70)di+=32;else if(!(di>=48&&di<=57||di>=97&&di<=102))break;kn.push(di),l++,Vi=!1}return kn.length<pr&&(kn=[]),P(l-1)===95&&$(Ot.Numeric_separators_are_not_allowed_here,l-1,1),String.fromCharCode(...kn)}function ee(pr=!1){let Ar=P(l);l++;let Pr="",kn=l;for(;;){if(l>=h){Pr+=s.substring(kn,l),d|=4,$(Ot.Unterminated_string_literal);break}let ri=P(l);if(ri===Ar){Pr+=s.substring(kn,l),l++;break}if(ri===92&&!pr){Pr+=s.substring(kn,l),Pr+=Fe(3),kn=l;continue}if((ri===10||ri===13)&&!pr){Pr+=s.substring(kn,l),d|=4,$(Ot.Unterminated_string_literal);break}l++}return Pr}function ge(pr){let Ar=P(l)===96;l++;let Pr=l,kn="",ri;for(;;){if(l>=h){kn+=s.substring(Pr,l),d|=4,$(Ot.Unterminated_template_literal),ri=Ar?15:18;break}let Vi=P(l);if(Vi===96){kn+=s.substring(Pr,l),l++,ri=Ar?15:18;break}if(Vi===36&&l+1<h&&P(l+1)===123){kn+=s.substring(Pr,l),l+=2,ri=Ar?16:17;break}if(Vi===92){kn+=s.substring(Pr,l),kn+=Fe(1|(pr?2:0)),Pr=l;continue}if(Vi===13){kn+=s.substring(Pr,l),l++,l<h&&P(l)===10&&l++,kn+=`
|
|
655
|
+
`),P=E.length-1,P>0?(M=d+P,O=b-E[P].length):(M=d,O=m),_.push(["comment",q,d,x-m,M,b-O,x]),m=O,d=M,x=b}else if(F===35&&!a.test(p.slice(x+1,x+2)))b=x+1,_.push(["#",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;else if((F===117||F===85)&&p.charCodeAt(x+1)===43){b=x+2;do b+=1,F=p.charCodeAt(b);while(b<f&&u.test(p.slice(b,b+1)));_.push(["unicoderange",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1}else if(F===47)b=x+1,_.push(["operator",p.slice(x,b),d,x-m,d,b-m,x]),x=b-1;else{let ge=n;if(F>=48&&F<=57&&(ge=i),ge.lastIndex=x+1,ge.test(p),ge.lastIndex===0?b=p.length-1:b=ge.lastIndex-2,ge===i||F===46){let Fe=p.charCodeAt(b),He=p.charCodeAt(b+1),xe=p.charCodeAt(b+2);(Fe===101||Fe===69)&&(He===45||He===43)&&xe>=48&&xe<=57&&(i.lastIndex=b+2,i.test(p),i.lastIndex===0?b=p.length-1:b=i.lastIndex-2)}_.push(["word",p.slice(x,b+1),d,x-m,d,b-m,x]),x=b}break}x++}return _}}),kji=vi((e,t)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};t.exports=r}),Fji=vi((e,t)=>{var r=pji(),n=fji(),i=mji(),a=dji(),u=yji(),s=gji(),l=xji(),h=vji(),_=Dji(),p=wji(),f=Aji(),m=bji(),d=Tji(),x=Eji(),T=W_r(),A=Y_r(),F=H_r(),b=kji();function N(E){return E.sort((P,q)=>P-q)}t.exports=class{constructor(E,P){let q={loose:!1};this.cache=[],this.input=E,this.options=Object.assign({},q,P),this.position=0,this.unbalanced=0,this.root=new r;let $=new n;this.root.append($),this.current=$,this.tokens=x(E,this.options)}parse(){return this.loop()}colon(){let E=this.currToken;this.newNode(new a({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}comma(){let E=this.currToken;this.newNode(new u({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}comment(){let E=!1,P=this.currToken[1].replace(/\/\*|\*\//g,""),q;this.options.loose&&P.startsWith("//")&&(P=P.substring(2),E=!0),q=new s({value:P,inline:E,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(q),this.position++}error(E,P){throw new b(E+` at line: ${P[2]}, column ${P[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let E=this.currToken[1],P;if(E==="+"||E==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return P=new _({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(P)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let E=1,P=this.position+1,q=this.currToken,$;for(;P<this.tokens.length&&E;){let M=this.tokens[P];M[0]==="("&&E++,M[0]===")"&&E--,P++}if(E&&this.error("Expected closing parenthesis",q),$=this.current.last,$&&$.type==="func"&&$.unbalanced<0&&($.unbalanced=0,this.current=$),this.current.unbalanced++,this.newNode(new p({value:q[1],source:{start:{line:q[2],column:q[3]},end:{line:q[4],column:q[5]}},sourceIndex:q[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let M=this.nextToken,O=this.currToken[1],K={line:this.currToken[2],column:this.currToken[3]};for(;M&&M[0]!==")"&&this.current.unbalanced;)this.position++,O+=this.currToken[1],M=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new m({value:O,source:{start:K,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let E=this.currToken;this.newNode(new p({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",E),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let E=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=E[1],this.position++):(this.spaces=E[1],this.position++)}unicodeRange(){let E=this.currToken;this.newNode(new d({value:E[1],source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6]})),this.position++}splitWord(){let E=this.nextToken,P=this.currToken[1],q=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,$=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,M,O;if(!$.test(P))for(;E&&E[0]==="word";){this.position++;let K=this.currToken[1];P+=K,E=this.nextToken}M=A(P,"@"),O=N(F(T([[0],M]))),O.forEach((K,ue)=>{let Q=O[ue+1]||P.length,G=P.slice(K,Q),Z;if(~M.indexOf(K))Z=new i({value:G.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+K},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+O[ue]});else if(q.test(this.currToken[1])){let ee=G.replace(q,"");Z=new h({value:G.replace(ee,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+K},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+O[ue],unit:ee})}else Z=new(E&&E[0]==="("?l:m)({value:G,source:{start:{line:this.currToken[2],column:this.currToken[3]+K},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+O[ue]}),Z.type==="word"?(Z.isHex=/^#(.+)/.test(G),Z.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(G)):this.cache.push(this.current);this.newNode(Z)}),this.position++}string(){let E=this.currToken,P=this.currToken[1],q=/^(\"|\')/,$=q.test(P),M="",O;$&&(M=P.match(q)[0],P=P.slice(1,P.length-1)),O=new f({value:P,source:{start:{line:E[2],column:E[3]},end:{line:E[4],column:E[5]}},sourceIndex:E[6],quoted:$}),O.raws.quote=M,this.newNode(O),this.position++}word(){return this.splitWord()}newNode(E){return this.spaces&&(E.raws.before+=this.spaces,this.spaces=""),this.current.append(E)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),G_r={};z_r(G_r,{languages:()=>Fcr,options:()=>Scr,parsers:()=>xOe,printers:()=>Mcr});Fc=Sji,ucr=new Set([tcr,Tye,_Oe,rcr,Cye,Eye,kye,ncr,cOe,icr,gK,acr,hOe]),mK=Pji;Ree=Nji;$ji=class extends Error{name="InvalidDocError";constructor(e){super(qji(e)),this.doc=e}},Jji=$ji;OJ=pOe,fOe=pOe,Vji=pOe;mOe={type:hOe},jji={type:gK,hard:!0},D7={type:gK},k4={type:gK,soft:!0},K_=[jji,mOe];Fye=Kji,lcr=new Proxy(()=>{},{get:()=>lcr}),Uji=lcr;Oji=Zji;Wji=Qji;_cr=Yji,Hji=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Gji=Hji;vye=Rji,eKi=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);ccr.ignoredProperties=eKi;rKi=ccr;iKi=nKi;hcr.getVisitorKeys=(e)=>e.type==="css-root"?["frontMatter"]:[];aKi=hcr;for(let e=0;e<=uKi;e++)ete();lKi=sKi,_Ki={"front-matter":[],"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":["nodes"],"media-query":["nodes"],"media-type":[],"media-feature-expression":["nodes"],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":["nodes"],"selector-selector":["nodes"],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":["nodes"],"selector-universal":[],"selector-pseudo":["nodes"],"selector-nesting":[],"selector-unknown":[],"value-value":["group"],"value-root":["group"],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":["group"],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},cKi=_Ki,hKi=lKi(cKi),pKi=hKi;pcr=fKi;maa=Sye(/\s/u),fcr=Sye(" \t"),mKi=Sye(",; \t"),mcr=Sye(/[^\n\r]/u);gKi=/\*\/$/,xKi=/^\/\*\*?/,xcr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,vKi=/(^|\s+)\/\/([^\n\r]*)/g,N_r=/^(\r?\n)+/,DKi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,B_r=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,wKi=/(\r?\n|^) *\* ?/g,vcr=[];kKi=EKi;yOe=NKi;$Ki=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);IKi=new Set(["initial","inherit","unset","revert"]);uUi=aUi;sUi=oUi,I_r=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);Acr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,_Ui=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,cUi=/[a-z]+/giu,hUi=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,pUi=new RegExp(Acr.source+`|(${hUi.source})?(${_Ui.source})(${cUi.source})?`,"giu");Tcr=dUi;Ccr=yUi;xUi=gUi;DUi=vUi;Ecr=wUi;Gee=kUi;SUi={print:FUi,embed:aKi,insertPragma:qKi,massageAstNode:rKi,getVisitorKeys:pKi},PUi=SUi,Fcr=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],NUi={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},BUi={singleQuote:NUi.singleQuote},Scr=BUi,xOe={};z_r(xOe,{css:()=>_Zi,less:()=>cZi,scss:()=>hZi});qUi=dK(bye(),1),$Ui=dK(LXi(),1),JUi=dK(QXi(),1);MUi=IUi,zUi=dK(YXi(),1);VUi=zUi.default.default;XUi=LUi,jUi=dK(hji(),1);ZJ=KUi,UUi=dK(Fji(),1),Ncr=ZUi;QUi=OUi;YUi=WUi;GUi=HUi;eZi=RUi;UJ=rZi,nZi=new Set(["import","use","forward"]);aZi=iZi;oZi=uZi,sZi=/(\s*)(!default).*$/u,lZi=/(\s*)(!global).*$/u;DOe={astFormat:"postcss",hasPragma:BKi,locStart:Ay,locEnd:wy},_Zi={...DOe,parse:$cr},cZi={...DOe,parse:Jcr},hZi={...DOe,parse:Icr},Mcr={postcss:PUi},pZi=G_r});var upr={};$_(upr,{parsers:()=>uQe,default:()=>pe0});function mte(e){return e!==void 0?e.length:0}function ky(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n)return n}}function DZi(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n!==void 0)return n}}function Lcr(e,t,r){let n=[];Mr.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n}function sQe(e,t){if(e!==void 0){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function o2r(e,t,r){if(e!==void 0)for(let n=r??0;n<e.length;n++){let i=e[n];if(t(i,n))return i}}function wOe(e,t,r){if(e===void 0)return-1;for(let n=r??0;n<e.length;n++)if(t(e[n],n))return n;return-1}function wZi(e,t,r=cQe){if(e!==void 0){for(let n=0;n<e.length;n++)if(r(e[n],t))return!0}return!1}function MC(e,t){if(e!==void 0){let r=e.length,n=0;for(;n<r&&t(e[n]);)n++;if(n<r){let i=e.slice(0,n);for(n++;n<r;){let a=e[n];t(a)&&i.push(a),n++}return i}}return e}function JOe(e,t){let r;if(e!==void 0){r=[];for(let n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function s2r(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];n&&(zC(n)?Wm(t,n):t.push(n))}return t}function l2r(e,t){let r;if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);i&&(zC(i)?r=Wm(r,i):r=Om(r,i))}return r??t_}function AZi(e,t){let r;if(e!==void 0)for(let n=0;n<e.length;n++){let i=e[n],a=t(i,n);(r||i!==a||zC(a))&&(r||(r=e.slice(0,n)),zC(a)?Wm(r,a):r.push(a))}return r??e}function bZi(e,t){let r=[];if(e!==void 0)for(let n=0;n<e.length;n++){let i=t(e[n],n);i!==void 0&&r.push(i)}return r}function eh(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r<e.length;r++)if(t(e[r]))return!0}else return e.length>0;return!1}function lQe(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function TZi(e,t,r=cQe){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0}function Om(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function IOe(e,t){return t<0?e.length+t:t}function Wm(e,t,r,n){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,n);r=r===void 0?0:IOe(t,r),n=n===void 0?t.length:IOe(t,n);for(let i=r;i<n&&i<t.length;i++)t[i]!==void 0&&e.push(t[i]);return e}function CZi(e,t,r){return wZi(e,t,r)?!1:(e.push(t),!0)}function EZi(e,t,r){return e!==void 0?(CZi(e,t,r),e):[t]}function kZi(e,t){return e.length===0?t_:e.slice().sort(t)}function _Qe(e){return e===void 0||e.length===0?void 0:e[0]}function nI(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function FZi(e){return Mr.assert(e.length!==0),e[e.length-1]}function SZi(e){return e!==void 0&&e.length===1?e[0]:void 0}function PZi(e,t,r,n,i){return NZi(e,r(t),r,n,i)}function NZi(e,t,r,n,i){if(!eh(e))return-1;let a=i??0,u=e.length-1;for(;a<=u;){let s=a+(u-a>>1),l=r(e[s],s);switch(n(l,t)){case-1:a=s+1;break;case 0:return s;case 1:u=s-1;break}}return~a}function BZi(e,t,r,n,i){if(e&&e.length>0){let a=e.length;if(a>0){let u=n===void 0||n<0?0:n,s=i===void 0||u+i>a-1?a-1:u+i,l;for(arguments.length<=2?(l=e[u],u++):l=r;u<=s;)l=t(l,e[u],u),u++;return l}}return r}function _A(e,t){return _2r.call(e,t)}function qZi(e){let t=[];for(let r in e)_2r.call(e,r)&&t.push(r);return t}function $Zi(){let e=new Map;return e.add=JZi,e.remove=IZi,e}function JZi(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function IZi(e,t){let r=this.get(e);r!==void 0&&(ZZi(r,t),r.length||this.delete(e))}function zC(e){return Array.isArray(e)}function AOe(e){return zC(e)?e:[e]}function MZi(e,t){return e!==void 0&&t(e)?e:void 0}function oA(e,t){return e!==void 0&&t(e)?e:Mr.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Mr.getFunctionName(t)}'.`)}function $K(e){}function zZi(){return!0}function _l(e){return e}function Xcr(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function S4(e){let t=new Map;return(r)=>{let n=`${typeof r}:${r}`,i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(r),t.set(n,i)),i}}function cQe(e,t){return e===t}function hQe(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function VZi(e,t){return cQe(e,t)}function LZi(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function c2r(e,t){return LZi(e,t)}function XZi(e,t,r){for(let n=0;n<e.length;n++)t=Math.max(t,r(e[n]));return t}function dte(e,t,r){let n=Math.max(2,Math.floor(e.length*0.34)),i=Math.floor(e.length*0.4)+1,a;for(let u of t){let s=r(u);if(s!==void 0&&Math.abs(s.length-e.length)<=n){if(s===e||s.length<3&&s.toLowerCase()!==e.toLowerCase())continue;let l=jZi(e,s,i-0.1);if(l===void 0)continue;Mr.assert(l<i),i=l,a=u}}return a}function jZi(e,t,r){let n=new Array(t.length+1),i=new Array(t.length+1),a=r+0.01;for(let s=0;s<=t.length;s++)n[s]=s;for(let s=1;s<=e.length;s++){let l=e.charCodeAt(s-1),h=Math.ceil(s>r?s-r:1),_=Math.floor(t.length>r+s?r+s:t.length);i[0]=s;let p=s;for(let m=1;m<h;m++)i[m]=a;for(let m=h;m<=_;m++){let d=e[s-1].toLowerCase()===t[m-1].toLowerCase()?n[m-1]+0.1:n[m-1]+2,x=l===t.charCodeAt(m-1)?n[m-1]:Math.min(n[m]+1,i[m-1]+1,d);i[m]=x,p=Math.min(p,x)}for(let m=_+1;m<=t.length;m++)i[m]=a;if(p>r)return;let f=n;n=i,i=f}let u=n[t.length];return u>r?void 0:u}function KZi(e,t,r){let n=e.length-t.length;return n>=0&&(r?hQe(e.slice(n),t):e.indexOf(t,n)===n)}function UZi(e,t){e[t]=e[e.length-1],e.pop()}function ZZi(e,t){return OZi(e,(r)=>r===t)}function OZi(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return UZi(e,r),!0;return!1}function Kye(e,t,r){return r?hQe(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function MOe(e){return e===void 0?void 0:[e]}function HZi(e){return e===47||e===92}function GZi(e,t){return e.length>t.length&&KZi(e,t)}function fQe(e){return e.length>0&&HZi(e.charCodeAt(e.length-1))}function Ucr(e){return e>=97&&e<=122||e>=65&&e<=90}function RZi(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function eOi(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?sI:WZi,2);return n<0?e.length:n+1}if(Ucr(t)&&e.charCodeAt(1)===58){let n=e.charCodeAt(2);if(n===47||n===92)return 3;if(e.length===2)return 2}let r=e.indexOf(Kcr);if(r!==-1){let n=r+Kcr.length,i=e.indexOf(sI,n);if(i!==-1){let a=e.slice(0,r),u=e.slice(n,i);if(a==="file"&&(u===""||u==="localhost")&&Ucr(e.charCodeAt(i+1))){let s=RZi(e,i+2);if(s!==-1){if(e.charCodeAt(s)===47)return~(s+1);if(s===e.length)return~s}}return~(i+1)}return~e.length}return 0}function Uye(e){let t=eOi(e);return t<0?~t:t}function A2r(e,t,r){if(e=Zye(e),Uye(e)===e.length)return"";e=T2r(e);let n=e.slice(Math.max(Uye(e),e.lastIndexOf(sI)+1)),i=t!==void 0&&r!==void 0?b2r(n,t,r):void 0;return i?n.slice(0,n.length-i.length):n}function Zcr(e,t,r){if(Kye(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let n=e.slice(e.length-t.length);if(r(n,t))return n}}function tOi(e,t,r){if(typeof t=="string")return Zcr(e,t,r)||"";for(let n of t){let i=Zcr(e,n,r);if(i)return i}return""}function b2r(e,t,r){if(t)return tOi(T2r(e),t,r?hQe:VZi);let n=A2r(e),i=n.lastIndexOf(".");return i>=0?n.substring(i):""}function rOi(e,t){let r=e.substring(0,t),n=e.substring(t).split(sI);return n.length&&!nI(n)&&n.pop(),[r,...n]}function nOi(e,t=""){return e=uOi(t,e),rOi(e,Uye(e))}function iOi(e,t){return e.length===0?"":(e[0]&&mQe(e[0]))+e.slice(1,t).join(sI)}function Zye(e){return e.includes("\\")?e.replace(YZi,sI):e}function aOi(e){if(!eh(e))return[];let t=[e[0]];for(let r=1;r<e.length;r++){let n=e[r];if(n&&n!=="."){if(n===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(n)}}return t}function uOi(e,...t){e&&(e=Zye(e));for(let r of t)r&&(r=Zye(r),!e||Uye(r)!==0?e=r:e=mQe(e)+r);return e}function oOi(e){if(e=Zye(e),!Ocr.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Ocr.test(e)))return e;let r=iOi(aOi(nOi(e)));return r&&fQe(e)?mQe(r):r}function T2r(e){return fQe(e)?e.substr(0,e.length-1):e}function mQe(e){return fQe(e)?e:e+sI}function w(e,t,r,n,i,a,u){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:u}}function Bl(e){return e>=80}function sOi(e){return e===32||Bl(e)}function Oye(e,t){if(e<t[0])return!1;let r=0,n=t.length,i;for(;r+1<n;){if(i=r+(n-r)/2,i-=i%2,t[i]<=e&&e<=t[i+1])return!0;e<t[i]?n=i:r=i+2}return!1}function gOi(e,t){return t>=2?Oye(e,pOi):Oye(e,cOi)}function xOi(e,t){return t>=2?Oye(e,fOi):Oye(e,hOi)}function k2r(e){let t=[];return e.forEach((r,n)=>{t[r]=n}),t}function Ss(e){return vOi[e]}function F2r(e){return C2r.get(e)}function Qcr(e){return E2r.get(e)}function S2r(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e.charCodeAt(r);switch(r++,i){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(n),n=r;break;default:i>127&&Qm(i)&&(t.push(n),n=r);break}}return t.push(n),t}function DOi(e,t,r,n,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:Mr.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${n!==void 0?TZi(e,S2r(n)):"unknown"}`));let a=e[t]+r;return i?a>e[t+1]?e[t+1]:typeof n=="string"&&a>n.length?n.length:a:(t<e.length-1?Mr.assert(a<e[t+1]):n!==void 0&&Mr.assert(a<=n.length),a)}function VOe(e){return e.lineMap||(e.lineMap=S2r(e.text))}function wOi(e,t){let r=AOi(e,t);return{line:r,character:t-e[r]}}function AOi(e,t,r){let n=PZi(e,t,_l,c2r,r);return n<0&&(n=~n-1,Mr.assert(n!==-1,"position cannot precede the beginning of the file")),n}function P2r(e,t){return wOi(VOe(e),t)}function PK(e){return gte(e)||Qm(e)}function gte(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Qm(e){return e===10||e===13||e===8232||e===8233}function MP(e){return e>=48&&e<=57}function bOe(e){return MP(e)||e>=65&&e<=70||e>=97&&e<=102}function yQe(e){return e>=65&&e<=90||e>=97&&e<=122}function N2r(e){return yQe(e)||MP(e)||e===95}function TOe(e){return e>=48&&e<=55}function sA(e,t,r,n,i){if(Fte(t))return t;let a=!1;for(;;){let u=e.charCodeAt(t);switch(u){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;a=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Qm(e.charCodeAt(t));)t++;a=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}a=!1;continue}break;case 60:case 124:case 61:case 62:if(RJ(e,t)){t=wK(e,t),a=!1;continue}break;case 35:if(t===0&&B2r(e,t)){t=q2r(e,t),a=!1;continue}break;case 42:if(a){t++,a=!1;continue}break;default:if(u>127&&PK(u)){t++;continue}break}return t}}function RJ(e,t){if(Mr.assert(t>=0),t===0||Qm(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+zye<e.length){for(let n=0;n<zye;n++)if(e.charCodeAt(t+n)!==r)return!1;return r===61||e.charCodeAt(t+zye)===32}}return!1}function wK(e,t,r){r&&r(Ot.Merge_conflict_marker_encountered,t,zye);let n=e.charCodeAt(t),i=e.length;if(n===60||n===62)for(;t<i&&!Qm(e.charCodeAt(t));)t++;else for(Mr.assert(n===124||n===61);t<i;){let a=e.charCodeAt(t);if((a===61||a===62)&&a!==n&&RJ(e,t))break;t++}return t}function B2r(e,t){return Mr.assert(t===0),gQe.test(e)}function q2r(e,t){let r=gQe.exec(e)[0];return t=t+r.length,t}function r6e(e,t,r,n,i,a,u){let s,l,h,_,p=!1,f=n,m=u;if(r===0){f=!0;let d=J2r(t);d&&(r=d.length)}e:for(;r>=0&&r<t.length;){let d=t.charCodeAt(r);switch(d){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,n)break e;f=!0,p&&(_=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:let x=t.charCodeAt(r+1),T=!1;if(x===47||x===42){let A=x===47?2:3,F=r;if(r+=2,x===47)for(;r<t.length;){if(Qm(t.charCodeAt(r))){T=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(f){if(p&&(m=i(s,l,h,_,a,m),!e&&m))return m;s=F,l=r,h=A,_=T,p=!0}continue}break e;default:if(d>127&&PK(d)){p&&Qm(d)&&(_=!0),r++;continue}break e}}return p&&(m=i(s,l,h,_,a,m)),m}function bOi(e,t,r,n){return r6e(!1,e,t,!1,r,n)}function TOi(e,t,r,n){return r6e(!1,e,t,!0,r,n)}function COi(e,t,r,n,i){return r6e(!0,e,t,!1,r,n,i)}function EOi(e,t,r,n,i){return r6e(!0,e,t,!0,r,n,i)}function $2r(e,t,r,n,i,a=[]){return a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function LOe(e,t){return COi(e,t,$2r,void 0,void 0)}function kOi(e,t){return EOi(e,t,$2r,void 0,void 0)}function J2r(e){let t=gQe.exec(e);if(t)return t[0]}function u3(e,t){return yQe(e)||e===36||e===95||e>127&&gOi(e,t)}function $C(e,t,r){return N2r(e)||e===36||(r===1?e===45||e===58:!1)||e>127&&xOi(e,t)}function FOi(e,t,r){let n=eI(e,0);if(!u3(n,t))return!1;for(let i=Y1(n);i<e.length;i+=Y1(n))if(!$C(n=eI(e,i),t,r))return!1;return!0}function xQe(e,t,r=0,n,i,a,u){var s=n,l,h,_,p,f,m,d,x,T=0,A=0,F=0;mr(s,a,u);var b={getTokenFullStart:()=>_,getStartPos:()=>_,getTokenEnd:()=>l,getTextPos:()=>l,getToken:()=>f,getTokenStart:()=>p,getTokenPos:()=>p,getTokenText:()=>s.substring(p,l),getTokenValue:()=>m,hasUnicodeEscape:()=>(d&1024)!==0,hasExtendedUnicodeEscape:()=>(d&8)!==0,hasPrecedingLineBreak:()=>(d&1)!==0,hasPrecedingJSDocComment:()=>(d&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(d&32768)!==0,isIdentifier:()=>f===80||f>118,isReservedWord:()=>f>=83&&f<=118,isUnterminated:()=>(d&4)!==0,getCommentDirectives:()=>x,getNumericLiteralFlags:()=>d&25584,getTokenFlags:()=>d,reScanGreaterToken:ke,reScanAsteriskEqualsToken:Je,reScanSlashToken:ut,reScanTemplateToken:St,reScanTemplateHeadOrNoSubstitutionTemplate:Tt,scanJsxIdentifier:Yr,scanJsxAttributeValue:Cn,reScanJsxAttributeValue:Te,reScanJsxToken:Mt,reScanLessThanToken:wr,reScanHashToken:tr,reScanQuestionToken:Vr,reScanInvalidIdentifier:pe,scanJsxToken:Tr,scanJsDocToken:fe,scanJSDocCommentTextToken:De,scan:Ne,getText:st,clearCommentDirectives:Lt,setText:mr,setScriptTarget:en,setLanguageVariant:ki,setScriptKind:Jn,setJSDocParsingMode:c0,setOnError:Dr,resetTokenState:r0,setTextPos:r0,setSkipJsDocLeadingAsterisks:e0,tryScan:ct,lookAhead:Qe,scanRange:be};return Mr.isDebugging&&Object.defineProperty(b,"__debugShowCurrentPositionInText",{get:()=>{let pr=b.getText();return pr.slice(0,b.getTokenFullStart())+"║"+pr.slice(b.getTokenFullStart())}}),b;function N(pr){return eI(s,pr)}function E(pr){return pr>=0&&pr<h?N(pr):-1}function P(pr){return s.charCodeAt(pr)}function q(pr){return pr>=0&&pr<h?P(pr):-1}function $(pr,Ar=l,Pr,kn){if(i){let ri=l;l=Ar,i(pr,Pr||0,kn),l=ri}}function M(){let pr=l,Ar=!1,Pr=!1,kn="";for(;;){let ri=P(l);if(ri===95){d|=512,Ar?(Ar=!1,Pr=!0,kn+=s.substring(pr,l)):(d|=16384,$(Pr?Ot.Multiple_consecutive_numeric_separators_are_not_permitted:Ot.Numeric_separators_are_not_allowed_here,l,1)),l++,pr=l;continue}if(MP(ri)){Ar=!0,Pr=!1,l++;continue}break}return P(l-1)===95&&(d|=16384,$(Ot.Numeric_separators_are_not_allowed_here,l-1,1)),kn+s.substring(pr,l)}function O(){let pr=l,Ar;if(P(l)===48)if(l++,P(l)===95)d|=16896,$(Ot.Numeric_separators_are_not_allowed_here,l,1),l--,Ar=M();else if(!ue())d|=8192,Ar=""+ +m;else if(!m)Ar="0";else{m=""+parseInt(m,8),d|=32;let di=f===41,Pi=(di?"-":"")+"0o"+(+m).toString(8);return di&&pr--,$(Ot.Octal_literals_are_not_allowed_Use_the_syntax_0,pr,l-pr,Pi),9}else Ar=M();let Pr,kn;P(l)===46&&(l++,Pr=M());let ri=l;if(P(l)===69||P(l)===101){l++,d|=16,(P(l)===43||P(l)===45)&&l++;let di=l,Pi=M();Pi?(kn=s.substring(ri,di)+Pi,ri=l):$(Ot.Digit_expected)}let Vi;if(d&512?(Vi=Ar,Pr&&(Vi+="."+Pr),kn&&(Vi+=kn)):Vi=s.substring(pr,ri),d&8192)return $(Ot.Decimals_with_leading_zeros_are_not_allowed,pr,ri-pr),m=""+ +Vi,9;if(Pr!==void 0||d&16)return K(pr,Pr===void 0&&!!(d&16)),m=""+ +Vi,9;{m=Vi;let di=Xe();return K(pr),di}}function K(pr,Ar){if(!u3(N(l),e))return;let Pr=l,{length:kn}=Ie();kn===1&&s[Pr]==="n"?$(Ar?Ot.A_bigint_literal_cannot_use_exponential_notation:Ot.A_bigint_literal_must_be_an_integer,pr,Pr-pr+1):($(Ot.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Pr,kn),l=Pr)}function ue(){let pr=l,Ar=!0;for(;MP(q(l));)TOe(P(l))||(Ar=!1),l++;return m=s.substring(pr,l),Ar}function Q(pr,Ar){let Pr=Z(pr,!1,Ar);return Pr?parseInt(Pr,16):-1}function G(pr,Ar){return Z(pr,!0,Ar)}function Z(pr,Ar,Pr){let kn=[],ri=!1,Vi=!1;for(;kn.length<pr||Ar;){let di=P(l);if(Pr&&di===95){d|=512,ri?(ri=!1,Vi=!0):$(Vi?Ot.Multiple_consecutive_numeric_separators_are_not_permitted:Ot.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(ri=Pr,di>=65&&di<=70)di+=32;else if(!(di>=48&&di<=57||di>=97&&di<=102))break;kn.push(di),l++,Vi=!1}return kn.length<pr&&(kn=[]),P(l-1)===95&&$(Ot.Numeric_separators_are_not_allowed_here,l-1,1),String.fromCharCode(...kn)}function ee(pr=!1){let Ar=P(l);l++;let Pr="",kn=l;for(;;){if(l>=h){Pr+=s.substring(kn,l),d|=4,$(Ot.Unterminated_string_literal);break}let ri=P(l);if(ri===Ar){Pr+=s.substring(kn,l),l++;break}if(ri===92&&!pr){Pr+=s.substring(kn,l),Pr+=Fe(3),kn=l;continue}if((ri===10||ri===13)&&!pr){Pr+=s.substring(kn,l),d|=4,$(Ot.Unterminated_string_literal);break}l++}return Pr}function ge(pr){let Ar=P(l)===96;l++;let Pr=l,kn="",ri;for(;;){if(l>=h){kn+=s.substring(Pr,l),d|=4,$(Ot.Unterminated_template_literal),ri=Ar?15:18;break}let Vi=P(l);if(Vi===96){kn+=s.substring(Pr,l),l++,ri=Ar?15:18;break}if(Vi===36&&l+1<h&&P(l+1)===123){kn+=s.substring(Pr,l),l+=2,ri=Ar?16:17;break}if(Vi===92){kn+=s.substring(Pr,l),kn+=Fe(1|(pr?2:0)),Pr=l;continue}if(Vi===13){kn+=s.substring(Pr,l),l++,l<h&&P(l)===10&&l++,kn+=`
|
|
656
656
|
`,Pr=l;continue}l++}return Mr.assert(ri!==void 0),m=kn,ri}function Fe(pr){let Ar=l;if(l++,l>=h)return $(Ot.Unexpected_end_of_text),"";let Pr=P(l);switch(l++,Pr){case 48:if(l>=h||!MP(P(l)))return"\x00";case 49:case 50:case 51:l<h&&TOe(P(l))&&l++;case 52:case 53:case 54:case 55:if(l<h&&TOe(P(l))&&l++,d|=2048,pr&6){let Vi=parseInt(s.substring(Ar+1,l),8);return pr&4&&!(pr&32)&&Pr!==48?$(Ot.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Ar,l-Ar,"\\x"+Vi.toString(16).padStart(2,"0")):$(Ot.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Ar,l-Ar,"\\x"+Vi.toString(16).padStart(2,"0")),String.fromCharCode(Vi)}return s.substring(Ar,l);case 56:case 57:return d|=2048,pr&6?(pr&4&&!(pr&32)?$(Ot.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Ar,l-Ar):$(Ot.Escape_sequence_0_is_not_allowed,Ar,l-Ar,s.substring(Ar,l)),String.fromCharCode(Pr)):s.substring(Ar,l);case 98:return"\b";case 116:return"\t";case 110:return`
|
|
657
657
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(l<h&&P(l)===123){l-=2;let Vi=He(!!(pr&6));return pr&17||(d|=2048,pr&6&&$(Ot.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Ar,l-Ar)),Vi}for(;l<Ar+6;l++)if(!(l<h&&bOe(P(l))))return d|=2048,pr&6&&$(Ot.Hexadecimal_digit_expected),s.substring(Ar,l);d|=1024;let kn=parseInt(s.substring(Ar+2,l),16),ri=String.fromCharCode(kn);if(pr&16&&kn>=55296&&kn<=56319&&l+6<h&&s.substring(l,l+2)==="\\u"&&P(l+2)!==123){let Vi=l,di=l+2;for(;di<Vi+6;di++)if(!bOe(P(di)))return ri;let Pi=parseInt(s.substring(Vi+2,di),16);if(Pi>=56320&&Pi<=57343)return l=di,ri+String.fromCharCode(Pi)}return ri;case 120:for(;l<Ar+4;l++)if(!(l<h&&bOe(P(l))))return d|=2048,pr&6&&$(Ot.Hexadecimal_digit_expected),s.substring(Ar,l);return d|=4096,String.fromCharCode(parseInt(s.substring(Ar+2,l),16));case 13:l<h&&P(l)===10&&l++;case 10:case 8232:case 8233:return"";default:return(pr&16||pr&4&&!(pr&8)&&$C(Pr,e))&&$(Ot.This_character_cannot_be_escaped_in_a_regular_expression,l-2,2),String.fromCharCode(Pr)}}function He(pr){let Ar=l;l+=3;let Pr=l,kn=G(1,!1),ri=kn?parseInt(kn,16):-1,Vi=!1;return ri<0?(pr&&$(Ot.Hexadecimal_digit_expected),Vi=!0):ri>1114111&&(pr&&$(Ot.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,Pr,l-Pr),Vi=!0),l>=h?(pr&&$(Ot.Unexpected_end_of_text),Vi=!0):P(l)===125?l++:(pr&&$(Ot.Unterminated_Unicode_escape_sequence),Vi=!0),Vi?(d|=2048,s.substring(Ar,l)):(d|=8,Wcr(ri))}function xe(){if(l+5<h&&P(l+1)===117){let pr=l;l+=2;let Ar=Q(4,!1);return l=pr,Ar}return-1}function $e(){if(N(l+1)===117&&N(l+2)===123){let pr=l;l+=3;let Ar=G(1,!1),Pr=Ar?parseInt(Ar,16):-1;return l=pr,Pr}return-1}function Ie(){let pr="",Ar=l;for(;l<h;){let Pr=N(l);if($C(Pr,e))l+=Y1(Pr);else if(Pr===92){if(Pr=$e(),Pr>=0&&$C(Pr,e)){pr+=He(!0),Ar=l;continue}if(Pr=xe(),!(Pr>=0&&$C(Pr,e)))break;d|=1024,pr+=s.substring(Ar,l),pr+=Wcr(Pr),l+=6,Ar=l}else break}return pr+=s.substring(Ar,l),pr}function te(){let pr=m.length;if(pr>=2&&pr<=12){let Ar=m.charCodeAt(0);if(Ar>=97&&Ar<=122){let Pr=lOi.get(m);if(Pr!==void 0)return f=Pr}}return f=80}function de(pr){let Ar="",Pr=!1,kn=!1;for(;;){let ri=P(l);if(ri===95){d|=512,Pr?(Pr=!1,kn=!0):$(kn?Ot.Multiple_consecutive_numeric_separators_are_not_permitted:Ot.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(Pr=!0,!MP(ri)||ri-48>=pr)break;Ar+=s[l],l++,kn=!1}return P(l-1)===95&&$(Ot.Numeric_separators_are_not_allowed_here,l-1,1),Ar}function Xe(){return P(l)===110?(m+="n",d&384&&(m=UWi(m)+"n"),l++,10):(m=""+(d&128?parseInt(m.slice(2),2):d&256?parseInt(m.slice(2),8):+m),9)}function Ne(){for(_=l,d=0;;){if(p=l,l>=h)return f=1;let pr=N(l);if(l===0&&pr===35&&B2r(s,l)){if(l=q2r(s,l),t)continue;return f=6}switch(pr){case 10:case 13:if(d|=1,t){l++;continue}else return pr===13&&l+1<h&&P(l+1)===10?l+=2:l++,f=4;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 8203:case 8239:case 8287:case 12288:case 65279:if(t){l++;continue}else{for(;l<h&>e(P(l));)l++;return f=5}case 33:return P(l+1)===61?P(l+2)===61?(l+=3,f=38):(l+=2,f=36):(l++,f=54);case 34:case 39:return m=ee(),f=11;case 96:return f=ge(!1);case 37:return P(l+1)===61?(l+=2,f=70):(l++,f=45);case 38:return P(l+1)===38?P(l+2)===61?(l+=3,f=77):(l+=2,f=56):P(l+1)===61?(l+=2,f=74):(l++,f=51);case 40:return l++,f=21;case 41:return l++,f=22;case 42:if(P(l+1)===61)return l+=2,f=67;if(P(l+1)===42)return P(l+2)===61?(l+=3,f=68):(l+=2,f=43);if(l++,T&&(d&32768)===0&&d&1){d|=32768;continue}return f=42;case 43:return P(l+1)===43?(l+=2,f=46):P(l+1)===61?(l+=2,f=65):(l++,f=40);case 44:return l++,f=28;case 45:return P(l+1)===45?(l+=2,f=47):P(l+1)===61?(l+=2,f=66):(l++,f=41);case 46:return MP(P(l+1))?(O(),f=9):P(l+1)===46&&P(l+2)===46?(l+=3,f=26):(l++,f=25);case 47:if(P(l+1)===47){for(l+=2;l<h&&!Qm(P(l));)l++;if(x=Bt(x,s.slice(p,l),mOi,p),t)continue;return f=2}if(P(l+1)===42){l+=2;let di=P(l)===42&&P(l+1)!==47,Pi=!1,na=p;for(;l<h;){let K0=P(l);if(K0===42&&P(l+1)===47){l+=2,Pi=!0;break}l++,Qm(K0)&&(na=l,d|=1)}if(di&&Ce()&&(d|=2),x=Bt(x,s.slice(na,l),dOi,na),Pi||$(Ot.Asterisk_Slash_expected),t)continue;return Pi||(d|=4),f=3}return P(l+1)===61?(l+=2,f=69):(l++,f=44);case 48:if(l+2<h&&(P(l+1)===88||P(l+1)===120))return l+=2,m=G(1,!0),m||($(Ot.Hexadecimal_digit_expected),m="0"),m="0x"+m,d|=64,f=Xe();if(l+2<h&&(P(l+1)===66||P(l+1)===98))return l+=2,m=de(2),m||($(Ot.Binary_digit_expected),m="0"),m="0b"+m,d|=128,f=Xe();if(l+2<h&&(P(l+1)===79||P(l+1)===111))return l+=2,m=de(8),m||($(Ot.Octal_digit_expected),m="0"),m="0o"+m,d|=256,f=Xe();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return f=O();case 58:return l++,f=59;case 59:return l++,f=27;case 60:if(RJ(s,l)){if(l=wK(s,l,$),t)continue;return f=7}return P(l+1)===60?P(l+2)===61?(l+=3,f=71):(l+=2,f=48):P(l+1)===61?(l+=2,f=33):r===1&&P(l+1)===47&&P(l+2)!==42?(l+=2,f=31):(l++,f=30);case 61:if(RJ(s,l)){if(l=wK(s,l,$),t)continue;return f=7}return P(l+1)===61?P(l+2)===61?(l+=3,f=37):(l+=2,f=35):P(l+1)===62?(l+=2,f=39):(l++,f=64);case 62:if(RJ(s,l)){if(l=wK(s,l,$),t)continue;return f=7}return l++,f=32;case 63:return P(l+1)===46&&!MP(P(l+2))?(l+=2,f=29):P(l+1)===63?P(l+2)===61?(l+=3,f=78):(l+=2,f=61):(l++,f=58);case 91:return l++,f=23;case 93:return l++,f=24;case 94:return P(l+1)===61?(l+=2,f=79):(l++,f=53);case 123:return l++,f=19;case 124:if(RJ(s,l)){if(l=wK(s,l,$),t)continue;return f=7}return P(l+1)===124?P(l+2)===61?(l+=3,f=76):(l+=2,f=57):P(l+1)===61?(l+=2,f=75):(l++,f=52);case 125:return l++,f=20;case 126:return l++,f=55;case 64:return l++,f=60;case 92:let Ar=$e();if(Ar>=0&&u3(Ar,e))return m=He(!0)+Ie(),f=te();let Pr=xe();return Pr>=0&&u3(Pr,e)?(l+=6,d|=1024,m=String.fromCharCode(Pr)+Ie(),f=te()):($(Ot.Invalid_character),l++,f=0);case 35:if(l!==0&&s[l+1]==="!")return $(Ot.can_only_be_used_at_the_start_of_a_file,l,2),l++,f=0;let kn=N(l+1);if(kn===92){l++;let di=$e();if(di>=0&&u3(di,e))return m="#"+He(!0)+Ie(),f=81;let Pi=xe();if(Pi>=0&&u3(Pi,e))return l+=6,d|=1024,m="#"+String.fromCharCode(Pi)+Ie(),f=81;l--}return u3(kn,e)?(l++,ie(kn,e)):(m="#",$(Ot.Invalid_character,l++,Y1(pr))),f=81;case 65533:return $(Ot.File_appears_to_be_binary,0,0),l=h,f=8;default:let ri=ie(pr,e);if(ri)return f=ri;if(gte(pr)){l+=Y1(pr);continue}else if(Qm(pr)){d|=1,l+=Y1(pr);continue}let Vi=Y1(pr);return $(Ot.Invalid_character,l,Vi),l+=Vi,f=0}}}function Ce(){switch(F){case 0:return!0;case 1:return!1}return A!==3&&A!==4?!0:F===3?!1:yOi.test(s.slice(_,l))}function pe(){Mr.assert(f===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=p=_,d=0;let pr=N(l),Ar=ie(pr,99);return Ar?f=Ar:(l+=Y1(pr),f)}function ie(pr,Ar){let Pr=pr;if(u3(Pr,Ar)){for(l+=Y1(Pr);l<h&&$C(Pr=N(l),Ar);)l+=Y1(Pr);return m=s.substring(p,l),Pr===92&&(m+=Ie()),te()}}function ke(){if(f===32){if(P(l)===62)return P(l+1)===62?P(l+2)===61?(l+=3,f=73):(l+=2,f=50):P(l+1)===61?(l+=2,f=72):(l++,f=49);if(P(l)===61)return l++,f=34}return f}function Je(){return Mr.assert(f===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=p+1,f=64}function ut(pr){if(f===44||f===69){let Ar=p+1;l=Ar;let Pr=!1,kn=!1,ri=!1;for(;;){let di=q(l);if(di===-1||Qm(di)){d|=4;break}if(Pr)Pr=!1;else{if(di===47&&!ri)break;di===91?ri=!0:di===92?Pr=!0:di===93?ri=!1:!ri&&di===40&&q(l+1)===63&&q(l+2)===60&&q(l+3)!==61&&q(l+3)!==33&&(kn=!0)}l++}let Vi=l;if(d&4){l=Ar,Pr=!1;let di=0,Pi=!1,na=0;for(;l<Vi;){let K0=P(l);if(Pr)Pr=!1;else if(K0===92)Pr=!0;else if(K0===91)di++;else if(K0===93&&di)di--;else if(!di){if(K0===123)Pi=!0;else if(K0===125&&Pi)Pi=!1;else if(!Pi){if(K0===40)na++;else if(K0===41&&na)na--;else if(K0===41||K0===93||K0===125)break}}l++}for(;PK(q(l-1))||q(l-1)===59;)l--;$(Ot.Unterminated_regular_expression_literal,p,l-p)}else{l++;let di=0;for(;;){let Pi=E(l);if(Pi===-1||!$C(Pi,e))break;let na=Y1(Pi);if(pr){let K0=Qcr(Pi);K0===void 0?$(Ot.Unknown_regular_expression_flag,l,na):di&K0?$(Ot.Duplicate_regular_expression_flag,l,na):((di|K0)&96)===96?$(Ot.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,l,na):(di|=K0,gt(K0,na))}l+=na}pr&&be(Ar,Vi-Ar,()=>{ot(di,!0,kn)})}m=s.substring(p,l),f=14}return f}function ot(pr,Ar,Pr){var kn=!!(pr&64),ri=!!(pr&96),Vi=ri||!Ar,di=!1,Pi=0,na,K0,_i,Qu=[],Pa;function Qo(kr){for(;;){if(Qu.push(Pa),Pa=void 0,Ks(kr),Pa=Qu.pop(),q(l)!==124)return;l++}}function Ks(kr){let mn=!1;for(;;){let Ji=l,Un=q(l);switch(Un){case-1:return;case 94:case 36:l++,mn=!1;break;case 92:switch(l++,q(l)){case 98:case 66:l++,mn=!1;break;default:ji(),mn=!0;break}break;case 40:if(l++,q(l)===63)switch(l++,q(l)){case 61:case 33:l++,mn=!Vi;break;case 60:let Yn=l;switch(l++,q(l)){case 61:case 33:l++,mn=!1;break;default:Ki(!1),g0(62),e<5&&$(Ot.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,Yn,l-Yn),Pi++,mn=!0;break}break;default:let Ea=l,Aa=Qt(0);q(l)===45&&(l++,Qt(Aa),l===Ea+1&&$(Ot.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,Ea,l-Ea)),g0(58),mn=!0;break}else Pi++,mn=!0;Qo(!0),g0(41);break;case 123:l++;let nr=l;ue();let l0=m;if(!Vi&&!l0){mn=!0;break}if(q(l)===44){l++,ue();let Yn=m;if(l0)Yn&&Number.parseInt(l0)>Number.parseInt(Yn)&&(Vi||q(l)===125)&&$(Ot.Numbers_out_of_order_in_quantifier,nr,l-nr);else if(Yn||q(l)===125)$(Ot.Incomplete_quantifier_Digit_expected,nr,0);else{$(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Ji,1,String.fromCharCode(Un)),mn=!0;break}}else if(!l0){Vi&&$(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,Ji,1,String.fromCharCode(Un)),mn=!0;break}if(q(l)!==125)if(Vi)$(Ot._0_expected,l,0,"}"),l--;else{mn=!0;break}case 42:case 43:case 63:l++,q(l)===63&&l++,mn||$(Ot.There_is_nothing_available_for_repetition,Ji,l-Ji),mn=!1;break;case 46:l++,mn=!0;break;case 91:l++,kn?To():U0(),g0(93),mn=!0;break;case 41:if(kr)return;case 93:case 125:(Vi||Un===41)&&$(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l,1,String.fromCharCode(Un)),l++,mn=!0;break;case 47:case 124:return;default:Mn(),mn=!0;break}}}function Qt(kr){for(;;){let mn=E(l);if(mn===-1||!$C(mn,e))break;let Ji=Y1(mn),Un=Qcr(mn);Un===void 0?$(Ot.Unknown_regular_expression_flag,l,Ji):kr&Un?$(Ot.Duplicate_regular_expression_flag,l,Ji):Un&28?(kr|=Un,gt(Un,Ji)):$(Ot.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,l,Ji),l+=Ji}return kr}function ji(){switch(Mr.assertEqual(P(l-1),92),q(l)){case 107:l++,q(l)===60?(l++,Ki(!0),g0(62)):(Vi||Pr)&&$(Ot.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,l-2,2);break;case 113:if(kn){l++,$(Ot.q_is_only_available_inside_character_class,l-2,2);break}default:Mr.assert(Fn()||me()||oi(!0));break}}function me(){Mr.assertEqual(P(l-1),92);let kr=q(l);if(kr>=49&&kr<=57){let mn=l;return ue(),_i=Om(_i,{pos:mn,end:l,value:+m}),!0}return!1}function oi(kr){Mr.assertEqual(P(l-1),92);let mn=q(l);switch(mn){case-1:return $(Ot.Undetermined_character_escape,l-1,1),"\\";case 99:if(l++,mn=q(l),yQe(mn))return l++,String.fromCharCode(mn&31);if(Vi)$(Ot.c_must_be_followed_by_an_ASCII_letter,l-2,2);else if(kr)return l--,"\\";return String.fromCharCode(mn);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return l++,String.fromCharCode(mn);default:return l--,Fe(4|(Ar?8:0)|(ri?16:0)|(kr?32:0))}}function Ki(kr){Mr.assertEqual(P(l-1),60),p=l,ie(E(l),e),l===p?$(Ot.Expected_a_capturing_group_name):kr?K0=Om(K0,{pos:p,end:l,name:m}):Pa!=null&&Pa.has(m)||Qu.some((mn)=>mn==null?void 0:mn.has(m))?$(Ot.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,p,l-p):(Pa??(Pa=new Set),Pa.add(m),na??(na=new Set),na.add(m))}function vr(kr){return kr===93||kr===-1||l>=h}function U0(){for(Mr.assertEqual(P(l-1),91),q(l)===94&&l++;;){let kr=q(l);if(vr(kr))return;let mn=l,Ji=wt();if(q(l)===45){l++;let Un=q(l);if(vr(Un))return;!Ji&&Vi&&$(Ot.A_character_class_range_must_not_be_bounded_by_another_character_class,mn,l-1-mn);let nr=l,l0=wt();if(!l0&&Vi){$(Ot.A_character_class_range_must_not_be_bounded_by_another_character_class,nr,l-nr);continue}if(!Ji)continue;let Yn=eI(Ji,0),Ea=eI(l0,0);Ji.length===Y1(Yn)&&l0.length===Y1(Ea)&&Yn>Ea&&$(Ot.Range_out_of_order_in_character_class,mn,l-mn)}}}function To(){Mr.assertEqual(P(l-1),91);let kr=!1;q(l)===94&&(l++,kr=!0);let mn=!1,Ji=q(l);if(vr(Ji))return;let Un=l,nr;switch(s.slice(l,l+2)){case"--":case"&&":$(Ot.Expected_a_class_set_operand),di=!1;break;default:nr=Ve();break}switch(q(l)){case 45:if(q(l+1)===45){kr&&di&&$(Ot.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Un,l-Un),mn=di,W0(3),di=!kr&&mn;return}break;case 38:if(q(l+1)===38){W0(2),kr&&di&&$(Ot.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Un,l-Un),mn=di,di=!kr&&mn;return}else $(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l,1,String.fromCharCode(Ji));break;default:kr&&di&&$(Ot.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Un,l-Un),mn=di;break}for(;Ji=q(l),Ji!==-1;){switch(Ji){case 45:if(l++,Ji=q(l),vr(Ji)){di=!kr&&mn;return}if(Ji===45){l++,$(Ot.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,l-2,2),Un=l-2,nr=s.slice(Un,l);continue}else{nr||$(Ot.A_character_class_range_must_not_be_bounded_by_another_character_class,Un,l-1-Un);let l0=l,Yn=Ve();if(kr&&di&&$(Ot.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,l0,l-l0),mn||(mn=di),!Yn){$(Ot.A_character_class_range_must_not_be_bounded_by_another_character_class,l0,l-l0);break}if(!nr)break;let Ea=eI(nr,0),Aa=eI(Yn,0);nr.length===Y1(Ea)&&Yn.length===Y1(Aa)&&Ea>Aa&&$(Ot.Range_out_of_order_in_character_class,Un,l-Un)}break;case 38:Un=l,l++,q(l)===38?(l++,$(Ot.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,l-2,2),q(l)===38&&($(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l,1,String.fromCharCode(Ji)),l++)):$(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l-1,1,String.fromCharCode(Ji)),nr=s.slice(Un,l);continue}if(vr(q(l)))break;switch(Un=l,s.slice(l,l+2)){case"--":case"&&":$(Ot.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,l,2),l+=2,nr=s.slice(Un,l);break;default:nr=Ve();break}}di=!kr&&mn}function W0(kr){let mn=di;for(;;){let Ji=q(l);if(vr(Ji))break;switch(Ji){case 45:l++,q(l)===45?(l++,kr!==3&&$(Ot.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,l-2,2)):$(Ot.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,l-1,1);break;case 38:l++,q(l)===38?(l++,kr!==2&&$(Ot.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,l-2,2),q(l)===38&&($(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l,1,String.fromCharCode(Ji)),l++)):$(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l-1,1,String.fromCharCode(Ji));break;default:switch(kr){case 3:$(Ot._0_expected,l,0,"--");break;case 2:$(Ot._0_expected,l,0,"&&");break;default:break}break}if(Ji=q(l),vr(Ji)){$(Ot.Expected_a_class_set_operand);break}Ve(),mn&&(mn=di)}di=mn}function Ve(){switch(di=!1,q(l)){case-1:return"";case 91:return l++,To(),g0(93),"";case 92:if(l++,Fn())return"";if(q(l)===113)return l++,q(l)===123?(l++,Jr(),g0(125),""):($(Ot.q_must_be_followed_by_string_alternatives_enclosed_in_braces,l-2,2),"q");l--;default:return Pn()}}function Jr(){Mr.assertEqual(P(l-1),123);let kr=0;for(;;)switch(q(l)){case-1:return;case 125:kr!==1&&(di=!0);return;case 124:kr!==1&&(di=!0),l++,a=l,kr=0;break;default:Pn(),kr++;break}}function Pn(){let kr=q(l);if(kr===-1)return"";if(kr===92){l++;let mn=q(l);switch(mn){case 98:return l++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return l++,String.fromCharCode(mn);default:return oi(!1)}}else if(kr===q(l+1))switch(kr){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return $(Ot.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,l,2),l+=2,s.substring(l-2,l)}switch(kr){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return $(Ot.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,l,1,String.fromCharCode(kr)),l++,String.fromCharCode(kr)}return Mn()}function wt(){if(q(l)===92){l++;let kr=q(l);switch(kr){case 98:return l++,"\b";case 45:return l++,String.fromCharCode(kr);default:return Fn()?"":oi(!1)}}else return Mn()}function Fn(){Mr.assertEqual(P(l-1),92);let kr=!1,mn=l-1,Ji=q(l);switch(Ji){case 100:case 68:case 115:case 83:case 119:case 87:return l++,!0;case 80:kr=!0;case 112:if(l++,q(l)===123){l++;let Un=l,nr=gn();if(q(l)===61){let l0=Ycr.get(nr);if(l===Un)$(Ot.Expected_a_Unicode_property_name);else if(l0===void 0){$(Ot.Unknown_Unicode_property_name,Un,l-Un);let Aa=dte(nr,Ycr.keys(),_l);Aa&&$(Ot.Did_you_mean_0,Un,l-Un,Aa)}l++;let Yn=l,Ea=gn();if(l===Yn)$(Ot.Expected_a_Unicode_property_value);else if(l0!==void 0&&!FK[l0].has(Ea)){$(Ot.Unknown_Unicode_property_value,Yn,l-Yn);let Aa=dte(Ea,FK[l0],_l);Aa&&$(Ot.Did_you_mean_0,Yn,l-Yn,Aa)}}else if(l===Un)$(Ot.Expected_a_Unicode_property_name_or_value);else if(Gcr.has(nr))kn?kr?$(Ot.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,Un,l-Un):di=!0:$(Ot.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,Un,l-Un);else if(!FK.General_Category.has(nr)&&!Hcr.has(nr)){$(Ot.Unknown_Unicode_property_name_or_value,Un,l-Un);let l0=dte(nr,[...FK.General_Category,...Hcr,...Gcr],_l);l0&&$(Ot.Did_you_mean_0,Un,l-Un,l0)}g0(125),ri||$(Ot.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,mn,l-mn)}else if(Vi)$(Ot._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,l-2,2,String.fromCharCode(Ji));else return l--,!1;return!0}return!1}function gn(){let kr="";for(;;){let mn=q(l);if(mn===-1||!N2r(mn))break;kr+=String.fromCharCode(mn),l++}return kr}function Mn(){let kr=ri?Y1(E(l)):1;return l+=kr,kr>0?s.substring(l-kr,l):""}function g0(kr){q(l)===kr?l++:$(Ot._0_expected,l,0,String.fromCharCode(kr))}Qo(!1),ky(K0,(kr)=>{if(!(na!=null&&na.has(kr.name))&&($(Ot.There_is_no_capturing_group_named_0_in_this_regular_expression,kr.pos,kr.end-kr.pos,kr.name),na)){let mn=dte(kr.name,na,_l);mn&&$(Ot.Did_you_mean_0,kr.pos,kr.end-kr.pos,mn)}}),ky(_i,(kr)=>{kr.value>Pi&&(Pi?$(Ot.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,kr.pos,kr.end-kr.pos,Pi):$(Ot.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,kr.pos,kr.end-kr.pos))})}function gt(pr,Ar){let Pr=_Oi.get(pr);Pr&&e<Pr&&$(Ot.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,l,Ar,JWi(Pr))}function Bt(pr,Ar,Pr,kn){let ri=pt(Ar.trimStart(),Pr);return ri===void 0?pr:Om(pr,{range:{pos:kn,end:l},type:ri})}function pt(pr,Ar){let Pr=Ar.exec(pr);if(Pr)switch(Pr[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function St(pr){return l=p,f=ge(!pr)}function Tt(){return l=p,f=ge(!0)}function Mt(pr=!0){return l=p=_,f=Tr(pr)}function wr(){return f===48?(l=p+1,f=30):f}function tr(){return f===81?(l=p+1,f=63):f}function Vr(){return Mr.assert(f===61,"'reScanQuestionToken' should only be called on a '??'"),l=p+1,f=58}function Tr(pr=!0){if(_=p=l,l>=h)return f=1;let Ar=P(l);if(Ar===60)return P(l+1)===47?(l+=2,f=31):(l++,f=30);if(Ar===123)return l++,f=19;let Pr=0;for(;l<h&&(Ar=P(l),Ar!==123);){if(Ar===60){if(RJ(s,l))return l=wK(s,l,$),f=7;break}if(Ar===62&&$(Ot.Unexpected_token_Did_you_mean_or_gt,l,1),Ar===125&&$(Ot.Unexpected_token_Did_you_mean_or_rbrace,l,1),Qm(Ar)&&Pr===0)Pr=-1;else{if(!pr&&Qm(Ar)&&Pr>0)break;PK(Ar)||(Pr=l)}l++}return m=s.substring(_,l),Pr===-1?13:12}function Yr(){if(Bl(f)){for(;l<h;){if(P(l)===45){m+="-",l++;continue}let pr=l;if(m+=Ie(),l===pr)break}return te()}return f}function Cn(){switch(_=l,P(l)){case 34:case 39:return m=ee(!0),f=11;default:return Ne()}}function Te(){return l=p=_,Cn()}function De(pr){if(_=p=l,d=0,l>=h)return f=1;for(let Ar=P(l);l<h&&!Qm(Ar)&&Ar!==96;Ar=N(++l))if(!pr){if(Ar===123)break;if(Ar===64&&l-1>=0&>e(P(l-1))&&!(l+1<h&&PK(P(l+1))))break}return l===p?fe():(m=s.substring(p,l),f=82)}function fe(){if(_=p=l,d=0,l>=h)return f=1;let pr=N(l);switch(l+=Y1(pr),pr){case 9:case 11:case 12:case 32:for(;l<h&>e(P(l));)l++;return f=5;case 64:return f=60;case 13:P(l)===10&&l++;case 10:return d|=1,f=4;case 42:return f=42;case 123:return f=19;case 125:return f=20;case 91:return f=23;case 93:return f=24;case 40:return f=21;case 41:return f=22;case 60:return f=30;case 62:return f=32;case 61:return f=64;case 44:return f=28;case 46:return f=25;case 96:return f=62;case 35:return f=63;case 92:l--;let Ar=$e();if(Ar>=0&&u3(Ar,e))return m=He(!0)+Ie(),f=te();let Pr=xe();return Pr>=0&&u3(Pr,e)?(l+=6,d|=1024,m=String.fromCharCode(Pr)+Ie(),f=te()):(l++,f=0)}if(u3(pr,e)){let Ar=pr;for(;l<h&&$C(Ar=N(l),e)||Ar===45;)l+=Y1(Ar);return m=s.substring(p,l),Ar===92&&(m+=Ie()),f=te()}else return f=0}function oe(pr,Ar){let Pr=l,kn=_,ri=p,Vi=f,di=m,Pi=d,na=pr();return(!na||Ar)&&(l=Pr,_=kn,p=ri,f=Vi,m=di,d=Pi),na}function be(pr,Ar,Pr){let kn=h,ri=l,Vi=_,di=p,Pi=f,na=m,K0=d,_i=x;mr(s,pr,Ar);let Qu=Pr();return h=kn,l=ri,_=Vi,p=di,f=Pi,m=na,d=K0,x=_i,Qu}function Qe(pr){return oe(pr,!0)}function ct(pr){return oe(pr,!1)}function st(){return s}function Lt(){x=void 0}function mr(pr,Ar,Pr){s=pr||"",h=Pr===void 0?s.length:Ar+Pr,r0(Ar||0)}function Dr(pr){i=pr}function en(pr){e=pr}function ki(pr){r=pr}function Jn(pr){A=pr}function c0(pr){F=pr}function r0(pr){Mr.assert(pr>=0),l=pr,_=pr,p=pr,f=0,m=void 0,d=0}function e0(pr){T+=pr?1:-1}}function eI(e,t){return e.codePointAt(t)}function Y1(e){return e>=65536?2:e===-1?0:1}function SOi(e){if(Mr.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function Wcr(e){return POi(e)}function uA(e){return e.start+e.length}function NOi(e){return e.length===0}function vQe(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function BOi(e,t){return vQe(e,t-e)}function lte(e){return vQe(e.span.start,e.newLength)}function qOi(e){return NOi(e.span)&&e.newLength===0}function I2r(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function M2r(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function Qye(e){return(e.flags&16)===0}function $Oi(e,t){if(e===void 0||Qye(e))return e;for(e=e.original;e;){if(Qye(e))return!t||t(e)?e:void 0;e=e.original}}function AK(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Tte(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Ym(e){return Tte(e.escapedText)}function z2r(e){let t=F2r(e.escapedText);return t?MZi(t,zP):void 0}function XOe(e){return e.valueDeclaration&&uQi(e.valueDeclaration)?Ym(e.valueDeclaration.name):Tte(e.escapedName)}function V2r(e){let t=e.parent.parent;if(t){if(t1r(t))return Pye(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Pye(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let n=r.argumentExpression;if(bo(n))return n}break;case 217:return Pye(t.expression);case 256:{if(t1r(t.statement)||xQi(t.statement))return Pye(t.statement);break}}}}function Pye(e){let t=L2r(e);return t&&bo(t)?t:void 0}function JOi(e){return e.name||V2r(e)}function IOi(e){return!!e.name}function DQe(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(CQe(r)){case 1:case 4:case 5:case 3:return EQe(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 346:return JOi(e);case 340:return V2r(e);case 277:{let{expression:r}=e;return bo(r)?r:void 0}case 212:let t=e;if(nhr(t))return t.argumentExpression}return e.name}function L2r(e){if(e!==void 0)return DQe(e)||(Ahr(e)||bhr(e)||YOe(e)?MOi(e):void 0)}function MOi(e){if(e.parent){if(tHi(e.parent)||MYi(e.parent))return e.parent.name;if(JK(e.parent)&&e===e.parent.right){if(bo(e.parent.left))return e.parent.left;if(lhr(e.parent.left))return EQe(e.parent.left)}else if(Chr(e.parent)&&bo(e.parent.name))return e.parent.name}else return}function zOi(e){if(pWi(e))return MC(e.modifiers,qQe)}function VOi(e){if(Nte(e,98303))return MC(e.modifiers,lQi)}function X2r(e,t){if(e.name)if(bo(e.name)){let r=e.name.escapedText;return Cte(e.parent,t).filter((n)=>y1r(n)&&bo(n.name)&&n.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);Mr.assert(r>-1,"Parameters should always be in their parents' parameter list");let n=Cte(e.parent,t).filter(y1r);if(r<n.length)return[n[r]]}return t_}function LOi(e){return X2r(e,!1)}function XOi(e){return X2r(e,!0)}function j2r(e,t){let r=e.name.escapedText;return Cte(e.parent,t).filter((n)=>dHi(n)&&n.typeParameters.some((i)=>i.name.escapedText===r))}function jOi(e){return j2r(e,!1)}function KOi(e){return j2r(e,!0)}function UOi(e){return KP(e,oHi)}function ZOi(e){return eQi(e,yHi)}function OOi(e){return KP(e,sHi,!0)}function QOi(e){return KP(e,lHi,!0)}function WOi(e){return KP(e,_Hi,!0)}function YOi(e){return KP(e,cHi,!0)}function HOi(e){return KP(e,hHi,!0)}function GOi(e){return KP(e,fHi,!0)}function ROi(e){let t=KP(e,IQe);if(t&&t.typeExpression&&t.typeExpression.type)return t}function Cte(e,t){var r;if(!kQe(e))return t_;let n=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(n===void 0||t){let i=HQi(e,t);Mr.assert(i.length<2||i[0]!==i[1]),n=l2r(i,(a)=>$hr(a)?a.tags:a),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=n)}return n}function K2r(e){return Cte(e,!1)}function KP(e,t,r){return o2r(Cte(e,r),t)}function eQi(e,t){return K2r(e).filter(t)}function jOe(e){return e.kind===80||e.kind===81}function tQi(e){return UP(e)&&!!(e.flags&64)}function rQi(e){return Bte(e)&&!!(e.flags&64)}function Rcr(e){return whr(e)&&!!(e.flags&64)}function wQe(e){return MQe(e,8)}function nQi(e){return Lye(e)&&!!(e.flags&64)}function AQe(e){return e>=166}function U2r(e){return e>=0&&e<=165}function iQi(e){return U2r(e.kind)}function VP(e){return _A(e,"pos")&&_A(e,"end")}function aQi(e){return 9<=e&&e<=15}function e1r(e){return 15<=e&&e<=18}function SK(e){var t;return bo(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function Z2r(e){var t;return lI(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function uQi(e){return(Gye(e)||hQi(e))&&lI(e.name)}function JC(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function oQi(e){return!!(ohr(e)&31)}function sQi(e){return oQi(e)||e===126||e===164||e===129}function lQi(e){return JC(e.kind)}function O2r(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function Q2r(e){return!!e&&cQi(e.kind)}function _Qi(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function cQi(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return _Qi(e)}}function NK(e){return e&&(e.kind===263||e.kind===231)}function hQi(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function pQi(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function fQi(e){return bWi(e.kind)}function mQi(e){if(e){let t=e.kind;return t===207||t===206}return!1}function dQi(e){let t=e.kind;return t===209||t===210}function yQi(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function BK(e){return W2r(wQe(e).kind)}function W2r(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function gQi(e){return Y2r(wQe(e).kind)}function Y2r(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return W2r(e)}}function xQi(e){return vQi(wQe(e).kind)}function vQi(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return Y2r(e)}}function DQi(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function H2r(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function G2r(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function t1r(e){return e.kind===168?e.parent&&e.parent.kind!==345||_I(e):DQi(e.kind)}function wQi(e){let t=e.kind;return G2r(t)||H2r(t)||AQi(e)}function AQi(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!MQi(e)}function bQi(e){let t=e.kind;return G2r(t)||H2r(t)||t===241}function R2r(e){return e.kind>=309&&e.kind<=351}function TQi(e){return e.kind===320||e.kind===319||e.kind===321||kQi(e)||CQi(e)||uHi(e)||Jhr(e)}function CQi(e){return e.kind>=327&&e.kind<=351}function Nye(e){return e.kind===178}function Bye(e){return e.kind===177}function iI(e){if(!kQe(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function EQi(e){return!!e.initializer}function bQe(e){return e.kind===11||e.kind===15}function kQi(e){return e.kind===324||e.kind===325||e.kind===326}function r1r(e){return(e.flags&33554432)!==0}function FQi(){var e="";let t=(r)=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,n)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&PK(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:$K,decreaseIndent:$K,clear:()=>e=""}}function SQi(e,t){let r=e.entries();for(let[n,i]of r){let a=t(i,n);if(a)return a}}function PQi(e){return e.end-e.pos}function ehr(e){return NQi(e),(e.flags&1048576)!==0}function NQi(e){e.flags&2097152||(((e.flags&262144)!==0||Gh(e,ehr))&&(e.flags|=1048576),e.flags|=2097152)}function XP(e){for(;e&&e.kind!==307;)e=e.parent;return e}function aI(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function KOe(e){return!aI(e)}function Wye(e,t,r){if(aI(e))return e.pos;if(R2r(e)||e.kind===12)return sA((t??XP(e)).text,e.pos,!1,!0);if(r&&iI(e))return Wye(e.jsDoc[0],t);if(e.kind===352){t??(t=XP(e));let n=_Qe(Ihr(e,t));if(n)return Wye(n,t,r)}return sA((t??XP(e)).text,e.pos,!1,!1,zQi(e))}function n1r(e,t,r=!1){return xte(e.text,t,r)}function BQi(e){return!!M2r(e,nHi)}function xte(e,t,r=!1){if(aI(t))return"";let n=e.substring(r?t.pos:sA(e,t.pos),t.end);return BQi(t)&&(n=n.split(/\r\n|\n|\r/).map((i)=>i.replace(/^\s*\*/,"").trimStart()).join(`
|
|
658
658
|
`)),n}function qK(e){let t=e.emitNode;return t&&t.flags||0}function qQi(e,t,r){Mr.assertGreaterThanOrEqual(t,0),Mr.assertGreaterThanOrEqual(r,0),Mr.assertLessThanOrEqual(t,e.length),Mr.assertLessThanOrEqual(t+r,e.length)}function Vye(e){return e.kind===244&&e.expression.kind===11}function TQe(e){return!!(qK(e)&2097152)}function i1r(e){return TQe(e)&&Ehr(e)}function $Qi(e){return bo(e.name)&&!e.initializer}function a1r(e){return TQe(e)&&a6e(e)&&sQe(e.declarationList.declarations,$Qi)}function JQi(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?lQe(kOi(t,e.pos),LOe(t,e.pos)):LOe(t,e.pos);return MC(r,(n)=>n.end<=e.end&&t.charCodeAt(n.pos+1)===42&&t.charCodeAt(n.pos+2)===42&&t.charCodeAt(n.pos+3)!==47)}function IQi(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function MQi(e){return e&&e.kind===241&&Q2r(e.parent)}function u1r(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function _I(e){return!!e&&!!(e.flags&524288)}function zQi(e){return!!e&&!!(e.flags&16777216)}function VQi(e){for(;Yye(e,!0);)e=e.right;return e}function LQi(e){return bo(e)&&e.escapedText==="exports"}function XQi(e){return bo(e)&&e.escapedText==="module"}function thr(e){return(UP(e)||rhr(e))&&XQi(e.expression)&&kte(e)==="exports"}function CQe(e){let t=KQi(e);return t===5||_I(e)?t:0}function jQi(e){return mte(e.arguments)===3&&UP(e.expression)&&bo(e.expression.expression)&&Ym(e.expression.expression)==="Object"&&Ym(e.expression.name)==="defineProperty"&&n6e(e.arguments[1])&&Ete(e.arguments[0],!0)}function rhr(e){return Bte(e)&&n6e(e.argumentExpression)}function Pte(e,t){return UP(e)&&(!t&&e.expression.kind===110||bo(e.name)&&Ete(e.expression,!0))||nhr(e,t)}function nhr(e,t){return rhr(e)&&(!t&&e.expression.kind===110||PQe(e.expression)||Pte(e.expression,!0))}function Ete(e,t){return PQe(e)||Pte(e,t)}function KQi(e){if(whr(e)){if(!jQi(e))return 0;let t=e.arguments[0];return LQi(t)||thr(t)?8:Pte(t)&&kte(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!lhr(e.left)||UQi(VQi(e))?0:Ete(e.left.expression,!0)&&kte(e.left)==="prototype"&&Dhr(OQi(e))?6:ZQi(e.left)}function UQi(e){return LYi(e)&&IK(e.expression)&&e.expression.text==="0"}function EQe(e){if(UP(e))return e.name;let t=FQe(e.argumentExpression);return IK(t)||bQe(t)?t:e}function kte(e){let t=EQe(e);if(t){if(bo(t))return t.escapedText;if(bQe(t)||IK(t))return AK(t.text)}}function ZQi(e){if(e.expression.kind===110)return 4;if(thr(e))return 2;if(Ete(e.expression,!0)){if(wWi(e.expression))return 3;let t=e;for(;!bo(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&kte(t)==="exports")&&Pte(e))return 1;if(Ete(e,!0)||Bte(e)&&oWi(e))return 5}return 0}function OQi(e){for(;JK(e.right);)e=e.right;return e.right}function QQi(e){return Thr(e)&&JK(e.expression)&&CQe(e.expression)!==0&&JK(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function WQi(e){switch(e.kind){case 243:let t=UOe(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function UOe(e){return a6e(e)?_Qe(e.declarationList.declarations):void 0}function YQi(e){return Ste(e)&&e.body&&e.body.kind===267?e.body:void 0}function kQe(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function HQi(e,t){let r;IQi(e)&&EQi(e)&&iI(e.initializer)&&(r=Wm(r,o1r(e,e.initializer.jsDoc)));let n=e;for(;n&&n.parent;){if(iI(n)&&(r=Wm(r,o1r(e,n.jsDoc))),n.kind===169){r=Wm(r,(t?XOi:LOi)(n));break}if(n.kind===168){r=Wm(r,(t?KOi:jOi)(n));break}n=RQi(n)}return r||t_}function o1r(e,t){let r=FZi(t);return l2r(t,(n)=>{if(n===r){let i=MC(n.tags,(a)=>GQi(e,a));return n.tags===i?[n]:i}else return MC(n.tags,pHi)})}function GQi(e,t){return!(IQe(t)||gHi(t))||!t.parent||!$hr(t.parent)||!$Qe(t.parent.parent)||t.parent.parent===e}function RQi(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||YQi(t)||Yye(e))return t;if(t.parent&&(UOe(t.parent)===e||Yye(t)))return t.parent;if(t.parent&&t.parent.parent&&(UOe(t.parent.parent)||WQi(t.parent.parent)===e||QQi(t.parent.parent)))return t.parent.parent}function FQe(e,t){return MQe(e,t?-2147483647:1)}function eWi(e){let t=tWi(e);if(t&&_I(e)){let r=UOi(e);if(r)return r.class}return t}function tWi(e){let t=SQe(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function rWi(e){if(_I(e))return ZOi(e).map((t)=>t.class);{let t=SQe(e.heritageClauses,119);return t==null?void 0:t.types}}function nWi(e){return JQe(e)?iWi(e)||t_:NK(e)&&lQe(MOe(eWi(e)),rWi(e))||t_}function iWi(e){let t=SQe(e.heritageClauses,96);return t?t.types:void 0}function SQe(e,t){if(e){for(let r of e)if(r.token===t)return r}}function zP(e){return 83<=e&&e<=165}function aWi(e){return 19<=e&&e<=79}function COe(e){return zP(e)||aWi(e)}function n6e(e){return bQe(e)||IK(e)}function uWi(e){return XYi(e)&&(e.operator===40||e.operator===41)&&IK(e.operand)}function oWi(e){if(!(e.kind===167||e.kind===212))return!1;let t=Bte(e)?FQe(e.argumentExpression):e.expression;return!n6e(t)&&!uWi(t)}function sWi(e){return jOe(e)?Ym(e):qhr(e)?HWi(e):e.text}function bK(e){return Fte(e.pos)||Fte(e.end)}function EOe(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function kOe(e){return!!((e.templateFlags||0)&2048)}function lWi(e){return e&&!!(_Yi(e)?kOe(e):kOe(e.head)||eh(e.templateSpans,(t)=>kOe(t.literal)))}function _Wi(e){return!!e&&e.kind===80&&cWi(e)}function cWi(e){return e.escapedText==="this"}function Nte(e,t){return!!fWi(e,t)}function hWi(e){return Nte(e,256)}function pWi(e){return Nte(e,32768)}function fWi(e,t){return dWi(e)&t}function mWi(e,t,r){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=uhr(e)|536870912),r||t&&_I(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=ihr(e)|268435456),ahr(e.modifierFlagsCache)):yWi(e.modifierFlagsCache))}function dWi(e){return mWi(e,!1)}function ihr(e){let t=0;return e.parent&&!Hye(e)&&(_I(e)&&(OOi(e)&&(t|=8388608),QOi(e)&&(t|=16777216),WOi(e)&&(t|=33554432),YOi(e)&&(t|=67108864),HOi(e)&&(t|=134217728)),GOi(e)&&(t|=65536)),t}function yWi(e){return e&65535}function ahr(e){return e&131071|(e&260046848)>>>23}function gWi(e){return ahr(ihr(e))}function xWi(e){return uhr(e)|gWi(e)}function uhr(e){let t=zQe(e)?Cy(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Cy(e){let t=0;if(e)for(let r of e)t|=ohr(r.kind);return t}function ohr(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function vWi(e){return e===76||e===77||e===78}function shr(e){return e>=64&&e<=79}function Yye(e,t){return JK(e)&&(t?e.operatorToken.kind===64:shr(e.operatorToken.kind))&&BK(e.left)}function PQe(e){return e.kind===80||DWi(e)}function DWi(e){return UP(e)&&bo(e.name)&&PQe(e.expression)}function wWi(e){return Pte(e)&&kte(e)==="prototype"}function FOe(e){return e.flags&3899393?e.objectFlags:0}function AWi(e){let t;return Gh(e,(r)=>{KOe(r)&&(t=r)},(r)=>{for(let n=r.length-1;n>=0;n--)if(KOe(r[n])){t=r[n];break}}),t}function bWi(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function lhr(e){return e.kind===211||e.kind===212}function TWi(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function CWi(e,t){this.flags=t,(Mr.isDebugging||Mye)&&(this.checker=e)}function EWi(e,t){this.flags=t,Mr.isDebugging&&(this.checker=e)}function SOe(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function kWi(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function FWi(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function SWi(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||((n)=>n)}function NWi(e){Object.assign(e_,e),ky(PWi,(t)=>t(e_))}function BWi(e,t){return e.replace(/\{(\d+)\}/g,(r,n)=>""+Mr.checkDefined(t[+n]))}function qWi(e){return s1r&&s1r[e.key]||e.message}function xK(e,t,r,n,i,...a){r+n>t.length&&(n=t.length-r),qQi(t,r,n);let u=qWi(i);return eh(a)&&(u=BWi(u,a)),{file:void 0,start:r,length:n,messageText:u,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function $Wi(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function _hr(e,t){let r=t.fileName||"",n=t.text.length;Mr.assertEqual(e.fileName,r),Mr.assertLessThanOrEqual(e.start,n),Mr.assertLessThanOrEqual(e.start+e.length,n);let i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(let a of e.relatedInformation)$Wi(a)&&a.fileName===r?(Mr.assertLessThanOrEqual(a.start,n),Mr.assertLessThanOrEqual(a.start+a.length,n),i.relatedInformation.push(_hr(a,t))):i.relatedInformation.push(a)}return i}function WJ(e,t){let r=[];for(let n of e)r.push(_hr(n,t));return r}function l1r(e){return e===4||e===2||e===1||e===6?1:0}function _1r(e){return e>=3&&e<=99||e===100}function qC(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function JWi(e){return SQi(targetOptionDeclaration.type,(t,r)=>t===e?r:void 0)}function hhr(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function VWi(e,t){return t||LWi(e)||3}function LWi(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function Fte(e){return!(e>=0)}function qye(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),Mr.assert(e.relatedInformation!==t_,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function UWi(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let h=e.length-1,_=0;for(;e.charCodeAt(_)===48;)_++;return e.slice(_,h)||"0"}let r=2,n=e.length-1,i=(n-r)*t,a=new Uint16Array((i>>>4)+(i&15?1:0));for(let h=n-1,_=0;h>=r;h--,_+=t){let p=_>>>4,f=e.charCodeAt(h),m=(f<=57?f-48:10+f-(f<=70?65:97))<<(_&15);a[p]|=m;let d=m>>>16;d&&(a[p+1]|=d)}let u="",s=a.length-1,l=!0;for(;l;){let h=0;l=!1;for(let _=s;_>=0;_--){let p=h<<16|a[_],f=p/10|0;a[_]=f,h=p-f*10,f&&!l&&(s=_,l=!0)}u=h+u}return u}function ZWi({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function ZOe(e,t){return e.pos=t,e}function OWi(e,t){return e.end=t,e}function jP(e,t,r){return OWi(ZOe(e,t),r)}function c1r(e,t,r){return jP(e,t,t+r)}function NQe(e,t){return e&&t&&(e.parent=t),e}function QWi(e,t){if(!e)return e;return V1r(e,R2r(e)?r:i),e;function r(a,u){if(t&&a.parent===u)return"skip";NQe(a,u)}function n(a){if(iI(a))for(let u of a.jsDoc)r(u,a),V1r(u,r)}function i(a,u){return r(a,u)||n(a)}}function WWi(e){return!!(e.flags&262144&&e.isThisType)}function YWi(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function HWi(e){return`${Ym(e.namespace)}:${Ym(e.name)}`}function RWi(){let e,t,r,n,i;return{createBaseSourceFileNode:a,createBaseIdentifierNode:u,createBasePrivateIdentifierNode:s,createBaseTokenNode:l,createBaseNode:h};function a(_){return new(i||(i=e_.getSourceFileConstructor()))(_,-1,-1)}function u(_){return new(r||(r=e_.getIdentifierConstructor()))(_,-1,-1)}function s(_){return new(n||(n=e_.getPrivateIdentifierConstructor()))(_,-1,-1)}function l(_){return new(t||(t=e_.getTokenConstructor()))(_,-1,-1)}function h(_){return new(e||(e=e_.getNodeConstructor()))(_,-1,-1)}}function BQe(e,t){let r=e&8?_l:uYi,n=Xcr(()=>e&1?eYi:createParenthesizerRules(A)),i=Xcr(()=>e&2?nullNodeConverters:createNodeConverters(A)),a=S4((D)=>(J,j)=>re(J,D,j)),u=S4((D)=>(J)=>k(D,J)),s=S4((D)=>(J)=>B(J,D)),l=S4((D)=>()=>u_(D)),h=S4((D)=>(J)=>v1(D,J)),_=S4((D)=>(J,j)=>Oa(D,J,j)),p=S4((D)=>(J,j)=>C_(D,J,j)),f=S4((D)=>(J,j)=>H0(D,J,j)),m=S4((D)=>(J,j)=>hE(D,J,j)),d=S4((D)=>(J,j,ae)=>yN(D,J,j,ae)),x=S4((D)=>(J,j,ae)=>gN(D,J,j,ae)),T=S4((D)=>(J,j,ae,je)=>xN(D,J,j,ae,je)),A={get parenthesizer(){return n()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:F,createNumericLiteral:P,createBigIntLiteral:q,createStringLiteral:M,createStringLiteralFromNode:O,createRegularExpressionLiteral:K,createLiteralLikeNode:ue,createIdentifier:Z,createTempVariable:ee,createLoopVariable:ge,createUniqueName:Fe,getGeneratedNameForNode:He,createPrivateIdentifier:$e,createUniquePrivateName:te,getGeneratedPrivateNameForNode:de,createToken:Ne,createSuper:Ce,createThis:pe,createNull:ie,createTrue:ke,createFalse:Je,createModifier:ut,createModifiersFromModifierFlags:ot,createQualifiedName:gt,updateQualifiedName:Bt,createComputedPropertyName:pt,updateComputedPropertyName:St,createTypeParameterDeclaration:Tt,updateTypeParameterDeclaration:Mt,createParameterDeclaration:wr,updateParameterDeclaration:tr,createDecorator:Vr,updateDecorator:Tr,createPropertySignature:Yr,updatePropertySignature:Cn,createPropertyDeclaration:De,updatePropertyDeclaration:fe,createMethodSignature:oe,updateMethodSignature:be,createMethodDeclaration:Qe,updateMethodDeclaration:ct,createConstructorDeclaration:en,updateConstructorDeclaration:ki,createGetAccessorDeclaration:c0,updateGetAccessorDeclaration:r0,createSetAccessorDeclaration:pr,updateSetAccessorDeclaration:Ar,createCallSignature:kn,updateCallSignature:ri,createConstructSignature:Vi,updateConstructSignature:di,createIndexSignature:Pi,updateIndexSignature:na,createClassStaticBlockDeclaration:Lt,updateClassStaticBlockDeclaration:mr,createTemplateLiteralTypeSpan:K0,updateTemplateLiteralTypeSpan:_i,createKeywordTypeNode:Qu,createTypePredicateNode:Pa,updateTypePredicateNode:Qo,createTypeReferenceNode:Ks,updateTypeReferenceNode:Qt,createFunctionTypeNode:ji,updateFunctionTypeNode:me,createConstructorTypeNode:Ki,updateConstructorTypeNode:To,createTypeQueryNode:Jr,updateTypeQueryNode:Pn,createTypeLiteralNode:wt,updateTypeLiteralNode:Fn,createArrayTypeNode:gn,updateArrayTypeNode:Mn,createTupleTypeNode:g0,updateTupleTypeNode:kr,createNamedTupleMember:mn,updateNamedTupleMember:Ji,createOptionalTypeNode:Un,updateOptionalTypeNode:nr,createRestTypeNode:l0,updateRestTypeNode:Yn,createUnionTypeNode:hl,updateUnionTypeNode:vs,createIntersectionTypeNode:Ds,updateIntersectionTypeNode:d0,createConditionalTypeNode:B0,updateConditionalTypeNode:ep,createInferTypeNode:pl,updateInferTypeNode:E7,createImportTypeNode:Hs,updateImportTypeNode:H1,createParenthesizedType:ro,updateParenthesizedType:Jo,createThisTypeNode:Zt,createTypeOperatorNode:ws,updateTypeOperatorNode:fl,createIndexedAccessTypeNode:Q_,updateIndexedAccessTypeNode:Ii,createMappedTypeNode:xu,updateMappedTypeNode:Vu,createLiteralTypeNode:tp,updateLiteralTypeNode:i1,createTemplateLiteralType:to,updateTemplateLiteralType:O_,createObjectBindingPattern:nf,updateObjectBindingPattern:w_,createArrayBindingPattern:Gs,updateArrayBindingPattern:W_,createBindingElement:Pc,updateBindingElement:rp,createArrayLiteralExpression:Py,updateArrayLiteralExpression:a1,createObjectLiteralExpression:np,updateObjectLiteralExpression:Ny,createPropertyAccessExpression:e&4?(D,J)=>setEmitFlags(Nc(D,J),262144):Nc,updatePropertyAccessExpression:o0,createPropertyAccessChain:e&4?(D,J,j)=>setEmitFlags(u1(D,J,j),262144):u1,updatePropertyAccessChain:a_,createElementAccessExpression:ih,updateElementAccessExpression:By,createElementAccessChain:Jl,updateElementAccessChain:o1,createCallExpression:ah,updateCallExpression:s1,createCallChain:k7,updateCallChain:F7,createNewExpression:ml,updateNewExpression:S7,createTaggedTemplateExpression:af,updateTaggedTemplateExpression:ad,createTypeAssertion:qy,updateTypeAssertion:Y_,createParenthesizedExpression:A_,updateParenthesizedExpression:V4,createFunctionExpression:P7,updateFunctionExpression:G1,createArrowFunction:ip,updateArrowFunction:$c,createDeleteExpression:l1,updateDeleteExpression:_1,createTypeOfExpression:N7,updateTypeOfExpression:b_,createVoidExpression:Il,updateVoidExpression:Ml,createAwaitExpression:ud,updateAwaitExpression:R1,createPrefixUnaryExpression:k,updatePrefixUnaryExpression:g,createPostfixUnaryExpression:B,updatePostfixUnaryExpression:V,createBinaryExpression:re,updateBinaryExpression:et,createConditionalExpression:xt,updateConditionalExpression:Vt,createTemplateExpression:kt,updateTemplateExpression:an,createTemplateHead:Za,createTemplateMiddle:Xa,createTemplateTail:mo,createNoSubstitutionTemplateLiteral:c1,createTemplateLiteralLikeNode:Nu,createYieldExpression:Rs,updateYieldExpression:$y,createSpreadElement:e2,updateSpreadElement:gA,createClassExpression:Jy,updateClassExpression:L4,createOmittedExpression:Iy,createExpressionWithTypeArguments:uh,updateExpressionWithTypeArguments:h1,createAsExpression:H_,updateAsExpression:od,createNonNullExpression:m3,updateNonNullExpression:xA,createSatisfiesExpression:sd,updateSatisfiesExpression:d3,createNonNullChain:ld,updateNonNullChain:p1,createMetaProperty:oh,updateMetaProperty:X4,createTemplateSpan:t2,updateTemplateSpan:uf,createSemicolonClassElement:f1,createBlock:r2,updateBlock:My,createVariableStatement:j4,updateVariableStatement:Jc,createEmptyStatement:ap,createExpressionStatement:dl,updateExpressionStatement:m1,createIfStatement:zy,updateIfStatement:y3,createDoStatement:up,updateDoStatement:K4,createWhileStatement:vA,updateWhileStatement:d1,createForStatement:g3,updateForStatement:U4,createForInStatement:n2,updateForInStatement:Ic,createForOfStatement:x3,updateForOfStatement:uE,createContinueStatement:Bu,updateContinueStatement:Vy,createBreakStatement:i2,updateBreakStatement:v3,createReturnStatement:op,updateReturnStatement:DA,createWithStatement:Z4,updateWithStatement:O4,createSwitchStatement:Q4,updateSwitchStatement:B7,createLabeledStatement:yl,updateLabeledStatement:q7,createThrowStatement:W4,updateThrowStatement:Ly,createTryStatement:sh,updateTryStatement:sp,createDebuggerStatement:Mc,createVariableDeclaration:of,updateVariableDeclaration:sf,createVariableDeclarationList:lh,updateVariableDeclarationList:D3,createFunctionDeclaration:a2,updateFunctionDeclaration:lf,createClassDeclaration:H4,updateClassDeclaration:$7,createInterfaceDeclaration:_d,updateInterfaceDeclaration:w3,createTypeAliasDeclaration:Lu,updateTypeAliasDeclaration:T_,createEnumDeclaration:Xy,updateEnumDeclaration:lp,createModuleDeclaration:wA,updateModuleDeclaration:Xu,createModuleBlock:y1,updateModuleBlock:Io,createCaseBlock:A3,updateCaseBlock:b3,createNamespaceExportDeclaration:jy,updateNamespaceExportDeclaration:G4,createImportEqualsDeclaration:u2,updateImportEqualsDeclaration:_f,createImportDeclaration:T3,updateImportDeclaration:C3,createImportClause:cd,updateImportClause:cf,createAssertClause:R4,updateAssertClause:e8,createAssertEntry:hd,updateAssertEntry:E3,createImportTypeAssertionContainer:k3,updateImportTypeAssertionContainer:F3,createImportAttributes:AA,updateImportAttributes:o2,createImportAttribute:pd,updateImportAttribute:Uy,createNamespaceImport:_p,updateNamespaceImport:bA,createNamespaceExport:z,updateNamespaceExport:ce,createNamedImports:Ke,updateNamedImports:Pt,createImportSpecifier:cr,updateImportSpecifier:Lr,createExportAssignment:Tn,updateExportAssignment:Wi,createExportDeclaration:v0,updateExportDeclaration:ha,createNamedExports:ya,updateNamedExports:no,createExportSpecifier:g1,updateExportSpecifier:fd,createMissingDeclaration:G_,createExternalModuleReference:x1,updateExternalModuleReference:As,get createJSDocAllType(){return l(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return p(315)},get updateJSDocNonNullableType(){return f(315)},get createJSDocNullableType(){return p(314)},get updateJSDocNullableType(){return f(314)},get createJSDocOptionalType(){return h(316)},get updateJSDocOptionalType(){return _(316)},get createJSDocVariadicType(){return h(318)},get updateJSDocVariadicType(){return _(318)},get createJSDocNamepathType(){return h(319)},get updateJSDocNamepathType(){return _(319)},createJSDocFunctionType:io,updateJSDocFunctionType:R_,createJSDocTypeLiteral:hf,updateJSDocTypeLiteral:pf,createJSDocTypeExpression:E_,updateJSDocTypeExpression:ff,createJSDocSignature:J7,updateJSDocSignature:S3,createJSDocTemplateTag:cp,updateJSDocTemplateTag:oE,createJSDocTypedefTag:dd,updateJSDocTypedefTag:_N,createJSDocParameterTag:TA,updateJSDocParameterTag:cN,createJSDocPropertyTag:CA,updateJSDocPropertyTag:sE,createJSDocCallbackTag:hN,updateJSDocCallbackTag:pN,createJSDocOverloadTag:fN,updateJSDocOverloadTag:EA,createJSDocAugmentsTag:kA,updateJSDocAugmentsTag:P3,createJSDocImplementsTag:lE,updateJSDocImplementsTag:cE,createJSDocSeeTag:yd,updateJSDocSeeTag:t8,createJSDocImportTag:SA,updateJSDocImportTag:fE,createJSDocNameReference:ec,updateJSDocNameReference:I7,createJSDocMemberName:Wo,updateJSDocMemberName:$I,createJSDocLink:mN,updateJSDocLink:zc,createJSDocLinkCode:dN,updateJSDocLinkCode:M7,createJSDocLinkPlain:_E,updateJSDocLinkPlain:z7,get createJSDocTypeTag(){return x(344)},get updateJSDocTypeTag(){return T(344)},get createJSDocReturnTag(){return x(342)},get updateJSDocReturnTag(){return T(342)},get createJSDocThisTag(){return x(343)},get updateJSDocThisTag(){return T(343)},get createJSDocAuthorTag(){return m(330)},get updateJSDocAuthorTag(){return d(330)},get createJSDocClassTag(){return m(332)},get updateJSDocClassTag(){return d(332)},get createJSDocPublicTag(){return m(333)},get updateJSDocPublicTag(){return d(333)},get createJSDocPrivateTag(){return m(334)},get updateJSDocPrivateTag(){return d(334)},get createJSDocProtectedTag(){return m(335)},get updateJSDocProtectedTag(){return d(335)},get createJSDocReadonlyTag(){return m(336)},get updateJSDocReadonlyTag(){return d(336)},get createJSDocOverrideTag(){return m(337)},get updateJSDocOverrideTag(){return d(337)},get createJSDocDeprecatedTag(){return m(331)},get updateJSDocDeprecatedTag(){return d(331)},get createJSDocThrowsTag(){return x(349)},get updateJSDocThrowsTag(){return T(349)},get createJSDocSatisfiesTag(){return x(350)},get updateJSDocSatisfiesTag(){return T(350)},createJSDocEnumTag:pE,updateJSDocEnumTag:FA,createJSDocUnknownTag:tc,updateJSDocUnknownTag:vN,createJSDocText:mE,updateJSDocText:JI,createJSDocComment:r8,updateJSDocComment:DN,createJsxElement:dE,updateJsxElement:V7,createJsxSelfClosingElement:mf,updateJsxSelfClosingElement:N3,createJsxOpeningElement:PA,updateJsxOpeningElement:_h,createJsxClosingElement:B3,updateJsxClosingElement:us,createJsxFragment:NA,createJsxText:n8,updateJsxText:gE,createJsxOpeningFragment:xE,createJsxJsxClosingFragment:wN,updateJsxFragment:yE,createJsxAttribute:vE,updateJsxAttribute:q3,createJsxAttributes:$3,updateJsxAttributes:AN,createJsxSpreadAttribute:DE,updateJsxSpreadAttribute:bN,createJsxExpression:J3,updateJsxExpression:i8,createJsxNamespacedName:wE,updateJsxNamespacedName:Zy,createCaseClause:AE,updateCaseClause:TN,createDefaultClause:Oy,updateDefaultClause:bE,createHeritageClause:CN,updateHeritageClause:II,createCatchClause:TE,updateCatchClause:BA,createPropertyAssignment:I3,updatePropertyAssignment:Qy,createShorthandPropertyAssignment:CE,updateShorthandPropertyAssignment:qA,createSpreadAssignment:M3,updateSpreadAssignment:l2,createEnumMember:D1,updateEnumMember:EE,createSourceFile:kN,updateSourceFile:NN,createRedirectedSourceFile:$A,createBundle:V3,updateBundle:BN,createSyntheticExpression:u8,createSyntaxList:L3,createNotEmittedStatement:X3,createNotEmittedTypeElement:MI,createPartiallyEmittedExpression:df,updatePartiallyEmittedExpression:kE,createCommaListExpression:JA,updateCommaListExpression:yf,createSyntheticReferenceExpression:hp,updateSyntheticReferenceExpression:Wy,cloneNode:IA,get createComma(){return a(28)},get createAssignment(){return a(64)},get createLogicalOr(){return a(57)},get createLogicalAnd(){return a(56)},get createBitwiseOr(){return a(52)},get createBitwiseXor(){return a(53)},get createBitwiseAnd(){return a(51)},get createStrictEquality(){return a(37)},get createStrictInequality(){return a(38)},get createEquality(){return a(35)},get createInequality(){return a(36)},get createLessThan(){return a(30)},get createLessThanEquals(){return a(33)},get createGreaterThan(){return a(32)},get createGreaterThanEquals(){return a(34)},get createLeftShift(){return a(48)},get createRightShift(){return a(49)},get createUnsignedRightShift(){return a(50)},get createAdd(){return a(40)},get createSubtract(){return a(41)},get createMultiply(){return a(42)},get createDivide(){return a(44)},get createModulo(){return a(45)},get createExponent(){return a(43)},get createPrefixPlus(){return u(40)},get createPrefixMinus(){return u(41)},get createPrefixIncrement(){return u(46)},get createPrefixDecrement(){return u(47)},get createBitwiseNot(){return u(55)},get createLogicalNot(){return u(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:IN,createImmediatelyInvokedArrowFunction:MN,createVoidZero:Yy,createExportDefault:PE,createExternalModuleExport:zN,createTypeCheck:MA,createIsNotTypeCheck:L7,createMethodCall:Vc,createGlobalMethodCall:o8,createFunctionBindCall:zI,createFunctionCallCall:NE,createFunctionApplyCall:VN,createArraySliceCall:s8,createArrayConcatCall:VI,createObjectDefinePropertyCall:j3,createObjectGetOwnPropertyDescriptorCall:Hy,createReflectGetCall:gf,createReflectSetCall:BE,createPropertyDescriptor:xd,createCallBinding:qE,createAssignmentTargetWrapper:H,inlineExpressions:we,getInternalName:ht,getLocalName:qt,getExportName:_r,getDeclarationName:tn,getNamespaceMemberName:Xn,getExternalModuleOrNamespaceExportName:An,restoreOuterExpressions:XN,restoreEnclosingLabel:pp,createUseStrictPrologue:ma,copyPrologue:xn,copyStandardPrologue:Z0,copyCustomPrologue:q0,ensureUseStrict:rc,liftToBlock:Lc,mergeLexicalEnvironment:xf,replaceModifiers:mp,replaceDecoratorsAndModifiers:ch,replacePropertyName:$E};return ky(tYi,(D)=>D(A)),A;function F(D,J){if(D===void 0||D===t_)D=[];else if(VP(D)){if(J===void 0||D.hasTrailingComma===J)return D.transformFlags===void 0&&p1r(D),Mr.attachNodeArrayDebugInfo(D),D;let je=D.slice();return je.pos=D.pos,je.end=D.end,je.hasTrailingComma=J,je.transformFlags=D.transformFlags,Mr.attachNodeArrayDebugInfo(je),je}let j=D.length,ae=j>=1&&j<=4?D.slice():D;return ae.pos=-1,ae.end=-1,ae.hasTrailingComma=!!J,ae.transformFlags=0,p1r(ae),Mr.attachNodeArrayDebugInfo(ae),ae}function b(D){return t.createBaseNode(D)}function N(D){let J=b(D);return J.symbol=void 0,J.localSymbol=void 0,J}function E(D,J){return D!==J&&(D.typeArguments=J.typeArguments),Fr(D,J)}function P(D,J=0){let j=typeof D=="number"?D+"":D;Mr.assert(j.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ae=N(9);return ae.text=j,ae.numericLiteralFlags=J,J&384&&(ae.transformFlags|=1024),ae}function q(D){let J=Xe(10);return J.text=typeof D=="string"?D:ZWi(D)+"n",J.transformFlags|=32,J}function $(D,J){let j=N(11);return j.text=D,j.singleQuote=J,j}function M(D,J,j){let ae=$(D,J);return ae.hasExtendedUnicodeEscape=j,j&&(ae.transformFlags|=1024),ae}function O(D){let J=$(sWi(D),void 0);return J.textSourceNode=D,J}function K(D){let J=Xe(14);return J.text=D,J}function ue(D,J){switch(D){case 9:return P(J,0);case 10:return q(J);case 11:return M(J,void 0);case 12:return n8(J,!1);case 13:return n8(J,!0);case 14:return K(J);case 15:return Nu(D,J,void 0,0)}}function Q(D){let J=t.createBaseIdentifierNode(80);return J.escapedText=D,J.jsDoc=void 0,J.flowNode=void 0,J.symbol=void 0,J}function G(D,J,j,ae){let je=Q(AK(D));return setIdentifierAutoGenerate(je,{flags:J,id:$ye,prefix:j,suffix:ae}),$ye++,je}function Z(D,J,j){J===void 0&&D&&(J=F2r(D)),J===80&&(J=void 0);let ae=Q(AK(D));return j&&(ae.flags|=256),ae.escapedText==="await"&&(ae.transformFlags|=67108864),ae.flags&256&&(ae.transformFlags|=1024),ae}function ee(D,J,j,ae){let je=1;J&&(je|=8);let Jt=G("",je,j,ae);return D&&D(Jt),Jt}function ge(D){let J=2;return D&&(J|=8),G("",J,void 0,void 0)}function Fe(D,J=0,j,ae){return Mr.assert(!(J&7),"Argument out of range: flags"),Mr.assert((J&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),G(D,3|J,j,ae)}function He(D,J=0,j,ae){Mr.assert(!(J&7),"Argument out of range: flags");let je=D?jOe(D)?HOe(!1,j,D,ae,Ym):`generated@${getNodeId(D)}`:"";(j||ae)&&(J|=16);let Jt=G(je,4|J,j,ae);return Jt.original=D,Jt}function xe(D){let J=t.createBasePrivateIdentifierNode(81);return J.escapedText=D,J.transformFlags|=16777216,J}function $e(D){return Kye(D,"#")||Mr.fail("First character of private identifier must be #: "+D),xe(AK(D))}function Ie(D,J,j,ae){let je=xe(AK(D));return setIdentifierAutoGenerate(je,{flags:J,id:$ye,prefix:j,suffix:ae}),$ye++,je}function te(D,J,j){D&&!Kye(D,"#")&&Mr.fail("First character of private identifier must be #: "+D);let ae=8|(D?3:1);return Ie(D??"",ae,J,j)}function de(D,J,j){let ae=jOe(D)?HOe(!0,J,D,j,Ym):`#generated@${getNodeId(D)}`,je=Ie(ae,4|(J||j?16:0),J,j);return je.original=D,je}function Xe(D){return t.createBaseTokenNode(D)}function Ne(D){Mr.assert(D>=0&&D<=165,"Invalid token"),Mr.assert(D<=15||D>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Mr.assert(D<=9||D>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Mr.assert(D!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let J=Xe(D),j=0;switch(D){case 134:j=384;break;case 160:j=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:j=1;break;case 108:j=134218752,J.flowNode=void 0;break;case 126:j=1024;break;case 129:j=16777216;break;case 110:j=16384,J.flowNode=void 0;break}return j&&(J.transformFlags|=j),J}function Ce(){return Ne(108)}function pe(){return Ne(110)}function ie(){return Ne(106)}function ke(){return Ne(112)}function Je(){return Ne(97)}function ut(D){return Ne(D)}function ot(D){let J=[];return D&32&&J.push(ut(95)),D&128&&J.push(ut(138)),D&2048&&J.push(ut(90)),D&4096&&J.push(ut(87)),D&1&&J.push(ut(125)),D&2&&J.push(ut(123)),D&4&&J.push(ut(124)),D&64&&J.push(ut(128)),D&256&&J.push(ut(126)),D&16&&J.push(ut(164)),D&8&&J.push(ut(148)),D&512&&J.push(ut(129)),D&1024&&J.push(ut(134)),D&8192&&J.push(ut(103)),D&16384&&J.push(ut(147)),J.length?J:void 0}function gt(D,J){let j=b(166);return j.left=D,j.right=Cu(J),j.transformFlags|=Kr(j.left)|TK(j.right),j.flowNode=void 0,j}function Bt(D,J,j){return D.left!==J||D.right!==j?Fr(gt(J,j),D):D}function pt(D){let J=b(167);return J.expression=n().parenthesizeExpressionOfComputedPropertyName(D),J.transformFlags|=Kr(J.expression)|1024|131072,J}function St(D,J){return D.expression!==J?Fr(pt(J),D):D}function Tt(D,J,j,ae){let je=N(168);return je.modifiers=$0(D),je.name=Cu(J),je.constraint=j,je.default=ae,je.transformFlags=1,je.expression=void 0,je.jsDoc=void 0,je}function Mt(D,J,j,ae,je){return D.modifiers!==J||D.name!==j||D.constraint!==ae||D.default!==je?Fr(Tt(J,j,ae,je),D):D}function wr(D,J,j,ae,je,Jt){let $r=N(169);return $r.modifiers=$0(D),$r.dotDotDotToken=J,$r.name=Cu(j),$r.questionToken=ae,$r.type=je,$r.initializer=K3(Jt),_Wi($r.name)?$r.transformFlags=1:$r.transformFlags=V0($r.modifiers)|Kr($r.dotDotDotToken)|Ty($r.name)|Kr($r.questionToken)|Kr($r.initializer)|($r.questionToken??$r.type?1:0)|($r.dotDotDotToken??$r.initializer?1024:0)|(Cy($r.modifiers)&31?8192:0),$r.jsDoc=void 0,$r}function tr(D,J,j,ae,je,Jt,$r){return D.modifiers!==J||D.dotDotDotToken!==j||D.name!==ae||D.questionToken!==je||D.type!==Jt||D.initializer!==$r?Fr(wr(J,j,ae,je,Jt,$r),D):D}function Vr(D){let J=b(170);return J.expression=n().parenthesizeLeftSideOfAccess(D,!1),J.transformFlags|=Kr(J.expression)|1|8192|33554432,J}function Tr(D,J){return D.expression!==J?Fr(Vr(J),D):D}function Yr(D,J,j,ae){let je=N(171);return je.modifiers=$0(D),je.name=Cu(J),je.type=ae,je.questionToken=j,je.transformFlags=1,je.initializer=void 0,je.jsDoc=void 0,je}function Cn(D,J,j,ae,je){return D.modifiers!==J||D.name!==j||D.questionToken!==ae||D.type!==je?Te(Yr(J,j,ae,je),D):D}function Te(D,J){return D!==J&&(D.initializer=J.initializer),Fr(D,J)}function De(D,J,j,ae,je){let Jt=N(172);Jt.modifiers=$0(D),Jt.name=Cu(J),Jt.questionToken=j&&m1r(j)?j:void 0,Jt.exclamationToken=j&&f1r(j)?j:void 0,Jt.type=ae,Jt.initializer=K3(je);let $r=Jt.flags&33554432||Cy(Jt.modifiers)&128;return Jt.transformFlags=V0(Jt.modifiers)|Ty(Jt.name)|Kr(Jt.initializer)|($r||Jt.questionToken||Jt.exclamationToken||Jt.type?1:0)|(fhr(Jt.name)||Cy(Jt.modifiers)&256&&Jt.initializer?8192:0)|16777216,Jt.jsDoc=void 0,Jt}function fe(D,J,j,ae,je,Jt){return D.modifiers!==J||D.name!==j||D.questionToken!==(ae!==void 0&&m1r(ae)?ae:void 0)||D.exclamationToken!==(ae!==void 0&&f1r(ae)?ae:void 0)||D.type!==je||D.initializer!==Jt?Fr(De(J,j,ae,je,Jt),D):D}function oe(D,J,j,ae,je,Jt){let $r=N(173);return $r.modifiers=$0(D),$r.name=Cu(J),$r.questionToken=j,$r.typeParameters=$0(ae),$r.parameters=$0(je),$r.type=Jt,$r.transformFlags=1,$r.jsDoc=void 0,$r.locals=void 0,$r.nextContainer=void 0,$r.typeArguments=void 0,$r}function be(D,J,j,ae,je,Jt,$r){return D.modifiers!==J||D.name!==j||D.questionToken!==ae||D.typeParameters!==je||D.parameters!==Jt||D.type!==$r?E(oe(J,j,ae,je,Jt,$r),D):D}function Qe(D,J,j,ae,je,Jt,$r,si){let ua=N(174);if(ua.modifiers=$0(D),ua.asteriskToken=J,ua.name=Cu(j),ua.questionToken=ae,ua.exclamationToken=void 0,ua.typeParameters=$0(je),ua.parameters=F(Jt),ua.type=$r,ua.body=si,!ua.body)ua.transformFlags=1;else{let Ns=Cy(ua.modifiers)&1024,gl=!!ua.asteriskToken,hh=Ns&≷ua.transformFlags=V0(ua.modifiers)|Kr(ua.asteriskToken)|Ty(ua.name)|Kr(ua.questionToken)|V0(ua.typeParameters)|V0(ua.parameters)|Kr(ua.type)|Kr(ua.body)&-67108865|(hh?128:Ns?256:gl?2048:0)|(ua.questionToken||ua.typeParameters||ua.type?1:0)|1024}return ua.typeArguments=void 0,ua.jsDoc=void 0,ua.locals=void 0,ua.nextContainer=void 0,ua.flowNode=void 0,ua.endFlowNode=void 0,ua.returnFlowNode=void 0,ua}function ct(D,J,j,ae,je,Jt,$r,si,ua){return D.modifiers!==J||D.asteriskToken!==j||D.name!==ae||D.questionToken!==je||D.typeParameters!==Jt||D.parameters!==$r||D.type!==si||D.body!==ua?st(Qe(J,j,ae,je,Jt,$r,si,ua),D):D}function st(D,J){return D!==J&&(D.exclamationToken=J.exclamationToken),Fr(D,J)}function Lt(D){let J=N(175);return J.body=D,J.transformFlags=Kr(D)|16777216,J.modifiers=void 0,J.jsDoc=void 0,J.locals=void 0,J.nextContainer=void 0,J.endFlowNode=void 0,J.returnFlowNode=void 0,J}function mr(D,J){return D.body!==J?Dr(Lt(J),D):D}function Dr(D,J){return D!==J&&(D.modifiers=J.modifiers),Fr(D,J)}function en(D,J,j){let ae=N(176);return ae.modifiers=$0(D),ae.parameters=F(J),ae.body=j,ae.body?ae.transformFlags=V0(ae.modifiers)|V0(ae.parameters)|Kr(ae.body)&-67108865|1024:ae.transformFlags=1,ae.typeParameters=void 0,ae.type=void 0,ae.typeArguments=void 0,ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae.endFlowNode=void 0,ae.returnFlowNode=void 0,ae}function ki(D,J,j,ae){return D.modifiers!==J||D.parameters!==j||D.body!==ae?Jn(en(J,j,ae),D):D}function Jn(D,J){return D!==J&&(D.typeParameters=J.typeParameters,D.type=J.type),E(D,J)}function c0(D,J,j,ae,je){let Jt=N(177);return Jt.modifiers=$0(D),Jt.name=Cu(J),Jt.parameters=F(j),Jt.type=ae,Jt.body=je,Jt.body?Jt.transformFlags=V0(Jt.modifiers)|Ty(Jt.name)|V0(Jt.parameters)|Kr(Jt.type)|Kr(Jt.body)&-67108865|(Jt.type?1:0):Jt.transformFlags=1,Jt.typeArguments=void 0,Jt.typeParameters=void 0,Jt.jsDoc=void 0,Jt.locals=void 0,Jt.nextContainer=void 0,Jt.flowNode=void 0,Jt.endFlowNode=void 0,Jt.returnFlowNode=void 0,Jt}function r0(D,J,j,ae,je,Jt){return D.modifiers!==J||D.name!==j||D.parameters!==ae||D.type!==je||D.body!==Jt?e0(c0(J,j,ae,je,Jt),D):D}function e0(D,J){return D!==J&&(D.typeParameters=J.typeParameters),E(D,J)}function pr(D,J,j,ae){let je=N(178);return je.modifiers=$0(D),je.name=Cu(J),je.parameters=F(j),je.body=ae,je.body?je.transformFlags=V0(je.modifiers)|Ty(je.name)|V0(je.parameters)|Kr(je.body)&-67108865|(je.type?1:0):je.transformFlags=1,je.typeArguments=void 0,je.typeParameters=void 0,je.type=void 0,je.jsDoc=void 0,je.locals=void 0,je.nextContainer=void 0,je.flowNode=void 0,je.endFlowNode=void 0,je.returnFlowNode=void 0,je}function Ar(D,J,j,ae,je){return D.modifiers!==J||D.name!==j||D.parameters!==ae||D.body!==je?Pr(pr(J,j,ae,je),D):D}function Pr(D,J){return D!==J&&(D.typeParameters=J.typeParameters,D.type=J.type),E(D,J)}function kn(D,J,j){let ae=N(179);return ae.typeParameters=$0(D),ae.parameters=$0(J),ae.type=j,ae.transformFlags=1,ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae.typeArguments=void 0,ae}function ri(D,J,j,ae){return D.typeParameters!==J||D.parameters!==j||D.type!==ae?E(kn(J,j,ae),D):D}function Vi(D,J,j){let ae=N(180);return ae.typeParameters=$0(D),ae.parameters=$0(J),ae.type=j,ae.transformFlags=1,ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae.typeArguments=void 0,ae}function di(D,J,j,ae){return D.typeParameters!==J||D.parameters!==j||D.type!==ae?E(Vi(J,j,ae),D):D}function Pi(D,J,j){let ae=N(181);return ae.modifiers=$0(D),ae.parameters=$0(J),ae.type=j,ae.transformFlags=1,ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae.typeArguments=void 0,ae}function na(D,J,j,ae){return D.parameters!==j||D.type!==ae||D.modifiers!==J?E(Pi(J,j,ae),D):D}function K0(D,J){let j=b(204);return j.type=D,j.literal=J,j.transformFlags=1,j}function _i(D,J,j){return D.type!==J||D.literal!==j?Fr(K0(J,j),D):D}function Qu(D){return Ne(D)}function Pa(D,J,j){let ae=b(182);return ae.assertsModifier=D,ae.parameterName=Cu(J),ae.type=j,ae.transformFlags=1,ae}function Qo(D,J,j,ae){return D.assertsModifier!==J||D.parameterName!==j||D.type!==ae?Fr(Pa(J,j,ae),D):D}function Ks(D,J){let j=b(183);return j.typeName=Cu(D),j.typeArguments=J&&n().parenthesizeTypeArguments(F(J)),j.transformFlags=1,j}function Qt(D,J,j){return D.typeName!==J||D.typeArguments!==j?Fr(Ks(J,j),D):D}function ji(D,J,j){let ae=N(184);return ae.typeParameters=$0(D),ae.parameters=$0(J),ae.type=j,ae.transformFlags=1,ae.modifiers=void 0,ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae.typeArguments=void 0,ae}function me(D,J,j,ae){return D.typeParameters!==J||D.parameters!==j||D.type!==ae?oi(ji(J,j,ae),D):D}function oi(D,J){return D!==J&&(D.modifiers=J.modifiers),E(D,J)}function Ki(...D){return D.length===4?vr(...D):D.length===3?U0(...D):Mr.fail("Incorrect number of arguments specified.")}function vr(D,J,j,ae){let je=N(185);return je.modifiers=$0(D),je.typeParameters=$0(J),je.parameters=$0(j),je.type=ae,je.transformFlags=1,je.jsDoc=void 0,je.locals=void 0,je.nextContainer=void 0,je.typeArguments=void 0,je}function U0(D,J,j){return vr(void 0,D,J,j)}function To(...D){return D.length===5?W0(...D):D.length===4?Ve(...D):Mr.fail("Incorrect number of arguments specified.")}function W0(D,J,j,ae,je){return D.modifiers!==J||D.typeParameters!==j||D.parameters!==ae||D.type!==je?E(Ki(J,j,ae,je),D):D}function Ve(D,J,j,ae){return W0(D,D.modifiers,J,j,ae)}function Jr(D,J){let j=b(186);return j.exprName=D,j.typeArguments=J&&n().parenthesizeTypeArguments(J),j.transformFlags=1,j}function Pn(D,J,j){return D.exprName!==J||D.typeArguments!==j?Fr(Jr(J,j),D):D}function wt(D){let J=N(187);return J.members=F(D),J.transformFlags=1,J}function Fn(D,J){return D.members!==J?Fr(wt(J),D):D}function gn(D){let J=b(188);return J.elementType=n().parenthesizeNonArrayTypeOfPostfixType(D),J.transformFlags=1,J}function Mn(D,J){return D.elementType!==J?Fr(gn(J),D):D}function g0(D){let J=b(189);return J.elements=F(n().parenthesizeElementTypesOfTupleType(D)),J.transformFlags=1,J}function kr(D,J){return D.elements!==J?Fr(g0(J),D):D}function mn(D,J,j,ae){let je=N(202);return je.dotDotDotToken=D,je.name=J,je.questionToken=j,je.type=ae,je.transformFlags=1,je.jsDoc=void 0,je}function Ji(D,J,j,ae,je){return D.dotDotDotToken!==J||D.name!==j||D.questionToken!==ae||D.type!==je?Fr(mn(J,j,ae,je),D):D}function Un(D){let J=b(190);return J.type=n().parenthesizeTypeOfOptionalType(D),J.transformFlags=1,J}function nr(D,J){return D.type!==J?Fr(Un(J),D):D}function l0(D){let J=b(191);return J.type=D,J.transformFlags=1,J}function Yn(D,J){return D.type!==J?Fr(l0(J),D):D}function Ea(D,J,j){let ae=b(D);return ae.types=A.createNodeArray(j(J)),ae.transformFlags=1,ae}function Aa(D,J,j){return D.types!==J?Fr(Ea(D.kind,J,j),D):D}function hl(D){return Ea(192,D,n().parenthesizeConstituentTypesOfUnionType)}function vs(D,J){return Aa(D,J,n().parenthesizeConstituentTypesOfUnionType)}function Ds(D){return Ea(193,D,n().parenthesizeConstituentTypesOfIntersectionType)}function d0(D,J){return Aa(D,J,n().parenthesizeConstituentTypesOfIntersectionType)}function B0(D,J,j,ae){let je=b(194);return je.checkType=n().parenthesizeCheckTypeOfConditionalType(D),je.extendsType=n().parenthesizeExtendsTypeOfConditionalType(J),je.trueType=j,je.falseType=ae,je.transformFlags=1,je.locals=void 0,je.nextContainer=void 0,je}function ep(D,J,j,ae,je){return D.checkType!==J||D.extendsType!==j||D.trueType!==ae||D.falseType!==je?Fr(B0(J,j,ae,je),D):D}function pl(D){let J=b(195);return J.typeParameter=D,J.transformFlags=1,J}function E7(D,J){return D.typeParameter!==J?Fr(pl(J),D):D}function to(D,J){let j=b(203);return j.head=D,j.templateSpans=F(J),j.transformFlags=1,j}function O_(D,J,j){return D.head!==J||D.templateSpans!==j?Fr(to(J,j),D):D}function Hs(D,J,j,ae,je=!1){let Jt=b(205);return Jt.argument=D,Jt.attributes=J,Jt.assertions&&Jt.assertions.assertClause&&Jt.attributes&&(Jt.assertions.assertClause=Jt.attributes),Jt.qualifier=j,Jt.typeArguments=ae&&n().parenthesizeTypeArguments(ae),Jt.isTypeOf=je,Jt.transformFlags=1,Jt}function H1(D,J,j,ae,je,Jt=D.isTypeOf){return D.argument!==J||D.attributes!==j||D.qualifier!==ae||D.typeArguments!==je||D.isTypeOf!==Jt?Fr(Hs(J,j,ae,je,Jt),D):D}function ro(D){let J=b(196);return J.type=D,J.transformFlags=1,J}function Jo(D,J){return D.type!==J?Fr(ro(J),D):D}function Zt(){let D=b(197);return D.transformFlags=1,D}function ws(D,J){let j=b(198);return j.operator=D,j.type=D===148?n().parenthesizeOperandOfReadonlyTypeOperator(J):n().parenthesizeOperandOfTypeOperator(J),j.transformFlags=1,j}function fl(D,J){return D.type!==J?Fr(ws(D.operator,J),D):D}function Q_(D,J){let j=b(199);return j.objectType=n().parenthesizeNonArrayTypeOfPostfixType(D),j.indexType=J,j.transformFlags=1,j}function Ii(D,J,j){return D.objectType!==J||D.indexType!==j?Fr(Q_(J,j),D):D}function xu(D,J,j,ae,je,Jt){let $r=N(200);return $r.readonlyToken=D,$r.typeParameter=J,$r.nameType=j,$r.questionToken=ae,$r.type=je,$r.members=Jt&&F(Jt),$r.transformFlags=1,$r.locals=void 0,$r.nextContainer=void 0,$r}function Vu(D,J,j,ae,je,Jt,$r){return D.readonlyToken!==J||D.typeParameter!==j||D.nameType!==ae||D.questionToken!==je||D.type!==Jt||D.members!==$r?Fr(xu(J,j,ae,je,Jt,$r),D):D}function tp(D){let J=b(201);return J.literal=D,J.transformFlags=1,J}function i1(D,J){return D.literal!==J?Fr(tp(J),D):D}function nf(D){let J=b(206);return J.elements=F(D),J.transformFlags|=V0(J.elements)|1024|524288,J.transformFlags&32768&&(J.transformFlags|=65664),J}function w_(D,J){return D.elements!==J?Fr(nf(J),D):D}function Gs(D){let J=b(207);return J.elements=F(D),J.transformFlags|=V0(J.elements)|1024|524288,J}function W_(D,J){return D.elements!==J?Fr(Gs(J),D):D}function Pc(D,J,j,ae){let je=N(208);return je.dotDotDotToken=D,je.propertyName=Cu(J),je.name=Cu(j),je.initializer=K3(ae),je.transformFlags|=Kr(je.dotDotDotToken)|Ty(je.propertyName)|Ty(je.name)|Kr(je.initializer)|(je.dotDotDotToken?32768:0)|1024,je.flowNode=void 0,je}function rp(D,J,j,ae,je){return D.propertyName!==j||D.dotDotDotToken!==J||D.name!==ae||D.initializer!==je?Fr(Pc(J,j,ae,je),D):D}function Py(D,J){let j=b(209),ae=D&&nI(D),je=F(D,ae&&KYi(ae)?!0:void 0);return j.elements=n().parenthesizeExpressionsOfCommaDelimitedList(je),j.multiLine=J,j.transformFlags|=V0(j.elements),j}function a1(D,J){return D.elements!==J?Fr(Py(J,D.multiLine),D):D}function np(D,J){let j=N(210);return j.properties=F(D),j.multiLine=J,j.transformFlags|=V0(j.properties),j.jsDoc=void 0,j}function Ny(D,J){return D.properties!==J?Fr(np(J,D.multiLine),D):D}function id(D,J,j){let ae=N(211);return ae.expression=D,ae.questionDotToken=J,ae.name=j,ae.transformFlags=Kr(ae.expression)|Kr(ae.questionDotToken)|(bo(ae.name)?TK(ae.name):Kr(ae.name)|536870912),ae.jsDoc=void 0,ae.flowNode=void 0,ae}function Nc(D,J){let j=id(n().parenthesizeLeftSideOfAccess(D,!1),void 0,Cu(J));return POe(D)&&(j.transformFlags|=384),j}function o0(D,J,j){return tQi(D)?a_(D,J,D.questionDotToken,oA(j,bo)):D.expression!==J||D.name!==j?Fr(Nc(J,j),D):D}function u1(D,J,j){let ae=id(n().parenthesizeLeftSideOfAccess(D,!0),J,Cu(j));return ae.flags|=64,ae.transformFlags|=32,ae}function a_(D,J,j,ae){return Mr.assert(!!(D.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),D.expression!==J||D.questionDotToken!==j||D.name!==ae?Fr(u1(J,j,ae),D):D}function Bc(D,J,j){let ae=N(212);return ae.expression=D,ae.questionDotToken=J,ae.argumentExpression=j,ae.transformFlags|=Kr(ae.expression)|Kr(ae.questionDotToken)|Kr(ae.argumentExpression),ae.jsDoc=void 0,ae.flowNode=void 0,ae}function ih(D,J){let j=Bc(n().parenthesizeLeftSideOfAccess(D,!1),void 0,F_(J));return POe(D)&&(j.transformFlags|=384),j}function By(D,J,j){return rQi(D)?o1(D,J,D.questionDotToken,j):D.expression!==J||D.argumentExpression!==j?Fr(ih(J,j),D):D}function Jl(D,J,j){let ae=Bc(n().parenthesizeLeftSideOfAccess(D,!0),J,F_(j));return ae.flags|=64,ae.transformFlags|=32,ae}function o1(D,J,j,ae){return Mr.assert(!!(D.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),D.expression!==J||D.questionDotToken!==j||D.argumentExpression!==ae?Fr(Jl(J,j,ae),D):D}function qc(D,J,j,ae){let je=N(213);return je.expression=D,je.questionDotToken=J,je.typeArguments=j,je.arguments=ae,je.transformFlags|=Kr(je.expression)|Kr(je.questionDotToken)|V0(je.typeArguments)|V0(je.arguments),je.typeArguments&&(je.transformFlags|=1),u1r(je.expression)&&(je.transformFlags|=16384),je}function ah(D,J,j){let ae=qc(n().parenthesizeLeftSideOfAccess(D,!1),void 0,$0(J),n().parenthesizeExpressionsOfCommaDelimitedList(F(j)));return pYi(ae.expression)&&(ae.transformFlags|=8388608),ae}function s1(D,J,j,ae){return Rcr(D)?F7(D,J,D.questionDotToken,j,ae):D.expression!==J||D.typeArguments!==j||D.arguments!==ae?Fr(ah(J,j,ae),D):D}function k7(D,J,j,ae){let je=qc(n().parenthesizeLeftSideOfAccess(D,!0),J,$0(j),n().parenthesizeExpressionsOfCommaDelimitedList(F(ae)));return je.flags|=64,je.transformFlags|=32,je}function F7(D,J,j,ae,je){return Mr.assert(!!(D.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),D.expression!==J||D.questionDotToken!==j||D.typeArguments!==ae||D.arguments!==je?Fr(k7(J,j,ae,je),D):D}function ml(D,J,j){let ae=N(214);return ae.expression=n().parenthesizeExpressionOfNew(D),ae.typeArguments=$0(J),ae.arguments=j?n().parenthesizeExpressionsOfCommaDelimitedList(j):void 0,ae.transformFlags|=Kr(ae.expression)|V0(ae.typeArguments)|V0(ae.arguments)|32,ae.typeArguments&&(ae.transformFlags|=1),ae}function S7(D,J,j,ae){return D.expression!==J||D.typeArguments!==j||D.arguments!==ae?Fr(ml(J,j,ae),D):D}function af(D,J,j){let ae=b(215);return ae.tag=n().parenthesizeLeftSideOfAccess(D,!1),ae.typeArguments=$0(J),ae.template=j,ae.transformFlags|=Kr(ae.tag)|V0(ae.typeArguments)|Kr(ae.template)|1024,ae.typeArguments&&(ae.transformFlags|=1),lWi(ae.template)&&(ae.transformFlags|=128),ae}function ad(D,J,j,ae){return D.tag!==J||D.typeArguments!==j||D.template!==ae?Fr(af(J,j,ae),D):D}function qy(D,J){let j=b(216);return j.expression=n().parenthesizeOperandOfPrefixUnary(J),j.type=D,j.transformFlags|=Kr(j.expression)|Kr(j.type)|1,j}function Y_(D,J,j){return D.type!==J||D.expression!==j?Fr(qy(J,j),D):D}function A_(D){let J=b(217);return J.expression=D,J.transformFlags=Kr(J.expression),J.jsDoc=void 0,J}function V4(D,J){return D.expression!==J?Fr(A_(J),D):D}function P7(D,J,j,ae,je,Jt,$r){let si=N(218);si.modifiers=$0(D),si.asteriskToken=J,si.name=Cu(j),si.typeParameters=$0(ae),si.parameters=F(je),si.type=Jt,si.body=$r;let ua=Cy(si.modifiers)&1024,Ns=!!si.asteriskToken,gl=ua&&Ns;return si.transformFlags=V0(si.modifiers)|Kr(si.asteriskToken)|Ty(si.name)|V0(si.typeParameters)|V0(si.parameters)|Kr(si.type)|Kr(si.body)&-67108865|(gl?128:ua?256:Ns?2048:0)|(si.typeParameters||si.type?1:0)|4194304,si.typeArguments=void 0,si.jsDoc=void 0,si.locals=void 0,si.nextContainer=void 0,si.flowNode=void 0,si.endFlowNode=void 0,si.returnFlowNode=void 0,si}function G1(D,J,j,ae,je,Jt,$r,si){return D.name!==ae||D.modifiers!==J||D.asteriskToken!==j||D.typeParameters!==je||D.parameters!==Jt||D.type!==$r||D.body!==si?E(P7(J,j,ae,je,Jt,$r,si),D):D}function ip(D,J,j,ae,je,Jt){let $r=N(219);$r.modifiers=$0(D),$r.typeParameters=$0(J),$r.parameters=F(j),$r.type=ae,$r.equalsGreaterThanToken=je??Ne(39),$r.body=n().parenthesizeConciseBodyOfArrowFunction(Jt);let si=Cy($r.modifiers)&1024;return $r.transformFlags=V0($r.modifiers)|V0($r.typeParameters)|V0($r.parameters)|Kr($r.type)|Kr($r.equalsGreaterThanToken)|Kr($r.body)&-67108865|($r.typeParameters||$r.type?1:0)|(si?16640:0)|1024,$r.typeArguments=void 0,$r.jsDoc=void 0,$r.locals=void 0,$r.nextContainer=void 0,$r.flowNode=void 0,$r.endFlowNode=void 0,$r.returnFlowNode=void 0,$r}function $c(D,J,j,ae,je,Jt,$r){return D.modifiers!==J||D.typeParameters!==j||D.parameters!==ae||D.type!==je||D.equalsGreaterThanToken!==Jt||D.body!==$r?E(ip(J,j,ae,je,Jt,$r),D):D}function l1(D){let J=b(220);return J.expression=n().parenthesizeOperandOfPrefixUnary(D),J.transformFlags|=Kr(J.expression),J}function _1(D,J){return D.expression!==J?Fr(l1(J),D):D}function N7(D){let J=b(221);return J.expression=n().parenthesizeOperandOfPrefixUnary(D),J.transformFlags|=Kr(J.expression),J}function b_(D,J){return D.expression!==J?Fr(N7(J),D):D}function Il(D){let J=b(222);return J.expression=n().parenthesizeOperandOfPrefixUnary(D),J.transformFlags|=Kr(J.expression),J}function Ml(D,J){return D.expression!==J?Fr(Il(J),D):D}function ud(D){let J=b(223);return J.expression=n().parenthesizeOperandOfPrefixUnary(D),J.transformFlags|=Kr(J.expression)|256|128|2097152,J}function R1(D,J){return D.expression!==J?Fr(ud(J),D):D}function k(D,J){let j=b(224);return j.operator=D,j.operand=n().parenthesizeOperandOfPrefixUnary(J),j.transformFlags|=Kr(j.operand),(D===46||D===47)&&bo(j.operand)&&!SK(j.operand)&&!x1r(j.operand)&&(j.transformFlags|=268435456),j}function g(D,J){return D.operand!==J?Fr(k(D.operator,J),D):D}function B(D,J){let j=b(225);return j.operator=J,j.operand=n().parenthesizeOperandOfPostfixUnary(D),j.transformFlags|=Kr(j.operand),bo(j.operand)&&!SK(j.operand)&&!x1r(j.operand)&&(j.transformFlags|=268435456),j}function V(D,J){return D.operand!==J?Fr(B(J,D.operator),D):D}function re(D,J,j){let ae=N(226),je=JE(J),Jt=je.kind;return ae.left=n().parenthesizeLeftSideOfBinary(Jt,D),ae.operatorToken=je,ae.right=n().parenthesizeRightSideOfBinary(Jt,ae.left,j),ae.transformFlags|=Kr(ae.left)|Kr(ae.operatorToken)|Kr(ae.right),Jt===61?ae.transformFlags|=32:Jt===64?Dhr(ae.left)?ae.transformFlags|=5248|Pe(ae.left):zYi(ae.left)&&(ae.transformFlags|=5120|Pe(ae.left)):Jt===43||Jt===68?ae.transformFlags|=512:vWi(Jt)&&(ae.transformFlags|=16),Jt===103&&lI(ae.left)&&(ae.transformFlags|=536870912),ae.jsDoc=void 0,ae}function Pe(D){return zhr(D)?65536:0}function et(D,J,j,ae){return D.left!==J||D.operatorToken!==j||D.right!==ae?Fr(re(J,j,ae),D):D}function xt(D,J,j,ae,je){let Jt=b(227);return Jt.condition=n().parenthesizeConditionOfConditionalExpression(D),Jt.questionToken=J??Ne(58),Jt.whenTrue=n().parenthesizeBranchOfConditionalExpression(j),Jt.colonToken=ae??Ne(59),Jt.whenFalse=n().parenthesizeBranchOfConditionalExpression(je),Jt.transformFlags|=Kr(Jt.condition)|Kr(Jt.questionToken)|Kr(Jt.whenTrue)|Kr(Jt.colonToken)|Kr(Jt.whenFalse),Jt}function Vt(D,J,j,ae,je,Jt){return D.condition!==J||D.questionToken!==j||D.whenTrue!==ae||D.colonToken!==je||D.whenFalse!==Jt?Fr(xt(J,j,ae,je,Jt),D):D}function kt(D,J){let j=b(228);return j.head=D,j.templateSpans=F(J),j.transformFlags|=Kr(j.head)|V0(j.templateSpans)|1024,j}function an(D,J,j){return D.head!==J||D.templateSpans!==j?Fr(kt(J,j),D):D}function zn(D,J,j,ae=0){Mr.assert(!(ae&-7177),"Unsupported template flags.");let je;if(j!==void 0&&j!==J&&(je=rYi(D,j),typeof je=="object"))return Mr.fail("Invalid raw text");if(J===void 0){if(je===void 0)return Mr.fail("Arguments 'text' and 'rawText' may not both be undefined.");J=je}else je!==void 0&&Mr.assert(J===je,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return J}function yi(D){let J=1024;return D&&(J|=128),J}function i0(D,J,j,ae){let je=Xe(D);return je.text=J,je.rawText=j,je.templateFlags=ae&7176,je.transformFlags=yi(je.templateFlags),je}function Y0(D,J,j,ae){let je=N(D);return je.text=J,je.rawText=j,je.templateFlags=ae&7176,je.transformFlags=yi(je.templateFlags),je}function Nu(D,J,j,ae){return D===15?Y0(D,J,j,ae):i0(D,J,j,ae)}function Za(D,J,j){return D=zn(16,D,J,j),Nu(16,D,J,j)}function Xa(D,J,j){return D=zn(16,D,J,j),Nu(17,D,J,j)}function mo(D,J,j){return D=zn(16,D,J,j),Nu(18,D,J,j)}function c1(D,J,j){return D=zn(16,D,J,j),Y0(15,D,J,j)}function Rs(D,J){Mr.assert(!D||!!J,"A `YieldExpression` with an asteriskToken must have an expression.");let j=b(229);return j.expression=J&&n().parenthesizeExpressionForDisallowedComma(J),j.asteriskToken=D,j.transformFlags|=Kr(j.expression)|Kr(j.asteriskToken)|1024|128|1048576,j}function $y(D,J,j){return D.expression!==j||D.asteriskToken!==J?Fr(Rs(J,j),D):D}function e2(D){let J=b(230);return J.expression=n().parenthesizeExpressionForDisallowedComma(D),J.transformFlags|=Kr(J.expression)|1024|32768,J}function gA(D,J){return D.expression!==J?Fr(e2(J),D):D}function Jy(D,J,j,ae,je){let Jt=N(231);return Jt.modifiers=$0(D),Jt.name=Cu(J),Jt.typeParameters=$0(j),Jt.heritageClauses=$0(ae),Jt.members=F(je),Jt.transformFlags|=V0(Jt.modifiers)|Ty(Jt.name)|V0(Jt.typeParameters)|V0(Jt.heritageClauses)|V0(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.jsDoc=void 0,Jt}function L4(D,J,j,ae,je,Jt){return D.modifiers!==J||D.name!==j||D.typeParameters!==ae||D.heritageClauses!==je||D.members!==Jt?Fr(Jy(J,j,ae,je,Jt),D):D}function Iy(){return b(232)}function uh(D,J){let j=b(233);return j.expression=n().parenthesizeLeftSideOfAccess(D,!1),j.typeArguments=J&&n().parenthesizeTypeArguments(J),j.transformFlags|=Kr(j.expression)|V0(j.typeArguments)|1024,j}function h1(D,J,j){return D.expression!==J||D.typeArguments!==j?Fr(uh(J,j),D):D}function H_(D,J){let j=b(234);return j.expression=D,j.type=J,j.transformFlags|=Kr(j.expression)|Kr(j.type)|1,j}function od(D,J,j){return D.expression!==J||D.type!==j?Fr(H_(J,j),D):D}function m3(D){let J=b(235);return J.expression=n().parenthesizeLeftSideOfAccess(D,!1),J.transformFlags|=Kr(J.expression)|1,J}function xA(D,J){return nQi(D)?p1(D,J):D.expression!==J?Fr(m3(J),D):D}function sd(D,J){let j=b(238);return j.expression=D,j.type=J,j.transformFlags|=Kr(j.expression)|Kr(j.type)|1,j}function d3(D,J,j){return D.expression!==J||D.type!==j?Fr(sd(J,j),D):D}function ld(D){let J=b(235);return J.flags|=64,J.expression=n().parenthesizeLeftSideOfAccess(D,!0),J.transformFlags|=Kr(J.expression)|1,J}function p1(D,J){return Mr.assert(!!(D.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),D.expression!==J?Fr(ld(J),D):D}function oh(D,J){let j=b(236);switch(j.keywordToken=D,j.name=J,j.transformFlags|=Kr(j.name),D){case 105:j.transformFlags|=1024;break;case 102:j.transformFlags|=32;break;default:return Mr.assertNever(D)}return j.flowNode=void 0,j}function X4(D,J){return D.name!==J?Fr(oh(D.keywordToken,J),D):D}function t2(D,J){let j=b(239);return j.expression=D,j.literal=J,j.transformFlags|=Kr(j.expression)|Kr(j.literal)|1024,j}function uf(D,J,j){return D.expression!==J||D.literal!==j?Fr(t2(J,j),D):D}function f1(){let D=b(240);return D.transformFlags|=1024,D}function r2(D,J){let j=b(241);return j.statements=F(D),j.multiLine=J,j.transformFlags|=V0(j.statements),j.jsDoc=void 0,j.locals=void 0,j.nextContainer=void 0,j}function My(D,J){return D.statements!==J?Fr(r2(J,D.multiLine),D):D}function j4(D,J){let j=b(243);return j.modifiers=$0(D),j.declarationList=zC(J)?lh(J):J,j.transformFlags|=V0(j.modifiers)|Kr(j.declarationList),Cy(j.modifiers)&128&&(j.transformFlags=1),j.jsDoc=void 0,j.flowNode=void 0,j}function Jc(D,J,j){return D.modifiers!==J||D.declarationList!==j?Fr(j4(J,j),D):D}function ap(){let D=b(242);return D.jsDoc=void 0,D}function dl(D){let J=b(244);return J.expression=n().parenthesizeExpressionOfExpressionStatement(D),J.transformFlags|=Kr(J.expression),J.jsDoc=void 0,J.flowNode=void 0,J}function m1(D,J){return D.expression!==J?Fr(dl(J),D):D}function zy(D,J,j){let ae=b(245);return ae.expression=D,ae.thenStatement=Mo(J),ae.elseStatement=Mo(j),ae.transformFlags|=Kr(ae.expression)|Kr(ae.thenStatement)|Kr(ae.elseStatement),ae.jsDoc=void 0,ae.flowNode=void 0,ae}function y3(D,J,j,ae){return D.expression!==J||D.thenStatement!==j||D.elseStatement!==ae?Fr(zy(J,j,ae),D):D}function up(D,J){let j=b(246);return j.statement=Mo(D),j.expression=J,j.transformFlags|=Kr(j.statement)|Kr(j.expression),j.jsDoc=void 0,j.flowNode=void 0,j}function K4(D,J,j){return D.statement!==J||D.expression!==j?Fr(up(J,j),D):D}function vA(D,J){let j=b(247);return j.expression=D,j.statement=Mo(J),j.transformFlags|=Kr(j.expression)|Kr(j.statement),j.jsDoc=void 0,j.flowNode=void 0,j}function d1(D,J,j){return D.expression!==J||D.statement!==j?Fr(vA(J,j),D):D}function g3(D,J,j,ae){let je=b(248);return je.initializer=D,je.condition=J,je.incrementor=j,je.statement=Mo(ae),je.transformFlags|=Kr(je.initializer)|Kr(je.condition)|Kr(je.incrementor)|Kr(je.statement),je.jsDoc=void 0,je.locals=void 0,je.nextContainer=void 0,je.flowNode=void 0,je}function U4(D,J,j,ae,je){return D.initializer!==J||D.condition!==j||D.incrementor!==ae||D.statement!==je?Fr(g3(J,j,ae,je),D):D}function n2(D,J,j){let ae=b(249);return ae.initializer=D,ae.expression=J,ae.statement=Mo(j),ae.transformFlags|=Kr(ae.initializer)|Kr(ae.expression)|Kr(ae.statement),ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae.flowNode=void 0,ae}function Ic(D,J,j,ae){return D.initializer!==J||D.expression!==j||D.statement!==ae?Fr(n2(J,j,ae),D):D}function x3(D,J,j,ae){let je=b(250);return je.awaitModifier=D,je.initializer=J,je.expression=n().parenthesizeExpressionForDisallowedComma(j),je.statement=Mo(ae),je.transformFlags|=Kr(je.awaitModifier)|Kr(je.initializer)|Kr(je.expression)|Kr(je.statement)|1024,D&&(je.transformFlags|=128),je.jsDoc=void 0,je.locals=void 0,je.nextContainer=void 0,je.flowNode=void 0,je}function uE(D,J,j,ae,je){return D.awaitModifier!==J||D.initializer!==j||D.expression!==ae||D.statement!==je?Fr(x3(J,j,ae,je),D):D}function Bu(D){let J=b(251);return J.label=Cu(D),J.transformFlags|=Kr(J.label)|4194304,J.jsDoc=void 0,J.flowNode=void 0,J}function Vy(D,J){return D.label!==J?Fr(Bu(J),D):D}function i2(D){let J=b(252);return J.label=Cu(D),J.transformFlags|=Kr(J.label)|4194304,J.jsDoc=void 0,J.flowNode=void 0,J}function v3(D,J){return D.label!==J?Fr(i2(J),D):D}function op(D){let J=b(253);return J.expression=D,J.transformFlags|=Kr(J.expression)|128|4194304,J.jsDoc=void 0,J.flowNode=void 0,J}function DA(D,J){return D.expression!==J?Fr(op(J),D):D}function Z4(D,J){let j=b(254);return j.expression=D,j.statement=Mo(J),j.transformFlags|=Kr(j.expression)|Kr(j.statement),j.jsDoc=void 0,j.flowNode=void 0,j}function O4(D,J,j){return D.expression!==J||D.statement!==j?Fr(Z4(J,j),D):D}function Q4(D,J){let j=b(255);return j.expression=n().parenthesizeExpressionForDisallowedComma(D),j.caseBlock=J,j.transformFlags|=Kr(j.expression)|Kr(j.caseBlock),j.jsDoc=void 0,j.flowNode=void 0,j.possiblyExhaustive=!1,j}function B7(D,J,j){return D.expression!==J||D.caseBlock!==j?Fr(Q4(J,j),D):D}function yl(D,J){let j=b(256);return j.label=Cu(D),j.statement=Mo(J),j.transformFlags|=Kr(j.label)|Kr(j.statement),j.jsDoc=void 0,j.flowNode=void 0,j}function q7(D,J,j){return D.label!==J||D.statement!==j?Fr(yl(J,j),D):D}function W4(D){let J=b(257);return J.expression=D,J.transformFlags|=Kr(J.expression),J.jsDoc=void 0,J.flowNode=void 0,J}function Ly(D,J){return D.expression!==J?Fr(W4(J),D):D}function sh(D,J,j){let ae=b(258);return ae.tryBlock=D,ae.catchClause=J,ae.finallyBlock=j,ae.transformFlags|=Kr(ae.tryBlock)|Kr(ae.catchClause)|Kr(ae.finallyBlock),ae.jsDoc=void 0,ae.flowNode=void 0,ae}function sp(D,J,j,ae){return D.tryBlock!==J||D.catchClause!==j||D.finallyBlock!==ae?Fr(sh(J,j,ae),D):D}function Mc(){let D=b(259);return D.jsDoc=void 0,D.flowNode=void 0,D}function of(D,J,j,ae){let je=N(260);return je.name=Cu(D),je.exclamationToken=J,je.type=j,je.initializer=K3(ae),je.transformFlags|=Ty(je.name)|Kr(je.initializer)|(je.exclamationToken??je.type?1:0),je.jsDoc=void 0,je}function sf(D,J,j,ae,je){return D.name!==J||D.type!==ae||D.exclamationToken!==j||D.initializer!==je?Fr(of(J,j,ae,je),D):D}function lh(D,J=0){let j=b(261);return j.flags|=J&7,j.declarations=F(D),j.transformFlags|=V0(j.declarations)|4194304,J&7&&(j.transformFlags|=263168),J&4&&(j.transformFlags|=4),j}function D3(D,J){return D.declarations!==J?Fr(lh(J,D.flags),D):D}function a2(D,J,j,ae,je,Jt,$r){let si=N(262);if(si.modifiers=$0(D),si.asteriskToken=J,si.name=Cu(j),si.typeParameters=$0(ae),si.parameters=F(je),si.type=Jt,si.body=$r,!si.body||Cy(si.modifiers)&128)si.transformFlags=1;else{let ua=Cy(si.modifiers)&1024,Ns=!!si.asteriskToken,gl=ua&&Ns;si.transformFlags=V0(si.modifiers)|Kr(si.asteriskToken)|Ty(si.name)|V0(si.typeParameters)|V0(si.parameters)|Kr(si.type)|Kr(si.body)&-67108865|(gl?128:ua?256:Ns?2048:0)|(si.typeParameters||si.type?1:0)|4194304}return si.typeArguments=void 0,si.jsDoc=void 0,si.locals=void 0,si.nextContainer=void 0,si.endFlowNode=void 0,si.returnFlowNode=void 0,si}function lf(D,J,j,ae,je,Jt,$r,si){return D.modifiers!==J||D.asteriskToken!==j||D.name!==ae||D.typeParameters!==je||D.parameters!==Jt||D.type!==$r||D.body!==si?Y4(a2(J,j,ae,je,Jt,$r,si),D):D}function Y4(D,J){return D!==J&&D.modifiers===J.modifiers&&(D.modifiers=J.modifiers),E(D,J)}function H4(D,J,j,ae,je){let Jt=N(263);return Jt.modifiers=$0(D),Jt.name=Cu(J),Jt.typeParameters=$0(j),Jt.heritageClauses=$0(ae),Jt.members=F(je),Cy(Jt.modifiers)&128?Jt.transformFlags=1:(Jt.transformFlags|=V0(Jt.modifiers)|Ty(Jt.name)|V0(Jt.typeParameters)|V0(Jt.heritageClauses)|V0(Jt.members)|(Jt.typeParameters?1:0)|1024,Jt.transformFlags&8192&&(Jt.transformFlags|=1)),Jt.jsDoc=void 0,Jt}function $7(D,J,j,ae,je,Jt){return D.modifiers!==J||D.name!==j||D.typeParameters!==ae||D.heritageClauses!==je||D.members!==Jt?Fr(H4(J,j,ae,je,Jt),D):D}function _d(D,J,j,ae,je){let Jt=N(264);return Jt.modifiers=$0(D),Jt.name=Cu(J),Jt.typeParameters=$0(j),Jt.heritageClauses=$0(ae),Jt.members=F(je),Jt.transformFlags=1,Jt.jsDoc=void 0,Jt}function w3(D,J,j,ae,je,Jt){return D.modifiers!==J||D.name!==j||D.typeParameters!==ae||D.heritageClauses!==je||D.members!==Jt?Fr(_d(J,j,ae,je,Jt),D):D}function Lu(D,J,j,ae){let je=N(265);return je.modifiers=$0(D),je.name=Cu(J),je.typeParameters=$0(j),je.type=ae,je.transformFlags=1,je.jsDoc=void 0,je.locals=void 0,je.nextContainer=void 0,je}function T_(D,J,j,ae,je){return D.modifiers!==J||D.name!==j||D.typeParameters!==ae||D.type!==je?Fr(Lu(J,j,ae,je),D):D}function Xy(D,J,j){let ae=N(266);return ae.modifiers=$0(D),ae.name=Cu(J),ae.members=F(j),ae.transformFlags|=V0(ae.modifiers)|Kr(ae.name)|V0(ae.members)|1,ae.transformFlags&=-67108865,ae.jsDoc=void 0,ae}function lp(D,J,j,ae){return D.modifiers!==J||D.name!==j||D.members!==ae?Fr(Xy(J,j,ae),D):D}function wA(D,J,j,ae=0){let je=N(267);return je.modifiers=$0(D),je.flags|=ae&2088,je.name=J,je.body=j,Cy(je.modifiers)&128?je.transformFlags=1:je.transformFlags|=V0(je.modifiers)|Kr(je.name)|Kr(je.body)|1,je.transformFlags&=-67108865,je.jsDoc=void 0,je.locals=void 0,je.nextContainer=void 0,je}function Xu(D,J,j,ae){return D.modifiers!==J||D.name!==j||D.body!==ae?Fr(wA(J,j,ae,D.flags),D):D}function y1(D){let J=b(268);return J.statements=F(D),J.transformFlags|=V0(J.statements),J.jsDoc=void 0,J}function Io(D,J){return D.statements!==J?Fr(y1(J),D):D}function A3(D){let J=b(269);return J.clauses=F(D),J.transformFlags|=V0(J.clauses),J.locals=void 0,J.nextContainer=void 0,J}function b3(D,J){return D.clauses!==J?Fr(A3(J),D):D}function jy(D){let J=N(270);return J.name=Cu(D),J.transformFlags|=TK(J.name)|1,J.modifiers=void 0,J.jsDoc=void 0,J}function G4(D,J){return D.name!==J?Ky(jy(J),D):D}function Ky(D,J){return D!==J&&(D.modifiers=J.modifiers),Fr(D,J)}function u2(D,J,j,ae){let je=N(271);return je.modifiers=$0(D),je.name=Cu(j),je.isTypeOnly=J,je.moduleReference=ae,je.transformFlags|=V0(je.modifiers)|TK(je.name)|Kr(je.moduleReference),Bhr(je.moduleReference)||(je.transformFlags|=1),je.transformFlags&=-67108865,je.jsDoc=void 0,je}function _f(D,J,j,ae,je){return D.modifiers!==J||D.isTypeOnly!==j||D.name!==ae||D.moduleReference!==je?Fr(u2(J,j,ae,je),D):D}function T3(D,J,j,ae){let je=b(272);return je.modifiers=$0(D),je.importClause=J,je.moduleSpecifier=j,je.attributes=je.assertClause=ae,je.transformFlags|=Kr(je.importClause)|Kr(je.moduleSpecifier),je.transformFlags&=-67108865,je.jsDoc=void 0,je}function C3(D,J,j,ae,je){return D.modifiers!==J||D.importClause!==j||D.moduleSpecifier!==ae||D.attributes!==je?Fr(T3(J,j,ae,je),D):D}function cd(D,J,j){let ae=N(273);return ae.isTypeOnly=D,ae.name=J,ae.namedBindings=j,ae.transformFlags|=Kr(ae.name)|Kr(ae.namedBindings),D&&(ae.transformFlags|=1),ae.transformFlags&=-67108865,ae}function cf(D,J,j,ae){return D.isTypeOnly!==J||D.name!==j||D.namedBindings!==ae?Fr(cd(J,j,ae),D):D}function R4(D,J){let j=b(300);return j.elements=F(D),j.multiLine=J,j.token=132,j.transformFlags|=4,j}function e8(D,J,j){return D.elements!==J||D.multiLine!==j?Fr(R4(J,j),D):D}function hd(D,J){let j=b(301);return j.name=D,j.value=J,j.transformFlags|=4,j}function E3(D,J,j){return D.name!==J||D.value!==j?Fr(hd(J,j),D):D}function k3(D,J){let j=b(302);return j.assertClause=D,j.multiLine=J,j}function F3(D,J,j){return D.assertClause!==J||D.multiLine!==j?Fr(k3(J,j),D):D}function AA(D,J,j){let ae=b(300);return ae.token=j??118,ae.elements=F(D),ae.multiLine=J,ae.transformFlags|=4,ae}function o2(D,J,j){return D.elements!==J||D.multiLine!==j?Fr(AA(J,j,D.token),D):D}function pd(D,J){let j=b(301);return j.name=D,j.value=J,j.transformFlags|=4,j}function Uy(D,J,j){return D.name!==J||D.value!==j?Fr(pd(J,j),D):D}function _p(D){let J=N(274);return J.name=D,J.transformFlags|=Kr(J.name),J.transformFlags&=-67108865,J}function bA(D,J){return D.name!==J?Fr(_p(J),D):D}function z(D){let J=N(280);return J.name=D,J.transformFlags|=Kr(J.name)|32,J.transformFlags&=-67108865,J}function ce(D,J){return D.name!==J?Fr(z(J),D):D}function Ke(D){let J=b(275);return J.elements=F(D),J.transformFlags|=V0(J.elements),J.transformFlags&=-67108865,J}function Pt(D,J){return D.elements!==J?Fr(Ke(J),D):D}function cr(D,J,j){let ae=N(276);return ae.isTypeOnly=D,ae.propertyName=J,ae.name=j,ae.transformFlags|=Kr(ae.propertyName)|Kr(ae.name),ae.transformFlags&=-67108865,ae}function Lr(D,J,j,ae){return D.isTypeOnly!==J||D.propertyName!==j||D.name!==ae?Fr(cr(J,j,ae),D):D}function Tn(D,J,j){let ae=N(277);return ae.modifiers=$0(D),ae.isExportEquals=J,ae.expression=J?n().parenthesizeRightSideOfBinary(64,void 0,j):n().parenthesizeExpressionOfExportDefault(j),ae.transformFlags|=V0(ae.modifiers)|Kr(ae.expression),ae.transformFlags&=-67108865,ae.jsDoc=void 0,ae}function Wi(D,J,j){return D.modifiers!==J||D.expression!==j?Fr(Tn(J,D.isExportEquals,j),D):D}function v0(D,J,j,ae,je){let Jt=N(278);return Jt.modifiers=$0(D),Jt.isTypeOnly=J,Jt.exportClause=j,Jt.moduleSpecifier=ae,Jt.attributes=Jt.assertClause=je,Jt.transformFlags|=V0(Jt.modifiers)|Kr(Jt.exportClause)|Kr(Jt.moduleSpecifier),Jt.transformFlags&=-67108865,Jt.jsDoc=void 0,Jt}function ha(D,J,j,ae,je,Jt){return D.modifiers!==J||D.isTypeOnly!==j||D.exportClause!==ae||D.moduleSpecifier!==je||D.attributes!==Jt?fa(v0(J,j,ae,je,Jt),D):D}function fa(D,J){return D!==J&&D.modifiers===J.modifiers&&(D.modifiers=J.modifiers),Fr(D,J)}function ya(D){let J=b(279);return J.elements=F(D),J.transformFlags|=V0(J.elements),J.transformFlags&=-67108865,J}function no(D,J){return D.elements!==J?Fr(ya(J),D):D}function g1(D,J,j){let ae=b(281);return ae.isTypeOnly=D,ae.propertyName=Cu(J),ae.name=Cu(j),ae.transformFlags|=Kr(ae.propertyName)|Kr(ae.name),ae.transformFlags&=-67108865,ae.jsDoc=void 0,ae}function fd(D,J,j,ae){return D.isTypeOnly!==J||D.propertyName!==j||D.name!==ae?Fr(g1(J,j,ae),D):D}function G_(){let D=N(282);return D.jsDoc=void 0,D}function x1(D){let J=b(283);return J.expression=D,J.transformFlags|=Kr(J.expression),J.transformFlags&=-67108865,J}function As(D,J){return D.expression!==J?Fr(x1(J),D):D}function u_(D){return b(D)}function C_(D,J,j=!1){let ae=v1(D,j?J&&n().parenthesizeNonArrayTypeOfPostfixType(J):J);return ae.postfix=j,ae}function v1(D,J){let j=b(D);return j.type=J,j}function H0(D,J,j){return J.type!==j?Fr(C_(D,j,J.postfix),J):J}function Oa(D,J,j){return J.type!==j?Fr(v1(D,j),J):J}function io(D,J){let j=N(317);return j.parameters=$0(D),j.type=J,j.transformFlags=V0(j.parameters)|(j.type?1:0),j.jsDoc=void 0,j.locals=void 0,j.nextContainer=void 0,j.typeArguments=void 0,j}function R_(D,J,j){return D.parameters!==J||D.type!==j?Fr(io(J,j),D):D}function hf(D,J=!1){let j=N(322);return j.jsDocPropertyTags=$0(D),j.isArrayType=J,j}function pf(D,J,j){return D.jsDocPropertyTags!==J||D.isArrayType!==j?Fr(hf(J,j),D):D}function E_(D){let J=b(309);return J.type=D,J}function ff(D,J){return D.type!==J?Fr(E_(J),D):D}function J7(D,J,j){let ae=N(323);return ae.typeParameters=$0(D),ae.parameters=F(J),ae.type=j,ae.jsDoc=void 0,ae.locals=void 0,ae.nextContainer=void 0,ae}function S3(D,J,j,ae){return D.typeParameters!==J||D.parameters!==j||D.type!==ae?Fr(J7(J,j,ae),D):D}function qu(D){let J=Jye(D.kind);return D.tagName.escapedText===AK(J)?D.tagName:Z(J)}function s2(D,J,j){let ae=b(D);return ae.tagName=J,ae.comment=j,ae}function md(D,J,j){let ae=N(D);return ae.tagName=J,ae.comment=j,ae}function cp(D,J,j,ae){let je=s2(345,D??Z("template"),ae);return je.constraint=J,je.typeParameters=F(j),je}function oE(D,J=qu(D),j,ae,je){return D.tagName!==J||D.constraint!==j||D.typeParameters!==ae||D.comment!==je?Fr(cp(J,j,ae,je),D):D}function dd(D,J,j,ae){let je=md(346,D??Z("typedef"),ae);return je.typeExpression=J,je.fullName=j,je.name=v1r(j),je.locals=void 0,je.nextContainer=void 0,je}function _N(D,J=qu(D),j,ae,je){return D.tagName!==J||D.typeExpression!==j||D.fullName!==ae||D.comment!==je?Fr(dd(J,j,ae,je),D):D}function TA(D,J,j,ae,je,Jt){let $r=md(341,D??Z("param"),Jt);return $r.typeExpression=ae,$r.name=J,$r.isNameFirst=!!je,$r.isBracketed=j,$r}function cN(D,J=qu(D),j,ae,je,Jt,$r){return D.tagName!==J||D.name!==j||D.isBracketed!==ae||D.typeExpression!==je||D.isNameFirst!==Jt||D.comment!==$r?Fr(TA(J,j,ae,je,Jt,$r),D):D}function CA(D,J,j,ae,je,Jt){let $r=md(348,D??Z("prop"),Jt);return $r.typeExpression=ae,$r.name=J,$r.isNameFirst=!!je,$r.isBracketed=j,$r}function sE(D,J=qu(D),j,ae,je,Jt,$r){return D.tagName!==J||D.name!==j||D.isBracketed!==ae||D.typeExpression!==je||D.isNameFirst!==Jt||D.comment!==$r?Fr(CA(J,j,ae,je,Jt,$r),D):D}function hN(D,J,j,ae){let je=md(338,D??Z("callback"),ae);return je.typeExpression=J,je.fullName=j,je.name=v1r(j),je.locals=void 0,je.nextContainer=void 0,je}function pN(D,J=qu(D),j,ae,je){return D.tagName!==J||D.typeExpression!==j||D.fullName!==ae||D.comment!==je?Fr(hN(J,j,ae,je),D):D}function fN(D,J,j){let ae=s2(339,D??Z("overload"),j);return ae.typeExpression=J,ae}function EA(D,J=qu(D),j,ae){return D.tagName!==J||D.typeExpression!==j||D.comment!==ae?Fr(fN(J,j,ae),D):D}function kA(D,J,j){let ae=s2(328,D??Z("augments"),j);return ae.class=J,ae}function P3(D,J=qu(D),j,ae){return D.tagName!==J||D.class!==j||D.comment!==ae?Fr(kA(J,j,ae),D):D}function lE(D,J,j){let ae=s2(329,D??Z("implements"),j);return ae.class=J,ae}function yd(D,J,j){let ae=s2(347,D??Z("see"),j);return ae.name=J,ae}function t8(D,J,j,ae){return D.tagName!==J||D.name!==j||D.comment!==ae?Fr(yd(J,j,ae),D):D}function ec(D){let J=b(310);return J.name=D,J}function I7(D,J){return D.name!==J?Fr(ec(J),D):D}function Wo(D,J){let j=b(311);return j.left=D,j.right=J,j.transformFlags|=Kr(j.left)|Kr(j.right),j}function $I(D,J,j){return D.left!==J||D.right!==j?Fr(Wo(J,j),D):D}function mN(D,J){let j=b(324);return j.name=D,j.text=J,j}function zc(D,J,j){return D.name!==J?Fr(mN(J,j),D):D}function dN(D,J){let j=b(325);return j.name=D,j.text=J,j}function M7(D,J,j){return D.name!==J?Fr(dN(J,j),D):D}function _E(D,J){let j=b(326);return j.name=D,j.text=J,j}function z7(D,J,j){return D.name!==J?Fr(_E(J,j),D):D}function cE(D,J=qu(D),j,ae){return D.tagName!==J||D.class!==j||D.comment!==ae?Fr(lE(J,j,ae),D):D}function hE(D,J,j){return s2(D,J??Z(Jye(D)),j)}function yN(D,J,j=qu(J),ae){return J.tagName!==j||J.comment!==ae?Fr(hE(D,j,ae),J):J}function gN(D,J,j,ae){let je=s2(D,J??Z(Jye(D)),ae);return je.typeExpression=j,je}function xN(D,J,j=qu(J),ae,je){return J.tagName!==j||J.typeExpression!==ae||J.comment!==je?Fr(gN(D,j,ae,je),J):J}function tc(D,J){return s2(327,D,J)}function vN(D,J,j){return D.tagName!==J||D.comment!==j?Fr(tc(J,j),D):D}function pE(D,J,j){let ae=md(340,D??Z(Jye(340)),j);return ae.typeExpression=J,ae.locals=void 0,ae.nextContainer=void 0,ae}function FA(D,J=qu(D),j,ae){return D.tagName!==J||D.typeExpression!==j||D.comment!==ae?Fr(pE(J,j,ae),D):D}function SA(D,J,j,ae,je){let Jt=s2(351,D??Z("import"),je);return Jt.importClause=J,Jt.moduleSpecifier=j,Jt.attributes=ae,Jt.comment=je,Jt}function fE(D,J,j,ae,je,Jt){return D.tagName!==J||D.comment!==Jt||D.importClause!==j||D.moduleSpecifier!==ae||D.attributes!==je?Fr(SA(J,j,ae,je,Jt),D):D}function mE(D){let J=b(321);return J.text=D,J}function JI(D,J){return D.text!==J?Fr(mE(J),D):D}function r8(D,J){let j=b(320);return j.comment=D,j.tags=$0(J),j}function DN(D,J,j){return D.comment!==J||D.tags!==j?Fr(r8(J,j),D):D}function dE(D,J,j){let ae=b(284);return ae.openingElement=D,ae.children=F(J),ae.closingElement=j,ae.transformFlags|=Kr(ae.openingElement)|V0(ae.children)|Kr(ae.closingElement)|2,ae}function V7(D,J,j,ae){return D.openingElement!==J||D.children!==j||D.closingElement!==ae?Fr(dE(J,j,ae),D):D}function mf(D,J,j){let ae=b(285);return ae.tagName=D,ae.typeArguments=$0(J),ae.attributes=j,ae.transformFlags|=Kr(ae.tagName)|V0(ae.typeArguments)|Kr(ae.attributes)|2,ae.typeArguments&&(ae.transformFlags|=1),ae}function N3(D,J,j,ae){return D.tagName!==J||D.typeArguments!==j||D.attributes!==ae?Fr(mf(J,j,ae),D):D}function PA(D,J,j){let ae=b(286);return ae.tagName=D,ae.typeArguments=$0(J),ae.attributes=j,ae.transformFlags|=Kr(ae.tagName)|V0(ae.typeArguments)|Kr(ae.attributes)|2,J&&(ae.transformFlags|=1),ae}function _h(D,J,j,ae){return D.tagName!==J||D.typeArguments!==j||D.attributes!==ae?Fr(PA(J,j,ae),D):D}function B3(D){let J=b(287);return J.tagName=D,J.transformFlags|=Kr(J.tagName)|2,J}function us(D,J){return D.tagName!==J?Fr(B3(J),D):D}function NA(D,J,j){let ae=b(288);return ae.openingFragment=D,ae.children=F(J),ae.closingFragment=j,ae.transformFlags|=Kr(ae.openingFragment)|V0(ae.children)|Kr(ae.closingFragment)|2,ae}function yE(D,J,j,ae){return D.openingFragment!==J||D.children!==j||D.closingFragment!==ae?Fr(NA(J,j,ae),D):D}function n8(D,J){let j=b(12);return j.text=D,j.containsOnlyTriviaWhiteSpaces=!!J,j.transformFlags|=2,j}function gE(D,J,j){return D.text!==J||D.containsOnlyTriviaWhiteSpaces!==j?Fr(n8(J,j),D):D}function xE(){let D=b(289);return D.transformFlags|=2,D}function wN(){let D=b(290);return D.transformFlags|=2,D}function vE(D,J){let j=N(291);return j.name=D,j.initializer=J,j.transformFlags|=Kr(j.name)|Kr(j.initializer)|2,j}function q3(D,J,j){return D.name!==J||D.initializer!==j?Fr(vE(J,j),D):D}function $3(D){let J=N(292);return J.properties=F(D),J.transformFlags|=V0(J.properties)|2,J}function AN(D,J){return D.properties!==J?Fr($3(J),D):D}function DE(D){let J=b(293);return J.expression=D,J.transformFlags|=Kr(J.expression)|2,J}function bN(D,J){return D.expression!==J?Fr(DE(J),D):D}function J3(D,J){let j=b(294);return j.dotDotDotToken=D,j.expression=J,j.transformFlags|=Kr(j.dotDotDotToken)|Kr(j.expression)|2,j}function i8(D,J){return D.expression!==J?Fr(J3(D.dotDotDotToken,J),D):D}function wE(D,J){let j=b(295);return j.namespace=D,j.name=J,j.transformFlags|=Kr(j.namespace)|Kr(j.name)|2,j}function Zy(D,J,j){return D.namespace!==J||D.name!==j?Fr(wE(J,j),D):D}function AE(D,J){let j=b(296);return j.expression=n().parenthesizeExpressionForDisallowedComma(D),j.statements=F(J),j.transformFlags|=Kr(j.expression)|V0(j.statements),j.jsDoc=void 0,j}function TN(D,J,j){return D.expression!==J||D.statements!==j?Fr(AE(J,j),D):D}function Oy(D){let J=b(297);return J.statements=F(D),J.transformFlags=V0(J.statements),J}function bE(D,J){return D.statements!==J?Fr(Oy(J),D):D}function CN(D,J){let j=b(298);switch(j.token=D,j.types=F(J),j.transformFlags|=V0(j.types),D){case 96:j.transformFlags|=1024;break;case 119:j.transformFlags|=1;break;default:return Mr.assertNever(D)}return j}function II(D,J){return D.types!==J?Fr(CN(D.token,J),D):D}function TE(D,J){let j=b(299);return j.variableDeclaration=nc(D),j.block=J,j.transformFlags|=Kr(j.variableDeclaration)|Kr(j.block)|(D?0:64),j.locals=void 0,j.nextContainer=void 0,j}function BA(D,J,j){return D.variableDeclaration!==J||D.block!==j?Fr(TE(J,j),D):D}function I3(D,J){let j=N(303);return j.name=Cu(D),j.initializer=n().parenthesizeExpressionForDisallowedComma(J),j.transformFlags|=Ty(j.name)|Kr(j.initializer),j.modifiers=void 0,j.questionToken=void 0,j.exclamationToken=void 0,j.jsDoc=void 0,j}function Qy(D,J,j){return D.name!==J||D.initializer!==j?a8(I3(J,j),D):D}function a8(D,J){return D!==J&&(D.modifiers=J.modifiers,D.questionToken=J.questionToken,D.exclamationToken=J.exclamationToken),Fr(D,J)}function CE(D,J){let j=N(304);return j.name=Cu(D),j.objectAssignmentInitializer=J&&n().parenthesizeExpressionForDisallowedComma(J),j.transformFlags|=TK(j.name)|Kr(j.objectAssignmentInitializer)|1024,j.equalsToken=void 0,j.modifiers=void 0,j.questionToken=void 0,j.exclamationToken=void 0,j.jsDoc=void 0,j}function qA(D,J,j){return D.name!==J||D.objectAssignmentInitializer!==j?EN(CE(J,j),D):D}function EN(D,J){return D!==J&&(D.modifiers=J.modifiers,D.questionToken=J.questionToken,D.exclamationToken=J.exclamationToken,D.equalsToken=J.equalsToken),Fr(D,J)}function M3(D){let J=N(305);return J.expression=n().parenthesizeExpressionForDisallowedComma(D),J.transformFlags|=Kr(J.expression)|128|65536,J.jsDoc=void 0,J}function l2(D,J){return D.expression!==J?Fr(M3(J),D):D}function D1(D,J){let j=N(306);return j.name=Cu(D),j.initializer=J&&n().parenthesizeExpressionForDisallowedComma(J),j.transformFlags|=Kr(j.name)|Kr(j.initializer)|1,j.jsDoc=void 0,j}function EE(D,J,j){return D.name!==J||D.initializer!==j?Fr(D1(J,j),D):D}function kN(D,J,j){let ae=t.createBaseSourceFileNode(307);return ae.statements=F(D),ae.endOfFileToken=J,ae.flags|=j,ae.text="",ae.fileName="",ae.path="",ae.resolvedPath="",ae.originalFileName="",ae.languageVersion=1,ae.languageVariant=0,ae.scriptKind=0,ae.isDeclarationFile=!1,ae.hasNoDefaultLib=!1,ae.transformFlags|=V0(ae.statements)|Kr(ae.endOfFileToken),ae.locals=void 0,ae.nextContainer=void 0,ae.endFlowNode=void 0,ae.nodeCount=0,ae.identifierCount=0,ae.symbolCount=0,ae.parseDiagnostics=void 0,ae.bindDiagnostics=void 0,ae.bindSuggestionDiagnostics=void 0,ae.lineMap=void 0,ae.externalModuleIndicator=void 0,ae.setExternalModuleIndicator=void 0,ae.pragmas=void 0,ae.checkJsDirective=void 0,ae.referencedFiles=void 0,ae.typeReferenceDirectives=void 0,ae.libReferenceDirectives=void 0,ae.amdDependencies=void 0,ae.commentDirectives=void 0,ae.identifiers=void 0,ae.packageJsonLocations=void 0,ae.packageJsonScope=void 0,ae.imports=void 0,ae.moduleAugmentations=void 0,ae.ambientModuleNames=void 0,ae.classifiableNames=void 0,ae.impliedNodeFormat=void 0,ae}function $A(D){let J=Object.create(D.redirectTarget);return Object.defineProperties(J,{id:{get(){return this.redirectInfo.redirectTarget.id},set(j){this.redirectInfo.redirectTarget.id=j}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(j){this.redirectInfo.redirectTarget.symbol=j}}}),J.redirectInfo=D,J}function FN(D){let J=$A(D.redirectInfo);return J.flags|=D.flags&-17,J.fileName=D.fileName,J.path=D.path,J.resolvedPath=D.resolvedPath,J.originalFileName=D.originalFileName,J.packageJsonLocations=D.packageJsonLocations,J.packageJsonScope=D.packageJsonScope,J.emitNode=void 0,J}function SN(D){let J=t.createBaseSourceFileNode(307);J.flags|=D.flags&-17;for(let j in D)if(!(_A(J,j)||!_A(D,j))){if(j==="emitNode"){J.emitNode=void 0;continue}J[j]=D[j]}return J}function z3(D){let J=D.redirectInfo?FN(D):SN(D);return r(J,D),J}function PN(D,J,j,ae,je,Jt,$r){let si=z3(D);return si.statements=F(J),si.isDeclarationFile=j,si.referencedFiles=ae,si.typeReferenceDirectives=je,si.hasNoDefaultLib=Jt,si.libReferenceDirectives=$r,si.transformFlags=V0(si.statements)|Kr(si.endOfFileToken),si}function NN(D,J,j=D.isDeclarationFile,ae=D.referencedFiles,je=D.typeReferenceDirectives,Jt=D.hasNoDefaultLib,$r=D.libReferenceDirectives){return D.statements!==J||D.isDeclarationFile!==j||D.referencedFiles!==ae||D.typeReferenceDirectives!==je||D.hasNoDefaultLib!==Jt||D.libReferenceDirectives!==$r?Fr(PN(D,J,j,ae,je,Jt,$r),D):D}function V3(D){let J=b(308);return J.sourceFiles=D,J.syntheticFileReferences=void 0,J.syntheticTypeReferences=void 0,J.syntheticLibReferences=void 0,J.hasNoDefaultLib=void 0,J}function BN(D,J){return D.sourceFiles!==J?Fr(V3(J),D):D}function u8(D,J=!1,j){let ae=b(237);return ae.type=D,ae.isSpread=J,ae.tupleNameSource=j,ae}function L3(D){let J=b(352);return J._children=D,J}function X3(D){let J=b(353);return J.original=D,w7(J,D),J}function df(D,J){let j=b(355);return j.expression=D,j.original=J,j.transformFlags|=Kr(j.expression)|1,w7(j,J),j}function kE(D,J){return D.expression!==J?Fr(df(J,D.original),D):D}function MI(){return b(354)}function qN(D){if(bK(D)&&!Qye(D)&&!D.original&&!D.emitNode&&!D.id){if(OYi(D))return D.elements;if(JK(D)&&cYi(D.operatorToken))return[D.left,D.right]}return D}function JA(D){let J=b(356);return J.elements=F(AZi(D,qN)),J.transformFlags|=V0(J.elements),J}function yf(D,J){return D.elements!==J?Fr(JA(J),D):D}function hp(D,J){let j=b(357);return j.expression=D,j.thisArg=J,j.transformFlags|=Kr(j.expression)|Kr(j.thisArg),j}function Wy(D,J,j){return D.expression!==J||D.thisArg!==j?Fr(hp(J,j),D):D}function FE(D){let J=Q(D.escapedText);return J.flags|=D.flags&-17,J.transformFlags=D.transformFlags,r(J,D),setIdentifierAutoGenerate(J,{...D.emitNode.autoGenerate}),J}function $N(D){let J=Q(D.escapedText);J.flags|=D.flags&-17,J.jsDoc=D.jsDoc,J.flowNode=D.flowNode,J.symbol=D.symbol,J.transformFlags=D.transformFlags,r(J,D);let j=getIdentifierTypeArguments(D);return j&&setIdentifierTypeArguments(J,j),J}function JN(D){let J=xe(D.escapedText);return J.flags|=D.flags&-17,J.transformFlags=D.transformFlags,r(J,D),setIdentifierAutoGenerate(J,{...D.emitNode.autoGenerate}),J}function SE(D){let J=xe(D.escapedText);return J.flags|=D.flags&-17,J.transformFlags=D.transformFlags,r(J,D),J}function IA(D){if(D===void 0)return D;if(rHi(D))return z3(D);if(SK(D))return FE(D);if(bo(D))return $N(D);if(Z2r(D))return JN(D);if(lI(D))return SE(D);let J=AQe(D.kind)?t.createBaseNode(D.kind):t.createBaseTokenNode(D.kind);J.flags|=D.flags&-17,J.transformFlags=D.transformFlags,r(J,D);for(let j in D)_A(J,j)||!_A(D,j)||(J[j]=D[j]);return J}function IN(D,J,j){return ah(P7(void 0,void 0,void 0,void 0,J?[J]:[],void 0,r2(D,!0)),void 0,j?[j]:[])}function MN(D,J,j){return ah(ip(void 0,void 0,J?[J]:[],void 0,void 0,r2(D,!0)),void 0,j?[j]:[])}function Yy(){return Il(P("0"))}function PE(D){return Tn(void 0,!1,D)}function zN(D){return v0(void 0,!1,ya([g1(!1,void 0,D)]))}function MA(D,J){return J==="null"?A.createStrictEquality(D,ie()):J==="undefined"?A.createStrictEquality(D,Yy()):A.createStrictEquality(N7(D),M(J))}function L7(D,J){return J==="null"?A.createStrictInequality(D,ie()):J==="undefined"?A.createStrictInequality(D,Yy()):A.createStrictInequality(N7(D),M(J))}function Vc(D,J,j){return Rcr(D)?k7(u1(D,void 0,J),void 0,void 0,j):ah(Nc(D,J),void 0,j)}function zI(D,J,j){return Vc(D,"bind",[J,...j])}function NE(D,J,j){return Vc(D,"call",[J,...j])}function VN(D,J,j){return Vc(D,"apply",[J,j])}function o8(D,J,j){return Vc(Z(D),J,j)}function s8(D,J){return Vc(D,"slice",J===void 0?[]:[F_(J)])}function VI(D,J){return Vc(D,"concat",J)}function j3(D,J,j){return o8("Object","defineProperty",[D,F_(J),j])}function Hy(D,J){return o8("Object","getOwnPropertyDescriptor",[D,F_(J)])}function gf(D,J,j){return o8("Reflect","get",j?[D,J,j]:[D,J])}function BE(D,J,j,ae){return o8("Reflect","set",ae?[D,J,j,ae]:[D,J,j])}function gd(D,J,j){return j?(D.push(I3(J,j)),!0):!1}function xd(D,J){let j=[];gd(j,"enumerable",F_(D.enumerable)),gd(j,"configurable",F_(D.configurable));let ae=gd(j,"writable",F_(D.writable));ae=gd(j,"value",D.value)||ae;let je=gd(j,"get",D.get);return je=gd(j,"set",D.set)||je,Mr.assert(!(ae&&je),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),np(j,!J)}function LN(D,J){switch(D.kind){case 217:return V4(D,J);case 216:return Y_(D,D.type,J);case 234:return od(D,J,D.type);case 238:return d3(D,J,D.type);case 235:return xA(D,J);case 233:return h1(D,J,D.typeArguments);case 355:return kE(D,J)}}function LI(D){return $Qe(D)&&bK(D)&&bK(getSourceMapRange(D))&&bK(getCommentRange(D))&&!eh(getSyntheticLeadingComments(D))&&!eh(getSyntheticTrailingComments(D))}function XN(D,J,j=31){return D&&Mhr(D,j)&&!LI(D)?LN(D,XN(D.expression,J)):J}function pp(D,J,j){if(!J)return D;let ae=q7(J,J.label,QYi(J.statement)?pp(D,J.statement):D);return j&&j(J),ae}function fp(D,J){let j=FQe(D);switch(j.kind){case 80:return J;case 110:case 9:case 10:case 11:return!1;case 209:return j.elements.length!==0;case 210:return j.properties.length>0;default:return!0}}function qE(D,J,j,ae=!1){let je=MQe(D,31),Jt,$r;return u1r(je)?(Jt=pe(),$r=je):POe(je)?(Jt=pe(),$r=j!==void 0&&j<2?w7(Z("_super"),je):je):qK(je)&8192?(Jt=Yy(),$r=n().parenthesizeLeftSideOfAccess(je,!1)):UP(je)?fp(je.expression,ae)?(Jt=ee(J),$r=Nc(w7(A.createAssignment(Jt,je.expression),je.expression),je.name),w7($r,je)):(Jt=je.expression,$r=je):Bte(je)?fp(je.expression,ae)?(Jt=ee(J),$r=ih(w7(A.createAssignment(Jt,je.expression),je.expression),je.argumentExpression),w7($r,je)):(Jt=je.expression,$r=je):(Jt=Yy(),$r=n().parenthesizeLeftSideOfAccess(D,!1)),{target:$r,thisArg:Jt}}function H(D,J){return Nc(A_(np([pr(void 0,"value",[wr(void 0,void 0,D,void 0,void 0,void 0)],r2([dl(J)]))])),"value")}function we(D){return D.length>10?JA(D):BZi(D,A.createComma)}function Oe(D,J,j,ae=0,je){let Jt=je?D&&DQe(D):L2r(D);if(Jt&&bo(Jt)&&!SK(Jt)){let $r=NQe(w7(IA(Jt),Jt),Jt.parent);return ae|=qK(Jt),j||(ae|=96),J||(ae|=3072),ae&&setEmitFlags($r,ae),$r}return He(D)}function ht(D,J,j){return Oe(D,J,j,98304)}function qt(D,J,j,ae){return Oe(D,J,j,32768,ae)}function _r(D,J,j){return Oe(D,J,j,16384)}function tn(D,J,j){return Oe(D,J,j)}function Xn(D,J,j,ae){let je=Nc(D,bK(J)?J:IA(J));w7(je,J);let Jt=0;return ae||(Jt|=96),j||(Jt|=3072),Jt&&setEmitFlags(je,Jt),je}function An(D,J,j,ae){return D&&Nte(J,32)?Xn(D,Oe(J),j,ae):_r(J,j,ae)}function xn(D,J,j,ae){let je=Z0(D,J,0,j);return q0(D,J,je,ae)}function ni(D){return i6e(D.expression)&&D.expression.text==="use strict"}function ma(){return bHi(dl(M("use strict")))}function Z0(D,J,j=0,ae){Mr.assert(J.length===0,"Prologue directives should be at the first statement in the target statements array");let je=!1,Jt=D.length;for(;j<Jt;){let $r=D[j];if(Vye($r))ni($r)&&(je=!0),J.push($r);else break;j++}return ae&&!je&&J.push(ma()),j}function q0(D,J,j,ae,je=zZi){let Jt=D.length;for(;j!==void 0&&j<Jt;){let $r=D[j];if(qK($r)&2097152&&je($r))Om(J,ae?visitNode($r,ae,wQi):$r);else break;j++}return j}function rc(D){return wHi(D)?D:w7(F([ma(),...D]),D)}function Lc(D){return Mr.assert(sQe(D,bQi),"Cannot lift nodes to a Block."),SZi(D)||r2(D)}function k_(D,J,j){let ae=j;for(;ae<D.length&&J(D[ae]);)ae++;return ae}function xf(D,J){if(!eh(J))return D;let j=k_(D,Vye,0),ae=k_(D,i1r,j),je=k_(D,a1r,ae),Jt=k_(J,Vye,0),$r=k_(J,i1r,Jt),si=k_(J,a1r,$r),ua=k_(J,TQe,si);Mr.assert(ua===J.length,"Expected declarations to be valid standard or custom prologues");let Ns=VP(D)?D.slice():D;if(ua>si&&Ns.splice(je,0,...J.slice(si,ua)),si>$r&&Ns.splice(ae,0,...J.slice($r,si)),$r>Jt&&Ns.splice(j,0,...J.slice(Jt,$r)),Jt>0)if(j===0)Ns.splice(0,0,...J.slice(0,Jt));else{let gl=new Map;for(let hh=0;hh<j;hh++){let U3=D[hh];gl.set(U3.expression.text,!0)}for(let hh=Jt-1;hh>=0;hh--){let U3=J[hh];gl.has(U3.expression.text)||Ns.unshift(U3)}}return VP(D)?w7(F(Ns,D.hasTrailingComma),D):D}function mp(D,J){let j;return typeof J=="number"?j=ot(J):j=J,mhr(D)?Mt(D,j,D.name,D.constraint,D.default):Hye(D)?tr(D,j,D.dotDotDotToken,D.name,D.questionToken,D.type,D.initializer):vhr(D)?W0(D,j,D.typeParameters,D.parameters,D.type):mYi(D)?Cn(D,j,D.name,D.questionToken,D.type):Gye(D)?fe(D,j,D.name,D.questionToken??D.exclamationToken,D.type,D.initializer):dYi(D)?be(D,j,D.name,D.questionToken,D.typeParameters,D.parameters,D.type):QOe(D)?ct(D,j,D.asteriskToken,D.name,D.questionToken,D.typeParameters,D.parameters,D.type,D.body):dhr(D)?ki(D,j,D.parameters,D.body):WOe(D)?r0(D,j,D.name,D.parameters,D.type,D.body):Rye(D)?Ar(D,j,D.name,D.parameters,D.body):yhr(D)?na(D,j,D.parameters,D.type):Ahr(D)?G1(D,j,D.asteriskToken,D.name,D.typeParameters,D.parameters,D.type,D.body):bhr(D)?$c(D,j,D.typeParameters,D.parameters,D.type,D.equalsGreaterThanToken,D.body):YOe(D)?L4(D,j,D.name,D.typeParameters,D.heritageClauses,D.members):a6e(D)?Jc(D,j,D.declarationList):Ehr(D)?lf(D,j,D.asteriskToken,D.name,D.typeParameters,D.parameters,D.type,D.body):e6e(D)?$7(D,j,D.name,D.typeParameters,D.heritageClauses,D.members):JQe(D)?w3(D,j,D.name,D.typeParameters,D.heritageClauses,D.members):khr(D)?T_(D,j,D.name,D.typeParameters,D.type):YYi(D)?lp(D,j,D.name,D.members):Ste(D)?Xu(D,j,D.name,D.body):Fhr(D)?_f(D,j,D.isTypeOnly,D.name,D.moduleReference):Shr(D)?C3(D,j,D.importClause,D.moduleSpecifier,D.attributes):Phr(D)?Wi(D,j,D.expression):Nhr(D)?ha(D,j,D.isTypeOnly,D.exportClause,D.moduleSpecifier,D.attributes):Mr.assertNever(D)}function ch(D,J){return Hye(D)?tr(D,J,D.dotDotDotToken,D.name,D.questionToken,D.type,D.initializer):Gye(D)?fe(D,J,D.name,D.questionToken??D.exclamationToken,D.type,D.initializer):QOe(D)?ct(D,J,D.asteriskToken,D.name,D.questionToken,D.typeParameters,D.parameters,D.type,D.body):WOe(D)?r0(D,J,D.name,D.parameters,D.type,D.body):Rye(D)?Ar(D,J,D.name,D.parameters,D.body):YOe(D)?L4(D,J,D.name,D.typeParameters,D.heritageClauses,D.members):e6e(D)?$7(D,J,D.name,D.typeParameters,D.heritageClauses,D.members):Mr.assertNever(D)}function $E(D,J){switch(D.kind){case 177:return r0(D,D.modifiers,J,D.parameters,D.type,D.body);case 178:return Ar(D,D.modifiers,J,D.parameters,D.body);case 174:return ct(D,D.modifiers,D.asteriskToken,J,D.questionToken,D.typeParameters,D.parameters,D.type,D.body);case 173:return be(D,D.modifiers,J,D.questionToken,D.typeParameters,D.parameters,D.type);case 172:return fe(D,D.modifiers,J,D.questionToken??D.exclamationToken,D.type,D.initializer);case 171:return Cn(D,D.modifiers,J,D.questionToken,D.type);case 303:return Qy(D,J,D.initializer)}}function $0(D){return D?F(D):void 0}function Cu(D){return typeof D=="string"?Z(D):D}function F_(D){return typeof D=="string"?M(D):typeof D=="number"?P(D):typeof D=="boolean"?D?ke():Je():D}function K3(D){return D&&n().parenthesizeExpressionForDisallowedComma(D)}function JE(D){return typeof D=="number"?Ne(D):D}function Mo(D){return D&&GYi(D)?w7(r(ap(),D),D):D}function nc(D){return typeof D=="string"||D&&!Chr(D)?of(D,void 0,void 0,void 0):D}function Fr(D,J){return D!==J&&(r(D,J),w7(D,J)),D}}function Jye(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return Mr.fail(`Unsupported kind: ${Mr.formatSyntaxKind(e)}`)}}function rYi(e,t){switch(Zm||(Zm=xQe(99,!1,0)),e){case 15:Zm.setText("`"+t+"`");break;case 16:Zm.setText("`"+t+"${");break;case 17:Zm.setText("}"+t+"${");break;case 18:Zm.setText("}"+t+"`");break}let r=Zm.scan();if(r===20&&(r=Zm.reScanTemplateToken(!1)),Zm.isUnterminated())return Zm.setText(void 0),h1r;let n;switch(r){case 15:case 16:case 17:case 18:n=Zm.getTokenValue();break}return n===void 0||Zm.scan()!==1?(Zm.setText(void 0),h1r):(Zm.setText(void 0),n)}function Ty(e){return e&&bo(e)?TK(e):Kr(e)}function TK(e){return Kr(e)&-67108865}function nYi(e,t){return t|e.transformFlags&134234112}function Kr(e){if(!e)return 0;let t=e.transformFlags&~iYi(e.kind);return IOi(e)&&O2r(e.name)?nYi(e.name,t):t}function V0(e){return e?e.transformFlags:0}function p1r(e){let t=0;for(let r of e)t|=Kr(r);e.transformFlags=t}function iYi(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function cte(e){return e.flags|=16,e}function uYi(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=oYi(r,e.emitNode))}return e}function oYi(e,t){let{flags:r,internalFlags:n,leadingComments:i,trailingComments:a,commentRange:u,sourceMapRange:s,tokenSourceMapRanges:l,constantValue:h,helpers:_,startsOnNewLine:p,snippetElement:f,classThis:m,assignedName:d}=e;if(t||(t={}),r&&(t.flags=r),n&&(t.internalFlags=n&-9),i&&(t.leadingComments=Wm(i.slice(),t.leadingComments)),a&&(t.trailingComments=Wm(a.slice(),t.trailingComments)),u&&(t.commentRange=u),s&&(t.sourceMapRange=s),l&&(t.tokenSourceMapRanges=sYi(l,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),_)for(let x of _)t.helpers=EZi(t.helpers,x);return p!==void 0&&(t.startsOnNewLine=p),f!==void 0&&(t.snippetElement=f),m&&(t.classThis=m),d&&(t.assignedName=d),t}function sYi(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function IK(e){return e.kind===9}function lYi(e){return e.kind===10}function i6e(e){return e.kind===11}function _Yi(e){return e.kind===15}function cYi(e){return e.kind===28}function f1r(e){return e.kind===54}function m1r(e){return e.kind===58}function bo(e){return e.kind===80}function lI(e){return e.kind===81}function hYi(e){return e.kind===95}function Iye(e){return e.kind===134}function POe(e){return e.kind===108}function pYi(e){return e.kind===102}function fYi(e){return e.kind===166}function fhr(e){return e.kind===167}function mhr(e){return e.kind===168}function Hye(e){return e.kind===169}function qQe(e){return e.kind===170}function mYi(e){return e.kind===171}function Gye(e){return e.kind===172}function dYi(e){return e.kind===173}function QOe(e){return e.kind===174}function dhr(e){return e.kind===176}function WOe(e){return e.kind===177}function Rye(e){return e.kind===178}function yYi(e){return e.kind===179}function gYi(e){return e.kind===180}function yhr(e){return e.kind===181}function xYi(e){return e.kind===182}function ghr(e){return e.kind===183}function xhr(e){return e.kind===184}function vhr(e){return e.kind===185}function vYi(e){return e.kind===186}function DYi(e){return e.kind===187}function wYi(e){return e.kind===188}function AYi(e){return e.kind===189}function bYi(e){return e.kind===202}function TYi(e){return e.kind===190}function CYi(e){return e.kind===191}function EYi(e){return e.kind===192}function kYi(e){return e.kind===193}function FYi(e){return e.kind===194}function SYi(e){return e.kind===195}function PYi(e){return e.kind===196}function NYi(e){return e.kind===197}function BYi(e){return e.kind===198}function qYi(e){return e.kind===199}function $Yi(e){return e.kind===200}function JYi(e){return e.kind===201}function IYi(e){return e.kind===205}function MYi(e){return e.kind===208}function zYi(e){return e.kind===209}function Dhr(e){return e.kind===210}function UP(e){return e.kind===211}function Bte(e){return e.kind===212}function whr(e){return e.kind===213}function VYi(e){return e.kind===215}function $Qe(e){return e.kind===217}function Ahr(e){return e.kind===218}function bhr(e){return e.kind===219}function LYi(e){return e.kind===222}function XYi(e){return e.kind===224}function JK(e){return e.kind===226}function jYi(e){return e.kind===230}function YOe(e){return e.kind===231}function KYi(e){return e.kind===232}function UYi(e){return e.kind===233}function Lye(e){return e.kind===235}function ZYi(e){return e.kind===236}function OYi(e){return e.kind===356}function a6e(e){return e.kind===243}function Thr(e){return e.kind===244}function QYi(e){return e.kind===256}function Chr(e){return e.kind===260}function WYi(e){return e.kind===261}function Ehr(e){return e.kind===262}function e6e(e){return e.kind===263}function JQe(e){return e.kind===264}function khr(e){return e.kind===265}function YYi(e){return e.kind===266}function Ste(e){return e.kind===267}function Fhr(e){return e.kind===271}function Shr(e){return e.kind===272}function Phr(e){return e.kind===277}function Nhr(e){return e.kind===278}function HYi(e){return e.kind===279}function GYi(e){return e.kind===353}function Bhr(e){return e.kind===283}function d1r(e){return e.kind===286}function RYi(e){return e.kind===289}function qhr(e){return e.kind===295}function eHi(e){return e.kind===297}function tHi(e){return e.kind===303}function rHi(e){return e.kind===307}function nHi(e){return e.kind===309}function iHi(e){return e.kind===314}function aHi(e){return e.kind===317}function $hr(e){return e.kind===320}function uHi(e){return e.kind===322}function Jhr(e){return e.kind===323}function oHi(e){return e.kind===328}function sHi(e){return e.kind===333}function lHi(e){return e.kind===334}function _Hi(e){return e.kind===335}function cHi(e){return e.kind===336}function hHi(e){return e.kind===337}function pHi(e){return e.kind===339}function fHi(e){return e.kind===331}function y1r(e){return e.kind===341}function mHi(e){return e.kind===342}function IQe(e){return e.kind===344}function dHi(e){return e.kind===345}function yHi(e){return e.kind===329}function gHi(e){return e.kind===350}function Ihr(e,t){var r;let n=e.kind;return AQe(n)?n===352?e._children:(r=uI.get(t))==null?void 0:r.get(e):t_}function xHi(e,t,r){e.kind===352&&Mr.fail("Should not need to re-set the children of a SyntaxList.");let n=uI.get(t);return n===void 0&&(n=new WeakMap,uI.set(t,n)),n.set(e,r),r}function g1r(e,t){var r;e.kind===352&&Mr.fail("Did not expect to unset the children of a SyntaxList."),(r=uI.get(t))==null||r.delete(e)}function vHi(e,t){let r=uI.get(e);r!==void 0&&(uI.delete(e),uI.set(t,r))}function x1r(e){return(qK(e)&32768)!==0}function DHi(e){return i6e(e.expression)&&e.expression.text==="use strict"}function wHi(e){for(let t of e)if(Vye(t)){if(DHi(t))return t}else break}function AHi(e){return $Qe(e)&&_I(e)&&!!ROi(e)}function Mhr(e,t=31){switch(e.kind){case 217:return t&-2147483648&&AHi(e)?!1:(t&1)!==0;case 216:case 234:case 238:return(t&2)!==0;case 233:return(t&16)!==0;case 235:return(t&4)!==0;case 355:return(t&8)!==0}return!1}function MQe(e,t=31){for(;Mhr(e,t);)e=e.expression;return e}function bHi(e){return setStartsOnNewLine(e,!0)}function vte(e){if(yQi(e))return e.name;if(pQi(e)){switch(e.kind){case 303:return vte(e.initializer);case 304:return e.name;case 305:return vte(e.expression)}return}return Yye(e,!0)?vte(e.left):jYi(e)?vte(e.expression):e}function THi(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function v1r(e){if(e){let t=e;for(;;){if(bo(t)||!t.body)return bo(t)?t:t.name;t=t.body}}}function w1r(e,t){return typeof e=="object"?HOe(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function CHi(e,t){return typeof e=="string"?e:EHi(e,Mr.checkDefined(t))}function EHi(e,t){return Z2r(e)?t(e).slice(1):SK(e)?t(e):lI(e)?e.escapedText.slice(1):Ym(e)}function HOe(e,t,r,n,i){return t=w1r(t,i),n=w1r(n,i),r=CHi(r,i),`${e?"#":""}${t}${r}${n}`}function zhr(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of THi(e)){let r=vte(t);if(r&&dQi(r)&&(r.transformFlags&65536||r.transformFlags&128&&zhr(r)))return!0}return!1}function w7(e,t){return t?jP(e,t.pos,t.end):e}function zQe(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function kHi(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}function jt(e,t){return t&&e(t)}function Kn(e,t,r){if(r){if(t)return t(r);for(let n of r){let i=e(n);if(i)return i}}}function SHi(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function PHi(e){return ky(e.statements,NHi)||BHi(e)}function NHi(e){return zQe(e)&&qHi(e,95)||Fhr(e)&&Bhr(e.moduleReference)||Shr(e)||Phr(e)||Nhr(e)?e:void 0}function BHi(e){return e.flags&8388608?Vhr(e):void 0}function Vhr(e){return $Hi(e)?e:Gh(e,Vhr)}function qHi(e,t){return eh(e.modifiers,(r)=>r.kind===t)}function $Hi(e){return ZYi(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function k1r(e,t,r){return Kn(t,r,e.typeParameters)||Kn(t,r,e.parameters)||jt(t,e.type)}function F1r(e,t,r){return Kn(t,r,e.types)}function S1r(e,t,r){return jt(t,e.type)}function P1r(e,t,r){return Kn(t,r,e.elements)}function N1r(e,t,r){return jt(t,e.expression)||jt(t,e.questionDotToken)||Kn(t,r,e.typeArguments)||Kn(t,r,e.arguments)}function B1r(e,t,r){return Kn(t,r,e.statements)}function q1r(e,t,r){return jt(t,e.label)}function $1r(e,t,r){return Kn(t,r,e.modifiers)||jt(t,e.name)||Kn(t,r,e.typeParameters)||Kn(t,r,e.heritageClauses)||Kn(t,r,e.members)}function J1r(e,t,r){return Kn(t,r,e.elements)}function I1r(e,t,r){return jt(t,e.propertyName)||jt(t,e.name)}function M1r(e,t,r){return jt(t,e.tagName)||Kn(t,r,e.typeArguments)||jt(t,e.attributes)}function YJ(e,t,r){return jt(t,e.type)}function z1r(e,t,r){return jt(t,e.tagName)||(e.isNameFirst?jt(t,e.name)||jt(t,e.typeExpression):jt(t,e.typeExpression)||jt(t,e.name))||(typeof e.comment=="string"?void 0:Kn(t,r,e.comment))}function HJ(e,t,r){return jt(t,e.tagName)||jt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Kn(t,r,e.comment))}function NOe(e,t,r){return jt(t,e.name)}function JP(e,t,r){return jt(t,e.tagName)||(typeof e.comment=="string"?void 0:Kn(t,r,e.comment))}function IHi(e,t,r){return jt(t,e.tagName)||jt(t,e.importClause)||jt(t,e.moduleSpecifier)||jt(t,e.attributes)||(typeof e.comment=="string"?void 0:Kn(t,r,e.comment))}function MHi(e,t,r){return jt(t,e.expression)}function Gh(e,t,r){if(e===void 0||e.kind<=165)return;let n=JHi[e.kind];return n===void 0?void 0:n(e,t,r)}function V1r(e,t,r){let n=L1r(e),i=[];for(;i.length<n.length;)i.push(e);for(;n.length!==0;){let a=n.pop(),u=i.pop();if(zC(a)){if(r){let s=r(a,u);if(s){if(s==="skip")continue;return s}}for(let s=a.length-1;s>=0;--s)n.push(a[s]),i.push(u)}else{let s=t(a,u);if(s){if(s==="skip")continue;return s}if(a.kind>=166)for(let l of L1r(a))n.push(l),i.push(a)}}}function L1r(e){let t=[];return Gh(e,r,r),t;function r(n){t.unshift(n)}}function Lhr(e){e.externalModuleIndicator=PHi(e)}function zHi(e,t,r,n=!1,i){var a,u;(a=Mye)==null||a.push(Mye.Phase.Parse,"createSourceFile",{path:e},!0),jcr("beforeParse");let s,{languageVersion:l,setExternalModuleIndicator:h,impliedNodeFormat:_,jsDocParsingMode:p}=typeof r=="object"?r:{languageVersion:r};if(l===100)s=oI.parseSourceFile(e,t,l,void 0,n,6,$K,p);else{let f=_===void 0?h:(m)=>(m.impliedNodeFormat=_,(h||Lhr)(m));s=oI.parseSourceFile(e,t,l,void 0,n,i,f,p)}return jcr("afterParse"),QZi("Parse","beforeParse","afterParse"),(u=Mye)==null||u.pop(),s}function VHi(e){return e.externalModuleIndicator!==void 0}function LHi(e,t,r,n=!1){let i=t6e.updateSourceFile(e,t,r,n);return i.flags|=e.flags&12582912,i}function XHi(e){X1r.has(e)&&Mr.fail("Source file has already been incrementally parsed"),X1r.add(e)}function jHi(e){return Xhr.has(e)}function GOe(e){Xhr.add(e)}function KHi(e){return UHi(e)!==void 0}function UHi(e){let t=b2r(e,KWi,!1);if(t)return t;if(GZi(e,".ts")){let r=A2r(e),n=r.lastIndexOf(".d.");if(n>=0)return r.substring(n)}}function ZHi(e,t,r,n){if(e){if(e==="import")return 99;if(e==="require")return 1;n(t,r-t,Ot.resolution_mode_should_be_either_require_or_import)}}function OHi(e,t){let r=[];for(let n of LOe(t,0)||t_){let i=t.substring(n.pos,n.end);GHi(r,n,i)}e.pragmas=new Map;for(let n of r){if(e.pragmas.has(n.name)){let i=e.pragmas.get(n.name);i instanceof Array?i.push(n.args):e.pragmas.set(n.name,[i,n.args]);continue}e.pragmas.set(n.name,n.args)}}function QHi(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,n)=>{switch(n){case"reference":{let{referencedFiles:i,typeReferenceDirectives:a,libReferenceDirectives:u}=e;ky(AOe(r),(s)=>{let{types:l,lib:h,path:_,["resolution-mode"]:p,preserve:f}=s.arguments,m=f==="true"?!0:void 0;if(s.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(l){let d=ZHi(p,l.pos,l.end,t);a.push({pos:l.pos,end:l.end,fileName:l.value,...d?{resolutionMode:d}:{},...m?{preserve:m}:{}})}else h?u.push({pos:h.pos,end:h.end,fileName:h.value,...m?{preserve:m}:{}}):_?i.push({pos:_.pos,end:_.end,fileName:_.value,...m?{preserve:m}:{}}):t(s.range.pos,s.range.end-s.range.pos,Ot.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=JOe(AOe(r),(i)=>({name:i.arguments.name,path:i.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let i of r)e.moduleName&&t(i.range.pos,i.range.end-i.range.pos,Ot.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=i.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{ky(AOe(r),(i)=>{(!e.checkJsDirective||i.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:n==="ts-check",end:i.range.end,pos:i.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Mr.fail("Unhandled pragma kind")}})}function WHi(e){if(BOe.has(e))return BOe.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return BOe.set(e,t),t}function GHi(e,t,r){let n=t.kind===2&&YHi.exec(r);if(n){let a=n[1].toLowerCase(),u=w2r[a];if(!u||!(u.kind&1))return;if(u.args){let s={};for(let l of u.args){let h=WHi(l.name).exec(r);if(!h&&!l.optional)return;if(h){let _=h[2]||h[3];if(l.captureSpan){let p=t.pos+h.index+h[1].length+1;s[l.name]={value:_,pos:p,end:p+_.length}}else s[l.name]=_}}e.push({name:a,args:{arguments:s,range:t}})}else e.push({name:a,args:{arguments:{},range:t}});return}let i=t.kind===2&&HHi.exec(r);if(i)return j1r(e,t,2,i);if(t.kind===3){let a=/@(\S+)(\s+(?:\S.*)?)?$/gm,u;for(;u=a.exec(r);)j1r(e,t,4,u)}}function j1r(e,t,r,n){if(!n)return;let i=n[1].toLowerCase(),a=w2r[i];if(!a||!(a.kind&r))return;let u=n[2],s=RHi(a,u);s!=="fail"&&e.push({name:i,args:{arguments:s,range:t}})}function RHi(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),n={};for(let i=0;i<e.args.length;i++){let a=e.args[i];if(!r[i]&&!a.optional)return"fail";if(a.captureSpan)return Mr.fail("Capture spans not yet implemented for non-xml pragmas");n[a.name]=r[i]}return n}function IP(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&IP(e.expression,t.expression)}function jhr(e,t,r,n){let i=AQe(e)?new VQe(e,t,r):e===80?new Uhr(80,t,r):e===81?new Zhr(81,t,r):new Khr(e,t,r);return i.parent=n,i.flags=n.flags&101441536,i}function eGi(e,t){let r=[];if(TQi(e))return e.forEachChild((u)=>{r.push(u)}),r;wte.setText((t||e.getSourceFile()).text);let n=e.pos,i=(u)=>{Ate(r,n,u.pos,e),r.push(u),n=u.end},a=(u)=>{Ate(r,n,u.pos,e),r.push(tGi(u,e)),n=u.end};return ky(e.jsDoc,i),n=e.pos,e.forEachChild(i,a),Ate(r,n,e.end,e),wte.setText(void 0),r}function Ate(e,t,r,n){for(wte.resetTokenState(t);t<r;){let i=wte.scan(),a=wte.getTokenEnd();if(a<=r){if(i===80){if(YWi(n))continue;Mr.fail(`Did not expect ${Mr.formatSyntaxKind(n.kind)} to have an Identifier in its trivia`)}e.push(jhr(i,t,a,n))}if(t=a,i===1)break}}function tGi(e,t){let r=jhr(352,e.pos,e.end,t),n=[],i=e.pos;for(let a of e)Ate(n,i,a.pos,t),n.push(a),i=a.end;return Ate(n,i,e.end,t),r._children=n,r}function Ohr(e){return K2r(e).some((t)=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Xye(e,t){if(!e)return t_;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Ohr))){let n=new Set;for(let i of e){let a=Qhr(t,i,(u)=>{var s;if(!n.has(u))return n.add(u),i.kind===177||i.kind===178?u.getContextualJsDocTags(i,t):((s=u.declarations)==null?void 0:s.length)===1?u.getJsDocTags(t):void 0});a&&(r=[...a,...r])}}return r}function Dte(e,t){if(!e)return t_;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(Ohr))){let n=new Set;for(let i of e){let a=Qhr(t,i,(u)=>{if(!n.has(u))return n.add(u),i.kind===177||i.kind===178?u.getContextualDocumentationComment(i,t):u.getDocumentationComment(t)});a&&(r=r.length===0?a.slice():a.concat(lineBreakPart(),r))}}return r}function Qhr(e,t,r){var n;let i=((n=t.parent)==null?void 0:n.kind)===176?t.parent.parent:t.parent;if(!i)return;let a=hWi(t);return DZi(nWi(i),(u)=>{let s=e.getTypeAtLocation(u),l=a&&s.symbol?e.getTypeOfSymbol(s.symbol):s,h=e.getPropertyOfType(l,t.symbol.name);return h?r(h):void 0})}function oGi(){return{getNodeConstructor:()=>VQe,getTokenConstructor:()=>Khr,getIdentifierConstructor:()=>Uhr,getPrivateIdentifierConstructor:()=>Zhr,getSourceFileConstructor:()=>aGi,getSymbolConstructor:()=>rGi,getTypeConstructor:()=>nGi,getSignatureConstructor:()=>iGi,getSourceMapSourceConstructor:()=>uGi}}function cA(e,t=!1){var r;if(e!=null){if(Yhr){if(t||zQe(e)){let n=VOi(e);return n?[...n]:void 0}return}return(r=e.modifiers)==null?void 0:r.filter((n)=>!qQe(n))}}function CK(e,t=!1){var r;if(e!=null){if(Yhr){if(t||kHi(e)){let n=zOi(e);return n?[...n]:void 0}return}return(r=e.decorators)==null?void 0:r.filter(qQe)}}function mGi(e){return pGi.has(e.kind)}function dGi(e){return hGi.has(e.kind)}function yGi(e){return fGi.has(e.kind)}function LP(e){return Ss(e)}function gGi(e){return e.kind!==pi.SemicolonClassElement}function gu(e,t){let r=cA(t);return(r==null?void 0:r.some((n)=>n.kind===e))===!0}function xGi(e){let t=cA(e);return t==null?null:t[t.length-1]??null}function vGi(e){return e.kind===pi.CommaToken}function DGi(e){return e.kind===pi.SingleLineCommentTrivia||e.kind===pi.MultiLineCommentTrivia}function wGi(e){return e.kind===pi.JSDocComment}function AGi(e){if(mGi(e))return{type:ar.AssignmentExpression,operator:LP(e.kind)};if(dGi(e))return{type:ar.LogicalExpression,operator:LP(e.kind)};if(yGi(e))return{type:ar.BinaryExpression,operator:LP(e.kind)};throw new Error(`Unexpected binary operator ${Ss(e.kind)}`)}function jye(e,t){let r=t.getLineAndCharacterOfPosition(e);return{column:r.character,line:r.line+1}}function tI(e,t){let[r,n]=e.map((i)=>jye(i,t));return{end:n,start:r}}function bGi(e){if(e.kind===xa.Block)switch(e.parent.kind){case xa.Constructor:case xa.GetAccessor:case xa.SetAccessor:case xa.ArrowFunction:case xa.FunctionExpression:case xa.FunctionDeclaration:case xa.MethodDeclaration:return!0;default:return!1}return!0}function hte(e,t){return[e.getStart(t),e.getEnd()]}function TGi(e){return e.kind>=pi.FirstToken&&e.kind<=pi.LastToken}function Rhr(e){return e.kind>=pi.JsxElement&&e.kind<=pi.JsxAttribute}function ROe(e){return e.flags&Ey.Let?"let":(e.flags&Ey.AwaitUsing)===Ey.AwaitUsing?"await using":e.flags&Ey.Const?"const":e.flags&Ey.Using?"using":"var"}function GJ(e){let t=cA(e);if(t!=null)for(let r of t)switch(r.kind){case pi.PublicKeyword:return"public";case pi.ProtectedKeyword:return"protected";case pi.PrivateKeyword:return"private";default:break}}function vK(e,t,r){return n(t);function n(i){return iQi(i)&&i.pos===e.end?i:$Gi(i.getChildren(r),(a)=>(a.pos<=e.pos&&a.end>e.end||a.pos===e.end)&&qGi(a,r)?n(a):void 0)}}function CGi(e,t){let r=e;for(;r;){if(t(r))return r;r=r.parent}}function EGi(e){return!!CGi(e,Rhr)}function K1r(e){return kK(!1,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,(t)=>{let r=t.slice(1,-1);if(r[0]==="#"){let n=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return n>1114111?t:String.fromCodePoint(n)}return lGi[r]||t})}function DK(e){return e.kind===pi.ComputedPropertyName}function U1r(e){return!!e.questionToken}function epr(e){return e.type===ar.ChainExpression}function kGi(e,t){return epr(t)&&e.expression.kind!==xa.ParenthesizedExpression}function FGi(e){let t;if(Ghr&&e.kind===pi.Identifier?t=z2r(e):("originalKeywordKind"in e)&&(t=e.originalKeywordKind),t)return t===pi.NullKeyword?R2.Null:t>=pi.FirstFutureReservedWord&&t<=pi.LastKeyword?R2.Identifier:R2.Keyword;if(e.kind>=pi.FirstKeyword&&e.kind<=pi.LastFutureReservedWord)return e.kind===pi.FalseKeyword||e.kind===pi.TrueKeyword?R2.Boolean:R2.Keyword;if(e.kind>=pi.FirstPunctuation&&e.kind<=pi.LastPunctuation)return R2.Punctuator;if(e.kind>=pi.NoSubstitutionTemplateLiteral&&e.kind<=pi.TemplateTail)return R2.Template;switch(e.kind){case pi.NumericLiteral:return R2.Numeric;case pi.JsxText:return R2.JSXText;case pi.StringLiteral:return e.parent.kind===pi.JsxAttribute||e.parent.kind===pi.JsxElement?R2.JSXText:R2.String;case pi.RegularExpressionLiteral:return R2.RegularExpression;case pi.Identifier:case pi.ConstructorKeyword:case pi.GetKeyword:case pi.SetKeyword:default:}if(e.kind===pi.Identifier){if(Rhr(e.parent))return R2.JSXIdentifier;if(e.parent.kind===pi.PropertyAccessExpression&&EGi(e))return R2.JSXIdentifier}return R2.Identifier}function SGi(e,t){let r=e.kind===pi.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a=FGi(e),u=[r,n],s=tI(u,t);return a===R2.RegularExpression?{type:a,loc:s,range:u,regex:{flags:i.slice(i.lastIndexOf("/")+1),pattern:i.slice(1,i.lastIndexOf("/"))},value:i}:{type:a,loc:s,range:u,value:i}}function PGi(e){let t=[];function r(n){DGi(n)||wGi(n)||(TGi(n)&&n.kind!==pi.EndOfFileToken?t.push(SGi(n,e)):n.getChildren(e).forEach(r))}return r(e),t}function tpr(e,t,r,n=r){let[i,a]=[r,n].map((u)=>{let{character:s,line:l}=t.getLineAndCharacterOfPosition(u);return{column:s,line:l+1,offset:u}});return new NGi(e,t.fileName,{end:a,start:i})}function BGi(e){var t;return!!(("illegalDecorators"in e)&&((t=e.illegalDecorators)!=null&&t.length))}function qGi(e,t){return e.kind===pi.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function $Gi(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n!==void 0)return n}}function JGi(e){return(Ghr?z2r(e):e.originalKeywordKind)===pi.ThisKeyword}function rpr(e){return!!e&&e.kind===pi.Identifier&&JGi(e)}function IGi(e){if(!rpr(e))return!1;for(;fYi(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===pi.TypeQuery}function MGi(e){return e==null?!0:e.pos===e.end&&e.pos>=0&&e.kind!==pi.EndOfFileToken}function Z1r(e){return!MGi(e)}function zGi(e){return M2r(e.parent,Q2r)}function VGi(e){return gu(pi.AbstractKeyword,e)}function LGi(e){if(e.parameters.length&&!Jhr(e)){let t=e.parameters[0];if(XGi(t))return t}return null}function XGi(e){return rpr(e.name)}function jGi(e){switch(e.kind){case pi.ClassDeclaration:return!0;case pi.ClassExpression:return!0;case pi.PropertyDeclaration:{let{parent:t}=e;return!!(e6e(t)||NK(t)&&!VGi(e))}case pi.GetAccessor:case pi.SetAccessor:case pi.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(e6e(t)||NK(t))}case pi.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===pi.Constructor||t.kind===pi.MethodDeclaration||t.kind===pi.SetAccessor)&&LGi(t)!==e&&!!r&&r.kind===pi.ClassDeclaration}}return!1}function XQe(e){switch(e.kind){case pi.Identifier:return!0;case pi.PropertyAccessExpression:case pi.ElementAccessExpression:return!(e.flags&Ey.OptionalChain);case pi.ParenthesizedExpression:case pi.TypeAssertionExpression:case pi.AsExpression:case pi.SatisfiesExpression:case pi.ExpressionWithTypeArguments:case pi.NonNullExpression:return XQe(e.expression);default:return!1}}function KGi(e){let t=cA(e),r=e;for(;(!t||t.length===0)&&Ste(r.parent);){let n=cA(r.parent);n!=null&&n.length&&(t=n),r=r.parent}return t}function UGi(e){return tpr("message"in e&&e.message||e.messageText,e.file,e.start)}function OGi(e,t,r=e.getSourceFile()){let n=[];for(;;){if(U2r(e.kind))t(e);else{let i=e.getChildren(r);if(i.length===1){e=i[0];continue}for(let a=i.length-1;a>=0;--a)n.push(i[a])}if(n.length===0)break;e=n.pop()}}function QGi(e,t,r=e.getSourceFile()){let n=r.text,i=r.languageVariant!==g2r.JSX;return OGi(e,(u)=>{if(u.pos!==u.end&&(u.kind!==xa.JsxText&&bOi(n,u.pos===0?(J2r(n)??"").length:u.pos,a),i||WGi(u)))return TOi(n,u.end,a)},r);function a(u,s,l){t(n,{end:s,kind:l,pos:u})}}function WGi(e){switch(e.kind){case xa.CloseBraceToken:return e.parent.kind!==xa.JsxExpression||!qOe(e.parent.parent);case xa.GreaterThanToken:switch(e.parent.kind){case xa.JsxClosingElement:case xa.JsxClosingFragment:return!qOe(e.parent.parent.parent);case xa.JsxOpeningElement:return e.end!==e.parent.end;case xa.JsxOpeningFragment:return!1;case xa.JsxSelfClosingElement:return e.end!==e.parent.end||!qOe(e.parent.parent)}}return!0}function qOe(e){return e.kind===xa.JsxElement||e.kind===xa.JsxFragment}function YGi(e,t){let r=[];return QGi(e,(n,i)=>{let a=i.kind===xa.SingleLineCommentTrivia?R2.Line:R2.Block,u=[i.pos,i.end],s=tI(u,e),l=u[0]+2,h=i.kind===xa.SingleLineCommentTrivia?u[1]-l:u[1]-l-2;r.push({type:a,loc:s,range:u,value:t.slice(l,l+h)})},e),r}function GGi(e,t,r){let{parseDiagnostics:n}=e;if(n.length)throw UGi(n[0]);let i=new ZGi(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),a=i.convertProgram();return(!t.range||!t.loc)&&HGi(a,{enter:(u)=>{t.range||delete u.range,t.loc||delete u.loc}}),t.tokens&&(a.tokens=PGi(e)),t.comment&&(a.comments=YGi(e,t.codeFullText)),{astMaps:i.getASTMaps(),estree:a}}function ipr(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===xa.SourceFile&&typeof t.getFullText=="function"}function tRi(e,t){switch(eRi.default.extname(e).toLowerCase()){case P4.Cjs:case P4.Js:case P4.Mjs:return IC.JS;case P4.Cts:case P4.Mts:case P4.Ts:return IC.TS;case P4.Json:return IC.JSON;case P4.Jsx:return IC.JSX;case P4.Tsx:return IC.TSX;default:return t?IC.TSX:IC.TS}}function iRi(e){return nRi("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),ipr(e.code)?e.code:zHi(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:pQe.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,tRi(e.filePath,e.jsx))}function pRi(e,t={}){var r;let n=fRi(e),i=sRi(t),a=typeof t.tsconfigRootDir=="string"?t.tsconfigRootDir:"/prettier-security-dirname-placeholder",u=typeof t.loggerFn=="function",s=uRi(typeof t.filePath=="string"&&t.filePath!=="<input>"?t.filePath:mRi(t.jsx),a),l=cRi.default.extname(s).toLowerCase(),h=(()=>{switch(t.jsDocParsingMode){case"all":return pte.ParseAll;case"none":return pte.ParseNone;case"type-info":return pte.ParseForTypeInfo;default:return pte.ParseAll}})(),_={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:n,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every((p)=>typeof p=="string")?t.extraFileExtensions:[],filePath:s,jsDocParsingMode:h,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?Q1r??(Q1r=aRi(t.projectService,h,a)):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&l===P4.Mjs||t.sourceType==null&&l===P4.Mts?(p)=>{p.externalModuleIndicator=!0}:void 0,singleRun:i,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:O1r??(O1r=new oRi(i?"Infinity":((r=t.cacheLifetime)==null?void 0:r.glob)??void 0)),tsconfigRootDir:a};if(_.debugLevel.size>0){let p=[];_.debugLevel.has("typescript-eslint")&&p.push("typescript-eslint:*"),(_.debugLevel.has("eslint")||rQe.default.enabled("eslint:*,-eslint:code-path"))&&p.push("eslint:*,-eslint:code-path"),rQe.default.enable(p.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");hRi("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!_.programs&&!_.projectService&&(_.projects=new Map),t.jsDocParsingMode==null&&_.projects.size===0&&_.programs==null&&_.projectService==null&&(_.jsDocParsingMode=pte.ParseNone),lRi(_,u),_}function fRi(e){return ipr(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function mRi(e){return e?"estree.tsx":"estree.ts"}function yRi(e,t){let{ast:r}=gRi(e,t,!1);return r}function gRi(e,t,r){let n=pRi(e,t);if(t!=null&&t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let i=iRi(n),{astMaps:a,estree:u}=GGi(i,n,r);return{ast:u,esTreeNodeToTSNodeMap:a.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:a.tsNodeToESTreeNodeMap}}function xRi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function DRi(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function bRi(e){return Array.isArray(e)&&e.length>0}function lA(e){var t,r,n;let i=((t=e.range)==null?void 0:t[0])??e.start,a=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return a?Math.min(lA(a),i):i}function rI(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function CRi(e){let t=new Set(e);return(r)=>t.has(r==null?void 0:r.type)}function FRi(e){let t=`*${e.value}*`.split(`
|
|
@@ -831,7 +831,7 @@ ${O.commentBefore}`:M}N.comment=P.after.join(`
|
|
|
831
831
|
`)||null}}function x({tagPrefixes:N},E){let[P,q]=E.parameters;if(!P||!q){let $="Insufficient parameters given for %TAG directive";throw new t.YAMLSemanticError(E,$)}if(N.some(($)=>$.handle===P)){let $="The %TAG directive must only be given at most once per handle in the same document.";throw new t.YAMLSemanticError(E,$)}return{handle:P,prefix:q}}function T(N,E){let[P]=E.parameters;if(E.name==="YAML:1.0"&&(P="1.0"),!P){let q="Insufficient parameters given for %YAML directive";throw new t.YAMLSemanticError(E,q)}if(!u[P]){let q=`Document will be parsed as YAML ${N.version||N.options.version} rather than YAML ${P}`;N.warnings.push(new t.YAMLWarning(E,q))}return P}function A(N,E,P){let q=[],$=!1;for(let M of E){let{comment:O,name:K}=M;switch(K){case"TAG":try{N.tagPrefixes.push(x(N,M))}catch(ue){N.errors.push(ue)}$=!0;break;case"YAML":case"YAML:1.0":if(N.version){let ue="The %YAML directive must only be given at most once per document.";N.errors.push(new t.YAMLSemanticError(M,ue))}try{N.version=T(N,M)}catch(ue){N.errors.push(ue)}$=!0;break;default:if(K){let ue=`YAML only supports %TAG and %YAML directives, and not %${K}`;N.warnings.push(new t.YAMLWarning(M,ue))}}O&&q.push(O)}if(P&&!$&&(N.version||P.version||N.options.version)==="1.1"){let M=({handle:O,prefix:K})=>({handle:O,prefix:K});N.tagPrefixes=P.tagPrefixes.map(M),N.version=P.version}N.commentBefore=q.join(`
|
|
832
832
|
`)||null}function F(N){if(N instanceof r.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var b=class N{constructor(E){this.anchors=new p(E.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=E,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(E){return F(this.contents),this.contents.add(E)}addIn(E,P){F(this.contents),this.contents.addIn(E,P)}delete(E){return F(this.contents),this.contents.delete(E)}deleteIn(E){return r.isEmptyPath(E)?this.contents==null?!1:(this.contents=null,!0):(F(this.contents),this.contents.deleteIn(E))}getDefaults(){return N.defaults[this.version]||N.defaults[this.options.version]||{}}get(E,P){return this.contents instanceof r.Collection?this.contents.get(E,P):void 0}getIn(E,P){return r.isEmptyPath(E)?!P&&this.contents instanceof r.Scalar?this.contents.value:this.contents:this.contents instanceof r.Collection?this.contents.getIn(E,P):void 0}has(E){return this.contents instanceof r.Collection?this.contents.has(E):!1}hasIn(E){return r.isEmptyPath(E)?this.contents!==void 0:this.contents instanceof r.Collection?this.contents.hasIn(E):!1}set(E,P){F(this.contents),this.contents.set(E,P)}setIn(E,P){r.isEmptyPath(E)?this.contents=P:(F(this.contents),this.contents.setIn(E,P))}setSchema(E,P){if(!E&&!P&&this.schema)return;typeof E=="number"&&(E=E.toFixed(1)),E==="1.0"||E==="1.1"||E==="1.2"?(this.version?this.version=E:this.options.version=E,delete this.options.schema):E&&typeof E=="string"&&(this.options.schema=E),Array.isArray(P)&&(this.options.customTags=P);let q=Object.assign({},this.getDefaults(),this.options);this.schema=new n.Schema(q)}parse(E,P){this.options.keepCstNodes&&(this.cstNode=E),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:q=[],contents:$=[],directivesEndMarker:M,error:O,valueRange:K}=E;if(O&&(O.source||(O.source=this),this.errors.push(O)),A(this,q,P),M&&(this.directivesEndMarker=!0),this.range=K?[K.start,K.end]:null,this.setSchema(),this.anchors._cstAliases=[],d(this,$),this.anchors.resolveNodes(),this.options.prettyErrors){for(let ue of this.errors)ue instanceof t.YAMLError&&ue.makePretty();for(let ue of this.warnings)ue instanceof t.YAMLError&&ue.makePretty()}return this}listNonDefaultTags(){return m(this.contents).filter((E)=>E.indexOf(n.Schema.defaultPrefix)!==0)}setTagPrefix(E,P){if(E[0]!=="!"||E[E.length-1]!=="!")throw new Error("Handle must start and end with !");if(P){let q=this.tagPrefixes.find(($)=>$.handle===E);q?q.prefix=P:this.tagPrefixes.push({handle:E,prefix:P})}else this.tagPrefixes=this.tagPrefixes.filter((q)=>q.handle!==E)}toJSON(E,P){let{keepBlobsInJSON:q,mapAsMap:$,maxAliasCount:M}=this.options,O=q&&(typeof E!="string"||!(this.contents instanceof r.Scalar)),K={doc:this,indentStep:" ",keep:O,mapAsMap:O&&!!$,maxAliasCount:M,stringify:_},ue=Object.keys(this.anchors.map);ue.length>0&&(K.anchors=new Map(ue.map((G)=>[this.anchors.map[G],{alias:[],aliasCount:0,count:1}])));let Q=r.toJSON(this.contents,E,K);if(typeof P=="function"&&K.anchors)for(let{count:G,res:Z}of K.anchors.values())P(Z,G);return Q}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let E=this.options.indent;if(!Number.isInteger(E)||E<=0){let ue=JSON.stringify(E);throw new Error(`"indent" option must be a positive integer, not ${ue}`)}this.setSchema();let P=[],q=!1;if(this.version){let ue="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?ue="%YAML:1.0":this.version==="1.1"&&(ue="%YAML 1.1")),P.push(ue),q=!0}let $=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:ue,prefix:Q})=>{$.some((G)=>G.indexOf(Q)===0)&&(P.push(`%TAG ${ue} ${Q}`),q=!0)}),(q||this.directivesEndMarker)&&P.push("---"),this.commentBefore&&((q||!this.directivesEndMarker)&&P.unshift(""),P.unshift(this.commentBefore.replace(/^/gm,"#")));let M={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(E),stringify:_},O=!1,K=null;if(this.contents){this.contents instanceof r.Node&&(this.contents.spaceBefore&&(q||this.directivesEndMarker)&&P.push(""),this.contents.commentBefore&&P.push(this.contents.commentBefore.replace(/^/gm,"#")),M.forceBlockIndent=!!this.comment,K=this.contents.comment);let ue=K?null:()=>O=!0,Q=_(this.contents,M,()=>K=null,ue);P.push(r.addComment(Q,"",K))}else this.contents!==void 0&&P.push(_(this.contents,M));return this.comment&&((!O||K)&&P[P.length-1]!==""&&P.push(""),P.push(this.comment.replace(/^/gm,"#"))),P.join(`
|
|
833
833
|
`)+`
|
|
834
|
-
`}};t._defineProperty(b,"defaults",u),e.Document=b,e.defaultOptions=i,e.scalarOptions=a}),we0=LC((e)=>{var t=ve0(),r=De0(),n=wpr(),i=hI(),a=Dpr();Mte();function u(m,d=!0,x){x===void 0&&typeof d=="string"&&(x=d,d=!0);let T=Object.assign({},r.Document.defaults[r.defaultOptions.version],r.defaultOptions);return new n.Schema(T).createNode(m,d,x)}var s=class extends r.Document{constructor(m){super(Object.assign({},r.defaultOptions,m))}};function l(m,d){let x=[],T;for(let A of t.parse(m)){let F=new s(d);F.parse(A,T),x.push(F),T=F}return x}function h(m,d){let x=t.parse(m),T=new s(d).parse(x[0]);if(x.length>1){let A="Source contains multiple documents; please use YAML.parseAllDocuments()";T.errors.unshift(new i.YAMLSemanticError(x[1],A))}return T}function _(m,d){let x=h(m,d);if(x.warnings.forEach((T)=>a.warn(T)),x.errors.length>0)throw x.errors[0];return x.toJSON()}function p(m,d){let x=new s(d);return x.contents=m,String(x)}var f={createNode:u,defaultOptions:r.defaultOptions,Document:s,parse:_,parseAllDocuments:l,parseCST:t.parse,parseDocument:h,scalarOptions:r.scalarOptions,stringify:p};e.YAML=f}),Ae0=LC((e,t)=>{t.exports=we0().YAML}),be0=LC((e)=>{var t=Mte(),r=hI();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=r.Type,e.YAMLError=r.YAMLError,e.YAMLReferenceError=r.YAMLReferenceError,e.YAMLSemanticError=r.YAMLSemanticError,e.YAMLSyntaxError=r.YAMLSyntaxError,e.YAMLWarning=r.YAMLWarning}),Apr={};xpr(Apr,{languages:()=>Zpr,options:()=>Opr,parsers:()=>sWe,printers:()=>ofr});jQe=Te0,Npr=new Set([Cpr,Epr,eWe,kpr,tWe,rWe,nWe,Fpr,iWe,Spr,LK,Ppr,aWe]),B4=Ce0;Bpr=Ee0;Se0=class extends Error{name="InvalidDocError";constructor(e){super(Fe0(e)),this.doc=e}},Pe0=Se0;VK=uWe,qpr=uWe,qe0=uWe;oWe={type:aWe},Me0={type:LK,hard:!0},ze0={type:LK,hard:!0,literal:!0},zte={type:LK},Jpr={type:LK,soft:!0},Oo=[Me0,oWe],QQe=[ze0,oWe];Rua=p6e(/\s/u),_pr=p6e(" "),eoa=p6e(",; "),toa=p6e(/[^\n\r]/u);cpr=Ve0;Xe0=Le0,je0=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ke0=je0;Ipr.getVisitorKeys=()=>[];Ue0=Ipr;for(let e=0;e<=Ze0;e++)Ite();We0=Qe0,Ye0=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),He0=Ye0,Ge0=We0(He0),Re0=Ge0;Vte=it0;KQe=new WeakMap;ct0=_t0;dt0=pt0;xt0=yt0;Upr.ignoredProperties=new Set(["position"]);bt0={preprocess:xt0,embed:Ue0,print:vt0,massageAstNode:Upr,insertPragma:nt0,getVisitorKeys:Re0},Tt0=bt0,Zpr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],ZQe={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ct0={bracketSpacing:ZQe.bracketSpacing,singleQuote:ZQe.singleQuote,proseWrap:ZQe.proseWrap},Opr=Ct0,sWe={};xpr(sWe,{yaml:()=>Ur0});Et0=function(){function e(t){this.length=t.length;for(var r=[0],n=0;n<t.length;)switch(t[n]){case u6e:n+=u6e.length,r.push(n);break;case fpr:n+=fpr.length,t[n]===u6e&&(n+=u6e.length),r.push(n);break;default:n++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var i=t-n[r];return{line:r,column:i}},e.prototype.indexForLocation=function(t){var{line:r,column:n}=t;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}();(function(e){e.Tag="!",e.Anchor="&",e.Comment="#"})(zK||(zK={}));(function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"})(HQe||(HQe={}));Ir0=vpr(Ae0(),1),q4=vpr(be0(),1),roa=q4.default.findPair,noa=q4.default.toJSON,ioa=q4.default.parseMap,aoa=q4.default.parseSeq,uoa=q4.default.stringifyNumber,ooa=q4.default.stringifyString,soa=q4.default.Type,loa=q4.default.YAMLError,_oa=q4.default.YAMLReferenceError,Mr0=q4.default.YAMLSemanticError,coa=q4.default.YAMLSyntaxError,hoa=q4.default.YAMLWarning,{Document:zr0,parseCST:Vr0}=Ir0.default;jr0=Xr0;Ur0={astFormat:"yaml",parse:Kr0,hasPragma:rt0,locStart:l6e,locEnd:et0},ofr={yaml:Tt0},Zr0=Apr});var VYe={};$_(VYe,{version:()=>pdr,util:()=>qYe,resolveConfigFile:()=>R6e,resolveConfig:()=>nre,getSupportInfo:()=>ydr,getFileInfo:()=>ddr,formatWithCursor:()=>zYe,format:()=>sre,doc:()=>Y7e,default:()=>h10,clearConfigCache:()=>mdr,check:()=>fdr,__internal:()=>gdr,__debug:()=>xdr});import{createRequire as Or0}from"module";import{fileURLToPath as Qr0}from"url";import{dirname as Wr0}from"path";import _Ye from"process";import Oi0 from"os";import Dfr from"tty";import GP from"path";import{fileURLToPath as B00,pathToFileURL as Zoa}from"url";import emr from"path";import*as tmr from"path";import Ifr from"fs/promises";import L00 from"path";import*as aU from"path";import hYe from"path";import ra0 from"fs/promises";import zfr from"fs/promises";import{pathToFileURL as oa0}from"url";import Fo0 from"fs/promises";import Mo0 from"path";import{pathToFileURL as zo0}from"url";import Tmr from"assert";import{statSync as Cmr,realpathSync as Vo0}from"fs";import AI from"process";import{URL as D_,fileURLToPath as js,pathToFileURL as DYe}from"url";import Emr from"path";import{builtinModules as wYe}from"module";import{fileURLToPath as Lo0}from"url";import Xo0 from"fs";import jo0 from"path";import{fileURLToPath as ZWe}from"url";import Ko0 from"v8";import bI from"assert";import{format as Uo0,inspect as OWe}from"util";import{createRequire as zs0}from"module";import F6e from"path";import nl0 from"url";import h7r from"fs";import x7r from"assert";import I_0 from"assert";import k7r from"path";import{pathToFileURL as F7r}from"url";import Sc0 from"path";function h3(){}function _fr(e,t,r,n,i){var a=[],u;while(t)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();var s=0,l=a.length,h=0,_=0;for(;s<l;s++){var p=a[s];if(!p.removed){if(!p.added&&i){var f=r.slice(h,h+p.count);f=f.map(function(m,d){var x=n[_+d];return x.length>m.length?x:m}),p.value=e.join(f)}else p.value=e.join(r.slice(h,h+p.count));if(h+=p.count,!p.added)_+=p.count}else p.value=e.join(n.slice(_,_+p.count)),_+=p.count}return a}function cfr(e,t){var r;for(r=0;r<e.length&&r<t.length;r++)if(e[r]!=t[r])return e.slice(0,r);return e.slice(0,r)}function hfr(e,t){var r;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(r=0;r<e.length&&r<t.length;r++)if(e[e.length-(r+1)]!=t[t.length-(r+1)])return e.slice(-r);return e.slice(-r)}function FWe(e,t,r){if(e.slice(0,t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(t),"; this is a bug"));return r+e.slice(t.length)}function SWe(e,t,r){if(!t)return e+r;if(e.slice(-t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(t),"; this is a bug"));return e.slice(0,-t.length)+r}function Lte(e,t){return FWe(e,t,"")}function y6e(e,t){return SWe(e,t,"")}function pfr(e,t){return t.slice(0,Ei0(e,t))}function Ei0(e,t){var r=0;if(e.length>t.length)r=e.length-t.length;var n=t.length;if(e.length<t.length)n=e.length;var i=Array(n),a=0;i[0]=0;for(var u=1;u<n;u++){if(t[u]==t[a])i[u]=i[a];else i[u]=a;while(a>0&&t[u]!=t[a])a=i[a];if(t[u]==t[a])a++}a=0;for(var s=r;s<e.length;s++){while(a>0&&e[s]!=t[a])a=i[a];if(e[s]==t[a])a++}return a}function ffr(e,t,r,n){if(t&&r){var i=t.value.match(/^\s*/)[0],a=t.value.match(/\s*$/)[0],u=r.value.match(/^\s*/)[0],s=r.value.match(/\s*$/)[0];if(e){var l=cfr(i,u);e.value=SWe(e.value,u,l),t.value=Lte(t.value,l),r.value=Lte(r.value,l)}if(n){var h=hfr(a,s);n.value=FWe(n.value,s,h),t.value=y6e(t.value,h),r.value=y6e(r.value,h)}}else if(r){if(e)r.value=r.value.replace(/^\s*/,"");if(n)n.value=n.value.replace(/^\s*/,"")}else if(e&&n){var _=n.value.match(/^\s*/)[0],p=t.value.match(/^\s*/)[0],f=t.value.match(/\s*$/)[0],m=cfr(_,p);t.value=Lte(t.value,m);var d=hfr(Lte(_,m),f);t.value=y6e(t.value,d),n.value=FWe(n.value,_,d),e.value=SWe(e.value,_,_.slice(0,_.length-d.length))}else if(n){var x=n.value.match(/^\s*/)[0],T=t.value.match(/\s*$/)[0],A=pfr(T,x);t.value=y6e(t.value,A)}else if(e){var F=e.value.match(/\s*$/)[0],b=t.value.match(/^\s*/)[0],N=pfr(F,b);t.value=Lte(t.value,N)}}function mfr(e,t,r){return Y6e.diff(e,t,r)}function dfr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q6e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dfr(Object(r),!0).forEach(function(n){qi0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dfr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ni0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bi0(e){var t=Ni0(e,"string");return typeof t=="symbol"?t:t+""}function PWe(e){return PWe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PWe(e)}function qi0(e,t,r){if(t=Bi0(t),t in e)Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0});else e[t]=r;return e}function hWe(e){return $i0(e)||Ji0(e)||Ii0(e)||Mi0()}function $i0(e){if(Array.isArray(e))return NWe(e)}function Ji0(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ii0(e,t){if(!e)return;if(typeof e==="string")return NWe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NWe(e,t)}function NWe(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mi0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
834
|
+
`}};t._defineProperty(b,"defaults",u),e.Document=b,e.defaultOptions=i,e.scalarOptions=a}),we0=LC((e)=>{var t=ve0(),r=De0(),n=wpr(),i=hI(),a=Dpr();Mte();function u(m,d=!0,x){x===void 0&&typeof d=="string"&&(x=d,d=!0);let T=Object.assign({},r.Document.defaults[r.defaultOptions.version],r.defaultOptions);return new n.Schema(T).createNode(m,d,x)}var s=class extends r.Document{constructor(m){super(Object.assign({},r.defaultOptions,m))}};function l(m,d){let x=[],T;for(let A of t.parse(m)){let F=new s(d);F.parse(A,T),x.push(F),T=F}return x}function h(m,d){let x=t.parse(m),T=new s(d).parse(x[0]);if(x.length>1){let A="Source contains multiple documents; please use YAML.parseAllDocuments()";T.errors.unshift(new i.YAMLSemanticError(x[1],A))}return T}function _(m,d){let x=h(m,d);if(x.warnings.forEach((T)=>a.warn(T)),x.errors.length>0)throw x.errors[0];return x.toJSON()}function p(m,d){let x=new s(d);return x.contents=m,String(x)}var f={createNode:u,defaultOptions:r.defaultOptions,Document:s,parse:_,parseAllDocuments:l,parseCST:t.parse,parseDocument:h,scalarOptions:r.scalarOptions,stringify:p};e.YAML=f}),Ae0=LC((e,t)=>{t.exports=we0().YAML}),be0=LC((e)=>{var t=Mte(),r=hI();e.findPair=t.findPair,e.parseMap=t.resolveMap,e.parseSeq=t.resolveSeq,e.stringifyNumber=t.stringifyNumber,e.stringifyString=t.stringifyString,e.toJSON=t.toJSON,e.Type=r.Type,e.YAMLError=r.YAMLError,e.YAMLReferenceError=r.YAMLReferenceError,e.YAMLSemanticError=r.YAMLSemanticError,e.YAMLSyntaxError=r.YAMLSyntaxError,e.YAMLWarning=r.YAMLWarning}),Apr={};xpr(Apr,{languages:()=>Zpr,options:()=>Opr,parsers:()=>sWe,printers:()=>ofr});jQe=Te0,Npr=new Set([Cpr,Epr,eWe,kpr,tWe,rWe,nWe,Fpr,iWe,Spr,LK,Ppr,aWe]),B4=Ce0;Bpr=Ee0;Se0=class extends Error{name="InvalidDocError";constructor(e){super(Fe0(e)),this.doc=e}},Pe0=Se0;VK=uWe,qpr=uWe,qe0=uWe;oWe={type:aWe},Me0={type:LK,hard:!0},ze0={type:LK,hard:!0,literal:!0},zte={type:LK},Jpr={type:LK,soft:!0},Oo=[Me0,oWe],QQe=[ze0,oWe];Rua=p6e(/\s/u),_pr=p6e(" \t"),eoa=p6e(",; \t"),toa=p6e(/[^\n\r]/u);cpr=Ve0;Xe0=Le0,je0=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},Ke0=je0;Ipr.getVisitorKeys=()=>[];Ue0=Ipr;for(let e=0;e<=Ze0;e++)Ite();We0=Qe0,Ye0=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([e,t])=>[e,[...t,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),He0=Ye0,Ge0=We0(He0),Re0=Ge0;Vte=it0;KQe=new WeakMap;ct0=_t0;dt0=pt0;xt0=yt0;Upr.ignoredProperties=new Set(["position"]);bt0={preprocess:xt0,embed:Ue0,print:vt0,massageAstNode:Upr,insertPragma:nt0,getVisitorKeys:Re0},Tt0=bt0,Zpr=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],ZQe={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ct0={bracketSpacing:ZQe.bracketSpacing,singleQuote:ZQe.singleQuote,proseWrap:ZQe.proseWrap},Opr=Ct0,sWe={};xpr(sWe,{yaml:()=>Ur0});Et0=function(){function e(t){this.length=t.length;for(var r=[0],n=0;n<t.length;)switch(t[n]){case u6e:n+=u6e.length,r.push(n);break;case fpr:n+=fpr.length,t[n]===u6e&&(n+=u6e.length),r.push(n);break;default:n++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=t;)r++;var i=t-n[r];return{line:r,column:i}},e.prototype.indexForLocation=function(t){var{line:r,column:n}=t;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],n=t===this.offsets.length-1?this.length:this.offsets[t+1];return n-r},e}();(function(e){e.Tag="!",e.Anchor="&",e.Comment="#"})(zK||(zK={}));(function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"})(HQe||(HQe={}));Ir0=vpr(Ae0(),1),q4=vpr(be0(),1),roa=q4.default.findPair,noa=q4.default.toJSON,ioa=q4.default.parseMap,aoa=q4.default.parseSeq,uoa=q4.default.stringifyNumber,ooa=q4.default.stringifyString,soa=q4.default.Type,loa=q4.default.YAMLError,_oa=q4.default.YAMLReferenceError,Mr0=q4.default.YAMLSemanticError,coa=q4.default.YAMLSyntaxError,hoa=q4.default.YAMLWarning,{Document:zr0,parseCST:Vr0}=Ir0.default;jr0=Xr0;Ur0={astFormat:"yaml",parse:Kr0,hasPragma:rt0,locStart:l6e,locEnd:et0},ofr={yaml:Tt0},Zr0=Apr});var VYe={};$_(VYe,{version:()=>pdr,util:()=>qYe,resolveConfigFile:()=>R6e,resolveConfig:()=>nre,getSupportInfo:()=>ydr,getFileInfo:()=>ddr,formatWithCursor:()=>zYe,format:()=>sre,doc:()=>Y7e,default:()=>h10,clearConfigCache:()=>mdr,check:()=>fdr,__internal:()=>gdr,__debug:()=>xdr});import{createRequire as Or0}from"module";import{fileURLToPath as Qr0}from"url";import{dirname as Wr0}from"path";import _Ye from"process";import Oi0 from"os";import Dfr from"tty";import GP from"path";import{fileURLToPath as B00,pathToFileURL as Zoa}from"url";import emr from"path";import*as tmr from"path";import Ifr from"fs/promises";import L00 from"path";import*as aU from"path";import hYe from"path";import ra0 from"fs/promises";import zfr from"fs/promises";import{pathToFileURL as oa0}from"url";import Fo0 from"fs/promises";import Mo0 from"path";import{pathToFileURL as zo0}from"url";import Tmr from"assert";import{statSync as Cmr,realpathSync as Vo0}from"fs";import AI from"process";import{URL as D_,fileURLToPath as js,pathToFileURL as DYe}from"url";import Emr from"path";import{builtinModules as wYe}from"module";import{fileURLToPath as Lo0}from"url";import Xo0 from"fs";import jo0 from"path";import{fileURLToPath as ZWe}from"url";import Ko0 from"v8";import bI from"assert";import{format as Uo0,inspect as OWe}from"util";import{createRequire as zs0}from"module";import F6e from"path";import nl0 from"url";import h7r from"fs";import x7r from"assert";import I_0 from"assert";import k7r from"path";import{pathToFileURL as F7r}from"url";import Sc0 from"path";function h3(){}function _fr(e,t,r,n,i){var a=[],u;while(t)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();var s=0,l=a.length,h=0,_=0;for(;s<l;s++){var p=a[s];if(!p.removed){if(!p.added&&i){var f=r.slice(h,h+p.count);f=f.map(function(m,d){var x=n[_+d];return x.length>m.length?x:m}),p.value=e.join(f)}else p.value=e.join(r.slice(h,h+p.count));if(h+=p.count,!p.added)_+=p.count}else p.value=e.join(n.slice(_,_+p.count)),_+=p.count}return a}function cfr(e,t){var r;for(r=0;r<e.length&&r<t.length;r++)if(e[r]!=t[r])return e.slice(0,r);return e.slice(0,r)}function hfr(e,t){var r;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(r=0;r<e.length&&r<t.length;r++)if(e[e.length-(r+1)]!=t[t.length-(r+1)])return e.slice(-r);return e.slice(-r)}function FWe(e,t,r){if(e.slice(0,t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't start with prefix ").concat(JSON.stringify(t),"; this is a bug"));return r+e.slice(t.length)}function SWe(e,t,r){if(!t)return e+r;if(e.slice(-t.length)!=t)throw Error("string ".concat(JSON.stringify(e)," doesn't end with suffix ").concat(JSON.stringify(t),"; this is a bug"));return e.slice(0,-t.length)+r}function Lte(e,t){return FWe(e,t,"")}function y6e(e,t){return SWe(e,t,"")}function pfr(e,t){return t.slice(0,Ei0(e,t))}function Ei0(e,t){var r=0;if(e.length>t.length)r=e.length-t.length;var n=t.length;if(e.length<t.length)n=e.length;var i=Array(n),a=0;i[0]=0;for(var u=1;u<n;u++){if(t[u]==t[a])i[u]=i[a];else i[u]=a;while(a>0&&t[u]!=t[a])a=i[a];if(t[u]==t[a])a++}a=0;for(var s=r;s<e.length;s++){while(a>0&&e[s]!=t[a])a=i[a];if(e[s]==t[a])a++}return a}function ffr(e,t,r,n){if(t&&r){var i=t.value.match(/^\s*/)[0],a=t.value.match(/\s*$/)[0],u=r.value.match(/^\s*/)[0],s=r.value.match(/\s*$/)[0];if(e){var l=cfr(i,u);e.value=SWe(e.value,u,l),t.value=Lte(t.value,l),r.value=Lte(r.value,l)}if(n){var h=hfr(a,s);n.value=FWe(n.value,s,h),t.value=y6e(t.value,h),r.value=y6e(r.value,h)}}else if(r){if(e)r.value=r.value.replace(/^\s*/,"");if(n)n.value=n.value.replace(/^\s*/,"")}else if(e&&n){var _=n.value.match(/^\s*/)[0],p=t.value.match(/^\s*/)[0],f=t.value.match(/\s*$/)[0],m=cfr(_,p);t.value=Lte(t.value,m);var d=hfr(Lte(_,m),f);t.value=y6e(t.value,d),n.value=FWe(n.value,_,d),e.value=SWe(e.value,_,_.slice(0,_.length-d.length))}else if(n){var x=n.value.match(/^\s*/)[0],T=t.value.match(/\s*$/)[0],A=pfr(T,x);t.value=y6e(t.value,A)}else if(e){var F=e.value.match(/\s*$/)[0],b=t.value.match(/^\s*/)[0],N=pfr(F,b);t.value=Lte(t.value,N)}}function mfr(e,t,r){return Y6e.diff(e,t,r)}function dfr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function q6e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dfr(Object(r),!0).forEach(function(n){qi0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dfr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ni0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bi0(e){var t=Ni0(e,"string");return typeof t=="symbol"?t:t+""}function PWe(e){return PWe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PWe(e)}function qi0(e,t,r){if(t=Bi0(t),t in e)Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0});else e[t]=r;return e}function hWe(e){return $i0(e)||Ji0(e)||Ii0(e)||Mi0()}function $i0(e){if(Array.isArray(e))return NWe(e)}function Ji0(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ii0(e,t){if(!e)return;if(typeof e==="string")return NWe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NWe(e,t)}function NWe(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Mi0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
835
835
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BWe(e,t,r,n,i){if(t=t||[],r=r||[],n)e=n(i,e);var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var u;if(Object.prototype.toString.call(e)==="[object Array]"){t.push(e),u=new Array(e.length),r.push(u);for(a=0;a<e.length;a+=1)u[a]=BWe(e[a],t,r,n,i);return t.pop(),r.pop(),u}if(e&&e.toJSON)e=e.toJSON();if(PWe(e)==="object"&&e!==null){t.push(e),u={},r.push(u);var s=[],l;for(l in e)if(Object.prototype.hasOwnProperty.call(e,l))s.push(l);s.sort();for(a=0;a<s.length;a+=1)l=s[a],u[l]=BWe(e[l],t,r,n,l);t.pop(),r.pop()}else u=e;return u}function zi0(e,t,r){return $6e.diff(e,t,r)}function yfr(e,t,r,n,i,a,u){if(!u)u={};if(typeof u==="function")u={callback:u};if(typeof u.context==="undefined")u.context=4;if(u.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(!u.callback)return h(mfr(r,n,u));else{var s=u,l=s.callback;mfr(r,n,q6e(q6e({},u),{},{callback:function _(p){var f=h(p);l(f)}}))}function h(_){if(!_)return;_.push({value:"",lines:[]});function p($){return $.map(function(M){return" "+M})}var f=[],m=0,d=0,x=[],T=1,A=1,F=function $(){var M=_[b],O=M.lines||Li0(M.value);if(M.lines=O,M.added||M.removed){var K;if(!m){var ue=_[b-1];if(m=T,d=A,ue)x=u.context>0?p(ue.lines.slice(-u.context)):[],m-=x.length,d-=x.length}if((K=x).push.apply(K,hWe(O.map(function(ge){return(M.added?"+":"-")+ge}))),M.added)A+=O.length;else T+=O.length}else{if(m)if(O.length<=u.context*2&&b<_.length-2){var Q;(Q=x).push.apply(Q,hWe(p(O)))}else{var G,Z=Math.min(O.length,u.context);(G=x).push.apply(G,hWe(p(O.slice(0,Z))));var ee={oldStart:m,oldLines:T-m+Z,newStart:d,newLines:A-d+Z,lines:x};f.push(ee),m=0,d=0,x=[]}T+=O.length,A+=O.length}};for(var b=0;b<_.length;b++)F();for(var N=0,E=f;N<E.length;N++){var P=E[N];for(var q=0;q<P.lines.length;q++)if(P.lines[q].endsWith(`
|
|
836
836
|
`))P.lines[q]=P.lines[q].slice(0,-1);else P.lines.splice(q+1,0,"\"),q++}return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:f}}}function qWe(e){if(Array.isArray(e))return e.map(qWe).join(`
|
|
837
837
|
`);var t=[];if(e.oldFileName==e.newFileName)t.push("Index: "+e.oldFileName);t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader==="undefined"?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader==="undefined"?"":"\t"+e.newHeader));for(var r=0;r<e.hunks.length;r++){var n=e.hunks[r];if(n.oldLines===0)n.oldStart-=1;if(n.newLines===0)n.newStart-=1;t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),t.push.apply(t,n.lines)}return t.join(`
|
|
@@ -928,7 +928,7 @@ Expected it to be ${n}.`}function bl0(e,t,r,n){let i=[e];while(i.length>0){let a
|
|
|
928
928
|
`).join(`
|
|
929
929
|
`),O+=Fe+" => "+He}),ee||K)O+=`
|
|
930
930
|
`;return O+="}",O},A.prototype.set=function($,M,O){O=O||this[p];var K=O?Date.now():0,ue=this[h](M,$);if(this[x].has($)){if(ue>this[s])return P(this,this[x].get($)),!1;var Q=this[x].get($),G=Q.value;if(this[f]){if(!this[m])this[f]($,G.value)}return G.now=K,G.maxAge=O,G.value=M,this[l]+=ue-G.length,G.length=ue,this.get($),E(this),!0}var Z=new q($,M,ue,K,O);if(Z.length>this[s]){if(this[f])this[f]($,M);return!1}return this[l]+=Z.length,this[d].unshift(Z),this[x].set($,this[d].head),E(this),!0},A.prototype.has=function($){if(!this[x].has($))return!1;var M=this[x].get($).value;if(N(this,M))return!1;return!0},A.prototype.get=function($){return b(this,$,!0)},A.prototype.peek=function($){return b(this,$,!1)},A.prototype.pop=function(){var $=this[d].tail;if(!$)return null;return P(this,$),$.value},A.prototype.del=function($){P(this,this[x].get($))},A.prototype.load=function($){this.reset();var M=Date.now();for(var O=$.length-1;O>=0;O--){var K=$[O],ue=K.e||0;if(ue===0)this.set(K.k,K.v);else{var Q=ue-M;if(Q>0)this.set(K.k,K.v,Q)}}},A.prototype.prune=function(){var $=this;this[x].forEach(function(M,O){b($,O,!1)})};function b($,M,O){var K=$[x].get(M);if(K){var ue=K.value;if(N($,ue)){if(P($,K),!$[_])ue=void 0}else if(O)$[d].unshiftNode(K);if(ue)ue=ue.value}return ue}function N($,M){if(!M||!M.maxAge&&!$[p])return!1;var O=!1,K=Date.now()-M.now;if(M.maxAge)O=K>M.maxAge;else O=$[p]&&K>$[p];return O}function E($){if($[l]>$[s])for(var M=$[d].tail;$[l]>$[s]&&M!==null;){var O=M.prev;P($,M),M=O}}function P($,M){if(M){var O=M.value;if($[f])$[f](O.key,O.value);$[l]-=O.length,$[x].delete(O.key),$[d].removeNode(M)}}function q($,M,O,K,ue){this.key=$,this.value=M,this.length=O,this.now=K,this.maxAge=ue||0}}}),pi0=Hn({"node_modules/sigmund/sigmund.js"(e,t){t.exports=r;function r(n,i){i=i||10;var a=[],u="",s=RegExp;function l(h,_){if(_>i)return;if(typeof h==="function"||typeof h==="undefined")return;if(typeof h!=="object"||!h||h instanceof s){u+=h;return}if(a.indexOf(h)!==-1||_===i)return;a.push(h),u+="{",Object.keys(h).forEach(function(p,f,m){if(p.charAt(0)==="_")return;var d=typeof h[p];if(d==="function"||d==="undefined")return;u+=p,l(h[p],_+1)})}return l(n,0),u}}}),fi0=Hn({"node_modules/editorconfig/src/lib/fnmatch.js"(e,t){var r=typeof process==="object"?process.platform:"win32";if(t)t.exports=F;else e.minimatch=F;F.Minimatch=b;var n=hi0(),i=F.cache=new n({max:100}),a=F.GLOBSTAR=b.GLOBSTAR={},u=pi0(),s=Ps("path"),l="[^/]",h=l+"*?",_="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",p="(?:(?!(?:\\/|^)\\.).)*?",f=m("().*{}+?[]^$\\!");function m(Q){return Q.split("").reduce(function(G,Z){return G[Z]=!0,G},{})}var d=/\/+/;F.monkeyPatch=x;function x(){var Q=Object.getOwnPropertyDescriptor(String.prototype,"match"),G=Q.value;Q.value=function(Z){if(Z instanceof b)return Z.match(this);return G.call(this,Z)},Object.defineProperty(String.prototype,Q)}F.filter=T;function T(Q,G){return G=G||{},function(Z,ee,ge){return F(Z,Q,G)}}function A(Q,G){Q=Q||{},G=G||{};var Z={};return Object.keys(G).forEach(function(ee){Z[ee]=G[ee]}),Object.keys(Q).forEach(function(ee){Z[ee]=Q[ee]}),Z}F.defaults=function(Q){if(!Q||!Object.keys(Q).length)return F;var G=F,Z=function ee(ge,Fe,He){return G.minimatch(ge,Fe,A(Q,He))};return Z.Minimatch=function ee(ge,Fe){return new G.Minimatch(ge,A(Q,Fe))},Z},b.defaults=function(Q){if(!Q||!Object.keys(Q).length)return b;return F.defaults(Q).Minimatch};function F(Q,G,Z){if(typeof G!=="string")throw new TypeError("glob pattern string required");if(!Z)Z={};if(!Z.nocomment&&G.charAt(0)==="#")return!1;if(G.trim()==="")return Q==="";return new b(G,Z).match(Q)}function b(Q,G){if(!(this instanceof b))return new b(Q,G,i);if(typeof Q!=="string")throw new TypeError("glob pattern string required");if(!G)G={};if(r==="win32")Q=Q.split("\\").join("/");var Z=Q+`
|
|
931
|
-
`+u(G),ee=F.cache.get(Z);if(ee)return ee;F.cache.set(Z,this),this.options=G,this.set=[],this.pattern=Q,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}b.prototype.make=N;function N(){if(this._made)return;var Q=this.pattern,G=this.options;if(!G.nocomment&&Q.charAt(0)==="#"){this.comment=!0;return}if(!Q){this.empty=!0;return}this.parseNegate();var Z=this.globSet=this.braceExpand();if(G.debug)console.error(this.pattern,Z);if(Z=this.globParts=Z.map(function(ee){return ee.split(d)}),G.debug)console.error(this.pattern,Z);if(Z=Z.map(function(ee,ge,Fe){return ee.map(this.parse,this)},this),G.debug)console.error(this.pattern,Z);if(Z=Z.filter(function(ee){return ee.indexOf(!1)===-1}),G.debug)console.error(this.pattern,Z);this.set=Z}b.prototype.parseNegate=E;function E(){var Q=this.pattern,G=!1,Z=this.options,ee=0;if(Z.nonegate)return;for(var ge=0,Fe=Q.length;ge<Fe&&Q.charAt(ge)==="!";ge++)G=!G,ee++;if(ee)this.pattern=Q.substr(ee);this.negate=G}F.braceExpand=function(Q,G){return new b(Q,G).braceExpand()},b.prototype.braceExpand=P;function P(Q,G){if(G=G||this.options,Q=typeof Q==="undefined"?this.pattern:Q,typeof Q==="undefined")throw new Error("undefined pattern");if(G.nobrace||!Q.match(/\{.*\}/))return[Q];var ke=!1;if(Q.charAt(0)!=="{"){var Z=null;for(var Xe=0,ee=Q.length;Xe<ee;Xe++){var ge=Q.charAt(Xe);if(ge==="\\")ke=!ke;else if(ge==="{"&&!ke){Z=Q.substr(0,Xe);break}}if(Z===null)return[Q];var Fe=P(Q.substr(Xe),G);return Fe.map(function(Bt){return Z+Bt})}var He=Q.match(/^\{(-?[0-9]+)\.\.(-?[0-9]+)\}/);if(He){var ut=P(Q.substr(He[0].length),G),xe=+He[1],$e=+He[2],Ie=xe>$e?-1:1,Ce=[];for(var Xe=xe;Xe!=$e+Ie;Xe+=Ie)for(var te=0,de=ut.length;te<de;te++)Ce.push(Xe+ut[te]);return Ce}var Xe=1,Ne=1,Ce=[],pe="",ie=!1,ke=!1;function Je(){Ce.push(pe),pe=""}e:for(Xe=1,ee=Q.length;Xe<ee;Xe++){var ge=Q.charAt(Xe);if(ke)ke=!1,pe+="\\"+ge;else switch(ge){case"\\":ke=!0;continue;case"{":Ne++,pe+="{";continue;case"}":if(Ne--,Ne===0){Je(),Xe++;break e}else{pe+=ge;continue}case",":if(Ne===1)Je();else pe+=ge;continue;default:pe+=ge;continue}}if(Ne!==0)return P("\\"+Q,G);var ut=P(Q.substr(Xe),G),ot=Ce.length===1;if(Ce=Ce.map(function(Bt){return P(Bt,G)}),Ce=Ce.reduce(function(Bt,pt){return Bt.concat(pt)}),ot)Ce=Ce.map(function(Bt){return"{"+Bt+"}"});var gt=[];for(var Xe=0,ee=Ce.length;Xe<ee;Xe++)for(var te=0,de=ut.length;te<de;te++)gt.push(Ce[Xe]+ut[te]);return gt}b.prototype.parse=$;var q={};function $(Q,G){var Z=this.options;if(!Z.noglobstar&&Q==="**")return a;if(Q==="")return"";var ee="",ge=!!Z.nocase,Fe=!1,He=[],xe,$e,Ie=!1,te=-1,de=-1,Xe=Q.charAt(0)==="."?"":Z.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";function Ne(){if($e){switch($e){case"*":ee+=h,ge=!0;break;case"?":ee+=l,ge=!0;break;default:ee+="\\"+$e;break}$e=!1}}for(var Ce=0,pe=Q.length,ie;Ce<pe&&(ie=Q.charAt(Ce));Ce++){if(Z.debug)console.error("%s
|
|
931
|
+
`+u(G),ee=F.cache.get(Z);if(ee)return ee;F.cache.set(Z,this),this.options=G,this.set=[],this.pattern=Q,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}b.prototype.make=N;function N(){if(this._made)return;var Q=this.pattern,G=this.options;if(!G.nocomment&&Q.charAt(0)==="#"){this.comment=!0;return}if(!Q){this.empty=!0;return}this.parseNegate();var Z=this.globSet=this.braceExpand();if(G.debug)console.error(this.pattern,Z);if(Z=this.globParts=Z.map(function(ee){return ee.split(d)}),G.debug)console.error(this.pattern,Z);if(Z=Z.map(function(ee,ge,Fe){return ee.map(this.parse,this)},this),G.debug)console.error(this.pattern,Z);if(Z=Z.filter(function(ee){return ee.indexOf(!1)===-1}),G.debug)console.error(this.pattern,Z);this.set=Z}b.prototype.parseNegate=E;function E(){var Q=this.pattern,G=!1,Z=this.options,ee=0;if(Z.nonegate)return;for(var ge=0,Fe=Q.length;ge<Fe&&Q.charAt(ge)==="!";ge++)G=!G,ee++;if(ee)this.pattern=Q.substr(ee);this.negate=G}F.braceExpand=function(Q,G){return new b(Q,G).braceExpand()},b.prototype.braceExpand=P;function P(Q,G){if(G=G||this.options,Q=typeof Q==="undefined"?this.pattern:Q,typeof Q==="undefined")throw new Error("undefined pattern");if(G.nobrace||!Q.match(/\{.*\}/))return[Q];var ke=!1;if(Q.charAt(0)!=="{"){var Z=null;for(var Xe=0,ee=Q.length;Xe<ee;Xe++){var ge=Q.charAt(Xe);if(ge==="\\")ke=!ke;else if(ge==="{"&&!ke){Z=Q.substr(0,Xe);break}}if(Z===null)return[Q];var Fe=P(Q.substr(Xe),G);return Fe.map(function(Bt){return Z+Bt})}var He=Q.match(/^\{(-?[0-9]+)\.\.(-?[0-9]+)\}/);if(He){var ut=P(Q.substr(He[0].length),G),xe=+He[1],$e=+He[2],Ie=xe>$e?-1:1,Ce=[];for(var Xe=xe;Xe!=$e+Ie;Xe+=Ie)for(var te=0,de=ut.length;te<de;te++)Ce.push(Xe+ut[te]);return Ce}var Xe=1,Ne=1,Ce=[],pe="",ie=!1,ke=!1;function Je(){Ce.push(pe),pe=""}e:for(Xe=1,ee=Q.length;Xe<ee;Xe++){var ge=Q.charAt(Xe);if(ke)ke=!1,pe+="\\"+ge;else switch(ge){case"\\":ke=!0;continue;case"{":Ne++,pe+="{";continue;case"}":if(Ne--,Ne===0){Je(),Xe++;break e}else{pe+=ge;continue}case",":if(Ne===1)Je();else pe+=ge;continue;default:pe+=ge;continue}}if(Ne!==0)return P("\\"+Q,G);var ut=P(Q.substr(Xe),G),ot=Ce.length===1;if(Ce=Ce.map(function(Bt){return P(Bt,G)}),Ce=Ce.reduce(function(Bt,pt){return Bt.concat(pt)}),ot)Ce=Ce.map(function(Bt){return"{"+Bt+"}"});var gt=[];for(var Xe=0,ee=Ce.length;Xe<ee;Xe++)for(var te=0,de=ut.length;te<de;te++)gt.push(Ce[Xe]+ut[te]);return gt}b.prototype.parse=$;var q={};function $(Q,G){var Z=this.options;if(!Z.noglobstar&&Q==="**")return a;if(Q==="")return"";var ee="",ge=!!Z.nocase,Fe=!1,He=[],xe,$e,Ie=!1,te=-1,de=-1,Xe=Q.charAt(0)==="."?"":Z.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";function Ne(){if($e){switch($e){case"*":ee+=h,ge=!0;break;case"?":ee+=l,ge=!0;break;default:ee+="\\"+$e;break}$e=!1}}for(var Ce=0,pe=Q.length,ie;Ce<pe&&(ie=Q.charAt(Ce));Ce++){if(Z.debug)console.error("%s\t%s %s %j",Q,Ce,ee,ie);if(Fe&&f[ie]){ee+="\\"+ie,Fe=!1;continue}e:switch(ie){case"/":return!1;case"\\":Ne(),Fe=!0;continue;case"?":case"*":case"+":case"@":case"!":if(Z.debug)console.error("%s\t%s %s %j <-- stateChar",Q,Ce,ee,ie);if(Ie){if(ie==="!"&&Ce===de+1)ie="^";ee+=ie;continue}if(Ne(),$e=ie,Z.noext)Ne();continue;case"(":if(Ie){ee+="(";continue}if(!$e){ee+="\\(";continue}xe=$e,He.push({type:xe,start:Ce-1,reStart:ee.length}),ee+=$e==="!"?"(?:(?!":"(?:",$e=!1;continue;case")":if(Ie||!He.length){ee+="\\)";continue}switch(ge=!0,ee+=")",xe=He.pop().type,xe){case"!":ee+="[^/]*?)";break;case"?":case"+":case"*":ee+=xe;case"@":break}continue;case"|":if(Ie||!He.length||Fe){ee+="\\|",Fe=!1;continue}ee+="|";continue;case"[":if(Ne(),Ie){ee+="\\"+ie;continue}Ie=!0,de=Ce,te=ee.length,ee+=ie;continue;case"]":if(Ce===de+1||!Ie){ee+="\\"+ie,Fe=!1;continue}ge=!0,Ie=!1,ee+=ie;continue;default:if(Ne(),Fe)Fe=!1;else if(f[ie]&&!(ie==="^"&&Ie))ee+="\\";ee+=ie}}if(Ie){var ke=Q.substr(de+1),Je=this.parse(ke,q);ee=ee.substr(0,te)+"\\["+Je[0],ge=ge||Je[1]}var ut;while(ut=He.pop()){var ot=ee.slice(ut.reStart+3);ot=ot.replace(/((?:\\{2})*)(\\?)\|/g,function(Tt,Mt,wr){if(!wr)wr="\\";return Mt+Mt+wr+"|"});var gt=ut.type==="*"?h:ut.type==="?"?l:"\\"+ut.type;ge=!0,ee=ee.slice(0,ut.reStart)+gt+"\\("+ot}if(Ne(),Fe)ee+="\\\\";var Bt=!1;switch(ee.charAt(0)){case".":case"[":case"(":Bt=!0}if(ee!==""&&ge)ee="(?=.)"+ee;if(Bt)ee=Xe+ee;if(G===q)return[ee,ge];if(!ge)return K(Q);var pt=Z.nocase?"i":"",St=new RegExp("^"+ee+"$",pt);return St._glob=Q,St._src=ee,St}F.makeRe=function(Q,G){return new b(Q,G||{}).makeRe()},b.prototype.makeRe=M;function M(){if(this.regexp||this.regexp===!1)return this.regexp;var Q=this.set;if(!Q.length)return this.regexp=!1;var G=this.options,Z=G.noglobstar?h:G.dot?_:p,ee=G.nocase?"i":"",ge=Q.map(function(Fe){return Fe.map(function(He){return He===a?Z:typeof He==="string"?ue(He):He._src}).join("\\/")}).join("|");if(ge="^(?:"+ge+")$",this.negate)ge="^(?!"+ge+").*$";try{return this.regexp=new RegExp(ge,ee)}catch(Fe){return this.regexp=!1}}F.match=function(Q,G,Z){var ee=new b(G,Z);if(Q=Q.filter(function(ge){return ee.match(ge)}),Z.nonull&&!Q.length)Q.push(G);return Q},b.prototype.match=O;function O(Q,G){if(this.comment)return!1;if(this.empty)return Q==="";if(Q==="/"&&G)return!0;var Z=this.options;if(r==="win32")Q=Q.split("\\").join("/");if(Q=Q.split(d),Z.debug)console.error(this.pattern,"split",Q);var ee=this.set;for(var ge=0,Fe=ee.length;ge<Fe;ge++){var He=ee[ge],xe=this.matchOne(Q,He,G);if(xe){if(Z.flipNegate)return!0;return!this.negate}}if(Z.flipNegate)return!1;return this.negate}b.prototype.matchOne=function(Q,G,Z){var ee=this.options;if(ee.debug)console.error("matchOne",{this:this,file:Q,pattern:G});if(ee.matchBase&&G.length===1)Q=s.basename(Q.join("/")).split("/");if(ee.debug)console.error("matchOne",Q.length,G.length);for(var ge=0,Fe=0,He=Q.length,xe=G.length;ge<He&&Fe<xe;ge++,Fe++){if(ee.debug)console.error("matchOne loop");var $e=G[Fe],Ie=Q[ge];if(ee.debug)console.error(G,$e,Ie);if($e===!1)return!1;if($e===a){if(ee.debug)console.error("GLOBSTAR",[G,$e,Ie]);var te=ge,de=Fe+1;if(de===xe){if(ee.debug)console.error("** at the end");for(;ge<He;ge++)if(Q[ge]==="."||Q[ge]===".."||!ee.dot&&Q[ge].charAt(0)===".")return!1;return!0}e:while(te<He){var Xe=Q[te];if(ee.debug)console.error(`
|
|
932
932
|
globstar while`,Q,te,G,de,Xe);if(this.matchOne(Q.slice(te),G.slice(de),Z)){if(ee.debug)console.error("globstar found match!",te,He,Xe);return!0}else{if(Xe==="."||Xe===".."||!ee.dot&&Xe.charAt(0)==="."){if(ee.debug)console.error("dot detected!",Q,te,G,de);break e}if(ee.debug)console.error("globstar swallow a segment, and continue");te++}}if(Z){if(te===He)return!0}return!1}var Ne;if(typeof $e==="string"){if(ee.nocase)Ne=Ie.toLowerCase()===$e.toLowerCase();else Ne=Ie===$e;if(ee.debug)console.error("string match",$e,Ie,Ne)}else if(Ne=Ie.match($e),ee.debug)console.error("pattern match",$e,Ie,Ne);if(!Ne)return!1}if(ge===He&&Fe===xe)return!0;else if(ge===He)return Z;else if(Fe===xe){var Ce=ge===He-1&&Q[ge]==="";return Ce}throw new Error("wtf?")};function K(Q){return Q.replace(/\\(.)/g,"$1")}function ue(Q){return Q.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}}}),mi0=Hn({"node_modules/editorconfig/src/lib/ini.js"(e){var t=e&&e.__awaiter||function(h,_,p,f){return new(p||(p=Promise))(function(m,d){function x(F){try{A(f.next(F))}catch(b){d(b)}}function T(F){try{A(f.throw(F))}catch(b){d(b)}}function A(F){F.done?m(F.value):new p(function(b){b(F.value)}).then(x,T)}A((f=f.apply(h,_||[])).next())})},r=e&&e.__generator||function(h,_){var p={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},f,m,d,x;return x={next:T(0),throw:T(1),return:T(2)},typeof Symbol==="function"&&(x[Symbol.iterator]=function(){return this}),x;function T(F){return function(b){return A([F,b])}}function A(F){if(f)throw new TypeError("Generator is already executing.");while(p)try{if(f=1,m&&(d=F[0]&2?m.return:F[0]?m.throw||((d=m.return)&&d.call(m),0):m.next)&&!(d=d.call(m,F[1])).done)return d;if(m=0,d)F=[F[0]&2,d.value];switch(F[0]){case 0:case 1:d=F;break;case 4:return p.label++,{value:F[1],done:!1};case 5:p.label++,m=F[1],F=[0];continue;case 7:F=p.ops.pop(),p.trys.pop();continue;default:if((d=p.trys,!(d=d.length>0&&d[d.length-1]))&&(F[0]===6||F[0]===2)){p=0;continue}if(F[0]===3&&(!d||F[1]>d[0]&&F[1]<d[3])){p.label=F[1];break}if(F[0]===6&&p.label<d[1]){p.label=d[1],d=F;break}if(d&&p.label<d[2]){p.label=d[2],p.ops.push(F);break}if(d[2])p.ops.pop();p.trys.pop();continue}F=_.call(h,p)}catch(b){F=[6,b],m=0}finally{f=d=0}if(F[0]&5)throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}},n=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var _={};if(h!=null){for(var p in h)if(Object.hasOwnProperty.call(h,p))_[p]=h[p]}return _.default=h,_};Object.defineProperty(e,"__esModule",{value:!0});var i=n(Ps("fs")),a={section:/^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,param:/^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s*([#;].*)?$/,comment:/^\s*[#;].*$/};function u(h){return t(this,void 0,void 0,function(){return r(this,function(_){return[2,new Promise(function(p,f){i.readFile(h,"utf8",function(m,d){if(m){f(m);return}p(l(d))})})]})})}e.parse=u;function s(h){return l(i.readFileSync(h,"utf8"))}e.parseSync=s;function l(h){var _={},p=null,f=[[p,_]],m=h.split(/\r\n|\r|\n/);return m.forEach(function(d){var x;if(a.comment.test(d))return;if(a.param.test(d))x=d.match(a.param),_[x[1]]=x[2];else if(a.section.test(d))x=d.match(a.section),p=x[1],_={},f.push([p,_])}),f}e.parseString=l}}),di0=Hn({"node_modules/editorconfig/package.json"(e,t){t.exports={name:"editorconfig",version:"0.15.3",description:"EditorConfig File Locator and Interpreter for Node.js",keywords:["editorconfig","core"],main:"src/index.js",contributors:["Hong Xu (topbug.net)","Jed Mao (https://github.com/jedmao/)","Trey Hunner (http://treyhunner.com)"],directories:{bin:"./bin",lib:"./lib"},scripts:{clean:"rimraf dist",prebuild:"npm run clean",build:"tsc",pretest:"npm run lint && npm run build && npm run copy && cmake .",test:"ctest .","pretest:ci":"npm run pretest","test:ci":"ctest -VV --output-on-failure .",lint:"npm run eclint && npm run tslint",eclint:'eclint check --indent_size ignore "src/**"',tslint:"tslint --project tsconfig.json --exclude package.json",copy:"cpy .npmignore LICENSE README.md CHANGELOG.md dist && cpy bin/* dist/bin && cpy src/lib/fnmatch*.* dist/src/lib",prepub:"npm run lint && npm run build && npm run copy",pub:"npm publish ./dist"},repository:{type:"git",url:"git://github.com/editorconfig/editorconfig-core-js.git"},bugs:"https://github.com/editorconfig/editorconfig-core-js/issues",author:"EditorConfig Team",license:"MIT",dependencies:{commander:"^2.19.0","lru-cache":"^4.1.5",semver:"^5.6.0",sigmund:"^1.0.1"},devDependencies:{"@types/mocha":"^5.2.6","@types/node":"^10.12.29","@types/semver":"^5.5.0","cpy-cli":"^2.0.0",eclint:"^2.8.1",mocha:"^5.2.0",rimraf:"^2.6.3",should:"^13.2.3",tslint:"^5.13.1",typescript:"^3.3.3333"}}}}),yi0=Hn({"node_modules/editorconfig/src/index.js"(e){var t=e&&e.__awaiter||function(K,ue,Q,G){return new(Q||(Q=Promise))(function(Z,ee){function ge(xe){try{He(G.next(xe))}catch($e){ee($e)}}function Fe(xe){try{He(G.throw(xe))}catch($e){ee($e)}}function He(xe){xe.done?Z(xe.value):new Q(function($e){$e(xe.value)}).then(ge,Fe)}He((G=G.apply(K,ue||[])).next())})},r=e&&e.__generator||function(K,ue){var Q={label:0,sent:function(){if(ee[0]&1)throw ee[1];return ee[1]},trys:[],ops:[]},G,Z,ee,ge;return ge={next:Fe(0),throw:Fe(1),return:Fe(2)},typeof Symbol==="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function Fe(xe){return function($e){return He([xe,$e])}}function He(xe){if(G)throw new TypeError("Generator is already executing.");while(Q)try{if(G=1,Z&&(ee=xe[0]&2?Z.return:xe[0]?Z.throw||((ee=Z.return)&&ee.call(Z),0):Z.next)&&!(ee=ee.call(Z,xe[1])).done)return ee;if(Z=0,ee)xe=[xe[0]&2,ee.value];switch(xe[0]){case 0:case 1:ee=xe;break;case 4:return Q.label++,{value:xe[1],done:!1};case 5:Q.label++,Z=xe[1],xe=[0];continue;case 7:xe=Q.ops.pop(),Q.trys.pop();continue;default:if((ee=Q.trys,!(ee=ee.length>0&&ee[ee.length-1]))&&(xe[0]===6||xe[0]===2)){Q=0;continue}if(xe[0]===3&&(!ee||xe[1]>ee[0]&&xe[1]<ee[3])){Q.label=xe[1];break}if(xe[0]===6&&Q.label<ee[1]){Q.label=ee[1],ee=xe;break}if(ee&&Q.label<ee[2]){Q.label=ee[2],Q.ops.push(xe);break}if(ee[2])Q.ops.pop();Q.trys.pop();continue}xe=ue.call(K,Q)}catch($e){xe=[6,$e],Z=0}finally{G=ee=0}if(xe[0]&5)throw xe[1];return{value:xe[0]?xe[1]:void 0,done:!0}}},n=e&&e.__importStar||function(K){if(K&&K.__esModule)return K;var ue={};if(K!=null){for(var Q in K)if(Object.hasOwnProperty.call(K,Q))ue[Q]=K[Q]}return ue.default=K,ue},i=e&&e.__importDefault||function(K){return K&&K.__esModule?K:{default:K}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(Ps("fs")),u=n(Ps("path")),s={gte:si0()},l=i(fi0()),h=mi0();e.parseString=h.parseString;var _=i(di0()),p={end_of_line:!0,indent_style:!0,indent_size:!0,insert_final_newline:!0,trim_trailing_whitespace:!0,charset:!0};function f(K,ue){var Q={matchBase:!0,dot:!0,noext:!0};return ue=ue.replace(/\*\*/g,"{*,**/**/**}"),l.default(K,ue,Q)}function m(K,ue){var Q=[];do K=u.dirname(K),Q.push(u.join(K,ue.config));while(K!==ue.root);return Q}function d(K,ue){if("indent_style"in K&&K.indent_style==="tab"&&!("indent_size"in K)&&s.gte(ue,"0.10.0"))K.indent_size="tab";if("indent_size"in K&&!("tab_width"in K)&&K.indent_size!=="tab")K.tab_width=K.indent_size;if("indent_size"in K&&"tab_width"in K&&K.indent_size==="tab")K.indent_size=K.tab_width;return K}function x(K,ue){if(K===void 0)K={};return{config:K.config||".editorconfig",version:K.version||_.default.version,root:u.resolve(K.root||u.parse(ue).root)}}function T(K,ue){switch(ue.indexOf("/")){case-1:ue="**/"+ue;break;case 0:ue=ue.substring(1);break;default:break}return u.join(K,ue)}function A(K,ue){if(K===void 0)K={};if(ue===void 0)ue={};for(var Q in ue)if(ue.hasOwnProperty(Q)){var G=ue[Q],Z=Q.toLowerCase(),ee=G;if(p[Z])ee=G.toLowerCase();try{ee=JSON.parse(G)}catch(ge){}if(typeof G==="undefined"||G===null)ee=String(G);K[Z]=ee}return K}function F(K,ue,Q){return d(K.reverse().reduce(function(G,Z){var ee=u.dirname(Z.name);return Z.contents.forEach(function(ge){var Fe=ge[0],He=ge[1];if(!Fe)return;var xe=T(ee,Fe);if(!f(ue,xe))return;G=A(G,He)}),G},{}),Q.version)}function b(K){var ue=[];for(var Q in K)if(K.hasOwnProperty(Q)){var G=K[Q],Z=h.parseString(G.contents);if(ue.push({name:G.name,contents:Z}),(Z[0][1].root||"").toLowerCase()==="true")break}return ue}function N(K){return t(this,void 0,void 0,function(){return r(this,function(ue){return[2,Promise.all(K.map(function(Q){return new Promise(function(G){a.readFile(Q,"utf8",function(Z,ee){G({name:Q,contents:Z?"":ee})})})}))]})})}function E(K){var ue=[],Q;return K.forEach(function(G){try{Q=a.readFileSync(G,"utf8")}catch(Z){Q=""}ue.push({name:G,contents:Q})}),ue}function P(K,ue){if(ue===void 0)ue={};var Q=u.resolve(K);return[Q,x(ue,Q)]}function q(K,ue,Q){if(Q===void 0)Q={};return t(this,void 0,void 0,function(){var G,Z,ee;return r(this,function(ge){return G=P(K,Q),Z=G[0],ee=G[1],[2,ue.then(b).then(function(Fe){return F(Fe,Z,ee)})]})})}e.parseFromFiles=q;function $(K,ue,Q){if(Q===void 0)Q={};var G=P(K,Q),Z=G[0],ee=G[1];return F(b(ue),Z,ee)}e.parseFromFilesSync=$;function M(K,ue){if(ue===void 0)ue={};return t(this,void 0,void 0,function(){var Q,G,Z,ee;return r(this,function(ge){return Q=P(K,ue),G=Q[0],Z=Q[1],ee=m(G,Z),[2,N(ee).then(b).then(function(Fe){return F(Fe,G,Z)})]})})}e.parse=M;function O(K,ue){if(ue===void 0)ue={};var Q=P(K,ue),G=Q[0],Z=Q[1],ee=m(G,Z),ge=E(ee);return F(b(ge),G,Z)}e.parseSync=O}}),gi0=Hn({"node_modules/ci-info/vendors.json"(e,t){t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]}}),xi0=Hn({"node_modules/ci-info/index.js"(e){var t=gi0(),r=process.env;Object.defineProperty(e,"_vendors",{value:t.map(function(a){return a.constant})}),e.name=null,e.isPR=null,e.id=null,t.forEach(function(a){let s=(Array.isArray(a.env)?a.env:[a.env]).every(function(l){return n(l)});if(e[a.constant]=s,!s)return;e.name=a.name,e.isPR=i(a),e.id=a.constant}),e.isCI=!!(r.CI!=="false"&&(r.BUILD_ID||r.BUILD_NUMBER||r.CI||r.CI_APP_ID||r.CI_BUILD_ID||r.CI_BUILD_NUMBER||r.CI_NAME||r.CONTINUOUS_INTEGRATION||r.RUN_ID||e.name||!1));function n(a){if(typeof a==="string")return!!r[a];if("env"in a)return r[a.env]&&r[a.env].includes(a.includes);if("any"in a)return a.any.some(function(u){return!!r[u]});return Object.keys(a).every(function(u){return r[u]===a[u]})}function i(a){switch(typeof a.pr){case"string":return!!r[a.pr];case"object":if("env"in a.pr)if("any"in a.pr)return a.pr.any.some(function(u){return r[a.pr.env]===u});else return a.pr.env in r&&r[a.pr.env]!==a.pr.ne;else if("any"in a.pr)return a.pr.any.some(function(u){return!!r[u]});else return n(a.pr);default:return null}}}}),vi0=Hn({"node_modules/picocolors/picocolors.js"(e,t){var r=process||{},n=r.argv||[],i=r.env||{},a=!(!!i.NO_COLOR||n.includes("--no-color"))&&(!!i.FORCE_COLOR||n.includes("--color")||r.platform==="win32"||(r.stdout||{}).isTTY&&i.TERM!=="dumb"||!!i.CI),u=(h,_,p=h)=>(f)=>{let m=""+f,d=m.indexOf(_,h.length);return~d?h+s(m,_,p,d)+_:h+m+_},s=(h,_,p,f)=>{let m="",d=0;do m+=h.substring(d,f)+p,d=f+_.length,f=h.indexOf(_,d);while(~f);return m+h.substring(d)},l=(h=a)=>{let _=h?u:()=>String;return{isColorSupported:h,reset:_("\x1B[0m","\x1B[0m"),bold:_("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:_("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:_("\x1B[3m","\x1B[23m"),underline:_("\x1B[4m","\x1B[24m"),inverse:_("\x1B[7m","\x1B[27m"),hidden:_("\x1B[8m","\x1B[28m"),strikethrough:_("\x1B[9m","\x1B[29m"),black:_("\x1B[30m","\x1B[39m"),red:_("\x1B[31m","\x1B[39m"),green:_("\x1B[32m","\x1B[39m"),yellow:_("\x1B[33m","\x1B[39m"),blue:_("\x1B[34m","\x1B[39m"),magenta:_("\x1B[35m","\x1B[39m"),cyan:_("\x1B[36m","\x1B[39m"),white:_("\x1B[37m","\x1B[39m"),gray:_("\x1B[90m","\x1B[39m"),bgBlack:_("\x1B[40m","\x1B[49m"),bgRed:_("\x1B[41m","\x1B[49m"),bgGreen:_("\x1B[42m","\x1B[49m"),bgYellow:_("\x1B[43m","\x1B[49m"),bgBlue:_("\x1B[44m","\x1B[49m"),bgMagenta:_("\x1B[45m","\x1B[49m"),bgCyan:_("\x1B[46m","\x1B[49m"),bgWhite:_("\x1B[47m","\x1B[49m"),blackBright:_("\x1B[90m","\x1B[39m"),redBright:_("\x1B[91m","\x1B[39m"),greenBright:_("\x1B[92m","\x1B[39m"),yellowBright:_("\x1B[93m","\x1B[39m"),blueBright:_("\x1B[94m","\x1B[39m"),magentaBright:_("\x1B[95m","\x1B[39m"),cyanBright:_("\x1B[96m","\x1B[39m"),whiteBright:_("\x1B[97m","\x1B[39m"),bgBlackBright:_("\x1B[100m","\x1B[49m"),bgRedBright:_("\x1B[101m","\x1B[49m"),bgGreenBright:_("\x1B[102m","\x1B[49m"),bgYellowBright:_("\x1B[103m","\x1B[49m"),bgBlueBright:_("\x1B[104m","\x1B[49m"),bgMagentaBright:_("\x1B[105m","\x1B[49m"),bgCyanBright:_("\x1B[106m","\x1B[49m"),bgWhiteBright:_("\x1B[107m","\x1B[49m")}};t.exports=l(),t.exports.createColors=l}}),Di0=Hn({"node_modules/js-tokens/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.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,e.matchToToken=function(t){var r={type:"invalid",value:t[0],closed:void 0};if(t[1])r.type="string",r.closed=!!(t[3]||t[4]);else if(t[5])r.type="comment";else if(t[6])r.type="comment",r.closed=!!t[7];else if(t[8])r.type="regex";else if(t[9])r.type="number";else if(t[10])r.type="name";else if(t[11])r.type="punctuator";else if(t[12])r.type="whitespace";return r}}}),wi0=Hn({"node_modules/@babel/helper-validator-identifier/lib/identifier.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isIdentifierChar=h,e.isIdentifierName=_,e.isIdentifierStart=l;var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",n=new RegExp("["+t+"]"),i=new RegExp("["+t+r+"]");t=r=null;var 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],u=[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 s(p,f){let m=65536;for(let d=0,x=f.length;d<x;d+=2){if(m+=f[d],m>p)return!1;if(m+=f[d+1],m>=p)return!0}return!1}function l(p){if(p<65)return p===36;if(p<=90)return!0;if(p<97)return p===95;if(p<=122)return!0;if(p<=65535)return p>=170&&n.test(String.fromCharCode(p));return s(p,a)}function h(p){if(p<48)return p===36;if(p<58)return!0;if(p<65)return!1;if(p<=90)return!0;if(p<97)return p===95;if(p<=122)return!0;if(p<=65535)return p>=170&&i.test(String.fromCharCode(p));return s(p,a)||s(p,u)}function _(p){let f=!0;for(let m=0;m<p.length;m++){let d=p.charCodeAt(m);if((d&64512)===55296&&m+1<p.length){let x=p.charCodeAt(++m);if((x&64512)===56320)d=65536+((d&1023)<<10)+(x&1023)}if(f){if(f=!1,!l(d))return!1}else if(!h(d))return!1}return!f}}}),Ai0=Hn({"node_modules/@babel/helper-validator-identifier/lib/keyword.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyword=h,e.isReservedWord=a,e.isStrictBindOnlyReservedWord=s,e.isStrictBindReservedWord=l,e.isStrictReservedWord=u;var t={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"]},r=new Set(t.keyword),n=new Set(t.strict),i=new Set(t.strictBind);function a(_,p){return p&&_==="await"||_==="enum"}function u(_,p){return a(_,p)||n.has(_)}function s(_){return i.has(_)}function l(_,p){return u(_,p)||s(_)}function h(_){return r.has(_)}}}),bi0=Hn({"node_modules/@babel/helper-validator-identifier/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=wi0(),r=Ai0()}}),j7r=Hn({"node_modules/@babel/code-frame/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=vi0(),r=Di0(),n=bi0();function i(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:t.isColorSupported}var a=(N,E)=>(P)=>N(E(P));function u(N){return{keyword:N.cyan,capitalized:N.yellow,jsxIdentifier:N.yellow,punctuator:N.yellow,number:N.magenta,string:N.green,regex:N.magenta,comment:N.gray,invalid:a(a(N.white,N.bgRed),N.bold),gutter:N.gray,marker:a(N.red,N.bold),message:a(N.red,N.bold),reset:N.reset}}var s=u(t.createColors(!0)),l=u(t.createColors(!1));function h(N){return N?s:l}var _=new Set(["as","async","from","get","of","set"]),p=/\r\n|[\n\r\u2028\u2029]/,f=/^[()[\]{}]$/,m;{let N=/^[a-z][\w-]*$/i,E=function(P,q,$){if(P.type==="name"){if(n.isKeyword(P.value)||n.isStrictReservedWord(P.value,!0)||_.has(P.value))return"keyword";if(N.test(P.value)&&($[q-1]==="<"||$.slice(q-2,q)==="</"))return"jsxIdentifier";if(P.value[0]!==P.value[0].toLowerCase())return"capitalized"}if(P.type==="punctuator"&&f.test(P.value))return"bracket";if(P.type==="invalid"&&(P.value==="@"||P.value==="#"))return"punctuator";return P.type};m=function*(P){let q;while(q=r.default.exec(P)){let $=r.matchToToken(q);yield{type:E($,q.index,P),value:$.value}}}}function d(N){if(N==="")return"";let E=h(!0),P="";for(let{type:q,value:$}of m(N))if(q in E)P+=$.split(p).map((M)=>E[q](M)).join(`
|
|
933
933
|
`);else P+=$;return P}var x=!1,T=/\r\n|[\n\r\u2028\u2029]/;function A(N,E,P){let q=Object.assign({column:0,line:-1},N.start),$=Object.assign({},q,N.end),{linesAbove:M=2,linesBelow:O=3}=P||{},K=q.line,ue=q.column,Q=$.line,G=$.column,Z=Math.max(K-(M+1),0),ee=Math.min(E.length,Q+O);if(K===-1)Z=0;if(Q===-1)ee=E.length;let ge=Q-K,Fe={};if(ge)for(let He=0;He<=ge;He++){let xe=He+K;if(!ue)Fe[xe]=!0;else if(He===0){let $e=E[xe-1].length;Fe[xe]=[ue,$e-ue+1]}else if(He===ge)Fe[xe]=[0,G];else{let $e=E[xe-He].length;Fe[xe]=[0,$e]}}else if(ue===G)if(ue)Fe[K]=[ue,0];else Fe[K]=!0;else Fe[K]=[ue,G-ue];return{start:Z,end:ee,markerLines:Fe}}function F(N,E,P={}){let q=P.forceColor||i()&&P.highlightCode,$=h(q),M=N.split(T),{start:O,end:K,markerLines:ue}=A(E,M,P),Q=E.start&&typeof E.start.column==="number",G=String(K).length,ee=(q?d(N):N).split(T,K).slice(O,K).map((ge,Fe)=>{let He=O+1+Fe,$e=` ${` ${He}`.slice(-G)} |`,Ie=ue[He],te=!ue[He+1];if(Ie){let de="";if(Array.isArray(Ie)){let Xe=ge.slice(0,Math.max(Ie[0]-1,0)).replace(/[^\t]/g," "),Ne=Ie[1]||1;if(de=[`
|
|
934
934
|
`,$.gutter($e.replace(/\d/g," "))," ",Xe,$.marker("^").repeat(Ne)].join(""),te&&P.message)de+=" "+$.message(P.message)}return[$.marker(">"),$.gutter($e),ge.length>0?` ${ge}`:"",de].join("")}else return` ${$.gutter($e)}${ge.length>0?` ${ge}`:""}`}).join(`
|
|
@@ -949,18 +949,18 @@ ${r}
|
|
|
949
949
|
${i}`,t);this.line=r,this.column=n,this.codeblock=i}};do0=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}:\d{2}(?:\.\d+)?)?(Z|[-+]\d{2}:\d{2})?$/i,yo0=class e extends Date{constructor(t){let r=!0,n=!0,i="Z";if(typeof t==="string"){let a=t.match(do0);if(a){if(!a[1])r=!1,t=`0000-01-01T${t}`;if(n=!!a[2],a[2]&&+a[2]>23)t="";else if(i=a[3]||null,t=t.toUpperCase(),!i&&n)t+="Z"}else t=""}super(t);if(fA(this,jC,!1),fA(this,KC,!1),fA(this,Gm,null),!isNaN(this.getTime()))ed(this,jC,r),ed(this,KC,n),ed(this,Gm,i)}isDateTime(){return n_(this,jC)&&n_(this,KC)}isLocal(){return!n_(this,jC)||!n_(this,KC)||!n_(this,Gm)}isDate(){return n_(this,jC)&&!n_(this,KC)}isTime(){return n_(this,KC)&&!n_(this,jC)}isValid(){return n_(this,jC)||n_(this,KC)}toISOString(){let t=super.toISOString();if(this.isDate())return t.slice(0,10);if(this.isTime())return t.slice(11,23);if(n_(this,Gm)===null)return t.slice(0,-1);if(n_(this,Gm)==="Z")return t;let r=+n_(this,Gm).slice(1,3)*60+ +n_(this,Gm).slice(4,6);return r=n_(this,Gm)[0]==="-"?r:-r,new Date(this.getTime()-r*60000).toISOString().slice(0,-1)+n_(this,Gm)}static wrapAsOffsetDateTime(t,r="Z"){let n=new e(t);return ed(n,Gm,r),n}static wrapAsLocalDateTime(t){let r=new e(t);return ed(r,Gm,null),r}static wrapAsLocalDate(t){let r=new e(t);return ed(r,KC,!1),ed(r,Gm,null),r}static wrapAsLocalTime(t){let r=new e(t);return ed(r,jC,!1),ed(r,Gm,null),r}};jC=new WeakMap;KC=new WeakMap;Gm=new WeakMap;go0=yo0,xo0=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,vo0=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,Do0=/^[+-]?0[0-9_]/,wo0=/^[0-9a-f]{4,8}$/i,Gfr={b:"\b",t:"\t",n:`
|
|
950
950
|
`,f:"\f",r:"\r",'"':'"',"\\":"\\"};To0=/^[a-zA-Z0-9-_]+[ \t]*$/;ere=So0;No0={async ".toml"(e){let t=await ere(e);try{return ko0(t)}catch(r){throw r.message=`TOML Error in ${e}:
|
|
951
951
|
${r.message}`,r}},async ".json5"(e){let t=await ere(e);try{return ao0.parse(t)}catch(r){throw r.message=`JSON5 Error in ${e}:
|
|
952
|
-
${r.message}`,r}},".json":wmr,".js":gI,".mjs":gI,".cjs":gI,".ts":gI,".mts":gI,".cts":gI,".yaml":C6e,".yml":C6e,"":C6e},Bo0=No0,qo0=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.ts",".prettierrc.mjs",".prettierrc.mts",".prettierrc.cjs",".prettierrc.cts","prettier.config.js","prettier.config.ts","prettier.config.mjs","prettier.config.mts","prettier.config.cjs","prettier.config.cts",".prettierrc.toml"];Io0=Jo0,Zo0={}.hasOwnProperty,Oo0=/^([A-Z][a-z\d]*)+$/,Qo0=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Rh={};kmr=new Map;Rh.ERR_INVALID_ARG_TYPE=M4("ERR_INVALID_ARG_TYPE",(e,t,r)=>{if(bI(typeof e==="string","'name' must be a string"),!Array.isArray(t))t=[t];let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{let s=e.includes(".")?"property":"argument";n+=`"${e}" ${s} `}n+="must be ";let i=[],a=[],u=[];for(let s of t)if(bI(typeof s==="string","All expected entries have to be of type string"),Qo0.has(s))i.push(s.toLowerCase());else if(Oo0.exec(s)===null)bI(s!=="object",'The value "object" should be written as "Object"'),u.push(s);else a.push(s);if(a.length>0){let s=i.indexOf("object");if(s!==-1)i.slice(s,1),a.push("Object")}if(i.length>0){if(n+=`${i.length>1?"one of type":"of type"} ${vWe(i,"or")}`,a.length>0||u.length>0)n+=" or "}if(a.length>0){if(n+=`an instance of ${vWe(a,"or")}`,u.length>0)n+=" or "}if(u.length>0)if(u.length>1)n+=`one of ${vWe(u,"or")}`;else{if(u[0].toLowerCase()!==u[0])n+="an ";n+=`${u[0]}`}return n+=`. Received ${es0(r)}`,n},TypeError);Rh.ERR_INVALID_MODULE_SPECIFIER=M4("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>{return`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`},TypeError);Rh.ERR_INVALID_PACKAGE_CONFIG=M4("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>{return`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`},Error);Rh.ERR_INVALID_PACKAGE_TARGET=M4("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,i=void 0)=>{let a=typeof r==="string"&&!n&&r.length>0&&!r.startsWith("./");if(t===".")return bI(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${a?'; targets must start with "./"':""}`;return`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${a?'; targets must start with "./"':""}`},Error);Rh.ERR_MODULE_NOT_FOUND=M4("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>{return`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`},Error);Rh.ERR_NETWORK_IMPORT_DISALLOWED=M4("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Rh.ERR_PACKAGE_IMPORT_NOT_DEFINED=M4("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>{return`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`},TypeError);Rh.ERR_PACKAGE_PATH_NOT_EXPORTED=M4("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>{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);Rh.ERR_UNSUPPORTED_DIR_IMPORT=M4("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);Rh.ERR_UNSUPPORTED_RESOLVE_REQUEST=M4("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);Rh.ERR_UNKNOWN_FILE_EXTENSION=M4("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>{return`Unknown file extension "${e}" for ${t}`},TypeError);Rh.ERR_INVALID_ARG_VALUE=M4("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=OWe(t);if(n.length>128)n=`${n.slice(0,128)}...`;return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);Go0=Ho0(function(e){let t=QWe();if(t)e7r=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(e),t)Error.stackTraceLimit=e7r;return e});Xte={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:ts0}=Rh,t7r=new Map;({ERR_UNKNOWN_FILE_EXTENSION:rs0}=Rh),ns0={}.hasOwnProperty,is0={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};n7r={__proto__:null,"data:":us0,"file:":ss0,"http:":i7r,"https:":i7r,"node:"(){return"builtin"}};({ERR_INVALID_ARG_VALUE:ls0}=Rh),Pmr=Object.freeze(["node","import"]),_s0=new Set(Pmr);x6e=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:DWe,ERR_INVALID_MODULE_SPECIFIER:G6e,ERR_INVALID_PACKAGE_CONFIG:Nmr,ERR_INVALID_PACKAGE_TARGET:fs0,ERR_MODULE_NOT_FOUND:bYe,ERR_PACKAGE_IMPORT_NOT_DEFINED:ms0,ERR_PACKAGE_PATH_NOT_EXPORTED:ds0,ERR_UNSUPPORTED_DIR_IMPORT:ys0,ERR_UNSUPPORTED_RESOLVE_REQUEST:a7r}=Rh,Bmr={}.hasOwnProperty,u7r=/(^|\\|\/)((\.|%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,o7r=/(^|\\|\/)((\.|%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,gs0=/^\.|%|\\/,v6e=/\*/g,xs0=/%2f|%5c/i,s7r=new Set,vs0=/[/\\]{2}/;Imr=Ms0;Ls0=Vs0,Xs0=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED","ERR_REQUIRE_ASYNC_MODULE"]);Ks0=js0;Zs0=Us0,E6e=new Map,k6e=new Map;ire=tl0,rl0=rN(Ti0(),1),il0=F6e.sep==="\\"?(e)=>ire(!1,e,"\\","/"):(e)=>e;sl0=rN(Ci0(),1);_l0=ll0;Lmr=pl0;dl0=fl0;jmr=new Set([EI,HC,GC,aN,J4,RC,_3,uN,eE,oN,I4,tE,c3]),nh=xl0;kI=vl0;Al0=class extends Error{name="InvalidDocError";constructor(e){super(wl0(e));this.doc=e}},rU=Al0,f7r={};Tl0=bl0;e4e=Pl0;Kmr={type:c3},Umr={type:I4,hard:!0},Nl0={type:I4},HK=[Umr,Kmr],OK={type:EI};zl0=/[^\x20-\x7F]/u;EYe=Vl0,Rm=Symbol("MODE_BREAK"),hA=Symbol("MODE_FLAT"),QK=Symbol("cursor"),YWe=Symbol("DOC_FILL_PRINTED_LENGTH");FYe=jl0;xI=new WeakSet;RWe=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1};P6e=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];if(!Array.isArray(r))yield r}};Ul0=Kl0;Ol0=Zl0;Yl0=are(/\s/u),tN=are("
|
|
952
|
+
${r.message}`,r}},".json":wmr,".js":gI,".mjs":gI,".cjs":gI,".ts":gI,".mts":gI,".cts":gI,".yaml":C6e,".yml":C6e,"":C6e},Bo0=No0,qo0=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.ts",".prettierrc.mjs",".prettierrc.mts",".prettierrc.cjs",".prettierrc.cts","prettier.config.js","prettier.config.ts","prettier.config.mjs","prettier.config.mts","prettier.config.cjs","prettier.config.cts",".prettierrc.toml"];Io0=Jo0,Zo0={}.hasOwnProperty,Oo0=/^([A-Z][a-z\d]*)+$/,Qo0=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Rh={};kmr=new Map;Rh.ERR_INVALID_ARG_TYPE=M4("ERR_INVALID_ARG_TYPE",(e,t,r)=>{if(bI(typeof e==="string","'name' must be a string"),!Array.isArray(t))t=[t];let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{let s=e.includes(".")?"property":"argument";n+=`"${e}" ${s} `}n+="must be ";let i=[],a=[],u=[];for(let s of t)if(bI(typeof s==="string","All expected entries have to be of type string"),Qo0.has(s))i.push(s.toLowerCase());else if(Oo0.exec(s)===null)bI(s!=="object",'The value "object" should be written as "Object"'),u.push(s);else a.push(s);if(a.length>0){let s=i.indexOf("object");if(s!==-1)i.slice(s,1),a.push("Object")}if(i.length>0){if(n+=`${i.length>1?"one of type":"of type"} ${vWe(i,"or")}`,a.length>0||u.length>0)n+=" or "}if(a.length>0){if(n+=`an instance of ${vWe(a,"or")}`,u.length>0)n+=" or "}if(u.length>0)if(u.length>1)n+=`one of ${vWe(u,"or")}`;else{if(u[0].toLowerCase()!==u[0])n+="an ";n+=`${u[0]}`}return n+=`. Received ${es0(r)}`,n},TypeError);Rh.ERR_INVALID_MODULE_SPECIFIER=M4("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>{return`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`},TypeError);Rh.ERR_INVALID_PACKAGE_CONFIG=M4("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>{return`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`},Error);Rh.ERR_INVALID_PACKAGE_TARGET=M4("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,i=void 0)=>{let a=typeof r==="string"&&!n&&r.length>0&&!r.startsWith("./");if(t===".")return bI(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${i?` imported from ${i}`:""}${a?'; targets must start with "./"':""}`;return`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${i?` imported from ${i}`:""}${a?'; targets must start with "./"':""}`},Error);Rh.ERR_MODULE_NOT_FOUND=M4("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>{return`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`},Error);Rh.ERR_NETWORK_IMPORT_DISALLOWED=M4("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Rh.ERR_PACKAGE_IMPORT_NOT_DEFINED=M4("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>{return`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`},TypeError);Rh.ERR_PACKAGE_PATH_NOT_EXPORTED=M4("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>{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);Rh.ERR_UNSUPPORTED_DIR_IMPORT=M4("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);Rh.ERR_UNSUPPORTED_RESOLVE_REQUEST=M4("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);Rh.ERR_UNKNOWN_FILE_EXTENSION=M4("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>{return`Unknown file extension "${e}" for ${t}`},TypeError);Rh.ERR_INVALID_ARG_VALUE=M4("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=OWe(t);if(n.length>128)n=`${n.slice(0,128)}...`;return`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);Go0=Ho0(function(e){let t=QWe();if(t)e7r=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(e),t)Error.stackTraceLimit=e7r;return e});Xte={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:ts0}=Rh,t7r=new Map;({ERR_UNKNOWN_FILE_EXTENSION:rs0}=Rh),ns0={}.hasOwnProperty,is0={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};n7r={__proto__:null,"data:":us0,"file:":ss0,"http:":i7r,"https:":i7r,"node:"(){return"builtin"}};({ERR_INVALID_ARG_VALUE:ls0}=Rh),Pmr=Object.freeze(["node","import"]),_s0=new Set(Pmr);x6e=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:DWe,ERR_INVALID_MODULE_SPECIFIER:G6e,ERR_INVALID_PACKAGE_CONFIG:Nmr,ERR_INVALID_PACKAGE_TARGET:fs0,ERR_MODULE_NOT_FOUND:bYe,ERR_PACKAGE_IMPORT_NOT_DEFINED:ms0,ERR_PACKAGE_PATH_NOT_EXPORTED:ds0,ERR_UNSUPPORTED_DIR_IMPORT:ys0,ERR_UNSUPPORTED_RESOLVE_REQUEST:a7r}=Rh,Bmr={}.hasOwnProperty,u7r=/(^|\\|\/)((\.|%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,o7r=/(^|\\|\/)((\.|%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,gs0=/^\.|%|\\/,v6e=/\*/g,xs0=/%2f|%5c/i,s7r=new Set,vs0=/[/\\]{2}/;Imr=Ms0;Ls0=Vs0,Xs0=new Set(["MODULE_NOT_FOUND","ERR_REQUIRE_ESM","ERR_PACKAGE_PATH_NOT_EXPORTED","ERR_REQUIRE_ASYNC_MODULE"]);Ks0=js0;Zs0=Us0,E6e=new Map,k6e=new Map;ire=tl0,rl0=rN(Ti0(),1),il0=F6e.sep==="\\"?(e)=>ire(!1,e,"\\","/"):(e)=>e;sl0=rN(Ci0(),1);_l0=ll0;Lmr=pl0;dl0=fl0;jmr=new Set([EI,HC,GC,aN,J4,RC,_3,uN,eE,oN,I4,tE,c3]),nh=xl0;kI=vl0;Al0=class extends Error{name="InvalidDocError";constructor(e){super(wl0(e));this.doc=e}},rU=Al0,f7r={};Tl0=bl0;e4e=Pl0;Kmr={type:c3},Umr={type:I4,hard:!0},Nl0={type:I4},HK=[Umr,Kmr],OK={type:EI};zl0=/[^\x20-\x7F]/u;EYe=Vl0,Rm=Symbol("MODE_BREAK"),hA=Symbol("MODE_FLAT"),QK=Symbol("cursor"),YWe=Symbol("DOC_FILL_PRINTED_LENGTH");FYe=jl0;xI=new WeakSet;RWe=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1};P6e=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];if(!Array.isArray(r))yield r}};Ul0=Kl0;Ol0=Zl0;Yl0=are(/\s/u),tN=are(" \t"),Omr=are(",; \t"),Qmr=are(/[^\n\r]/u);TI=Hl0;HP=Gl0;e_0=Rl0,Wmr=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]);ure=r_0;bWe=new WeakMap;NYe=o_0;f_0=p_0,m_0={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
953
953
|
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:(e)=>typeof e==="string"||typeof e==="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:(e)=>typeof e==="string"||typeof e==="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
954
954
|
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
955
955
|
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
956
|
-
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};edr=y_0,tdr=v_0;eYe={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};uU=A_0,b_0=rN(j7r(),1);ore=T_0;S_0=F_0;N_0=P_0;q_0=B_0,J_0=$_0;udr=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),X_0=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);b7r=Symbol("cursor");cdr={};tre(cdr,{CATEGORY_CONFIG:()=>Y_0,CATEGORY_EDITOR:()=>H_0,CATEGORY_FORMAT:()=>G_0,CATEGORY_GLOBAL:()=>tc0,CATEGORY_OTHER:()=>R_0,CATEGORY_OUTPUT:()=>ec0,CATEGORY_SPECIAL:()=>rc0});hdr={};tre(hdr,{languages:()=>Tc0,options:()=>bc0,parsers:()=>Cc0,printers:()=>Ec0});nc0=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],td={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ic0={singleQuote:td.singleQuote},ac0=ic0,uc0=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],oc0={bracketSpacing:td.bracketSpacing},sc0=oc0,lc0=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],_c0=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],cc0={bracketSameLine:td.bracketSameLine,htmlWhitespaceSensitivity:{category:E7r,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:td.singleAttributePerLine,vueIndentScriptAndStyle:{category:E7r,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},hc0=cc0,pc0=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],fc0={arrowParens:{category:QP,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:td.bracketSameLine,objectWrap:td.objectWrap,bracketSpacing:td.bracketSpacing,jsxBracketSameLine:{category:QP,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:QP,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:QP,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:QP,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:td.singleQuote,jsxSingleQuote:{category:QP,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:QP,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:QP,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:td.singleAttributePerLine},mc0=fc0,dc0=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],yc0=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],gc0={proseWrap:td.proseWrap,singleQuote:td.singleQuote},xc0=gc0,vc0=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],Dc0={bracketSpacing:td.bracketSpacing,singleQuote:td.singleQuote,proseWrap:td.proseWrap},wc0=Dc0;bc0={...ac0,...sc0,...hc0,...mc0,...xc0,...wc0},Tc0=[...nc0,...uc0,...lc0,..._c0,...pc0,...dc0,...yc0,...vc0],{parsers:Cc0,printers:Ec0}=Ac0([{importPlugin:()=>Promise.resolve().then(() => (Qer(),Oer)),parsers:["acorn","espree"]},{importPlugin:()=>Promise.resolve().then(() => (Lrr(),Vrr)),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>Promise.resolve().then(() => (hnr(),cnr)),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>Promise.resolve().then(() => (G0r(),H0r)),printers:["estree","estree-json"]},{importPlugin:()=>Promise.resolve().then(() => (oar(),uar)),parsers:["flow"]},{importPlugin:()=>Promise.resolve().then(() => (wur(),Dur)),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>Promise.resolve().then(() => (Hur(),Yur)),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>Promise.resolve().then(() => (Bsr(),Nsr)),parsers:["html","angular","vue","lwc"],printers:["html"]},{importPlugin:()=>Promise.resolve().then(() => (qlr(),Blr)),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>Promise.resolve().then(() => (S_r(),F_r)),parsers:["meriyah"]},{importPlugin:()=>Promise.resolve().then(() => (Vcr(),zcr)),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>Promise.resolve().then(() => (opr(),upr)),parsers:["typescript"]},{importPlugin:()=>Promise.resolve().then(() => (lfr(),sfr)),parsers:["yaml"],printers:["yaml"]}]);Fc0=kc0;Nc0=Pc0;N6e=new Map;Mc0=Ic0;Vc0=zc0,qYe={};tre(qYe,{addDanglingComment:()=>vI,addLeadingComment:()=>WK,addTrailingComment:()=>YK,getAlignmentSize:()=>FYe,getIndentSize:()=>Zc0,getMaxContinuousCount:()=>Wc0,getNextNonSpaceNonCommentCharacter:()=>Hc0,getNextNonSpaceNonCommentCharacterIndex:()=>o10,getPreferredQuote:()=>Rc0,getStringWidth:()=>EYe,hasNewline:()=>HP,hasNewlineInRange:()=>t10,hasSpaces:()=>n10,isNextLineEmpty:()=>c10,isNextLineEmptyAfterIndex:()=>MYe,isPreviousLineEmpty:()=>l10,makeString:()=>a10,skip:()=>are,skipEverythingButNewLine:()=>Qmr,skipInlineComment:()=>$Ye,skipNewline:()=>TI,skipSpaces:()=>tN,skipToLineEnd:()=>Omr,skipTrailingComment:()=>JYe,skipWhitespace:()=>Yl0});$Ye=Lc0;JYe=Xc0;IYe=jc0;MYe=Kc0;Zc0=Uc0;Wc0=Qc0;Hc0=Yc0;Rc0=Gc0;t10=e10;n10=r10;a10=i10;zYe=WP(_dr);ddr=WP(dl0),ydr=WP(BYe,0),gdr={errors:H7r,optionCategories:cdr,createIsIgnoredFunction:zmr,formatOptionsHiddenDefaults:eYe,normalizeOptions:edr,getSupportInfoWithoutPlugins:BYe,normalizeOptionSettings:Rmr,vnopts:{ChoiceSchema:Y7r,apiDescriptor:DI},fastGlob:Xi0.default,createTwoFilesPatch:Vi0,utils:{omit:Vc0},mockable:pYe},xdr={parse:WP(U_0),formatAST:WP(Z_0),formatDoc:WP(O_0),printToDoc:WP(Q_0),printDocToString:WP(W_0),mockable:pYe},h10=K7r});var lre=he((Ddr)=>{Object.defineProperty(Ddr,"__esModule",{value:!0});Ddr.setWasm=void 0;var vdr={},p10=(e)=>{Object.assign(vdr,e)};Ddr.setWasm=p10;Ddr.default=vdr});var Tdr=he((A10,Z_)=>{var __dirname="/Users/shamil/dev/ic/mops/cli/node_modules/prettier-plugin-motoko/wasm/pkg/nodejs",Adr={};Adr.__wbindgen_placeholder__=A10;var Ws,{TextEncoder:m10,TextDecoder:d10}=Rt("util"),rE=new Array(128).fill(void 0);rE.push(void 0,null,!0,!1);function sU(e){return rE[e]}var FI=0,n4e=null;function i4e(){if(n4e===null||n4e.byteLength===0)n4e=new Uint8Array(Ws.memory.buffer);return n4e}var a4e=new m10("utf-8"),y10=typeof a4e.encodeInto==="function"?function(e,t){return a4e.encodeInto(e,t)}:function(e,t){let r=a4e.encode(e);return t.set(r),{read:e.length,written:r.length}};function cre(e,t,r){if(r===void 0){let s=a4e.encode(e),l=t(s.length,1)>>>0;return i4e().subarray(l,l+s.length).set(s),FI=s.length,l}let n=e.length,i=t(n,1)>>>0,a=i4e(),u=0;for(;u<n;u++){let s=e.charCodeAt(u);if(s>127)break;a[i+u]=s}if(u!==n){if(u!==0)e=e.slice(u);i=r(i,n,n=u+e.length*3,1)>>>0;let s=i4e().subarray(i+u,i+n),l=y10(e,s);u+=l.written,i=r(i,n,u,1)>>>0}return FI=u,i}var oU=null;function Sy(){if(oU===null||oU.buffer.detached===!0||oU.buffer.detached===void 0&&oU.buffer!==Ws.memory.buffer)oU=new DataView(Ws.memory.buffer);return oU}var bdr=new d10("utf-8",{ignoreBOM:!0,fatal:!0});bdr.decode();function u4e(e,t){return e=e>>>0,bdr.decode(i4e().subarray(e,e+t))}var _re=rE.length;function sN(e){if(_re===rE.length)rE.push(rE.length+1);let t=_re;return _re=rE[t],rE[t]=e,t}function g10(e){if(e<132)return;rE[e]=_re,_re=e}function yA(e){let t=sU(e);return g10(e),t}A10.start=function(){Ws.start()};A10.find_comments=function(e){try{let i=Ws.__wbindgen_add_to_stack_pointer(-16),a=cre(e,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),u=FI;Ws.find_comments(i,a,u);var t=Sy().getInt32(i+0,!0),r=Sy().getInt32(i+4,!0),n=Sy().getInt32(i+8,!0);if(n)throw yA(r);return yA(t)}finally{Ws.__wbindgen_add_to_stack_pointer(16)}};A10.parse_token_tree=function(e){try{let i=Ws.__wbindgen_add_to_stack_pointer(-16),a=cre(e,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),u=FI;Ws.parse_token_tree(i,a,u);var t=Sy().getInt32(i+0,!0),r=Sy().getInt32(i+4,!0),n=Sy().getInt32(i+8,!0);if(n)throw yA(r);return yA(t)}finally{Ws.__wbindgen_add_to_stack_pointer(16)}};A10.is_keyword=function(e){try{let i=Ws.__wbindgen_add_to_stack_pointer(-16),a=cre(e,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),u=FI;Ws.is_keyword(i,a,u);var t=Sy().getInt32(i+0,!0),r=Sy().getInt32(i+4,!0),n=Sy().getInt32(i+8,!0);if(n)throw yA(r);return yA(t)}finally{Ws.__wbindgen_add_to_stack_pointer(16)}};A10.__wbg_String_8f0eb39a4a4c2f66=function(e,t){let r=String(sU(t)),n=cre(r,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),i=FI;Sy().setInt32(e+4,i,!0),Sy().setInt32(e+0,n,!0)};A10.__wbg_error_7534b8e9a36f1ab4=function(e,t){let r,n;try{r=e,n=t,console.error(u4e(e,t))}finally{Ws.__wbindgen_free(r,n,1)}};A10.__wbg_new_254fa9eac11932ae=function(){let e=new Array;return sN(e)};A10.__wbg_new_688846f374351c92=function(){let e=new Object;return sN(e)};A10.__wbg_new_8a6f238a6ece86ea=function(){let e=new Error;return sN(e)};A10.__wbg_set_1d80752d0d5f0b21=function(e,t,r){sU(e)[t>>>0]=yA(r)};A10.__wbg_set_3f1d0b984ed272ed=function(e,t,r){sU(e)[yA(t)]=yA(r)};A10.__wbg_stack_0ed75d68575b0f3c=function(e,t){let r=sU(t).stack,n=cre(r,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),i=FI;Sy().setInt32(e+4,i,!0),Sy().setInt32(e+0,n,!0)};A10.__wbindgen_bigint_from_u64=function(e){let t=BigInt.asUintN(64,e);return sN(t)};A10.__wbindgen_error_new=function(e,t){let r=new Error(u4e(e,t));return sN(r)};A10.__wbindgen_number_new=function(e){return sN(e)};A10.__wbindgen_object_clone_ref=function(e){let t=sU(e);return sN(t)};A10.__wbindgen_object_drop_ref=function(e){yA(e)};A10.__wbindgen_string_new=function(e,t){let r=u4e(e,t);return sN(r)};A10.__wbindgen_throw=function(e,t){throw new Error(u4e(e,t))};var x10=Rt("path").join(__dirname,"wasm_bg.wasm"),v10=Rt("fs").readFileSync(x10),D10=new WebAssembly.Module(v10),w10=new WebAssembly.Instance(D10,Adr);Ws=w10.exports;A10.__wasm=Ws;Ws.__wbindgen_start()});var Edr=he((Cdr)=>{Object.defineProperty(Cdr,"__esModule",{value:!0});var K10={};Cdr.default=K10});var Fdr=he((kdr,XYe)=>{(function(e){function t(){var n=e();return n.default||n}if(typeof kdr==="object"&&typeof XYe==="object")XYe.exports=t();else if(typeof define==="function"&&define.amd)define(t);else{var r=typeof globalThis!=="undefined"?globalThis:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this||{};r.doc=t()}})(function(){var{defineProperty:e,getOwnPropertyDescriptor:t,getOwnPropertyNames:r}=Object,n=Object.prototype.hasOwnProperty,i=(Ve,Jr)=>{for(var Pn in Jr)e(Ve,Pn,{get:Jr[Pn],enumerable:!0})},a=(Ve,Jr,Pn,wt)=>{if(Jr&&typeof Jr==="object"||typeof Jr==="function"){for(let Fn of r(Jr))if(!n.call(Ve,Fn)&&Fn!==Pn)e(Ve,Fn,{get:()=>Jr[Fn],enumerable:!(wt=t(Jr,Fn))||wt.enumerable})}return Ve},u=(Ve)=>a(e({},"__esModule",{value:!0}),Ve),s={};i(s,{builders:()=>U0,printer:()=>To,utils:()=>W0});var l="string",h="array",_="cursor",p="indent",f="align",m="trim",d="group",x="fill",T="if-break",A="indent-if-break",F="line-suffix",b="line-suffix-boundary",N="line",E="label",P="break-parent",q=new Set([_,p,f,m,d,x,T,A,F,b,N,E,P]),$=(Ve,Jr,Pn)=>{if(Ve&&(Jr===void 0||Jr===null))return;if(Array.isArray(Jr)||typeof Jr==="string")return Jr[Pn<0?Jr.length+Pn:Pn];return Jr.at(Pn)},M=$;function O(Ve){if(typeof Ve==="string")return l;if(Array.isArray(Ve))return h;if(!Ve)return;let{type:Jr}=Ve;if(q.has(Jr))return Jr}var K=O,ue=(Ve)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ve);function Q(Ve){let Jr=Ve===null?"null":typeof Ve;if(Jr!=="string"&&Jr!=="object")return`Unexpected doc '${Jr}',
|
|
956
|
+
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};edr=y_0,tdr=v_0;eYe={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};uU=A_0,b_0=rN(j7r(),1);ore=T_0;S_0=F_0;N_0=P_0;q_0=B_0,J_0=$_0;udr=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),X_0=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);b7r=Symbol("cursor");cdr={};tre(cdr,{CATEGORY_CONFIG:()=>Y_0,CATEGORY_EDITOR:()=>H_0,CATEGORY_FORMAT:()=>G_0,CATEGORY_GLOBAL:()=>tc0,CATEGORY_OTHER:()=>R_0,CATEGORY_OUTPUT:()=>ec0,CATEGORY_SPECIAL:()=>rc0});hdr={};tre(hdr,{languages:()=>Tc0,options:()=>bc0,parsers:()=>Cc0,printers:()=>Ec0});nc0=[{linguistLanguageId:50,name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css",".wxss"],parsers:["css"],vscodeLanguageIds:["css"]},{linguistLanguageId:262764437,name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",parsers:["css"],vscodeLanguageIds:["postcss"]},{linguistLanguageId:198,name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"]},{linguistLanguageId:329,name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],parsers:["scss"],vscodeLanguageIds:["scss"]}],td={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ic0={singleQuote:td.singleQuote},ac0=ic0,uc0=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}],oc0={bracketSpacing:td.bracketSpacing},sc0=oc0,lc0=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}],_c0=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],cc0={bracketSameLine:td.bracketSameLine,htmlWhitespaceSensitivity:{category:E7r,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:td.singleAttributePerLine,vueIndentScriptAndStyle:{category:E7r,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},hc0=cc0,pc0=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],fc0={arrowParens:{category:QP,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:td.bracketSameLine,objectWrap:td.objectWrap,bracketSpacing:td.bracketSpacing,jsxBracketSameLine:{category:QP,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:QP,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:QP,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:QP,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:td.singleQuote,jsxSingleQuote:{category:QP,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:QP,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:QP,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:td.singleAttributePerLine},mc0=fc0,dc0=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],yc0=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],gc0={proseWrap:td.proseWrap,singleQuote:td.singleQuote},xc0=gc0,vc0=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"]}],Dc0={bracketSpacing:td.bracketSpacing,singleQuote:td.singleQuote,proseWrap:td.proseWrap},wc0=Dc0;bc0={...ac0,...sc0,...hc0,...mc0,...xc0,...wc0},Tc0=[...nc0,...uc0,...lc0,..._c0,...pc0,...dc0,...yc0,...vc0],{parsers:Cc0,printers:Ec0}=Ac0([{importPlugin:()=>Promise.resolve().then(() => (Qer(),Oer)),parsers:["acorn","espree"]},{importPlugin:()=>Promise.resolve().then(() => (Lrr(),Vrr)),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>Promise.resolve().then(() => (hnr(),cnr)),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>Promise.resolve().then(() => (G0r(),H0r)),printers:["estree","estree-json"]},{importPlugin:()=>Promise.resolve().then(() => (oar(),uar)),parsers:["flow"]},{importPlugin:()=>Promise.resolve().then(() => (wur(),Dur)),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>Promise.resolve().then(() => (Hur(),Yur)),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>Promise.resolve().then(() => (Bsr(),Nsr)),parsers:["html","angular","vue","lwc"],printers:["html"]},{importPlugin:()=>Promise.resolve().then(() => (qlr(),Blr)),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>Promise.resolve().then(() => (S_r(),F_r)),parsers:["meriyah"]},{importPlugin:()=>Promise.resolve().then(() => (Vcr(),zcr)),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>Promise.resolve().then(() => (opr(),upr)),parsers:["typescript"]},{importPlugin:()=>Promise.resolve().then(() => (lfr(),sfr)),parsers:["yaml"],printers:["yaml"]}]);Fc0=kc0;Nc0=Pc0;N6e=new Map;Mc0=Ic0;Vc0=zc0,qYe={};tre(qYe,{addDanglingComment:()=>vI,addLeadingComment:()=>WK,addTrailingComment:()=>YK,getAlignmentSize:()=>FYe,getIndentSize:()=>Zc0,getMaxContinuousCount:()=>Wc0,getNextNonSpaceNonCommentCharacter:()=>Hc0,getNextNonSpaceNonCommentCharacterIndex:()=>o10,getPreferredQuote:()=>Rc0,getStringWidth:()=>EYe,hasNewline:()=>HP,hasNewlineInRange:()=>t10,hasSpaces:()=>n10,isNextLineEmpty:()=>c10,isNextLineEmptyAfterIndex:()=>MYe,isPreviousLineEmpty:()=>l10,makeString:()=>a10,skip:()=>are,skipEverythingButNewLine:()=>Qmr,skipInlineComment:()=>$Ye,skipNewline:()=>TI,skipSpaces:()=>tN,skipToLineEnd:()=>Omr,skipTrailingComment:()=>JYe,skipWhitespace:()=>Yl0});$Ye=Lc0;JYe=Xc0;IYe=jc0;MYe=Kc0;Zc0=Uc0;Wc0=Qc0;Hc0=Yc0;Rc0=Gc0;t10=e10;n10=r10;a10=i10;zYe=WP(_dr);ddr=WP(dl0),ydr=WP(BYe,0),gdr={errors:H7r,optionCategories:cdr,createIsIgnoredFunction:zmr,formatOptionsHiddenDefaults:eYe,normalizeOptions:edr,getSupportInfoWithoutPlugins:BYe,normalizeOptionSettings:Rmr,vnopts:{ChoiceSchema:Y7r,apiDescriptor:DI},fastGlob:Xi0.default,createTwoFilesPatch:Vi0,utils:{omit:Vc0},mockable:pYe},xdr={parse:WP(U_0),formatAST:WP(Z_0),formatDoc:WP(O_0),printToDoc:WP(Q_0),printDocToString:WP(W_0),mockable:pYe},h10=K7r});var lre=he((Ddr)=>{Object.defineProperty(Ddr,"__esModule",{value:!0});Ddr.setWasm=void 0;var vdr={},p10=(e)=>{Object.assign(vdr,e)};Ddr.setWasm=p10;Ddr.default=vdr});var Tdr=he((A10,Z_)=>{var Adr={};Adr.__wbindgen_placeholder__=A10;var Ws,{TextEncoder:m10,TextDecoder:d10}=Rt("util"),rE=new Array(128).fill(void 0);rE.push(void 0,null,!0,!1);function sU(e){return rE[e]}var FI=0,n4e=null;function i4e(){if(n4e===null||n4e.byteLength===0)n4e=new Uint8Array(Ws.memory.buffer);return n4e}var a4e=new m10("utf-8"),y10=typeof a4e.encodeInto==="function"?function(e,t){return a4e.encodeInto(e,t)}:function(e,t){let r=a4e.encode(e);return t.set(r),{read:e.length,written:r.length}};function cre(e,t,r){if(r===void 0){let s=a4e.encode(e),l=t(s.length,1)>>>0;return i4e().subarray(l,l+s.length).set(s),FI=s.length,l}let n=e.length,i=t(n,1)>>>0,a=i4e(),u=0;for(;u<n;u++){let s=e.charCodeAt(u);if(s>127)break;a[i+u]=s}if(u!==n){if(u!==0)e=e.slice(u);i=r(i,n,n=u+e.length*3,1)>>>0;let s=i4e().subarray(i+u,i+n),l=y10(e,s);u+=l.written,i=r(i,n,u,1)>>>0}return FI=u,i}var oU=null;function Sy(){if(oU===null||oU.buffer.detached===!0||oU.buffer.detached===void 0&&oU.buffer!==Ws.memory.buffer)oU=new DataView(Ws.memory.buffer);return oU}var bdr=new d10("utf-8",{ignoreBOM:!0,fatal:!0});bdr.decode();function u4e(e,t){return e=e>>>0,bdr.decode(i4e().subarray(e,e+t))}var _re=rE.length;function sN(e){if(_re===rE.length)rE.push(rE.length+1);let t=_re;return _re=rE[t],rE[t]=e,t}function g10(e){if(e<132)return;rE[e]=_re,_re=e}function yA(e){let t=sU(e);return g10(e),t}A10.start=function(){Ws.start()};A10.find_comments=function(e){try{let i=Ws.__wbindgen_add_to_stack_pointer(-16),a=cre(e,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),u=FI;Ws.find_comments(i,a,u);var t=Sy().getInt32(i+0,!0),r=Sy().getInt32(i+4,!0),n=Sy().getInt32(i+8,!0);if(n)throw yA(r);return yA(t)}finally{Ws.__wbindgen_add_to_stack_pointer(16)}};A10.parse_token_tree=function(e){try{let i=Ws.__wbindgen_add_to_stack_pointer(-16),a=cre(e,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),u=FI;Ws.parse_token_tree(i,a,u);var t=Sy().getInt32(i+0,!0),r=Sy().getInt32(i+4,!0),n=Sy().getInt32(i+8,!0);if(n)throw yA(r);return yA(t)}finally{Ws.__wbindgen_add_to_stack_pointer(16)}};A10.is_keyword=function(e){try{let i=Ws.__wbindgen_add_to_stack_pointer(-16),a=cre(e,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),u=FI;Ws.is_keyword(i,a,u);var t=Sy().getInt32(i+0,!0),r=Sy().getInt32(i+4,!0),n=Sy().getInt32(i+8,!0);if(n)throw yA(r);return yA(t)}finally{Ws.__wbindgen_add_to_stack_pointer(16)}};A10.__wbg_String_8f0eb39a4a4c2f66=function(e,t){let r=String(sU(t)),n=cre(r,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),i=FI;Sy().setInt32(e+4,i,!0),Sy().setInt32(e+0,n,!0)};A10.__wbg_error_7534b8e9a36f1ab4=function(e,t){let r,n;try{r=e,n=t,console.error(u4e(e,t))}finally{Ws.__wbindgen_free(r,n,1)}};A10.__wbg_new_254fa9eac11932ae=function(){let e=new Array;return sN(e)};A10.__wbg_new_688846f374351c92=function(){let e=new Object;return sN(e)};A10.__wbg_new_8a6f238a6ece86ea=function(){let e=new Error;return sN(e)};A10.__wbg_set_1d80752d0d5f0b21=function(e,t,r){sU(e)[t>>>0]=yA(r)};A10.__wbg_set_3f1d0b984ed272ed=function(e,t,r){sU(e)[yA(t)]=yA(r)};A10.__wbg_stack_0ed75d68575b0f3c=function(e,t){let r=sU(t).stack,n=cre(r,Ws.__wbindgen_malloc,Ws.__wbindgen_realloc),i=FI;Sy().setInt32(e+4,i,!0),Sy().setInt32(e+0,n,!0)};A10.__wbindgen_bigint_from_u64=function(e){let t=BigInt.asUintN(64,e);return sN(t)};A10.__wbindgen_error_new=function(e,t){let r=new Error(u4e(e,t));return sN(r)};A10.__wbindgen_number_new=function(e){return sN(e)};A10.__wbindgen_object_clone_ref=function(e){let t=sU(e);return sN(t)};A10.__wbindgen_object_drop_ref=function(e){yA(e)};A10.__wbindgen_string_new=function(e,t){let r=u4e(e,t);return sN(r)};A10.__wbindgen_throw=function(e,t){throw new Error(u4e(e,t))};var x10=Rt("path").join(import.meta.dirname || new URL(".", import.meta.url).pathname,"wasm_bg.wasm"),v10=Rt("fs").readFileSync(x10),D10=new WebAssembly.Module(v10),w10=new WebAssembly.Instance(D10,Adr);Ws=w10.exports;A10.__wasm=Ws;Ws.__wbindgen_start()});var Edr=he((Cdr)=>{Object.defineProperty(Cdr,"__esModule",{value:!0});var K10={};Cdr.default=K10});var Fdr=he((kdr,XYe)=>{(function(e){function t(){var n=e();return n.default||n}if(typeof kdr==="object"&&typeof XYe==="object")XYe.exports=t();else if(typeof define==="function"&&define.amd)define(t);else{var r=typeof globalThis!=="undefined"?globalThis:typeof global!=="undefined"?global:typeof self!=="undefined"?self:this||{};r.doc=t()}})(function(){var{defineProperty:e,getOwnPropertyDescriptor:t,getOwnPropertyNames:r}=Object,n=Object.prototype.hasOwnProperty,i=(Ve,Jr)=>{for(var Pn in Jr)e(Ve,Pn,{get:Jr[Pn],enumerable:!0})},a=(Ve,Jr,Pn,wt)=>{if(Jr&&typeof Jr==="object"||typeof Jr==="function"){for(let Fn of r(Jr))if(!n.call(Ve,Fn)&&Fn!==Pn)e(Ve,Fn,{get:()=>Jr[Fn],enumerable:!(wt=t(Jr,Fn))||wt.enumerable})}return Ve},u=(Ve)=>a(e({},"__esModule",{value:!0}),Ve),s={};i(s,{builders:()=>U0,printer:()=>To,utils:()=>W0});var l="string",h="array",_="cursor",p="indent",f="align",m="trim",d="group",x="fill",T="if-break",A="indent-if-break",F="line-suffix",b="line-suffix-boundary",N="line",E="label",P="break-parent",q=new Set([_,p,f,m,d,x,T,A,F,b,N,E,P]),$=(Ve,Jr,Pn)=>{if(Ve&&(Jr===void 0||Jr===null))return;if(Array.isArray(Jr)||typeof Jr==="string")return Jr[Pn<0?Jr.length+Pn:Pn];return Jr.at(Pn)},M=$;function O(Ve){if(typeof Ve==="string")return l;if(Array.isArray(Ve))return h;if(!Ve)return;let{type:Jr}=Ve;if(q.has(Jr))return Jr}var K=O,ue=(Ve)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ve);function Q(Ve){let Jr=Ve===null?"null":typeof Ve;if(Jr!=="string"&&Jr!=="object")return`Unexpected doc '${Jr}',
|
|
957
957
|
Expected it to be 'string' or 'object'.`;if(K(Ve))throw new Error("doc is valid.");let Pn=Object.prototype.toString.call(Ve);if(Pn!=="[object Object]")return`Unexpected doc '${Pn}'.`;let wt=ue([...q].map((Fn)=>`'${Fn}'`));return`Unexpected doc.type '${Ve.type}'.
|
|
958
958
|
Expected it to be ${wt}.`}var G=class extends Error{name="InvalidDocError";constructor(Ve){super(Q(Ve));this.doc=Ve}},Z=G,ee={};function ge(Ve,Jr,Pn,wt){let Fn=[Ve];while(Fn.length>0){let gn=Fn.pop();if(gn===ee){Pn(Fn.pop());continue}if(Pn)Fn.push(gn,ee);let Mn=K(gn);if(!Mn)throw new Z(gn);if((Jr==null?void 0:Jr(gn))===!1)continue;switch(Mn){case h:case x:{let g0=Mn===h?gn:gn.parts;for(let kr=g0.length,mn=kr-1;mn>=0;--mn)Fn.push(g0[mn]);break}case T:Fn.push(gn.flatContents,gn.breakContents);break;case d:if(wt&&gn.expandedStates)for(let g0=gn.expandedStates.length,kr=g0-1;kr>=0;--kr)Fn.push(gn.expandedStates[kr]);else Fn.push(gn.contents);break;case f:case p:case A:case E:case F:Fn.push(gn.contents);break;case l:case _:case m:case b:case N:case P:break;default:throw new Z(gn)}}}var Fe=ge;function He(Ve,Jr){if(typeof Ve==="string")return Jr(Ve);let Pn=new Map;return wt(Ve);function wt(gn){if(Pn.has(gn))return Pn.get(gn);let Mn=Fn(gn);return Pn.set(gn,Mn),Mn}function Fn(gn){switch(K(gn)){case h:return Jr(gn.map(wt));case x:return Jr({...gn,parts:gn.parts.map(wt)});case T:return Jr({...gn,breakContents:wt(gn.breakContents),flatContents:wt(gn.flatContents)});case d:{let{expandedStates:Mn,contents:g0}=gn;if(Mn)Mn=Mn.map(wt),g0=Mn[0];else g0=wt(g0);return Jr({...gn,contents:g0,expandedStates:Mn})}case f:case p:case A:case E:case F:return Jr({...gn,contents:wt(gn.contents)});case l:case _:case m:case b:case N:case P:return Jr(gn);default:throw new Z(gn)}}}function xe(Ve,Jr,Pn){let wt=Pn,Fn=!1;function gn(Mn){if(Fn)return!1;let g0=Jr(Mn);if(g0!==void 0)Fn=!0,wt=g0}return Fe(Ve,gn),wt}function $e(Ve){if(Ve.type===d&&Ve.break)return!0;if(Ve.type===N&&Ve.hard)return!0;if(Ve.type===P)return!0}function Ie(Ve){return xe(Ve,$e,!1)}function te(Ve){if(Ve.length>0){let Jr=M(!1,Ve,-1);if(!Jr.expandedStates&&!Jr.break)Jr.break="propagated"}return null}function de(Ve){let Jr=new Set,Pn=[];function wt(gn){if(gn.type===P)te(Pn);if(gn.type===d){if(Pn.push(gn),Jr.has(gn))return!1;Jr.add(gn)}}function Fn(gn){if(gn.type===d){if(Pn.pop().break)te(Pn)}}Fe(Ve,wt,Fn,!0)}function Xe(Ve){if(Ve.type===N&&!Ve.hard)return Ve.soft?"":" ";if(Ve.type===T)return Ve.flatContents;return Ve}function Ne(Ve){return He(Ve,Xe)}function Ce(Ve){Ve=[...Ve];while(Ve.length>=2&&M(!1,Ve,-2).type===N&&M(!1,Ve,-1).type===P)Ve.length-=2;if(Ve.length>0){let Jr=pe(M(!1,Ve,-1));Ve[Ve.length-1]=Jr}return Ve}function pe(Ve){switch(K(Ve)){case p:case A:case d:case F:case E:{let Jr=pe(Ve.contents);return{...Ve,contents:Jr}}case T:return{...Ve,breakContents:pe(Ve.breakContents),flatContents:pe(Ve.flatContents)};case x:return{...Ve,parts:Ce(Ve.parts)};case h:return Ce(Ve);case l:return Ve.replace(/[\n\r]*$/u,"");case f:case _:case m:case b:case N:case P:break;default:throw new Z(Ve)}return Ve}function ie(Ve){return pe(Je(Ve))}function ke(Ve){switch(K(Ve)){case x:if(Ve.parts.every((Jr)=>Jr===""))return"";break;case d:if(!Ve.contents&&!Ve.id&&!Ve.break&&!Ve.expandedStates)return"";if(Ve.contents.type===d&&Ve.contents.id===Ve.id&&Ve.contents.break===Ve.break&&Ve.contents.expandedStates===Ve.expandedStates)return Ve.contents;break;case f:case p:case A:case F:if(!Ve.contents)return"";break;case T:if(!Ve.flatContents&&!Ve.breakContents)return"";break;case h:{let Jr=[];for(let Pn of Ve){if(!Pn)continue;let[wt,...Fn]=Array.isArray(Pn)?Pn:[Pn];if(typeof wt==="string"&&typeof M(!1,Jr,-1)==="string")Jr[Jr.length-1]+=wt;else Jr.push(wt);Jr.push(...Fn)}if(Jr.length===0)return"";if(Jr.length===1)return Jr[0];return Jr}case l:case _:case m:case b:case N:case E:case P:break;default:throw new Z(Ve)}return Ve}function Je(Ve){return He(Ve,(Jr)=>ke(Jr))}function ut(Ve,Jr=ki){return He(Ve,(Pn)=>typeof Pn==="string"?c0(Jr,Pn.split(`
|
|
959
959
|
`)):Pn)}function ot(Ve){if(Ve.type===N)return!0}function gt(Ve){return xe(Ve,ot,!1)}var Bt=()=>{},pt=Bt,St=Bt,Tt=Bt;function Mt(Ve){return pt(Ve),{type:p,contents:Ve}}function wr(Ve,Jr){return pt(Jr),{type:f,contents:Jr,n:Ve}}function tr(Ve,Jr={}){return pt(Ve),St(Jr.expandedStates,!0),{type:d,id:Jr.id,contents:Ve,break:Boolean(Jr.shouldBreak),expandedStates:Jr.expandedStates}}function Vr(Ve){return wr(Number.NEGATIVE_INFINITY,Ve)}function Tr(Ve){return wr({type:"root"},Ve)}function Yr(Ve){return wr(-1,Ve)}function Cn(Ve,Jr){return tr(Ve[0],{...Jr,expandedStates:Ve})}function Te(Ve){return Tt(Ve),{type:x,parts:Ve}}function De(Ve,Jr="",Pn={}){if(pt(Ve),Jr!=="")pt(Jr);return{type:T,breakContents:Ve,flatContents:Jr,groupId:Pn.groupId}}function fe(Ve,Jr){return pt(Ve),{type:A,contents:Ve,groupId:Jr.groupId,negate:Jr.negate}}function oe(Ve){return pt(Ve),{type:F,contents:Ve}}var be={type:b},Qe={type:P},ct={type:m},st={type:N,hard:!0},Lt={type:N,hard:!0,literal:!0},mr={type:N},Dr={type:N,soft:!0},en=[st,Qe],ki=[Lt,Qe],Jn={type:_};function c0(Ve,Jr){pt(Ve),St(Jr);let Pn=[];for(let wt=0;wt<Jr.length;wt++){if(wt!==0)Pn.push(Ve);Pn.push(Jr[wt])}return Pn}function r0(Ve,Jr,Pn){pt(Ve);let wt=Ve;if(Jr>0){for(let Fn=0;Fn<Math.floor(Jr/Pn);++Fn)wt=Mt(wt);wt=wr(Jr%Pn,wt),wt=wr(Number.NEGATIVE_INFINITY,wt)}return wt}function e0(Ve,Jr){return pt(Jr),Ve?{type:E,label:Ve,contents:Jr}:Jr}var pr=(Ve,Jr,Pn,wt)=>{if(Ve&&(Jr===void 0||Jr===null))return;if(Jr.replaceAll)return Jr.replaceAll(Pn,wt);if(Pn.global)return Jr.replace(Pn,wt);return Jr.split(Pn).join(wt)},Ar=pr;function Pr(Ve){switch(Ve){case"cr":return"\r";case"crlf":return`\r
|
|
960
960
|
`;default:return`
|
|
961
961
|
`}}var kn=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g};function ri(Ve){return Ve===12288||Ve>=65281&&Ve<=65376||Ve>=65504&&Ve<=65510}function Vi(Ve){return Ve>=4352&&Ve<=4447||Ve===8986||Ve===8987||Ve===9001||Ve===9002||Ve>=9193&&Ve<=9196||Ve===9200||Ve===9203||Ve===9725||Ve===9726||Ve===9748||Ve===9749||Ve>=9776&&Ve<=9783||Ve>=9800&&Ve<=9811||Ve===9855||Ve>=9866&&Ve<=9871||Ve===9875||Ve===9889||Ve===9898||Ve===9899||Ve===9917||Ve===9918||Ve===9924||Ve===9925||Ve===9934||Ve===9940||Ve===9962||Ve===9970||Ve===9971||Ve===9973||Ve===9978||Ve===9981||Ve===9989||Ve===9994||Ve===9995||Ve===10024||Ve===10060||Ve===10062||Ve>=10067&&Ve<=10069||Ve===10071||Ve>=10133&&Ve<=10135||Ve===10160||Ve===10175||Ve===11035||Ve===11036||Ve===11088||Ve===11093||Ve>=11904&&Ve<=11929||Ve>=11931&&Ve<=12019||Ve>=12032&&Ve<=12245||Ve>=12272&&Ve<=12287||Ve>=12289&&Ve<=12350||Ve>=12353&&Ve<=12438||Ve>=12441&&Ve<=12543||Ve>=12549&&Ve<=12591||Ve>=12593&&Ve<=12686||Ve>=12688&&Ve<=12773||Ve>=12783&&Ve<=12830||Ve>=12832&&Ve<=12871||Ve>=12880&&Ve<=42124||Ve>=42128&&Ve<=42182||Ve>=43360&&Ve<=43388||Ve>=44032&&Ve<=55203||Ve>=63744&&Ve<=64255||Ve>=65040&&Ve<=65049||Ve>=65072&&Ve<=65106||Ve>=65108&&Ve<=65126||Ve>=65128&&Ve<=65131||Ve>=94176&&Ve<=94180||Ve===94192||Ve===94193||Ve>=94208&&Ve<=100343||Ve>=100352&&Ve<=101589||Ve>=101631&&Ve<=101640||Ve>=110576&&Ve<=110579||Ve>=110581&&Ve<=110587||Ve===110589||Ve===110590||Ve>=110592&&Ve<=110882||Ve===110898||Ve>=110928&&Ve<=110930||Ve===110933||Ve>=110948&&Ve<=110951||Ve>=110960&&Ve<=111355||Ve>=119552&&Ve<=119638||Ve>=119648&&Ve<=119670||Ve===126980||Ve===127183||Ve===127374||Ve>=127377&&Ve<=127386||Ve>=127488&&Ve<=127490||Ve>=127504&&Ve<=127547||Ve>=127552&&Ve<=127560||Ve===127568||Ve===127569||Ve>=127584&&Ve<=127589||Ve>=127744&&Ve<=127776||Ve>=127789&&Ve<=127797||Ve>=127799&&Ve<=127868||Ve>=127870&&Ve<=127891||Ve>=127904&&Ve<=127946||Ve>=127951&&Ve<=127955||Ve>=127968&&Ve<=127984||Ve===127988||Ve>=127992&&Ve<=128062||Ve===128064||Ve>=128066&&Ve<=128252||Ve>=128255&&Ve<=128317||Ve>=128331&&Ve<=128334||Ve>=128336&&Ve<=128359||Ve===128378||Ve===128405||Ve===128406||Ve===128420||Ve>=128507&&Ve<=128591||Ve>=128640&&Ve<=128709||Ve===128716||Ve>=128720&&Ve<=128722||Ve>=128725&&Ve<=128727||Ve>=128732&&Ve<=128735||Ve===128747||Ve===128748||Ve>=128756&&Ve<=128764||Ve>=128992&&Ve<=129003||Ve===129008||Ve>=129292&&Ve<=129338||Ve>=129340&&Ve<=129349||Ve>=129351&&Ve<=129535||Ve>=129648&&Ve<=129660||Ve>=129664&&Ve<=129673||Ve>=129679&&Ve<=129734||Ve>=129742&&Ve<=129756||Ve>=129759&&Ve<=129769||Ve>=129776&&Ve<=129784||Ve>=131072&&Ve<=196605||Ve>=196608&&Ve<=262141}var di=(Ve)=>!(ri(Ve)||Vi(Ve)),Pi=/[^\x20-\x7F]/u;function na(Ve){if(!Ve)return 0;if(!Pi.test(Ve))return Ve.length;Ve=Ve.replace(kn()," ");let Jr=0;for(let Pn of Ve){let wt=Pn.codePointAt(0);if(wt<=31||wt>=127&&wt<=159)continue;if(wt>=768&&wt<=879)continue;Jr+=di(wt)?1:2}return Jr}var K0=na,_i=Symbol("MODE_BREAK"),Qu=Symbol("MODE_FLAT"),Pa=Symbol("cursor"),Qo=Symbol("DOC_FILL_PRINTED_LENGTH");function Ks(){return{value:"",length:0,queue:[]}}function Qt(Ve,Jr){return me(Ve,{type:"indent"},Jr)}function ji(Ve,Jr,Pn){if(Jr===Number.NEGATIVE_INFINITY)return Ve.root||Ks();if(Jr<0)return me(Ve,{type:"dedent"},Pn);if(!Jr)return Ve;if(Jr.type==="root")return{...Ve,root:Ve};return me(Ve,{type:typeof Jr==="string"?"stringAlign":"numberAlign",n:Jr},Pn)}function me(Ve,Jr,Pn){let wt=Jr.type==="dedent"?Ve.queue.slice(0,-1):[...Ve.queue,Jr],Fn="",gn=0,Mn=0,g0=0;for(let Yn of wt)switch(Yn.type){case"indent":if(Ji(),Pn.useTabs)kr(1);else mn(Pn.tabWidth);break;case"stringAlign":Ji(),Fn+=Yn.n,gn+=Yn.n.length;break;case"numberAlign":Mn+=1,g0+=Yn.n;break;default:throw new Error(`Unexpected type '${Yn.type}'`)}return nr(),{...Ve,value:Fn,length:gn,queue:wt};function kr(Yn){Fn+="\t".repeat(Yn),gn+=Pn.tabWidth*Yn}function mn(Yn){Fn+=" ".repeat(Yn),gn+=Yn}function Ji(){if(Pn.useTabs)Un();else nr()}function Un(){if(Mn>0)kr(Mn);l0()}function nr(){if(g0>0)mn(g0);l0()}function l0(){Mn=0,g0=0}}function oi(Ve){let Jr=0,Pn=0,wt=Ve.length;e:while(wt--){let Fn=Ve[wt];if(Fn===Pa){Pn++;continue}for(let gn=Fn.length-1;gn>=0;gn--){let Mn=Fn[gn];if(Mn===" "||Mn==="\t")Jr++;else{Ve[wt]=Fn.slice(0,gn+1);break e}}}if(Jr>0||Pn>0){Ve.length=wt+1;while(Pn-- >0)Ve.push(Pa)}return Jr}function Ki(Ve,Jr,Pn,wt,Fn,gn){if(Pn===Number.POSITIVE_INFINITY)return!0;let Mn=Jr.length,g0=[Ve],kr=[];while(Pn>=0){if(g0.length===0){if(Mn===0)return!0;g0.push(Jr[--Mn]);continue}let{mode:mn,doc:Ji}=g0.pop(),Un=K(Ji);switch(Un){case l:kr.push(Ji),Pn-=K0(Ji);break;case h:case x:{let nr=Un===h?Ji:Ji.parts,l0=Ji[Qo]??0;for(let Yn=nr.length-1;Yn>=l0;Yn--)g0.push({mode:mn,doc:nr[Yn]});break}case p:case f:case A:case E:g0.push({mode:mn,doc:Ji.contents});break;case m:Pn+=oi(kr);break;case d:{if(gn&&Ji.break)return!1;let nr=Ji.break?_i:mn,l0=Ji.expandedStates&&nr===_i?M(!1,Ji.expandedStates,-1):Ji.contents;g0.push({mode:nr,doc:l0});break}case T:{let l0=(Ji.groupId?Fn[Ji.groupId]||Qu:mn)===_i?Ji.breakContents:Ji.flatContents;if(l0)g0.push({mode:mn,doc:l0});break}case N:if(mn===_i||Ji.hard)return!0;if(!Ji.soft)kr.push(" "),Pn--;break;case F:wt=!0;break;case b:if(wt)return!1;break}}return!1}function vr(Ve,Jr){let Pn={},wt=Jr.printWidth,Fn=Pr(Jr.endOfLine),gn=0,Mn=[{ind:Ks(),mode:_i,doc:Ve}],g0=[],kr=!1,mn=[],Ji=0;de(Ve);while(Mn.length>0){let{ind:nr,mode:l0,doc:Yn}=Mn.pop();switch(K(Yn)){case l:{let Ea=Fn!==`
|
|
962
962
|
`?Ar(!1,Yn,`
|
|
963
|
-
`,Fn):Yn;if(g0.push(Ea),Mn.length>0)gn+=K0(Ea);break}case h:for(let Ea=Yn.length-1;Ea>=0;Ea--)Mn.push({ind:nr,mode:l0,doc:Yn[Ea]});break;case _:if(Ji>=2)throw new Error("There are too many 'cursor' in doc.");g0.push(Pa),Ji++;break;case p:Mn.push({ind:Qt(nr,Jr),mode:l0,doc:Yn.contents});break;case f:Mn.push({ind:ji(nr,Yn.n,Jr),mode:l0,doc:Yn.contents});break;case m:gn-=oi(g0);break;case d:switch(l0){case Qu:if(!kr){Mn.push({ind:nr,mode:Yn.break?_i:Qu,doc:Yn.contents});break}case _i:{kr=!1;let Ea={ind:nr,mode:Qu,doc:Yn.contents},Aa=wt-gn,hl=mn.length>0;if(!Yn.break&&Ki(Ea,Mn,Aa,hl,Pn))Mn.push(Ea);else if(Yn.expandedStates){let vs=M(!1,Yn.expandedStates,-1);if(Yn.break){Mn.push({ind:nr,mode:_i,doc:vs});break}else for(let Ds=1;Ds<Yn.expandedStates.length+1;Ds++)if(Ds>=Yn.expandedStates.length){Mn.push({ind:nr,mode:_i,doc:vs});break}else{let d0=Yn.expandedStates[Ds],B0={ind:nr,mode:Qu,doc:d0};if(Ki(B0,Mn,Aa,hl,Pn)){Mn.push(B0);break}}}else Mn.push({ind:nr,mode:_i,doc:Yn.contents});break}}if(Yn.id)Pn[Yn.id]=M(!1,Mn,-1).mode;break;case x:{let Ea=wt-gn,Aa=Yn[Qo]??0,{parts:hl}=Yn,vs=hl.length-Aa;if(vs===0)break;let Ds=hl[Aa+0],d0=hl[Aa+1],B0={ind:nr,mode:Qu,doc:Ds},ep={ind:nr,mode:_i,doc:Ds},pl=Ki(B0,[],Ea,mn.length>0,Pn,!0);if(vs===1){if(pl)Mn.push(B0);else Mn.push(ep);break}let E7={ind:nr,mode:Qu,doc:d0},to={ind:nr,mode:_i,doc:d0};if(vs===2){if(pl)Mn.push(E7,B0);else Mn.push(to,ep);break}let O_=hl[Aa+2],Hs={ind:nr,mode:l0,doc:{...Yn,[Qo]:Aa+2}};if(Ki({ind:nr,mode:Qu,doc:[Ds,d0,O_]},[],Ea,mn.length>0,Pn,!0))Mn.push(Hs,E7,B0);else if(pl)Mn.push(Hs,to,B0);else Mn.push(Hs,to,ep);break}case T:case A:{let Ea=Yn.groupId?Pn[Yn.groupId]:l0;if(Ea===_i){let Aa=Yn.type===T?Yn.breakContents:Yn.negate?Yn.contents:Mt(Yn.contents);if(Aa)Mn.push({ind:nr,mode:l0,doc:Aa})}if(Ea===Qu){let Aa=Yn.type===T?Yn.flatContents:Yn.negate?Mt(Yn.contents):Yn.contents;if(Aa)Mn.push({ind:nr,mode:l0,doc:Aa})}break}case F:mn.push({ind:nr,mode:l0,doc:Yn.contents});break;case b:if(mn.length>0)Mn.push({ind:nr,mode:l0,doc:st});break;case N:switch(l0){case Qu:if(!Yn.hard){if(!Yn.soft)g0.push(" "),gn+=1;break}else kr=!0;case _i:if(mn.length>0){Mn.push({ind:nr,mode:l0,doc:Yn},...mn.reverse()),mn.length=0;break}if(Yn.literal)if(nr.root)g0.push(Fn,nr.root.value),gn=nr.root.length;else g0.push(Fn),gn=0;else gn-=oi(g0),g0.push(Fn+nr.value),gn=nr.length;break}break;case E:Mn.push({ind:nr,mode:l0,doc:Yn.contents});break;case P:break;default:throw new Z(Yn)}if(Mn.length===0&&mn.length>0)Mn.push(...mn.reverse()),mn.length=0}let Un=g0.indexOf(Pa);if(Un!==-1){let nr=g0.indexOf(Pa,Un+1);if(nr===-1)return{formatted:g0.filter((Aa)=>Aa!==Pa).join("")};let l0=g0.slice(0,Un).join(""),Yn=g0.slice(Un+1,nr).join(""),Ea=g0.slice(nr+1).join("");return{formatted:l0+Yn+Ea,cursorNodeStart:l0.length,cursorNodeText:Yn}}return{formatted:g0.join("")}}var U0={join:c0,line:mr,softline:Dr,hardline:en,literalline:ki,group:tr,conditionalGroup:Cn,fill:Te,lineSuffix:oe,lineSuffixBoundary:be,cursor:Jn,breakParent:Qe,ifBreak:De,trim:ct,indent:Mt,indentIfBreak:fe,align:wr,addAlignmentToDoc:r0,markAsRoot:Tr,dedentToRoot:Vr,dedent:Yr,hardlineWithoutBreakParent:st,literallineWithoutBreakParent:Lt,label:e0,concat:(Ve)=>Ve},To={printDocToString:vr},W0={willBreak:Ie,traverseDoc:Fe,findInDoc:xe,mapDoc:He,removeLines:Ne,stripTrailingHardline:ie,replaceEndOfLine:ut,canBreak:gt};return u(s)})});var Hdr=he((Tla,Ydr)=>{var{defineProperty:KYe,getOwnPropertyDescriptor:Z10,getOwnPropertyNames:UYe}=Object,O10=Object.prototype.hasOwnProperty,i_=(e,t)=>function r(){return e&&(t=e[UYe(e)[0]](e=0)),t},Q10=(e,t)=>function r(){return t||e[UYe(e)[0]]((t={exports:{}}).exports,t),t.exports},W10=(e,t)=>{for(var r in t)KYe(e,r,{get:t[r],enumerable:!0})},Y10=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of UYe(t))if(!O10.call(e,i)&&i!==r)KYe(e,i,{get:()=>t[i],enumerable:!(n=Z10(t,i))||n.enumerable})}return e},H10=(e)=>Y10(KYe({},"__esModule",{value:!0}),e);function hre(e){return(t,r,n)=>{let i=Boolean(n==null?void 0:n.backwards);if(r===!1)return!1;let{length:a}=t,u=r;while(u>=0&&u<a){let s=t.charAt(u);if(e instanceof RegExp){if(!e.test(s))return u}else if(!e.includes(s))return u;i?u--:u++}if(u===-1||u===a)return u;return!1}}var Pdr,lN,ZYe,OYe,PI=i_({"src/utils/skip.js"(){Pdr=hre(/\s/u),lN=hre("
|
|
963
|
+
`,Fn):Yn;if(g0.push(Ea),Mn.length>0)gn+=K0(Ea);break}case h:for(let Ea=Yn.length-1;Ea>=0;Ea--)Mn.push({ind:nr,mode:l0,doc:Yn[Ea]});break;case _:if(Ji>=2)throw new Error("There are too many 'cursor' in doc.");g0.push(Pa),Ji++;break;case p:Mn.push({ind:Qt(nr,Jr),mode:l0,doc:Yn.contents});break;case f:Mn.push({ind:ji(nr,Yn.n,Jr),mode:l0,doc:Yn.contents});break;case m:gn-=oi(g0);break;case d:switch(l0){case Qu:if(!kr){Mn.push({ind:nr,mode:Yn.break?_i:Qu,doc:Yn.contents});break}case _i:{kr=!1;let Ea={ind:nr,mode:Qu,doc:Yn.contents},Aa=wt-gn,hl=mn.length>0;if(!Yn.break&&Ki(Ea,Mn,Aa,hl,Pn))Mn.push(Ea);else if(Yn.expandedStates){let vs=M(!1,Yn.expandedStates,-1);if(Yn.break){Mn.push({ind:nr,mode:_i,doc:vs});break}else for(let Ds=1;Ds<Yn.expandedStates.length+1;Ds++)if(Ds>=Yn.expandedStates.length){Mn.push({ind:nr,mode:_i,doc:vs});break}else{let d0=Yn.expandedStates[Ds],B0={ind:nr,mode:Qu,doc:d0};if(Ki(B0,Mn,Aa,hl,Pn)){Mn.push(B0);break}}}else Mn.push({ind:nr,mode:_i,doc:Yn.contents});break}}if(Yn.id)Pn[Yn.id]=M(!1,Mn,-1).mode;break;case x:{let Ea=wt-gn,Aa=Yn[Qo]??0,{parts:hl}=Yn,vs=hl.length-Aa;if(vs===0)break;let Ds=hl[Aa+0],d0=hl[Aa+1],B0={ind:nr,mode:Qu,doc:Ds},ep={ind:nr,mode:_i,doc:Ds},pl=Ki(B0,[],Ea,mn.length>0,Pn,!0);if(vs===1){if(pl)Mn.push(B0);else Mn.push(ep);break}let E7={ind:nr,mode:Qu,doc:d0},to={ind:nr,mode:_i,doc:d0};if(vs===2){if(pl)Mn.push(E7,B0);else Mn.push(to,ep);break}let O_=hl[Aa+2],Hs={ind:nr,mode:l0,doc:{...Yn,[Qo]:Aa+2}};if(Ki({ind:nr,mode:Qu,doc:[Ds,d0,O_]},[],Ea,mn.length>0,Pn,!0))Mn.push(Hs,E7,B0);else if(pl)Mn.push(Hs,to,B0);else Mn.push(Hs,to,ep);break}case T:case A:{let Ea=Yn.groupId?Pn[Yn.groupId]:l0;if(Ea===_i){let Aa=Yn.type===T?Yn.breakContents:Yn.negate?Yn.contents:Mt(Yn.contents);if(Aa)Mn.push({ind:nr,mode:l0,doc:Aa})}if(Ea===Qu){let Aa=Yn.type===T?Yn.flatContents:Yn.negate?Mt(Yn.contents):Yn.contents;if(Aa)Mn.push({ind:nr,mode:l0,doc:Aa})}break}case F:mn.push({ind:nr,mode:l0,doc:Yn.contents});break;case b:if(mn.length>0)Mn.push({ind:nr,mode:l0,doc:st});break;case N:switch(l0){case Qu:if(!Yn.hard){if(!Yn.soft)g0.push(" "),gn+=1;break}else kr=!0;case _i:if(mn.length>0){Mn.push({ind:nr,mode:l0,doc:Yn},...mn.reverse()),mn.length=0;break}if(Yn.literal)if(nr.root)g0.push(Fn,nr.root.value),gn=nr.root.length;else g0.push(Fn),gn=0;else gn-=oi(g0),g0.push(Fn+nr.value),gn=nr.length;break}break;case E:Mn.push({ind:nr,mode:l0,doc:Yn.contents});break;case P:break;default:throw new Z(Yn)}if(Mn.length===0&&mn.length>0)Mn.push(...mn.reverse()),mn.length=0}let Un=g0.indexOf(Pa);if(Un!==-1){let nr=g0.indexOf(Pa,Un+1);if(nr===-1)return{formatted:g0.filter((Aa)=>Aa!==Pa).join("")};let l0=g0.slice(0,Un).join(""),Yn=g0.slice(Un+1,nr).join(""),Ea=g0.slice(nr+1).join("");return{formatted:l0+Yn+Ea,cursorNodeStart:l0.length,cursorNodeText:Yn}}return{formatted:g0.join("")}}var U0={join:c0,line:mr,softline:Dr,hardline:en,literalline:ki,group:tr,conditionalGroup:Cn,fill:Te,lineSuffix:oe,lineSuffixBoundary:be,cursor:Jn,breakParent:Qe,ifBreak:De,trim:ct,indent:Mt,indentIfBreak:fe,align:wr,addAlignmentToDoc:r0,markAsRoot:Tr,dedentToRoot:Vr,dedent:Yr,hardlineWithoutBreakParent:st,literallineWithoutBreakParent:Lt,label:e0,concat:(Ve)=>Ve},To={printDocToString:vr},W0={willBreak:Ie,traverseDoc:Fe,findInDoc:xe,mapDoc:He,removeLines:Ne,stripTrailingHardline:ie,replaceEndOfLine:ut,canBreak:gt};return u(s)})});var Hdr=he((Tla,Ydr)=>{var{defineProperty:KYe,getOwnPropertyDescriptor:Z10,getOwnPropertyNames:UYe}=Object,O10=Object.prototype.hasOwnProperty,i_=(e,t)=>function r(){return e&&(t=e[UYe(e)[0]](e=0)),t},Q10=(e,t)=>function r(){return t||e[UYe(e)[0]]((t={exports:{}}).exports,t),t.exports},W10=(e,t)=>{for(var r in t)KYe(e,r,{get:t[r],enumerable:!0})},Y10=(e,t,r,n)=>{if(t&&typeof t==="object"||typeof t==="function"){for(let i of UYe(t))if(!O10.call(e,i)&&i!==r)KYe(e,i,{get:()=>t[i],enumerable:!(n=Z10(t,i))||n.enumerable})}return e},H10=(e)=>Y10(KYe({},"__esModule",{value:!0}),e);function hre(e){return(t,r,n)=>{let i=Boolean(n==null?void 0:n.backwards);if(r===!1)return!1;let{length:a}=t,u=r;while(u>=0&&u<a){let s=t.charAt(u);if(e instanceof RegExp){if(!e.test(s))return u}else if(!e.includes(s))return u;i?u--:u++}if(u===-1||u===a)return u;return!1}}var Pdr,lN,ZYe,OYe,PI=i_({"src/utils/skip.js"(){Pdr=hre(/\s/u),lN=hre(" \t"),ZYe=hre(",; \t"),OYe=hre(/[^\n\r]/u)}});function G10(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var o4e,QYe=i_({"src/utils/skip-inline-comment.js"(){o4e=G10}});function R10(e,t,r){let n=Boolean(r==null?void 0:r.backwards);if(t===!1)return!1;let i=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&i===`
|
|
964
964
|
`)return t-2;if(i===`
|
|
965
965
|
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&e.charAt(t+1)===`
|
|
966
966
|
`)return t+2;if(i===`
|
|
@@ -978,7 +978,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
978
978
|
`,i)}while(n!==-1);return a+=e.slice(i),a}var{stdout:Yat,stderr:Hat}=Oat,Obe=Symbol("GENERATOR"),lz=Symbol("STYLER"),pO=Symbol("IS_EMPTY"),Gat=["ansi","ansi","ansi256","ansi16m"],_z=Object.create(null),lin=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Yat?Yat.level:0;e.level=t.level===void 0?r:t.level};var _in=(e)=>{let t=(...r)=>r.join(" ");return lin(t,e),Object.setPrototypeOf(t,fO.prototype),t};function fO(e){return _in(e)}Object.setPrototypeOf(fO.prototype,Function.prototype);for(let[e,t]of Object.entries(X8))_z[e]={get(){let r=Jue(this,Wbe(t.open,t.close,this[lz]),this[pO]);return Object.defineProperty(this,e,{value:r}),r}};_z.visible={get(){let e=Jue(this,this[lz],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Qbe=(e,t,r,...n)=>{if(e==="rgb"){if(t==="ansi16m")return X8[r].ansi16m(...n);if(t==="ansi256")return X8[r].ansi256(X8.rgbToAnsi256(...n));return X8[r].ansi(X8.rgbToAnsi(...n))}if(e==="hex")return Qbe("rgb",t,r,...X8.hexToRgb(...n));return X8[r][e](...n)},cin=["rgb","hex","ansi256"];for(let e of cin){_z[e]={get(){let{level:r}=this;return function(...n){let i=Wbe(Qbe(e,Gat[r],"color",...n),X8.color.close,this[lz]);return Jue(this,i,this[pO])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);_z[t]={get(){let{level:r}=this;return function(...n){let i=Wbe(Qbe(e,Gat[r],"bgColor",...n),X8.bgColor.close,this[lz]);return Jue(this,i,this[pO])}}}}var hin=Object.defineProperties(()=>{},{..._z,level:{enumerable:!0,get(){return this[Obe].level},set(e){this[Obe].level=e}}}),Wbe=(e,t,r)=>{let n,i;if(r===void 0)n=e,i=t;else n=r.openAll+e,i=t+r.closeAll;return{open:e,close:t,openAll:n,closeAll:i,parent:r}},Jue=(e,t,r)=>{let n=(...i)=>pin(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,hin),n[Obe]=e,n[lz]=t,n[pO]=r,n},pin=(e,t)=>{if(e.level<=0||!t)return e[pO]?"":t;let r=e[lz];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))while(r!==void 0)t=Qat(t,r.close,r.open),r=r.parent;let a=t.indexOf(`
|
|
979
979
|
`);if(a!==-1)t=Wat(t,i,n,a);return n+t+i};Object.defineProperties(fO.prototype,_z);var fin=fO(),Xp0=fO({level:Hat?Hat.level:0});var Et=fin;import wg from"node:process";import{execSync as AWn}from"node:child_process";import kT from"node:path";import{existsSync as EL,readFileSync as mJt,writeFileSync as dJt}from"node:fs";var ahe=N0(CD(),1);var PFe=N0(_ct(),1);import Xf from"node:process";import L1 from"node:path";import lg from"node:fs";var k8t=N0(CD(),1);import Xon from"node:http";import jon from"node:https";import xz from"node:zlib";import Uct,{PassThrough as Zct,pipeline as vz}from"node:stream";import{Buffer as Aoe}from"node:buffer";function don(e){if(!/^data:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");let t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");let r=e.substring(5,t).split(";"),n="",i=!1,a=r[0]||"text/plain",u=a;for(let _=1;_<r.length;_++)if(r[_]==="base64")i=!0;else if(r[_]){if(u+=`;${r[_]}`,r[_].indexOf("charset=")===0)n=r[_].substring(8)}if(!r[0]&&!n.length)u+=";charset=US-ASCII",n="US-ASCII";let s=i?"base64":"ascii",l=unescape(e.substring(t+1)),h=Buffer.from(l,s);return h.type=a,h.typeFull=u,h.charset=n,h}var cct=don;$O();moe();import Xk,{PassThrough as Pct}from"node:stream";import{types as Nct,deprecate as OTe,promisify as Bon}from"node:util";import{Buffer as k6}from"node:buffer";class Vk extends Error{constructor(e,t){super(e);Error.captureStackTrace(this,this.constructor),this.type=t}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}}class Ld extends Vk{constructor(e,t,r){super(e,t);if(r)this.code=this.errno=r.code,this.erroredSysCall=r.syscall}}var doe=Symbol.toStringTag,KTe=(e)=>{return typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&typeof e.sort==="function"&&e[doe]==="URLSearchParams"},IO=(e)=>{return e&&typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&typeof e.constructor==="function"&&/^(Blob|File)$/.test(e[doe])},vct=(e)=>{return typeof e==="object"&&(e[doe]==="AbortSignal"||e[doe]==="EventTarget")},Dct=(e,t)=>{let r=new URL(t).hostname,n=new URL(e).hostname;return r===n||r.endsWith(`.${n}`)},wct=(e,t)=>{let r=new URL(t).protocol,n=new URL(e).protocol;return r===n};var qon=Bon(Xk.pipeline),mm=Symbol("Body internals");class Jb{constructor(e,{size:t=0}={}){let r=null;if(e===null)e=null;else if(KTe(e))e=k6.from(e.toString());else if(IO(e));else if(k6.isBuffer(e));else if(Nct.isAnyArrayBuffer(e))e=k6.from(e);else if(ArrayBuffer.isView(e))e=k6.from(e.buffer,e.byteOffset,e.byteLength);else if(e instanceof Xk);else if(e instanceof yq)e=xct(e),r=e.type.split("=")[1];else e=k6.from(String(e));let n=e;if(k6.isBuffer(e))n=Xk.Readable.from(e);else if(IO(e))n=Xk.Readable.from(e.stream());if(this[mm]={body:e,stream:n,boundary:r,disturbed:!1,error:null},this.size=t,e instanceof Xk)e.on("error",(i)=>{let a=i instanceof Vk?i:new Ld(`Invalid response body while trying to fetch ${this.url}: ${i.message}`,"system",i);this[mm].error=a})}get body(){return this[mm].stream}get bodyUsed(){return this[mm].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:t,byteLength:r}=await ZTe(this);return e.slice(t,t+r)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let r=new yq,n=new URLSearchParams(await this.text());for(let[i,a]of n)r.append(i,a);return r}let{toFormData:t}=await Promise.resolve().then(() => (Sct(),Fct));return t(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[mm].body&&this[mm].body.type||"",t=await this.arrayBuffer();return new $b([t],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await ZTe(this);return new TextDecoder().decode(e)}buffer(){return ZTe(this)}}Jb.prototype.buffer=OTe(Jb.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(Jb.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:OTe(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function ZTe(e){if(e[mm].disturbed)throw new TypeError(`body used already for: ${e.url}`);if(e[mm].disturbed=!0,e[mm].error)throw e[mm].error;let{body:t}=e;if(t===null)return k6.alloc(0);if(!(t instanceof Xk))return k6.alloc(0);let r=[],n=0;try{for await(let i of t){if(e.size>0&&n+i.length>e.size){let a=new Ld(`content size at ${e.url} over limit: ${e.size}`,"max-size");throw t.destroy(a),a}n+=i.length,r.push(i)}}catch(i){throw i instanceof Vk?i:new Ld(`Invalid response body while trying to fetch ${e.url}: ${i.message}`,"system",i)}if(t.readableEnded===!0||t._readableState.ended===!0)try{if(r.every((i)=>typeof i==="string"))return k6.from(r.join(""));return k6.concat(r,n)}catch(i){throw new Ld(`Could not create Buffer from response body for ${e.url}: ${i.message}`,"system",i)}else throw new Ld(`Premature close of server response while trying to fetch ${e.url}`)}var yz=(e,t)=>{let r,n,{body:i}=e[mm];if(e.bodyUsed)throw new Error("cannot clone body after it is used");if(i instanceof Xk&&typeof i.getBoundary!=="function")r=new Pct({highWaterMark:t}),n=new Pct({highWaterMark:t}),i.pipe(r),i.pipe(n),e[mm].stream=r,i=n;return i},$on=OTe((e)=>e.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),xoe=(e,t)=>{if(e===null)return null;if(typeof e==="string")return"text/plain;charset=UTF-8";if(KTe(e))return"application/x-www-form-urlencoded;charset=UTF-8";if(IO(e))return e.type||null;if(k6.isBuffer(e)||Nct.isAnyArrayBuffer(e)||ArrayBuffer.isView(e))return null;if(e instanceof yq)return`multipart/form-data; boundary=${t[mm].boundary}`;if(e&&typeof e.getBoundary==="function")return`multipart/form-data;boundary=${$on(e)}`;if(e instanceof Xk)return null;return"text/plain;charset=UTF-8"},Bct=(e)=>{let{body:t}=e[mm];if(t===null)return 0;if(IO(t))return t.size;if(k6.isBuffer(t))return t.length;if(t&&typeof t.getLengthSync==="function")return t.hasKnownLength&&t.hasKnownLength()?t.getLengthSync():null;return null},qct=async(e,{body:t})=>{if(t===null)e.end();else await qon(t,e)};import{types as $ct}from"node:util";import Doe from"node:http";var voe=typeof Doe.validateHeaderName==="function"?Doe.validateHeaderName:(e)=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(e)){let t=new TypeError(`Header name must be a valid HTTP token [${e}]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),t}},QTe=typeof Doe.validateHeaderValue==="function"?Doe.validateHeaderValue:(e,t)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(t)){let r=new TypeError(`Invalid character in header content ["${e}"]`);throw Object.defineProperty(r,"code",{value:"ERR_INVALID_CHAR"}),r}};class Xd extends URLSearchParams{constructor(e){let t=[];if(e instanceof Xd){let r=e.raw();for(let[n,i]of Object.entries(r))t.push(...i.map((a)=>[n,a]))}else if(e==null);else if(typeof e==="object"&&!$ct.isBoxedPrimitive(e)){let r=e[Symbol.iterator];if(r==null)t.push(...Object.entries(e));else{if(typeof r!=="function")throw new TypeError("Header pairs must be iterable");t=[...e].map((n)=>{if(typeof n!=="object"||$ct.isBoxedPrimitive(n))throw new TypeError("Each header pair must be an iterable object");return[...n]}).map((n)=>{if(n.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...n]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");t=t.length>0?t.map(([r,n])=>{return voe(r),QTe(r,String(n)),[String(r).toLowerCase(),String(n)]}):void 0;super(t);return new Proxy(this,{get(r,n,i){switch(n){case"append":case"set":return(a,u)=>{return voe(a),QTe(a,String(u)),URLSearchParams.prototype[n].call(r,String(a).toLowerCase(),String(u))};case"delete":case"has":case"getAll":return(a)=>{return voe(a),URLSearchParams.prototype[n].call(r,String(a).toLowerCase())};case"keys":return()=>{return r.sort(),new Set(URLSearchParams.prototype.keys.call(r)).keys()};default:return Reflect.get(r,n,i)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let t=this.getAll(e);if(t.length===0)return null;let r=t.join(", ");if(/^content-encoding$/i.test(e))r=r.toLowerCase();return r}forEach(e,t=void 0){for(let r of this.keys())Reflect.apply(e,t,[this.get(r),r,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,t)=>{return e[t]=this.getAll(t),e},{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,t)=>{let r=this.getAll(t);if(t==="host")e[t]=r[0];else e[t]=r.length>1?r:r[0];return e},{})}}Object.defineProperties(Xd.prototype,["get","entries","forEach","values"].reduce((e,t)=>{return e[t]={enumerable:!0},e},{}));function Jct(e=[]){return new Xd(e.reduce((t,r,n,i)=>{if(n%2===0)t.push(i.slice(n,n+2));return t},[]).filter(([t,r])=>{try{return voe(t),QTe(t,String(r)),!0}catch{return!1}}))}var Jon=new Set([301,302,303,307,308]),woe=(e)=>{return Jon.has(e)};var O8=Symbol("Response internals");class $f extends Jb{constructor(e=null,t={}){super(e,t);let r=t.status!=null?t.status:200,n=new Xd(t.headers);if(e!==null&&!n.has("Content-Type")){let i=xoe(e,this);if(i)n.append("Content-Type",i)}this[O8]={type:"default",url:t.url,status:r,statusText:t.statusText||"",headers:n,counter:t.counter,highWaterMark:t.highWaterMark}}get type(){return this[O8].type}get url(){return this[O8].url||""}get status(){return this[O8].status}get ok(){return this[O8].status>=200&&this[O8].status<300}get redirected(){return this[O8].counter>0}get statusText(){return this[O8].statusText}get headers(){return this[O8].headers}get highWaterMark(){return this[O8].highWaterMark}clone(){return new $f(yz(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,t=302){if(!woe(t))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new $f(null,{headers:{location:new URL(e).toString()},status:t})}static error(){let e=new $f(null,{status:0,statusText:""});return e[O8].type="error",e}static json(e=void 0,t={}){let r=JSON.stringify(e);if(r===void 0)throw new TypeError("data is not JSON serializable");let n=new Xd(t&&t.headers);if(!n.has("content-type"))n.set("content-type","application/json");return new $f(r,{...t,headers:n})}get[Symbol.toStringTag](){return"Response"}}Object.defineProperties($f.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});import{format as zon}from"node:url";import{deprecate as Von}from"node:util";var Ict=(e)=>{if(e.search)return e.search;let t=e.href.length-1,r=e.hash||(e.href[t]==="#"?"#":"");return e.href[t-r.length]==="?"?"?":""};import{isIP as Ion}from"node:net";function Mct(e,t=!1){if(e==null)return"no-referrer";if(e=new URL(e),/^(about|blob|data):$/.test(e.protocol))return"no-referrer";if(e.username="",e.password="",e.hash="",t)e.pathname="",e.search="";return e}var zct=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),Vct="strict-origin-when-cross-origin";function Lct(e){if(!zct.has(e))throw new TypeError(`Invalid referrerPolicy: ${e}`);return e}function Mon(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,""),r=Ion(t);if(r===4&&/^127\./.test(t))return!0;if(r===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t))return!0;if(e.host==="localhost"||e.host.endsWith(".localhost"))return!1;if(e.protocol==="file:")return!0;return!1}function gz(e){if(/^about:(blank|srcdoc)$/.test(e))return!0;if(e.protocol==="data:")return!0;if(/^(blob|filesystem):$/.test(e.protocol))return!0;return Mon(e)}function Xct(e,{referrerURLCallback:t,referrerOriginCallback:r}={}){if(e.referrer==="no-referrer"||e.referrerPolicy==="")return null;let n=e.referrerPolicy;if(e.referrer==="about:client")return"no-referrer";let i=e.referrer,a=Mct(i),u=Mct(i,!0);if(a.toString().length>4096)a=u;if(t)a=t(a);if(r)u=r(u);let s=new URL(e.url);switch(n){case"no-referrer":return"no-referrer";case"origin":return u;case"unsafe-url":return a;case"strict-origin":if(gz(a)&&!gz(s))return"no-referrer";return u.toString();case"strict-origin-when-cross-origin":if(a.origin===s.origin)return a;if(gz(a)&&!gz(s))return"no-referrer";return u;case"same-origin":if(a.origin===s.origin)return a;return"no-referrer";case"origin-when-cross-origin":if(a.origin===s.origin)return a;return u;case"no-referrer-when-downgrade":if(gz(a)&&!gz(s))return"no-referrer";return a;default:throw new TypeError(`Invalid referrerPolicy: ${n}`)}}function jct(e){let t=(e.get("referrer-policy")||"").split(/[,\s]+/),r="";for(let n of t)if(n&&zct.has(n))r=n;return r}var v2=Symbol("Request internals"),zO=(e)=>{return typeof e==="object"&&typeof e[v2]==="object"},Lon=Von(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)");class xq extends Jb{constructor(e,t={}){let r;if(zO(e))r=new URL(e.url);else r=new URL(e),e={};if(r.username!==""||r.password!=="")throw new TypeError(`${r} is an url with embedded credentials.`);let n=t.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(n))n=n.toUpperCase();if(!zO(t)&&"data"in t)Lon();if((t.body!=null||zO(e)&&e.body!==null)&&(n==="GET"||n==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let i=t.body?t.body:zO(e)&&e.body!==null?yz(e):null;super(i,{size:t.size||e.size||0});let a=new Xd(t.headers||e.headers||{});if(i!==null&&!a.has("Content-Type")){let l=xoe(i,this);if(l)a.set("Content-Type",l)}let u=zO(e)?e.signal:null;if("signal"in t)u=t.signal;if(u!=null&&!vct(u))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let s=t.referrer==null?e.referrer:t.referrer;if(s==="")s="no-referrer";else if(s){let l=new URL(s);s=/^about:(\/\/)?client$/.test(l)?"client":l}else s=void 0;this[v2]={method:n,redirect:t.redirect||e.redirect||"follow",headers:a,parsedURL:r,signal:u,referrer:s},this.follow=t.follow===void 0?e.follow===void 0?20:e.follow:t.follow,this.compress=t.compress===void 0?e.compress===void 0?!0:e.compress:t.compress,this.counter=t.counter||e.counter||0,this.agent=t.agent||e.agent,this.highWaterMark=t.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=t.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=t.referrerPolicy||e.referrerPolicy||""}get method(){return this[v2].method}get url(){return zon(this[v2].parsedURL)}get headers(){return this[v2].headers}get redirect(){return this[v2].redirect}get signal(){return this[v2].signal}get referrer(){if(this[v2].referrer==="no-referrer")return"";if(this[v2].referrer==="client")return"about:client";if(this[v2].referrer)return this[v2].referrer.toString();return}get referrerPolicy(){return this[v2].referrerPolicy}set referrerPolicy(e){this[v2].referrerPolicy=Lct(e)}clone(){return new xq(this)}get[Symbol.toStringTag](){return"Request"}}Object.defineProperties(xq.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var Kct=(e)=>{let{parsedURL:t}=e[v2],r=new Xd(e[v2].headers);if(!r.has("Accept"))r.set("Accept","*/*");let n=null;if(e.body===null&&/^(post|put)$/i.test(e.method))n="0";if(e.body!==null){let s=Bct(e);if(typeof s==="number"&&!Number.isNaN(s))n=String(s)}if(n)r.set("Content-Length",n);if(e.referrerPolicy==="")e.referrerPolicy=Vct;if(e.referrer&&e.referrer!=="no-referrer")e[v2].referrer=Xct(e);else e[v2].referrer="no-referrer";if(e[v2].referrer instanceof URL)r.set("Referer",e.referrer);if(!r.has("User-Agent"))r.set("User-Agent","node-fetch");if(e.compress&&!r.has("Accept-Encoding"))r.set("Accept-Encoding","gzip, deflate, br");let{agent:i}=e;if(typeof i==="function")i=i(t);let a=Ict(t),u={path:t.pathname+a,method:e.method,headers:r[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:e.insecureHTTPParser,agent:i};return{parsedURL:t,options:u}};class WTe extends Vk{constructor(e,t="aborted"){super(e,t)}}moe();UTe();var Kon=new Set(["data:","http:","https:"]);async function Dz(e,t){return new Promise((r,n)=>{let i=new xq(e,t),{parsedURL:a,options:u}=Kct(i);if(!Kon.has(a.protocol))throw new TypeError(`node-fetch cannot load ${e}. URL scheme "${a.protocol.replace(/:$/,"")}" is not supported.`);if(a.protocol==="data:"){let d=cct(i.url),x=new $f(d,{headers:{"Content-Type":d.typeFull}});r(x);return}let s=(a.protocol==="https:"?jon:Xon).request,{signal:l}=i,h=null,_=()=>{let d=new WTe("The operation was aborted.");if(n(d),i.body&&i.body instanceof Uct.Readable)i.body.destroy(d);if(!h||!h.body)return;h.body.emit("error",d)};if(l&&l.aborted){_();return}let p=()=>{_(),m()},f=s(a.toString(),u);if(l)l.addEventListener("abort",p);let m=()=>{if(f.abort(),l)l.removeEventListener("abort",p)};if(f.on("error",(d)=>{n(new Ld(`request to ${i.url} failed, reason: ${d.message}`,"system",d)),m()}),Uon(f,(d)=>{if(h&&h.body)h.body.destroy(d)}),process.version<"v14")f.on("socket",(d)=>{let x;d.prependListener("end",()=>{x=d._eventsCount}),d.prependListener("close",(T)=>{if(h&&x<d._eventsCount&&!T){let A=new Error("Premature close");A.code="ERR_STREAM_PREMATURE_CLOSE",h.body.emit("error",A)}})});f.on("response",(d)=>{f.setTimeout(0);let x=Jct(d.rawHeaders);if(woe(d.statusCode)){let N=x.get("Location"),E=null;try{E=N===null?null:new URL(N,i.url)}catch{if(i.redirect!=="manual"){n(new Ld(`uri requested responds with an invalid redirect URL: ${N}`,"invalid-redirect")),m();return}}switch(i.redirect){case"error":n(new Ld(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),m();return;case"manual":break;case"follow":{if(E===null)break;if(i.counter>=i.follow){n(new Ld(`maximum redirect reached at: ${i.url}`,"max-redirect")),m();return}let P={headers:new Xd(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:yz(i),signal:i.signal,size:i.size,referrer:i.referrer,referrerPolicy:i.referrerPolicy};if(!Dct(i.url,E)||!wct(i.url,E))for(let $ of["authorization","www-authenticate","cookie","cookie2"])P.headers.delete($);if(d.statusCode!==303&&i.body&&t.body instanceof Uct.Readable){n(new Ld("Cannot follow redirect with body being a readable stream","unsupported-redirect")),m();return}if(d.statusCode===303||(d.statusCode===301||d.statusCode===302)&&i.method==="POST")P.method="GET",P.body=void 0,P.headers.delete("content-length");let q=jct(x);if(q)P.referrerPolicy=q;r(Dz(new xq(E,P))),m();return}default:return n(new TypeError(`Redirect option '${i.redirect}' is not a valid value of RequestRedirect`))}}if(l)d.once("end",()=>{l.removeEventListener("abort",p)});let T=vz(d,new Zct,(N)=>{if(N)n(N)});if(process.version<"v12.10")d.on("aborted",p);let A={url:i.url,status:d.statusCode,statusText:d.statusMessage,headers:x,size:i.size,counter:i.counter,highWaterMark:i.highWaterMark},F=x.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||F===null||d.statusCode===204||d.statusCode===304){h=new $f(T,A),r(h);return}let b={flush:xz.Z_SYNC_FLUSH,finishFlush:xz.Z_SYNC_FLUSH};if(F==="gzip"||F==="x-gzip"){T=vz(T,xz.createGunzip(b),(N)=>{if(N)n(N)}),h=new $f(T,A),r(h);return}if(F==="deflate"||F==="x-deflate"){let N=vz(d,new Zct,(E)=>{if(E)n(E)});N.once("data",(E)=>{if((E[0]&15)===8)T=vz(T,xz.createInflate(),(P)=>{if(P)n(P)});else T=vz(T,xz.createInflateRaw(),(P)=>{if(P)n(P)});h=new $f(T,A),r(h)}),N.once("end",()=>{if(!h)h=new $f(T,A),r(h)});return}if(F==="br"){T=vz(T,xz.createBrotliDecompress(),(N)=>{if(N)n(N)}),h=new $f(T,A),r(h);return}h=new $f(T,A),r(h)}),qct(f,i).catch(n)})}function Uon(e,t){let r=Aoe.from(`0\r
|
|
980
980
|
\r
|
|
981
|
-
`),n=!1,i=!1,a;e.on("response",(u)=>{let{headers:s}=u;n=s["transfer-encoding"]==="chunked"&&!s["content-length"]}),e.on("socket",(u)=>{let s=()=>{if(n&&!i){let h=new Error("Premature close");h.code="ERR_STREAM_PREMATURE_CLOSE",t(h)}},l=(h)=>{if(i=Aoe.compare(h.slice(-5),r)===0,!i&&a)i=Aoe.compare(a.slice(-3),r.slice(0,3))===0&&Aoe.compare(h.slice(-2),r.slice(3))===0;a=h};u.prependListener("close",s),u.on("data",l),e.on("close",()=>{u.removeListener("close",s),u.removeListener("data",l)})})}var x8t=N0(yke(),1),v8t=N0(f8t(),1),D8t=N0(y8t(),1);import cvn from"node:fs";import{Buffer as kFe}from"node:buffer";import RQ from"node:crypto";function FFe(e,t){let r=cvn.readFileSync(e);if(t)return g8t(hvn(r,t));return g8t(r)}function g8t(e){let t=D8t.default.decode(e);if(e.includes("EC PRIVATE KEY")){if(t.length!=118)throw"expecting byte length 118 but got "+t.length;return v8t.Secp256k1KeyIdentity.fromSecretKey(t.subarray(7,39))}if(t.length!=85)throw"expecting byte length 85 but got "+t.length;let r=kFe.concat([t.subarray(16,48)]);return x8t.Ed25519KeyIdentity.fromSecretKey(r)}var w8t="aes-256-ctr";function A8t(e,t){let r=RQ.createHash("sha256").update(t).digest("base64").slice(0,32),n=RQ.randomBytes(16),i=RQ.createCipheriv(w8t,r,n);return kFe.concat([n,i.update(e),i.final()])}function hvn(e,t){let r=RQ.createHash("sha256").update(t).digest("base64").slice(0,32),n=e.subarray(0,16);e=e.subarray(16);let i=RQ.createDecipheriv(w8t,r,n);return kFe.concat([i.update(e),i.final()])}var eW=N0(ug(),1);var b8t=({IDL:e})=>{let t=e.Text,r=e.Variant({ok:e.Null,err:e.Text}),n=e.Text,i=e.Text,a=e.Variant({ok:e.Null,err:i}),u=e.Text,s=e.Text,l=e.Text,h=e.Int,_=e.Record({startTime:h,endTime:h,downloads:e.Nat}),p=e.Text,f=e.Variant({ok:e.Vec(e.Tuple(p,e.Vec(e.Nat8))),err:i}),m=e.Variant({ok:e.Vec(p),err:i}),d=e.Variant({major:e.Null,minor:e.Null,patch:e.Null}),x=e.Variant({ok:e.Vec(e.Tuple(t,s)),err:i}),T=e.Variant({ok:s,err:i}),A=e.Record({id:e.Principal,emailVerified:e.Bool,twitter:e.Text,displayName:e.Text,name:e.Text,site:e.Text,email:e.Text,twitterVerified:e.Bool,githubVerified:e.Bool,github:e.Text}),F=e.Variant({allLatest:e.Null,tooOld:e.Null,updatesAvailable:e.Null}),b=e.Record({depsStatus:F,hasDescription:e.Bool,hasKeywords:e.Bool,hasLicense:e.Bool,hasDocumentation:e.Bool,hasTests:e.Bool,hasRepository:e.Bool,hasReleaseNotes:e.Bool}),N=e.Text,E=e.Record({value:e.Text,name:e.Text}),P=e.Text,q=e.Record({name:P,repo:e.Text,version:e.Text}),$=e.Record({value:e.Text,name:e.Text}),M=e.Record({dfx:e.Text,moc:e.Text,scripts:e.Vec(E),baseDir:e.Text,documentation:e.Text,name:P,homepage:e.Text,description:e.Text,version:e.Text,keywords:e.Vec(e.Text),donation:e.Text,devDependencies:e.Vec(q),repository:e.Text,dependencies:e.Vec(q),requirements:e.Vec($),license:e.Text,readme:e.Text}),O=e.Record({storage:e.Principal,time:h,user:e.Principal}),K=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,publication:O}),ue=e.Text,Q=e.Record({gc:e.Text,metrics:e.Vec(e.Tuple(ue,e.Vec(e.Vec(e.Int)))),cols:e.Vec(e.Text),file:e.Text,name:e.Text,rows:e.Vec(e.Text),description:e.Text,compilerVersion:e.Text,compiler:e.Text,replica:e.Text,replicaVersion:e.Text,forceGC:e.Bool}),G=e.Vec(Q),Z=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,publication:O}),ee=e.Record({passedNames:e.Vec(e.Text),passed:e.Nat}),ge=e.Record({startTime:h,endTime:h,downloads:e.Nat}),Fe=e.Record({sourceFiles:e.Nat,sourceSize:e.Nat}),He=e.Record({addedNames:e.Vec(e.Text),removedNames:e.Vec(e.Text)}),xe=e.Record({oldVersion:e.Text,name:e.Text,newVersion:e.Text}),$e=e.Record({tests:He,deps:e.Vec(xe),curBenchmarks:G,prevBenchmarks:G,notes:e.Text,devDeps:e.Vec(xe)}),Ie=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,changes:$e,publication:O}),te=e.Record({benchmarks:G,ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,deps:e.Vec(Z),quality:b,publisher:A,testStats:ee,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadTrend:e.Vec(ge),fileStats:Fe,versionHistory:e.Vec(Ie),dependents:e.Vec(Z),devDeps:e.Vec(Z),downloadsInLast7Days:e.Nat,config:M,changes:$e,publication:O}),de=e.Variant({ok:te,err:i}),Xe=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,changes:$e,publication:O}),Ne=e.Principal,Ce=e.Record({fileCount:e.Nat,cyclesBalance:e.Nat,memorySize:e.Nat}),pe=e.Record({id:e.Principal,emailVerified:e.Bool,twitter:e.Text,displayName:e.Text,name:e.Text,site:e.Text,email:e.Text,twitterVerified:e.Bool,githubVerified:e.Bool,github:e.Text}),ie=e.Tuple(e.Text,e.Text),ke=e.Record({url:e.Text,method:e.Text,body:e.Vec(e.Nat8),headers:e.Vec(ie),certificate_version:e.Opt(e.Nat16)}),Je=e.Vec(e.Nat8),ut=e.Record({token:e.Opt(Je),body:e.Vec(e.Nat8)}),ot=e.Func([Je],[e.Opt(ut)],["query"]),gt=e.Variant({Callback:e.Record({token:Je,callback:ot})}),Bt=e.Record({body:e.Vec(e.Nat8),headers:e.Vec(ie),upgrade:e.Opt(e.Bool),streaming_strategy:e.Opt(gt),status_code:e.Nat16}),pt=e.Nat,St=e.Variant({ok:p,err:i}),Tt=e.Record({dfx:e.Text,moc:e.Text,scripts:e.Vec(E),baseDir:e.Text,documentation:e.Text,name:P,homepage:e.Text,description:e.Text,version:e.Text,keywords:e.Vec(e.Text),donation:e.Text,devDependencies:e.Vec(q),repository:e.Text,dependencies:e.Vec(q),requirements:e.Opt(e.Vec($)),license:e.Text,readme:e.Text}),Mt=e.Variant({ok:n,err:i}),wr=e.Record({value:e.Text,name:e.Text}),tr=e.Record({status:e.Nat,body:e.Vec(e.Nat8),headers:e.Vec(wr)}),Vr=e.Record({context:e.Vec(e.Nat8),response:tr}),Tr=e.Vec(Q),Yr=e.Record({passedNames:e.Vec(e.Text),passed:e.Nat});return e.Service({addMaintainer:e.Func([t,e.Principal],[r],[]),addOwner:e.Func([t,e.Principal],[r],[]),backup:e.Func([],[],[]),computeHashesForExistingFiles:e.Func([],[],[]),finishPublish:e.Func([n],[a],[]),getApiVersion:e.Func([],[u],["query"]),getBackupCanisterId:e.Func([],[e.Principal],["query"]),getDefaultPackages:e.Func([e.Text],[e.Vec(e.Tuple(t,s))],["query"]),getDownloadTrendByPackageId:e.Func([l],[e.Vec(_)],["query"]),getDownloadTrendByPackageName:e.Func([t],[e.Vec(_)],["query"]),getFileHashes:e.Func([t,s],[f],[]),getFileHashesByPackageIds:e.Func([e.Vec(l)],[e.Vec(e.Tuple(l,e.Vec(e.Tuple(p,e.Vec(e.Nat8)))))],[]),getFileHashesQuery:e.Func([t,s],[f],["query"]),getFileIds:e.Func([t,s],[m],["query"]),getHighestSemverBatch:e.Func([e.Vec(e.Tuple(t,s,d))],[x],["query"]),getHighestVersion:e.Func([t],[T],["query"]),getMostDownloadedPackages:e.Func([],[e.Vec(K)],["query"]),getMostDownloadedPackagesIn7Days:e.Func([],[e.Vec(K)],["query"]),getNewPackages:e.Func([],[e.Vec(K)],["query"]),getPackageDetails:e.Func([t,s],[de],["query"]),getPackageMaintainers:e.Func([t],[e.Vec(e.Principal)],["query"]),getPackageOwners:e.Func([t],[e.Vec(e.Principal)],["query"]),getPackagesByCategory:e.Func([],[e.Vec(e.Tuple(e.Text,e.Vec(K)))],["query"]),getRecentlyUpdatedPackages:e.Func([],[e.Vec(Xe)],["query"]),getStoragesStats:e.Func([],[e.Vec(e.Tuple(Ne,Ce))],["query"]),getTotalDownloads:e.Func([],[e.Nat],["query"]),getTotalPackages:e.Func([],[e.Nat],["query"]),getUser:e.Func([e.Principal],[e.Opt(pe)],["query"]),http_request:e.Func([ke],[Bt],["query"]),notifyInstall:e.Func([t,s],[],["oneway"]),notifyInstalls:e.Func([e.Vec(e.Tuple(t,s))],[],["oneway"]),removeMaintainer:e.Func([t,e.Principal],[r],[]),removeOwner:e.Func([t,e.Principal],[r],[]),restore:e.Func([e.Nat],[],[]),search:e.Func([u,e.Opt(e.Nat),e.Opt(e.Nat)],[e.Vec(K),pt],["query"]),setUserProp:e.Func([e.Text,e.Text],[r],[]),startFileUpload:e.Func([n,u,e.Nat,e.Vec(e.Nat8)],[St],[]),startPublish:e.Func([Tt],[Mt],[]),transformRequest:e.Func([Vr],[tr],["query"]),uploadBenchmarks:e.Func([n,Tr],[a],[]),uploadFileChunk:e.Func([n,p,e.Nat,e.Vec(e.Nat8)],[a],[]),uploadNotes:e.Func([n,e.Text],[a],[]),uploadTestStats:e.Func([n,Yr],[a],[])})};var T8t=({IDL:e})=>{let t=e.Text,r=e.Vec(e.Nat8),n=e.Text,i=e.Variant({ok:r,err:n}),a=e.Text,u=e.Record({id:a,owners:e.Vec(e.Principal),path:e.Text,chunkCount:e.Nat}),s=e.Variant({ok:u,err:n}),l=e.Record({fileCount:e.Nat,cyclesBalance:e.Nat,memorySize:e.Nat}),h=e.Variant({ok:e.Null,err:n});return e.Service({acceptCycles:e.Func([],[],[]),deleteFile:e.Func([t],[],[]),downloadChunk:e.Func([t,e.Nat],[i],["query"]),finishUpload:e.Func([t],[],[]),getFileIdsRange:e.Func([e.Nat,e.Nat],[e.Vec(t)],["query"]),getFileMeta:e.Func([t],[s],["query"]),getStats:e.Func([],[l],["query"]),startUpload:e.Func([u],[h],[]),updateFileOwners:e.Func([t,e.Vec(e.Principal)],[],[]),uploadChunk:e.Func([t,e.Nat,r],[],[])})};function rT(){return globalThis.MOPS_NETWORK||"ic"}function SFe(e){if(e==="staging")return{host:"https://icp-api.io",canisterId:"2d2zu-vaaaa-aaaak-qb6pq-cai"};else if(e==="ic")return{host:"https://icp-api.io",canisterId:"oknww-riaaa-aaaam-qaf6a-cai"};else return{host:"http://127.0.0.1:4943",canisterId:"2d2zu-vaaaa-aaaak-qb6pq-cai"}}var C8t=new Map,E8t=async(e)=>{let t=e?e?.getPrincipal().toText():"",r=C8t.get(t);if(!r){let n=rT(),i=SFe(n).host;r=eW.HttpAgent.create({host:i,identity:e,shouldFetchRootKey:n==="local",verifyQuerySignatures:process.env.MOPS_VERIFY_QUERY_SIGNATURES!=="false"}),C8t.set(t,r)}return r},ds=async(e)=>{let t=await E8t(e),r=rT(),n=SFe(r).canisterId;return eW.Actor.createActor(b8t,{agent:t,canisterId:n})},tW=async(e,t)=>{let r=await E8t(t);return eW.Actor.createActor(T8t,{agent:r,canisterId:e})};async function dV(e){return(await ds()).getHighestVersion(e)}function MF(e){return e.split("@")[0]||""}function Lf(e,t){return MF(e)+"@"+t}var __dirname="/Users/shamil/dev/ic/mops/cli";if(!globalThis.fetch)globalThis.fetch=Dz;var yV="1.3",Yd="",jf="";if(Xf.platform=="win32")Yd=L1.join(Xf.env.LOCALAPPDATA||"","mops/config"),jf=L1.join(Xf.env.LOCALAPPDATA||"","mops/cache");else if(Xf.platform=="darwin")Yd=L1.join(Xf.env.HOME||"","Library/Application Support/mops"),jf=L1.join(Xf.env.HOME||"","Library/Caches/mops");else Yd=L1.join(Xf.env.HOME||"",".config/mops"),jf=L1.join(Xf.env.HOME||"",".cache/mops");if(Xf.env.XDG_CONFIG_HOME)Yd=L1.join(Xf.env.XDG_CONFIG_HOME,"mops");if(Xf.env.XDG_CACHE_HOME)jf=L1.join(Xf.env.XDG_CACHE_HOME,"mops");function NFe(){let e="";try{e=new URL("./network.txt",import.meta.url)}catch{e=L1.join(__dirname,"network.txt")}return e}function F8t(e){lg.writeFileSync(NFe(),e)}var L6=async()=>{let e=L1.resolve(Yd,"identity.pem"),t=L1.resolve(Yd,"identity.pem.encrypted");if(lg.existsSync(t)){let r=await k8t.default({type:"invisible",name:"value",message:"Enter password:"});return await FFe(t,r.value)}if(lg.existsSync(e))return FFe(e);return};function zq(e=Xf.cwd()){if(!L1.basename(e))return"";let t=L1.join(e,"mops.toml");if(lg.existsSync(t))return t;return zq(L1.resolve(e,".."))}function wi(){let e=zq();if(!e)return"";return L1.dirname(e)}function Ka(e=!1){if(!zq()){if(console.log(Et.red("Error: ")+`Config file 'mops.toml' not found. Please run ${Et.green("mops init")} first`),e)Xf.exit(1);return!1}return!0}function gV(e,t){let r=Math.round(e/t*10);return`[${":".repeat(r)}${" ".repeat(Math.max(0,10-r))}]`}function Kf(e){let t=new URL(e),r=t.hash?.substring(1).split("@"),n=r[0]||"master",i=r[1]||"",[a,u]=t.pathname.split("/").filter((s)=>!!s);if(a=a||"",u=u||"",u?.endsWith(".git"))u=u.substring(0,u.length-4);return{org:a,gitName:u,branch:n,commitHash:i}}async function v_e(e,t){let r=await Dz(`https://api.github.com/repos/${e}/commits/${t}`),n=await r.json();if(n.message&&t==="master")r=await Dz(`https://api.github.com/repos/${e}/commits/main`),n=await r.json();return n}function Hd(e){if(!e||typeof e!=="string")throw Error(`Invalid dependency value "${e}"`);if(e.startsWith("https://github.com/"))return"github";else if(e.match(/^(\.?\.)?\//))return"local";else return"mops"}function BFe(e,t){let r=Hd(t);if(r==="github")return{name:e,repo:t,version:""};else if(r==="local")return{name:e,repo:"",path:t,version:""};else return{name:e,repo:"",version:t}}function Q0(e=zq()){let t=lg.readFileSync(e).toString(),r=PFe.default.parse(t),n=(a)=>{Object.entries(a).forEach(([u,s])=>{if(!s||typeof s!=="string")throw Error(`Invalid dependency value ${u} = "${s}"`);a[u]=BFe(u,s)})};n(r.dependencies||{}),n(r["dev-dependencies"]||{});let i={...r};return Object.entries(i.requirements||{}).forEach(([a,u])=>{if(a==="moc")i.requirements=i.requirements||{},i.requirements.moc=u}),i}function _g(e,t=zq()){let r=JSON.parse(JSON.stringify(e)),n=r.dependencies||{};Object.entries(e.dependencies||{}).forEach(([u,{repo:s,path:l,version:h}])=>{n[u]=s||l||h});let i=r["dev-dependencies"]||{};Object.entries(e["dev-dependencies"]||{}).forEach(([u,{repo:s,path:l,version:h}])=>{i[u]=s||l||h});let a=PFe.default.stringify(r).trim();if(lg.existsSync(t)&&lg.readFileSync(t).toString().endsWith(`
|
|
981
|
+
`),n=!1,i=!1,a;e.on("response",(u)=>{let{headers:s}=u;n=s["transfer-encoding"]==="chunked"&&!s["content-length"]}),e.on("socket",(u)=>{let s=()=>{if(n&&!i){let h=new Error("Premature close");h.code="ERR_STREAM_PREMATURE_CLOSE",t(h)}},l=(h)=>{if(i=Aoe.compare(h.slice(-5),r)===0,!i&&a)i=Aoe.compare(a.slice(-3),r.slice(0,3))===0&&Aoe.compare(h.slice(-2),r.slice(3))===0;a=h};u.prependListener("close",s),u.on("data",l),e.on("close",()=>{u.removeListener("close",s),u.removeListener("data",l)})})}var x8t=N0(yke(),1),v8t=N0(f8t(),1),D8t=N0(y8t(),1);import cvn from"node:fs";import{Buffer as kFe}from"node:buffer";import RQ from"node:crypto";function FFe(e,t){let r=cvn.readFileSync(e);if(t)return g8t(hvn(r,t));return g8t(r)}function g8t(e){let t=D8t.default.decode(e);if(e.includes("EC PRIVATE KEY")){if(t.length!=118)throw"expecting byte length 118 but got "+t.length;return v8t.Secp256k1KeyIdentity.fromSecretKey(t.subarray(7,39))}if(t.length!=85)throw"expecting byte length 85 but got "+t.length;let r=kFe.concat([t.subarray(16,48)]);return x8t.Ed25519KeyIdentity.fromSecretKey(r)}var w8t="aes-256-ctr";function A8t(e,t){let r=RQ.createHash("sha256").update(t).digest("base64").slice(0,32),n=RQ.randomBytes(16),i=RQ.createCipheriv(w8t,r,n);return kFe.concat([n,i.update(e),i.final()])}function hvn(e,t){let r=RQ.createHash("sha256").update(t).digest("base64").slice(0,32),n=e.subarray(0,16);e=e.subarray(16);let i=RQ.createDecipheriv(w8t,r,n);return kFe.concat([i.update(e),i.final()])}var eW=N0(ug(),1);var b8t=({IDL:e})=>{let t=e.Text,r=e.Variant({ok:e.Null,err:e.Text}),n=e.Text,i=e.Text,a=e.Variant({ok:e.Null,err:i}),u=e.Text,s=e.Text,l=e.Text,h=e.Int,_=e.Record({startTime:h,endTime:h,downloads:e.Nat}),p=e.Text,f=e.Variant({ok:e.Vec(e.Tuple(p,e.Vec(e.Nat8))),err:i}),m=e.Variant({ok:e.Vec(p),err:i}),d=e.Variant({major:e.Null,minor:e.Null,patch:e.Null}),x=e.Variant({ok:e.Vec(e.Tuple(t,s)),err:i}),T=e.Variant({ok:s,err:i}),A=e.Record({id:e.Principal,emailVerified:e.Bool,twitter:e.Text,displayName:e.Text,name:e.Text,site:e.Text,email:e.Text,twitterVerified:e.Bool,githubVerified:e.Bool,github:e.Text}),F=e.Variant({allLatest:e.Null,tooOld:e.Null,updatesAvailable:e.Null}),b=e.Record({depsStatus:F,hasDescription:e.Bool,hasKeywords:e.Bool,hasLicense:e.Bool,hasDocumentation:e.Bool,hasTests:e.Bool,hasRepository:e.Bool,hasReleaseNotes:e.Bool}),N=e.Text,E=e.Record({value:e.Text,name:e.Text}),P=e.Text,q=e.Record({name:P,repo:e.Text,version:e.Text}),$=e.Record({value:e.Text,name:e.Text}),M=e.Record({dfx:e.Text,moc:e.Text,scripts:e.Vec(E),baseDir:e.Text,documentation:e.Text,name:P,homepage:e.Text,description:e.Text,version:e.Text,keywords:e.Vec(e.Text),donation:e.Text,devDependencies:e.Vec(q),repository:e.Text,dependencies:e.Vec(q),requirements:e.Vec($),license:e.Text,readme:e.Text}),O=e.Record({storage:e.Principal,time:h,user:e.Principal}),K=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,publication:O}),ue=e.Text,Q=e.Record({gc:e.Text,metrics:e.Vec(e.Tuple(ue,e.Vec(e.Vec(e.Int)))),cols:e.Vec(e.Text),file:e.Text,name:e.Text,rows:e.Vec(e.Text),description:e.Text,compilerVersion:e.Text,compiler:e.Text,replica:e.Text,replicaVersion:e.Text,forceGC:e.Bool}),G=e.Vec(Q),Z=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,publication:O}),ee=e.Record({passedNames:e.Vec(e.Text),passed:e.Nat}),ge=e.Record({startTime:h,endTime:h,downloads:e.Nat}),Fe=e.Record({sourceFiles:e.Nat,sourceSize:e.Nat}),He=e.Record({addedNames:e.Vec(e.Text),removedNames:e.Vec(e.Text)}),xe=e.Record({oldVersion:e.Text,name:e.Text,newVersion:e.Text}),$e=e.Record({tests:He,deps:e.Vec(xe),curBenchmarks:G,prevBenchmarks:G,notes:e.Text,devDeps:e.Vec(xe)}),Ie=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,changes:$e,publication:O}),te=e.Record({benchmarks:G,ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,deps:e.Vec(Z),quality:b,publisher:A,testStats:ee,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadTrend:e.Vec(ge),fileStats:Fe,versionHistory:e.Vec(Ie),dependents:e.Vec(Z),devDeps:e.Vec(Z),downloadsInLast7Days:e.Nat,config:M,changes:$e,publication:O}),de=e.Variant({ok:te,err:i}),Xe=e.Record({ownerInfo:A,owners:e.Vec(A),maintainers:e.Vec(A),owner:e.Principal,depAlias:e.Text,quality:b,publisher:A,highestVersion:N,downloadsTotal:e.Nat,downloadsInLast30Days:e.Nat,downloadsInLast7Days:e.Nat,config:M,changes:$e,publication:O}),Ne=e.Principal,Ce=e.Record({fileCount:e.Nat,cyclesBalance:e.Nat,memorySize:e.Nat}),pe=e.Record({id:e.Principal,emailVerified:e.Bool,twitter:e.Text,displayName:e.Text,name:e.Text,site:e.Text,email:e.Text,twitterVerified:e.Bool,githubVerified:e.Bool,github:e.Text}),ie=e.Tuple(e.Text,e.Text),ke=e.Record({url:e.Text,method:e.Text,body:e.Vec(e.Nat8),headers:e.Vec(ie),certificate_version:e.Opt(e.Nat16)}),Je=e.Vec(e.Nat8),ut=e.Record({token:e.Opt(Je),body:e.Vec(e.Nat8)}),ot=e.Func([Je],[e.Opt(ut)],["query"]),gt=e.Variant({Callback:e.Record({token:Je,callback:ot})}),Bt=e.Record({body:e.Vec(e.Nat8),headers:e.Vec(ie),upgrade:e.Opt(e.Bool),streaming_strategy:e.Opt(gt),status_code:e.Nat16}),pt=e.Nat,St=e.Variant({ok:p,err:i}),Tt=e.Record({dfx:e.Text,moc:e.Text,scripts:e.Vec(E),baseDir:e.Text,documentation:e.Text,name:P,homepage:e.Text,description:e.Text,version:e.Text,keywords:e.Vec(e.Text),donation:e.Text,devDependencies:e.Vec(q),repository:e.Text,dependencies:e.Vec(q),requirements:e.Opt(e.Vec($)),license:e.Text,readme:e.Text}),Mt=e.Variant({ok:n,err:i}),wr=e.Record({value:e.Text,name:e.Text}),tr=e.Record({status:e.Nat,body:e.Vec(e.Nat8),headers:e.Vec(wr)}),Vr=e.Record({context:e.Vec(e.Nat8),response:tr}),Tr=e.Vec(Q),Yr=e.Record({passedNames:e.Vec(e.Text),passed:e.Nat});return e.Service({addMaintainer:e.Func([t,e.Principal],[r],[]),addOwner:e.Func([t,e.Principal],[r],[]),backup:e.Func([],[],[]),computeHashesForExistingFiles:e.Func([],[],[]),finishPublish:e.Func([n],[a],[]),getApiVersion:e.Func([],[u],["query"]),getBackupCanisterId:e.Func([],[e.Principal],["query"]),getDefaultPackages:e.Func([e.Text],[e.Vec(e.Tuple(t,s))],["query"]),getDownloadTrendByPackageId:e.Func([l],[e.Vec(_)],["query"]),getDownloadTrendByPackageName:e.Func([t],[e.Vec(_)],["query"]),getFileHashes:e.Func([t,s],[f],[]),getFileHashesByPackageIds:e.Func([e.Vec(l)],[e.Vec(e.Tuple(l,e.Vec(e.Tuple(p,e.Vec(e.Nat8)))))],[]),getFileHashesQuery:e.Func([t,s],[f],["query"]),getFileIds:e.Func([t,s],[m],["query"]),getHighestSemverBatch:e.Func([e.Vec(e.Tuple(t,s,d))],[x],["query"]),getHighestVersion:e.Func([t],[T],["query"]),getMostDownloadedPackages:e.Func([],[e.Vec(K)],["query"]),getMostDownloadedPackagesIn7Days:e.Func([],[e.Vec(K)],["query"]),getNewPackages:e.Func([],[e.Vec(K)],["query"]),getPackageDetails:e.Func([t,s],[de],["query"]),getPackageMaintainers:e.Func([t],[e.Vec(e.Principal)],["query"]),getPackageOwners:e.Func([t],[e.Vec(e.Principal)],["query"]),getPackagesByCategory:e.Func([],[e.Vec(e.Tuple(e.Text,e.Vec(K)))],["query"]),getRecentlyUpdatedPackages:e.Func([],[e.Vec(Xe)],["query"]),getStoragesStats:e.Func([],[e.Vec(e.Tuple(Ne,Ce))],["query"]),getTotalDownloads:e.Func([],[e.Nat],["query"]),getTotalPackages:e.Func([],[e.Nat],["query"]),getUser:e.Func([e.Principal],[e.Opt(pe)],["query"]),http_request:e.Func([ke],[Bt],["query"]),notifyInstall:e.Func([t,s],[],["oneway"]),notifyInstalls:e.Func([e.Vec(e.Tuple(t,s))],[],["oneway"]),removeMaintainer:e.Func([t,e.Principal],[r],[]),removeOwner:e.Func([t,e.Principal],[r],[]),restore:e.Func([e.Nat],[],[]),search:e.Func([u,e.Opt(e.Nat),e.Opt(e.Nat)],[e.Vec(K),pt],["query"]),setUserProp:e.Func([e.Text,e.Text],[r],[]),startFileUpload:e.Func([n,u,e.Nat,e.Vec(e.Nat8)],[St],[]),startPublish:e.Func([Tt],[Mt],[]),transformRequest:e.Func([Vr],[tr],["query"]),uploadBenchmarks:e.Func([n,Tr],[a],[]),uploadFileChunk:e.Func([n,p,e.Nat,e.Vec(e.Nat8)],[a],[]),uploadNotes:e.Func([n,e.Text],[a],[]),uploadTestStats:e.Func([n,Yr],[a],[])})};var T8t=({IDL:e})=>{let t=e.Text,r=e.Vec(e.Nat8),n=e.Text,i=e.Variant({ok:r,err:n}),a=e.Text,u=e.Record({id:a,owners:e.Vec(e.Principal),path:e.Text,chunkCount:e.Nat}),s=e.Variant({ok:u,err:n}),l=e.Record({fileCount:e.Nat,cyclesBalance:e.Nat,memorySize:e.Nat}),h=e.Variant({ok:e.Null,err:n});return e.Service({acceptCycles:e.Func([],[],[]),deleteFile:e.Func([t],[],[]),downloadChunk:e.Func([t,e.Nat],[i],["query"]),finishUpload:e.Func([t],[],[]),getFileIdsRange:e.Func([e.Nat,e.Nat],[e.Vec(t)],["query"]),getFileMeta:e.Func([t],[s],["query"]),getStats:e.Func([],[l],["query"]),startUpload:e.Func([u],[h],[]),updateFileOwners:e.Func([t,e.Vec(e.Principal)],[],[]),uploadChunk:e.Func([t,e.Nat,r],[],[])})};function rT(){return globalThis.MOPS_NETWORK||"ic"}function SFe(e){if(e==="staging")return{host:"https://icp-api.io",canisterId:"2d2zu-vaaaa-aaaak-qb6pq-cai"};else if(e==="ic")return{host:"https://icp-api.io",canisterId:"oknww-riaaa-aaaam-qaf6a-cai"};else return{host:"http://127.0.0.1:4943",canisterId:"2d2zu-vaaaa-aaaak-qb6pq-cai"}}var C8t=new Map,E8t=async(e)=>{let t=e?e?.getPrincipal().toText():"",r=C8t.get(t);if(!r){let n=rT(),i=SFe(n).host;r=eW.HttpAgent.create({host:i,identity:e,shouldFetchRootKey:n==="local",verifyQuerySignatures:process.env.MOPS_VERIFY_QUERY_SIGNATURES!=="false"}),C8t.set(t,r)}return r},ds=async(e)=>{let t=await E8t(e),r=rT(),n=SFe(r).canisterId;return eW.Actor.createActor(b8t,{agent:t,canisterId:n})},tW=async(e,t)=>{let r=await E8t(t);return eW.Actor.createActor(T8t,{agent:r,canisterId:e})};async function dV(e){return(await ds()).getHighestVersion(e)}function MF(e){return e.split("@")[0]||""}function Lf(e,t){return MF(e)+"@"+t}if(!globalThis.fetch)globalThis.fetch=Dz;var yV="1.3",Yd="",jf="";if(Xf.platform=="win32")Yd=L1.join(Xf.env.LOCALAPPDATA||"","mops/config"),jf=L1.join(Xf.env.LOCALAPPDATA||"","mops/cache");else if(Xf.platform=="darwin")Yd=L1.join(Xf.env.HOME||"","Library/Application Support/mops"),jf=L1.join(Xf.env.HOME||"","Library/Caches/mops");else Yd=L1.join(Xf.env.HOME||"",".config/mops"),jf=L1.join(Xf.env.HOME||"",".cache/mops");if(Xf.env.XDG_CONFIG_HOME)Yd=L1.join(Xf.env.XDG_CONFIG_HOME,"mops");if(Xf.env.XDG_CACHE_HOME)jf=L1.join(Xf.env.XDG_CACHE_HOME,"mops");function NFe(){let e="";try{e=new URL("./network.txt",import.meta.url)}catch{e=L1.join("import.meta.dirname","network.txt")}return e}function F8t(e){lg.writeFileSync(NFe(),e)}var L6=async()=>{let e=L1.resolve(Yd,"identity.pem"),t=L1.resolve(Yd,"identity.pem.encrypted");if(lg.existsSync(t)){let r=await k8t.default({type:"invisible",name:"value",message:"Enter password:"});return await FFe(t,r.value)}if(lg.existsSync(e))return FFe(e);return};function zq(e=Xf.cwd()){if(!L1.basename(e))return"";let t=L1.join(e,"mops.toml");if(lg.existsSync(t))return t;return zq(L1.resolve(e,".."))}function wi(){let e=zq();if(!e)return"";return L1.dirname(e)}function Ka(e=!1){if(!zq()){if(console.log(Et.red("Error: ")+`Config file 'mops.toml' not found. Please run ${Et.green("mops init")} first`),e)Xf.exit(1);return!1}return!0}function gV(e,t){let r=Math.round(e/t*10);return`[${":".repeat(r)}${" ".repeat(Math.max(0,10-r))}]`}function Kf(e){let t=new URL(e),r=t.hash?.substring(1).split("@"),n=r[0]||"master",i=r[1]||"",[a,u]=t.pathname.split("/").filter((s)=>!!s);if(a=a||"",u=u||"",u?.endsWith(".git"))u=u.substring(0,u.length-4);return{org:a,gitName:u,branch:n,commitHash:i}}async function v_e(e,t){let r=await Dz(`https://api.github.com/repos/${e}/commits/${t}`),n=await r.json();if(n.message&&t==="master")r=await Dz(`https://api.github.com/repos/${e}/commits/main`),n=await r.json();return n}function Hd(e){if(!e||typeof e!=="string")throw Error(`Invalid dependency value "${e}"`);if(e.startsWith("https://github.com/"))return"github";else if(e.match(/^(\.?\.)?\//))return"local";else return"mops"}function BFe(e,t){let r=Hd(t);if(r==="github")return{name:e,repo:t,version:""};else if(r==="local")return{name:e,repo:"",path:t,version:""};else return{name:e,repo:"",version:t}}function Q0(e=zq()){let t=lg.readFileSync(e).toString(),r=PFe.default.parse(t),n=(a)=>{Object.entries(a).forEach(([u,s])=>{if(!s||typeof s!=="string")throw Error(`Invalid dependency value ${u} = "${s}"`);a[u]=BFe(u,s)})};n(r.dependencies||{}),n(r["dev-dependencies"]||{});let i={...r};return Object.entries(i.requirements||{}).forEach(([a,u])=>{if(a==="moc")i.requirements=i.requirements||{},i.requirements.moc=u}),i}function _g(e,t=zq()){let r=JSON.parse(JSON.stringify(e)),n=r.dependencies||{};Object.entries(e.dependencies||{}).forEach(([u,{repo:s,path:l,version:h}])=>{n[u]=s||l||h});let i=r["dev-dependencies"]||{};Object.entries(e["dev-dependencies"]||{}).forEach(([u,{repo:s,path:l,version:h}])=>{i[u]=s||l||h});let a=PFe.default.stringify(r).trim();if(lg.existsSync(t)&&lg.readFileSync(t).toString().endsWith(`
|
|
982
982
|
`))a+=`
|
|
983
983
|
`;lg.writeFileSync(t,a)}function S8t(e,t){return L1.join(wi(),".mops",Lf(e,t))}function P8t(e,t){let{branch:r,commitHash:n}=Kf(t);return L1.join(wi(),".mops/_github",`${e}#${r.replaceAll("/","___")}`+(n?`@${n}`:""))}function N8t(){let e=Xf.cwd(),t=null;for(let r=0;r<5;r++){let n=L1.resolve(e,"dfx.json");if(lg.existsSync(n)){t=JSON.parse(lg.readFileSync(n).toString());break}e=L1.resolve(e,"..")}return t}async function rW(){let t=await(await ds()).getApiVersion();if(t.split(".")[0]!==yV.split(".")[0])return console.log(Et.red("ERR: ")+`CLI incompatible with backend. CLI v${yV}, Backend v${t}`),console.log("Run "+Et.greenBright("mops self update")+" to upgrade cli."),!1;else if(t.split(".")[1]!==yV.split(".")[1])console.log("-".repeat(50)),console.log(Et.yellow("WARN: ")+`CLI probably incompatible with backend. CLI v${yV}, Backend v${t}`),console.log("Recommended to run "+Et.greenBright("mops self update")+" to upgrade cli."),console.log("-".repeat(50));return!0}function D_e(){return JSON.parse(lg.readFileSync(new URL("./package.json",import.meta.url)).toString()).version}import hWn from"node:process";import agt from"node:process";var uW={};$_(uW,{scrollUp:()=>Nvn,scrollDown:()=>Bvn,link:()=>zvn,image:()=>Vvn,iTerm:()=>Lvn,exitAlternativeScreen:()=>Ivn,eraseUp:()=>Pvn,eraseStartLine:()=>Fvn,eraseScreen:()=>qFe,eraseLines:()=>Evn,eraseLine:()=>J8t,eraseEndLine:()=>kvn,eraseDown:()=>Svn,enterAlternativeScreen:()=>Jvn,cursorUp:()=>q8t,cursorTo:()=>mvn,cursorShow:()=>Cvn,cursorSavePosition:()=>vvn,cursorRestorePosition:()=>Dvn,cursorPrevLine:()=>bvn,cursorNextLine:()=>Avn,cursorMove:()=>dvn,cursorLeft:()=>$8t,cursorHide:()=>Tvn,cursorGetPosition:()=>wvn,cursorForward:()=>gvn,cursorDown:()=>yvn,cursorBackward:()=>xvn,clearTerminal:()=>$vn,clearScreen:()=>qvn,beep:()=>Mvn});import $Fe from"node:process";var w_e=globalThis.window?.document!==void 0,k60=globalThis.process?.versions?.node!==void 0,F60=globalThis.process?.versions?.bun!==void 0,S60=globalThis.Deno?.version?.deno!==void 0,P60=globalThis.process?.versions?.electron!==void 0,N60=globalThis.navigator?.userAgent?.includes("jsdom")===!0,B60=typeof WorkerGlobalScope!=="undefined"&&globalThis instanceof WorkerGlobalScope,q60=typeof DedicatedWorkerGlobalScope!=="undefined"&&globalThis instanceof DedicatedWorkerGlobalScope,$60=typeof SharedWorkerGlobalScope!=="undefined"&&globalThis instanceof SharedWorkerGlobalScope,J60=typeof ServiceWorkerGlobalScope!=="undefined"&&globalThis instanceof ServiceWorkerGlobalScope,nW=globalThis.navigator?.userAgentData?.platform,I60=nW==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",M60=nW==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",z60=nW==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",V60=nW==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),L60=nW==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var ts="\x1B[",aW="\x1B]",xV="\x07",iW=";",B8t=!w_e&&$Fe.env.TERM_PROGRAM==="Apple_Terminal",pvn=!w_e&&$Fe.platform==="win32",fvn=w_e?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:$Fe.cwd,mvn=(e,t)=>{if(typeof e!=="number")throw new TypeError("The `x` argument is required");if(typeof t!=="number")return ts+(e+1)+"G";return ts+(t+1)+iW+(e+1)+"H"},dvn=(e,t)=>{if(typeof e!=="number")throw new TypeError("The `x` argument is required");let r="";if(e<0)r+=ts+-e+"D";else if(e>0)r+=ts+e+"C";if(t<0)r+=ts+-t+"A";else if(t>0)r+=ts+t+"B";return r},q8t=(e=1)=>ts+e+"A",yvn=(e=1)=>ts+e+"B",gvn=(e=1)=>ts+e+"C",xvn=(e=1)=>ts+e+"D",$8t=ts+"G",vvn=B8t?"\x1B7":ts+"s",Dvn=B8t?"\x1B8":ts+"u",wvn=ts+"6n",Avn=ts+"E",bvn=ts+"F",Tvn=ts+"?25l",Cvn=ts+"?25h",Evn=(e)=>{let t="";for(let r=0;r<e;r++)t+=J8t+(r<e-1?q8t():"");if(e)t+=$8t;return t},kvn=ts+"K",Fvn=ts+"1K",J8t=ts+"2K",Svn=ts+"J",Pvn=ts+"1J",qFe=ts+"2J",Nvn=ts+"S",Bvn=ts+"T",qvn="\x1Bc",$vn=pvn?`${qFe}${ts}0f`:`${qFe}${ts}3J${ts}H`,Jvn=ts+"?1049h",Ivn=ts+"?1049l",Mvn=xV,zvn=(e,t)=>[aW,"8",iW,iW,t,xV,e,aW,"8",iW,iW,xV].join(""),Vvn=(e,t={})=>{let r=`${aW}1337;File=inline=1`;if(t.width)r+=`;width=${t.width}`;if(t.height)r+=`;height=${t.height}`;if(t.preserveAspectRatio===!1)r+=";preserveAspectRatio=0";return r+":"+Buffer.from(e).toString("base64")+xV},Lvn={setCwd:(e=fvn())=>`${aW}50;CurrentDir=${e}${xV}`,annotation(e,t={}){let r=`${aW}1337;`,n=t.x!==void 0,i=t.y!==void 0;if((n||i)&&!(n&&i&&t.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");if(e=e.replaceAll("|",""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0)r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|");else r+=e;return r+xV}};import K8t from"node:process";import C_e from"node:process";var Xvn=(e,t,r,n)=>{if(r==="length"||r==="prototype")return;if(r==="arguments"||r==="caller")return;let i=Object.getOwnPropertyDescriptor(e,r),a=Object.getOwnPropertyDescriptor(t,r);if(!jvn(i,a)&&n)return;Object.defineProperty(e,r,a)},jvn=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Kvn=(e,t)=>{let r=Object.getPrototypeOf(t);if(r===Object.getPrototypeOf(e))return;Object.setPrototypeOf(e,r)},Uvn=(e,t)=>`/* Wrapped ${e}*/
|
|
984
984
|
${t}`,Zvn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Ovn=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Qvn=(e,t,r)=>{let n=r===""?"":`with ${r.trim()}() `,i=Uvn.bind(null,n,t.toString());Object.defineProperty(i,"name",Ovn);let{writable:a,enumerable:u,configurable:s}=Zvn;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:u,configurable:s})};function JFe(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let i of Reflect.ownKeys(t))Xvn(e,t,i,r);return Kvn(e,t),Qvn(e,t,n),e}var A_e=new WeakMap,I8t=(e,t={})=>{if(typeof e!=="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",a=function(...u){if(A_e.set(a,++n),n===1)r=e.apply(this,u),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return JFe(a,e),A_e.set(a,n),a};I8t.callCount=(e)=>{if(!A_e.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return A_e.get(e)};var M8t=I8t;var Vq=[];Vq.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32")Vq.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")Vq.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var b_e=(e)=>!!e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function",IFe=Symbol.for("signal-exit emitter"),MFe=globalThis,Wvn=Object.defineProperty.bind(Object);class z8t{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(MFe[IFe])return MFe[IFe];Wvn(MFe,IFe,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let r=this.listeners[e],n=r.indexOf(t);if(n===-1)return;if(n===0&&r.length===1)r.length=0;else r.splice(n,1)}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let n=!1;for(let i of this.listeners[e])n=i(t,r)===!0||n;if(e==="exit")n=this.emit("afterExit",t,r)||n;return n}}class VFe{}var Yvn=(e)=>{return{onExit(t,r){return e.onExit(t,r)},load(){return e.load()},unload(){return e.unload()}}};class V8t extends VFe{onExit(){return()=>{}}load(){}unload(){}}class L8t extends VFe{#e=zFe.platform==="win32"?"SIGINT":"SIGHUP";#t=new z8t;#r;#n;#a;#u={};#o=!1;constructor(e){super();this.#r=e,this.#u={};for(let t of Vq)this.#u[t]=()=>{let r=this.#r.listeners(t),{count:n}=this.#t,i=e;if(typeof i.__signal_exit_emitter__==="object"&&typeof i.__signal_exit_emitter__.count==="number")n+=i.__signal_exit_emitter__.count;if(r.length===n){this.unload();let a=this.#t.emit("exit",null,t),u=t==="SIGHUP"?this.#e:t;if(!a)e.kill(e.pid,u)}};this.#a=e.reallyExit,this.#n=e.emit}onExit(e,t){if(!b_e(this.#r))return()=>{};if(this.#o===!1)this.load();let r=t?.alwaysLast?"afterExit":"exit";return this.#t.on(r,e),()=>{if(this.#t.removeListener(r,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0)this.unload()}}load(){if(this.#o)return;this.#o=!0,this.#t.count+=1;for(let e of Vq)try{let t=this.#u[e];if(t)this.#r.on(e,t)}catch(t){}this.#r.emit=(e,...t)=>{return this.#s(e,...t)},this.#r.reallyExit=(e)=>{return this.#h(e)}}unload(){if(!this.#o)return;this.#o=!1,Vq.forEach((e)=>{let t=this.#u[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch(r){}}),this.#r.emit=this.#n,this.#r.reallyExit=this.#a,this.#t.count-=1}#h(e){if(!b_e(this.#r))return 0;return this.#r.exitCode=e||0,this.#t.emit("exit",this.#r.exitCode,null),this.#a.call(this.#r,this.#r.exitCode)}#s(e,...t){let r=this.#n;if(e==="exit"&&b_e(this.#r)){if(typeof t[0]==="number")this.#r.exitCode=t[0];let n=r.call(this.#r,e,...t);return this.#t.emit("exit",this.#r.exitCode,null),n}else return r.call(this.#r,e,...t)}}var zFe=globalThis.process,{onExit:T_e,load:G60,unload:R60}=Yvn(b_e(zFe)?new L8t(zFe):new V8t);var X8t=C_e.stderr.isTTY?C_e.stderr:C_e.stdout.isTTY?C_e.stdout:void 0,Hvn=X8t?M8t(()=>{T_e(()=>{X8t.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},j8t=Hvn;var E_e=!1,vV={};vV.show=(e=K8t.stderr)=>{if(!e.isTTY)return;E_e=!1,e.write("\x1B[?25h")};vV.hide=(e=K8t.stderr)=>{if(!e.isTTY)return;j8t(),E_e=!0,e.write("\x1B[?25l")};vV.toggle=(e,t)=>{if(e!==void 0)E_e=e;if(E_e)vV.show(t);else vV.hide(t)};var LFe=vV;function XFe({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var Gvn=XFe();function jFe(e){if(typeof e!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Gvn,"")}function U8t(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Z8t(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function O8t(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function Rvn(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function k_e(e,{ambiguousAsWide:t=!1}={}){if(Rvn(e),Z8t(e)||O8t(e)||t&&U8t(e))return 2;return 1}var Y8t=N0(W8t(),1),e9n=new Intl.Segmenter,t9n=/^\p{Default_Ignorable_Code_Point}$/u;function nT(e,t={}){if(typeof e!=="string"||e.length===0)return 0;let{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(!n)e=jFe(e);if(e.length===0)return 0;let i=0,a={ambiguousAsWide:!r};for(let{segment:u}of e9n.segment(e)){let s=u.codePointAt(0);if(s<=31||s>=127&&s<=159)continue;if(s>=8203&&s<=8207||s===65279)continue;if(s>=768&&s<=879||s>=6832&&s<=6911||s>=7616&&s<=7679||s>=8400&&s<=8447||s>=65056&&s<=65071)continue;if(s>=55296&&s<=57343)continue;if(s>=65024&&s<=65039)continue;if(t9n.test(u))continue;if(Y8t.default().test(u)){i+=2;continue}i+=k_e(s,a)}return i}function KFe({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var r9n=KFe();function oW(e){if(typeof e!=="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(r9n,"")}var H8t=(e=0)=>(t)=>`\x1B[${t+e}m`,G8t=(e=0)=>(t)=>`\x1B[${38+e};5;${t}m`,R8t=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,Ql={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},w40=Object.keys(Ql.modifier),n9n=Object.keys(Ql.color),i9n=Object.keys(Ql.bgColor),A40=[...n9n,...i9n];function a9n(){let e=new Map;for(let[t,r]of Object.entries(Ql)){for(let[n,i]of Object.entries(r))Ql[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=Ql[n],e.set(i[0],i[1]);Object.defineProperty(Ql,t,{value:r,enumerable:!1})}return Object.defineProperty(Ql,"codes",{value:e,enumerable:!1}),Ql.color.close="\x1B[39m",Ql.bgColor.close="\x1B[49m",Ql.color.ansi=H8t(),Ql.color.ansi256=G8t(),Ql.color.ansi16m=R8t(),Ql.bgColor.ansi=H8t(10),Ql.bgColor.ansi256=G8t(10),Ql.bgColor.ansi16m=R8t(10),Object.defineProperties(Ql,{rgbToAnsi256:{value:(t,r,n)=>{if(t===r&&r===n){if(t<8)return 16;if(t>248)return 231;return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value:(t)=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;if(n.length===3)n=[...n].map((a)=>a+a).join("");let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:(t)=>Ql.rgbToAnsi256(...Ql.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:(t)=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let s=t%36;r=Math.floor(t/36)/5,n=Math.floor(s/6)/5,i=s%6/5}let a=Math.max(r,n,i)*2;if(a===0)return 30;let u=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));if(a===2)u+=60;return u},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>Ql.ansi256ToAnsi(Ql.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:(t)=>Ql.ansi256ToAnsi(Ql.hexToAnsi256(t)),enumerable:!1}}),Ql}var u9n=a9n(),cg=u9n;var S_e=new Set(["\x1B",""]),o9n=39,ZFe="\x07",rgt="[",s9n="]",ngt="m",F_e=`${s9n}8;;`,egt=(e)=>`${S_e.values().next().value}${rgt}${e}${ngt}`,tgt=(e)=>`${S_e.values().next().value}${F_e}${e}${ZFe}`,l9n=(e)=>e.split(" ").map((t)=>nT(t)),UFe=(e,t,r)=>{let n=[...t],i=!1,a=!1,u=nT(oW(e.at(-1)));for(let[s,l]of n.entries()){let h=nT(l);if(u+h<=r)e[e.length-1]+=l;else e.push(l),u=0;if(S_e.has(l))i=!0,a=n.slice(s+1,s+1+F_e.length).join("")===F_e;if(i){if(a){if(l===ZFe)i=!1,a=!1}else if(l===ngt)i=!1;continue}if(u+=h,u===r&&s<n.length-1)e.push(""),u=0}if(!u&&e.at(-1).length>0&&e.length>1)e[e.length-2]+=e.pop()},_9n=(e)=>{let t=e.split(" "),r=t.length;while(r>0){if(nT(t[r-1])>0)break;r--}if(r===t.length)return e;return t.slice(0,r).join(" ")+t.slice(r).join("")},c9n=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",i,a,u=l9n(e),s=[""];for(let[p,f]of e.split(" ").entries()){if(r.trim!==!1)s[s.length-1]=s.at(-1).trimStart();let m=nT(s.at(-1));if(p!==0){if(m>=t&&(r.wordWrap===!1||r.trim===!1))s.push(""),m=0;if(m>0||r.trim===!1)s[s.length-1]+=" ",m++}if(r.hard&&u[p]>t){let d=t-m,x=1+Math.floor((u[p]-d-1)/t);if(Math.floor((u[p]-1)/t)<x)s.push("");UFe(s,f,t);continue}if(m+u[p]>t&&m>0&&u[p]>0){if(r.wordWrap===!1&&m<t){UFe(s,f,t);continue}s.push("")}if(m+u[p]>t&&r.wordWrap===!1){UFe(s,f,t);continue}s[s.length-1]+=f}if(r.trim!==!1)s=s.map((p)=>_9n(p));let l=s.join(`
|
|
@@ -1071,7 +1071,7 @@ ${i}`.trim()}this.onProgress()})}done(){return this.failed===0}}import cLe from"
|
|
|
1071
1071
|
`).slice(0,-1).join(`
|
|
1072
1072
|
`).matchAll(/\[Canister ([a-z0-9-]+)\] (.*)/g)];for(let a of i){let[,u,s]=a,l=this.getCanisterStream(u||"");if(l)l.write(s)}if(i.length)t=t.split(`
|
|
1073
1073
|
`).slice(-1).join(`
|
|
1074
|
-
`)}})}async stop(e=!1){if(this.type==="dfx"||this.type==="dfx-pocket-ic"){if(this.dfxProcess)this.dfxProcess.kill()
|
|
1074
|
+
`)}})}async stop(e=!1){if(this.type==="dfx"||this.type==="dfx-pocket-ic"){if(this.dfxProcess){if(!this.dfxProcess.kill())this.dfxProcess.kill("SIGKILL");let r=0;while(this.dfxProcess.exitCode===null)if(r++,await new Promise((n)=>{setTimeout(n,500)}),r>=20)break}}else if(this.pocketIc&&this.pocketIcServer){if(!e)await this.pocketIc.tearDown();await this.pocketIcServer.stop()}}async deploy(e,t,r,n=cLe.cwd(),i){if(this.type==="dfx"||this.type==="dfx-pocket-ic"){let a=hLe.join(this.dir,"dfx.json"),u;if(Q$.existsSync(a))u=JSON.parse(Q$.readFileSync(a).toString());let s=this.dfxJson(e,e+".wasm");if(u.canisters)s.canisters=Object.assign(u.canisters,s.canisters);if(Q$.mkdirSync(this.dir,{recursive:!0}),Q$.writeFileSync(a,JSON.stringify(s,null,2)),await ZVe("dfx",["deploy",e,"--mode","reinstall","--yes","--identity","anonymous"],{cwd:this.dir,signal:i,stdio:this.verbose?"pipe":["pipe","ignore","pipe"]}).catch((_)=>{if(_.code==="ABORT_ERR")return{stderr:""};throw _}),i?.aborted)return;if(await ZVe("dfx",["ledger","fabricate-cycles","--canister",e,"--t","100"],{cwd:this.dir,signal:i,stdio:this.verbose?"pipe":["pipe","ignore","pipe"]}).catch((_)=>{if(_.code==="ABORT_ERR")return{stderr:""};throw _}),i?.aborted)return;let l=Hyi(`dfx canister id ${e}`,{cwd:this.dir}).toString().trim(),h=u7e.Actor.createActor(r,{agent:await u7e.HttpAgent.create({host:"http://127.0.0.1:4945",shouldFetchRootKey:!0}),canisterId:l});this.canisters[e]={cwd:n,canisterId:l,actor:h,stream:new aHt}}else if(this.pocketIc){let{canisterId:a,actor:u}=await this.pocketIc.setupCanister({idlFactory:r,wasm:t});if(i?.aborted)return;if(await this.pocketIc.addCycles(a,1000000000000),i?.aborted)return;this.canisters[e]={cwd:n,canisterId:a.toText(),actor:u,stream:new aHt}}if(!this.canisters[e])throw new Error(`Canister ${e} not found`);return this.canisters[e]}getActor(e){if(!this.canisters[e])throw new Error(`Canister ${e} not found`);return this.canisters[e]?.actor}getCanister(e){return this.canisters[e]}getCanisterId(e){return this.canisters[e]?.canisterId||""}getCanisterStream(e){for(let t of Object.values(this.canisters))if(t.canisterId===e)return t.stream;return null}dfxJson(e,t="canister.wasm",r="canister.did"){let n={};if(e)n[e]={type:"custom",wasm:t,candid:r};return{version:1,canisters:n,dfx:eC(),defaults:{build:{packtool:"mops sources"}},networks:{local:{type:"ephemeral",bind:"127.0.0.1:4945"}}}}}import{PassThrough as e6i}from"node:stream";var cHt=["**/node_modules/**","**/.mops/**","**/.vessel/**","**/.git/**"],uHt={nocase:!0,ignore:cHt},rC=new pLe,OG;async function t6i(e,t){if(!OG)OG=new Promise((r)=>{e.start({type:t,silent:!0}).then(r)});return OG}async function hHt(e="",t={}){let r=Q0(),n=wi(),i=t.replica??(r.toolchain?.["pocket-ic"]?"pocket-ic":"dfx");if(i==="pocket-ic"&&!r.toolchain?.["pocket-ic"]){let a=eC();if(!a||new _Ht.SemVer(a).compare("0.24.1")<0)console.log(Et.red("Please update dfx to the version >=0.24.1 or specify pocket-ic version in mops.toml")),XS.exit(1);else i="dfx-pocket-ic"}if(rC.type=i,rC.verbose=!!t.verbose,t.watch){rC.ttl=900;let a=!1;XS.on("SIGINT",()=>{if(a)console.log("Force exit"),XS.exit(0);if(a=!0,OG)console.log("Stopping replica..."),rC.stop(!0).then(()=>{XS.exit(0)});else XS.exit(0)});let u=Promise.resolve(!0),s=new AbortController,l=lHt.default(async()=>{s.abort(),await u,console.clear(),XS.stdout.write("\x1Bc"),s=new AbortController,u=oHt(t.reporter,e,t.mode,i,!0,s.signal),await u,console.log("-".repeat(50)),console.log("Waiting for file changes..."),console.log(Et.gray(`Press ${Et.gray("Ctrl+C")} to exit.`))},200);sHt.default.watch([zg.join(n,"**/*.mo"),zg.join(n,"mops.toml")],{ignored:cHt,ignoreInitial:!0}).on("all",()=>{l()}),l()}else if(!await oHt(t.reporter,e,t.mode,i))XS.exit(1)}var ZG="",l7e="";async function oHt(e,t="",r="interpreter",n,i=!1,a){return await QG(e,t,r,n,i,a)}async function QG(e,t="",r="interpreter",n,i=!1,a){let u=wi(),s=[],l=e7("**/test?(s)/lib.mo",uHt);if(l[0])s=[l[0]];else{let m="**/test?(s)/**/*.test.mo";if(t)m=`**/test?(s)/**/*${t}*.mo`;s=e7(zg.join(u,m),uHt)}if(!s.length){if(t)return console.log(`No test files found for filter '${t}'`),!1;return console.log("No test files found"),console.log("Put your tests in 'test' directory in *.test.mo files"),!1}let h;if(!e||typeof e==="string"){if(!e)e=s.length>1?"files":"verbose";if(e=="compact")h=new KVe;else if(e=="files")h=new jVe;else if(e=="silent")h=new zS;else h=new XVe}else h=e;h.addFiles(s);let _=Q0(),p=await Nw();if(!ZG)ZG=await Tc.bin("moc",{fallback:!0});let f=zg.join(wi(),".mops/.test/");if(rC.dir=f,tC.rmSync(f,{recursive:!0,force:!0}),tC.mkdirSync(f,{recursive:!0}),await Yc(Ryi.cpus().length,s,async(m)=>{if(a?.aborted)return;let d=new LVe("store",Nl(m)),x=tC.readFileSync(m,"utf8").split(`
|
|
1075
1075
|
`),T=r;if(x.includes("// @testmode wasi"))T="wasi";else if(x.includes("actor {")||x.includes("// @testmode replica")||x.find((F)=>F.startsWith("actor class")))T="replica";if(T==="wasi"&&!l7e)if(_.toolchain?.wasmtime)l7e=await Tc.bin("wasmtime");else l7e="wasmtime",console.log(Et.yellow("Warning:"),'Wasmtime is not specified in config. Using global binary "wasmtime". This will be removed in the future.'),console.log(`Run ${Et.green("mops toolchain use wasmtime")} or add ${Et.green('wasmtime = "<version>"')} in mops.toml to avoid breaking changes with future versions of mops.`);let A=new Promise((F)=>{let b=["--hide-warnings","--error-detail=2",...p.join(" ").split(" "),m].filter((N)=>N);if(T==="interpreter"){let N=s7e(ZG,["-r","-ref-system-api",...b],{signal:a});N.addListener("error",(E)=>{if(E?.code==="ABORT_ERR")return;throw E}),_7e(N,d).then(F)}else if(T==="wasi"){let N=`${zg.join(f,zg.parse(m).name)}.wasm`,E=s7e(ZG,[`-o=${N}`,"-wasi-system-api",...b],{signal:a});E.addListener("error",(P)=>{if(P?.code==="ABORT_ERR")return;throw P}),_7e(E,d).then(async()=>{if(d.failed>0)return;let P=[];if(_.toolchain?.wasmtime&&_.toolchain?.wasmtime>="14.0.0")P=["-S","preview2=n","-C","cache=n","-W","bulk-memory","-W","multi-memory","-W","max-wasm-stack=4000000","-W","nan-canonicalization=y",N];else console.error(Et.red("Minimum wasmtime version is 14.0.0. Please update wasmtime to the latest version")),XS.exit(1);let q=s7e(l7e,P,{signal:a});q.addListener("error",($)=>{if($?.code==="ABORT_ERR")return;throw $}),await _7e(q,d)}).finally(()=>{tC.rmSync(N,{force:!0})}).then(F)}else if(T==="replica"){let N=`${zg.join(f,zg.parse(m).name)}.wasm`,E=s7e(ZG,[`-o=${N}`,...b],{signal:a});E.addListener("error",(P)=>{if(P?.code==="ABORT_ERR")return;throw P}),_7e(E,d).then(async()=>{if(d.failed>0)return;if(await t6i(rC,n),a?.aborted)return;let P=zg.parse(m).name,q=({IDL:O})=>{return O.Service({runTests:O.Func([],[],[])})},$=await rC.deploy(P,N,q,void 0,a);if(a?.aborted||!$)return;pHt($.stream,d);let M=await rC.getActor(P);try{if(globalThis.mopsReplicaTestRunning)await new Promise((O)=>{let K=setInterval(()=>{if(!globalThis.mopsReplicaTestRunning)O(),clearInterval(K)},Math.random()*1000|0)});if(a?.aborted)return;globalThis.mopsReplicaTestRunning=!0,await M.runTests(),globalThis.mopsReplicaTestRunning=!1,d.pass()}catch(O){let K=new e6i;fHt(K,d,zg.dirname(m)),K.write(O.message)}}).finally(async()=>{globalThis.mopsReplicaTestRunning=!1,tC.rmSync(N,{force:!0})}).then(F)}});if(a?.aborted)return;h.addRun(m,d,A,T),await A}),OG&&!i)await rC.stop(),tC.rmSync(f,{recursive:!0,force:!0});if(a?.aborted)return!1;return h.done()}function pHt(e,t){e.on("data",(r)=>{for(let n of r.toString().split(`
|
|
1076
1076
|
`))if(n=n.trim(),n)t.parseLine(n)})}function fHt(e,t,r=""){e.on("data",(n)=>{let i=n.toString().trim(),a="";if(i=i.replace(/([\w+._/-]+):(\d+).(\d+)(-\d+.\d+)/g,(u,s,l,h)=>{let _=`${Nl(s)}:${l}:${h}`,p=zg.join(r,s);if(!tC.existsSync(p))return _;let m=tC.readFileSync(p).toString().split(`
|
|
1077
1077
|
`)||[];a+=Et.dim(`
|