@bagelink/vue 1.20.72 → 1.20.78

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 (71) hide show
  1. package/dist/StructuredEditor-HFOfODf9.cjs +2 -0
  2. package/dist/StructuredEditor-w0UY60b7.js +2431 -0
  3. package/dist/StructuredEditor.css +1 -0
  4. package/dist/babel-BVvTH0ev.js +10053 -0
  5. package/dist/babel-BzIDwrmk.cjs +16 -0
  6. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts +45 -28
  7. package/dist/components/form/inputs/CodeEditor/Index.vue.d.ts.map +1 -1
  8. package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts +10 -0
  9. package/dist/components/form/inputs/CodeEditor/SearchPanel.vue.d.ts.map +1 -0
  10. package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts +27 -0
  11. package/dist/components/form/inputs/CodeEditor/StructuredEditor.vue.d.ts.map +1 -0
  12. package/dist/components/form/inputs/CodeEditor/formatCode.d.ts +4 -0
  13. package/dist/components/form/inputs/CodeEditor/formatCode.d.ts.map +1 -0
  14. package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
  15. package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
  16. package/dist/components/form/inputs/Upload/AssetUploadInput.vue.d.ts.map +1 -1
  17. package/dist/core.css +3 -1
  18. package/dist/dist-B-MCiFKR.cjs +10 -0
  19. package/dist/dist-B0uc2InW.js +6 -0
  20. package/dist/dist-BIAEQGHn.cjs +1 -0
  21. package/dist/dist-BLxHnfU6.js +1071 -0
  22. package/dist/dist-BRA2DQF2.cjs +1 -0
  23. package/dist/dist-BnLdfA7w.js +69 -0
  24. package/dist/dist-CL50Ff42.cjs +1 -0
  25. package/dist/dist-CwUttjIh.js +1100 -0
  26. package/dist/dist-CzY35u4H.cjs +1 -0
  27. package/dist/dist-D8OWrPLr.js +1336 -0
  28. package/dist/dist-DSCI9g6w.cjs +13 -0
  29. package/dist/dist-DsBgijLf.cjs +1 -0
  30. package/dist/dist-GbVY_Jpv.cjs +1 -0
  31. package/dist/dist-IV7z-zur.js +11909 -0
  32. package/dist/dist-Mr0UMyoK.js +1063 -0
  33. package/dist/dist-jq7acmcZ.js +6 -0
  34. package/dist/estree-CKgw47OZ.js +8211 -0
  35. package/dist/estree-HqeJuE3g.cjs +44 -0
  36. package/dist/form-flow/form-flow.d.ts.map +1 -1
  37. package/dist/html-B-hsQYII.js +7289 -0
  38. package/dist/html-BrqW5pT-.cjs +25 -0
  39. package/dist/index.cjs +1 -764
  40. package/dist/index.mjs +308 -65600
  41. package/dist/postcss-Bk65KKdh.js +6703 -0
  42. package/dist/postcss-BxY0xtVZ.cjs +61 -0
  43. package/dist/src-BACj3hjY.cjs +764 -0
  44. package/dist/src-SwfYbKT-.js +65571 -0
  45. package/dist/src.css +1 -0
  46. package/dist/standalone-CAcRm_h6.cjs +29 -0
  47. package/dist/standalone-D-HcbQmf.js +3549 -0
  48. package/dist/style.css +3 -1
  49. package/dist/utils/calendarDate.d.ts +6 -0
  50. package/dist/utils/calendarDate.d.ts.map +1 -0
  51. package/dist/utils/date.d.ts.map +1 -1
  52. package/package.json +13 -2
  53. package/src/components/form/inputs/CodeEditor/Index.vue +70 -310
  54. package/src/components/form/inputs/CodeEditor/SearchPanel.vue +124 -0
  55. package/src/components/form/inputs/CodeEditor/StructuredEditor.vue +266 -0
  56. package/src/components/form/inputs/CodeEditor/formatCode.ts +34 -0
  57. package/src/components/form/inputs/DatePicker.vue +4 -1
  58. package/src/components/form/inputs/RichText/index.vue +2 -1
  59. package/src/components/form/inputs/Upload/AssetUploadInput.vue +28 -5
  60. package/src/form-flow/form-flow.ts +2 -0
  61. package/src/utils/calendarDate.ts +16 -0
  62. package/src/utils/date.ts +2 -1
  63. package/vite.config.ts +5 -3
  64. package/dist/components/form/inputs/CodeEditor/useHighlight.d.ts +0 -33
  65. package/dist/components/form/inputs/CodeEditor/useHighlight.d.ts.map +0 -1
  66. package/dist/index.css +0 -1
  67. package/src/components/form/inputs/CodeEditor/useHighlight.ts +0 -123
  68. /package/dist/{page-flip.browser-BXnk8BM6.js → page-flip.browser-0kqlwcC8.js} +0 -0
  69. /package/dist/{page-flip.browser-ByKQXhqK.cjs → page-flip.browser-Dfy5mAgM.cjs} +0 -0
  70. /package/dist/{pdf-CV7M2d0x.cjs → pdf-BBd7GH-5.cjs} +0 -0
  71. /package/dist/{pdf-DuN3_wNN.js → pdf-scP2ZqGZ.js} +0 -0
@@ -0,0 +1,44 @@
1
+ var pi=Object.defineProperty,Un=(e,t)=>{for(var n in t)pi(e,n,{get:t[n],enumerable:!0})},xu={};Un(xu,{languages:()=>ai,options:()=>ri,printers:()=>ui});var li=[{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}],Tu={};Un(Tu,{estree:()=>ei});function ci(e){return Array.isArray(e)&&e.length>0}var J=ci,Di=()=>{},ut=Di;function B(e){let t=new Set(e);return n=>t.has(n?.type)}var Vn=(e,t)=>(n,r,...u)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,u);function yi(e){return this[e<0?this.length+e:e]}var N=Vn("at",function(){if(Array.isArray(this)||typeof this=="string")return yi});function ge(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function di(e){let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),t}var fi=new WeakMap;function oe(e){return ge(fi,e,di)}function mi(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 Fi(e){return e.rest?!0:N(0,oe(e),-1)?.type==="RestElement"}var Ei=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const";function Gn({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 gt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}var Su=e=>Number.isSafeInteger(e)&&e>=0;function cn(e){return e.range?.[1]??e.end}function P(e){let t=e.range?.[0]??e.start,n=(e.declaration?.decorators??e.decorators)?.[0];return n?Math.min(P(n),t):t}var Ai=5,gi=8,Ci=8,Jr=e=>t=>t.label?v(t.label):P(t)+e,hi=e=>e.__contentEnd??cn(e),bu=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],xi=new Map([["BreakStatement",Jr(Ai)],["ContinueStatement",Jr(gi)],["DebuggerStatement",e=>P(e)+Ci],["VariableDeclaration",e=>v(N(0,e.declarations,-1))],...bu.map(e=>[e,hi])]),Ti=B(bu),Pn=e=>{if(Ti(e)&&e.__contentEnd)return!0;let{type:t}=e;return t==="BreakStatement"||t==="ContinueStatement"||t==="DebuggerStatement"||t==="VariableDeclaration"?!0:t==="IfStatement"?Pn(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?Pn(e.body):!1};function v(e){let{type:t}=e;return t==="IfStatement"?v(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?v(e.body):xi.get(t)?.(e)??cn(e)}function Dn(e,t){let n=P(e);return Su(n)&&n===P(t)}function Si(e,t){let n=v(e);return Su(n)&&n===v(t)}function bi(e,t){return Dn(e,t)&&Si(e,t)}function De(e){return e.extra?.raw??e.raw}function Bi(e){return e.type==="BigIntLiteral"||e.type==="Literal"&&!!e.bigint}function vi(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 Bu(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}function K(e){return e?.type==="StringLiteral"||e?.type==="Literal"&&typeof e.value=="string"}var xe=B(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Pi=B(["SatisfiesExpression","TSSatisfiesExpression"]),de=B(["TSUnionType","UnionTypeAnnotation"]),_t=B(["TSIntersectionType","IntersectionTypeAnnotation"]),Kn=B(["TupleTypeAnnotation","TSTupleType"]),_e=B(["TSConditionalType","ConditionalTypeAnnotation"]),vu=B(["TSTypeAliasDeclaration","TypeAlias"]),ft=B(["ReturnStatement","ThrowStatement"]),ki=B(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Z=B(["ArrayExpression"]),Te=B(["ObjectExpression"]),Hn=B(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),$e=B(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),jt=B(["FunctionExpression","ArrowFunctionExpression"]),z=B(["JSXElement","JSXFragment"]),Le=B(["BinaryExpression","LogicalExpression","NGPipeExpression"]),L=B(["CallExpression","OptionalCallExpression"]),O=B(["MemberExpression","OptionalMemberExpression"]),Lt=B(["CallExpression","OptionalCallExpression","NewExpression"]),mt=B(["CallExpression","OptionalCallExpression","NewExpression","ImportExpression"]),at=B(["ChainExpression","TSNonNullExpression"]),wi=B(["TSArrayType","ArrayTypeAnnotation"]),Ii=B(["TSTypeParameterInstantiation","TypeParameterInstantiation"]);function kn(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||!bi(t,n)?!1:K(t)?t.value===n.value&&De(t)===De(n):t.type==="Identifier"?t.name===n.name:!1}var Ni=B(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),Mi=(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&&!gt(t)&&t.value!==t.key||t?.type==="ImportSpecifier"&&kn(t)&&t.local===e&&t.local!==t.imported||t?.type==="ExportSpecifier"&&kn(t)&&t.exported===e&&t.local!==t.exported,ji=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&oe(e).length===0&&!e.returnType&&!J(e.typeParameters)&&e.body),qr=(e,[t])=>t?.typeAnnotation===e&&Ei(t),Li=(e,[t,...n])=>qr(e,[t])||t?.typeName===e&&qr(t,n);function Oi(e,t){return Ni(e)||Mi(e,t)||ji(e,t)?!1:e.type==="EmptyStatement"?Gn({node:e,parent:t[0]}):!(Li(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var Ji=Oi;function qi(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 zn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=qi(e)}function _(e,t){t.leading=!0,t.trailing=!1,zn(e,t)}function ie(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),zn(e,t)}function R(e,t){t.leading=!1,t.trailing=!0,zn(e,t)}function yn(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}}yn(/\s/);var Ft=yn(" "),Ri=yn(",; "),Xi=yn(/[^\n\r]/);function Wi(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 Qn=Wi,Rr=e=>e===`
2
+ `||e==="\r"||e==="\u2028"||e==="\u2029";function _i(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(Rr(u))return t-1}else{if(u==="\r"&&e.charAt(t+1)===`
4
+ `)return t+2;if(Rr(u))return t+1}return t}var Et=_i;function $i(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Xi(e,t):t}var Yn=$i;function Ui(e,t){let n=null,r=t;for(;r!==n;)n=r,r=Ft(e,r),r=Qn(e,r),r=Yn(e,r),r=Et(e,r);return r}var dn=Ui;function Vi(e,t){let n=dn(e,t);return n===!1?"":e.charAt(n)}var ve=Vi;function Gi(e,t,n={}){let r=Ft(e,n.backwards?t-1:t,n);return r!==Et(e,r,n)}var G=Gi;function Ki(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
5
+ `)return!0;return!1}var se=Ki,Hi=new WeakMap;function zi(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(Hi,e,zi)}function wn(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 Xr(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 Qi=Symbol.for("comments"),Yi=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},H=Vn("replaceAll",function(){if(typeof this=="string")return Yi});function Zi(e){return H(0,e,/[^\n]/g," ")}var es=Zi;function ts(e,t){for(let n of t){let r=P(n),u=v(n);e=e.slice(0,r)+es(e.slice(r,u))+e.slice(u)}return e}var ns=new WeakMap;function he(e){let t=e[Qi];return ge(ns,t,n=>ts(e.originalText,n))}function Pu(e,t){let n=v(e)-1;if(t.originalText[n]===")")return n}function rs(e,t){if(Pu(e,t)===void 0)return;let n=he(t),r=v(e.typeArguments??e.callee),u=n.indexOf("(",r);if(u!==-1)return u}function us(e,t,n){let r=Pu(e,n);if(r===void 0||v(t)>r)return!1;let u=rs(e,n);return u===void 0?!1:P(t)>u}var Se=B(["Block","CommentBlock","MultiLine"]),Ve=B(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function Ge(e){return e?.type==="ObjectProperty"||e?.type==="Property"&&!gt(e)}function tt(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}var as=new WeakMap;function Zn(e){return ge(as,e,t=>Se(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/.test(t.value))}function er({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(")",P(n));if(P(e)>u)return _(n,e),!0}return!1}var ku=(e,t)=>Se(e)&&!se(t,P(e),v(e)),tr=(e,t)=>Ve(e)||ku(e,t);function In(e,t){e.type==="BlockStatement"?$t(e,t):_(e,t)}function $t(e,t){let n=(e.body||e.properties).find(({type:r})=>r!=="EmptyStatement");n?_(n,t):ie(e,t)}function nr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){return n?.type!=="IfStatement"||!r?!1:ve(u,v(e))===")"?(R(t,e),!0):r===n.consequent?(_(r,e),!0):t===n.consequent&&r===n.alternate?os({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}):!1}function os({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=he(a).indexOf("else",v(n.consequent));return P(e)>=o?(_(r,e),!0):t.type!=="BlockStatement"&&tr(e,u)&&!se(u,v(t),P(e))?(R(t,e),!0):(ie(n,e),!0)}function rr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return n?.type==="SwitchStatement"&&n.cases.length===0&&!r&&t===n.discriminant&&ve(u,v(e))==="}"?(ie(n,e),!0):!1}function ur({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(n?.type==="WhileStatement"||n?.type==="WithStatement")&&r?ve(u,v(e))===")"?(R(t,e),!0):n.body===r?(_(r,e),!0):!1:!1}function wu(e,{comment:t,text:n,options:r}){if(de(e)&&ku(t,n)&&!tt(t)){let u=he(r).slice(v(t),P(e));return/^[ \t]*$/.test(u)}return!1}function Wr(e,t){return _(wu(e,t)?e.types[0]:e,t.comment),!0}function is(e){return[ar,Xu,Nu,Ou,cs,nr,ur,rr,Iu,Mu,er,Es,As,or,qu,Cs,ju,Ju,Ds,vs,ir,sr,_u].some(t=>t(e))}function ss(e){return[ar,ls,Ou,Nu,qu,nr,ur,rr,Iu,Mu,er,Ju,Fs,gs,or,Ru,bs,Bs,Ps,ir,Is,Wu,ks,sr].some(t=>t(e))}function ps(e){return[ar,Xu,nr,ur,rr,er,ju,or,Ru,ir,fs,ds,Ts,Wu,sr,_u].some(t=>t(e))}function ls({comment:e,followingNode:t}){return t&&Zn(e)?(_(t,e),!0):!1}function Iu({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"?($t(r,e),!0):r.type==="TryStatement"?(In(r.finalizer,e),!0):r.type==="CatchClause"?(In(r.body,e),!0):!1}function cs({comment:e,enclosingNode:t,followingNode:n}){return O(t)&&n?.type==="Identifier"?(_(t,e),!0):!1}function Ds({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!(t?.type==="ConditionalExpression"||_e(t))?!1:n?.type==="ConditionalExpression"||_e(n)?(ie(t,e),!0):!1}function Nu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=t&&!se(u,v(t),P(e));return(!t||!o)&&(n?.type==="ConditionalExpression"||_e(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(Se(e)&&!se(a.originalText,P(e),v(e)))?(ie(n,e),!0):(_(r,e),!0):!1}var ys=B(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Mu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(ys(n)){let{decorators:u}=n;if(J(u)&&r?.type!=="Decorator")return R(N(0,u,-1),e),!0;if(n.body&&r===n.body)return $t(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 _r=B(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function ju({placement:e,comment:t,precedingNode:n,enclosingNode:r,followingNode:u,text:a}){return r&&n&&ve(a,v(t))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&n.type==="Identifier"&&r.key===n&&ve(a,v(n))!==":"?(R(n,t),!0):_r(r)&&!u&&e==="remaining"?(R(ve(a,v(t))==="("?n:r,t),!0):n?.type==="Decorator"&&_r(r)&&(Ve(t)||e==="ownLine")?(R(n,t),!0):!1}var Lu=B(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function ds({comment:e,precedingNode:t,enclosingNode:n,text:r}){return ve(r,v(e))!=="("?!1:t&&Lu(n)?(R(t,e),!0):!1}function fs({comment:e,enclosingNode:t,text:n}){if(t?.type!=="ArrowFunctionExpression")return!1;let r=dn(n,v(e));return r!==!1&&n.slice(r,r+2)==="=>"?(ie(t,e,"commentBeforeArrow"),!0):!1}function $r(e,t,n){if(P(t)>=v(e)||v(t)<=P(e))return!1;let r=he(n);return r.slice(0,P(t)).trimEnd().endsWith("(")&&r.slice(v(t)).trimStart().startsWith(")")}var ms=B(["ComponentDeclaration","DeclareComponent","ComponentTypeAnnotation"]);function ar({comment:e,enclosingNode:t,options:n}){if(!t)return!1;if(mt(t)&&Ce(t).length===0&&$r(t,e,n))return ie(t,e),!0;let r=$u(t)||ms(t)||t.type==="HookTypeAnnotation"?t:t.type==="MethodDefinition"||t.type==="TSAbstractMethodDefinition"||t.type==="Property"&&gt(t)?t.value:void 0;return r&&oe(r).length===0&&$r(r,e,n)?(ie(r,e),!0):!1}function Ou({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")&&($u(n)||(n?.type==="TSAbstractMethodDefinition"||n?.type==="MethodDefinition")&&n.value.type==="TSEmptyBodyFunctionExpression")&&ve(u,v(e))===")"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&(n?.type==="ComponentDeclaration"||n?.type==="DeclareComponent")&&ve(u,v(e))===")"?(R(t,e),!0):!Se(e)&&r?.type==="BlockStatement"&&Lu(n)&&(n.type==="MethodDefinition"?n.value.body:n.body)===r&&dn(u,v(e))===P(r)?($t(r,e),!0):!1}function Ju({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(_(t,e),!0):!1}function Fs({comment:e,precedingNode:t,enclosingNode:n,options:r}){return Lt(n)&&n.callee===t&&n.arguments.length>0&&us(n,e,r)?(_(n.arguments[0],e),!0):!1}function Es({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return de(n)?(tt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(R(t,e),!0):!1):(de(r)&&tt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function As({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type==="MatchOrPattern"?(tt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(R(t,e),!0):!1):(r&&r.type==="MatchOrPattern"&&tt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function gs({comment:e,enclosingNode:t}){return Ge(t)?(_(t,e),!0):!1}function or({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&&!J(t.directives)?(r?ie(t,e):_(t,e),!0):!1}function qu({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)&&G(r,v(e))?(R(t,e),!0):!1}function Cs({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(_(t,e),!0):!1}var hs=B(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),xs=B(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Ru(e){let{comment:t,enclosingNode:n,followingNode:r,options:u,placement:a}=e;if(hs(n)&&r&&a==="endOfLine"&&(xs(r)||Se(t)))return Wr(r,e);if(vu(n)&&r){let o=n.id,i=he(u).indexOf("=",v(o));if(P(t)>=i)return Wr(r,e)}return!1}function Ts({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,v(e))===";"?(R(t,e),!0):!1}function Xu({comment:e,enclosingNode:t,followingNode:n}){if(tt(e)&&t?.type==="TSMappedType"&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Ss(e,t,n){let r=he(n).indexOf("[",P(e));return v(t)<r}function ir({comment:e,enclosingNode:t,options:n}){if(t?.type==="TSMappedType"&&Ss(t,e,n))return ie(t,e),!0}function bs({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!=="SwitchCase"||t.test||!n||n!==t.consequent[0]?!1:(n.type==="BlockStatement"&&Ve(e)?$t(n,e):ie(t,e),!0)}function Bs({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return de(t)&&(wi(n)&&!r||_t(n)||de(n))?(R(N(0,t.types,-1),e),!0):!1}function vs({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 Ps({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return!r&&n?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&se(u,P(n.argument),P(t.right))&&tr(e,u)&&!se(u,P(t.right),P(e))?(R(t.right,e),!0):!1}function ks({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(de(t)||_t(t)))return _(t,n),!0}function sr({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:u}){if(xe(e)&&t===e.expression&&!tr(r,u))return n?_(n,r):R(e,r),!0}function ws(e,t,n){let r=he(n).lastIndexOf("=>",P(t.body));return v(e)<r}function Is({comment:e,enclosingNode:t,followingNode:n,precedingNode:r,options:u}){return t?.type!=="ArrowFunctionExpression"||!n||!r||ws(e,t,u)?!1:(In(n,e),!0)}function Wu({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 _u(e){let{followingNode:t,comment:n}=e;return wu(t,e)?(_(t.types[0],n),!0):!1}var $u=B(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod","HookDeclaration"]),Ns={endOfLine:ss,ownLine:is,remaining:ps};function Ms(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=H(0,e,/[\s(]/g,""),e===""||e==="/*"||e==="/*::"}var js=Ms,S={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Uu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(n,r,u)=>!(e&S.Leading&&!n.leading||e&S.Trailing&&!n.trailing||e&S.Dangling&&(n.leading||n.trailing)||e&S.Block&&!Se(n)||e&S.Line&&!Ve(n)||e&S.First&&r!==0||e&S.Last&&r!==u.length-1||e&S.PrettierIgnore&&!tt(n)||t&&!t(n))};function x(e,t,n){if(!J(e?.comments))return!1;let r=Uu(t,n);return r?e.comments.some(r):!0}function ye(e,t,n){if(!Array.isArray(e?.comments))return[];let r=Uu(t,n);return r?e.comments.filter(r):e.comments}function fn(e){return e?.prettierIgnore||x(e,S.PrettierIgnore)}function Vu(e){let{node:t}=e;return(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression")&&(e.key==="callee"&&L(e.parent)||e.key==="tag"&&e.parent.type==="TaggedTemplateExpression")}var Ls=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(n=>[n,t])));function rn(e){return Ls.get(e)}var Ur={"==":!0,"!=":!0,"===":!0,"!==":!0},Qt={"*":!0,"/":!0,"%":!0},Nn={">>":!0,">>>":!0,"<<":!0};function pr(e,t){return!(rn(t)!==rn(e)||e==="**"||Ur[e]&&Ur[t]||t==="%"&&Qt[e]||e==="%"&&Qt[t]||t!==e&&Qt[t]&&Qt[e]||Nn[e]&&Nn[t])}function Os(e){return!!Nn[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 qs(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 Vr=e=>e.extra?.parenthesized,Rs=B(["OptionalCallExpression","OptionalMemberExpression"]);function Xs(e){let{node:t}=e,n=t;for(;n.type==="TSNonNullExpression";)if(n=n.expression,Vr(n))return!1;return Rs(n)?Vr(t)?!0:!(e.key==="expression"&&e.parent.type==="TSNonNullExpression"):!1}function Ws(e){return(e.node.type==="ChainExpression"||Xs(e))&&qs(e)}function _s(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 $s(e){return e!==null&&typeof e=="object"}var Gu=$s;function*Us(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,u=a=>Gu(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*Vs(e,t){let n=[e];for(let r=0;r<n.length;r++){let u=n[r];for(let a of Us(u,t))yield a,n.push(a)}}function Gs(e,{getVisitorKeys:t,predicate:n}){for(let r of Vs(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var Pt=null;function It(e){if(Pt!==null&&typeof Pt.property){let t=Pt;return Pt=It.prototype=null,t}return Pt=It.prototype=e??Object.create(null),new It}var Ks=10;for(let e=0;e<=Ks;e++)It();function Hs(e){return It(e)}function zs(e,t="type"){Hs(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 Ku=zs,p=[["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"]],Hu=Ku({ArrayExpression:p[0],AssignmentExpression:p[1],BinaryExpression:p[1],InterpreterDirective:[],Directive:p[2],DirectiveLiteral:[],BlockStatement:p[3],BreakStatement:p[4],CallExpression:p[5],CatchClause:["param","body"],ConditionalExpression:p[6],ContinueStatement:p[4],DebuggerStatement:[],DoWhileStatement:p[7],EmptyStatement:[],ExpressionStatement:p[8],File:["program"],ForInStatement:p[9],ForStatement:["init","test","update","body"],FunctionDeclaration:p[10],FunctionExpression:p[10],Identifier:["typeAnnotation","decorators"],IfStatement:p[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:p[1],MemberExpression:p[11],NewExpression:p[5],Program:p[3],ObjectExpression:p[12],ObjectMethod:p[13],ObjectProperty:p[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:p[15],SequenceExpression:p[16],ParenthesizedExpression:p[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:p[15],TryStatement:["block","handler","finalizer"],UnaryExpression:p[15],UpdateExpression:p[15],VariableDeclaration:["declarations"],VariableDeclarator:p[17],WhileStatement:p[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:p[18],ClassExpression:p[19],ClassDeclaration:p[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:p[20],ExportSpecifier:["local","exported"],ForOfStatement:p[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:p[21],ImportNamespaceSpecifier:p[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:p[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:p[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:p[15],AwaitExpression:p[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:p[22],OptionalMemberExpression:p[11],OptionalCallExpression:p[5],ClassProperty:p[23],ClassPrivateProperty:p[23],ClassPrivateMethod:p[13],PrivateName:p[24],StaticBlock:p[18],ImportAttribute:p[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:p[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:p[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:p[28],DeclareModule:p[29],DeclareModuleExports:p[30],DeclareTypeAlias:p[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:p[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:p[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:p[32],GenericTypeAnnotation:p[27],InferredPredicate:[],InterfaceExtends:p[27],InterfaceDeclaration:p[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:p[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:p[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:p[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:p[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:p[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:p[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:p[31],TypeAnnotation:p[30],TypeCastExpression:p[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:p[37],TypeParameterInstantiation:p[37],UnionTypeAnnotation:p[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:p[29],EnumBooleanBody:p[38],EnumNumberBody:p[38],EnumStringBody:p[38],EnumSymbolBody:p[38],EnumBooleanMember:p[17],EnumNumberMember:p[17],EnumStringMember:p[17],EnumDefaultedMember:p[24],IndexedAccessType:p[39],OptionalIndexedAccessType:p[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:p[8],JSXSpreadChild:p[8],JSXIdentifier:[],JSXMemberExpression:p[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:p[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:p[40],Decorator:p[8],DoExpression:p[18],ExportDefaultSpecifier:p[22],ModuleExpression:p[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:p[41],TSDeclareMethod:p[42],TSQualifiedName:p[1],TSCallSignatureDeclaration:p[43],TSConstructSignatureDeclaration:p[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:p[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:p[43],TSConstructorType:p[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:p[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:p[38],TSArrayType:p[26],TSTupleType:p[35],TSOptionalType:p[30],TSRestType:p[30],TSNamedTupleMember:["label","elementType"],TSUnionType:p[33],TSIntersectionType:p[33],TSConditionalType:p[45],TSInferType:p[46],TSParenthesizedType:p[30],TSTypeOperator:p[30],TSIndexedAccessType:p[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:p[47],TSClassImplements:p[48],TSInterfaceHeritage:p[48],TSInterfaceDeclaration:p[28],TSInterfaceBody:p[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:p[48],TSAsExpression:p[36],TSSatisfiesExpression:p[36],TSTypeAssertion:p[36],TSEnumBody:p[38],TSEnumDeclaration:p[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:p[29],TSModuleBlock:p[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:p[8],TSNonNullExpression:p[8],TSExportAssignment:p[8],TSNamespaceExportDeclaration:p[24],TSTypeAnnotation:p[30],TSTypeParameterInstantiation:p[37],TSTypeParameterDeclaration:p[37],TSTypeParameter:["name","constraint","default"],ChainExpression:p[8],Literal:[],MethodDefinition:p[14],PrivateIdentifier:[],Property:p[25],PropertyDefinition:p[23],AccessorProperty:p[40],TSAbstractAccessorProperty:p[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:p[25],TSAbstractPropertyDefinition:p[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:p[8],AsExpression:p[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:p[32],ConditionalTypeAnnotation:p[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:p[29],DeclareHook:p[24],DeclareNamespace:p[29],EnumBigIntBody:p[38],EnumBigIntMember:p[17],EnumBody:p[38],HookDeclaration:p[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:p[46],KeyofTypeAnnotation:p[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:p[24],MatchExpression:p[50],MatchExpressionCase:p[51],MatchIdentifierPattern:p[24],MatchInstanceObjectPattern:p[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:p[47],MatchMemberPattern:["base","property"],MatchObjectPattern:p[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:p[15],MatchStatement:p[50],MatchStatementCase:p[51],MatchUnaryPattern:p[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:p[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:p[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:p[12],SatisfiesExpression:p[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:p[30],TypePredicate:p[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:p[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:p[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:p[25],NGRoot:p[53],JsExpressionRoot:p[53],JsonRoot:p[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:p[30],TSJSDocNonNullableType:p[30]});function Mn(e,t){return t(e)||Gs(e,{getVisitorKeys:Hu,predicate:t})}function lr(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||O(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||xe(e)||at(e)}function Qs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function zu(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 je(e,t){return z(t)?fn(t):x(t,S.Leading,n=>G(e,v(n)))}function Ys(e,t){if(je(t.originalText,e)||x(e,S.Leading,n=>se(t.originalText,P(n),v(n)))&&!z(e))return!0;if(lr(e)){let n=e,r;for(;r=Qs(n);)if(n=r,je(t.originalText,n))return!0}return!1}var Zs=new WeakMap;function Qu(e,t){return ge(Zs,e,n=>Ys(n,t))}function Ke(e){for(;at(e);)e=e.expression;return e}function ep(e,t,n){let{node:r,key:u,parent:a}=e;switch(a.type){case"ReturnStatement":case"ThrowStatement":if(tp(e,t))return!1;break;case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(u==="superClass"){let o=Ke(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"&&J(o.decorators))return!0}break;case"ExportDefaultDeclaration":if(Yu(e,t,n))return!0;break;case"Decorator":if(u==="expression"&&!np(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"))&&rp(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 tp(e,t){let{key:n,parent:r}=e;if(!(n==="argument"&&ft(r)))return!1;let{node:u}=e;return!!((u.type==="SequenceExpression"||u.type==="AssignmentExpression")&&Qu(u,t))}function Yu(e,t,n){let{node:r,parent:u}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?u.type==="ExportDefaultDeclaration"||!n(e,t):!lr(r)||u.type!=="ExportDefaultDeclaration"&&n(e,t)?!1:e.call(()=>Yu(e,t,n),...zu(r))}function np(e){return e.type==="ChainExpression"&&(e=e.expression),jn(e)||L(e)&&!e.optional&&jn(e.callee)}function jn(e){return e.type==="Identifier"?!0:O(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&jn(e.object):!1}function rp(e){return Mn(e,t=>t.type==="ObjectTypeAnnotation"&&Mn(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&&op(n)&&wt(e))return!0;if(up(n))return!1;if(n.type==="Identifier")return _s(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=ep(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"&&ap(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(!x(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=rn(o),l=u.operator,y=rn(l);return!!(y>s||r==="right"&&y===s||y===s&&!pr(l,o)||y<s&&o==="%"&&(l==="+"||l==="-")||Os(l))}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"&&_e(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"&&_e(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(de(u)||_t(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"&&O(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(Ws(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"&&O(u);case"NGPipeExpression":return!(u.type==="NGRoot"||u.type==="NGMicrosyntaxExpression"||u.type==="ObjectProperty"&&!n.extra?.parenthesized||Z(u)||r==="arguments"&&L(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==="<"||!Z(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"&&!Lt(u)&&!Ge(u)&&!ft(u)&&u.type!=="TypeCastExpression"&&u.type!=="VariableDeclarator"&&u.type!=="YieldExpression"&&u.type!=="MatchExpressionCase"&&!(r==="declaration"&&u.type==="ExportDefaultDeclaration");case"TSInstantiationExpression":return r==="object"&&O(u);case"MatchOrPattern":return u.type==="MatchAsPattern"}return!1}var up=B(["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 ap(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 op(e){return Te(e)}function wt(e){let{parent:t,key:n}=e;switch(t.type){case"NGPipeExpression":if(n==="arguments"&&e.isLast)return e.callParent(wt);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(wt);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(wt);break;case"UnaryExpression":if(t.prefix&&e.callParent(wt))return!0;break}return!1}var ce=Zu,ot="string",Oe="array",Ct="cursor",it="indent",st="align",pt="trim",Ae="group",He="fill",Pe="if-break",lt="indent-if-break",ct="line-suffix",ze="line-suffix-boundary",pe="line",qe="label",Re="break-parent",ea=new Set([Ct,it,st,pt,Ae,He,Pe,lt,ct,ze,pe,qe,Re]);function ip(e){if(typeof e=="string")return ot;if(Array.isArray(e))return Oe;if(!e)return;let{type:t}=e;if(ea.has(t))return t}var Qe=ip,sp=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function pp(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(Qe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=sp([...ea].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'.
7
+ Expected it to be ${r}.`}var lp=class extends Error{name="InvalidDocError";constructor(e){super(pp(e)),this.doc=e}},Ot=lp,Gr={};function cp(e,t,n,r){let u=[e];for(;u.length>0;){let a=u.pop();if(a===Gr){n(u.pop());continue}n&&u.push(a,Gr);let o=Qe(a);if(!o)throw new Ot(a);if(t?.(a)!==!1)switch(o){case Oe:case He:{let i=o===Oe?a:a.parts;for(let s=i.length-1;s>=0;--s)u.push(i[s]);break}case Pe:u.push(a.flatContents,a.breakContents);break;case Ae: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 st:case it:case lt:case qe:case ct:u.push(a.contents);break;case ot:case Ct:case pt:case ze:case pe:case Re:break;default:throw new Ot(a)}}}var cr=cp;function ht(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(Qe(a)){case Oe:return t(a.map(r));case He:return t({...a,parts:a.parts.map(r)});case Pe:return t({...a,breakContents:r(a.breakContents),flatContents:r(a.flatContents)});case Ae:{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 st:case it:case lt:case qe:case ct:return t({...a,contents:r(a.contents)});case ot:case Ct:case pt:case ze:case pe:case Re:return t(a);default:throw new Ot(a)}}}function ta(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 cr(e,a),r}function Dp(e){if(e.type===Ae&&e.break||e.type===pe&&e.hard||e.type===Re)return!0}function ue(e){return ta(e,Dp,!1)}function Kr(e){if(e.length>0){let t=N(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function yp(e){let t=new Set,n=[];function r(a){if(a.type===Re&&Kr(n),a.type===Ae){if(n.push(a),t.has(a))return!1;t.add(a)}}function u(a){a.type===Ae&&n.pop().break&&Kr(n)}cr(e,r,u,!0)}function dp(e){return e.type===pe&&!e.hard?e.soft?"":" ":e.type===Pe?e.flatContents:e}function un(e){return ht(e,dp)}function fp(e){switch(Qe(e)){case He:{let{parts:t}=e;if(t.every(n=>n===""))return"";if(t.length===1)return t[0];break}case Ae:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ae&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case st:case it:case lt:case ct:if(!e.contents)return"";break;case Pe:if(!e.flatContents&&!e.breakContents)return"";break;case Oe:{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 ot:case Ct:case pt:case ze:case pe:case qe:case Re:break;default:throw new Ot(e)}return e}function Dr(e){return ht(e,t=>fp(t))}function nt(e,t=yr){return ht(e,n=>typeof n=="string"?M(t,n.split(`
8
+ `)):n)}function mp(e){if(e.type===pe)return!0}function Fp(e){return ta(e,mp,!1)}function na(e,t){return e.type===qe?{...e,contents:t(e.contents)}:t(e)}function Ep(e){let t=!0;return cr(e,n=>{switch(Qe(n)){case ot:if(n==="")break;case pt:case ze:case pe:case Re:return t=!1,!1}}),t}var we=ut,ra=ut,Ap=ut,gp=ut;function E(e){return we(e),{type:it,contents:e}}function fe(e,t){return gp(e),we(t),{type:st,contents:t,n:e}}function Cp(e){return fe(Number.NEGATIVE_INFINITY,e)}function hp(e){return fe({type:"root"},e)}function ua(e){return fe(-1,e)}function xp(e,t,n){we(e);let r=e;if(t>0){for(let u=0;u<Math.floor(t/n);++u)r=E(r);r=fe(t%n,r),r=fe(Number.NEGATIVE_INFINITY,r)}return r}var Je={type:Re},Yt={type:Ct};function aa(e){return Ap(e),{type:He,parts:e}}function c(e,t={}){return we(e),ra(t.expandedStates,!0),{type:Ae,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function et(e,t){return c(e[0],{...t,expandedStates:e})}function I(e,t="",n={}){return we(e),t!==""&&we(t),{type:Pe,breakContents:e,flatContents:t,groupId:n.groupId}}function Jt(e,t){return we(e),{type:lt,contents:e,groupId:t.groupId,negate:t.negate}}function M(e,t){we(e),ra(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Ut(e,t){return we(t),e?{type:qe,label:e,contents:t}:t}var T={type:pe},m={type:pe,soft:!0},oa={type:pe,hard:!0},F=[oa,Je],yr=[{type:pe,hard:!0,literal:!0},Je];function Hr(e){return we(e),{type:ct,contents:e}}var me={type:ze},Tp="cr",Sp="crlf",bp="\r",Bp=`\r
9
+ `,vp=`
10
+ `;function Pp(e){return e===Tp?bp:e===Sp?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,ia=[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],sa=(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},zr=19968,[Lp,Op]=Jp(ia);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(zr>=u&&zr<=a)return[u,a];a-u>n-t&&(t=u,n=a)}return[t,n]}var qp=e=>e<wp||e>Ip?!1:sa(Np,e),Rp=e=>e>=Lp&&e<=Op?!0:e<Mp||e>jp?!1:sa(ia,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 At=$p,Up={type:0},Vp={type:1},pa={value:"",length:0,queue:[],get root(){return pa}};function la(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 g of r)switch(g.type){case 0:y(),n.useTabs?s(1):l(n.tabWidth);break;case 3:{let{string:h}=g;y(),u+=h,a+=h.length;break}case 2:{let{width:h}=g;o+=1,i+=h;break}default:throw new Error(`Unexpected indent comment '${g.type}'.`)}return A(),{...e,value:u,length:a,queue:r};function s(g){u+=" ".repeat(g),a+=n.tabWidth*g}function l(g){u+=" ".repeat(g),a+=g}function y(){n.useTabs?d():A()}function d(){o>0&&s(o),D()}function A(){i>0&&l(i),D()}function D(){o=0,i=0}}function Gp(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=Vp:r={type:2,width:t}:r={type:3,string:t},la(e,r,n)}function Kp(e,t){return la(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 ca(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}=ca(this.#t);return this.#t=e,this.#a(),t}finish(){return this.#a(),{text:this.#e.join(""),positions:this.#u}}},Qp=zp,Ee=Symbol("MODE_BREAK"),be=Symbol("MODE_FLAT"),Ln=Symbol("DOC_FILL_PRINTED_LENGTH");function Zt(e,t,n,r,u,a){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,i=!1,s=[e],l="";for(;n>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:y,doc:d}=s.pop(),A=Qe(d);switch(A){case ot:d&&(i&&(l+=" ",n-=1,i=!1),l+=d,n-=At(d));break;case Oe:case He:{let D=A===Oe?d:d.parts,g=d[Ln]??0;for(let h=D.length-1;h>=g;h--)s.push({mode:y,doc:D[h]});break}case it:case st:case lt:case qe:s.push({mode:y,doc:d.contents});break;case pt:{let{text:D,count:g}=ca(l);l=D,n+=g;break}case Ae:{if(a&&d.break)return!1;let D=d.break?Ee:y,g=d.expandedStates&&D===Ee?N(0,d.expandedStates,-1):d.contents;s.push({mode:D,doc:g});break}case Pe:{let D=(d.groupId?u[d.groupId]||be:y)===Ee?d.breakContents:d.flatContents;D&&s.push({mode:y,doc:D});break}case pe:if(y===Ee||d.hard)return!0;d.soft||(i=!0);break;case ct:r=!0;break;case ze:if(r)return!1;break}}return!1}function Da(e,t){let n=Object.create(null),r=t.printWidth,u=Pp(t.endOfLine),a=0,o=[{indent:pa,mode:Ee,doc:e}],i=!1,s=[],l=new Qp;for(yp(e);o.length>0;){let{indent:g,mode:h,doc:f}=o.pop();switch(Qe(f)){case ot:{let b=u!==`
11
+ `?H(0,f,`
12
+ `,u):f;b&&(l.write(b),o.length>0&&(a+=At(b)));break}case Oe:for(let b=f.length-1;b>=0;b--)o.push({indent:g,mode:h,doc:f[b]});break;case Ct:l.markPosition();break;case it:o.push({indent:Kp(g,t),mode:h,doc:f.contents});break;case st:o.push({indent:Gp(g,f.n,t),mode:h,doc:f.contents});break;case pt:a-=l.trim();break;case Ae:{let b=(function(){if(h===be&&!i)return{indent:g,mode:f.break?Ee:be,doc:f.contents};i=!1;let C=r-a,w=s.length>0,j={indent:g,mode:be,doc:f.contents};if(!f.break&&Zt(j,o,C,w,n))return j;if(!f.expandedStates)return{indent:g,mode:Ee,doc:f.contents};if(!f.break)for(let q=1;q<f.expandedStates.length-1;q++){let Q={indent:g,mode:be,doc:f.expandedStates[q]};if(Zt(Q,o,C,w,n))return Q}return{indent:g,mode:Ee,doc:N(0,f.expandedStates,-1)}})();o.push(b),f.id&&(n[f.id]=b.mode);break}case He:{let b=r-a,C=f[Ln]??0,{parts:w}=f,j=w.length-C;if(j===0)break;let q=w[C+0],Q=w[C+1],ee={indent:g,mode:be,doc:q},X={indent:g,mode:Ee,doc:q},te=Zt(ee,[],b,s.length>0,n,!0);if(j===1){te?o.push(ee):o.push(X);break}let U={indent:g,mode:be,doc:Q},Ne={indent:g,mode:Ee,doc:Q};if(j===2){te?o.push(U,ee):o.push(Ne,X);break}let Xe=w[C+2],k={indent:g,mode:h,doc:{...f,[Ln]:C+2}},V=Zt({indent:g,mode:be,doc:[q,Q,Xe]},[],b,s.length>0,n,!0);o.push(k),V?o.push(U,ee):te?o.push(Ne,ee):o.push(Ne,X);break}case Pe:case lt:{let b=f.groupId?n[f.groupId]:h;if(b===Ee){let C=f.type===Pe?f.breakContents:f.negate?f.contents:E(f.contents);C&&o.push({indent:g,mode:h,doc:C})}if(b===be){let C=f.type===Pe?f.flatContents:f.negate?E(f.contents):f.contents;C&&o.push({indent:g,mode:h,doc:C})}break}case ct:s.push({indent:g,mode:h,doc:f.contents});break;case ze:s.length>0&&o.push({indent:g,mode:h,doc:oa});break;case pe:switch(h){case be:if(!f.hard){f.soft||(l.write(" "),a+=1);break}i=!0;case Ee:if(s.length>0){o.push({indent:g,mode:h,doc:f},...s.reverse()),s.length=0;break}f.literal?(l.write(u),a=0,g.root&&(g.root.value&&l.write(g.root.value),a=g.root.length)):(l.trim(),l.write(u+g.value),a=g.length);break}break;case qe:o.push({indent:g,mode:h,doc:f.contents});break;case Re:break;default:throw new Ot(f)}o.length===0&&s.length>0&&(o.push(...s.reverse()),s.length=0)}let{text:y,positions:d}=l.finish();if(d.length!==2)return{formatted:y};let[A,D]=d;return{formatted:y,cursorNodeStart:A,cursorNodeText:y.slice(A,D)}}var an=class extends Error{name="ArgExpansionBailout"};function dr(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=Ri(e,r),r=Qn(e,r),r=Ft(e,r);return r=Yn(e,r),r=Et(e,r),r!==!1&&G(e,r)}var on=Yp,Ie=(e,{originalText:t})=>{let n=v(e);if(on(t,n))return!0;let r=cn(e);return r===n?!1:on(t,r)},ya=B(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Zp=B(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function el({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var da=el;function fr(e){return da(e)||ya(e)||Zp(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function tl(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!Dn(e,e.typeAnnotation)}function nl(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 mr(e,t){return t.some(n=>nl(e,n))}var rl=["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 ul(e){return mr(e,rl)}function al(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function hn(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function ol(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function mn(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let n=Ce(e);if(n.length===1){if(hn(e)&&mn(t))return jt(n[0]);if(al(e.callee))return hn(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||K(n[0]))&&ul(e.callee))return n[2]&&!ke(n[2])?!1:(n.length===2?jt(n[1]):ol(n[1])&&oe(n[1]).length<=1)||hn(n[1]);return!1}function il(e,t){let n=t-1;n=Ft(e,n,{backwards:!0}),n=Et(e,n,{backwards:!0}),n=Ft(e,n,{backwards:!0});let r=Et(e,n,{backwards:!0});return n!==r}var fa=il,Fr=()=>!0;function Er(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function sl(e,t){let n=e.node,r=[Er(e,t)],{printer:u,originalText:a,locStart:o,locEnd:i}=t;if(u.isBlockComment?.(n)){let l=" ";G(a,i(n))&&(G(a,o(n),{backwards:!0})?l=F:l=T),r.push(l)}else r.push(F);let s=Et(a,Ft(a,i(n)));return s!==!1&&G(a,s)&&r.push(F),r}function pl(e,t,n){let r=e.node,u=Er(e,t),{printer:a,originalText:o,locStart:i}=t,s=a.isBlockComment?.(r);return n?.hasLineSuffix&&!n?.isBlock||G(o,i(r),{backwards:!0})?{doc:Hr([F,fa(o,i(r))?F:"",u]),isBlock:s,hasLineSuffix:!0}:!s||n?.hasLineSuffix?{doc:[Hr([" ",u]),Je],isBlock:s,hasLineSuffix:!0}:{doc:[" ",u],isBlock:s,hasLineSuffix:!1}}function $(e,t,n={}){let{indent:r=!1,marker:u,filter:a=Fr}=n,o=new Set(e.node?.comments?.filter(s=>!(s.leading||s.trailing||s.marker!==u||!a(s))));if(o.size===0)return"";let i=M(F,e.map(({node:s})=>o.has(s)?Er(e,t):"","comments").filter(Boolean));return r?E([F,i]):i}function Ar(e,t,n){let r=t[Symbol.for("printedComments")],u=n?.filter??Fr,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)?sl(e,t):"","comments").filter(Boolean)}function ma(e,t,n){let r=e.node?.comments,u=new Set(r?.filter(y=>y.trailing)),a=t[Symbol.for("printedComments")],o=n?.filter??Fr,i=new Set(r?.filter(y=>u.has(y)&&!a?.has(y)&&o(y)));if(i.size===0)return"";let s=[],l;return e.each(({node:y})=>{u.has(y)&&(l=pl(e,t,l),i.has(y)&&s.push(l.doc))},"comments"),s}function Fa(e,t,n){return{leading:Ar(e,t,n),trailing:ma(e,t,n)}}function ne(e,t,n,r){let u=Ar(e,n,r),a=ma(e,n,r);return u||a?na(t,o=>[u,o,a]):t}function Ea(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?"":L(t)||O(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Aa(e){return e.node.definite||e.match(void 0,(t,n)=>n==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var ll=B(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),cl=e=>{let{node:t}=e;return ll(t)?e.parent.type!=="DeclareExportDeclaration"&&!t.implicitDeclare:t.declare};function Fe(e){return cl(e)?"declare ":""}var Dl=B(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function Fn({node:e}){return e.abstract||Dl(e)?"abstract ":""}function En(e){return e.accessibility?e.accessibility+" ":""}var Qr=e=>e.type==="UnaryExpression"&&e.operator==="!";function yl(e){return x(e)||!Qr(e)?!1:(e=e.argument,e=Qr(e)?e.argument:e,e.type==="LogicalExpression")}function gr(e,t,n){let{node:r}=e,u=r.type==="WithStatement"?"object":"test",a=n(u);return yl(r[u])?a:c([E([m,a]),m])}function An(e,t,n){let{node:r}=e;return x(r,S.Dangling,n)?[E([m,$(e,t,{filter:n})]),x(r,S.Dangling|S.Line,n)?F:m]:""}function Ye(e,t="es5"){return Ea(e,t)?I(","):""}function W(e){return e.semi?";":""}var dl=e=>e.mark!=="commentBeforeArrow";function Dt(e,t,n,r,u){let a=e.node,o=oe(a),i=u&&a.typeParameters?n("typeParameters"):"";if(o.length===0)return[i,"(",An(e,t,dl),")"];let{parent:s}=e,l=mn(s),y=ga(a),d=[];if(mi(e,(D,g)=>{let h=g===o.length-1;h&&a.rest&&d.push("..."),d.push(n()),!h&&(d.push(","),l||y?d.push(" "):Ie(o[g],t)?d.push(F,F):d.push(T))}),r&&!ml(e)){if(ue(i)||ue(d))throw new an;return c([un(i),"(",un(d),")"])}let A=o.every(D=>!J(D.decorators));return y&&A?[i,"(",...d,")"]:l?[i,"(",...d,")"]:(dr(s)||tl(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"?["(",...d,")"]:d:[i,"(",E([m,...d]),!Fi(a)&&e.root.type!=="NGRoot"?Ye(t,"all"):"",m,")"]}function ga(e){if(!e)return!1;let t=oe(e);if(t.length!==1)return!1;let[n]=t;return!x(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||Z(n.right)&&n.right.elements.length===0))}function fl(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Vt(e,t){let n=fl(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 ml(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 Fl(e){let t=oe(e);return t.length>1&&t.some(n=>n.type==="TSParameterProperty")}function Nt(e,t){return(t==="params"||t==="this"||t==="rest")&&ga(e)}var El=/^[\$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]*$/,Al=e=>El.test(e),gl=Al;function Cl(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 qt=Cl,Ca=Object.freeze({character:"'",codePoint:39}),ha=Object.freeze({character:'"',codePoint:34}),hl=Object.freeze({preferred:Ca,alternate:ha}),xl=Object.freeze({preferred:ha,alternate:Ca});function xa(e,t){let{preferred:n,alternate:r}=t===!0||t==="'"?hl:xl,{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 Tl=/\\(["'\\])|(["'])/g;function Sl(e,t){let n=t==='"'?"'":'"';return t+H(0,e,Tl,(r,u,a)=>u?u===n?n:r:a===t?"\\"+a:a)+t}var bl=Sl;function Bl(e,t){ut(/^(?<quote>["']).*\k<quote>$/s.test(e));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=xa(n,t.singleQuote),e.charAt(0)===r?e:bl(n,r)}var rt=Bl,Ta=e=>e.type==="TSEnumMember",Sa=e=>Ta(e)?"id":"key",Rt=e=>e[Sa(e)],ba=e=>!Ta(e)&&e.computed;function Ba(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var vl=({parser:e})=>e==="typescript"||e==="babel-ts"||e==="oxc-ts"||e==="yuku-ts";function Pl(e,t){let n=Rt(e);if(n.type==="Identifier")return!0;if(!ke(n)||vl(t))return!1;let r=qt(De(n));return String(n.value)===r&&Ba(r)}function va(e,t){let{parser:n}=t;if(n==="json"||n==="jsonc")return!1;let r=Rt(e);if(!K(r))return!1;let{value:u}=r;return rt(De(r),t).slice(1,-1)!==u||e.type==="TSMethodSignature"&&u==="new"?!1:!!(!(n==="babel-ts"&&e.type==="ClassProperty"||(n==="typescript"||n==="oxc-ts"||n==="yuku-ts")&&e.type==="PropertyDefinition")&&gl(u)||(n==="babel"||n==="acorn"||n==="oxc"||n==="yuku"||n==="espree"||n==="meriyah"||n==="__babel_estree")&&e.type!=="ImportAttribute"&&Ba(u)&&String(Number(u))===u)}var kl=new WeakMap;function Pa(e,t){return ge(kl,e.parent,()=>e.siblings.some(n=>ba(n)?!1:K(Rt(n))&&!va(n,t)))}function wl(e,t){return(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Pa(e,t))&&Pl(e.node,t)}function Il(e,t){return(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Pa(e,t))&&va(e.node,t)}function Ue(e,t,n){let{node:r}=e,u=Sa(r);if(ba(r))return["[",n(u),"]"];if(wl(e,t)){let a=Rt(r),o=rt(JSON.stringify(a.type==="Identifier"?a.name:String(a.value)),t);return e.call(()=>ne(e,o,t),u)}if(Il(e,t)){let{value:a}=Rt(r),o=/^\d/.test(a)?qt(a):a;return e.call(()=>ne(e,o,t),u)}return n(u)}var Nl=B(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Ml=B(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function ka(e){return e.key==="elementTypes"&&Kn(e.parent)&&e.parent.elementTypes.length>1}function gn(e){let{types:t}=e;if(t.some(r=>x(r)))return!1;let n=t.find(r=>Ml(r));return n?t.every(r=>r===n||Nl(r)):!1}function wa(e){let{key:t,node:n,parent:r}=e;return!(gn(n)||t==="types"&&de(r)||t==="types"&&_t(r)||ka(e))}function Ia(e,t,n,r){let{node:u}=e;if(gn(u))return M(" | ",e.map(n,"types"));let a=c(e.map(({isFirst:o})=>{let i=o?I("| "):[T,"| "],s=n();return x(e.node,S.Leading)?[i,fe(2,ne(e,s,t))]:[i,ne(e,fe(2,s),t)]},"types"));return wa(e)&&(a=ne(e,a,t)),ce(e,t)?c([E([m,a]),m]):ka(e)?c([E([I(["(",m]),a]),m,I(")")]):r?.assignmentLayout==="break-after-operator"||!jl(e)?a:c(E([m,a]))}function jl(e){let{key:t,parent:n}=e;return!(t==="typeAnnotation"&&n.type==="TSTypeAssertion"||t==="elementTypes"&&Kn(n)||(t==="trueType"||t==="falseType")&&_e(n)||t==="params"&&Ii(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"&&dr(r)))}function Ll(e){return fr(e)||$e(e)?!0:de(e)?gn(e):!1}var Ol=new WeakSet;function Y(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(Na,n);(a==="=>"||a===":"&&x(r,S.Leading))&&(u=!0),Ol.add(r)}return u?[" ",t(n)]:t(n)}var Na=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 Ma(e,t,n){let r=Na(e);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}var Jl=({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"&&gt(n));function Cr(e,t,n,r){if(Jl(e))return hr(e,t,n);let{node:u}=e,a=!1;if(u.type==="FunctionExpression"&&r?.expandLastArg){let{parent:y}=e;L(y)&&(Ce(y).length>1||oe(u).every(d=>d.type==="Identifier"&&!d.typeAnnotation))&&(a=!0)}let o=Dt(e,t,n,a),i=xr(e,n),s=Vt(u,i),l=u.type==="HookDeclaration"?"hook":"function";return[Fe(e),u.async?"async ":"",l,u.generator?"*":""," ",u.id?n("id"):"",n("typeParameters"),c([s?c(o):o,i]),u.body?" ":"",n("body"),u.declare||!u.body?W(t):""]}function On(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 "):(ut(u==="get"||u==="set"),o.push(u," ")),a.generator&&o.push("*"),o.push(Ue(e,t,n),r.optional?"?":"",r===a?hr(e,t,n):n("value")),o}function hr(e,t,n){let{node:r}=e,u=Dt(e,t,n),a=xr(e,n),o=Fl(r),i=Vt(r,a),s=[n("typeParameters"),c([o?c(u,{shouldBreak:!0}):i?c(u):u,a])];return r.body?s.push(" ",n("body")):s.push(W(t)),s}function ql(e){let t=oe(e);return t.length===1&&!e.typeParameters&&!x(e,S.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!x(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function ja(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:n}=e;return ql(n)}return!1}function xr(e,t){let{node:n}=e,r=[Y(e,t,"returnType")];return n.predicate&&r.push(t("predicate")),r}function Tr(e,t){if(t.semi)return!1;let{node:n}=e;if(n.type!=="ExpressionStatement"||Oa(e,t)||qa(e,t)||Ja(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(()=>La(e,t),"expression"))}function La(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(!ja(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(z(n))return!0}return ce(e,t)?!0:lr(n)?e.call(()=>La(e,t),...zu(n)):!1}var Sr=({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 Oa(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Sr(e)&&z(e.node.expression)}function Ja(e,t){return t.__isHtmlInlineEventHandler&&Sr(e)}function qa(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Sr(e)}function Ra(e,t){if(!Tr(e,t))return!1;let n=N(0,ye(e.node,S.Leading),-1);return!!(n&&Zn(n))}var Rl=B(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Xl(e,t){let{key:n,parent:r}=e;if(n==="types"&&de(r)||n==="argument"&&r.type==="JSXSpreadAttribute"||n==="expression"&&r.type==="JSXSpreadChild"||n==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(n==="id"||n==="typeParameters")&&Rl(r)||n==="patterns"&&r.type==="MatchOrPattern"||Vu(e))return!0;let{node:u}=e;return fn(u)?!1:u.type==="ExpressionStatement"?Ra(e,t):de(u)?wa(e):!!z(u)}var Wl=Xl;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 $l=_l;function Ul(e,t){let n=e.lastIndexOf(`
13
+ `);return n===-1?0:$l(e.slice(n+1).match(/^[\t ]*/)[0],t)}var Vl=Ul;function Xa(e,t,n){if(Ql(e)){let u=Kl(e,t,n);if(u)return u}let r=_a(e,t,n);return[me,"`",...e.map(({isLast:u,index:a})=>[n(),u?"":r[a]],"quasis"),"`"]}function Gl(e,t,n){let r=n("quasi"),{node:u}=e,a="",o=ye(u.quasi,S.Leading)[0];return o&&(se(t.originalText,v(u.typeArguments??u.tag),P(o))?a=m:a=" "),Ut(r.label&&{tagged:!0,...r.label},[n("tag"),n("typeArguments"),a,me,r])}function Kl(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=_a(e,t,n);t.__inJestEach=!1;let o=a.map(d=>Da(d,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted),i=[{hasLineBreak:!1,cells:[]}];for(let d=1;d<r.quasis.length;d++){let A=N(0,i,-1),D=o[d-1];A.cells.push(D),D.includes(`
14
+ `)&&(A.hasLineBreak=!0),r.quasis[d].value.raw.includes(`
15
+ `)&&i.push({hasLineBreak:!1,cells:[]})}let s=Math.max(u.length,...i.map(d=>d.cells.length)),l=Array.from({length:s},()=>0),y=[{cells:u},...i.filter(d=>d.cells.length>0)];for(let d of y)if(!d.hasLineBreak)for(let[A,D]of d.cells.entries())l[A]=Math.max(l[A],At(D));return[me,"`",E([F,M(F,y.map(d=>M(" | ",d.cells.map((A,D)=>d.hasLineBreak?A:A+" ".repeat(l[D]-At(A))))))]),F,"`"]}}var Hl=new WeakMap;function zl(e,t){let{parent:n,index:r}=e;return ge(Hl,n,u=>{let{tabWidth:a}=t,o=0;return u.quasis.map(i=>{let s=i.value.raw,l=s.includes(`
16
+ `)?Vl(s,a):o;return o=l,{indentSize:l,previousQuasiText:s}})})[r]}function Wa(e,t,n,r=!0){let{node:u,index:a}=e,o=n(),{quasis:i}=e.parent,s=v(i[a]),l=P(i[a+1]),y=se(t.originalText,s,l);if(!y){let D=Da(o,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;D.includes(`
17
+ `)?y=!0:o=D}if(y&&(x(u)||u.type==="Identifier"||O(Ke(u))||u.type==="ConditionalExpression"||u.type==="SequenceExpression"||xe(u)||Le(u))&&(o=[E([m,o]),m]),!r)return c(["${",o,me,"}"]);let{indentSize:d,previousQuasiText:A}=zl(e,t);return t.__inJestEach&&(d=Math.max(d,t.tabWidth)),o=d===0&&A.endsWith(`
18
+ `)?fe(Number.NEGATIVE_INFINITY,o):xp(o,d,t.tabWidth),c(["${",o,me,"}"])}function _a(e,t,n){return e.map(()=>Wa(e,t,n),e.node.type==="TSTemplateLiteralType"?"types":"expressions")}function br(e,t,n){return e.map(()=>Wa(e,t,n,!1),"expressions")}function $a(e,t){return ht(e,n=>typeof n=="string"?t?H(0,n,/(\\*)`/g,"$1$1\\`"):Ua(n):n)}function Ua(e){return H(0,e,/([\\`]|\$\{)/g,"\\$1")}var Yr=/^[fx]?(?:describe|it|test)$/;function Ql({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"&&Yr.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"&&Yr.test(t.tag.object.object.name))}var Jn=[(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 Yl(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)=>Z(r)&&u==="elements",n,...Jn)||e.match(t,n,...Jn)}function Zl(e){return e.match(t=>t.type==="TemplateLiteral",(t,n)=>Ge(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&n==="value",...Jn)}function xn(e,t){return x(e,S.Block|S.Leading,({value:n})=>n===` ${t} `)}function Va({node:e,parent:t},n){return xn(e,n)||ec(t)&&xn(t,n)||t.type==="ExpressionStatement"&&xn(t,n)}function ec(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function tc(e,t,n,r){let{node:u}=n,a="";for(let[i,s]of u.quasis.entries()){let{raw:l}=s.value;i>0&&(a+="@prettier-placeholder-"+(i-1)+"-id"),a+=l}let o=nc(await e(a,{parser:"scss"}),br(n,r,t));if(!o)throw new Error("Couldn't insert all the expressions");return["`",E([F,o]),m,"`"]}function nc(e,t){if(!J(t))return e;let n=0,r=ht(Dr(e),u=>typeof u!="string"||!u.includes("@prettier-placeholder")?u:u.split(/@prettier-placeholder-(\d+)-id/).map((a,o)=>o%2===0?nt(a):(n++,t[a])));return t.length===n?r:null}function rc(e){return e.match(void 0,(t,n)=>n==="quasi"&&t.type==="TaggedTemplateExpression"&&mr(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 en(e){return e.type==="Identifier"&&e.name==="styled"}function Zr(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function uc({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 en(t.object)||Zr(t);case"CallExpression":return en(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(en(t.callee.object.object)||Zr(t.callee.object))||t.callee.object.type==="CallExpression"&&en(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function ac({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var oc=e=>rc(e)||uc(e)||ac(e)||Yl(e);async function ic(e,t,n,r){let{node:u}=n,a=u.quasis.length,o=br(n,r,t),i=[];for(let s=0;s<a;s++){let l=u.quasis[s],y=s===0,d=s===a-1,A=l.value.cooked,D=A.split(`
19
+ `),g=D.length;if(!d&&/#[^\n\r]*$/.test(D[g-1]))return null;let h=g>2&&D[0].trim()===""&&D[1].trim()==="",f=g>2&&D[g-1].trim()===""&&D[g-2].trim()==="",b=D.every(w=>/^\s*(?:#[^\n\r]*)?$/.test(w)),C;b?C=sc(D):C=await e(A,{parser:"graphql"}),C?(C=$a(C,!1),!y&&h&&i.push(""),i.push(C),!d&&f&&i.push("")):!y&&!d&&h&&i.push(""),d||i.push(o[s])}return["`",E([F,M(F,i)]),F,"`"]}function sc(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([F,a]):t.push(a),n=!0);return t.length===0?null:M(F,t)}function pc({node:e,parent:t}){return Va({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 Tn=0;async function Ga(e,t,n,r,u){let{node:a}=r,o=Tn;Tn=Tn+1>>>0;let i=f=>`PRETTIER_HTML_PLACEHOLDER_${f}_${o}_IN_JS`,s=a.quasis.map((f,b,C)=>b===C.length-1?f.value.cooked:f.value.cooked+i(b)).join(""),l=br(r,u,n),y=new RegExp(i("(\\d+)"),"g"),d=0,A=ht(await t(s,{parser:e,__onHtmlRoot(f){d=f.children.length}}),f=>{if(typeof f!="string")return f;let b=[],C=f.split(y);for(let w=0;w<C.length;w++){let j=C[w];if(w%2===0){j&&(j=Ua(j),u.__embeddedInHtml&&(j=H(0,j,/<\/(?=script\b)/gi,"<\\/")),b.push(j));continue}let q=Number(j);b.push(l[q])}return b}),D=/^\s/.test(s)?" ":"",g=/\s$/.test(s)?" ":"",h=u.htmlWhitespaceSensitivity==="ignore"?F:D&&g?T:null;return h?c(["`",E([h,c(A)]),h,"`"]):Ut({hug:!1},c(["`",D,d>1?E(c(A)):c(A),g,"`"]))}function lc(e){return Va(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,n)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&n==="quasi")}var cc=Ga.bind(void 0,"html"),Dc=Ga.bind(void 0,"angular");async function yc(e,t,n){let{node:r}=n,u=H(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(s,l)=>"\\".repeat(l.length/2)+"`"),a=dc(u),o=a!=="";o&&(u=H(0,u,new RegExp(`^${a}`,"gm"),""));let i=$a(await e(u,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?E([m,i]):[yr,Cp(i)],m,"`"]}function dc(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 mc=[{test:oc,print:tc},{test:pc,print:ic},{test:lc,print:cc},{test:Zl,print:Dc},{test:fc,print:yc}].map(({test:e,print:t})=>({test:e,print:Ec(t)}));function Fc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Ac(t))return;let n=mc.find(({test:r})=>r(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":n.print}function Ec(e){return async(...t)=>{let n=await e(...t);return n&&Ut({embed:!0,...n.label},n)}}function Ac({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var gc=Fc;function Cc(e,t){e.type==="ChainExpression"?hc(t):(e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression")&&xc(t)}function Ka(e){if(O(e))return"object";if(L(e))return"callee";if(at(e))return"expression"}function sn(e){let t=Ka(e);if(t)return e[t]}function hc(e){for(e=sn(e);e.type==="MemberExpression"||e.type==="CallExpression"||e.type==="TSNonNullExpression";e=sn(e)){let t=Ka(e),n=e[t];n.type==="ChainExpression"&&(e[t]=n.expression)}}function xc(e){for(e=sn(e);e.type==="MemberExpression"||e.type==="CallExpression";e=sn(e))e.type=`Optional${e.type}`}function eu(e,t,n){let r=t[n];(K(r)||ke(r))&&(e[n]=String(r.value)),r.type==="Identifier"&&(e[n]=r.name)}function Tc(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&&eu(t,e,"key"),e.type==="TSEnumMember"&&eu(t,e,"id")}function Sc(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 bc=new Set(["range","raw","comments","extra","start","end","loc","errors","tokens","trailingComma","docblock","__contentEnd"]),yt=e=>{for(let t of e.quasis)delete t.value};function Ha(e,t,n){if(e.type==="Program"&&delete t.sourceType,Cc(e,t),Tc(e,t),Sc(e,t),(Bi(e)||e.type==="BigIntLiteralTypeAnnotation")&&"bigint"in e&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Gn({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"&&yt(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&yt(t.value.expression),e.type==="JSXAttribute"&&K(e.value)&&/["']|&quot;|&apos;/.test(e.value.value)&&(t.value.value=H(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":Z(o.value)&&yt(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&yt(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")&&yt(t.quasi),(e.type==="CallExpression"||e.type==="MemberExpression")&&!e.optional&&delete t.optional,e.type==="TemplateLiteral"&&yt(t)}Ha.ignoredProperties=bc;var Bc=/\*\/$/,vc=/^\/\*\*?/,za=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Pc=/(^|\s+)\/\/([^\n\r]*)/g,tu=/^(\r?\n)+/,kc=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,nu=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,wc=/(\r?\n|^) *\* ?/g,Qa=[];function Ic(e){let t=e.match(za);return t?t[0].trimStart():""}function Nc(e){let t=e.match(za)?.[0];return t==null?e:e.slice(t.length)}function Mc(e){e=H(0,e.replace(vc,"").replace(Bc,""),wc,"$1");let t="";for(;t!==e;)t=e,e=H(0,e,kc,`
20
+ $1 $2
21
+ `);e=e.replace(tu,"").trimEnd();let n=Object.create(null),r=H(0,e,nu,"").replace(tu,"").trimEnd(),u;for(;u=nu.exec(e);){let a=H(0,u[2],Pc,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let o=n[u[1]];n[u[1]]=[...Qa,...Array.isArray(o)?o:[o],a]}else n[u[1]]=a}return{comments:r,pragmas:n}}function jc({comments:e="",pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(a=>ru(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`/** ${ru(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 ru(e,t){return[...Qa,...Array.isArray(t)?t:[t]].map(n=>`@${e} ${n}`.trim())}var Lc="format";function Oc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
28
+ `);return t===-1?e:e.slice(0,t)}var Jc=Oc;function qc(e){let t=Jc(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=Mc(Ic(e));return{shebang:t,text:e,pragmas:n,comments:r}}function Rc(e){let{shebang:t,text:n,pragmas:r,comments:u}=qc(e),a=Nc(n),o=jc({pragmas:{[Lc]:"",...r},comments:u.trimStart()});return(t?`${t}
29
+ `:"")+o+(a.startsWith(`
30
+ `)?`
31
+ `:`
32
+
33
+ `)+a}function Xc(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 Wc=new WeakMap;function Ya(e){return ge(Wc,e,Xc)}function Za(e){return Ya(e).length>0}function _c(e,t){let n=e.node;if(Ve(n))return t.originalText.slice(P(n),v(n)).trimEnd();if(Za(n))return $c(n);if(Se(n))return["/*",nt(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function $c(e){let t=Ya(e),n=e.value[0]==="*"&&e.value[1]!=="*";return["/",t.map((r,u)=>{if(u===0)return[r.trimEnd(),F];if(u===t.length-1)return[" ",r];let a=r.trimEnd(),o=[" ",a];return n&&a!=="*"&&r.endsWith(" ")?[o," ",hp(yr)]:[o,F]}),"/"]}function Uc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Vc=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=`[${Uc([...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
+ `)}},tn=new Vc(`
39
+ \r `);function Xt(e){return e.type==="JSXText"&&(tn.hasNonWhitespaceCharacter(De(e))||!/\n/.test(De(e)))}function Gc(e){let{node:t,parent:n}=e;if(!z(t)||!z(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"&&!Xt(i))){a=i;break}}return a?.type==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&fn(a.expression)}function Kc(e){return fn(e.node)||Gc(e)}var Br=Kc,Hc=class extends Error{name="UnexpectedNodeError";constructor(e,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},xt=Hc;function zc(e){return e.type==="CallExpression"&&!e.optional&&e.arguments.length===1&&e.callee.type==="Identifier"&&e.callee.name==="Boolean"}var Qc=0;function eo(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,l=qn(e,t,n,!1,i);if(i)return l;if(s)return c(l);if(o==="callee"&&Lt(u)||u.type==="UnaryExpression"&&!x(r)||O(u)&&!u.computed)return c([E([m,...l]),m]);let y=ft(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"&&!ft(a)&&!Lt(a)||u.type==="TemplateLiteral"||o==="argument"&&u.type==="UnaryExpression"||o==="arguments"&&zc(u),d=u.type==="AssignmentExpression"||u.type==="VariableDeclarator"||u.type==="ClassProperty"||u.type==="PropertyDefinition"||u.type==="TSAbstractPropertyDefinition"||u.type==="ClassPrivateProperty"||Ge(u),A=Le(r.left)&&pr(r.operator,r.left.operator);if(y||Wt(r)&&!A||!Wt(r)&&d)return c(l);if(l.length===0)return"";let D=z(r.right),g=l.findIndex(w=>typeof w!="string"&&!Array.isArray(w)&&w.type===Ae),h=l.slice(0,g===-1?1:g+1),f=l.slice(h.length,D?-1:void 0),b=Symbol("logicalChain-"+ ++Qc),C=c([...h,E(f)],{id:b});return D?c([C,Jt(N(0,l,-1),{groupId:b})]):C}function qn(e,t,n,r,u){let{node:a}=e;if(!Le(a))return[c(n())];let o=[];pr(a.operator,a.left.operator)?o=e.call(()=>qn(e,t,n,!0,u),"left"):o.push(c(n("left")));let i=Wt(a),s=a.right.type==="ChainExpression"?a.right.expression:a.right,l=(a.type==="NGPipeExpression"||a.operator==="|>"||Yc(e,t))&&!je(t.originalText,s),y=!x(s,S.Leading,Zn)&&je(t.originalText,s),d=a.type==="NGPipeExpression"?"|":a.operator,A=a.type==="NGPipeExpression"&&a.arguments.length>0?c(E([m,": ",M([T,": "],e.map(()=>fe(2,c(n())),"arguments"))])):"",D;if(i)D=[d,je(t.originalText,s)?E([T,n("right"),A]):[" ",n("right"),A]];else{let f=d==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>qn(e,t,n,!0,u),"right"):n("right");if(t.experimentalOperatorPosition==="start"){let b="";if(y)switch(Qe(f)){case Oe:b=f[0],f.shift();break;case qe:b=f.contents[0],f.contents.shift();break}D=[T,b,d," ",f,A]}else D=[l?T:"",d,l?" ":T,f,A]}let{parent:g}=e,h=x(a.left,S.Trailing|S.Line);if((h||!(u&&a.type==="LogicalExpression")&&g.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(D=c(D,{shouldBreak:h})),t.experimentalOperatorPosition==="start"?o.push(i||y?" ":"",D):o.push(l?"":" ",D),r&&x(a)){let f=Dr(ne(e,o,t));return f.type===He?f.parts:Array.isArray(f)?f:[f]}return o}function Wt(e){return e.type!=="LogicalExpression"?!1:!!(Te(e.right)&&e.right.properties.length>0||Z(e.right)&&e.right.elements.length>0||z(e.right))}var uu=e=>e.type==="BinaryExpression"&&e.operator==="|";function Yc(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&uu(e.node)&&!e.hasAncestor(n=>!uu(n)&&n.type!=="JsExpressionRoot")}function Zc(e,t,n){let{node:r}=e;if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return n("node");case"NGPipeExpression":return eo(e,t,n);case"NGChainedExpression":return c(M([";",T],e.map(()=>nD(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":au(e)?" ":[";",T],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=au(e)||eD(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 xt(r,"Angular")}}function au({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function eD(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 tD=B(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function nD({node:e}){return Mn(e,tD)}function to(e,t,n){let{node:r}=e;return c([M(T,e.map(n,"decorators")),ro(r,t)?F:T])}function rD(e,t,n){return uo(e.node)?[M(F,e.map(n,"declaration","decorators")),F]:""}function no(e,t,n){let{node:r,parent:u}=e,{decorators:a}=r;if(!J(a)||uo(u)||Br(e))return"";let o=r.type==="ClassExpression"||r.type==="ClassDeclaration"||ro(r,t);return[e.key==="declaration"&&ki(u)?F:o?Je:"",M(T,e.map(n,"decorators")),T]}function ro(e,t){return e.decorators.some(n=>G(t.originalText,v(n)))}function uo(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return J(t)&&Dn(e,t[0])}function ao(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&ke(e.argument)}function vr(e,t,n){let{node:r}=e,u=[],a=Kn(r)?"elementTypes":"elements",o=r[a];if(o.length===0&&!r.inexact)u.push(c(["[",An(e,t),"]"]));else{let i=N(0,o,-1),s=i?.type!=="RestElement"&&!r.inexact,l=i===null,y=Symbol("array"),d=!t.__inJestEach&&o.length>1&&o.every((g,h,f)=>{if(!Z(g)&&!Te(g))return!1;let b=g?.type,C=f[h+1];if(C&&b!==C.type)return!1;let w=Z(g)?"elements":"properties";return g[w]&&g[w].length>1})||x(r,S.Dangling|S.Line),A=oo(r,t),D=s?l?",":Ea(t)?A?I(",","",{groupId:y}):I(","):"":"";u.push(c(["[",E([m,A?aD(e,t,n,D):[uD(e,t,n,a,r.inexact),D],$(e,t)]),m,"]"],{shouldBreak:d,id:y}))}return u.push(ae(e),Y(e,n)),u}function oo(e,t){return Z(e)&&e.elements.length>0&&e.elements.every(n=>n&&(ke(n)||ao(n)&&!x(n.argument))&&!x(n,S.Trailing|S.Line,r=>!G(t.originalText,P(r),{backwards:!0})))}function io({node:e},{originalText:t}){let n=v(e);if(n===P(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==",";)n=Qn(t,Yn(t,n+1));return on(t,n)}function uD(e,t,n,r,u){let a=[];return e.each(({node:o,isLast:i})=>{a.push(o?c(n()):""),(!i||u)&&a.push([",",T,o&&io(e,t)?m:""])},r),u&&a.push("..."),a}function aD(e,t,n,r){let u=[];return e.each(({isLast:a,next:o})=>{u.push([n(),a?r:","]),a||u.push(io(e,t)?[F,F]:x(o,S.Leading|S.Line)?F:T)},"elements"),aa(u)}function ou(e){return e.quasis.some(t=>t.value.raw.includes(`
40
+ `))}function so(e,t){return(e.type==="TemplateLiteral"&&ou(e)||e.type==="TaggedTemplateExpression"&&ou(e.quasi))&&!G(t,P(e),{backwards:!0})}var oD=new WeakMap;function po(e){return ge(oD,e,t=>t.type==="ConditionalExpression"&&!re(t,n=>n.type==="ObjectExpression"))}var iD=e=>e.type==="SequenceExpression";function sD(e,t,n,r={}){let u=[],a,o=[],i=!1,s=!r.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",l;(function b(){let{node:C}=e,w=pD(e,t,n,r);if(u.length===0)u.push(w);else{let{leading:j,trailing:q}=Fa(e,t);u.push([j,w]),o.unshift(q)}s&&(i||(i=C.returnType&&oe(C).length>0||C.typeParameters||oe(C).some(j=>j.type!=="Identifier"))),!s||C.body.type!=="ArrowFunctionExpression"?(a=n("body",r),l=C.body):e.call(b,"body")})();let y=!je(t.originalText,l)&&(iD(l)||lD(l,a,t)||!i&&po(l)),d=e.key==="callee"&&mt(e.parent),A=Symbol("arrow-chain"),D=cD(e,r,{signatureDocs:u,shouldBreak:i}),g=!1,h=!1,f=!1;return s&&(d||r.assignmentLayout)&&(h=!0,f=!x(e.node,S.Leading&S.Line),g=r.assignmentLayout==="chain-tail-arrow-chain"||d&&!y),a=DD(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:l,shouldPutBodyOnSameLine:y}),c([c(h?E([f?m:"",D]):D,{shouldBreak:g,id:A})," =>",s?Jt(a,{groupId:A}):c(a),s&&d?I(m,"",{groupId:A}):""])}function pD(e,t,n,r){let{node:u}=e,a=[];if(u.async&&a.push("async "),ja(e,t))a.push(n(["params",0]));else{let i=r.expandLastArg||r.expandFirstArg,s=xr(e,n);if(i){if(ue(s))throw new an;s=c(un(s))}a.push(c([Dt(e,t,n,i,!0),s]))}let o=$(e,t,{marker:"commentBeforeArrow"});return o&&a.push(" ",o),a}function lD(e,t,n){return Z(e)||Te(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||z(e)||t.label?.hug!==!1&&(t.label?.embed||so(e,n.originalText))}function cD(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:u,key:a}=e;return a!=="callee"&&mt(u)||Le(u)?c([n[0]," =>",E([T,M([" =>",T],n.slice(1))])],{shouldBreak:r}):a==="callee"&&mt(u)||t.assignmentLayout?c(M([" =>",T],n),{shouldBreak:r}):c(E(M([" =>",T],n)),{shouldBreak:r})}function DD(e,t,n,{bodyDoc:r,bodyComments:u,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:i,parent:s}=e,l=n.expandLastArg?Ye(t,"all"):"",y=(n.expandLastArg||s.type==="JSXExpressionContainer")&&!x(i)?m:"";return o&&po(a)?[" ",c([I("","("),E([m,r]),I("",")"),l,y]),u]:o?[" ",r,u]:[E([T,r,u]),l,y]}var yD=.25;function Pr(e,t){let{printWidth:n}=t;if(x(e))return!1;let r=n*yD;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||ao(e)&&!x(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:K(e)?rt(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"?Pr(e.argument,{printWidth:n}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=r-2:Hn(e)}function dt(e){return O(e)||e.type==="BindExpression"&&!!e.object}function dD(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(jt(n)){if(t+=1,t>1)return!0}else if(n=Ke(n),L(n)){for(let r of Ce(n))if(jt(r))return!0}return!1}function lo(e){let{node:t,parent:n,key:r}=e;return r==="callee"&&L(t)&&L(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var fD=new Set(["!","-","+","~"]),mD=B(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]);function Be(e,t=2){if(t<=0)return!1;let n=r=>Be(r,t-1);if(e=Ke(e),Bu(e))return At(e.pattern??e.regex.pattern)<=5;if(Hn(e)||mD(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(Z(e))return e.elements.every(r=>r===null||n(r));if(mt(e)){if(e.type==="ImportExpression"||Be(e.callee,t)){let r=Ce(e);return r.length<=t&&r.every(n)}return!1}return O(e)?Be(e.object,t)&&Be(e.property,t):e.type==="UnaryExpression"&&fD.has(e.operator)||e.type==="UpdateExpression"?Be(e.argument,t):!1}function FD(e,t,n){let{node:r}=e,u=Ce(r);if(u.length===0)return c(["(",An(e,t),")"]);let a=u.length-1;if(gD(u)){let d=["("];return wn(e,(A,D)=>{d.push(n()),D!==a&&d.push(", ")}),d.push(")"),d}let o=!1,i=[];wn(e,({node:d},A)=>{let D=n();A===a||(Ie(d,t)?(o=!0,D=[D,",",F,F]):D=[D,",",T]),i.push(D)});let s=e.root.type!=="NGRoot"&&r.type!=="ImportExpression"&&r.type!=="TSImportType"&&r.type!=="TSExternalModuleReference"?Ye(t,"all"):"";function l(){return c(["(",E([T,...i]),s,T,")"],{shouldBreak:!0})}if(o||e.parent.type!=="Decorator"&&dD(u))return l();if(AD(u)){let d=i.slice(1);if(d.some(ue))return l();let A;try{A=n(Xr(r,0),{expandFirstArg:!0})}catch(D){if(D instanceof an)return l();throw D}return ue(A)?[Je,et([["(",c(A,{shouldBreak:!0}),", ",...d,")"],l()])]:et([["(",A,", ",...d,")"],["(",c(A,{shouldBreak:!0}),", ",...d,")"],l()])}if(ED(u,i,t)){let d=i.slice(0,-1);if(d.some(ue))return l();let A;try{A=n(Xr(r,-1),{expandLastArg:!0})}catch(D){if(D instanceof an)return l();throw D}return ue(A)?[Je,et([["(",...d,c(A,{shouldBreak:!0}),")"],l()])]:et([["(",...d,A,")"],["(",...d,c(A,{shouldBreak:!0}),")"],l()])}let y=["(",E([m,...i]),s,m,")"];return lo(e)?y:c(y,{shouldBreak:i.some(ue)||o})}function pn(e,t=!1){if(Te(e)&&(e.properties.length>0||x(e))||Z(e)&&(e.elements.length>0||x(e))||(xe(e)||e.type==="TSTypeAssertion")&&pn(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"||z(n)||Te(n)||Z(n)||n.type==="ArrowFunctionExpression"&&pn(n,!0)||!t&&(n.type==="ConditionalExpression"||L(Ke(n))))return!0}return!1}function ED(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!x(r,S.Leading)&&!x(r,S.Trailing)&&pn(r)&&(!u||u.type!==r.type)&&(e.length!==2||u.type!=="ArrowFunctionExpression"||!Z(r))&&!(e.length>1&&oo(r,n))}function AD(e){if(e.length!==2)return!1;let[t,n]=e;return t.type==="ModuleExpression"&&CD(n)?!0:!x(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&co(n)&&!pn(n)}function co(e){if(e.type==="ParenthesizedExpression")return co(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 mt(e)&&Ce(e).length>1?!1:Le(e)?Be(e.left,1)&&Be(e.right,1):Bu(e)||Be(e)}function gD(e){return e.length===2?iu(e,0):e.length===3?e[0].type==="Identifier"&&iu(e,1):!1}function iu(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=>!x(u))}function CD(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"||K(t.key)&&t.key.value==="type")&&K(t.value)&&t.value.value==="module":!1}var Rn=FD;function hD(e,t,n){return[n("object"),c(E([m,Do(e,t,n)]))]}function Do(e,t,n){return["::",n("callee")]}var xD=e=>L(e)&&Ce(e).length>0;function TD(e){let{node:t,ancestors:n}=e;for(let r of n){if(!(O(r)&&r.object===t||r.type==="TSNonNullExpression"&&r.expression===t))return r.type==="NewExpression"&&r.callee===t;t=r}return!1}function SD(e,t,n){let r=n("object"),u=yo(e,t,n),{node:a}=e,o=e.findAncestor(l=>!(O(l)||l.type==="TSNonNullExpression")),i=e.findAncestor(l=>!at(l)),s=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||TD(e)||a.computed||a.object.type==="Identifier"&&a.property.type==="Identifier"&&!O(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(xD(Ke(a.object))||r.label?.memberChain);return Ut(r.label,[r,me,s?u:c(E([m,u]))])}function yo(e,t,n){let r=n("property"),{node:u}=e,a=ae(e);return u.computed?!u.property||ke(u.property)?[a,"[",r,"]"]:c([a,"[",E([m,r]),m,"]"]):[a,".",r]}function bD(e,t,n){let r=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",u=[];function a(k){let{originalText:V}=t,le=dn(V,v(k));return V.charAt(le)===")"?le!==!1&&on(V,le+1):Ie(k,t)}function o(){let{node:k}=e;if(L(k)&&(dt(k.callee)||L(k.callee))&&!ce(e,t)){let V=a(k);u.unshift({node:k,hasTrailingEmptyLine:V,printed:[ne(e,[ae(e),n("typeArguments"),Rn(e,t,n)],t),V?F:""]}),e.call(o,"callee")}else dt(k)&&!ce(e,t)?(u.unshift({node:k,printed:ne(e,O(k)?yo(e,t,n):Do(e,t,n),t)}),e.call(o,"object")):k.type==="ChainExpression"&&!ce(e,t)?e.call(o,"expression"):k.type==="TSNonNullExpression"&&!ce(e,t)?(u.unshift({node:k,printed:ne(e,"!",t)}),e.call(o,"expression")):u.unshift({node:k,printed:n()})}let{node:i}=e;u.unshift({node:i,printed:[ae(e),n("typeArguments"),Rn(e,t,n)]}),i.callee&&e.call(o,"callee");let s=[],l=[u[0]],y=1;for(;y<u.length&&(u[y].node.type==="TSNonNullExpression"||u[y].node.type==="ChainExpression"||L(u[y].node)||O(u[y].node)&&u[y].node.computed&&ke(u[y].node.property));++y)l.push(u[y]);if(!L(u[0].node))for(;y+1<u.length&&dt(u[y].node)&&dt(u[y+1].node);++y)l.push(u[y]);s.push(l),l=[];let d=!1;for(;y<u.length;++y){if(d&&dt(u[y].node)){if(u[y].node.computed&&ke(u[y].node.property)){l.push(u[y]);continue}s.push(l),l=[],d=!1}(L(u[y].node)||u[y].node.type==="ImportExpression")&&(d=!0),l.push(u[y]),x(u[y].node,S.Trailing)&&(s.push(l),l=[],d=!1)}l.length>0&&s.push(l);function A(k){return/^[A-Z]|^[$_]+$/.test(k)}function D(k){return k.length<=t.tabWidth}function g(k){let V=k[1][0]?.node.computed;if(k[0].length===1){let Ze=k[0][0].node;return Ze.type==="ThisExpression"||Ze.type==="Identifier"&&(A(Ze.name)||r&&D(Ze.name)||V)}let le=N(0,k[0],-1).node;return O(le)&&le.property.type==="Identifier"&&(A(le.property.name)||V)}let h=s.length>=2&&!x(s[1][0].node)&&g(s);function f(k){return k.map(V=>V.printed)}function b(k){return k.length===0?"":E([F,M(F,k.map(f))])}let C=s.map(f),w=C,j=h?3:2,q=s.flat(),Q=q.slice(1,-1).some(k=>x(k.node,S.Leading))||q.slice(0,-1).some(k=>x(k.node,S.Trailing))||s[j]&&x(s[j][0].node,S.Leading);if(s.length<=j&&!Q&&s.every(k=>!N(0,k,-1).hasTrailingEmptyLine))return lo(e)?w:c(w);let ee=N(0,s[h?1:0],-1).node,X=!L(ee)&&a(ee),te=[f(s[0]),h?s.slice(1,2).map(f):"",X?F:"",b(s.slice(h?2:1))],U=u.map(({node:k})=>k).filter(L);function Ne(){let k=N(0,N(0,s,-1),-1).node,V=N(0,C,-1);return L(k)&&ue(V)&&U.slice(0,-1).some(le=>le.arguments.some(jt))}let Xe;return Q||U.length>2&&U.some(k=>k.arguments.some(V=>!Be(V)))||C.slice(0,-1).some(ue)||Ne()?Xe=c(te):Xe=[ue(w)||X?Je:"",et([w,te])],Ut({memberChain:!0},Xe)}var BD=bD;function ln(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"),me]:"",s=o.length===1&&so(o[0],t.originalText);if(s||PD(e)||kD(e)||mn(r,e.parent)){let d=[];if(wn(e,()=>{d.push(n())}),!(s&&d[0].label?.embed))return[su(e,n),a,i,"(",M(", ",d),")"]}let l=r.type==="ImportExpression"||r.type==="TSImportType"||r.type==="TSExternalModuleReference";if(!l&&!u&&dt(r.callee)&&!e.call(()=>ce(e,t),"callee",...r.callee.type==="ChainExpression"?["expression"]:[]))return BD(e,t,n);let y=[su(e,n),a,i,Rn(e,t,n)];return l||L(r.callee)?c(y):y}function su(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"),me]}var vD=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function PD(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&mr(t.callee,vD)))return!1;let n=Ce(t);return n.length===1&&K(n[0])&&!x(n[0])}function kD(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&&K(n[0])||n.length>1)&&!x(n[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&K(n[0])&&n[1].type==="ArrayExpression":!1}function Gt(e,t,n,r,u,a){let o=ND(e,t,n,r,a),i=a?n(a,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return c([c(r),u,c(E([T,i]))]);case"never-break-after-operator":return c([c(r),u," ",i]);case"fluid":{let s=Symbol("assignment");return c([c(r),u,c(E(T),{id:s}),me,Jt(i,{groupId:s})])}case"break-lhs":return c([r,u," ",c(i)]);case"chain":return[c(r),u,T,i];case"chain-tail":return[c(r),u,E([T,i])];case"chain-tail-arrow-chain":return[c(r),u,i];case"only-left":return r}}function wD(e,t,n){let{node:r}=e;return Gt(e,t,n,n("left"),[" ",r.operator],"right")}function ID(e,t,n){return Gt(e,t,n,n("id")," =","init")}function ND(e,t,n,r,u){let{node:a}=e,o=a[u];if(!o)return"only-left";let i=!nn(o);if(e.match(nn,fo,y=>!i||y.type!=="ExpressionStatement"&&y.type!=="VariableDeclaration"))return i?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!i&&nn(o.right)||de(o)&&!gn(o)||je(t.originalText,o)||x(o,S.Leading,Za))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=Fp(r);if(jD(a)||JD(a)||mo(a)&&s)return"break-lhs";let l=qD(a,r,t);return e.call(()=>MD(e,t,n,l),u)?"break-after-operator":LD(a)?"break-lhs":!s&&(l||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||vi(o)||ke(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function MD(e,t,n,r){let u=e.node;if(Le(u)&&!Wt(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!XD(u))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=u;return Le(l)&&!Wt(l)}let{consequent:i,alternate:s}=u;return i.type==="ConditionalExpression"||s.type==="ConditionalExpression"}case"ClassExpression":return J(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!!(K(a)||e.call(()=>Fo(e,t,n),...o))}function jD(e){if(fo(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 nn(e){return e.type==="AssignmentExpression"}function fo(e){return nn(e)||e.type==="VariableDeclarator"}function LD(e){let t=OD(e);if(J(t)){let n=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(r=>r[n]||r.default))return!0}return!1}function OD(e){if(vu(e))return e.typeParameters?.params}function JD(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=pu(t.typeAnnotation);return J(n)&&n.length>1&&n.some(r=>J(pu(r))||r.type==="TSConditionalType")}function mo(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function pu(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function Fo(e,t,n,r=!1){let{node:u}=e,a=()=>Fo(e,t,n,!0);if(at(u))return e.call(a,"expression");if(L(u)){if(ln(e,t,n).label?.memberChain)return!1;let o=Ce(u);return!(o.length===0||o.length===1&&Pr(o[0],t))||RD(u,n)?!1:e.call(a,"callee")}return O(u)?e.call(a,"object"):r&&(u.type==="Identifier"||u.type==="ThisExpression")}function qD(e,t,n){return Ge(e)?(t=Dr(t),typeof t=="string"&&At(t)<n.tabWidth+3):!1}function RD(e,t){let n=e.typeArguments?.params;if(J(n)){if(n.length>1)return!0;if(n.length===1){let r=n[0];if(de(r)||_t(r)||r.type==="TSTypeLiteral"||r.type==="ObjectTypeAnnotation")return!0}if(ue(t("typeArguments")))return!0}return!1}function lu(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function XD(e){return lu(e.checkType)||lu(e.extendsType)}function WD(e,t,n){let{node:r}=e,u=["await"];if(r.argument){u.push(" ",n("argument"));let{parent:a}=e;if(L(a)&&a.callee===r||O(a)&&a.object===r){u=[E([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 c(u)}}return u}var _D=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}},$D=Vn("findLast",function(){if(Array.isArray(this))return _D});function Xn(e,t,n,r){let{node:u}=e,a=[],o=$D(0,u[r],i=>i.type!=="EmptyStatement");return e.each(({node:i})=>{i.type!=="EmptyStatement"&&(a.push(n()),i!==o&&(a.push(F),Ie(i,t)&&a.push(F)))},r),a}function Eo(e,t,n){let r=UD(e,t,n),{node:u,parent:a}=e;if(u.type==="Program"&&a?.type!=="ModuleExpression")return r?[r,F]:"";let o=[];if(u.type==="StaticBlock"&&o.push("static "),o.push("{"),r)o.push(E([F,r]),F);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(F)}return o.push("}"),o}function UD(e,t,n){let{node:r}=e,u=J(r.directives),a=r.body.some(s=>s.type!=="EmptyStatement"),o=x(r,S.Dangling);if(!u&&!a&&!o)return"";let i=[];return u&&(i.push(Xn(e,t,n,"directives")),(a||o)&&(i.push(F),Ie(N(0,r.directives,-1),t)&&i.push(F))),a&&i.push(Xn(e,t,n,"body")),o&&i.push($(e,t)),i}function VD(e){let t=new WeakMap;return n=>ge(t,n,()=>Symbol(e))}var GD=VD,Ao=["properties","indexers","callProperties","internalSlots"];function KD(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=Ao.flatMap(u=>e.map(({node:a,index:o})=>({node:a,loc:P(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 HD(e){return e.type==="ObjectTypeAnnotation"?Ao.some(t=>J(e[t])):J(e.type==="RecordDeclarationBody"?e.elements:e.body)}function kr(e,t,n){let{node:r}=e,u=[],a=r.type==="ObjectTypeAnnotation",o=r.type==="RecordDeclarationBody",i=!go(e),s=i?T:F,l=x(r,S.Dangling),[y,d]=a&&r.exact?["{|","|}"]:"{}",A=!0,D;if(KD(e,({node:g,next:h,isLast:f})=>{if(D??(D=g),A&&(A=!1),u.push(n()),!o&&i&&a){let{parent:b}=e;b.inexact||!f?u.push(","):u.push(Ye(t))}o&&g.type!=="MethodDefinition"&&u.push(","),!o&&!i&&(zD({node:g,next:h},t)||ho({node:g,next:h},t))&&u.push(";"),f||(u.push(s),Ie(g,t)&&u.push(F))}),l&&u.push($(e,t)),r.type==="ObjectTypeAnnotation"&&r.inexact){A&&(A=!1);let g;x(r,S.Dangling)?g=[x(r,S.Line)||G(t.originalText,v(N(0,ye(r),-1)))?F:T,"..."]:g=[D?T:"","..."],u.push(g)}if(i){let g=x(r,S.Dangling|S.Line)||t.objectWrap==="preserve"&&D&&se(t.originalText,P(r),P(D)),h;if(u.length===0)h=y+d;else{let f=!t.bracketSpacing||A&&!g?m:T;h=[y,E([f,...u]),f,d]}return e.match(void 0,(f,b)=>b==="typeAnnotation",(f,b)=>b==="typeAnnotation",Nt)||e.match(void 0,(f,b)=>f.type==="FunctionTypeParam"&&b==="typeAnnotation",Nt)?h:c(h,{shouldBreak:g})}return[y,u.length>0?[E([F,u]),F]:"",d]}function go(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 Me(e,t){let{parent:n}=e;return e.callParent(go)?n.type==="ObjectTypeAnnotation"?";":W(t):n.type==="TSTypeLiteral"?e.isLast?t.semi?I(";"):"":t.semi||ho({node:e.node,next:e.next},t)?";":I("",";"):""}var cu=B(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),Co=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 zD({node:e,next:t},n){if(n.semi||!cu(e))return!1;if(!e.value&&Co(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(cu(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 QD=B(["TSPropertySignature"]);function ho({node:e,next:t},n){return n.semi||!QD(e)?!1:Co(e)?!0:t&&t.type==="TSCallSignatureDeclaration"?!(e.type==="TSPropertySignature"&&e.typeAnnotation):!1}var YD=GD("heritageGroup"),ZD=B(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function wr(e,t,n){let r=ey(e,t,n),{node:u}=e;if(u.type==="ClassExpression"&&J(u.decorators)){let a=no(e,t,n);return ce(e,t)?[E([m,a,r]),m]:[a,r]}return r}function ey(e,t,n){let{node:r}=e,u=ZD(r),a=r.type==="RecordDeclaration",o=u?"interface":a?"record":"class",i=[Fe(e),Fn(e),o],s=To(e),l=[],y=[];if(r.type!=="InterfaceTypeAnnotation"){r.id&&l.push(" ");for(let A of["id","typeParameters"])if(r[A]){let{leading:D,trailing:g}=e.call(()=>Fa(e,t),A);l.push(D,n(A),E(g))}}if(r.superClass){let A=[ry(e,t,n),n("superTypeArguments")],D=e.call(()=>["extends ",ne(e,A,t)],"superClass");s?y.push(T,c(D)):y.push(" ",D)}else y.push(Sn(e,t,n,"extends"));y.push(Sn(e,t,n,"mixins"),Sn(e,t,n,"implements"));let d;return s?(d=YD(r),i.push(c([...l,E(y)],{id:d}))):i.push(...l,...y),!u&&s&&HD(r.body)?i.push(I(F," ",{groupId:d})):i.push(" "),i.push(n("body")),i}function xo(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 ty(e){let{node:t}=e;if(x(t.id,S.Trailing)||x(t.typeParameters,S.Trailing)||x(t.superClass)||xo(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!t.superTypeArguments&&O(Ke(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")&&O(n.expression)&&!n.typeArguments:!1}var ny=new WeakMap;function To(e){return ge(ny,e.node,()=>ty(e))}function Sn(e,t,n,r){let{node:u}=e;if(!J(u[r]))return"";let a=$(e,t,{marker:r}),o=M([",",T],e.map(n,r));if(!xo(u)){let i=[`${r} `,a,o];return To(e)?[T,c(i)]:[" ",i]}return[T,a,a&&F,r,c(E([T,o]))]}function ry(e,t,n){let r=n("superClass"),{parent:u}=e;return u.type==="AssignmentExpression"?c(I(["(",E([m,r]),m,")"],r)):r}function So(e,t,n){let{node:r}=e,u=[];return J(r.decorators)&&u.push(to(e,t,n)),u.push(En(r)),r.static&&u.push("static "),u.push(Fn(e)),r.override&&u.push("override "),u.push(On(e,t,n)),u}function bo(e,t,n){let{node:r}=e,u=[];return J(r.decorators)&&u.push(to(e,t,n)),u.push(Fe(e),En(r)),r.static&&u.push("static "),u.push(Fn(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(Ue(e,t,n),ae(e),Aa(e),Y(e,n)),[Gt(e,t,n,u," =",r.type==="TSAbstractPropertyDefinition"||r.type==="TSAbstractAccessorProperty"?void 0:"value"),W(t)]}function uy(e,t){let n=ye(e,S.Leading);if(n.length===0)return!1;let[r]=n,u=t.originalText,a=P(r);return se(u,a,v(r))||G(u,a,{backwards:!0})}function Tt(e,t,n,r="body"){return e.call(({node:u})=>{let a=n();if(u.type==="EmptyStatement")return x(u,S.Leading)?[" ",a]:a;let o=u.type==="BlockStatement";return uy(u,t)?o?[F,a]:E([F,a]):o||u.type==="IfStatement"&&e.parent.type==="IfStatement"&&e.key==="alternate"?[" ",a]:E([T,a])},r)}var ay=(e,t,n)=>Tt(e,t,n,"consequent"),oy=(e,t,n)=>Tt(e,t,n,"alternate");function iy(e,t,n){return[c(["do",Tt(e,t,n)]),e.node.body.type==="BlockStatement"?" ":F,"while (",gr(e,t,n),")",W(t)]}var sy=B(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Bo(e){return sy(e)?Bo(e.expression):e}var py=B(["FunctionExpression","ArrowFunctionExpression"]);function ly(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function cy(e,t){if(qa(e,t)){let n=Bo(e.node.expression);return py(n)||ly(n)}return!(!t.semi||Oa(e,t)||Ja(e,t))}function Dy(e,t,n){let r=[n("expression")];if(Tr(e,t)){if(Ra(e,t)){let{node:u}=e,a=N(0,ye(u,S.Leading),-1);return ne(e,[";",Ar(e,t,{filter:o=>o===a}),...r],t,{filter:o=>o!==a})}r.unshift(";")}else cy(e,t)&&r.push(";");return r}function yy(e,t,n){let{node:r}=e,u=Tt(e,t,n),a=$(e,t),o=a?[a,m]:"";return!r.init&&!r.test&&!r.update?[o,c(["for (;;)",u])]:[o,c(["for (",c([E([m,n("init"),";",T,n("test"),";",r.update?[T,n("update")]:""]),m]),")",u])]}function dy(e,t,n){let{node:r}=e,u=r.type==="ForOfStatement";return c(["for",u&&r.await?" await":""," (",n("left")," ",u?"of":"in"," ",n("right"),")",Tt(e,t,n)])}function fy(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([",",T],r);return t.__isVueForBindingLeft?["(",E([m,c(u)]),m,")"]:u}if(t.__isEmbeddedTypescriptGenericParameters){let r=e.map(n,"program","body",0,"typeParameters","params");return M([",",T],r)}}var my=(e,{originalText:t})=>fa(t,P(e));function vo(e){return Ve(N(0,ye(e,S.Dangling),-1))}function Fy(e,t,n){let{node:r}=e,u=c(["if (",gr(e,t,n),")",ay(e,t,n)]);if(!r.alternate)return u;let{consequent:a}=r,o=a.type==="BlockStatement",i=[u],s=o;o||(i.push(F),s=!1);let l=ye(r,S.Dangling);if(l.length>0){let[y]=l;my(y,t)?i.push(o?[F,F]:F):G(t.originalText,P(y),{backwards:!0})?i.push(o?F:""):i.push(" "),i.push($(e,t),vo(r)||G(t.originalText,v(N(0,l,-1)))?F:" "),s=!1}return i.push(s?" ":"","else",c(oy(e,t,n))),i}function Ey(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return Du(n);case"BigIntLiteral":return Wn(n.extra.raw);case"NumericLiteral":return qt(n.extra.raw);case"StringLiteral":return nt(rt(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return yu(n.extra.raw,t);case"Literal":{if(n.regex)return Du(n.regex);if(n.bigint)return Wn(n.raw);let{value:r}=n;return typeof r=="number"?qt(n.raw):typeof r=="string"?Ay(e)?yu(n.raw,t):nt(rt(n.raw,t)):String(r)}}}function Ay(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function Wn(e){return e.toLowerCase()}function Du({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var gy="use strict";function yu(e,t){let n=e.slice(1,-1);if(n===gy||!(n.includes('"')||n.includes("'"))){let r=t.singleQuote?"'":'"';return r+n+r}return e}var Po=B(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),Cy=B(["EnumBody","EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function St(e,t,n){let{node:r,parent:u}=e,a=Cy(r),o=r.type==="TSEnumBody"||a,i=Po(r),s=a&&r.hasUnknownMembers,l=o?"members":i?"attributes":"properties",y=r[l],d=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(f=>f.value&&(f.value.type==="ObjectPattern"||f.value.type==="ArrayPattern"))||r.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&y.length>0&&hy(r,y[0],t),A=[],D=e.map(({node:f})=>{let b=[...A,n()];return A=[",",T],Ie(f,t)&&A.push(F),b},l);if(s){let f;if(x(r,S.Dangling)){let b=x(r,S.Line);f=[$(e,t),b||G(t.originalText,v(N(0,ye(r),-1)))?F:T,"..."]}else f=["..."];D.push([...A,...f])}let g=!(s||N(0,y,-1)?.type==="RestElement"),h;if(D.length===0)h=c(["{",An(e,t),"}",ae(e),Y(e,n)]);else{let f=t.bracketSpacing?T:m;h=["{",E([f,...D]),g?Ye(t):"",f,"}",ae(e),Y(e,n)]}return e.match(f=>f.type==="ObjectPattern"&&!J(f.decorators),Nt)||$e(r)&&(e.match(void 0,(f,b)=>b==="typeAnnotation",(f,b)=>b==="typeAnnotation",Nt)||e.match(void 0,(f,b)=>f.type==="FunctionTypeParam"&&b==="typeAnnotation",Nt))||!d&&e.match(f=>f.type==="ObjectPattern",f=>f.type==="AssignmentExpression"||f.type==="VariableDeclarator")?h:c(h,{shouldBreak:d})}function hy(e,t,n){let r=n.originalText,u=P(t),a=P(e);return Po(e)&&(a=he(n).lastIndexOf("{",u)),se(r,a,u)}function xy(e,t,n){let{node:r}=e;return["import",r.phase?` ${r.phase}`:"",Io(r),Mo(e,t,n),No(e,t,n),Lo(e,t,n),W(t)]}var ko=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function wo(e,t,n){let{node:r}=e,u=[rD(e,t,n),Fe(e),"export",ko(r)?" default":""],{declaration:a,exported:o}=r;return x(r,S.Dangling)&&(u.push(" ",$(e,t)),vo(r)&&u.push(F)),a?u.push(" ",n("declaration")):(u.push(by(r)),r.type==="ExportAllDeclaration"||r.type==="DeclareExportAllDeclaration"?(u.push(" *"),o&&u.push(" as ",n("exported"))):u.push(Mo(e,t,n)),u.push(No(e,t,n),Lo(e,t,n))),u.push(Sy(r,t)),u}var Ty=B(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Sy(e,t){return!e.declaration||ko(e)&&!Ty(e.declaration)?W(t):""}function Ir(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Io(e,t){return Ir(e.importKind,t)}function by(e){return Ir(e.exportKind)}function No(e,t,n){let{node:r}=e;return r.source?[jo(r,t)?" from":""," ",n("source")]:""}function Mo(e,t,n){let{node:r}=e;if(!jo(r,t))return"";let u=[" "];if(J(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 xt(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=>x(i))?u.push(c(["{",E([t.bracketSpacing?T:m,M([",",T],o)]),Ye(t),t.bracketSpacing?T:m,"}"])):u.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function jo(e,t){return e.type!=="ImportDeclaration"||J(e.specifiers)||e.importKind==="type"?!0:he(t).slice(P(e),P(e.source)).trimEnd().endsWith("from")}function By(e,t){let n=he(t).slice(v(e.source),e.attributes?.[0]?P(e.attributes[0]):v(e)).trimStart();return n.startsWith("assert")?"assert":n.startsWith("with")||J(e.attributes)?"with":void 0}var vy=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"||K(u)&&u.value==="type")&&K(a)&&!x(n)&&!x(u)&&!x(a)};function Lo(e,t,n){let{node:r}=e;if(!r.source)return"";let u=By(r,t);if(!u)return"";let a=St(e,t,n);return vy(r)&&(a=un(a)),[` ${u} `,a]}function Py(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],l=r[i],y="",d="";return u==="ExportNamespaceSpecifier"||u==="ImportNamespaceSpecifier"?y="*":s&&(y=n(o)),l&&!kn(r)&&(d=n(i)),[Ir(u==="ImportSpecifier"?r.importKind:r.exportKind,!1),y,y&&d?" as ":"",d]}function bn(e,t,n){let{node:r}=e;return r.shorthand?n("value"):Gt(e,t,n,Ue(e,t,n),":","value")}function _n(e,t){return["...",t("argument"),Y(e,t)]}function ky(e,t,n){let{node:r}=e,u=n();return Qu(r,t)?["(",E([F,u]),F,")"]:Le(r)||t.experimentalTernaries&&r.type==="ConditionalExpression"&&(r.consequent.type==="ConditionalExpression"||r.alternate.type==="ConditionalExpression")?c([I("("),E([m,u]),m,I(")")]):u}function du(e,t,n){let{node:r}=e;return[r.type==="ThrowStatement"?"throw":"return",r.argument?[" ",e.call(()=>ky(e,t,n),"argument")]:"",W(t)]}function wy(e,t){let{key:n,parent:r}=e;return!!(n==="argument"&&ft(r)&&ce(e,t)||n==="body"&&r.type==="ArrowFunctionExpression")}function Iy(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(",",E([T,n()]))},"expressions"),c(a)}let u=M([",",T],e.map(n,"expressions"));return wy(e,t)?c(I([E([m,u]),m],u)):c(u)}function Ny(e,t,n){return[c(["switch (",E([m,n("discriminant")]),m,")"])," {",e.node.cases.length>0?E([F,M(F,e.map(({node:r,isLast:u})=>[n(),!u&&Ie(r,t)?F:""],"cases"))]):$(e,t,{indent:!0}),F,"}"]}function My(e,t,n){let{node:r}=e,u=[];r.test?u.push("case ",n("test"),":"):u.push("default:"),x(r,S.Dangling)&&u.push(" ",$(e,t));let a=r.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=Xn(e,t,n,"consequent");u.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:E([F,o]))}return u}function Oo(e,t){let n=0;for(let r in e){let u=e[r];if(Gu(u)&&typeof u.type=="string"&&(n++,n+=Oo(u,t-n)),n>t)return n}return n}function fu(e,t=5){return Oo(e,t)<=t}function jy(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(z(a))return!0;a.type==="ConditionalExpression"&&t.push(a)}}return!1}function Ly(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?fe(2,i):i}var Oy=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Jy(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(at(a)&&a.expression===r||L(a)&&a.callee===r||O(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[Oy.get(n.type)]===r}function qy(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],l=r[o],y=[],d=!1,{parent:A}=e,D=A.type===r.type&&i.some(X=>A[X]===r),g=A.type===r.type&&!D,h,f,b=0;do f=h||r,h=e.getParentNode(b),b++;while(h&&h.type===r.type&&i.every(X=>h[X]!==f));let C=h||A,w=f;if(u&&(z(r[i[0]])||z(s)||z(l)||jy(w))){d=!0,g=!0;let X=U=>[I("("),E([m,U]),m,I(")")],te=U=>U.type==="NullLiteral"||U.type==="Literal"&&U.value===null||U.type==="Identifier"&&U.name==="undefined";y.push(" ? ",te(s)?n(a):X(n(a))," : ",l.type===r.type||te(l)?n(o):X(n(o)))}else{let X=U=>t.useTabs?E(n(U)):fe(2,n(U)),te=[T,"? ",s.type===r.type?I("","("):"",X(a),s.type===r.type?I("",")"):"",T,": ",X(o)];y.push(A.type!==r.type||A[o]===r||D?te:t.useTabs?ua(E(te)):fe(Math.max(0,t.tabWidth-2),te))}let j=X=>A===C?c(X):X,q=!d&&(O(A)||A.type==="NGPipeExpression"&&A.left===r)&&!A.computed,Q=Jy(e),ee=j([Ly(e,t,n),g?y:E(y),u&&q&&!Q?m:""]);return D||Q?c([E([m,ee]),m]):ee}function Ry(e,t){return(O(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Xy(e,t,n,r){return[...e.map(u=>ye(u)),ye(t),ye(n)].flat().some(u=>Se(u)&&se(r.originalText,P(u),v(u)))}var Wy=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function _y(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(at(a)&&a.expression===r||L(a)&&a.callee===r||O(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[Wy.get(n.type)]===r}var Bn=e=>[I("("),E([m,e]),m,I(")")];function Nr(e,t,n,r){if(!t.experimentalTernaries)return qy(e,t,n);let{node:u}=e,a=u.type==="ConditionalExpression",o=_e(u),i=a?"consequent":"trueType",s=a?"alternate":"falseType",l=a?["test"]:["checkType","extendsType"],y=u[i],d=u[s],A=l.map(vt=>u[vt]),{parent:D}=e,g=D.type===u.type,h=g&&l.some(vt=>D[vt]===u),f=g&&D[s]===u,b=y.type===u.type,C=d.type===u.type,w=C||f,j=t.tabWidth>2||t.useTabs,q,Q,ee=0;do Q=q||u,q=e.getParentNode(ee),ee++;while(q&&q.type===u.type&&l.every(vt=>q[vt]!==Q));let X=q||D,te=r&&r.assignmentLayout&&r.assignmentLayout!=="break-after-operator"&&(D.type==="AssignmentExpression"||D.type==="VariableDeclarator"||D.type==="ClassProperty"||D.type==="PropertyDefinition"||D.type==="ClassPrivateProperty"||D.type==="ObjectProperty"||D.type==="Property"),U=ft(D)&&!(b||C),Ne=a&&X.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",Xe=_y(e),k=Ry(u,D),V=o&&ce(e,t),le=j?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Ze=Xy(A,y,d,t)||b||C,bt=!w&&!g&&!o&&(Ne?y.type==="NullLiteral"||y.type==="Literal"&&y.value===null:Pr(y,t)&&fu(u.test,3)),Mr=w||f||o&&!g||g&&a&&fu(u.test,1)||bt,Kt=[];x(u.test,S.Dangling)&&e.call(()=>{Kt.push($(e,t))},"test"),x(u,S.Dangling)&&Kt.push($(e,t));let jr=Symbol("test"),oi=Symbol("consequent"),Ht=Symbol("test-and-consequent"),Lr=c([a?[Bn(n("test")),u.test.type==="ConditionalExpression"?Je:""]:[n("checkType")," ","extends"," ",_e(u.extendsType)||u.extendsType.type==="TSMappedType"?n("extendsType"):c(Bn(n("extendsType")))]," ?"],{id:jr}),ii=n(i),zt=E([b||Ne&&(z(y)||g||w)?F:T,ii]),si=Mr?c([Lr,w?zt:I(zt,c(zt,{id:oi}),{groupId:jr})],{id:Ht}):[Lr,zt],Cn=n(s),Or=bt?I(Cn,ua(Bn(Cn)),{groupId:Ht}):Cn,Bt=[si,Kt.length>0?[E([F,Kt]),F]:C?F:bt?I(T," ",{groupId:Ht}):T,":",C||!j?" ":Mr?I(le,I(w||bt?" ":le," "),{groupId:Ht}):I(le," "),C?Or:c([E(Or),Ne&&!bt?m:""]),k&&!Xe?m:"",Ze?Je:""];return te&&!Ze?c(E([m,c(Bt)])):te||U?c(E(Bt)):Xe||o&&h?c([E([m,Bt]),V?m:""]):D===X?c(Bt):Bt}function $y(e,t,n){let{node:r}=e;return["try ",n("block"),r.handler?[" ",n("handler")]:"",r.finalizer?[" finally ",n("finalizer")]:""]}function Uy(e,t,n){let{node:r}=e;if(r.param){let u=x(r.param,o=>!Se(o)||o.leading&&G(t.originalText,v(o))||o.trailing&&G(t.originalText,P(o),{backwards:!0})),a=n("param");return["catch ",u?["(",E([m,a]),m,") "]:["(",a,") "],n("body")]}return["catch ",n("body")]}function Jo(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&&!x(r.declarations[0])?i=u[0]:i=E(u[0]),c([Fe(e),r.kind,i?[" ",i]:"",E(u.slice(1).map(s=>[",",o&&!a?F:T,s])),a?"":W(t)])}function Vy(e,t,n){let{node:r}=e;return c([r.type==="WithStatement"?"with":"while"," (",gr(e,t,n),")",Tt(e,t,n)])}function Gy(e,t,n,r){let{node:u}=e;if(Hn(u))return Ey(e,t);switch(u.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[$(e,t),n("node"),F];case"File":return fy(e,t,n)??n("program");case"ExpressionStatement":return Dy(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!x(u.expression)&&(Te(u.expression)||Z(u.expression))?["(",n("expression"),")"]:c(["(",E([m,n("expression")]),m,")"]);case"AssignmentExpression":return wD(e,t,n);case"VariableDeclarator":return ID(e,t,n);case"BinaryExpression":case"LogicalExpression":return eo(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return SD(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return hD(e,t,n);case"Identifier":return[u.name,ae(e),Aa(e),Y(e,n)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":return _n(e,n);case"RestElement":return _n(e,n);case"FunctionDeclaration":case"FunctionExpression":return Cr(e,t,n,r);case"ArrowFunctionExpression":return sD(e,t,n,r);case"YieldExpression":return[`yield${u.delegate?"*":""}`,u.argument?[" ",n("argument")]:""];case"AwaitExpression":return WD(e,t,n);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return wo(e,t,n);case"ImportDeclaration":return xy(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Py(e,t,n);case"ImportAttribute":return bn(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return Eo(e,t,n);case"ClassBody":return kr(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 ln(e,t,n);case"ObjectExpression":case"ObjectPattern":return St(e,t,n);case"Property":return gt(u)?On(e,t,n):bn(e,t,n);case"ObjectProperty":return bn(e,t,n);case"ObjectMethod":return On(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":return vr(e,t,n);case"SequenceExpression":return Iy(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 x(u.argument)?a.push(c(["(",E([m,o]),m,")"])):a.push(o),a}case"UpdateExpression":return[u.prefix?u.operator:"",n("argument"),u.prefix?"":u.operator];case"ConditionalExpression":return Nr(e,t,n,r);case"VariableDeclaration":return Jo(e,t,n);case"IfStatement":return Fy(e,t,n);case"ForStatement":return yy(e,t,n);case"WithStatement":case"WhileStatement":return Vy(e,t,n);case"DoWhileStatement":return iy(e,t,n);case"ForInStatement":case"ForOfStatement":return dy(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"&&!x(u.body,S.Leading)?"":" "}`,n("body")];case"TryStatement":return $y(e,t,n);case"CatchClause":return Uy(e,t,n);case"SwitchStatement":return Ny(e,t,n);case"SwitchCase":return My(e,t,n);case"DebuggerStatement":return["debugger",W(t)];case"ClassDeclaration":case"ClassExpression":return wr(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return So(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return bo(e,t,n);case"TemplateElement":return nt(u.value.raw);case"TemplateLiteral":return Xa(e,t,n);case"TaggedTemplateExpression":return Gl(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(Gn(e))return";";default:throw new xt(u,"ESTree")}}function qo(e){return[e("elementType"),"[]"]}function Ro(e,t,n){let{parent:r,node:u,key:a}=e,o=u.type==="AsConstExpression"?"const":n("typeAnnotation"),i=[n("expression")," ",Pi(u)?"satisfies":"as"," ",o];return a==="callee"&&Lt(r)||a==="object"&&O(r)?c([E([m,...i]),m]):i}function Ky(e,t,n){let{node:r}=e,u=[Fe(e),r.async?"async ":"","component"];r.id&&u.push(" ",n("id")),u.push(n("typeParameters"));let a=Dt(e,t,n);return r.rendersType?u.push(c([a," ",n("rendersType")])):u.push(c([a])),r.body&&u.push(" ",n("body")),r.type==="DeclareComponent"&&u.push(W(t)),u}function Hy(e,t,n){let{node:r}=e;return r.shorthand?n("local"):[n("name")," as ",n("local")]}function zy(e,t,n){let{node:r}=e,u=[];return r.name&&u.push(n("name"),r.optional?"?: ":": "),u.push(n("typeAnnotation")),u}function Qy(e,t,n){let{node:r}=e;return[r.explicitType?`of ${r.explicitType} `:"",St(e,t,n)]}function Yy(e,t,n){let{node:r}=e;return[r.type==="EnumSymbolBody"||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:"",St(e,t,n)]}function Xo(e,t,n){let{node:r}=e,u=r.type==="TSEnumMember",a=u?Ue(e,t,n):n("id"),o=u?"initializer":"init";return r[o]?[a," = ",n(o)]:a}function Wo(e,t){let{node:n}=e;return[Fe(e),n.const?"const ":"","enum ",t("id")," ",t("body")]}function _o(e,t,n){let{node:r}=e,u=[Fn(e)];(r.type==="TSConstructorType"||r.type==="TSConstructSignatureDeclaration")&&u.push("new ");let a=Dt(e,t,n,!1,!0),o=[];return r.type==="FunctionTypeAnnotation"?o.push(Zy(e)?" => ":": ",n("returnType")):o.push(Y(e,n,"returnType")),Vt(r,o)&&(a=c(a)),u.push(a,o),[c(u),r.type==="TSConstructSignatureDeclaration"||r.type==="TSCallSignatureDeclaration"?Me(e,t):""]}function Zy(e){let{node:t,parent:n}=e;return t.type==="FunctionTypeAnnotation"&&(dr(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&Dn(n,t)||n.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function e0(e,t,n){return[Fe(e),"hook",e.node.id?[" ",n("id")]:"",W(t)]}function mu(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function t0(e,t,n){let{node:r}=e,u=Dt(e,t,n,!1,!0),a=[mu(e)?": ":" => ",n("returnType")];return c([mu(e)?"":"hook ",Vt(r,a)?c(u):u,a])}function $o(e,t,n){return[n("objectType"),ae(e),"[",n("indexType"),"]"]}function Uo(e,t,n){return["infer ",n("typeParameter")]}function Vo(e,t,n){let r=!1;return c(e.map(({isFirst:u,previous:a,node:o,index:i})=>{let s=n();if(u)return s;let l=$e(o),y=$e(a);return y&&l?[" & ",r?E(s):s]:!y&&!l||je(t.originalText,o)?t.experimentalOperatorPosition==="start"?E([T,"& ",s]):E([" &",T,s]):(i>1&&(r=!0),[" & ",i>1?E(s):s])},"types"))}function n0(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function r0(e,t,n){let{node:r}=e;return[c([r.variance?n("variance"):"",c(["[",E([m,n("keyTparam")," in ",n("sourceType")]),m,"]"]),n0(r.optional),": ",n("propType")]),Me(e,t)]}function Fu(e,t){return e==="+"||e==="-"?e+t:t}function u0(e,t,n){let{node:r}=e,u=!1;if(t.objectWrap==="preserve"){let i=he(t),s=P(r)+1,l=s+i.slice(s).search(/\S/);se(t.originalText,s,l)&&(u=!0)}let a=[],o=ye(r,S.Dangling);if(o.length>0){let i=N(0,o,-1),s=$(e,t);a.push(...s.slice(0,-1),c([N(0,s,-1),Ve(i)||G(t.originalText,v(i))?F:T]))}return c(["{",E([t.bracketSpacing?T:m,...a,r.readonly?[Fu(r.readonly,"readonly")," "]:"",c(["[",E([m,n("key")," in ",n("constraint"),r.nameType?[" as ",n("nameType")]:""]),m,"]"]),r.optional?Fu(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),t.semi?I(";"):""]),t.bracketSpacing?T:m,"}"],{shouldBreak:u})}function a0(e,t,n){let{node:r}=e;return[c(["match (",E([m,n("argument")]),m,")"])," {",r.cases.length>0?E([F,M(F,e.map(({node:u,isLast:a})=>[n(),!a&&Ie(u,t)?F:""],"cases"))]):"",F,"}"]}function o0(e,t,n){let{node:r}=e,u=x(r,S.Dangling)?[" ",$(e,t)]:[],a=r.type==="MatchStatementCase"?[" ",n("body")]:E([T,n("body"),","]);return[n("pattern"),r.guard?c([E([T,"if (",n("guard"),")"])]):"",c([" =>",u,a])]}function i0(e,t,n){let{node:r}=e;switch(r.type){case"MatchOrPattern":return c0(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")]:["[",E([m,n("property")]),m,"]"];return c([n("base"),u])}case"MatchBindingPattern":return[r.kind," ",n("id")];case"MatchObjectPattern":case"MatchInstanceObjectPattern":return s0(e,t,n);case"MatchInstancePattern":return c([n("targetConstructor")," ",n("properties")]);case"MatchArrayPattern":{let u=e.map(n,"elements");return r.rest&&u.push(n("rest")),c(["[",E([m,M([",",T],u)]),r.rest?"":I(","),m,"]"])}case"MatchObjectPatternProperty":return r.shorthand?n("pattern"):c([n("key"),":",E([T,n("pattern")])]);case"MatchRestPattern":{let u=["..."];return r.argument&&u.push(n("argument")),u}}}function s0(e,t,n){let{node:r}=e,u=e.map(n,"properties");return r.rest&&u.push(n("rest")),c(["{",E([m,M([",",T],u)]),r.rest?"":I(","),m,"}"])}var Go=B(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function p0(e){let{patterns:t}=e;if(t.some(r=>x(r)))return!1;let n=t.find(r=>r.type==="MatchObjectPattern");return n?t.every(r=>r===n||Go(r)):!1}function l0(e){return Go(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?p0(e):!1}function c0(e,t,n){let{node:r}=e,{parent:u}=e,a=u.type!=="MatchStatementCase"&&u.type!=="MatchExpressionCase"&&u.type!=="MatchArrayPattern"&&u.type!=="MatchObjectPatternProperty"&&!je(t.originalText,r),o=l0(r),i=e.map(()=>{let l=n();return o||(l=fe(2,l)),ne(e,l,t)},"patterns");if(o)return M(" | ",i);let s=[I(["| "]),M([T,"| "],i)];return ce(e,t)?c([E([I([m]),s]),m]):u.type==="MatchArrayPattern"&&u.elements.length>1?c([E([I(["(",m]),s]),m,I(")")]):c(a?E(s):s)}function D0(e,t,n){let{node:r}=e,u=[Fe(e),"opaque type ",n("id"),n("typeParameters")];if(r.supertype&&u.push(": ",n("supertype")),r.lowerBound||r.upperBound){let a=[];r.lowerBound&&a.push(E([T,"super ",n("lowerBound")])),r.upperBound&&a.push(E([T,"extends ",n("upperBound")])),u.push(c(a))}return r.impltype&&u.push(" = ",n("impltype")),u.push(W(t)),u}function Ko(e,t,n){let{node:r}=e;return["...",...r.type==="TupleTypeSpreadElement"&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function Ho(e,t,n){let{node:r}=e;return[r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}function zo(e,t,n){let{node:r}=e;return[Gt(e,t,n,[Fe(e),"type ",n("id"),n("typeParameters")]," =",r.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right"),W(t)]}function y0(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 Mt(e,t,n,r){let{node:u}=e,a=u[r];if(!a)return"";if(!Array.isArray(a))return n(r);let o=mn(e.grandparent),i=e.match(l=>!(l[r].length===1&&$e(l[r][0])),void 0,(l,y)=>y==="typeAnnotation",l=>l.type==="Identifier",mo);if(a.length===0||!i&&(o||a.length===1&&(a[0].type==="NullableTypeAnnotation"||Ll(a[0])))&&!a.some(l=>{let y=ye(l,d=>d.leading||d.trailing);return y.length>0&&(y.some(d=>Ve(d))||G(t.originalText,v(N(0,y,-1))))}))return["<",M(", ",e.map(n,r)),d0(e,t),">"];let s=u.type==="TSTypeParameterInstantiation"?"":y0(e,t,r)?",":Ye(t);return c(["<",E([m,M([",",T],e.map(n,r))]),s,m,">"])}function d0(e,t){let{node:n}=e;if(!x(n,S.Dangling))return"";let r=!x(n,S.Line),u=$(e,t,{indent:!r});return r?u:[u,F]}function Qo(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(Y(e,n,"bound"))),r.constraint){let o=Symbol("constraint");u.push(" extends",c(E(T),{id:o}),me,Jt(n("constraint"),{groupId:o}))}if(r.default){let o=Symbol("default");u.push(" =",c(E(T),{id:o}),me,Jt(n("default"),{groupId:o}))}return c(u)}function Yo(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 ",Y(e,t)]:""]}function Zo({node:e},t){return["typeof ",t(e.type==="TSTypeQuery"?"exprName":"argument"),t("typeArguments")]}function f0(e,t,n,r){let{node:u}=e;if(ya(u))return u.type.slice(0,-14).toLowerCase();switch(u.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Ky(e,t,n);case"ComponentParameter":return Hy(e,t,n);case"ComponentTypeParameter":return zy(e,t,n);case"HookDeclaration":return Cr(e,t,n);case"DeclareHook":return e0(e,t,n);case"HookTypeAnnotation":return t0(e,t,n);case"DeclareFunction":return[Fe(e),"function ",n("id"),n("predicate"),W(t)];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",Y(e,n),W(t)];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return Array.isArray(u.declarations)?Jo(e,t,n):[Fe(e),u.kind??"var"," ",n("id"),W(t)];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return wo(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return D0(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return zo(e,t,n);case"IntersectionTypeAnnotation":return Vo(e,t,n);case"UnionTypeAnnotation":return Ia(e,t,n,r);case"ConditionalTypeAnnotation":return Nr(e,t,n);case"InferTypeAnnotation":return Uo(e,t,n);case"FunctionTypeAnnotation":return _o(e,t,n);case"TupleTypeAnnotation":return vr(e,t,n);case"TupleTypeLabeledElement":return Ho(e,t,n);case"TupleTypeSpreadElement":return Ko(e,t,n);case"GenericTypeAnnotation":return[n("id"),Mt(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return $o(e,t,n);case"TypeAnnotation":return Ma(e,t,n);case"TypeParameter":return Qo(e,t,n);case"TypeofTypeAnnotation":return Zo(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return qo(n);case"DeclareEnum":case"EnumDeclaration":return Wo(e,n);case"EnumBody":return Qy(e,t,n);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return Yy(e,t,n);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Xo(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 wr(e,t,n);case"ObjectTypeAnnotation":case"RecordDeclarationBody":return kr(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 ut(a==="plus"||a==="minus"||a==="readonly"||a==="writeonly"||a==="in"||a==="out"),a==="plus"?"+":a==="minus"?"-":`${a} `}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[u.static?"static ":"",n("value"),Me(e,t)];case"ObjectTypeMappedTypeProperty":return r0(e,t,n);case"ObjectTypeIndexer":return[u.static?"static ":"",u.variance?n("variance"):"","[",n("id"),u.id?": ":"",n("key"),"]: ",n("value"),Me(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"):"",Ue(e,t,n),ae(e),gt(u)?"":": ",n("value"),Me(e,t)]}case"ObjectTypeInternalSlot":return[u.static?"static ":"","[[",n("id"),"]]",ae(e),u.method?"":": ",n("value"),Me(e,t)];case"ObjectTypeSpreadProperty":return _n(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(u.value);case"StringLiteralTypeAnnotation":return nt(rt(De(u),t));case"NumberLiteralTypeAnnotation":return qt(De(u));case"BigIntLiteralTypeAnnotation":return Wn(De(u));case"TypeCastExpression":return["(",n("expression"),Y(e,n),")"];case"TypePredicate":return Yo(e,n);case"TypeOperator":return[u.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Mt(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 Ro(e,t,n);case"MatchExpression":case"MatchStatement":return a0(e,t,n);case"MatchExpressionCase":case"MatchStatementCase":return o0(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 i0(e,t,n);case"RecordExpression":return[n("recordConstructor"),n("typeArguments")," ",n("properties")];case"RecordExpressionProperties":return St(e,t,n);case"RecordDeclarationProperty":case"RecordDeclarationStaticProperty":{let a=u.type==="RecordDeclarationStaticProperty",o=a?"value":"defaultValue";return[a?"static ":"",Ue(e,t,n),Y(e,n),u[o]?[" = ",n(o)]:""]}}}function m0(e,t){let{node:n}=e,r=t.originalText.slice(P(n),v(n));return t.semi&&Pn(n)?r+=";":Tr(e,t)&&(r=`;${r}`),n.type==="ClassExpression"&&J(n.decorators)?[E([m,r]),m]:r}var vn=e=>e===""||e===T||e===F||e===m;function F0(e,t,n){let{node:r}=e;if(r.type==="JSXElement"&&N0(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(C=>M0(C)?{type:"JSXText",value:" ",raw:" "}:C);let o=r.children.some(z),i=r.children.filter(C=>C.type==="JSXExpressionContainer").length>1,s=r.type==="JSXElement"&&r.openingElement.attributes.length>1,l=ue(u)||o||s||i,y=e.parent.rootMarker==="mdx",d=t.singleQuote?"{' '}":'{" "}',A=y?T:I([d,m]," "),D=E0(e,t,n,A,r.openingElement?.name?.name==="fbt"),g=r.children.some(C=>Xt(C));for(let C=D.length-2;C>=0;C--){let w=D[C]===""&&D[C+1]==="",j=D[C]===F&&D[C+1]===""&&D[C+2]===F,q=(D[C]===m||D[C]===F)&&D[C+1]===""&&D[C+2]===A,Q=D[C]===A&&D[C+1]===""&&(D[C+2]===m||D[C+2]===F),ee=D[C]===A&&D[C+1]===""&&D[C+2]===A,X=D[C]===m&&D[C+1]===""&&D[C+2]===F||D[C]===F&&D[C+1]===""&&D[C+2]===m;j&&g||w||q||ee||X?D.splice(C,2):Q&&D.splice(C+1,2)}for(;D.length>0&&vn(N(0,D,-1));)D.pop();for(;D.length>1&&vn(D[0])&&vn(D[1]);)D.shift(),D.shift();let h=[""];for(let[C,w]of D.entries()){if(w===A){if(C===1&&Ep(D[C-1])){if(D.length===2){h.push([h.pop(),d]);continue}h.push([d,F],"");continue}if(C===D.length-1){h.push([h.pop(),d]);continue}if(D[C-1]===""&&D[C-2]===F){h.push([h.pop(),d]);continue}}C%2===0?h.push([h.pop(),w]):h.push(w,""),ue(w)&&(l=!0)}let f=g?aa(h):c(h,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&r.children.includes(t.cursorNode)?f=[Yt,f,Yt]:t.nodeBeforeCursor?.type==="JSXText"&&r.children.includes(t.nodeBeforeCursor)?f=[Yt,f]:t.nodeAfterCursor?.type==="JSXText"&&r.children.includes(t.nodeAfterCursor)&&(f=[f,Yt]),y)return f;let b=c([u,E([F,f]),F,a]);return l?b:et([c([u,...D,a]),b])}function E0(e,t,n,r,u){let a="",o=[a];function i(l){a=l,o.push([o.pop(),l])}function s(l){l!==""&&(a=l,o.push(l,""))}return e.each(({node:l,next:y})=>{if(l.type==="JSXText"){let d=De(l);if(Xt(l)){let A=tn.split(d,!0);A[0]===""&&(A.shift(),/\n/.test(A[0])?s(Au(u,A[1],l,y)):s(r),A.shift());let D;if(N(0,A,-1)===""&&(A.pop(),D=A.pop()),A.length===0)return;for(let[g,h]of A.entries())g%2===1?s(T):i(h);D!==void 0?/\n/.test(D)?s(Au(u,a,l,y)):s(r):s(Eu(u,a,l,y))}else/\n/.test(d)?d.match(/\n/g).length>1&&s(F):s(r)}else if(i(n()),y&&Xt(y)){let d=tn.trim(De(y)),[A]=tn.split(d);s(Eu(u,A,l,y))}else s(F)},"children"),o}function Eu(e,t,n,r){return e?"":n.type==="JSXElement"&&!n.closingElement||r?.type==="JSXElement"&&!r.closingElement?t.length===1?m:F:m}function Au(e,t,n,r){return e?F:t.length===1?n.type==="JSXElement"&&!n.closingElement||r?.type==="JSXElement"&&!r.closingElement?F:m:F}var A0=B(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function g0(e,t,n){let{parent:r}=e;if(A0(r))return t;let u=C0(e),a=ce(e,n);return c([a?"":I("("),E([m,t]),m,a?"":I(")")],{shouldBreak:u})}function C0(e){return e.match(void 0,(t,n)=>n==="body"&&t.type==="ArrowFunctionExpression",(t,n)=>n==="arguments"&&L(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 h0(e,t,n){let{node:r}=e,u=[n("name")];if(r.value){let a;if(K(r.value)){let o=H(0,H(0,De(r.value).slice(1,-1),"&apos;","'"),"&quot;",'"'),i=xa(o,t.jsxSingleQuote);o=i==='"'?H(0,o,'"',"&quot;"):H(0,o,"'","&apos;"),a=e.call(()=>ne(e,nt(i+o+i),t),"value")}else a=n("value");u.push("=",a)}return u}function x0(e,t,n){let{node:r}=e,u=(a,o)=>a.type==="JSXEmptyExpression"||!x(a)&&(Z(a)||Te(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(u(a.argument,a)||a.argument.type==="JSXElement")||L(Ke(a))||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||z(o)&&(a.type==="ConditionalExpression"||Le(a)));return u(r.expression,e.parent)?c(["{",n("expression"),me,"}"]):c(["{",E([m,n("expression")]),m,me,"}"])}function T0(e,t,n){let{node:r}=e,u=x(r.name)||x(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!u)return["<",n("name"),n("typeArguments")," />"];if(r.attributes?.length===1&&K(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
43
+ `)&&!u&&!x(r.attributes[0]))return c(["<",n("name"),n("typeArguments")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);let a=r.attributes?.some(i=>K(i.value)&&i.value.value.includes(`
44
+ `)),o=t.singleAttributePerLine&&r.attributes.length>1?F:T;return c(["<",n("name"),n("typeArguments"),E(e.map(({isFirst:i,previous:s})=>[i?o:Ie(s,t)?[F,F]:o,n()],"attributes")),...S0(r,t,u)],{shouldBreak:a})}function S0(e,t,n){return e.selfClosing?[T,"/>"]:b0(e,t,n)?[">"]:[m,">"]}function b0(e,t,n){let r=e.attributes.length>0&&x(N(0,e.attributes,-1),S.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function B0(e,t,n){let{node:r}=e,u=["</"],a=n("name");return x(r.name,S.Leading|S.Line)?u.push(E([F,a]),F):x(r.name,S.Leading|S.Block)?u.push(" ",a):u.push(a),u.push(">"),u}function v0(e,t){let{node:n}=e,r=x(n),u=x(n,S.Line),a=n.type==="JSXOpeningFragment";return[a?"<":"</",E([u?F:r&&!a?" ":"",$(e,t)]),u?F:"",">"]}function P0(e,t,n){return g0(e,ne(e,F0(e,t,n),t),t)}function k0(e,t){let{node:n}=e,r=x(n,S.Line);return[$(e,t,{indent:r}),r?F:""]}function w0(e,t,n){let{node:r}=e;return["{",e.call(({node:u})=>{let a=["...",n()];return x(u)?[E([m,ne(e,a,t)]),m]:a},r.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function I0(e,t,n){let{node:r}=e;if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return h0(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 w0(e,t,n);case"JSXExpressionContainer":return x0(e,t,n);case"JSXFragment":case"JSXElement":return P0(e,t,n);case"JSXOpeningElement":return T0(e,t,n);case"JSXClosingElement":return B0(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return v0(e,t);case"JSXEmptyExpression":return k0(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new xt(r,"JSX")}}function N0(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Xt(t)}function M0(e){return e.type==="JSXExpressionContainer"&&K(e.expression)&&e.expression.value===" "&&!x(e.expression)}function j0(e,t,n){let{node:r}=e,u=r.parameters.length>1?Ye(t):"",a=c([E([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:"","]",Y(e,n),Me(e,t)]}function gu(e,t,n){let{node:r}=e;return[r.postfix?"":n,Y(e,t),r.postfix?n:""]}function L0(e,t,n){let{node:r}=e,u=[],a=r.kind&&r.kind!=="method"?`${r.kind} `:"";u.push(En(r),a,Ue(e,t,n),ae(e));let o=Dt(e,t,n,!1,!0),i=Y(e,n,"returnType"),s=Vt(r,i);return u.push(s?c(o):o),r.returnType&&u.push(c(i)),[c(u),Me(e,t)]}function O0(e,t,n){let{node:r}=e;return[Fe(e),r.kind==="global"?"":`${r.kind} `,n("id"),r.body?[" ",c(n("body"))]:W(t)]}function J0(e,t,n){let{node:r}=e,u=!(Z(r.expression)||Te(r.expression)),a=c(["<",E([m,n("typeAnnotation")]),m,">"]),o=[I("("),E([m,n("expression")]),m,I(")")];return u?et([[a,n("expression")],[a,c(o,{shouldBreak:!0})],[a,n("expression")]]):c([a,n("expression")])}function q0(e,t,n,r){let{node:u}=e;if(u.type.startsWith("TS")){if(da(u))return u.type.slice(2,-7).toLowerCase();switch(u.type){case"TSThisType":return"this";case"TSTypeAssertion":return J0(e,t,n);case"TSDeclareFunction":return Cr(e,t,n);case"TSExportAssignment":return["export = ",n("expression"),W(t)];case"TSModuleBlock":return Eo(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return kr(e,t,n);case"TSTypeAliasDeclaration":return zo(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return So(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return bo(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[n("expression"),n("typeArguments")];case"TSTemplateLiteralType":return Xa(e,t,n);case"TSNamedTupleMember":return Ho(e,t,n);case"TSRestType":return Ko(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return wr(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Mt(e,t,n,"params");case"TSTypeParameter":return Qo(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return Ro(e,t,n);case"TSArrayType":return qo(n);case"TSPropertySignature":return[u.readonly?"readonly ":"",Ue(e,t,n),ae(e),Y(e,n),Me(e,t)];case"TSParameterProperty":return[En(u),u.static?"static ":"",u.override?"override ":"",u.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return Zo(e,n);case"TSIndexSignature":return j0(e,t,n);case"TSTypePredicate":return Yo(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[ln(e,t,n),u.qualifier?[".",n("qualifier")]:"",Mt(e,t,n,"typeArguments")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return $o(e,t,n);case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":return u0(e,t,n);case"TSMethodSignature":return L0(e,t,n);case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),W(t)];case"TSEnumDeclaration":return Wo(e,n);case"TSEnumBody":return St(e,t,n);case"TSEnumMember":return Xo(e,t,n);case"TSImportEqualsDeclaration":return["import ",Io(u,!1),n("id")," = ",n("moduleReference"),W(t)];case"TSExternalModuleReference":return ln(e,t,n);case"TSModuleDeclaration":return O0(e,t,n);case"TSConditionalType":return Nr(e,t,n);case"TSInferType":return Uo(e,t,n);case"TSIntersectionType":return Vo(e,t,n);case"TSUnionType":return Ia(e,t,n,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return _o(e,t,n);case"TSTupleType":return vr(e,t,n);case"TSTypeReference":return[n("typeName"),Mt(e,t,n,"typeArguments")];case"TSTypeAnnotation":return Ma(e,t,n);case"TSEmptyBodyFunctionExpression":return hr(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return gu(e,n,"?");case"TSJSDocNonNullableType":return gu(e,n,"!");default:throw new xt(u,"TypeScript")}}}function R0(e,t,n,r){for(let u of[Zc,I0,f0,q0,Gy]){let a=u(e,t,n,r);if(a!==void 0)return a}}var X0=B(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function Cu(e,t,n,r){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:u}=e,a=Br(e)?m0(e,t):R0(e,t,n,r);if(!a)return"";if(X0(u))return a;a=W0(e,t,a);let o=u.type!=="ClassExpression"&&J(u.decorators)?no(e,t,n):"",i=ce(e,t);return!o&&!i?a:na(a,s=>[i?"(":"",o?c([o,s]):s,i?")":""])}function W0(e,t,n){let{node:r}=e;return(x(r,S.Leading)||x(r,S.Trailing))&&Vu(e)?[E([m,ne(e,n,t)]),m]:n}var ei={features:{experimental_avoidAstMutation:!0,experimental_locForRangeFormat:{locStart:P,locEnd:cn}},massageAstNode:Ha,canAttachComment:Ji,handleComments:Ns,isGap:js,willPrintOwnComments:Wl,embed:gc,insertPragma:Rc,printComment:_c,printPrettierIgnored:Cu,print:Cu,getVisitorKeys:Hu,isBlockComment:Se,hasPrettierIgnore:Br},_0=[{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}],ti={};Un(ti,{estree:()=>ei,"estree-json":()=>G0});var $0=Ku({JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]});function $n(e){return e.extra.raw}var U0=new Set(["start","end","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function ni(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=$n(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}}}}ni.ignoredProperties=U0;function V0(e,t,n){let{node:r}=e;switch(r.type){case"JsonRoot":return[n("node"),F];case"ArrayExpression":{if(r.elements.length===0)return"[]";let u=e.map(()=>e.node===null?"null":n(),"elements");return["[",E([F,M([",",F],u)]),F,"]"]}case"ObjectExpression":return r.properties.length===0?"{}":["{",E([F,M([",",F],e.map(n,"properties"))]),F,"}"];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 rt($n(r),t);case"NumericLiteral":{let u=$n(r);return hu(e)&&String(Number(u))===u?`"${u}"`:u}case"Identifier":return hu(e)?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new xt(r,"JSON")}}function hu(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var G0={massageAstNode:ni,print:V0,getVisitorKeys:$0},kt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},We="JavaScript",ri={arrowParens:{category:We,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:kt.bracketSameLine,objectWrap:kt.objectWrap,bracketSpacing:kt.bracketSpacing,jsxBracketSameLine:{category:We,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:We,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:We,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:We,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:kt.singleQuote,jsxSingleQuote:{category:We,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:We,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:We,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:kt.singleAttributePerLine},ui={...Tu,...ti},ai=[...li,..._0];exports.default=xu;exports.languages=ai;exports.options=ri;exports.printers=ui;