UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

92 lines 583 kB
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.13.4`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7f68567d-2035-421c-a65f-49216d55faf6`,e._sentryDebugIdIdentifier=`sentry-dbid-7f68567d-2035-421c-a65f-49216d55faf6`)})()}catch{}import{r as e}from"./chunk-DxpFCn6T.js";import{$ as t,C as n,E as r,N as i,Sn as a,T as o,Wt as s,_n as c,it as l,w as u}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{$i as d}from"./src-wni2AGA3.js";import{t as f}from"./_plugin-vue_export-helper-Dm3nT7Ps.js";var p=Object.create,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,_=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,ee=e=>{throw TypeError(e)},te=(e,t)=>()=>(e&&(t=e(e=0)),t),y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ne=(e,t)=>{for(var n in t)m(e,n,{get:t[n],enumerable:!0})},re=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of g(t))!v.call(e,i)&&i!==n&&m(e,i,{get:()=>t[i],enumerable:!(r=h(t,i))||r.enumerable});return e},b=(e,t,n)=>(n=e==null?{}:p(_(e)),re(t||!e||!e.__esModule?m(n,`default`,{value:e,enumerable:!0}):n,e)),x=e=>re(m({},`__esModule`,{value:!0}),e),S=(e,t,n)=>t.has(e)||ee(`Cannot `+n),ie=(e,t,n)=>t.has(e)?ee(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),ae=(e,t,n)=>(S(e,t,`access private method`),n),oe=y((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),se={};ne(se,{default:()=>le,shouldHighlight:()=>ce});var ce,le,C=te(()=>{ce=()=>!1,le=String}),ue=y((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};t.exports=r(),t.exports.createColors=r}),de=y(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.codeFrameColumns=p,e.default=m;var t=(C(),x(se)),n=i(ue(),!0);function r(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function i(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!==`default`&&{}.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(i,o,s):i[o]=e[o]}return i.default=e,n&&n.set(e,i),i}var a=n.default,o=(e,t)=>n=>e(t(n)),s;function c(e){return e?(s??=(0,n.createColors)(!0),s):a}var l=!1;function u(e){return{gutter:e.gray,marker:o(e.red,e.bold),message:o(e.red,e.bold)}}var d=/\r\n|[\n\r\u2028\u2029]/;function f(e,t,n){let r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:a=2,linesBelow:o=3}=n||{},s=r.line,c=r.column,l=i.line,u=i.column,d=Math.max(s-(a+1),0),f=Math.min(t.length,l+o);s===-1&&(d=0),l===-1&&(f=t.length);let p=l-s,m={};if(p)for(let e=0;e<=p;e++){let n=e+s;c?e===0?m[n]=[c,t[n-1].length-c+1]:e===p?m[n]=[0,u]:m[n]=[0,t[n-e].length]:m[n]=!0}else c===u?c?m[s]=[c,0]:m[s]=!0:m[s]=[c,u-c];return{start:d,end:f,markerLines:m}}function p(e,n,r={}){let i=(r.highlightCode||r.forceColor)&&(0,t.shouldHighlight)(r),a=c(r.forceColor),o=u(a),s=(e,t)=>i?e(t):t,{start:l,end:p,markerLines:m}=f(n,e.split(d),r),h=n.start&&typeof n.start.column==`number`,g=String(p).length,_=(i?(0,t.default)(e,r):e).split(d,p).slice(l,p).map((e,t)=>{let n=l+1+t,i=` ${` ${n}`.slice(-g)} |`,a=m[n],c=!m[n+1];if(a){let t=``;if(Array.isArray(a)){let n=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g,` `),l=a[1]||1;t=[`
 `,s(o.gutter,i.replace(/\d/g,` `)),` `,n,s(o.marker,`^`).repeat(l)].join(``),c&&r.message&&(t+=` `+s(o.message,r.message))}return[s(o.marker,`>`),s(o.gutter,i),e.length>0?` ${e}`:``,t].join(``)}else return` ${s(o.gutter,i)}${e.length>0?` ${e}`:``}`}).join(`
`);return r.message&&!h&&(_=`${` `.repeat(g+1)}${r.message}
${_}`),i?a.reset(_):_}function m(e,t,n,r={}){if(!l){l=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";{let t=Error(e);t.name=`DeprecationWarning`,console.warn(Error(e))}}return n=Math.max(n,0),p(e,{start:{column:n,line:t}},r)}});ne({},{__debug:()=>Wa,check:()=>Ha,doc:()=>oa,format:()=>Va,formatWithCursor:()=>Ba,getSupportInfo:()=>Ua,util:()=>da,version:()=>ua});var fe=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)};function pe(){}pe.prototype={diff:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.callback;typeof n==`function`&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout(function(){r(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var o=t.length,s=e.length,c=1,l=o+s;n.maxEditLength&&(l=Math.min(l,n.maxEditLength));var u=n.timeout??1/0,d=Date.now()+u,f=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&p+1>=o)return a([{value:this.join(t),count:t.length}]);var m=-1/0,h=1/0;function g(){for(var n=Math.max(m,-c);n<=Math.min(h,c);n+=2){var r=void 0,l=f[n-1],u=f[n+1];l&&(f[n-1]=void 0);var d=!1;if(u){var g=u.oldPos-n;d=u&&0<=g&&g<o}var _=l&&l.oldPos+1<s;if(!d&&!_){f[n]=void 0;continue}if(r=!_||d&&l.oldPos+1<u.oldPos?i.addToPath(u,!0,void 0,0):i.addToPath(l,void 0,!0,1),p=i.extractCommon(r,t,e,n),r.oldPos+1>=s&&p+1>=o)return a(me(i,r.lastComponent,t,e,i.useLongestToken));f[n]=r,r.oldPos+1>=s&&(h=Math.min(h,n-1)),p+1>=o&&(m=Math.max(m,n+1))}c++}if(r)(function e(){setTimeout(function(){if(c>l||Date.now()>d)return r();g()||e()},0)})();else for(;c<=l&&Date.now()<=d;){var _=g();if(_)return _}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,a=n.length,o=e.oldPos,s=o-r,c=0;s+1<i&&o+1<a&&this.equals(t[s+1],n[o+1]);)s++,o++,c++;return c&&(e.lastComponent={count:c,previousComponent:e.lastComponent}),e.oldPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(``)},join:function(e){return e.join(``)}};function me(e,t,n,r,i){for(var a=[],o;t;)a.push(t),o=t.previousComponent,delete t.previousComponent,t=o;a.reverse();for(var s=0,c=a.length,l=0,u=0;s<c;s++){var d=a[s];if(d.removed){if(d.value=e.join(r.slice(u,u+d.count)),u+=d.count,s&&a[s-1].added){var f=a[s-1];a[s-1]=a[s],a[s]=f}}else{if(!d.added&&i){var p=n.slice(l,l+d.count);p=p.map(function(e,t){var n=r[u+t];return n.length>e.length?n:e}),d.value=e.join(p)}else d.value=e.join(n.slice(l,l+d.count));l+=d.count,d.added||(u+=d.count)}}var m=a[c-1];return c>1&&typeof m.value==`string`&&(m.added||m.removed)&&e.equals(``,m.value)&&(a[c-2].value+=m.value,a.pop()),a}new pe;var he=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,ge=/\S/,_e=new pe;_e.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!ge.test(e)&&!ge.test(t)},_e.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&he.test(t[n])&&he.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var w=new pe;w.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
`));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var T=new pe;T.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var ve=new pe;ve.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function E(e){"@babel/helpers - typeof";return E=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},E(e)}var ye=Object.prototype.toString,be=new pe;be.useLongestToken=!0,be.tokenize=w.tokenize,be.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=r===void 0?function(e,t){return typeof t>`u`?n:t}:r;return typeof e==`string`?e:JSON.stringify(xe(e,null,null,i),i,`  `)},be.equals=function(e,t){return pe.prototype.equals.call(be,e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`))};function xe(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];var o;if(ye.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=xe(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),E(e)===`object`&&e!==null){t.push(e),o={},n.push(o);var s=[],c;for(c in e)e.hasOwnProperty(c)&&s.push(c);for(s.sort(),a=0;a<s.length;a+=1)c=s[a],o[c]=xe(e[c],t,n,r,c);t.pop(),n.pop()}else o=e;return o}var Se=new pe;Se.tokenize=function(e){return e.slice()},Se.join=Se.removeEmpty=function(e){return e};function Ce(e,t,n){return Se.diff(e,t,n)}function we(e){let t=e.indexOf(`\r`);return t>=0?e.charAt(t+1)===`
`?`crlf`:`cr`:`lf`}function Te(e){switch(e){case`cr`:return`\r`;case`crlf`:return`\r
`;default:return`
`}}function Ee(e,t){let n;switch(t){case`
`:n=/\n/gu;break;case`\r`:n=/\r/gu;break;case`\r
`:n=/\r\n/gu;break;default:throw Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let r=e.match(n);return r?r.length:0}function De(e){return fe(!1,e,/\r\n?/gu,`
`)}var Oe=`string`,ke=`array`,Ae=`cursor`,je=`indent`,Me=`align`,Ne=`trim`,D=`group`,Pe=`fill`,Fe=`if-break`,O=`indent-if-break`,Ie=`line-suffix`,Le=`line-suffix-boundary`,k=`line`,Re=`label`,ze=`break-parent`,Be=new Set([Ae,je,Me,Ne,D,Pe,Fe,O,Ie,Le,k,Re,ze]);function Ve(e){if(typeof e==`string`)return Oe;if(Array.isArray(e))return ke;if(!e)return;let{type:t}=e;if(Be.has(t))return t}var He=Ve,Ue=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function We(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}', 
Expected it to be 'string' or 'object'.`;if(He(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Ue([...Be].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${r}.`}var Ge=class extends Error{name=`InvalidDocError`;constructor(e){super(We(e)),this.doc=e}},Ke={};function qe(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===Ke){n(i.pop());continue}n&&i.push(e,Ke);let a=He(e);if(!a)throw new Ge(e);if(t?.(e)!==!1)switch(a){case ke:case Pe:{let t=a===ke?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case Fe:i.push(e.flatContents,e.breakContents);break;case D:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case Me:case je:case O:case Re:case Ie:i.push(e.contents);break;case Oe:case Ae:case Ne:case Le:case k:case ze:break;default:throw new Ge(e)}}}var Je=qe,Ye=()=>{},Xe=Ye,Ze=Ye;function Qe(e){return Xe(e),{type:je,contents:e}}function $e(e,t){return Xe(t),{type:Me,contents:t,n:e}}function et(e,t={}){return Xe(e),Ze(t.expandedStates,!0),{type:D,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function tt(e){return $e(-1/0,e)}function nt(e){return $e({type:`root`},e)}function rt(e){return $e(-1,e)}function it(e,t){return et(e[0],{...t,expandedStates:e})}function at(e){return Ze(e),{type:Pe,parts:e}}function ot(e,t=``,n={}){return Xe(e),t!==``&&Xe(t),{type:Fe,breakContents:e,flatContents:t,groupId:n.groupId}}function st(e,t){return Xe(e),{type:O,contents:e,groupId:t.groupId,negate:t.negate}}function ct(e){return Xe(e),{type:Ie,contents:e}}var lt={type:Le},ut={type:ze},dt={type:Ne},ft={type:k,hard:!0},pt={type:k,hard:!0,literal:!0},mt={type:k},ht={type:k,soft:!0},gt=[ft,ut],_t=[pt,ut],vt={type:Ae};function yt(e,t){Xe(e),Ze(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function bt(e,t,n){Xe(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=Qe(r);r=$e(t%n,r),r=$e(-1/0,r)}return r}function xt(e,t){return Xe(t),e?{type:Re,label:e,contents:t}:t}function St(e){if(!e)return``;if(Array.isArray(e)){let t=[];for(let n of e)if(Array.isArray(n))t.push(...St(n));else{let e=St(n);e!==``&&t.push(e)}return t}return e.type===Fe?{...e,breakContents:St(e.breakContents),flatContents:St(e.flatContents)}:e.type===D?{...e,contents:St(e.contents),expandedStates:e.expandedStates?.map(St)}:e.type===Pe?{type:`fill`,parts:e.parts.map(St)}:e.contents?{...e,contents:St(e.contents)}:e}function Ct(e){let t=Object.create(null),n=new Set;return r(St(e));function r(e,t,n){if(typeof e==`string`)return JSON.stringify(e);if(Array.isArray(e)){let t=e.map(r).filter(Boolean);return t.length===1?t[0]:`[${t.join(`, `)}]`}if(e.type===k){let r=n?.[t+1]?.type===ze;return e.literal?r?`literalline`:`literallineWithoutBreakParent`:e.hard?r?`hardline`:`hardlineWithoutBreakParent`:e.soft?`softline`:`line`}if(e.type===ze)return n?.[t-1]?.type===k&&n[t-1].hard?void 0:`breakParent`;if(e.type===Ne)return`trim`;if(e.type===je)return`indent(`+r(e.contents)+`)`;if(e.type===Me)return e.n===-1/0?`dedentToRoot(`+r(e.contents)+`)`:e.n<0?`dedent(`+r(e.contents)+`)`:e.n.type===`root`?`markAsRoot(`+r(e.contents)+`)`:`align(`+JSON.stringify(e.n)+`, `+r(e.contents)+`)`;if(e.type===Fe)return`ifBreak(`+r(e.breakContents)+(e.flatContents?`, `+r(e.flatContents):``)+(e.groupId?(e.flatContents?``:`, ""`)+`, { groupId: ${i(e.groupId)} }`:``)+`)`;if(e.type===O){let t=[];e.negate&&t.push(`negate: true`),e.groupId&&t.push(`groupId: ${i(e.groupId)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return`indentIfBreak(${r(e.contents)}${n})`}if(e.type===D){let t=[];e.break&&e.break!==`propagated`&&t.push(`shouldBreak: true`),e.id&&t.push(`id: ${i(e.id)}`);let n=t.length>0?`, { ${t.join(`, `)} }`:``;return e.expandedStates?`conditionalGroup([${e.expandedStates.map(e=>r(e)).join(`,`)}]${n})`:`group(${r(e.contents)}${n})`}if(e.type===Pe)return`fill([${e.parts.map(e=>r(e)).join(`, `)}])`;if(e.type===Ie)return`lineSuffix(`+r(e.contents)+`)`;if(e.type===Le)return`lineSuffixBoundary`;if(e.type===Re)return`label(${JSON.stringify(e.label)}, ${r(e.contents)})`;throw Error(`Unknown doc type `+e.type)}function i(e){if(typeof e!=`symbol`)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||`symbol`;for(let i=0;;i++){let a=r+(i>0?` #${i}`:``);if(!n.has(a))return n.add(a),t[e]=`Symbol.for(${JSON.stringify(a)})`}}}var A=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)},wt=()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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 Tt(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Et(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}var Dt=e=>!(Tt(e)||Et(e)),Ot=/[^\x20-\x7F]/u;function kt(e){if(!e)return 0;if(!Ot.test(e))return e.length;e=e.replace(wt(),`  `);let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=Dt(e)?1:2)}return t}var At=kt;function jt(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(He(e)){case ke:return t(e.map(r));case Pe:return t({...e,parts:e.parts.map(r)});case Fe:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case D:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case Me:case je:case O:case Re:case Ie:return t({...e,contents:r(e.contents)});case Oe:case Ae:case Ne:case Le:case k:case ze:return t(e);default:throw new Ge(e)}}}function Mt(e,t,n){let r=n,i=!1;function a(e){if(i)return!1;let n=t(e);n!==void 0&&(i=!0,r=n)}return Je(e,a),r}function Nt(e){if(e.type===D&&e.break||e.type===k&&e.hard||e.type===ze)return!0}function Pt(e){return Mt(e,Nt,!1)}function Ft(e){if(e.length>0){let t=A(!1,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function It(e){let t=new Set,n=[];function r(e){if(e.type===ze&&Ft(n),e.type===D){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===D&&n.pop().break&&Ft(n)}Je(e,r,i,!0)}function Lt(e){return e.type===k&&!e.hard?e.soft?``:` `:e.type===Fe?e.flatContents:e}function Rt(e){return jt(e,Lt)}function zt(e){for(e=[...e];e.length>=2&&A(!1,e,-2).type===k&&A(!1,e,-1).type===ze;)e.length-=2;if(e.length>0){let t=Bt(A(!1,e,-1));e[e.length-1]=t}return e}function Bt(e){switch(He(e)){case je:case O:case D:case Ie:case Re:{let t=Bt(e.contents);return{...e,contents:t}}case Fe:return{...e,breakContents:Bt(e.breakContents),flatContents:Bt(e.flatContents)};case Pe:return{...e,parts:zt(e.parts)};case ke:return zt(e);case Oe:return e.replace(/[\n\r]*$/u,``);case Me:case Ae:case Ne:case Le:case k:case ze:break;default:throw new Ge(e)}return e}function Vt(e){return Bt(Ut(e))}function Ht(e){switch(He(e)){case Pe:if(e.parts.every(e=>e===``))return``;break;case D:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===D&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Me:case je:case O:case Ie:if(!e.contents)return``;break;case Fe:if(!e.flatContents&&!e.breakContents)return``;break;case ke:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof A(!1,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case Oe:case Ae:case Ne:case Le:case k:case Re:case ze:break;default:throw new Ge(e)}return e}function Ut(e){return jt(e,e=>Ht(e))}function Wt(e,t=_t){return jt(e,e=>typeof e==`string`?yt(t,e.split(`
`)):e)}function Gt(e){if(e.type===k)return!0}function Kt(e){return Mt(e,Gt,!1)}function qt(e,t){return e.type===Re?{...e,contents:t(e.contents)}:t(e)}var j=Symbol(`MODE_BREAK`),Jt=Symbol(`MODE_FLAT`),Yt=Symbol(`cursor`);function Xt(){return{value:``,length:0,queue:[]}}function M(e,t){return Qt(e,{type:`indent`},t)}function Zt(e,t,n){return t===-1/0?e.root||Xt():t<0?Qt(e,{type:`dedent`},n):t?t.type===`root`?{...e,root:e}:Qt(e,{type:typeof t==`string`?`stringAlign`:`numberAlign`,n:t},n):e}function Qt(e,t,n){let r=t.type===`dedent`?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case`indent`:u(),n.useTabs?c(1):l(n.tabWidth);break;case`stringAlign`:u(),i+=e.n,a+=e.n.length;break;case`numberAlign`:o+=1,s+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=`	`.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function $t(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Yt){n++;continue}for(let n=i.length-1;n>=0;n--){let a=i[n];if(a===` `||a===`	`)t++;else{e[r]=i.slice(0,n+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Yt);return t}function en(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=[e],c=[];for(;n>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:e,doc:l}=s.pop(),u=He(l);switch(u){case Oe:c.push(l),n-=At(l);break;case ke:case Pe:{let t=u===ke?l:l.parts;for(let n=t.length-1;n>=0;n--)s.push({mode:e,doc:t[n]});break}case je:case Me:case O:case Re:s.push({mode:e,doc:l.contents});break;case Ne:n+=$t(c);break;case D:{if(a&&l.break)return!1;let t=l.break?j:e,n=l.expandedStates&&t===j?A(!1,l.expandedStates,-1):l.contents;s.push({mode:t,doc:n});break}case Fe:{let t=(l.groupId?i[l.groupId]||Jt:e)===j?l.breakContents:l.flatContents;t&&s.push({mode:e,doc:t});break}case k:if(e===j||l.hard)return!0;l.soft||(c.push(` `),n--);break;case Ie:r=!0;break;case Le:if(r)return!1;break}}return!1}function tn(e,t){let n={},r=t.printWidth,i=Te(t.endOfLine),a=0,o=[{ind:Xt(),mode:j,doc:e}],s=[],c=!1,l=[],u=0;for(It(e);o.length>0;){let{ind:e,mode:d,doc:f}=o.pop();switch(He(f)){case Oe:{let e=i===`
`?f:fe(!1,f,`
`,i);s.push(e),o.length>0&&(a+=At(e));break}case ke:for(let t=f.length-1;t>=0;t--)o.push({ind:e,mode:d,doc:f[t]});break;case Ae:if(u>=2)throw Error(`There are too many 'cursor' in doc.`);s.push(Yt),u++;break;case je:o.push({ind:M(e,t),mode:d,doc:f.contents});break;case Me:o.push({ind:Zt(e,f.n,t),mode:d,doc:f.contents});break;case Ne:a-=$t(s);break;case D:switch(d){case Jt:if(!c){o.push({ind:e,mode:f.break?j:Jt,doc:f.contents});break}case j:{c=!1;let t={ind:e,mode:Jt,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&en(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=A(!1,f.expandedStates,-1);if(f.break){o.push({ind:e,mode:j,doc:t});break}else for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({ind:e,mode:j,doc:t});break}else{let t={ind:e,mode:Jt,doc:f.expandedStates[r]};if(en(t,o,i,s,n)){o.push(t);break}}}else o.push({ind:e,mode:j,doc:f.contents});break}}f.id&&(n[f.id]=A(!1,o,-1).mode);break;case Pe:{let t=r-a,{parts:i}=f;if(i.length===0)break;let[s,c]=i,u={ind:e,mode:Jt,doc:s},p={ind:e,mode:j,doc:s},m=en(u,[],t,l.length>0,n,!0);if(i.length===1){m?o.push(u):o.push(p);break}let h={ind:e,mode:Jt,doc:c},g={ind:e,mode:j,doc:c};if(i.length===2){m?o.push(h,u):o.push(g,p);break}i.splice(0,2);let _={ind:e,mode:d,doc:at(i)},v=i[0];en({ind:e,mode:Jt,doc:[s,c,v]},[],t,l.length>0,n,!0)?o.push(_,h,u):m?o.push(_,g,u):o.push(_,g,p);break}case Fe:case O:{let t=f.groupId?n[f.groupId]:d;if(t===j){let t=f.type===Fe?f.breakContents:f.negate?f.contents:Qe(f.contents);t&&o.push({ind:e,mode:d,doc:t})}if(t===Jt){let t=f.type===Fe?f.flatContents:f.negate?Qe(f.contents):f.contents;t&&o.push({ind:e,mode:d,doc:t})}break}case Ie:l.push({ind:e,mode:d,doc:f.contents});break;case Le:l.length>0&&o.push({ind:e,mode:d,doc:ft});break;case k:switch(d){case Jt:if(f.hard)c=!0;else{f.soft||(s.push(` `),a+=1);break}case j:if(l.length>0){o.push({ind:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?e.root?(s.push(i,e.root.value),a=e.root.length):(s.push(i),a=0):(a-=$t(s),s.push(i+e.value),a=e.length);break}break;case Re:o.push({ind:e,mode:d,doc:f.contents});break;case ze:break;default:throw new Ge(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let d=s.indexOf(Yt);if(d!==-1){let e=s.indexOf(Yt,d+1),t=s.slice(0,d).join(``),n=s.slice(d+1,e).join(``),r=s.slice(e+1).join(``);return{formatted:t+n+r,cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join(``)}}function nn(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===`	`?r=r+t-r%t:r++;return r}var rn=nn,an,on,sn,cn=class{constructor(e){ie(this,an),this.stack=[e]}get key(){let{stack:e,siblings:t}=this;return A(!1,e,t===null?-2:-4)??null}get index(){return this.siblings===null?null:A(!1,this.stack,-2)}get node(){return A(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,t=A(!1,e,-3);return Array.isArray(t)?t:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:t}=this;return e!==null&&t===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...ae(this,an,sn).call(this)]}getName(){let{stack:e}=this,{length:t}=e;return t>1?A(!1,e,-2):null}getValue(){return A(!1,this.stack,-1)}getNode(e=0){let t=ae(this,an,on).call(this,e);return t===-1?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,i=A(!1,n,-1);for(let e of t)i=i[e],n.push(e,i);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=ae(this,an,on).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,i=A(!1,n,-1);for(let e of t)i=i[e],n.push(e,i);try{for(let t=0;t<i.length;++t)n.push(t,i[t]),e(this,t,i),n.length-=2}finally{n.length=r}}map(e,...t){let n=[];return this.each((t,r,i)=>{n[r]=e(t,r,i)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let i of e){if(r===void 0)return!1;let e=null;if(typeof n==`number`&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of ae(this,an,sn).call(this))if(e(t))return t}hasAncestor(e){for(let t of ae(this,an,sn).call(this))if(e(t))return!0;return!1}};an=new WeakSet,on=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return-1},sn=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var ln=cn,un=new Proxy(()=>{},{get:()=>un}),dn=un;function fn(e){return typeof e==`object`&&!!e}var pn=fn;function*mn(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>pn(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function*hn(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of mn(r,t))yield e,n.push(e)}}function N(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var gn=N(/\s/u),_n=N(` 	`),vn=N(`,; 	`),yn=N(/[^\n\r]/u);function bn(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
`)return t-2;if(i===`
`||i===`\r`||i===`\u2028`||i===`\u2029`)return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
`)return t+2;if(i===`
`||i===`\r`||i===`\u2028`||i===`\u2029`)return t+1}return t}var xn=bn;function Sn(e,t,n={}){let r=_n(e,n.backwards?t-1:t,n);return r!==xn(e,r,n)}var Cn=Sn;function wn(e){return Array.isArray(e)&&e.length>0}var Tn=wn,En=new Set([`tokens`,`comments`,`parent`,`enclosingNode`,`precedingNode`,`followingNode`]),Dn=e=>Object.keys(e).filter(e=>!En.has(e));function P(e){return e?t=>e(t,En):Dn}var On=P;function kn(e){let t=e.type||e.kind||`(unknown type)`,n=String(e.name||e.id&&(typeof e.id==`object`?e.id.name:e.id)||e.key&&(typeof e.key==`object`?e.key.name:e.key)||e.value&&(typeof e.value==`object`?``:String(e.value))||e.operator||``);return n.length>20&&(n=n.slice(0,19)+`…`),t+(n?` `+n:``)}function An(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=kn(e)}function jn(e,t){t.leading=!0,t.trailing=!1,An(e,t)}function Mn(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),An(e,t)}function Nn(e,t){t.leading=!1,t.trailing=!0,An(e,t)}var Pn=new WeakMap;function Fn(e,t){if(Pn.has(e))return Pn.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:a,locEnd:o}=t;if(!r)return[];let s=(n?.(e,t)??[...mn(e,{getVisitorKeys:On(i)})]).flatMap(e=>r(e)?[e]:Fn(e,t));return s.sort((e,t)=>a(e)-a(t)||o(e)-o(t)),Pn.set(e,s),s}function In(e,t,n,r){let{locStart:i,locEnd:a}=n,o=i(t),s=a(t),c=Fn(e,n),l,u,d=0,f=c.length;for(;d<f;){let e=d+f>>1,r=c[e],p=i(r),m=a(r);if(p<=o&&s<=m)return In(r,t,n,r);if(m<=o){l=r,d=e+1;continue}if(s<=p){u=r,f=e;continue}throw Error(`Comment location overlaps with node location`)}if(r?.type===`TemplateLiteral`){let{quasis:e}=r,i=Un(e,t,n);l&&Un(e,l,n)!==i&&(l=null),u&&Un(e,u,n)!==i&&(u=null)}return{enclosingNode:r,precedingNode:l,followingNode:u}}var Ln=()=>!1;function Rn(e,t){let{comments:n}=e;if(delete e.comments,!Tn(n)||!t.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:a,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:s={}},originalText:c}=t,{ownLine:l=Ln,endOfLine:u=Ln,remaining:d=Ln}=s,f=n.map((r,i)=>({...In(e,r,t),comment:r,text:c,options:t,ast:e,isLastComment:n.length-1===i}));for(let[e,t]of f.entries()){let{comment:n,precedingNode:s,enclosingNode:c,followingNode:p,text:m,options:h,ast:g,isLastComment:_}=t;if(h.parser===`json`||h.parser===`json5`||h.parser===`jsonc`||h.parser===`__js_expression`||h.parser===`__ts_expression`||h.parser===`__vue_expression`||h.parser===`__vue_ts_expression`){if(i(n)-i(g)<=0){jn(g,n);continue}if(a(n)-a(g)>=0){Nn(g,n);continue}}let v;if(o?v=[t]:(n.enclosingNode=c,n.precedingNode=s,n.followingNode=p,v=[n,m,h,g,_]),Bn(m,h,f,e))n.placement=`ownLine`,l(...v)||(p?jn(p,n):s?Nn(s,n):Mn(c||g,n));else if(Vn(m,h,f,e))n.placement=`endOfLine`,u(...v)||(s?Nn(s,n):p?jn(p,n):Mn(c||g,n));else if(n.placement=`remaining`,!d(...v))if(s&&p){let e=r.length;e>0&&r[e-1].followingNode!==p&&Hn(r,h),r.push(t)}else s?Nn(s,n):p?jn(p,n):Mn(c||g,n)}if(Hn(r,t),!o)for(let e of n)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}var zn=e=>!/[\S\n\u2028\u2029]/u.test(e);function Bn(e,t,n,r){let{comment:i,precedingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=o(i);if(a)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:i}=n[t];if(i!==a||!zn(e.slice(s(r),c)))break;c=o(r)}return Cn(e,c,{backwards:!0})}function Vn(e,t,n,r){let{comment:i,followingNode:a}=n[r],{locStart:o,locEnd:s}=t,c=s(i);if(a)for(let t=r+1;t<n.length;t++){let{comment:r,followingNode:i}=n[t];if(i!==a||!zn(e.slice(c,o(r))))break;c=s(r)}return Cn(e,c)}function Hn(e,t){var n;let r=e.length;if(r===0)return;let{precedingNode:i,followingNode:a}=e[0],o=t.locStart(a),s;for(s=r;s>0;--s){let{comment:r,precedingNode:c,followingNode:l}=e[s-1];dn.strictEqual(c,i),dn.strictEqual(l,a);let u=t.originalText.slice(t.locEnd(r),o);if((n=t.printer).isGap?.call(n,u,t)??/^[\s(]*$/u.test(u))o=t.locStart(r);else break}for(let[t,{comment:n}]of e.entries())t<s?Nn(i,n):jn(a,n);for(let e of[i,a])e.comments&&e.comments.length>1&&e.comments.sort((e,n)=>t.locStart(e)-t.locStart(n));e.length=0}function Un(e,t,n){let r=n.locStart(t)-1;for(let t=1;t<e.length;++t)if(r<n.locStart(e[t]))return t-1;return 0}function Wn(e,t){let n=t-1;n=_n(e,n,{backwards:!0}),n=xn(e,n,{backwards:!0}),n=_n(e,n,{backwards:!0});let r=xn(e,n,{backwards:!0});return n!==r}var Gn=Wn;function Kn(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function qn(e,t){let n=e.node,r=[Kn(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.call(i,n)){let e=Cn(a,s(n))?Cn(a,o(n),{backwards:!0})?gt:mt:` `;r.push(e)}else r.push(gt);let c=xn(a,_n(a,s(n)));return c!==!1&&Cn(a,c)&&r.push(gt),r}function Jn(e,t,n){let r=e.node,i=Kn(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.call(a,r);return n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||Cn(o,s(r),{backwards:!0})?{doc:ct([gt,Gn(o,s(r))?gt:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n!=null&&n.hasLineSuffix?{doc:[ct([` `,i]),ut],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function Yn(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r!=null&&r.has(n))return;let{leading:s,trailing:c}=n;s?i.push(qn(e,t)):c&&(o=Jn(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function Xn(e,t,n){let{leading:r,trailing:i}=Yn(e,n);return!r&&!i?t:qt(t,e=>[r,e,i])}function Zn(e){let{[Symbol.for(`comments`)]:t,[Symbol.for(`printedComments`)]:n}=e;for(let e of t){if(!e.printed&&!n.has(e))throw Error(`Comment "`+e.value.trim()+`" was not printed. Please report this error!`);delete e.printed}}function Qn(e){return()=>{}}var $n=Qn,er=class extends Error{name=`ConfigError`},tr=class extends Error{name=`UndefinedParserError`},nr={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
(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).
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.
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
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.`}]}};function rr({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(e=>e.languages??[]),r=[];for(let i of ar(Object.assign({},...e.map(({options:e})=>e),nr)))!t&&i.deprecated||(Array.isArray(i.choices)&&(t||(i.choices=i.choices.filter(e=>!e.deprecated)),i.name===`parser`&&(i.choices=[...i.choices,...ir(i.choices,n,e)])),i.pluginDefaults=Object.fromEntries(e.filter(e=>e.defaultOptions?.[i.name]!==void 0).map(e=>[e.name,e.defaultOptions[i.name]])),r.push(i));return{languages:n,options:r}}function*ir(e,t,n){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let i=n.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),a=e.name;i!=null&&i.name&&(a+=` (plugin: ${i.name})`),yield{value:t,description:a}}}}function ar(e){let t=[];for(let[n,r]of Object.entries(e)){let e={name:n,...r};Array.isArray(e.default)&&(e.default=A(!1,e.default,-1).value),t.push(e)}return t}var or=e=>String(e).split(/[/\\]/u).pop();function sr(e,t){if(!t)return;let n=or(t).toLowerCase();return e.find(({filenames:e})=>e?.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>e?.some(e=>n.endsWith(e)))}function cr(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>e?.includes(t))??e.find(({extensions:e})=>e?.includes(`.${t}`))}function lr(e,t){let n=e.plugins.flatMap(e=>e.languages??[]);return(cr(n,t.language)??sr(n,t.physicalFile)??sr(n,t.file)??(t.physicalFile,void 0))?.parsers[0]}var ur=lr,dr={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(typeof e!=`object`||!e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>dr.value(e)).join(`, `)}]`;let t=Object.keys(e);return t.length===0?`{}`:`{ ${t.map(t=>`${dr.key(t)}: ${dr.value(e[t])}`).join(`, `)} }`},pair:({key:e,value:t})=>dr.value({[e]:t})},fr=b(oe(),1),pr=(e,t,{descriptor:n})=>{let r=[`${fr.default.yellow(typeof e==`string`?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${fr.default.blue(typeof t==`string`?n.key(t):n.pair(t))}`),r.join(`; `)+`.`},mr=b(oe(),1),hr=Symbol.for(`vnopts.VALUE_NOT_EXIST`),gr=Symbol.for(`vnopts.VALUE_UNCHANGED`),_r=` `.repeat(2),vr=(e,t,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[e].expected(n)),a=[];return r&&a.push(yr(e,t,r,n.descriptor)),i&&a.push([yr(e,t,i.title,n.descriptor)].concat(i.values.map(e=>br(e,n.loggerPrintWidth))).join(`
`)),xr(a,n.loggerPrintWidth)};function yr(e,t,n,r){return[`Invalid ${mr.default.red(r.key(e))} value.`,`Expected ${mr.default.blue(n)},`,`but received ${t===hr?mr.default.gray(`nothing`):mr.default.red(r.value(t))}.`].join(` `)}function br({text:e,list:t},n){let r=[];return e&&r.push(`- ${mr.default.blue(e)}`),t&&r.push([`- ${mr.default.blue(t.title)}:`].concat(t.values.map(e=>br(e,n-_r.length).replace(/^|\n/g,`$&${_r}`))).join(`
`)),xr(r,n)}function xr(e,t){if(e.length===1)return e[0];let[n,r]=e,[i,a]=e.map(e=>e.split(`
`,1)[0].length);return i>t&&i>a?r:n}var Sr=b(oe(),1),Cr=[],wr=[];function Tr(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let a=0;for(;a<r&&e.charCodeAt(a)===t.charCodeAt(a);)a++;if(r-=a,i-=a,r===0)return i;let o,s,c,l,u=0,d=0;for(;u<r;)wr[u]=e.charCodeAt(a+u),Cr[u]=++u;for(;d<i;)for(o=t.charCodeAt(a+d),c=d++,s=d,u=0;u<r;u++)l=o===wr[u]?c:c+1,c=Cr[u],s=Cr[u]=c>s?l>s?s+1:l:l>c?c+1:l;return s}var Er=(e,t,{descriptor:n,logger:r,schemas:i})=>{let a=[`Ignored unknown option ${Sr.default.yellow(n.pair({key:e,value:t}))}.`],o=Object.keys(i).sort().find(t=>Tr(e,t)<3);o&&a.push(`Did you mean ${Sr.default.blue(n.key(o))}?`),r.warn(a.join(` `))},Dr=[`default`,`expected`,`validate`,`deprecated`,`forward`,`redirect`,`overlap`,`preprocess`,`postprocess`];function Or(e,t){let n=new e(t),r=Object.create(n);for(let e of Dr)e in t&&(r[e]=Ar(t[e],n,kr.prototype[e].length));return r}var kr=class{static create(e){return Or(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return`nothing`}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return gr}};function Ar(e,t,n){return typeof e==`function`?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var jr=class extends kr{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},Mr=class extends kr{expected(){return`anything`}validate(){return!0}},Nr=class extends kr{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:`an array of the following values`,values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);e!==!0&&n.push(e.value)}return n.length===0?!0:{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);e!==!1&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(Pr))}return n}redirect(e,t){let n=[],r=[];for(let i of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);`remain`in e&&n.push(e.remain),r.push(...e.redirect.map(Pr))}return n.length===0?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function Pr({from:e,to:t}){return{from:[e],to:t}}var Fr=class extends kr{expected(){return`true or false`}validate(e){return typeof e==`boolean`}};function Ir(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}function Lr(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}function Rr(){let e=Object.create(null);return t=>{let n=JSON.stringify(t);return e[n]?!0:(e[n]=!0,!1)}}function zr(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return[n,r]}function Br(e){return e===Math.floor(e)}function Vr(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,i=[`undefined`,`object`,`boolean`,`number`,`string`];return n===r?n===`string`?e.localeCompare(t):Number(e)-Number(t):i.indexOf(n)-i.indexOf(r)}function Hr(e){return(...t)=>{let n=e(...t);return typeof n==`string`?Error(n):n}}function Ur(e){return e===void 0?{}:e}function Wr(e){if(typeof e==`string`)return{text:e};let{text:t,list:n}=e;return Xr((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(Wr)}}:{text:t}}function Gr(e,t){return e===!0?!0:e===!1?{value:t}:e}function Kr(e,t,n=!1){return e===!1?!1:e===!0?n?!0:[{value:t}]:`value`in e?[e]:e.length===0?!1:e}function qr(e,t){return typeof e==`string`||`key`in e?{from:t,to:e}:`from`in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function Jr(e,t){return e===void 0?[]:Array.isArray(e)?e.map(e=>qr(e,t)):[qr(e,t)]}function Yr(e,t){let n=Jr(typeof e==`object`&&`redirect`in e?e.redirect:e,t);return n.length===0?{remain:t,redirect:n}:typeof e==`object`&&`remain`in e?{remain:e.remain,redirect:n}:{redirect:n}}function Xr(e,t){if(!e)throw Error(t)}var Zr=class extends kr{constructor(e){super(e),this._choices=Lr(e.choices.map(e=>e&&typeof e==`object`?e:{value:e}),`value`)}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(Vr).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(` or `)).join(`, `),list:{title:`one of the following values`,values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return t&&t.deprecated?{value:e}:!1}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},Qr=class extends kr{expected(){return`a number`}validate(e,t){return typeof e==`number`}},$r=class extends Qr{expected(){return`an integer`}validate(e,t){return t.normalizeValidateResult(super.validate(e,t),e)===!0&&Br(e)}},ei=class extends kr{expected(){return`a string`}validate(e){return typeof e==`string`}},ti=dr,ni=Er,ri=vr,ii=pr,ai=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:i=ti,unknown:a=ni,invalid:o=ri,deprecated:s=ii,missing:c=()=>!1,required:l=()=>!1,preprocess:u=e=>e,postprocess:d=()=>gr}=t||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:Ir(e,`name`),normalizeDefaultResult:Ur,normalizeExpectedResult:Wr,normalizeDeprecatedResult:Kr,normalizeForwardResult:Jr,normalizeRedirectResult:Yr,normalizeValidateResult:Gr},this._unknownHandler=a,this._invalidHandler=Hr(o),this._deprecatedHandler=s,this._identifyMissing=(e,t)=>!(e in t)||c(e,t),this._identifyRequired=l,this._preprocess=u,this._postprocess=d,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Rr()}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;n.length!==0;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(let e of Object.keys(this._utils.schemas)){let r=this._utils.schemas[e];if(!(e in t)){let t=Ur(r.default(this._utils));`value`in t&&n.push({[e]:t.value})}}r();for(let e of Object.keys(this._utils.schemas)){if(!(e in t))continue;let n=this._utils.schemas[e],r=t[e],i=n.postprocess(r,this._utils);i!==gr&&(this._applyValidation(i,e,n),t[e]=i)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(e);for(let i of r){let r=this._utils.schemas[i],a=r.preprocess(e[i],this._utils);this._applyValidation(a,i,r);let o=({from:e,to:t})=>{n.push(typeof t==`string`?{[t]:e}:{[t.key]:t.value})},s=({value:e,redirectTo:t})=>{let n=Kr(r.deprecated(e,this._utils),a,!0);if(n!==!1)if(n===!0)this._hasDeprecationWarned(i)||this._utils.logger.warn(this._deprecatedHandler(i,t,this._utils));else for(let{value:e}of n){let n={key:i,value:e};if(!this._hasDeprecationWarned(n)){let r=typeof t==`string`?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}};Jr(r.forward(a,this._utils),a).forEach(o);let c=Yr(r.redirect(a,this._utils),a);if(c.redirect.forEach(o),`remain`in c){let e=c.remain;t[i]=i in t?r.overlap(t[i],e,this._utils):e,s({value:e})}for(let{from:e,to:t}of c.redirect)s({value:e,redirectTo:t})}for(let r of i){let i=e[r];this._applyUnknownHandler(r,i,t,(e,t)=>{n.push({[e]:t})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,hr,this._utils)}_partitionOptionKeys(e){let[t,n]=zr(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=Gr(n.validate(e,this._utils),e);if(r!==!0)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let i=this._unknownHandler(e,t,this._utils);if(i)for(let e of Object.keys(i)){if(this._identifyMissing(e,i))continue;let t=i[e];e in this._utils.schemas?r(e,t):n[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==gr){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of n){let n=t.override[r];this._applyValidation(n,r,this._utils.schemas[r]),e[r]=n}for(let n of r){let r=t.override[n];this._applyUnknownHandler(n,r,e,(t,n)=>{let r=this._utils.schemas[t];this._applyValidation(n,t,r),e[t]=n})}}}}},oi;function si(e,t,{logger:n=!1,isCLI:r=!1,passThrough:i=!1,FlagSchema:a,descriptor:o}={}){if(r){if(!a)throw Error(`'FlagSchema' option is required.`);if(!o)throw Error(`'descriptor' option is required.`)}else o=dr;let s=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let{_:r,...i}=n.schemas;return Er(e,t,{...n,schemas:i})},c=new ai(ci(t,{isCLI:r,FlagSchema:a}),{logger:n,unknown:s,descriptor:o}),l=n!==!1;l&&oi&&(c._hasDeprecationWarned=oi);let u=c.normalize(e);return l&&(oi=c._hasDeprecationWarned),u}function ci(e,{isCLI:t,FlagSchema:n}){let r=[];t&&r.push(Mr.create({name:`_`}));for(let i of e)r.push(li(i,{isCLI:t,optionInfos:e,FlagSchema:n})),i.alias&&t&&r.push(jr.create({name:i.alias,sourceName:i.name}));return r}function li(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:i}=e,a={name:i},o,s={};switch(e.type){case`int`:o=$r,t&&(a.preprocess=Number);break;case`string`:o=ei;break;case`choice`:o=Zr,a.choices=e.choices.map(t=>t!=null&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case`boolean`:o=Fr;break;case`flag`:o=r,a.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;case`path`:o=ei;break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?a.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):a.validate=(e,t,n)=>e===void 0||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:typeof e.redirect==`string`?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),t&&!e.array){let e=a.preprocess||(e=>e);a.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?A(!1,t,-1):t),r)}return e.array?Nr.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...s,valueSchema:o.create(a)}):o.create({...a,...s})}var ui=si,di=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}};function fi(e,t){if(!t)throw Error(`parserName is required.`);let n=di(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new er(r)}function pi(e,t){if(!t)throw Error(`astFormat is required.`);let n=di(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw r+=` Plugins must be explicitly added to the standalone bundle.`,new er(r)}function mi({plugins:e,parser:t}){return hi(fi(e,t),t)}function hi(e,t){let n=e.parsers[t];return typeof n==`function`?n():n}function gi(e,t){let n=e.printers[t];return typeof n==`function`?n():n}var _i={astFormat:`estree`,printer:{},originalText:void 0,locStart:null,locEnd:null};async function vi(e,t={}){var n;let r={...e};if(!r.parser)if(r.filepath){if(r.parser=ur(r,{physicalFile:r.filepath}),!r.parser)throw new tr(`No parser could be inferred for file "${r.filepath}".`)}else throw new tr(`No parser and no file path given, couldn't infer a parser.`);let i=rr({plugins:e.plugins,showDeprecated:!0}).options,a={..._i,...Object.fromEntries(i.filter(e=>e.default!==void 0).map(e=>[e.name,e.default]))},o=fi(r.plugins,r.parser),s=await hi(o,r.parser);r.astFormat=s.astFormat,r.locEnd=s.locEnd,r.locStart=s.locStart;let c=(n=o.printers)!=null&&n[s.astFormat]?o:pi(r.plugins,s.astFormat);r.printer=await gi(c,s.astFormat);let l=c.defaultOptions?Object.fromEntries(Object.entries(c.defaultOptions).filter(([,e])=>e!==void 0)):{},u={...a,...l};for(let[e,t]of Object.entries(u))(r[e]===null||r[e]===void 0)&&(r[e]=t);return r.parser===`json`&&(r.trailingComma=`none`),ui(r,i,{passThrough:Object.keys(_i),...t})}var yi=vi,bi=b(de(),1);async function xi(e,t){let n=await mi(t),r=n.preprocess?n.preprocess(e,t):e;t.originalText=r;let i;try{i=await n.parse(r,t,t)}catch(t){Si(t,e)}return{text:r,ast:i}}function Si(e,t){let{loc:n}=e;if(n){let r=(0,bi.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=`
`+r,e.codeFrame=r,e}throw e}var Ci=xi;async function wi(e,t,n,r,i){let{embeddedLanguageFormatting:a,printer:{embed:o,hasPrettierIgnore:s=()=>!1,getVisitorKeys:c}}=n;if(!o||a!==`auto`)return;if(o.length>2)throw Error(`printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed`);let l=On(o.getVisitorKeys??c),u=[];p();let d=e.stack;for(let{print:r,node:a,pathStack:o}of u)try{e.stack=o;let s=await r(f,t,e,n);s&&i.set(a,s)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}e.stack=d;function f(e,t){return Ti(e,t,n,r)}function p(){let{node:t}=e;if(typeof t!=`object`||!t||s(e))return;for(let n of l(t))Array.isArray(t[n])?e.each(p,n):e.call(p,n);let r=o(e,n);if(r){if(typeof r==`function`){u.push({print:r,node:t,pathStack:[...e.stack]});return}i.set(t,r)}}}async function Ti(e,t,n,r){let i=await yi({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:a}=await Ci(e,i);return Vt(await r(a,i))}function Ei(e,t){let{originalText:n,[Symbol.for(`comments`)]:r,locStart:i,locEnd:a,[Symbol.for(`printedComments`)]:o}=t,{node:s}=e,c=i(s),l=a(s);for(let e of r)i(e)>=c&&a(e)<=l&&o.add(e);return n.slice(c,l)}var Di=Ei;async function Oi(e,t){({ast:e}=await Ai(e,t));let n=new Map,r=new ln(e),i=$n(t),a=new Map;await wi(r,s,t,Oi,a);let o=await ki(r,t,s,void 0,a);return Zn(t),o;function s(e,t){return e===void 0||e===r?c(t):Array.isArray(e)?r.call(()=>c(t),...e):r.call(()=>c(t),e)}function c(e){i(r);let o=r.node;if(o==null)return``;let c=o&&typeof o==`object`&&e===void 0;if(c&&n.has(o))return n.get(o);let l=ki(r,t,s,e,a);return c&&n.set(o,l),l}}function ki(e,t,n,r,i){var a;let{node:o}=e,{printer:s}=t,c;return c=(a=s.hasPrettierIgnore)!=null&&a.call(s,e)?Di(e,t):i.has(o)?i.get(o):s.print(e,t,n,r),o===t.cursorNode&&(c=qt(c,e=>[vt,e,vt])),s.printComment&&(!s.willPrintOwnComments||!s.willPrintOwnComments(e,t))&&(c=Xn(e,c,t)),c}async function Ai(e,t){let n=e.comments??[];t[Symbol.for(`comments`)]=n,t[Symbol.for(`tokens`)]=e.tokens??[],t[Symbol.for(`printedComments`)]=new Set,Rn(e,t);let{printer:{preprocess:r}}=t;return e=r?await r(e,t):e,{ast:e,comments:n}}function ji(e,t){let{cursorOffset:n,locStart:r,locEnd:i}=t,a=On(t.printer.getVisitorKeys),o=e=>r(e)<=n&&i(e)>=n,s=e;for(let t of hn(e,{getVisitorKeys:a,filter:o}))s=t;return s}var Mi=ji;function Ni(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let i=On(r),a=n.ignoredProperties??new Set;return o(e);function o(e,t){if(!(typeof e==`object`&&e))return e;if(Array.isArray(e))return e.map(e=>o(e,t)).filter(Boolean);let r={},s=new Set(i(e));for(let t in e)!Object.prototype.hasOwnProperty.call(e,t)||a.has(t)||(s.has(t)?r[t]=o(e[t],e):r[t]=e[t]);let c=n(e,r,t);if(c!==null)return c??r}}var Pi=Ni,Fi=(e,t,n)=>{if(!(e&&t==null)){if(t.findLastIndex)return t.findLastIndex(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return e}return-1}},Ii=({parser:e})=>e===`json`||e===`json5`||e===`jsonc`||e===`json-stringify`;function Li(e,t){let n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(e=>Hi.has(e.type)&&r.has(e))}function Ri(e){let t=Fi(!1,e,e=>e.type!==`Program`&&e.type!==`File`);return t===-1?e:e.slice(0,t+1)}function zi(e,t,{locStart:n,locEnd:r}){let i=e.node,a=t.node;if(i===a)return{startNode:i,endNode:a};let o=n(e.node);for(let e of Ri(t.parentNodes))if(n(e)>=o)a=e;else break;let s=r(t.node);for(let t of Ri(e.parentNodes)){if(r(t)<=s)i=t;else break;if(i===a)break}return{startNode:i,endNode:a}}function Bi(e,t,n,r,i=[],a){let{locStart:o,locEnd:s}=n,c=o(e),l=s(e);if(!(t>l||t<c||a===`rangeEnd`&&t===c||a===`rangeStart`&&t===l)){for(let o of Fn(e,n)){let s=Bi(o,t,n,r,[e,...i],a);if(s)return s}if(!r||r(e,i[0]))return{node:e,parentNodes:i}}}function Vi(e,t){return t!==`DeclareExportDeclaration`&&e!==`TypeParameterDeclaration`&&(e===`Directive`||e===`TypeAlias`||e===`TSExportAssignment`||e.startsWith(`Declare`)||e.startsWith(`TSDeclare`)||e.endsWith(`Statement`)||e.endsWith(`Declaration`))}var Hi=new Set([`JsonRoot`,`ObjectExpression`,`ArrayExpression`,`StringLiteral`,`NumericLiteral`,`BooleanLiteral`,`NullLiteral`,`UnaryExpression`,`TemplateLiteral`]),Ui=new Set([`OperationDefinition`,`FragmentDefinition`,`VariableDefinition`,`TypeExtensionDefinition`,`ObjectTypeDefinition`,`FieldDefinition`,`DirectiveDefinition`,`EnumTypeDefinition`,`EnumValueDefinition`,`InputValueDefinition`,`InputObjectTypeDefinition`,`SchemaDefinition`,`OperationTypeDefinition`,`InterfaceTypeDefinition`,`UnionTypeDefinition`,`ScalarTypeDefinition`]);function Wi(e,t,n){if(!t)return!1;switch(e.parser){case`flow`:case`babel`:case`babel-flow`:case`babel-ts`:case`typescript`:case`acorn`:case`espree`:case`meriyah`:case`__babel_estree`:return Vi(t.type,n?.type);case`json`:case`json5`:case`jsonc`:case`json-stringify`:return Hi.has(t.type);case`graphql`:return Ui.has(t.kind);case`vue`:return t.tag!==`root`}return!1}function Gi(e,t,n){let{rangeStart:r,rangeEnd:i,locStart:a,locEnd:o}=t;dn.ok(i>r);let s=e.slice(r,i).search(/\S/u),c=s===-1;if(!c)for(r+=s;i>r&&!/\S/u.test(e[i-1]);--i);let l=Bi(n,r,t,(e,n)=>Wi(t,e,n),[],`rangeStart`),u=c?l:Bi(n,i,t,e=>Wi(t,e),[],`rangeEnd`);if(!l||!u)return{rangeStart:0,rangeEnd:0};let d,f;if(Ii(t)){let e=Li(l,u);d=e,f=e}else ({startNode:d,endNode:f}=zi(l,u,t));return{rangeStart:Math.min(a(d),a(f)),rangeEnd:Math.max(o(d),o(f))}}var Ki=``,qi=Symbol(`cursor`);async function Ji(e,t,n=0){if(!e||e.trim().length===0)return{formatted:``,cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Ci(e,t);t.cursorOffset>=0&&(t.cursorNode=Mi(r,t));let a=await Oi(r,t,n);n>0&&(a=bt([gt,a],n,t.tabWidth));let o=tn(a,t);if(n>0){let e=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(e)),o.formatted=e+Te(t.endOfLine)}let s=t[Symbol.for(`comments`)];if(t.cursorOffset>=0){let e,n,r,a,c;if(t.cursorNode&&o.cursorNodeText?(e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode)),r=t.cursorOffset-e,a=o.cursorNodeStart,c=o.cursorNodeText):(e=0,n=i,r=t.cursorOffset,a=0,c=o.formatted),n===c)return{formatted:o.formatted,cursorOffset:a+r,comments:s};let l=n.split(``);l.splice(r,0,qi);let u=Ce(l,c.split(``)),d=a;for(let e of u)if(e.removed){if(e.value.includes(qi))break}else d+=e.count;return{formatted:o.formatted,cursorOffset:d,comments:s}}return{formatted:o.formatted,cursorOffset:-1,comments:s}}async function Yi(e,t){let{ast:n,text:r}=await Ci(e,t),{rangeStart:i,rangeEnd:a}=Gi(r,t,n),o=r.slice(i,a),s=Math.min(i,r.lastIndexOf(`
`,i)+1),c=r.slice(s,i).match(/^\s*/u)[0],l=rn(c,t.tabWidth),u=await Ji(o,{...t,rangeStart:0,rangeEnd:1/0,cursorOffset:t.cursorOffset>i&&t.cursorOffset<=a?t.cursorOffset-i:-1,endOfLine:`lf`},l),d=u.formatted.trimEnd(),{cursorOffset:f}=t;f>a?f+=d.length-o.length:u.cursorOffset>=0&&(f=u.cursorOffset+i);let p=r.slice(0,i)+d+r.slice(a);if(t.endOfLine!==`lf`){let e=Te(t.endOfLine);f>=0&&e===`\r
`&&(f+=Ee(p.slice(0,f),`
`)),p=fe(!1,p,`
`,e)}return{formatted:p,cursorOffset:f,comments:u.comments}}function Xi(e,t,n){return typeof t!=`number`||Number.isNaN(t)||t<0||t>e.length?n:t}function Zi(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=Xi(e,n,-1),r=Xi(e,r,0),i=Xi(e,i,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:i}}function Qi(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a}=Zi(e,t),o=e.charAt(0)===Ki;if(o&&(e=e.slice(1),n--,r--,i--),a===`auto`&&(a=we(e)),e.includes(`\r`)){let t=t=>Ee(e.slice(0,Math.max(t,0)),`\r
`);n-=t(n),r-=t(r),i-=t(i),e=De(e)}return{hasBOM:o,text:e,options:Zi(e,{...t,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:a})}}async function $i(e,t){let n=await mi(t);return!n.hasPragma||n.hasPragma(e)}async function ea(e,t){let{hasBOM:n,text:r,options:i}=Qi(e,await yi(t));if(i.rangeStart>=i.rangeEnd&&r!==``||i.requirePragma&&!await $i(r,i))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let a;return i.rangeStart>0||i.rangeEnd<r.length?a=await Yi(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await $i(r,i)&&(r=i.printer.insertPragma(r)),a=await Ji(r,i)),n&&(a.formatted=Ki+a.formatted,a.cursorOffset>=0&&a.cursorOffset++),a}async function ta(e,t,n){let{text:r,options:i}=Qi(e,await yi(t)),a=await Ci(r,i);return n&&(n.preprocessForPrint&&(a.ast=await Ai(a.ast,i)),n.massage&&(a.ast=Pi(a.ast,i))),a}async function na(e,t){return t=await yi(t),tn(await Oi(e,t),t)}async function ra(e,t){let{formatted:n}=await ea(Ct(e),{...t,parser:`__js_expression`});return n}async function ia(e,t){t=await yi(t);let{ast:n}=await Ci(e,t);return Oi(n,t)}async function aa(e,t){return tn(e,await yi(t))}var oa={};ne(oa,{builders:()=>sa,printer:()=>ca,utils:()=>la});var sa={join:yt,line:mt,softline:ht,hardline:gt,literalline:_t,group:et,conditionalGroup:it,fill:at,lineSuffix:ct,lineSuffixBoundary:lt,cursor:vt,breakParent:ut,ifBreak:ot,trim:dt,indent:Qe,indentIfBreak:st,align:$e,addAlignmentToDoc:bt,markAsRoot:nt,dedentToRoot:tt,dedent:rt,hardlineWithoutBreakParent:ft,literallineWithoutBreakParent:pt,label:xt,concat:e=>e},ca={printDocToString:tn},la={willBreak:Pt,traverseDoc:Je,findInDoc:Mt,mapDoc:jt,removeLines:Rt,stripTrailingHardline:Vt,replaceEndOfLine:Wt,canBreak:Kt},ua=`3.3.3`,da={};ne(da,{addDanglingComment:()=>Mn,addLeadingComment:()=>jn,addTrailingComment:()=>Nn,getAlignmentSize:()=>rn,getIndentSize:()=>xa,getMaxContinuousCount:()=>wa,getNextNonSpaceNonCommentCharacter:()=>Ea,getNextNonSpaceNonCommentCharacterIndex:()=>Pa,getStringWidth:()=>At,hasNewline:()=>Cn,hasNewlineInRange:()=>Oa,hasSpaces:()=>Aa,isNextLineEmpty:()=>Ra,isNextLineEmptyAfterIndex:()=>ya,isPreviousLineEmpty:()=>Ia,makeString:()=>Ma,skip:()=>N,skipEverythingButNewLine:()=>yn,skipInlineComment:()=>pa,skipNewline:()=>xn,skipSpaces:()=>_n,skipToLineEnd:()=>vn,skipTrailingComment:()=>ha,skipWhitespace:()=>gn});function fa(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var pa=fa;function ma(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?yn(e,t):t}var ha=ma;function ga(e,t){let n=null,r=t;for(;r!==n;)n=r,r=_n(e,r),r=pa(e,r),r=ha(e,r),r=xn(e,r);return r}var _a=ga;function va(e,t){let n=null,r=t;for(;r!==n;)n=r,r=vn(e,r),r=pa(e,r),r=_n(e,r);return r=ha(e,r),r=xn(e,r),r!==!1&&Cn(e,r)}var ya=va;function ba(e,t){let n=e.lastIndexOf(`
`);return n===-1?0:rn(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var xa=ba;function Sa(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function Ca(e,t){let n=e.match(RegExp(`(${Sa(t)})+`,`gu`));return n===null?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)}var wa=Ca;function Ta(e,t){let n=_a(e,t);return n===!1?``:e.charAt(n)}var Ea=Ta;function Da(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
`)return!0;return!1}var Oa=Da;function ka(e,t,n={}){return _n(e,n.backwards?t-1:t,n)!==t}var Aa=ka;function ja(e,t,n){let r=t===`"`?`'`:`"`;return t+fe(!1,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}var Ma=ja;function Na(e,t,n){return _a(e,n(t))}function Pa(e,t){return arguments.length===2||typeof t==`number`?_a(e,t):Na(...arguments)}function Fa(e,t,n){return Gn(e,n(t))}function Ia(e,t){return arguments.length===2||typeof t==`number`?Gn(e,t):Fa(...arguments)}function La(e,t,n){return ya(e,n(t))}function Ra(e,t){return arguments.length===2||typeof t==`number`?ya(e,t):La(...arguments)}function za(e,t=1){return async(...n)=>{let r=n[t]??{},i=r.plugins??[];return n[t]={...r,plugins:Array.isArray(i)?i:Object.values(i)},e(...n)}}var Ba=za(ea);async function Va(e,t){let{formatted:n}=await Ba(e,{...t,cursorOffset:-1});return n}async function Ha(e,t){return await Va(e,t)===e}var Ua=za(rr,0),Wa={parse:za(ta),formatAST:za(na),formatDoc:za(ra),printToDoc:za(ia),printDocToString:za(aa)},Ga=Object.create,Ka=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Ja=Object.getOwnPropertyNames,Ya=Object.getPrototypeOf,Xa=Object.prototype.hasOwnProperty,Za=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qa=(e,t)=>{for(var n in t)Ka(e,n,{get:t[n],enumerable:!0})},$a=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of Ja(t))!Xa.call(e,i)&&i!==n&&Ka(e,i,{get:()=>t[i],enumerable:!(r=qa(t,i))||r.enumerable});return e},eo=(e,t,n)=>(n=e==null?{}:Ga(Ya(e)),$a(t||!e||!e.__esModule?Ka(n,`default`,{value:e,enumerable:!0}):n,e)),to=Za(e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var n=class{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}},r=class{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}};function i(e,t){let{line:r,column:i,index:a}=e;return new n(r,i+t,a+t)}var a=`BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED`,o={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:a},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:a}},s={ArrayPattern:`array destructuring pattern`,AssignmentExpression:`assignment expression`,AssignmentPattern:`assignment expression`,ArrowFunctionExpression:`arrow function expression`,ConditionalExpression:`conditional expression`,CatchClause:`catch clause`,ForOfStatement:`for-of statement`,ForInStatement:`for-in statement`,ForStatement:`for-loop`,FormalParameters:`function parameter list`,Identifier:`identifier`,ImportSpecifier:`import specifier`,ImportDefaultSpecifier:`import default specifier`,ImportNamespaceSpecifier:`import namespace specifier`,ObjectPattern:`object destructuring pattern`,ParenthesizedExpression:`parenthesized expression`,RestElement:`rest element`,UpdateExpression:{true:`prefix operation`,false:`postfix operation`},VariableDeclarator:`variable declaration`,YieldExpression:`yield expression`},c=e=>e.type===`UpdateExpression`?s.UpdateExpression[`${e.prefix}`]:s[e.type],l={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:`'arguments' is only allowed in functions and class methods.`,AsyncFunctionInSingleStatementContext:`Async functions can only be declared at the top level or inside a block.`,AwaitBindingIdentifier:`Can not use 'await' as identifier inside an async function.`,AwaitBindingIdentifierInStaticBlock:`Can not use 'await' as identifier inside a static block.`,AwaitExpressionFormalParameter:`'await' is not allowed in async function parameters.`,AwaitUsingNotInAsyncContext:`'await using' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncContext:`'await' is only allowed within async functions and at the top levels of modules.`,AwaitNotInAsyncFunction:`'await' is only allowed within async functions.`,BadGetterArity:`A 'get' accessor must not have any formal parameters.`,BadSetterArity:`A 'set' accessor must have exactly one formal parameter.`,BadSetterRestParameter:`A 'set' accessor function argument must not be a rest parameter.`,ConstructorClassField:`Classes may not have a field named 'constructor'.`,ConstructorClassPrivateField:`Classes may not have a private field named '#constructor'.`,ConstructorIsAccessor:`Class constructor may not be an accessor.`,ConstructorIsAsync:`Constructor can't be an async function.`,ConstructorIsGenerator:`Constructor can't be a generator.`,DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:`Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.`,DecoratorBeforeExport:`Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.`,DecoratorsBeforeAfterExport:`Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.`,DecoratorConstructor:`Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?`,DecoratorExportClass:`Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.`,DecoratorSemicolon:`Decorators must not be followed by a semicolon.`,DecoratorStaticBlock:`Decorators can't be used with a static block.`,DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:`Deleting a private field is not allowed.`,DestructureNamedImport:`ES2015 named imports do not destructure. Use another statement for destructuring after the import.`,DuplicateConstructor:`Duplicate constructor in the same class.`,DuplicateDefaultExport:`Only one default export allowed per module.`,DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:`Redefinition of __proto__ property.`,DuplicateRegExpFlags:`Duplicate regular expression flag.`,DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:`Rest element must be last element.`,EscapedCharNotAnIdentifier:`Invalid Unicode escape.`,ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:`'from' is not allowed as an identifier after 'export default'.`,ForInOfLoopInitializer:({type:e})=>`'${e===`ForInStatement`?`for-in`:`for-of`}' loop variable declaration may not have an initializer.`,ForInUsing:`For-in loop may not start with 'using' declaration.`,ForOfAsync:`The left-hand side of a for-of loop may not be 'async'.`,ForOfLet:`The left-hand side of a for-of loop may not start with 'let'.`,GeneratorInSingleStatementContext:`Generators can only be declared at the top level or inside a block.`,IllegalBreakContinue:({type:e})=>`Unsyntactic ${e===`BreakStatement`?`break`:`continue`}.`,IllegalLanguageModeDirective:`Illegal 'use strict' directive in function with non-simple parameter list.`,IllegalReturn:`'return' outside of function.`,ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:`Trailing comma is disallowed inside import(...) arguments.`,ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?`one argument`:`one or two arguments`}.`,ImportCallNotNewExpression:`Cannot use new with import(...).`,ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:`The 'u' and 'v' regular expression flags cannot be enabled at the same time.`,InvalidBigIntLiteral:`Invalid BigIntLiteral.`,InvalidCodePoint:`Code point out of bounds.`,InvalidCoverInitializedName:`Invalid shorthand property initializer.`,InvalidDecimal:`Invalid decimal.`,InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:`Bad character escape sequence.`,InvalidEscapeSequenceTemplate:`Invalid escape sequence in template.`,InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${c(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${c(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${c(e)}.`,InvalidNumber:`Invalid number.`,InvalidOrMissingExponent:`Floating-point numbers require a valid exponent after the 'e'.`,InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:`Invalid parenthesized assignment pattern.`,InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:`Binding member expression.`,InvalidRecordProperty:`Only properties and spread elements are allowed in record definitions.`,InvalidRestAssignmentPattern:`Invalid rest operator's argument.`,LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:`'let' is disallowed as a lexically bound name.`,LineTerminatorBeforeArrow:`No line break is allowed before '=>'.`,MalformedRegExpFlags:`Invalid regular expression flag.`,MissingClassName:`A class name is required.`,MissingEqInAssignment:`Only '=' operator can be used for specifying default value.`,MissingSemicolon:`Missing semicolon.`,MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(`, `)}.`,MissingUnicodeEscape:`Expecting Unicode escape sequence \\uXXXX.`,MixingCoalesceWithLogical:`Nullish coalescing operator(??) requires parens when mixing with logical operators.`,ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:`Only string literals are allowed as module attribute values.`,ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:`Multiple default clauses.`,NewlineAfterThrow:`Illegal newline after throw.`,NoCatchOrFinally:`Missing catch or finally clause.`,NumberIdentifier:`Identifier directly after number.`,NumericSeparatorInEscapeSequence:`Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.`,ObsoleteAwaitStar:`'await*' has been removed from the async functions proposal. Use Promise.all() instead.`,OptionalChainingNoNew:`Constructors in/after an Optional Chain are not allowed.`,OptionalChainingNoTemplate:`Tagged Template Literals are not allowed in optionalChain.`,OverrideOnConstructor:`'override' modifier cannot appear on a constructor declaration.`,ParamDupe:`Argument name clash.`,PatternHasAccessor:`Object pattern can't contain getter or setter.`,PatternHasMethod:`Object pattern can't contain methods.`,PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:`Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionBarIncorrectStartSyntaxType:`Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,RecordExpressionHashIncorrectStartSyntaxType:`Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,RecordNoProto:`'__proto__' is not allowed in Record expressions.`,RestTrailingComma:`Unexpected trailing comma after rest element.`,SloppyFunction:`In non-strict mode code, functions can only be declared at top level or inside a block.`,SloppyFunctionAnnexB:`In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.`,SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:`Classes may not have static property named prototype.`,SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:`Private fields can't be accessed on super.`,TrailingDecorator:`Decorators must be attached to a class element.`,TupleExpressionBarIncorrectEndSyntaxType:`Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionBarIncorrectStartSyntaxType:`Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.`,TupleExpressionHashIncorrectStartSyntaxType:`Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.`,UnexpectedArgumentPlaceholder:`Unexpected argument placeholder.`,UnexpectedAwaitAfterPipelineBody:`Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.`,UnexpectedDigitAfterHash:`Unexpected digit after hash token.`,UnexpectedImportExport:`'import' and 'export' may only appear at the top level.`,UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:`Leading decorators must be attached to a class declaration.`,UnexpectedLexicalDeclaration:`Lexical declaration cannot appear in a single-statement context.`,UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:`A numeric separator is only allowed between two digits.`,UnexpectedPrivateField:`Unexpected private name.`,UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:`'super' is only allowed in object methods and classes.`,UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:``}${e?`, expected "${e}"`:``}`,UnexpectedTokenUnaryExponentiation:`Illegal expression. Wrap left hand side or entire exponentiation in parentheses.`,UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:`Binding should be performed on object property.`,UnsupportedDecoratorExport:`A decorated export must export a class declaration.`,UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:`Decorators cannot be used to decorate parameters.`,UnsupportedPropertyDecorator:`Decorators cannot be used to decorate object literal properties.`,UnsupportedSuper:`'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).`,UnterminatedComment:`Unterminated comment.`,UnterminatedRegExp:`Unterminated regular expression.`,UnterminatedString:`Unterminated string constant.`,UnterminatedTemplate:`Unterminated template.`,UsingDeclarationExport:`Using declaration cannot be exported.`,UsingDeclarationHasBindingPattern:`Using declaration cannot have destructuring patterns.`,VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:`Can not use 'yield' as identifier inside a generator.`,YieldInParameter:`Yield expression is not allowed in formal parameters.`,ZeroDigitNumericSeparator:`Numeric separator can not be used after leading 0.`},u={StrictDelete:`Deleting local variable in strict mode.`,StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:`In strict mode code, functions can only be declared at top level or inside a block.`,StrictNumericEscape:`The only valid numeric escape in strict mode is '\\0'.`,StrictOctalLiteral:`Legacy octal literals are not allowed in strict mode.`,StrictWith:`'with' in strict mode.`},d=new Set([`ArrowFunctionExpression`,`AssignmentExpression`,`ConditionalExpression`,`YieldExpression`]),f={PipeBodyIsTighter:`Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.`,PipeTopicRequiresHackPipes:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`,PipeTopicUnbound:`Topic reference is unbound; it must be inside a pipe body.`,PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:`Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.`,PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${c({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:`Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.`,PipelineBodySequenceExpression:`Pipeline body may not be a comma-separated sequence expression.`,PipelineHeadSequenceExpression:`Pipeline head should not be a comma-separated sequence expression.`,PipelineTopicUnused:`Pipeline is in topic style but does not use topic reference.`,PrimaryTopicNotAllowed:`Topic reference was used in a lexical context without topic binding.`,PrimaryTopicRequiresSmartPipeline:`Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.`},p=[`toMessage`],m=[`message`];function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function g(e){let{toMessage:r}=e,i=t(e,p);return function e(t,a){let o=SyntaxError();return Object.assign(o,i,{loc:t,pos:t.index}),`missingPlugin`in a&&Object.assign(o,{missingPlugin:a.missingPlugin}),h(o,`clone`,function(r={}){let{line:i,column:o,index:s}=r.loc??t;return e(new n(i,o,s),Object.assign({},a,r.details))}),h(o,`details`,a),Object.defineProperty(o,`message`,{configurable:!0,get(){let e=`${r(a)} (${t.line}:${t.column})`;return this.message=e,e},set(e){Object.defineProperty(this,`message`,{value:e,writable:!0})}}),o}}function _(e,n){if(Array.isArray(e))return t=>_(t,e[0]);let r={};for(let i of Object.keys(e)){let a=e[i],o=typeof a==`string`?{message:()=>a}:typeof a==`function`?{message:a}:a,{message:s}=o,c=t(o,m),l=typeof s==`string`?()=>s:s;r[i]=g(Object.assign({code:`BABEL_PARSER_SYNTAX_ERROR`,reasonCode:i,toMessage:l},n?{syntaxPlugin:n}:{},c))}return r}var v=Object.assign({},_(o),_(l),_(u),_`pipelineOperator`(f)),{defineProperty:ee}=Object,te=(e,t)=>{e&&ee(e,t,{enumerable:!1,value:e[t]})};function y(e){return te(e.loc.start,`index`),te(e.loc.end,`index`),e}var ne=e=>class extends e{parse(){let e=y(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(y)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch{}let r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){let t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,`Literal`)}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let t=e.value;delete e.value,t.type=`Literal`,t.raw=t.extra.raw,t.value=t.extra.expressionValue;let n=e;return n.type=`ExpressionStatement`,n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i),e.body=e.directives.map(e=>this.directiveToStmt(e)).concat(e.body),delete e.directives}pushClassMethod(e,t,n,r,i,a){this.parseMethod(t,n,r,i,a,`ClassMethod`,!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}parsePrivateName(){let e=super.parsePrivateName();return this.getPluginOption(`estree`,`classFeatures`)?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return e=e,delete e.id,e.name=t,e.type=`PrivateIdentifier`,e}isPrivateName(e){return this.getPluginOption(`estree`,`classFeatures`)?e.type===`PrivateIdentifier`:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption(`estree`,`classFeatures`)?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){let n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression=e.body.type!==`BlockStatement`}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();return s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),s.type=`FunctionExpression`,delete s.kind,e.value=s,a===`ClassPrivateMethod`&&(e.computed=!1),this.finishNode(e,`MethodDefinition`)}nameIsConstructor(e){return e.type===`Literal`?e.value===`constructor`:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.type=`PropertyDefinition`),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return this.getPluginOption(`estree`,`classFeatures`)&&(t.type=`PropertyDefinition`,t.computed=!1),t}parseObjectMethod(e,t,n,r,i){let a=super.parseObjectMethod(e,t,n,r,i);return a&&(a.type=`Property`,a.kind===`method`&&(a.kind=`init`),a.shorthand=!1),a}parseObjectProperty(e,t,n,r){let i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind=`init`,i.type=`Property`),i}isValidLVal(e,t,n){return e===`Property`?`value`:super.isValidLVal(e,t,n)}isAssignable(e,t){return e!=null&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(e!=null&&this.isObjectProperty(e)){let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){e.type===`Property`&&(e.kind===`get`||e.kind===`set`)?this.raise(v.PatternHasAccessor,e.key):e.type===`Property`&&e.method?this.raise(v.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n)}finishCallExpression(e,t){let n=super.finishCallExpression(e,t);return n.callee.type===`Import`&&(n.type=`ImportExpression`,n.source=n.arguments[0],(this.hasPlugin(`importAttributes`)||this.hasPlugin(`importAssertions`))&&(n.options=n.arguments[1]??null,n.attributes=n.arguments[1]??null),delete n.arguments,delete n.callee),n}toReferencedArguments(e){e.type!==`ImportExpression`&&super.toReferencedArguments(e)}parseExport(e,t){let n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case`ExportAllDeclaration`:r.exported=null;break;case`ExportNamedDeclaration`:r.specifiers.length===1&&r.specifiers[0].type===`ExportNamespaceSpecifier`&&(r.type=`ExportAllDeclaration`,r.exported=r.specifiers[0].exported,delete r.specifiers);case`ExportDefaultDeclaration`:{let{declaration:e}=r;e?.type===`ClassDeclaration`&&e.decorators?.length>0&&e.start===r.start&&this.resetStartLocation(r,n)}break}return r}parseSubscript(e,t,n,r){let i=super.parseSubscript(e,t,n,r);if(r.optionalChainMember){if((i.type===`OptionalMemberExpression`||i.type===`OptionalCallExpression`)&&(i.type=i.type.substring(8)),r.stop){let e=this.startNodeAtNode(i);return e.expression=i,this.finishNode(e,`ChainExpression`)}}else (i.type===`MemberExpression`||i.type===`CallExpression`)&&(i.optional=!1);return i}isOptionalMemberExpression(e){return e.type===`ChainExpression`?e.expression.type===`MemberExpression`:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return e.type===`ChainExpression`&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type===`Property`&&e.kind===`init`&&!e.method}isObjectMethod(e){return e.type===`Property`&&(e.method||e.kind===`get`||e.kind===`set`)}finishNodeAt(e,t,n){return y(super.finishNodeAt(e,t,n))}resetStartLocation(e,t){super.resetStartLocation(e,t),y(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),y(e)}},re=class{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}},b={brace:new re(`{`),j_oTag:new re(`<tag`),j_cTag:new re(`</tag`),j_expr:new re(`<tag>...</tag>`,!0)};b.template=new re("`",!0);var x=!0,S=!0,ie=!0,ae=!0,oe=!0,se=!0,ce=class{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop==null?null:t.binop,this.updateContext=null}},le=new Map;function C(e,t={}){t.keyword=e;let n=w(e,t);return le.set(e,n),n}function ue(e,t){return w(e,{beforeExpr:x,binop:t})}var de=-1,fe=[],pe=[],me=[],he=[],ge=[],_e=[];function w(e,t={}){return++de,pe.push(e),me.push(t.binop??-1),he.push(t.beforeExpr??!1),ge.push(t.startsExpr??!1),_e.push(t.prefix??!1),fe.push(new ce(e,t)),de}function T(e,t={}){return++de,le.set(e,de),pe.push(e),me.push(t.binop??-1),he.push(t.beforeExpr??!1),ge.push(t.startsExpr??!1),_e.push(t.prefix??!1),fe.push(new ce(`name`,t)),de}var ve={bracketL:w(`[`,{beforeExpr:x,startsExpr:S}),bracketHashL:w(`#[`,{beforeExpr:x,startsExpr:S}),bracketBarL:w(`[|`,{beforeExpr:x,startsExpr:S}),bracketR:w(`]`),bracketBarR:w(`|]`),braceL:w(`{`,{beforeExpr:x,startsExpr:S}),braceBarL:w(`{|`,{beforeExpr:x,startsExpr:S}),braceHashL:w(`#{`,{beforeExpr:x,startsExpr:S}),braceR:w(`}`),braceBarR:w(`|}`),parenL:w(`(`,{beforeExpr:x,startsExpr:S}),parenR:w(`)`),comma:w(`,`,{beforeExpr:x}),semi:w(`;`,{beforeExpr:x}),colon:w(`:`,{beforeExpr:x}),doubleColon:w(`::`,{beforeExpr:x}),dot:w(`.`),question:w(`?`,{beforeExpr:x}),questionDot:w(`?.`),arrow:w(`=>`,{beforeExpr:x}),template:w(`template`),ellipsis:w(`...`,{beforeExpr:x}),backQuote:w("`",{startsExpr:S}),dollarBraceL:w("${",{beforeExpr:x,startsExpr:S}),templateTail:w("...`",{startsExpr:S}),templateNonTail:w("...${",{beforeExpr:x,startsExpr:S}),at:w(`@`),hash:w(`#`,{startsExpr:S}),interpreterDirective:w(`#!...`),eq:w(`=`,{beforeExpr:x,isAssign:ae}),assign:w(`_=`,{beforeExpr:x,isAssign:ae}),slashAssign:w(`_=`,{beforeExpr:x,isAssign:ae}),xorAssign:w(`_=`,{beforeExpr:x,isAssign:ae}),moduloAssign:w(`_=`,{beforeExpr:x,isAssign:ae}),incDec:w(`++/--`,{prefix:oe,postfix:se,startsExpr:S}),bang:w(`!`,{beforeExpr:x,prefix:oe,startsExpr:S}),tilde:w(`~`,{beforeExpr:x,prefix:oe,startsExpr:S}),doubleCaret:w(`^^`,{startsExpr:S}),doubleAt:w(`@@`,{startsExpr:S}),pipeline:ue(`|>`,0),nullishCoalescing:ue(`??`,1),logicalOR:ue(`||`,1),logicalAND:ue(`&&`,2),bitwiseOR:ue(`|`,3),bitwiseXOR:ue(`^`,4),bitwiseAND:ue(`&`,5),equality:ue(`==/!=/===/!==`,6),lt:ue(`</>/<=/>=`,7),gt:ue(`</>/<=/>=`,7),relational:ue(`</>/<=/>=`,7),bitShift:ue(`<</>>/>>>`,8),bitShiftL:ue(`<</>>/>>>`,8),bitShiftR:ue(`<</>>/>>>`,8),plusMin:w(`+/-`,{beforeExpr:x,binop:9,prefix:oe,startsExpr:S}),modulo:w(`%`,{binop:10,startsExpr:S}),star:w(`*`,{binop:10}),slash:ue(`/`,10),exponent:w(`**`,{beforeExpr:x,binop:11,rightAssociative:!0}),_in:C(`in`,{beforeExpr:x,binop:7}),_instanceof:C(`instanceof`,{beforeExpr:x,binop:7}),_break:C(`break`),_case:C(`case`,{beforeExpr:x}),_catch:C(`catch`),_continue:C(`continue`),_debugger:C(`debugger`),_default:C(`default`,{beforeExpr:x}),_else:C(`else`,{beforeExpr:x}),_finally:C(`finally`),_function:C(`function`,{startsExpr:S}),_if:C(`if`),_return:C(`return`,{beforeExpr:x}),_switch:C(`switch`),_throw:C(`throw`,{beforeExpr:x,prefix:oe,startsExpr:S}),_try:C(`try`),_var:C(`var`),_const:C(`const`),_with:C(`with`),_new:C(`new`,{beforeExpr:x,startsExpr:S}),_this:C(`this`,{startsExpr:S}),_super:C(`super`,{startsExpr:S}),_class:C(`class`,{startsExpr:S}),_extends:C(`extends`,{beforeExpr:x}),_export:C(`export`),_import:C(`import`,{startsExpr:S}),_null:C(`null`,{startsExpr:S}),_true:C(`true`,{startsExpr:S}),_false:C(`false`,{startsExpr:S}),_typeof:C(`typeof`,{beforeExpr:x,prefix:oe,startsExpr:S}),_void:C(`void`,{beforeExpr:x,prefix:oe,startsExpr:S}),_delete:C(`delete`,{beforeExpr:x,prefix:oe,startsExpr:S}),_do:C(`do`,{isLoop:ie,beforeExpr:x}),_for:C(`for`,{isLoop:ie}),_while:C(`while`,{isLoop:ie}),_as:T(`as`,{startsExpr:S}),_assert:T(`assert`,{startsExpr:S}),_async:T(`async`,{startsExpr:S}),_await:T(`await`,{startsExpr:S}),_defer:T(`defer`,{startsExpr:S}),_from:T(`from`,{startsExpr:S}),_get:T(`get`,{startsExpr:S}),_let:T(`let`,{startsExpr:S}),_meta:T(`meta`,{startsExpr:S}),_of:T(`of`,{startsExpr:S}),_sent:T(`sent`,{startsExpr:S}),_set:T(`set`,{startsExpr:S}),_source:T(`source`,{startsExpr:S}),_static:T(`static`,{startsExpr:S}),_using:T(`using`,{startsExpr:S}),_yield:T(`yield`,{startsExpr:S}),_asserts:T(`asserts`,{startsExpr:S}),_checks:T(`checks`,{startsExpr:S}),_exports:T(`exports`,{startsExpr:S}),_global:T(`global`,{startsExpr:S}),_implements:T(`implements`,{startsExpr:S}),_intrinsic:T(`intrinsic`,{startsExpr:S}),_infer:T(`infer`,{startsExpr:S}),_is:T(`is`,{startsExpr:S}),_mixins:T(`mixins`,{startsExpr:S}),_proto:T(`proto`,{startsExpr:S}),_require:T(`require`,{startsExpr:S}),_satisfies:T(`satisfies`,{startsExpr:S}),_keyof:T(`keyof`,{startsExpr:S}),_readonly:T(`readonly`,{startsExpr:S}),_unique:T(`unique`,{startsExpr:S}),_abstract:T(`abstract`,{startsExpr:S}),_declare:T(`declare`,{startsExpr:S}),_enum:T(`enum`,{startsExpr:S}),_module:T(`module`,{startsExpr:S}),_namespace:T(`namespace`,{startsExpr:S}),_interface:T(`interface`,{startsExpr:S}),_type:T(`type`,{startsExpr:S}),_opaque:T(`opaque`,{startsExpr:S}),name:w(`name`,{startsExpr:S}),string:w(`string`,{startsExpr:S}),num:w(`num`,{startsExpr:S}),bigint:w(`bigint`,{startsExpr:S}),decimal:w(`decimal`,{startsExpr:S}),regexp:w(`regexp`,{startsExpr:S}),privateName:w(`#name`,{startsExpr:S}),eof:w(`eof`),jsxName:w(`jsxName`),jsxText:w(`jsxText`,{beforeExpr:!0}),jsxTagStart:w(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:w(`jsxTagEnd`),placeholder:w(`%%`,{startsExpr:!0})};function E(e){return e>=93&&e<=132}function ye(e){return e<=92}function be(e){return e>=58&&e<=132}function xe(e){return e>=58&&e<=136}function Se(e){return he[e]}function Ce(e){return ge[e]}function we(e){return e>=29&&e<=33}function Te(e){return e>=129&&e<=131}function Ee(e){return e>=90&&e<=92}function De(e){return e>=58&&e<=92}function Oe(e){return e>=39&&e<=59}function ke(e){return e===34}function Ae(e){return _e[e]}function je(e){return e>=121&&e<=123}function Me(e){return e>=124&&e<=130}function Ne(e){return pe[e]}function D(e){return me[e]}function Pe(e){return e===57}function Fe(e){return e>=24&&e<=25}function O(e){return fe[e]}fe[8].updateContext=e=>{e.pop()},fe[5].updateContext=fe[7].updateContext=fe[23].updateContext=e=>{e.push(b.brace)},fe[22].updateContext=e=>{e[e.length-1]===b.template?e.pop():e.push(b.template)},fe[142].updateContext=e=>{e.push(b.j_expr,b.j_oTag)};var Ie=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,Le=`‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,k=RegExp(`[`+Ie+`]`),Re=RegExp(`[`+Ie+Le+`]`);Ie=Le=null;var ze=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,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,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,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,757,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],Be=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Ve(e,t){let n=65536;for(let r=0,i=t.length;r<i;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function He(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&k.test(String.fromCharCode(e)):Ve(e,ze)}function Ue(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Re.test(String.fromCharCode(e)):Ve(e,ze)||Ve(e,Be)}var We={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`.split(`.`),strict:[`implements`,`interface`,`let`,`package`,`private`,`protected`,`public`,`static`,`yield`],strictBind:[`eval`,`arguments`]},Ge=new Set(We.keyword),Ke=new Set(We.strict),qe=new Set(We.strictBind);function Je(e,t){return t&&e===`await`||e===`enum`}function Ye(e,t){return Je(e,t)||Ke.has(e)}function Xe(e){return qe.has(e)}function Ze(e,t){return Ye(e,t)||Xe(e)}function Qe(e){return Ge.has(e)}function $e(e,t,n){return e===64&&t===64&&He(n)}var et=new Set(`break.case.catch.continue.debugger.default.do.else.finally.for.function.if.return.switch.throw.try.var.const.while.with.new.this.super.class.extends.export.import.null.true.false.in.instanceof.typeof.void.delete.implements.interface.let.package.private.protected.public.static.yield.eval.arguments.enum.await`.split(`.`));function tt(e){return et.has(e)}var nt=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName=``,this.flags=e}},rt=class{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new nt(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,n){let r=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;t&16?i|=4:(r.firstLexicalName||=e,i|=2),r.names.set(e,i),t&8&&this.maybeExportDefined(r,e)}else if(t&4)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&387));--i);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(v.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(n&1))return!1;if(n&8)return e.names.has(t);let r=e.names.get(t);return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&387)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&451&&!(t&4))return t}}},it=class extends nt{constructor(...e){super(...e),this.declareFunctions=new Set}},at=class extends rt{createScope(e){return new it(e)}declareName(e,t,n){let r=this.currentScope();if(t&2048){this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(n&2048&&!e.declareFunctions.has(t)){let n=e.names.get(t);return(n&4)>0||(n&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},ot=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if(typeof e==`string`)return this.plugins.has(e);{let[t,n]=e;if(!this.hasPlugin(t))return!1;let r=this.plugins.get(t);for(let e of Object.keys(n))if(r?.[e]!==n[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function st(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function ct(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function lt(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function ut(e,t,n){let r=null,i=t.length;for(;r===null&&i>0;)r=t[--i];r===null||r.start>n.start?lt(e,n.comments):st(r,n.comments)}var dt=class extends ot{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,n=t.length;if(n===0)return;let r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);let{start:a}=e;for(;r>=0;r--){let n=t[r],i=n.end;if(i>a)n.containingNode=e,this.finalizeComment(n),t.splice(r,1);else{i===a&&(n.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&st(e.leadingNode,t),e.trailingNode!==null&&ct(e.trailingNode,t);else{let{containingNode:n,start:r}=e;if(this.input.charCodeAt(r-1)===44)switch(n.type){case`ObjectExpression`:case`ObjectPattern`:case`RecordExpression`:ut(n,n.properties,e);break;case`CallExpression`:case`OptionalCallExpression`:ut(n,n.arguments,e);break;case`FunctionDeclaration`:case`FunctionExpression`:case`ArrowFunctionExpression`:case`ObjectMethod`:case`ClassMethod`:case`ClassPrivateMethod`:ut(n,n.params,e);break;case`ArrayExpression`:case`ArrayPattern`:case`TupleExpression`:ut(n,n.elements,e);break;case`ExportNamedDeclaration`:case`ImportDeclaration`:ut(n,n.specifiers,e);break;default:lt(n,t)}else lt(n,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:n}=t;if(n===0)return;let r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:t}=this.state,{length:n}=t;n!==0&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}takeSurroundingComments(e,t,n){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o<t)break}}},ft=/\r\n?|[\n\u2028\u2029]/,pt=new RegExp(ft.source,`g`);function mt(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var ht=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,gt=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,_t=RegExp(`(?=(`+gt.source+`))\\1(?=[\\n\\r\\u2028\\u2029]|\\/\\*(?!.*?\\*\\/)|$)`,`y`);function vt(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var yt=class e{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[b.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:t,startLine:r,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:t===`module`,this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new n(r,i,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},bt=function(e){return e>=48&&e<=57},xt={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},St={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Ct(e,t,n,r,i,a){let o=n,s=r,c=i,l=``,u=null,d=n,{length:f}=t;for(;;){if(n>=f){a.unterminated(o,s,c),l+=t.slice(d,n);break}let p=t.charCodeAt(n);if(A(e,p,t,n)){l+=t.slice(d,n);break}if(p===92){l+=t.slice(d,n);let o=wt(t,n,r,i,e===`template`,a);o.ch===null&&!u?u={pos:n,lineStart:r,curLine:i}:l+=o.ch,{pos:n,lineStart:r,curLine:i}=o,d=n}else p===8232||p===8233?(++n,++i,r=n):p===10||p===13?e===`template`?(l+=t.slice(d,n)+`
`,++n,p===13&&t.charCodeAt(n)===10&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function A(e,t,n,r){return e===`template`?t===96||t===36&&n.charCodeAt(r+1)===123:t===(e===`double`?34:39)}function wt(e,t,n,r,i,a){let o=!i;t++;let s=e=>({pos:t,ch:e,lineStart:n,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return s(`
`);case 114:return s(`\r`);case 120:{let i;return{code:i,pos:t}=Tt(e,t,n,r,2,!1,o,a),s(i===null?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=Dt(e,t,n,r,o,a),s(i===null?null:String.fromCodePoint(i))}case 116:return s(`	`);case 98:return s(`\b`);case 118:return s(`\v`);case 102:return s(`\f`);case 13:e.charCodeAt(t)===10&&++t;case 10:n=t,++r;case 8232:case 8233:return s(``);case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){let o=t-1,c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;let u=e.charCodeAt(t);if(c!==`0`||u===56||u===57){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}function Tt(e,t,n,r,i,a,o,s){let c=t,l;return{n:l,pos:t}=Et(e,t,n,r,16,i,a,!1,s,!o),l===null&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}function Et(e,t,n,r,i,a,o,s,c,l){let u=t,d=i===16?xt.hex:xt.decBinOct,f=i===16?St.hex:i===10?St.dec:i===8?St.oct:St.bin,p=!1,m=0;for(let u=0,h=a??1/0;u<h;++u){let a=e.charCodeAt(t),u;if(a===95&&s!==`bail`){let i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(s){if(Number.isNaN(a)||!f(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}}else{if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:bt(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else if(o)u=0,p=!0;else break}++t,m=m*i+u}return t===u||a!=null&&t-u!==a||p?{n:null,pos:t}:{n:m,pos:t}}function Dt(e,t,n,r,i,a){let o=e.charCodeAt(t),s;if(o===123){if(++t,{code:s,pos:t}=Tt(e,t,n,r,e.indexOf(`}`,t)-t,!0,i,a),++t,s!==null&&s>1114111)if(i)a.invalidCodePoint(t,n,r);else return{code:null,pos:t}}else ({code:s,pos:t}=Tt(e,t,n,r,4,!1,i,a));return{code:s,pos:t}}function Ot(e,t,r){return new n(r,e-t,e)}var kt=new Set([103,109,115,105,121,117,100,118]),At=class{constructor(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,this.loc=new r(e.startLoc,e.endLoc)}},jt=class extends dt{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>this.options.errorRecovery?(this.raise(v.InvalidDigit,Ot(e,t,n),{radix:r}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(v.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(v.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(v.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(v.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(v.StrictNumericEscape,Ot(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(v.UnterminatedString,Ot(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(v.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(v.UnterminatedTemplate,Ot(e,t,n))}}),this.state=new yt,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new At(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return ht.lastIndex=e,ht.test(this.input)?ht.lastIndex:e}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return gt.lastIndex=e,gt.test(this.input)?gt.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)==55296&&++e<this.input.length){let n=this.input.charCodeAt(e);(n&64512)==56320&&(t=65536+((t&1023)<<10)+(n&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let n=this.state.pos,i=this.input.indexOf(e,n+2);if(i===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,pt.lastIndex=n+2;pt.test(this.input)&&pt.lastIndex<=i;)++this.state.curLine,this.state.lineStart=pt.lastIndex;if(this.isLookahead)return;let a={type:`CommentBlock`,value:this.input.slice(n+2,i),start:n,end:i+e.length,loc:new r(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(a),a}skipLineComment(e){let t=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!mt(i)&&++this.state.pos<this.length;)i=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let a=this.state.pos,o={type:`CommentLine`,value:this.input.slice(t+e,a),start:t,end:a,loc:new r(n,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let e=this.state.pos,t=[];e:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){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 e=this.skipBlockComment(`*/`);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e));break}case 47:{let e=this.skipLineComment(2);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e));break}default:break e}break;default:if(vt(n))++this.state.pos;else if(n===45&&!this.inModule&&this.options.annexB){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let e=this.skipLineComment(3);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break e}else if(n===60&&!this.inModule&&this.options.annexB){let e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){let e=this.skipLineComment(4);e!==void 0&&(this.addComment(e),this.options.attachComment&&t.push(e))}else break e}else break e}}if(t.length>0){let n={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(v.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin(`recordAndTuple`)){if(this.expectPlugin(`recordAndTuple`),this.getPluginOption(`recordAndTuple`,`syntaxType`)===`bar`)throw this.raise(t===123?v.RecordExpressionHashIncorrectStartSyntaxType:v.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,t===123?this.finishToken(7):this.finishToken(1)}else He(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===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 e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!mt(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let n=this.input.slice(t+2,this.state.pos);return this.finishToken(28,n),!0}readToken_mult_modulo(e){let t=e===42?55:54,n=1,r=this.input.charCodeAt(this.state.pos+1);e===42&&r===42&&(n++,r=this.input.charCodeAt(this.state.pos+2),t=57),r===61&&!this.state.inType&&(n++,t=e===37?33:30),this.finishOp(t,n)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin(`recordAndTuple`)&&t===125){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin(`recordAndTuple`)&&t===93){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===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(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin(`recordAndTuple`)&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption(`recordAndTuple`,`syntaxType`)!==`bar`)throw this.raise(v.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(v.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 e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(He(e)){this.readWord(e);return}}throw this.raise(v.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,n,r,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(v.UnterminatedRegExp,i(e,1));let t=this.input.charCodeAt(a);if(mt(t))throw this.raise(v.UnterminatedRegExp,i(e,1));if(n)n=!1;else{if(t===91)r=!0;else if(t===93&&r)r=!1;else if(t===47&&!r)break;n=t===92}}let o=this.input.slice(t,a);++a;let s=``,c=()=>i(e,a+2-t);for(;a<this.length;){let e=this.codePointAtPos(a),t=String.fromCharCode(e);if(kt.has(e))e===118?s.includes(`u`)&&this.raise(v.IncompatibleRegExpUVFlags,c()):e===117&&s.includes(`v`)&&this.raise(v.IncompatibleRegExpUVFlags,c()),s.includes(t)&&this.raise(v.DuplicateRegExpFlags,c());else if(Ue(e)||e===92)this.raise(v.MalformedRegExpFlags,c());else break;++a,s+=t}this.state.pos=a,this.finishToken(137,{pattern:o,flags:s})}readInt(e,t,n=!1,r=!0){let{n:i,pos:a}=Et(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1);return this.state.pos=a,i}readRadixNumber(e){let t=this.state.curPosition(),n=!1;this.state.pos+=2;let r=this.readInt(e);r??this.raise(v.InvalidDigit,i(t,2),{radix:e});let a=this.input.charCodeAt(this.state.pos);if(a===110)++this.state.pos,n=!0;else if(a===109)throw this.raise(v.InvalidDecimal,t);if(He(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());if(n){let e=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,``);this.finishToken(135,e);return}this.finishToken(134,r)}readNumber(e){let t=this.state.pos,n=this.state.curPosition(),r=!1,a=!1,o=!1,s=!1,c=!1;!e&&this.readInt(10)===null&&this.raise(v.InvalidNumber,this.state.curPosition());let l=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(l){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(v.StrictOctalLiteral,n),!this.state.strict){let t=e.indexOf(`_`);t>0&&this.raise(v.ZeroDigitNumericSeparator,i(n,t))}c=l&&!/[89]/.test(e)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!c&&(++this.state.pos,this.readInt(10),r=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!c&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(v.InvalidOrMissingExponent,n),r=!0,s=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((r||l)&&this.raise(v.InvalidBigIntLiteral,n),++this.state.pos,a=!0),u===109&&(this.expectPlugin(`decimal`,this.state.curPosition()),(s||l)&&this.raise(v.InvalidDecimal,n),++this.state.pos,o=!0),He(this.codePointAtPos(this.state.pos)))throw this.raise(v.NumberIdentifier,this.state.curPosition());let d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,``);if(a){this.finishToken(135,d);return}if(o){this.finishToken(136,d);return}let f=c?parseInt(d,8):parseFloat(d);this.finishToken(134,f)}readCodePoint(e){let{code:t,pos:n}=Dt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){let{str:t,pos:n,curLine:r,lineStart:i}=Ct(e===34?`double`:`single`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(133,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=Ct(`template`,this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new n(r.curLine,r.pos-r.lineStart,r.pos)),this.input.codePointAt(i)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t=``,n=this.state.pos,r=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(Ue(e))this.state.pos+=e<=65535?1:2;else if(e===92){this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===n?He:Ue;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(v.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;let a=this.readCodePoint(!0);a!==null&&(i(a)||this.raise(v.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(a)),r=this.state.pos}else break}return t+this.input.slice(r,this.state.pos)}readWord(e){let t=this.readWord1(e),n=le.get(t);n===void 0?this.finishToken(132,t):this.finishToken(n,Ne(n))}checkKeywordEscapes(){let{type:e}=this.state;De(e)&&this.state.containsEsc&&this.raise(v.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Ne(e)})}raise(e,t,r={}){let i=e(t instanceof n?t:t.loc.start,r);if(!this.options.errorRecovery)throw i;return this.isLookahead||this.state.errors.push(i),i}raiseOverwrite(e,t,r={}){let i=t instanceof n?t:t.loc.start,a=i.index,o=this.state.errors;for(let t=o.length-1;t>=0;t--){let n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(v.UnexpectedToken,e??this.state.startLoc,{expected:t?Ne(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(v.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(v.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,Ot(t,n,r))}}},Mt=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Nt=class{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Mt)}exit(){let e=this.stack.pop(),t=this.current();for(let[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(v.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){let{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=r.has(e);if(t&3){let n=o&&i.get(e);if(n){let r=n&4,a=t&4;o=(n&3)==(t&3)||r!==a,o||i.delete(e)}else o||i.set(e,t)}o&&this.parser.raise(v.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(v.InvalidPrivateFieldResolution,t,{identifierName:e})}},Pt=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Ft=class extends Pt{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){let n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},It=class{constructor(e){this.parser=void 0,this.stack=[new Pt],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let n=t.loc.start,{stack:r}=this,i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(e,n);else return;a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){let{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(r.canBeArrowParameterDeclaration())r.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)r.type===2&&r.recordDeclarationError(v.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}};function Lt(){return new Pt(3)}function Rt(){return new Ft(1)}function zt(){return new Ft(2)}function Bt(){return new Pt}var Vt=class{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ht(e,t){return(e?2:0)|(t?1:0)}var Ut=class extends jt{addExtra(e,t,n,r=!0){if(!e)return;let i=e.extra=e.extra||{};r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){let n=e+t.length;if(this.input.slice(e,n)===t){let e=this.input.charCodeAt(n);return!(Ue(e)||(e&64512)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return this.isContextual(e)?(this.next(),!0):!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return ft.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return _t.lastIndex=this.state.end,_t.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(v.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let n={node:null};try{let r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){let r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a}=e,o=!!n||!!r||!!a||!!i;if(!t)return o;n!=null&&this.raise(v.InvalidCoverInitializedName,n),r!=null&&this.raise(v.DuplicateProto,r),i!=null&&this.raise(v.UnexpectedPrivateField,i),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return xe(this.state.type)}isPrivateName(e){return e.type===`PrivateName`}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type===`MemberExpression`||e.type===`OptionalMemberExpression`)&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type===`ObjectProperty`}isObjectMethod(e){return e.type===`ObjectMethod`}initializeScopes(e=this.options.sourceType===`module`){let t=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let r=this.inModule;this.inModule=e;let i=this.scope;this.scope=new(this.getScopeHandler())(this,e);let a=this.prodParam;this.prodParam=new Vt;let o=this.classScope;this.classScope=new Nt(this);let s=this.expressionScope;return this.expressionScope=new It(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=s}}enterInitialScopes(){let e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;t!==null&&this.expectPlugin(`destructuringPrivate`,t)}},Wt=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},Gt=class{constructor(e,t,n){this.type=``,this.start=t,this.end=0,this.loc=new r(n),e!=null&&e.options.ranges&&(this.range=[t,0]),e!=null&&e.filename&&(this.loc.filename=e.filename)}},Kt=Gt.prototype;Kt.__clone=function(){let e=new Gt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n<r;n++){let r=t[n];r!==`leadingComments`&&r!==`trailingComments`&&r!==`innerComments`&&(e[r]=this[r])}return e};function qt(e){return j(e)}function j(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o,name:s}=e,c=Object.create(Kt);return c.type=t,c.start=n,c.end=r,c.loc=i,c.range=a,c.extra=o,c.name=s,t===`Placeholder`&&(c.expectedNode=e.expectedNode),c}function Jt(e){let{type:t,start:n,end:r,loc:i,range:a,extra:o}=e;if(t===`Placeholder`)return qt(e);let s=Object.create(Kt);return s.type=t,s.start=n,s.end=r,s.loc=i,s.range=a,e.raw===void 0?s.extra=o:s.raw=e.raw,s.value=e.value,s}var Yt=class extends Ut{startNode(){let e=this.state.startLoc;return new Gt(this,e.index,e)}startNodeAt(e){return new Gt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,n){return e.type=t,e.end=n.index,e.loc.end=n,this.options.ranges&&(e.range[1]=n.index),this.options.attachComment&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,this.options.ranges&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}},Xt=new Set([`_`,`any`,`bool`,`boolean`,`empty`,`extends`,`false`,`interface`,`mixed`,`null`,`number`,`static`,`string`,`true`,`typeof`,`void`]),M=_`flow`({AmbiguousConditionalArrow:`Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.`,AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:`Explicit inexact syntax cannot appear inside an explicit exact object type.`,InexactInsideNonObject:`Explicit inexact syntax cannot appear in class or interface definitions.`,InexactVariance:`Explicit inexact syntax cannot have variance.`,InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:`Type parameter declaration needs a default, since a preceding type parameter declaration has a default.`,NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:`Cannot have a flow comment inside another flow comment.`,PatternIsOptional:Object.assign({message:`A binding pattern parameter cannot be optional in an implementation signature.`},{reasonCode:`OptionalBindingPattern`}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:`Spread properties cannot have variance.`,ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:`The type cast expression is expected to be wrapped with parenthesis.`,UnexpectedExplicitInexactInObject:`Explicit inexact syntax must appear at the end of an inexact object.`,UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:`Spread operator cannot appear in class or interface definitions.`,UnexpectedSubtractionOperand:`Unexpected token, expected "number" or "bigint".`,UnexpectedTokenAfterTypeParameter:`Expected an arrow function after this type parameter declaration.`,UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:`Only declares and type imports are allowed inside declare module.`,UnterminatedFlowComment:`Unterminated flow-comment.`});function Zt(e){return e.type===`DeclareExportAllDeclaration`||e.type===`DeclareExportDeclaration`&&(!e.declaration||e.declaration.type!==`TypeAlias`&&e.declaration.type!==`InterfaceDeclaration`)}function Qt(e){return e.importKind===`type`||e.importKind===`typeof`}var $t={const:`declare export var`,let:`declare export var`,type:`export type`,interface:`export interface`};function en(e,t){let n=[],r=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?n:r).push(e[i]);return[n,r]}var tn=/\*?\s*@((?:no)?flow)\b/,nn=e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return at}shouldParseTypes(){return this.getPluginOption(`flow`,`all`)||this.flowPragma===`flow`}shouldParseEnums(){return!!this.getPluginOption(`flow`,`enums`)}finishToken(e,t){e!==133&&e!==13&&e!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(this.flowPragma===void 0){let t=tn.exec(e.value);if(t)if(t[1]===`flow`)this.flowPragma=`flow`;else if(t[1]===`noflow`)this.flowPragma=`noflow`;else throw Error(`Unexpected flow pragma`)}super.addComment(e)}flowParseTypeInitialiser(e){let t=this.state.inType;this.state.inType=!0,this.expect(e||14);let n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){let e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(M.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,`DeclaredPredicate`)):this.finishNode(e,`InferredPredicate`)}flowParseTypeAndPredicateInitialiser(){let e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,`DeclareClass`)}flowParseDeclareFunction(e){this.next();let t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,`FunctionTypeAnnotation`),t.typeAnnotation=this.finishNode(r,`TypeAnnotation`),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,`DeclareFunction`)}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(M.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,`DeclareVariable`)}flowParseDeclareModule(e){this.scope.enter(0),this.match(133)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();let t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(M.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,M.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),n.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,`BlockStatement`);let r=null,i=!1;return n.forEach(e=>{Zt(e)?(r===`CommonJS`&&this.raise(M.AmbiguousDeclareModuleKind,e),r=`ES`):e.type===`DeclareModuleExports`&&(i&&this.raise(M.DuplicateDeclareModuleExports,e),r===`ES`&&this.raise(M.AmbiguousDeclareModuleKind,e),r=`CommonJS`,i=!0)}),e.kind=r||`CommonJS`,this.finishNode(e,`DeclareModule`)}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){let e=this.state.value;throw this.raise(M.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:$t[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,`DeclareExportDeclaration`);if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return e=this.parseExport(e,null),e.type===`ExportNamedDeclaration`&&(e.type=`ExportDeclaration`,e.default=!1,delete e.exportKind),e.type=`Declare`+e.type,e;this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,`DeclareModuleExports`)}flowParseDeclareTypeAlias(e){this.next();let t=this.flowParseTypeAlias(e);return t.type=`DeclareTypeAlias`,t}flowParseDeclareOpaqueType(e){this.next();let t=this.flowParseOpaqueType(e,!0);return t.type=`DeclareOpaqueType`,t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,`DeclareInterface`)}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do e.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do e.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){let e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,`InterfaceExtends`)}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,`InterfaceDeclaration`)}checkNotUnderscore(e){e===`_`&&this.raise(M.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){Xt.has(e)&&this.raise(n?M.AssignReservedType:M.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,`TypeAlias`)}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,`OpaqueType`)}flowParseTypeParameter(e=!1){let t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(M.MissingTypeParamDefault,t),this.finishNode(n,`TypeParameter`)}flowParseTypeParameterDeclaration(){let e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let n=!1;do{let e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,`TypeParameterDeclaration`)}flowParseTypeParameterInstantiation(){let e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseTypeParameterInstantiationCallOrNew(){let e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,`TypeParameterInstantiation`)}flowParseInterfaceType(){let e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do e.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,`InterfaceTypeAnnotation`)}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,this.lookahead().type===14?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,`ObjectTypeIndexer`)}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,`ObjectTypeInternalSlot`)}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,`FunctionTypeAnnotation`)}flowParseObjectTypeCallProperty(e,t){let n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,`ObjectTypeCallProperty`)}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){let a=this.state.inType;this.state.inType=!0;let o=this.startNode();o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let s,c,l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null,u=this.startNode();if(r&&this.isContextual(118)){let t=this.lookahead();t.type!==14&&t.type!==17&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){let e=this.lookahead();e.type!==14&&e.type!==17&&(this.next(),t=!0)}let d=this.flowParseVariance();if(this.eat(0))a!=null&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))a!=null&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e=`init`;(this.isContextual(99)||this.isContextual(104))&&xe(this.lookahead().type)&&(e=this.state.value,this.next());let r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,i??!c);r===null?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),s&&!this.match(8)&&!this.match(9)&&this.raise(M.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);let u=this.finishNode(o,`ObjectTypeAnnotation`);return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(M.InexactInsideExact,this.state.lastTokStartLoc):this.raise(M.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(M.InexactVariance,r),null):(a||this.raise(M.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),r&&this.raise(M.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,`ObjectTypeSpreadProperty`));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=n!=null,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,n!=null&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),(i===`get`||i===`set`)&&this.flowCheckGetterSetterParams(e),!a&&e.key.name===`constructor`&&e.value.this&&this.raise(M.ThisParamBannedInConstructor,e.value.this)):(i!==`init`&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,`ObjectTypeProperty`)}}flowCheckGetterSetterParams(e){let t=e.kind===`get`?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise(e.kind===`get`?M.GetterMayNotHaveThisParam:M.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise(e.kind===`get`?v.BadGetterArity:v.BadSetterArity,e),e.kind===`set`&&e.value.rest&&this.raise(v.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){e??=this.state.startLoc;let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,`QualifiedTypeIdentifier`)}return n}flowParseGenericType(e,t){let n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,`GenericTypeAnnotation`)}flowParseTypeofType(){let e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,`TypeofTypeAnnotation`)}flowParseTupleType(){let e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,`TupleTypeAnnotation`)}flowParseFunctionTypeParam(e){let t=null,n=!1,r=null,i=this.startNode(),a=this.lookahead(),o=this.state.type===78;return a.type===14||a.type===17?(o&&!e&&this.raise(M.ThisParamMustBeFirst,i),t=this.parseIdentifier(o),this.eat(17)&&(n=!0,o&&this.raise(M.ThisParamMayNotBeOptional,i)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),i.name=t,i.optional=n,i.typeAnnotation=r,this.finishNode(i,`FunctionTypeParam`)}reinterpretTypeAsFunctionTypeParam(e){let t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,`FunctionTypeParam`)}flowParseFunctionTypeParams(e=[]){let t=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}flowIdentToTypeAnnotation(e,t,n){switch(n.name){case`any`:return this.finishNode(t,`AnyTypeAnnotation`);case`bool`:case`boolean`:return this.finishNode(t,`BooleanTypeAnnotation`);case`mixed`:return this.finishNode(t,`MixedTypeAnnotation`);case`empty`:return this.finishNode(t,`EmptyTypeAnnotation`);case`number`:return this.finishNode(t,`NumberTypeAnnotation`);case`string`:return this.finishNode(t,`StringTypeAnnotation`);case`symbol`:return this.finishNode(t,`SymbolTypeAnnotation`);default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}flowParsePrimaryType(){let e=this.state.startLoc,t=this.startNode(),n,r,i=!1,a=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,r=this.flowParseTupleType(),this.state.noAnonFunctionType=a,r;case 47:{let e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,`FunctionTypeAnnotation`)}case 10:{let e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(E(this.state.type)||this.match(78)){let e=this.lookahead().type;i=e!==17&&e!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),r;this.eat(12)}return n=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=n.params,e.rest=n.rest,e.this=n._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,`FunctionTypeAnnotation`)}case 133:return this.parseLiteral(this.state.value,`StringLiteralTypeAnnotation`);case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,`BooleanLiteralTypeAnnotation`);case 53:if(this.state.value===`-`){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,`NumberLiteralTypeAnnotation`,t);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,`BigIntLiteralTypeAnnotation`,t);throw this.raise(M.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,`NumberLiteralTypeAnnotation`);case 135:return this.parseLiteral(this.state.value,`BigIntLiteralTypeAnnotation`);case 88:return this.next(),this.finishNode(t,`VoidTypeAnnotation`);case 84:return this.next(),this.finishNode(t,`NullLiteralTypeAnnotation`);case 78:return this.next(),this.finishNode(t,`ThisTypeAnnotation`);case 55:return this.next(),this.finishNode(t,`ExistsTypeAnnotation`);case 87:return this.flowParseTypeofType();default:if(De(this.state.type)){let e=Ne(this.state.type);return this.next(),super.createIdentifier(t,e)}else if(E(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let r=this.startNodeAt(e),i=this.eat(18);n||=i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,`ArrayTypeAnnotation`)):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,`OptionalIndexedAccessType`)):t=this.finishNode(r,`IndexedAccessType`))}return t}flowParsePrefixType(){let e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,`NullableTypeAnnotation`)):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,`FunctionTypeAnnotation`)}return e}flowParseIntersectionType(){let e=this.startNode();this.eat(45);let t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return e.types.length===1?t:this.finishNode(e,`IntersectionTypeAnnotation`)}flowParseUnionType(){let e=this.startNode();this.eat(43);let t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return e.types.length===1?t:this.finishNode(e,`UnionTypeAnnotation`)}flowParseType(){let e=this.state.inType;this.state.inType=!0;let t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value===`_`){let e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else return this.flowParseType()}flowParseTypeAnnotation(){let e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,`TypeAnnotation`)}flowParseTypeAnnotatableIdentifier(e){let t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){let e=null;return this.match(53)?(e=this.startNode(),this.state.value===`+`?e.kind=`plus`:e.kind=`minus`,this.next(),this.finishNode(e,`Variance`)):e}parseFunctionBody(e,t,n=!1){if(t){this.forwardNoArrowParamsConversionAt(e,()=>super.parseFunctionBody(e,!0,n));return}super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){let t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,`TypeAnnotation`):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(be(this.lookahead().type)){let e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}let t=super.parseStatementLike(e);return this.flowPragma===void 0&&!this.isValidDirective(t)&&(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if(t.type===`Identifier`){if(t.name===`declare`){if(this.match(80)||E(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(E(this.state.type)){if(t.name===`interface`)return this.flowParseInterface(e);if(t.name===`type`)return this.flowParseTypeAlias(e);if(t.name===`opaque`)return this.flowParseOpaqueType(e,!1)}}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){let{type:e}=this.state;return Te(e)||this.shouldParseEnums()&&e===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:e}=this.state;return Te(e)||this.shouldParseEnums()&&e===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){let t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41)return this.setOptionalParametersError(n),e}this.expect(17);let r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t),{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){let e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<l.length;t++)e.push(l[t].start);({consequent:o,failed:s}=this.tryParseConditionalConsequent()),[c,l]=this.getArrowLikeExpressions(o)}s&&c.length>1&&this.raise(M.AmbiguousConditionalArrow,r.startLoc),s&&c.length===1&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,{consequent:o,failed:s}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,`ConditionalExpression`)}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){let n=[e],r=[];for(;n.length!==0;){let e=n.pop();e.type===`ArrowFunctionExpression`&&e.body.type!==`BlockStatement`?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):e.type===`ConditionalExpression`&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):en(r,e=>e.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){this.toAssignableList(e.params,e.extra?.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(e.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,`TypeCastExpression`)}return n}assertModuleNodeAllowed(e){e.type===`ImportDeclaration`&&(e.importKind===`type`||e.importKind===`typeof`)||e.type===`ExportNamedDeclaration`&&e.exportKind===`type`||e.type===`ExportAllDeclaration`&&e.exportKind===`type`||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}else if(this.isContextual(131)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}else if(this.isContextual(129)){e.exportKind=`type`;let t=this.startNode();return this.next(),this.flowParseInterface(t)}else if(this.shouldParseEnums()&&this.isContextual(126)){e.exportKind=`value`;let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}else return super.parseExportDeclaration(e)}eatExportStar(e){return super.eatExportStar(e)?!0:this.isContextual(130)&&this.lookahead().type===55?(e.exportKind=`type`,this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(e){let{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&e.exportKind===`type`&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){let{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&(t.type!==`ClassProperty`&&t.type!==`ClassPrivateProperty`&&t.type!==`PropertyDefinition`?this.raise(M.DeclareClassElement,r):t.value&&this.raise(M.DeclareClassFieldInitializer,t.value))}isIterator(e){return e===`iterator`||e===`asyncIterator`}readIterator(){let e=super.readWord1(),t=`@@`+e;(!this.isIterator(e)||!this.state.inType)&&this.raise(v.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){let t=this.input.charCodeAt(this.state.pos+1);e===123&&t===124?this.finishOp(6,2):this.state.inType&&(e===62||e===60)?this.finishOp(e===62?48:47,1):this.state.inType&&e===63?t===46?this.finishOp(18,2):this.finishOp(17,1):$e(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e)}isAssignable(e,t){return e.type===`TypeCastExpression`?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){!t&&e.type===`AssignmentExpression`&&e.left.type===`TypeCastExpression`&&(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var n;let i=e[r];i&&i.type===`TypeCastExpression`&&!((n=i.extra)!=null&&n.parenthesized)&&(e.length>1||!t)&&this.raise(M.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(i.elements),i}isValidLVal(e,t,n){return e===`TypeCastExpression`||super.isValidLVal(e,t,n)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){let e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(M.ThisParamBannedInConstructor,t)}else if(t.type===`MethodDefinition`&&i&&t.value.params){let e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(M.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let t=e.implements=[];do{let e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,`ClassImplements`))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);let t=this.getObjectOrClassMethodParams(e);if(t.length>0){let n=t[0];this.isThisParam(n)&&e.kind===`get`?this.raise(M.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(M.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){e.variance&&this.unexpected(e.variance.loc.start),delete e.variance;let s;this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseAssignableListItemTypes(e){return this.eat(17)&&(e.type!==`Identifier`&&this.raise(M.PatternIsOptional,e),this.isThisParam(e)&&this.raise(M.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(M.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(M.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(M.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(M.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,n){t.local=Qt(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;let t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){if(super.applyImportPhase(e,t,n,r),t){if(!n&&this.match(65))return;e.exportKind=n===`type`?n:`value`}else n===`type`&&this.match(55)&&this.unexpected(),e.importKind=n===`type`||n===`typeof`?n:`value`}parseImportSpecifier(e,t,n,r,i){let a=e.imported,o=null;a.type===`Identifier`&&(a.name===`type`?o=`type`:a.name===`typeof`&&(o=`typeof`));let s=!1;if(this.isContextual(93)&&!this.isLookaheadContextual(`as`)){let t=this.parseIdentifier(!0);o!==null&&!be(this.state.type)?(e.imported=t,e.importKind=o,e.local=j(t)):(e.imported=a,e.importKind=null,e.local=this.parseIdentifier())}else{if(o!==null&&be(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=o;else{if(t)throw this.raise(v.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(s=!0,e.local=j(e.imported))}let c=Qt(e);return n&&c&&this.raise(M.ImportTypeShorthandOnlyInPureImport,e),(n||c)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),s&&!n&&!c&&this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,`ImportSpecifier`)}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){let n=e.kind;n!==`get`&&n!==`set`&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var n;let r=null,i;if(this.hasPlugin(`jsx`)&&(this.match(142)||this.match(47))){if(r=this.state.clone(),i=this.tryParse(()=>super.parseMaybeAssign(e,t),r),!i.error)return i.node;let{context:n}=this.state,a=n[n.length-1];(a===b.j_oTag||a===b.j_expr)&&n.pop()}if((n=i)!=null&&n.error||this.match(47)){var a,o;r||=this.state.clone();let n,s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();let a=this.forwardNoArrowParamsConversionAt(n,()=>{let r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});(i=a.extra)!=null&&i.parenthesized&&r();let o=this.maybeUnwrapTypeCastExpression(a);return o.type!==`ArrowFunctionExpression`&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},r),c=null;if(s.node&&this.maybeUnwrapTypeCastExpression(s.node).type===`ArrowFunctionExpression`){if(!s.error&&!s.aborted)return s.node.async&&this.raise(M.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if((a=i)!=null&&a.node)return this.state=i.failState,i.node;if(c)return this.state=s.failState,c;throw(o=i)!=null&&o.thrown?i.error:s.thrown?s.error:this.raise(M.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(()=>{let t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,`TypeAnnotation`):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(e.start)?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(M.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(e,t,n){if(e.type===`Identifier`&&e.name===`async`&&this.state.noArrowAt.includes(t.index)){this.next();let n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(11,!1),e=this.finishNode(n,`CallExpression`)}else if(e.type===`Identifier`&&e.name===`async`&&this.match(47)){let r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;let a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();let i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),i.arguments=this.parseCallExpressionArguments(11,!1),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&this.match(47)){let n=this.startNodeAt(t);n.callee=e;let i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(11,!1),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){let t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){let n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(M.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin(`flowComments`)&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(M.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?`*-/`:`*/`)}skipFlowComment(){let{pos:e}=this.state,t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;let n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return n===58&&r===58?t+2:this.input.slice(t+e,t+e+12)===`flow-include`?t+12:n===58&&r!==58?t:!1}hasFlowCommentCompletion(){if(this.input.indexOf(`*/`,this.state.pos)===-1)throw this.raise(v.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(M.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?t.explicitType===`symbol`?M.EnumInvalidMemberInitializerSymbolType:M.EnumInvalidMemberInitializerPrimaryType:M.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(M.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(M.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){let e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let n=this.parseNumericLiteral(this.state.value);return t()?{type:`number`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 133:{let n=this.parseStringLiteral(this.state.value);return t()?{type:`string`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return t()?{type:`boolean`,loc:n.loc.start,value:n}:{type:`invalid`,loc:e}}default:return{type:`invalid`,loc:e}}}flowEnumMemberRaw(){let e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:`none`,loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){let{explicitType:r}=t;r!==null&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){let n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(c===``)continue;/^[a-z]/.test(c)&&this.raise(M.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(M.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);let l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case`boolean`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`boolean`),a.init=s.value,r.booleanMembers.push(this.finishNode(a,`EnumBooleanMember`));break;case`number`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`number`),a.init=s.value,r.numberMembers.push(this.finishNode(a,`EnumNumberMember`));break;case`string`:this.flowEnumCheckExplicitTypeMismatch(s.loc,l,`string`),a.init=s.value,r.stringMembers.push(this.finishNode(a,`EnumStringMember`));break;case`invalid`:throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case`none`:switch(t){case`boolean`:this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case`number`:this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,`EnumDefaultedMember`))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(e.length===0)return t;if(t.length===0)return e;if(t.length>e.length){for(let t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}else{for(let e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!E(this.state.type))throw this.raise(M.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});let{value:t}=this.state;return this.next(),t!==`boolean`&&t!==`number`&&t!==`string`&&t!==`symbol`&&this.raise(M.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){let n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case`boolean`:return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`);case`number`:return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`);case`string`:return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);case`symbol`:return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,`EnumSymbolBody`);default:{let t=()=>(e.members=[],this.expect(8),this.finishNode(e,`EnumStringBody`));e.explicitType=!1;let i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(!i&&!o&&!s&&!c)return t();if(!i&&!o)return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,`EnumStringBody`);if(!o&&!s&&i>=c){for(let e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,`EnumBooleanBody`)}else if(!i&&!s&&o>=c){for(let e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,`EnumNumberBody`)}else return this.raise(M.EnumInconsistentMemberValues,r,{enumName:n}),t()}}}flowParseEnumDeclaration(e){let t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,`EnumDeclaration`)}isLookaheadToken_lt(){let e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){let t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return!1}maybeUnwrapTypeCastExpression(e){return e.type===`TypeCastExpression`?e.expression:e}},rn=_`jsx`({AttributeIsEmpty:`JSX attributes must only be assigned a non-empty expression.`,MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:`Expected corresponding JSX closing tag for <>.`,UnexpectedSequenceExpression:`Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?`,UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:`JSX value should be either an expression or a quoted JSX text.`,UnterminatedJsxContent:`Unterminated JSX contents.`,UnwrappedAdjacentJSXElements:`Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?`});function an(e){return e?e.type===`JSXOpeningFragment`||e.type===`JSXClosingFragment`:!1}function on(e){if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return on(e.object)+`.`+on(e.property);throw Error(`Node had unexpected type: `+e.type)}var sn=e=>class extends e{jsxReadToken(){let e=``,t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(rn.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(n);return}e+=this.input.slice(t,this.state.pos),this.finishToken(141,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;case 62:case 125:default:mt(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,t===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=e?`
`:`\r
`):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t=``,n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):mt(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(133,t)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;this.codePointAtPos(this.state.pos)===120&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,`bail`);if(t!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;n&&(this.input.slice(e,this.state.pos),++this.state.pos)}return this.state.pos=e,`&`}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Ue(e)||e===45);this.finishToken(140,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(140)?e.name=this.state.value:De(this.state.type)?e.name=Ne(this.state.type):this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;let n=this.startNodeAt(e);return n.namespace=t,n.name=this.jsxParseIdentifier(),this.finishNode(n,`JSXNamespacedName`)}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if(t.type===`JSXNamespacedName`)return t;for(;this.eat(16);){let n=this.startNodeAt(e);n.object=t,n.property=this.jsxParseIdentifier(),t=this.finishNode(n,`JSXMemberExpression`)}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(b.brace),this.next(),e=this.jsxParseExpressionContainer(e,b.j_oTag),e.expression.type===`JSXEmptyExpression`&&this.raise(rn.AttributeIsEmpty,e),e;case 142:case 133:return this.parseExprAtom();default:throw this.raise(rn.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(b.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadChild`)}jsxParseExpressionContainer(e,t){return this.match(8)?e.expression=this.jsxParseEmptyExpression():e.expression=this.parseExpression(),this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXExpressionContainer`)}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(b.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(b.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsxParseOpeningElementAt(e){let t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,`JSXOpeningFragment`):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(56)&&!this.match(143);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(143),this.finishNode(e,`JSXOpeningElement`)}jsxParseClosingElementAt(e){let t=this.startNodeAt(e);return this.eat(143)?this.finishNode(t,`JSXClosingFragment`):(t.name=this.jsxParseElementName(),this.expect(143),this.finishNode(t,`JSXClosingElement`))}jsxParseElementAt(e){let t=this.startNodeAt(e),n=[],r=this.jsxParseOpeningElementAt(e),i=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 142:if(e=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(e);break e}n.push(this.jsxParseElementAt(e));break;case 141:n.push(this.parseLiteral(this.state.value,`JSXText`));break;case 5:{let e=this.startNode();this.setContext(b.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(e)):n.push(this.jsxParseExpressionContainer(e,b.j_expr));break}default:this.unexpected()}an(r)&&!an(i)&&i!==null?this.raise(rn.MissingClosingTagFragment,i):(!an(r)&&an(i)||!an(r)&&!an(i)&&on(i.name)!==on(r.name))&&this.raise(rn.MissingClosingTagElement,i,{openingTagName:on(r.name)})}if(an(r)?(t.openingFragment=r,t.closingFragment=i):(t.openingElement=r,t.closingElement=i),t.children=n,this.match(47))throw this.raise(rn.UnwrappedAdjacentJSXElements,this.state.startLoc);return an(r)?this.finishNode(t,`JSXFragment`):this.finishNode(t,`JSXElement`)}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===b.j_expr){this.jsxReadToken();return}if(t===b.j_oTag||t===b.j_cTag){if(He(e)){this.jsxReadWord();return}if(e===62){++this.state.pos,this.finishToken(143);return}if((e===34||e===39)&&t===b.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:n}=this.state;if(n===56&&e===142)t.splice(-2,2,b.j_cTag),this.state.canStartJSXElement=!1;else if(n===142)t.push(b.j_oTag);else if(n===143){let n=t[t.length-1];n===b.j_oTag&&e===56||n===b.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===b.j_expr):(this.setContext(b.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Se(n)}},cn=class extends nt{constructor(...e){super(...e),this.tsNames=new Map}},ln=class extends rt{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new cn(e)}enter(e){e===256&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return e===256&&this.importsStack.pop(),e}hasImport(e,t){let n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1){for(let t=0;t<n-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,n){if(t&4096){this.hasImport(e,!0)&&this.parser.raise(v.VarRedeclaration,n,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let r=this.currentScope(),i=r.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(r,e),r.tsNames.set(e,i|16);return}super.declareName(e,t,n),t&2&&(t&1||(this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e)),i|=1),t&256&&(i|=2),t&512&&(i|=4),t&128&&(i|=8),i&&r.tsNames.set(e,i)}isRedeclaredInScope(e,t,n){let r=e.tsNames.get(t);return(r&2)>0?n&256?!!(n&512)!=(r&4)>0:!0:n&128&&(r&8)>0?e.names.get(t)&2?!!(n&1):!1:n&2&&(r&1)>0?!0:super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let n=this.scopeStack.length;for(let e=n-1;e>=0;e--){let n=this.scopeStack[e].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}},un=(e,t)=>hasOwnProperty.call(e,t)&&e[t],dn=e=>e.type===`ParenthesizedExpression`?dn(e.expression):e,fn=class extends Yt{toAssignable(e,t=!1){var n;let r;switch((e.type===`ParenthesizedExpression`||(n=e.extra)!=null&&n.parenthesized)&&(r=dn(e),t?r.type===`Identifier`?this.expressionScope.recordArrowParameterBindingError(v.InvalidParenthesizedAssignment,e):r.type!==`MemberExpression`&&!this.isOptionalMemberExpression(r)&&this.raise(v.InvalidParenthesizedAssignment,e):this.raise(v.InvalidParenthesizedAssignment,e)),e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`;for(let n=0,r=e.properties.length,a=r-1;n<r;n++){var i;let r=e.properties[n],o=n===a;this.toAssignableObjectExpressionProp(r,o,t),o&&r.type===`RestElement`&&(i=e.extra)!=null&&i.trailingCommaLoc&&this.raise(v.RestTrailingComma,e.extra.trailingCommaLoc)}break;case`ObjectProperty`:{let{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t);break}case`SpreadElement`:throw Error(`Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.`);case`ArrayExpression`:e.type=`ArrayPattern`,this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(v.MissingEqInAssignment,e.left.loc.end),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(r,t);break}}toAssignableObjectExpressionProp(e,t,n){if(e.type===`ObjectMethod`)this.raise(e.kind===`get`||e.kind===`set`?v.PatternHasAccessor:v.PatternHasMethod,e.key);else if(e.type===`SpreadElement`){e.type=`RestElement`;let r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,n),t||this.raise(v.RestTrailingComma,e)}else this.toAssignable(e,n)}toAssignableList(e,t,n){let r=e.length-1;for(let i=0;i<=r;i++){let a=e[i];if(a){if(a.type===`SpreadElement`){a.type=`RestElement`;let e=a.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,n)}else this.toAssignable(a,n);a.type===`RestElement`&&(i<r?this.raise(v.RestTrailingComma,a):t&&this.raise(v.RestTrailingComma,t))}}}isAssignable(e,t){switch(e.type){case`Identifier`:case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:return!0;case`ObjectExpression`:{let t=e.properties.length-1;return e.properties.every((e,n)=>e.type!==`ObjectMethod`&&(n===t||e.type!==`SpreadElement`)&&this.isAssignable(e))}case`ObjectProperty`:return this.isAssignable(e.value);case`SpreadElement`:return this.isAssignable(e.argument);case`ArrayExpression`:return e.elements.every(e=>e===null||this.isAssignable(e));case`AssignmentExpression`:return e.operator===`=`;case`ParenthesizedExpression`:return this.isAssignable(e.expression);case`MemberExpression`:case`OptionalMemberExpression`:return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let t of e)t?.type===`ArrayExpression`&&this.toReferencedListDeep(t.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,`SpreadElement`)}parseRestBinding(){let e=this.startNode();return this.next(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,`ArrayPattern`)}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(e,t,n){let r=n&1,i=[],a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];for(this.match(26)&&this.hasPlugin(`decorators`)&&this.raise(v.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,e))}}return i}parseBindingRestProperty(e){return this.next(),e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,`RestElement`)}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return e===138?(this.expectPlugin(`destructuringPrivate`,t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseAssignableListItem(e,t){let n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,e);let r=this.parseMaybeDefault(n.loc.start,n);return t.length&&(n.decorators=t),r}parseAssignableListItemTypes(e,t){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t??=this.parseBindingAtom(),!this.eat(29))return t;let n=this.startNodeAt(e);return n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,`AssignmentPattern`)}isValidLVal(e,t,n){return un({AssignmentPattern:`left`,RestElement:`argument`,ObjectProperty:`value`,ParenthesizedExpression:`expression`,ArrayPattern:`elements`,ObjectPattern:`properties`},e)}isOptionalMemberExpression(e){return e.type===`OptionalMemberExpression`}checkLVal(e,{in:t,binding:n=64,checkClashes:r=!1,strictModeChanged:i=!1,hasParenthesizedAncestor:a=!1}){var o;let s=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||s===`MemberExpression`){c&&(this.expectPlugin(`optionalChainingAssign`,e.loc.start),t.type!==`AssignmentExpression`&&this.raise(v.InvalidLhsOptionalChaining,e,{ancestor:t})),n!==64&&this.raise(v.InvalidPropertyBindingPattern,e);return}if(s===`Identifier`){this.checkIdentifier(e,n,i);let{name:t}=e;r&&(r.has(t)?this.raise(v.ParamDupe,e):r.add(t));return}let l=this.isValidLVal(s,!(a||(o=e.extra)!=null&&o.parenthesized)&&t.type===`AssignmentExpression`,n);if(l===!0)return;if(l===!1){let r=n===64?v.InvalidLhs:v.InvalidLhsBinding;this.raise(r,e,{ancestor:t});return}let[u,d]=Array.isArray(l)?l:[l,s===`ParenthesizedExpression`],f=s===`ArrayPattern`||s===`ObjectPattern`?{type:s}:t;for(let t of[].concat(e[u]))t&&this.checkLVal(t,{in:f,binding:n,checkClashes:r,strictModeChanged:i,hasParenthesizedAncestor:d})}checkIdentifier(e,t,n=!1){this.state.strict&&(n?Ze(e.name,this.inModule):Xe(e.name))&&(t===64?this.raise(v.StrictEvalArguments,e,{referenceName:e.name}):this.raise(v.StrictEvalArgumentsBinding,e,{bindingName:e.name})),t&8192&&e.name===`let`&&this.raise(v.LetInLexicalBinding,e),t&64||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case`ParenthesizedExpression`:this.checkToRestConversion(e.expression,t);break;case`Identifier`:case`MemberExpression`:break;case`ArrayExpression`:case`ObjectExpression`:if(t)break;default:this.raise(v.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return this.match(12)?(this.raise(this.lookaheadCharCode()===e?v.RestTrailingComma:v.ElementAfterRest,this.state.startLoc),!0):!1}},pn=(e,t)=>hasOwnProperty.call(e,t)&&e[t];function mn(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function hn(e){if(!e)throw Error(`Assert fail`)}var N=_`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccesorCannotDeclareThisParameter:`'get' and 'set' accessors cannot declare 'this' parameters.`,AccesorCannotHaveTypeParameters:`An accessor cannot have type parameters.`,AccessorCannotBeOptional:`An 'accessor' property cannot be declared optional.`,ClassMethodHasDeclare:`Class methods cannot have the 'declare' modifier.`,ClassMethodHasReadonly:`Class methods cannot have the 'readonly' modifier.`,ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:`A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.`,ConstructorHasTypeParameters:`Type parameters cannot appear on a constructor declaration.`,DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:`Initializers are not allowed in ambient contexts.`,DeclareFunctionHasImplementation:`An implementation cannot be declared in ambient contexts.`,DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:`Type argument list cannot be empty.`,EmptyTypeParameters:`Type parameter list cannot be empty.`,ExpectedAmbientAfterExportDeclare:`'export declare' must be followed by an ambient declaration.`,ImportAliasHasImportType:`An import alias can not use 'import type'.`,ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:`Index signatures cannot have the 'abstract' modifier.`,IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:`Index signatures cannot have the 'declare' modifier.`,IndexSignatureHasOverride:`'override' modifier cannot appear on an index signature.`,IndexSignatureHasStatic:`Index signatures cannot have the 'static' modifier.`,InitializerNotAllowedInAmbientContext:`Initializers are not allowed in ambient contexts.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:`Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.`,InvalidTupleMemberLabel:`Tuple members must be labeled with a simple identifier.`,MissingInterfaceName:`'interface' declarations must be followed by an identifier.`,NonAbstractClassHasAbstractMethod:`Abstract methods can only appear within an abstract class.`,NonClassMethodPropertyHasAbstractModifer:`'abstract' modifier can only appear on a class, method, or property declaration.`,OptionalTypeBeforeRequired:`A required element cannot follow an optional element.`,OverrideNotInSubClass:`This member cannot have an 'override' modifier because its containing class does not extend another class.`,PatternIsOptional:`A binding pattern parameter cannot be optional in an implementation signature.`,PrivateElementHasAbstract:`Private elements cannot have the 'abstract' modifier.`,PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:`'readonly' modifier can only appear on a property declaration or index signature.`,ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:`A 'set' accessor cannot have an optional parameter.`,SetAccesorCannotHaveRestParameter:`A 'set' accessor cannot have rest parameter.`,SetAccesorCannotHaveReturnType:`A 'set' accessor cannot have a return type annotation.`,SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:`Static class blocks cannot have any modifier.`,TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:`A type-only import can specify a default import or named bindings, but not both.`,TypeModifierIsUsedInTypeExports:`The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.`,TypeModifierIsUsedInTypeImports:`The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.`,UnexpectedParameterModifier:`A parameter property is only allowed in a constructor implementation.`,UnexpectedReadonly:`'readonly' type modifier is only permitted on array and tuple literal types.`,UnexpectedTypeAnnotation:`Did not expect a type annotation here.`,UnexpectedTypeCastInParameter:`Unexpected type cast in parameter position.`,UnsupportedImportTypeArgument:`Argument in a type import must be a string literal.`,UnsupportedParameterPropertyKind:`A parameter property may not be declared using a binding pattern.`,UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function gn(e){switch(e){case`any`:return`TSAnyKeyword`;case`boolean`:return`TSBooleanKeyword`;case`bigint`:return`TSBigIntKeyword`;case`never`:return`TSNeverKeyword`;case`number`:return`TSNumberKeyword`;case`object`:return`TSObjectKeyword`;case`string`:return`TSStringKeyword`;case`symbol`:return`TSSymbolKeyword`;case`undefined`:return`TSUndefinedKeyword`;case`unknown`:return`TSUnknownKeyword`;default:return}}function _n(e){return e===`private`||e===`public`||e===`protected`}function vn(e){return e===`in`||e===`out`}var yn=e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`],disallowedModifiers:[`const`,`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:N.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:[`const`],disallowedModifiers:[`in`,`out`],errorTemplate:N.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:[`in`,`out`,`const`],disallowedModifiers:[`public`,`private`,`protected`,`readonly`,`declare`,`abstract`,`override`],errorTemplate:N.InvalidModifierOnTypeParameter})}getScopeHandler(){return ln}tsIsIdentifier(){return E(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(e,t){if(!E(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(e.includes(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=N.InvalidModifierOnTypeMember},i){let a=(e,t,n,r)=>{t===n&&i[r]&&this.raise(N.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(N.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){let{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(t??[]),n);if(!c)break;_n(c)?i.accessibility?this.raise(N.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,`override`),a(s,c,c,`static`),a(s,c,c,`readonly`),i.accessibility=c):vn(c)?(i[c]&&this.raise(N.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,`in`,`out`)):(hasOwnProperty.call(i,c)?this.raise(N.DuplicateModifier,s,{modifier:c}):(a(s,c,`static`,`readonly`),a(s,c,`static`,`override`),a(s,c,`override`,`readonly`),a(s,c,`abstract`,`override`),o(s,c,`declare`,`override`),o(s,c,`static`,`abstract`)),i[c]=!0),t!=null&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case`EnumMembers`:case`TypeMembers`:return this.match(8);case`HeritageClauseElement`:return this.match(5);case`TupleElementTypes`:return this.match(3);case`TypeParametersOrArguments`:return this.match(48)}}tsParseList(e,t){let n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return mn(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){let i=[],a=-1;for(;!this.tsIsListTerminator(e);){a=-1;let r=t();if(r==null)return;if(i.push(r),this.eat(12)){a=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;n&&this.expect(12);return}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));let a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){let e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(N.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom(),(this.hasPlugin(`importAttributes`)||this.hasPlugin(`importAssertions`))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSImportType`)}tsParseEntityName(e=!0){let t=this.parseIdentifier(e);for(;this.eat(16);){let n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,`TSQualifiedName`)}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeReference`)}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,`TSTypePredicate`)}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,`TSThisType`)}tsParseTypeQuery(){let e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSTypeQuery`)}tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,`TSTypeParameter`)}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let n={value:-1};return t.params=this.tsParseBracketedList(`TypeParametersOrArguments`,this.tsParseTypeParameter.bind(this,e),!1,!0,n),t.params.length===0&&this.raise(N.EmptyTypeParameters,t),n.value!==-1&&this.addExtra(t,`trailingComma`,n.value),this.finishNode(t,`TSTypeParameterDeclaration`)}tsFillSignature(e,t){let n=e===19;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(11,41,2);for(let t of e){let{type:e}=t;(e===`AssignmentPattern`||e===`TSParameterProperty`)&&this.raise(N.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),E(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSIndexSignature`)}tsParsePropertyOrMethodSignature(e,t){this.eat(17)&&(e.optional=!0);let n=e;if(this.match(10)||this.match(47)){t&&this.raise(N.ReadonlyForMethodSignature,e);let r=n;r.kind&&this.match(47)&&this.raise(N.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();let i=`parameters`,a=`typeAnnotation`;if(r.kind===`get`)r[i].length>0&&(this.raise(v.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(N.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if(r.kind===`set`){if(r[i].length!==1)this.raise(v.BadSetterArity,this.state.curPosition());else{let e=r[i][0];this.isThisParam(e)&&this.raise(N.AccesorCannotDeclareThisParameter,this.state.curPosition()),e.type===`Identifier`&&e.optional&&this.raise(N.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),e.type===`RestElement`&&this.raise(N.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[a]&&this.raise(N.SetAccesorCannotHaveReturnType,r[a])}else r.kind=`method`;return this.finishNode(r,`TSMethodSignature`)}else{let e=n;t&&(e.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,`TSPropertySignature`)}}tsParseTypeMember(){let e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember(`TSCallSignatureDeclaration`,e);if(this.match(77)){let t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember(`TSConstructSignatureDeclaration`,e):(e.key=this.createIdentifier(t,`new`),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:[`readonly`],disallowedModifiers:[`declare`,`abstract`,`private`,`protected`,`public`,`static`,`override`]},e),this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,`TSTypeLiteral`)}tsParseObjectTypeMembers(){this.expect(5);let e=this.tsParseList(`TypeMembers`,this.tsParseTypeMember.bind(this));return this.expect(8),e}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)))}tsParseMappedTypeParameter(){let e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,`TSTypeParameter`)}tsParseMappedType(){let e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,`TSMappedType`)}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList(`TupleElementTypes`,this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:n}=e;t&&n!==`TSRestType`&&n!==`TSOptionalType`&&!(n===`TSNamedTupleMember`&&e.optional)&&this.raise(N.OptionalTypeBeforeRequired,e),t||=n===`TSNamedTupleMember`&&e.optional||n===`TSOptionalType`}),this.finishNode(e,`TSTupleType`)}tsParseTupleElementType(){let{startLoc:e}=this.state,t=this.eat(21),n,r,i,a,o=be(this.state.type)?this.lookaheadCharCode():null;if(o===58)n=!0,i=!1,r=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(o===63){i=!0;let e=this.state.startLoc,t=this.state.value,o=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(n=!0,r=this.createIdentifier(this.startNodeAt(e),t),this.expect(17),this.expect(14),a=this.tsParseType()):(n=!1,a=o,this.expect(17))}else a=this.tsParseType(),i=this.eat(17),n=this.eat(14);if(n){let e;r?(e=this.startNodeAtNode(r),e.optional=i,e.label=r,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(N.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAtNode(a),e.optional=i,this.raise(N.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,`TSNamedTupleMember`)}else if(i){let e=this.startNodeAtNode(a);e.typeAnnotation=a,a=this.finishNode(e,`TSOptionalType`)}if(t){let t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,`TSRestType`)}return a}tsParseParenthesizedType(){let e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,`TSParenthesizedType`)}tsParseFunctionOrConstructorType(e,t){let n=this.startNode();return e===`TSConstructorType`&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,`TSLiteralType`)}tsParseTemplateLiteralType(){let e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,`TSLiteralType`)}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value===`-`){let e=this.startNode(),t=this.lookahead();return t.type!==134&&t.type!==135&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,`TSLiteralType`)}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(E(e)||e===88||e===84){let t=e===88?`TSVoidKeyword`:e===84?`TSNullKeyword`:gn(this.state.value);if(t!==void 0&&this.lookaheadCharCode()!==46){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let e=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,`TSArrayType`)}else{let t=this.startNodeAtNode(e);t.objectType=e,t.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(t,`TSIndexedAccessType`)}return e}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),t===`readonly`&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,`TSTypeOperator`)}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case`TSTupleType`:case`TSArrayType`:return;default:this.raise(N.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(115);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,`TSTypeParameter`),this.finishNode(e,`TSInferType`)}tsParseConstraintForInferType(){if(this.eat(81)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){return je(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){let r=this.startNode(),i=this.eat(n),a=[];do a.push(t());while(this.eat(n));return a.length===1&&!i?a[0]:(r.types=a,this.finishNode(r,e))}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(E(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}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(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return e.type===`TSThisType`?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,`TSTypePredicate`)):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,`TSTypeAnnotation`)}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)):this.tsParseTypeAnnotation(!1,t);let a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,`TSTypePredicate`),this.finishNode(t,`TSTypeAnnotation`)})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let e=this.state.containsEsc;return this.next(),!E(this.state.type)&&!this.match(78)?!1:(e&&this.raise(v.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:`asserts`}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,`TSTypeAnnotation`)}tsParseType(){hn(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,`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(N.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,`TSTypeAssertion`)}tsParseHeritageClause(e){let t=this.state.startLoc,n=this.tsParseDelimitedList(`HeritageClauseElement`,()=>{let e=this.startNode();return e.expression=this.tsParseEntityName(),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,`TSExpressionWithTypeArguments`)});return n.length||this.raise(N.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),E(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(N.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause(`extends`));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,`TSInterfaceBody`),this.finishNode(e,`TSInterfaceDeclaration`)}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let e=this.startNode();return this.next(),this.finishNode(e,`TSIntrinsicKeyword`)}return this.tsParseType()}),this.semicolon(),this.finishNode(e,`TSTypeAliasDeclaration`)}tsInNoContext(e){let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,`TSEnumMember`)}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList(`EnumMembers`,this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,`TSEnumDeclaration`)}tsParseModuleBlock(){let e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,`TSModuleBlock`)}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){let t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,`TSModuleDeclaration`)}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,`TSModuleDeclaration`)}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);let r=this.tsParseModuleReference();return e.importKind===`type`&&r.type!==`TSExternalModuleReference`&&this.raise(N.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,`TSImportEqualsDeclaration`)}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,`TSExternalModuleReference`)}tsLookAhead(e){let t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!(t.aborted||!t.node))return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),n=e();if(n!==void 0&&n!==!1)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type,n;return this.isContextual(100)&&(t=74,n=`let`),this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual(`enum`)?(e.declare=!0,this.parseVarStatement(e,n||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0}));case 129:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(E(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,n){switch(t.name){case`declare`:{let t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case`global`:if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let n=e;return n.global=!0,n.id=t,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,`TSModuleDeclaration`)}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}tsParseDeclaration(e,t,n,r){switch(t){case`abstract`:if(this.tsCheckLineTerminator(n)&&(this.match(80)||E(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case`module`:if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(E(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case`namespace`:if(this.tsCheckLineTerminator(n)&&E(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case`type`:if(this.tsCheckLineTerminator(n)&&E(this.state.type))return this.tsParseTypeAliasDeclaration(e);break}}tsCheckLineTerminator(e){return e?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;let t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});if(this.state.maybeInArrowParameters=t,n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList(`TypeParametersOrArguments`,this.tsParseType.bind(this))))),e.params.length===0?this.raise(N.EmptyTypeArguments,e):!this.state.inType&&this.curContext()===b.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(e,`TSTypeParameterInstantiation`)}tsIsDeclarationStart(){return Me(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(e,t){let n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:[`public`,`private`,`protected`,`override`,`readonly`]},r);let i=r.accessibility,a=r.override,o=r.readonly;!(e&4)&&(i||o||a)&&this.raise(N.UnexpectedParameterModifier,n);let s=this.parseMaybeDefault();this.parseAssignableListItemTypes(s,e);let c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){let e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),c.type!==`Identifier`&&c.type!==`AssignmentPattern`&&this.raise(N.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,`TSParameterProperty`)}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return e.type===`TSParameterProperty`&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)t.type!==`Identifier`&&t.optional&&!this.state.isAmbientContext&&this.raise(N.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let r=t===`FunctionDeclaration`?`TSDeclareFunction`:t===`ClassMethod`||t===`ClassPrivateMethod`?`TSDeclareMethod`:void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):r===`TSDeclareFunction`&&this.state.isAmbientContext&&(this.raise(N.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type===`TSTypeCastExpression`&&this.raise(N.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n,r){let i=super.parseArrayLike(e,t,n,r);return i.type===`ArrayExpression`&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,`TSNonNullExpression`)}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a,o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return e}let o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10)){a=this.state.curPosition();return}if(Fe(this.state.type)){let n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){let n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}let s=this.state.type;if(s===48||s===52||s!==10&&Ce(s)&&!this.hasPrecedingLineBreak())return;let c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,`TSInstantiationExpression`)});if(a&&this.unexpected(a,10),o)return o.type===`TSInstantiationExpression`&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(N.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);let{callee:n}=e;n.type===`TSInstantiationExpression`&&!((t=n.extra)!=null&&t.parenthesized)&&(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(D(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){let i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(v.UnexpectedKeyword,this.state.startLoc,{keyword:`const`}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?`TSSatisfiesExpression`:`TSAsExpression`),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&e.importKind!==`value`&&this.raise(N.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){let t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind=n===`type`?`type`:`value`:e.importKind=n===`type`||n===`typeof`?n:`value`}parseImport(e){if(this.match(133))return e.importKind=`value`,super.parseImport(e);let t;if(E(this.state.type)&&this.lookaheadCharCode()===61)return e.importKind=`value`,this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(e,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return t.importKind===`type`&&t.specifiers.length>1&&t.specifiers[0].type===`ImportDefaultSpecifier`&&this.raise(N.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){this.next();let t=e,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind=`value`,this.tsParseImportEqualsDeclaration(t,n,!0)}else if(this.eat(29)){let t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,`TSExportAssignment`)}else if(this.eatContextual(93)){let t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,`TSNamespaceExportDeclaration`)}else return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){let{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;for(let{id:e,init:n}of i.declarations)n&&(t!==`const`||e.typeAnnotation?this.raise(N.InitializerNotAllowedInAmbientContext,n):xn(n,this.hasPlugin(`estree`))||this.raise(N.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual(`enum`)){let e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier([`public`,`protected`,`private`])}tsHasSomeModifiers(e,t){return t.some(t=>_n(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,n){let r=[`declare`,`private`,`public`,`protected`,`override`,`abstract`,`readonly`,`static`];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:[`in`,`out`],stopOnStartOfClassStaticBlock:!0,errorTemplate:N.InvalidModifierOnTypeParameterPositions},t);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(N.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(N.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(N.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(N.IndexSignatureHasDeclare,t),t.override&&this.raise(N.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(N.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(N.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(N.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(N.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,n){return(t.type===`Identifier`?this.tsParseExpressionStatement(e,t,n):void 0)||super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(e,t,n);let r=this.tryParse(()=>super.parseConditional(e,t));return r.node?(r.error&&(this.state=r.failState),r.node):(r.error&&super.setOptionalParametersError(n,r.error),e)}parseParenItem(e,t){let n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){let n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,`TSTypeCastExpression`)}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(N.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let r=E(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?((r.type===`TSInterfaceDeclaration`||r.type===`TSTypeAliasDeclaration`||n)&&(e.exportKind=`type`),n&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)&&this.raise(N.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){let{key:t}=e;this.raise(N.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type===`Identifier`&&!e.computed?t.name:`[${this.input.slice(t.start,t.end)}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(N.PrivateElementHasAbstract,e),e.accessibility&&this.raise(N.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(N.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(N.ConstructorHasTypeParameters,o);let{declare:s=!1,kind:c}=t;s&&(c===`get`||c===`set`)&&this.raise(N.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){e.type!==`TSDeclareMethod`&&(e.type===`MethodDefinition`&&!hasOwnProperty.call(e.value,`body`)||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause(`implements`))}parseObjPropValue(e,t,n,r,i,a,o){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),e.id.type===`Identifier`&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i;let a,o,s;if(this.hasPlugin(`jsx`)&&(this.match(142)||this.match(47))){if(a=this.state.clone(),o=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!o.error)return o.node;let{context:n}=this.state,r=n[n.length-1];(r===b.j_oTag||r===b.j_expr)&&n.pop()}if(!((n=o)!=null&&n.error)&&!this.match(47))return super.parseMaybeAssign(e,t);(!a||a===this.state)&&(a=this.state.clone());let c,l=this.tryParse(n=>{var r;c=this.tsParseTypeParameters(this.tsParseConstModifier);let i=super.parseMaybeAssign(e,t);return(i.type!==`ArrowFunctionExpression`||(r=i.extra)!=null&&r.parenthesized)&&n(),c?.params.length!==0&&this.resetStartLocationFromNode(i,c),i.typeParameters=c,i},a);if(!l.error&&!l.aborted)return c&&this.reportReservedArrowTypeParam(c),l.node;if(!o&&(hn(!this.hasPlugin(`jsx`)),s=this.tryParse(()=>super.parseMaybeAssign(e,t),a),!s.error))return s.node;if((r=o)!=null&&r.node)return this.state=o.failState,o.node;if(l.node)return this.state=l.failState,c&&this.reportReservedArrowTypeParam(c),l.node;if((i=s)!=null&&i.node)return this.state=s.failState,s.node;throw o?.error||l.error||s?.error}reportReservedArrowTypeParam(e){var t;e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption(`typescript`,`disallowAmbiguousJSXLike`)&&this.raise(N.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin(`jsx`)&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseAssignableListItemTypes(e,t){if(!(t&2))return e;this.eat(17)&&(e.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case`TSTypeCastExpression`:return this.isAssignable(e.expression,t);case`TSParameterProperty`:return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case`ParenthesizedExpression`:this.toAssignableParenthesizedExpression(e,t);break;case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:t?this.expressionScope.recordArrowParameterBindingError(N.UnexpectedTypeCastInParameter,e):this.raise(N.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case`AssignmentExpression`:!t&&e.left.type===`TSTypeCastExpression`&&(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSNonNullExpression`:case`TSTypeAssertion`:case`ParenthesizedExpression`:this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`TSTypeAssertion`:case`TSNonNullExpression`:this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n){return pn({TSTypeCastExpression:!0,TSParameterProperty:`parameter`,TSNonNullExpression:`expression`,TSInstantiationExpression:`expression`,TSAsExpression:(n!==64||!t)&&[`expression`,!0],TSSatisfiesExpression:(n!==64||!t)&&[`expression`,!0],TSTypeAssertion:(n!==64||!t)&&[`expression`,!0]},e)||super.isValidLVal(e,t,n)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e){if(this.match(47)||this.match(51)){let t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(e);return n.typeParameters=t,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){let n=super.parseMaybeDefault(e,t);return n.type===`AssignmentPattern`&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(N.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;e===47?(--this.state.pos,this.readToken_lt()):e===48&&(--this.state.pos,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return e===51?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableList(e,t,n){for(let t=0;t<e.length;t++){let n=e[t];n?.type===`TSTypeCastExpression`&&(e[t]=this.typeCastToParameter(n))}super.toAssignableList(e,t,n)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){let r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(N.NonClassMethodPropertyHasAbstractModifer,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){let s=super.parseMethod(e,t,n,r,i,a,o);if(s.abstract&&(this.hasPlugin(`estree`)?s.value.body:s.body)){let{key:e}=s;this.raise(N.AbstractMethodHasImplementation,s,{methodName:e.type===`Identifier`&&!s.computed?e.name:`[${this.input.slice(e.start,e.end)}]`})}return s}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(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,`ExportSpecifier`)):(e.exportKind=`value`,super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,`ImportSpecifier`)):(e.importKind=`value`,super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){let r=t?`imported`:`local`,i=t?`local`:`exported`,a=e[r],o,s=!1,c=!0,l=a.loc.start;if(this.isContextual(93)){let e=this.parseIdentifier();if(this.isContextual(93)){let n=this.parseIdentifier();be(this.state.type)?(s=!0,a=e,o=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(o=n,c=!1)}else be(this.state.type)?(c=!1,o=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,a=e)}else be(this.state.type)&&(s=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());s&&n&&this.raise(t?N.TypeModifierIsUsedInTypeImports:N.TypeModifierIsUsedInTypeExports,l),e[r]=a,e[i]=o;let u=t?`importKind`:`exportKind`;e[u]=s?`type`:`value`,c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=j(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}};function bn(e){if(e.type!==`MemberExpression`)return!1;let{computed:t,property:n}=e;return t&&n.type!==`StringLiteral`&&(n.type!==`TemplateLiteral`||n.expressions.length>0)?!1:wn(e.object)}function xn(e,t){var n;let{type:r}=e;if((n=e.extra)!=null&&n.parenthesized)return!1;if(t){if(r===`Literal`){let{value:t}=e;if(typeof t==`string`||typeof t==`boolean`)return!0}}else if(r===`StringLiteral`||r===`BooleanLiteral`)return!0;return!!(Sn(e,t)||Cn(e,t)||r===`TemplateLiteral`&&e.expressions.length===0||bn(e))}function Sn(e,t){return t?e.type===`Literal`&&(typeof e.value==`number`||`bigint`in e):e.type===`NumericLiteral`||e.type===`BigIntLiteral`}function Cn(e,t){if(e.type===`UnaryExpression`){let{operator:n,argument:r}=e;if(n===`-`&&Sn(r,t))return!0}return!1}function wn(e){return e.type===`Identifier`?!0:e.type!==`MemberExpression`||e.computed?!1:wn(e.object)}var Tn=_`placeholders`({ClassNameIsRequired:`A class name is required.`,UnexpectedSpace:`Unexpected space in placeholder.`}),En=e=>class extends e{parsePlaceholder(e){if(this.match(144)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,`Placeholder`)),n.expectedNode=t,n}getTokenFromCode(e){e===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder(`Expression`)||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder(`Identifier`)||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){e!==void 0&&super.checkReservedWord(e,t,n,r)}parseBindingAtom(){return this.parsePlaceholder(`Pattern`)||super.parseBindingAtom()}isValidLVal(e,t,n){return e===`Placeholder`||super.isValidLVal(e,t,n)}toAssignable(e,t){e&&e.type===`Placeholder`&&e.expectedNode===`Expression`?e.expectedNode=`Pattern`:super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){return!!(super.chStartsBindingIdentifier(e,t)||this.lookahead().type===144)}verifyBreakContinue(e,t){e.label&&e.label.type===`Placeholder`||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if(t.type!==`Placeholder`||(n=t.extra)!=null&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){let n=e;return n.label=this.finishPlaceholder(t,`Identifier`),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,`LabeledStatement`)}this.semicolon();let r=e;return r.name=t.name,this.finishPlaceholder(r,`Statement`)}parseBlock(e,t,n){return this.parsePlaceholder(`BlockStatement`)||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder(`Identifier`)||super.parseFunctionId(e)}parseClass(e,t,n){let r=t?`ClassDeclaration`:`ClassExpression`;this.next();let i=this.state.strict,a=this.parsePlaceholder(`Identifier`);if(a)if(this.match(81)||this.match(144)||this.match(5))e.id=a;else{if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,`ClassBody`),this.finishNode(e,r);throw this.raise(Tn.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder(`ClassBody`)||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){let n=this.parsePlaceholder(`Identifier`);if(!n)return super.parseExport(e,t);let r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,`Declaration`),this.finishNode(r,`ExportNamedDeclaration`);this.expectPlugin(`exportDefaultFrom`);let i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,`ExportDefaultSpecifier`)],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,`from`)&&this.input.startsWith(Ne(144),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return(n=e.specifiers)!=null&&n.length?!0:super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){let{specifiers:t}=e;t!=null&&t.length&&(e.specifiers=t.filter(e=>e.exported.type===`Placeholder`)),super.checkExport(e),e.specifiers=t}parseImport(e){let t=this.parsePlaceholder(`Identifier`);if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,`StringLiteral`),this.semicolon(),this.finishNode(e,`ImportDeclaration`);let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,`ImportDefaultSpecifier`)),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.parsePlaceholder(`StringLiteral`)||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(Tn.UnexpectedSpace,this.state.lastTokEndLoc)}},Dn=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let e=this.state.startLoc,t=this.startNode();if(this.next(),E(this.state.type)){let e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(n.type=`V8IntrinsicIdentifier`,this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};function P(e,t){let[n,r]=typeof t==`string`?[t,{}]:t,i=Object.keys(r),a=i.length===0;return e.some(e=>{if(typeof e==`string`)return a&&e===n;{let[t,a]=e;if(t!==n)return!1;for(let e of i)if(a[e]!==r[e])return!1;return!0}})}function On(e,t,n){let r=e.find(e=>Array.isArray(e)?e[0]===t:e===t);return r&&Array.isArray(r)&&r.length>1?r[1][n]:null}var kn=[`minimal`,`fsharp`,`hack`,`smart`],An=[`^^`,`@@`,`^`,`%`,`#`];function jn(e){if(P(e,`decorators`)){if(P(e,`decorators-legacy`))throw Error(`Cannot use the decorators and decorators-legacy plugin together`);let t=On(e,`decorators`,`decoratorsBeforeExport`);if(t!=null&&typeof t!=`boolean`)throw Error(`'decoratorsBeforeExport' must be a boolean, if specified.`);let n=On(e,`decorators`,`allowCallParenthesized`);if(n!=null&&typeof n!=`boolean`)throw Error(`'allowCallParenthesized' must be a boolean.`)}if(P(e,`flow`)&&P(e,`typescript`))throw Error(`Cannot combine flow and typescript plugins.`);if(P(e,`placeholders`)&&P(e,`v8intrinsic`))throw Error(`Cannot combine placeholders and v8intrinsic plugins.`);if(P(e,`pipelineOperator`)){let t=On(e,`pipelineOperator`,`proposal`);if(!kn.includes(t)){let e=kn.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}let n=[`recordAndTuple`,{syntaxType:`hash`}],r=P(e,n);if(t===`hack`){if(P(e,`placeholders`))throw Error(`Cannot combine placeholders plugin and Hack-style pipes.`);if(P(e,`v8intrinsic`))throw Error(`Cannot combine v8intrinsic plugin and Hack-style pipes.`);let t=On(e,`pipelineOperator`,`topicToken`);if(!An.includes(t)){let e=An.map(e=>`"${e}"`).join(`, `);throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if(t===`#`&&r)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(n)}\`.`)}else if(t===`smart`&&r)throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(n)}\`.`)}if(P(e,`moduleAttributes`)){if(P(e,`importAssertions`)||P(e,`importAttributes`))throw Error(`Cannot combine importAssertions, importAttributes and moduleAttributes plugins.`);if(On(e,`moduleAttributes`,`version`)!==`may-2020`)throw Error(`The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.`)}if(P(e,`importAssertions`)&&P(e,`importAttributes`))throw Error(`Cannot combine importAssertions and importAttributes plugins.`);if(P(e,`recordAndTuple`)){let t=On(e,`recordAndTuple`,`syntaxType`);if(t!=null){let e=[`hash`,`bar`];if(!e.includes(t))throw Error(`The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: `+e.map(e=>`'${e}'`).join(`, `))}}if(P(e,`asyncDoExpressions`)&&!P(e,`doExpressions`)){let e=Error(`'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.`);throw e.missingPlugins=`doExpressions`,e}if(P(e,`optionalChainingAssign`)&&On(e,`optionalChainingAssign`,`version`)!==`2023-07`)throw Error(`The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.`)}var Mn={estree:ne,jsx:sn,flow:nn,typescript:yn,v8intrinsic:Dn,placeholders:En},Nn=Object.keys(Mn),Pn={sourceType:`script`,sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function Fn(e){if(e==null)return Object.assign({},Pn);if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");let t={};for(let n of Object.keys(Pn))t[n]=e[n]??Pn[n];return t}var In=class extends fn{checkProto(e,t,n,r){if(e.type===`SpreadElement`||this.isObjectMethod(e)||e.computed||e.shorthand)return;let i=e.key;if((i.type===`Identifier`?i.name:i.value)===`__proto__`){if(t){this.raise(v.RecordNoProto,i);return}n.used&&(r?r.doubleProtoLoc===null&&(r.doubleProtoLoc=i.loc.start):this.raise(v.DuplicateProto,i)),n.used=!0}}shouldExitDescending(e,t){return e.type===`ArrowFunctionExpression`&&e.start===t}getExpression(){this.enterInitialScopes(),this.nextToken();let e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){let r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,`SequenceExpression`)}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e,t){e.optionalParametersLoc=t?.loc??this.state.startLoc}parseMaybeAssign(e,t){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let e=this.parseYield();return t&&(e=t.call(this,e,n)),e}let r;e?r=!1:(e=new Wt,r=!0);let{type:i}=this.state;(i===10||E(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,n)),we(this.state.type)){let t=this.startNodeAt(n);if(t.operator=this.state.value,this.match(29)){this.toAssignable(a,!0),t.left=a;let r=n.index;e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),e.privateKeyLoc!=null&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,{in:this.finishNode(t,`AssignmentExpression`)}),t}else r&&this.checkExpressionErrors(e,!0);return a}parseMaybeConditional(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){let n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,`ConditionalExpression`)}return e}parseMaybeUnaryOrPrivate(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){let t=this.getPrivateNameSV(e);(n>=D(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(v.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}let r=this.state.type;if(Oe(r)&&(this.prodParam.hasIn||!this.match(58))){let i=D(r);if(i>n){if(r===39){if(this.expectPlugin(`pipelineOperator`),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;let o=r===41||r===42,s=r===40;if(s&&(i=D(42)),this.next(),r===39&&this.hasPlugin([`pipelineOperator`,{proposal:`minimal`}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(v.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);let c=this.finishNode(a,o||s?`LogicalExpression`:`BinaryExpression`),l=this.state.type;if(s&&(l===41||l===42)||o&&l===40)throw this.raise(v.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}return e}parseExprOpRightExpr(e,t){let n=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption(`pipelineOperator`,`proposal`)){case`hack`:return this.withTopicBindingContext(()=>this.parseHackPipeBody());case`smart`:return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(v.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)});case`fsharp`:return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,Pe(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,n=this.parseMaybeAssign();return d.has(n.type)&&!((e=n.extra)!=null&&e.parenthesized)&&this.raise(v.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(v.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let n=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();let e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(34),a=this.startNode();if(Ae(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin(`throwExpressions`);let n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){let e=a.argument;e.type===`Identifier`?this.raise(v.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(v.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,`UnaryExpression`)}let o=this.parseUpdate(a,i,e);if(r){let{type:e}=this.state;if((this.hasPlugin(`v8intrinsic`)?Ce(e):Ce(e)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(v.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(e,t,n){if(t){let t=e;return this.checkLVal(t.argument,{in:this.finishNode(t,`UpdateExpression`)}),e}let r=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;ke(this.state.type)&&!this.canInsertSemicolon();){let e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(e,`UpdateExpression`)})}return i}parseExprSubscripts(e){let t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){let r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1;while(!r.stop);return e}parseSubscript(e,t,n,r){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(e,t,n,r);if(Fe(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(i===18){if(n&&(this.raise(v.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return r.stop=!0,e;r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{let n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):(r.stop=!0,e)}}parseMember(e,t,n,r,i){let a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(e.type===`Super`&&this.raise(v.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,`OptionalMemberExpression`)):this.finishNode(a,`MemberExpression`)}parseBind(e,t,n,r){let i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,`BindExpression`),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(t);o.callee=e;let{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(zt()),a=new Wt),c&&(o.optional=r),r?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,e.type===`Import`,e.type!==`Super`,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){let r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(v.OptionalChainingNoTemplate,t),this.finishNode(r,`TaggedTemplateExpression`)}atPossibleAsyncArrow(e){return e.type===`Identifier`&&e.name===`async`&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&e.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin(`importAssertions`)||this.expectPlugin(`importAttributes`)}finishCallExpression(e,t){if(e.callee.type===`Import`)if(e.arguments.length===2&&(this.hasPlugin(`moduleAttributes`)||this.expectImportAttributesPlugin()),e.arguments.length===0||e.arguments.length>2)this.raise(v.ImportCallArity,e,{maxArgumentCount:this.hasPlugin(`importAttributes`)||this.hasPlugin(`importAssertions`)||this.hasPlugin(`moduleAttributes`)?2:1});else for(let t of e.arguments)t.type===`SpreadElement`&&this.raise(v.ImportCallSpreadArgument,t);return this.finishNode(e,t?`OptionalCallExpression`:`CallExpression`)}parseCallExpressionArguments(e,t,n,r,i){let a=[],o=!0,s=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){t&&!this.hasPlugin(`importAttributes`)&&!this.hasPlugin(`importAssertions`)&&!this.hasPlugin(`moduleAttributes`)&&this.raise(v.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}a.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=s,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&lt(e,t.innerComments),t.callee.trailingComments&&lt(e,t.callee.trailingComments),e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null,{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,`Import`):(this.raise(v.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,`Import`));case 78:return t=this.startNode(),this.next(),this.finishNode(t,`ThisExpression`);case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133: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 e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr();if(e.type===`MemberExpression`)return this.finishNode(t,`BindExpression`);throw this.raise(v.UnsupportedBind,e)}case 138:return this.raise(v.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 e=this.getPluginOption(`pipelineOperator`,`proposal`);if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{let e=this.input.codePointAt(this.nextTokenStart());He(e)||e===62?this.expectOnePlugin([`jsx`,`flow`,`typescript`]):this.unexpected();break}default:if(E(r)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&n.name===`async`&&!this.canInsertSemicolon()){let{type:e}=this.state;if(e===68)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(E(e))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(e===90)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}else this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let n=this.getPluginOption(`pipelineOperator`,`proposal`);if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=i(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(e){let t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){let r=n===`smart`?`PipelinePrimaryTopicReference`:`TopicReference`;return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n===`smart`?v.PrimaryTopicNotAllowed:v.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,r)}else throw this.raise(v.PipeTopicUnconfiguredToken,t,{token:Ne(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case`hack`:return this.hasPlugin([`pipelineOperator`,{topicToken:Ne(n)}]);case`smart`:return n===27;default:throw this.raise(v.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Ht(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(v.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin(`doExpressions`),t&&this.expectPlugin(`asyncDoExpressions`),e.async=t,this.next();let n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,`DoExpression`)}parseSuper(){let e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(v.SuperNotAllowed,e):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(v.UnexpectedSuper,e),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(v.UnsupportedSuper,e),this.finishNode(e,`Super`)}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(i(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,`PrivateName`)}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`function`);return this.next(),this.match(103)?this.expectPlugin(`functionSent`):this.hasPlugin(`functionSent`)||this.unexpected(),this.parseMetaProperty(e,t,`sent`)}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;let r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(v.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,`MetaProperty`)}parseImportMetaProperty(e){let t=this.createIdentifier(this.startNodeAtNode(e),`import`);if(this.next(),this.isContextual(101))this.inModule||this.raise(v.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);if(t||this.unexpected(),this.expectPlugin(t?`sourcePhaseImports`:`deferredImportEvaluation`),!this.options.createImportExpressions)throw this.raise(v.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=t?`source`:`defer`,this.parseImportCall(e)}return this.parseMetaProperty(e,t,`meta`)}parseLiteralAtNode(e,t,n){return this.addExtra(n,`rawValue`,e),this.addExtra(n,`raw`,this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){let n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,`StringLiteral`)}parseNumericLiteral(e){return this.parseLiteral(e,`NumericLiteral`)}parseBigIntLiteral(e){return this.parseLiteral(e,`BigIntLiteral`)}parseDecimalLiteral(e){return this.parseLiteral(e,`DecimalLiteral`)}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,`raw`,this.input.slice(t.start,this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,`RegExpLiteral`)}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,`BooleanLiteral`)}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,`NullLiteral`)}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,n;this.next(),this.expressionScope.enter(Rt());let r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],s=new Wt,c=!0,l,u;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,s.optionalParametersLoc===null?null:s.optionalParametersLoc),this.match(11)){u=this.state.startLoc;break}if(this.match(21)){let e=this.state.startLoc;if(l=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(s,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let f=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(f=this.parseArrow(f))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(f,o,!1),f):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),u&&this.unexpected(u),l&&this.unexpected(l),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,`SequenceExpression`),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,`parenthesized`,!0),this.addExtra(t,`parenStart`,e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,`ParenthesizedExpression`)}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),`new`);this.next();let n=this.parseMetaProperty(e,t,`target`);return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(v.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,`NewExpression`)}parseNewCallee(e){let t=this.match(83),n=this.parseNoCallExpr();e.callee=n,t&&(n.type===`Import`||n.type===`ImportExpression`)&&this.raise(v.ImportCallNotNewExpression,n)}parseTemplateElement(e){let{start:t,startLoc:n,end:r,value:a}=this.state,o=t+1,s=this.startNodeAt(i(n,1));a===null&&(e||this.raise(v.InvalidEscapeSequenceTemplate,i(this.state.firstInvalidTemplateEscapePos,1)));let c=this.match(24),l=c?-1:-2,u=r+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,`
`),cooked:a===null?null:a.slice(1,l)},s.tail=c,this.next();let d=this.finishNode(s,`TemplateElement`);return this.resetEndLocation(d,i(this.state.lastTokEndLoc,l)),d}parseTemplate(e){let t=this.startNode(),n=this.parseTemplateElement(e),r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,`TemplateLiteral`)}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&i.type!==`SpreadElement`&&this.raise(v.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,`shorthand`,!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c=`ObjectExpression`;return t?c=`ObjectPattern`:n&&(c=`RecordExpression`),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,`trailingComma`,this.state.lastTokStartLoc.index),this.addExtra(e,`trailingCommaLoc`,this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type===`Identifier`&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin(`decorators`)&&this.raise(v.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());let n=this.startNode(),r=!1,i=!1,a;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;t===`async`&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),(t===`get`||t===`set`)&&(i=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(v.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,r,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind===`get`?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e);n.length!==t&&this.raise(e.kind===`get`?v.BadGetterArity:v.BadSetterArity,e),e.kind===`set`&&n[n.length-1]?.type===`RestElement`&&this.raise(v.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,`ObjectMethod`);return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind=`method`,e.method=!0,this.parseMethod(e,t,n,!1,!1,`ObjectMethod`)}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,`ObjectProperty`);if(!e.computed&&e.key.type===`Identifier`){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,j(e.key));else if(this.match(29)){let n=this.state.startLoc;r==null?this.raise(v.InvalidCoverInitializedName,n):r.shorthandAssignLoc===null&&(r.shorthandAssignLoc=n),e.value=this.parseMaybeDefault(t,j(e.key))}else e.value=j(e.key);return e.shorthand=!0,this.finishNode(e,`ObjectProperty`)}}parseObjPropValue(e,t,n,r,i,a,o){let s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:r}=this.state,i;if(be(n))i=this.parseIdentifier(!0);else switch(n){case 134:i=this.parseNumericLiteral(r);break;case 133:i=this.parseStringLiteral(r);break;case 135:i=this.parseBigIntLiteral(r);break;case 136:i=this.parseDecimalLiteral(r);break;case 138:{let e=this.state.startLoc;t==null?this.raise(v.UnexpectedPrivateField,e):t.privateKeyLoc===null&&(t.privateKeyLoc=e),i=this.parsePrivateName();break}default:this.unexpected()}e.key=i,n!==138&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(Ht(n,e.generator)),this.parseFunctionParams(e,r);let s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n,r){n&&this.expectPlugin(`recordAndTuple`);let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!n,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,n?`TupleExpression`:`ArrayExpression`)}parseArrowExpression(e,t,n,r){this.scope.enter(6);let i=Ht(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);let a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,`ArrowFunctionExpression`)}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){let r=t&&!this.match(5);if(this.expressionScope.enter(Bt()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,i=>{let a=!this.isSimpleParamList(e.params);i&&a&&this.raise(v.IllegalLanguageModeDirective,(e.kind===`method`||e.kind===`constructor`)&&e.key?e.key.loc.end:e);let o=!r&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!n&&!a,t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return e.type===`Identifier`}isSimpleParamList(e){for(let t=0,n=e.length;t<n;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,n,r=!0){let i=!t&&new Set,a={type:`FormalParameters`};for(let t of e.params)this.checkLVal(t,{in:a,binding:5,checkClashes:i,strictModeChanged:r})}parseExprList(e,t,n,r){let i=[],a=!0;for(;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}parseExprListItem(e,t,n){let r;if(this.match(12))e||this.raise(v.UnexpectedToken,this.state.curPosition(),{unexpected:`,`}),r=null;else if(this.match(21)){let e=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin(`partialApplication`),n||this.raise(v.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),r=this.finishNode(e,`ArgumentPlaceholder`)}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}parseIdentifier(e){let t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,`Identifier`)}parseIdentifierName(e){let t,{startLoc:n,type:r}=this.state;be(r)?t=this.state.value:this.unexpected();let i=ye(r);return e?i&&this.replaceToken(132):this.checkReservedWord(t,n,i,!1),this.next(),t}checkReservedWord(e,t,n,r){if(!(e.length>10||!tt(e))){if(n&&Qe(e)){this.raise(v.UnexpectedKeyword,t,{keyword:e});return}if((this.state.strict?r?Ze:Ye:Je)(e,this.inModule)){this.raise(v.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e===`yield`){if(this.prodParam.hasYield){this.raise(v.YieldBindingIdentifier,t);return}}else if(e===`await`){if(this.prodParam.hasAwait){this.raise(v.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(v.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e===`arguments`&&this.scope.inClassAndNotInNonArrowFunction){this.raise(v.ArgumentsInClass,t);return}}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(e){let t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(v.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(v.ObsoleteAwaitStar,t),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,`AwaitExpression`)}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Fe(e)||e===102&&!this.state.containsEsc||e===137||e===56||this.hasPlugin(`v8intrinsic`)&&e===54}parseYield(){let e=this.startNode();this.expressionScope.recordParameterInitializerError(v.YieldInParameter,e),this.next();let t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,`YieldExpression`)}parseImportCall(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin(`importAttributes`)||this.hasPlugin(`importAssertions`))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,`ImportExpression`)}checkPipelineAtInfixOperator(e,t){this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])&&e.type===`SequenceExpression`&&this.raise(v.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,`PipelineBareFunction`)}else{let n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,`PipelineTopicExpression`)}}isSimpleReference(e){switch(e.type){case`MemberExpression`:return!e.computed&&this.isSimpleReference(e.object);case`Identifier`:return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(v.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(v.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin([`pipelineOperator`,{proposal:`smart`}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin(`moduleBlocks`);let e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,`module`)}finally{n()}return this.finishNode(e,`ModuleExpression`)}parsePropertyNamePrefixOperator(e){}},Ln={kind:1},Rn={kind:2},zn=/[\uD800-\uDFFF]/u,Bn=/in(?:stanceof)?/y;function Vn(e,t){for(let n=0;n<e.length;n++){let r=e[n],{type:a}=r;if(typeof a==`number`){if(a===138){let{loc:t,start:a,value:o,end:s}=r,c=a+1,l=i(t.start,1);e.splice(n,1,new At({type:O(27),value:`#`,start:a,end:c,startLoc:t.start,endLoc:l}),new At({type:O(132),value:o,start:c,end:s,startLoc:l,endLoc:t.end})),n++;continue}if(Fe(a)){let{loc:o,start:s,value:c,end:l}=r,u=s+1,d=i(o.start,1),f;f=t.charCodeAt(s)===96?new At({type:O(22),value:"`",start:s,end:u,startLoc:o.start,endLoc:d}):new At({type:O(8),value:`}`,start:s,end:u,startLoc:o.start,endLoc:d});let p,m,h,g;a===24?(m=l-1,h=i(o.end,-1),p=c===null?null:c.slice(1,-1),g=new At({type:O(22),value:"`",start:m,end:l,startLoc:h,endLoc:o.end})):(m=l-2,h=i(o.end,-2),p=c===null?null:c.slice(1,-2),g=new At({type:O(23),value:"${",start:m,end:l,startLoc:h,endLoc:o.end})),e.splice(n,1,f,new At({type:O(20),value:p,start:u,end:m,startLoc:d,endLoc:h}),g),n+=2;continue}r.type=O(a)}}return e}var Hn=class extends In{parseTopLevel(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=Vn(this.tokens,this.input)),this.finishNode(e,`File`)}parseProgram(e,t=139,n=this.options.sourceType){if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(v.ModuleExportUndefined,t,{localName:e});let r;return r=t===139?this.finishNode(e,`Program`):this.finishNodeAt(e,`Program`,i(this.state.startLoc,-1)),r}stmtToDirective(e){let t=e;t.type=`Directive`,t.value=t.expression,delete t.expression;let n=t.value,r=n.value,i=this.input.slice(n.start,n.end),a=n.value=i.slice(1,-1);return this.addExtra(n,`raw`,i),this.addExtra(n,`rawValue`,a),this.addExtra(n,`expressionValue`,r),n.type=`DirectiveLiteral`,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,`InterpreterDirective`)}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(e,t){if(He(e)){if(Bn.lastIndex=t,Bn.test(this.input)){let e=this.codePointAtPos(Bn.lastIndex);if(!Ue(e)&&e!==92)return!1}return!0}else return e===92}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}startsUsingForOf(){let{type:e,containsEsc:t}=this.lookahead();if(e===102&&!t)return!1;if(E(e)&&!this.hasFollowingLineBreak())return this.expectPlugin(`explicitResourceManagement`),!0}startsAwaitUsing(){let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,`using`)){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))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(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let n=this.state.type,r=this.startNode(),i=!!(e&2),a=!!(e&4),o=e&1;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?v.StrictFunction:this.options.annexB?v.SloppyFunctionAnnexB:v.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(v.UnexpectedLexicalDeclaration,r):this.raise(v.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,`await using`);break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin(`explicitResourceManagement`),!this.scope.inModule&&this.scope.inTopLevel?this.raise(v.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,`using`);case 100:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(t!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&t!==123))break}case 75:i||this.raise(v.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let e=this.lookaheadCharCode();if(e===40||e===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(v.UnexpectedImportExport,this.state.startLoc),this.next();let e;return n===83?(e=this.parseImport(r),e.type===`ImportDeclaration`&&(!e.importKind||e.importKind===`value`)&&(this.sawUnambiguousESM=!0)):(e=this.parseExport(r,t),(e.type===`ExportNamedDeclaration`&&(!e.exportKind||e.exportKind===`value`)||e.type===`ExportAllDeclaration`&&(!e.exportKind||e.exportKind===`value`)||e.type===`ExportDefaultDeclaration`)&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(v.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}let s=this.state.value,c=this.parseExpression();return E(n)&&c.type===`Identifier`&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(v.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return this.hasPlugin(`decorators-legacy`)?!0:this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!==!1}maybeTakeDecorators(e,t,n){return e&&(t.decorators&&t.decorators.length>0?(typeof this.getPluginOption(`decorators`,`decoratorsBeforeExport`)!=`boolean`&&this.raise(v.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(v.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(v.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin([`decorators`,`decorators-legacy`]);let e=this.startNode();if(this.next(),this.hasPlugin(`decorators`)){let t=this.state.startLoc,n;if(this.match(10)){let t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);let r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption(`decorators`,`allowCallParenthesized`)===!1&&e.expression!==n&&this.raise(v.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let e=this.startNodeAt(t);e.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,`MemberExpression`)}e.expression=this.parseMaybeDecoratorArguments(n)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,`Decorator`)}parseMaybeDecoratorArguments(e){if(this.eat(10)){let t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,`CallExpression`)}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?`BreakStatement`:`ContinueStatement`)}verifyBreakContinue(e,t){let n;for(n=0;n<this.state.labels.length;++n){let r=this.state.labels[n];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(t||r.kind===1)||e.label&&t))break}if(n===this.state.labels.length){let n=t?`BreakStatement`:`ContinueStatement`;this.raise(v.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Ln),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,`DoWhileStatement`)}parseForStatement(e){this.next(),this.state.labels.push(Ln);let t=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(t=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return t!==null&&this.unexpected(t),this.parseFor(e,null);let n=this.isContextual(100);{let r=this.isContextual(96)&&this.startsAwaitUsing(),i=r||this.isContextual(107)&&this.startsUsingForOf(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){let n=this.startNode(),a;r?(a=`await using`,this.isAwaitAllowed()||this.raise(v.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);let o=this.finishNode(n,`VariableDeclaration`),s=this.match(58);return s&&i&&this.raise(v.ForInUsing,o),(s||this.isContextual(102))&&o.declarations.length===1?this.parseForIn(e,o,t):(t!==null&&this.unexpected(t),this.parseFor(e,o))}}let r=this.isContextual(95),i=new Wt,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(v.ForOfLet,a),t===null&&r&&a.type===`Identifier`&&this.raise(v.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let n=o?`ForOfStatement`:`ForInStatement`;return this.checkLVal(a,{in:{type:n}}),this.parseForIn(e,a,t)}else this.checkExpressionErrors(i,!0);return t!==null&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,`IfStatement`)}parseReturnStatement(e){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(v.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(Rn),this.scope.enter(0);let n;for(let e;!this.match(8);)if(this.match(61)||this.match(65)){let r=this.match(61);n&&this.finishNode(n,`SwitchCase`),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(v.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,`SwitchCase`),this.next(),this.state.labels.pop(),this.finishNode(e,`SwitchStatement`)}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(v.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type===`Identifier`?8:0),this.checkLVal(e,{in:{type:`CatchClause`},binding:9}),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(v.NoCatchOrFinally,e),this.finishNode(e,`TryStatement`)}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Ln),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,`WhileStatement`)}parseWithStatement(e){return this.state.strict&&this.raise(v.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,`WithStatement`)}parseEmptyStatement(e){return this.next(),this.finishNode(e,`EmptyStatement`)}parseLabeledStatement(e,t,n,r){for(let e of this.state.labels)e.name===t&&this.raise(v.LabelRedeclaration,n,{labelName:t});let i=Ee(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let n=this.state.labels[t];if(n.statementStart===e.start)n.statementStart=this.state.start,n.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.state.start}),e.body=r&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)}parseBlock(e=!1,t=!0,n){let r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,`BlockStatement`)}isValidDirective(e){return e.type===`ExpressionStatement`&&e.expression.type===`StringLiteral`&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){let a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){let a=this.state.strict,o=!1,s=!1;for(;!this.match(r);){let r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){let e=this.stmtToDirective(r);t.push(e),!o&&e.value.value===`use strict`&&(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}i?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,`ForStatement`)}parseForIn(e,t,n){let r=this.match(58);return this.next(),r?n!==null&&this.unexpected(n):e.await=n!==null,t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!r||!this.options.annexB||this.state.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(v.ForInOfLoopInitializer,t,{type:r?`ForInStatement`:`ForOfStatement`}),t.type===`AssignmentPattern`&&this.raise(v.InvalidLhs,t,{ancestor:{type:`ForStatement`}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?`ForInStatement`:`ForOfStatement`)}parseVar(e,t,n,r=!1){let i=e.declarations=[];for(e.kind=n;;){let e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,e.init===null&&!r&&(e.id.type!==`Identifier`&&!(t&&(this.match(58)||this.isContextual(102)))?this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:`destructuring`}):(n===`const`||n===`using`||n===`await using`)&&!(this.match(58)||this.isContextual(102))&&this.raise(v.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(e,`VariableDeclarator`)),!this.eat(12))break}return e}parseVarId(e,t){let n=this.parseBindingAtom();(t===`using`||t===`await using`)&&(n.type===`ArrayPattern`||n.type===`ObjectPattern`)&&this.raise(v.UsingDeclarationHasBindingPattern,n.loc.start),this.checkLVal(n,{in:{type:`VariableDeclarator`},binding:t===`var`?5:8201}),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let n=t&2,r=!!(t&1),i=r&&!(t&4),a=!!(t&8);this.initFunction(e,a),this.match(55)&&(n&&this.raise(v.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ht(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?`FunctionDeclaration`:`FunctionExpression`)}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||E(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(Lt()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();let r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type===`Identifier`&&e.name===`constructor`||e.type===`StringLiteral`&&e.value===`constructor`}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:e},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(v.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}let e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),e.kind===`constructor`&&e.decorators&&e.decorators.length>0&&this.raise(v.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(v.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,`ClassBody`)}parseClassMemberFromModifier(e,t){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let r=t;return r.kind=`method`,r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){let r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){let i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind=`method`;let t=this.match(138);if(this.parseClassElementName(l),t){this.pushClassPrivateMethod(e,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsGenerator,i.key),this.pushClassMethod(e,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&E(this.state.type),f=this.parseClassElementName(t),p=d?f.name:null,m=this.isPrivateName(f),h=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind=`method`,m){this.pushClassPrivateMethod(e,a,!1,!1);return}let r=this.isNonstaticConstructor(i),o=!1;r&&(i.kind=`constructor`,n.hadConstructor&&!this.hasPlugin(`typescript`)&&this.raise(v.DuplicateConstructor,f),r&&this.hasPlugin(`typescript`)&&t.override&&this.raise(v.OverrideOnConstructor,f),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if(p===`async`&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);let t=this.eat(55);u.optional&&this.unexpected(h),l.kind=`method`;let n=this.match(138);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}else if((p===`get`||p===`set`)&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f),l.kind=p;let t=this.match(138);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(v.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(p===`accessor`&&!this.isLineTerminator()){this.expectPlugin(`decoratorAutoAccessors`),this.resetPreviousNodeTrailingComments(f);let t=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected()}parseClassElementName(e){let{type:t,value:n}=this.state;if((t===132||t===133)&&e.static&&n===`prototype`&&this.raise(v.StaticPrototype,this.state.startLoc),t===138){n===`constructor`&&this.raise(v.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(208);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,`StaticBlock`)),(n=t.decorators)!=null&&n.length&&this.raise(v.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(v.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){!n&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(v.ConstructorClassField,t.key);let r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,`ClassMethod`,!0))}pushClassPrivateMethod(e,t,n,r){let i=this.parseMethod(t,n,r,!1,!1,`ClassPrivateMethod`,!0);e.body.push(i);let a=i.kind===`get`?i.static?6:2:i.kind===`set`?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassPrivateProperty`)}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassProperty`)}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,`ClassAccessorProperty`)}parseInitializer(e){this.scope.enter(80),this.expressionScope.enter(Bt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(E(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else if(n||!t)e.id=null;else throw this.raise(v.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(v.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,`ExportAllDeclaration`)}let l=this.maybeParseExportNamedSpecifiers(e);r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98);let u;if(c||l){if(u=!1,t)throw this.raise(v.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){let n=e;if(this.checkExport(n,!0,!1,!!n.source),n.declaration?.type===`ClassDeclaration`)this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(v.UnsupportedDecoratorExport,e);return this.finishNode(n,`ExportNamedDeclaration`)}if(this.eat(65)){let n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,r.type===`ClassDeclaration`)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(v.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.finishNode(n,`ExportDefaultDeclaration`)}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin(`exportDefaultFrom`,t?.loc.start);let n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,`ExportDefaultSpecifier`)],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;(t=e).specifiers??(t.specifiers=[]);let n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,`ExportNamespaceSpecifier`)),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;t.specifiers||=[];let n=t.exportKind===`type`;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,t.declaration=null,this.hasPlugin(`importAssertions`)&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(e){return this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,this.hasPlugin(`importAssertions`)&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,`function`)}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin(`decorators`)&&this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(v.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(v.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(E(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let{type:e}=this.lookahead();if(E(e)&&e!==98||e===5)return this.expectOnePlugin([`flow`,`typescript`]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),n=this.isUnparsedContextual(t,`from`);if(this.input.charCodeAt(t)===44||E(this.state.type)&&n)return!0;if(this.match(65)&&n){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return e===26&&(this.expectOnePlugin([`decorators`,`decorators-legacy`]),this.hasPlugin(`decorators`))?(this.getPluginOption(`decorators`,`decoratorsBeforeExport`)===!0&&this.raise(v.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)||this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(v.UsingDeclarationExport,this.state.startLoc),!0):e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){if(t){var i;if(n){if(this.checkDuplicateExports(e,`default`),this.hasPlugin(`exportDefaultFrom`)){var a;let t=e.declaration;t.type===`Identifier`&&t.name===`from`&&t.end-t.start===4&&!((a=t.extra)!=null&&a.parenthesized)&&this.raise(v.ExportDefaultFromAsIdentifier,t)}}else if((i=e.specifiers)!=null&&i.length)for(let t of e.specifiers){let{exported:e}=t,n=e.type===`Identifier`?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){let{local:e}=t;e.type===`Identifier`?(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e)):this.raise(v.ExportBindingIsString,t,{localName:e.value,exportName:n})}}else if(e.declaration){let t=e.declaration;if(t.type===`FunctionDeclaration`||t.type===`ClassDeclaration`){let{id:n}=t;if(!n)throw Error(`Assertion failure`);this.checkDuplicateExports(e,n.name)}else if(t.type===`VariableDeclaration`)for(let e of t.declarations)this.checkDeclaration(e.id)}}}checkDeclaration(e){if(e.type===`Identifier`)this.checkDuplicateExports(e,e.name);else if(e.type===`ObjectPattern`)for(let t of e.properties)this.checkDeclaration(t);else if(e.type===`ArrayPattern`)for(let t of e.elements)t&&this.checkDeclaration(t);else e.type===`ObjectProperty`?this.checkDeclaration(e.value):e.type===`RestElement`?this.checkDeclaration(e.argument):e.type===`AssignmentPattern`&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&(t===`default`?this.raise(v.DuplicateDefaultExport,e):this.raise(v.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(130),i=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=Jt(e.local):e.exported||=j(e.local),this.finishNode(e,`ExportSpecifier`)}parseModuleExportName(){if(this.match(133)){let e=this.parseStringLiteral(this.state.value),t=zn.exec(e.value);return t&&this.raise(v.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return e.assertions==null?!1:e.assertions.some(({key:e,value:t})=>t.value===`json`&&(e.type===`Identifier`?e.name===`type`:e.value===`type`))}checkImportReflection(e){let{specifiers:t}=e,n=t.length===1?t[0].type:null;e.phase===`source`?n!==`ImportDefaultSpecifier`&&this.raise(v.SourcePhaseImportRequiresDefault,t[0].loc.start):e.phase===`defer`?n!==`ImportNamespaceSpecifier`&&this.raise(v.DeferImportRequiresNamespace,t[0].loc.start):e.module&&(n!==`ImportDefaultSpecifier`&&this.raise(v.ImportReflectionNotBinding,t[0].loc.start),e.assertions?.length>0&&this.raise(v.ImportReflectionHasAssertion,t[0].loc.start))}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!==`ExportAllDeclaration`){let{specifiers:t}=e;if(t!=null){let e=t.find(e=>{let t;if(e.type===`ExportSpecifier`?t=e.local:e.type===`ImportSpecifier`&&(t=e.imported),t!==void 0)return t.type===`Identifier`?t.name!==`default`:t.value!==`default`});e!==void 0&&this.raise(v.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return e?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,n,r){t||(n===`module`?(this.expectPlugin(`importReflection`,r),e.module=!0):this.hasPlugin(`importReflection`)&&(e.module=!1),n===`source`?(this.expectPlugin(`sourcePhaseImports`,r),e.phase=`source`):n===`defer`?(this.expectPlugin(`deferredImportEvaluation`,r),e.phase=`defer`):this.hasPlugin(`sourcePhaseImports`)&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let n=this.parseIdentifier(!0),{type:r}=this.state;return(be(r)?r!==98||this.lookaheadCharCode()===102:r!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return E(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,`ImportDeclaration`)}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{in:{type:t},binding:n}),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(v.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!==`type`&&this.raise(v.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(v.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(v.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,`ImportAttribute`))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin(`moduleAttributes`)?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin(`importAttributes`)?(this.getPluginOption(`importAttributes`,`deprecatedAssertSyntax`)!==!0&&this.raise(v.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,`deprecatedAssertSyntax`,!0)):this.expectOnePlugin([`importAttributes`,`importAssertions`]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin(`importAttributes`)||this.hasPlugin(`importAssertions`))t=[];else if(this.hasPlugin(`moduleAttributes`))t=[];else return;!n&&this.hasPlugin(`importAssertions`)?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,`ImportDefaultSpecifier`)),!0}else if(be(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),`ImportDefaultSpecifier`),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,`ImportNamespaceSpecifier`),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(v.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),r=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,r,e.importKind===`type`||e.importKind===`typeof`,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(v.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||=j(n)}return this.finishImportSpecifier(e,`ImportSpecifier`,i)}isThisParam(e){return e.type===`Identifier`&&e.name===`this`}},Un=class extends Hn{constructor(e,t){e=Fn(e),super(e,t),this.options=e,this.initializeScopes(),this.plugins=Wn(this.options.plugins),this.filename=e.sourceFilename}getScopeHandler(){return rt}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}};function Wn(e){let t=new Map;for(let n of e){let[e,r]=Array.isArray(n)?n:[n,{}];t.has(e)||t.set(e,r||{})}return t}function Gn(e,t){if(t?.sourceType===`unambiguous`){t=Object.assign({},t);try{t.sourceType=`module`;let n=Yn(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType=`script`,Yn(t,e).parse()}catch{}else r.program.sourceType=`script`;return r}catch(n){try{return t.sourceType=`script`,Yn(t,e).parse()}catch{}throw n}}else return Yn(t,e).parse()}function Kn(e,t){let n=Yn(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()}function qn(e){let t={};for(let n of Object.keys(e))t[n]=O(e[n]);return t}var Jn=qn(ve);function Yn(e,t){let n=Un;return e!=null&&e.plugins&&(jn(e.plugins),n=Zn(e.plugins)),new n(e,t)}var Xn={};function Zn(e){let t=Nn.filter(t=>P(e,t)),n=t.join(`/`),r=Xn[n];if(!r){r=Un;for(let e of t)r=Mn[e](r);Xn[n]=r}return r}e.parse=Gn,e.parseExpression=Kn,e.tokTypes=Jn}),no={};Qa(no,{parsers:()=>Ls});var ro=eo(to(),1);function io(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var ao=io(` 	`),oo=io(/[^\n\r]/u);function so(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var co=so;function lo(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
`)return t-2;if(i===`
`||i===`\r`||i===`\u2028`||i===`\u2029`)return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
`)return t+2;if(i===`
`||i===`\r`||i===`\u2028`||i===`\u2029`)return t+1}return t}var uo=lo;function fo(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?oo(e,t):t}var po=fo;function mo(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ao(e,r),r=co(e,r),r=po(e,r),r=uo(e,r);return r}var ho=mo;function go(e){let t=[];for(let n of e)try{return n()}catch(e){t.push(e)}throw Object.assign(Error(`All combinations failed`),{errors:t})}var _o=go;function vo(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var yo=vo,bo=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)};function xo(e){return Array.isArray(e)&&e.length>0}var So=xo;function Co(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(Co(n),t):t}function wo(e){return e.range?.[1]??e.end}function To(e){let t=new Set(e);return e=>t.has(e?.type)}var Eo=To([`Block`,`CommentBlock`,`MultiLine`]);function Do(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(e=>e.trimStart()[0]===`*`)}var Oo=Do;function ko(e){return Eo(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/u.test(e.value)}var Ao=ko,jo=null;function Mo(e){if(jo!==null&&typeof jo.property){let e=jo;return jo=Mo.prototype=null,e}return jo=Mo.prototype=e??Object.create(null),new Mo}var No=10;for(let e=0;e<=No;e++)Mo();function Po(e){return Mo(e)}function Fo(e,t=`type`){Po(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var Io=Fo({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:[`test`,`body`],EmptyStatement:[],ExpressionStatement:[`expression`],File:[`program`],ForInStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`,`returnType`,`typeParameters`,`predicate`],FunctionExpression:[`id`,`params`,`body`,`returnType`,`typeParameters`],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:[`key`,`params`,`body`,`decorators`,`returnType`,`typeParameters`],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:[`params`,`body`,`returnType`,`typeParameters`,`predicate`],ClassBody:[`body`],ClassExpression:[`id`,`body`,`superClass`,`mixins`,`typeParameters`,`superTypeParameters`,`implements`,`decorators`,`superTypeArguments`],ClassDeclaration:[`id`,`body`,`superClass`,`mixins`,`typeParameters`,`superTypeParameters`,`implements`,`decorators`,`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:[`local`,`imported`],ImportExpression:[`source`,`options`,`attributes`],MetaProperty:[`meta`,`property`],ClassMethod:[`key`,`params`,`body`,`decorators`,`returnType`,`typeParameters`],ObjectPattern:[`properties`,`typeAnnotation`,`decorators`],SpreadElement:[`argument`],Super:[],TaggedTemplateExpression:[`tag`,`quasi`,`typeParameters`,`typeArguments`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],YieldExpression:[`argument`],AwaitExpression:[`argument`],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:[`exported`],OptionalMemberExpression:[`object`,`property`],OptionalCallExpression:[`callee`,`arguments`,`typeParameters`,`typeArguments`],ClassProperty:[`key`,`value`,`typeAnnotation`,`decorators`,`variance`],ClassAccessorProperty:[`key`,`value`,`typeAnnotation`,`decorators`],ClassPrivateProperty:[`key`,`value`,`decorators`,`typeAnnotation`,`variance`],ClassPrivateMethod:[`key`,`params`,`body`,`decorators`,`returnType`,`typeParameters`],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`],DeclareExportAllDeclaration:[`source`],DeclaredPredicate:[`value`],ExistsTypeAnnotation:[],FunctionTypeAnnotation:[`typeParameters`,`params`,`rest`,`returnType`,`this`],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:[`id`,`key`,`value`,`variance`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:[`argument`],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`],QualifiedTypeIdentifier:[`id`,`qualification`],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`,`attributes`,`typeArguments`,`typeParameters`],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`],DecimalLiteral:[],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`,`typeAnnotation`,`nameType`],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`],TSEnumDeclaration:[`id`,`members`],TSEnumMember:[`id`,`initializer`],TSModuleDeclaration:[`id`,`body`],TSModuleBlock:[`body`],TSImportType:[`argument`,`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`],TSEnumBody:[`members`],TSExportKeyword:[],TSInterfaceHeritage:[`expression`,`typeArguments`,`typeParameters`],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:[`quasis`,`types`],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`]});function Lo(e,t){if(!(typeof e==`object`&&e))return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=Lo(e[n],t);return e}let n=Io(e);for(let r=0;r<n.length;r++)e[n[r]]=Lo(e[n[r]],t);return t(e)||e}var Ro=Lo;function zo(e,t){let{parser:n,text:r}=t;if(e.type===`File`&&e.program.interpreter){let{program:{interpreter:t},comments:n}=e;delete e.program.interpreter,n.unshift(t)}if(n===`babel`){let t=new Set;e=Ro(e,e=>{var n;(n=e.leadingComments)!=null&&n.some(Ao)&&t.add(Co(e))}),e=Ro(e,e=>{if(e.type===`ParenthesizedExpression`){let{expression:n}=e;if(n.type===`TypeCastExpression`)return n.range=[...e.range],n;let r=Co(e);if(!t.has(r))return n.extra={...n.extra,parenthesized:!0},n}})}if(e=Ro(e,t=>{switch(t.type){case`LogicalExpression`:if(Bo(t))return Vo(t);break;case`VariableDeclaration`:{let e=bo(!1,t.declarations,-1);e!=null&&e.init&&r[wo(e)]!==`;`&&(t.range=[Co(t),wo(e)]);break}case`TSParenthesizedType`:return t.typeAnnotation;case`TSTypeParameter`:if(typeof t.name==`string`){let e=Co(t);t.name={type:`Identifier`,name:t.name,range:[e,e+t.name.length]}}break;case`TopicReference`:e.extra={...e.extra,__isUsingHackPipeline:!0};break;case`ExportAllDeclaration`:if(n===`meriyah`&&t.exported?.type===`Identifier`){let{exported:e}=t,n=r.slice(Co(e),wo(e));(n.startsWith(`"`)||n.startsWith(`'`))&&(t.exported={...t.exported,type:`Literal`,value:t.exported.name,raw:n})}break;case`TSUnionType`:case`TSIntersectionType`:if(t.types.length===1)return t.types[0];break}}),So(e.comments)){let t=bo(!1,e.comments,-1);for(let n=e.comments.length-2;n>=0;n--){let r=e.comments[n];wo(r)===Co(t)&&Eo(r)&&Eo(t)&&Oo(r)&&Oo(t)&&(e.comments.splice(n+1,1),r.value+=`*//*`+t.value,r.range=[Co(r),wo(t)]),t=r}}return e.type===`Program`&&(e.range=[0,r.length]),e}function Bo(e){return e.type===`LogicalExpression`&&e.right.type===`LogicalExpression`&&e.operator===e.right.operator}function Vo(e){return Bo(e)?Vo({type:`LogicalExpression`,operator:e.operator,left:Vo({type:`LogicalExpression`,operator:e.operator,left:e.left,right:e.right.left,range:[Co(e.left),wo(e.right.left)]}),right:e.right.right,range:[Co(e),wo(e)]}):e}var Ho=zo;function Uo(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var Wo=Uo;function Go(e){let{message:t,loc:{line:n,column:r},reasonCode:i}=e,a=e;(i===`MissingPlugin`||i===`MissingOneOfPlugins`)&&(t=`Unexpected token.`,a=void 0);let o=` (${n}:${r})`;return t.endsWith(o)&&(t=t.slice(0,-o.length)),Wo(t,{loc:{start:{line:n,column:r+1}},cause:a})}var Ko=Go,qo=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},Jo=/\*\/$/,Yo=/^\/\*\*?/,Xo=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Zo=/(^|\s+)\/\/([^\n\r]*)/g,Qo=/^(\r?\n)+/,$o=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,es=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ts=/(\r?\n|^) *\* ?/g,ns=[];function rs(e){let t=e.match(Xo);return t?t[0].trimStart():``}function is(e){e=qo(!1,e.replace(Yo,``).replace(Jo,``),ts,`$1`);let t=``;for(;t!==e;)t=e,e=qo(!1,e,$o,`
$1 $2
`);e=e.replace(Qo,``).trimEnd();let n=Object.create(null),r=qo(!1,e,es,``).replace(Qo,``).trimEnd(),i;for(;i=es.exec(e);){let e=qo(!1,i[2],Zo,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...ns,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function as(e){let t=yo(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=is(rs(e));return{shebang:t,text:e,pragmas:n,comments:r}}function os(e){let{pragmas:t}=as(e);return Object.prototype.hasOwnProperty.call(t,`prettier`)||Object.prototype.hasOwnProperty.call(t,`format`)}function ss(e){return e=typeof e==`function`?{parse:e}:e,{astFormat:`estree`,hasPragma:os,locStart:Co,locEnd:wo,...e}}var cs=ss;function ls(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(`.cjs`))return`script`;if(t.endsWith(`.mjs`))return`module`}}var us=ls;function ds(e,t){let{type:n=`JsExpressionRoot`,rootMarker:r,text:i}=t,{tokens:a,comments:o}=e;return delete e.tokens,delete e.comments,{tokens:a,comments:o,type:n,node:e,range:[0,i.length],rootMarker:r}}var fs=ds,ps=e=>cs(xs(e)),ms={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`,`decimal`,`moduleBlocks`,`asyncDoExpressions`,`destructuringPrivate`,`decoratorAutoAccessors`,`importReflection`,`explicitResourceManagement`,[`importAttributes`,{deprecatedAssertSyntax:!0}],`sourcePhaseImports`,`deferredImportEvaluation`,[`optionalChainingAssign`,{version:`2023-07`}],`recordAndTuple`],tokens:!0,ranges:!0},hs=`v8intrinsic`,gs=[[`pipelineOperator`,{proposal:`hack`,topicToken:`%`}],[`pipelineOperator`,{proposal:`minimal`}],[`pipelineOperator`,{proposal:`fsharp`}]],_s=(e,t=ms)=>({...t,plugins:[...t.plugins,...e]}),vs=/@(?:no)?flow\b/u;function ys(e,t){var n;if((n=t.filepath)!=null&&n.endsWith(`.js.flow`))return!0;let r=yo(e);r&&(e=e.slice(r.length));let i=ho(e,0);return i!==!1&&(e=e.slice(0,i)),vs.test(e)}function bs(e,t,n){let r=e(t,n),i=r.errors.find(e=>!Ss.has(e.reasonCode));if(i)throw i;return r}function xs({isExpression:e=!1,optionsCombinations:t}){return(n,r={})=>{if((r.parser===`babel`||r.parser===`__babel_estree`)&&ys(n,r))return r.parser=`babel-flow`,Os.parse(n,r);let i=t;(r.__babelSourceType??us(r))===`script`&&(i=i.map(e=>({...e,sourceType:`script`})));let a=/%[A-Z]/u.test(n);n.includes(`|>`)?i=(a?[...gs,hs]:gs).flatMap(e=>i.map(t=>_s([e],t))):a&&(i=i.map(e=>_s([hs],e)));let o=e?ro.parseExpression:ro.parse,s;try{s=_o(i.map(e=>()=>bs(o,n,e)))}catch({errors:[e]}){throw Ko(e)}return e&&(s=fs(s,{text:n,rootMarker:r.rootMarker})),Ho(s,{parser:`babel`,text:n})}}var Ss=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`.split(`.`)),Cs=[_s([`jsx`])],ws=ps({optionsCombinations:Cs}),Ts=ps({optionsCombinations:[_s([`jsx`,`typescript`]),_s([`typescript`])]}),Es=ps({isExpression:!0,optionsCombinations:[_s([`jsx`])]}),Ds=ps({isExpression:!0,optionsCombinations:[_s([`typescript`])]}),Os=ps({optionsCombinations:[_s([`jsx`,[`flow`,{all:!0,enums:!0}],`flowComments`])]}),ks=ps({optionsCombinations:Cs.map(e=>_s([`estree`],e))}),As={babel:ws,"babel-flow":Os,"babel-ts":Ts,__js_expression:Es,__ts_expression:Ds,__vue_expression:Es,__vue_ts_expression:Ds,__vue_event_binding:ws,__vue_ts_event_binding:Ts,__babel_estree:ks},js=eo(to(),1);function Ms(e={}){let{allowComments:t=!0}=e;return function(e){let n;try{n=(0,js.parseExpression)(e,{tokens:!0,ranges:!0,attachComment:!1})}catch(e){throw Ko(e)}if(!t&&So(n.comments))throw Ns(n.comments[0],`Comment`);return Ps(n),fs(n,{type:`JsonRoot`,text:e})}}function Ns(e,t){let[n,r]=[e.loc.start,e.loc.end].map(({line:e,column:t})=>({line:e,column:t+1}));return Wo(`${t} is not allowed in JSON.`,{loc:{start:n,end:r}})}function Ps(e){switch(e.type){case`ArrayExpression`:for(let t of e.elements)t!==null&&Ps(t);return;case`ObjectExpression`:for(let t of e.properties)Ps(t);return;case`ObjectProperty`:if(e.computed)throw Ns(e.key,`Computed key`);if(e.shorthand)throw Ns(e.key,`Shorthand property`);e.key.type!==`Identifier`&&Ps(e.key),Ps(e.value);return;case`UnaryExpression`:{let{operator:t,argument:n}=e;if(t!==`+`&&t!==`-`)throw Ns(e,`Operator '${e.operator}'`);if(n.type===`NumericLiteral`||n.type===`Identifier`&&(n.name===`Infinity`||n.name===`NaN`))return;throw Ns(n,`Operator '${t}' before '${n.type}'`)}case`Identifier`:if(e.name!==`Infinity`&&e.name!==`NaN`&&e.name!==`undefined`)throw Ns(e,`Identifier '${e.name}'`);return;case`TemplateLiteral`:if(So(e.expressions))throw Ns(e.expressions[0],`'TemplateLiteral' with expression`);for(let t of e.quasis)Ps(t);return;case`NullLiteral`:case`BooleanLiteral`:case`NumericLiteral`:case`StringLiteral`:case`TemplateElement`:return;default:throw Ns(e,`'${e.type}'`)}}var Fs=Ms(),Is={json:cs({parse:Fs,hasPragma(){return!0}}),json5:cs(Fs),jsonc:cs(Fs),"json-stringify":cs({parse:Ms({allowComments:!1}),astFormat:`estree-json`})},Ls={...As,...Is},Rs=no,zs=e({default:()=>my,languages:()=>py,options:()=>dy,printers:()=>fy},1),Bs=Object.defineProperty,Vs=e=>{throw TypeError(e)},Hs=(e,t)=>{for(var n in t)Bs(e,n,{get:t[n],enumerable:!0})},Us=(e,t,n)=>t.has(e)||Vs(`Cannot `+n),Ws=(e,t,n)=>(Us(e,t,`read from private field`),n?n.call(e):t.get(e)),Gs=(e,t,n)=>t.has(e)?Vs(`Cannot add the same private member more than once`):t instanceof WeakSet?t.add(e):t.set(e,n),Ks=(e,t,n,r)=>(Us(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),qs={};Hs(qs,{languages:()=>py,options:()=>dy,printers:()=>fy});var Js=[{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`]}],Ys={};Hs(Ys,{canAttachComment:()=>Df,embed:()=>Pp,experimentalFeatures:()=>ty,getCommentChildNodes:()=>Of,getVisitorKeys:()=>Vc,handleComments:()=>wd,insertPragma:()=>Qp,isBlockComment:()=>Uc,isGap:()=>Af,massageAstNode:()=>_u,print:()=>ey,printComment:()=>Sd,willPrintOwnComments:()=>kf});var Xs=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},F=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)};function Zs(e){return typeof e==`object`&&!!e}var Qs=Zs;function*$s(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,i=e=>Qs(e)&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)i(e)&&(yield e);else i(n)&&(yield n)}}function*ec(e,t){let n=[e];for(let e=0;e<n.length;e++){let r=n[e];for(let e of $s(r,t))yield e,n.push(e)}}function tc(e,{getVisitorKeys:t,predicate:n}){for(let r of ec(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var nc=()=>/[#*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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\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 rc(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function ic(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}var ac=e=>!(rc(e)||ic(e)),oc=/[^\x20-\x7F]/u;function sc(e){if(!e)return 0;if(!oc.test(e))return e.length;e=e.replace(nc(),`  `);let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=ac(e)?1:2)}return t}var cc=sc;function lc(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var uc=lc(` 	`),dc=lc(`,; 	`),fc=lc(/[^\n\r]/u);function pc(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
`)return t-2;if(i===`
`||i===`\r`||i===`\u2028`||i===`\u2029`)return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
`)return t+2;if(i===`
`||i===`\r`||i===`\u2028`||i===`\u2029`)return t+1}return t}var mc=pc;function hc(e,t,n={}){let r=uc(e,n.backwards?t-1:t,n);return r!==mc(e,r,n)}var gc=hc;function _c(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var vc=_c;function yc(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?fc(e,t):t}var bc=yc;function xc(e,t){let n=null,r=t;for(;r!==n;)n=r,r=dc(e,r),r=vc(e,r),r=uc(e,r);return r=bc(e,r),r=mc(e,r),r!==!1&&gc(e,r)}var Sc=xc;function Cc(e){return Array.isArray(e)&&e.length>0}var I=Cc,wc=`'`,Tc=`"`;function Ec(e,t){let n=t===!0||t===wc?wc:Tc,r=n===wc?Tc:wc,i=0,a=0;for(let t of e)t===n?i++:t===r&&a++;return i>a?r:n}var Dc=Ec;function Oc(e,t,n){let r=t===`"`?`'`:`"`;return t+Xs(!1,e,/\\(.)|(["'])/gsu,(e,i,a)=>i===r?i:a===t?`\\`+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(i)?i:`\\`+i))+t}var kc=Oc;function Ac(e,t){let n=e.slice(1,-1);return kc(n,t.parser===`json`||t.parser===`jsonc`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:Dc(n,t.singleQuote),!(t.parser===`css`||t.parser===`less`||t.parser===`scss`||t.__embeddedInHtml))}var jc=Ac;function L(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(L(n),t):t}function R(e){return e.range?.[1]??e.end}function Mc(e,t){let n=L(e);return Number.isInteger(n)&&n===L(t)}function Nc(e,t){let n=R(e);return Number.isInteger(n)&&n===R(t)}function Pc(e,t){return Mc(e,t)&&Nc(e,t)}var Fc=null;function Ic(e){if(Fc!==null&&typeof Fc.property){let e=Fc;return Fc=Ic.prototype=null,e}return Fc=Ic.prototype=e??Object.create(null),new Ic}var Lc=10;for(let e=0;e<=Lc;e++)Ic();function Rc(e){return Ic(e)}function zc(e,t=`type`){Rc(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var Bc=zc,Vc=Bc({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:[`test`,`body`],EmptyStatement:[],ExpressionStatement:[`expression`],File:[`program`],ForInStatement:[`left`,`right`,`body`],ForStatement:[`init`,`test`,`update`,`body`],FunctionDeclaration:[`id`,`params`,`body`,`returnType`,`typeParameters`,`predicate`],FunctionExpression:[`id`,`params`,`body`,`returnType`,`typeParameters`],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:[`key`,`params`,`body`,`decorators`,`returnType`,`typeParameters`],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:[`params`,`body`,`returnType`,`typeParameters`,`predicate`],ClassBody:[`body`],ClassExpression:[`id`,`body`,`superClass`,`mixins`,`typeParameters`,`superTypeParameters`,`implements`,`decorators`,`superTypeArguments`],ClassDeclaration:[`id`,`body`,`superClass`,`mixins`,`typeParameters`,`superTypeParameters`,`implements`,`decorators`,`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:[`local`,`imported`],ImportExpression:[`source`,`options`,`attributes`],MetaProperty:[`meta`,`property`],ClassMethod:[`key`,`params`,`body`,`decorators`,`returnType`,`typeParameters`],ObjectPattern:[`properties`,`typeAnnotation`,`decorators`],SpreadElement:[`argument`],Super:[],TaggedTemplateExpression:[`tag`,`quasi`,`typeParameters`,`typeArguments`],TemplateElement:[],TemplateLiteral:[`quasis`,`expressions`],YieldExpression:[`argument`],AwaitExpression:[`argument`],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:[`exported`],OptionalMemberExpression:[`object`,`property`],OptionalCallExpression:[`callee`,`arguments`,`typeParameters`,`typeArguments`],ClassProperty:[`key`,`value`,`typeAnnotation`,`decorators`,`variance`],ClassAccessorProperty:[`key`,`value`,`typeAnnotation`,`decorators`],ClassPrivateProperty:[`key`,`value`,`decorators`,`typeAnnotation`,`variance`],ClassPrivateMethod:[`key`,`params`,`body`,`decorators`,`returnType`,`typeParameters`],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`],DeclareExportAllDeclaration:[`source`],DeclaredPredicate:[`value`],ExistsTypeAnnotation:[],FunctionTypeAnnotation:[`typeParameters`,`params`,`rest`,`returnType`,`this`],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:[`id`,`key`,`value`,`variance`],ObjectTypeProperty:[`key`,`value`,`variance`],ObjectTypeSpreadProperty:[`argument`],OpaqueType:[`id`,`typeParameters`,`supertype`,`impltype`],QualifiedTypeIdentifier:[`id`,`qualification`],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`,`attributes`,`typeArguments`,`typeParameters`],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`],DecimalLiteral:[],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`,`typeAnnotation`,`nameType`],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`],TSEnumDeclaration:[`id`,`members`],TSEnumMember:[`id`,`initializer`],TSModuleDeclaration:[`id`,`body`],TSModuleBlock:[`body`],TSImportType:[`argument`,`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`],TSEnumBody:[`members`],TSExportKeyword:[],TSInterfaceHeritage:[`expression`,`typeArguments`,`typeParameters`],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:[`quasis`,`types`],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`]});function Hc(e){let t=new Set(e);return e=>t.has(e?.type)}var z=Hc,Uc=z([`Block`,`CommentBlock`,`MultiLine`]),Wc=z([`AnyTypeAnnotation`,`ThisTypeAnnotation`,`NumberTypeAnnotation`,`VoidTypeAnnotation`,`BooleanTypeAnnotation`,`BigIntTypeAnnotation`,`SymbolTypeAnnotation`,`StringTypeAnnotation`,`NeverTypeAnnotation`,`UndefinedTypeAnnotation`,`UnknownTypeAnnotation`,`EmptyTypeAnnotation`,`MixedTypeAnnotation`]);function Gc(e,t){let n=t.split(`.`);for(let t=n.length-1;t>=0;t--){let r=n[t];if(t===0)return e.type===`Identifier`&&e.name===r;if(e.type!==`MemberExpression`||e.optional||e.computed||e.property.type!==`Identifier`||e.property.name!==r)return!1;e=e.object}}function Kc(e,t){return t.some(t=>Gc(e,t))}var qc=Kc;function Jc({type:e}){return e.startsWith(`TS`)&&e.endsWith(`Keyword`)}var Yc=Jc;function Xc(e,t){return t(e)||tc(e,{getVisitorKeys:Vc,predicate:t})}function Zc(e){return e.type===`AssignmentExpression`||e.type===`BinaryExpression`||e.type===`LogicalExpression`||e.type===`NGPipeExpression`||e.type===`ConditionalExpression`||V(e)||H(e)||e.type===`SequenceExpression`||e.type===`TaggedTemplateExpression`||e.type===`BindExpression`||e.type===`UpdateExpression`&&!e.prefix||du(e)||e.type===`TSNonNullExpression`||e.type===`ChainExpression`}function Qc(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function $c(e){if(e.expressions)return[`expressions`,0];if(e.left)return[`left`];if(e.test)return[`test`];if(e.object)return[`object`];if(e.callee)return[`callee`];if(e.tag)return[`tag`];if(e.argument)return[`argument`];if(e.expression)return[`expression`];throw Error(`Unexpected node has no left side.`)}var el=z([`Line`,`CommentLine`,`SingleLine`,`HashbangComment`,`HTMLOpen`,`HTMLClose`,`Hashbang`,`InterpreterDirective`]),tl=z([`ExportDefaultDeclaration`,`DeclareExportDeclaration`,`ExportNamedDeclaration`,`ExportAllDeclaration`,`DeclareExportAllDeclaration`]),nl=z([`ArrayExpression`,`TupleExpression`]),rl=z([`ObjectExpression`,`RecordExpression`]);function il(e){return e.type===`LogicalExpression`&&e.operator===`??`}function al(e){return e.type===`NumericLiteral`||e.type===`Literal`&&typeof e.value==`number`}function ol(e){return e.type===`UnaryExpression`&&(e.operator===`+`||e.operator===`-`)&&al(e.argument)}function sl(e){return!!(e&&(e.type===`StringLiteral`||e.type===`Literal`&&typeof e.value==`string`))}function cl(e){return e.type===`RegExpLiteral`||e.type===`Literal`&&!!e.regex}var ll=z([`Literal`,`BooleanLiteral`,`BigIntLiteral`,`DecimalLiteral`,`DirectiveLiteral`,`NullLiteral`,`NumericLiteral`,`RegExpLiteral`,`StringLiteral`]),ul=z([`Identifier`,`ThisExpression`,`Super`,`PrivateName`,`PrivateIdentifier`,`Import`]),dl=z([`ObjectTypeAnnotation`,`TSTypeLiteral`,`TSMappedType`]),fl=z([`FunctionExpression`,`ArrowFunctionExpression`]);function pl(e){return e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`}function ml(e){return V(e)&&e.callee.type===`Identifier`&&[`async`,`inject`,`fakeAsync`,`waitForAsync`].includes(e.callee.name)}var B=z([`JSXElement`,`JSXFragment`]);function hl(e){return e.method&&e.kind===`init`||e.kind===`get`||e.kind===`set`}function gl(e){return(e.type===`ObjectTypeProperty`||e.type===`ObjectTypeInternalSlot`)&&!e.static&&!e.method&&e.kind!==`get`&&e.kind!==`set`&&e.value.type===`FunctionTypeAnnotation`}function _l(e){return(e.type===`TypeAnnotation`||e.type===`TSTypeAnnotation`)&&e.typeAnnotation.type===`FunctionTypeAnnotation`&&!e.static&&!Mc(e,e.typeAnnotation)}var vl=z([`BinaryExpression`,`LogicalExpression`,`NGPipeExpression`]);function yl(e){return H(e)||e.type===`BindExpression`&&!!e.object}var bl=z([`TSThisType`,`NullLiteralTypeAnnotation`,`BooleanLiteralTypeAnnotation`,`StringLiteralTypeAnnotation`,`BigIntLiteralTypeAnnotation`,`NumberLiteralTypeAnnotation`,`TSLiteralType`,`TSTemplateLiteralType`]);function xl(e){return Yc(e)||Wc(e)||bl(e)||(e.type===`GenericTypeAnnotation`||e.type===`TSTypeReference`)&&!e.typeParameters&&!e.typeArguments}function Sl(e){return e.type===`Identifier`&&(e.name===`beforeEach`||e.name===`beforeAll`||e.name===`afterEach`||e.name===`afterAll`)}var Cl=[`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`];function wl(e){return qc(e,Cl)}function Tl(e,t){if(e?.type!==`CallExpression`||e.optional)return!1;let n=tu(e);if(n.length===1){if(ml(e)&&Tl(t))return fl(n[0]);if(Sl(e.callee))return ml(n[0])}else if((n.length===2||n.length===3)&&(n[0].type===`TemplateLiteral`||sl(n[0]))&&wl(e.callee))return n[2]&&!al(n[2])?!1:(n.length===2?fl(n[1]):pl(n[1])&&Ql(n[1]).length<=1)||ml(n[1]);return!1}var El=e=>t=>(t?.type===`ChainExpression`&&(t=t.expression),e(t)),V=El(z([`CallExpression`,`OptionalCallExpression`])),H=El(z([`MemberExpression`,`OptionalMemberExpression`]));function Dl(e,t=5){return Ol(e,t)<=t}function Ol(e,t){let n=0;for(let r in e){let i=e[r];if(i&&typeof i==`object`&&typeof i.type==`string`&&(n++,n+=Ol(i,t-n)),n>t)return n}return n}var kl=.25;function Al(e,t){let{printWidth:n}=t;if(W(e))return!1;let r=n*kl;if(e.type===`ThisExpression`||e.type===`Identifier`&&e.name.length<=r||ol(e)&&!W(e.argument))return!0;let i=e.type===`Literal`&&`regex`in e&&e.regex.pattern||e.type===`RegExpLiteral`&&e.pattern;return i?i.length<=r:sl(e)?jc(zl(e),t).length<=r:e.type===`TemplateLiteral`?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
`):e.type===`UnaryExpression`?Al(e.argument,{printWidth:n}):e.type===`CallExpression`&&e.arguments.length===0&&e.callee.type===`Identifier`?e.callee.name.length<=r-2:ll(e)}function jl(e,t){return B(t)?au(t):W(t,U.Leading,t=>gc(e,R(t)))}function Ml(e){return e.quasis.some(e=>e.value.raw.includes(`
`))}function Nl(e,t){return(e.type===`TemplateLiteral`&&Ml(e)||e.type===`TaggedTemplateExpression`&&Ml(e.quasi))&&!gc(t,L(e),{backwards:!0})}function Pl(e){if(!W(e))return!1;let t=F(!1,su(e,U.Dangling),-1);return t&&!Uc(t)}function Fl(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(fl(n)){if(t+=1,t>1)return!0}else if(V(n)){for(let e of tu(n))if(fl(e))return!0}return!1}function Il(e){let{node:t,parent:n,key:r}=e;return r===`callee`&&V(t)&&V(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var Ll=new Set([`!`,`-`,`+`,`~`]);function Rl(e,t=2){if(t<=0)return!1;if(e.type===`ChainExpression`||e.type===`TSNonNullExpression`)return Rl(e.expression,t);let n=e=>Rl(e,t-1);if(cl(e))return cc(e.pattern??e.regex.pattern)<=5;if(ll(e)||ul(e)||e.type===`ArgumentPlaceholder`)return!0;if(e.type===`TemplateLiteral`)return e.quasis.every(e=>!e.value.raw.includes(`
`))&&e.expressions.every(n);if(rl(e))return e.properties.every(e=>!e.computed&&(e.shorthand||e.value&&n(e.value)));if(nl(e))return e.elements.every(e=>e===null||n(e));if(lu(e)){if(e.type===`ImportExpression`||Rl(e.callee,t)){let r=tu(e);return r.length<=t&&r.every(n)}return!1}return H(e)?Rl(e.object,t)&&Rl(e.property,t):e.type===`UnaryExpression`&&Ll.has(e.operator)||e.type===`UpdateExpression`?Rl(e.argument,t):!1}function zl(e){return e.extra?.raw??e.raw}function Bl(e){return e}function Vl(e,t=`es5`){return e.trailingComma===`es5`&&t===`es5`||e.trailingComma===`all`&&(t===`all`||t===`es5`)}function Hl(e,t){switch(e.type){case`BinaryExpression`:case`LogicalExpression`:case`AssignmentExpression`:case`NGPipeExpression`:return Hl(e.left,t);case`MemberExpression`:case`OptionalMemberExpression`:return Hl(e.object,t);case`TaggedTemplateExpression`:return e.tag.type===`FunctionExpression`?!1:Hl(e.tag,t);case`CallExpression`:case`OptionalCallExpression`:return e.callee.type===`FunctionExpression`?!1:Hl(e.callee,t);case`ConditionalExpression`:return Hl(e.test,t);case`UpdateExpression`:return!e.prefix&&Hl(e.argument,t);case`BindExpression`:return e.object&&Hl(e.object,t);case`SequenceExpression`:return Hl(e.expressions[0],t);case`ChainExpression`:case`TSSatisfiesExpression`:case`TSAsExpression`:case`TSNonNullExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return Hl(e.expression,t);default:return t(e)}}var Ul={"==":!0,"!=":!0,"===":!0,"!==":!0},Wl={"*":!0,"/":!0,"%":!0},Gl={">>":!0,">>>":!0,"<<":!0};function Kl(e,t){return!(Jl(t)!==Jl(e)||e===`**`||Ul[e]&&Ul[t]||t===`%`&&Wl[e]||e===`%`&&Wl[t]||t!==e&&Wl[t]&&Wl[e]||Gl[e]&&Gl[t])}var ql=new Map([[`|>`],[`??`],[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`],[`**`]].flatMap((e,t)=>e.map(e=>[e,t])));function Jl(e){return ql.get(e)}function Yl(e){return!!Gl[e]||e===`|`||e===`^`||e===`&`}function Xl(e){return e.rest?!0:F(!1,Ql(e),-1)?.type===`RestElement`}var Zl=new WeakMap;function Ql(e){if(Zl.has(e))return Zl.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),Zl.set(e,t),t}function $l(e,t){let{node:n}=e,r=0,i=e=>t(e,r++);n.this&&e.call(i,`this`),Array.isArray(n.parameters)?e.each(i,`parameters`):Array.isArray(n.params)&&e.each(i,`params`),n.rest&&e.call(i,`rest`)}var eu=new WeakMap;function tu(e){if(eu.has(e))return eu.get(e);if(e.type===`ChainExpression`)return tu(e.expression);let t=e.arguments;return e.type===`ImportExpression`&&(t=[e.source],e.attributes&&t.push(e.attributes),e.options&&t.push(e.options)),eu.set(e,t),t}function nu(e,t){let{node:n}=e;if(n.type===`ChainExpression`)return e.call(()=>nu(e,t),`expression`);n.type===`ImportExpression`?(e.call(e=>t(e,0),`source`),n.attributes&&e.call(e=>t(e,1),`attributes`),n.options&&e.call(e=>t(e,1),`options`)):e.each(t,`arguments`)}function ru(e,t){let n=[];if(e.type===`ChainExpression`&&(e=e.expression,n.push(`expression`)),e.type===`ImportExpression`){if(t===0||t===(e.attributes||e.options?-2:-1))return[...n,`source`];if(e.attributes&&(t===1||t===-1))return[...n,`attributes`];if(e.options&&(t===1||t===-1))return[...n,`options`];throw RangeError(`Invalid argument index`)}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw RangeError(`Invalid argument index`);return[...n,`arguments`,t]}function iu(e){return e.value.trim()===`prettier-ignore`&&!e.unignore}function au(e){return e?.prettierIgnore||W(e,U.PrettierIgnore)}var U={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},ou=(e,t)=>{if(typeof e==`function`&&(t=e,e=0),e||t)return(n,r,i)=>!(e&U.Leading&&!n.leading||e&U.Trailing&&!n.trailing||e&U.Dangling&&(n.leading||n.trailing)||e&U.Block&&!Uc(n)||e&U.Line&&!el(n)||e&U.First&&r!==0||e&U.Last&&r!==i.length-1||e&U.PrettierIgnore&&!iu(n)||t&&!t(n))};function W(e,t,n){if(!I(e?.comments))return!1;let r=ou(t,n);return r?e.comments.some(r):!0}function su(e,t,n){if(!Array.isArray(e?.comments))return[];let r=ou(t,n);return r?e.comments.filter(r):e.comments}var cu=(e,{originalText:t})=>Sc(t,R(e));function lu(e){return V(e)||e.type===`NewExpression`||e.type===`ImportExpression`}function uu(e){return e&&(e.type===`ObjectProperty`||e.type===`Property`&&!hl(e))}var du=z([`TSAsExpression`,`TSSatisfiesExpression`,`AsExpression`,`AsConstExpression`,`SatisfiesExpression`]),fu=z([`UnionTypeAnnotation`,`TSUnionType`]),pu=z([`IntersectionTypeAnnotation`,`TSIntersectionType`]),mu=new Set([`range`,`raw`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`extra`,`start`,`end`,`loc`,`flags`,`errors`,`tokens`]),hu=e=>{for(let t of e.quasis)delete t.value};function gu(e,t,n){var r;if(e.type===`Program`&&delete t.sourceType,(e.type===`BigIntLiteral`||e.type===`BigIntLiteralTypeAnnotation`)&&e.value&&(t.value=e.value.toLowerCase()),(e.type===`BigIntLiteral`||e.type===`Literal`)&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type===`DecimalLiteral`&&(t.value=Number(e.value)),e.type===`Literal`&&t.decimal&&(t.decimal=Number(e.decimal)),e.type===`EmptyStatement`||e.type===`JSXText`||e.type===`JSXExpressionContainer`&&(e.expression.type===`Literal`||e.expression.type===`StringLiteral`)&&e.expression.value===` `)return null;if((e.type===`Property`||e.type===`ObjectProperty`||e.type===`MethodDefinition`||e.type===`ClassProperty`||e.type===`ClassMethod`||e.type===`PropertyDefinition`||e.type===`TSDeclareMethod`||e.type===`TSPropertySignature`||e.type===`ObjectTypeProperty`||e.type===`ImportAttribute`)&&e.key&&!e.computed){let{key:n}=e;sl(n)||al(n)?t.key=String(n.value):n.type===`Identifier`&&(t.key=n.name)}if(e.type===`JSXElement`&&e.openingElement.name.name===`style`&&e.openingElement.attributes.some(e=>e.type===`JSXAttribute`&&e.name.name===`jsx`))for(let{type:e,expression:n}of t.children)e===`JSXExpressionContainer`&&n.type===`TemplateLiteral`&&hu(n);e.type===`JSXAttribute`&&e.name.name===`css`&&e.value.type===`JSXExpressionContainer`&&e.value.expression.type===`TemplateLiteral`&&hu(t.value.expression),e.type===`JSXAttribute`&&e.value?.type===`Literal`&&/["']|&quot;|&apos;/u.test(e.value.value)&&(t.value.value=Xs(!1,e.value.value,/["']|&quot;|&apos;/gu,`"`));let i=e.expression||e.callee;if(e.type===`Decorator`&&i.type===`CallExpression`&&i.callee.name===`Component`&&i.arguments.length===1){let n=e.expression.arguments[0].properties;for(let[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case`styles`:nl(r.value)&&hu(r.value.elements[0]);break;case`template`:r.value.type===`TemplateLiteral`&&hu(r.value);break}}e.type===`TaggedTemplateExpression`&&(e.tag.type===`MemberExpression`||e.tag.type===`Identifier`&&(e.tag.name===`gql`||e.tag.name===`graphql`||e.tag.name===`css`||e.tag.name===`md`||e.tag.name===`markdown`||e.tag.name===`html`)||e.tag.type===`CallExpression`)&&hu(t.quasi),e.type===`TemplateLiteral`&&((r=e.leadingComments)!=null&&r.some(e=>Uc(e)&&[`GraphQL`,`HTML`].some(t=>e.value===` ${t} `))||n.type===`CallExpression`&&n.callee.name===`graphql`||!e.leadingComments)&&hu(t),e.type===`ChainExpression`&&e.expression.type===`TSNonNullExpression`&&(t.type=`TSNonNullExpression`,t.expression.type=`ChainExpression`),e.type===`TSMappedType`&&(delete t.key,delete t.constraint),e.type===`TSEnumDeclaration`&&delete t.body}gu.ignoredProperties=mu;var _u=gu,vu=`string`,yu=`array`,bu=`cursor`,xu=`indent`,Su=`align`,Cu=`trim`,wu=`group`,Tu=`fill`,Eu=`if-break`,Du=`indent-if-break`,Ou=`line-suffix`,ku=`line-suffix-boundary`,Au=`line`,ju=`label`,Mu=`break-parent`,Nu=new Set([bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu]);function Pu(e){if(typeof e==`string`)return vu;if(Array.isArray(e))return yu;if(!e)return;let{type:t}=e;if(Nu.has(t))return t}var Fu=Pu,Iu=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Lu(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}', 
Expected it to be 'string' or 'object'.`;if(Fu(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Iu([...Nu].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${r}.`}var Ru=class extends Error{name=`InvalidDocError`;constructor(e){super(Lu(e)),this.doc=e}},zu={};function Bu(e,t,n,r){let i=[e];for(;i.length>0;){let e=i.pop();if(e===zu){n(i.pop());continue}n&&i.push(e,zu);let a=Fu(e);if(!a)throw new Ru(e);if(t?.(e)!==!1)switch(a){case yu:case Tu:{let t=a===yu?e:e.parts;for(let e=t.length-1;e>=0;--e)i.push(t[e]);break}case Eu:i.push(e.flatContents,e.breakContents);break;case wu:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)i.push(e.expandedStates[n]);else i.push(e.contents);break;case Su:case xu:case Du:case ju:case Ou:i.push(e.contents);break;case vu:case bu:case Cu:case ku:case Au:case Mu:break;default:throw new Ru(e)}}}var Vu=Bu,Hu=()=>{},Uu=Hu,Wu=Hu;function G(e){return Uu(e),{type:xu,contents:e}}function Gu(e,t){return Uu(t),{type:Su,contents:t,n:e}}function K(e,t={}){return Uu(e),Wu(t.expandedStates,!0),{type:wu,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ku(e){return Gu(-1/0,e)}function qu(e){return Gu(-1,e)}function Ju(e,t){return K(e[0],{...t,expandedStates:e})}function Yu(e){return Wu(e),{type:Tu,parts:e}}function q(e,t=``,n={}){return Uu(e),t!==``&&Uu(t),{type:Eu,breakContents:e,flatContents:t,groupId:n.groupId}}function Xu(e,t){return Uu(e),{type:Du,contents:e,groupId:t.groupId,negate:t.negate}}function Zu(e){return Uu(e),{type:Ou,contents:e}}var Qu={type:ku},$u={type:Mu},ed={type:Au,hard:!0},td={type:Au,hard:!0,literal:!0},J={type:Au},Y={type:Au,soft:!0},X=[ed,$u],nd=[td,$u],rd={type:bu};function Z(e,t){Uu(e),Wu(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function id(e,t,n){Uu(e);let r=e;if(t>0){for(let e=0;e<Math.floor(t/n);++e)r=G(r);r=Gu(t%n,r),r=Gu(-1/0,r)}return r}function ad(e,t){return Uu(t),e?{type:ju,label:e,contents:t}:t}function od(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(Fu(e)){case yu:return t(e.map(r));case Tu:return t({...e,parts:e.parts.map(r)});case Eu:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case wu:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case Su:case xu:case Du:case ju:case Ou:return t({...e,contents:r(e.contents)});case vu:case bu:case Cu:case ku:case Au:case Mu:return t(e);default:throw new Ru(e)}}}function sd(e,t,n){let r=n,i=!1;function a(e){if(i)return!1;let n=t(e);n!==void 0&&(i=!0,r=n)}return Vu(e,a),r}function cd(e){if(e.type===wu&&e.break||e.type===Au&&e.hard||e.type===Mu)return!0}function ld(e){return sd(e,cd,!1)}function ud(e){if(e.length>0){let t=F(!1,e,-1);!t.expandedStates&&!t.break&&(t.break=`propagated`)}return null}function dd(e){let t=new Set,n=[];function r(e){if(e.type===Mu&&ud(n),e.type===wu){if(n.push(e),t.has(e))return!1;t.add(e)}}function i(e){e.type===wu&&n.pop().break&&ud(n)}Vu(e,r,i,!0)}function fd(e){return e.type===Au&&!e.hard?e.soft?``:` `:e.type===Eu?e.flatContents:e}function pd(e){return od(e,fd)}function md(e){switch(Fu(e)){case Tu:if(e.parts.every(e=>e===``))return``;break;case wu:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return``;if(e.contents.type===wu&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Su:case xu:case Du:case Ou:if(!e.contents)return``;break;case Eu:if(!e.flatContents&&!e.breakContents)return``;break;case yu:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];typeof e==`string`&&typeof F(!1,t,-1)==`string`?t[t.length-1]+=e:t.push(e),t.push(...r)}return t.length===0?``:t.length===1?t[0]:t}case vu:case bu:case Cu:case ku:case Au:case ju:case Mu:break;default:throw new Ru(e)}return e}function hd(e){return od(e,e=>md(e))}function gd(e,t=nd){return od(e,e=>typeof e==`string`?Z(t,e.split(`
`)):e)}function _d(e){if(e.type===Au)return!0}function vd(e){return sd(e,_d,!1)}function yd(e,t){return e.type===ju?{...e,contents:t(e.contents)}:t(e)}function bd(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(e=>e.trimStart()[0]===`*`)}var xd=bd;function Sd(e,t){let n=e.node;if(el(n))return t.originalText.slice(L(n),R(n)).trimEnd();if(Uc(n))return xd(n)?Cd(n):[`/*`,gd(n.value),`*/`];throw Error(`Not a comment: `+JSON.stringify(n))}function Cd(e){let t=e.value.split(`
`);return[`/*`,Z(X,t.map((e,n)=>n===0?e.trimEnd():` `+(n<t.length-1?e.trim():e.trimStart()))),`*/`]}var wd={};Hs(wd,{endOfLine:()=>Rd,ownLine:()=>Ld,remaining:()=>zd});function Td(e){let t=e.type||e.kind||`(unknown type)`,n=String(e.name||e.id&&(typeof e.id==`object`?e.id.name:e.id)||e.key&&(typeof e.key==`object`?e.key.name:e.key)||e.value&&(typeof e.value==`object`?``:String(e.value))||e.operator||``);return n.length>20&&(n=n.slice(0,19)+`…`),t+(n?` `+n:``)}function Ed(e,t){(e.comments??=[]).push(t),t.printed=!1,t.nodeDescription=Td(e)}function Dd(e,t){t.leading=!0,t.trailing=!1,Ed(e,t)}function Od(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Ed(e,t)}function Q(e,t){t.leading=!1,t.trailing=!0,Ed(e,t)}function kd(e,t){let n=null,r=t;for(;r!==n;)n=r,r=uc(e,r),r=vc(e,r),r=bc(e,r),r=mc(e,r);return r}var Ad=kd;function jd(e,t){let n=Ad(e,t);return n===!1?``:e.charAt(n)}var Md=jd;function Nd(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
`)return!0;return!1}var Pd=Nd;function Fd(e){return Uc(e)&&e.value[0]===`*`&&/@(?:type|satisfies)\b/u.test(e.value)}var Id=Fd;function Ld(e){return[bf,Jd,of,af,Kd,Ud,Wd,Gd,Zd,pf,uf,ff,mf,hf,$d,sf,cf,qd,wf].some(t=>t(e))}function Rd(e){return[Hd,of,Jd,mf,Ud,Wd,Gd,Zd,sf,lf,df,ff,vf,cf,Sf,Cf].some(t=>t(e))}function zd(e){return[bf,Ud,Wd,Yd,rf,$d,ff,nf,tf,xf,cf,yf].some(t=>t(e))}function Bd(e,t){let n=(e.body||e.properties).find(({type:e})=>e!==`EmptyStatement`);n?Dd(n,t):Od(e,t)}function Vd(e,t){e.type===`BlockStatement`?Bd(e,t):Dd(e,t)}function Hd({comment:e,followingNode:t}){return t&&Id(e)?(Dd(t,e),!0):!1}function Ud({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){if(n?.type!==`IfStatement`||!r)return!1;if(Md(i,R(e))===`)`)return Q(t,e),!0;if(t===n.consequent&&r===n.alternate){if(t.type===`BlockStatement`)Q(t,e);else{let r=el(e)||e.loc.start.line===e.loc.end.line,i=e.loc.start.line===t.loc.start.line;r&&i?Q(t,e):Od(n,e)}return!0}return r.type===`BlockStatement`?(Bd(r,e),!0):r.type===`IfStatement`?(Vd(r.consequent,e),!0):n.consequent===r?(Dd(r,e),!0):!1}function Wd({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return n?.type!==`WhileStatement`||!r?!1:Md(i,R(e))===`)`?(Q(t,e),!0):r.type===`BlockStatement`?(Bd(r,e),!0):n.body===r?(Dd(r,e),!0):!1}function Gd({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type!==`TryStatement`&&n?.type!==`CatchClause`||!r?!1:n.type===`CatchClause`&&t?(Q(t,e),!0):r.type===`BlockStatement`?(Bd(r,e),!0):r.type===`TryStatement`?(Vd(r.finalizer,e),!0):r.type===`CatchClause`?(Vd(r.body,e),!0):!1}function Kd({comment:e,enclosingNode:t,followingNode:n}){return H(t)&&n?.type===`Identifier`?(Dd(t,e),!0):!1}function qd({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type===`ConditionalExpression`||t?.type===`ConditionalTypeAnnotation`||t?.type===`TSConditionalType`)?!1:n?.type===`ConditionalExpression`||n?.type===`ConditionalTypeAnnotation`||n?.type===`TSConditionalType`?(Od(t,e),!0):!1}function Jd({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i,options:a}){let o=t&&!Pd(i,R(t),L(e));return(!t||!o)&&(n?.type===`ConditionalExpression`||n?.type===`ConditionalTypeAnnotation`||n?.type===`TSConditionalType`)&&r?a.experimentalTernaries&&n.alternate===r&&!(Uc(e)&&!Pd(a.originalText,L(e),R(e)))?(Od(n,e),!0):(Dd(r,e),!0):!1}function Yd({comment:e,precedingNode:t,enclosingNode:n}){return uu(n)&&n.shorthand&&n.key===t&&n.value.type===`AssignmentPattern`?(Q(n.value.left,e),!0):!1}var Xd=new Set([`ClassDeclaration`,`ClassExpression`,`DeclareClass`,`DeclareInterface`,`InterfaceDeclaration`,`TSInterfaceDeclaration`]);function Zd({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(Xd.has(n?.type)){if(I(n.decorators)&&r?.type!==`Decorator`)return Q(F(!1,n.decorators,-1),e),!0;if(n.body&&r===n.body)return Bd(n.body,e),!0;if(r){if(n.superClass&&r===n.superClass&&t&&(t===n.id||t===n.typeParameters))return Q(t,e),!0;for(let i of[`implements`,`extends`,`mixins`])if(n[i]&&r===n[i][0])return t&&(t===n.id||t===n.typeParameters||t===n.superClass)?Q(t,e):Od(n,e,i),!0}}return!1}var Qd=new Set([`ClassMethod`,`ClassProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`,`MethodDefinition`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`]);function $d({comment:e,precedingNode:t,enclosingNode:n,text:r}){return n&&t&&Md(r,R(e))===`(`&&(n.type===`Property`||n.type===`TSDeclareMethod`||n.type===`TSAbstractMethodDefinition`)&&t.type===`Identifier`&&n.key===t&&Md(r,R(t))!==`:`||t?.type===`Decorator`&&Qd.has(n?.type)?(Q(t,e),!0):!1}var ef=new Set([`FunctionDeclaration`,`FunctionExpression`,`ClassMethod`,`MethodDefinition`,`ObjectMethod`]);function tf({comment:e,precedingNode:t,enclosingNode:n,text:r}){return Md(r,R(e))===`(`&&t&&ef.has(n?.type)?(Q(t,e),!0):!1}function nf({comment:e,enclosingNode:t,text:n}){if(t?.type!==`ArrowFunctionExpression`)return!1;let r=Ad(n,R(e));return r!==!1&&n.slice(r,r+2)===`=>`?(Od(t,e),!0):!1}function rf({comment:e,enclosingNode:t,text:n}){return Md(n,R(e))===`)`?t&&(Tf(t)&&Ql(t).length===0||lu(t)&&tu(t).length===0)?(Od(t,e),!0):(t?.type===`MethodDefinition`||t?.type===`TSAbstractMethodDefinition`)&&Ql(t.value).length===0?(Od(t.value,e),!0):!1:!1}function af({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return t?.type===`ComponentTypeParameter`&&(n?.type===`DeclareComponent`||n?.type===`ComponentTypeAnnotation`)&&r?.type!==`ComponentTypeParameter`||(t?.type===`ComponentParameter`||t?.type===`RestElement`)&&n?.type===`ComponentDeclaration`&&Md(i,R(e))===`)`?(Q(t,e),!0):!1}function of({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return t?.type===`FunctionTypeParam`&&n?.type===`FunctionTypeAnnotation`&&r?.type!==`FunctionTypeParam`||(t?.type===`Identifier`||t?.type===`AssignmentPattern`||t?.type===`ObjectPattern`||t?.type===`ArrayPattern`||t?.type===`RestElement`||t?.type===`TSParameterProperty`)&&Tf(n)&&Md(i,R(e))===`)`?(Q(t,e),!0):!Uc(e)&&(n?.type===`FunctionDeclaration`||n?.type===`FunctionExpression`||n?.type===`ObjectMethod`)&&r?.type===`BlockStatement`&&n.body===r&&Ad(i,R(e))===L(r)?(Bd(r,e),!0):!1}function sf({comment:e,enclosingNode:t}){return t?.type===`LabeledStatement`?(Dd(t,e),!0):!1}function cf({comment:e,enclosingNode:t}){return(t?.type===`ContinueStatement`||t?.type===`BreakStatement`)&&!t.label?(Q(t,e),!0):!1}function lf({comment:e,precedingNode:t,enclosingNode:n}){return V(n)&&t&&n.callee===t&&n.arguments.length>0?(Dd(n.arguments[0],e),!0):!1}function uf({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return fu(n)?(iu(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(Q(t,e),!0):!1):(fu(r)&&iu(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function df({comment:e,enclosingNode:t}){return uu(t)?(Dd(t,e),!0):!1}function ff({comment:e,enclosingNode:t,ast:n,isLastComment:r}){return n?.body?.length===0?(r?Od(n,e):Dd(n,e),!0):t?.type===`Program`&&t.body.length===0&&!I(t.directives)?(r?Od(t,e):Dd(t,e),!0):!1}function pf({comment:e,enclosingNode:t}){return t?.type===`ForInStatement`||t?.type===`ForOfStatement`?(Dd(t,e),!0):!1}function mf({comment:e,precedingNode:t,enclosingNode:n,text:r}){if(n?.type===`ImportSpecifier`||n?.type===`ExportSpecifier`)return Dd(n,e),!0;let i=t?.type===`ImportSpecifier`&&n?.type===`ImportDeclaration`,a=t?.type===`ExportSpecifier`&&n?.type===`ExportNamedDeclaration`;return(i||a)&&gc(r,R(e))?(Q(t,e),!0):!1}function hf({comment:e,enclosingNode:t}){return t?.type===`AssignmentPattern`?(Dd(t,e),!0):!1}var gf=new Set([`VariableDeclarator`,`AssignmentExpression`,`TypeAlias`,`TSTypeAliasDeclaration`]),_f=new Set([`ObjectExpression`,`RecordExpression`,`ArrayExpression`,`TupleExpression`,`TemplateLiteral`,`TaggedTemplateExpression`,`ObjectTypeAnnotation`,`TSTypeLiteral`]);function vf({comment:e,enclosingNode:t,followingNode:n}){return gf.has(t?.type)&&n&&(_f.has(n.type)||Uc(e))?(Dd(n,e),!0):!1}function yf({comment:e,enclosingNode:t,followingNode:n,text:r}){return!n&&(t?.type===`TSMethodSignature`||t?.type===`TSDeclareFunction`||t?.type===`TSAbstractMethodDefinition`)&&Md(r,R(e))===`;`?(Q(t,e),!0):!1}function bf({comment:e,enclosingNode:t,followingNode:n}){if(iu(e)&&t?.type===`TSMappedType`&&n?.type===`TSTypeParameter`&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function xf({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type===`TSMappedType`?r?.type===`TSTypeParameter`&&r.name?(Dd(r.name,e),!0):t?.type===`TSTypeParameter`&&t.constraint?(Q(t.constraint,e),!0):!1:!1}function Sf({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!==`SwitchCase`||t.test||!n||n!==t.consequent[0]?!1:(n.type===`BlockStatement`&&el(e)?Bd(n,e):Od(t,e),!0)}function Cf({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return fu(t)&&((n.type===`TSArrayType`||n.type===`ArrayTypeAnnotation`)&&!r||pu(n))?(Q(F(!1,t.types,-1),e),!0):!1}function wf({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if((t?.type===`ObjectPattern`||t?.type===`ArrayPattern`)&&r?.type===`TSTypeAnnotation`)return n?Q(n,e):Od(t,e),!0}var Tf=z([`ArrowFunctionExpression`,`FunctionExpression`,`FunctionDeclaration`,`ObjectMethod`,`ClassMethod`,`TSDeclareFunction`,`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`,`TSMethodSignature`,`TSConstructorType`,`TSFunctionType`,`TSDeclareMethod`]),Ef=new Set([`EmptyStatement`,`TemplateElement`,`Import`,`TSEmptyBodyFunctionExpression`,`ChainExpression`]);function Df(e){return!Ef.has(e.type)}function Of(e,t){if((t.parser===`typescript`||t.parser===`flow`||t.parser===`acorn`||t.parser===`espree`||t.parser===`meriyah`||t.parser===`__babel_estree`)&&e.type===`MethodDefinition`&&e.value?.type===`FunctionExpression`&&Ql(e.value).length===0&&!e.value.returnType&&!I(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function kf(e){let{node:t,parent:n}=e;return(B(t)||n&&(n.type===`JSXSpreadAttribute`||n.type===`JSXSpreadChild`||fu(n)||(n.type===`ClassDeclaration`||n.type===`ClassExpression`)&&n.superClass===t))&&(!au(t)||fu(n))}function Af(e,{parser:t}){if(t===`flow`||t===`babel-flow`)return e=Xs(!1,e,/[\s(]/gu,``),e===``||e===`/*`||e===`/*::`}function jf(e){switch(e){case`cr`:return`\r`;case`crlf`:return`\r
`;default:return`
`}}var Mf=Symbol(`MODE_BREAK`),Nf=Symbol(`MODE_FLAT`),Pf=Symbol(`cursor`);function Ff(){return{value:``,length:0,queue:[]}}function If(e,t){return Rf(e,{type:`indent`},t)}function Lf(e,t,n){return t===-1/0?e.root||Ff():t<0?Rf(e,{type:`dedent`},n):t?t.type===`root`?{...e,root:e}:Rf(e,{type:typeof t==`string`?`stringAlign`:`numberAlign`,n:t},n):e}function Rf(e,t,n){let r=t.type===`dedent`?e.queue.slice(0,-1):[...e.queue,t],i=``,a=0,o=0,s=0;for(let e of r)switch(e.type){case`indent`:u(),n.useTabs?c(1):l(n.tabWidth);break;case`stringAlign`:u(),i+=e.n,a+=e.n.length;break;case`numberAlign`:o+=1,s+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return f(),{...e,value:i,length:a,queue:r};function c(e){i+=`	`.repeat(e),a+=n.tabWidth*e}function l(e){i+=` `.repeat(e),a+=e}function u(){n.useTabs?d():f()}function d(){o>0&&c(o),p()}function f(){s>0&&l(s),p()}function p(){o=0,s=0}}function zf(e){let t=0,n=0,r=e.length;e:for(;r--;){let i=e[r];if(i===Pf){n++;continue}for(let n=i.length-1;n>=0;n--){let a=i[n];if(a===` `||a===`	`)t++;else{e[r]=i.slice(0,n+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(Pf);return t}function Bf(e,t,n,r,i,a){if(n===1/0)return!0;let o=t.length,s=[e],c=[];for(;n>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:e,doc:l}=s.pop(),u=Fu(l);switch(u){case vu:c.push(l),n-=cc(l);break;case yu:case Tu:{let t=u===yu?l:l.parts;for(let n=t.length-1;n>=0;n--)s.push({mode:e,doc:t[n]});break}case xu:case Su:case Du:case ju:s.push({mode:e,doc:l.contents});break;case Cu:n+=zf(c);break;case wu:{if(a&&l.break)return!1;let t=l.break?Mf:e,n=l.expandedStates&&t===Mf?F(!1,l.expandedStates,-1):l.contents;s.push({mode:t,doc:n});break}case Eu:{let t=(l.groupId?i[l.groupId]||Nf:e)===Mf?l.breakContents:l.flatContents;t&&s.push({mode:e,doc:t});break}case Au:if(e===Mf||l.hard)return!0;l.soft||(c.push(` `),n--);break;case Ou:r=!0;break;case ku:if(r)return!1;break}}return!1}function Vf(e,t){let n={},r=t.printWidth,i=jf(t.endOfLine),a=0,o=[{ind:Ff(),mode:Mf,doc:e}],s=[],c=!1,l=[],u=0;for(dd(e);o.length>0;){let{ind:e,mode:d,doc:f}=o.pop();switch(Fu(f)){case vu:{let e=i===`
`?f:Xs(!1,f,`
`,i);s.push(e),o.length>0&&(a+=cc(e));break}case yu:for(let t=f.length-1;t>=0;t--)o.push({ind:e,mode:d,doc:f[t]});break;case bu:if(u>=2)throw Error(`There are too many 'cursor' in doc.`);s.push(Pf),u++;break;case xu:o.push({ind:If(e,t),mode:d,doc:f.contents});break;case Su:o.push({ind:Lf(e,f.n,t),mode:d,doc:f.contents});break;case Cu:a-=zf(s);break;case wu:switch(d){case Nf:if(!c){o.push({ind:e,mode:f.break?Mf:Nf,doc:f.contents});break}case Mf:{c=!1;let t={ind:e,mode:Nf,doc:f.contents},i=r-a,s=l.length>0;if(!f.break&&Bf(t,o,i,s,n))o.push(t);else if(f.expandedStates){let t=F(!1,f.expandedStates,-1);if(f.break){o.push({ind:e,mode:Mf,doc:t});break}else for(let r=1;r<f.expandedStates.length+1;r++)if(r>=f.expandedStates.length){o.push({ind:e,mode:Mf,doc:t});break}else{let t={ind:e,mode:Nf,doc:f.expandedStates[r]};if(Bf(t,o,i,s,n)){o.push(t);break}}}else o.push({ind:e,mode:Mf,doc:f.contents});break}}f.id&&(n[f.id]=F(!1,o,-1).mode);break;case Tu:{let t=r-a,{parts:i}=f;if(i.length===0)break;let[s,c]=i,u={ind:e,mode:Nf,doc:s},p={ind:e,mode:Mf,doc:s},m=Bf(u,[],t,l.length>0,n,!0);if(i.length===1){m?o.push(u):o.push(p);break}let h={ind:e,mode:Nf,doc:c},g={ind:e,mode:Mf,doc:c};if(i.length===2){m?o.push(h,u):o.push(g,p);break}i.splice(0,2);let _={ind:e,mode:d,doc:Yu(i)},v=i[0];Bf({ind:e,mode:Nf,doc:[s,c,v]},[],t,l.length>0,n,!0)?o.push(_,h,u):m?o.push(_,g,u):o.push(_,g,p);break}case Eu:case Du:{let t=f.groupId?n[f.groupId]:d;if(t===Mf){let t=f.type===Eu?f.breakContents:f.negate?f.contents:G(f.contents);t&&o.push({ind:e,mode:d,doc:t})}if(t===Nf){let t=f.type===Eu?f.flatContents:f.negate?G(f.contents):f.contents;t&&o.push({ind:e,mode:d,doc:t})}break}case Ou:l.push({ind:e,mode:d,doc:f.contents});break;case ku:l.length>0&&o.push({ind:e,mode:d,doc:ed});break;case Au:switch(d){case Nf:if(f.hard)c=!0;else{f.soft||(s.push(` `),a+=1);break}case Mf:if(l.length>0){o.push({ind:e,mode:d,doc:f},...l.reverse()),l.length=0;break}f.literal?e.root?(s.push(i,e.root.value),a=e.root.length):(s.push(i),a=0):(a-=zf(s),s.push(i+e.value),a=e.length);break}break;case ju:o.push({ind:e,mode:d,doc:f.contents});break;case Mu:break;default:throw new Ru(f)}o.length===0&&l.length>0&&(o.push(...l.reverse()),l.length=0)}let d=s.indexOf(Pf);if(d!==-1){let e=s.indexOf(Pf,d+1),t=s.slice(0,d).join(``),n=s.slice(d+1,e).join(``),r=s.slice(e+1).join(``);return{formatted:t+n+r,cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join(``)}}function Hf(e,t,n=0){let r=0;for(let i=n;i<e.length;++i)e[i]===`	`?r=r+t-r%t:r++;return r}var Uf=Hf;function Wf(e,t){let n=e.lastIndexOf(`
`);return n===-1?0:Uf(e.slice(n+1).match(/^[\t ]*/u)[0],t)}var Gf=Wf;function Kf(e,t,n){let{node:r}=e;if(r.type===`TemplateLiteral`&&$f(e)){let r=Jf(e,n,t);if(r)return r}let i=`expressions`;r.type===`TSTemplateLiteralType`&&(i=`types`);let a=[],o=e.map(t,i);a.push(Qu,"`");let s=0;return e.each(({index:e,node:c})=>{if(a.push(t()),c.tail)return;let{tabWidth:l}=n,u=c.value.raw,d=u.includes(`
`)?Gf(u,l):s;s=d;let f=o[e],p=r[i][e],m=Pd(n.originalText,R(c),L(r.quasis[e+1]));if(!m){let e=Vf(f,{...n,printWidth:1/0}).formatted;e.includes(`
`)?m=!0:f=e}m&&(W(p)||p.type===`Identifier`||H(p)||p.type===`ConditionalExpression`||p.type===`SequenceExpression`||du(p)||vl(p))&&(f=[G([Y,f]),Y]);let h=d===0&&u.endsWith(`
`)?Gu(-1/0,f):id(f,d,l);a.push(K(["${",h,Qu,`}`]))},`quasis`),a.push("`"),a}function qf(e,t){let n=t(`quasi`);return ad(n.label&&{tagged:!0,...n.label},[t(`tag`),t(e.node.typeArguments?`typeArguments`:`typeParameters`),Qu,n])}function Jf(e,t,n){let{node:r}=e,i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(e=>e.length>0)){t.__inJestEach=!0;let a=e.map(n,`expressions`);t.__inJestEach=!1;let o=[],s=a.map(e=>"${"+Vf(e,{...t,printWidth:1/0,endOfLine:`lf`}).formatted+`}`),c=[{hasLineBreak:!1,cells:[]}];for(let e=1;e<r.quasis.length;e++){let t=F(!1,c,-1),n=s[e-1];t.cells.push(n),n.includes(`
`)&&(t.hasLineBreak=!0),r.quasis[e].value.raw.includes(`
`)&&c.push({hasLineBreak:!1,cells:[]})}let l=Math.max(i.length,...c.map(e=>e.cells.length)),u=Array.from({length:l}).fill(0),d=[{cells:i},...c.filter(e=>e.cells.length>0)];for(let{cells:e}of d.filter(e=>!e.hasLineBreak))for(let[t,n]of e.entries())u[t]=Math.max(u[t],cc(n));return o.push(Qu,"`",G([X,Z(X,d.map(e=>Z(` | `,e.cells.map((t,n)=>e.hasLineBreak?t:t+` `.repeat(u[n]-cc(t))))))]),X,"`"),o}}function Yf(e,t){let{node:n}=e,r=t();return W(n)&&(r=K([G([Y,r]),Y])),["${",r,Qu,`}`]}function Xf(e,t){return e.map(e=>Yf(e,t),`expressions`)}function Zf(e,t){return od(e,e=>typeof e==`string`?t?Xs(!1,e,/(\\*)`/gu,"$1$1\\`"):Qf(e):e)}function Qf(e){return Xs(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function $f({node:e,parent:t}){let n=/^[fx]?(?:describe|it|test)$/u;return t.type===`TaggedTemplateExpression`&&t.quasi===e&&t.tag.type===`MemberExpression`&&t.tag.property.type===`Identifier`&&t.tag.property.name===`each`&&(t.tag.object.type===`Identifier`&&n.test(t.tag.object.name)||t.tag.object.type===`MemberExpression`&&t.tag.object.property.type===`Identifier`&&(t.tag.object.property.name===`only`||t.tag.object.property.name===`skip`)&&t.tag.object.object.type===`Identifier`&&n.test(t.tag.object.object.name))}var ep=[(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`];function tp(e){let t=e=>e.type===`TemplateLiteral`,n=(e,t)=>uu(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`styles`&&t===`value`;return e.match(t,(e,t)=>nl(e)&&t===`elements`,n,...ep)||e.match(t,n,...ep)}function np(e){return e.match(e=>e.type===`TemplateLiteral`,(e,t)=>uu(e)&&!e.computed&&e.key.type===`Identifier`&&e.key.name===`template`&&t===`value`,...ep)}function rp(e,t){return W(e,U.Block|U.Leading,({value:e})=>e===` ${t} `)}function ip({node:e,parent:t},n){return rp(e,n)||ap(t)&&rp(t,n)||t.type===`ExpressionStatement`&&rp(t,n)}function ap(e){return e.type===`AsConstExpression`||e.type===`TSAsExpression`&&e.typeAnnotation.type===`TSTypeReference`&&e.typeAnnotation.typeName.type===`Identifier`&&e.typeAnnotation.typeName.name===`const`}async function op(e,t,n){let{node:r}=n,i=r.quasis.map(e=>e.value.raw),a=0,o=sp(await e(i.reduce((e,t,n)=>n===0?t:e+`@prettier-placeholder-`+ a+++`-id`+t,``),{parser:`scss`}),Xf(n,t));if(!o)throw Error(`Couldn't insert all the expressions`);return["`",G([X,o]),Y,"`"]}function sp(e,t){if(!I(t))return e;let n=0,r=od(hd(e),e=>typeof e!=`string`||!e.includes(`@prettier-placeholder`)?e:e.split(/@prettier-placeholder-(\d+)-id/u).map((e,r)=>r%2==0?gd(e):(n++,t[e])));return t.length===n?r:null}function cp({node:e,parent:t,grandparent:n}){return n&&e.quasis&&t.type===`JSXExpressionContainer`&&n.type===`JSXElement`&&n.openingElement.name.name===`style`&&n.openingElement.attributes.some(e=>e.type===`JSXAttribute`&&e.name.name===`jsx`)||t?.type===`TaggedTemplateExpression`&&t.tag.type===`Identifier`&&t.tag.name===`css`||t?.type===`TaggedTemplateExpression`&&t.tag.type===`MemberExpression`&&t.tag.object.name===`css`&&(t.tag.property.name===`global`||t.tag.property.name===`resolve`)}function lp(e){return e.type===`Identifier`&&e.name===`styled`}function up(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name===`extend`}function dp({parent:e}){if(!e||e.type!==`TaggedTemplateExpression`)return!1;let t=e.tag.type===`ParenthesizedExpression`?e.tag.expression:e.tag;switch(t.type){case`MemberExpression`:return lp(t.object)||up(t);case`CallExpression`:return lp(t.callee)||t.callee.type===`MemberExpression`&&(t.callee.object.type===`MemberExpression`&&(lp(t.callee.object.object)||up(t.callee.object))||t.callee.object.type===`CallExpression`&&lp(t.callee.object.callee));case`Identifier`:return t.name===`css`;default:return!1}}function fp({parent:e,grandparent:t}){return t?.type===`JSXAttribute`&&e.type===`JSXExpressionContainer`&&t.name.type===`JSXIdentifier`&&t.name.name===`css`}function pp(e){if(cp(e)||dp(e)||fp(e)||tp(e))return op}var mp=pp;async function hp(e,t,n){let{node:r}=n,i=r.quasis.length,a=Xf(n,t),o=[];for(let t=0;t<i;t++){let n=r.quasis[t],s=t===0,c=t===i-1,l=n.value.cooked,u=l.split(`
`),d=u.length,f=a[t],p=d>2&&u[0].trim()===``&&u[1].trim()===``,m=d>2&&u[d-1].trim()===``&&u[d-2].trim()===``,h=u.every(e=>/^\s*(?:#[^\n\r]*)?$/u.test(e));if(!c&&/#[^\n\r]*$/u.test(u[d-1]))return null;let g=null;g=h?gp(u):await e(l,{parser:`graphql`}),g?(g=Zf(g,!1),!s&&p&&o.push(``),o.push(g),!c&&m&&o.push(``)):!s&&!c&&p&&o.push(``),f&&o.push(f)}return["`",G([X,Z(X,o)]),X,"`"]}function gp(e){let t=[],n=!1,r=e.map(e=>e.trim());for(let[e,i]of r.entries())i!==``&&(r[e-1]===``&&n?t.push([X,i]):t.push(i),n=!0);return t.length===0?null:Z(X,t)}function _p({node:e,parent:t}){return ip({node:e,parent:t},`GraphQL`)||t&&(t.type===`TaggedTemplateExpression`&&(t.tag.type===`MemberExpression`&&t.tag.object.name===`graphql`&&t.tag.property.name===`experimental`||t.tag.type===`Identifier`&&(t.tag.name===`gql`||t.tag.name===`graphql`))||t.type===`CallExpression`&&t.callee.type===`Identifier`&&t.callee.name===`graphql`)}function vp(e){if(_p(e))return hp}var yp=vp,bp=0;async function xp(e,t,n,r,i){let{node:a}=r,o=bp;bp=bp+1>>>0;let s=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${o}_IN_JS`,c=a.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+s(t)).join(``),l=Xf(r,n),u=new RegExp(s(String.raw`(\d+)`),`gu`),d=0,f=od(await t(c,{parser:e,__onHtmlRoot(e){d=e.children.length}}),e=>{if(typeof e!=`string`)return e;let t=[],n=e.split(u);for(let e=0;e<n.length;e++){let r=n[e];if(e%2==0){r&&(r=Qf(r),i.__embeddedInHtml&&(r=Xs(!1,r,/<\/(?=script\b)/giu,String.raw`<\/`)),t.push(r));continue}let a=Number(r);t.push(l[a])}return t}),p=/^\s/u.test(c)?` `:``,m=/\s$/u.test(c)?` `:``,h=i.htmlWhitespaceSensitivity===`ignore`?X:p&&m?J:null;return h?K(["`",G([h,K(f)]),h,"`"]):ad({hug:!1},K(["`",p,d>1?G(K(f)):K(f),m,"`"]))}function Sp(e){return ip(e,`HTML`)||e.match(e=>e.type===`TemplateLiteral`,(e,t)=>e.type===`TaggedTemplateExpression`&&e.tag.type===`Identifier`&&e.tag.name===`html`&&t===`quasi`)}var Cp=xp.bind(void 0,`html`),wp=xp.bind(void 0,`angular`);function Tp(e){if(Sp(e))return Cp;if(np(e))return wp}var Ep=Tp;async function Dp(e,t,n){let{node:r}=n,i=Xs(!1,r.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(e,t)=>`\\`.repeat(t.length/2)+"`"),a=Op(i),o=a!==``;o&&(i=Xs(!1,i,RegExp(`^${a}`,`gmu`),``));let s=Zf(await e(i,{parser:`markdown`,__inJsTemplate:!0}),!0);return["`",o?G([Y,s]):[nd,Ku(s)],Y,"`"]}function Op(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?``:t[1]}function kp(e){if(Ap(e))return Dp}function Ap({node:e,parent:t}){return t?.type===`TaggedTemplateExpression`&&e.quasis.length===1&&t.tag.type===`Identifier`&&(t.tag.name===`md`||t.tag.name===`markdown`)}var jp=kp;function Mp(e){let{node:t}=e;if(t.type!==`TemplateLiteral`||Np(t))return;let n;for(let r of[mp,yp,Ep,jp])if(n=r(e),n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===``?"``":async(...e)=>{let t=await n(...e);return t&&ad({embed:!0,...t.label},t)}}function Np({quasis:e}){return e.some(({value:{cooked:e}})=>e===null)}var Pp=Mp,Fp=/\*\/$/,Ip=/^\/\*\*?/,Lp=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Rp=/(^|\s+)\/\/([^\n\r]*)/g,zp=/^(\r?\n)+/,Bp=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Vp=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Hp=/(\r?\n|^) *\* ?/g,Up=[];function Wp(e){let t=e.match(Lp);return t?t[0].trimStart():``}function Gp(e){let t=e.match(Lp)?.[0];return t==null?e:e.slice(t.length)}function Kp(e){e=Xs(!1,e.replace(Ip,``).replace(Fp,``),Hp,`$1`);let t=``;for(;t!==e;)t=e,e=Xs(!1,e,Bp,`
$1 $2
`);e=e.replace(zp,``).trimEnd();let n=Object.create(null),r=Xs(!1,e,Vp,``).replace(zp,``).trimEnd(),i;for(;i=Vp.exec(e);){let e=Xs(!1,i[2],Rp,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...Up,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function qp({comments:e=``,pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(e=>Jp(e,t[e])).map(e=>` * ${e}
`).join(``);if(!e){if(n.length===0)return``;if(n.length===1&&!Array.isArray(t[n[0]])){let e=t[n[0]];return`/** ${Jp(n[0],e)[0]} */`}}let i=e.split(`
`).map(e=>` * ${e}`).join(`
`)+`
`;return`/**
`+(e?i:``)+(e&&n.length>0?` *
`:``)+r+` */`}function Jp(e,t){return[...Up,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}function Yp(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var Xp=Yp;function Zp(e){let t=Xp(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=Kp(Wp(e));return{shebang:t,text:e,pragmas:n,comments:r}}function Qp(e){let{shebang:t,text:n,pragmas:r,comments:i}=Zp(e),a=Gp(n),o=qp({pragmas:{format:``,...r},comments:i.trimStart()});return(t?`${t}
`:``)+o+(a.startsWith(`
`)?`
`:`

`)+a}function $p(e,t){let{originalText:n,[Symbol.for(`comments`)]:r,locStart:i,locEnd:a,[Symbol.for(`printedComments`)]:o}=t,{node:s}=e,c=i(s),l=a(s);for(let e of r)i(e)>=c&&a(e)<=l&&o.add(e);return n.slice(c,l)}var em=$p;function tm(e,t){var n,r,i;if(e.isRoot)return!1;let{node:a,key:o,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&am(a)&&om(e))return!0;if(nm(a))return!1;if(a.type===`Identifier`){if((n=a.extra)!=null&&n.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(a.name)||o===`left`&&(a.name===`async`&&!s.await||a.name===`let`)&&s.type===`ForOfStatement`)return!0;if(a.name===`let`){let t=e.findAncestor(e=>e.type===`ForOfStatement`)?.left;if(t&&Hl(t,e=>e===a))return!0}if(o===`object`&&a.name===`let`&&s.type===`MemberExpression`&&s.computed&&!s.optional){let t=e.findAncestor(e=>e.type===`ExpressionStatement`||e.type===`ForStatement`||e.type===`ForInStatement`),n=t?t.type===`ExpressionStatement`?t.expression:t.type===`ForStatement`?t.init:t.left:void 0;if(n&&Hl(n,e=>e===a))return!0}if(o===`expression`)switch(a.name){case`await`:case`interface`:case`module`:case`using`:case`yield`:case`let`:case`component`:case`hook`:case`type`:{let t=e.findAncestor(e=>!du(e));if(t!==s&&t.type===`ExpressionStatement`)return!0}}return!1}if(a.type===`ObjectExpression`||a.type===`FunctionExpression`||a.type===`ClassExpression`||a.type===`DoExpression`){let t=e.findAncestor(e=>e.type===`ExpressionStatement`)?.expression;if(t&&Hl(t,e=>e===a))return!0}if(a.type===`ObjectExpression`){let t=e.findAncestor(e=>e.type===`ArrowFunctionExpression`)?.body;if(t&&t.type!==`SequenceExpression`&&t.type!==`AssignmentExpression`&&Hl(t,e=>e===a))return!0}switch(s.type){case`ParenthesizedExpression`:return!1;case`ClassDeclaration`:case`ClassExpression`:if(o===`superClass`&&(a.type===`ArrowFunctionExpression`||a.type===`AssignmentExpression`||a.type===`AwaitExpression`||a.type===`BinaryExpression`||a.type===`ConditionalExpression`||a.type===`LogicalExpression`||a.type===`NewExpression`||a.type===`ObjectExpression`||a.type===`SequenceExpression`||a.type===`TaggedTemplateExpression`||a.type===`UnaryExpression`||a.type===`UpdateExpression`||a.type===`YieldExpression`||a.type===`TSNonNullExpression`||a.type===`ClassExpression`&&I(a.decorators)))return!0;break;case`ExportDefaultDeclaration`:return sm(e,t)||a.type===`SequenceExpression`;case`Decorator`:if(o===`expression`&&!um(a))return!0;break;case`TypeAnnotation`:if(e.match(void 0,void 0,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)&&im(a))return!0;break;case`BinaryExpression`:if(o===`left`&&(s.operator===`in`||s.operator===`instanceof`)&&a.type===`UnaryExpression`)return!0;break;case`VariableDeclarator`:if(o===`init`&&e.match(void 0,void 0,(e,t)=>t===`declarations`&&e.type===`VariableDeclaration`,(e,t)=>t===`left`&&e.type===`ForInStatement`))return!0;break}switch(a.type){case`UpdateExpression`:if(s.type===`UnaryExpression`)return a.prefix&&(a.operator===`++`&&s.operator===`+`||a.operator===`--`&&s.operator===`-`);case`UnaryExpression`:switch(s.type){case`UnaryExpression`:return a.operator===s.operator&&(a.operator===`+`||a.operator===`-`);case`BindExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:return o===`object`;case`TaggedTemplateExpression`:return!0;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return o===`callee`;case`BinaryExpression`:return o===`left`&&s.operator===`**`;case`TSNonNullExpression`:return!0;default:return!1}case`BinaryExpression`:if(s.type===`UpdateExpression`||a.operator===`in`&&rm(e))return!0;if(a.operator===`|>`&&(r=a.extra)!=null&&r.parenthesized){let t=e.grandparent;if(t.type===`BinaryExpression`&&t.operator===`|>`)return!0}case`TSTypeAssertion`:case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:case`LogicalExpression`:switch(s.type){case`TSAsExpression`:case`TSSatisfiesExpression`:case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return!du(a);case`ConditionalExpression`:return du(a)||il(a);case`CallExpression`:case`NewExpression`:case`OptionalCallExpression`:return o===`callee`;case`ClassExpression`:case`ClassDeclaration`:return o===`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 o===`object`;case`AssignmentExpression`:case`AssignmentPattern`:return o===`left`&&(a.type===`TSTypeAssertion`||du(a));case`LogicalExpression`:if(a.type===`LogicalExpression`)return s.operator!==a.operator;case`BinaryExpression`:{let{operator:e,type:t}=a;if(!e&&t!==`TSTypeAssertion`)return!0;let n=Jl(e),r=s.operator,i=Jl(r);return i>n||o===`right`&&i===n||i===n&&!Kl(r,e)?!0:i<n&&e===`%`?r===`+`||r===`-`:!!Yl(r)}default:return!1}case`SequenceExpression`:switch(s.type){case`ReturnStatement`:return!1;case`ForStatement`:return!1;case`ExpressionStatement`:return o!==`expression`;case`ArrowFunctionExpression`:return o!==`body`;default:return!0}case`YieldExpression`:if(s.type===`AwaitExpression`||s.type===`TSTypeAssertion`)return!0;case`AwaitExpression`:switch(s.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 o===`object`;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return o===`callee`;case`ConditionalExpression`:return o===`test`;case`BinaryExpression`:return!(!a.argument&&s.operator===`|>`);default:return!1}case`TSFunctionType`:if(e.match(e=>e.type===`TSFunctionType`,(e,t)=>t===`typeAnnotation`&&e.type===`TSTypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`))return!0;case`TSConditionalType`:case`TSConstructorType`:if(o===`extendsType`&&s.type===`TSConditionalType`){if(a.type===`TSConditionalType`)return!0;let{typeAnnotation:e}=a.returnType||a.typeAnnotation;if(e.type===`TSTypePredicate`&&e.typeAnnotation&&(e=e.typeAnnotation.typeAnnotation),e.type===`TSInferType`&&e.typeParameter.constraint)return!0}if(o===`checkType`&&s.type===`TSConditionalType`)return!0;case`TSUnionType`:case`TSIntersectionType`:if((s.type===`TSUnionType`||s.type===`TSIntersectionType`)&&s.types.length>1&&(!a.types||a.types.length>1))return!0;case`TSInferType`:if(a.type===`TSInferType`){if(s.type===`TSRestType`)return!1;if(o===`types`&&(s.type===`TSUnionType`||s.type===`TSIntersectionType`)&&a.typeParameter.type===`TSTypeParameter`&&a.typeParameter.constraint)return!0}case`TSTypeOperator`:return s.type===`TSArrayType`||s.type===`TSOptionalType`||s.type===`TSRestType`||o===`objectType`&&s.type===`TSIndexedAccessType`||s.type===`TSTypeOperator`||s.type===`TSTypeAnnotation`&&e.grandparent.type.startsWith(`TSJSDoc`);case`TSTypeQuery`:return o===`objectType`&&s.type===`TSIndexedAccessType`||o===`elementType`&&s.type===`TSArrayType`;case`TypeOperator`:return s.type===`ArrayTypeAnnotation`||s.type===`NullableTypeAnnotation`||o===`objectType`&&(s.type===`IndexedAccessType`||s.type===`OptionalIndexedAccessType`)||s.type===`TypeOperator`;case`TypeofTypeAnnotation`:return o===`objectType`&&(s.type===`IndexedAccessType`||s.type===`OptionalIndexedAccessType`)||o===`elementType`&&s.type===`ArrayTypeAnnotation`;case`ArrayTypeAnnotation`:return s.type===`NullableTypeAnnotation`;case`IntersectionTypeAnnotation`:case`UnionTypeAnnotation`:return s.type===`TypeOperator`||s.type===`ArrayTypeAnnotation`||s.type===`NullableTypeAnnotation`||s.type===`IntersectionTypeAnnotation`||s.type===`UnionTypeAnnotation`||o===`objectType`&&(s.type===`IndexedAccessType`||s.type===`OptionalIndexedAccessType`);case`InferTypeAnnotation`:case`NullableTypeAnnotation`:return s.type===`ArrayTypeAnnotation`||o===`objectType`&&(s.type===`IndexedAccessType`||s.type===`OptionalIndexedAccessType`);case`ComponentTypeAnnotation`:case`FunctionTypeAnnotation`:{if(a.type===`ComponentTypeAnnotation`&&(a.rendersType===null||a.rendersType===void 0))return!1;if(e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`)||e.match(void 0,(e,t)=>t===`typeAnnotation`&&e.type===`TypePredicate`,(e,t)=>t===`typeAnnotation`&&e.type===`TypeAnnotation`,(e,t)=>t===`returnType`&&e.type===`ArrowFunctionExpression`))return!0;let t=s.type===`NullableTypeAnnotation`?e.grandparent:s;return t.type===`UnionTypeAnnotation`||t.type===`IntersectionTypeAnnotation`||t.type===`ArrayTypeAnnotation`||o===`objectType`&&(t.type===`IndexedAccessType`||t.type===`OptionalIndexedAccessType`)||o===`checkType`&&s.type===`ConditionalTypeAnnotation`||o===`extendsType`&&s.type===`ConditionalTypeAnnotation`&&a.returnType?.type===`InferTypeAnnotation`&&a.returnType?.typeParameter.bound||t.type===`NullableTypeAnnotation`||s.type===`FunctionTypeParam`&&s.name===null&&Ql(a).some(e=>e.typeAnnotation?.type===`NullableTypeAnnotation`)}case`ConditionalTypeAnnotation`:if(o===`extendsType`&&s.type===`ConditionalTypeAnnotation`&&a.type===`ConditionalTypeAnnotation`||o===`checkType`&&s.type===`ConditionalTypeAnnotation`)return!0;case`OptionalIndexedAccessType`:return o===`objectType`&&s.type===`IndexedAccessType`;case`StringLiteral`:case`NumericLiteral`:case`Literal`:if(typeof a.value==`string`&&s.type===`ExpressionStatement`&&!s.directive){let t=e.grandparent;return t.type===`Program`||t.type===`BlockStatement`}return o===`object`&&s.type===`MemberExpression`&&typeof a.value==`number`;case`AssignmentExpression`:{let t=e.grandparent;return o===`body`&&s.type===`ArrowFunctionExpression`?!0:o===`key`&&(s.type===`ClassProperty`||s.type===`PropertyDefinition`)&&s.computed||(o===`init`||o===`update`)&&s.type===`ForStatement`?!1:s.type===`ExpressionStatement`?a.left.type===`ObjectPattern`:!(o===`key`&&s.type===`TSPropertySignature`||s.type===`AssignmentExpression`||s.type===`SequenceExpression`&&t.type===`ForStatement`&&(t.init===s||t.update===s)||o===`value`&&s.type===`Property`&&t.type===`ObjectPattern`&&t.properties.includes(s)||s.type===`NGChainedExpression`)}case`ConditionalExpression`:switch(s.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 o===`callee`;case`ConditionalExpression`:return t.experimentalTernaries?!1:o===`test`;case`MemberExpression`:case`OptionalMemberExpression`:return o===`object`;default:return!1}case`FunctionExpression`:switch(s.type){case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return o===`callee`;case`TaggedTemplateExpression`:return!0;default:return!1}case`ArrowFunctionExpression`:switch(s.type){case`BinaryExpression`:return s.operator!==`|>`||a.extra?.parenthesized;case`NewExpression`:case`CallExpression`:case`OptionalCallExpression`:return o===`callee`;case`MemberExpression`:case`OptionalMemberExpression`:return o===`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 o===`test`;default:return!1}case`ClassExpression`:switch(s.type){case`NewExpression`:return o===`callee`;default:return!1}case`OptionalMemberExpression`:case`OptionalCallExpression`:case`CallExpression`:case`MemberExpression`:if(cm(e))return!0;case`TaggedTemplateExpression`:case`TSNonNullExpression`:if(o===`callee`&&(s.type===`BindExpression`||s.type===`NewExpression`)){let e=a;for(;e;)switch(e.type){case`CallExpression`:case`OptionalCallExpression`:return!0;case`MemberExpression`:case`OptionalMemberExpression`:case`BindExpression`:e=e.object;break;case`TaggedTemplateExpression`:e=e.tag;break;case`TSNonNullExpression`:e=e.expression;break;default:return!1}}return!1;case`BindExpression`:return o===`callee`&&(s.type===`BindExpression`||s.type===`NewExpression`)||o===`object`&&H(s);case`NGPipeExpression`:return!(s.type===`NGRoot`||s.type===`NGMicrosyntaxExpression`||s.type===`ObjectProperty`&&!((i=a.extra)!=null&&i.parenthesized)||nl(s)||o===`arguments`&&V(s)||o===`right`&&s.type===`NGPipeExpression`||o===`property`&&s.type===`MemberExpression`||s.type===`AssignmentExpression`);case`JSXFragment`:case`JSXElement`:return o===`callee`||o===`left`&&s.type===`BinaryExpression`&&s.operator===`<`||!nl(s)&&s.type!==`ArrowFunctionExpression`&&s.type!==`AssignmentExpression`&&s.type!==`AssignmentPattern`&&s.type!==`BinaryExpression`&&s.type!==`NewExpression`&&s.type!==`ConditionalExpression`&&s.type!==`ExpressionStatement`&&s.type!==`JsExpressionRoot`&&s.type!==`JSXAttribute`&&s.type!==`JSXElement`&&s.type!==`JSXExpressionContainer`&&s.type!==`JSXFragment`&&s.type!==`LogicalExpression`&&!V(s)&&!uu(s)&&s.type!==`ReturnStatement`&&s.type!==`ThrowStatement`&&s.type!==`TypeCastExpression`&&s.type!==`VariableDeclarator`&&s.type!==`YieldExpression`;case`TSInstantiationExpression`:return o===`object`&&H(s)}return!1}var nm=z(`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`.split(`.`));function rm(e){let t=0,{node:n}=e;for(;n;){let r=e.getParentNode(t++);if(r?.type===`ForStatement`&&r.init===n)return!0;n=r}return!1}function im(e){return Xc(e,e=>e.type===`ObjectTypeAnnotation`&&Xc(e,e=>e.type===`FunctionTypeAnnotation`))}function am(e){return rl(e)}function om(e){let{parent:t,key:n}=e;switch(t.type){case`NGPipeExpression`:if(n===`arguments`&&e.isLast)return e.callParent(om);break;case`ObjectProperty`:if(n===`value`)return e.callParent(()=>e.key===`properties`&&e.isLast);break;case`BinaryExpression`:case`LogicalExpression`:if(n===`right`)return e.callParent(om);break;case`ConditionalExpression`:if(n===`alternate`)return e.callParent(om);break;case`UnaryExpression`:if(t.prefix)return e.callParent(om);break}return!1}function sm(e,t){let{node:n,parent:r}=e;return n.type===`FunctionExpression`||n.type===`ClassExpression`?r.type===`ExportDefaultDeclaration`||!tm(e,t):!Zc(n)||r.type!==`ExportDefaultDeclaration`&&tm(e,t)?!1:e.call(()=>sm(e,t),...$c(n))}function cm(e){let{node:t,parent:n,grandparent:r,key:i}=e;return!!((t.type===`OptionalMemberExpression`||t.type===`OptionalCallExpression`)&&(i===`object`&&n.type===`MemberExpression`||i===`callee`&&(n.type===`CallExpression`||n.type===`NewExpression`)||n.type===`TSNonNullExpression`&&r.type===`MemberExpression`&&r.object===n)||e.match(()=>t.type===`CallExpression`||t.type===`MemberExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`)&&(e.match(void 0,void 0,(e,t)=>t===`callee`&&(e.type===`CallExpression`&&!e.optional||e.type===`NewExpression`)||t===`object`&&e.type===`MemberExpression`&&!e.optional)||e.match(void 0,void 0,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`))||e.match(()=>t.type===`CallExpression`||t.type===`MemberExpression`,(e,t)=>t===`expression`&&e.type===`TSNonNullExpression`,(e,t)=>t===`expression`&&e.type===`ChainExpression`,(e,t)=>t===`object`&&e.type===`MemberExpression`))}function lm(e){return e.type===`Identifier`?!0:H(e)?!e.computed&&!e.optional&&e.property.type===`Identifier`&&lm(e.object):!1}function um(e){return e.type===`ChainExpression`&&(e=e.expression),lm(e)||V(e)&&!e.optional&&lm(e.callee)}var dm=tm;function fm(e,t){let n=t-1;n=uc(e,n,{backwards:!0}),n=mc(e,n,{backwards:!0}),n=uc(e,n,{backwards:!0});let r=mc(e,n,{backwards:!0});return n!==r}var pm=fm,mm=()=>!0;function hm(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function gm(e,t){let n=e.node,r=[hm(e,t)],{printer:i,originalText:a,locStart:o,locEnd:s}=t;if(i.isBlockComment?.call(i,n)){let e=gc(a,s(n))?gc(a,o(n),{backwards:!0})?X:J:` `;r.push(e)}else r.push(X);let c=mc(a,uc(a,s(n)));return c!==!1&&gc(a,c)&&r.push(X),r}function _m(e,t,n){let r=e.node,i=hm(e,t),{printer:a,originalText:o,locStart:s}=t,c=a.isBlockComment?.call(a,r);return n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||gc(o,s(r),{backwards:!0})?{doc:Zu([X,pm(o,s(r))?X:``,i]),isBlock:c,hasLineSuffix:!0}:!c||n!=null&&n.hasLineSuffix?{doc:[Zu([` `,i]),$u],isBlock:c,hasLineSuffix:!0}:{doc:[` `,i],isBlock:c,hasLineSuffix:!1}}function $(e,t,n={}){let{node:r}=e;if(!I(r?.comments))return``;let{indent:i=!1,marker:a,filter:o=mm}=n,s=[];if(e.each(({node:n})=>{n.leading||n.trailing||n.marker!==a||!o(n)||s.push(hm(e,t))},`comments`),s.length===0)return``;let c=Z(X,s);return i?G([X,c]):c}function vm(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for(`printedComments`)];if((n.comments||[]).filter(e=>!r.has(e)).length===0)return{leading:``,trailing:``};let i=[],a=[],o;return e.each(()=>{let n=e.node;if(r!=null&&r.has(n))return;let{leading:s,trailing:c}=n;s?i.push(gm(e,t)):c&&(o=_m(e,t,o),a.push(o.doc))},`comments`),{leading:i,trailing:a}}function ym(e,t,n){let{leading:r,trailing:i}=vm(e,n);return!r&&!i?t:yd(t,e=>[r,e,i])}var bm=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}};function xm(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var Sm,Cm=class{constructor(e){Gs(this,Sm),Ks(this,Sm,new Set(e))}getLeadingWhitespaceCount(e){let t=Ws(this,Sm),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=Ws(this,Sm),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}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 Ws(this,Sm).has(e.charAt(0))}hasTrailingWhitespace(e){return Ws(this,Sm).has(F(!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 n=`[${xm([...Ws(this,Sm)].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=Ws(this,Sm);return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=Ws(this,Sm);return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=Ws(this,Sm);return Array.prototype.every.call(e,e=>t.has(e))}};Sm=new WeakMap;var wm=new Cm(` 
\r	`),Tm=e=>e===``||e===J||e===X||e===Y;function Em(e,t,n){let{node:r}=e;if(r.type===`JSXElement`&&Um(r))return[n(`openingElement`),n(`closingElement`)];let i=r.type===`JSXElement`?n(`openingElement`):n(`openingFragment`),a=r.type===`JSXElement`?n(`closingElement`):n(`closingFragment`);if(r.children.length===1&&r.children[0].type===`JSXExpressionContainer`&&(r.children[0].expression.type===`TemplateLiteral`||r.children[0].expression.type===`TaggedTemplateExpression`))return[i,...e.map(n,`children`),a];r.children=r.children.map(e=>Gm(e)?{type:`JSXText`,value:` `,raw:` `}:e);let o=r.children.some(B),s=r.children.filter(e=>e.type===`JSXExpressionContainer`).length>1,c=r.type===`JSXElement`&&r.openingElement.attributes.length>1,l=ld(i)||o||c||s,u=e.parent.rootMarker===`mdx`,d=t.singleQuote?`{' '}`:`{" "}`,f=u?` `:q([d,Y],` `),p=Dm(e,t,n,f,r.openingElement?.name?.name===`fbt`),m=r.children.some(e=>Wm(e));for(let e=p.length-2;e>=0;e--){let t=p[e]===``&&p[e+1]===``,n=p[e]===X&&p[e+1]===``&&p[e+2]===X,r=(p[e]===Y||p[e]===X)&&p[e+1]===``&&p[e+2]===f,i=p[e]===f&&p[e+1]===``&&(p[e+2]===Y||p[e+2]===X),a=p[e]===f&&p[e+1]===``&&p[e+2]===f,o=p[e]===Y&&p[e+1]===``&&p[e+2]===X||p[e]===X&&p[e+1]===``&&p[e+2]===Y;n&&m||t||r||a||o?p.splice(e,2):i&&p.splice(e+1,2)}for(;p.length>0&&Tm(F(!1,p,-1));)p.pop();for(;p.length>1&&Tm(p[0])&&Tm(p[1]);)p.shift(),p.shift();let h=[];for(let[e,t]of p.entries()){if(t===f){if(e===1&&p[e-1]===``){if(p.length===2){h.push(d);continue}h.push([d,X]);continue}else if(e===p.length-1){h.push(d);continue}else if(p[e-1]===``&&p[e-2]===X){h.push(d);continue}}h.push(t),ld(t)&&(l=!0)}let g=m?Yu(h):K(h,{shouldBreak:!0});if(t.cursorNode?.type===`JSXText`&&r.children.includes(t.cursorNode)&&(g=[rd,g,rd]),u)return g;let _=K([i,G([X,g]),X,a]);return l?_:Ju([K([i,...p,a]),_])}function Dm(e,t,n,r,i){let a=[];return e.each(({node:e,next:t})=>{if(e.type===`JSXText`){let n=zl(e);if(Wm(e)){let o=wm.split(n,!0);o[0]===``&&(a.push(``),o.shift(),/\n/u.test(o[0])?a.push(km(i,o[1],e,t)):a.push(r),o.shift());let s;if(F(!1,o,-1)===``&&(o.pop(),s=o.pop()),o.length===0)return;for(let[e,t]of o.entries())e%2==1?a.push(J):a.push(t);s===void 0?a.push(Om(i,F(!1,a,-1),e,t)):/\n/u.test(s)?a.push(km(i,F(!1,a,-1),e,t)):a.push(r)}else /\n/u.test(n)?n.match(/\n/gu).length>1&&a.push(``,X):a.push(``,r)}else{let r=n();if(a.push(r),t&&Wm(t)){let n=wm.trim(zl(t)),[r]=wm.split(n);a.push(Om(i,r,e,t))}else a.push(X)}},`children`),a}function Om(e,t,n,r){return e?``:n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?t.length===1?Y:X:Y}function km(e,t,n,r){return e?X:t.length===1?n.type===`JSXElement`&&!n.closingElement||r?.type===`JSXElement`&&!r.closingElement?X:Y:X}var Am=new Set([`ArrayExpression`,`TupleExpression`,`JSXAttribute`,`JSXElement`,`JSXExpressionContainer`,`JSXFragment`,`ExpressionStatement`,`CallExpression`,`OptionalCallExpression`,`ConditionalExpression`,`JsExpressionRoot`]);function jm(e,t,n){let{parent:r}=e;if(Am.has(r.type))return t;let i=e.match(void 0,e=>e.type===`ArrowFunctionExpression`,V,e=>e.type===`JSXExpressionContainer`),a=dm(e,n);return K([a?``:q(`(`),G([Y,t]),Y,a?``:q(`)`)],{shouldBreak:i})}function Mm(e,t,n){let{node:r}=e,i=[];if(i.push(n(`name`)),r.value){let a;if(sl(r.value)){let n=Xs(!1,Xs(!1,zl(r.value).slice(1,-1),`&apos;`,`'`),`&quot;`,`"`),i=Dc(n,t.jsxSingleQuote);n=i===`"`?Xs(!1,n,`"`,`&quot;`):Xs(!1,n,`'`,`&apos;`),a=e.call(()=>ym(e,gd(i+n+i),t),`value`)}else a=n(`value`);i.push(`=`,a)}return i}function Nm(e,t,n){let{node:r}=e,i=(e,t)=>e.type===`JSXEmptyExpression`||!W(e)&&(nl(e)||rl(e)||e.type===`ArrowFunctionExpression`||e.type===`AwaitExpression`&&(i(e.argument,e)||e.argument.type===`JSXElement`)||V(e)||e.type===`ChainExpression`&&V(e.expression)||e.type===`FunctionExpression`||e.type===`TemplateLiteral`||e.type===`TaggedTemplateExpression`||e.type===`DoExpression`||B(t)&&(e.type===`ConditionalExpression`||vl(e)));return i(r.expression,e.parent)?K([`{`,n(`expression`),Qu,`}`]):K([`{`,G([Y,n(`expression`)]),Y,Qu,`}`])}function Pm(e,t,n){let{node:r}=e,i=W(r.name)||W(r.typeParameters)||W(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!i)return[`<`,n(`name`),r.typeArguments?n(`typeArguments`):n(`typeParameters`),` />`];if(r.attributes?.length===1&&sl(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
`)&&!i&&!W(r.attributes[0]))return K([`<`,n(`name`),r.typeArguments?n(`typeArguments`):n(`typeParameters`),` `,...e.map(n,`attributes`),r.selfClosing?` />`:`>`]);let a=r.attributes?.some(e=>sl(e.value)&&e.value.value.includes(`
`)),o=t.singleAttributePerLine&&r.attributes.length>1?X:J;return K([`<`,n(`name`),r.typeArguments?n(`typeArguments`):n(`typeParameters`),G(e.map(()=>[o,n()],`attributes`)),...Fm(r,t,i)],{shouldBreak:a})}function Fm(e,t,n){return e.selfClosing?[J,`/>`]:Im(e,t,n)?[`>`]:[Y,`>`]}function Im(e,t,n){let r=e.attributes.length>0&&W(F(!1,e.attributes,-1),U.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function Lm(e,t,n){let{node:r}=e,i=[];i.push(`</`);let a=n(`name`);return W(r.name,U.Leading|U.Line)?i.push(G([X,a]),X):W(r.name,U.Leading|U.Block)?i.push(` `,a):i.push(a),i.push(`>`),i}function Rm(e,t){let{node:n}=e,r=W(n),i=W(n,U.Line),a=n.type===`JSXOpeningFragment`;return[a?`<`:`</`,G([i?X:r&&!a?` `:``,$(e,t)]),i?X:``,`>`]}function zm(e,t,n){return jm(e,ym(e,Em(e,t,n),t),t)}function Bm(e,t){let{node:n}=e,r=W(n,U.Line);return[$(e,t,{indent:r}),r?X:``]}function Vm(e,t,n){let{node:r}=e;return[`{`,e.call(({node:r})=>{let i=[`...`,n()];return!W(r)||!kf(e)?i:[G([Y,ym(e,i,t)]),Y]},r.type===`JSXSpreadAttribute`?`argument`:`expression`),`}`]}function Hm(e,t,n){let{node:r}=e;if(r.type.startsWith(`JSX`))switch(r.type){case`JSXAttribute`:return Mm(e,t,n);case`JSXIdentifier`:return r.name;case`JSXNamespacedName`:return Z(`:`,[n(`namespace`),n(`name`)]);case`JSXMemberExpression`:return Z(`.`,[n(`object`),n(`property`)]);case`JSXSpreadAttribute`:case`JSXSpreadChild`:return Vm(e,t,n);case`JSXExpressionContainer`:return Nm(e,t,n);case`JSXFragment`:case`JSXElement`:return zm(e,t,n);case`JSXOpeningElement`:return Pm(e,t,n);case`JSXClosingElement`:return Lm(e,t,n);case`JSXOpeningFragment`:case`JSXClosingFragment`:return Rm(e,t);case`JSXEmptyExpression`:return Bm(e,t);case`JSXText`:throw Error(`JSXText should be handled by JSXElement`);default:throw new bm(r,`JSX`)}}function Um(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type===`JSXText`&&!Wm(t)}function Wm(e){return e.type===`JSXText`&&(wm.hasNonWhitespaceCharacter(zl(e))||!/\n/u.test(zl(e)))}function Gm(e){return e.type===`JSXExpressionContainer`&&sl(e.expression)&&e.expression.value===` `&&!W(e.expression)}function Km(e){let{node:t,parent:n}=e;if(!B(t)||!B(n))return!1;let{index:r,siblings:i}=e,a;for(let e=r;e>0;e--){let t=i[e-1];if(!(t.type===`JSXText`&&!Wm(t))){a=t;break}}return a?.type===`JSXExpressionContainer`&&a.expression.type===`JSXEmptyExpression`&&au(a.expression)}function qm(e){return au(e.node)||Km(e)}var Jm=qm,Ym=0;function Xm(e,t,n){let{node:r,parent:i,grandparent:a,key:o}=e,s=o!==`body`&&(i.type===`IfStatement`||i.type===`WhileStatement`||i.type===`SwitchStatement`||i.type===`DoWhileStatement`),c=r.operator===`|>`&&e.root.extra?.__isUsingHackPipeline,l=Zm(e,n,t,!1,s);if(s)return l;if(c)return K(l);if(V(i)&&i.callee===r||i.type===`UnaryExpression`||H(i)&&!i.computed)return K([G([Y,...l]),Y]);let u=i.type===`ReturnStatement`||i.type===`ThrowStatement`||i.type===`JSXExpressionContainer`&&a.type===`JSXAttribute`||r.operator!==`|`&&i.type===`JsExpressionRoot`||r.type!==`NGPipeExpression`&&(i.type===`NGRoot`&&t.parser===`__ng_binding`||i.type===`NGMicrosyntaxExpression`&&a.type===`NGMicrosyntax`&&a.body.length===1)||r===i.body&&i.type===`ArrowFunctionExpression`||r!==i.body&&i.type===`ForStatement`||i.type===`ConditionalExpression`&&a.type!==`ReturnStatement`&&a.type!==`ThrowStatement`&&!V(a)||i.type===`TemplateLiteral`,d=i.type===`AssignmentExpression`||i.type===`VariableDeclarator`||i.type===`ClassProperty`||i.type===`PropertyDefinition`||i.type===`TSAbstractPropertyDefinition`||i.type===`ClassPrivateProperty`||uu(i),f=vl(r.left)&&Kl(r.operator,r.left.operator);if(u||Qm(r)&&!f||!Qm(r)&&d)return K(l);if(l.length===0)return``;let p=B(r.right),m=l.findIndex(e=>typeof e!=`string`&&!Array.isArray(e)&&e.type===wu),h=l.slice(0,m===-1?1:m+1),g=l.slice(h.length,p?-1:void 0),_=Symbol(`logicalChain-`+ ++Ym),v=K([...h,G(g)],{id:_});return p?K([v,Xu(F(!1,l,-1),{groupId:_})]):v}function Zm(e,t,n,r,i){let{node:a}=e;if(!vl(a))return[K(t())];let o=[];Kl(a.operator,a.left.operator)?o=e.call(e=>Zm(e,t,n,!0,i),`left`):o.push(K(t(`left`)));let s=Qm(a),c=(a.operator===`|>`||a.type===`NGPipeExpression`||eh(e,n))&&!jl(n.originalText,a.right),l=a.type===`NGPipeExpression`?`|`:a.operator,u=a.type===`NGPipeExpression`&&a.arguments.length>0?K(G([Y,`: `,Z([J,`: `],e.map(()=>Gu(2,K(t())),`arguments`))])):``,d;if(s)d=[l,` `,t(`right`),u];else{let r=l===`|>`&&e.root.extra?.__isUsingHackPipeline?e.call(e=>Zm(e,t,n,!0,i),`right`):t(`right`);d=[c?J:``,l,c?` `:J,r,u]}let{parent:f}=e,p=W(a.left,U.Trailing|U.Line),m=p||!(i&&a.type===`LogicalExpression`)&&f.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type;if(o.push(c?``:` `,m?K(d,{shouldBreak:p}):d),r&&W(a)){let t=hd(ym(e,o,n));return t.type===Tu?t.parts:Array.isArray(t)?t:[t]}return o}function Qm(e){return e.type===`LogicalExpression`?!!(rl(e.right)&&e.right.properties.length>0||nl(e.right)&&e.right.elements.length>0||B(e.right)):!1}var $m=e=>e.type===`BinaryExpression`&&e.operator===`|`;function eh(e,t){return(t.parser===`__vue_expression`||t.parser===`__vue_ts_expression`)&&$m(e.node)&&!e.hasAncestor(e=>!$m(e)&&e.type!==`JsExpressionRoot`)}function th(e,t,n){let{node:r}=e;if(r.type.startsWith(`NG`))switch(r.type){case`NGRoot`:return[n(`node`),W(r.node)?` //`+su(r.node)[0].value.trimEnd():``];case`NGPipeExpression`:return Xm(e,t,n);case`NGChainedExpression`:return K(Z([`;`,J],e.map(()=>ih(e)?n():[`(`,n(),`)`],`expressions`)));case`NGEmptyExpression`:return``;case`NGMicrosyntax`:return e.map(()=>[e.isFirst?``:nh(e)?` `:[`;`,J],n()],`body`);case`NGMicrosyntaxKey`:return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case`NGMicrosyntaxExpression`:return[n(`expression`),r.alias===null?``:[` as `,n(`alias`)]];case`NGMicrosyntaxKeyedExpression`:{let{index:t,parent:i}=e,a=nh(e)||(t===1&&(r.key.name===`then`||r.key.name===`else`||r.key.name===`as`)||(t===2||t===3)&&(r.key.name===`else`&&i.body[t-1].type===`NGMicrosyntaxKeyedExpression`&&i.body[t-1].key.name===`then`||r.key.name===`track`))&&i.body[0].type===`NGMicrosyntaxExpression`;return[n(`key`),a?` `:`: `,n(`expression`)]}case`NGMicrosyntaxLet`:return[`let `,n(`key`),r.value===null?``:[` = `,n(`value`)]];case`NGMicrosyntaxAs`:return[n(`key`),` as `,n(`alias`)];default:throw new bm(r,`Angular`)}}function nh({node:e,index:t}){return e.type===`NGMicrosyntaxKeyedExpression`&&e.key.name===`of`&&t===1}var rh=z([`CallExpression`,`OptionalCallExpression`,`AssignmentExpression`]);function ih({node:e}){return Xc(e,rh)}function ah(e,t,n){let{node:r}=e;return K([Z(J,e.map(n,`decorators`)),ch(r,t)?X:J])}function oh(e,t,n){return lh(e.node)?[Z(X,e.map(n,`declaration`,`decorators`)),X]:``}function sh(e,t,n){let{node:r,parent:i}=e,{decorators:a}=r;if(!I(a)||lh(i)||Jm(e))return``;let o=r.type===`ClassExpression`||r.type===`ClassDeclaration`||ch(r,t);return[e.key===`declaration`&&tl(i)?X:o?$u:``,Z(J,e.map(n,`decorators`)),J]}function ch(e,t){return e.decorators.some(e=>gc(t.originalText,R(e)))}function lh(e){if(e.type!==`ExportDefaultDeclaration`&&e.type!==`ExportNamedDeclaration`&&e.type!==`DeclareExportDeclaration`)return!1;let t=e.declaration?.decorators;return I(t)&&Mc(e,t[0])}var uh=class extends Error{name=`ArgExpansionBailout`};function dh(e,t,n){let{node:r}=e,i=tu(r);if(i.length===0)return[`(`,$(e,t),`)`];let a=i.length-1;if(gh(i)){let t=[`(`];return nu(e,(e,r)=>{t.push(n()),r!==a&&t.push(`, `)}),t.push(`)`),t}let o=!1,s=[];nu(e,({node:e},r)=>{let i=n();r===a||(cu(e,t)?(o=!0,i=[i,`,`,X,X]):i=[i,`,`,J]),s.push(i)});let c=r.type===`ImportExpression`||r.callee.type===`Import`,l=!t.parser.startsWith(`__ng_`)&&!c&&Vl(t,`all`)?`,`:``;function u(){return K([`(`,G([J,...s]),l,J,`)`],{shouldBreak:!0})}if(o||e.parent.type!==`Decorator`&&Fl(i))return u();if(mh(i)){let e=s.slice(1);if(e.some(ld))return u();let t;try{t=n(ru(r,0),{expandFirstArg:!0})}catch(e){if(e instanceof uh)return u();throw e}return ld(t)?[$u,Ju([[`(`,K(t,{shouldBreak:!0}),`, `,...e,`)`],u()])]:Ju([[`(`,t,`, `,...e,`)`],[`(`,K(t,{shouldBreak:!0}),`, `,...e,`)`],u()])}if(ph(i,s,t)){let e=s.slice(0,-1);if(e.some(ld))return u();let t;try{t=n(ru(r,-1),{expandLastArg:!0})}catch(e){if(e instanceof uh)return u();throw e}return ld(t)?[$u,Ju([[`(`,...e,K(t,{shouldBreak:!0}),`)`],u()])]:Ju([[`(`,...e,t,`)`],[`(`,...e,K(t,{shouldBreak:!0}),`)`],u()])}let d=[`(`,G([Y,...s]),q(l),Y,`)`];return Il(e)?d:K(d,{shouldBreak:s.some(ld)||o})}function fh(e,t=!1){return rl(e)&&(e.properties.length>0||W(e))||nl(e)&&(e.elements.length>0||W(e))||e.type===`TSTypeAssertion`&&fh(e.expression)||du(e)&&fh(e.expression)||e.type===`FunctionExpression`||e.type===`ArrowFunctionExpression`&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!==`TSTypeReference`||vh(e.body))&&(e.body.type===`BlockStatement`||e.body.type===`ArrowFunctionExpression`&&fh(e.body,!0)||rl(e.body)||nl(e.body)||!t&&(V(e.body)||e.body.type===`ConditionalExpression`)||B(e.body))||e.type===`DoExpression`||e.type===`ModuleExpression`}function ph(e,t,n){var r;let i=F(!1,e,-1);if(e.length===1){let e=F(!1,t,-1);if((r=e.label)!=null&&r.embed&&e.label?.hug!==!1)return!0}let a=F(!1,e,-2);return!W(i,U.Leading)&&!W(i,U.Trailing)&&fh(i)&&(!a||a.type!==i.type)&&(e.length!==2||a.type!==`ArrowFunctionExpression`||!nl(i))&&!(e.length>1&&Ig(i,n))}function mh(e){if(e.length!==2)return!1;let[t,n]=e;return t.type===`ModuleExpression`&&yh(n)?!0:!W(t)&&(t.type===`FunctionExpression`||t.type===`ArrowFunctionExpression`&&t.body.type===`BlockStatement`)&&n.type!==`FunctionExpression`&&n.type!==`ArrowFunctionExpression`&&n.type!==`ConditionalExpression`&&hh(n)&&!fh(n)}function hh(e){if(e.type===`ParenthesizedExpression`)return hh(e.expression);if(du(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 e=t.typeArguments??t.typeParameters;e?.params.length===1&&(t=e.params[0])}return xl(t)&&Rl(e.expression,1)}return lu(e)&&tu(e).length>1?!1:vl(e)?Rl(e.left,1)&&Rl(e.right,1):cl(e)||Rl(e)}function gh(e){return e.length===2?_h(e,0):e.length===3?e[0].type===`Identifier`&&_h(e,1):!1}function _h(e,t){let n=e[t],r=e[t+1];return n.type===`ArrowFunctionExpression`&&Ql(n).length===0&&n.body.type===`BlockStatement`&&r.type===`ArrayExpression`&&!e.some(e=>W(e))}function vh(e){return e.type===`BlockStatement`&&(e.body.some(e=>e.type!==`EmptyStatement`)||W(e,U.Dangling))}function yh(e){return e.type===`ObjectExpression`&&e.properties.length===1&&uu(e.properties[0])&&e.properties[0].key.type===`Identifier`&&e.properties[0].key.name===`type`&&sl(e.properties[0].value)&&e.properties[0].value.value===`module`}var bh=dh,xh=e=>((e.type===`ChainExpression`||e.type===`TSNonNullExpression`)&&(e=e.expression),V(e)&&tu(e).length>0);function Sh(e,t,n){let r=n(`object`),i=Ch(e,t,n),{node:a}=e,o=e.findAncestor(e=>!(H(e)||e.type===`TSNonNullExpression`)),s=e.findAncestor(e=>!(e.type===`ChainExpression`||e.type===`TSNonNullExpression`)),c=o&&(o.type===`NewExpression`||o.type===`BindExpression`||o.type===`AssignmentExpression`&&o.left.type!==`Identifier`)||a.computed||a.object.type===`Identifier`&&a.property.type===`Identifier`&&!H(s)||(s.type===`AssignmentExpression`||s.type===`VariableDeclarator`)&&(xh(a.object)||r.label?.memberChain);return ad(r.label,[r,c?i:K(G([Y,i]))])}function Ch(e,t,n){let r=n(`property`),{node:i}=e,a=Cg(e);return i.computed?!i.property||al(i.property)?[a,`[`,r,`]`]:K([a,`[`,G([Y,r]),Y,`]`]):[a,`.`,r]}function wh(e,t,n){if(e.node.type===`ChainExpression`)return e.call(()=>wh(e,t,n),`expression`);let{parent:r}=e,i=!r||r.type===`ExpressionStatement`,a=[];function o(e){let{originalText:n}=t,r=Ad(n,R(e));return n.charAt(r)===`)`?r!==!1&&Sc(n,r+1):cu(e,t)}function s(e){let{node:r}=e;if(r.type===`ChainExpression`)return e.call(()=>s(e),`expression`);if(V(r)&&(yl(r.callee)||V(r.callee))){let i=o(r);a.unshift({node:r,hasTrailingEmptyLine:i,printed:[ym(e,[Cg(e),kg(e,t,n),bh(e,t,n)],t),i?X:``]}),e.call(e=>s(e),`callee`)}else yl(r)?(a.unshift({node:r,needsParens:dm(e,t),printed:ym(e,H(r)?Ch(e,t,n):Ag(e,t,n),t)}),e.call(e=>s(e),`object`)):r.type===`TSNonNullExpression`?(a.unshift({node:r,printed:ym(e,`!`,t)}),e.call(e=>s(e),`expression`)):a.unshift({node:r,printed:n()})}let{node:c}=e;a.unshift({node:c,printed:[Cg(e),kg(e,t,n),bh(e,t,n)]}),c.callee&&e.call(e=>s(e),`callee`);let l=[],u=[a[0]],d=1;for(;d<a.length&&(a[d].node.type===`TSNonNullExpression`||V(a[d].node)||H(a[d].node)&&a[d].node.computed&&al(a[d].node.property));++d)u.push(a[d]);if(!V(a[0].node))for(;d+1<a.length&&yl(a[d].node)&&yl(a[d+1].node);++d)u.push(a[d]);l.push(u),u=[];let f=!1;for(;d<a.length;++d){if(f&&yl(a[d].node)){if(a[d].node.computed&&al(a[d].node.property)){u.push(a[d]);continue}l.push(u),u=[],f=!1}(V(a[d].node)||a[d].node.type===`ImportExpression`)&&(f=!0),u.push(a[d]),W(a[d].node,U.Trailing)&&(l.push(u),u=[],f=!1)}u.length>0&&l.push(u);function p(e){return/^[A-Z]|^[$_]+$/u.test(e)}function m(e){return e.length<=t.tabWidth}function h(e){let t=e[1][0]?.node.computed;if(e[0].length===1){let n=e[0][0].node;return n.type===`ThisExpression`||n.type===`Identifier`&&(p(n.name)||i&&m(n.name)||t)}let n=F(!1,e[0],-1).node;return H(n)&&n.property.type===`Identifier`&&(p(n.property.name)||t)}let g=l.length>=2&&!W(l[1][0].node)&&h(l);function _(e){let t=e.map(e=>e.printed);return e.length>0&&F(!1,e,-1).needsParens?[`(`,...t,`)`]:t}function v(e){return e.length===0?``:G([X,Z(X,e.map(_))])}let ee=l.map(_),te=ee,y=g?3:2,ne=l.flat(),re=ne.slice(1,-1).some(e=>W(e.node,U.Leading))||ne.slice(0,-1).some(e=>W(e.node,U.Trailing))||l[y]&&W(l[y][0].node,U.Leading);if(l.length<=y&&!re&&!l.some(e=>F(!1,e,-1).hasTrailingEmptyLine))return Il(e)?te:K(te);let b=F(!1,l[g?1:0],-1).node,x=!V(b)&&o(b),S=[_(l[0]),g?l.slice(1,2).map(_):``,x?X:``,v(l.slice(g?2:1))],ie=a.map(({node:e})=>e).filter(V);function ae(){let e=F(!1,F(!1,l,-1),-1).node,t=F(!1,ee,-1);return V(e)&&ld(t)&&ie.slice(0,-1).some(e=>e.arguments.some(fl))}let oe;return oe=re||ie.length>2&&ie.some(e=>!e.arguments.every(e=>Rl(e)))||ee.slice(0,-1).some(ld)||ae()?K(S):[ld(te)||x?$u:``,Ju([te,S])],ad({memberChain:!0},oe)}var Th=wh;function Eh(e,t,n){var r;let{node:i}=e,a=i.type===`NewExpression`,o=i.type===`ImportExpression`,s=Cg(e),c=tu(i),l=c.length===1&&Nl(c[0],t.originalText);if(l||Oh(e)||Tl(i,e.parent)){let i=[];if(nu(e,()=>{i.push(n())}),!(l&&(r=i[0].label)!=null&&r.embed))return[a?`new `:``,Dh(e,n),s,kg(e,t,n),`(`,Z(`, `,i),`)`]}if(!o&&!a&&yl(i.callee)&&!e.call(e=>dm(e,t),`callee`,...i.callee.type===`ChainExpression`?[`expression`]:[]))return Th(e,t,n);let u=[a?`new `:``,Dh(e,n),s,kg(e,t,n),bh(e,t,n)];return o||V(i.callee)?K(u):u}function Dh(e,t){let{node:n}=e;return n.type===`ImportExpression`?`import${n.phase?`.${n.phase}`:``}`:t(`callee`)}function Oh(e){let{node:t}=e;if(t.type!==`CallExpression`||t.optional||t.callee.type!==`Identifier`)return!1;let n=tu(t);return t.callee.name===`require`?n.length===1&&sl(n[0])||n.length>1:t.callee.name===`define`&&e.parent.type===`ExpressionStatement`?n.length===1||n.length===2&&n[0].type===`ArrayExpression`||n.length===3&&sl(n[0])&&n[1].type===`ArrayExpression`:!1}function kh(e,t,n,r,i,a){let o=Mh(e,t,n,r,a),s=a?n(a,{assignmentLayout:o}):``;switch(o){case`break-after-operator`:return K([K(r),i,K(G([J,s]))]);case`never-break-after-operator`:return K([K(r),i,` `,s]);case`fluid`:{let e=Symbol(`assignment`);return K([K(r),i,K(G(J),{id:e}),Qu,Xu(s,{groupId:e})])}case`break-lhs`:return K([r,i,` `,K(s)]);case`chain`:return[K(r),i,J,s];case`chain-tail`:return[K(r),i,G([J,s])];case`chain-tail-arrow-chain`:return[K(r),i,s];case`only-left`:return r}}function Ah(e,t,n){let{node:r}=e;return kh(e,t,n,n(`left`),[` `,r.operator],`right`)}function jh(e,t,n){return kh(e,t,n,n(`id`),` =`,`init`)}function Mh(e,t,n,r,i){let{node:a}=e,o=a[i];if(!o)return`only-left`;let s=!Fh(o);if(e.match(Fh,Ih,e=>!s||e.type!==`ExpressionStatement`&&e.type!==`VariableDeclaration`))return s?o.type===`ArrowFunctionExpression`&&o.body.type===`ArrowFunctionExpression`?`chain-tail-arrow-chain`:`chain-tail`:`chain`;if(!s&&Fh(o.right)||jl(t.originalText,o))return`break-after-operator`;if(a.type===`ImportAttribute`||o.type===`CallExpression`&&o.callee.name===`require`||t.parser===`json5`||t.parser===`jsonc`||t.parser===`json`)return`never-break-after-operator`;let c=vd(r);if(Ph(a)||Bh(a)||Vh(a)&&c)return`break-lhs`;let l=Gh(a,r,t);return e.call(()=>Nh(e,t,n,l),i)?`break-after-operator`:Lh(a)?`break-lhs`:!c&&(l||o.type===`TemplateLiteral`||o.type===`TaggedTemplateExpression`||o.type===`BooleanLiteral`||al(o)||o.type===`ClassExpression`)?`never-break-after-operator`:`fluid`}function Nh(e,t,n,r){let i=e.node;if(vl(i)&&!Qm(i))return!0;switch(i.type){case`StringLiteralTypeAnnotation`:case`SequenceExpression`:return!0;case`TSConditionalType`:case`ConditionalTypeAnnotation`:if(!t.experimentalTernaries&&!Jh(i))break;return!0;case`ConditionalExpression`:{if(!t.experimentalTernaries){let{test:e}=i;return vl(e)&&!Qm(e)}let{consequent:e,alternate:n}=i;return e.type===`ConditionalExpression`||n.type===`ConditionalExpression`}case`ClassExpression`:return I(i.decorators)}if(r)return!1;let a=i,o=[];for(;;)if(a.type===`UnaryExpression`||a.type===`AwaitExpression`||a.type===`YieldExpression`&&a.argument!==null)a=a.argument,o.push(`argument`);else if(a.type===`TSNonNullExpression`)a=a.expression,o.push(`expression`);else break;return!!(sl(a)||e.call(()=>Wh(e,t,n),...o))}function Ph(e){if(Ih(e)){let t=e.left||e.id;return t.type===`ObjectPattern`&&t.properties.length>2&&t.properties.some(e=>uu(e)&&(!e.shorthand||e.value?.type===`AssignmentPattern`))}return!1}function Fh(e){return e.type===`AssignmentExpression`}function Ih(e){return Fh(e)||e.type===`VariableDeclarator`}function Lh(e){let t=zh(e);if(I(t)){let n=e.type===`TSTypeAliasDeclaration`?`constraint`:`bound`;if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}var Rh=z([`TSTypeAliasDeclaration`,`TypeAlias`]);function zh(e){if(Rh(e))return e.typeParameters?.params}function Bh(e){if(e.type!==`VariableDeclarator`)return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=Uh(t.typeAnnotation);return I(n)&&n.length>1&&n.some(e=>I(Uh(e))||e.type===`TSConditionalType`)}function Vh(e){return e.type===`VariableDeclarator`&&e.init?.type===`ArrowFunctionExpression`}var Hh=z([`TSTypeReference`,`GenericTypeAnnotation`]);function Uh(e){if(Hh(e))return(e.typeArguments??e.typeParameters)?.params}function Wh(e,t,n,r=!1){var i;let{node:a}=e,o=()=>Wh(e,t,n,!0);if(a.type===`ChainExpression`||a.type===`TSNonNullExpression`)return e.call(o,`expression`);if(V(a)){if((i=Eh(e,t,n).label)!=null&&i.memberChain)return!1;let r=tu(a);return!(r.length===0||r.length===1&&Al(r[0],t))||Kh(a,n)?!1:e.call(o,`callee`)}return H(a)?e.call(o,`object`):r&&(a.type===`Identifier`||a.type===`ThisExpression`)}function Gh(e,t,n){return uu(e)?(t=hd(t),typeof t==`string`&&cc(t)<n.tabWidth+3):!1}function Kh(e,t){let n=qh(e);if(I(n)){if(n.length>1)return!0;if(n.length===1){let e=n[0];if(fu(e)||pu(e)||e.type===`TSTypeLiteral`||e.type===`ObjectTypeAnnotation`)return!0}if(ld(t(e.typeParameters?`typeParameters`:`typeArguments`)))return!0}return!1}function qh(e){return(e.typeParameters??e.typeArguments)?.params}function Jh(e){function t(e){switch(e.type){case`FunctionTypeAnnotation`:case`GenericTypeAnnotation`:case`TSFunctionType`:return!!e.typeParameters;case`TSTypeReference`:return!!(e.typeArguments??e.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function Yh(e,t,n,r,i){let a=e.node,o=Ql(a),s=i?kg(e,n,t):``;if(o.length===0)return[s,`(`,$(e,n,{filter:e=>Md(n.originalText,R(e))===`)`}),`)`];let{parent:c}=e,l=Tl(c),u=Xh(a),d=[];if($l(e,(e,r)=>{let i=r===o.length-1;i&&a.rest&&d.push(`...`),d.push(t()),!i&&(d.push(`,`),l||u?d.push(` `):cu(o[r],n)?d.push(X,X):d.push(J))}),r&&!$h(e)){if(ld(s)||ld(d))throw new uh;return K([pd(s),`(`,pd(d),`)`])}let f=o.every(e=>!I(e.decorators));return u&&f||l?[s,`(`,...d,`)`]:(gl(c)||_l(c)||c.type===`TypeAlias`||c.type===`UnionTypeAnnotation`||c.type===`IntersectionTypeAnnotation`||c.type===`FunctionTypeAnnotation`&&c.returnType===a)&&o.length===1&&o[0].name===null&&a.this!==o[0]&&o[0].typeAnnotation&&a.typeParameters===null&&xl(o[0].typeAnnotation)&&!a.rest?n.arrowParens===`always`||a.type===`HookTypeAnnotation`?[`(`,...d,`)`]:d:[s,`(`,G([Y,...d]),q(!Xl(a)&&Vl(n,`all`)?`,`:``),Y,`)`]}function Xh(e){if(!e)return!1;let t=Ql(e);if(t.length!==1)return!1;let[n]=t;return!W(n)&&(n.type===`ObjectPattern`||n.type===`ArrayPattern`||n.type===`Identifier`&&n.typeAnnotation&&(n.typeAnnotation.type===`TypeAnnotation`||n.typeAnnotation.type===`TSTypeAnnotation`)&&dl(n.typeAnnotation.typeAnnotation)||n.type===`FunctionTypeParam`&&dl(n.typeAnnotation)&&n!==e.rest||n.type===`AssignmentPattern`&&(n.left.type===`ObjectPattern`||n.left.type===`ArrayPattern`)&&(n.right.type===`Identifier`||rl(n.right)&&n.right.properties.length===0||nl(n.right)&&n.right.elements.length===0))}function Zh(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Qh(e,t){let n=Zh(e);if(!n)return!1;let r=e.typeParameters?.params;if(r){if(r.length>1)return!1;if(r.length===1){let e=r[0];if(e.constraint||e.default)return!1}}return Ql(e).length===1&&(dl(n)||ld(t))}function $h(e){return e.match(e=>e.type===`ArrowFunctionExpression`&&e.body.type===`BlockStatement`,(e,t)=>{if(e.type===`CallExpression`&&t===`arguments`&&e.arguments.length===1&&e.callee.type===`CallExpression`){let t=e.callee.callee;return t.type===`Identifier`||t.type===`MemberExpression`&&!t.computed&&t.object.type===`Identifier`&&t.property.type===`Identifier`}return!1},(e,t)=>e.type===`VariableDeclarator`&&t===`init`||e.type===`ExportDefaultDeclaration`&&t===`declaration`||e.type===`TSExportAssignment`&&t===`expression`||e.type===`AssignmentExpression`&&t===`right`&&e.left.type===`MemberExpression`&&e.left.object.type===`Identifier`&&e.left.object.name===`module`&&e.left.property.type===`Identifier`&&e.left.property.name===`exports`,e=>e.type!==`VariableDeclaration`||e.kind===`const`&&e.declarations.length===1)}function eg(e){let t=Ql(e);return t.length>1&&t.some(e=>e.type===`TSParameterProperty`)}var tg=z([`VoidTypeAnnotation`,`TSVoidKeyword`,`NullLiteralTypeAnnotation`,`TSNullKeyword`]),ng=z([`ObjectTypeAnnotation`,`TSTypeLiteral`,`GenericTypeAnnotation`,`TSTypeReference`]);function rg(e){let{types:t}=e;if(t.some(e=>W(e)))return!1;let n=t.find(e=>ng(e));return n?t.every(e=>e===n||tg(e)):!1}function ig(e){return xl(e)||dl(e)?!0:fu(e)?rg(e):!1}function ag(e,t,n){let r=t.semi?`;`:``,{node:i}=e,a=[Eg(e),`opaque type `,n(`id`),n(`typeParameters`)];return i.supertype&&a.push(`: `,n(`supertype`)),i.impltype&&a.push(` = `,n(`impltype`)),a.push(r),a}function og(e,t,n){let r=t.semi?`;`:``,{node:i}=e,a=[Eg(e)];return a.push(`type `,n(`id`),n(`typeParameters`)),[kh(e,t,n,a,` =`,i.type===`TSTypeAliasDeclaration`?`typeAnnotation`:`right`),r]}function sg(e,t,n){let r=!1;return K(e.map(({isFirst:e,previous:t,node:i,index:a})=>{let o=n();if(e)return o;let s=dl(i),c=dl(t);return c&&s?[` & `,r?G(o):o]:!c&&!s?G([` &`,J,o]):(a>1&&(r=!0),[` & `,a>1?G(o):o])},`types`))}function cg(e,t,n){let{node:r}=e,{parent:i}=e,a=i.type!==`TypeParameterInstantiation`&&(i.type!==`TSConditionalType`||!t.experimentalTernaries)&&(i.type!==`ConditionalTypeAnnotation`||!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`)&&jl(t.originalText,r)),o=ig(r),s=e.map(e=>{let r=n();return o||(r=Gu(2,r)),ym(e,r,t)},`types`);if(o)return Z(` | `,s);let c=[q([a&&!jl(t.originalText,r)?J:``,`| `]),Z([J,`| `],s)];return dm(e,t)?K([G(c),Y]):(i.type===`TupleTypeAnnotation`||i.type===`TSTupleType`)&&i[i.type===`TupleTypeAnnotation`&&i.types?`types`:`elementTypes`].length>1?K([G([q([`(`,Y]),c]),Y,q(`)`)]):K(a?G(c):c)}function lg(e){let{node:t,parent:n}=e;return t.type===`FunctionTypeAnnotation`&&(gl(n)||!((n.type===`ObjectTypeProperty`||n.type===`ObjectTypeInternalSlot`)&&!n.variance&&!n.optional&&Mc(n,t)||n.type===`ObjectTypeCallProperty`||e.getParentNode(2)?.type===`DeclareFunction`))}function ug(e,t,n){let{node:r}=e,i=[Og(e)];(r.type===`TSConstructorType`||r.type===`TSConstructSignatureDeclaration`)&&i.push(`new `);let a=Yh(e,n,t,!1,!0),o=[];return r.type===`FunctionTypeAnnotation`?o.push(lg(e)?` => `:`: `,n(`returnType`)):o.push(_g(e,n,r.returnType?`returnType`:`typeAnnotation`)),Qh(r,o)&&(a=K(a)),i.push(a,o),K(i)}function dg(e,t,n){return[n(`objectType`),Cg(e),`[`,n(`indexType`),`]`]}function fg(e,t,n){return[`infer `,n(`typeParameter`)]}function pg(e,t,n){let{node:r}=e;return[r.postfix?``:n,_g(e,t),r.postfix?n:``]}function mg(e,t,n){let{node:r}=e;return[`...`,...r.type===`TupleTypeSpreadElement`&&r.label?[n(`label`),`: `]:[],n(`typeAnnotation`)]}function hg(e,t,n){let{node:r}=e;return[r.variance?n(`variance`):``,n(`label`),r.optional?`?`:``,`: `,n(`elementType`)]}var gg=new WeakSet;function _g(e,t,n=`typeAnnotation`){let{node:{[n]:r}}=e;if(!r)return``;let i=!1;if(r.type===`TSTypeAnnotation`||r.type===`TypeAnnotation`){let t=e.call(vg,n);(t===`=>`||t===`:`&&W(r,U.Leading))&&(i=!0),gg.add(r)}return i?[` `,t(n)]:t(n)}var vg=e=>e.match(e=>e.type===`TSTypeAnnotation`,(e,t)=>(t===`returnType`||t===`typeAnnotation`)&&(e.type===`TSFunctionType`||e.type===`TSConstructorType`))?`=>`:e.match(e=>e.type===`TSTypeAnnotation`,(e,t)=>t===`typeAnnotation`&&(e.type===`TSJSDocNullableType`||e.type===`TSJSDocNonNullableType`||e.type===`TSTypePredicate`))||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`Identifier`,(e,t)=>t===`id`&&e.type===`DeclareFunction`)||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`typeAnnotation`&&e.type===`Identifier`,(e,t)=>t===`id`&&e.type===`DeclareHook`)||e.match(e=>e.type===`TypeAnnotation`,(e,t)=>t===`bound`&&e.type===`TypeParameter`&&e.usesExtendsBound)?``:`:`;function yg(e,t,n){let r=vg(e);return r?[r,` `,n(`typeAnnotation`)]:n(`typeAnnotation`)}function bg(e){return[e(`elementType`),`[]`]}function xg({node:e},t){let n=e.type===`TSTypeQuery`?`exprName`:`argument`,r=e.type===`TypeofTypeAnnotation`||e.typeArguments?`typeArguments`:`typeParameters`;return[`typeof `,t(n),t(r)]}function Sg(e,t){let{node:n}=e;return[n.type===`TSTypePredicate`&&n.asserts?`asserts `:n.type===`TypePredicate`&&n.kind?`${n.kind} `:``,t(`parameterName`),n.typeAnnotation?[` is `,_g(e,t)]:``]}function Cg(e){let{node:t}=e;return!t.optional||t.type===`Identifier`&&t===e.parent.key?``:V(t)||H(t)&&t.computed||t.type===`OptionalIndexedAccessType`?`?.`:`?`}function wg(e){return e.node.definite||e.match(void 0,(e,t)=>t===`id`&&e.type===`VariableDeclarator`&&e.definite)?`!`:``}var Tg=new Set([`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`DeclareVariable`,`DeclareExportDeclaration`,`DeclareExportAllDeclaration`,`DeclareOpaqueType`,`DeclareTypeAlias`,`DeclareEnum`,`DeclareInterface`]);function Eg(e){let{node:t}=e;return t.declare||Tg.has(t.type)&&e.parent.type!==`DeclareExportDeclaration`?`declare `:``}var Dg=new Set([`TSAbstractMethodDefinition`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]);function Og({node:e}){return e.abstract||Dg.has(e.type)?`abstract `:``}function kg(e,t,n){let r=e.node;return r.typeArguments?n(`typeArguments`):r.typeParameters?n(`typeParameters`):``}function Ag(e,t,n){return[`::`,n(`callee`)]}function jg(e,t,n){return e.type===`EmptyStatement`?`;`:e.type===`BlockStatement`||n?[` `,t]:G([J,t])}function Mg(e,t){return[`...`,t(`argument`),_g(e,t)]}function Ng(e){return e.accessibility?e.accessibility+` `:``}function Pg(e,t,n,r){let{node:i}=e,a=i.inexact?`...`:``;return W(i,U.Dangling)?K([n,a,$(e,t,{indent:!0}),Y,r]):[n,a,r]}function Fg(e,t,n){let{node:r}=e,i=[],a=r.type===`TupleExpression`?`#[`:`[`,o=r.type===`TupleTypeAnnotation`&&r.types?`types`:r.type===`TSTupleType`||r.type===`TupleTypeAnnotation`?`elementTypes`:`elements`,s=r[o];if(s.length===0)i.push(Pg(e,t,a,`]`));else{let c=F(!1,s,-1),l=c?.type!==`RestElement`&&!r.inexact,u=c===null,d=Symbol(`array`),f=!t.__inJestEach&&s.length>1&&s.every((e,t,n)=>{let r=e?.type;if(!nl(e)&&!rl(e))return!1;let i=n[t+1];if(i&&r!==i.type)return!1;let a=nl(e)?`elements`:`properties`;return e[a]&&e[a].length>1}),p=Ig(r,t),m=l?u?`,`:Vl(t)?p?q(`,`,``,{groupId:d}):q(`,`):``:``;i.push(K([a,G([Y,p?zg(e,t,n,m):[Rg(e,t,o,r.inexact,n),m],$(e,t)]),Y,`]`],{shouldBreak:f,id:d}))}return i.push(Cg(e),_g(e,n)),i}function Ig(e,t){return nl(e)&&e.elements.length>1&&e.elements.every(e=>e&&(al(e)||ol(e)&&!W(e.argument))&&!W(e,U.Trailing|U.Line,e=>!gc(t.originalText,L(e),{backwards:!0})))}function Lg({node:e},{originalText:t}){let n=e=>vc(t,bc(t,e)),r=e=>t[e]===`,`?e:r(n(e+1));return Sc(t,r(R(e)))}function Rg(e,t,n,r,i){let a=[];return e.each(({node:n,isLast:o})=>{a.push(n?K(i()):``),(!o||r)&&a.push([`,`,J,n&&Lg(e,t)?Y:``])},n),r&&a.push(`...`),a}function zg(e,t,n,r){let i=[];return e.each(({isLast:a,next:o})=>{i.push([n(),a?r:`,`]),a||i.push(Lg(e,t)?[X,X]:W(o,U.Leading|U.Line)?X:J)},`elements`),Yu(i)}var Bg=new Proxy(()=>{},{get:()=>Bg}),Vg=Bg,Hg=/^[\$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]*$/,Ug=e=>Hg.test(e);function Wg(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,``)}var Gg=Wg,Kg=new WeakMap;function qg(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Jg(e,t){return t.parser===`json`||t.parser===`jsonc`||!sl(e.key)||jc(zl(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Ug(e.key.value)&&!(t.parser===`babel-ts`&&e.type===`ClassProperty`||t.parser===`typescript`&&e.type===`PropertyDefinition`)||qg(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 Yg(e,t){let{key:n}=e.node;return(n.type===`Identifier`||al(n)&&qg(Gg(zl(n)))&&String(n.value)===Gg(zl(n))&&!(t.parser===`typescript`||t.parser===`babel-ts`))&&(t.parser===`json`||t.parser===`jsonc`||t.quoteProps===`consistent`&&Kg.get(e.parent))}function Xg(e,t,n){let{node:r}=e;if(r.computed)return[`[`,n(`key`),`]`];let{parent:i}=e,{key:a}=r;if(t.quoteProps===`consistent`&&!Kg.has(i)){let n=e.siblings.some(e=>!e.computed&&sl(e.key)&&!Jg(e,t));Kg.set(i,n)}if(Yg(e,t)){let n=jc(JSON.stringify(a.type===`Identifier`?a.name:a.value.toString()),t);return e.call(e=>ym(e,n,t),`key`)}return Jg(r,t)&&(t.quoteProps===`as-needed`||t.quoteProps===`consistent`&&!Kg.get(i))?e.call(e=>ym(e,/^\d/u.test(a.value)?Gg(a.value):a.value,t),`key`):n(`key`)}function Zg(e,t,n){let{node:r}=e;return r.shorthand?n(`value`):kh(e,t,n,Xg(e,t,n),`:`,`value`)}var Qg=({node:e,key:t,parent:n})=>t===`value`&&e.type===`FunctionExpression`&&(n.type===`ObjectMethod`||n.type===`ClassMethod`||n.type===`ClassPrivateMethod`||n.type===`MethodDefinition`||n.type===`TSAbstractMethodDefinition`||n.type===`TSDeclareMethod`||n.type===`Property`&&hl(n));function $g(e,t,n,r){if(Qg(e))return t_(e,n,t);let{node:i}=e,a=!1;if((i.type===`FunctionDeclaration`||i.type===`FunctionExpression`)&&r!=null&&r.expandLastArg){let{parent:t}=e;V(t)&&(tu(t).length>1||Ql(i).every(e=>e.type===`Identifier`&&!e.typeAnnotation))&&(a=!0)}let o=[Eg(e),i.async?`async `:``,`function${i.generator?`*`:``} `,i.id?t(`id`):``],s=Yh(e,t,n,a),c=i_(e,t),l=Qh(i,c);return o.push(kg(e,n,t),K([l?K(s):s,c]),i.body?` `:``,t(`body`)),n.semi&&(i.declare||!i.body)&&o.push(`;`),o}function e_(e,t,n){let{node:r}=e,{kind:i}=r,a=r.value||r,o=[];return!i||i===`init`||i===`method`||i===`constructor`?a.async&&o.push(`async `):(Vg.ok(i===`get`||i===`set`),o.push(i,` `)),a.generator&&o.push(`*`),o.push(Xg(e,t,n),r.optional||r.key.optional?`?`:``,r===a?t_(e,t,n):n(`value`)),o}function t_(e,t,n){let{node:r}=e,i=Yh(e,n,t),a=i_(e,n),o=eg(r),s=Qh(r,a),c=[kg(e,t,n),K([o?K(i,{shouldBreak:!0}):s?K(i):i,a])];return r.body?c.push(` `,n(`body`)):c.push(t.semi?`;`:``),c}function n_(e){let t=Ql(e);return t.length===1&&!e.typeParameters&&!W(e,U.Dangling)&&t[0].type===`Identifier`&&!t[0].typeAnnotation&&!W(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function r_(e,t){if(t.arrowParens===`always`)return!1;if(t.arrowParens===`avoid`){let{node:t}=e;return n_(t)}return!1}function i_(e,t){let{node:n}=e,r=[_g(e,t,`returnType`)];return n.predicate&&r.push(t(`predicate`)),r}function a_(e,t,n){let{node:r}=e,i=t.semi?`;`:``,a=[];if(r.argument){let e=n(`argument`);c_(t,r.argument)?e=[`(`,G([X,e]),X,`)`]:(vl(r.argument)||r.argument.type===`SequenceExpression`||t.experimentalTernaries&&r.argument.type===`ConditionalExpression`&&(r.argument.consequent.type===`ConditionalExpression`||r.argument.alternate.type===`ConditionalExpression`))&&(e=K([q(`(`),G([Y,e]),Y,q(`)`)])),a.push(` `,e)}let o=W(r,U.Dangling),s=i&&o&&W(r,U.Last|U.Line);return s&&a.push(i),o&&a.push(` `,$(e,t)),s||a.push(i),a}function o_(e,t,n){return[`return`,a_(e,t,n)]}function s_(e,t,n){return[`throw`,a_(e,t,n)]}function c_(e,t){if(jl(e.originalText,t)||W(t,U.Leading,t=>Pd(e.originalText,L(t),R(t)))&&!B(t))return!0;if(Zc(t)){let n=t,r;for(;r=Qc(n);)if(n=r,jl(e.originalText,n))return!0}return!1}var l_=new WeakMap;function u_(e){return l_.has(e)||l_.set(e,e.type===`ConditionalExpression`&&!Hl(e,e=>e.type===`ObjectExpression`)),l_.get(e)}var d_=e=>e.type===`SequenceExpression`;function f_(e,t,n,r={}){let i=[],a,o=[],s=!1,c=!r.expandLastArg&&e.node.body.type===`ArrowFunctionExpression`,l;(function u(){let{node:d}=e,f=p_(e,t,n,r);if(i.length===0)i.push(f);else{let{leading:n,trailing:r}=vm(e,t);i.push([n,f]),o.unshift(r)}c&&(s||=d.returnType&&Ql(d).length>0||d.typeParameters||Ql(d).some(e=>e.type!==`Identifier`)),!c||d.body.type!==`ArrowFunctionExpression`?(a=n(`body`,r),l=d.body):e.call(u,`body`)})();let u=!jl(t.originalText,l)&&(d_(l)||m_(l,a,t)||!s&&u_(l)),d=e.key===`callee`&&lu(e.parent),f=Symbol(`arrow-chain`),p=h_(e,r,{signatureDocs:i,shouldBreak:s}),m,h=!1;return c&&(d||r.assignmentLayout)&&(h=!0,m=r.assignmentLayout===`chain-tail-arrow-chain`||d&&!u),a=g_(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:l,shouldPutBodyOnSameLine:u}),K([K(h?G([Y,p]):p,{shouldBreak:m,id:f}),` =>`,c?Xu(a,{groupId:f}):K(a),c&&d?q(Y,``,{groupId:f}):``])}function p_(e,t,n,r){let{node:i}=e,a=[];if(i.async&&a.push(`async `),r_(e,t))a.push(n([`params`,0]));else{let i=r.expandLastArg||r.expandFirstArg,o=i_(e,n);if(i){if(ld(o))throw new uh;o=K(pd(o))}a.push(K([Yh(e,n,t,i,!0),o]))}let o=$(e,t,{filter(e){let n=Ad(t.originalText,R(e));return n!==!1&&t.originalText.slice(n,n+2)===`=>`}});return o&&a.push(` `,o),a}function m_(e,t,n){return nl(e)||rl(e)||e.type===`ArrowFunctionExpression`||e.type===`DoExpression`||e.type===`BlockStatement`||B(e)||t.label?.hug!==!1&&(t.label?.embed||Nl(e,n.originalText))}function h_(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:i,key:a}=e;return a!==`callee`&&lu(i)||vl(i)?K([n[0],` =>`,G([J,Z([` =>`,J],n.slice(1))])],{shouldBreak:r}):a===`callee`&&lu(i)||t.assignmentLayout?K(Z([` =>`,J],n),{shouldBreak:r}):K(G(Z([` =>`,J],n)),{shouldBreak:r})}function g_(e,t,n,{bodyDoc:r,bodyComments:i,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:s,parent:c}=e,l=n.expandLastArg&&Vl(t,`all`)?q(`,`):``,u=(n.expandLastArg||c.type===`JSXExpressionContainer`)&&!W(s)?Y:``;return o&&u_(a)?[` `,K([q(``,`(`),G([Y,r]),q(``,`)`),l,u]),i]:(d_(a)&&(r=K([`(`,G([Y,r]),Y,`)`])),o?[` `,r,i]:[G([J,r,i]),l,u])}var __=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}};function v_(e,t,n,r){let{node:i}=e,a=[],o=__(!1,i[r],e=>e.type!==`EmptyStatement`);return e.each(({node:e})=>{e.type!==`EmptyStatement`&&(a.push(n()),e!==o&&(a.push(X),cu(e,t)&&a.push(X)))},r),a}function y_(e,t,n){let r=b_(e,t,n),{node:i,parent:a}=e;if(i.type===`Program`&&a?.type!==`ModuleExpression`)return r?[r,X]:``;let o=[];if(i.type===`StaticBlock`&&o.push(`static `),o.push(`{`),r)o.push(G([X,r]),X);else{let t=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`&&!t.finalizer||a.type===`TSModuleDeclaration`||i.type===`StaticBlock`||o.push(X)}return o.push(`}`),o}function b_(e,t,n){let{node:r}=e,i=I(r.directives),a=r.body.some(e=>e.type!==`EmptyStatement`),o=W(r,U.Dangling);if(!i&&!a&&!o)return``;let s=[];return i&&(s.push(v_(e,t,n,`directives`)),(a||o)&&(s.push(X),cu(F(!1,r.directives,-1),t)&&s.push(X))),a&&s.push(v_(e,t,n,`body`)),o&&s.push($(e,t)),s}function x_(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}var S_=x_;function C_(e){switch(e){case null:return``;case`PlusOptional`:return`+?`;case`MinusOptional`:return`-?`;case`Optional`:return`?`}}function w_(e,t,n){let{node:r}=e;return K([r.variance?n(`variance`):``,`[`,G([n(`keyTparam`),` in `,n(`sourceType`)]),`]`,C_(r.optional),`: `,n(`propType`)])}function T_(e,t){return e===`+`||e===`-`?e+t:t}function E_(e,t,n){let{node:r}=e,i=Pd(t.originalText,L(r),L(r.typeParameter));return K([`{`,G([t.bracketSpacing?J:Y,K([n(`typeParameter`),r.optional?T_(r.optional,`?`):``,r.typeAnnotation?`: `:``,n(`typeAnnotation`)]),t.semi?q(`;`):``]),$(e,t),t.bracketSpacing?J:Y,`}`],{shouldBreak:i})}var D_=S_(`typeParameters`);function O_(e,t,n){let{node:r}=e;return Ql(r).length===1&&r.type.startsWith(`TS`)&&!r[n][0].constraint&&e.parent.type===`ArrowFunctionExpression`&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function k_(e,t,n,r){let{node:i}=e;if(!i[r])return``;if(!Array.isArray(i[r]))return n(r);let a=Tl(e.grandparent),o=e.match(e=>!(e[r].length===1&&dl(e[r][0])),void 0,(e,t)=>t===`typeAnnotation`,e=>e.type===`Identifier`,Vh);if(i[r].length===0||!o&&(a||i[r].length===1&&(i[r][0].type===`NullableTypeAnnotation`||ig(i[r][0]))))return[`<`,Z(`, `,e.map(n,r)),A_(e,t),`>`];let s=i.type===`TSTypeParameterInstantiation`?``:O_(e,t,r)?`,`:Vl(t)?q(`,`):``;return K([`<`,G([Y,Z([`,`,J],e.map(n,r))]),s,Y,`>`],{id:D_(i)})}function A_(e,t){let{node:n}=e;if(!W(n,U.Dangling))return``;let r=!W(n,U.Line),i=$(e,t,{indent:!r});return r?i:[i,X]}function j_(e,t,n){let{node:r,parent:i}=e,a=[r.type===`TSTypeParameter`&&r.const?`const `:``],o=r.type===`TSTypeParameter`?n(`name`):r.name;if(i.type===`TSMappedType`)return i.readonly&&a.push(T_(i.readonly,`readonly`),` `),a.push(`[`,o),r.constraint&&a.push(` in `,n(`constraint`)),i.nameType&&a.push(` as `,e.callParent(()=>n(`nameType`))),a.push(`]`),a;if(r.variance&&a.push(n(`variance`)),r.in&&a.push(`in `),r.out&&a.push(`out `),a.push(o),r.bound&&(r.usesExtendsBound&&a.push(` extends `),a.push(_g(e,n,`bound`))),r.constraint){let e=Symbol(`constraint`);a.push(` extends`,K(G(J),{id:e}),Qu,Xu(n(`constraint`),{groupId:e}))}return r.default&&a.push(` = `,n(`default`)),K(a)}var M_=z([`ClassProperty`,`PropertyDefinition`,`ClassPrivateProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractPropertyDefinition`,`TSAbstractAccessorProperty`]);function N_(e,t,n){let{node:r}=e,i=[Eg(e),Og(e),`class`],a=W(r.id,U.Trailing)||W(r.typeParameters,U.Trailing)||W(r.superClass)||I(r.extends)||I(r.mixins)||I(r.implements),o=[],s=[];if(r.id&&o.push(` `,n(`id`)),o.push(n(`typeParameters`)),r.superClass){let i=[z_(e,t,n),n(r.superTypeArguments?`superTypeArguments`:`superTypeParameters`)],o=e.call(e=>[`extends `,ym(e,i,t)],`superClass`);a?s.push(J,K(o)):s.push(` `,o)}else s.push(R_(e,t,n,`extends`));if(s.push(R_(e,t,n,`mixins`),R_(e,t,n,`implements`)),a){let e;e=L_(r)?[...o,G(s)]:G([...o,s]),i.push(K(e,{id:P_(r)}))}else i.push(...o,...s);return i.push(` `,n(`body`)),i}var P_=S_(`heritageGroup`);function F_(e){return q(X,``,{groupId:P_(e)})}function I_(e){return[`extends`,`mixins`,`implements`].reduce((t,n)=>t+(Array.isArray(e[n])?e[n].length:0),e.superClass?1:0)>1}function L_(e){return e.typeParameters&&!W(e.typeParameters,U.Trailing|U.Line)&&!I_(e)}function R_(e,t,n,r){let{node:i}=e;if(!I(i[r]))return``;let a=$(e,t,{marker:r});return[L_(i)?q(` `,J,{groupId:D_(i.typeParameters)}):J,a,a&&X,r,K(G([J,Z([`,`,J],e.map(n,r))]))]}function z_(e,t,n){let r=n(`superClass`),{parent:i}=e;return i.type===`AssignmentExpression`?K(q([`(`,G([Y,r]),Y,`)`],r)):r}function B_(e,t,n){let{node:r}=e,i=[];return I(r.decorators)&&i.push(ah(e,t,n)),i.push(Ng(r)),r.static&&i.push(`static `),i.push(Og(e)),r.override&&i.push(`override `),i.push(e_(e,t,n)),i}function V_(e,t,n){let{node:r}=e,i=[],a=t.semi?`;`:``;return I(r.decorators)&&i.push(ah(e,t,n)),i.push(Ng(r),Eg(e)),r.static&&i.push(`static `),i.push(Og(e)),r.override&&i.push(`override `),r.readonly&&i.push(`readonly `),r.variance&&i.push(n(`variance`)),(r.type===`ClassAccessorProperty`||r.type===`AccessorProperty`||r.type===`TSAbstractAccessorProperty`)&&i.push(`accessor `),i.push(Xg(e,t,n),Cg(e),wg(e),_g(e,n)),[kh(e,t,n,i,` =`,r.type===`TSAbstractPropertyDefinition`||r.type===`TSAbstractAccessorProperty`?void 0:`value`),a]}function H_(e,t,n){let{node:r}=e,i=[];return e.each(({node:e,next:r,isLast:a})=>{i.push(n()),!t.semi&&M_(e)&&U_(e,r)&&i.push(`;`),a||(i.push(X),cu(e,t)&&i.push(X))},`body`),W(r,U.Dangling)&&i.push($(e,t)),[I(r.body)?F_(e.parent):``,`{`,i.length>0?[G([X,i]),X]:``,`}`]}function U_(e,t){let{type:n,name:r}=e.key;if(!e.computed&&n===`Identifier`&&(r===`static`||r===`get`||r===`set`)&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let e=t.key?.name;if(e===`in`||e===`instanceof`)return!0}if(M_(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 e=t.value?t.value.generator:t.generator;return!!(t.computed||e)}case`TSIndexSignature`:return!0}return!1}function W_(e,t){if(t.semi||K_(e,t)||J_(e,t))return!1;let{node:n,key:r,parent:i}=e;return!!(n.type===`ExpressionStatement`&&(r===`body`&&(i.type===`Program`||i.type===`BlockStatement`||i.type===`StaticBlock`||i.type===`TSModuleBlock`)||r===`consequent`&&i.type===`SwitchCase`)&&e.call(()=>G_(e,t),`expression`))}function G_(e,t){let{node:n}=e;switch(n.type){case`ParenthesizedExpression`:case`TypeCastExpression`:case`ArrayExpression`:case`ArrayPattern`:case`TemplateLiteral`:case`TemplateElement`:case`RegExpLiteral`:return!0;case`ArrowFunctionExpression`:if(!r_(e,t))return!0;break;case`UnaryExpression`:{let{prefix:e,operator:t}=n;if(e&&(t===`+`||t===`-`))return!0;break}case`BindExpression`:if(!n.object)return!0;break;case`Literal`:if(n.regex)return!0;break;default:if(B(n))return!0}return dm(e,t)?!0:Zc(n)?e.call(()=>G_(e,t),...$c(n)):!1}function K_({node:e,parent:t},n){return(n.parentParser===`markdown`||n.parentParser===`mdx`)&&e.type===`ExpressionStatement`&&B(e.expression)&&t.type===`Program`&&t.body.length===1}function q_(e){switch(e.type){case`MemberExpression`:switch(e.property.type){case`Identifier`:case`NumericLiteral`:case`StringLiteral`:return q_(e.object)}return!1;case`Identifier`:return!0;default:return!1}}function J_({node:e,parent:t},n){return(n.parser===`__vue_event_binding`||n.parser===`__vue_ts_event_binding`)&&e.type===`ExpressionStatement`&&t.type===`Program`&&t.body.length===1}function Y_(e,t,n){let r=[n(`expression`)];return J_(e,t)?q_(e.node.expression)&&r.push(`;`):K_(e,t)||t.semi&&r.push(`;`),r}function X_(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let r=e.map(n,`program`,`body`,0,`params`);if(r.length===1)return r[0];let i=Z([`,`,J],r);return t.__isVueForBindingLeft?[`(`,G([Y,K(i)]),Y,`)`]:i}if(t.__isEmbeddedTypescriptGenericParameters){let t=e.map(n,`program`,`body`,0,`typeParameters`,`params`);return Z([`,`,J],t)}}function Z_(e,t){let{node:n}=e;switch(n.type){case`RegExpLiteral`:return ev(n);case`BigIntLiteral`:return $_(n.extra.raw);case`NumericLiteral`:return Gg(n.extra.raw);case`StringLiteral`:return gd(jc(n.extra.raw,t));case`NullLiteral`:return`null`;case`BooleanLiteral`:return String(n.value);case`DecimalLiteral`:return Gg(n.value)+`m`;case`DirectiveLiteral`:return tv(n.extra.raw,t);case`Literal`:{if(n.regex)return ev(n.regex);if(n.bigint)return $_(n.raw);if(n.decimal)return Gg(n.decimal)+`m`;let{value:r}=n;return typeof r==`number`?Gg(n.raw):typeof r==`string`?Q_(e)?tv(n.raw,t):gd(jc(n.raw,t)):String(r)}}}function Q_(e){if(e.key!==`expression`)return;let{parent:t}=e;return t.type===`ExpressionStatement`&&t.directive}function $_(e){return e.toLowerCase()}function ev({pattern:e,flags:t}){return t=[...t].sort().join(``),`/${e}/${t}`}function tv(e,t){let n=e.slice(1,-1);if(n.includes(`"`)||n.includes(`'`))return e;let r=t.singleQuote?`'`:`"`;return r+n+r}function nv(e,t,n){let r=e.originalText.slice(t,n);for(let i of e[Symbol.for(`comments`)]){let e=L(i);if(e>n)break;let a=R(i);if(a<t)continue;let o=a-e;r=r.slice(0,e-t)+` `.repeat(o)+r.slice(a-t)}return r}var rv=nv;function iv(e,t,n){let{node:r}=e;return[`import`,r.module?` module`:``,r.phase?` ${r.phase}`:``,uv(r),pv(e,t,n),fv(e,t,n),gv(e,t,n),t.semi?`;`:``]}var av=e=>e.type===`ExportDefaultDeclaration`||e.type===`DeclareExportDeclaration`&&e.default;function ov(e,t,n){let{node:r}=e,i=[oh(e,t,n),Eg(e),`export`,av(r)?` default`:``],{declaration:a,exported:o}=r;return W(r,U.Dangling)&&(i.push(` `,$(e,t)),Pl(r)&&i.push(X)),a?i.push(` `,n(`declaration`)):(i.push(dv(r)),r.type===`ExportAllDeclaration`||r.type===`DeclareExportAllDeclaration`?(i.push(` *`),o&&i.push(` as `,n(`exported`))):i.push(pv(e,t,n)),i.push(fv(e,t,n),gv(e,t,n))),i.push(cv(r,t)),i}var sv=z([`ClassDeclaration`,`ComponentDeclaration`,`FunctionDeclaration`,`TSInterfaceDeclaration`,`DeclareClass`,`DeclareComponent`,`DeclareFunction`,`DeclareHook`,`HookDeclaration`,`TSDeclareFunction`,`EnumDeclaration`]);function cv(e,t){return t.semi&&(!e.declaration||av(e)&&!sv(e.declaration))?`;`:``}function lv(e,t=!0){return e&&e!==`value`?`${t?` `:``}${e}${t?``:` `}`:``}function uv(e,t){return lv(e.importKind,t)}function dv(e){return lv(e.exportKind)}function fv(e,t,n){let{node:r}=e;if(!r.source)return``;let i=[];return mv(r,t)&&i.push(` from`),i.push(` `,n(`source`)),i}function pv(e,t,n){let{node:r}=e;if(!mv(r,t))return``;let i=[` `];if(I(r.specifiers)){let a=[],o=[];e.each(()=>{let t=e.node.type;if(t===`ExportNamespaceSpecifier`||t===`ExportDefaultSpecifier`||t===`ImportNamespaceSpecifier`||t===`ImportDefaultSpecifier`)a.push(n());else if(t===`ExportSpecifier`||t===`ImportSpecifier`)o.push(n());else throw new bm(r,`specifier`)},`specifiers`),i.push(Z(`, `,a)),o.length>0&&(a.length>0&&i.push(`, `),o.length>1||a.length>0||r.specifiers.some(e=>W(e))?i.push(K([`{`,G([t.bracketSpacing?J:Y,Z([`,`,J],o)]),q(Vl(t)?`,`:``),t.bracketSpacing?J:Y,`}`])):i.push([`{`,t.bracketSpacing?` `:``,...o,t.bracketSpacing?` `:``,`}`]))}else i.push(`{}`);return i}function mv(e,t){return e.type!==`ImportDeclaration`||I(e.specifiers)||e.importKind===`type`?!0:rv(t,L(e),L(e.source)).trimEnd().endsWith(`from`)}function hv(e,t){var n,r;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return`assert`;let i=rv(t,R(e.source),(r=e.attributes)!=null&&r[0]?L(e.attributes[0]):R(e)).trimStart();return i.startsWith(`assert`)?`assert`:i.startsWith(`with`)||I(e.attributes)?`with`:void 0}function gv(e,t,n){let{node:r}=e;if(!r.source)return``;let i=hv(r,t);if(!i)return``;let a=[` ${i} {`];return I(r.attributes)&&(t.bracketSpacing&&a.push(` `),a.push(Z(`, `,e.map(n,`attributes`))),t.bracketSpacing&&a.push(` `)),a.push(`}`),a}function _v(e,t,n){let{node:r}=e,{type:i}=r,a=i.startsWith(`Import`),o=a?`imported`:`local`,s=a?`local`:`exported`,c=r[o],l=r[s],u=``,d=``;return i===`ExportNamespaceSpecifier`||i===`ImportNamespaceSpecifier`?u=`*`:c&&(u=n(o)),l&&!vv(r)&&(d=n(s)),[lv(i===`ImportSpecifier`?r.importKind:r.exportKind,!1),u,u&&d?` as `:``,d]}function vv(e){if(e.type!==`ImportSpecifier`&&e.type!==`ExportSpecifier`)return!1;let{local:t,[e.type===`ImportSpecifier`?`imported`:`exported`]:n}=e;if(t.type!==n.type||!Pc(t,n))return!1;if(sl(t))return t.value===n.value&&zl(t)===zl(n);switch(t.type){case`Identifier`:return t.name===n.name;default:return!1}}function yv(e,t,n){let r=t.semi?`;`:``,{node:i}=e,a=i.type===`ObjectTypeAnnotation`,o=i.type===`TSEnumDeclaration`||i.type===`EnumBooleanBody`||i.type===`EnumNumberBody`||i.type===`EnumBigIntBody`||i.type===`EnumStringBody`||i.type===`EnumSymbolBody`,s=[i.type===`TSTypeLiteral`||o?`members`:i.type===`TSInterfaceBody`?`body`:`properties`];a&&s.push(`indexers`,`callProperties`,`internalSlots`);let c=s.flatMap(t=>e.map(({node:e})=>({node:e,printed:n(),loc:L(e)}),t));s.length>1&&c.sort((e,t)=>e.loc-t.loc);let{parent:l,key:u}=e,d=a&&u===`body`&&(l.type===`InterfaceDeclaration`||l.type===`DeclareInterface`||l.type===`DeclareClass`),f=i.type===`TSInterfaceBody`||o||d||i.type===`ObjectPattern`&&l.type!==`FunctionDeclaration`&&l.type!==`FunctionExpression`&&l.type!==`ArrowFunctionExpression`&&l.type!==`ObjectMethod`&&l.type!==`ClassMethod`&&l.type!==`ClassPrivateMethod`&&l.type!==`AssignmentPattern`&&l.type!==`CatchClause`&&i.properties.some(e=>e.value&&(e.value.type===`ObjectPattern`||e.value.type===`ArrayPattern`))||i.type!==`ObjectPattern`&&c.length>0&&Pd(t.originalText,L(i),c[0].loc),p=d?`;`:i.type===`TSInterfaceBody`||i.type===`TSTypeLiteral`?q(r,`;`):`,`,m=i.type===`RecordExpression`?`#{`:i.exact?`{|`:`{`,h=i.exact?`|}`:`}`,g=[],_=c.map(e=>{let n=[...g,K(e.printed)];return g=[p,J],(e.node.type===`TSPropertySignature`||e.node.type===`TSMethodSignature`||e.node.type===`TSConstructSignatureDeclaration`||e.node.type===`TSCallSignatureDeclaration`)&&W(e.node,U.PrettierIgnore)&&g.shift(),cu(e.node,t)&&g.push(X),n});if(i.inexact||i.hasUnknownMembers){let n;if(W(i,U.Dangling)){let r=W(i,U.Line);n=[$(e,t),r||gc(t.originalText,R(F(!1,su(i),-1)))?X:J,`...`]}else n=[`...`];_.push([...g,...n])}let v=F(!1,c,-1)?.node,ee=!(i.inexact||i.hasUnknownMembers||v&&(v.type===`RestElement`||(v.type===`TSPropertySignature`||v.type===`TSCallSignatureDeclaration`||v.type===`TSMethodSignature`||v.type===`TSConstructSignatureDeclaration`)&&W(v,U.PrettierIgnore))),te;if(_.length===0){if(!W(i,U.Dangling))return[m,h,_g(e,n)];te=K([m,$(e,t,{indent:!0}),Y,h,Cg(e),_g(e,n)])}else te=[d&&I(i.properties)?F_(l):``,m,G([t.bracketSpacing?J:Y,..._]),q(ee&&(p!==`,`||Vl(t))?p:``),t.bracketSpacing?J:Y,h,Cg(e),_g(e,n)];return e.match(e=>e.type===`ObjectPattern`&&!I(e.decorators),bv)||dl(i)&&(e.match(void 0,(e,t)=>t===`typeAnnotation`,(e,t)=>t===`typeAnnotation`,bv)||e.match(void 0,(e,t)=>e.type===`FunctionTypeParam`&&t===`typeAnnotation`,bv))||!f&&e.match(e=>e.type===`ObjectPattern`,e=>e.type===`AssignmentExpression`||e.type===`VariableDeclarator`)?te:K(te,{shouldBreak:f})}function bv(e,t){return(t===`params`||t===`parameters`||t===`this`||t===`rest`)&&Xh(e)}function xv(e){let t=[e];for(let e=0;e<t.length;e++){let n=t[e];for(let e of[`test`,`consequent`,`alternate`]){let r=n[e];if(B(r))return!0;r.type===`ConditionalExpression`&&t.push(r)}}return!1}function Sv(e,t,n){let{node:r}=e,i=r.type===`ConditionalExpression`,a=i?`alternate`:`falseType`,{parent:o}=e,s=i?n(`test`):[n(`checkType`),` `,`extends`,` `,n(`extendsType`)];return o.type===r.type&&o[a]===r?Gu(2,s):s}var Cv=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function wv(e){let{node:t}=e;if(t.type!==`ConditionalExpression`)return!1;let n,r=t;for(let t=0;!n;t++){let i=e.getParentNode(t);if(i.type===`ChainExpression`&&i.expression===r||V(i)&&i.callee===r||H(i)&&i.object===r||i.type===`TSNonNullExpression`&&i.expression===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||du(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r===t?!1:n[Cv.get(n.type)]===r}function Tv(e,t,n){let{node:r}=e,i=r.type===`ConditionalExpression`,a=i?`consequent`:`trueType`,o=i?`alternate`:`falseType`,s=i?[`test`]:[`checkType`,`extendsType`],c=r[a],l=r[o],u=[],d=!1,{parent:f}=e,p=f.type===r.type&&s.some(e=>f[e]===r),m=f.type===r.type&&!p,h,g,_=0;do g=h||r,h=e.getParentNode(_),_++;while(h&&h.type===r.type&&s.every(e=>h[e]!==g));let v=h||f,ee=g;if(i&&(B(r[s[0]])||B(c)||B(l)||xv(ee))){d=!0,m=!0;let e=e=>[q(`(`),G([Y,e]),Y,q(`)`)],t=e=>e.type===`NullLiteral`||e.type===`Literal`&&e.value===null||e.type===`Identifier`&&e.name===`undefined`;u.push(` ? `,t(c)?n(a):e(n(a)),` : `,l.type===r.type||t(l)?n(o):e(n(o)))}else{let e=e=>t.useTabs?G(n(e)):Gu(2,n(e)),i=[J,`? `,c.type===r.type?q(``,`(`):``,e(a),c.type===r.type?q(``,`)`):``,J,`: `,e(o)];u.push(f.type!==r.type||f[o]===r||p?i:t.useTabs?qu(G(i)):Gu(Math.max(0,t.tabWidth-2),i))}let te=[a,o,...s].some(e=>W(r[e],e=>Uc(e)&&Pd(t.originalText,L(e),R(e)))),y=e=>f===v?K(e,{shouldBreak:te}):te?[e,$u]:e,ne=!d&&(H(f)||f.type===`NGPipeExpression`&&f.left===r)&&!f.computed,re=wv(e),b=y([Sv(e,t,n),m?u:G(u),i&&ne&&!re?Y:``]);return p||re?K([G([Y,b]),Y]):b}function Ev(e,t){return(H(t)||t.type===`NGPipeExpression`&&t.left===e)&&!t.computed}function Dv(e,t,n,r){return[...e.map(e=>su(e)),su(t),su(n)].flat().some(e=>Uc(e)&&Pd(r.originalText,L(e),R(e)))}var Ov=new Map([[`AssignmentExpression`,`right`],[`VariableDeclarator`,`init`],[`ReturnStatement`,`argument`],[`ThrowStatement`,`argument`],[`UnaryExpression`,`argument`],[`YieldExpression`,`argument`],[`AwaitExpression`,`argument`]]);function kv(e){let{node:t}=e;if(t.type!==`ConditionalExpression`)return!1;let n,r=t;for(let t=0;!n;t++){let i=e.getParentNode(t);if(i.type===`ChainExpression`&&i.expression===r||V(i)&&i.callee===r||H(i)&&i.object===r||i.type===`TSNonNullExpression`&&i.expression===r){r=i;continue}i.type===`NewExpression`&&i.callee===r||du(i)&&i.expression===r?(n=e.getParentNode(t+1),r=i):n=i}return r===t?!1:n[Ov.get(n.type)]===r}var Av=e=>[q(`(`),G([Y,e]),Y,q(`)`)];function jv(e,t,n,r){if(!t.experimentalTernaries)return Tv(e,t,n);let{node:i}=e,a=i.type===`ConditionalExpression`,o=i.type===`TSConditionalType`||i.type===`ConditionalTypeAnnotation`,s=a?`consequent`:`trueType`,c=a?`alternate`:`falseType`,l=a?[`test`]:[`checkType`,`extendsType`],u=i[s],d=i[c],f=l.map(e=>i[e]),{parent:p}=e,m=p.type===i.type,h=m&&l.some(e=>p[e]===i),g=m&&p[c]===i,_=u.type===i.type,v=d.type===i.type,ee=v||g,te=t.tabWidth>2||t.useTabs,y,ne,re=0;do ne=y||i,y=e.getParentNode(re),re++;while(y&&y.type===i.type&&l.every(e=>y[e]!==ne));let b=y||p,x=r&&r.assignmentLayout&&r.assignmentLayout!==`break-after-operator`&&(p.type===`AssignmentExpression`||p.type===`VariableDeclarator`||p.type===`ClassProperty`||p.type===`PropertyDefinition`||p.type===`ClassPrivateProperty`||p.type===`ObjectProperty`||p.type===`Property`),S=(p.type===`ReturnStatement`||p.type===`ThrowStatement`)&&!(_||v),ie=a&&b.type===`JSXExpressionContainer`&&e.grandparent.type!==`JSXAttribute`,ae=kv(e),oe=Ev(i,p),se=o&&dm(e,t),ce=te?t.useTabs?`	`:` `.repeat(t.tabWidth-1):``,le=Dv(f,u,d,t)||_||v,C=!ee&&!m&&!o&&(ie?u.type===`NullLiteral`||u.type===`Literal`&&u.value===null:Al(u,t)&&Dl(i.test,3)),ue=ee||g||o&&!m||m&&a&&Dl(i.test,1)||C,de=[];!_&&W(u,U.Dangling)&&e.call(e=>{de.push($(e,t),X)},`consequent`);let fe=[];W(i.test,U.Dangling)&&e.call(e=>{fe.push($(e,t))},`test`),!v&&W(d,U.Dangling)&&e.call(e=>{fe.push($(e,t))},`alternate`),W(i,U.Dangling)&&fe.push($(e,t));let pe=Symbol(`test`),me=Symbol(`consequent`),he=Symbol(`test-and-consequent`),ge=K([a?[Av(n(`test`)),i.test.type===`ConditionalExpression`?$u:``]:[n(`checkType`),` `,`extends`,` `,i.extendsType.type===`TSConditionalType`||i.extendsType.type===`ConditionalTypeAnnotation`||i.extendsType.type===`TSMappedType`?n(`extendsType`):K(Av(n(`extendsType`)))],` ?`],{id:pe}),_e=n(s),w=G([_||ie&&(B(u)||m||ee)?X:J,de,_e]),T=ue?K([ge,ee?w:q(w,K(w,{id:me}),{groupId:pe})],{id:he}):[ge,w],ve=n(c),E=C?q(ve,qu(Av(ve)),{groupId:he}):ve,ye=[T,fe.length>0?[G([X,fe]),X]:v?X:C?q(J,` `,{groupId:he}):J,`:`,v?` `:te?ue?q(ce,q(ee||C?` `:ce,` `),{groupId:he}):q(ce,` `):` `,v?E:K([G(E),ie&&!C?Y:``]),oe&&!ae?Y:``,le?$u:``];return x&&!le?K(G([Y,K(ye)])):x||S?K(G(ye)):ae||o&&h?K([G([Y,ye]),se?Y:``]):p===b?K(ye):ye}function Mv(e,t,n,r){let{node:i}=e;if(ll(i))return Z_(e,t);let a=t.semi?`;`:``,o=[];switch(i.type){case`JsExpressionRoot`:return n(`node`);case`JsonRoot`:return[n(`node`),X];case`File`:return X_(e,t,n)??n(`program`);case`EmptyStatement`:return``;case`ExpressionStatement`:return Y_(e,t,n);case`ChainExpression`:return n(`expression`);case`ParenthesizedExpression`:return!W(i.expression)&&(rl(i.expression)||nl(i.expression))?[`(`,n(`expression`),`)`]:K([`(`,G([Y,n(`expression`)]),Y,`)`]);case`AssignmentExpression`:return Ah(e,t,n);case`VariableDeclarator`:return jh(e,t,n);case`BinaryExpression`:case`LogicalExpression`:return Xm(e,t,n);case`AssignmentPattern`:return[n(`left`),` = `,n(`right`)];case`OptionalMemberExpression`:case`MemberExpression`:return Sh(e,t,n);case`MetaProperty`:return[n(`meta`),`.`,n(`property`)];case`BindExpression`:return i.object&&o.push(n(`object`)),o.push(K(G([Y,Ag(e,t,n)]))),o;case`Identifier`:return[i.name,Cg(e),wg(e),_g(e,n)];case`V8IntrinsicIdentifier`:return[`%`,i.name];case`SpreadElement`:case`SpreadElementPattern`:case`SpreadPropertyPattern`:case`RestElement`:return Mg(e,n);case`FunctionDeclaration`:case`FunctionExpression`:return $g(e,n,t,r);case`ArrowFunctionExpression`:return f_(e,t,n,r);case`YieldExpression`:return o.push(`yield`),i.delegate&&o.push(`*`),i.argument&&o.push(` `,n(`argument`)),o;case`AwaitExpression`:if(o.push(`await`),i.argument){o.push(` `,n(`argument`));let{parent:t}=e;if(V(t)&&t.callee===i||H(t)&&t.object===i){o=[G([Y,...o]),Y];let t=e.findAncestor(e=>e.type===`AwaitExpression`||e.type===`BlockStatement`);if(t?.type!==`AwaitExpression`||!Hl(t.argument,e=>e===i))return K(o)}}return o;case`ExportDefaultDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return ov(e,t,n);case`ImportDeclaration`:return iv(e,t,n);case`ImportSpecifier`:case`ExportSpecifier`:case`ImportNamespaceSpecifier`:case`ExportNamespaceSpecifier`:case`ImportDefaultSpecifier`:case`ExportDefaultSpecifier`:return _v(e,t,n);case`ImportAttribute`:return Zg(e,t,n);case`Import`:return`import`;case`Program`:case`BlockStatement`:case`StaticBlock`:return y_(e,t,n);case`ClassBody`:return H_(e,t,n);case`ThrowStatement`:return s_(e,t,n);case`ReturnStatement`:return o_(e,t,n);case`NewExpression`:case`ImportExpression`:case`OptionalCallExpression`:case`CallExpression`:return Eh(e,t,n);case`ObjectExpression`:case`ObjectPattern`:case`RecordExpression`:return yv(e,t,n);case`Property`:return hl(i)?e_(e,t,n):Zg(e,t,n);case`ObjectProperty`:return Zg(e,t,n);case`ObjectMethod`:return e_(e,t,n);case`Decorator`:return[`@`,n(`expression`)];case`ArrayExpression`:case`ArrayPattern`:case`TupleExpression`:return Fg(e,t,n);case`SequenceExpression`:{let{parent:t}=e;if(t.type===`ExpressionStatement`||t.type===`ForStatement`){let t=[];return e.each(({isFirst:e})=>{e?t.push(n()):t.push(`,`,G([J,n()]))},`expressions`),K(t)}return K(Z([`,`,J],e.map(n,`expressions`)))}case`ThisExpression`:return`this`;case`Super`:return`super`;case`Directive`:return[n(`value`),a];case`UnaryExpression`:return o.push(i.operator),/[a-z]$/u.test(i.operator)&&o.push(` `),W(i.argument)?o.push(K([`(`,G([Y,n(`argument`)]),Y,`)`])):o.push(n(`argument`)),o;case`UpdateExpression`:return[i.prefix?i.operator:``,n(`argument`),i.prefix?``:i.operator];case`ConditionalExpression`:return jv(e,t,n,r);case`VariableDeclaration`:{let t=e.map(n,`declarations`),r=e.parent,s=r.type===`ForStatement`||r.type===`ForInStatement`||r.type===`ForOfStatement`,c=i.declarations.some(e=>e.init),l;return t.length===1&&!W(i.declarations[0])?l=t[0]:t.length>0&&(l=G(t[0])),o=[Eg(e),i.kind,l?[` `,l]:``,G(t.slice(1).map(e=>[`,`,c&&!s?X:J,e]))],s&&r.body!==i||o.push(a),K(o)}case`WithStatement`:return K([`with (`,n(`object`),`)`,jg(i.body,n(`body`))]);case`IfStatement`:{let r=jg(i.consequent,n(`consequent`)),a=K([`if (`,K([G([Y,n(`test`)]),Y]),`)`,r]);if(o.push(a),i.alternate){let r=W(i.consequent,U.Trailing|U.Line)||Pl(i),a=i.consequent.type===`BlockStatement`&&!r;o.push(a?` `:X),W(i,U.Dangling)&&o.push($(e,t),r?X:` `),o.push(`else`,K(jg(i.alternate,n(`alternate`),i.alternate.type===`IfStatement`)))}return o}case`ForStatement`:{let r=jg(i.body,n(`body`)),a=$(e,t),o=a?[a,Y]:``;return!i.init&&!i.test&&!i.update?[o,K([`for (;;)`,r])]:[o,K([`for (`,K([G([Y,n(`init`),`;`,J,n(`test`),`;`,J,n(`update`)]),Y]),`)`,r])]}case`WhileStatement`:return K([`while (`,K([G([Y,n(`test`)]),Y]),`)`,jg(i.body,n(`body`))]);case`ForInStatement`:return K([`for (`,n(`left`),` in `,n(`right`),`)`,jg(i.body,n(`body`))]);case`ForOfStatement`:return K([`for`,i.await?` await`:``,` (`,n(`left`),` of `,n(`right`),`)`,jg(i.body,n(`body`))]);case`DoWhileStatement`:return o=[K([`do`,jg(i.body,n(`body`))])],i.body.type===`BlockStatement`?o.push(` `):o.push(X),o.push(`while (`,K([G([Y,n(`test`)]),Y]),`)`,a),o;case`DoExpression`:return[i.async?`async `:``,`do `,n(`body`)];case`BreakStatement`:case`ContinueStatement`:return o.push(i.type===`BreakStatement`?`break`:`continue`),i.label&&o.push(` `,n(`label`)),o.push(a),o;case`LabeledStatement`:return i.body.type===`EmptyStatement`?[n(`label`),`:;`]:[n(`label`),`: `,n(`body`)];case`TryStatement`:return[`try `,n(`block`),i.handler?[` `,n(`handler`)]:``,i.finalizer?[` finally `,n(`finalizer`)]:``];case`CatchClause`:if(i.param){let e=W(i.param,e=>!Uc(e)||e.leading&&gc(t.originalText,R(e))||e.trailing&&gc(t.originalText,L(e),{backwards:!0})),r=n(`param`);return[`catch `,e?[`(`,G([Y,r]),Y,`) `]:[`(`,r,`) `],n(`body`)]}return[`catch `,n(`body`)];case`SwitchStatement`:return[K([`switch (`,G([Y,n(`discriminant`)]),Y,`)`]),` {`,i.cases.length>0?G([X,Z(X,e.map(({node:e,isLast:r})=>[n(),!r&&cu(e,t)?X:``],`cases`))]):``,X,`}`];case`SwitchCase`:{i.test?o.push(`case `,n(`test`),`:`):o.push(`default:`),W(i,U.Dangling)&&o.push(` `,$(e,t));let r=i.consequent.filter(e=>e.type!==`EmptyStatement`);if(r.length>0){let i=v_(e,t,n,`consequent`);o.push(r.length===1&&r[0].type===`BlockStatement`?[` `,i]:G([X,i]))}return o}case`DebuggerStatement`:return[`debugger`,a];case`ClassDeclaration`:case`ClassExpression`:return N_(e,t,n);case`ClassMethod`:case`ClassPrivateMethod`:case`MethodDefinition`:return B_(e,t,n);case`ClassProperty`:case`PropertyDefinition`:case`ClassPrivateProperty`:case`ClassAccessorProperty`:case`AccessorProperty`:return V_(e,t,n);case`TemplateElement`:return gd(i.value.raw);case`TemplateLiteral`:return Kf(e,n,t);case`TaggedTemplateExpression`:return qf(e,n);case`PrivateIdentifier`:return[`#`,i.name];case`PrivateName`:return[`#`,n(`id`)];case`TopicReference`:return`%`;case`ArgumentPlaceholder`:return`?`;case`ModuleExpression`:return[`module `,n(`body`)];case`InterpreterDirective`:default:throw new bm(i,`ESTree`)}}function Nv(e,t,n){let{parent:r,node:i,key:a}=e,o=[n(`expression`)];switch(i.type){case`AsConstExpression`:o.push(` as const`);break;case`AsExpression`:case`TSAsExpression`:o.push(` as `,n(`typeAnnotation`));break;case`SatisfiesExpression`:case`TSSatisfiesExpression`:o.push(` satisfies `,n(`typeAnnotation`));break}return a===`callee`&&V(r)||a===`object`&&H(r)?K([G([Y,...o]),Y]):o}function Pv(e,t,n){let{node:r}=e,i=[Eg(e),`component`];r.id&&i.push(` `,n(`id`)),i.push(n(`typeParameters`));let a=Fv(e,n,t);return r.rendersType?i.push(K([a,` `,n(`rendersType`)])):i.push(K([a])),r.body&&i.push(` `,n(`body`)),t.semi&&r.type===`DeclareComponent`&&i.push(`;`),i}function Fv(e,t,n){let{node:r}=e,i=r.params;if(r.rest&&(i=[...i,r.rest]),i.length===0)return[`(`,$(e,n,{filter:e=>Md(n.originalText,R(e))===`)`}),`)`];let a=[];return Lv(e,(e,o)=>{let s=o===i.length-1;s&&r.rest&&a.push(`...`),a.push(t()),!s&&(a.push(`,`),cu(i[o],n)?a.push(X,X):a.push(J))}),[`(`,G([Y,...a]),q(Vl(n,`all`)&&!Iv(r,i)?`,`:``),Y,`)`]}function Iv(e,t){return e.rest||F(!1,t,-1)?.type===`RestElement`}function Lv(e,t){let{node:n}=e,r=0,i=e=>t(e,r++);e.each(i,`params`),n.rest&&e.call(i,`rest`)}function Rv(e,t,n){let{node:r}=e;return r.shorthand?n(`local`):[n(`name`),` as `,n(`local`)]}function zv(e,t,n){let{node:r}=e,i=[];return r.name&&i.push(n(`name`),r.optional?`?: `:`: `),i.push(n(`typeAnnotation`)),i}function Bv(e,t,n){return yv(e,n,t)}function Vv(e,t){let{node:n}=e,r=t(`id`);n.computed&&(r=[`[`,r,`]`]);let i=``;return n.initializer&&(i=t(`initializer`)),n.init&&(i=t(`init`)),i?[r,` = `,i]:r}function Hv(e,t,n){let{node:r}=e,i;if(r.type===`EnumSymbolBody`||r.explicitType)switch(r.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} `:``,Bv(e,t,n)]}function Uv(e,t,n){let{node:r}=e;return[Eg(e),r.const?`const `:``,`enum `,t(`id`),` `,r.type===`TSEnumDeclaration`?Bv(e,t,n):t(`body`)]}function Wv(e,t,n){let{node:r}=e,i=[`hook`];r.id&&i.push(` `,n(`id`));let a=Yh(e,n,t,!1,!0),o=i_(e,n),s=Qh(r,o);return i.push(K([s?K(a):a,o]),r.body?` `:``,n(`body`)),i}function Gv(e,t,n){let{node:r}=e,i=[Eg(e),`hook`];return r.id&&i.push(` `,n(`id`)),t.semi&&i.push(`;`),i}function Kv(e){let{node:t}=e;return t.type===`HookTypeAnnotation`&&e.getParentNode(2)?.type===`DeclareHook`}function qv(e,t,n){let{node:r}=e,i=[];i.push(Kv(e)?``:`hook `);let a=Yh(e,n,t,!1,!0),o=[];return o.push(Kv(e)?`: `:` => `,n(`returnType`)),Qh(r,o)&&(a=K(a)),i.push(a,o),K(i)}function Jv(e,t,n){let{node:r}=e,i=[Eg(e),`interface`],a=[],o=[];r.type!==`InterfaceTypeAnnotation`&&a.push(` `,n(`id`),n(`typeParameters`));let s=r.typeParameters&&!W(r.typeParameters,U.Trailing|U.Line);return I(r.extends)&&o.push(s?q(` `,J,{groupId:D_(r.typeParameters)}):J,`extends `,(r.extends.length===1?Bl:G)(Z([`,`,J],e.map(n,`extends`)))),W(r.id,U.Trailing)||I(r.extends)?s?i.push(K([...a,G(o)])):i.push(K(G([...a,...o]))):i.push(...a,...o),i.push(` `,n(`body`)),K(i)}function Yv(e,t,n){let{node:r}=e;if(Wc(r))return r.type.slice(0,-14).toLowerCase();let i=t.semi?`;`:``;switch(r.type){case`ComponentDeclaration`:case`DeclareComponent`:case`ComponentTypeAnnotation`:return Pv(e,t,n);case`ComponentParameter`:return Rv(e,t,n);case`ComponentTypeParameter`:return zv(e,t,n);case`HookDeclaration`:return Wv(e,t,n);case`DeclareHook`:return Gv(e,t,n);case`HookTypeAnnotation`:return qv(e,t,n);case`DeclareClass`:return N_(e,t,n);case`DeclareFunction`:return[Eg(e),`function `,n(`id`),n(`predicate`),i];case`DeclareModule`:return[`declare module `,n(`id`),` `,n(`body`)];case`DeclareModuleExports`:return[`declare module.exports`,_g(e,n),i];case`DeclareNamespace`:return[`declare namespace `,n(`id`),` `,n(`body`)];case`DeclareVariable`:return[Eg(e),r.kind??`var`,` `,n(`id`),i];case`DeclareExportDeclaration`:case`DeclareExportAllDeclaration`:return ov(e,t,n);case`DeclareOpaqueType`:case`OpaqueType`:return ag(e,t,n);case`DeclareTypeAlias`:case`TypeAlias`:return og(e,t,n);case`IntersectionTypeAnnotation`:return sg(e,t,n);case`UnionTypeAnnotation`:return cg(e,t,n);case`ConditionalTypeAnnotation`:return jv(e,t,n);case`InferTypeAnnotation`:return fg(e,t,n);case`FunctionTypeAnnotation`:return ug(e,t,n);case`TupleTypeAnnotation`:return Fg(e,t,n);case`TupleTypeLabeledElement`:return hg(e,t,n);case`TupleTypeSpreadElement`:return mg(e,t,n);case`GenericTypeAnnotation`:return[n(`id`),k_(e,t,n,`typeParameters`)];case`IndexedAccessType`:case`OptionalIndexedAccessType`:return dg(e,t,n);case`TypeAnnotation`:return yg(e,t,n);case`TypeParameter`:return j_(e,t,n);case`TypeofTypeAnnotation`:return xg(e,n);case`ExistsTypeAnnotation`:return`*`;case`ArrayTypeAnnotation`:return bg(n);case`DeclareEnum`:case`EnumDeclaration`:return Uv(e,n,t);case`EnumBooleanBody`:case`EnumNumberBody`:case`EnumBigIntBody`:case`EnumStringBody`:case`EnumSymbolBody`:return Hv(e,n,t);case`EnumBooleanMember`:case`EnumNumberMember`:case`EnumBigIntMember`:case`EnumStringMember`:case`EnumDefaultedMember`:return Vv(e,n);case`FunctionTypeParam`:{let t=r.name?n(`name`):e.parent.this===r?`this`:``;return[t,Cg(e),t?`: `:``,n(`typeAnnotation`)]}case`DeclareInterface`:case`InterfaceDeclaration`:case`InterfaceTypeAnnotation`:return Jv(e,t,n);case`ClassImplements`:case`InterfaceExtends`:return[n(`id`),n(`typeParameters`)];case`NullableTypeAnnotation`:return[`?`,n(`typeAnnotation`)];case`Variance`:{let{kind:e}=r;return Vg.ok(e===`plus`||e===`minus`),e===`plus`?`+`:`-`}case`KeyofTypeAnnotation`:return[`keyof `,n(`argument`)];case`ObjectTypeCallProperty`:return[r.static?`static `:``,n(`value`)];case`ObjectTypeMappedTypeProperty`:return w_(e,t,n);case`ObjectTypeIndexer`:return[r.static?`static `:``,r.variance?n(`variance`):``,`[`,n(`id`),r.id?`: `:``,n(`key`),`]: `,n(`value`)];case`ObjectTypeProperty`:{let i=``;return r.proto?i=`proto `:r.static&&(i=`static `),[i,r.kind===`init`?``:r.kind+` `,r.variance?n(`variance`):``,Xg(e,t,n),Cg(e),hl(r)?``:`: `,n(`value`)]}case`ObjectTypeAnnotation`:return yv(e,t,n);case`ObjectTypeInternalSlot`:return[r.static?`static `:``,`[[`,n(`id`),`]]`,Cg(e),r.method?``:`: `,n(`value`)];case`ObjectTypeSpreadProperty`:return Mg(e,n);case`QualifiedTypeofIdentifier`:case`QualifiedTypeIdentifier`:return[n(`qualification`),`.`,n(`id`)];case`NullLiteralTypeAnnotation`:return`null`;case`BooleanLiteralTypeAnnotation`:return String(r.value);case`StringLiteralTypeAnnotation`:return gd(jc(zl(r),t));case`NumberLiteralTypeAnnotation`:return Gg(r.raw??r.extra.raw);case`BigIntLiteralTypeAnnotation`:return $_(r.raw??r.extra.raw);case`TypeCastExpression`:return[`(`,n(`expression`),_g(e,n),`)`];case`TypePredicate`:return Sg(e,n);case`TypeOperator`:return[r.operator,` `,n(`typeAnnotation`)];case`TypeParameterDeclaration`:case`TypeParameterInstantiation`:return k_(e,t,n,`params`);case`InferredPredicate`:case`DeclaredPredicate`:return[e.key===`predicate`&&e.parent.type!==`DeclareFunction`&&!e.parent.returnType?`: `:` `,`%checks`,...r.type===`DeclaredPredicate`?[`(`,n(`value`),`)`]:[]];case`AsExpression`:case`AsConstExpression`:case`SatisfiesExpression`:return Nv(e,t,n)}}function Xv(e,t,n){let{node:r}=e;if(!r.type.startsWith(`TS`))return;if(Yc(r))return r.type.slice(2,-7).toLowerCase();let i=t.semi?`;`:``,a=[];switch(r.type){case`TSThisType`:return`this`;case`TSTypeAssertion`:{let e=!(nl(r.expression)||rl(r.expression)),t=K([`<`,G([Y,n(`typeAnnotation`)]),Y,`>`]),i=[q(`(`),G([Y,n(`expression`)]),Y,q(`)`)];return e?Ju([[t,n(`expression`)],[t,K(i,{shouldBreak:!0})],[t,n(`expression`)]]):K([t,n(`expression`)])}case`TSDeclareFunction`:return $g(e,n,t);case`TSExportAssignment`:return[`export = `,n(`expression`),i];case`TSModuleBlock`:return y_(e,t,n);case`TSInterfaceBody`:case`TSTypeLiteral`:return yv(e,t,n);case`TSTypeAliasDeclaration`:return og(e,t,n);case`TSQualifiedName`:return[n(`left`),`.`,n(`right`)];case`TSAbstractMethodDefinition`:case`TSDeclareMethod`:return B_(e,t,n);case`TSAbstractAccessorProperty`:case`TSAbstractPropertyDefinition`:return V_(e,t,n);case`TSInterfaceHeritage`:case`TSClassImplements`:case`TSExpressionWithTypeArguments`:case`TSInstantiationExpression`:return[n(`expression`),n(r.typeArguments?`typeArguments`:`typeParameters`)];case`TSTemplateLiteralType`:return Kf(e,n,t);case`TSNamedTupleMember`:return hg(e,t,n);case`TSRestType`:return mg(e,t,n);case`TSOptionalType`:return[n(`typeAnnotation`),`?`];case`TSInterfaceDeclaration`:return Jv(e,t,n);case`TSTypeParameterDeclaration`:case`TSTypeParameterInstantiation`:return k_(e,t,n,`params`);case`TSTypeParameter`:return j_(e,t,n);case`TSAsExpression`:case`TSSatisfiesExpression`:return Nv(e,t,n);case`TSArrayType`:return bg(n);case`TSPropertySignature`:return[r.readonly?`readonly `:``,Xg(e,t,n),Cg(e),_g(e,n)];case`TSParameterProperty`:return[Ng(r),r.static?`static `:``,r.override?`override `:``,r.readonly?`readonly `:``,n(`parameter`)];case`TSTypeQuery`:return xg(e,n);case`TSIndexSignature`:{let a=r.parameters.length>1?q(Vl(t)?`,`:``):``,o=K([G([Y,Z([`, `,Y],e.map(n,`parameters`))]),a,Y]),s=e.parent.type===`ClassBody`&&e.key===`body`;return[s&&r.static?`static `:``,r.readonly?`readonly `:``,`[`,r.parameters?o:``,`]`,_g(e,n),s?i:``]}case`TSTypePredicate`:return Sg(e,n);case`TSNonNullExpression`:return[n(`expression`),`!`];case`TSImportType`:return[r.isTypeOf?`typeof `:``,`import(`,n(`argument`),`)`,r.qualifier?[`.`,n(`qualifier`)]:``,k_(e,t,n,r.typeArguments?`typeArguments`:`typeParameters`)];case`TSLiteralType`:return n(`literal`);case`TSIndexedAccessType`:return dg(e,t,n);case`TSTypeOperator`:return[r.operator,` `,n(`typeAnnotation`)];case`TSMappedType`:return E_(e,t,n);case`TSMethodSignature`:{let i=r.kind&&r.kind!==`method`?`${r.kind} `:``;a.push(Ng(r),i,r.computed?`[`:``,n(`key`),r.computed?`]`:``,Cg(e));let o=Yh(e,n,t,!1,!0),s=r.returnType?`returnType`:`typeAnnotation`,c=r[s],l=c?_g(e,n,s):``,u=Qh(r,l);return a.push(u?K(o):o),c&&a.push(K(l)),K(a)}case`TSNamespaceExportDeclaration`:return[`export as namespace `,n(`id`),t.semi?`;`:``];case`TSEnumDeclaration`:return Uv(e,n,t);case`TSEnumMember`:return Vv(e,n);case`TSImportEqualsDeclaration`:return[r.isExport?`export `:``,`import `,uv(r,!1),n(`id`),` = `,n(`moduleReference`),t.semi?`;`:``];case`TSExternalModuleReference`:return[`require(`,n(`expression`),`)`];case`TSModuleDeclaration`:{let{parent:o}=e,s=o.type===`TSModuleDeclaration`,c=r.body?.type===`TSModuleDeclaration`;if(s)a.push(`.`);else if(a.push(Eg(e)),!(r.kind===`global`||r.global)){let e=r.kind??(sl(r.id)||rv(t,L(r),L(r.id)).trim().endsWith(`module`)?`module`:`namespace`);a.push(e,` `)}return a.push(n(`id`)),c?a.push(n(`body`)):r.body?a.push(` `,K(n(`body`))):a.push(i),a}case`TSConditionalType`:return jv(e,t,n);case`TSInferType`:return fg(e,t,n);case`TSIntersectionType`:return sg(e,t,n);case`TSUnionType`:return cg(e,t,n);case`TSFunctionType`:case`TSCallSignatureDeclaration`:case`TSConstructorType`:case`TSConstructSignatureDeclaration`:return ug(e,t,n);case`TSTupleType`:return Fg(e,t,n);case`TSTypeReference`:return[n(`typeName`),k_(e,t,n,r.typeArguments?`typeArguments`:`typeParameters`)];case`TSTypeAnnotation`:return yg(e,t,n);case`TSEmptyBodyFunctionExpression`:return t_(e,t,n);case`TSJSDocAllType`:return`*`;case`TSJSDocUnknownType`:return`?`;case`TSJSDocNullableType`:return pg(e,n,`?`);case`TSJSDocNonNullableType`:return pg(e,n,`!`);case`TSParenthesizedType`:default:throw new bm(r,`TypeScript`)}}function Zv(e,t,n,r){if(Jm(e))return em(e,t);for(let i of[th,Hm,Yv,Xv,Mv]){let a=i(e,t,n,r);if(a!==void 0)return a}}var Qv=z([`ClassMethod`,`ClassPrivateMethod`,`ClassProperty`,`ClassAccessorProperty`,`AccessorProperty`,`TSAbstractAccessorProperty`,`PropertyDefinition`,`TSAbstractPropertyDefinition`,`ClassPrivateProperty`,`MethodDefinition`,`TSAbstractMethodDefinition`,`TSDeclareMethod`]);function $v(e,t,n,r){var i;e.isRoot&&((i=t.__onHtmlBindingRoot)==null||i.call(t,e.node,t));let a=Zv(e,t,n,r);if(!a)return``;let{node:o}=e;if(Qv(o))return a;let s=I(o.decorators),c=sh(e,t,n),l=o.type===`ClassExpression`;if(s&&!l)return yd(a,e=>K([c,e]));let u=dm(e,t),d=W_(e,t);return!c&&!u&&!d?a:yd(a,e=>[d?`;`:``,u?`(`:``,u&&l&&s?[G([J,c,e]),J]:[c,e],u?`)`:``])}var ey=$v,ty={avoidAstMutation:!0},ny=[{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`]}],ry={};Hs(ry,{getVisitorKeys:()=>iy,massageAstNode:()=>cy,print:()=>ay});var iy=Bc({JsonRoot:[`node`],ArrayExpression:[`elements`],ObjectExpression:[`properties`],ObjectProperty:[`key`,`value`],UnaryExpression:[`argument`],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:[`quasis`],TemplateElement:[]});function ay(e,t,n){let{node:r}=e;switch(r.type){case`JsonRoot`:return[n(`node`),X];case`ArrayExpression`:{if(r.elements.length===0)return`[]`;let t=e.map(()=>e.node===null?`null`:n(),`elements`);return[`[`,G([X,Z([`,`,X],t)]),X,`]`]}case`ObjectExpression`:return r.properties.length===0?`{}`:[`{`,G([X,Z([`,`,X],e.map(n,`properties`))]),X,`}`];case`ObjectProperty`:return[n(`key`),`: `,n(`value`)];case`UnaryExpression`:return[r.operator===`+`?``:r.operator,n(`argument`)];case`NullLiteral`:return`null`;case`BooleanLiteral`:return r.value?`true`:`false`;case`StringLiteral`:return JSON.stringify(r.value);case`NumericLiteral`:return oy(e)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case`Identifier`:return oy(e)?JSON.stringify(r.name):r.name;case`TemplateLiteral`:return n([`quasis`,0]);case`TemplateElement`:return JSON.stringify(r.value.cooked);default:throw new bm(r,`JSON`)}}function oy(e){return e.key===`key`&&e.parent.type===`ObjectProperty`}var sy=new Set([`start`,`end`,`extra`,`loc`,`comments`,`leadingComments`,`trailingComments`,`innerComments`,`errors`,`range`,`tokens`]);function cy(e,t){let{type:n}=e;if(n===`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(n===`UnaryExpression`&&e.operator===`+`)return t.argument;if(n===`ArrayExpression`){for(let[n,r]of e.elements.entries())r===null&&t.elements.splice(n,0,{type:`NullLiteral`});return}if(n===`TemplateLiteral`)return{type:`StringLiteral`,value:e.quasis[0].value.cooked}}cy.ignoredProperties=sy;var ly={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},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.`}},uy=`JavaScript`,dy={arrowParens:{category:uy,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:ly.bracketSameLine,bracketSpacing:ly.bracketSpacing,jsxBracketSameLine:{category:uy,type:`boolean`,description:`Put > on the last line instead of at a new line.`,deprecated:`2.4.0`},semi:{category:uy,type:`boolean`,default:!0,description:`Print semicolons.`,oppositeDescription:`Do not print semicolons, except at the beginning of lines which may need them.`},experimentalTernaries:{category:uy,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:ly.singleQuote,jsxSingleQuote:{category:uy,type:`boolean`,default:!1,description:`Use single quotes in JSX.`},quoteProps:{category:uy,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:uy,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:ly.singleAttributePerLine},fy={estree:Ys,"estree-json":ry},py=[...Js,...ny],my=qs,hy=f(i({__name:`NDVEmptyState`,props:{title:{},wide:{type:Boolean},icon:{}},setup(e){return(i,f)=>(t(),r(`article`,{class:c([i.$style.empty,{[i.$style.wide]:e.wide}])},[l(i.$slots,`icon`,{},()=>[e.icon?(t(),u(s(d),{key:0,icon:e.icon,size:`xlarge`},null,8,[`icon`])):o(``,!0)]),e.title?(t(),r(`h1`,{key:0,class:c(i.$style.title)},a(e.title),3)):o(``,!0),n(`p`,{class:c(i.$style.description)},[l(i.$slots,`default`)],2)],2))}}),[[`__cssModules`,{$style:{empty:`_empty_ylpfe_2`,title:`_title_ylpfe_13`,description:`_description_ylpfe_21`,wide:`_wide_ylpfe_28`}}]]);export{Ba as a,Rs as i,my as n,Va as o,zs as r,hy as t};
//# sourceMappingURL=NDVEmptyState-DMWlSoOG.js.map