@govbr-ds/playground 0.0.0-stage → 5.2.1

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