@mastra/deployer-sandbox 0.0.0 → 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/LICENSE.md +30 -0
  2. package/dist/alias.d.ts +10 -0
  3. package/dist/alias.d.ts.map +1 -0
  4. package/dist/chunk-CSXC6CZL.cjs +115 -0
  5. package/dist/chunk-CSXC6CZL.cjs.map +1 -0
  6. package/dist/chunk-Z636GNUQ.js +101 -0
  7. package/dist/chunk-Z636GNUQ.js.map +1 -0
  8. package/dist/client/index.cjs +159 -0
  9. package/dist/client/index.cjs.map +1 -0
  10. package/dist/client/index.d.ts +98 -0
  11. package/dist/client/index.d.ts.map +1 -0
  12. package/dist/client/index.js +155 -0
  13. package/dist/client/index.js.map +1 -0
  14. package/dist/deployer.d.ts +57 -0
  15. package/dist/deployer.d.ts.map +1 -0
  16. package/dist/engine.d.ts +19 -0
  17. package/dist/engine.d.ts.map +1 -0
  18. package/dist/index.cjs +381 -0
  19. package/dist/index.cjs.map +1 -0
  20. package/dist/index.d.ts +6 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +372 -0
  23. package/dist/index.js.map +1 -0
  24. package/dist/manifest.d.ts +7 -0
  25. package/dist/manifest.d.ts.map +1 -0
  26. package/dist/shared.d.ts +63 -0
  27. package/dist/shared.d.ts.map +1 -0
  28. package/dist/studio/assets/CommitMono-400-Regular-DzkyLZ26.woff2 +0 -0
  29. package/dist/studio/assets/CommitMono-700-Regular-DmOSN4kd.woff2 +0 -0
  30. package/dist/studio/assets/MonaSans-VariableFont_wdth-wght-CX-7s9jm.ttf +0 -0
  31. package/dist/studio/assets/babel-lWBcy2sH.js +16 -0
  32. package/dist/studio/assets/bash-atvbtKCR.js +1 -0
  33. package/dist/studio/assets/core-kRNZLmmj.js +12 -0
  34. package/dist/studio/assets/engine-compile-BkERmzkH.js +137 -0
  35. package/dist/studio/assets/engine-javascript-CSIo_1eZ.js +1 -0
  36. package/dist/studio/assets/estree-Dd9JfUIE.js +44 -0
  37. package/dist/studio/assets/github-dark-DHJKELXO.js +1 -0
  38. package/dist/studio/assets/github-light-DAi9KRSo.js +1 -0
  39. package/dist/studio/assets/index-LFLxh8sD.js +2 -0
  40. package/dist/studio/assets/index-yUiD89B4.js +1 -0
  41. package/dist/studio/assets/javascript-ySlJ1b_l.js +1 -0
  42. package/dist/studio/assets/json-BQoSv7ci.js +1 -0
  43. package/dist/studio/assets/jsx-BAng5TT0.js +1 -0
  44. package/dist/studio/assets/livekit-client.esm-CKIgC2IJ.js +39 -0
  45. package/dist/studio/assets/main-DLJrsCT1.js +780 -0
  46. package/dist/studio/assets/markdown-UIAJJxZW.js +1 -0
  47. package/dist/studio/assets/preload-helper-PPVm8Dsz.js +1 -0
  48. package/dist/studio/assets/python-DhUJRlN_.js +1 -0
  49. package/dist/studio/assets/shell-CjFT_Tl9.js +1 -0
  50. package/dist/studio/assets/standalone-Dfz2oS5J.js +29 -0
  51. package/dist/studio/assets/style-C3ow9ANP.css +1 -0
  52. package/dist/studio/assets/tsx-B6W0miNI.js +1 -0
  53. package/dist/studio/assets/typescript-Dj6nwHGl.js +1 -0
  54. package/dist/studio/index.html +100 -0
  55. package/dist/studio/mastra.svg +17 -0
  56. package/dist/studio/routes-manifest.json +27 -0
  57. package/dist/types.d.ts +90 -0
  58. package/dist/types.d.ts.map +1 -0
  59. package/package.json +18 -18
@@ -0,0 +1,44 @@
1
+ var ti=Object.defineProperty,_n=(e,t)=>{for(var n in t)ti(e,n,{get:t[n],enumerable:!0})},ni={};_n(ni,{languages:()=>uf,options:()=>nf,printers:()=>rf});var ri=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","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",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",aliases:["typescriptreact"],codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],Cu={};_n(Cu,{estree:()=>Ko});function ui(e){return Array.isArray(e)&&e.length>0}var q=ui,ai=()=>{},oi=ai;function v(e){let t=new Set(e);return n=>t.has(n?.type)}var $n=(e,t)=>(n,r,...u)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,u);function ii(e){return this[e<0?this.length+e:e]}var si=$n("at",function(){if(Array.isArray(this)||typeof this=="string")return ii}),N=si;function ge(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function pi(e){let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),t}var li=new WeakMap;function oe(e){return ge(li,e,pi)}function ci(e,t){let{node:n}=e,r=0,u=()=>t(e,r++);n.this&&e.call(u,"this"),e.each(u,"params"),n.rest&&e.call(u,"rest")}function Di(e){if(e.rest)return!0;let t=oe(e);return N(0,t,-1)?.type==="RestElement"}var yi=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const";function Un({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}function Et(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}var hu=e=>Number.isSafeInteger(e)&&e>=0;function ln(e){return e.range?.[1]??e.end}function k(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(k(n),t):t}var fi=5,di=8,mi=8,Lr=e=>t=>t.label?P(t.label):k(t)+e,Fi=e=>e.__contentEnd??ln(e),xu=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],Ei=new Map([["BreakStatement",Lr(fi)],["ContinueStatement",Lr(di)],["DebuggerStatement",e=>k(e)+mi],["VariableDeclaration",e=>P(N(0,e.declarations,-1))],...xu.map(e=>[e,Fi])]),Ai=v(xu),Bn=e=>{if(Ai(e)&&e.__contentEnd)return!0;let{type:t}=e;return t==="BreakStatement"||t==="ContinueStatement"||t==="DebuggerStatement"||t==="VariableDeclaration"?!0:t==="IfStatement"?Bn(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?Bn(e.body):!1};function P(e){let{type:t}=e;return t==="IfStatement"?P(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?P(e.body):Ei.get(t)?.(e)??ln(e)}function cn(e,t){let n=k(e);return hu(n)&&n===k(t)}function gi(e,t){let n=P(e);return hu(n)&&n===P(t)}function Ci(e,t){return cn(e,t)&&gi(e,t)}function De(e){return e.extra?.raw??e.raw}function hi(e){return e.type==="BigIntLiteral"||e.type==="Literal"&&!!e.bigint}function xi(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function ke(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Tu(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}function H(e){return e?.type==="StringLiteral"||e?.type==="Literal"&&typeof e.value=="string"}var xe=v(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Ti=v(["SatisfiesExpression","TSSatisfiesExpression"]),fe=v(["TSUnionType","UnionTypeAnnotation"]),Xt=v(["TSIntersectionType","IntersectionTypeAnnotation"]),Gn=v(["TupleTypeAnnotation","TSTupleType"]),We=v(["TSConditionalType","ConditionalTypeAnnotation"]),Su=v(["TSTypeAliasDeclaration","TypeAlias"]),yt=v(["ReturnStatement","ThrowStatement"]),Si=v(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ee=v(["ArrayExpression"]),Te=v(["ObjectExpression"]),Vn=v(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),_e=v(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Nt=v(["FunctionExpression","ArrowFunctionExpression"]),Y=v(["JSXElement","JSXFragment"]),je=v(["BinaryExpression","LogicalExpression","NGPipeExpression"]),O=v(["CallExpression","OptionalCallExpression"]),J=v(["MemberExpression","OptionalMemberExpression"]),Mt=v(["CallExpression","OptionalCallExpression","NewExpression"]),ft=v(["CallExpression","OptionalCallExpression","NewExpression","ImportExpression"]),rt=v(["ChainExpression","TSNonNullExpression"]),bi=v(["TSArrayType","ArrayTypeAnnotation"]),Bi=v(["TSTypeParameterInstantiation","TypeParameterInstantiation"]);function vn(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:n}=e;return t.type!==n.type||!Ci(t,n)?!1:H(t)?t.value===n.value&&De(t)===De(n):t.type==="Identifier"?t.name===n.name:!1}var vi=v(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),Pi=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!Et(t)&&t.value!==t.key||t?.type==="ImportSpecifier"&&vn(t)&&t.local===e&&t.local!==t.imported||t?.type==="ExportSpecifier"&&vn(t)&&t.exported===e&&t.local!==t.exported,ki=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&oe(e).length===0&&!e.returnType&&!q(e.typeParameters)&&e.body),Or=(e,[t])=>t?.typeAnnotation===e&&yi(t),wi=(e,[t,...n])=>Or(e,[t])||t?.typeName===e&&Or(t,n);function Ii(e,t){return vi(e)||Pi(e,t)||ki(e,t)?!1:e.type==="EmptyStatement"?Un({node:e,parent:t[0]}):!(wi(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var Ni=Ii;function Mi(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 Kn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Mi(e)}function _(e,t){t.leading=!0,t.trailing=!1,Kn(e,t)}function ie(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Kn(e,t)}function R(e,t){t.leading=!1,t.trailing=!0,Kn(e,t)}function Hn(e){return(t,n,r)=>{if(n===!1)return!1;let u=!!r?.backwards,{length:a}=t,o=n;for(;o>=0&&o<a;){let i=t.charAt(o);if(e instanceof RegExp){if(!e.test(i))return o}else if(!e.includes(i))return o;u?o--:o++}return o===-1||o===a?o:!1}}var dt=Hn(" "),ji=Hn(",; "),Li=Hn(/[^\n\r]/);function Oi(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 zn=Oi,Jr=e=>e===`
2
+ `||e==="\r"||e==="\u2028"||e==="\u2029";function Ji(e,t,n){if(t===!1)return!1;let r=!!n?.backwards,u=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&u===`
3
+ `)return t-2;if(Jr(u))return t-1}else{if(u==="\r"&&e.charAt(t+1)===`
4
+ `)return t+2;if(Jr(u))return t+1}return t}var mt=Ji;function qi(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Li(e,t):t}var Qn=qi;function Ri(e,t){let n=null,r=t;for(;r!==n;)n=r,r=dt(e,r),r=zn(e,r),r=Qn(e,r),r=mt(e,r);return r}var Dn=Ri;function Xi(e,t){let n=Dn(e,t);return n===!1?"":e.charAt(n)}var ve=Xi;function Wi(e,t,n={}){let r=dt(e,n.backwards?t-1:t,n),u=mt(e,r,n);return r!==u}var K=Wi;function _i(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
5
+ `)return!0;return!1}var se=_i,$i=new WeakMap;function Ui(e){let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,t}function Ce(e){return ge($i,e,Ui)}function Pn(e,t){let{node:n}=e;n.type==="ImportExpression"||n.type==="TSImportType"?(e.call(()=>t(e,0),"source"),n.options&&e.call(()=>t(e,1),"options")):n.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function qr(e,t){if(e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return["source"];if(e.options&&(t===1||t===-1))return["options"];throw new RangeError("Invalid argument index")}if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return["expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return["arguments",t];throw new RangeError("Invalid argument index")}var Gi=Symbol.for("comments"),Vi=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Ki=$n("replaceAll",function(){if(typeof this=="string")return Vi}),Q=Ki;function Hi(e){return Q(0,e,/[^\n]/g," ")}var zi=Hi;function Qi(e,t){for(let n of t){let r=k(n),u=P(n);e=e.slice(0,r)+zi(e.slice(r,u))+e.slice(u)}return e}var Yi=new WeakMap;function he(e){let t=e[Gi];return ge(Yi,t,n=>Qi(e.originalText,n))}function bu(e,t){let n=P(e)-1;if(t.originalText[n]===")")return n}function Zi(e,t){if(bu(e,t)===void 0)return;let n=he(t),r=P(e.typeArguments??e.callee),u=n.indexOf("(",r);if(u!==-1)return u}function es(e,t,n){let r=bu(e,n);if(r===void 0||P(t)>r)return!1;let u=Zi(e,n);return u===void 0?!1:k(t)>u}var Se=v(["Block","CommentBlock","MultiLine"]),Ue=v(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function Ge(e){return e?.type==="ObjectProperty"||e?.type==="Property"&&!Et(e)}function et(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}var ts=new WeakMap;function Yn(e){return ge(ts,e,t=>Se(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/.test(t.value))}function Zn({comment:e,enclosingNode:t,followingNode:n,options:r}){if((t?.type==="ForInStatement"||t?.type==="ForOfStatement"||t?.type==="ForStatement")&&n&&n===t.body){let u=he(r).lastIndexOf(")",k(n));if(k(e)>u)return _(n,e),!0}return!1}var Bu=(e,t)=>Se(e)&&!se(t,k(e),P(e)),er=(e,t)=>Ue(e)||Bu(e,t);function kn(e,t){e.type==="BlockStatement"?Wt(e,t):_(e,t)}function Wt(e,t){let n=(e.body||e.properties).find(({type:r})=>r!=="EmptyStatement");n?_(n,t):ie(e,t)}function tr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){return n?.type!=="IfStatement"||!r?!1:ve(u,P(e))===")"?(R(t,e),!0):r===n.consequent?(_(r,e),!0):t===n.consequent&&r===n.alternate?ns({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}):!1}function ns({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=he(a).indexOf("else",P(n.consequent));return k(e)>=o?(_(r,e),!0):t.type!=="BlockStatement"&&er(e,u)&&!se(u,P(t),k(e))?(R(t,e),!0):(ie(n,e),!0)}function nr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return n?.type==="SwitchStatement"&&n.cases.length===0&&!r&&t===n.discriminant&&ve(u,P(e))==="}"?(ie(n,e),!0):!1}function rr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(n?.type==="WhileStatement"||n?.type==="WithStatement")&&r?ve(u,P(e))===")"?(R(t,e),!0):n.body===r?(_(r,e),!0):!1:!1}function vu(e,{comment:t,text:n,options:r}){if(fe(e)&&Bu(t,n)&&!et(t)){let u=he(r).slice(P(t),k(e));return/^[ \t]*$/.test(u)}return!1}function Rr(e,t){return _(vu(e,t)?e.types[0]:e,t.comment),!0}function rs(e){return[ur,Ju,ku,Mu,is,tr,rr,nr,Pu,wu,Zn,fs,ds,ar,Lu,Fs,Iu,ju,ss,Ts,or,ir,Ru].some(t=>t(e))}function us(e){return[ur,os,Mu,ku,Lu,tr,rr,nr,Pu,wu,Zn,ju,ys,ms,ar,Ou,hs,xs,Ss,or,vs,qu,bs,ir].some(t=>t(e))}function as(e){return[ur,Ju,tr,rr,nr,Zn,Iu,ar,Ou,or,cs,ls,gs,qu,ir,Ru].some(t=>t(e))}function os({comment:e,followingNode:t}){return t&&Yn(e)?(_(t,e),!0):!1}function Pu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n?.type!=="TryStatement"&&n?.type!=="CatchClause"||!r?!1:n.type==="CatchClause"&&t?(R(t,e),!0):r.type==="BlockStatement"?(Wt(r,e),!0):r.type==="TryStatement"?(kn(r.finalizer,e),!0):r.type==="CatchClause"?(kn(r.body,e),!0):!1}function is({comment:e,enclosingNode:t,followingNode:n}){return J(t)&&n?.type==="Identifier"?(_(t,e),!0):!1}function ss({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type==="ConditionalExpression"||We(t))?!1:n?.type==="ConditionalExpression"||We(n)?(ie(t,e),!0):!1}function ku({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=t&&!se(u,P(t),k(e));return(!t||!o)&&(n?.type==="ConditionalExpression"||We(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(Se(e)&&!se(a.originalText,k(e),P(e)))?(ie(n,e),!0):(_(r,e),!0):!1}var ps=v(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(ps(n)){let{decorators:u}=n;if(q(u)&&r?.type!=="Decorator")return R(N(0,u,-1),e),!0;if(n.body&&r===n.body)return Wt(n.body,e),!0;if(r){let{superClass:a}=n;if(a&&r===a&&t&&(t===n.id||t===n.typeParameters))return R(t,e),!0;for(let o of["implements","extends","mixins"])if(n[o]&&r===n[o][0])return t&&(t===n.id||t===n.typeParameters||t===a)?R(t,e):ie(n,e,o),!0}}return!1}var Xr=v(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function Iu({placement:e,comment:t,precedingNode:n,enclosingNode:r,followingNode:u,text:a}){return r&&n&&ve(a,P(t))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&n.type==="Identifier"&&r.key===n&&ve(a,P(n))!==":"?(R(n,t),!0):Xr(r)&&!u&&e==="remaining"?(R(ve(a,P(t))==="("?n:r,t),!0):n?.type==="Decorator"&&Xr(r)&&(Ue(t)||e==="ownLine")?(R(n,t),!0):!1}var Nu=v(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function ls({comment:e,precedingNode:t,enclosingNode:n,text:r}){return ve(r,P(e))!=="("?!1:t&&Nu(n)?(R(t,e),!0):!1}function cs({comment:e,enclosingNode:t,text:n}){if(t?.type!=="ArrowFunctionExpression")return!1;let r=Dn(n,P(e));return r!==!1&&n.slice(r,r+2)==="=>"?(ie(t,e,"commentBeforeArrow"),!0):!1}function Wr(e,t,n){let r=k(t),u=P(e);if(r>=u)return!1;let a=P(t),o=k(e);if(a<=o)return!1;let i=he(n);return i.slice(0,k(t)).trimEnd().endsWith("(")&&i.slice(P(t)).trimStart().startsWith(")")}var Ds=v(["ComponentDeclaration","DeclareComponent","ComponentTypeAnnotation"]);function ur({comment:e,enclosingNode:t,options:n}){if(!t)return!1;if(ft(t)&&Ce(t).length===0&&Wr(t,e,n))return ie(t,e),!0;let r=Xu(t)||Ds(t)||t.type==="HookTypeAnnotation"?t:t.type==="MethodDefinition"||t.type==="TSAbstractMethodDefinition"||t.type==="Property"&&Et(t)?t.value:void 0;return r&&oe(r).length===0&&Wr(r,e,n)?(ie(r,e),!0):!1}function Mu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return t?.type==="FunctionTypeParam"&&n?.type==="FunctionTypeAnnotation"&&r?.type!=="FunctionTypeParam"||t?.type==="ComponentTypeParameter"&&(n?.type==="DeclareComponent"||n?.type==="ComponentTypeAnnotation")&&r?.type!=="ComponentTypeParameter"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&(Xu(n)||(n?.type==="TSAbstractMethodDefinition"||n?.type==="MethodDefinition")&&n.value.type==="TSEmptyBodyFunctionExpression")&&ve(u,P(e))===")"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&(n?.type==="ComponentDeclaration"||n?.type==="DeclareComponent")&&ve(u,P(e))===")"?(R(t,e),!0):!Se(e)&&r?.type==="BlockStatement"&&Nu(n)&&(n.type==="MethodDefinition"?n.value.body:n.body)===r&&Dn(u,P(e))===k(r)?(Wt(r,e),!0):!1}function ju({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(_(t,e),!0):!1}function ys({comment:e,precedingNode:t,enclosingNode:n,options:r}){return Mt(n)&&n.callee===t&&n.arguments.length>0&&es(n,e,r)?(_(n.arguments[0],e),!0):!1}function fs({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return fe(n)?(et(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(R(t,e),!0):!1):(fe(r)&&et(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function ds({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type==="MatchOrPattern"?(et(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(R(t,e),!0):!1):(r&&r.type==="MatchOrPattern"&&et(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function ms({comment:e,enclosingNode:t}){return Ge(t)?(_(t,e),!0):!1}function ar({comment:e,enclosingNode:t,ast:n,isLastComment:r}){return n?.body?.length===0?(r?ie(n,e):_(n,e),!0):t?.type==="Program"&&t.body.length===0&&!q(t.directives)?(r?ie(t,e):_(t,e),!0):!1}function Lu({comment:e,precedingNode:t,enclosingNode:n,text:r}){if(n?.type==="ImportSpecifier"||n?.type==="ExportSpecifier")return _(n,e),!0;let u=t?.type==="ImportSpecifier"&&n?.type==="ImportDeclaration",a=t?.type==="ExportSpecifier"&&n?.type==="ExportNamedDeclaration";return(u||a)&&K(r,P(e))?(R(t,e),!0):!1}function Fs({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(_(t,e),!0):!1}var Es=v(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),As=v(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Ou(e){let{comment:t,enclosingNode:n,followingNode:r,options:u,placement:a}=e;if(Es(n)&&r&&a==="endOfLine"&&(As(r)||Se(t)))return Rr(r,e);if(Su(n)&&r){let o=n.id,i=he(u).indexOf("=",P(o));if(k(t)>=i)return Rr(r,e)}return!1}function gs({comment:e,enclosingNode:t,precedingNode:n,followingNode:r,text:u}){return!r&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!n||n!==t.returnType)&&ve(u,P(e))===";"?(R(t,e),!0):!1}function Ju({comment:e,enclosingNode:t,followingNode:n}){if(et(e)&&t?.type==="TSMappedType"&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Cs(e,t,n){let r=he(n).indexOf("[",k(e));return P(t)<r}function or({comment:e,enclosingNode:t,options:n}){if(t?.type==="TSMappedType"&&Cs(t,e,n))return ie(t,e),!0}function hs({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!=="SwitchCase"||t.test||!n||n!==t.consequent[0]?!1:(n.type==="BlockStatement"&&Ue(e)?Wt(n,e):ie(t,e),!0)}function xs({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return fe(t)&&(bi(n)&&!r||Xt(n)||fe(n))?(R(N(0,t.types,-1),e),!0):!1}function Ts({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&r?.type==="TSTypeAnnotation")return n?R(n,e):ie(t,e),!0}function Ss({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return!r&&n?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&se(u,k(n.argument),k(t.right))&&er(e,u)&&!se(u,k(t.right),k(e))?(R(t.right,e),!0):!1}function bs({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(fe(t)||Xt(t)))return _(t,n),!0}function ir({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:u}){if(xe(e)&&t===e.expression&&!er(r,u))return n?_(n,r):R(e,r),!0}function Bs(e,t,n){let r=he(n).lastIndexOf("=>",k(t.body));return P(e)<r}function vs({comment:e,enclosingNode:t,followingNode:n,precedingNode:r,options:u}){return t?.type!=="ArrowFunctionExpression"||!n||!r||Bs(e,t,u)?!1:(kn(n,e),!0)}function qu({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if(!r&&t&&n){if(t.type==="ExpressionStatement"&&t.expression===n)return R(t,e),!0;let u=n.type==="SequenceExpression",a=n.type==="AssignmentExpression";if((u||a)&&(t.type==="ArrowFunctionExpression"&&t.body===n||t.type==="VariableDeclarator"&&t.init===n||t.type==="ReturnStatement"&&t.argument===n||t.type==="AssignmentExpression"&&t.right===n))return R(u?N(0,n.expressions,-1):n.right,e),!0}return!1}function Ru(e){let{followingNode:t,comment:n}=e;return vu(t,e)?(_(t.types[0],n),!0):!1}var Xu=v(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod","HookDeclaration"]),Ps={endOfLine:us,ownLine:rs,remaining:as},ks=Ps;function ws(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Q(0,e,/[\s(]/g,""),e===""||e==="/*"||e==="/*::"}var Is=ws,b={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Wu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(n,r,u)=>!(e&b.Leading&&!n.leading||e&b.Trailing&&!n.trailing||e&b.Dangling&&(n.leading||n.trailing)||e&b.Block&&!Se(n)||e&b.Line&&!Ue(n)||e&b.First&&r!==0||e&b.Last&&r!==u.length-1||e&b.PrettierIgnore&&!et(n)||t&&!t(n))};function C(e,t,n){if(!q(e?.comments))return!1;let r=Wu(t,n);return r?e.comments.some(r):!0}function ye(e,t,n){if(!Array.isArray(e?.comments))return[];let r=Wu(t,n);return r?e.comments.filter(r):e.comments}function yn(e){return e?.prettierIgnore||C(e,b.PrettierIgnore)}function _u(e){let{node:t}=e;return(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression")&&(e.key==="callee"&&O(e.parent)||e.key==="tag"&&e.parent.type==="TaggedTemplateExpression")}var Ns=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(n=>[n,t])));function nn(e){return Ns.get(e)}var _r={"==":!0,"!=":!0,"===":!0,"!==":!0},zt={"*":!0,"/":!0,"%":!0},wn={">>":!0,">>>":!0,"<<":!0};function sr(e,t){return!(nn(t)!==nn(e)||e==="**"||_r[e]&&_r[t]||t==="%"&&zt[e]||e==="%"&&zt[t]||t!==e&&zt[t]&&zt[e]||wn[e]&&wn[t])}function Ms(e){return!!wn[e]||e==="|"||e==="^"||e==="&"}function js(e){return e.type==="LogicalExpression"&&e.operator==="??"}function re(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return re(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return re(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:re(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:re(e.callee,t);case"ConditionalExpression":return re(e.test,t);case"UpdateExpression":return!e.prefix&&re(e.argument,t);case"BindExpression":return e.object&&re(e.object,t);case"SequenceExpression":return re(e.expressions[0],t);case"ChainExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return re(e.expression,t);default:return t(e)}}function Ls(e){let{key:t,parent:n}=e;return t==="expression"&&n.type==="TSNonNullExpression"||t==="object"&&n.type==="MemberExpression"&&!n.optional||t==="callee"&&n.type==="CallExpression"&&!n.optional||t==="callee"&&n.type==="NewExpression"||t==="tag"&&n.type==="TaggedTemplateExpression"}var $r=e=>e.extra?.parenthesized,Os=v(["OptionalCallExpression","OptionalMemberExpression"]);function Js(e){let{node:t}=e,n=t;for(;n.type==="TSNonNullExpression";)if(n=n.expression,$r(n))return!1;return Os(n)?$r(t)?!0:!(e.key==="expression"&&e.parent.type==="TSNonNullExpression"):!1}function qs(e){return(e.node.type==="ChainExpression"||Js(e))&&Ls(e)}function Rs(e){let{node:t}=e;if(t.type!=="Identifier")return!1;if(t.extra?.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.name))return!0;let{key:n,parent:r}=e;if(n==="left"&&(t.name==="async"&&!r.await||t.name==="let")&&r.type==="ForOfStatement")return!0;if(t.name==="let"){let u=e.findAncestor(a=>a.type==="ForOfStatement"||a.type==="ForInStatement")?.left;if(u&&re(u,a=>a===t))return!0}if(n==="object"&&t.name==="let"&&r.type==="MemberExpression"&&r.computed&&!r.optional){let u=e.findAncestor(o=>o.type==="ExpressionStatement"||o.type==="ForStatement"||o.type==="ForInStatement"),a=u?u.type==="ExpressionStatement"?u.expression:u.type==="ForStatement"?u.init:u.left:void 0;if(a&&re(a,o=>o===t))return!0}if(n==="expression")switch(t.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let u=e.findAncestor(a=>!xe(a));if(u!==r&&u.type==="ExpressionStatement")return!0}}return!1}function Xs(e){return e!==null&&typeof e=="object"}var $u=Xs;function*Ws(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,u=a=>$u(a)&&r(a);for(let a of n(e)){let o=e[a];if(Array.isArray(o))for(let i of o)u(i)&&(yield i);else u(o)&&(yield o)}}function*_s(e,t){let n=[e];for(let r=0;r<n.length;r++){let u=n[r];for(let a of Ws(u,t))yield a,n.push(a)}}function $s(e,{getVisitorKeys:t,predicate:n}){for(let r of _s(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var Bt=null;function kt(e){if(Bt!==null&&typeof Bt.property){let t=Bt;return Bt=kt.prototype=null,t}return Bt=kt.prototype=e??Object.create(null),new kt}var Us=10;for(let e=0;e<=Us;e++)kt();function Gs(e){return kt(e)}function Vs(e,t="type"){Gs(e);function n(r){let u=r[t],a=e[u];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${u}'.`),{node:r});return a}return n}var Uu=Vs,l=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],Ks={ArrayExpression:l[0],AssignmentExpression:l[1],BinaryExpression:l[1],InterpreterDirective:[],Directive:l[2],DirectiveLiteral:[],BlockStatement:l[3],BreakStatement:l[4],CallExpression:l[5],CatchClause:["param","body"],ConditionalExpression:l[6],ContinueStatement:l[4],DebuggerStatement:[],DoWhileStatement:l[7],EmptyStatement:[],ExpressionStatement:l[8],File:["program"],ForInStatement:l[9],ForStatement:["init","test","update","body"],FunctionDeclaration:l[10],FunctionExpression:l[10],Identifier:["typeAnnotation","decorators"],IfStatement:l[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:l[1],MemberExpression:l[11],NewExpression:l[5],Program:l[3],ObjectExpression:l[12],ObjectMethod:l[13],ObjectProperty:l[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:l[15],SequenceExpression:l[16],ParenthesizedExpression:l[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:l[15],TryStatement:["block","handler","finalizer"],UnaryExpression:l[15],UpdateExpression:l[15],VariableDeclaration:["declarations"],VariableDeclarator:l[17],WhileStatement:l[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:l[18],ClassExpression:l[19],ClassDeclaration:l[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:l[20],ExportSpecifier:["local","exported"],ForOfStatement:l[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:l[21],ImportNamespaceSpecifier:l[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:l[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:l[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:l[15],AwaitExpression:l[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:l[22],OptionalMemberExpression:l[11],OptionalCallExpression:l[5],ClassProperty:l[23],ClassPrivateProperty:l[23],ClassPrivateMethod:l[13],PrivateName:l[24],StaticBlock:l[18],ImportAttribute:l[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:l[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:l[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:l[28],DeclareModule:l[29],DeclareModuleExports:l[30],DeclareTypeAlias:l[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:l[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:l[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:l[32],GenericTypeAnnotation:l[27],InferredPredicate:[],InterfaceExtends:l[27],InterfaceDeclaration:l[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:l[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:l[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:l[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:l[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:l[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:l[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:l[31],TypeAnnotation:l[30],TypeCastExpression:l[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:l[37],TypeParameterInstantiation:l[37],UnionTypeAnnotation:l[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:l[29],EnumBooleanBody:l[38],EnumNumberBody:l[38],EnumStringBody:l[38],EnumSymbolBody:l[38],EnumBooleanMember:l[17],EnumNumberMember:l[17],EnumStringMember:l[17],EnumDefaultedMember:l[24],IndexedAccessType:l[39],OptionalIndexedAccessType:l[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:l[8],JSXSpreadChild:l[8],JSXIdentifier:[],JSXMemberExpression:l[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:l[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:l[40],Decorator:l[8],DoExpression:l[18],ExportDefaultSpecifier:l[22],ModuleExpression:l[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:l[41],TSDeclareMethod:l[42],TSQualifiedName:l[1],TSCallSignatureDeclaration:l[43],TSConstructSignatureDeclaration:l[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:l[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:l[43],TSConstructorType:l[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:l[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:l[38],TSArrayType:l[26],TSTupleType:l[35],TSOptionalType:l[30],TSRestType:l[30],TSNamedTupleMember:["label","elementType"],TSUnionType:l[33],TSIntersectionType:l[33],TSConditionalType:l[45],TSInferType:l[46],TSParenthesizedType:l[30],TSTypeOperator:l[30],TSIndexedAccessType:l[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:l[47],TSClassImplements:l[48],TSInterfaceHeritage:l[48],TSInterfaceDeclaration:l[28],TSInterfaceBody:l[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:l[48],TSAsExpression:l[36],TSSatisfiesExpression:l[36],TSTypeAssertion:l[36],TSEnumBody:l[38],TSEnumDeclaration:l[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:l[29],TSModuleBlock:l[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:l[8],TSNonNullExpression:l[8],TSExportAssignment:l[8],TSNamespaceExportDeclaration:l[24],TSTypeAnnotation:l[30],TSTypeParameterInstantiation:l[37],TSTypeParameterDeclaration:l[37],TSTypeParameter:["name","constraint","default"],ChainExpression:l[8],Literal:[],MethodDefinition:l[14],PrivateIdentifier:[],Property:l[25],PropertyDefinition:l[23],AccessorProperty:l[40],TSAbstractAccessorProperty:l[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:l[25],TSAbstractPropertyDefinition:l[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:l[8],AsExpression:l[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:l[32],ConditionalTypeAnnotation:l[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:l[29],DeclareHook:l[24],DeclareNamespace:l[29],EnumBigIntBody:l[38],EnumBigIntMember:l[17],EnumBody:l[38],HookDeclaration:l[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:l[46],KeyofTypeAnnotation:l[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:l[24],MatchExpression:l[50],MatchExpressionCase:l[51],MatchIdentifierPattern:l[24],MatchInstanceObjectPattern:l[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:l[47],MatchMemberPattern:["base","property"],MatchObjectPattern:l[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:l[15],MatchStatement:l[50],MatchStatementCase:l[51],MatchUnaryPattern:l[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:l[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:l[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:l[12],SatisfiesExpression:l[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:l[30],TypePredicate:l[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:l[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:l[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:l[25],NGRoot:l[53],JsExpressionRoot:l[53],JsonRoot:l[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:l[30],TSJSDocNonNullableType:l[30]},Hs=Uu(Ks),Gu=Hs;function In(e,t){return t(e)||$s(e,{getVisitorKeys:Gu,predicate:t})}function pr(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||O(e)||J(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||xe(e)||rt(e)}function zs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Vu(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 new Error("Unexpected node has no left side.")}function Me(e,t){return Y(t)?yn(t):C(t,b.Leading,n=>K(e,P(n)))}function Qs(e,t){if(Me(t.originalText,e)||C(e,b.Leading,n=>se(t.originalText,k(n),P(n)))&&!Y(e))return!0;if(pr(e)){let n=e,r;for(;r=zs(n);)if(n=r,Me(t.originalText,n))return!0}return!1}var Ys=new WeakMap;function Ku(e,t){return ge(Ys,e,n=>Qs(n,t))}function Ve(e){for(;rt(e);)e=e.expression;return e}function Zs(e,t,n){let{node:r,key:u,parent:a}=e;switch(a.type){case"ReturnStatement":case"ThrowStatement":if(ep(e,t))return!1;break;case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(u==="superClass"){let o=Ve(r);if(o.type==="ArrowFunctionExpression"||o.type==="AssignmentExpression"||o.type==="AwaitExpression"||o.type==="BinaryExpression"||o.type==="ConditionalExpression"||o.type==="LogicalExpression"||o.type==="NewExpression"||o.type==="ObjectExpression"||o.type==="SequenceExpression"||o.type==="TaggedTemplateExpression"||o.type==="UnaryExpression"||o.type==="UpdateExpression"||o.type==="YieldExpression"||o.type==="ClassExpression"&&q(o.decorators))return!0}break;case"ExportDefaultDeclaration":if(Hu(e,t,n))return!0;break;case"Decorator":if(u==="expression"&&!tp(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(o,i)=>i==="returnType"&&o.type==="ArrowFunctionExpression")&&!(r.type==="NullableTypeAnnotation"&&e.call(()=>n(e,t),"typeAnnotation"))&&np(r))return!0;break;case"VariableDeclarator":if(u==="init"&&e.match(void 0,void 0,(o,i)=>i==="declarations"&&o.type==="VariableDeclaration",(o,i)=>i==="left"&&o.type==="ForInStatement"))return!0;break;case"TSInstantiationExpression":if(u==="expression"&&(r.type==="AwaitExpression"||r.type==="YieldExpression"))return!0;break}}function ep(e,t){let{key:n,parent:r}=e;if(!(n==="argument"&&yt(r)))return!1;let{node:u}=e;return!!((u.type==="SequenceExpression"||u.type==="AssignmentExpression")&&Ku(u,t))}function Hu(e,t,n){let{node:r,parent:u}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?u.type==="ExportDefaultDeclaration"||!n(e,t):!pr(r)||u.type!=="ExportDefaultDeclaration"&&n(e,t)?!1:e.call(()=>Hu(e,t,n),...Vu(r))}function tp(e){return e.type==="ChainExpression"&&(e=e.expression),Nn(e)||O(e)&&!e.optional&&Nn(e.callee)}function Nn(e){return e.type==="Identifier"?!0:J(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Nn(e.object):!1}function np(e){return In(e,t=>t.type==="ObjectTypeAnnotation"&&In(t,n=>n.type==="FunctionTypeAnnotation"))}function zu(e,t){if(e.isRoot)return!1;let{node:n,key:r,parent:u}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&ap(n)&&Pt(e))return!0;if(rp(n))return!1;if(n.type==="Identifier")return Rs(e);if(n.type==="ObjectExpression"||n.type==="FunctionExpression"||n.type==="ClassExpression"||n.type==="DoExpression"){let o=e.findAncestor(i=>i.type==="ExpressionStatement")?.expression;if(o&&re(o,i=>i===n))return!0}if(n.type==="ObjectExpression"){let o=e.findAncestor(i=>i.type==="ArrowFunctionExpression")?.body;if(o&&o.type!=="SequenceExpression"&&o.type!=="AssignmentExpression"&&re(o,i=>i===n))return!0}let a=Zs(e,t,zu);if(typeof a=="boolean")return a;switch(n.type){case"UpdateExpression":if(u.type==="UnaryExpression")return n.prefix&&(n.operator==="++"&&u.operator==="+"||n.operator==="--"&&u.operator==="-");case"UnaryExpression":switch(u.type){case"UnaryExpression":return n.operator===u.operator&&(n.operator==="+"||n.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"BinaryExpression":return r==="left"&&n.type==="UnaryExpression"&&(u.operator==="in"||u.operator==="instanceof")?!0:r==="left"&&u.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(u.type==="UpdateExpression"||n.operator==="in"&&up(e))return!0;if(n.operator==="|>"&&n.extra?.parenthesized){let o=e.grandparent;if(o.type==="BinaryExpression"&&o.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(u.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!xe(n);case"ConditionalExpression":return xe(n)||js(n);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return r==="callee";case"ClassExpression":case"ClassDeclaration":return r==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"UnaryExpression":if(!C(n))return!0;break;case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"AssignmentExpression":case"AssignmentPattern":return r==="left"&&(n.type==="TSTypeAssertion"||xe(n));case"LogicalExpression":if(n.type==="LogicalExpression")return u.operator!==n.operator;case"BinaryExpression":{let{operator:o,type:i}=n;if(!o&&i!=="TSTypeAssertion")return!0;let s=nn(o),p=u.operator,c=nn(p);return!!(c>s||r==="right"&&c===s||c===s&&!sr(p,o)||c<s&&o==="%"&&(p==="+"||p==="-")||Ms(p))}default:return!1}break;case"SequenceExpression":return u.type!=="ForStatement";case"YieldExpression":if(u.type==="AwaitExpression"||u.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(u.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 r==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"ConditionalExpression":return r==="test";case"BinaryExpression":return!(!n.argument&&u.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(o=>o.type==="TSFunctionType",(o,i)=>i==="typeAnnotation"&&o.type==="TSTypeAnnotation",(o,i)=>i==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(r==="extendsType"&&We(n)&&u.type===n.type||r==="constraint"&&n.type==="TSConditionalType"&&u.type==="TSTypeParameter"||r==="typeAnnotation"&&n.type==="ConditionalTypeAnnotation"&&u.type==="TypeAnnotation"&&e.grandparent.type==="TypeParameter"&&e.grandparent.bound===u&&e.grandparent.usesExtendsBound||r==="checkType"&&We(u))return!0;if(r==="extendsType"&&u.type==="TSConditionalType"){let{typeAnnotation:o}=n.returnType||n.typeAnnotation;if(o.type==="TSTypePredicate"&&o.typeAnnotation&&(o=o.typeAnnotation.typeAnnotation),o.type==="TSInferType"&&o.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(fe(u)||Xt(u))return!0;case"TSInferType":if(n.type==="TSInferType"){if(u.type==="TSRestType")return!1;if(r==="types"&&(u.type==="TSUnionType"||u.type==="TSIntersectionType")&&n.typeParameter.type==="TSTypeParameter"&&n.typeParameter.constraint)return!0}case"TSTypeOperator":return u.type==="TSArrayType"||u.type==="TSOptionalType"||u.type==="TSRestType"||r==="objectType"&&u.type==="TSIndexedAccessType"||u.type==="TSTypeOperator"||u.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return r==="objectType"&&u.type==="TSIndexedAccessType"||r==="elementType"&&u.type==="TSArrayType";case"TypeOperator":return u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType")||u.type==="TypeOperator";case"TypeofTypeAnnotation":case"KeyofTypeAnnotation":return r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType")||r==="elementType"&&u.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return u.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return u.type==="TypeOperator"||u.type==="KeyofTypeAnnotation"||u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="UnionTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":if(u.type==="ArrayTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType"))return!0;break;case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(n.type==="ComponentTypeAnnotation"&&(n.rendersType===null||n.rendersType===void 0))return!1;if(e.match(void 0,(i,s)=>s==="typeAnnotation"&&i.type==="TypeAnnotation",(i,s)=>s==="returnType"&&i.type==="ArrowFunctionExpression")||e.match(void 0,(i,s)=>s==="typeAnnotation"&&i.type==="NullableTypeAnnotation",(i,s)=>s==="typeAnnotation"&&i.type==="TypeAnnotation",(i,s)=>s==="returnType"&&i.type==="ArrowFunctionExpression")||e.match(void 0,(i,s)=>s==="typeAnnotation"&&i.type==="TypePredicate",(i,s)=>s==="typeAnnotation"&&i.type==="TypeAnnotation",(i,s)=>s==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;let o=u.type==="NullableTypeAnnotation"?e.grandparent:u;return o.type==="UnionTypeAnnotation"||o.type==="IntersectionTypeAnnotation"||o.type==="ArrayTypeAnnotation"||r==="objectType"&&(o.type==="IndexedAccessType"||o.type==="OptionalIndexedAccessType")||r==="checkType"&&u.type==="ConditionalTypeAnnotation"||r==="extendsType"&&u.type==="ConditionalTypeAnnotation"&&n.returnType?.type==="InferTypeAnnotation"&&n.returnType.typeParameter.bound||o.type==="NullableTypeAnnotation"||u.type==="FunctionTypeParam"&&u.name===null&&oe(n).some(i=>i.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return r==="objectType"&&u.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof n.value=="string"&&u.type==="ExpressionStatement"&&typeof u.directive!="string"){let o=e.grandparent;return o.type==="Program"||o.type==="BlockStatement"}return r==="object"&&J(u)&&ke(n);case"AssignmentExpression":return!((r==="init"||r==="update")&&u.type==="ForStatement"||r==="expression"&&n.left.type!=="ObjectPattern"&&u.type==="ExpressionStatement"||r==="key"&&u.type==="TSPropertySignature"||u.type==="AssignmentExpression"||r==="expressions"&&u.type==="SequenceExpression"&&e.match(void 0,void 0,(o,i)=>(i==="init"||i==="update")&&o.type==="ForStatement")||r==="value"&&u.type==="Property"&&e.match(void 0,void 0,(o,i)=>i==="properties"&&o.type==="ObjectPattern")||u.type==="NGChainedExpression"||r==="node"&&u.type==="JsExpressionRoot");case"ConditionalExpression":switch(u.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":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 r==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:r==="test";case"MemberExpression":case"OptionalMemberExpression":return r==="object";default:return!1}case"FunctionExpression":switch(u.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"TaggedTemplateExpression":return!0;case"ExportDefaultDeclaration":return r==="declaration";default:return!1}case"ArrowFunctionExpression":switch(u.type){case"BinaryExpression":return u.operator!=="|>"||n.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"MemberExpression":case"OptionalMemberExpression":return r==="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":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return r==="expression";case"ConditionalExpression":return r==="test";default:return!1}case"ClassExpression":switch(u.type){case"NewExpression":return r==="callee";case"ExportDefaultDeclaration":return r==="declaration";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"ChainExpression":case"TSNonNullExpression":if(qs(e))return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"ImportExpression":if(r==="callee"&&(u.type==="BindExpression"||u.type==="NewExpression")){let o=n;for(;o;)switch(o.type){case"CallExpression":case"ImportExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":o=o.object;break;case"TaggedTemplateExpression":o=o.tag;break;case"TSNonNullExpression":o=o.expression;break;default:return!1}}return!1;case"BindExpression":return r==="callee"&&(u.type==="BindExpression"||u.type==="NewExpression")||r==="object"&&J(u);case"NGPipeExpression":return!(u.type==="NGRoot"||u.type==="NGMicrosyntaxExpression"||u.type==="ObjectProperty"&&!n.extra?.parenthesized||ee(u)||r==="arguments"&&O(u)||r==="right"&&u.type==="NGPipeExpression"||r==="property"&&u.type==="MemberExpression"||u.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return r==="callee"||r==="left"&&u.type==="BinaryExpression"&&u.operator==="<"||!ee(u)&&u.type!=="ArrowFunctionExpression"&&u.type!=="AssignmentExpression"&&u.type!=="AssignmentPattern"&&u.type!=="BinaryExpression"&&u.type!=="ConditionalExpression"&&u.type!=="ExpressionStatement"&&u.type!=="JsExpressionRoot"&&u.type!=="JSXAttribute"&&u.type!=="JSXElement"&&u.type!=="JSXExpressionContainer"&&u.type!=="JSXFragment"&&u.type!=="LogicalExpression"&&!Mt(u)&&!Ge(u)&&!yt(u)&&u.type!=="TypeCastExpression"&&u.type!=="VariableDeclarator"&&u.type!=="YieldExpression"&&u.type!=="MatchExpressionCase"&&!(r==="declaration"&&u.type==="ExportDefaultDeclaration");case"TSInstantiationExpression":return r==="object"&&J(u);case"MatchOrPattern":return u.type==="MatchAsPattern"}return!1}var rp=v(["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"]);function up(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 ap(e){return Te(e)}function Pt(e){let{parent:t,key:n}=e;switch(t.type){case"NGPipeExpression":if(n==="arguments"&&e.isLast)return e.callParent(Pt);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(Pt);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Pt);break;case"UnaryExpression":if(t.prefix&&e.callParent(Pt))return!0;break}return!1}var ce=zu,ut="string",Le="array",At="cursor",at="indent",ot="align",it="trim",Ee="group",Ke="fill",Pe="if-break",st="indent-if-break",pt="line-suffix",He="line-suffix-boundary",pe="line",Je="label",qe="break-parent",Qu=new Set([At,at,ot,it,Ee,Ke,Pe,st,pt,He,pe,Je,qe]);function op(e){if(typeof e=="string")return ut;if(Array.isArray(e))return Le;if(!e)return;let{type:t}=e;if(Qu.has(t))return t}var ze=op,ip=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function sp(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
6
+ Expected it to be 'string' or 'object'.`;if(ze(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=ip([...Qu].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'.
7
+ Expected it to be ${r}.`}var pp=class extends Error{name="InvalidDocError";constructor(e){super(sp(e)),this.doc=e}},jt=pp,Ur={};function lp(e,t,n,r){let u=[e];for(;u.length>0;){let a=u.pop();if(a===Ur){n(u.pop());continue}n&&u.push(a,Ur);let o=ze(a);if(!o)throw new jt(a);if(t?.(a)!==!1)switch(o){case Le:case Ke:{let i=o===Le?a:a.parts;for(let s=i.length,p=s-1;p>=0;--p)u.push(i[p]);break}case Pe:u.push(a.flatContents,a.breakContents);break;case Ee:if(r&&a.expandedStates)for(let i=a.expandedStates.length,s=i-1;s>=0;--s)u.push(a.expandedStates[s]);else u.push(a.contents);break;case ot:case at:case st:case Je:case pt:u.push(a.contents);break;case ut:case At:case it:case He:case pe:case qe:break;default:throw new jt(a)}}}var lr=lp;function gt(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(a){return ge(n,a,u)}function u(a){switch(ze(a)){case Le:return t(a.map(r));case Ke:return t({...a,parts:a.parts.map(r)});case Pe:return t({...a,breakContents:r(a.breakContents),flatContents:r(a.flatContents)});case Ee:{let{expandedStates:o,contents:i}=a;return o?(o=o.map(r),i=o[0]):i=r(i),t({...a,contents:i,expandedStates:o})}case ot:case at:case st:case Je:case pt:return t({...a,contents:r(a.contents)});case ut:case At:case it:case He:case pe:case qe:return t(a);default:throw new jt(a)}}}function Yu(e,t,n){let r=n,u=!1;function a(o){if(u)return!1;let i=t(o);i!==void 0&&(u=!0,r=i)}return lr(e,a),r}function cp(e){if(e.type===Ee&&e.break||e.type===pe&&e.hard||e.type===qe)return!0}function ue(e){return Yu(e,cp,!1)}function Gr(e){if(e.length>0){let t=N(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Dp(e){let t=new Set,n=[];function r(a){if(a.type===qe&&Gr(n),a.type===Ee){if(n.push(a),t.has(a))return!1;t.add(a)}}function u(a){a.type===Ee&&n.pop().break&&Gr(n)}lr(e,r,u,!0)}function yp(e){return e.type===pe&&!e.hard?e.soft?"":" ":e.type===Pe?e.flatContents:e}function rn(e){return gt(e,yp)}function fp(e){switch(ze(e)){case Ke:{let{parts:t}=e;if(t.every(n=>n===""))return"";if(t.length===1)return t[0];break}case Ee:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ee&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ot:case at:case st:case pt:if(!e.contents)return"";break;case Pe:if(!e.flatContents&&!e.breakContents)return"";break;case Le:{let t=[];for(let n of e){if(!n)continue;let[r,...u]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof N(0,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case ut:case At:case it:case He:case pe:case Je:case qe:break;default:throw new jt(e)}return e}function cr(e){return gt(e,t=>fp(t))}function tt(e,t=Dr){return gt(e,n=>typeof n=="string"?M(t,n.split(`
8
+ `)):n)}function dp(e){if(e.type===pe)return!0}function mp(e){return Yu(e,dp,!1)}function Zu(e,t){return e.type===Je?{...e,contents:t(e.contents)}:t(e)}function Fp(e){let t=!0;return lr(e,n=>{switch(ze(n)){case ut:if(n==="")break;case it:case He:case pe:case qe:return t=!1,!1}}),t}var Ep=oi;function A(e){return{type:at,contents:e}}function de(e,t){return{type:ot,contents:t,n:e}}function Ap(e){return de(Number.NEGATIVE_INFINITY,e)}function gp(e){return de({type:"root"},e)}function ea(e){return de(-1,e)}function Cp(e,t,n){let r=e;if(t>0){for(let u=0;u<Math.floor(t/n);++u)r=A(r);r=de(t%n,r),r=de(Number.NEGATIVE_INFINITY,r)}return r}var Oe={type:qe},Qt={type:At};function ta(e){return{type:Ke,parts:e}}function D(e,t={}){return Ep(t.expandedStates),{type:Ee,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Ze(e,t){return D(e[0],{...t,expandedStates:e})}function I(e,t="",n={}){return{type:Pe,breakContents:e,flatContents:t,groupId:n.groupId}}function Lt(e,t){return{type:st,contents:e,groupId:t.groupId,negate:t.negate}}function M(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function _t(e,t){return e?{type:Je,label:e,contents:t}:t}var h={type:pe},m={type:pe,soft:!0},na={type:pe,hard:!0},E=[na,Oe],hp={type:pe,hard:!0,literal:!0},Dr=[hp,Oe];function Vr(e){return{type:pt,contents:e}}var Ae={type:He},xp="cr",Tp="crlf",Sp="\r",bp=`\r
9
+ `,Bp=`
10
+ `,vp=Bp;function Pp(e){return e===xp?Sp:e===Tp?bp:vp}var kp=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\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]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\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]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\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-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\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\uDE70]|\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\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]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\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,wp=12288,Ip=65510,Np=[12288,12288,65281,65376,65504,65510],Mp=4352,jp=262141,ra=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],ua=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let u=Math.floor((n+r)/2),a=u*2;if(t<e[a])r=u-1;else if(t>e[a+1])n=u+1;else return!0}return!1},Kr=19968,[Lp,Op]=Jp(ra);function Jp(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let u=e[r],a=e[r+1];if(Kr>=u&&Kr<=a)return[u,a];a-u>n-t&&(t=u,n=a)}return[t,n]}var qp=e=>e<wp||e>Ip?!1:ua(Np,e),Rp=e=>e>=Lp&&e<=Op?!0:e<Mp||e>jp?!1:ua(ra,e),Xp=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\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])$/,Wp=e=>Xp.test(e),_p=/[^\x20-\x7F]/;function $p(e){if(!e)return 0;if(!_p.test(e))return e.length;let t=0;e=e.replace(kp(),n=>(t+=Wp(n)?1:2,""));for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(t+=qp(r)||Rp(r)?2:1)}return t}var Ft=$p,Up={type:0},Gp={type:1},aa={value:"",length:0,queue:[],get root(){return aa}};function oa(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],u="",a=0,o=0,i=0;for(let f of r)switch(f.type){case 0:c(),n.useTabs?s(1):p(n.tabWidth);break;case 3:{let{string:S}=f;c(),u+=S,a+=S.length;break}case 2:{let{width:S}=f;o+=1,i+=S;break}default:throw new Error(`Unexpected indent comment '${f.type}'.`)}return g(),{...e,value:u,length:a,queue:r};function s(f){u+=" ".repeat(f),a+=n.tabWidth*f}function p(f){u+=" ".repeat(f),a+=f}function c(){n.useTabs?y():g()}function y(){o>0&&s(o),F()}function g(){i>0&&p(i),F()}function F(){o=0,i=0}}function Vp(e,t,n){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof t=="number"?t<0?r=Gp:r={type:2,width:t}:r={type:3,string:t},oa(e,r,n)}function Kp(e,t){return oa(e,Up,t)}function Hp(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===" "||r===" ")t++;else break}return t}function ia(e){let t=Hp(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var zp=class{#e=[];#t="";#r=0;#u=[];#n=[];#a(){let e=this.#t;e!==""&&(this.#e.push(e),this.#r+=e.length,this.#t="");for(let t of this.#n)this.#u.push(Math.min(t,this.#r));this.#n.length=0}markPosition(){if(this.#u.length+this.#n.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#n.push(this.#r+this.#t.length)}write(e){this.#t+=e}trim(){let{text:e,count:t}=ia(this.#t);return this.#t=e,this.#a(),t}finish(){return this.#a(),{text:this.#e.join(""),positions:this.#u}}},Qp=zp,Fe=Symbol("MODE_BREAK"),be=Symbol("MODE_FLAT"),Mn=Symbol("DOC_FILL_PRINTED_LENGTH");function Yt(e,t,n,r,u,a){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,i=!1,s=[e],p="";for(;n>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:c,doc:y}=s.pop(),g=ze(y);switch(g){case ut:y&&(i&&(p+=" ",n-=1,i=!1),p+=y,n-=Ft(y));break;case Le:case Ke:{let F=g===Le?y:y.parts,f=y[Mn]??0;for(let S=F.length-1;S>=f;S--)s.push({mode:c,doc:F[S]});break}case at:case ot:case st:case Je:s.push({mode:c,doc:y.contents});break;case it:{let{text:F,count:f}=ia(p);p=F,n+=f;break}case Ee:{if(a&&y.break)return!1;let F=y.break?Fe:c,f=y.expandedStates&&F===Fe?N(0,y.expandedStates,-1):y.contents;s.push({mode:F,doc:f});break}case Pe:{let F=(y.groupId?u[y.groupId]||be:c)===Fe?y.breakContents:y.flatContents;F&&s.push({mode:c,doc:F});break}case pe:if(c===Fe||y.hard)return!0;y.soft||(i=!0);break;case pt:r=!0;break;case He:if(r)return!1;break}}return!1}function sa(e,t){let n=Object.create(null),r=t.printWidth,u=Pp(t.endOfLine),a=0,o=[{indent:aa,mode:Fe,doc:e}],i=!1,s=[],p=new Qp;for(Dp(e);o.length>0;){let{indent:f,mode:S,doc:d}=o.pop();switch(ze(d)){case ut:{let x=u!==`
11
+ `?Q(0,d,`
12
+ `,u):d;x&&(p.write(x),o.length>0&&(a+=Ft(x)));break}case Le:for(let x=d.length-1;x>=0;x--)o.push({indent:f,mode:S,doc:d[x]});break;case At:p.markPosition();break;case at:o.push({indent:Kp(f,t),mode:S,doc:d.contents});break;case ot:o.push({indent:Vp(f,d.n,t),mode:S,doc:d.contents});break;case it:a-=p.trim();break;case Ee:{let x=(function(){if(S===be&&!i)return{indent:f,mode:d.break?Fe:be,doc:d.contents};i=!1;let B=r-a,T=s.length>0,j={indent:f,mode:be,doc:d.contents};if(!d.break&&Yt(j,o,B,T,n))return j;if(!d.expandedStates)return{indent:f,mode:Fe,doc:d.contents};if(!d.break)for(let L=1;L<d.expandedStates.length-1;L++){let U={indent:f,mode:be,doc:d.expandedStates[L]};if(Yt(U,o,B,T,n))return U}return{indent:f,mode:Fe,doc:N(0,d.expandedStates,-1)}})();o.push(x),d.id&&(n[d.id]=x.mode);break}case Ke:{let x=r-a,B=d[Mn]??0,{parts:T}=d,j=T.length-B;if(j===0)break;let L=T[B+0],U=T[B+1],te={indent:f,mode:be,doc:L},X={indent:f,mode:Fe,doc:L},z=Yt(te,[],x,s.length>0,n,!0);if(j===1){z?o.push(te):o.push(X);break}let G={indent:f,mode:be,doc:U},Ie={indent:f,mode:Fe,doc:U};if(j===2){z?o.push(G,te):o.push(Ie,X);break}let Re=T[B+2],w={indent:f,mode:S,doc:{...d,[Mn]:B+2}},V=Yt({indent:f,mode:be,doc:[L,U,Re]},[],x,s.length>0,n,!0);o.push(w),V?o.push(G,te):z?o.push(Ie,te):o.push(Ie,X);break}case Pe:case st:{let x=d.groupId?n[d.groupId]:S;if(x===Fe){let B=d.type===Pe?d.breakContents:d.negate?d.contents:A(d.contents);B&&o.push({indent:f,mode:S,doc:B})}if(x===be){let B=d.type===Pe?d.flatContents:d.negate?A(d.contents):d.contents;B&&o.push({indent:f,mode:S,doc:B})}break}case pt:s.push({indent:f,mode:S,doc:d.contents});break;case He:s.length>0&&o.push({indent:f,mode:S,doc:na});break;case pe:switch(S){case be:if(!d.hard){d.soft||(p.write(" "),a+=1);break}i=!0;case Fe:if(s.length>0){o.push({indent:f,mode:S,doc:d},...s.reverse()),s.length=0;break}d.literal?(p.write(u),a=0,f.root&&(f.root.value&&p.write(f.root.value),a=f.root.length)):(p.trim(),p.write(u+f.value),a=f.length);break}break;case Je:o.push({indent:f,mode:S,doc:d.contents});break;case qe:break;default:throw new jt(d)}o.length===0&&s.length>0&&(o.push(...s.reverse()),s.length=0)}let{text:c,positions:y}=p.finish();if(y.length!==2)return{formatted:c};let[g,F]=y;return{formatted:c,cursorNodeStart:g,cursorNodeText:c.slice(g,F)}}var un=class extends Error{name="ArgExpansionBailout"};function yr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function Yp(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ji(e,r),r=zn(e,r),r=dt(e,r);return r=Qn(e,r),r=mt(e,r),r!==!1&&K(e,r)}var an=Yp,we=(e,{originalText:t})=>{let n=P(e);if(an(t,n))return!0;let r=ln(e);return r===n?!1:an(t,r)},Zp=v(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),pa=Zp,el=v(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function tl({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var la=tl;function fr(e){return la(e)||pa(e)||el(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function nl(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!cn(e,e.typeAnnotation)}function rl(e,t){let n=t.split(".");for(let r=n.length-1;r>=0;r--){let u=n[r];if(r===0)return e.type==="Identifier"&&e.name===u;if(r===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===u){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===u){e=e.object;continue}return!1}}function dr(e,t){return t.some(n=>rl(e,n))}var ul=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function al(e){return dr(e,ul)}function ol(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function gn(e){return O(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function il(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function fn(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let n=Ce(e);if(n.length===1){if(gn(e)&&fn(t))return Nt(n[0]);if(ol(e.callee))return gn(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||H(n[0]))&&al(e.callee))return n[2]&&!ke(n[2])?!1:(n.length===2?Nt(n[1]):il(n[1])&&oe(n[1]).length<=1)||gn(n[1]);return!1}function sl(e,t){let n=t-1;n=dt(e,n,{backwards:!0}),n=mt(e,n,{backwards:!0}),n=dt(e,n,{backwards:!0});let r=mt(e,n,{backwards:!0});return n!==r}var ca=sl,mr=()=>!0;function Fr(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function pl(e,t){let n=e.node,r=[Fr(e,t)],{printer:u,originalText:a,locStart:o,locEnd:i}=t;if(u.isBlockComment?.(n)){let p=" ";K(a,i(n))&&(K(a,o(n),{backwards:!0})?p=E:p=h),r.push(p)}else r.push(E);let s=mt(a,dt(a,i(n)));return s!==!1&&K(a,s)&&r.push(E),r}function ll(e,t,n){let r=e.node,u=Fr(e,t),{printer:a,originalText:o,locStart:i}=t,s=a.isBlockComment?.(r);if(n?.hasLineSuffix&&!n?.isBlock||K(o,i(r),{backwards:!0})){let p=ca(o,i(r));return{doc:Vr([E,p?E:"",u]),isBlock:s,hasLineSuffix:!0}}return!s||n?.hasLineSuffix?{doc:[Vr([" ",u]),Oe],isBlock:s,hasLineSuffix:!0}:{doc:[" ",u],isBlock:s,hasLineSuffix:!1}}function $(e,t,n={}){let{indent:r=!1,marker:u,filter:a=mr}=n,o=new Set(e.node?.comments?.filter(p=>!(p.leading||p.trailing||p.marker!==u||!a(p))));if(o.size===0)return"";let i=e.map(({node:p})=>o.has(p)?Fr(e,t):"","comments").filter(Boolean),s=M(E,i);return r?A([E,s]):s}function Er(e,t,n){let r=t[Symbol.for("printedComments")],u=n?.filter??mr,a=new Set(e.node?.comments?.filter(o=>!r?.has(o)&&o.leading&&u(o)));return a.size===0?"":e.map(({node:o})=>a.has(o)?pl(e,t):"","comments").filter(Boolean)}function Da(e,t,n){let r=e.node?.comments,u=new Set(r?.filter(c=>c.trailing)),a=t[Symbol.for("printedComments")],o=n?.filter??mr,i=new Set(r?.filter(c=>u.has(c)&&!a?.has(c)&&o(c)));if(i.size===0)return"";let s=[],p;return e.each(({node:c})=>{u.has(c)&&(p=ll(e,t,p),i.has(c)&&s.push(p.doc))},"comments"),s}function ya(e,t,n){return{leading:Er(e,t,n),trailing:Da(e,t,n)}}function ne(e,t,n,r){let u=Er(e,n,r),a=Da(e,n,r);return u||a?Zu(t,o=>[u,o,a]):t}function fa(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ae(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":O(t)||J(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function da(e){return e.node.definite||e.match(void 0,(t,n)=>n==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var cl=v(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),Dl=e=>{let{node:t}=e;return cl(t)?e.parent.type!=="DeclareExportDeclaration"&&!t.implicitDeclare:t.declare};function me(e){return Dl(e)?"declare ":""}var yl=v(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function dn({node:e}){return e.abstract||yl(e)?"abstract ":""}function mn(e){return e.accessibility?e.accessibility+" ":""}var Hr=e=>e.type==="UnaryExpression"&&e.operator==="!";function fl(e){return C(e)||!Hr(e)?!1:(e=e.argument,e=Hr(e)?e.argument:e,e.type==="LogicalExpression")}function Ar(e,t,n){let{node:r}=e,u=r.type==="WithStatement"?"object":"test",a=n(u);return fl(r[u])?a:D([A([m,a]),m])}function Fn(e,t,n){let{node:r}=e;return C(r,b.Dangling,n)?[A([m,$(e,t,{filter:n})]),C(r,b.Dangling|b.Line,n)?E:m]:""}function Qe(e,t="es5"){return fa(e,t)?I(","):""}function W(e){return e.semi?";":""}var dl=e=>e.mark!=="commentBeforeArrow";function lt(e,t,n,r,u){let a=e.node,o=oe(a),i=u&&a.typeParameters?n("typeParameters"):"";if(o.length===0)return[i,"(",Fn(e,t,dl),")"];let{parent:s}=e,p=fn(s),c=ma(a),y=[];if(ci(e,(F,f)=>{let S=f===o.length-1;S&&a.rest&&y.push("..."),y.push(n()),!S&&(y.push(","),p||c?y.push(" "):we(o[f],t)?y.push(E,E):y.push(h))}),r&&!Fl(e)){if(ue(i)||ue(y))throw new un;return D([rn(i),"(",rn(y),")"])}let g=o.every(F=>!q(F.decorators));return c&&g?[i,"(",...y,")"]:p?[i,"(",...y,")"]:(yr(s)||nl(s)||s.type==="TypeAlias"||s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="FunctionTypeAnnotation"&&s.returnType===a)&&o.length===1&&o[0].name===null&&a.this!==o[0]&&o[0].typeAnnotation&&a.typeParameters===null&&fr(o[0].typeAnnotation)&&!a.rest?t.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...y,")"]:y:[i,"(",A([m,...y]),!Di(a)&&e.root.type!=="NGRoot"?Qe(t,"all"):"",m,")"]}function ma(e){if(!e)return!1;let t=oe(e);if(t.length!==1)return!1;let[n]=t;return!C(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&_e(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&_e(n.typeAnnotation)&&n!==e.rest||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||Te(n.right)&&n.right.properties.length===0||ee(n.right)&&n.right.elements.length===0))}function ml(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function $t(e,t){let n=ml(e);if(!n)return!1;let r=e.typeParameters?.params;if(r){if(r.length>1)return!1;if(r.length===1){let u=r[0];if(u.constraint||u.default)return!1}}return oe(e).length===1&&(_e(n)||ue(t))}function Fl(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,n)=>{if(t.type==="CallExpression"&&n==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let r=t.callee.callee;return r.type==="Identifier"||r.type==="MemberExpression"&&!r.computed&&r.object.type==="Identifier"&&r.property.type==="Identifier"}return!1},(t,n)=>t.type==="VariableDeclarator"&&n==="init"||t.type==="ExportDefaultDeclaration"&&n==="declaration"||t.type==="TSExportAssignment"&&n==="expression"||t.type==="AssignmentExpression"&&n==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function El(e){let t=oe(e);return t.length>1&&t.some(n=>n.type==="TSParameterProperty")}function wt(e,t){return(t==="params"||t==="this"||t==="rest")&&ma(e)}var Al=/^[\$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]*$/,gl=e=>Al.test(e),Cl=gl;function hl(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var Ot=hl,Fa=Object.freeze({character:"'",codePoint:39}),Ea=Object.freeze({character:'"',codePoint:34}),xl=Object.freeze({preferred:Fa,alternate:Ea}),Tl=Object.freeze({preferred:Ea,alternate:Fa});function Aa(e,t){let{preferred:n,alternate:r}=t===!0||t==="'"?xl:Tl,{length:u}=e,a=0,o=0;for(let i=0;i<u;i++){let s=e.charCodeAt(i);s===n.codePoint?a++:s===r.codePoint&&o++}return(a>o?r:n).character}var Sl=/\\(["'\\])|(["'])/g;function bl(e,t){let n=t==='"'?"'":'"',r=Q(0,e,Sl,(u,a,o)=>a?a===n?n:u:o===t?"\\"+o:o);return t+r+t}var Bl=bl;function vl(e,t){let n=e.slice(1,-1),r;return t.parser==="json"||t.parser==="jsonc"||t.parser==="json-stringify"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?r='"':t.__isInHtmlAttribute?r="'":r=Aa(n,t.singleQuote),e.charAt(0)===r?e:Bl(n,r)}var nt=vl,ga=e=>e.type==="TSEnumMember",Ca=e=>ga(e)?"id":"key",Jt=e=>e[Ca(e)],ha=e=>!ga(e)&&e.computed;function xa(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var Pl=({parser:e})=>e==="typescript"||e==="babel-ts"||e==="oxc-ts";function kl(e,t){let n=Jt(e);if(n.type==="Identifier")return!0;if(!ke(n)||Pl(t))return!1;let r=Ot(De(n));return String(n.value)===r&&xa(r)}function Ta(e,t){let{parser:n}=t;if(n==="json"||n==="jsonc")return!1;let r=Jt(e);if(!H(r))return!1;let{value:u}=r;return nt(De(r),t).slice(1,-1)!==u?!1:!!(!(n==="babel-ts"&&e.type==="ClassProperty"||(n==="typescript"||n==="oxc-ts")&&e.type==="PropertyDefinition")&&Cl(u)||(n==="babel"||n==="acorn"||n==="oxc"||n==="espree"||n==="meriyah"||n==="__babel_estree")&&e.type!=="ImportAttribute"&&xa(u)&&String(Number(u))===u)}var wl=new WeakMap;function Sa(e,t){return ge(wl,e.parent,()=>e.siblings.some(n=>{if(ha(n))return!1;let r=Jt(n);return H(r)&&!Ta(n,t)}))}function Il(e,t){return(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Sa(e,t))&&kl(e.node,t)}function Nl(e,t){return(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Sa(e,t))&&Ta(e.node,t)}function $e(e,t,n){let{node:r}=e,u=Ca(r);if(ha(r))return["[",n(u),"]"];if(Il(e,t)){let a=Jt(r),o=nt(JSON.stringify(a.type==="Identifier"?a.name:String(a.value)),t);return e.call(()=>ne(e,o,t),u)}if(Nl(e,t)){let{value:a}=Jt(r),o=/^\d/.test(a)?Ot(a):a;return e.call(()=>ne(e,o,t),u)}return n(u)}var Ml=v(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),jl=v(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function ba(e){return e.key==="elementTypes"&&Gn(e.parent)&&e.parent.elementTypes.length>1}function En(e){let{types:t}=e;if(t.some(r=>C(r)))return!1;let n=t.find(r=>jl(r));return n?t.every(r=>r===n||Ml(r)):!1}function Ba(e){let{key:t,node:n,parent:r}=e;return!(En(n)||t==="types"&&fe(r)||t==="types"&&Xt(r)||ba(e))}function va(e,t,n,r){let{node:u}=e;if(En(u))return M(" | ",e.map(n,"types"));let a=D(e.map(({isFirst:o})=>{let i=o?I("| "):[h,"| "],s=n();return C(e.node,b.Leading)?[i,de(2,ne(e,s,t))]:[i,ne(e,de(2,s),t)]},"types"));return Ba(e)&&(a=ne(e,a,t)),ce(e,t)?D([A([m,a]),m]):ba(e)?D([A([I(["(",m]),a]),m,I(")")]):r?.assignmentLayout==="break-after-operator"||!Ll(e)?a:D(A([m,a]))}function Ll(e){let{key:t,parent:n}=e;return!(t==="typeAnnotation"&&n.type==="TSTypeAssertion"||t==="elementTypes"&&Gn(n)||(t==="trueType"||t==="falseType")&&We(n)||t==="params"&&Bi(n)||t==="typeAnnotation"&&n.type==="FunctionTypeParam"&&!n.name&&e.grandparent.this!==n||e.match(void 0,(r,u)=>u==="typeAnnotation"&&r.type==="FunctionTypeParam",(r,u)=>u==="params"&&r.type==="FunctionTypeAnnotation",(r,u)=>u==="value"&&r.type==="ObjectTypeProperty"&&yr(r)))}function Ol(e){return fr(e)||_e(e)?!0:fe(e)?En(e):!1}var Jl=new WeakSet;function Z(e,t,n="typeAnnotation"){let{node:{[n]:r}}=e;if(!r)return"";let u=!1;if(r.type==="TSTypeAnnotation"||r.type==="TypeAnnotation"){let a=e.call(Pa,n);(a==="=>"||a===":"&&C(r,b.Leading))&&(u=!0),Jl.add(r)}return u?[" ",t(n)]:t(n)}var Pa=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>(n==="returnType"||n==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>n==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function ka(e,t,n){let r=Pa(e);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}var ql=({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"&&Et(n));function gr(e,t,n,r){if(ql(e))return Cr(e,t,n);let{node:u}=e,a=!1;if(u.type==="FunctionExpression"&&r?.expandLastArg){let{parent:c}=e;O(c)&&(Ce(c).length>1||oe(u).every(y=>y.type==="Identifier"&&!y.typeAnnotation))&&(a=!0)}let o=lt(e,t,n,a),i=hr(e,n),s=$t(u,i),p=u.type==="HookDeclaration"?"hook":"function";return[me(e),u.async?"async ":"",p,u.generator?"*":""," ",u.id?n("id"):"",n("typeParameters"),D([s?D(o):o,i]),u.body?" ":"",n("body"),u.declare||!u.body?W(t):""]}function jn(e,t,n){let{node:r}=e,{kind:u}=r,a=r.value||r,o=[];return!u||u==="init"||u==="method"||u==="constructor"?a.async&&o.push("async "):o.push(u," "),a.generator&&o.push("*"),o.push($e(e,t,n),r.optional?"?":"",r===a?Cr(e,t,n):n("value")),o}function Cr(e,t,n){let{node:r}=e,u=lt(e,t,n),a=hr(e,n),o=El(r),i=$t(r,a),s=[n("typeParameters"),D([o?D(u,{shouldBreak:!0}):i?D(u):u,a])];return r.body?s.push(" ",n("body")):s.push(W(t)),s}function Rl(e){let t=oe(e);return t.length===1&&!e.typeParameters&&!C(e,b.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!C(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function wa(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:n}=e;return Rl(n)}return!1}function hr(e,t){let{node:n}=e,r=[Z(e,t,"returnType")];return n.predicate&&r.push(t("predicate")),r}function xr(e,t){if(t.semi)return!1;let{node:n}=e;if(n.type!=="ExpressionStatement"||Na(e,t)||ja(e,t)||Ma(e,t))return!1;let{key:r,parent:u}=e;return!!((r==="body"&&(u.type==="Program"||u.type==="BlockStatement"||u.type==="StaticBlock"||u.type==="TSModuleBlock")||r==="consequent"&&u.type==="SwitchCase")&&e.call(()=>Ia(e,t),"expression"))}function Ia(e,t){let{node:n}=e;switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"TSTypeAssertion":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!wa(e,t))return!0;break;case"UnaryExpression":{let{prefix:r,operator:u}=n;if(r&&(u==="+"||u==="-"))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(Y(n))return!0}return ce(e,t)?!0:pr(n)?e.call(()=>Ia(e,t),...Vu(n)):!1}var Tr=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function Na(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Tr(e)&&Y(e.node.expression)}function Ma(e,t){return t.__isHtmlInlineEventHandler&&Tr(e)}function ja(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Tr(e)}function La(e,t){if(!xr(e,t))return!1;let n=N(0,ye(e.node,b.Leading),-1);return!!(n&&Yn(n))}var Xl=v(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Wl(e,t){let{key:n,parent:r}=e;if(n==="types"&&fe(r)||n==="argument"&&r.type==="JSXSpreadAttribute"||n==="expression"&&r.type==="JSXSpreadChild"||n==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(n==="id"||n==="typeParameters")&&Xl(r)||n==="patterns"&&r.type==="MatchOrPattern"||_u(e))return!0;let{node:u}=e;return yn(u)?!1:u.type==="ExpressionStatement"?La(e,t):fe(u)?Ba(e):!!Y(u)}var _l=Wl;function $l(e,t,n=0){let r=0;for(let u=n;u<e.length;++u)e[u]===" "?r=r+t-r%t:r++;return r}var Ul=$l;function Gl(e,t){let n=e.lastIndexOf(`
13
+ `);return n===-1?0:Ul(e.slice(n+1).match(/^[\t ]*/)[0],t)}var Vl=Gl;function Oa(e,t,n){if(Zl(e)){let a=Hl(e,t,n);if(a)return a}let r=Ut(e,t,n),u=e.map(({isLast:a,index:o})=>[n(),a?"":r[o]],"quasis");return[Ae,"`",...u,"`"]}function Kl(e,t,n){let r=n("quasi"),{node:u}=e,a="",o=ye(u.quasi,b.Leading)[0];return o&&(se(t.originalText,P(u.typeArguments??u.tag),k(o))?a=m:a=" "),_t(r.label&&{tagged:!0,...r.label},[n("tag"),n("typeArguments"),a,Ae,r])}function Hl(e,t,n){let{node:r}=e,u=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some(a=>a.length>0)){t.__inJestEach=!0;let a=Ut(e,t,n);t.__inJestEach=!1;let o=a.map(y=>sa(y,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted),i=[{hasLineBreak:!1,cells:[]}];for(let y=1;y<r.quasis.length;y++){let g=N(0,i,-1),F=o[y-1];g.cells.push(F),F.includes(`
14
+ `)&&(g.hasLineBreak=!0),r.quasis[y].value.raw.includes(`
15
+ `)&&i.push({hasLineBreak:!1,cells:[]})}let s=Math.max(u.length,...i.map(y=>y.cells.length)),p=Array.from({length:s},()=>0),c=[{cells:u},...i.filter(y=>y.cells.length>0)];for(let y of c)if(!y.hasLineBreak)for(let[g,F]of y.cells.entries())p[g]=Math.max(p[g],Ft(F));return[Ae,"`",A([E,M(E,c.map(y=>M(" | ",y.cells.map((g,F)=>y.hasLineBreak?g:g+" ".repeat(p[F]-Ft(g))))))]),E,"`"]}}var zl=new WeakMap;function Ql(e,t){let{parent:n,index:r}=e;return ge(zl,n,u=>{let{tabWidth:a}=t,o=0;return u.quasis.map(i=>{let s=i.value.raw,p=s.includes(`
16
+ `)?Vl(s,a):o;return o=p,{indentSize:p,previousQuasiText:s}})})[r]}function Yl(e,t,n){let{node:r,index:u}=e,a=n(),o=e.parent,{quasis:i}=o,s=P(i[u]),p=k(i[u+1]),c=se(t.originalText,s,p);if(!c){let F=sa(a,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;F.includes(`
17
+ `)?c=!0:a=F}c&&(C(r)||r.type==="Identifier"||J(Ve(r))||r.type==="ConditionalExpression"||r.type==="SequenceExpression"||xe(r)||je(r))&&(a=[A([m,a]),m]);let{indentSize:y,previousQuasiText:g}=Ql(e,t);return t.__inJestEach&&(y=Math.max(y,t.tabWidth)),a=y===0&&g.endsWith(`
18
+ `)?de(Number.NEGATIVE_INFINITY,a):Cp(a,y,t.tabWidth),D(["${",a,Ae,"}"])}function Ut(e,t,n){return e.map(()=>Yl(e,t,n),e.node.type==="TSTemplateLiteralType"?"types":"expressions")}function Ja(e,t){return gt(e,n=>typeof n=="string"?t?Q(0,n,/(\\*)`/g,"$1$1\\`"):qa(n):n)}function qa(e){return Q(0,e,/([\\`]|\$\{)/g,"\\$1")}var zr=/^[fx]?(?:describe|it|test)$/;function Zl({node:e,parent:t}){return e.type==="TemplateLiteral"&&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"&&zr.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"&&zr.test(t.tag.object.object.name))}var Ln=[(e,t)=>t==="properties"&&e.type==="ObjectExpression",(e,t)=>t==="arguments"&&e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component",(e,t)=>t==="expression"&&e.type==="Decorator"];function ec(e){let t=r=>r.type==="TemplateLiteral",n=(r,u)=>Ge(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="styles"&&u==="value";return e.match(t,(r,u)=>ee(r)&&u==="elements",n,...Ln)||e.match(t,n,...Ln)}function tc(e){return e.match(t=>t.type==="TemplateLiteral",(t,n)=>Ge(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&n==="value",...Ln)}function Cn(e,t){return C(e,b.Block|b.Leading,({value:n})=>n===` ${t} `)}function Ra({node:e,parent:t},n){return Cn(e,n)||nc(t)&&Cn(t,n)||t.type==="ExpressionStatement"&&Cn(t,n)}function nc(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function rc(e,t,n,r){let{node:u}=n,a="";for(let[p,c]of u.quasis.entries()){let{raw:y}=c.value;p>0&&(a+="@prettier-placeholder-"+(p-1)+"-id"),a+=y}let o=await e(a,{parser:"scss"}),i=Ut(n,r,t),s=uc(o,i);if(!s)throw new Error("Couldn't insert all the expressions");return["`",A([E,s]),m,"`"]}function uc(e,t){if(!q(t))return e;let n=0,r=gt(cr(e),u=>typeof u!="string"||!u.includes("@prettier-placeholder")?u:u.split(/@prettier-placeholder-(\d+)-id/).map((a,o)=>o%2===0?tt(a):(n++,t[a])));return t.length===n?r:null}function ac(e){return e.match(void 0,(t,n)=>n==="quasi"&&t.type==="TaggedTemplateExpression"&&dr(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer",(t,n)=>n==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(r=>r.type==="JSXAttribute"&&r.name.type==="JSXIdentifier"&&r.name.name==="jsx"))}function Zt(e){return e.type==="Identifier"&&e.name==="styled"}function Qr(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function oc({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 Zt(t.object)||Qr(t);case"CallExpression":return Zt(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Zt(t.callee.object.object)||Qr(t.callee.object))||t.callee.object.type==="CallExpression"&&Zt(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function ic({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var sc=e=>ac(e)||oc(e)||ic(e)||ec(e);async function pc(e,t,n,r){let{node:u}=n,a=u.quasis.length,o=Ut(n,r,t),i=[];for(let s=0;s<a;s++){let p=u.quasis[s],c=s===0,y=s===a-1,g=p.value.cooked,F=g.split(`
19
+ `),f=F.length;if(!y&&/#[^\n\r]*$/.test(F[f-1]))return null;let S=f>2&&F[0].trim()===""&&F[1].trim()==="",d=f>2&&F[f-1].trim()===""&&F[f-2].trim()==="",x=F.every(T=>/^\s*(?:#[^\n\r]*)?$/.test(T)),B;x?B=lc(F):B=await e(g,{parser:"graphql"}),B?(B=Ja(B,!1),!c&&S&&i.push(""),i.push(B),!y&&d&&i.push("")):!c&&!y&&S&&i.push(""),y||i.push(o[s])}return["`",A([E,M(E,i)]),E,"`"]}function lc(e){let t=[],n=!1,r=e.map(u=>u.trim());for(let[u,a]of r.entries())a!==""&&(r[u-1]===""&&n?t.push([E,a]):t.push(a),n=!0);return t.length===0?null:M(E,t)}function cc({node:e,parent:t}){return Ra({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")}var hn=0;async function Xa(e,t,n,r,u){let{node:a}=r,o=hn;hn=hn+1>>>0;let i=x=>`PRETTIER_HTML_PLACEHOLDER_${x}_${o}_IN_JS`,s=a.quasis.map((x,B,T)=>B===T.length-1?x.value.cooked:x.value.cooked+i(B)).join(""),p=Ut(r,u,n),c=new RegExp(i("(\\d+)"),"g"),y=0,g=await t(s,{parser:e,__onHtmlRoot(x){y=x.children.length}}),F=gt(g,x=>{if(typeof x!="string")return x;let B=[],T=x.split(c);for(let j=0;j<T.length;j++){let L=T[j];if(j%2===0){L&&(L=qa(L),u.__embeddedInHtml&&(L=Q(0,L,/<\/(?=script\b)/gi,"<\\/")),B.push(L));continue}let U=Number(L);B.push(p[U])}return B}),f=/^\s/.test(s)?" ":"",S=/\s$/.test(s)?" ":"",d=u.htmlWhitespaceSensitivity==="ignore"?E:f&&S?h:null;return d?D(["`",A([d,D(F)]),d,"`"]):_t({hug:!1},D(["`",f,y>1?A(D(F)):D(F),S,"`"]))}function Dc(e){return Ra(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,n)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&n==="quasi")}var yc=Xa.bind(void 0,"html"),fc=Xa.bind(void 0,"angular");async function dc(e,t,n){let{node:r}=n,u=Q(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(s,p)=>"\\".repeat(p.length/2)+"`"),a=mc(u),o=a!=="";o&&(u=Q(0,u,new RegExp(`^${a}`,"gm"),""));let i=Ja(await e(u,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?A([m,i]):[Dr,Ap(i)],m,"`"]}function mc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function Fc({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 Ec=[{test:sc,print:rc},{test:cc,print:pc},{test:Dc,print:yc},{test:tc,print:fc},{test:Fc,print:dc}].map(({test:e,print:t})=>({test:e,print:gc(t)}));function Ac(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Cc(t))return;let n=Ec.find(({test:r})=>r(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":n.print}function gc(e){return async(...t)=>{let n=await e(...t);return n&&_t({embed:!0,...n.label},n)}}function Cc({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var hc=Ac;function xc(e,t){e.type==="ChainExpression"?Tc(t):(e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression")&&Sc(t)}function Wa(e){if(J(e))return"object";if(O(e))return"callee";if(rt(e))return"expression"}function on(e){let t=Wa(e);if(t)return e[t]}function Tc(e){for(e=on(e);e.type==="MemberExpression"||e.type==="CallExpression"||e.type==="TSNonNullExpression";e=on(e)){let t=Wa(e),n=e[t];n.type==="ChainExpression"&&(e[t]=n.expression)}}function Sc(e){for(e=on(e);e.type==="MemberExpression"||e.type==="CallExpression";e=on(e))e.type=`Optional${e.type}`}function Yr(e,t,n){let r=t[n];(H(r)||ke(r))&&(e[n]=String(r.value)),r.type==="Identifier"&&(e[n]=r.name)}function bc(e,t){(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==="TSMethodSignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute"||e.type==="RecordDeclarationProperty"||e.type==="RecordDeclarationStaticProperty")&&!e.computed&&Yr(t,e,"key"),e.type==="TSEnumMember"&&Yr(t,e,"id")}function Bc(e,t){e.type==="RegExpLiteral"&&(t.flags=[...e.flags].sort().join("")),e.type==="Literal"&&"regex"in e&&(t.regex.flags=[...e.regex.flags].sort().join(""))}var vc=new Set(["range","raw","comments","extra","start","end","loc","errors","tokens","trailingComma","docblock","__contentEnd"]),ct=e=>{for(let t of e.quasis)delete t.value};function _a(e,t,n){if(e.type==="Program"&&delete t.sourceType,xc(e,t),bc(e,t),Bc(e,t),(hi(e)||e.type==="BigIntLiteralTypeAnnotation")&&"bigint"in e&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Un({node:e,parent:n})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if(e.type==="JSXElement"&&e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(u=>u.type==="JSXAttribute"&&u.name.name==="jsx"))for(let{type:u,expression:a}of t.children)u==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&ct(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&ct(t.value.expression),e.type==="JSXAttribute"&&H(e.value)&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=Q(0,e.value.value,/["']|&quot;|&apos;/g,'"'));let r=e.expression||e.callee;if(e.type==="Decorator"&&r.type==="CallExpression"&&r.callee.name==="Component"&&r.arguments.length===1){let u=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(u[a].key.name){case"styles":ee(o.value)&&ct(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&ct(o.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")&&ct(t.quasi),(e.type==="CallExpression"||e.type==="MemberExpression")&&!e.optional&&delete t.optional,e.type==="TemplateLiteral"&&ct(t)}_a.ignoredProperties=vc;var Pc=/\*\/$/,kc=/^\/\*\*?/,$a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,wc=/(^|\s+)\/\/([^\n\r]*)/g,Zr=/^(\r?\n)+/,Ic=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,eu=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Nc=/(\r?\n|^) *\* ?/g,Ua=[];function Mc(e){let t=e.match($a);return t?t[0].trimStart():""}function jc(e){let t=e.match($a)?.[0];return t==null?e:e.slice(t.length)}function Lc(e){e=Q(0,e.replace(kc,"").replace(Pc,""),Nc,"$1");let t="";for(;t!==e;)t=e,e=Q(0,e,Ic,`
20
+ $1 $2
21
+ `);e=e.replace(Zr,"").trimEnd();let n=Object.create(null),r=Q(0,e,eu,"").replace(Zr,"").trimEnd(),u;for(;u=eu.exec(e);){let a=Q(0,u[2],wc,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let o=n[u[1]];n[u[1]]=[...Ua,...Array.isArray(o)?o:[o],a]}else n[u[1]]=a}return{comments:r,pragmas:n}}function Oc({comments:e="",pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(a=>tu(a,t[a])).map(a=>` * ${a}
22
+ `).join("");if(!e){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let a=t[n[0]];return`/** ${tu(n[0],a)[0]} */`}}let u=e.split(`
23
+ `).map(a=>` * ${a}`).join(`
24
+ `)+`
25
+ `;return`/**
26
+ `+(e?u:"")+(e&&n.length>0?` *
27
+ `:"")+r+" */"}function tu(e,t){return[...Ua,...Array.isArray(t)?t:[t]].map(n=>`@${e} ${n}`.trim())}var Jc="format";function qc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
28
+ `);return t===-1?e:e.slice(0,t)}var Rc=qc;function Xc(e){let t=Rc(e);t&&(e=e.slice(t.length+1));let n=Mc(e),{pragmas:r,comments:u}=Lc(n);return{shebang:t,text:e,pragmas:r,comments:u}}function Wc(e){let{shebang:t,text:n,pragmas:r,comments:u}=Xc(e),a=jc(n),o=Oc({pragmas:{[Jc]:"",...r},comments:u.trimStart()});return(t?`${t}
29
+ `:"")+o+(a.startsWith(`
30
+ `)?`
31
+ `:`
32
+
33
+ `)+a}function _c(e){if(!Se(e))return[];if(!e.value.includes(`
34
+ `))return[];let t=[];for(let n of`*${e.value}*`.split(`
35
+ `)){if(n=n.trimStart(),!n.startsWith("*"))return[];t.push(n)}return t}var $c=new WeakMap;function Ga(e){return ge($c,e,_c)}function Va(e){return Ga(e).length>0}function Uc(e,t){let n=e.node;if(Ue(n))return t.originalText.slice(k(n),P(n)).trimEnd();if(Va(n))return Gc(n);if(Se(n))return["/*",tt(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function Gc(e){let t=Ga(e),n=e.value[0]==="*"&&e.value[1]!=="*";return["/",t.map((r,u)=>{if(u===0)return[r.trimEnd(),E];if(u===t.length-1)return[" ",r];let a=r.trimEnd(),o=[" ",a];return n&&a!=="*"&&r.endsWith(" ")?[o," ",gp(Dr)]:[o,E]}),"/"]}function Vc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Kc=class{#e;constructor(e){this.#e=new Set(e)}getLeadingWhitespaceCount(e){let t=this.#e,n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=this.#e,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 this.#e.has(e.charAt(0))}hasTrailingWhitespace(e){return this.#e.has(N(0,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=`[${Vc([...this.#e].join(""))}]+`,r=new RegExp(t?`(${n})`:n);return e.split(r)}hasWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,n=>t.has(n))}hasNonWhitespaceCharacter(e){let t=this.#e;return Array.prototype.some.call(e,n=>!t.has(n))}isWhitespaceOnly(e){let t=this.#e;return Array.prototype.every.call(e,n=>t.has(n))}#t(e){let t=Number.POSITIVE_INFINITY;for(let n of e.split(`
36
+ `)){if(n.length===0)continue;let r=this.getLeadingWhitespaceCount(n);if(r===0)return 0;n.length!==r&&r<t&&(t=r)}return t===Number.POSITIVE_INFINITY?0:t}dedentString(e){let t=this.#t(e);return t===0?e:e.split(`
37
+ `).map(n=>n.slice(t)).join(`
38
+ `)}},Hc=Kc,en=new Hc(`
39
+ \r `);function qt(e){return e.type==="JSXText"&&(en.hasNonWhitespaceCharacter(De(e))||!/\n/.test(De(e)))}function zc(e){let{node:t,parent:n}=e;if(!Y(t)||!Y(n))return!1;let{index:r,siblings:u}=e,a;for(let o=r;o>0;o--){let i=u[o-1];if(!(i.type==="JSXText"&&!qt(i))){a=i;break}}return a?.type==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&yn(a.expression)}function Qc(e){return yn(e.node)||zc(e)}var Sr=Qc,Yc=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Ct=Yc;function Zc(e){return e.type==="CallExpression"&&!e.optional&&e.arguments.length===1&&e.callee.type==="Identifier"&&e.callee.name==="Boolean"}var eD=0;function Ka(e,t,n){let{node:r,parent:u,grandparent:a,key:o}=e,i=o!=="body"&&(u.type==="IfStatement"||u.type==="WhileStatement"||u.type==="SwitchStatement"||u.type==="DoWhileStatement"),s=r.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,p=On(e,t,n,!1,i);if(i)return p;if(s)return D(p);if(o==="callee"&&Mt(u)||u.type==="UnaryExpression"&&!C(r)||J(u)&&!u.computed)return D([A([m,...p]),m]);let c=yt(u)||u.type==="JSXExpressionContainer"&&a.type==="JSXAttribute"||r.operator!=="|"&&u.type==="JsExpressionRoot"||r.type!=="NGPipeExpression"&&(u.type==="NGRoot"&&t.parser==="__ng_binding"||u.type==="NGMicrosyntaxExpression"&&a.type==="NGMicrosyntax"&&a.body.length===1)||r===u.body&&u.type==="ArrowFunctionExpression"||r!==u.body&&u.type==="ForStatement"||u.type==="ConditionalExpression"&&!yt(a)&&!Mt(a)||u.type==="TemplateLiteral"||o==="argument"&&u.type==="UnaryExpression"||o==="arguments"&&Zc(u),y=u.type==="AssignmentExpression"||u.type==="VariableDeclarator"||u.type==="ClassProperty"||u.type==="PropertyDefinition"||u.type==="TSAbstractPropertyDefinition"||u.type==="ClassPrivateProperty"||Ge(u),g=je(r.left)&&sr(r.operator,r.left.operator);if(c||Rt(r)&&!g||!Rt(r)&&y)return D(p);if(p.length===0)return"";let F=Y(r.right),f=p.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===Ee),S=p.slice(0,f===-1?1:f+1),d=p.slice(S.length,F?-1:void 0),x=Symbol("logicalChain-"+ ++eD),B=D([...S,A(d)],{id:x});if(!F)return B;let T=N(0,p,-1);return D([B,Lt(T,{groupId:x})])}function On(e,t,n,r,u){let{node:a}=e;if(!je(a))return[D(n())];let o=[];sr(a.operator,a.left.operator)?o=e.call(()=>On(e,t,n,!0,u),"left"):o.push(D(n("left")));let i=Rt(a),s=a.right.type==="ChainExpression"?a.right.expression:a.right,p=(a.type==="NGPipeExpression"||a.operator==="|>"||tD(e,t))&&!Me(t.originalText,s),c=!C(s,b.Leading,Yn)&&Me(t.originalText,s),y=a.type==="NGPipeExpression"?"|":a.operator,g=a.type==="NGPipeExpression"&&a.arguments.length>0?D(A([m,": ",M([h,": "],e.map(()=>de(2,D(n())),"arguments"))])):"",F;if(i)F=[y,Me(t.originalText,s)?A([h,n("right"),g]):[" ",n("right"),g]];else{let d=y==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>On(e,t,n,!0,u),"right"):n("right");if(t.experimentalOperatorPosition==="start"){let x="";if(c)switch(ze(d)){case Le:x=d[0],d.shift();break;case Je:x=d.contents[0],d.contents.shift();break}F=[h,x,y," ",d,g]}else F=[p?h:"",y,p?" ":h,d,g]}let{parent:f}=e,S=C(a.left,b.Trailing|b.Line);if((S||!(u&&a.type==="LogicalExpression")&&f.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(F=D(F,{shouldBreak:S})),t.experimentalOperatorPosition==="start"?o.push(i||c?" ":"",F):o.push(p?"":" ",F),r&&C(a)){let d=cr(ne(e,o,t));return d.type===Ke?d.parts:Array.isArray(d)?d:[d]}return o}function Rt(e){return e.type!=="LogicalExpression"?!1:!!(Te(e.right)&&e.right.properties.length>0||ee(e.right)&&e.right.elements.length>0||Y(e.right))}var nu=e=>e.type==="BinaryExpression"&&e.operator==="|";function tD(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&nu(e.node)&&!e.hasAncestor(n=>!nu(n)&&n.type!=="JsExpressionRoot")}function nD(e,t,n){let{node:r}=e;if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return n("node");case"NGPipeExpression":return Ka(e,t,n);case"NGChainedExpression":return D(M([";",h],e.map(()=>aD(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":ru(e)?" ":[";",h],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),r.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:u,parent:a}=e,o=ru(e)||rD(e)||(u===1&&(r.key.name==="then"||r.key.name==="else"||r.key.name==="as")||u===2&&(r.key.name==="else"&&a.body[u-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[u-1].key.name==="then"||r.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),r.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Ct(r,"Angular")}}function ru({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function rD(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var uD=v(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function aD({node:e}){return In(e,uD)}function Ha(e,t,n){let{node:r}=e;return D([M(h,e.map(n,"decorators")),Qa(r,t)?E:h])}function oD(e,t,n){return Ya(e.node)?[M(E,e.map(n,"declaration","decorators")),E]:""}function za(e,t,n){let{node:r,parent:u}=e,{decorators:a}=r;if(!q(a)||Ya(u)||Sr(e))return"";let o=r.type==="ClassExpression"||r.type==="ClassDeclaration"||Qa(r,t);return[e.key==="declaration"&&Si(u)?E:o?Oe:"",M(h,e.map(n,"decorators")),h]}function Qa(e,t){return e.decorators.some(n=>K(t.originalText,P(n)))}function Ya(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return q(t)&&cn(e,t[0])}function Za(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&ke(e.argument)}function br(e,t,n){let{node:r}=e,u=[],a=Gn(r)?"elementTypes":"elements",o=r[a];if(o.length===0&&!r.inexact)u.push(D(["[",Fn(e,t),"]"]));else{let i=N(0,o,-1),s=i?.type!=="RestElement"&&!r.inexact,p=i===null,c=Symbol("array"),y=!t.__inJestEach&&o.length>1&&o.every((f,S,d)=>{if(!ee(f)&&!Te(f))return!1;let x=f?.type,B=d[S+1];if(B&&x!==B.type)return!1;let T=ee(f)?"elements":"properties";return f[T]&&f[T].length>1})||C(r,b.Dangling|b.Line),g=eo(r,t),F=s?p?",":fa(t)?g?I(",","",{groupId:c}):I(","):"":"";u.push(D(["[",A([m,g?sD(e,t,n,F):[iD(e,t,n,a,r.inexact),F],$(e,t)]),m,"]"],{shouldBreak:y,id:c}))}return u.push(ae(e),Z(e,n)),u}function eo(e,t){return ee(e)&&e.elements.length>0&&e.elements.every(n=>n&&(ke(n)||Za(n)&&!C(n.argument))&&!C(n,b.Trailing|b.Line,r=>!K(t.originalText,k(r),{backwards:!0})))}function to({node:e},{originalText:t}){let n=P(e);if(n===k(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==",";)n=zn(t,Qn(t,n+1));return an(t,n)}function iD(e,t,n,r,u){let a=[];return e.each(({node:o,isLast:i})=>{a.push(o?D(n()):""),(!i||u)&&a.push([",",h,o&&to(e,t)?m:""])},r),u&&a.push("..."),a}function sD(e,t,n,r){let u=[];return e.each(({isLast:a,next:o})=>{u.push([n(),a?r:","]),a||u.push(to(e,t)?[E,E]:C(o,b.Leading|b.Line)?E:h)},"elements"),ta(u)}function uu(e){return e.quasis.some(t=>t.value.raw.includes(`
40
+ `))}function no(e,t){return(e.type==="TemplateLiteral"&&uu(e)||e.type==="TaggedTemplateExpression"&&uu(e.quasi))&&!K(t,k(e),{backwards:!0})}var pD=new WeakMap;function ro(e){return ge(pD,e,t=>t.type==="ConditionalExpression"&&!re(t,n=>n.type==="ObjectExpression"))}var lD=e=>e.type==="SequenceExpression";function cD(e,t,n,r={}){let u=[],a,o=[],i=!1,s=!r.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function x(){let{node:B}=e,T=DD(e,t,n,r);if(u.length===0)u.push(T);else{let{leading:j,trailing:L}=ya(e,t);u.push([j,T]),o.unshift(L)}s&&(i||(i=B.returnType&&oe(B).length>0||B.typeParameters||oe(B).some(j=>j.type!=="Identifier"))),!s||B.body.type!=="ArrowFunctionExpression"?(a=n("body",r),p=B.body):e.call(x,"body")})();let c=!Me(t.originalText,p)&&(lD(p)||yD(p,a,t)||!i&&ro(p)),y=e.key==="callee"&&ft(e.parent),g=Symbol("arrow-chain"),F=fD(e,r,{signatureDocs:u,shouldBreak:i}),f=!1,S=!1,d=!1;return s&&(y||r.assignmentLayout)&&(S=!0,d=!C(e.node,b.Leading&b.Line),f=r.assignmentLayout==="chain-tail-arrow-chain"||y&&!c),a=dD(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:p,shouldPutBodyOnSameLine:c}),D([D(S?A([d?m:"",F]):F,{shouldBreak:f,id:g})," =>",s?Lt(a,{groupId:g}):D(a),s&&y?I(m,"",{groupId:g}):""])}function DD(e,t,n,r){let{node:u}=e,a=[];if(u.async&&a.push("async "),wa(e,t))a.push(n(["params",0]));else{let i=r.expandLastArg||r.expandFirstArg,s=hr(e,n);if(i){if(ue(s))throw new un;s=D(rn(s))}a.push(D([lt(e,t,n,i,!0),s]))}let o=$(e,t,{marker:"commentBeforeArrow"});return o&&a.push(" ",o),a}function yD(e,t,n){return ee(e)||Te(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Y(e)||t.label?.hug!==!1&&(t.label?.embed||no(e,n.originalText))}function fD(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:u,key:a}=e;return a!=="callee"&&ft(u)||je(u)?D([n[0]," =>",A([h,M([" =>",h],n.slice(1))])],{shouldBreak:r}):a==="callee"&&ft(u)||t.assignmentLayout?D(M([" =>",h],n),{shouldBreak:r}):D(A(M([" =>",h],n)),{shouldBreak:r})}function dD(e,t,n,{bodyDoc:r,bodyComments:u,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:i,parent:s}=e,p=n.expandLastArg?Qe(t,"all"):"",c=(n.expandLastArg||s.type==="JSXExpressionContainer")&&!C(i)?m:"";return o&&ro(a)?[" ",D([I("","("),A([m,r]),I("",")"),p,c]),u]:o?[" ",r,u]:[A([h,r,u]),p,c]}var mD=.25;function Br(e,t){let{printWidth:n}=t;if(C(e))return!1;let r=n*mD;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Za(e)&&!C(e.argument))return!0;let u=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return u?u.length<=r:H(e)?nt(De(e),t).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
41
+ `):e.type==="UnaryExpression"?Br(e.argument,{printWidth:n}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=r-2:Vn(e)}function Dt(e){return J(e)||e.type==="BindExpression"&&!!e.object}function FD(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(Nt(n)){if(t+=1,t>1)return!0}else if(n=Ve(n),O(n)){for(let r of Ce(n))if(Nt(r))return!0}return!1}function uo(e){let{node:t,parent:n,key:r}=e;return r==="callee"&&O(t)&&O(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var ED=new Set(["!","-","+","~"]),AD=v(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]);function Be(e,t=2){if(t<=0)return!1;let n=r=>Be(r,t-1);if(e=Ve(e),Tu(e))return Ft(e.pattern??e.regex.pattern)<=5;if(Vn(e)||AD(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(r=>!r.value.raw.includes(`
42
+ `))&&e.expressions.every(n);if(Te(e))return e.properties.every(r=>!r.computed&&(r.shorthand||r.value&&n(r.value)));if(ee(e))return e.elements.every(r=>r===null||n(r));if(ft(e)){if(e.type==="ImportExpression"||Be(e.callee,t)){let r=Ce(e);return r.length<=t&&r.every(n)}return!1}return J(e)?Be(e.object,t)&&Be(e.property,t):e.type==="UnaryExpression"&&ED.has(e.operator)||e.type==="UpdateExpression"?Be(e.argument,t):!1}function gD(e,t,n){let{node:r}=e,u=Ce(r);if(u.length===0)return D(["(",Fn(e,t),")"]);let a=u.length-1;if(xD(u)){let y=["("];return Pn(e,(g,F)=>{y.push(n()),F!==a&&y.push(", ")}),y.push(")"),y}let o=!1,i=[];Pn(e,({node:y},g)=>{let F=n();g===a||(we(y,t)?(o=!0,F=[F,",",E,E]):F=[F,",",h]),i.push(F)});let s=e.root.type!=="NGRoot"&&r.type!=="ImportExpression"&&r.type!=="TSImportType"&&r.type!=="TSExternalModuleReference"?Qe(t,"all"):"";function p(){return D(["(",A([h,...i]),s,h,")"],{shouldBreak:!0})}if(o||e.parent.type!=="Decorator"&&FD(u))return p();if(hD(u)){let y=i.slice(1);if(y.some(ue))return p();let g;try{g=n(qr(r,0),{expandFirstArg:!0})}catch(F){if(F instanceof un)return p();throw F}return ue(g)?[Oe,Ze([["(",D(g,{shouldBreak:!0}),", ",...y,")"],p()])]:Ze([["(",g,", ",...y,")"],["(",D(g,{shouldBreak:!0}),", ",...y,")"],p()])}if(CD(u,i,t)){let y=i.slice(0,-1);if(y.some(ue))return p();let g;try{g=n(qr(r,-1),{expandLastArg:!0})}catch(F){if(F instanceof un)return p();throw F}return ue(g)?[Oe,Ze([["(",...y,D(g,{shouldBreak:!0}),")"],p()])]:Ze([["(",...y,g,")"],["(",...y,D(g,{shouldBreak:!0}),")"],p()])}let c=["(",A([m,...i]),s,m,")"];return uo(e)?c:D(c,{shouldBreak:i.some(ue)||o})}function sn(e,t=!1){if(Te(e)&&(e.properties.length>0||C(e))||ee(e)&&(e.elements.length>0||C(e))||(xe(e)||e.type==="TSTypeAssertion")&&sn(e.expression)||e.type==="FunctionExpression"||e.type==="DoExpression"||e.type==="ModuleExpression")return!0;if(e.type==="ArrowFunctionExpression"){let{body:n}=e;if(n.type==="BlockStatement"||Y(n)||Te(n)||ee(n)||n.type==="ArrowFunctionExpression"&&sn(n,!0)||!t&&(n.type==="ConditionalExpression"||O(Ve(n))))return!0}return!1}function CD(e,t,n){if(e.length===1){let a=N(0,t,-1);if(a.label?.embed&&a.label?.hug!==!1)return!0}let r=N(0,e,-1),u=N(0,e,-2);return!C(r,b.Leading)&&!C(r,b.Trailing)&&sn(r)&&(!u||u.type!==r.type)&&(e.length!==2||u.type!=="ArrowFunctionExpression"||!ee(r))&&!(e.length>1&&eo(r,n))}function hD(e){if(e.length!==2)return!1;let[t,n]=e;return t.type==="ModuleExpression"&&TD(n)?!0:!C(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&ao(n)&&!sn(n)}function ao(e){if(e.type==="ParenthesizedExpression")return ao(e.expression);if(xe(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 n=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;n?.params.length===1&&(t=n.params[0])}return fr(t)&&Be(e.expression,1)}return ft(e)&&Ce(e).length>1?!1:je(e)?Be(e.left,1)&&Be(e.right,1):Tu(e)||Be(e)}function xD(e){return e.length===2?au(e,0):e.length===3?e[0].type==="Identifier"&&au(e,1):!1}function au(e,t){let n=e[t],r=e[t+1];return n.type==="ArrowFunctionExpression"&&oe(n).length===0&&n.body.type==="BlockStatement"&&r.type==="ArrayExpression"&&e.every(u=>!C(u))}function TD(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Ge(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||H(t.key)&&t.key.value==="type")&&H(t.value)&&t.value.value==="module":!1}var Jn=gD;function SD(e,t,n){return[n("object"),D(A([m,oo(e,t,n)]))]}function oo(e,t,n){return["::",n("callee")]}var bD=e=>O(e)&&Ce(e).length>0;function BD(e){let{node:t,ancestors:n}=e;for(let r of n){if(!(J(r)&&r.object===t||r.type==="TSNonNullExpression"&&r.expression===t))return r.type==="NewExpression"&&r.callee===t;t=r}return!1}function vD(e,t,n){let r=n("object"),u=io(e,t,n),{node:a}=e,o=e.findAncestor(p=>!(J(p)||p.type==="TSNonNullExpression")),i=e.findAncestor(p=>!rt(p)),s=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||BD(e)||a.computed||a.object.type==="Identifier"&&a.property.type==="Identifier"&&!J(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(bD(Ve(a.object))||r.label?.memberChain);return _t(r.label,[r,Ae,s?u:D(A([m,u]))])}function io(e,t,n){let r=n("property"),{node:u}=e,a=ae(e);return u.computed?!u.property||ke(u.property)?[a,"[",r,"]"]:D([a,"[",A([m,r]),m,"]"]):[a,".",r]}function PD(e,t,n){let r=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",u=[];function a(w){let{originalText:V}=t,le=Dn(V,P(w));return V.charAt(le)===")"?le!==!1&&an(V,le+1):we(w,t)}function o(){let{node:w}=e;if(O(w)&&(Dt(w.callee)||O(w.callee))&&!ce(e,t)){let V=a(w);u.unshift({node:w,hasTrailingEmptyLine:V,printed:[ne(e,[ae(e),n("typeArguments"),Jn(e,t,n)],t),V?E:""]}),e.call(o,"callee")}else Dt(w)&&!ce(e,t)?(u.unshift({node:w,printed:ne(e,J(w)?io(e,t,n):oo(e,t,n),t)}),e.call(o,"object")):w.type==="ChainExpression"&&!ce(e,t)?e.call(o,"expression"):w.type==="TSNonNullExpression"&&!ce(e,t)?(u.unshift({node:w,printed:ne(e,"!",t)}),e.call(o,"expression")):u.unshift({node:w,printed:n()})}let{node:i}=e;u.unshift({node:i,printed:[ae(e),n("typeArguments"),Jn(e,t,n)]}),i.callee&&e.call(o,"callee");let s=[],p=[u[0]],c=1;for(;c<u.length&&(u[c].node.type==="TSNonNullExpression"||u[c].node.type==="ChainExpression"||O(u[c].node)||J(u[c].node)&&u[c].node.computed&&ke(u[c].node.property));++c)p.push(u[c]);if(!O(u[0].node))for(;c+1<u.length&&Dt(u[c].node)&&Dt(u[c+1].node);++c)p.push(u[c]);s.push(p),p=[];let y=!1;for(;c<u.length;++c){if(y&&Dt(u[c].node)){if(u[c].node.computed&&ke(u[c].node.property)){p.push(u[c]);continue}s.push(p),p=[],y=!1}(O(u[c].node)||u[c].node.type==="ImportExpression")&&(y=!0),p.push(u[c]),C(u[c].node,b.Trailing)&&(s.push(p),p=[],y=!1)}p.length>0&&s.push(p);function g(w){return/^[A-Z]|^[$_]+$/.test(w)}function F(w){return w.length<=t.tabWidth}function f(w){let V=w[1][0]?.node.computed;if(w[0].length===1){let Ye=w[0][0].node;return Ye.type==="ThisExpression"||Ye.type==="Identifier"&&(g(Ye.name)||r&&F(Ye.name)||V)}let le=N(0,w[0],-1).node;return J(le)&&le.property.type==="Identifier"&&(g(le.property.name)||V)}let S=s.length>=2&&!C(s[1][0].node)&&f(s);function d(w){return w.map(V=>V.printed)}function x(w){return w.length===0?"":A([E,M(E,w.map(d))])}let B=s.map(d),T=B,j=S?3:2,L=s.flat(),U=L.slice(1,-1).some(w=>C(w.node,b.Leading))||L.slice(0,-1).some(w=>C(w.node,b.Trailing))||s[j]&&C(s[j][0].node,b.Leading);if(s.length<=j&&!U&&s.every(w=>!N(0,w,-1).hasTrailingEmptyLine))return uo(e)?T:D(T);let te=N(0,s[S?1:0],-1).node,X=!O(te)&&a(te),z=[d(s[0]),S?s.slice(1,2).map(d):"",X?E:"",x(s.slice(S?2:1))],G=u.map(({node:w})=>w).filter(O);function Ie(){let w=N(0,N(0,s,-1),-1).node,V=N(0,B,-1);return O(w)&&ue(V)&&G.slice(0,-1).some(le=>le.arguments.some(Nt))}let Re;return U||G.length>2&&G.some(w=>w.arguments.some(V=>!Be(V)))||B.slice(0,-1).some(ue)||Ie()?Re=D(z):Re=[ue(T)||X?Oe:"",Ze([T,z])],_t({memberChain:!0},Re)}var kD=PD;function pn(e,t,n){let{node:r}=e,u=r.type==="NewExpression",a=ae(e),o=Ce(r),i=r.type!=="TSImportType"&&r.typeArguments?[n("typeArguments"),Ae]:"",s=o.length===1&&no(o[0],t.originalText);if(s||ID(e)||ND(e)||fn(r,e.parent)){let y=[];if(Pn(e,()=>{y.push(n())}),!(s&&y[0].label?.embed))return[ou(e,n),a,i,"(",M(", ",y),")"]}let p=r.type==="ImportExpression"||r.type==="TSImportType"||r.type==="TSExternalModuleReference";if(!p&&!u&&Dt(r.callee)&&!e.call(()=>ce(e,t),"callee",...r.callee.type==="ChainExpression"?["expression"]:[]))return kD(e,t,n);let c=[ou(e,n),a,i,Jn(e,t,n)];return p||O(r.callee)?D(c):c}function ou(e,t){let{node:n}=e;return n.type==="ImportExpression"?`import${n.phase?`.${n.phase}`:""}`:n.type==="TSImportType"?"import":n.type==="TSExternalModuleReference"?"require":[n.type==="NewExpression"?"new ":"",t("callee"),Ae]}var wD=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function ID(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&dr(t.callee,wD)))return!1;let n=Ce(t);return n.length===1&&H(n[0])&&!C(n[0])}function ND(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let n=Ce(t);return t.callee.name==="require"?(n.length===1&&H(n[0])||n.length>1)&&!C(n[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&H(n[0])&&n[1].type==="ArrayExpression":!1}function Gt(e,t,n,r,u,a){let o=LD(e,t,n,r,a),i=a?n(a,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return D([D(r),u,D(A([h,i]))]);case"never-break-after-operator":return D([D(r),u," ",i]);case"fluid":{let s=Symbol("assignment");return D([D(r),u,D(A(h),{id:s}),Ae,Lt(i,{groupId:s})])}case"break-lhs":return D([r,u," ",D(i)]);case"chain":return[D(r),u,h,i];case"chain-tail":return[D(r),u,A([h,i])];case"chain-tail-arrow-chain":return[D(r),u,i];case"only-left":return r}}function MD(e,t,n){let{node:r}=e;return Gt(e,t,n,n("left"),[" ",r.operator],"right")}function jD(e,t,n){return Gt(e,t,n,n("id")," =","init")}function LD(e,t,n,r,u){let{node:a}=e,o=a[u];if(!o)return"only-left";let i=!tn(o);if(e.match(tn,so,c=>!i||c.type!=="ExpressionStatement"&&c.type!=="VariableDeclaration"))return i?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!i&&tn(o.right)||fe(o)&&!En(o)||Me(t.originalText,o)||C(o,b.Leading,Va))return"break-after-operator";if(a.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||e.root.type==="JsonRoot")return"never-break-after-operator";let s=mp(r);if(JD(a)||XD(a)||po(a)&&s)return"break-lhs";let p=WD(a,r,t);return e.call(()=>OD(e,t,n,p),u)?"break-after-operator":qD(a)?"break-lhs":!s&&(p||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||xi(o)||ke(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function OD(e,t,n,r){let u=e.node;if(je(u)&&!Rt(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!$D(u))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:p}=u;return je(p)&&!Rt(p)}let{consequent:i,alternate:s}=u;return i.type==="ConditionalExpression"||s.type==="ConditionalExpression"}case"ClassExpression":return q(u.decorators)}if(r)return!1;let a=u,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!!(H(a)||e.call(()=>lo(e,t,n),...o))}function JD(e){if(so(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(n=>Ge(n)&&(!n.shorthand||n.value?.type==="AssignmentPattern"))}return!1}function tn(e){return e.type==="AssignmentExpression"}function so(e){return tn(e)||e.type==="VariableDeclarator"}function qD(e){let t=RD(e);if(q(t)){let n=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(r=>r[n]||r.default))return!0}return!1}function RD(e){if(Su(e))return e.typeParameters?.params}function XD(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=iu(t.typeAnnotation);return q(n)&&n.length>1&&n.some(r=>q(iu(r))||r.type==="TSConditionalType")}function po(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function iu(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function lo(e,t,n,r=!1){let{node:u}=e,a=()=>lo(e,t,n,!0);if(rt(u))return e.call(a,"expression");if(O(u)){if(pn(e,t,n).label?.memberChain)return!1;let o=Ce(u);return!(o.length===0||o.length===1&&Br(o[0],t))||_D(u,n)?!1:e.call(a,"callee")}return J(u)?e.call(a,"object"):r&&(u.type==="Identifier"||u.type==="ThisExpression")}function WD(e,t,n){return Ge(e)?(t=cr(t),typeof t=="string"&&Ft(t)<n.tabWidth+3):!1}function _D(e,t){let n=e.typeArguments?.params;if(q(n)){if(n.length>1)return!0;if(n.length===1){let r=n[0];if(fe(r)||Xt(r)||r.type==="TSTypeLiteral"||r.type==="ObjectTypeAnnotation")return!0}if(ue(t("typeArguments")))return!0}return!1}function su(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function $D(e){return su(e.checkType)||su(e.extendsType)}function UD(e,t,n){let{node:r}=e,u=["await"];if(r.argument){u.push(" ",n("argument"));let{parent:a}=e;if(O(a)&&a.callee===r||J(a)&&a.object===r){u=[A([m,...u]),m];let o=e.findAncestor(i=>i.type==="AwaitExpression"||i.type==="BlockStatement");if(o?.type!=="AwaitExpression"||!re(o.argument,i=>i===r))return D(u)}}return u}var GD=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},VD=$n("findLast",function(){if(Array.isArray(this))return GD}),KD=VD;function qn(e,t,n,r){let{node:u}=e,a=[],o=KD(0,u[r],i=>i.type!=="EmptyStatement");return e.each(({node:i})=>{i.type!=="EmptyStatement"&&(a.push(n()),i!==o&&(a.push(E),we(i,t)&&a.push(E)))},r),a}function co(e,t,n){let r=HD(e,t,n),{node:u,parent:a}=e;if(u.type==="Program"&&a?.type!=="ModuleExpression")return r?[r,E]:"";let o=[];if(u.type==="StaticBlock"&&o.push("static "),o.push("{"),r)o.push(A([E,r]),E);else{let i=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"&&!i.finalizer||a.type==="TSModuleDeclaration"||a.type==="DeclareModule"||a.type==="MatchStatementCase"||u.type==="StaticBlock"||o.push(E)}return o.push("}"),o}function HD(e,t,n){let{node:r}=e,u=q(r.directives),a=r.body.some(s=>s.type!=="EmptyStatement"),o=C(r,b.Dangling);if(!u&&!a&&!o)return"";let i=[];return u&&(i.push(qn(e,t,n,"directives")),(a||o)&&(i.push(E),we(N(0,r.directives,-1),t)&&i.push(E))),a&&i.push(qn(e,t,n,"body")),o&&i.push($(e,t)),i}function zD(e){let t=new WeakMap;return n=>ge(t,n,()=>Symbol(e))}var QD=zD,Do=["properties","indexers","callProperties","internalSlots"];function YD(e,t){let{node:n}=e;if(n.type==="ClassBody"||n.type==="TSInterfaceBody"){e.each(t,"body");return}if(n.type==="TSTypeLiteral"){e.each(t,"members");return}if(n.type==="RecordDeclarationBody"){e.each(t,"elements");return}if(n.type==="ObjectTypeAnnotation"){let r=Do.flatMap(u=>e.map(({node:a,index:o})=>({node:a,loc:k(a),selector:[u,o]}),u)).sort((u,a)=>u.loc-a.loc);for(let[u,{node:a,selector:o}]of r.entries())e.call(()=>t({node:a,next:r[u+1]?.node,isLast:u===r.length-1}),...o)}}function ZD(e){if(e.type==="ObjectTypeAnnotation")return Do.some(n=>q(e[n]));let t=e.type==="RecordDeclarationBody"?e.elements:e.body;return q(t)}function vr(e,t,n){let{node:r}=e,u=[],a=r.type==="ObjectTypeAnnotation",o=r.type==="RecordDeclarationBody",i=!yo(e),s=i?h:E,p=C(r,b.Dangling),[c,y]=a&&r.exact?["{|","|}"]:"{}",g=!0,F;if(YD(e,({node:f,next:S,isLast:d})=>{if(F??(F=f),g&&(g=!1),u.push(n()),!o&&i&&a){let{parent:x}=e;x.inexact||!d?u.push(","):u.push(Qe(t))}o&&f.type!=="MethodDefinition"&&u.push(","),!o&&!i&&(ey({node:f,next:S},t)||mo({node:f,next:S},t))&&u.push(";"),d||(u.push(s),we(f,t)&&u.push(E))}),p&&u.push($(e,t)),r.type==="ObjectTypeAnnotation"&&r.inexact){g&&(g=!1);let f;C(r,b.Dangling)?f=[C(r,b.Line)||K(t.originalText,P(N(0,ye(r),-1)))?E:h,"..."]:f=[F?h:"","..."],u.push(f)}if(i){let f=C(r,b.Dangling|b.Line)||t.objectWrap==="preserve"&&F&&se(t.originalText,k(r),k(F)),S;if(u.length===0)S=c+y;else{let d=!t.bracketSpacing||g&&!f?m:h;S=[c,A([d,...u]),d,y]}return e.match(void 0,(d,x)=>x==="typeAnnotation",(d,x)=>x==="typeAnnotation",wt)||e.match(void 0,(d,x)=>d.type==="FunctionTypeParam"&&x==="typeAnnotation",wt)?S:D(S,{shouldBreak:f})}return[c,u.length>0?[A([E,u]),E]:"",y]}function yo(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:n,parent:r}=e;return n==="body"&&(r.type==="InterfaceDeclaration"||r.type==="DeclareInterface"||r.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"||t.type==="RecordDeclarationBody"}function Ne(e,t){let{parent:n}=e;return e.callParent(yo)?n.type==="ObjectTypeAnnotation"?";":W(t):n.type==="TSTypeLiteral"?e.isLast?t.semi?I(";"):"":t.semi||mo({node:e.node,next:e.next},t)?";":I("",";"):""}var pu=v(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),fo=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:n}=e.key;return t==="Identifier"&&(n==="static"||n==="get"||n==="set")};function ey({node:e,next:t},n){if(n.semi||!pu(e))return!1;if(!e.value&&fo(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let r=t.key?.name;if(r==="in"||r==="instanceof")return!0}if(pu(t)&&!t.static&&t.variance&&!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 r=t.value?t.value.generator:t.generator;return!!(t.computed||r)}case"TSIndexSignature":return!0}return!1}var ty=v(["TSPropertySignature"]);function mo({node:e,next:t},n){return n.semi||!ty(e)?!1:fo(e)?!0:t&&t.type==="TSCallSignatureDeclaration"?!(e.type==="TSPropertySignature"&&e.typeAnnotation):!1}var ny=QD("heritageGroup"),ry=v(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Pr(e,t,n){let r=uy(e,t,n),{node:u}=e;if(u.type==="ClassExpression"&&q(u.decorators)){let a=za(e,t,n);return ce(e,t)?[A([m,a,r]),m]:[a,r]}return r}function uy(e,t,n){let{node:r}=e,u=ry(r),a=r.type==="RecordDeclaration",o=u?"interface":a?"record":"class",i=[me(e),dn(e),o],s=Eo(e),p=[],c=[];if(r.type!=="InterfaceTypeAnnotation"){r.id&&p.push(" ");for(let g of["id","typeParameters"])if(r[g]){let{leading:F,trailing:f}=e.call(()=>ya(e,t),g);p.push(F,n(g),A(f))}}if(r.superClass){let g=[iy(e,t,n),n("superTypeArguments")],F=e.call(()=>["extends ",ne(e,g,t)],"superClass");s?c.push(h,D(F)):c.push(" ",F)}else c.push(xn(e,t,n,"extends"));c.push(xn(e,t,n,"mixins"),xn(e,t,n,"implements"));let y;return s?(y=ny(r),i.push(D([...p,A(c)],{id:y}))):i.push(...p,...c),!u&&s&&ZD(r.body)?i.push(I(E," ",{groupId:y})):i.push(" "),i.push(n("body")),i}function Fo(e){let t=e.superClass?1:0;for(let n of["extends","mixins","implements"])if(Array.isArray(e[n])&&(t+=e[n].length),t>1)return!0;return t>1}function ay(e){let{node:t}=e;if(C(t.id,b.Trailing)||C(t.typeParameters,b.Trailing)||C(t.superClass)||Fo(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!t.superTypeArguments&&J(Ve(t.superClass));let n=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return n?n.type==="InterfaceExtends"&&n.id.type==="QualifiedTypeIdentifier"&&!n.typeParameters||(n.type==="TSClassImplements"||n.type==="TSInterfaceHeritage")&&J(n.expression)&&!n.typeArguments:!1}var oy=new WeakMap;function Eo(e){return ge(oy,e.node,()=>ay(e))}function xn(e,t,n,r){let{node:u}=e;if(!q(u[r]))return"";let a=$(e,t,{marker:r}),o=M([",",h],e.map(n,r));if(!Fo(u)){let i=[`${r} `,a,o];return Eo(e)?[h,D(i)]:[" ",i]}return[h,a,a&&E,r,D(A([h,o]))]}function iy(e,t,n){let r=n("superClass"),{parent:u}=e;return u.type==="AssignmentExpression"?D(I(["(",A([m,r]),m,")"],r)):r}function Ao(e,t,n){let{node:r}=e,u=[];return q(r.decorators)&&u.push(Ha(e,t,n)),u.push(mn(r)),r.static&&u.push("static "),u.push(dn(e)),r.override&&u.push("override "),u.push(jn(e,t,n)),u}function go(e,t,n){let{node:r}=e,u=[];q(r.decorators)&&u.push(Ha(e,t,n)),u.push(me(e),mn(r)),r.static&&u.push("static "),u.push(dn(e)),r.override&&u.push("override "),r.readonly&&u.push("readonly "),r.variance&&u.push(n("variance")),(r.type==="ClassAccessorProperty"||r.type==="AccessorProperty"||r.type==="TSAbstractAccessorProperty")&&u.push("accessor "),u.push($e(e,t,n),ae(e),da(e),Z(e,n));let a=r.type==="TSAbstractPropertyDefinition"||r.type==="TSAbstractAccessorProperty";return[Gt(e,t,n,u," =",a?void 0:"value"),W(t)]}function sy(e,t){let n=ye(e,b.Leading);if(n.length===0)return!1;let[r]=n,u=t.originalText,a=k(r);return se(u,a,P(r))||K(u,a,{backwards:!0})}function ht(e,t,n,r="body"){return e.call(({node:u})=>{let a=n();if(u.type==="EmptyStatement")return C(u,b.Leading)?[" ",a]:a;let o=u.type==="BlockStatement";return sy(u,t)?o?[E,a]:A([E,a]):o||u.type==="IfStatement"&&e.parent.type==="IfStatement"&&e.key==="alternate"?[" ",a]:A([h,a])},r)}var py=(e,t,n)=>ht(e,t,n,"consequent"),ly=(e,t,n)=>ht(e,t,n,"alternate");function cy(e,t,n){return[D(["do",ht(e,t,n)]),e.node.body.type==="BlockStatement"?" ":E,"while (",Ar(e,t,n),")",W(t)]}var Dy=v(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Co(e){return Dy(e)?Co(e.expression):e}var yy=v(["FunctionExpression","ArrowFunctionExpression"]);function fy(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function dy(e,t){if(ja(e,t)){let n=Co(e.node.expression);return yy(n)||fy(n)}return!(!t.semi||Na(e,t)||Ma(e,t))}function my(e,t,n){let r=[n("expression")];if(xr(e,t)){if(La(e,t)){let{node:u}=e,a=N(0,ye(u,b.Leading),-1),o=Er(e,t,{filter:i=>i===a});return ne(e,[";",o,...r],t,{filter:i=>i!==a})}r.unshift(";")}else dy(e,t)&&r.push(";");return r}function Fy(e,t,n){let{node:r}=e,u=ht(e,t,n),a=$(e,t),o=a?[a,m]:"";return!r.init&&!r.test&&!r.update?[o,D(["for (;;)",u])]:[o,D(["for (",D([A([m,n("init"),";",h,n("test"),";",r.update?[h,n("update")]:""]),m]),")",u])]}function Ey(e,t,n){let{node:r}=e,u=r.type==="ForOfStatement";return D(["for",u&&r.await?" await":""," (",n("left")," ",u?"of":"in"," ",n("right"),")",ht(e,t,n)])}function Ay(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 u=M([",",h],r);return t.__isVueForBindingLeft?["(",A([m,D(u)]),m,")"]:u}if(t.__isEmbeddedTypescriptGenericParameters){let r=e.map(n,"program","body",0,"typeParameters","params");return M([",",h],r)}}var gy=(e,{originalText:t})=>ca(t,k(e));function ho(e){return Ue(N(0,ye(e,b.Dangling),-1))}function Cy(e,t,n){let{node:r}=e,u=D(["if (",Ar(e,t,n),")",py(e,t,n)]);if(!r.alternate)return u;let{consequent:a}=r,o=a.type==="BlockStatement",i=[u],s=o;o||(i.push(E),s=!1);let p=ye(r,b.Dangling);if(p.length>0){let[c]=p;gy(c,t)?i.push(o?[E,E]:E):K(t.originalText,k(c),{backwards:!0})?i.push(o?E:""):i.push(" "),i.push($(e,t),ho(r)||K(t.originalText,P(N(0,p,-1)))?E:" "),s=!1}return i.push(s?" ":"","else",D(ly(e,t,n))),i}function hy(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return lu(n);case"BigIntLiteral":return Rn(n.extra.raw);case"NumericLiteral":return Ot(n.extra.raw);case"StringLiteral":return tt(nt(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return cu(n.extra.raw,t);case"Literal":{if(n.regex)return lu(n.regex);if(n.bigint)return Rn(n.raw);let{value:r}=n;return typeof r=="number"?Ot(n.raw):typeof r=="string"?xy(e)?cu(n.raw,t):tt(nt(n.raw,t)):String(r)}}}function xy(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Rn(e){return e.toLowerCase()}function lu({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var Ty="use strict";function cu(e,t){let n=e.slice(1,-1);if(n===Ty||!(n.includes('"')||n.includes("'"))){let r=t.singleQuote?"'":'"';return r+n+r}return e}var xo=v(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),Sy=v(["EnumBody","EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function xt(e,t,n){let{node:r,parent:u}=e,a=Sy(r),o=r.type==="TSEnumBody"||a,i=xo(r),s=a&&r.hasUnknownMembers,p=o?"members":i?"attributes":"properties",c=r[p],y=o||r.type==="ObjectPattern"&&u.type!=="FunctionDeclaration"&&u.type!=="FunctionExpression"&&u.type!=="ArrowFunctionExpression"&&u.type!=="ObjectMethod"&&u.type!=="ClassMethod"&&u.type!=="ClassPrivateMethod"&&u.type!=="AssignmentPattern"&&u.type!=="CatchClause"&&r.properties.some(d=>d.value&&(d.value.type==="ObjectPattern"||d.value.type==="ArrayPattern"))||r.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&c.length>0&&by(r,c[0],t),g=[],F=e.map(({node:d})=>{let x=[...g,n()];return g=[",",h],we(d,t)&&g.push(E),x},p);if(s){let d;if(C(r,b.Dangling)){let x=C(r,b.Line);d=[$(e,t),x||K(t.originalText,P(N(0,ye(r),-1)))?E:h,"..."]}else d=["..."];F.push([...g,...d])}let f=!(s||N(0,c,-1)?.type==="RestElement"),S;if(F.length===0)S=D(["{",Fn(e,t),"}",ae(e),Z(e,n)]);else{let d=t.bracketSpacing?h:m;S=["{",A([d,...F]),f?Qe(t):"",d,"}",ae(e),Z(e,n)]}return e.match(d=>d.type==="ObjectPattern"&&!q(d.decorators),wt)||_e(r)&&(e.match(void 0,(d,x)=>x==="typeAnnotation",(d,x)=>x==="typeAnnotation",wt)||e.match(void 0,(d,x)=>d.type==="FunctionTypeParam"&&x==="typeAnnotation",wt))||!y&&e.match(d=>d.type==="ObjectPattern",d=>d.type==="AssignmentExpression"||d.type==="VariableDeclarator")?S:D(S,{shouldBreak:y})}function by(e,t,n){let r=n.originalText,u=k(t),a=k(e);return xo(e)&&(a=he(n).lastIndexOf("{",u)),se(r,a,u)}function By(e,t,n){let{node:r}=e;return["import",r.phase?` ${r.phase}`:"",bo(r),vo(e,t,n),Bo(e,t,n),ko(e,t,n),W(t)]}var To=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function So(e,t,n){let{node:r}=e,u=[oD(e,t,n),me(e),"export",To(r)?" default":""],{declaration:a,exported:o}=r;return C(r,b.Dangling)&&(u.push(" ",$(e,t)),ho(r)&&u.push(E)),a?u.push(" ",n("declaration")):(u.push(ky(r)),r.type==="ExportAllDeclaration"||r.type==="DeclareExportAllDeclaration"?(u.push(" *"),o&&u.push(" as ",n("exported"))):u.push(vo(e,t,n)),u.push(Bo(e,t,n),ko(e,t,n))),u.push(Py(r,t)),u}var vy=v(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Py(e,t){return!e.declaration||To(e)&&!vy(e.declaration)?W(t):""}function kr(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function bo(e,t){return kr(e.importKind,t)}function ky(e){return kr(e.exportKind)}function Bo(e,t,n){let{node:r}=e;return r.source?[Po(r,t)?" from":""," ",n("source")]:""}function vo(e,t,n){let{node:r}=e;if(!Po(r,t))return"";let u=[" "];if(q(r.specifiers)){let a=[],o=[];e.each(()=>{let i=e.node.type;if(i==="ExportNamespaceSpecifier"||i==="ExportDefaultSpecifier"||i==="ImportNamespaceSpecifier"||i==="ImportDefaultSpecifier")a.push(n());else if(i==="ExportSpecifier"||i==="ImportSpecifier")o.push(n());else throw new Ct(r,"specifier")},"specifiers"),u.push(M(", ",a)),o.length>0&&(a.length>0&&u.push(", "),o.length>1||a.length>0||r.specifiers.some(i=>C(i))?u.push(D(["{",A([t.bracketSpacing?h:m,M([",",h],o)]),Qe(t),t.bracketSpacing?h:m,"}"])):u.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function Po(e,t){return e.type!=="ImportDeclaration"||q(e.specifiers)||e.importKind==="type"?!0:he(t).slice(k(e),k(e.source)).trimEnd().endsWith("from")}function wy(e,t){let n=he(t).slice(P(e.source),e.attributes?.[0]?k(e.attributes[0]):P(e)).trimStart();return n.startsWith("assert")?"assert":n.startsWith("with")||q(e.attributes)?"with":void 0}var Iy=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[n]=t,{type:r,key:u,value:a}=n;return r==="ImportAttribute"&&(u.type==="Identifier"&&u.name==="type"||H(u)&&u.value==="type")&&H(a)&&!C(n)&&!C(u)&&!C(a)};function ko(e,t,n){let{node:r}=e;if(!r.source)return"";let u=wy(r,t);if(!u)return"";let a=xt(e,t,n);return Iy(r)&&(a=rn(a)),[` ${u} `,a]}function Ny(e,t,n){let{node:r}=e,{type:u}=r,a=u.startsWith("Import"),o=a?"imported":"local",i=a?"local":"exported",s=r[o],p=r[i],c="",y="";return u==="ExportNamespaceSpecifier"||u==="ImportNamespaceSpecifier"?c="*":s&&(c=n(o)),p&&!vn(r)&&(y=n(i)),[kr(u==="ImportSpecifier"?r.importKind:r.exportKind,!1),c,c&&y?" as ":"",y]}function Tn(e,t,n){let{node:r}=e;return r.shorthand?n("value"):Gt(e,t,n,$e(e,t,n),":","value")}function Xn(e,t){return["...",t("argument"),Z(e,t)]}function My(e,t,n){let{node:r}=e,u=n();return Ku(r,t)?["(",A([E,u]),E,")"]:je(r)||t.experimentalTernaries&&r.type==="ConditionalExpression"&&(r.consequent.type==="ConditionalExpression"||r.alternate.type==="ConditionalExpression")?D([I("("),A([m,u]),m,I(")")]):u}function Du(e,t,n){let{node:r}=e;return[r.type==="ThrowStatement"?"throw":"return",r.argument?[" ",e.call(()=>My(e,t,n),"argument")]:"",W(t)]}function jy(e,t){let{key:n,parent:r}=e;return!!(n==="argument"&&yt(r)&&ce(e,t)||n==="body"&&r.type==="ArrowFunctionExpression")}function Ly(e,t,n){let{parent:r}=e;if(r.type==="ExpressionStatement"||r.type==="ForStatement"){let a=[];return e.each(({isFirst:o})=>{o?a.push(n()):a.push(",",A([h,n()]))},"expressions"),D(a)}let u=M([",",h],e.map(n,"expressions"));return jy(e,t)?D(I([A([m,u]),m],u)):D(u)}function Oy(e,t,n){return[D(["switch (",A([m,n("discriminant")]),m,")"])," {",e.node.cases.length>0?A([E,M(E,e.map(({node:r,isLast:u})=>[n(),!u&&we(r,t)?E:""],"cases"))]):$(e,t,{indent:!0}),E,"}"]}function Jy(e,t,n){let{node:r}=e,u=[];r.test?u.push("case ",n("test"),":"):u.push("default:"),C(r,b.Dangling)&&u.push(" ",$(e,t));let a=r.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=qn(e,t,n,"consequent");u.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:A([E,o]))}return u}function wo(e,t){let n=0;for(let r in e){let u=e[r];if($u(u)&&typeof u.type=="string"&&(n++,n+=wo(u,t-n)),n>t)return n}return n}function yu(e,t=5){return wo(e,t)<=t}function qy(e){let t=[e];for(let n=0;n<t.length;n++){let r=t[n];for(let u of["test","consequent","alternate"]){let a=r[u];if(Y(a))return!0;a.type==="ConditionalExpression"&&t.push(a)}}return!1}function Ry(e,t,n){let{node:r}=e,u=r.type==="ConditionalExpression",a=u?"alternate":"falseType",{parent:o}=e,i=u?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return o.type===r.type&&o[a]===r?de(2,i):i}var Xy=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Wy(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(rt(a)&&a.expression===r||O(a)&&a.callee===r||J(a)&&a.object===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||xe(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[Xy.get(n.type)]===r}function _y(e,t,n){let{node:r}=e,u=r.type==="ConditionalExpression",a=u?"consequent":"trueType",o=u?"alternate":"falseType",i=u?["test"]:["checkType","extendsType"],s=r[a],p=r[o],c=[],y=!1,{parent:g}=e,F=g.type===r.type&&i.some(X=>g[X]===r),f=g.type===r.type&&!F,S,d,x=0;do d=S||r,S=e.getParentNode(x),x++;while(S&&S.type===r.type&&i.every(X=>S[X]!==d));let B=S||g,T=d;if(u&&(Y(r[i[0]])||Y(s)||Y(p)||qy(T))){y=!0,f=!0;let X=G=>[I("("),A([m,G]),m,I(")")],z=G=>G.type==="NullLiteral"||G.type==="Literal"&&G.value===null||G.type==="Identifier"&&G.name==="undefined";c.push(" ? ",z(s)?n(a):X(n(a))," : ",p.type===r.type||z(p)?n(o):X(n(o)))}else{let X=G=>t.useTabs?A(n(G)):de(2,n(G)),z=[h,"? ",s.type===r.type?I("","("):"",X(a),s.type===r.type?I("",")"):"",h,": ",X(o)];c.push(g.type!==r.type||g[o]===r||F?z:t.useTabs?ea(A(z)):de(Math.max(0,t.tabWidth-2),z))}let j=X=>g===B?D(X):X,L=!y&&(J(g)||g.type==="NGPipeExpression"&&g.left===r)&&!g.computed,U=Wy(e),te=j([Ry(e,t,n),f?c:A(c),u&&L&&!U?m:""]);return F||U?D([A([m,te]),m]):te}function $y(e,t){return(J(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Uy(e,t,n,r){return[...e.map(u=>ye(u)),ye(t),ye(n)].flat().some(u=>Se(u)&&se(r.originalText,k(u),P(u)))}var Gy=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Vy(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(rt(a)&&a.expression===r||O(a)&&a.callee===r||J(a)&&a.object===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||xe(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[Gy.get(n.type)]===r}var Sn=e=>[I("("),A([m,e]),m,I(")")];function wr(e,t,n,r){if(!t.experimentalTernaries)return _y(e,t,n);let{node:u}=e,a=u.type==="ConditionalExpression",o=We(u),i=a?"consequent":"trueType",s=a?"alternate":"falseType",p=a?["test"]:["checkType","extendsType"],c=u[i],y=u[s],g=p.map(bt=>u[bt]),{parent:F}=e,f=F.type===u.type,S=f&&p.some(bt=>F[bt]===u),d=f&&F[s]===u,x=c.type===u.type,B=y.type===u.type,T=B||d,j=t.tabWidth>2||t.useTabs,L,U,te=0;do U=L||u,L=e.getParentNode(te),te++;while(L&&L.type===u.type&&p.every(bt=>L[bt]!==U));let X=L||F,z=r&&r.assignmentLayout&&r.assignmentLayout!=="break-after-operator"&&(F.type==="AssignmentExpression"||F.type==="VariableDeclarator"||F.type==="ClassProperty"||F.type==="PropertyDefinition"||F.type==="ClassPrivateProperty"||F.type==="ObjectProperty"||F.type==="Property"),G=yt(F)&&!(x||B),Ie=a&&X.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",Re=Vy(e),w=$y(u,F),V=o&&ce(e,t),le=j?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Ye=Uy(g,c,y,t)||x||B,Tt=!T&&!f&&!o&&(Ie?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:Br(c,t)&&yu(u.test,3)),Ir=T||d||o&&!f||f&&a&&yu(u.test,1)||Tt,Vt=[];C(u.test,b.Dangling)&&e.call(()=>{Vt.push($(e,t))},"test"),C(u,b.Dangling)&&Vt.push($(e,t));let Nr=Symbol("test"),Qo=Symbol("consequent"),Kt=Symbol("test-and-consequent"),Yo=a?[Sn(n("test")),u.test.type==="ConditionalExpression"?Oe:""]:[n("checkType")," ","extends"," ",We(u.extendsType)||u.extendsType.type==="TSMappedType"?n("extendsType"):D(Sn(n("extendsType")))],Mr=D([Yo," ?"],{id:Nr}),Zo=n(i),Ht=A([x||Ie&&(Y(c)||f||T)?E:h,Zo]),ei=Ir?D([Mr,T?Ht:I(Ht,D(Ht,{id:Qo}),{groupId:Nr})],{id:Kt}):[Mr,Ht],An=n(s),jr=Tt?I(An,ea(Sn(An)),{groupId:Kt}):An,St=[ei,Vt.length>0?[A([E,Vt]),E]:B?E:Tt?I(h," ",{groupId:Kt}):h,":",B||!j?" ":Ir?I(le,I(T||Tt?" ":le," "),{groupId:Kt}):I(le," "),B?jr:D([A(jr),Ie&&!Tt?m:""]),w&&!Re?m:"",Ye?Oe:""];return z&&!Ye?D(A([m,D(St)])):z||G?D(A(St)):Re||o&&S?D([A([m,St]),V?m:""]):F===X?D(St):St}function Ky(e,t,n){let{node:r}=e;return["try ",n("block"),r.handler?[" ",n("handler")]:"",r.finalizer?[" finally ",n("finalizer")]:""]}function Hy(e,t,n){let{node:r}=e;if(r.param){let u=C(r.param,o=>!Se(o)||o.leading&&K(t.originalText,P(o))||o.trailing&&K(t.originalText,k(o),{backwards:!0})),a=n("param");return["catch ",u?["(",A([m,a]),m,") "]:["(",a,") "],n("body")]}return["catch ",n("body")]}function Io(e,t,n){let{node:r}=e,u=e.map(n,"declarations"),a=e.key==="init"&&e.parent.type==="ForStatement"||e.key==="left"&&(e.parent.type==="ForInStatement"||e.parent.type==="ForOfStatement"),o=r.declarations.some(s=>s.init),i;return u.length===1&&!C(r.declarations[0])?i=u[0]:i=A(u[0]),D([me(e),r.kind,i?[" ",i]:"",A(u.slice(1).map(s=>[",",o&&!a?E:h,s])),a?"":W(t)])}function zy(e,t,n){let{node:r}=e,u=r.type==="WithStatement"?"with":"while";return D([u," (",Ar(e,t,n),")",ht(e,t,n)])}function Qy(e,t,n,r){let{node:u}=e;if(Vn(u))return hy(e,t);switch(u.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[$(e,t),n("node"),E];case"File":return Ay(e,t,n)??n("program");case"ExpressionStatement":return my(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!C(u.expression)&&(Te(u.expression)||ee(u.expression))?["(",n("expression"),")"]:D(["(",A([m,n("expression")]),m,")"]);case"AssignmentExpression":return MD(e,t,n);case"VariableDeclarator":return jD(e,t,n);case"BinaryExpression":case"LogicalExpression":return Ka(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return vD(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return SD(e,t,n);case"Identifier":return[u.name,ae(e),da(e),Z(e,n)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":return Xn(e,n);case"RestElement":return Xn(e,n);case"FunctionDeclaration":case"FunctionExpression":return gr(e,t,n,r);case"ArrowFunctionExpression":return cD(e,t,n,r);case"YieldExpression":return[`yield${u.delegate?"*":""}`,u.argument?[" ",n("argument")]:""];case"AwaitExpression":return UD(e,t,n);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return So(e,t,n);case"ImportDeclaration":return By(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ny(e,t,n);case"ImportAttribute":return Tn(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return co(e,t,n);case"ClassBody":return vr(e,t,n);case"ThrowStatement":return Du(e,t,n);case"ReturnStatement":return Du(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return pn(e,t,n);case"ObjectExpression":case"ObjectPattern":return xt(e,t,n);case"Property":return Et(u)?jn(e,t,n):Tn(e,t,n);case"ObjectProperty":return Tn(e,t,n);case"ObjectMethod":return jn(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":return br(e,t,n);case"SequenceExpression":return Ly(e,t,n);case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),W(t)];case"UnaryExpression":{let a=[u.operator];/[a-z]$/.test(u.operator)&&a.push(" ");let o=n("argument");return C(u.argument)?a.push(D(["(",A([m,o]),m,")"])):a.push(o),a}case"UpdateExpression":return[u.prefix?u.operator:"",n("argument"),u.prefix?"":u.operator];case"ConditionalExpression":return wr(e,t,n,r);case"VariableDeclaration":return Io(e,t,n);case"IfStatement":return Cy(e,t,n);case"ForStatement":return Fy(e,t,n);case"WithStatement":case"WhileStatement":return zy(e,t,n);case"DoWhileStatement":return cy(e,t,n);case"ForInStatement":case"ForOfStatement":return Ey(e,t,n);case"DoExpression":return[u.async?"async ":"","do ",n("body")];case"BreakStatement":case"ContinueStatement":return[u.type==="BreakStatement"?"break":"continue",u.label?[" ",n("label")]:"",W(t)];case"LabeledStatement":return[n("label"),`:${u.body.type==="EmptyStatement"&&!C(u.body,b.Leading)?"":" "}`,n("body")];case"TryStatement":return Ky(e,t,n);case"CatchClause":return Hy(e,t,n);case"SwitchStatement":return Oy(e,t,n);case"SwitchCase":return Jy(e,t,n);case"DebuggerStatement":return["debugger",W(t)];case"ClassDeclaration":case"ClassExpression":return Pr(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Ao(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return go(e,t,n);case"TemplateElement":return tt(u.value.raw);case"TemplateLiteral":return Oa(e,t,n);case"TaggedTemplateExpression":return Kl(e,t,n);case"PrivateIdentifier":return["#",u.name];case"PrivateName":return["#",n("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",n("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Un(e))return";";default:throw new Ct(u,"ESTree")}}function No(e){return[e("elementType"),"[]"]}function Mo(e,t,n){let{parent:r,node:u,key:a}=e,o=u.type==="AsConstExpression"?"const":n("typeAnnotation"),i=[n("expression")," ",Ti(u)?"satisfies":"as"," ",o];return a==="callee"&&Mt(r)||a==="object"&&J(r)?D([A([m,...i]),m]):i}function Yy(e,t,n){let{node:r}=e,u=[me(e),r.async?"async ":"","component"];r.id&&u.push(" ",n("id")),u.push(n("typeParameters"));let a=lt(e,t,n);return r.rendersType?u.push(D([a," ",n("rendersType")])):u.push(D([a])),r.body&&u.push(" ",n("body")),r.type==="DeclareComponent"&&u.push(W(t)),u}function Zy(e,t,n){let{node:r}=e;return r.shorthand?n("local"):[n("name")," as ",n("local")]}function e0(e,t,n){let{node:r}=e,u=[];return r.name&&u.push(n("name"),r.optional?"?: ":": "),u.push(n("typeAnnotation")),u}function t0(e,t,n){let{node:r}=e;return[r.explicitType?`of ${r.explicitType} `:"",xt(e,t,n)]}function n0(e,t,n){let{node:r}=e;return[r.type==="EnumSymbolBody"||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:"",xt(e,t,n)]}function jo(e,t,n){let{node:r}=e,u=r.type==="TSEnumMember",a=u?$e(e,t,n):n("id"),o=u?"initializer":"init";return r[o]?[a," = ",n(o)]:a}function Lo(e,t){let{node:n}=e;return[me(e),n.const?"const ":"","enum ",t("id")," ",t("body")]}function Oo(e,t,n){let{node:r}=e,u=[dn(e)];(r.type==="TSConstructorType"||r.type==="TSConstructSignatureDeclaration")&&u.push("new ");let a=lt(e,t,n,!1,!0),o=[];return r.type==="FunctionTypeAnnotation"?o.push(r0(e)?" => ":": ",n("returnType")):o.push(Z(e,n,"returnType")),$t(r,o)&&(a=D(a)),u.push(a,o),[D(u),r.type==="TSConstructSignatureDeclaration"||r.type==="TSCallSignatureDeclaration"?Ne(e,t):""]}function r0(e){let{node:t,parent:n}=e;return t.type==="FunctionTypeAnnotation"&&(yr(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&cn(n,t)||n.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function u0(e,t,n){return[me(e),"hook",e.node.id?[" ",n("id")]:"",W(t)]}function fu(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function a0(e,t,n){let{node:r}=e,u=lt(e,t,n,!1,!0),a=[fu(e)?": ":" => ",n("returnType")];return D([fu(e)?"":"hook ",$t(r,a)?D(u):u,a])}function Jo(e,t,n){return[n("objectType"),ae(e),"[",n("indexType"),"]"]}function qo(e,t,n){return["infer ",n("typeParameter")]}function Ro(e,t,n){let r=!1;return D(e.map(({isFirst:u,previous:a,node:o,index:i})=>{let s=n();if(u)return s;let p=_e(o),c=_e(a);return c&&p?[" & ",r?A(s):s]:!c&&!p||Me(t.originalText,o)?t.experimentalOperatorPosition==="start"?A([h,"& ",s]):A([" &",h,s]):(i>1&&(r=!0),[" & ",i>1?A(s):s])},"types"))}function o0(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function i0(e,t,n){let{node:r}=e;return[D([r.variance?n("variance"):"",D(["[",A([m,n("keyTparam")," in ",n("sourceType")]),m,"]"]),o0(r.optional),": ",n("propType")]),Ne(e,t)]}function du(e,t){return e==="+"||e==="-"?e+t:t}function s0(e,t,n){let{node:r}=e,u=!1;if(t.objectWrap==="preserve"){let i=he(t),s=k(r)+1,p=i.slice(s),c=s+p.search(/\S/);se(t.originalText,s,c)&&(u=!0)}let a=[],o=ye(r,b.Dangling);if(o.length>0){let i=N(0,o,-1),s=$(e,t);a.push(...s.slice(0,-1),D([N(0,s,-1),Ue(i)||K(t.originalText,P(i))?E:h]))}return D(["{",A([t.bracketSpacing?h:m,...a,r.readonly?[du(r.readonly,"readonly")," "]:"",D(["[",A([m,n("key")," in ",n("constraint"),r.nameType?[" as ",n("nameType")]:""]),m,"]"]),r.optional?du(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),t.semi?I(";"):""]),t.bracketSpacing?h:m,"}"],{shouldBreak:u})}function p0(e,t,n){let{node:r}=e;return[D(["match (",A([m,n("argument")]),m,")"])," {",r.cases.length>0?A([E,M(E,e.map(({node:u,isLast:a})=>[n(),!a&&we(u,t)?E:""],"cases"))]):"",E,"}"]}function l0(e,t,n){let{node:r}=e,u=C(r,b.Dangling)?[" ",$(e,t)]:[],a=r.type==="MatchStatementCase"?[" ",n("body")]:A([h,n("body"),","]);return[n("pattern"),r.guard?D([A([h,"if (",n("guard"),")"])]):"",D([" =>",u,a])]}function c0(e,t,n){let{node:r}=e;switch(r.type){case"MatchOrPattern":return d0(e,t,n);case"MatchAsPattern":return[n("pattern")," as ",n("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return n("literal");case"MatchUnaryPattern":return[r.operator,n("argument")];case"MatchIdentifierPattern":return n("id");case"MatchMemberPattern":{let u=r.property.type==="Identifier"?[".",n("property")]:["[",A([m,n("property")]),m,"]"];return D([n("base"),u])}case"MatchBindingPattern":return[r.kind," ",n("id")];case"MatchObjectPattern":case"MatchInstanceObjectPattern":return D0(e,t,n);case"MatchInstancePattern":return D([n("targetConstructor")," ",n("properties")]);case"MatchArrayPattern":{let u=e.map(n,"elements");return r.rest&&u.push(n("rest")),D(["[",A([m,M([",",h],u)]),r.rest?"":I(","),m,"]"])}case"MatchObjectPatternProperty":return r.shorthand?n("pattern"):D([n("key"),":",A([h,n("pattern")])]);case"MatchRestPattern":{let u=["..."];return r.argument&&u.push(n("argument")),u}}}function D0(e,t,n){let{node:r}=e,u=e.map(n,"properties");return r.rest&&u.push(n("rest")),D(["{",A([m,M([",",h],u)]),r.rest?"":I(","),m,"}"])}var Xo=v(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function y0(e){let{patterns:t}=e;if(t.some(r=>C(r)))return!1;let n=t.find(r=>r.type==="MatchObjectPattern");return n?t.every(r=>r===n||Xo(r)):!1}function f0(e){return Xo(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?y0(e):!1}function d0(e,t,n){let{node:r}=e,{parent:u}=e,a=u.type!=="MatchStatementCase"&&u.type!=="MatchExpressionCase"&&u.type!=="MatchArrayPattern"&&u.type!=="MatchObjectPatternProperty"&&!Me(t.originalText,r),o=f0(r),i=e.map(()=>{let p=n();return o||(p=de(2,p)),ne(e,p,t)},"patterns");if(o)return M(" | ",i);let s=[I(["| "]),M([h,"| "],i)];return ce(e,t)?D([A([I([m]),s]),m]):u.type==="MatchArrayPattern"&&u.elements.length>1?D([A([I(["(",m]),s]),m,I(")")]):D(a?A(s):s)}function m0(e,t,n){let{node:r}=e,u=[me(e),"opaque type ",n("id"),n("typeParameters")];if(r.supertype&&u.push(": ",n("supertype")),r.lowerBound||r.upperBound){let a=[];r.lowerBound&&a.push(A([h,"super ",n("lowerBound")])),r.upperBound&&a.push(A([h,"extends ",n("upperBound")])),u.push(D(a))}return r.impltype&&u.push(" = ",n("impltype")),u.push(W(t)),u}function Wo(e,t,n){let{node:r}=e;return["...",...r.type==="TupleTypeSpreadElement"&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function _o(e,t,n){let{node:r}=e;return[r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}function $o(e,t,n){let{node:r}=e,u=[me(e),"type ",n("id"),n("typeParameters")],a=r.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[Gt(e,t,n,u," =",a),W(t)]}function F0(e,t,n){let{node:r}=e;return oe(r).length===1&&r.type.startsWith("TS")&&!r[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function It(e,t,n,r){let{node:u}=e,a=u[r];if(!a)return"";if(!Array.isArray(a))return n(r);let o=fn(e.grandparent),i=e.match(p=>!(p[r].length===1&&_e(p[r][0])),void 0,(p,c)=>c==="typeAnnotation",p=>p.type==="Identifier",po);if(a.length===0||!i&&(o||a.length===1&&(a[0].type==="NullableTypeAnnotation"||Ol(a[0])))&&!a.some(p=>{let c=ye(p,y=>y.leading||y.trailing);return c.length>0&&(c.some(y=>Ue(y))||K(t.originalText,P(N(0,c,-1))))}))return["<",M(", ",e.map(n,r)),E0(e,t),">"];let s=u.type==="TSTypeParameterInstantiation"?"":F0(e,t,r)?",":Qe(t);return D(["<",A([m,M([",",h],e.map(n,r))]),s,m,">"])}function E0(e,t){let{node:n}=e;if(!C(n,b.Dangling))return"";let r=!C(n,b.Line),u=$(e,t,{indent:!r});return r?u:[u,E]}function Uo(e,t,n){let{node:r}=e,u=[r.const?"const ":""],a=r.type==="TSTypeParameter"?n("name"):r.name;if(r.variance&&u.push(n("variance")),r.in&&u.push("in "),r.out&&u.push("out "),u.push(a),r.bound&&(r.usesExtendsBound&&u.push(" extends "),u.push(Z(e,n,"bound"))),r.constraint){let o=Symbol("constraint");u.push(" extends",D(A(h),{id:o}),Ae,Lt(n("constraint"),{groupId:o}))}if(r.default){let o=Symbol("default");u.push(" =",D(A(h),{id:o}),Ae,Lt(n("default"),{groupId:o}))}return D(u)}function Go(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 ",Z(e,t)]:""]}function Vo({node:e},t){let n=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(n),t("typeArguments")]}function A0(e,t,n,r){let{node:u}=e;if(pa(u))return u.type.slice(0,-14).toLowerCase();switch(u.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Yy(e,t,n);case"ComponentParameter":return Zy(e,t,n);case"ComponentTypeParameter":return e0(e,t,n);case"HookDeclaration":return gr(e,t,n);case"DeclareHook":return u0(e,t,n);case"HookTypeAnnotation":return a0(e,t,n);case"DeclareFunction":return[me(e),"function ",n("id"),n("predicate"),W(t)];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",Z(e,n),W(t)];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return Array.isArray(u.declarations)?Io(e,t,n):[me(e),u.kind??"var"," ",n("id"),W(t)];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return So(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return m0(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return $o(e,t,n);case"IntersectionTypeAnnotation":return Ro(e,t,n);case"UnionTypeAnnotation":return va(e,t,n,r);case"ConditionalTypeAnnotation":return wr(e,t,n);case"InferTypeAnnotation":return qo(e,t,n);case"FunctionTypeAnnotation":return Oo(e,t,n);case"TupleTypeAnnotation":return br(e,t,n);case"TupleTypeLabeledElement":return _o(e,t,n);case"TupleTypeSpreadElement":return Wo(e,t,n);case"GenericTypeAnnotation":return[n("id"),It(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Jo(e,t,n);case"TypeAnnotation":return ka(e,t,n);case"TypeParameter":return Uo(e,t,n);case"TypeofTypeAnnotation":return Vo(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return No(n);case"DeclareEnum":case"EnumDeclaration":return Lo(e,n);case"EnumBody":return t0(e,t,n);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return n0(e,t,n);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return jo(e,t,n);case"FunctionTypeParam":{let a=u.name?n("name"):e.parent.this===u?"this":"";return[a,ae(e),a?": ":"",n("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"RecordDeclaration":return Pr(e,t,n);case"ObjectTypeAnnotation":case"RecordDeclarationBody":return vr(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"RecordDeclarationImplements":return[n("id"),n("typeArguments")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{let{kind:a}=u;return a==="plus"?"+":a==="minus"?"-":`${a} `}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[u.static?"static ":"",n("value"),Ne(e,t)];case"ObjectTypeMappedTypeProperty":return i0(e,t,n);case"ObjectTypeIndexer":return[u.static?"static ":"",u.variance?n("variance"):"","[",n("id"),u.id?": ":"",n("key"),"]: ",n("value"),Ne(e,t)];case"ObjectTypeProperty":{let a="";return u.proto?a="proto ":u.static&&(a="static "),[a,u.kind!=="init"?u.kind+" ":"",u.variance?n("variance"):"",$e(e,t,n),ae(e),Et(u)?"":": ",n("value"),Ne(e,t)]}case"ObjectTypeInternalSlot":return[u.static?"static ":"","[[",n("id"),"]]",ae(e),u.method?"":": ",n("value"),Ne(e,t)];case"ObjectTypeSpreadProperty":return Xn(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(u.value);case"StringLiteralTypeAnnotation":return tt(nt(De(u),t));case"NumberLiteralTypeAnnotation":return Ot(De(u));case"BigIntLiteralTypeAnnotation":return Rn(De(u));case"TypeCastExpression":return["(",n("expression"),Z(e,n),")"];case"TypePredicate":return Go(e,n);case"TypeOperator":return[u.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return It(e,t,n,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...u.type==="DeclaredPredicate"?["(",n("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Mo(e,t,n);case"MatchExpression":case"MatchStatement":return p0(e,t,n);case"MatchExpressionCase":case"MatchStatementCase":return l0(e,t,n);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchInstancePattern":case"MatchInstanceObjectPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return c0(e,t,n);case"RecordExpression":return[n("recordConstructor"),n("typeArguments")," ",n("properties")];case"RecordExpressionProperties":return xt(e,t,n);case"RecordDeclarationProperty":case"RecordDeclarationStaticProperty":{let a=u.type==="RecordDeclarationStaticProperty",o=a?"value":"defaultValue";return[a?"static ":"",$e(e,t,n),Z(e,n),u[o]?[" = ",n(o)]:""]}}}function g0(e,t){let{node:n}=e,r=t.originalText.slice(k(n),P(n));return t.semi&&Bn(n)?r+=";":xr(e,t)&&(r=`;${r}`),n.type==="ClassExpression"&&q(n.decorators)?[A([m,r]),m]:r}var bn=e=>e===""||e===h||e===E||e===m;function C0(e,t,n){let{node:r}=e;if(r.type==="JSXElement"&&O0(r))return[n("openingElement"),n("closingElement")];let u=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[u,...e.map(n,"children"),a];r.children=r.children.map(T=>J0(T)?{type:"JSXText",value:" ",raw:" "}:T);let o=r.children.some(Y),i=r.children.filter(T=>T.type==="JSXExpressionContainer").length>1,s=r.type==="JSXElement"&&r.openingElement.attributes.length>1,p=ue(u)||o||s||i,c=e.parent.rootMarker==="mdx",y=t.singleQuote?"{' '}":'{" "}',g=c?h:I([y,m]," "),F=r.openingElement?.name?.name==="fbt",f=h0(e,t,n,g,F),S=r.children.some(T=>qt(T));for(let T=f.length-2;T>=0;T--){let j=f[T]===""&&f[T+1]==="",L=f[T]===E&&f[T+1]===""&&f[T+2]===E,U=(f[T]===m||f[T]===E)&&f[T+1]===""&&f[T+2]===g,te=f[T]===g&&f[T+1]===""&&(f[T+2]===m||f[T+2]===E),X=f[T]===g&&f[T+1]===""&&f[T+2]===g,z=f[T]===m&&f[T+1]===""&&f[T+2]===E||f[T]===E&&f[T+1]===""&&f[T+2]===m;L&&S||j||U||X||z?f.splice(T,2):te&&f.splice(T+1,2)}for(;f.length>0&&bn(N(0,f,-1));)f.pop();for(;f.length>1&&bn(f[0])&&bn(f[1]);)f.shift(),f.shift();let d=[""];for(let[T,j]of f.entries()){if(j===g){if(T===1&&Fp(f[T-1])){if(f.length===2){d.push([d.pop(),y]);continue}d.push([y,E],"");continue}if(T===f.length-1){d.push([d.pop(),y]);continue}if(f[T-1]===""&&f[T-2]===E){d.push([d.pop(),y]);continue}}T%2===0?d.push([d.pop(),j]):d.push(j,""),ue(j)&&(p=!0)}let x=S?ta(d):D(d,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&r.children.includes(t.cursorNode)?x=[Qt,x,Qt]:t.nodeBeforeCursor?.type==="JSXText"&&r.children.includes(t.nodeBeforeCursor)?x=[Qt,x]:t.nodeAfterCursor?.type==="JSXText"&&r.children.includes(t.nodeAfterCursor)&&(x=[x,Qt]),c)return x;let B=D([u,A([E,x]),E,a]);return p?B:Ze([D([u,...f,a]),B])}function h0(e,t,n,r,u){let a="",o=[a];function i(p){a=p,o.push([o.pop(),p])}function s(p){p!==""&&(a=p,o.push(p,""))}return e.each(({node:p,next:c})=>{if(p.type==="JSXText"){let y=De(p);if(qt(p)){let g=en.split(y,!0);g[0]===""&&(g.shift(),/\n/.test(g[0])?s(Fu(u,g[1],p,c)):s(r),g.shift());let F;if(N(0,g,-1)===""&&(g.pop(),F=g.pop()),g.length===0)return;for(let[f,S]of g.entries())f%2===1?s(h):i(S);F!==void 0?/\n/.test(F)?s(Fu(u,a,p,c)):s(r):s(mu(u,a,p,c))}else/\n/.test(y)?y.match(/\n/g).length>1&&s(E):s(r)}else{let y=n();if(i(y),c&&qt(c)){let g=en.trim(De(c)),[F]=en.split(g);s(mu(u,F,p,c))}else s(E)}},"children"),o}function mu(e,t,n,r){return e?"":n.type==="JSXElement"&&!n.closingElement||r?.type==="JSXElement"&&!r.closingElement?t.length===1?m:E:m}function Fu(e,t,n,r){return e?E:t.length===1?n.type==="JSXElement"&&!n.closingElement||r?.type==="JSXElement"&&!r.closingElement?E:m:E}var x0=v(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function T0(e,t,n){let{parent:r}=e;if(x0(r))return t;let u=S0(e),a=ce(e,n);return D([a?"":I("("),A([m,t]),m,a?"":I(")")],{shouldBreak:u})}function S0(e){return e.match(void 0,(t,n)=>n==="body"&&t.type==="ArrowFunctionExpression",(t,n)=>n==="arguments"&&O(t))&&(e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer"))}function b0(e,t,n){let{node:r}=e,u=[n("name")];if(r.value){let a;if(H(r.value)){let o=De(r.value),i=Q(0,Q(0,o.slice(1,-1),"&apos;","'"),"&quot;",'"'),s=Aa(i,t.jsxSingleQuote);i=s==='"'?Q(0,i,'"',"&quot;"):Q(0,i,"'","&apos;"),a=e.call(()=>ne(e,tt(s+i+s),t),"value")}else a=n("value");u.push("=",a)}return u}function B0(e,t,n){let{node:r}=e,u=(a,o)=>a.type==="JSXEmptyExpression"||!C(a)&&(ee(a)||Te(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(u(a.argument,a)||a.argument.type==="JSXElement")||O(Ve(a))||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||Y(o)&&(a.type==="ConditionalExpression"||je(a)));return u(r.expression,e.parent)?D(["{",n("expression"),Ae,"}"]):D(["{",A([m,n("expression")]),m,Ae,"}"])}function v0(e,t,n){let{node:r}=e,u=C(r.name)||C(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!u)return["<",n("name"),n("typeArguments")," />"];if(r.attributes?.length===1&&H(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
43
+ `)&&!u&&!C(r.attributes[0]))return D(["<",n("name"),n("typeArguments")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);let a=r.attributes?.some(i=>H(i.value)&&i.value.value.includes(`
44
+ `)),o=t.singleAttributePerLine&&r.attributes.length>1?E:h;return D(["<",n("name"),n("typeArguments"),A(e.map(({isFirst:i,previous:s})=>[i?o:we(s,t)?[E,E]:o,n()],"attributes")),...P0(r,t,u)],{shouldBreak:a})}function P0(e,t,n){return e.selfClosing?[h,"/>"]:k0(e,t,n)?[">"]:[m,">"]}function k0(e,t,n){let r=e.attributes.length>0&&C(N(0,e.attributes,-1),b.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function w0(e,t,n){let{node:r}=e,u=["</"],a=n("name");return C(r.name,b.Leading|b.Line)?u.push(A([E,a]),E):C(r.name,b.Leading|b.Block)?u.push(" ",a):u.push(a),u.push(">"),u}function I0(e,t){let{node:n}=e,r=C(n),u=C(n,b.Line),a=n.type==="JSXOpeningFragment";return[a?"<":"</",A([u?E:r&&!a?" ":"",$(e,t)]),u?E:"",">"]}function N0(e,t,n){let r=ne(e,C0(e,t,n),t);return T0(e,r,t)}function M0(e,t){let{node:n}=e,r=C(n,b.Line);return[$(e,t,{indent:r}),r?E:""]}function j0(e,t,n){let{node:r}=e;return["{",e.call(({node:u})=>{let a=["...",n()];return C(u)?[A([m,ne(e,a,t)]),m]:a},r.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function L0(e,t,n){let{node:r}=e;if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return b0(e,t,n);case"JSXIdentifier":return r.name;case"JSXNamespacedName":return M(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return M(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return j0(e,t,n);case"JSXExpressionContainer":return B0(e,t,n);case"JSXFragment":case"JSXElement":return N0(e,t,n);case"JSXOpeningElement":return v0(e,t,n);case"JSXClosingElement":return w0(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return I0(e,t);case"JSXEmptyExpression":return M0(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Ct(r,"JSX")}}function O0(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!qt(t)}function J0(e){return e.type==="JSXExpressionContainer"&&H(e.expression)&&e.expression.value===" "&&!C(e.expression)}function q0(e,t,n){let{node:r}=e,u=r.parameters.length>1?Qe(t):"",a=D([A([m,M([", ",m],e.map(n,"parameters"))]),u,m]);return[e.key==="body"&&e.parent.type==="ClassBody"&&r.static?"static ":"",r.readonly?"readonly ":"","[",r.parameters?a:"","]",Z(e,n),Ne(e,t)]}function Eu(e,t,n){let{node:r}=e;return[r.postfix?"":n,Z(e,t),r.postfix?n:""]}function R0(e,t,n){let{node:r}=e,u=[],a=r.kind&&r.kind!=="method"?`${r.kind} `:"";u.push(mn(r),a,$e(e,t,n),ae(e));let o=lt(e,t,n,!1,!0),i=Z(e,n,"returnType"),s=$t(r,i);return u.push(s?D(o):o),r.returnType&&u.push(D(i)),[D(u),Ne(e,t)]}function X0(e,t,n){let{node:r}=e;return[me(e),r.kind==="global"?"":`${r.kind} `,n("id"),r.body?[" ",D(n("body"))]:W(t)]}function W0(e,t,n){let{node:r}=e,u=!(ee(r.expression)||Te(r.expression)),a=D(["<",A([m,n("typeAnnotation")]),m,">"]),o=[I("("),A([m,n("expression")]),m,I(")")];return u?Ze([[a,n("expression")],[a,D(o,{shouldBreak:!0})],[a,n("expression")]]):D([a,n("expression")])}function _0(e,t,n,r){let{node:u}=e;if(u.type.startsWith("TS")){if(la(u))return u.type.slice(2,-7).toLowerCase();switch(u.type){case"TSThisType":return"this";case"TSTypeAssertion":return W0(e,t,n);case"TSDeclareFunction":return gr(e,t,n);case"TSExportAssignment":return["export = ",n("expression"),W(t)];case"TSModuleBlock":return co(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return vr(e,t,n);case"TSTypeAliasDeclaration":return $o(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Ao(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return go(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[n("expression"),n("typeArguments")];case"TSTemplateLiteralType":return Oa(e,t,n);case"TSNamedTupleMember":return _o(e,t,n);case"TSRestType":return Wo(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Pr(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return It(e,t,n,"params");case"TSTypeParameter":return Uo(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return Mo(e,t,n);case"TSArrayType":return No(n);case"TSPropertySignature":return[u.readonly?"readonly ":"",$e(e,t,n),ae(e),Z(e,n),Ne(e,t)];case"TSParameterProperty":return[mn(u),u.static?"static ":"",u.override?"override ":"",u.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return Vo(e,n);case"TSIndexSignature":return q0(e,t,n);case"TSTypePredicate":return Go(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[pn(e,t,n),u.qualifier?[".",n("qualifier")]:"",It(e,t,n,"typeArguments")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return Jo(e,t,n);case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":return s0(e,t,n);case"TSMethodSignature":return R0(e,t,n);case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),W(t)];case"TSEnumDeclaration":return Lo(e,n);case"TSEnumBody":return xt(e,t,n);case"TSEnumMember":return jo(e,t,n);case"TSImportEqualsDeclaration":return["import ",bo(u,!1),n("id")," = ",n("moduleReference"),W(t)];case"TSExternalModuleReference":return pn(e,t,n);case"TSModuleDeclaration":return X0(e,t,n);case"TSConditionalType":return wr(e,t,n);case"TSInferType":return qo(e,t,n);case"TSIntersectionType":return Ro(e,t,n);case"TSUnionType":return va(e,t,n,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Oo(e,t,n);case"TSTupleType":return br(e,t,n);case"TSTypeReference":return[n("typeName"),It(e,t,n,"typeArguments")];case"TSTypeAnnotation":return ka(e,t,n);case"TSEmptyBodyFunctionExpression":return Cr(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Eu(e,n,"?");case"TSJSDocNonNullableType":return Eu(e,n,"!");default:throw new Ct(u,"TypeScript")}}}function $0(e,t,n,r){for(let u of[nD,L0,A0,_0,Qy]){let a=u(e,t,n,r);if(a!==void 0)return a}}var U0=v(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function Au(e,t,n,r){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:u}=e,a=Sr(e)?g0(e,t):$0(e,t,n,r);if(!a)return"";if(U0(u))return a;a=G0(e,t,a);let o=u.type!=="ClassExpression"&&q(u.decorators)?za(e,t,n):"",i=ce(e,t);return!o&&!i?a:Zu(a,s=>[i?"(":"",o?D([o,s]):s,i?")":""])}function G0(e,t,n){let{node:r}=e;return(C(r,b.Leading)||C(r,b.Trailing))&&_u(e)?[A([m,ne(e,n,t)]),m]:n}var V0={experimental_avoidAstMutation:!0,experimental_locForRangeFormat:{locStart:k,locEnd:ln}},Ko={features:V0,massageAstNode:_a,canAttachComment:Ni,handleComments:ks,isGap:Is,willPrintOwnComments:_l,embed:hc,insertPragma:Wc,printComment:Uc,printPrettierIgnored:Au,print:Au,getVisitorKeys:Gu,isBlockComment:Se,hasPrettierIgnore:Sr},K0=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".slnlaunch",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".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:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],Ho={};_n(Ho,{estree:()=>Ko,"estree-json":()=>ef});var H0={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},z0=Uu(H0),Q0=z0;function Wn(e){return e.extra.raw}var Y0=new Set(["start","end","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function zo(e,t){let{type:n}=e;if(n==="ObjectProperty"){let{key:r}=e;if(r.type==="Identifier"){let{name:u}=r;t.key={type:"StringLiteral",value:u,extra:{rawValue:u}}}else if(r.type==="NumericLiteral"){let u=Wn(r);String(Number(u))===u&&(t.key={type:"StringLiteral",value:u,extra:{rawValue:u}})}}if(n==="StringLiteral"&&delete t.extra.raw,n==="UnaryExpression"&&e.operator==="+")return t.argument;if((n==="ArrayExpression"||n==="ObjectExpression")&&(t.extra??(t.extra={}),e.extra?.trailingComma&&delete t.extra.trailingComma),n==="ArrayExpression"){for(let[r,u]of e.elements.entries())u===null&&t.elements.splice(r,0,{type:"NullLiteral"});return}if(n==="TemplateLiteral"){let r=e.quasis[0].value.cooked;return{type:"StringLiteral",value:r,extra:{rawValue:r}}}}zo.ignoredProperties=Y0;function Z0(e,t,n){let{node:r}=e;switch(r.type){case"JsonRoot":return[n("node"),E];case"ArrayExpression":{if(r.elements.length===0)return"[]";let u=e.map(()=>e.node===null?"null":n(),"elements");return["[",A([E,M([",",E],u)]),E,"]"]}case"ObjectExpression":return r.properties.length===0?"{}":["{",A([E,M([",",E],e.map(n,"properties"))]),E,"}"];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 nt(Wn(r),t);case"NumericLiteral":{let u=Wn(r);return gu(e)&&String(Number(u))===u?`"${u}"`:u}case"Identifier":return gu(e)?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Ct(r,"JSON")}}function gu(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var ef={massageAstNode:zo,print:Z0,getVisitorKeys:Q0},vt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},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."}},Xe="JavaScript",tf={arrowParens:{category:Xe,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:vt.bracketSameLine,objectWrap:vt.objectWrap,bracketSpacing:vt.bracketSpacing,jsxBracketSameLine:{category:Xe,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Xe,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Xe,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Xe,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:vt.singleQuote,jsxSingleQuote:{category:Xe,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Xe,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:Xe,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:vt.singleAttributePerLine},nf=tf,rf={...Cu,...Ho},uf=[...ri,...K0];export{ni as default,uf as languages,nf as options,rf as printers};