cloudcmd 19.20.8 → 19.21.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 (112) hide show
  1. package/ChangeLog +13 -0
  2. package/HELP.md +3 -1
  3. package/README.md +1 -1
  4. package/dist/cloudcmd.common.css +1 -1
  5. package/dist/cloudcmd.common.css.map +1 -1
  6. package/dist/cloudcmd.common.js +19 -13729
  7. package/dist/cloudcmd.common.js.map +1 -1
  8. package/dist/cloudcmd.js +1 -165
  9. package/dist/cloudcmd.js.map +1 -1
  10. package/dist/columns/name-size-date-time.js +0 -7
  11. package/dist/columns/name-size-date.js +0 -7
  12. package/dist/columns/name-size.js +0 -7
  13. package/dist/config.js +0 -7
  14. package/dist/help.js +0 -7
  15. package/dist/index.html +1 -8
  16. package/dist/modules/cloud.js +1 -165
  17. package/dist/modules/cloud.js.map +1 -1
  18. package/dist/modules/command-line.js +1 -165
  19. package/dist/modules/command-line.js.map +1 -1
  20. package/dist/modules/config.js +1 -165
  21. package/dist/modules/config.js.map +1 -1
  22. package/dist/modules/contact.js +1 -165
  23. package/dist/modules/contact.js.map +1 -1
  24. package/dist/modules/edit-file-vim.js +1 -165
  25. package/dist/modules/edit-file-vim.js.map +1 -1
  26. package/dist/modules/edit-file.js +1 -165
  27. package/dist/modules/edit-file.js.map +1 -1
  28. package/dist/modules/edit-names-vim.js +1 -165
  29. package/dist/modules/edit-names-vim.js.map +1 -1
  30. package/dist/modules/edit-names.js +1 -165
  31. package/dist/modules/edit-names.js.map +1 -1
  32. package/dist/modules/edit.js +1 -165
  33. package/dist/modules/edit.js.map +1 -1
  34. package/dist/modules/help.js +1 -165
  35. package/dist/modules/help.js.map +1 -1
  36. package/dist/modules/konsole.js +1 -165
  37. package/dist/modules/konsole.js.map +1 -1
  38. package/dist/modules/markdown.js +1 -165
  39. package/dist/modules/markdown.js.map +1 -1
  40. package/dist/modules/menu.js +117 -162
  41. package/dist/modules/menu.js.map +1 -1
  42. package/dist/modules/operation.js +1 -165
  43. package/dist/modules/operation.js.map +1 -1
  44. package/dist/modules/polyfill.js +1 -165
  45. package/dist/modules/polyfill.js.map +1 -1
  46. package/dist/modules/terminal-run.js +1 -165
  47. package/dist/modules/terminal-run.js.map +1 -1
  48. package/dist/modules/terminal.js +1 -165
  49. package/dist/modules/terminal.js.map +1 -1
  50. package/dist/modules/upload.js +1 -165
  51. package/dist/modules/upload.js.map +1 -1
  52. package/dist/modules/user-menu.js +1 -165
  53. package/dist/modules/user-menu.js.map +1 -1
  54. package/dist/modules/view.js +1 -165
  55. package/dist/modules/view.js.map +1 -1
  56. package/dist/nojs.js +0 -7
  57. package/dist/sw.js +1 -354
  58. package/dist/sw.js.map +1 -1
  59. package/dist/terminal.js +0 -7
  60. package/dist/themes/dark.js +0 -7
  61. package/dist/themes/light.js +0 -7
  62. package/dist/user-menu.js +0 -7
  63. package/dist/view.js +0 -7
  64. package/dist-dev/cloudcmd.common.css +86 -86
  65. package/dist-dev/cloudcmd.common.js +27 -63
  66. package/dist-dev/cloudcmd.js +0 -7
  67. package/dist-dev/columns/name-size-date-time.css +1 -1
  68. package/dist-dev/columns/name-size-date.css +1 -1
  69. package/dist-dev/columns/name-size.css +1 -1
  70. package/dist-dev/config.css +1 -1
  71. package/dist-dev/help.css +1 -1
  72. package/dist-dev/index.html +0 -10
  73. package/dist-dev/modules/cloud.js +0 -7
  74. package/dist-dev/modules/command-line.js +0 -7
  75. package/dist-dev/modules/config.js +0 -7
  76. package/dist-dev/modules/contact.js +0 -7
  77. package/dist-dev/modules/edit-file-vim.js +0 -7
  78. package/dist-dev/modules/edit-file.js +0 -7
  79. package/dist-dev/modules/edit-names-vim.js +0 -7
  80. package/dist-dev/modules/edit-names.js +0 -7
  81. package/dist-dev/modules/edit.js +0 -7
  82. package/dist-dev/modules/help.js +0 -7
  83. package/dist-dev/modules/konsole.js +0 -7
  84. package/dist-dev/modules/markdown.js +0 -7
  85. package/dist-dev/modules/menu.js +7817 -8
  86. package/dist-dev/modules/operation.js +0 -7
  87. package/dist-dev/modules/polyfill.js +0 -7
  88. package/dist-dev/modules/terminal-run.js +0 -7
  89. package/dist-dev/modules/terminal.js +0 -7
  90. package/dist-dev/modules/upload.js +0 -7
  91. package/dist-dev/modules/user-menu.js +0 -7
  92. package/dist-dev/modules/view.js +0 -7
  93. package/dist-dev/nojs.css +1 -1
  94. package/dist-dev/sw.js +2 -2
  95. package/dist-dev/terminal.css +1 -1
  96. package/dist-dev/themes/dark.css +1 -1
  97. package/dist-dev/themes/light.css +1 -1
  98. package/dist-dev/user-menu.css +1 -1
  99. package/dist-dev/view.css +1 -1
  100. package/package.json +4 -3
  101. package/server/cloudcmd.js +12 -0
  102. package/dist/columns/name-size-date-time.js.map +0 -1
  103. package/dist/columns/name-size-date.js.map +0 -1
  104. package/dist/columns/name-size.js.map +0 -1
  105. package/dist/config.js.map +0 -1
  106. package/dist/help.js.map +0 -1
  107. package/dist/nojs.js.map +0 -1
  108. package/dist/terminal.js.map +0 -1
  109. package/dist/themes/dark.js.map +0 -1
  110. package/dist/themes/light.js.map +0 -1
  111. package/dist/user-menu.js.map +0 -1
  112. package/dist/view.js.map +0 -1
@@ -1,166 +1,121 @@
1
- (() => {
2
- "use strict";
3
- var __webpack_modules__ = ({});
4
- // The module cache
5
- var __webpack_module_cache__ = {};
1
+ (()=>{var e,t,r,n,i,s,a={407(e,t,r){"use strict";let n=r(4299),i=n((e,t,r)=>e.setAttribute(r,t[r])),s=n((e,t,r)=>e[r]=t[r]),a=n((e,t)=>!e(t)),o=e=>e!=e.toLowerCase();function l(e){if(e)return document.querySelector(`[data-name="${e}"]`)}e.exports=(e,t={})=>{let{dataName:r,notAppend:n,parent:u=document.body,uniq:c=!0,...p}=t,h=l(r);if(c&&h)return h;let d=document.createElement(e);return r&&(d.dataset.name=r),Object.keys(p).filter(o).map(s(d,t)),Object.keys(p).filter(a(o)).map(i(d,t)),n||u.appendChild(d),d},e.exports.isElementPresent=l},8253(e){function t(e){return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=8253,e.exports=t},9214(e,t,r){"use strict";let n=r(7591),i=/^[\da-fA-F]+$/,s=/^\d+$/,a=new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let r=e.tokTypes,n=e.TokContext,i=e.TokenType,s=new n("<tag",!1),o=new n("</tag",!1),l=new n("<tag>...</tag>",!0,!0),u={jsxName:new i("jsxName"),jsxText:new i("jsxText",{beforeExpr:!0}),jsxTagStart:new i("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new i("jsxTagEnd")};u.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(s),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===s&&e===r.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:{tc_oTag:s,tc_cTag:o,tc_expr:l},tokTypes:u},a.set(e,t)}return t}function l(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?l(e.object)+"."+l(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){var a,u;let c,p,h,d,f,m,y,g,b,x,S;return a={allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},u=t,p=o(c=u.acorn||r(8630)),h=c.tokTypes,d=p.tokTypes,f=c.tokContexts,m=p.tokContexts.tc_oTag,y=p.tokContexts.tc_cTag,g=p.tokContexts.tc_expr,b=c.isNewLine,x=c.isIdentifierStart,S=c.isIdentifierChar,class extends u{static get acornJsx(){return p}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let r=this.input.charCodeAt(this.pos);switch(r){case 60:case 123:if(this.pos===this.start){if(60===r&&this.exprAllowed)return++this.pos,this.finishToken(d.jsxTagStart);return this.getTokenFromCode(r)}return e+=this.input.slice(t,this.pos),this.finishToken(d.jsxText,e);case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===r?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:b(r)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,r=this.input.charCodeAt(this.pos);return++this.pos,13===r&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",r=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.pos),t+=this.jsx_readEntity(),r=this.pos):b(n)?(t+=this.input.slice(r,this.pos),t+=this.jsx_readNewLine(!1),r=this.pos):++this.pos}return t+=this.input.slice(r,this.pos++),this.finishToken(h.string,t)}jsx_readEntity(){let e="",t=0,r,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(";"===(a=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),i.test(e)&&(r=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),s.test(e)&&(r=String.fromCharCode(parseInt(e,10)))):r=n[e];break}e+=a}return r||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(S(e)||45===e)return this.finishToken(d.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===d.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let e=this.start,t=this.startLoc,r=this.jsx_parseIdentifier();if(!a.allowNamespaces||!this.eat(h.colon))return r;var n=this.startNodeAt(e,t);return n.namespace=r,n.name=this.jsx_parseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===d.jsxTagEnd)return"";let e=this.start,t=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type!==h.dot||"JSXNamespacedName"!==r.type||a.allowNamespacedObjects||this.unexpected();this.eat(h.dot);){let n=this.startNodeAt(e,t);n.object=r,n.property=this.jsx_parseIdentifier(),r=this.finishNode(n,"JSXMemberExpression")}return r}jsx_parseAttributeValue(){switch(this.type){case h.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case d.jsxTagStart:case h.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===h.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(h.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(h.braceL)?(this.expect(h.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(h.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(h.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let r=this.startNodeAt(e,t);r.attributes=[];let n=this.jsx_parseElementName();for(n&&(r.name=n);this.type!==h.slash&&this.type!==d.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(h.slash),this.expect(d.jsxTagEnd),this.finishNode(r,n?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let r=this.startNodeAt(e,t),n=this.jsx_parseElementName();return n&&(r.name=n),this.expect(d.jsxTagEnd),this.finishNode(r,n?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let r=this.startNodeAt(e,t),n=[],i=this.jsx_parseOpeningElementAt(e,t),s=null;if(!i.selfClosing){e:for(;;)switch(this.type){case d.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(h.slash)){s=this.jsx_parseClosingElementAt(e,t);break e}n.push(this.jsx_parseElementAt(e,t));break;case d.jsxText:n.push(this.parseExprAtom());break;case h.braceL:n.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}l(s.name)!==l(i.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+l(i.name)+">")}let a=i.name?"Element":"Fragment";return r["opening"+a]=i,r["closing"+a]=s,r.children=n,this.type===h.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSX"+a)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===d.jsxText?this.jsx_parseText():this.type===d.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===g)return this.jsx_readToken();if(t===m||t===y){if(x(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(d.jsxTagEnd);if((34===e||39===e)&&t==m)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(d.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==h.braceL){var t=this.curContext();t==m?this.context.push(f.b_expr):t==g?this.context.push(f.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==h.slash||e!==d.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(y),this.exprAllowed=!1}}}}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return o(r(8630)).tokTypes},configurable:!0,enumerable:!0})},7591(e){e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},1078(e,t,r){var n=r(8630),i=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,t}(n);function s(e,t){for(var r,n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,"symbol"==typeof(r=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key))?r:String(r),i)}}function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t)}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e){if(e){if("string"==typeof e)return u(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){return void 0===t&&(t={}),new n.TokenType("name",t)}var h=new WeakMap,d=RegExp("(?=("+RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y").source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),f=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function m(e,t){var r=e.key;return!e.computed&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}var y="'get' and 'set' accessors cannot declare 'this' parameters.",g=function(e){return"Duplicate modifier: '"+e.modifier+"'."},b=function(e){var t=e.modifiers;return"'"+t[0]+"' modifier cannot be used with '"+t[1]+"' modifier."},x=function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},S=function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},v=function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},T=function(e){var t=e.orderedModifiers;return"'"+t[0]+"' modifier must precede '"+t[1]+"' modifier."},E={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},k=/^[\da-fA-F]+$/,w=/^\d+$/;function A(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?A(e.object)+"."+A(e.property):void 0:e}var P=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function C(e){if(!e)throw Error("Assert fail")}function I(e,t){return 2|4*!!e|8*!!t}function _(e){return"private"===e||"public"===e||"protected"===e}t.A=function(e){var t=e||{},r=t.dts,l=void 0!==r&&r,u=t.allowSatisfies,N=void 0!==u&&u;return function(t){var r=t.acorn||i,u=function(e){var t=h.get(e.Parser.acorn||e);if(!t){var r={assert:p(0,{startsExpr:!0}),asserts:p(0,{startsExpr:!0}),global:p(0,{startsExpr:!0}),keyof:p(0,{startsExpr:!0}),readonly:p(0,{startsExpr:!0}),unique:p(0,{startsExpr:!0}),abstract:p(0,{startsExpr:!0}),declare:p(0,{startsExpr:!0}),enum:p(0,{startsExpr:!0}),module:p(0,{startsExpr:!0}),namespace:p(0,{startsExpr:!0}),interface:p(0,{startsExpr:!0}),type:p(0,{startsExpr:!0})},i={at:new n.TokenType("@"),jsxName:new n.TokenType("jsxName"),jsxText:new n.TokenType("jsxText",{beforeExpr:!0}),jsxTagStart:new n.TokenType("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new n.TokenType("jsxTagEnd")},s={tc_oTag:new n.TokContext("<tag",!1,!1),tc_cTag:new n.TokContext("</tag",!1,!1),tc_expr:new n.TokContext("<tag>...</tag>",!0,!0)},o=RegExp("^(?:"+Object.keys(r).join("|")+")$");i.jsxTagStart.updateContext=function(){this.context.push(s.tc_expr),this.context.push(s.tc_oTag),this.exprAllowed=!1},i.jsxTagEnd.updateContext=function(e){var t=this.context.pop();t===s.tc_oTag&&e===n.tokTypes.slash||t===s.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===s.tc_expr):this.exprAllowed=!0},t={tokTypes:a({},r,i),tokContexts:a({},s),keywordsRegExp:o,tokenIsLiteralPropertyName:function(e){return[n.tokTypes.name,n.tokTypes.string,n.tokTypes.num].concat(Object.values(n.keywordTypes),Object.values(r)).includes(e)},tokenIsKeywordOrIdentifier:function(e){return[n.tokTypes.name].concat(Object.values(n.keywordTypes),Object.values(r)).includes(e)},tokenIsIdentifier:function(e){return[].concat(Object.values(r),[n.tokTypes.name]).includes(e)},tokenIsTSDeclarationStart:function(e){return[r.abstract,r.declare,r.enum,r.module,r.namespace,r.interface,r.type].includes(e)},tokenIsTSTypeOperator:function(e){return[r.keyof,r.readonly,r.unique].includes(e)},tokenIsTemplate:function(e){return e===n.tokTypes.invalidTemplate}}}return t}(r),L=r.tokTypes,O=r.keywordTypes,D=r.isIdentifierStart,M=r.lineBreak,F=r.isNewLine,j=r.tokContexts,B=r.isIdentifierChar,R=u.tokTypes,$=u.tokContexts,U=u.keywordsRegExp,V=u.tokenIsLiteralPropertyName,q=u.tokenIsTemplate,K=u.tokenIsTSDeclarationStart,J=u.tokenIsIdentifier,z=u.tokenIsKeywordOrIdentifier,W=u.tokenIsTSTypeOperator;return t=function(e,t,r){var n=r.tokTypes,i=t.tokTypes;function s(){return e.apply(this,arguments)||this}o(s,e);var a=s.prototype;return a.takeDecorators=function(e){var t=this.decoratorStack[this.decoratorStack.length-1];t.length&&(e.decorators=t,this.resetStartLocationFromNode(e,t[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},a.parseDecorators=function(e){for(var t=this.decoratorStack[this.decoratorStack.length-1];this.match(i.at);){var r=this.parseDecorator();t.push(r)}this.match(n._export)?e||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},a.parseDecorator=function(){var e=this.startNode();this.next(),this.decoratorStack.push([]);var t,r=this.start,i=this.startLoc;if(this.match(n.parenL)){var s=this.start,a=this.startLoc;if(this.next(),t=this.parseExpression(),this.expect(n.parenR),this.options.preserveParens){var o=this.startNodeAt(s,a);o.expression=t,t=this.finishNode(o,"ParenthesizedExpression")}}else for(t=this.parseIdent(!1);this.eat(n.dot);){var l=this.startNodeAt(r,i);l.object=t,l.property=this.parseIdent(!0),l.computed=!1,t=this.finishNode(l,"MemberExpression")}return e.expression=this.parseMaybeDecoratorArguments(t),this.decoratorStack.pop(),this.finishNode(e,"Decorator")},a.parseMaybeDecoratorArguments=function(e){if(this.eat(n.parenL)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseExprList(n.parenR,!1),this.finishNode(t,"CallExpression")}return e},s}(t,u,r),function(e){function t(t,r,n){var i;return(i=e.call(this,t,r,n)||this).preValue=null,i.preToken=null,i.isLookahead=!1,i.isAmbientContext=!1,i.inAbstractClass=!1,i.inType=!1,i.inDisallowConditionalTypesContext=!1,i.maybeInArrowParameters=!1,i.shouldParseArrowReturnType=void 0,i.shouldParseAsyncArrowReturnType=void 0,i.decoratorStack=[[]],i.importsStack=[[]],i.importOrExportOuterKind=void 0,i.tsParseConstModifier=i.tsParseModifiers.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(i),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:v}),i}o(t,e);var n,i,a=t.prototype;return a.getTokenFromCodeInType=function(t){return 62===t||60===t?this.finishOp(L.relational,1):e.prototype.getTokenFromCode.call(this,t)},a.readToken=function(t){if(!this.inType){var r=this.curContext();if(r===$.tc_expr)return this.jsx_readToken();if(r===$.tc_oTag||r===$.tc_cTag){if(D(t))return this.jsx_readWord();if(62==t)return++this.pos,this.finishToken(R.jsxTagEnd);if((34===t||39===t)&&r==$.tc_oTag)return this.jsx_readString(t)}if(60===t&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1))return++this.pos,this.finishToken(R.jsxTagStart)}return e.prototype.readToken.call(this,t)},a.getTokenFromCode=function(t){return this.inType?this.getTokenFromCodeInType(t):64===t?(++this.pos,this.finishToken(R.at)):e.prototype.getTokenFromCode.call(this,t)},a.isAbstractClass=function(){return this.ts_isContextual(R.abstract)&&this.lookahead().type===L._class},a.finishNode=function(t,r){return""!==t.type&&0!==t.end?t:e.prototype.finishNode.call(this,t,r)},a.tryParse=function(e,t){void 0===t&&(t=this.cloneCurLookaheadState());var r={node:null};try{return{node:e(function(e){throw void 0===e&&(e=null),r.node=e,r}),error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var n=this.getCurLookaheadState();if(this.setLookaheadState(t),e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:n};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:n};throw e}},a.setOptionalParametersError=function(e,t){var r;e.optionalParametersLoc=null!=(r=null==t?void 0:t.loc)?r:this.startLoc},a.reScan_lt_gt=function(){this.type===L.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},a.reScan_lt=function(){var e=this.type;return e===L.bitShift?(this.pos-=2,this.finishOp(L.relational,1),L.relational):e},a.resetEndLocation=function(e,t){void 0===t&&(t=this.lastTokEndLoc),e.end=t.column,e.loc.end=t,this.options.ranges&&(e.range[1]=t.column)},a.startNodeAtNode=function(t){return e.prototype.startNodeAt.call(this,t.start,t.loc.start)},a.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},a.tsHasSomeModifiers=function(e,t){return t.some(function(t){return _(t)?e.accessibility===t:!!e[t]})},a.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&123===this.lookaheadCharCode()},a.tsCheckForInvalidTypeCasts=function(e){var t=this;e.forEach(function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(e.typeAnnotation.start,"Did not expect a type annotation here.")})},a.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.lastTokEndLoc.column===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.potentialArrowAt},a.tsIsIdentifier=function(){return J(this.type)},a.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(L.colon)?this.tsParseTypeOrTypePredicateAnnotation(L.colon):void 0},a.tsTryParseGenericAsyncArrowFunction=function(t,r,n){var i=this;if(this.tsMatchLeftRelational()){var s=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var a=this.tsTryParseAndCatch(function(){var n=i.startNodeAt(t,r);return n.typeParameters=i.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(i,n),n.returnType=i.tsTryParseTypeOrTypePredicateAnnotation(),i.expect(L.arrow),n});if(this.maybeInArrowParameters=s,a)return e.prototype.parseArrowExpression.call(this,a,null,!0,n)}},a.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===L.relational)return this.tsParseTypeArguments()},a.tsInNoContext=function(e){var t=this.context;this.context=[t[0]];try{return e()}finally{this.context=t}},a.tsTryParseTypeAnnotation=function(){return this.match(L.colon)?this.tsParseTypeAnnotation():void 0},a.isUnparsedContextual=function(e,t){var r=e+t.length;if(this.input.slice(e,r)===t){var n=this.input.charCodeAt(r);return!(B(n)||55296==(64512&n))}return!1},a.isAbstractConstructorSignature=function(){return this.ts_isContextual(R.abstract)&&this.lookahead().type===L._new},a.nextTokenStartSince=function(e){return P.lastIndex=e,P.test(this.input)?P.lastIndex:e},a.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},a.compareLookaheadState=function(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0},a.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},a.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},a.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},a.setLookaheadState=function(e){this.pos=e.pos,this.value=e.value,this.endLoc=e.endLoc,this.lastTokEnd=e.lastTokEnd,this.lastTokStart=e.lastTokStart,this.lastTokStartLoc=e.lastTokStartLoc,this.type=e.type,this.start=e.start,this.end=e.end,this.context=e.context,this.startLoc=e.startLoc,this.lastTokEndLoc=e.lastTokEndLoc,this.curLine=e.curLine,this.lineStart=e.lineStart,this.curPosition=e.curPosition,this.containsEsc=e.containsEsc},a.tsLookAhead=function(e){var t=this.getCurLookaheadState(),r=e();return this.setLookaheadState(t),r},a.lookahead=function(e){var t=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,void 0!==e)for(var r=0;r<e;r++)this.nextToken();else this.nextToken();this.isLookahead=!1;var n=this.getCurLookaheadState();return this.setLookaheadState(t),n},a.readWord=function(){var e=this.readWord1(),t=L.name;return this.keywords.test(e)?t=O[e]:new RegExp(U).test(e)&&(t=R[e]),this.finishToken(t,e)},a.skipBlockComment=function(){this.isLookahead||(r=this.options.onComment&&this.curPosition());var e=this.pos,t=this.input.indexOf("*/",this.pos+=2);if(-1===t&&this.raise(this.pos-2,"Unterminated comment"),this.pos=t+2,this.options.locations)for(var r,n,i=e;(n=function(e,t,r){void 0===r&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(F(i))return n<r-1&&13===i&&10===e.charCodeAt(n+1)?n+2:n+1}return -1}(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,t),e,this.pos,r,this.curPosition())},a.skipLineComment=function(e){var t,r=this.pos;this.isLookahead||(t=this.options.onComment&&this.curPosition());for(var n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!F(n);)n=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(r+e,this.pos),r,this.pos,t,this.curPosition())},a.finishToken=function(e,t){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.isLookahead||this.updateContext(r)},a.resetStartLocation=function(e,t,r){e.start=t,e.loc.start=r,this.options.ranges&&(e.range[0]=t)},a.isLineTerminator=function(){return this.eat(L.semi)||e.prototype.canInsertSemicolon.call(this)},a.hasFollowingLineBreak=function(){return d.lastIndex=this.end,d.test(this.input)},a.addExtra=function(e,t,r,n){if(void 0===n&&(n=!0),e){var i=e.extra=e.extra||{};n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}},a.isLiteralPropertyName=function(){return V(this.type)},a.hasPrecedingLineBreak=function(){return M.test(this.input.slice(this.lastTokEndLoc.index,this.start))},a.createIdentifier=function(e,t){return e.name=t,this.finishNode(e,"Identifier")},a.resetStartLocationFromNode=function(e,t){this.resetStartLocation(e,t.start,t.loc.start)},a.isThisParam=function(e){return"Identifier"===e.type&&"this"===e.name},a.isLookaheadContextual=function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)},a.ts_type_isContextual=function(e,t){return e===t&&!this.containsEsc},a.ts_isContextual=function(e){return this.type===e&&!this.containsEsc},a.ts_isContextualWithState=function(e,t){return e.type===t&&!e.containsEsc},a.isContextualWithState=function(e,t){return t.type===L.name&&t.value===e&&!t.containsEsc},a.tsIsStartOfMappedType=function(){return this.next(),this.eat(L.plusMin)?this.ts_isContextual(R.readonly):(this.ts_isContextual(R.readonly)&&this.next(),!!this.match(L.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(L._in))))},a.tsInDisallowConditionalTypesContext=function(e){var t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.inDisallowConditionalTypesContext=t}},a.tsTryParseType=function(){return this.tsEatThenParseType(L.colon)},a.match=function(e){return this.type===e},a.matchJsx=function(e){return this.type===u.tokTypes[e]},a.ts_eatWithState=function(e,t,r){if(e===r.type){for(var n=0;n<t;n++)this.next();return!0}return!1},a.ts_eatContextualWithState=function(e,t,r){if(U.test(e)){if(this.ts_isContextualWithState(r,R[e])){for(var n=0;n<t;n++)this.next();return!0}return!1}if(!this.isContextualWithState(e,r))return!1;for(var i=0;i<t;i++)this.next();return!0},a.canHaveLeadingDecorator=function(){return this.match(L._class)},a.eatContextual=function(t){return U.test(t)?!!this.ts_isContextual(R[t])&&(this.next(),!0):e.prototype.eatContextual.call(this,t)},a.tsIsExternalModuleReference=function(){return this.isContextual("require")&&40===this.lookaheadCharCode()},a.tsParseExternalModuleReference=function(){var e=this.startNode();return this.expectContextual("require"),this.expect(L.parenL),this.match(L.string)||this.unexpected(),e.expression=this.parseExprAtom(),this.expect(L.parenR),this.finishNode(e,"TSExternalModuleReference")},a.tsParseEntityName=function(e){void 0===e&&(e=!0);for(var t=this.parseIdent(e);this.eat(L.dot);){var r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdent(e),t=this.finishNode(r,"TSQualifiedName")}return t},a.tsParseEnumMember=function(){var e=this.startNode();return e.id=this.match(L.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(L.eq)&&(e.initializer=this.parseMaybeAssign()),this.finishNode(e,"TSEnumMember")},a.tsParseEnumDeclaration=function(e,t){return void 0===t&&(t={}),t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual("enum"),e.id=this.parseIdent(),this.checkLValSimple(e.id),this.expect(L.braceL),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(L.braceR),this.finishNode(e,"TSEnumDeclaration")},a.tsParseModuleBlock=function(){var t=this.startNode();for(e.prototype.enterScope.call(this,512),this.expect(L.braceL),t.body=[];this.type!==L.braceR;){var r=this.parseStatement(null,!0);t.body.push(r)}return this.next(),e.prototype.exitScope.call(this),this.finishNode(t,"TSModuleBlock")},a.tsParseAmbientExternalModuleDeclaration=function(t){return this.ts_isContextual(R.global)?(t.global=!0,t.id=this.parseIdent()):this.match(L.string)?t.id=this.parseLiteral(this.value):this.unexpected(),this.match(L.braceL)?(e.prototype.enterScope.call(this,1024),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this)):e.prototype.semicolon.call(this),this.finishNode(t,"TSModuleDeclaration")},a.tsTryParseDeclare=function(e){var t=this;if(!this.isLineTerminator()){var r,n=this.type;return this.isContextual("let")&&(n=L._var,r="let"),this.tsInAmbientContext(function(){if(n===L._function)return e.declare=!0,t.parseFunctionStatement(e,!1,!0);if(n===L._class)return e.declare=!0,t.parseClass(e,!0);if(n===R.enum)return t.tsParseEnumDeclaration(e,{declare:!0});if(n===R.global)return t.tsParseAmbientExternalModuleDeclaration(e);if(n===L._const||n===L._var)return t.match(L._const)&&t.isLookaheadContextual("enum")?(t.expect(L._const),t.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,t.parseVarStatement(e,r||t.value,!0));if(n===R.interface){var i=t.tsParseInterfaceDeclaration(e,{declare:!0});if(i)return i}return J(n)?t.tsParseDeclaration(e,t.value,!0):void 0})}},a.tsIsListTerminator=function(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(L.braceR);case"HeritageClauseElement":return this.match(L.braceL);case"TupleElementTypes":return this.match(L.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},a.tsParseDelimitedListWorker=function(e,t,r,n){for(var i=[],s=-1;!this.tsIsListTerminator(e);){s=-1;var a=t();if(null==a)return;if(i.push(a),!this.eat(L.comma)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(L.comma))}s=this.lastTokStart}return n&&(n.value=s),i},a.tsParseDelimitedList=function(e,t,r){var n=this.tsParseDelimitedListWorker(e,t,!0,r);if(null==n)throw Error("Unexpected "+n+" value.");return n},a.tsParseBracketedList=function(e,t,r,n,i){n||this.expect(r?L.bracketL:L.relational);var s=this.tsParseDelimitedList(e,t,i);return this.expect(r?L.bracketR:L.relational),s},a.tsParseTypeParameterName=function(){return this.parseIdent().name},a.tsEatThenParseType=function(e){return this.match(e)?this.tsNextThenParseType():void 0},a.tsExpectThenParseType=function(e){var t=this;return this.tsDoThenParseType(function(){return t.expect(e)})},a.tsNextThenParseType=function(){var e=this;return this.tsDoThenParseType(function(){return e.next()})},a.tsDoThenParseType=function(e){var t=this;return this.tsInType(function(){return e(),t.tsParseType()})},a.tsSkipParameterStart=function(){if(J(this.type)||this.match(L._this))return this.next(),!0;if(this.match(L.braceL))try{return this.parseObj(!0),!0}catch(e){return!1}if(this.match(L.bracketL)){this.next();try{return this.parseBindingList(L.bracketR,!0,!0),!0}catch(e){}}return!1},a.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(L.parenR)||this.match(L.ellipsis)||this.tsSkipParameterStart()&&(this.match(L.colon)||this.match(L.comma)||this.match(L.question)||this.match(L.eq)||this.match(L.parenR)&&(this.next(),this.match(L.arrow))))||!1},a.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(L.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},a.tsInAllowConditionalTypesContext=function(e){var t=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.inDisallowConditionalTypesContext=t}},a.tsParseBindingListForSignature=function(){var t=this;return e.prototype.parseBindingList.call(this,L.parenR,!0,!0).map(function(e){return"Identifier"!==e.type&&"RestElement"!==e.type&&"ObjectPattern"!==e.type&&"ArrayPattern"!==e.type&&t.raise(e.start,"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type.type+"."),e})},a.tsParseTypePredicateAsserts=function(){if(this.type!==R.asserts)return!1;var e=this.containsEsc;return this.next(),!(!J(this.type)&&!this.match(L._this)||(e&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},a.tsParseThisTypeNode=function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")},a.tsParseTypeAnnotation=function(e,t){var r=this;return void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),this.tsInType(function(){e&&r.expect(L.colon),t.typeAnnotation=r.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")},a.tsParseThisTypePredicate=function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")},a.tsParseThisTypeOrThisTypePredicate=function(){var e=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e},a.tsParseTypePredicatePrefix=function(){var e=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),e},a.tsParseTypeOrTypePredicateAnnotation=function(e){var t=this;return this.tsInType(function(){var r=t.startNode();t.expect(e);var n=t.startNode(),i=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(i&&t.match(L._this)){var s=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===s.type?(n.parameterName=s,n.asserts=!0,n.typeAnnotation=null,s=t.finishNode(n,"TSTypePredicate")):(t.resetStartLocationFromNode(s,n),s.asserts=!0),r.typeAnnotation=s,t.finishNode(r,"TSTypeAnnotation")}var a=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!a)return i?(n.parameterName=t.parseIdent(),n.asserts=i,n.typeAnnotation=null,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,r);var o=t.tsParseTypeAnnotation(!1);return n.parameterName=a,n.typeAnnotation=o,n.asserts=i,r.typeAnnotation=t.finishNode(n,"TSTypePredicate"),t.finishNode(r,"TSTypeAnnotation")})},a.tsFillSignature=function(e,t){var r=e===L.arrow;t.typeParameters=this.tsTryParseTypeParameters(),this.expect(L.parenL),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))},a.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==L._const)return null;this.next();var e=this.tsParseTypeReference();return e.typeParameters&&this.raise(e.typeName.start,"Cannot find name 'const'."),e},a.tsParseFunctionOrConstructorType=function(e,t){var r=this,n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return r.tsFillSignature(L.arrow,n)}),this.finishNode(n,e)},a.tsParseUnionOrIntersectionType=function(e,t,r){var n=this.startNode(),i=this.eat(r),s=[];do s.push(t());while(this.eat(r))return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]},a.tsCheckTypeAnnotationForReadOnly=function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(e.start,"'readonly' type modifier is only permitted on array and tuple literal types.")}},a.tsParseTypeOperator=function(){var e=this.startNode(),t=this.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")},a.tsParseConstraintForInferType=function(){var e=this;if(this.eat(L._extends)){var t=this.tsInDisallowConditionalTypesContext(function(){return e.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(L.question))return t}},a.tsParseInferType=function(){var e=this,t=this.startNode();this.expectContextual("infer");var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(function(){return e.tsParseConstraintForInferType()}),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")},a.tsParseLiteralTypeNode=function(){var e=this,t=this.startNode();return t.literal=function(){switch(e.type){case L.num:case L.string:case L._true:case L._false:return e.parseExprAtom();default:e.unexpected()}}(),this.finishNode(t,"TSLiteralType")},a.tsParseImportType=function(){var e=this.startNode();return this.expect(L._import),this.expect(L.parenL),this.match(L.string)||this.raise(this.start,"Argument in a type import must be a string literal."),e.argument=this.parseExprAtom(),this.expect(L.parenR),this.eat(L.dot)&&(e.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")},a.tsParseTypeQuery=function(){var e=this.startNode();return this.expect(L._typeof),e.exprName=this.match(L._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")},a.tsParseMappedTypeParameter=function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(L._in),this.finishNode(e,"TSTypeParameter")},a.tsParseMappedType=function(){var e=this.startNode();return this.expect(L.braceL),this.match(L.plusMin)?(e.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(e.readonly=!0),this.expect(L.bracketL),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(L.bracketR),this.match(L.plusMin)?(e.optional=this.value,this.next(),this.expect(L.question)):this.eat(L.question)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(L.braceR),this.finishNode(e,"TSMappedType")},a.tsParseTypeLiteral=function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")},a.tsParseTupleElementType=function(){var e=this.startLoc,t=this.start,r=this.eat(L.ellipsis),n=this.tsParseType(),i=this.eat(L.question);if(this.eat(L.colon)){var s=this.startNodeAtNode(n);s.optional=i,"TSTypeReference"!==n.type||n.typeParameters||"Identifier"!==n.typeName.type?(this.raise(n.start,"Tuple members must be labeled with a simple identifier."),s.label=n):s.label=n.typeName,s.elementType=this.tsParseType(),n=this.finishNode(s,"TSNamedTupleMember")}else if(i){var a=this.startNodeAtNode(n);a.typeAnnotation=n,n=this.finishNode(a,"TSOptionalType")}if(r){var o=this.startNodeAt(t,e);o.typeAnnotation=n,n=this.finishNode(o,"TSRestType")}return n},a.tsParseTupleType=function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var r=!1,n=null;return t.elementTypes.forEach(function(t){var i=t.type;!r||"TSRestType"===i||"TSOptionalType"===i||"TSNamedTupleMember"===i&&t.optional||e.raise(t.start,"A required element cannot follow an optional element."),r||(r="TSNamedTupleMember"===i&&t.optional||"TSOptionalType"===i);var s=i;"TSRestType"===i&&(s=(t=t.typeAnnotation).type);var a="TSNamedTupleMember"===s;null!=n||(n=a),n!==a&&e.raise(t.start,"Tuple members must all have names or all not have names.")}),this.finishNode(t,"TSTupleType")},a.tsParseTemplateLiteralType=function(){var e=this.startNode();return e.literal=this.parseTemplate({isTagged:!1}),this.finishNode(e,"TSLiteralType")},a.tsParseTypeReference=function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")},a.tsMatchLeftRelational=function(){return this.match(L.relational)&&"<"===this.value},a.tsMatchRightRelational=function(){return this.match(L.relational)&&">"===this.value},a.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(L.parenL),e.typeAnnotation=this.tsParseType(),this.expect(L.parenR),this.finishNode(e,"TSParenthesizedType")},a.tsParseNonArrayType=function(){switch(this.type){case L.string:case L.num:case L._true:case L._false:return this.tsParseLiteralTypeNode();case L.plusMin:if("-"===this.value){var e=this.startNode();return this.lookahead().type!==L.num&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case L._this:return this.tsParseThisTypeOrThisTypePredicate();case L._typeof:return this.tsParseTypeQuery();case L._import:return this.tsParseImportType();case L.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case L.bracketL:return this.tsParseTupleType();case L.parenL:return this.tsParseParenthesizedType();case L.backQuote:case L.dollarBraceL:return this.tsParseTemplateLiteralType();default:var t=this.type;if(J(t)||t===L._void||t===L._null){var r=t===L._void?"TSVoidKeyword":t===L._null?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.value);if(void 0!==r&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}this.unexpected()},a.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(L.bracketL);)if(this.match(L.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(L.bracketR),e=this.finishNode(t,"TSArrayType")}else{var r=this.startNodeAtNode(e);r.objectType=e,r.indexType=this.tsParseType(),this.expect(L.bracketR),e=this.finishNode(r,"TSIndexedAccessType")}return e},a.tsParseTypeOperatorOrHigher=function(){var e=this;return W(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return e.tsParseArrayTypeOrHigher()})},a.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),L.bitwiseAND)},a.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),L.bitwiseOR)},a.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(L._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},a.tsParseType=function(){var e=this;C(this.inType);var t=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(L._extends))return t;var r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext(function(){return e.tsParseNonConditionalType()}),this.expect(L.question),r.trueType=this.tsInAllowConditionalTypesContext(function(){return e.tsParseType()}),this.expect(L.colon),r.falseType=this.tsInAllowConditionalTypesContext(function(){return e.tsParseType()}),this.finishNode(r,"TSConditionalType")},a.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!J(this.type)&&(this.next(),this.match(L.colon))},a.tsInType=function(e){var t=this.inType;this.inType=!0;try{return e()}finally{this.inType=t}},a.tsTryParseIndexSignature=function(e){if(this.match(L.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(L.bracketL);var t=this.parseIdent();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(L.bracketR),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},a.tsParseNoneModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:v})},a.tsParseTypeParameter=function(e){void 0===e&&(e=this.tsParseNoneModifiers.bind(this));var t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(L._extends),t.default=this.tsEatThenParseType(L.eq),this.finishNode(t,"TSTypeParameter")},a.tsParseTypeParameters=function(e){var t=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(this.start,"Type parameter list cannot be empty."),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")},a.tsTryParseTypeParameters=function(e){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(e)},a.tsTryParse=function(e){var t=this.getCurLookaheadState(),r=e();return void 0!==r&&!1!==r?r:void this.setLookaheadState(t)},a.tsTokenCanFollowModifier=function(){return(this.match(L.bracketL)||this.match(L.braceL)||this.match(L.star)||this.match(L.ellipsis)||this.match(L.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},a.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},a.tsParseModifier=function(e,t){if(J(this.type)||this.type===L._in){var r=this.value;if(-1!==e.indexOf(r)&&!this.containsEsc){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}},a.tsParseModifiersByMap=function(e){for(var t=e.modified,r=e.map,n=0,i=Object.keys(r);n<i.length;n++){var s=i[n];t[s]=r[s]}},a.tsParseModifiers=function(e){for(var t=this,r=e.modified,n=e.allowedModifiers,i=e.disallowedModifiers,s=e.stopOnStartOfClassStaticBlock,a=e.errorTemplate,o=void 0===a?x:a,l={},u=function(e,n,i,s){n===i&&r[s]&&t.raise(e.column,T({orderedModifiers:[i,s]}))},c=function(e,n,i,s){(r[i]&&n===s||r[s]&&n===i)&&t.raise(e.column,b({modifiers:[i,s]}))};;){var p=this.startLoc,h=this.tsParseModifier(n.concat(null!=i?i:[]),s);if(!h)break;_(h)?r.accessibility?this.raise(this.start,"Accessibility modifier already seen."):(u(p,h,h,"override"),u(p,h,h,"static"),u(p,h,h,"readonly"),u(p,h,h,"accessor"),l.accessibility=h,r.accessibility=h):"in"===h||"out"===h?r[h]?this.raise(this.start,g({modifier:h})):(u(p,h,"in","out"),l[h]=h,r[h]=!0):"accessor"===h?r[h]?this.raise(this.start,g({modifier:h})):(c(p,h,"accessor","readonly"),c(p,h,"accessor","static"),c(p,h,"accessor","override"),l[h]=h,r[h]=!0):Object.hasOwnProperty.call(r,h)?this.raise(this.start,g({modifier:h})):(u(p,h,"static","readonly"),u(p,h,"static","override"),u(p,h,"override","readonly"),u(p,h,"abstract","override"),c(p,h,"declare","override"),c(p,h,"static","abstract"),l[h]=h,r[h]=!0),null!=i&&i.includes(h)&&this.raise(this.start,o)}return l},a.tsParseInOutModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:S})},a.tsParseTypeArguments=function(){var e=this,t=this.startNode();return t.params=this.tsInType(function(){return e.tsInNoContext(function(){return e.expect(L.relational),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))})}),0===t.params.length&&this.raise(this.start,"Type argument list cannot be empty."),this.exprAllowed=!1,this.expect(L.relational),this.finishNode(t,"TSTypeParameterInstantiation")},a.tsParseHeritageClause=function(e){var t=this,r=this.start,n=this.tsParseDelimitedList("HeritageClauseElement",function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.tsMatchLeftRelational()&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")});return n.length||this.raise(r,"'"+({token:e}).token+"' list cannot be empty."),n},a.tsParseTypeMemberSemicolon=function(){this.eat(L.comma)||this.isLineTerminator()||this.expect(L.semi)},a.tsTryParseAndCatch=function(e){var t=this.tryParse(function(t){return e()||t()});if(!t.aborted&&t.node)return t.error&&this.setLookaheadState(t.failState),t.node},a.tsParseSignatureMember=function(e,t){return this.tsFillSignature(L.colon,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)},a.tsParsePropertyOrMethodSignature=function(e,t){if(this.eat(L.question)&&(e.optional=!0),this.match(L.parenL)||this.tsMatchLeftRelational()){t&&this.raise(e.start,"'readonly' modifier can only appear on a property declaration or index signature."),e.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,"An accessor cannot have type parameters."),this.tsFillSignature(L.colon,e),this.tsParseTypeMemberSemicolon();var r="parameters",n="typeAnnotation";if("get"===e.kind)e[r].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(e[r][0])&&this.raise(this.start,y));else if("set"===e.kind){if(1!==e[r].length)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var i=e[r][0];this.isThisParam(i)&&this.raise(this.start,y),"Identifier"===i.type&&i.optional&&this.raise(this.start,"A 'set' accessor cannot have an optional parameter."),"RestElement"===i.type&&this.raise(this.start,"A 'set' accessor cannot have rest parameter.")}e[n]&&this.raise(e[n].start,"A 'set' accessor cannot have a return type annotation.")}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}t&&(e.readonly=!0);var s=this.tsTryParseTypeAnnotation();return s&&(e.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")},a.tsParseTypeMember=function(){var e=this.startNode();if(this.match(L.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(L._new)){var t=this.startNode();return this.next(),this.match(L.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({modified:e,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(e)||(this.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))},a.tsParseList=function(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r},a.tsParseObjectTypeMembers=function(){this.expect(L.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(L.braceR),e},a.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),t.declare&&(e.declare=!0),J(this.type)?(e.id=this.parseIdent(),this.checkLValSimple(e.id,7)):(e.id=null,this.raise(this.start,"'interface' declarations must be followed by an identifier.")),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(L._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},a.tsParseAbstractDeclaration=function(e){if(this.match(L._class))return e.abstract=!0,this.parseClass(e,!0);if(this.ts_isContextual(R.interface)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.tsParseInterfaceDeclaration(e)}else this.unexpected(e.start)},a.tsIsDeclarationStart=function(){return K(this.type)},a.tsParseExpressionStatement=function(t,r){switch(r.name){case"declare":var n=this.tsTryParseDeclare(t);if(n)return n.declare=!0,n;break;case"global":if(this.match(L.braceL))return e.prototype.enterScope.call(this,1024),t.global=!0,t.id=r,t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this),this.finishNode(t,"TSModuleDeclaration");break;default:return this.tsParseDeclaration(t,r.name,!1)}},a.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},a.tsIsExportDefaultSpecifier=function(){var e=this.type,t=this.isAsyncFunction(),r=this.isLet();if(J(e)){if(t&&!this.containsEsc||r)return!1;if((e===R.type||e===R.interface)&&!this.containsEsc){var n=this.lookahead();if(J(n.type)&&!this.isContextualWithState("from",n)||n.type===L.braceL)return!1}}else if(!this.match(L._default))return!1;var i=this.nextTokenStart(),s=this.isUnparsedContextual(i,"from");if(44===this.input.charCodeAt(i)||J(this.type)&&s)return!0;if(this.match(L._default)&&s){var a=this.input.charCodeAt(this.nextTokenStartSince(i+4));return 34===a||39===a}return!1},a.tsInAmbientContext=function(e){var t=this.isAmbientContext;this.isAmbientContext=!0;try{return e()}finally{this.isAmbientContext=t}},a.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},a.tsParseModuleOrNamespaceDeclaration=function(t,r){if(void 0===r&&(r=!1),t.id=this.parseIdent(),r||this.checkLValSimple(t.id,8),this.eat(L.dot)){var n=this.startNode();this.tsParseModuleOrNamespaceDeclaration(n,!0),t.body=n}else e.prototype.enterScope.call(this,1024),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this);return this.finishNode(t,"TSModuleDeclaration")},a.checkLValSimple=function(t,r,n){return void 0===r&&(r=0),e.prototype.checkLValSimple.call(this,t,r,n)},a.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdent(),this.checkLValSimple(e.id,6),e.typeAnnotation=this.tsInType(function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers.bind(t)),t.expect(L.eq),t.ts_isContextual(R.interface)&&t.lookahead().type!==L.dot){var r=t.startNode();return t.next(),t.finishNode(r,"TSIntrinsicKeyword")}return t.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},a.tsParseDeclaration=function(e,t,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(L._class)||J(this.type)))return this.tsParseAbstractDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(L.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(J(this.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(r)&&J(this.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(r)&&J(this.type))return this.tsParseTypeAliasDeclaration(e)}},a.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},a.tsParseImportEqualsDeclaration=function(t,r){t.isExport=r||!1,t.id=this.parseIdent(),this.checkLValSimple(t.id,2),e.prototype.expect.call(this,L.eq);var n=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==n.type&&this.raise(n.start,"An import alias can not use 'import type'."),t.moduleReference=n,e.prototype.semicolon.call(this),this.finishNode(t,"TSImportEqualsDeclaration")},a.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var e=this.type;if(J(e)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((e===R.type||e===R.interface)&&!this.containsEsc){var t=this.lookahead();if(J(t.type)&&!this.isContextualWithState("from",t)||t.type===L.braceL)return!1}}else if(!this.match(L._default))return!1;var r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(44===this.input.charCodeAt(r)||J(this.type)&&n)return!0;if(this.match(L._default)&&n){var i=this.input.charCodeAt(this.nextTokenStartSince(r+4));return 34===i||39===i}return!1},a.parseTemplate=function(e){var t=(void 0===e?{}:e).isTagged,r=void 0!==t&&t,n=this.startNode();this.next(),n.expressions=[];var i=this.parseTemplateElement({isTagged:r});for(n.quasis=[i];!i.tail;)this.type===L.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(L.dollarBraceL),n.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(L.braceR),n.quasis.push(i=this.parseTemplateElement({isTagged:r}));return this.next(),this.finishNode(n,"TemplateLiteral")},a.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===L.star&&2&t&&this.unexpected(),e.generator=this.eat(L.star)),this.options.ecmaVersion>=8&&(e.async=!!n),1&t&&(e.id=4&t&&this.type!==L.name?null:this.parseIdent());var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos,l=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(I(e.async,e.generator)),1&t||(e.id=this.type===L.name?this.parseIdent():null),this.parseFunctionParams(e);var u=1&t;return this.parseFunctionBody(e,r,!1,i,{isFunctionDeclaration:u}),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,1&t&&e.id&&!(2&t)&&this.checkLValSimple(e.id,e.body?this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=l,this.finishNode(e,u?"FunctionDeclaration":"FunctionExpression")},a.parseFunctionBody=function(t,r,n,i,s){void 0===r&&(r=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),this.match(L.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(L.colon));var a=null!=s&&s.isFunctionDeclaration?"TSDeclareFunction":null!=s&&s.isClassMethod?"TSDeclareMethod":void 0;return a&&!this.match(L.braceL)&&this.isLineTerminator()?this.finishNode(t,a):"TSDeclareFunction"===a&&this.isAmbientContext&&(this.raise(t.start,"An implementation cannot be declared in ambient contexts."),t.declare)?(e.prototype.parseFunctionBody.call(this,t,r,n,!1),this.finishNode(t,a)):(e.prototype.parseFunctionBody.call(this,t,r,n,i),t)},a.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e,t=this.startNode(),r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(L.dot)){t.meta=r;var n=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var i=this.start,s=this.startLoc,a=this.type===L._import;t.callee=this.parseSubscripts(this.parseExprAtom(),i,s,!0,!1),a&&"ImportExpression"===t.callee.type&&this.raise(i,"Cannot use new with import()");var o=t.callee;return"TSInstantiationExpression"!==o.type||null!=(e=o.extra)&&e.parenthesized||(t.typeParameters=o.typeParameters,t.callee=o.expression),t.arguments=this.eat(L.parenL)?this.parseExprList(L.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(t,"NewExpression")},a.parseExprOp=function(t,r,n,i,s){var a;if(L._in.binop>i&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(a="TSAsExpression"),N&&this.isContextual("satisfies")&&(a="TSSatisfiesExpression"),a)){var o=this.startNodeAt(r,n);return o.expression=t,o.typeAnnotation=this.tsTryNextParseConstantContext()||this.tsNextThenParseType(),this.finishNode(o,a),this.reScan_lt_gt(),this.parseExprOp(o,r,n,i,s)}return e.prototype.parseExprOp.call(this,t,r,n,i,s)},a.parseImportSpecifiers=function(){var e=[],t=!0;if(u.tokenIsIdentifier(this.type)&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(L.comma)))return e;if(this.type===L.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(L.braceL);!this.eat(L.braceR);){if(t)t=!1;else if(this.expect(L.comma),this.afterTrailingComma(L.braceR))break;e.push(this.parseImportSpecifier())}return e},a.parseImport=function(e){var t=this.lookahead();if(e.importKind="value",this.importOrExportOuterKind="value",J(t.type)||this.match(L.star)||this.match(L.braceL)){var r=this.lookahead(2);if(r.type!==L.comma&&!this.isContextualWithState("from",r)&&r.type!==L.eq&&this.ts_eatContextualWithState("type",1,t)&&(this.importOrExportOuterKind="type",e.importKind="type",t=this.lookahead(),r=this.lookahead(2)),J(t.type)&&r.type===L.eq){this.next();var n=this.tsParseImportEqualsDeclaration(e);return this.importOrExportOuterKind="value",n}}return this.next(),this.type===L.string?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===L.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ImportDeclaration"),this.importOrExportOuterKind="value","type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(e.start,"A type-only import can specify a default import or named bindings, but not both."),e},a.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0)}if(this.match(R.interface)){var r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return e.prototype.parseExportDefaultDeclaration.call(this)},a.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==L.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},a.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.eat(L.comma)&&(e.arguments=[this.parseExpression()]),!this.eat(L.parenR)){var t=this.start;this.eat(L.comma)&&this.eat(L.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},a.parseExport=function(e,t){var r=this.lookahead();if(this.ts_eatWithState(L._import,2,r)){this.ts_isContextual(R.type)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.importOrExportOuterKind="type",this.next()):(e.importKind="value",this.importOrExportOuterKind="value");var n=this.tsParseImportEqualsDeclaration(e,!0);return this.importOrExportOuterKind=void 0,n}if(this.ts_eatWithState(L.eq,2,r))return e.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(e,"TSExportAssignment");if(this.ts_eatContextualWithState("as",2,r))return this.expectContextual("namespace"),e.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(e,"TSNamespaceExportDeclaration");if(this.ts_isContextualWithState(r,R.type)&&this.lookahead(2).type===L.braceL?(this.next(),this.importOrExportOuterKind="type",e.exportKind="type"):(this.importOrExportOuterKind="value",e.exportKind="value"),this.next(),this.eat(L.star))return this.parseExportAllDeclaration(e,t);if(this.eat(L._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==L.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e);else{for(var i,s=c(e.specifiers);!(i=s()).done;){var a=i.value;this.checkUnreserved(a.local),this.checkLocalExport(a.local),"Literal"===a.local.type&&this.raise(a.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},a.checkExport=function(e,t,r){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),e[t]=!0)},a.parseMaybeDefault=function(t,r,n){var i=e.prototype.parseMaybeDefault.call(this,t,r,n);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(i.typeAnnotation.start,"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`."),i},a.typeCastToParameter=function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.end),e.expression},a.toAssignableList=function(t,r){for(var n=0;n<t.length;n++){var i=t[n];"TSTypeCastExpression"===(null==i?void 0:i.type)&&(t[n]=this.typeCastToParameter(i))}return e.prototype.toAssignableList.call(this,t,r)},a.reportReservedArrowTypeParam=function(e){},a.parseExprAtom=function(t,r,n){if(this.type===R.jsxText)return this.jsx_parseText();if(this.type===R.jsxTagStart)return this.jsx_parseElement();if(this.type===R.at)return this.parseDecorators(),this.parseExprAtom();if(J(this.type)){var i=this.potentialArrowAt===this.start,s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(L._function))return this.overrideContext(j.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,r);if(i&&!this.canInsertSemicolon()){if(this.eat(L.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,r);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===L.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(L.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,r)}return l}return e.prototype.parseExprAtom.call(this,t,r,n)},a.parseExprAtomDefault=function(){if(J(this.type)){var e=this.potentialArrowAt===this.start,t=this.containsEsc,r=this.parseIdent();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){var n=this.type;if(n===L._function)return this.next(),this.parseFunction(this.startNodeAtNode(r),void 0,!0,!0);if(J(n)){if(61===this.lookaheadCharCode()){var i=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(L.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(r),[i],!0)}return r}}return e&&this.match(L.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1)):r}this.unexpected()},a.parseIdentNode=function(){var t=this.startNode();return z(this.type)?(t.name=this.value,t):e.prototype.parseIdentNode.call(this)},a.parseVarStatement=function(t,r,n){void 0===n&&(n=!1);var i=this.isAmbientContext;this.next(),e.prototype.parseVar.call(this,t,!1,r,n||i),this.semicolon();var s=this.finishNode(t,"VariableDeclaration");if(!i)return s;for(var a,o=c(s.declarations);!(a=o()).done;){var l=a.value,u=l.init;u&&("const"!==r||l.id.typeAnnotation?this.raise(u.start,"Initializers are not allowed in ambient contexts."):"StringLiteral"!==u.type&&"BooleanLiteral"!==u.type&&"NumericLiteral"!==u.type&&"BigIntLiteral"!==u.type&&("TemplateLiteral"!==u.type||u.expressions.length>0)&&!function(e){if("MemberExpression"!==e.type)return!1;var t=e.property;return(!e.computed||!("TemplateLiteral"!==t.type||t.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(u)&&this.raise(u.start,"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."))}return s},a.parseStatement=function(t,r,n){if(this.match(R.at)&&this.parseDecorators(!0),this.match(L._const)&&this.isLookaheadContextual("enum")){var i=this.startNode();return this.expect(L._const),this.tsParseEnumDeclaration(i,{const:!0})}if(this.ts_isContextual(R.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(R.interface)){var s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return e.prototype.parseStatement.call(this,t,r,n)},a.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},a.parsePostMemberNameModifiers=function(e){this.eat(L.question)&&(e.optional=!0),e.readonly&&this.match(L.parenL)&&this.raise(e.start,"Class methods cannot have the 'readonly' modifier."),e.declare&&this.match(L.parenL)&&this.raise(e.start,"Class methods cannot have the 'declare' modifier.")},a.parseExpressionStatement=function(t,r){return("Identifier"===r.type?this.tsParseExpressionStatement(t,r):void 0)||e.prototype.parseExpressionStatement.call(this,t,r)},a.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(R.at)||e.prototype.shouldParseExportStatement.call(this)},a.parseConditional=function(e,t,r,n,i){if(this.eat(L.question)){var s=this.startNodeAt(t,r);return s.test=e,s.consequent=this.parseMaybeAssign(),this.expect(L.colon),s.alternate=this.parseMaybeAssign(n),this.finishNode(s,"ConditionalExpression")}return e},a.parseMaybeConditional=function(e,t){var r=this,n=this.start,i=this.startLoc,s=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return s;if(!this.maybeInArrowParameters||!this.match(L.question))return this.parseConditional(s,n,i,e,t);var a=this.tryParse(function(){return r.parseConditional(s,n,i,e,t)});return a.node?(a.error&&this.setLookaheadState(a.failState),a.node):(a.error&&this.setOptionalParametersError(t,a.error),s)},a.parseParenItem=function(t){var r=this.start,n=this.startLoc;if(t=e.prototype.parseParenItem.call(this,t),this.eat(L.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(L.colon)){var i=this.startNodeAt(r,n);return i.expression=t,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return t},a.parseExportDeclaration=function(e){var t=this;if(!this.isAmbientContext&&this.ts_isContextual(R.declare))return this.tsInAmbientContext(function(){return t.parseExportDeclaration(e)});var r=this.start,n=this.startLoc,i=this.eatContextual("declare");!i||!this.ts_isContextual(R.declare)&&this.shouldParseExportStatement()||this.raise(this.start,"'export declare' must be followed by an ambient declaration.");var s=J(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return s?(("TSInterfaceDeclaration"===s.type||"TSTypeAliasDeclaration"===s.type||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(s,r,n),s.declare=!0),s):null},a.parseClassId=function(t,r){if(r||!this.isContextual("implements")){e.prototype.parseClassId.call(this,t,r);var n=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));n&&(t.typeParameters=n)}},a.parseClassPropertyAnnotation=function(e){e.optional||("!"===this.value&&this.eat(L.prefix)?e.definite=!0:this.eat(L.question)&&(e.optional=!0));var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)},a.parseClassField=function(t){if("PrivateIdentifier"===t.key.type)t.abstract&&this.raise(t.start,"Private elements cannot have the 'abstract' modifier."),t.accessibility&&this.raise(t.start,"Private elements cannot have an accessibility modifier ('"+({modifier:t.accessibility}).modifier+"')."),this.parseClassPropertyAnnotation(t);else if(this.parseClassPropertyAnnotation(t),this.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(L.eq)&&this.raise(this.start,"Initializers are not allowed in ambient contexts."),t.abstract&&this.match(L.eq)){var r=t.key;this.raise(this.start,"Property '"+({propertyName:"Identifier"!==r.type||t.computed?"["+this.input.slice(r.start,r.end)+"]":r.name}).propertyName+"' cannot have an initializer because it is marked abstract.")}return e.prototype.parseClassField.call(this,t)},a.parseClassMethod=function(e,t,r,n){var i="constructor"===e.kind,s="PrivateIdentifier"===e.key.type,a=this.tsTryParseTypeParameters();s?(a&&(e.typeParameters=a),e.accessibility&&this.raise(e.start,"Private methods cannot have an accessibility modifier ('"+({modifier:e.accessibility}).modifier+"').")):a&&i&&this.raise(a.start,"Type parameters cannot appear on a constructor declaration.");var o=e.declare,l=e.kind;void 0!==o&&o&&("get"===l||"set"===l)&&this.raise(e.start,"'declare' is not allowed in "+({kind:l}).kind+"ters."),a&&(e.typeParameters=a);var u=e.key;"constructor"===e.kind?(t&&this.raise(u.start,"Constructor can't be a generator"),r&&this.raise(u.start,"Constructor can't be an async method")):e.static&&m(e,"prototype")&&this.raise(u.start,"Classes may not have a static property named prototype");var c=e.value=this.parseMethod(t,r,n,!0,e);return"get"===e.kind&&0!==c.params.length&&this.raiseRecoverable(c.start,"getter should have no params"),"set"===e.kind&&1!==c.params.length&&this.raiseRecoverable(c.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===c.params[0].type&&this.raiseRecoverable(c.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},a.isClassMethod=function(){return this.match(L.relational)},a.parseClassElement=function(t){var r=this;if(this.eat(L.semi))return null;var n,i=this.options.ecmaVersion,s=this.startNode(),a="",o=!1,l=!1,u="method",c=["declare","private","public","protected","accessor","override","abstract","readonly","static"];n=!!this.tsParseModifiers({modified:s,allowedModifiers:c,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:v}).static;var p=function(){if(!r.tsIsStartOfStaticBlocks()){var p=r.tsTryParseIndexSignature(s);if(p)return s.abstract&&r.raise(s.start,"Index signatures cannot have the 'abstract' modifier."),s.accessibility&&r.raise(s.start,"Index signatures cannot have an accessibility modifier ('"+({modifier:s.accessibility}).modifier+"')."),s.declare&&r.raise(s.start,"Index signatures cannot have the 'declare' modifier."),s.override&&r.raise(s.start,"'override' modifier cannot appear on an index signature."),p;if(!r.inAbstractClass&&s.abstract&&r.raise(s.start,"Abstract methods can only appear within an abstract class."),s.override&&t&&r.raise(s.start,"This member cannot have an 'override' modifier because its containing class does not extend another class."),s.static=n,n&&(r.isClassElementNameStart()||r.type===L.star||(a="static")),!a&&i>=8&&r.eatContextual("async")&&(!r.isClassElementNameStart()&&r.type!==L.star||r.canInsertSemicolon()?a="async":l=!0),!a&&(i>=9||!l)&&r.eat(L.star)&&(o=!0),!a&&!l&&!o){var h=r.value;(r.eatContextual("get")||r.eatContextual("set"))&&(r.isClassElementNameStart()?u=h:a=h)}if(a?(s.computed=!1,s.key=r.startNodeAt(r.lastTokStart,r.lastTokStartLoc),s.key.name=a,r.finishNode(s.key,"Identifier")):r.parseClassElementName(s),r.parsePostMemberNameModifiers(s),r.isClassMethod()||i<13||r.type===L.parenL||"method"!==u||o||l){var d=!s.static&&m(s,"constructor"),f=d&&t;d&&"method"!==u&&r.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=d?"constructor":u,r.parseClassMethod(s,o,l,f)}else r.parseClassField(s);return s}if(r.next(),r.next(),r.tsHasSomeModifiers(s,c)&&r.raise(r.start,"Static class blocks cannot have any modifier."),i>=13)return e.prototype.parseClassStaticBlock.call(r,s),s};return s.declare?this.tsInAmbientContext(p):p(),s},a.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||e.prototype.isClassElementNameStart.call(this)},a.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&(this.tsMatchLeftRelational()||this.match(L.bitShift))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause("implements"))},a.parseFunctionParams=function(t){var r=this.tsTryParseTypeParameters();r&&(t.typeParameters=r),e.prototype.parseFunctionParams.call(this,t)},a.parseVarId=function(t,r){e.prototype.parseVarId.call(this,t,r),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&"!"===this.value&&this.eat(L.prefix)&&(t.definite=!0);var n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))},a.parseArrowExpression=function(e,t,r,n){this.match(L.colon)&&(e.returnType=this.tsParseTypeAnnotation());var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;this.enterScope(16|I(r,!1)),this.initFunction(e);var o=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,e.params=this.toAssignableList(t,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.maybeInArrowParameters=o,this.finishNode(e,"ArrowFunctionExpression")},a.parseMaybeAssignOrigin=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new f,n=!0);var o=this.start,l=this.startLoc;(this.type===L.parenL||J(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,o,l)),this.type.isAssign){var c=this.startNodeAt(o,l);return c.operator=this.value,this.type===L.eq&&(u=this.toAssignable(u,!0,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===L.eq?this.checkLValPattern(u):this.checkLValSimple(u),c.left=u,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),u},a.parseMaybeAssign=function(e,t,r){var n,i,s,a,o,l,c,p,h,d,f,m=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(p=this.cloneCurLookaheadState(),!(h=this.tryParse(function(){return m.parseMaybeAssignOrigin(e,t,r)},p)).error)return h.node;var y=this.context,g=y[y.length-1];g===u.tokContexts.tc_oTag&&y[y.length-2]===u.tokContexts.tc_expr?(y.pop(),y.pop()):g!==u.tokContexts.tc_oTag&&g!==u.tokContexts.tc_expr||y.pop()}if(!(null!=(n=h)&&n.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(e,t,r);p&&!this.compareLookaheadState(p,this.getCurLookaheadState())||(p=this.cloneCurLookaheadState());var b=this.tryParse(function(n){f=m.tsParseTypeParameters();var i,s,a=m.parseMaybeAssignOrigin(e,t,r);return("ArrowFunctionExpression"!==a.type||null!=(i=a.extra)&&i.parenthesized)&&n(),0!==(null==(s=f)?void 0:s.params.length)&&m.resetStartLocationFromNode(a,f),a.typeParameters=f,a},p);if(!b.error&&!b.aborted)return f&&this.reportReservedArrowTypeParam(f),b.node;if(!h&&(C(!0),!(d=this.tryParse(function(){return m.parseMaybeAssignOrigin(e,t,r)},p)).error))return d.node;if(null!=(i=h)&&i.node)return this.setLookaheadState(h.failState),h.node;if(b.node)return this.setLookaheadState(b.failState),f&&this.reportReservedArrowTypeParam(f),b.node;if(null!=(s=d)&&s.node)return this.setLookaheadState(d.failState),d.node;if(null!=(a=h)&&a.thrown)throw h.error;if(b.thrown)throw b.error;if(null!=(o=d)&&o.thrown)throw d.error;throw(null==(l=h)?void 0:l.error)||b.error||(null==(c=d)?void 0:c.error)},a.parseAssignableListItem=function(e){for(var t=[];this.match(R.at);)t.push(this.parseDecorator());var r,n=this.start,i=this.startLoc,s=!1,a=!1;if(void 0!==e){var o={};this.tsParseModifiers({modified:o,allowedModifiers:["public","private","protected","override","readonly"]}),r=o.accessibility,a=o.override,s=o.readonly,!1===e&&(r||s||a)&&this.raise(i.start,"A parameter property is only allowed in a constructor implementation.")}var l=this.parseMaybeDefault(n,i);this.parseBindingListItem(l);var u=this.parseMaybeDefault(l.start,l.loc,l);if(t.length&&(u.decorators=t),r||s||a){var c=this.startNodeAt(n,i);return r&&(c.accessibility=r),s&&(c.readonly=s),a&&(c.override=a),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(c.start,"A parameter property may not be declared using a binding pattern."),c.parameter=u,this.finishNode(c,"TSParameterProperty")}return u},a.checkLValInnerPattern=function(t,r,n){void 0===r&&(r=0),"TSParameterProperty"===t.type?this.checkLValInnerPattern(t.parameter,r,n):e.prototype.checkLValInnerPattern.call(this,t,r,n)},a.parseBindingListItem=function(e){this.eat(L.question)&&("Identifier"===e.type||this.isAmbientContext||this.inType||this.raise(e.start,"A binding pattern parameter cannot be optional in an implementation signature."),e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e},a.isAssignable=function(e,t){var r=this;switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var n=e.properties.length-1;return e.properties.every(function(e,t){return"ObjectMethod"!==e.type&&(t===n||"SpreadElement"!==e.type)&&r.isAssignable(e)});case"Property":case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(function(e){return null===e||r.isAssignable(e)});case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}},a.toAssignable=function(t,r,n){switch(void 0===r&&(r=!1),void 0===n&&(n=new f),t.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,r,n);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return r||this.raise(t.start,"Unexpected type cast in parameter position."),this.toAssignable(t.expression,r,n);case"MemberExpression":break;case"AssignmentExpression":return r||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,r,n);case"TSTypeCastExpression":return this.typeCastToParameter(t);default:return e.prototype.toAssignable.call(this,t,r,n)}return t},a.toAssignableParenthesizedExpression=function(t,r,n){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(t.expression,r,n);default:return e.prototype.toAssignable.call(this,t,r,n)}},a.curPosition=function(){if(this.options.locations){var t=e.prototype.curPosition.call(this);return Object.defineProperty(t,"offset",{get:function(){return function(e){var t=new r.Position(this.line,this.column+e);return t.index=this.index+e,t}}}),t.index=this.pos,t}},a.parseBindingAtom=function(){return this.type===L._this?this.parseIdent(!0):e.prototype.parseBindingAtom.call(this)},a.shouldParseArrow=function(e){var t,r=this;if(t=this.match(L.colon)?e.every(function(e){return r.isAssignable(e,!0)}):!this.canInsertSemicolon()){if(this.match(L.colon)){var n=this.tryParse(function(e){var t=r.tsParseTypeOrTypePredicateAnnotation(L.colon);return!r.canInsertSemicolon()&&r.match(L.arrow)||e(),t});if(n.aborted)return this.shouldParseArrowReturnType=void 0,!1;n.thrown||(n.error&&this.setLookaheadState(n.failState),this.shouldParseArrowReturnType=n.node)}return!!this.match(L.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,t},a.parseParenArrowList=function(e,t,r,n){var i=this.startNodeAt(e,t);return i.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(i,r,!1,n)},a.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var a=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var o,l=this.start,u=this.startLoc,c=[],p=!0,h=!1,d=new f,m=this.yieldPos,y=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==L.parenR;){if(p?p=!1:this.expect(L.comma),s&&this.afterTrailingComma(L.parenR,!0)){h=!0;break}if(this.type===L.ellipsis){o=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===L.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(t,d,this.parseParenItem))}var g=this.lastTokEnd,b=this.lastTokEndLoc;if(this.expect(L.parenR),this.maybeInArrowParameters=a,e&&this.shouldParseArrow(c)&&this.eat(L.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=y,this.parseParenArrowList(n,i,c,t);c.length&&!h||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(d,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=y||this.awaitPos,c.length>1?((r=this.startNodeAt(l,u)).expressions=c,this.finishNodeAt(r,"SequenceExpression",g,b)):r=c[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var x=this.startNodeAt(n,i);return x.expression=r,this.finishNode(x,"ParenthesizedExpression")}return r},a.parseTaggedTemplateExpression=function(e,t,r,n){var i=this.startNodeAt(t,r);return i.tag=e,i.quasi=this.parseTemplate({isTagged:!0}),n&&this.raise(t,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(i,"TaggedTemplateExpression")},a.shouldParseAsyncArrow=function(){var e=this;if(!this.match(L.colon))return!this.canInsertSemicolon()&&this.eat(L.arrow);var t=this.tryParse(function(t){var r=e.tsParseTypeOrTypePredicateAnnotation(L.colon);return!e.canInsertSemicolon()&&e.match(L.arrow)||t(),r});return t.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):t.thrown?void 0:(t.error&&this.setLookaheadState(t.failState),this.shouldParseAsyncArrowReturnType=t.node,!this.canInsertSemicolon()&&this.eat(L.arrow))},a.parseSubscriptAsyncArrow=function(e,t,r,n){var i=this.startNodeAt(e,t);return i.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(i,r,!0,n)},a.parseExprList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(L.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===L.comma?a=null:this.type===L.ellipsis?(a=this.parseSpread(n),n&&this.type===L.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n,this.parseParenItem),i.push(a)}return i},a.parseSubscript=function(e,t,r,n,i,s,a){var o=this,l=s;if(!this.hasPrecedingLineBreak()&&"!"===this.value&&this.match(L.prefix)){this.exprAllowed=!1,this.next();var u=this.startNodeAt(t,r);return u.expression=e,e=this.finishNode(u,"TSNonNullExpression")}var c=!1;if(this.match(L.questionDot)&&60===this.lookaheadCharCode()){if(n)return e;e.optional=!0,l=c=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(L.bitShift)){var p,h=this.tsTryParseAndCatch(function(){if(!n&&o.atPossibleAsyncArrow(e)){var i=o.tsTryParseGenericAsyncArrowFunction(t,r,a);if(i)return e=i}var s=o.tsParseTypeArgumentsInExpression();if(!s)return e;if(c&&!o.match(L.parenL))return p=o.curPosition(),e;if(q(o.type)||o.type===L.backQuote){var u=o.parseTaggedTemplateExpression(e,t,r,l);return u.typeParameters=s,u}if(!n&&o.eat(L.parenL)){var h=new f,d=o.startNodeAt(t,r);return d.callee=e,d.arguments=o.parseExprList(L.parenR,o.options.ecmaVersion>=8,!1,h),o.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=s,l&&(d.optional=c),o.checkExpressionErrors(h,!0),e=o.finishNode(d,"CallExpression")}var m=o.type;if(!(o.tsMatchRightRelational()||m===L.bitShift||m!==L.parenL&&m.startsExpr&&!o.hasPrecedingLineBreak())){var y=o.startNodeAt(t,r);return y.expression=e,y.typeParameters=s,o.finishNode(y,"TSInstantiationExpression")}});if(p&&this.unexpected(p),h)return"TSInstantiationExpression"===h.type&&(this.match(L.dot)||this.match(L.questionDot)&&40!==this.lookaheadCharCode())&&this.raise(this.start,"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments."),e=h}var d=this.options.ecmaVersion>=11,m=d&&this.eat(L.questionDot);n&&m&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var y=this.eat(L.bracketL);if(y||m&&this.type!==L.parenL&&this.type!==L.backQuote||this.eat(L.dot)){var g=this.startNodeAt(t,r);g.object=e,y?(g.property=this.parseExpression(),this.expect(L.bracketR)):g.property=this.type===L.privateId&&"Super"!==e.type?this.parsePrivateIdent():this.parseIdent("never"!==this.options.allowReserved),g.computed=!!y,d&&(g.optional=m),e=this.finishNode(g,"MemberExpression")}else if(!n&&this.eat(L.parenL)){var b=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var x=new f,S=this.yieldPos,v=this.awaitPos,T=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var E=this.parseExprList(L.parenR,this.options.ecmaVersion>=8,!1,x);if(i&&!m&&this.shouldParseAsyncArrow())this.checkPatternErrors(x,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=S,this.awaitPos=v,this.awaitIdentPos=T,e=this.parseSubscriptAsyncArrow(t,r,E,a);else{this.checkExpressionErrors(x,!0),this.yieldPos=S||this.yieldPos,this.awaitPos=v||this.awaitPos,this.awaitIdentPos=T||this.awaitIdentPos;var k=this.startNodeAt(t,r);k.callee=e,k.arguments=E,d&&(k.optional=m),e=this.finishNode(k,"CallExpression")}this.maybeInArrowParameters=b}else if(this.type===L.backQuote){(m||l)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var w=this.startNodeAt(t,r);w.tag=e,w.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(w,"TaggedTemplateExpression")}return e},a.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=+("get"!==e.kind),r=e.value.params[0],n=r&&this.isThisParam(r);e.value.params.length!==(t=n?t+1:t)?this.raiseRecoverable(e.value.start,"get"===e.kind?"getter should have no params":"setter should have exactly one param"):"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},a.parseProperty=function(t,r){if(!t){var n=[];if(this.match(R.at))for(;this.match(R.at);)n.push(this.parseDecorator());var i=e.prototype.parseProperty.call(this,t,r);return"SpreadElement"===i.type&&n.length&&this.raise(i.start,"Decorators can't be used with SpreadElement"),n.length&&(i.decorators=n,n=[]),i}return e.prototype.parseProperty.call(this,t,r)},a.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;this.enterScope(32*!!t),this.checkLValPattern(e,t?4:2);var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r,this.resetEndLocation(e)),this.expect(L.parenR),e},a.parseClass=function(e,t){var r=this.inAbstractClass;this.inAbstractClass=!!e.abstract;try{this.next(),this.takeDecorators(e);var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var i=this.enterClassBody(),s=this.startNode(),a=!1;s.body=[];var o=[];for(this.expect(L.braceL);this.type!==L.braceR;)if(this.match(R.at))o.push(this.parseDecorator());else{var l=this.parseClassElement(null!==e.superClass);o.length&&(l.decorators=o,this.resetStartLocationFromNode(l,o[0]),o=[]),l&&(s.body.push(l),"MethodDefinition"===l.type&&"constructor"===l.kind&&"FunctionExpression"===l.value.type?(a&&this.raiseRecoverable(l.start,"Duplicate constructor in the same class"),a=!0,l.decorators&&l.decorators.length>0&&this.raise(l.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):l.key&&"PrivateIdentifier"===l.key.type&&function(e,t){var r=t.key.name,n=e[r],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===i||"iset"===n&&"iget"===i||"sget"===n&&"sset"===i||"sset"===n&&"sget"===i?(e[r]="true",!1):!!n||(e[r]=i,!1)}(i,l)&&this.raiseRecoverable(l.key.start,"Identifier '#"+l.key.name+"' has already been declared"))}return this.strict=n,this.next(),o.length&&this.raise(this.start,"Decorators must be attached to a class element."),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=r}},a.parseClassFunctionParams=function(){var e=this.tsTryParseTypeParameters(this.tsParseConstModifier),t=this.parseBindingList(L.parenR,!1,this.options.ecmaVersion>=8,!0);return e&&(t.typeParameters=e),t},a.parseMethod=function(e,t,r,n,i){var s=this.startNode(),a=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos;if(this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|I(t,s.generator)|128*!!r),this.expect(L.parenL),s.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1,{isClassMethod:n}),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=l,i&&i.abstract&&s.body){var u=i.key;this.raise(i.start,"Method '"+({methodName:"Identifier"!==u.type||i.computed?"["+this.input.slice(u.start,u.end)+"]":u.name}).methodName+"' cannot have an implementation because it is marked abstract.")}return this.finishNode(s,"FunctionExpression")},t.parse=function(e,t){if(!1===t.locations)throw Error("You have to enable options.locations while using acorn-typescript");t.locations=!0;var r=new this(t,e);return l&&(r.isAmbientContext=!0),r.parse()},t.parseExpressionAt=function(e,t,r){if(!1===r.locations)throw Error("You have to enable options.locations while using acorn-typescript");r.locations=!0;var n=new this(r,e,t);return l&&(n.isAmbientContext=!0),n.nextToken(),n.parseExpression()},a.parseImportSpecifier=function(){if(this.ts_isContextual(R.type)){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(t,!0,"type"===this.importOrExportOuterKind),this.finishNode(t,"ImportSpecifier")}var r=e.prototype.parseImportSpecifier.call(this);return r.importKind="value",r},a.parseExportSpecifier=function(t){var r=this.ts_isContextual(R.type);if(!this.match(L.string)&&r){var n=this.startNode();return n.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(n,!1,"type"===this.importOrExportOuterKind),this.finishNode(n,"ExportSpecifier"),this.checkExport(t,n.exported,n.exported.start),n}var i=e.prototype.parseExportSpecifier.call(this,t);return i.exportKind="value",i},a.parseTypeOnlyImportExportSpecifier=function(t,r,n){var i,s=r?"imported":"local",a=r?"local":"exported",o=t[s],l=!1,u=!0,c=o.start;if(this.isContextual("as")){var p=this.parseIdent();if(this.isContextual("as")){var h=this.parseIdent();z(this.type)?(l=!0,o=p,i=r?this.parseIdent():this.parseModuleExportName()):i=h,u=!1}else z(this.type)?(u=!1,i=r?this.parseIdent():this.parseModuleExportName()):(l=!0,o=p)}else z(this.type)&&(l=!0,r?(o=e.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(o)):o=this.parseModuleExportName());l&&n&&this.raise(c,r?"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.":"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),t[s]=o,t[a]=i,t[r?"importKind":"exportKind"]=l?"type":"value",u&&this.eatContextual("as")&&(t[a]=r?this.parseIdent():this.parseModuleExportName()),t[a]||(t[a]=this.copyNode(t[s])),r&&this.checkLValSimple(t[a],2)},a.raiseCommonCheck=function(t,r,n){return"Comma is not permitted after the rest element"===r?this.isAmbientContext&&this.match(L.comma)&&41===this.lookaheadCharCode()?void this.next():e.prototype.raise.call(this,t,r):n?e.prototype.raiseRecoverable.call(this,t,r):e.prototype.raise.call(this,t,r)},a.raiseRecoverable=function(e,t){return this.raiseCommonCheck(e,t,!0)},a.raise=function(e,t){return this.raiseCommonCheck(e,t,!0)},a.updateContext=function(t){var r=this.type;if(r==L.braceL){var n=this.curContext();n==$.tc_oTag?this.context.push(j.b_expr):n==$.tc_expr?this.context.push(j.b_tmpl):e.prototype.updateContext.call(this,t),this.exprAllowed=!0}else{if(r!==L.slash||t!==R.jsxTagStart)return e.prototype.updateContext.call(this,t);this.context.length-=2,this.context.push($.tc_cTag),this.exprAllowed=!1}},a.jsx_parseOpeningElementAt=function(e,t){var r=this,n=this.startNodeAt(e,t),i=this.jsx_parseElementName();if(i&&(n.name=i),this.match(L.relational)||this.match(L.bitShift)){var s=this.tsTryParseAndCatch(function(){return r.tsParseTypeArgumentsInExpression()});s&&(n.typeParameters=s)}for(n.attributes=[];this.type!==L.slash&&this.type!==R.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(L.slash),this.expect(R.jsxTagEnd),this.finishNode(n,i?"JSXOpeningElement":"JSXOpeningFragment")},a.enterScope=function(t){1024===t&&this.importsStack.push([]),e.prototype.enterScope.call(this,t);var r=e.prototype.currentScope.call(this);r.types=[],r.enums=[],r.constEnums=[],r.classes=[],r.exportOnlyBindings=[]},a.exitScope=function(){1024===e.prototype.currentScope.call(this).flags&&this.importsStack.pop(),e.prototype.exitScope.call(this)},a.hasImport=function(e,t){var r=this.importsStack.length;if(this.importsStack[r-1].indexOf(e)>-1)return!0;if(!t&&r>1){for(var n=0;n<r-1;n++)if(this.importsStack[n].indexOf(e)>-1)return!0}return!1},a.maybeExportDefined=function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)},a.isRedeclaredInScope=function(t,r,n){return!!(0&n)&&(2&n?t.lexical.indexOf(r)>-1||t.functions.indexOf(r)>-1||t.var.indexOf(r)>-1:3&n?t.lexical.indexOf(r)>-1||!e.prototype.treatFunctionsAsVarInScope.call(this,t)&&t.var.indexOf(r)>-1:t.lexical.indexOf(r)>-1&&!(32&t.flags&&t.lexical[0]===r)||!this.treatFunctionsAsVarInScope(t)&&t.functions.indexOf(r)>-1)},a.checkRedeclarationInScope=function(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.raise(n,"Identifier '"+t+"' has already been declared.")},a.declareName=function(t,r,n){if(4096&r)return this.hasImport(t,!0)&&this.raise(n,"Identifier '"+t+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(t);var i=this.currentScope();1024&r?(this.maybeExportDefined(i,t),i.exportOnlyBindings.push(t)):(e.prototype.declareName.call(this,t,r,n),0&r&&(0&r||(this.checkRedeclarationInScope(i,t,r,n),this.maybeExportDefined(i,t)),i.types.push(t)),256&r&&i.enums.push(t),512&r&&i.constEnums.push(t),128&r&&i.classes.push(t))},a.checkLocalExport=function(t){var r=t.name;if(!this.hasImport(r)){for(var n=this.scopeStack.length-1;n>=0;n--){var i=this.scopeStack[n];if(i.types.indexOf(r)>-1||i.exportOnlyBindings.indexOf(r)>-1)return}e.prototype.checkLocalExport.call(this,t)}},i=[{key:"acornTypeScript",get:function(){return u}}],n=[{key:"acornTypeScript",get:function(){return u}}],s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}(t=function(e,t,r){var n=t.tokTypes,i=r.tokTypes;function s(){return e.apply(this,arguments)||this}o(s,e);var a=s.prototype;return a.parseMaybeImportAttributes=function(e){if(this.type===i._with||this.type===n.assert){this.next();var t=this.parseImportAttributes();t&&(e.attributes=t)}},a.parseImportAttributes=function(){this.expect(i.braceL);var e=this.parseWithEntries();return this.expect(i.braceR),e},a.parseWithEntries=function(){var e=[],t=new Set;do{if(this.type===i.braceR)break;var r,n=this.startNode();r=this.type===i.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),n.key=r,t.has(n.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),t.add(n.key.name),this.type!==i.string&&this.raise(this.pos,"Only string is supported as an attribute value"),n.value=this.parseLiteral(this.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(i.comma))return e},s}(t=function(e,t,r,n){var i=e.tokTypes,s=t.tokTypes,a=e.isNewLine,l=e.isIdentifierChar,u=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},n||{});function c(){return r.apply(this,arguments)||this}o(c,r);var p=c.prototype;return p.jsx_readToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var r=this.input.charCodeAt(this.pos);switch(r){case 60:case 123:return this.pos===this.start?60===r&&this.exprAllowed?(++this.pos,this.finishToken(s.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.pos),this.finishToken(s.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===r?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:a(r)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}},p.jsx_readNewLine=function(e){var t,r=this.input.charCodeAt(this.pos);return++this.pos,13===r&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t},p.jsx_readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.pos),t+=this.jsx_readEntity(),r=this.pos):a(n)?(t+=this.input.slice(r,this.pos),t+=this.jsx_readNewLine(!1),r=this.pos):++this.pos}return t+=this.input.slice(r,this.pos++),this.finishToken(i.string,t)},p.jsx_readEntity=function(){var e,t="",r=0,n=this.input[this.pos];"&"!==n&&this.raise(this.pos,"Entity must start with an ampersand");for(var i=++this.pos;this.pos<this.input.length&&r++<10;){if(";"===(n=this.input[this.pos++])){"#"===t[0]?"x"===t[1]?(t=t.substr(2),k.test(t)&&(e=String.fromCharCode(parseInt(t,16)))):(t=t.substr(1),w.test(t)&&(e=String.fromCharCode(parseInt(t,10)))):e=E[t];break}t+=n}return e||(this.pos=i,"&")},p.jsx_readWord=function(){var e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(l(e)||45===e)return this.finishToken(s.jsxName,this.input.slice(t,this.pos))},p.jsx_parseIdentifier=function(){var e=this.startNode();return this.type===s.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")},p.jsx_parseNamespacedName=function(){var e=this.start,t=this.startLoc,r=this.jsx_parseIdentifier();if(!u.allowNamespaces||!this.eat(i.colon))return r;var n=this.startNodeAt(e,t);return n.namespace=r,n.name=this.jsx_parseIdentifier(),this.finishNode(n,"JSXNamespacedName")},p.jsx_parseElementName=function(){if(this.type===s.jsxTagEnd)return"";var e=this.start,t=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type!==i.dot||"JSXNamespacedName"!==r.type||u.allowNamespacedObjects||this.unexpected();this.eat(i.dot);){var n=this.startNodeAt(e,t);n.object=r,n.property=this.jsx_parseIdentifier(),r=this.finishNode(n,"JSXMemberExpression")}return r},p.jsx_parseAttributeValue=function(){switch(this.type){case i.braceL:var e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case s.jsxTagStart:case i.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},p.jsx_parseEmptyExpression=function(){var e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)},p.jsx_parseExpressionContainer=function(){var e=this.startNode();return this.next(),e.expression=this.type===i.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(i.braceR),this.finishNode(e,"JSXExpressionContainer")},p.jsx_parseAttribute=function(){var e=this.startNode();return this.eat(i.braceL)?(this.expect(i.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(i.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(i.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))},p.jsx_parseOpeningElementAt=function(e,t){var r=this.startNodeAt(e,t);r.attributes=[];var n=this.jsx_parseElementName();for(n&&(r.name=n);this.type!==i.slash&&this.type!==s.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(i.slash),this.expect(s.jsxTagEnd),this.finishNode(r,n?"JSXOpeningElement":"JSXOpeningFragment")},p.jsx_parseClosingElementAt=function(e,t){var r=this.startNodeAt(e,t),n=this.jsx_parseElementName();return n&&(r.name=n),this.expect(s.jsxTagEnd),this.finishNode(r,n?"JSXClosingElement":"JSXClosingFragment")},p.jsx_parseElementAt=function(e,t){var r=this.startNodeAt(e,t),n=[],a=this.jsx_parseOpeningElementAt(e,t),o=null;if(!a.selfClosing){t:for(;;)switch(this.type){case s.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(i.slash)){o=this.jsx_parseClosingElementAt(e,t);break t}n.push(this.jsx_parseElementAt(e,t));break;case s.jsxText:n.push(this.parseExprAtom());break;case i.braceL:n.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}A(o.name)!==A(a.name)&&this.raise(o.start,"Expected corresponding JSX closing tag for <"+A(a.name)+">")}var l=a.name?"Element":"Fragment";return r["opening"+l]=a,r["closing"+l]=o,r.children=n,this.type===i.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSX"+l)},p.jsx_parseText=function(){var e=this.parseLiteral(this.value);return e.type="JSXText",e},p.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},c}(r,u,t,null==e?void 0:e.jsx),u,r))}}},8630(e,t){!function(e){"use strict";var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},s="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:s,"5module":s+" export import",6:s+" const class extends export import super"},o=/^in(stanceof)?$/,l=RegExp("["+n+"]"),u=RegExp("["+n+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function c(e,t){for(var r=65536,n=0;n<t.length&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function p(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==t&&c(e,r)))}function h(e,n){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):!1!==n&&(c(e,r)||c(e,t)))))}var d=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new d(e,{beforeExpr:!0,binop:t})}var m={beforeExpr:!0},y={startsExpr:!0},g={};function b(e,t){return void 0===t&&(t={}),t.keyword=e,g[e]=new d(e,t)}var x={num:new d("num",y),regexp:new d("regexp",y),string:new d("string",y),name:new d("name",y),privateId:new d("privateId",y),eof:new d("eof"),bracketL:new d("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new d("]"),braceL:new d("{",{beforeExpr:!0,startsExpr:!0}),braceR:new d("}"),parenL:new d("(",{beforeExpr:!0,startsExpr:!0}),parenR:new d(")"),comma:new d(",",m),semi:new d(";",m),colon:new d(":",m),dot:new d("."),question:new d("?",m),questionDot:new d("?."),arrow:new d("=>",m),template:new d("template"),invalidTemplate:new d("invalidTemplate"),ellipsis:new d("...",m),backQuote:new d("`",y),dollarBraceL:new d("${",{beforeExpr:!0,startsExpr:!0}),eq:new d("=",{beforeExpr:!0,isAssign:!0}),assign:new d("_=",{beforeExpr:!0,isAssign:!0}),incDec:new d("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new d("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("</>/<=/>=",7),bitShift:f("<</>>/>>>",8),plusMin:new d("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new d("**",{beforeExpr:!0}),coalesce:f("??",1),_break:b("break"),_case:b("case",m),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",m),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",m),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",y),_if:b("if"),_return:b("return",m),_switch:b("switch"),_throw:b("throw",m),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",y),_super:b("super",y),_class:b("class",y),_extends:b("extends",m),_export:b("export"),_import:b("import",y),_null:b("null",y),_true:b("true",y),_false:b("false",y),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},S=/\r\n?|\n|\u2028|\u2029/,v=RegExp(S.source,"g");function T(e){return 10===e||13===e||8232===e||8233===e}function E(e,t,r){void 0===r&&(r=e.length);for(var n=t;n<r;n++){var i=e.charCodeAt(n);if(T(i))return n<r-1&&13===i&&10===e.charCodeAt(n+1)?n+2:n+1}return -1}var k=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,w=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,A=Object.prototype,P=A.hasOwnProperty,C=A.toString,I=Object.hasOwn||function(e,t){return P.call(e,t)},_=Array.isArray||function(e){return"[object Array]"===C.call(e)},N=Object.create(null);function L(e){return N[e]||(N[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function O(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var D=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,M=function(e,t){this.line=e,this.column=t};M.prototype.offset=function(e){return new M(this.line,this.column+e)};var F=function(e,t,r){this.start=t,this.end=r,null!==e.sourceFile&&(this.source=e.sourceFile)};function j(e,t){for(var r=1,n=0;;){var i=E(e,n,t);if(i<0)return new M(r,t-n);++r,n=i}}var B={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},R=!1;function $(e,t){return 2|4*!!e|8*!!t}var U=function(e,t,r){this.options=e=function(e){var t,r,n={};for(var i in B)n[i]=e&&I(e,i)?e[i]:B[i];if("latest"===n.ecmaVersion?n.ecmaVersion=1e8:null==n.ecmaVersion?(!R&&"object"==typeof console&&console.warn&&(R=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),n.ecmaVersion=11):n.ecmaVersion>=2015&&(n.ecmaVersion-=2009),null==n.allowReserved&&(n.allowReserved=n.ecmaVersion<5),e&&null!=e.allowHashBang||(n.allowHashBang=n.ecmaVersion>=14),_(n.onToken)){var s=n.onToken;n.onToken=function(e){return s.push(e)}}if(_(n.onComment)&&(t=n,r=n.onComment,n.onComment=function(e,n,i,s,a,o){var l={type:e?"Block":"Line",value:n,start:i,end:s};t.locations&&(l.loc=new F(this,a,o)),t.ranges&&(l.range=[i,s]),r.push(l)}),"commonjs"===n.sourceType&&n.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return n}(e),this.sourceFile=e.sourceFile,this.keywords=L(a[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var n="";!0!==e.allowReserved&&(n=i[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(n+=" await")),this.reservedWords=L(n);var s=(n?n+" ":"")+i.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+i.strictBind),this.input=String(t),this.containsEsc=!1,this.pos=r||0,this.curLine=1,e.startLocation?(this.lineStart=this.pos-e.startLocation.column,this.curLine=e.startLocation.line):r?(this.lineStart=this.input.lastIndexOf("\n",r-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(S).length)):this.lineStart=0,this.type=x.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||!0===e.strict||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},V={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};U.prototype.parse=function(){var e=this,t=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return e.parseTopLevel(t)})},V.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},V.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},V.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},V.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},V.allowReturn.get=function(){return!!this.inFunction||!!this.options.allowReturnOutsideFunction&&!!(1&this.currentVarScope().flags)},V.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},V.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},V.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},V.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},V.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&(!!this.inModule||!(1&e))},V.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},U.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},U.parse=function(e,t){return new this(t,e).parse()},U.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},U.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(U.prototype,V);var q=U.prototype,K=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;q.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){w.lastIndex=e,e+=w.exec(this.input)[0].length;var t=K.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){w.lastIndex=e+t[0].length;var r=w.exec(this.input),n=r.index+r[0].length,i=this.input.charAt(n);return";"===i||"}"===i||S.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(n+1))}w.lastIndex=e+=t[0].length,e+=w.exec(this.input)[0].length,";"===this.input[e]&&e++}},q.eat=function(e){return this.type===e&&(this.next(),!0)},q.isContextual=function(e){return this.type===x.name&&this.value===e&&!this.containsEsc},q.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},q.catchStackOverflow=function(e){try{return e()}catch(e){if(e instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message)||/\btoo much recursion\b/i.test(e.message)))this.raise(this.start,"Not enough stack space to parse input");else throw e}},q.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},q.canInsertSemicolon=function(){return this.type===x.eof||this.type===x.braceR||S.test(this.input.slice(this.lastTokEnd,this.start))},q.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},q.semicolon=function(){this.eat(x.semi)||this.insertSemicolon()||this.unexpected()},q.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},q.expect=function(e){this.eat(e)||this.unexpected()},q.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var J=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};q.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,t?"Assigning to rvalue":"Parenthesized pattern")}},q.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},q.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},q.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var z=U.prototype;z.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==x.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,i=Object.keys(this.undefinedExports);n<i.length;n+=1){var s=i[n];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var W={kind:"loop"},X={kind:"switch"};z.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;w.lastIndex=this.pos;var t=w.exec(this.input),r=this.pos+t[0].length,n=this.fullCharCodeAt(r);if(91===n||92===n)return!0;if(e)return!1;if(123===n)return!0;if(p(n)){var i=r;do r+=n<=65535?1:2;while(h(n=this.fullCharCodeAt(r)))if(92===n)return!0;var s=this.input.slice(i,r);if(!o.test(s))return!0}return!1},z.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;w.lastIndex=this.pos;var e,t=w.exec(this.input),r=this.pos+t[0].length;return!S.test(this.input.slice(this.pos,r))&&"function"===this.input.slice(r,r+8)&&(r+8===this.input.length||!(h(e=this.fullCharCodeAt(r+8))||92===e))},z.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;w.lastIndex=this.pos;var r=w.exec(this.input),n=this.pos+r[0].length;if(S.test(this.input.slice(this.pos,n)))return!1;if(e){var i,s=n+5;if("using"!==this.input.slice(n,s)||s===this.input.length||h(i=this.fullCharCodeAt(s))||92===i)return!1;w.lastIndex=s;var a=w.exec(this.input);if(n=s+a[0].length,a&&S.test(this.input.slice(s,n)))return!1}var l=this.fullCharCodeAt(n);if(!p(l)&&92!==l)return!1;var u=n;do n+=l<=65535?1:2;while(h(l=this.fullCharCodeAt(n)))if(92===l)return!0;var c=this.input.slice(u,n);return!o.test(c)&&(!t||!!e||"of"!==c||(w.lastIndex=n,n+=w.exec(this.input)[0].length,61===this.input.charCodeAt(n)&&61!==(l=this.input.charCodeAt(n+1))&&62!==l))&&!0},z.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},z.isUsing=function(e){return this.isUsingKeyword(!1,e)},z.parseStatement=function(e,t,r){var n,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=x._var,n="let"),i){case x._break:case x._continue:return this.parseBreakContinueStatement(s,i.keyword);case x._debugger:return this.parseDebuggerStatement(s);case x._do:return this.parseDoStatement(s);case x._for:return this.parseForStatement(s);case x._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case x._class:return e&&this.unexpected(),this.parseClass(s,!0);case x._if:return this.parseIfStatement(s);case x._return:return this.parseReturnStatement(s);case x._switch:return this.parseSwitchStatement(s);case x._throw:return this.parseThrowStatement(s);case x._try:return this.parseTryStatement(s);case x._const:case x._var:return n=n||this.value,e&&"var"!==n&&this.unexpected(),this.parseVarStatement(s,n);case x._while:return this.parseWhileStatement(s);case x._with:return this.parseWithStatement(s);case x.braceL:return this.parseBlock(!0,s);case x.semi:return this.parseEmptyStatement(s);case x._export:case x._import:if(this.options.ecmaVersion>10&&i===x._import){w.lastIndex=this.pos;var a=w.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,this.parseExpression())}return!this.options.allowImportExportEverywhere&&(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===x._import?this.parseImport(s):this.parseExport(s,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var u=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(u)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),e&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),"await using"===u&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,u),this.semicolon(),this.finishNode(s,"VariableDeclaration");var c=this.value,p=this.parseExpression();if(i===x.name&&"Identifier"===p.type&&this.eat(x.colon))return this.parseLabeledStatement(s,c,p,e);return this.parseExpressionStatement(s,p)}},z.parseBreakContinueStatement=function(e,t){var r="break"===t;this.next(),this.eat(x.semi)||this.insertSemicolon()?e.label=null:this.type!==x.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var i=this.labels[n];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(r||"loop"===i.kind)||e.label&&r))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},z.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},z.parseDoStatement=function(e){return this.next(),this.labels.push(W),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(x._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(x.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},z.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===x._var||this.type===x._const||r){var n=this.startNode(),i=r?"let":this.value;return this.next(),this.parseVar(n,!0,i),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,t)}var s=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var u=this.containsEsc,c=new J,p=this.start,h=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===x._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===x._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(h.start!==p||u||"Identifier"!==h.type||"async"!==h.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,c),this.checkLValPattern(h),this.parseForIn(e,h)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,h))},z.parseForAfterInit=function(e,t,r){return(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.type===x._in?("using"!==t.kind&&"await using"!==t.kind||t.declarations[0].init||this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&r>-1&&this.unexpected(r)):this.options.ecmaVersion>=9&&(e.await=r>-1),this.parseForIn(e,t)):(r>-1&&this.unexpected(r),this.parseFor(e,t))},z.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,G|(r?0:Y),!1,t)},z.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},z.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},z.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(x.braceL),this.labels.push(X),this.enterScope(1024);for(var t,r=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var n=this.type===x._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect(x.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},z.parseThrowStatement=function(e){return this.next(),S.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var H=[];z.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(32*!!t),this.checkLValPattern(e,t?4:2),this.expect(x.parenR),e},z.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===x._catch){var t=this.startNode();this.next(),this.eat(x.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(x._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},z.parseVarStatement=function(e,t,r){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")},z.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(W),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},z.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},z.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},z.parseLabeledStatement=function(e,t,r,n){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(r.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===x._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,statementStart:this.start}),e.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},z.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},z.parseBlock=function(e,t,r){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(x.braceL),e&&this.enterScope(0);this.type!==x.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},z.parseFor=function(e,t){return e.init=t,this.expect(x.semi),e.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),e.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},z.parseForIn=function(e,t){var r=this.type===x._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!r||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(r?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},z.parseVar=function(e,t,r,n){for(e.declarations=[],e.kind=r;;){var i=this.startNode();if(this.parseVarId(i,r),this.eat(x.eq)?i.init=this.parseMaybeAssign(t):n||"const"!==r||this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"using"!==r&&"await using"!==r||!(this.options.ecmaVersion>=17)||this.type===x._in||this.isContextual("of")?n||"Identifier"===i.id.type||t&&(this.type===x._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+r+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(x.comma))break}return e},z.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var G=1,Y=2;function Q(e,t){var r=e.computed,n=e.key;return!r&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}z.parseFunction=function(e,t,r,n,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===x.star&&t&Y&&this.unexpected(),e.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&G&&(e.id=4&t&&this.type!==x.name?null:this.parseIdent(),e.id&&!(t&Y)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope($(e.async,e.generator)),t&G||(e.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&G?"FunctionDeclaration":"FunctionExpression")},z.parseFunctionParams=function(e){this.expect(x.parenL),e.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},z.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(x.braceL);this.type!==x.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var r=t.key.name,n=e[r],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===n&&"iset"===i||"iset"===n&&"iget"===i||"sget"===n&&"sset"===i||"sset"===n&&"sget"===i)?(e[r]="true",!1):!!n||(e[r]=i,!1)}(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=r,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},z.parseClassElement=function(e){if(this.eat(x.semi))return null;var t=this.options.ecmaVersion,r=this.startNode(),n="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(r),r;this.isClassElementNameStart()||this.type===x.star?o=!0:n="static"}if(r.static=o,!n&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?s=!0:n="async"),!n&&(t>=9||!s)&&this.eat(x.star)&&(i=!0),!n&&!s&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(r.computed=!1,r.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),r.key.name=n,this.finishNode(r.key,"Identifier")):this.parseClassElementName(r),t<13||this.type===x.parenL||"method"!==a||i||s){var u=!r.static&&Q(r,"constructor");u&&"method"!==a&&this.raise(r.key.start,"Constructor can't have get/set modifier"),r.kind=u?"constructor":a,this.parseClassMethod(r,i,s,u&&e)}else this.parseClassField(r);return r},z.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword},z.parseClassElementName=function(e){this.type===x.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},z.parseClassMethod=function(e,t,r,n){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),r&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Q(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,r,n);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},z.parseClassField=function(e){return Q(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Q(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},z.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==x.braceR;){var r=this.parseStatement(null);e.body.push(r)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},z.parseClassId=function(e,t){this.type===x.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},z.parseClassSuper=function(e){e.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null},z.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},z.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,r=e.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,i=0===n?null:this.privateNameStack[n-1],s=0;s<r.length;++s){var a=r[s];I(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},z.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},z.parseExport=function(e,t){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(e,t);if(this.eat(x._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var r=0,n=e.specifiers;r<n.length;r+=1){var i=n[r];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},z.parseExportDeclaration=function(e){return this.parseStatement(null)},z.parseExportDefaultDeclaration=function(){if(this.type===x._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|G,!1,e)}if(this.type===x._class){var r=this.startNode();return this.parseClass(r,"nullableID")}var n=this.parseMaybeAssign();return this.semicolon(),n},z.checkExport=function(e,t,r){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),I(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},z.checkPatternExport=function(e,t){var r=t.type;if("Identifier"===r)this.checkExport(e,t,t.start);else if("ObjectPattern"===r)for(var n=0,i=t.properties;n<i.length;n+=1){var s=i[n];this.checkPatternExport(e,s)}else if("ArrayPattern"===r)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===r?this.checkPatternExport(e,t.value):"AssignmentPattern"===r?this.checkPatternExport(e,t.left):"RestElement"===r&&this.checkPatternExport(e,t.argument)},z.checkVariableExport=function(e,t){if(e)for(var r=0;r<t.length;r+=1){var n=t[r];this.checkPatternExport(e,n.id)}},z.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},z.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},z.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect(x.braceL);!this.eat(x.braceR);){if(r)r=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;t.push(this.parseExportSpecifier(e))}return t},z.parseImport=function(e){return this.next(),this.type===x.string?(e.specifiers=H,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===x.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},z.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},z.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},z.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},z.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===x.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(x.comma)))return e;if(this.type===x.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(x.braceL);!this.eat(x.braceR);){if(t)t=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;e.push(this.parseImportSpecifier())}return e},z.parseWithClause=function(){var e=[];if(!this.eat(x._with))return e;this.expect(x.braceL);for(var t={},r=!0;!this.eat(x.braceR);){if(r)r=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;var n=this.parseImportAttribute(),i="Identifier"===n.key.type?n.key.name:n.key.value;I(t,i)&&this.raiseRecoverable(n.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(n)}return e},z.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===x.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(x.colon),this.type!==x.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},z.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===x.string){var e=this.parseLiteral(this.value);return D.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},z.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},z.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var Z=U.prototype;Z.toAssignable=function(e,t,r){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",r&&this.checkPatternErrors(r,!0);for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.toAssignable(s,t),"RestElement"===s.type&&("ArrayPattern"===s.argument.type||"ObjectPattern"===s.argument.type)&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",r&&this.checkPatternErrors(r,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,r);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else r&&this.checkPatternErrors(r,!0);return e},Z.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var i=e[n];i&&this.toAssignable(i,t)}if(r){var s=e[r-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},Z.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},Z.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==x.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},Z.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case x.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(x.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case x.braceL:return this.parseObj(!0)}return this.parseIdent()},Z.parseBindingList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(x.comma),t&&this.type===x.comma)i.push(null);else if(r&&this.afterTrailingComma(e))break;else if(this.type===x.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(n));return i},Z.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},Z.parseBindingListItem=function(e){return e},Z.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(x.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},Z.checkLValSimple=function(e,t,r){void 0===t&&(t=0);var n=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(n?"Binding ":"Assigning to ")+e.name+" in strict mode"),n&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),r&&(I(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":n&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return n&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,r);default:this.raise(e.start,(n?"Binding":"Assigning to")+" rvalue")}},Z.checkLValPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var n=0,i=e.properties;n<i.length;n+=1){var s=i[n];this.checkLValInnerPattern(s,t,r)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,r)}break;default:this.checkLValSimple(e,t,r)}},Z.checkLValInnerPattern=function(e,t,r){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,r);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,r);break;case"RestElement":this.checkLValPattern(e.argument,t,r);break;default:this.checkLValPattern(e,t,r)}};var ee=function(e,t,r,n,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!i},et={b_stat:new ee("{",!1),b_expr:new ee("{",!0),b_tmpl:new ee("${",!1),p_stat:new ee("(",!1),p_expr:new ee("(",!0),q_tmpl:new ee("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new ee("function",!1),f_expr:new ee("function",!0),f_expr_gen:new ee("function",!0,!1,null,!0),f_gen:new ee("function",!1,!1,null,!0)},er=U.prototype;er.initialContext=function(){return[et.b_stat]},er.curContext=function(){return this.context[this.context.length-1]},er.braceIsBlock=function(e){var t=this.curContext();return t===et.f_expr||t===et.f_stat||(e===x.colon&&(t===et.b_stat||t===et.b_expr)?!t.isExpr:e===x._return||e===x.name&&this.exprAllowed?S.test(this.input.slice(this.lastTokEnd,this.start)):e===x._else||e===x.semi||e===x.eof||e===x.parenR||e===x.arrow||(e===x.braceL?t===et.b_stat:e!==x._var&&e!==x._const&&e!==x.name&&!this.exprAllowed))},er.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},er.updateContext=function(e){var t,r=this.type;r.keyword&&e===x.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},er.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},x.parenR.updateContext=x.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===et.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},x.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?et.b_stat:et.b_expr),this.exprAllowed=!0},x.dollarBraceL.updateContext=function(){this.context.push(et.b_tmpl),this.exprAllowed=!0},x.parenL.updateContext=function(e){var t=e===x._if||e===x._for||e===x._with||e===x._while;this.context.push(t?et.p_stat:et.p_expr),this.exprAllowed=!0},x.incDec.updateContext=function(){},x._function.updateContext=x._class.updateContext=function(e){e.beforeExpr&&e!==x._else&&(e!==x.semi||this.curContext()===et.p_stat)&&!(e===x._return&&S.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==x.colon&&e!==x.braceL||this.curContext()!==et.b_stat)?this.context.push(et.f_expr):this.context.push(et.f_stat),this.exprAllowed=!1},x.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},x.backQuote.updateContext=function(){this.curContext()===et.q_tmpl?this.context.pop():this.context.push(et.q_tmpl),this.exprAllowed=!1},x.star.updateContext=function(e){if(e===x._function){var t=this.context.length-1;this.context[t]===et.f_expr?this.context[t]=et.f_expr_gen:this.context[t]=et.f_gen}this.exprAllowed=!0},x.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==x.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var en=U.prototype;en.checkPropClash=function(e,t,r){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var n,i=e.key;switch(i.type){case"Identifier":n=i.name;break;case"Literal":n=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===n&&"init"===s&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[n="$"+n];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[n]={init:!1,get:!1,set:!1},a[s]=!0}},en.parseExpression=function(e,t){var r=this;return this.catchStackOverflow(function(){var n=r.start,i=r.startLoc,s=r.parseMaybeAssign(e,t);if(r.type===x.comma){var a=r.startNodeAt(n,i);for(a.expressions=[s];r.eat(x.comma);)a.expressions.push(r.parseMaybeAssign(e,t));return r.finishNode(a,"SequenceExpression")}return s})},en.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var n=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new J,n=!0);var o=this.start,l=this.startLoc;(this.type===x.parenL||this.type===x.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,o,l)),this.type.isAssign){var c=this.startNodeAt(o,l);return c.operator=this.value,this.type===x.eq&&(u=this.toAssignable(u,!1,t)),n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===x.eq?this.checkLValPattern(u):this.checkLValSimple(u),c.left=u,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return n&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),u},en.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(("ArrowFunctionExpression"!==i.type||i.start!==r)&&this.eat(x.question)){var s=this.startNodeAt(r,n);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(x.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},en.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===r&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,r,n,-1,e)},en.parseExprOp=function(e,t,r,n,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==x._in)&&s>n){var a=this.type===x.logicalOR||this.type===x.logicalAND,o=this.type===x.coalesce;o&&(s=x.logicalAND.binop);var l=this.value;this.next();var u=this.start,c=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),u,c,s,i),h=this.buildBinary(t,r,e,p,l,a||o);return(a&&this.type===x.coalesce||o&&(this.type===x.logicalOR||this.type===x.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,i)}return e},en.buildBinary=function(e,t,r,n,i,s){"PrivateIdentifier"===n.type&&this.raise(n.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=r,a.operator=i,a.right=n,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},en.parseMaybeUnary=function(e,t,r,n){var i,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(n),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===x.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,n),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&function e(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==x.privateId){if(i=this.parseExprSubscripts(e,n),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var u=this.startNodeAt(s,a);u.operator=this.value,u.prefix=!1,u.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(u,"UpdateExpression")}}else(n||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==x._in&&this.unexpected();return!r&&("ArrowFunctionExpression"!==i.type||i.start!==s)&&this.eat(x.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,i,this.parseMaybeUnary(null,!1,!1,n),"**",!1):i},en.parseExprSubscripts=function(e,t){var r=this.start,n=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,r,n,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},en.parseSubscripts=function(e,t,r,n,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,r,n,s,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,r);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},en.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(x.arrow)},en.parseSubscriptAsyncArrow=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!0,n)},en.parseSubscript=function(e,t,r,n,i,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(x.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat(x.bracketL);if(u||l&&this.type!==x.parenL&&this.type!==x.backQuote||this.eat(x.dot)){var c=this.startNodeAt(t,r);c.object=e,u?(c.property=this.parseExpression(),this.expect(x.bracketR)):this.type===x.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!u,o&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat(x.parenL)){var p=new J,h=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1,p);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=d,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,r,m,a);this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var y=this.startNodeAt(t,r);y.callee=e,y.arguments=m,o&&(y.optional=l),e=this.finishNode(y,"CallExpression")}else if(this.type===x.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(t,r);g.tag=e,g.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(g,"TaggedTemplateExpression")}return e},en.parseExprAtom=function(e,t,r){this.type===x.slash&&this.readRegexp();var n,i=this.potentialArrowAt===this.start;switch(this.type){case x._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==x.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==x.dot&&this.type!==x.bracketL&&this.type!==x.parenL&&this.unexpected(),this.finishNode(n,"Super");case x._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case x.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(et.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===x.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case x.regexp:var u=this.value;return(n=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},n;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return(n=this.startNode()).value=this.type===x._null?null:this.type===x._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case x.parenL:var c=this.start,p=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(p)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),p;case x.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(x.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case x.braceL:return this.overrideContext(et.b_expr),this.parseObj(!1,e);case x._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(r);return this.unexpected();default:return this.parseExprAtomDefault()}},en.parseExprAtomDefault=function(){this.unexpected()},en.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!e)return this.parseDynamicImport(t);if(this.type===x.dot){var r=this.startNodeAt(t.start,t.loc&&t.loc.start);return r.name="import",t.meta=this.finishNode(r,"Identifier"),this.parseImportMeta(t)}this.unexpected()},en.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(x.parenR)?e.options=null:(this.expect(x.comma),this.afterTrailingComma(x.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),!this.eat(x.parenR)&&(this.expect(x.comma),this.afterTrailingComma(x.parenR)||this.unexpected())));else if(!this.eat(x.parenR)){var t=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},en.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},en.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},en.parseParenExpression=function(){this.expect(x.parenL);var e=this.parseExpression();return this.expect(x.parenR),e},en.shouldParseArrow=function(e){return!this.canInsertSemicolon()},en.parseParenAndDistinguishExpression=function(e,t){var r,n=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,u=[],c=!0,p=!1,h=new J,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;){if(c?c=!1:this.expect(x.comma),s&&this.afterTrailingComma(x.parenR,!0)){p=!0;break}if(this.type===x.ellipsis){a=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(x.parenR),e&&this.shouldParseArrow(u)&&this.eat(x.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(n,i,u,t);(!u.length||p)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,u.length>1?((r=this.startNodeAt(o,l)).expressions=u,this.finishNodeAt(r,"SequenceExpression",m,y)):r=u[0]}else r=this.parseParenExpression();if(!this.options.preserveParens)return r;var g=this.startNodeAt(n,i);return g.expression=r,this.finishNode(g,"ParenthesizedExpression")},en.parseParenItem=function(e){return e},en.parseParenArrowList=function(e,t,r,n){return this.parseArrowExpression(this.startNodeAt(e,t),r,!1,n)};var ei=[];en.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var r=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var n=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,i,!0,!1),"Super"===e.callee.type&&this.raiseRecoverable(n,"Invalid use of 'super'"),this.eat(x.parenL)?e.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ei,this.finishNode(e,"NewExpression")},en.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===x.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),r.tail=this.type===x.backQuote,this.finishNode(r,"TemplateElement")},en.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(x.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},en.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!S.test(this.input.slice(this.lastTokEnd,this.start))},en.parseObj=function(e,t){var r=this.startNode(),n=!0,i={};for(r.properties=[],this.next();!this.eat(x.braceR);){if(n)n=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),r.properties.push(s)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},en.parseProperty=function(e,t){var r,n,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===x.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(r=this.eat(x.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(a)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,e,r,n,i,s,t,o),this.finishNode(a,"Property")},en.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var r=+("get"!==e.kind);if(e.value.params.length!==r){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},en.parsePropertyValue=function(e,t,r,n,i,s,a,o){(r||n)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(r,n),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===x.comma||this.type===x.braceR||this.type===x.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===x.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((r||n)&&this.unexpected(),this.parseGetterSetter(e))},en.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(x.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(x.bracketR),e.key;else e.computed=!1;return e.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},en.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},en.parseMethod=function(e,t,r){var n=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|$(t,n.generator)|128*!!r),this.expect(x.parenL),n.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},en.parseArrowExpression=function(e,t,r,n){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|$(r,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,n),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},en.parseFunctionBody=function(e,t,r,n){var i=t&&this.type!==x.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(n),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},en.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},en.checkParams=function(e,t){for(var r=Object.create(null),n=0,i=e.params;n<i.length;n+=1){var s=i[n];this.checkLValInnerPattern(s,1,t?null:r)}},en.parseExprList=function(e,t,r,n){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(x.comma),t&&this.afterTrailingComma(e))break;var a=void 0;r&&this.type===x.comma?a=null:this.type===x.ellipsis?(a=this.parseSpread(n),n&&this.type===x.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):a=this.parseMaybeAssign(!1,n),i.push(a)}return i},en.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;this.inGenerator&&"yield"===n&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===n&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==n||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===n||"await"===n)&&this.raise(t,"Cannot use "+n+" in class static initialization block"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,r).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(n)&&(this.inAsync||"await"!==n||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))},en.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),!e&&(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},en.parseIdentNode=function(){var e=this.startNode();return this.type===x.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=x.name):this.unexpected(),e},en.parsePrivateIdent=function(){var e=this.startNode();return this.type===x.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},en.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===x.semi||this.canInsertSemicolon()||this.type!==x.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(x.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},en.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var es=U.prototype;es.raise=function(e,t){var r=j(this.input,e);t+=" ("+r.line+":"+r.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var n=SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},es.raiseRecoverable=es.raise,es.curPosition=function(){if(this.options.locations)return new M(this.curLine,this.pos-this.lineStart)};var ea=U.prototype,eo=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};ea.enterScope=function(e){this.scopeStack.push(new eo(e))},ea.exitScope=function(){this.scopeStack.pop()},ea.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ea.declareName=function(e,t,r){var n=!1;if(2===t){var i=this.currentScope();n=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();n=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){n=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},ea.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ea.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ea.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},ea.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var el=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new F(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},eu=U.prototype;function ec(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}eu.startNode=function(){return new el(this,this.start,this.startLoc)},eu.startNodeAt=function(e,t){return new el(this,e,t)},eu.finishNode=function(e,t){return ec.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},eu.finishNodeAt=function(e,t,r,n){return ec.call(this,e,t,r,n)},eu.copyNode=function(e){var t=new el(this,e.start,this.startLoc);for(var r in e)t[r]=e[r];return t};for(var ep="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",eh=ep+" Extended_Pictographic",ed=eh+" EBase EComp EMod EPres ExtPict",ef={9:ep,10:eh,11:eh,12:ed,13:ed,14:ed},em={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},ey="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",eg="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",eb=eg+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ex=eb+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",eS=ex+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ev=eS+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",eT={9:eg,10:eb,11:ex,12:eS,13:ev,14:ev+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},eE={},ek=0,ew=[9,10,11,12,13,14];ek<ew.length;ek+=1)!function(e){var t=eE[e]={binary:L(ef[e]+" "+ey),binaryOfStrings:L(em[e]),nonBinary:{General_Category:L(ey),Script:L(eT[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}(ew[ek]);var eA=U.prototype,eP=function(e,t){this.parent=e,this.base=t||this};eP.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var r=e;r;r=r.parent)if(t.base===r.base&&t!==r)return!0;return!1},eP.prototype.sibling=function(){return new eP(this.parent,this.base)};var eC=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=eE[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function eI(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function e_(e){return e>=65&&e<=90||e>=97&&e<=122}function eN(e){return e_(e)||95===e}function eL(e){return e>=48&&e<=57}function eO(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function eD(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function eM(e){return e>=48&&e<=55}eC.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("v"),i=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},eC.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},eC.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return -1;var i=r.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=n)return i;var s=r.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-0x35fdc00:i},eC.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var i,s=r.charCodeAt(e);return!(t||this.switchU)||s<=55295||s>=57344||e+1>=n||(i=r.charCodeAt(e+1))<56320||i>57343?e+1:e+2},eC.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},eC.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},eC.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},eC.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},eC.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var r=this.pos,n=0;n<e.length;n+=1){var i=e[n],s=this.at(r,t);if(-1===s||s!==i)return!1;r=this.nextIndex(r,t)}return this.pos=r,!0},eA.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=!1,i=!1,s=0;s<r.length;s++){var a=r.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&n&&i&&this.raise(e.start,"Invalid regular expression flag")},eA.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},eA.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames[n]||e.raise("Invalid named capture referenced")}},eA.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new eP(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},eA.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},eA.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},eA.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},eA.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},eA.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},eA.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},eA.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},eA.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},eA.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var r=this.regexp_eatModifiers(e),n=e.eat(45);if(r||n){for(var i=0;i<r.length;i++){var s=r.charAt(i);r.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(n){var a=this.regexp_eatModifiers(e);r||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||r.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},eA.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},eA.regexp_eatModifiers=function(e){for(var t,r="",n=0;-1!==(n=e.current())&&(105===(t=n)||109===t||115===t);)r+=O(n),e.advance();return r},eA.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},eA.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},eA.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!eI(t)&&(e.lastIntValue=t,e.advance(),!0)},eA.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;-1!==(r=e.current())&&!eI(r);)e.advance();return e.pos!==t},eA.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return -1!==t&&36!==t&&(!(t>=40)||!(t<=43))&&46!==t&&63!==t&&91!==t&&94!==t&&124!==t&&(e.advance(),!0)},eA.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,r=e.groupNames[e.lastStringValue];if(r)if(t)for(var n=0;n<r.length;n+=1)r[n].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(r||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},eA.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},eA.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=O(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=O(e.lastIntValue);return!0}return!1},eA.regexp_eatRegExpIdentifierStart=function(e){var t,r=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return(e.advance(n),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),p(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=r,!1)},eA.regexp_eatRegExpIdentifierPart=function(e){var t,r=e.pos,n=this.options.ecmaVersion>=11,i=e.current(n);return(e.advance(n),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(i=e.lastIntValue),h(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=r,!1)},eA.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},eA.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},eA.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},eA.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},eA.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},eA.regexp_eatZero=function(e){return!(48!==e.current()||eL(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},eA.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},eA.regexp_eatControlLetter=function(e){var t=e.current();return!!e_(t)&&(e.lastIntValue=t%32,e.advance(),!0)},eA.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,s=e.lastIntValue;if(n&&s>=55296&&s<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(s-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},eA.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return 99!==t&&(!e.switchN||107!==t)&&(e.lastIntValue=t,e.advance(),!0)},eA.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57)return!0}return!1},eA.regexp_eatCharacterClassEscape=function(e){var t,r,n=e.current();if(100===(t=n)||68===t||115===t||83===t||119===t||87===t)return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===n)||112===n)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},eA.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},eA.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){I(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},eA.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},eA.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";eN(t=e.current());)e.lastStringValue+=O(t),e.advance();return""!==e.lastStringValue},eA.regexp_eatUnicodePropertyValue=function(e){var t,r=0;for(e.lastStringValue="";eN(t=r=e.current())||eL(t);)e.lastStringValue+=O(r),e.advance();return""!==e.lastStringValue},eA.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},eA.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),r=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===r&&e.raise("Negated character class may contain strings"),!0}return!1},eA.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},eA.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(-1===t||-1===r)&&e.raise("Invalid character class"),-1!==t&&-1!==r&&t>r&&e.raise("Range out of order in character class")}}},eA.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(99===r||eM(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return 93!==n&&(e.lastIntValue=n,e.advance(),!0)},eA.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},eA.regexp_classSetExpression=function(e){var t,r=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(r=2);for(var n=e.pos;e.eatChars([38,38]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(r=1);continue}e.raise("Invalid character in character class")}if(n!==e.pos)return r;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(n!==e.pos)return r}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return r;2===t&&(r=2)}},eA.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;return -1!==r&&-1!==n&&r>n&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},eA.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},eA.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var r=e.eat(94),n=this.regexp_classContents(e);if(e.eat(93))return r&&2===n&&e.raise("Negated character class may contain strings"),n;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},eA.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var r=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return r}else e.raise("Invalid escape");e.pos=t}return null},eA.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},eA.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},eA.regexp_eatClassSetCharacter=function(e){var t,r,n=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=n,!1));var i=e.current();return!(i<0||i===e.lookahead()&&(33===(t=i)||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t)||40===(r=i)||41===r||45===r||47===r||r>=91&&r<=93||r>=123&&r<=125)&&(e.advance(),e.lastIntValue=i,!0)},eA.regexp_eatClassSetReservedPunctuator=function(e){var t,r=e.current();return!!(33===(t=r)||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=r,e.advance(),!0)},eA.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!eL(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},eA.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},eA.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;eL(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},eA.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;eO(r=e.current());)e.lastIntValue=16*e.lastIntValue+eD(r),e.advance();return e.pos!==t},eA.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*r+e.lastIntValue:e.lastIntValue=8*t+r}else e.lastIntValue=t;return!0}return!1},eA.regexp_eatOctalDigit=function(e){var t=e.current();return eM(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},eA.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var i=e.current();if(!eO(i))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+eD(i),e.advance()}return!0};var eF=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new F(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},ej=U.prototype;function eB(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}ej.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new eF(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ej.getToken=function(){return this.next(),new eF(this)},"u">typeof Symbol&&(ej[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===x.eof,value:t}}}}),ej.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(x.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},ej.readToken=function(e){return p(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},ej.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var r=this.input.charCodeAt(e+1);return r<=56319||r>=57344?t:(t<<10)+r-0x35fdc00},ej.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},ej.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n=void 0,i=t;(n=E(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},ej.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!T(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},ej.skipSpace=function(){r:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break r}break;default:if(e>8&&e<14||e>=5760&&k.test(String.fromCharCode(e)))++this.pos;else break r}}},ej.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},ej.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(x.ellipsis)):(++this.pos,this.finishToken(x.dot))},ej.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(x.assign,2):this.finishOp(x.slash,1)},ej.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=42===e?x.star:x.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++r,n=x.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(x.assign,r+1):this.finishOp(n,r)},ej.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(124===e?x.logicalOR:x.logicalAND,2);return 61===t?this.finishOp(x.assign,2):this.finishOp(124===e?x.bitwiseOR:x.bitwiseAND,1)},ej.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)},ej.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45===t&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||S.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):61===t?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)},ej.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+r))?this.finishOp(x.assign,r+1):this.finishOp(x.bitShift,r):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(r=2),this.finishOp(x.relational,r)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ej.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(x.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(61===e?x.eq:x.prefix,1)},ej.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp(x.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(x.coalesce,2)}return this.finishOp(x.question,1)},ej.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,p(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+O(t)+"'")},ej.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+O(e)+"'")},ej.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},ej.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(S.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var i=this.input.slice(r,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new eC(this));o.reset(r,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(x.regexp,{pattern:i,flags:a,value:l})},ej.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&void 0===t,i=r&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,u=null==t?1/0:t;l<u;++l,++this.pos){var c=this.input.charCodeAt(this.pos),p=void 0;if(n&&95===c){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if((p=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;o=c,a=a*e+p}return(n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t)?null:a},ej.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r=eB(this.input.slice(t,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,r)},ej.readNumber=function(e){var t,r=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(r,"Invalid number");var n=this.pos-r>=2&&48===this.input.charCodeAt(r);n&&this.strict&&this.raise(r,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===i){var s=eB(this.input.slice(r,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,s)}n&&/[89]/.test(this.input.slice(r,this.pos))&&(n=!1),46!==i||n||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||n||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(r,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(r,this.pos),n?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(x.num,a)},ej.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},ej.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(T(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(x.string,t)};var eR={};ej.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===eR)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},ej.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw eR;this.raise(e,t)},ej.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate))if(36===r)return this.pos+=2,this.finishToken(x.dollarBraceL);else return++this.pos,this.finishToken(x.backQuote);return e+=this.input.slice(t,this.pos),this.finishToken(x.template,e)}if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(T(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},ej.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(x.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},ej.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return O(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;this.invalidStringToken(r,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(n,8);return i>255&&(i=parseInt(n=n.slice(0,-1),8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),("0"!==n||56===t||57===t)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}if(T(t))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(t)}},ej.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return null===r&&this.invalidStringToken(t,"Bad character escape sequence"),r},ej.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(h(i,n))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?p:h)(a,n)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=O(a),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)},ej.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=g[e]),this.finishToken(t,e)};var e$="8.18.0";U.acorn={Parser:U,version:e$,defaultOptions:B,Position:M,SourceLocation:F,getLineInfo:j,Node:el,TokenType:d,tokTypes:x,keywordTypes:g,TokContext:ee,tokContexts:et,isIdentifierChar:h,isIdentifierStart:p,Token:eF,isNewLine:T,lineBreak:S,lineBreakG:v,nonASCIIwhitespace:k},e.Node=el,e.Parser=U,e.Position=M,e.SourceLocation=F,e.TokContext=ee,e.Token=eF,e.TokenType=d,e.defaultOptions=B,e.getLineInfo=j,e.isIdentifierChar=h,e.isIdentifierStart=p,e.isNewLine=T,e.keywordTypes=g,e.lineBreak=S,e.lineBreakG=v,e.nonASCIIwhitespace=k,e.parse=function(e,t){return U.parse(e,t)},e.parseExpressionAt=function(e,t,r){return U.parseExpressionAt(e,t,r)},e.tokContexts=et,e.tokTypes=x,e.tokenizer=function(e,t){return U.tokenizer(e,t)},e.version=e$}(t)},3144(e,t,r){"use strict";var n=r(6743),i=r(1002),s=r(76);e.exports=r(7119)||n.call(s,i)},2205(e,t,r){"use strict";var n=r(6743),i=r(1002),s=r(3144);e.exports=function(){return s(n,i,arguments)}},1002(e){"use strict";e.exports=Function.prototype.apply},76(e){"use strict";e.exports=Function.prototype.call},745(e,t,r){"use strict";var n=r(6743),i=r(9675),s=r(76),a=r(3144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,s,e)}},7119(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},487(e,t,r){"use strict";var n=r(6897),i=r(655),s=r(745),a=r(2205);e.exports=function(e){var t=s(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},6556(e,t,r){"use strict";var n=r(453),i=r(745),s=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&s(e,".prototype.")>-1?i([r]):r}},4299(e){"use strict";let t=(e,...r)=>{if(function(e){if("function"!=typeof e)throw Error("fn should be function!")}(e),r.length>=e.length)return e(...r);let n=(...n)=>t(e,...r,...n);return[function(e){return n(...arguments)},function(e,t){return n(...arguments)},function(e,t,r){return n(...arguments)},function(e,t,r,i){return n(...arguments)},function(e,t,r,i,s){return n(...arguments)}][e.length-r.length-1]||n};e.exports=t},41(e,t,r){"use strict";var n=r(655),i=r(8068),s=r(9675),a=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new s("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],p=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&p?p.configurable:!u,enumerable:null===o&&p?p.enumerable:!o,value:r,writable:null===l&&p?p.writable:!l});else if(!c&&(o||l||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},7176(e,t,r){"use strict";var n,i=r(745),s=r(5795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&s&&s(Object.prototype,"__proto__"),o=Object,l=o.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof l&&function(e){return l(null==e?e:o(e))}},7411(e){"use strict";function t(){if(!(this instanceof t))return new t;this._all={}}function r(e){if("string"!=typeof e)throw Error("event should be string!")}function n(e,t){r(e);if("function"!=typeof t)throw Error("callback should be function!")}e.exports=t,t.prototype.on=function(e,t){let r=this._all[e];return n(e,t),r?r.push(t):this._all[e]=[t],this},t.prototype.addListener=t.prototype.on,t.prototype.once=function(e,t){let r=this;return n(e,t),this.on(e,function n(...i){t(...i),r.off(e,n)}),this},t.prototype.off=function(e,t){let r=this._all[e]||[],i=r.indexOf(t);for(n(e,t);~i;)r.splice(i,1),i=r.indexOf(t);return this},t.prototype.removeListener=t.prototype.off,t.prototype.emit=function(e,...t){let n=this._all[e];if(r(e),!n&&"error"===e)throw t[0];if(!n)return this;for(let e of n)e(...t);return this},t.prototype.removeAllListeners=function(e){return r(e),this._all[e]=[],this}},655(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},1237(e){"use strict";e.exports=EvalError},9383(e){"use strict";e.exports=Error},9290(e){"use strict";e.exports=RangeError},9538(e){"use strict";e.exports=ReferenceError},8068(e){"use strict";e.exports=SyntaxError},9675(e){"use strict";e.exports=TypeError},5345(e){"use strict";e.exports=URIError},9612(e){"use strict";e.exports=Object},7007(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(r,n){var i,s,a;function o(r){e.removeListener(t,l),n(r)}function l(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}m(e,t,l,{once:!0}),"error"!==t&&(i=e,s=o,a={once:!0},"function"==typeof i.on&&m(i,"error",s,a))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function o(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){if(o(r),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]),void 0===a)a=s[t]=r,++e._eventsCount;else if("function"==typeof a?a=s[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,s,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):f(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function f(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(s){n.once&&e.removeEventListener(t,i),r(s)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),s.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,o=Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var u=l.length,c=f(l,u),r=0;r<u;++r)n(c[r],this,t);return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return o(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,s,a;if(o(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){a=r[s].listener,i=s;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,s=Object.keys(r);for(n=0;n<s.length;++n)"removeListener"!==(i=s[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},9168(e){!function(t){"use strict";function r(){var e=Array.prototype.slice,t=function(t){var r,n="function"==typeof t,i=e.call(arguments,1);return n&&(r=t.apply(null,i)),r};return t.with=function(e){var t=Array.prototype.slice,r=t.call(arguments,1);return function(){var n=t.call(arguments),i=r.concat(n);return e.apply(null,i)}},t.ret=function(){var r=e.call(arguments);return r.unshift(t),t.with.apply(null,r)},t.if=function(e,r,n){var i;return e?t(r):t(n,r),i},t.ifExist=function(e,t,r){var n,i=e&&e[t];return i&&(i=i.apply(e,r)),n},t.parallel=function(r,n){var i,s,a="could not be empty!",o=[],l=!1,u=[],c=0,p=0,h=(i=r,s=RegExp("\\s([a-zA-Z]+)"),({}).toString.call(i).match(s)[1].toLowerCase());if(!r)throw Error("funcs "+a);if(!n)throw Error("callback "+a);switch(h){case"array":p=r.length,r.forEach(function(e,r){t(e,function(){d(r,arguments)})});break;case"object":p=(o=Object.keys(r)).length,o.forEach(function(e){t(r[e],function(){d(e,arguments)})})}function d(t,r){var i=e.call(r,1),s=!1,a=r[0],o=i.length;s=++c===p,a||(o>=2?u[t]=i:u[t]=i[0]),!l&&(a||s)&&(l=!0,"array"===h?n.apply(null,[a].concat(u)):n(a,u))}},t.series=function(e,r){var n=e.length,i=function(e){var i;return--n&&!e||(i=!0,t(r,e)),i};if(!Array.isArray(e))throw Error("funcs should be array!");t(e.shift(),function(n){i(n)||t.series(e,r)})},t.each=function(e,r,n){var i=e.map(function(e){return r.bind(null,e)});i.length?t.parallel(i,n):n()},t.eachSeries=function(e,r,n){var i=e.map(function(e){return r.bind(null,e)});if("function"!=typeof n)throw Error("callback should be function");i.length?t.series(i,n):n()},t.try=function(e){var t;try{t=e()}catch(e){t=e}return t},t}e.exports?e.exports=new r:t.exec=new r}(this)},2849(e){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,i=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!s)return!1;for(n in e);return void 0===n||t.call(e,n)},o=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;else if(i)return i(e,r).value}return e[r]};e.exports=function e(){var t,r,n,i,u,c,p=arguments[0],h=1,d=arguments.length,f=!1;for("boolean"==typeof p&&(f=p,p=arguments[1]||{},h=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});h<d;++h)if(t=arguments[h],null!=t)for(r in t)n=l(p,r),p!==(i=l(t,r))&&(f&&i&&(a(i)||(u=s(i)))?(u?(u=!1,c=n&&s(n)?n:[]):c=n&&a(n)?n:{},o(p,{name:r,newValue:e(f,c,i)})):void 0!==i&&o(p,{name:r,newValue:i}));return p}},2682(e,t,r){"use strict";var n=r(9600),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)s.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},o=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)s.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))};e.exports=function(e,t,r){var s;if(!n(t))throw TypeError("iterator must be a function");(arguments.length>=3&&(s=r),"[object Array]"===i.call(e))?a(e,t,s):"string"==typeof e?o(e,t,s):l(e,t,s)}},6311(e){var t;function r(e){for(var t,r,n,i,s=1,a=[].slice.call(arguments),o=0,l=e.length,u="",c=!1,p=!1,h=function(){return a[s++]};o<l;++o)if(t=e[o],c)switch(c=!1,"."==t?(p=!1,t=e[++o]):"0"==t&&"."==e[o+1]?(p=!0,o+=2,t=e[o]):p=!0,i=function(){for(var r="";/\d/.test(e[o]);)r+=e[o++],t=e[o];return r.length>0?parseInt(r):null}(),t){case"b":u+=parseInt(h(),10).toString(2);break;case"c":"string"==typeof(r=h())||r instanceof String?u+=r:u+=String.fromCharCode(parseInt(r,10));break;case"d":u+=parseInt(h(),10);break;case"f":n=String(parseFloat(h()).toFixed(i||6)),u+=p?n:n.replace(/^0/,"");break;case"j":u+=JSON.stringify(h());break;case"o":u+="0"+parseInt(h(),10).toString(8);break;case"s":u+=h();break;case"x":u+="0x"+parseInt(h(),10).toString(16);break;case"X":u+="0x"+parseInt(h(),10).toString(16).toUpperCase();break;default:u+=t}else"%"===t?c=!0:u+=t;return u}(t=e.exports=r).format=r,t.vsprintf=function(e,t){return r.apply(null,[e].concat(t))},"u">typeof console&&"function"==typeof console.log&&(t.printf=function(){console.log(r.apply(null,arguments))})},9353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},s=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw TypeError("Function.prototype.bind called on incompatible "+o);for(var l=i(arguments,1),u=r(0,o.length-l.length),c=[],p=0;p<u;p++)c[p]="$"+p;if(a=Function("binder","return function ("+s(c,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=o.apply(this,n(l,arguments));return Object(t)===t?t:this}return o.apply(e,n(l,arguments))}),o.prototype){var h=function(){};h.prototype=o.prototype,a.prototype=new h,h.prototype=null}return a}},6743(e,t,r){"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},4233(e){"use strict";let t=(function*(){}).constructor;e.exports=()=>t},453(e,t,r){"use strict";var n,i=r(9612),s=r(9383),a=r(1237),o=r(9290),l=r(9538),u=r(8068),c=r(9675),p=r(5345),h=r(1514),d=r(8968),f=r(6188),m=r(8002),y=r(5880),g=r(414),b=r(3093),x=Function,S=function(e){try{return x('"use strict"; return ('+e+").constructor;")()}catch(e){}},v=r(5795),T=r(655),E=function(){throw new c},k=v?function(){try{return arguments.callee,E}catch(e){try{return v(arguments,"callee").get}catch(e){return E}}}():E,w=r(4039)(),A=r(3628),P=r(1064),C=r(8648),I=r(1002),_=r(76),N={},L="u">typeof Uint8Array&&A?A(Uint8Array):n,O={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":s,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":N,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&w&&A?A(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":v,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":l,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&w&&A?A(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&A?A(""[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":k,"%TypedArray%":L,"%TypeError%":c,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":p,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":I,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":P,"%Math.abs%":h,"%Math.floor%":d,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":C};if(A)try{null.error}catch(e){var D=A(A(e));O["%Error.prototype%"]=D}var M=function e(t){var r;if("%AsyncFunction%"===t)r=S("async function () {}");else if("%GeneratorFunction%"===t)r=S("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=S("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(r=A(i.prototype))}return O[t]=r,r},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},j=r(6743),B=r(9957),R=j.call(_,Array.prototype.concat),$=j.call(I,Array.prototype.splice),U=j.call(_,String.prototype.replace),V=j.call(_,String.prototype.slice),q=j.call(_,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,z=function(e){var t=V(e,0,1),r=V(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return U(e,K,function(e,t,r,i){n[n.length]=r?U(i,J,"$1"):t||e}),n},W=function(e,t){var r,n=e;if(B(F,n)&&(n="%"+(r=F[n])[0]+"%"),B(O,n)){var i=O[n];if(i===N&&(i=M(n)),void 0===i&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(e),n=r.length>0?r[0]:"",i=W("%"+n+"%",t),s=i.name,a=i.value,o=!1,l=i.alias;l&&(n=l[0],$(r,R([0,1],l)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],f=V(d,0,1),m=V(d,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(o=!0),n+="."+d,B(O,s="%"+n+"%"))a=O[s];else if(null!=a){if(!(d in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(v&&p+1>=r.length){var y=v(a,d);a=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[d]}else h=B(a,d),a=a[d];h&&!o&&(O[s]=a)}}return a}},1064(e,t,r){"use strict";e.exports=r(9612).getPrototypeOf||null},8648(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},3628(e,t,r){"use strict";var n=r(8648),i=r(1064),s=r(7176);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:s?function(e){return s(e)}:null},6549(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},5795(e,t,r){"use strict";var n=r(6549);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592(e,t,r){"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},4039(e,t,r){"use strict";var n="u">typeof Symbol&&Symbol,i=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1333(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},9092(e,t,r){"use strict";var n=r(1333);e.exports=function(){return n()&&!!Symbol.toStringTag}},9957(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(6743).call(n,i)},6698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7244(e,t,r){"use strict";var n=r(9092)(),i=r(6556)("Object.prototype.toString"),s=function(e){return(!n||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===i(e)},a=function(e){return!!s(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"callee"in e&&"[object Function]"===i(e.callee)},o=function(){return s(arguments)}();s.isLegacyArguments=a,e.exports=o?s:a},9600(e){"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,t)}catch(e){e!==r&&(i=null)}else i=null;var s=/^\s*class\b/,a=function(e){try{var t=n.call(e);return s.test(t)}catch(e){return!1}},o=function(e){try{if(a(e))return!1;return n.call(e),!0}catch(e){return!1}},l=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),p=function(){return!1};if("object"==typeof document){var h=document.all;l.call(h)===l.call(document.all)&&(p=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(p(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&o(e)}:function(e){if(p(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return o(e);if(a(e))return!1;var t=l.call(e);return("[object Function]"===t||"[object GeneratorFunction]"===t||!!/^\[object HTML/.test(t))&&o(e)}},8184(e,t,r){"use strict";var n=r(6556),i=r(9721)(/^\s*(?:function)?\*/),s=r(9092)(),a=r(3628),o=n("Object.prototype.toString"),l=n("Function.prototype.toString"),u=r(4233);e.exports=function(e){if("function"!=typeof e)return!1;if(i(l(e)))return!0;if(!s)return"[object GeneratorFunction]"===o(e);if(!a)return!1;var t=u();return t&&a(e)===t.prototype}},4035(e,t,r){"use strict";var n,i=r(6556),s=r(9092)(),a=r(9957),o=r(5795);if(s){var l=i("RegExp.prototype.exec"),u={},c=function(){throw u},p={toString:c,valueOf:c};"symbol"==typeof Symbol.toPrimitive&&(p[Symbol.toPrimitive]=c),n=function(e){if(!e||"object"!=typeof e)return!1;var t=o(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,p)}catch(e){return e===u}}}else{var h=i("Object.prototype.toString");n=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"[object RegExp]"===h(e)}}e.exports=n},5680(e,t,r){"use strict";var n=r(5767);e.exports=function(e){return!!n(e)}},2515(e){"use strict";for(let n of(e.exports=t,["null","arrayBuffer","file","array","object"]))t[n]=r.bind(null,n);for(let e of["string","undefined","boolean","number","function"])t[e]=n.bind(null,e);function t(e){return({}).toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function r(e,r){return t(r)===e}function n(e,t){return typeof t===e}},1115(e,t,r){"use strict";let n=r(2960),{parse:i,stringify:s}=JSON;e.exports.q=(...e)=>{let[,t]=n(i,...e);return t},e.exports.A=(...e)=>{let[,t]=n(s,...e);return t}},7159(e){"use strict";let t={},r=t.hasOwnProperty,n=(e,t)=>{for(let n in e)r.call(e,n)&&t(n,e[n])},i=e=>"\\u"+("0000"+e).slice(-4),s=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},a=t.toString,o=Array.isArray,l={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},u=/[\\\b\f\n\r\t]/,c=/[0-9]/,p=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,f=(e,t)=>{let r,m,y=()=>{E=T,++t.indentLevel,T=t.indent.repeat(t.indentLevel)},g={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},b=t&&t.json;b&&(g.quotes="double",g.wrap=!0),"single"!=(!(O=t)||n(O,(e,t)=>{g[e]=t}),t=g).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let x="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,v=t.lowercaseHex,T=t.indent.repeat(t.indentLevel),E="",k=t.__inline1__,w=t.__inline2__,A=S?"":"\n",P=!0,C="binary"==t.numbers,I="octal"==t.numbers,_="decimal"==t.numbers,N="hexadecimal"==t.numbers;if(b&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(m=e)&&"[object String]"!=a.call(m)){let i,s,l,u;if(i=e,"[object Map]"==a.call(i))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+f(Array.from(e),t)+")");if(s=e,"[object Set]"==a.call(s))return 0==e.size?"new Set()":"new Set("+f(Array.from(e),t)+")";if(l=e,"function"==typeof Buffer&&Buffer.isBuffer(l))return 0==e.length?"Buffer.from([])":"Buffer.from("+f(Array.from(e),t)+")";if(o(e)){r=[],t.wrap=!0,k&&(t.__inline1__=!1,t.__inline2__=!0),w||y();var L,O,D=e;let n=D.length,i=-1;for(;++i<n;){L=D[i],P=!1,w&&(t.__inline2__=!1),r.push((S||w?"":T)+f(L,t))}return P?"[]":w?"["+r.join(", ")+"]":"["+A+r.join(","+A)+A+(S?"":E)+"]"}if("number"==typeof(u=e)||"[object Number]"==a.call(u)||"bigint"==typeof e){let t;if(b)return JSON.stringify(Number(e));if(_)t=String(e);else if(N){let r=e.toString(16);v||(r=r.toUpperCase()),t="0x"+r}else C?t="0b"+e.toString(2):I&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}{let i;if("bigint"==typeof e)return b?JSON.stringify(Number(e)):e+"n";return(i=e,"[object Object]"==a.call(i))?(r=[],t.wrap=!0,y(),n(e,(e,n)=>{P=!1,r.push((S?"":T)+f(e,t)+":"+(S?"":" ")+f(n,t))}),P)?"{}":"{"+A+r.join(","+A)+A+(S?"":E)+"}":b?JSON.stringify(e)||"null":String(e)}}let M=t.escapeEverything?h:d;return r=e.replace(M,(e,r,n,a,o,h)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+s((e-55296)*1024+n-56320+65536,v)+"}":i(s(e,v))+i(s(n,v))}if(n)return i(s(n.charCodeAt(0),v));if("\0"==e&&!b&&!c.test(h.charAt(o+1)))return"\\0";if(a)return a==x||t.escapeEverything?"\\"+a:a;if(u.test(e))return l[e];if(t.minimal&&!p.test(e))return e;let d=s(e.charCodeAt(0),v);return b||d.length>2?i(d):"\\x"+("00"+d).slice(-2)}),"`"==x&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,b?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=x+r+x),r};f.version="3.0.2",e.exports=f},1514(e){"use strict";e.exports=Math.abs},8968(e){"use strict";e.exports=Math.floor},4459(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},6188(e){"use strict";e.exports=Math.max},8002(e){"use strict";e.exports=Math.min},5880(e){"use strict";e.exports=Math.pow},414(e){"use strict";e.exports=Math.round},3093(e,t,r){"use strict";var n=r(4459);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},3519(e,t,r){var n=r(6587);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)};return t.onceError=(e.name||"Function wrapped with `once`")+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},7975(e,t,r){"use strict";var n=r(5606);function i(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function s(e,t){for(var r,n="",i=0,s=-1,a=0,o=0;o<=e.length;++o){if(o<e.length)r=e.charCodeAt(o);else if(47===r)break;else r=47;if(47===r){if(s===o-1||1===a);else if(s!==o-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2)){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),s=o,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,s=o,a=0;continue}}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(s+1,o):n=e.slice(s+1,o),i=o-s-1;s=o,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var a={resolve:function(){for(var e,t,r="",a=!1,o=arguments.length-1;o>=-1&&!a;o--)o>=0?t=arguments[o]:(void 0===e&&(e=n.cwd()),t=e),i(t),0!==t.length&&(r=t+"/"+r,a=47===t.charCodeAt(0));if(r=s(r,!a),a)if(r.length>0)return"/"+r;else return"/";return r.length>0?r:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return(0!==(e=s(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t)?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];i(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":a.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t||(e=a.resolve(e))===(t=a.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var n=e.length,s=n-r,o=1;o<t.length&&47===t.charCodeAt(o);++o);for(var l=t.length-o,u=s<l?s:l,c=-1,p=0;p<=u;++p){if(p===u){if(l>u){if(47===t.charCodeAt(o+p))return t.slice(o+p+1);else if(0===p)return t.slice(o+p)}else s>u&&(47===e.charCodeAt(r+p)?c=p:0===p&&(c=0));break}var h=e.charCodeAt(r+p);if(h!==t.charCodeAt(o+p))break;47===h&&(c=p)}var d="";for(p=r+c+1;p<=n;++p)(p===n||47===e.charCodeAt(p))&&(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+c):(o+=c,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(t=e.charCodeAt(a))){if(!s){n=a;break}}else s=!1;return -1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');i(e);var r,n=0,s=-1,a=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!a){n=r+1;break}}else -1===l&&(a=!1,l=r+1),o>=0&&(u===t.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=l))}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break}}else -1===s&&(a=!1,s=r+1);return -1===s?"":e.slice(n,s)},extname:function(e){i(e);for(var t=-1,r=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47===l){if(!s){r=o+1;break}continue}-1===n&&(s=!1,n=o+1),46===l?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1)}return -1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){var t,r;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+r:t+"/"+r:r},parse:function(e){i(e);var t,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n=e.charCodeAt(0),s=47===n;s?(r.root="/",t=1):t=0;for(var a=-1,o=0,l=-1,u=!0,c=e.length-1,p=0;c>=t;--c){if(47===(n=e.charCodeAt(c))){if(!u){o=c+1;break}continue}-1===l&&(u=!1,l=c+1),46===n?-1===a?a=c:1!==p&&(p=1):-1!==a&&(p=-1)}return -1===a||-1===l||0===p||1===p&&a===l-1&&a===o+1?-1!==l&&(0===o&&s?r.base=r.name=e.slice(1,l):r.base=r.name=e.slice(o,l)):(0===o&&s?(r.name=e.slice(1,a),r.base=e.slice(1,l)):(r.name=e.slice(o,a),r.base=e.slice(o,l)),r.ext=e.slice(a,l)),o>0?r.dir=e.slice(0,o-1):s&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,e.exports=a},5157(e,t,r){"use strict";let n=r(6675),i=r(280);function s(e,t,r=!1){return t&&(null===t.windows||void 0===t.windows)&&(t={...t,windows:i.isWindows()}),n(e,t,r)}Object.assign(s,n),e.exports=s},3940(e){"use strict";let t="[^\\\\/]",r="[^/]",n="(?:\\/|$)",i="(?:^|\\/)",s=`\\.{1,2}${n}`,a=`(?!${i}${s})`,o=`(?!\\.{0,1}${n})`,l=`(?!${s})`,u=`${r}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:r,END_ANCHOR:n,DOTS_SLASH:s,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:l,QMARK_NO_DOT:"[^.\\/]",STAR:u,START_ANCHOR:i,SEP:"/"},p={...c,SLASH_LITERAL:"[\\\\/]",QMARK:t,STAR:`${t}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};e.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?p:c}},1154(e,t,r){"use strict";let n=r(3940),i=r(280),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:a,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:l,REPLACEMENTS:u}=n,c=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map(e=>i.escapeRegex(e)).join("..")}return r},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,h=e=>{let t=[],r=0,n=0,i=0,s="",a=!1;for(let o of e){if(!0===a){s+=o,a=!1;continue}if("\\"===o){s+=o,a=!0;continue}if('"'===o){i=+(1!==i),s+=o;continue}if(0===i){if("["===o)r++;else if("]"===o&&r>0)r--;else if(0===r){if("("===o)n++;else if(")"===o&&n>0)n--;else if("|"===o&&0===n){t.push(s),s="";continue}}}s+=o}return t.push(s),t},d=e=>{let t=e.trim(),r=!0;for(;!0===r;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if((e=>{let t=!1;for(let r of e){if(!0===t){t=!1;continue}if("\\"===r){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0})(t))return t.replace(/\\(.)/g,"$1")},f=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let r=0,n=0,i=0,s=!1;for(let a=1;a<e.length;a++){let o=e[a];if(!0===s){s=!1;continue}if("\\"===o){s=!0;continue}if('"'===o){i=+(1!==i);continue}if(1!==i){if("["===o){r++;continue}if("]"===o&&r>0){r--;continue}if(!(r>0)){if("("===o){n++;continue}if(")"===o&&0==--n){if(!0===t&&a!==e.length-1)return;return{type:e[0],body:e.slice(2,a),end:a}}}}}},m=e=>{let t=0,r=[];for(;t<e.length;){let n=f(e.slice(t),!1);if(!n||"*"!==n.type)return;let i=h(n.body).map(e=>e.trim());if(1!==i.length)return;let s=d(i[0]);if(!s||1!==s.length)return;r.push(s),t+=n.end+1}if(!(r.length<1))return r},y=e=>{let t=0,r=e.trim(),n=f(r);for(;n;)t++,n=f(r=n.body.trim());return t},g=(e,t)=>{let r;if("string"!=typeof e)throw TypeError("Expected a string");e=u[e]||e;let f={...t},b="number"==typeof f.maxLength?Math.min(s,f.maxLength):s,x=e.length;if(x>b)throw SyntaxError(`Input length: ${x}, exceeds maximum allowed length: ${b}`);let S={type:"bos",value:"",output:f.prepend||""},v=[S],T=f.capture?"":"?:",E=n.globChars(f.windows),k=n.extglobChars(E),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:P,ONE_CHAR:C,DOTS_SLASH:I,NO_DOT:_,NO_DOT_SLASH:N,NO_DOTS_SLASH:L,QMARK:O,QMARK_NO_DOT:D,STAR:M,START_ANCHOR:F}=E,j=e=>`(${T}(?:(?!${F}${e.dot?I:w}).)*?)`,B=f.dot?"":_,R=f.dot?O:D,$=!0===f.bash?j(f):M;f.capture&&($=`(${$})`),"boolean"==typeof f.noext&&(f.noextglob=f.noext);let U={input:e,index:-1,start:0,dot:!0===f.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};x=(e=i.removePrefix(e,U)).length;let V=[],q=[],K=[],J=S,z=()=>U.index===x-1,W=U.peek=(t=1)=>e[U.index+t],X=U.advance=()=>e[++U.index]||"",H=()=>e.slice(U.index+1),G=(e="",t=0)=>{U.consumed+=e,U.index+=t},Y=e=>{U.output+=null!=e.output?e.output:e.value,G(e.value)},Q=()=>{let e=1;for(;"!"===W()&&("("!==W(2)||"?"===W(3));)X(),U.start++,e++;return e%2!=0&&(U.negated=!0,U.start++,!0)},Z=e=>{U[e]++,K.push(e)},ee=e=>{U[e]--,K.pop()},et=e=>{if("globstar"===J.type){let t=U.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||V.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(U.output=U.output.slice(0,-J.output.length),J.type="star",J.value="*",J.output=$,U.output+=J.output)}if(V.length&&"paren"!==e.type&&(V[V.length-1].inner+=e.value),(e.value||e.output)&&Y(e),J&&"text"===J.type&&"text"===e.type){J.output=(J.output||J.value)+e.value,J.value+=e.value;return}e.prev=J,v.push(e),J=e},er=(e,t)=>{let r={...k[t],conditions:1,inner:""};r.prev=J,r.parens=U.parens,r.output=U.output,r.startIndex=U.index,r.tokensIndex=v.length;let n=(f.capture?"(":"")+r.open;Z("parens"),et({type:e,value:t,output:U.output?"":C}),et({type:"paren",extglob:!0,value:X(),output:n}),V.push(r)},en=s=>{let a,o=e.slice(s.startIndex,U.index+1),l=((e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};let r="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:n.DEFAULT_MAX_EXTGLOB_RECURSION,s=h(e).map(e=>e.trim());if(s.length>1&&(s.some(e=>""===e)||s.some(e=>/^[*?]+$/.test(e))||(e=>{let t=e.map(d).filter(Boolean);for(let e=0;e<t.length;e++)for(let r=e+1;r<t.length;r++){let n=t[e],i=t[r],s=n[0];if(s&&n===s.repeat(n.length)&&i===s.repeat(i.length)&&(n===i||n.startsWith(i)||i.startsWith(n)))return!0}return!1})(s)))return{risky:!0};let a=[],o=!1,l=!0;for(let e of s){let t=m(e);if(t){o=!0,a.push(...t);continue}let n=d(e);if(n&&1===n.length){a.push(n);continue}if(l=!1,y(e)>r)return{risky:!0}}if(o){var u;let e;return l?{risky:!0,safeOutput:(e=1===(u=[...new Set(a)]).length?i.escapeRegex(u[0]):`[${u.map(e=>i.escapeRegex(e)).join("")}]`,`${e}*`)}:{risky:!0}}return{risky:!1}})(e.slice(s.startIndex+2,U.index),f);if(("plus"===s.type||"star"===s.type)&&l.risky){let e=l.safeOutput?(s.output?"":C)+(f.capture?`(${l.safeOutput})`:l.safeOutput):void 0,t=v[s.tokensIndex];t.type="text",t.value=o,t.output=e||i.escapeRegex(o);for(let e=s.tokensIndex+1;e<v.length;e++)v[e].value="",v[e].output="",delete v[e].suffix;U.output=s.output+t.output,U.backtrack=!0,et({type:"paren",extglob:!0,value:r,output:""}),ee("parens");return}let u=s.close+(f.capture?")":"");if("negate"===s.type){let e=$;if(s.inner&&s.inner.length>1&&s.inner.includes("/")&&(e=j(f)),(e!==$||z()||/^\)+$/.test(H()))&&(u=s.close=`)$))${e}`),s.inner.includes("*")&&(a=H())&&/^\.[^\\/.]+$/.test(a)){let r=g(a,{...t,fastpaths:!1}).output;u=s.close=`)${r})${e})`}"bos"===s.prev.type&&(U.negatedExtglob=!0)}et({type:"paren",extglob:!0,value:r,output:u}),ee("parens")};if(!1!==f.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,n=e.replace(l,(e,t,n,i,s,a)=>"\\"===i?(r=!0,e):"?"===i?t?t+i+(s?O.repeat(s.length):""):0===a?R+(s?O.repeat(s.length):""):O.repeat(n.length):"."===i?w.repeat(n.length):"*"===i?t?t+i+(s?$:""):$:t?e:`\\${e}`);return(!0===r&&(n=!0===f.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===e&&!0===f.contains)?U.output=e:U.output=i.wrapOutput(n,U,t),U}for(;!z();){if("\0"===(r=X()))continue;if("\\"===r){let e=W();if("/"===e&&!0!==f.bash||"."===e||";"===e)continue;if(!e){et({type:"text",value:r+="\\"});continue}let t=/^\\+/.exec(H()),n=0;if(t&&t[0].length>2&&(n=t[0].length,U.index+=n,n%2!=0&&(r+="\\")),!0===f.unescape?r=X():r+=X(),0===U.brackets){et({type:"text",value:r});continue}}if(U.brackets>0&&("]"!==r||"["===J.value||"[^"===J.value)){if(!1!==f.posix&&":"===r){let e=J.value.slice(1);if(e.includes("[")&&(J.posix=!0,e.includes(":"))){let e=J.value.lastIndexOf("["),t=J.value.slice(0,e),r=a[J.value.slice(e+2)];if(r){J.value=t+r,U.backtrack=!0,X(),S.output||1!==v.indexOf(J)||(S.output=C);continue}}}("["===r&&":"!==W()||"-"===r&&"]"===W())&&(r=`\\${r}`),"]"===r&&("["===J.value||"[^"===J.value)&&(r=`\\${r}`),!0===f.posix&&"!"===r&&"["===J.value&&(r="^"),J.value+=r,Y({value:r});continue}if(1===U.quotes&&'"'!==r){r=i.escapeRegex(r),J.value+=r,Y({value:r});continue}if('"'===r){U.quotes=+(1!==U.quotes),!0===f.keepQuotes&&et({type:"text",value:r});continue}if("("===r){Z("parens"),et({type:"paren",value:r});continue}if(")"===r){if(0===U.parens&&!0===f.strictBrackets)throw SyntaxError(p("opening","("));let e=V[V.length-1];if(e&&U.parens===e.parens+1){en(V.pop());continue}et({type:"paren",value:r,output:U.parens?")":"\\)"}),ee("parens");continue}if("["===r){if(!0!==f.nobracket&&H().includes("]"))Z("brackets");else{if(!0!==f.nobracket&&!0===f.strictBrackets)throw SyntaxError(p("closing","]"));r=`\\${r}`}et({type:"bracket",value:r});continue}if("]"===r){if(!0===f.nobracket||J&&"bracket"===J.type&&1===J.value.length){et({type:"text",value:r,output:`\\${r}`});continue}if(0===U.brackets){if(!0===f.strictBrackets)throw SyntaxError(p("opening","["));et({type:"text",value:r,output:`\\${r}`});continue}ee("brackets");let e=J.value.slice(1);if(!0===J.posix||"^"!==e[0]||e.includes("/")||(r=`/${r}`),J.value+=r,Y({value:r}),!1===f.literalBrackets||i.hasRegexChars(e))continue;let t=i.escapeRegex(J.value);if(U.output=U.output.slice(0,-J.value.length),!0===f.literalBrackets){U.output+=t,J.value=t;continue}J.value=`(${T}${t}|${J.value})`,U.output+=J.value;continue}if("{"===r&&!0!==f.nobrace){Z("braces");let e={type:"brace",value:r,output:"(",outputIndex:U.output.length,tokensIndex:U.tokens.length};q.push(e),et(e);continue}if("}"===r){let e=q[q.length-1];if(!0===f.nobrace||!e){et({type:"text",value:r,output:r});continue}let t=")";if(!0===e.dots){let e=v.slice(),r=[];for(let t=e.length-1;t>=0&&(v.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=c(r,f),U.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=U.output.slice(0,e.outputIndex),i=U.tokens.slice(e.tokensIndex);for(let s of(e.value=e.output="\\{",r=t="\\}",U.output=n,i))U.output+=s.output||s.value}et({type:"brace",value:r,output:t}),ee("braces"),q.pop();continue}if("|"===r){V.length>0&&V[V.length-1].conditions++,et({type:"text",value:r});continue}if(","===r){let e=r,t=q[q.length-1];t&&"braces"===K[K.length-1]&&(t.comma=!0,e="|"),et({type:"comma",value:r,output:e});continue}if("/"===r){if("dot"===J.type&&U.index===U.start+1){U.start=U.index+1,U.consumed="",U.output="",v.pop(),J=S;continue}et({type:"slash",value:r,output:P});continue}if("."===r){if(U.braces>0&&"dot"===J.type){"."===J.value&&(J.output=w);let e=q[q.length-1];J.type="dots",J.output+=r,J.value+=r,e.dots=!0;continue}if(U.braces+U.parens===0&&"bos"!==J.type&&"slash"!==J.type){et({type:"text",value:r,output:w});continue}et({type:"dot",value:r,output:w});continue}if("?"===r){if(!(J&&"("===J.value)&&!0!==f.noextglob&&"("===W()&&"?"!==W(2)){er("qmark",r);continue}if(J&&"paren"===J.type){let e=W(),t=r;("("!==J.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(H()))||(t=`\\${r}`),et({type:"text",value:r,output:t});continue}if(!0!==f.dot&&("slash"===J.type||"bos"===J.type)){et({type:"qmark",value:r,output:D});continue}et({type:"qmark",value:r,output:O});continue}if("!"===r){if(!0!==f.noextglob&&"("===W()&&("?"!==W(2)||!/[!=<:]/.test(W(3)))){er("negate",r);continue}if(!0!==f.nonegate&&0===U.index){Q();continue}}if("+"===r){if(!0!==f.noextglob&&"("===W()&&"?"!==W(2)){er("plus",r);continue}if(J&&"("===J.value||!1===f.regex){et({type:"plus",value:r,output:A});continue}if(J&&("bracket"===J.type||"paren"===J.type||"brace"===J.type)||U.parens>0){et({type:"plus",value:r});continue}et({type:"plus",value:A});continue}if("@"===r){if(!0!==f.noextglob&&"("===W()&&"?"!==W(2)){et({type:"at",extglob:!0,value:r,output:""});continue}et({type:"text",value:r});continue}if("*"!==r){("$"===r||"^"===r)&&(r=`\\${r}`);let e=o.exec(H());e&&(r+=e[0],U.index+=e[0].length),et({type:"text",value:r});continue}if(J&&("globstar"===J.type||!0===J.star)){J.type="star",J.star=!0,J.value+=r,J.output=$,U.backtrack=!0,U.globstar=!0,G(r);continue}let t=H();if(!0!==f.noextglob&&/^\([^?]/.test(t)){er("star",r);continue}if("star"===J.type){if(!0===f.noglobstar){G(r);continue}let n=J.prev,i=n.prev,s="slash"===n.type||"bos"===n.type,a=i&&("star"===i.type||"globstar"===i.type);if(!0===f.bash&&(!s||t[0]&&"/"!==t[0])){et({type:"star",value:r,output:""});continue}let o=U.braces>0&&("comma"===n.type||"brace"===n.type),l=V.length&&("pipe"===n.type||"paren"===n.type);if(!s&&"paren"!==n.type&&!o&&!l){et({type:"star",value:r,output:""});continue}for(;"/**"===t.slice(0,3);){let r=e[U.index+4];if(r&&"/"!==r)break;t=t.slice(3),G("/**",3)}let u=z()||U.parens>0&&t===")".repeat(U.parens)&&!V.some(e=>"negate"===e.type);if("bos"===n.type&&z()){J.type="globstar",J.value+=r,J.output=j(f),U.output=J.output,U.globstar=!0,G(r);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!a&&u){U.output=U.output.slice(0,-(n.output+J.output).length),n.output=`(?:${n.output}`,J.type="globstar",J.output=j(f)+(f.strictSlashes?")":"|$)"),J.value+=r,U.globstar=!0,U.output+=n.output+J.output,G(r);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){let e=void 0!==t[1]?"|$":"";U.output=U.output.slice(0,-(n.output+J.output).length),n.output=`(?:${n.output}`,J.type="globstar",J.output=`${j(f)}${P}|${P}${e})`,J.value+=r,U.output+=n.output+J.output,U.globstar=!0,G(r+X()),et({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){J.type="globstar",J.value+=r,J.output=`(?:^|${P}|${j(f)}${P})`,U.output=J.output,U.globstar=!0,G(r+X()),et({type:"slash",value:"/",output:""});continue}U.output=U.output.slice(0,-J.output.length),J.type="globstar",J.output=j(f),J.value+=r,U.output+=J.output,U.globstar=!0,G(r);continue}let n={type:"star",value:r,output:$};if(!0===f.bash){n.output=".*?",("bos"===J.type||"slash"===J.type)&&(n.output=B+n.output),et(n);continue}if(J&&("bracket"===J.type||"paren"===J.type)&&!0===f.regex){n.output=r,et(n);continue}(U.index===U.start||"slash"===J.type||"dot"===J.type)&&("dot"===J.type?(U.output+=N,J.output+=N):!0===f.dot?(U.output+=L,J.output+=L):(U.output+=B,J.output+=B),"*"!==W()&&(U.output+=C,J.output+=C)),et(n)}for(;U.brackets>0;){if(!0===f.strictBrackets)throw SyntaxError(p("closing","]"));U.output=i.escapeLast(U.output,"["),ee("brackets")}for(;U.parens>0;){if(!0===f.strictBrackets)throw SyntaxError(p("closing",")"));U.output=i.escapeLast(U.output,"("),ee("parens")}for(;U.braces>0;){if(!0===f.strictBrackets)throw SyntaxError(p("closing","}"));U.output=i.escapeLast(U.output,"{"),ee("braces")}if(!0!==f.strictSlashes&&("star"===J.type||"bracket"===J.type)&&et({type:"maybe_slash",value:"",output:`${P}?`}),!0===U.backtrack)for(let e of(U.output="",U.tokens))U.output+=null!=e.output?e.output:e.value,e.suffix&&(U.output+=e.suffix);return U};g.fastpaths=(e,t)=>{let r={...t},a="number"==typeof r.maxLength?Math.min(s,r.maxLength):s,o=e.length;if(o>a)throw SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${a}`);e=u[e]||e;let{DOT_LITERAL:l,SLASH_LITERAL:c,ONE_CHAR:p,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:g}=n.globChars(r.windows),b=r.dot?f:d,x=r.dot?m:d,S=r.capture?"":"?:",v=!0===r.bash?".*?":y;r.capture&&(v=`(${v})`);let T=e=>!0===e.noglobstar?v:`(${S}(?:(?!${g}${e.dot?h:l}).)*?)`,E=e=>{switch(e){case"*":return`${b}${p}${v}`;case".*":return`${l}${p}${v}`;case"*.*":return`${b}${v}${l}${p}${v}`;case"*/*":return`${b}${v}${c}${p}${x}${v}`;case"**":return b+T(r);case"**/*":return`(?:${b}${T(r)}${c})?${x}${p}${v}`;case"**/*.*":return`(?:${b}${T(r)}${c})?${x}${v}${l}${p}${v}`;case"**/.*":return`(?:${b}${T(r)}${c})?${l}${p}${v}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let r=E(t[1]);if(!r)return;return r+l+t[2]}}},k=E(i.removePrefix(e,{negated:!1,prefix:""}));return k&&!0!==r.strictSlashes&&(k+=`${c}?`),k},e.exports=g},6675(e,t,r){"use strict";let n=r(2608),i=r(1154),s=r(280),a=r(3940),o=(e,t,r=!1)=>{if(Array.isArray(e)){let n=e.map(e=>o(e,t,r));return e=>{for(let t of n){let r=t(e);if(r)return r}return!1}}let n=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!n)throw TypeError("Expected pattern to be a non-empty string");let i=t||{},s=i.windows,a=n?o.compileRe(e,t):o.makeRe(e,t,!1,!0),l=a.state;delete a.state;let u=()=>!1;if(i.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};u=o(i.ignore,e,r)}let c=(r,n=!1)=>{let{isMatch:c,match:p,output:h}=o.test(r,a,t,{glob:e,posix:s}),d={glob:e,state:l,regex:a,posix:s,input:r,output:h,match:p,isMatch:c};return("function"==typeof i.onResult&&i.onResult(d),!1===c)?(d.isMatch=!1,!!n&&d):u(r)?("function"==typeof i.onIgnore&&i.onIgnore(d),d.isMatch=!1,!!n&&d):("function"==typeof i.onMatch&&i.onMatch(d),!n||d)};return r&&(c.state=l),c};o.test=(e,t,r,{glob:n,posix:i}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let a=r||{},l=a.format||(i?s.toPosixSlashes:null),u=e===n,c=u&&l?l(e):e;return!1===u&&(u=(c=l?l(e):e)===n),(!1===u||!0===a.capture)&&(u=!0===a.matchBase||!0===a.basename?o.matchBase(e,t,r,i):t.exec(c)),{isMatch:!!u,match:u,output:c}},o.matchBase=(e,t,r,n=r&&r.windows)=>(t instanceof RegExp?t:o.makeRe(t,r)).test(s.basename(e,{windows:n})),o.isMatch=(e,t,r)=>o(t,r)(e),o.parse=(e,t)=>Array.isArray(e)?e.map(e=>o.parse(e,t)):i(e,{...t,fastpaths:!1}),o.scan=(e,t)=>n(e,t),o.compileRe=(e,t,r=!1,n=!1)=>{if(!0===r)return e.output;let i=t||{},s=i.contains?"":"^",a=i.contains?"":"$",l=`${s}(?:${e.output})${a}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let u=o.toRegex(l,t);return!0===n&&(u.state=e),u},o.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return!1!==t.fastpaths&&("."===e[0]||"*"===e[0])&&(s.output=i.fastpaths(e,t)),s.output||(s=i(e,t)),o.compileRe(s,t,r,n)},o.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},o.constants=a,e.exports=o},2608(e,t,r){"use strict";let n=r(280),{CHAR_ASTERISK:i,CHAR_AT:s,CHAR_BACKWARD_SLASH:a,CHAR_COMMA:o,CHAR_DOT:l,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:f,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:b}=r(3940),x=e=>e===c||e===a,S=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{let r,v,T=t||{},E=e.length-1,k=!0===T.parts||!0===T.tokens||!0===T.scanToEnd,w=[],A=[],P=[],C=e,I=-1,_=0,N=0,L=!1,O=!1,D=!1,M=!1,F=!1,j=!1,B=!1,R=!1,$=!1,U=!1,V=0,q={value:"",depth:0,isGlob:!1},K=()=>I>=E,J=()=>C.charCodeAt(I+1),z=()=>(r=v,C.charCodeAt(++I));for(;I<E;){let e;if((v=z())===a){B=q.backslashes=!0,(v=z())===p&&(j=!0);continue}if(!0===j||v===p){for(V++;!0!==K()&&(v=z());){if(v===a){B=q.backslashes=!0,z();continue}if(v===p){V++;continue}if(!0!==j&&v===l&&(v=z())===l||!0!==j&&v===o){if(L=q.isBrace=!0,D=q.isGlob=!0,U=!0,!0===k)continue;break}if(v===y&&0==--V){j=!1,L=q.isBrace=!0,U=!0;break}}if(!0===k)continue;break}if(v===c){if(w.push(I),A.push(q),q={value:"",depth:0,isGlob:!1},!0===U)continue;if(r===l&&I===_+1){_+=2;continue}N=I+1;continue}if(!0!==T.noext&&!0==(v===f||v===s||v===i||v===m||v===u)&&J()===h){if(D=q.isGlob=!0,M=q.isExtglob=!0,U=!0,v===u&&I===_&&($=!0),!0===k){let e=0;for(;!0!==K()&&(v=z());){if(v===a){B=q.backslashes=!0,z();continue}if(v===h){e++;continue}if(v===g&&0==--e){U=!0;break}}continue}break}if(v===i){if(r===i&&(F=q.isGlobstar=!0),D=q.isGlob=!0,U=!0,!0===k)continue;break}if(v===m){if(D=q.isGlob=!0,U=!0,!0===k)continue;break}if(v===d){for(;!0!==K()&&(e=z());){if(e===a){B=q.backslashes=!0,z();continue}if(e===b){O=q.isBracket=!0,D=q.isGlob=!0,U=!0;break}}if(!0===k)continue;break}if(!0!==T.nonegate&&v===u&&I===_){R=q.negated=!0,_++;continue}if(!0!==T.noparen&&v===h){if(D=q.isGlob=!0,!0===k){let e=1;for(;!0!==K()&&(v=z());){if(v===a){B=q.backslashes=!0,z();continue}if(v===h){e++;continue}if(v===g&&0==--e){U=!0;break}}continue}break}if(!0===D){if(U=!0,!0===k)continue;break}}!0===T.noext&&(M=!1,D=!1);let W=C,X="",H="";_>0&&(X=C.slice(0,_),C=C.slice(_),N-=_),W&&!0===D&&N>0?(W=C.slice(0,N),H=C.slice(N)):!0===D?(W="",H=C):W=C,W&&""!==W&&"/"!==W&&W!==C&&x(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),!0===T.unescape&&(H&&(H=n.removeBackslashes(H)),W&&!0===B&&(W=n.removeBackslashes(W)));let G={prefix:X,input:e,start:_,base:W,glob:H,isBrace:L,isBracket:O,isGlob:D,isExtglob:M,isGlobstar:F,negated:R,negatedExtglob:$};if(!0===T.tokens&&(G.maxDepth=0,x(v)||A.push(q),G.tokens=A),!0===T.parts||!0===T.tokens){let t;for(let r=0;r<w.length;r++){let n=void 0!==t?t+1:_,i=w[r],s=e.slice(n,i);T.tokens&&(0===r&&0!==_?(A[r].isPrefix=!0,A[r].value=X):A[r].value=s,S(A[r]),G.maxDepth+=A[r].depth),i>=_&&(P.push(s),t=i)}let r=void 0!==t?t+1:_,n=e.slice(r);P.push(n),T.tokens&&t&&t+1<e.length&&(A[A.length-1].value=n,S(A[A.length-1]),G.maxDepth+=A[A.length-1].depth),G.slashes=w,G.parts=P}return G}},280(e,t,r){"use strict";var n=r(5606);let{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:o}=r(3940);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(o,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.isWindows=()=>{if("u">typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return void 0!==n&&!!n.platform&&"win32"===n.platform},t.removeBackslashes=e=>e.replace(s,e=>"\\"===e?"":e),t.escapeLast=(e,r,n)=>{let i=e.lastIndexOf(r,n);return -1===i?e:"\\"===e[i-1]?t.escapeLast(e,r,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s},t.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return""===n?r[r.length-2]:n}},5127(e){e.exports=function(){var e=[],t=[],r={},n={},i={};function s(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function a(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var s=n[i];if(s[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var i,s,o=(i=t[1],s=arguments,i.replace(/\$(\d{1,2})/g,function(e,t){return s[t]||""}));return""===r?a(e[n-1],o):a(r,o)})}(t,s)}return t}function l(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?a(n,i):e.hasOwnProperty(i)?a(n,e[i]):o(i,n,r)}}function u(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&o(i,i,r)===i}}function c(e,t,r){var n=1===t?c.singular(e):c.plural(e);return(r?t+" ":"")+n}return c.plural=l(i,n,e),c.isPlural=u(i,n,e),c.singular=l(n,i,t),c.isSingular=u(n,i,t),c.addPluralRule=function(t,r){e.push([s(t),r])},c.addSingularRule=function(e,r){t.push([s(e),r])},c.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),i[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c}()},6578(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},5606(e){var t,r,n,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}var l=[],u=!1,c=-1;function p(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=o(p);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new d(e,t)),1!==l.length||u||o(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},9708(e,t,r){var n=r(5606);function i(e){return Array.isArray(e)?e:[e]}let s,a=/[.*+?()[\]{}^$|\\/]/,o=/^\uFEFF? *$/,l=/(?:[^\\]|^)\\$/,u=/^\\!/,c=/^\\#/,p=/\r?\n/g,h="node-ignore";"u">typeof Symbol&&(h=Symbol.for("node-ignore"));let d=h,f=(e,t,r)=>(Object.defineProperty(e,t,{value:r}),r),m=()=>!1,y={alnum:"0-9A-Za-z",alpha:"A-Za-z",blank:" \\t",cntrl:"\\x00-\\x1f\\x7f",digit:"0-9",graph:"!-.0-~",lower:"a-z",print:" -.0-~",punct:"!-.:-@\\[-`{-~",space:" \\t\\n\\r",upper:"A-Z",xdigit:"0-9A-Fa-f"},g=e=>0>"\\]^-[".indexOf(e)?e:"\\"+e,b=(e,t)=>{if(e)return`[^\\/${t}]`;let r=`[${t}]`;return new RegExp(r).test("/")?"(?!\\/)"+r:r},x=(e,t)=>{let{length:r}=e,n=t+1,i="",a=e[n];("!"===a||"^"===a)&&(i="^",n++);let o="",l="";for(;;){let t=e[n];if(t===s)return null;if("\\"===t){let t=e[n+1];if(t===s)return null;o+=g(t),l=t,n++}else if("-"===t&&l&&n+1<r&&"]"!==e[n+1]){let t=e[++n];"\\"===t&&(t=e[n+=1]),l<=t&&(o+=`-${g(t)}`),l=""}else if("["===t&&":"===e[n+1]){let t=n+2,i=t;for(;i<r&&"]"!==e[i];)i++;if(i===r)return null;if(i>t&&":"===e[i-1]){let r=y[e.slice(t,i-1)];if(r===s)return null;o+=r,l="",n=i}else o+=g("["),l="[",n=t-2}else o+=g(t),l=t;if("]"===e[++n])return{end:n,source:b(i,o)}}},S=RegExp("\0(\\d+)\0","g"),v=/\/(?!$)/,T=[[/^\uFEFF/,()=>"","\uFEFF"],[/[\r\n]+$/,()=>""],[/((?:\\\\)*?)(\\? +)$/,(e,t,r)=>t+(0===r.indexOf("\\")?" ":"")],[/(\\+?) /g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]","?"],[/^\//,()=>"^","/"],[/\//g,()=>"\\/","/"],[/^\^*(?:\\\*\\\*\\\/)+/,()=>"^(?:.*\\/)?","*"],[null,(e,t)=>e&&"^"!==e[0]?(v.test(t)?"^":"(?:^|\\/)")+e:e],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"\\/"===r.slice(t+6)?"(?:\\/[^\\/]+)+":"(?:\\/[^\\/]+)*":"\\/.+","*"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>t+r.replace(/\\\*/g,"[^\\/]*"),"*"],[/(^|[^\\])((?:\\\\)*)\\\*$/,(e,t,r)=>r.length/2%2==0?t+r+"":e,"*"],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\","\\\\"],[/\\\\/g,()=>"\\","\\\\"],[/\\\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n)=>`\\[${t}${(e=>{let{length:t}=e;return e.slice(0,t-t%2)})(r)}${n}`,"["],[null,e=>{let t=e[e.length-1];return t&&""!==t?"/"===t?`${e}$`:`${e}(?=$|\\/$)`:e}]],E=/(^|\\\/)?\uE000$/,k="regex",w="checkRegex",A={[k](e,t){let r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`},[w](e,t){let r=t?`${t}[^/]*`:"[^/]*";return`${r}(?=$|\\/$)`}},P="[^\\/]*",C=e=>{let t=e.indexOf("/");return t<0||t===e.length-1},I=e=>{if(47===e.charCodeAt(0)||e.indexOf("//")>=0){let t=e.split("/").filter(Boolean);return t.pop(),t.length?t.join("/")+"/":""}let t=e.length-1,r=e.lastIndexOf("/",47===e.charCodeAt(t)?t-1:t);return r<0?"":e.slice(0,r+1)};class _{constructor(e,t,r,n,i,s){this.pattern=e,this.mark=t,this.negative=i,f(this,"body",r),f(this,"ignoreCase",n),f(this,"regexPrefix",s)}get _basenameOnly(){return f(this,"_basenameOnly",C(this.body))}get regex(){let e="_"+k;return this[e]?this[e]:this._make(k,e)}get checkRegex(){let e="_"+w;return this[e]?this[e]:this._make(w,e)}_make(e,t){let r=(e=>{if(0>e.indexOf(P))return e;let t=[],{length:r}=e,n=0;for(;n<r;){let i=e[n];if(e.startsWith(P,n))t.push({wildcard:!0}),n+=P.length;else if("["===i){let i=n+1;for("^"===e[i]&&i++,"]"===e[i]&&i++;i<r&&"]"!==e[i];)i+="\\"===e[i]?2:1;i++,t.push({single:e.slice(n,i)}),n=i}else if("\\"===i)t.push({single:e.slice(n,n+2)}),n+=2;else if("("===i){let i=0,s=n;do"\\"===e[s]?s++:"("===e[s]?i++:")"===e[s]&&i--,s++;while(s<r&&i>0)"*+?".indexOf(e[s])>=0&&s++,t.push({boundary:e.slice(n,s)}),n=s}else"^"===i||"$"===i?t.push({boundary:i}):t.push({single:i}),n++}let i="",s=[],a=()=>{let e;s.forEach((t,r)=>{t.wildcard&&(e=r)}),s.forEach((t,r)=>{if(!t.wildcard){i+=t.single;return}i+=r===e?P:`(?:(?!${s[r+1].single})[^\\/])*`}),s=[]};return t.forEach(e=>{void 0===e.boundary?s.push(e):(a(),i+=e.boundary)}),a(),i})(this.regexPrefix.replace(E,A[e]));return f(this,t,this.ignoreCase?RegExp(r,"i"):new RegExp(r))}}class N{constructor(e){this._ignoreCase=e,this._rules=[],this._basenameCount=0}_add(e){let t;if(e&&e[d]){this._rules=this._rules.concat(e._rules._rules),this._basenameCount+=e._rules._basenameCount,this._added=!0;return}if("string"==typeof e&&(e={pattern:e}),(t=e.pattern)&&"string"==typeof t&&!o.test(t)&&!l.test(t)&&0!==t.indexOf("#")){let t=(({pattern:e,mark:t},r)=>{let n=!1,i=e;0===i.indexOf("!")&&(n=!0,i=i.substr(1));let o=(e=>{let{source:t,sources:r}=(e=>{let t=[],r=e=>`\0${t.push(e)-1}\0`,{length:n}=e,i="",s=0;for(;s<n;){let t=e[s];if("\\"===t){let t=e[s+1];"*"===t||"["===t||" "===t||"\\"===t?i+=e.slice(s,s+2):i+=r(a.test(t)?"\\"+t:t),s+=2}else if("\0"===t)i+=r("[\0]"),s++;else if("["===t){let t=x(e,s);null===t?(i+=r("[]"),s=n):(i+=r(t.source),s=t.end+1)}else i+=t,s++}return{source:i,sources:t}})(e),n=T.reduce((t,[r,n,i])=>null===r?n(t,e):i!==s&&0>t.indexOf(i)?t:r.test(t)?t.replace(r,n.bind(e)):t,t);return r.length?n.replace(S,(e,t)=>r[t]):n})(i=i.replace(u,"!").replace(c,"#"));return new _(e,t,i,r,n,o)})(e,this._ignoreCase);this._added=!0,this._rules.push(t),C(t.body)&&this._basenameCount++}}add(e){return this._added=!1,i("string"==typeof e?e.split(p).filter(Boolean):e).forEach(this._add,this),this._added}test(e,t,r){let n,i,a,o=!1,l=!1,u=this._rules,{length:c}=u,p=2*this._basenameCount>=c,h=p?(n=e.length-1,(i=e.lastIndexOf("/","/"===e[n]?n-1:n))<0?e:e.slice(i+1)):e;for(let n=0;n<c;n++){let i=u[n],{negative:c}=i;!(l===c&&o!==l||c&&!o&&!l&&!t)&&i[r].test(p&&i._basenameOnly?h:e)&&(o=!c,l=c,a=c?s:i)}let d={ignored:o,unignored:l};return a&&(d.rule=a),d}}let L=(e,t)=>{throw new t(e)},O=(e,t,r)=>"string"!=typeof e?r(`path must be a string, but got \`${t}\``,TypeError):e?!O.isNotRelative(e)||r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):r("path must not be empty",TypeError),D=e=>{let t=e.charCodeAt(0);if(47===t)return!0;if(46!==t)return!1;if(1===e.length)return!0;let r=e.charCodeAt(1);return 47===r||46===r&&(2===e.length||47===e.charCodeAt(2))};O.isNotRelative=D,O.convert=e=>e;class M{constructor({ignorecase:e=!0,ignoreCase:t=e,allowRelativePaths:r=!1}={}){f(this,d,!0),this._rules=new N(t),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(e){return this._rules.add(e)&&this._initCache(),this}addPattern(e){return this.add(e)}_test(e,t,r){let n=e&&O.convert(e);return O(n,e,this._strictPathCheck?L:m),this._t(n,t,r)}checkIgnore(e){if(47!==e.charCodeAt(e.length-1))return this.test(e);let t=I(e);if(t){let e=this._t(t,this._testCache,!0);if(e.ignored)return e}return this._rules.test(e,!1,w)}_t(e,t,r){if(e in t)return t[e];let n=I(e),i=n?this._t(n,t,r):s;return t[e]=i&&i.ignored?i:this._rules.test(e,r,k)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return i(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}}let F=e=>new M(e),j=()=>{O.convert=e=>/^\\\\\?\\/.test(e)||/["<>|\u0000-\u001F]+/u.test(e)?e:e.replace(/\\/g,"/");let e=/^[a-z]:\//i;O.isNotRelative=t=>e.test(t)||D(t)};void 0!==n&&"win32"===n.platform&&j(),e.exports=F,F.default=F,e.exports.isPathValid=e=>O(e&&O.convert(e),e,m),f(e.exports,Symbol.for("setupWindows"),j)},9182(e,t,r){"use strict";var n=r(3034),i=r(2003);e.exports={transform:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(n),s=void 0,a={};return r.forEach(function(t){if(!n.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(n).join(", "));var r=n[t];e=(s=i.transform(e,r)).getAST(),"function"==typeof r.getExtra&&(a[t]=r.getExtra())}),s.setExtra(a),s}}},1537(e){"use strict";var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();e.exports={RegExpTree:function(){function e(t,r){var n=r.flags,i=r.groups,s=r.source;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._re=t,this._groups=i,this.flags=n,this.source=s||t.source,this.dotAll=n.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return t(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),e}()}},5640(e){"use strict";e.exports={_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="￿";this._hasUFlag&&(r="\\u{10FFFF}",n="􏿿"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}}},2514(e){"use strict";e.exports={_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}}},7559(e){"use strict";e.exports={RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}}},3034(e,t,r){"use strict";e.exports={dotAll:r(5640),namedCapturingGroups:r(2514),xFlag:r(7559)}},42(e){"use strict";function t(e){return e?r[e.type](e):""}var r={RegExp:function(e){return"/"+t(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(t).join("")},Disjunction:function(e){return t(e.left)+"|"+t(e.right)},Group:function(e){var r=t(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+r+")":"("+r+")":"(?:"+r+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var r=t(e.assertion);if(e.negative)return"(?!"+r+")";return"(?="+r+")";case"Lookbehind":var n=t(e.assertion);if(e.negative)return"(?<!"+n+")";return"(?<="+n+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var r=e.expressions.map(t).join("");return e.negative?"[^"+r+"]":"["+r+"]"},ClassRange:function(e){return t(e.from)+"-"+t(e.to)},Repetition:function(e){return""+t(e.expression)+t(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){var t=e.negative?"P":"p";return"\\"+t+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}};e.exports={generate:t}},5162(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw s}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var n=null;e.exports={minimize:function(e){var i=e.getTransitionTable(),s=Object.keys(i),a=e.getAlphabet(),o=e.getAcceptingStateNumbers();n={};var l=new Set;s.forEach(function(e){e=Number(e),o.has(e)?n[e]=o:(l.add(e),n[e]=l)});var u=[[l,o].filter(function(e){return e.size>0})],c=void 0,p=void 0;for(c=u[u.length-1],p=u[u.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],s=t[n];if(i.size!==s.size||[].concat(r(i)).sort().join(",")!==[].concat(r(s)).sort().join(","))return!1}return!0}(c,p);)!function(){var e={},t=!0,s=!1,o=void 0;try{for(var l,h=c[Symbol.iterator]();!(t=(l=h.next()).done);t=!0){var d=l.value,f={},m=Array.isArray(d)?d:Array.from(d),y=m[0],g=m.slice(1);f[y]=new Set([y]);var b=!0,x=!1,S=void 0;try{n:for(var v,T=g[Symbol.iterator]();!(b=(v=T.next()).done);b=!0){var E=v.value,k=!0,w=!1,A=void 0;try{for(var P,C=Object.keys(f)[Symbol.iterator]();!(k=(P=C.next()).done);k=!0){var I=P.value;if(function(e,t,r,i){var s=!0,a=!1,o=void 0;try{for(var l,u=i[Symbol.iterator]();!(s=(l=u.next()).done);s=!0){var c=l.value;if(!function(e,t,r,i){if(!n[e]||!n[t])return!1;var s=r[e][i],a=r[t][i];return!s&&!a||n[e].has(s)&&n[t].has(a)}(e,t,r,c))return!1}}catch(e){a=!0,o=e}finally{try{!s&&u.return&&u.return()}finally{if(a)throw o}}return!0}(E,I,i,a)){f[I].add(E),f[E]=f[I];continue n}}}catch(e){w=!0,A=e}finally{try{!k&&C.return&&C.return()}finally{if(w)throw A}}f[E]=new Set([E])}}catch(e){x=!0,S=e}finally{try{!b&&T.return&&T.return()}finally{if(x)throw S}}Object.assign(e,f)}}catch(e){s=!0,o=e}finally{try{!t&&h.return&&h.return()}finally{if(s)throw o}}n=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));u.push([].concat(r(_))),c=u[u.length-1],p=u[u.length-2]}();var h=new Map,d=1;c.forEach(function(e){return h.set(e,d++)});var f={},m=new Set,y=!0,g=!1,b=void 0;try{for(var x,S=h.entries()[Symbol.iterator]();!(y=(x=S.next()).done);y=!0){var v=x.value,T=t(v,2),E=T[0],k=T[1];f[k]={};var w=!0,A=!1,P=void 0;try{for(var C,I=a[Symbol.iterator]();!(w=(C=I.next()).done);w=!0){var _=C.value;!function(e,t){var r=!0,n=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var l=s.value;o.has(l)&&m.add(t)}}catch(e){n=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}}(E,k);var N=void 0,L=!0,O=!1,D=void 0;try{for(var M,F=E[Symbol.iterator]();!(L=(M=F.next()).done)&&!(N=i[M.value][_]);L=!0);}catch(e){O=!0,D=e}finally{try{!L&&F.return&&F.return()}finally{if(O)throw D}}N&&(f[k][_]=h.get(n[N]))}}catch(e){A=!0,P=e}finally{try{!w&&I.return&&I.return()}finally{if(A)throw P}}}}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}return e.setTransitionTable(f),e.setAcceptingStateNumbers(m),e}}},2569(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function i(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var s=r(5162),a=r(5821).EPSILON_CLOSURE;e.exports=function(){function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._nfa=t}return n(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,s.minimize(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var n=[t[r[0]][a]],s=this.getAlphabet(),o=this._nfa.getAcceptingStateNumbers(),l={};n.length>0;){var u=n.shift(),c=u.join(",");l[c]={};var p=!0,h=!1,d=void 0;try{for(var f,m=s[Symbol.iterator]();!(p=(f=m.next()).done);p=!0){var y=f.value,g=[];!function(t){var r=!0,n=!1,i=void 0;try{for(var s,a=o[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var l=s.value;if(-1!==t.indexOf(l)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}}(u);var b=!0,x=!1,S=void 0;try{for(var v,T=u[Symbol.iterator]();!(b=(v=T.next()).done);b=!0){var E=t[v.value][y];if(E){var k=!0,w=!1,A=void 0;try{for(var P,C=E[Symbol.iterator]();!(k=(P=C.next()).done);k=!0){var I=P.value;t[I]&&g.push.apply(g,i(t[I][a]))}}catch(e){w=!0,A=e}finally{try{!k&&C.return&&C.return()}finally{if(w)throw A}}}}}catch(e){x=!0,S=e}finally{try{!b&&T.return&&T.return()}finally{if(x)throw S}}var _=new Set(g),N=[].concat(i(_));if(N.length>0){var L=N.join(",");l[c][y]=L,l.hasOwnProperty(L)||n.unshift(N)}}}catch(e){h=!0,d=e}finally{try{!p&&m.return&&m.return()}finally{if(h)throw d}}}return this._transitionTable=this._remapStateNumbers(l)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var i=e[n],s={};for(var a in i)s[a]=t[i[a]];r[t[n]]=s}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,l=!1,u=void 0;try{for(var c,p=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var h=c.value;this._acceptingStateNumbers.add(t[h])}}catch(e){l=!0,u=e}finally{try{!o&&p.return&&p.return()}finally{if(l)throw u}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}()},6734(e,t,r){"use strict";var n=r(1909),i=r(2569),s=r(8398);e.exports={NFA:n,DFA:i,builders:r(860),toNFA:function(e){return s.build(e)},toDFA:function(e){return new i(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}}},860(e,t,r){"use strict";var n=r(1909),i=r(8617),s=r(5821).EPSILON;function a(e){var t=new i,r=new i({accepting:!0});return new n(t.addTransition(e,r),r)}e.exports={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var a=!0,o=!1,l=void 0;try{for(var u,c=r[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var p,h=u.value;p=e,p.out.accepting=!1,h.out.accepting=!0,p.out.addTransition(s,h.in),e=new n(p.in,h.out)}}catch(e){o=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(o)throw l}}return e},char:a,e:function(){return a(s)},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];var o=!0,l=!1,u=void 0;try{for(var c,p=r[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var h=c.value;e=function(e,t){var r=new i,a=new i;return r.addTransition(s,e.in),r.addTransition(s,t.in),a.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition(s,a),t.out.addTransition(s,a),new n(r,a)}(e,h)}}catch(e){l=!0,u=e}finally{try{!o&&p.return&&p.return()}finally{if(l)throw u}}return e},rep:function(e){return e.in.addTransition(s,e.out),e.out.addTransition(s,e.in),e},repExplicit:function(e){var t=new i,r=new i({accepting:!0});return t.addTransition(s,e.in),t.addTransition(s,r),e.out.accepting=!1,e.out.addTransition(s,r),r.addTransition(s,e.in),new n(t,r)},plusRep:function(e){return e.out.addTransition(s,e.in),e},questionRep:function(e){return e.in.addTransition(s,e.out),e}}},8398(e,t,r){"use strict";var n=r(3810),i=r(860),s=i.alt,a=i.char,o=i.or,l=i.rep,u=i.plusRep,c=i.questionRep;function p(e){if(e&&!h[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?h[e.type](e):""}var h={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return p(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(p);return s.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return o(p(e.left),p(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return l(p(e.expression));case"+":return u(p(e.expression));case"?":return c(p(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return a(e.value)},Group:function(e){return p(e.expression)}};e.exports={build:function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=n.parse(e,{captureLocations:!0})),p(t)}}},8617(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(1191),s=r(5821).EPSILON;e.exports=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var e=(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:this}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n(t,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var r=!0,n=!1,i=void 0;try{for(var a,o=this.getTransitionsOnSymbol(s)[Symbol.iterator]();!(r=(a=o.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){n=!0,i=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw i}}return!1}var l=e[0],u=e.slice(1),c=this.getTransitionsOnSymbol(l),p=!0,h=!1,d=void 0;try{for(var f,m=c[Symbol.iterator]();!(p=(f=m.next()).done);p=!0)if(f.value.matches(u))return!0}catch(e){h=!0,d=e}finally{try{!p&&m.return&&m.return()}finally{if(h)throw d}}var y=!0,g=!1,b=void 0;try{for(var x,S=this.getTransitionsOnSymbol(s)[Symbol.iterator]();!(y=(x=S.next()).done);y=!0)if(x.value.matches(e,t))return!0}catch(e){g=!0,b=e}finally{try{!y&&S.return&&S.return()}finally{if(g)throw b}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol(s),r=e._epsilonClosure=new Set;r.add(e);var n=!0,i=!1,a=void 0;try{for(var o,l=t[Symbol.iterator]();!(n=(o=l.next()).done);n=!0){var u=o.value;r.has(u)||(r.add(u),u.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){i=!0,a=e}finally{try{!n&&l.return&&l.return()}finally{if(i)throw a}}}(),this._epsilonClosure}}]),t}(i)},1909(e,t,r){"use strict";var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw s}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(5821),a=s.EPSILON,o=s.EPSILON_CLOSURE;e.exports=function(){function e(t,r){if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.in=t,this.out=r}return i(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)n!==o&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,i=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=i.next()).done);e=!0){var s=n.value;this._acceptingStateNumbers.add(s.number)}}catch(e){t=!0,r=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;!function i(s){if(!t.has(s)){t.add(s),s.number=t.size,e._transitionTable[s.number]={},s.accepting&&e._acceptingStates.add(s);var a=s.getTransitions(),o=!0,l=!1,u=void 0;try{for(var c,p=a[Symbol.iterator]();!(o=(c=p.next()).done);o=!0){var h=c.value,d=n(h,2),f=d[0],m=d[1],y=[];r.add(f);var g=!0,b=!1,x=void 0;try{for(var S,v=m[Symbol.iterator]();!(g=(S=v.next()).done);g=!0){var T=S.value;i(T),y.push(T.number)}}catch(e){b=!0,x=e}finally{try{!g&&v.return&&v.return()}finally{if(b)throw x}}e._transitionTable[s.number][f]=y}}catch(e){l=!0,u=e}finally{try{!o&&p.return&&p.return()}finally{if(l)throw u}}}}(this.in),t.forEach(function(t){delete e._transitionTable[t.number][a],e._transitionTable[t.number][o]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}()},5821(e){"use strict";e.exports={EPSILON:"ε",EPSILON_CLOSURE:"ε*"}},1191(e){"use strict";var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();e.exports=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._transitions=new Map,this.accepting=void 0!==r&&r}return t(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}()},3072(e,t,r){"use strict";var n=r(1379),i=r(3810),s=r(2003),a=r(3256);e.exports={optimize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,o=void 0===r?[]:r,l=t.blacklist,u=void 0===l?[]:l,c=(o.length>0?o:Array.from(a.keys())).filter(function(e){return!u.includes(e)}),p=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(p=i.parse(e));var h=new s.TransformResult(p),d=void 0;do d=h.toString(),p=n(h.getAST()),c.forEach(function(e){if(!a.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(a.keys()).join(", "));var t=a.get(e),r=s.transform(p,t);r.toString()!==h.toString()&&(r.toString().length<=h.toString().length?h=r:p=n(h.getAST()))});while(h.toString()!==d)return h}}},5621(e){"use strict";e.exports={_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n,i=e.node,s=e.parent;if(!isNaN(i.codePoint)&&(this._hasUFlag||!(i.codePoint>=4096))){if("ClassRange"===s.type){if(!this._AZClassRanges.has(s)&&(r=(t=s).from,n=t.to,!(r.codePoint>=65)||!(r.codePoint<=90)||!(n.codePoint>=65)||!(n.codePoint<=90)))return;this._AZClassRanges.add(s)}var a=i.symbol.toLowerCase();a!==i.symbol&&(i.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind)if(t.isSurrogatePair){var n,i={lead:(Math.floor(((n=r)-65536)/1024)+55296).toString(16),trail:((n-65536)%1024+56320).toString(16)},s=i.lead,a=i.trail;return"\\u"+"0".repeat(4-s.length)+s+"\\u"+"0".repeat(4-a.length)+a}else{if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var o=r.toString(16);return"\\u"+"0".repeat(4-o.length)+o}return e}(a,i),i.symbol=a,i.codePoint=a.codePointAt(0))}}}},436(e){"use strict";function t(e,t){var s=r(e),a=r(t);if(s===a){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return r(e.to)-r(t.to);if(n(e)&&n(t)||i(e)&&i(t))return e.value<t.value?-1:1}return s-a}function r(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function i(e){return"Char"===e.type&&"control"===e.kind}function s(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function a(e){return e.codePoint>=48&&e.codePoint<=57}function o(e,t){return a(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function l(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(o(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}e.exports={_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var r=e.node.expressions,i=[];r.forEach(function(e){n(e)&&i.push(e.value)}),r.sort(t);for(var u=0;u<r.length;u++){var c,p,h=r[u];if(function(e,t,r){for(var i=0;i<t.length;i++)if(function e(t,r,i){return"ClassRange"===t.type?e(t.from,r,i)&&e(t.to,r,i):!!("\\S"===r&&(n(t,"\\w")||n(t,"\\d"))||"\\D"===r&&(n(t,"\\W")||n(t,"\\s"))||"\\w"===r&&n(t,"\\d")||"\\W"===r&&n(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?s(t):"\\S"===r?!s(t):"\\d"===r?a(t):"\\D"===r?!a(t):"\\w"===r?o(t,i):"\\W"===r&&!o(t,i))}(e,t[i],r))return!0;return!1}(h,i,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;else if(l(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;else if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(h,r[u-1])||(c=h,(p=r[u+1])&&"ClassRange"===p.type&&l(c)&&p.from.codePoint===c.codePoint+1&&(p.from=c,1)))r.splice(u,1),u--;else{var d=function(e,t,r){if(!l(e))return 0;for(var n=0;t>0;){var i=r[t],s=r[t-1];if(l(s)&&s.codePoint===i.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(h,u,r);r.splice(u-d+1,d),u-=d}}}}},6953(e){"use strict";e.exports={ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}},322(e){"use strict";e.exports={CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var i=e.getChild(n),s=i.jsonEncode();r.hasOwnProperty(s)&&(i.remove(),n--),r[s]=!0}}}},4090(e){"use strict";function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}e.exports={_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,n,a,o,l,u,c,p,h,d,f;(t=e).node.expressions.forEach(function(e,r){var n;"ClassRange"===(n=e).type&&"0"===n.from.value&&"9"===n.to.value&&t.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})}),n=e,a=this._hasIFlag,o=this._hasUFlag,l=n.node,u=null,c=null,p=null,h=null,d=null,f=null,l.expressions.forEach(function(e,t){var r,l,m;i(e,"\\d")?u=n.getChild(t):"ClassRange"===(r=e).type&&"a"===r.from.value&&"z"===r.to.value?c=n.getChild(t):"ClassRange"===(l=e).type&&"A"===l.from.value&&"Z"===l.to.value?p=n.getChild(t):"Char"===(m=e).type&&"_"===m.value&&"simple"===m.kind?h=n.getChild(t):a&&o&&s(e,383)?d=n.getChild(t):a&&o&&s(e,8490)&&(f=n.getChild(t))}),u&&(c&&p||a&&(c||p))&&h&&(!o||!a||d&&f)&&(u.replace({type:"Char",value:"\\w",kind:"meta"}),c&&c.remove(),p&&p.remove(),h.remove(),d&&d.remove(),f&&f.remove()),function(e){var t=e.node;if(!(t.expressions.length<r.length)&&r.every(function(e){return t.expressions.some(function(t){return e(t)})})){var n=t.expressions.find(function(e){return i(e,"\\n")});n.value="\\s",n.symbol=void 0,n.codePoint=0/0,t.expressions.map(function(t,n){return r.some(function(e){return e(t)})?e.getChild(n):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}};var r=[function(e){return n(e," ")}].concat(t(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return i(t,e)}})),t([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return s(t,e)}})),[function(e){return"ClassRange"===e.type&&s(e.from,8192)&&s(e.to,8202)}]);function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function i(e,t){return n(e,t,"meta")}function s(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}},1810(e){"use strict";e.exports={CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,i,s,a=t.expressions[0],o=a.value,l=a.kind,u=a.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;i=o,o=/[dws]/.test(i)?i.toUpperCase():i.toLowerCase()}e.replace({type:"Char",value:o,kind:l,escaped:u||(s=o,/[*[()+?$./{}|]/.test(s))})}}}},8111(e){"use strict";e.exports={Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(i=(n=r).from,s=n.to,i.codePoint>=48&&i.codePoint<=57&&s.codePoint>=48&&s.codePoint<=57||i.codePoint>=65&&i.codePoint<=90&&s.codePoint>=65&&s.codePoint<=90||i.codePoint>=97&&i.codePoint<=122&&s.codePoint>=97&&s.codePoint<=122))){if((a=t.codePoint)>=32&&a<=126){var n,i,s,a,o,l,u=String.fromCodePoint(t.codePoint),c={type:"Char",kind:"simple",value:u,symbol:u,codePoint:t.codePoint};o=u,("ClassRange"===(l=r.type)||"CharacterClass"===l?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(c.escaped=!0),e.replace(c)}}}}},6632(e){"use strict";function t(e,t,r){for(var n=e,i=(r?n>=0:n<t.expressions.length)&&t.expressions[n];i&&"Char"===i.type&&"simple"===i.kind&&!i.escaped&&/\d/.test(i.value);)r?n--:n++,i=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function r(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}e.exports={_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var n,i,s,a,o,l,u,c,p,h,d,f,m=e.node;!m.escaped||(n=e,i=this._hasXFlag,s=n.node.value,a=n.index,"CharacterClass"!==(o=n.parent).type&&"ClassRange"!==o.type?(l=s,u=a,c=o,p=i,"{"===l?function(e,n){if(null==e)return!1;var i=t(e+1,n),s=e+i+1,a=s<n.expressions.length&&n.expressions[s];if(i){if(r(a,"}"))return!0;if(r(a,","))return i=t(s+1,n),r(a=(s=s+i+1)<n.expressions.length&&n.expressions[s],"}")}return!1}(u,c):"}"===l?function(e,n){if(null==e)return!1;var i=t(e-1,n,!0),s=e-i-1,a=s>=0&&n.expressions[s];return!!(i&&r(a,"{"))||!!r(a,",")&&(i=t(s-1,n,!0),a=(s=s-i-1)<n.expressions.length&&n.expressions[s],i&&r(a,"{"))}(u,c):!!(p&&/[ #]/.test(l))||/[*[()+?^$./\\|]/.test(l)):(h=s,d=a,f=o,"^"===h?0===d&&!f.negative:"-"===h||/[\]\\]/.test(h)))||delete m.escaped}}},8988(e){"use strict";e.exports={shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}}},7648(e,t,r){"use strict";function n(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var i=r(1059),s=r(3166).increaseQuantifierByOne;e.exports={Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var a=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var s=e.node,a=Math.ceil(r/2),o=0;o<a;){var l=r-2*o-1,u=void 0,c=void 0;if(0===o?(u=t,c=e.getChild(l)):(u=i.getForNode({type:"Alternative",expressions:[].concat(n(s.expressions.slice(r-o,r)),[t.node])}),c=i.getForNode({type:"Alternative",expressions:[].concat(n(s.expressions.slice(l,r-o)))})),u.hasEqualSource(c)){for(var p=0;p<2*o+1;p++)e.getChild(l).remove();return t.replace({type:"Repetition",expression:0===o&&"Repetition"!==u.node.type?u.node:{type:"Group",capturing:!1,expression:u.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),l}o++}return r}(e,a,r)))>=t.expressions.length||(a=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var a=e.node,o=0;o<r;){var l=e.getChild(o);if("Repetition"===l.node.type&&l.node.quantifier.greedy){var u=l.getChild(),c=void 0;if("Group"!==u.node.type||u.node.capturing||(u=u.getChild()),o+1===r?"Group"!==(c=t).node.type||c.node.capturing||(c=c.getChild()):c=i.getForNode({type:"Alternative",expressions:[].concat(n(a.expressions.slice(o+1,r+1)))}),u.hasEqualSource(c)){for(var p=o;p<r;p++)e.getChild(o+1).remove();return s(l.node.quantifier),o}}o++}return r}(e,a,r)))>=t.expressions.length))break;a=e.getChild(r),r=Math.max(1,function(e,t,r){var a=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var o=t.getChild(),l=void 0;"Group"!==o.node.type||o.node.capturing||(o=o.getChild());var u=void 0;if("Alternative"===o.node.type?(u=o.node.expressions.length,l=i.getForNode({type:"Alternative",expressions:[].concat(n(a.expressions.slice(r-u,r)))})):(u=1,"Group"!==(l=e.getChild(r-1)).node.type||l.node.capturing||(l=l.getChild())),l.hasEqualSource(o)){for(var c=r-u;c<r;c++)e.getChild(r-u).remove();return s(t.node.quantifier),r-u}}return r}(e,a,r)),r++}}}},1013(e,t,r){"use strict";var n=r(1059),i=r(3166),s=i.disjunctionToList,a=i.listToDisjunction;e.exports={Disjunction:function(e){var t=e.node,r={},i=s(t).filter(function(e){var t=e?n.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(a(i))}}},5808(e){"use strict";e.exports={Disjunction:function(e){var r=e.node,n=e.parent;if(t[n.type]){var i=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var i=t.left,s=t.right;return e(i,r)&&e(s,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var a=t.value;return r.set(a,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(r,i)&&i.size){var s={type:"CharacterClass",expressions:Array.from(i.keys()).sort().map(function(e){return i.get(e)})};t[n.type](e.getParent(),s)}}}};var t={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}}},3256(e,t,r){"use strict";e.exports=new Map([["charSurrogatePairToSingleUnicode",r(8988)],["charCodeToSimpleChar",r(8111)],["charCaseInsensitiveLowerCaseTransform",r(5621)],["charClassRemoveDuplicates",r(322)],["quantifiersMerge",r(1837)],["quantifierRangeToSymbol",r(8190)],["charClassClassrangesToChars",r(6953)],["charClassToMeta",r(4090)],["charClassToSingleChar",r(1810)],["charEscapeUnescape",r(6632)],["charClassClassrangesMerge",r(436)],["disjunctionRemoveDuplicates",r(1013)],["groupSingleCharsToCharClass",r(5808)],["removeEmptyGroup",r(2097)],["ungroup",r(5435)],["combineRepeatingPatterns",r(7648)]])},8190(e){"use strict";e.exports={Quantifier:function(e){var t,r,n,i;"Range"===e.node.kind&&(0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(i=(n=e).node).from&&1===i.to&&n.parentPath.replace(n.parentPath.node.expression))}}},1837(e,t,r){"use strict";var n=r(3166).increaseQuantifierByOne;function i(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function s(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}e.exports={Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r)if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var a=s(r.node.quantifier),o=a.from,l=a.to,u=s(t.quantifier),c=u.from,p=u.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!i(r.node.quantifier)&&!i(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=o+c,l&&p?t.quantifier.to=l+p:delete t.quantifier.to,(i(r.node.quantifier)||i(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;n(t.quantifier),r.remove()}}}}},2097(e){"use strict";e.exports={Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}},5435(e){"use strict";function t(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}e.exports={Group:function(e){var r=e.node,n=e.parent,i=e.getChild();if(!r.capturing&&i&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&("Disjunction"!==i.node.type||"RegExp"===n.type)&&("Repetition"!==n.type||"Char"===i.node.type||"CharacterClass"===i.node.type))if("Alternative"===i.node.type){var s=e.getParent();"Alternative"===s.node.type&&s.replace({type:"Alternative",expressions:[].concat(t(n.expressions.slice(0,e.index)),t(i.node.expressions),t(n.expressions.slice(e.index+1)))})}else e.replace(i.node)}}},7e3(e,t,r){"use strict";var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(i)throw s}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function i(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var s=void 0,a={},o=void 0,l=void 0;function u(e,t){return a.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var c=[[-1,1,function(e,t){l=u(t,t),o=e}],[0,4,function(e,t,r,n,i,s,a,c){l=u(i,c),o=L({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var o=s.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return e.split("").sort().join("")}(n)},O(i,c||a))}],[1,1,function(e,t){l=u(t,t),o=e}],[1,0,function(){l=null,o=""}],[2,1,function(e,t){l=u(t,t),o=e}],[2,2,function(e,t,r,n){l=u(r,n),o=e+t}],[3,1,function(e,t){l=u(t,t),o=e}],[4,1,function(e,t){l=u(t,t),o=e}],[4,3,function(e,t,r,n,i,s){l=u(n,s);var a=null;i&&(a=O(n||i,s||i)),o=L({type:"Disjunction",left:e,right:r},a)}],[5,1,function(e,t){if(l=u(t,t),0===e.length){o=null;return}o=1===e.length?L(e[0],l):L({type:"Alternative",expressions:e},l)}],[6,0,function(){l=null,o=[]}],[6,2,function(e,t,r,n){l=u(r,n),o=e.concat(t)}],[7,1,function(e,t){l=u(t,t),o=L(Object.assign({type:"Assertion"},e),l)}],[7,2,function(e,t,r,n){l=u(r,n),o=e,t&&(o=L({type:"Repetition",expression:e,quantifier:t},l))}],[8,1,function(e,t){l=u(t,t),o={kind:"^"}}],[8,1,function(e,t){l=u(t,t),o={kind:"$"}}],[8,1,function(e,t){l=u(t,t),o={kind:"\\b"}}],[8,1,function(e,t){l=u(t,t),o={kind:"\\B"}}],[8,3,function(e,t,r,n,i,s){l=u(n,s),o={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,i,s){l=u(n,s),o={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,i,s){l=u(n,s),o={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,i,s){l=u(n,s),o={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){l=u(t,t),o=e}],[9,1,function(e,t){l=u(t,t),o=e}],[9,1,function(e,t){l=u(t,t),o=e}],[10,1,function(e,t){o=w(e,"simple",l=u(t,t))}],[10,1,function(e,t){l=u(t,t),(o=w(e.slice(1),"simple",l)).escaped=!0}],[10,1,function(e,t){(o=w(e,"unicode",l=u(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){o=w(e,"unicode",l=u(t,t))}],[10,1,function(e,t){o=function(e,t){var r="P"===e[1],n=e.indexOf("="),i=e.slice(3,-1!==n?n:-1),s=void 0,a=-1===n&&k.isGeneralCategoryValue(i),o=-1===n&&k.isBinaryPropertyName(i);if(a)s=i,i="General_Category";else if(o)s=i;else{if(!k.isValidName(i))throw SyntaxError("Invalid unicode property name: "+i+".");if(s=e.slice(n+1,-1),!k.isValidValue(i,s))throw SyntaxError("Invalid "+i+" unicode property value: "+s+".")}return L({type:"UnicodeProperty",name:i,value:s,negative:r,shorthand:a,binary:o,canonicalName:k.getCanonicalName(i)||i,canonicalValue:k.getCanonicalValue(s)||s},t)}(e,l=u(t,t))}],[10,1,function(e,t){o=w(e,"control",l=u(t,t))}],[10,1,function(e,t){o=w(e,"hex",l=u(t,t))}],[10,1,function(e,t){o=w(e,"oct",l=u(t,t))}],[10,1,function(e,t){var r,n,i;r=e,n=l=u(t,t),o=(i=Number(r.slice(1)))>0&&i<=x?L({type:"Backreference",kind:"number",number:i,reference:i},n):w(r,"decimal",n)}],[10,1,function(e,t){o=w(e,"meta",l=u(t,t))}],[10,1,function(e,t){o=w(e,"meta",l=u(t,t))}],[10,1,function(e,t){l=u(t,t),o=function(e,t){var r=e.slice(3,-1),n=N(r);if(S.hasOwnProperty(n))return L({type:"Backreference",kind:"name",number:S[n],reference:n,referenceRaw:r},t);var i=null,s=null,a=null,o=null;t&&(i=t.startOffset,s=t.startLine,a=t.endLine,o=t.startColumn);var l=/^[\w$<>]/,u=void 0,c=[w(e.slice(1,2),"simple",i?{startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=2,endColumn:o+=2}:null)];for(c[0].escaped=!0,e=e.slice(2);e.length>0;){var p=null;(p=e.match(A))||(p=e.match(P))?(i&&(u={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:i+=p[0].length,endColumn:o+=p[0].length}),c.push(w(p[0],"unicode",u)),e=e.slice(p[0].length)):(p=e.match(l))&&(i&&(u={startLine:s,endLine:a,startColumn:o,startOffset:i,endOffset:++i,endColumn:++o}),c.push(w(p[0],"simple",u)),e=e.slice(1))}return c}(e,t)}],[11,1,function(e,t){l=u(t,t),o=e}],[11,0],[12,1,function(e,t){l=u(t,t),o=e}],[12,2,function(e,t,r,n){l=u(r,n),e.greedy=!1,o=e}],[13,1,function(e,t){o=L({type:"Quantifier",kind:e,greedy:!0},l=u(t,t))}],[13,1,function(e,t){o=L({type:"Quantifier",kind:e,greedy:!0},l=u(t,t))}],[13,1,function(e,t){o=L({type:"Quantifier",kind:e,greedy:!0},l=u(t,t))}],[13,1,function(e,t){l=u(t,t);var r=T(e);o=L({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},l)}],[13,1,function(e,t){l=u(t,t),o=L({type:"Quantifier",kind:"Range",from:T(e)[0],greedy:!0},l)}],[13,1,function(e,t){l=u(t,t);var r=T(e);o=L({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},l)}],[14,1,function(e,t){l=u(t,t),o=e}],[14,1,function(e,t){l=u(t,t),o=e}],[15,3,function(e,t,r,n,i,s){l=u(n,s);var c=String(e),p=N(c);if(!a.options.allowGroupNameDuplicates&&S.hasOwnProperty(p))throw SyntaxError('Duplicate of the named group "'+p+'".');S[p]=e.groupNumber,o=L({type:"Group",capturing:!0,name:p,nameRaw:c,number:e.groupNumber,expression:t},l)}],[15,3,function(e,t,r,n,i,s){l=u(n,s),o=L({type:"Group",capturing:!0,number:e.groupNumber,expression:t},l)}],[16,3,function(e,t,r,n,i,s){o=L({type:"Group",capturing:!1,expression:t},l=u(n,s))}],[17,3,function(e,t,r,n,i,s){o=L({type:"CharacterClass",negative:!0,expressions:t},l=u(n,s))}],[17,3,function(e,t,r,n,i,s){o=L({type:"CharacterClass",expressions:t},l=u(n,s))}],[18,0,function(){l=null,o=[]}],[18,1,function(e,t){l=u(t,t),o=e}],[19,1,function(e,t){l=u(t,t),o=[e]}],[19,2,function(e,t,r,n){l=u(r,n),o=[e].concat(t)}],[19,4,function(e,t,r,n,i,s,a,c){l=u(i,c),E(e,r),o=[L({type:"ClassRange",from:e,to:r},O(i,a))],n&&(o=o.concat(n))}],[20,1,function(e,t){l=u(t,t),o=e}],[20,2,function(e,t,r,n){l=u(r,n),o=[e].concat(t)}],[20,4,function(e,t,r,n,i,s,a,c){l=u(i,c),E(e,r),o=[L({type:"ClassRange",from:e,to:r},O(i,a))],n&&(o=o.concat(n))}],[21,1,function(e,t){o=w(e,"simple",l=u(t,t))}],[21,1,function(e,t){l=u(t,t),o=e}],[22,1,function(e,t){l=u(t,t),o=e}],[22,1,function(e,t){o=w(e,"meta",l=u(t,t))}]],p={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},h=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],d=[],f=void 0,m=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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\u0560-\u0588\u05d0-\u05ea\u05ef-\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\u0860-\u086a\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\u09fc\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\u1880-\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\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\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\u2118-\u211d\u2124\u2126\u2128\u212a-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\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-\uab67\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]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\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\u09fc\u09fe\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-\u0aff\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-\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\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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\u1369-\u1371\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-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\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\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\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\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\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\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\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-\uab67\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]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return I(s.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===s);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+s);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\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\u0560-\u0588\u05d0-\u05ea\u05ef-\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\u0860-\u086a\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\u09fc\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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-\u1878\u1880-\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\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\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\u2118-\u211d\u2124\u2126\u2128\u212a-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\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-\uab67\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]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\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\u09fc\u09fe\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-\u0aff\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-\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\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\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\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\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\u1369-\u1371\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-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\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\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\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\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\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\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\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-\uab67\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]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return I(s=s.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],y={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},g={type:"$",value:""};a.lexer=f={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(g);for(var e=this._string.slice(this._cursor),t=y[this.getCurrentState()],r=0;r<t.length;r++){var n=m[t[r]],a=this._match(e,n[0]);if(""===e&&""===a&&this._cursor++,null!==a){(s=a).length;var o=n[1].call(this);if(!o)return this.getNextToken();if(Array.isArray(o)){var l,u=o.slice(1);o=o[0],u.length>0&&(l=this._tokensQueue).unshift.apply(l,i(u))}return this.onToken(this._toToken(o,s))}}if(this.isEOF())return this._cursor++,g;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],i="";throw n&&(i="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(i+'Unexpected token: "'+e+'" '+("at "+t+":")+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},a.tokenizer=f,a.options={captureLocations:!0};var b={setOptions:function(e){return a.options=e,this},getOptions:function(){return a.options},parse:function(e,t){if(!f)throw Error("Tokenizer instance wasn't specified.");f.initString(e);var r=a.options;t&&(a.options=Object.assign({},a.options,t)),b.onParseBegin(e,f,a.options),d.length=0,d.push(0);var n=f.getNextToken(),u=null;do{n||(a.options=r,M());var m=d[d.length-1],y=p[n.type];h[m].hasOwnProperty(y)||(a.options=r,D(n));var g=h[m][y];if("s"===g[0]){var x=null;a.options.captureLocations&&(x={startOffset:n.startOffset,endOffset:n.endOffset,startLine:n.startLine,endLine:n.endLine,startColumn:n.startColumn,endColumn:n.endColumn}),u=this.onShift(n),d.push({symbol:p[u.type],semanticValue:u.value,loc:x},Number(g.slice(1))),n=f.getNextToken()}else if("r"===g[0]){var S=c[g.slice(1)],v="function"==typeof S[2],T=v?[]:null,E=v&&a.options.captureLocations?[]:null;if(0!==S[1])for(var k=S[1];k-- >0;){d.pop();var w=d.pop();v&&(T.unshift(w.semanticValue),E&&E.unshift(w.loc))}var A={symbol:S[0]};if(v){s=u?u.value:null,u&&u.value.length;var P=null!==E?T.concat(E):T;S[2].apply(S,i(P)),A.semanticValue=o,E&&(A.loc=l)}var C=d[d.length-1],I=S[0];d.push(A,h[C][I])}else if("acc"===g){d.pop();var _=d.pop();if((1!==d.length||0!==d[0]||f.hasMoreTokens())&&(a.options=r,D(n)),_.hasOwnProperty("semanticValue"))return a.options=r,b.onParseEnd(_.semanticValue),_.semanticValue;return b.onParseEnd(),a.options=r,!0}}while(f.hasMoreTokens()||d.length>1)},setTokenizer:function(e){return f=e,b},getTokenizer:function(){return f},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},x=0,S={},v="";function T(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function E(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}b.onParseBegin=function(e,t){v=e,x=0,S={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},b.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++x),e};var k=r(7047);function w(e,t,r){var i=void 0,s=void 0;switch(t){case"decimal":i=String.fromCodePoint(s=Number(e.slice(1)));break;case"oct":i=String.fromCodePoint(s=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=n(e.split("\\u").slice(1),2),o=a[0],l=a[1];i=String.fromCodePoint(s=((o=parseInt(o,16))-55296)*1024+((l=parseInt(l,16))-56320)+65536)}else{if((s=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);i=String.fromCodePoint(s)}break;case"meta":switch(e){case"\\t":s=(i=" ").codePointAt(0);break;case"\\n":s=(i="\n").codePointAt(0);break;case"\\r":s=(i="\r").codePointAt(0);break;case"\\v":s=(i="\v").codePointAt(0);break;case"\\f":s=(i="\f").codePointAt(0);break;case"\\b":s=(i="\b").codePointAt(0);case"\\0":i="\0",s=0;case".":i=".",s=0/0;break;default:s=0/0}break;case"simple":s=(i=e).codePointAt(0)}return L({type:"Char",value:e,kind:t,symbol:i,codePoint:s},r)}var A=/^\\u[0-9a-fA-F]{4}/,P=/^\\u\{[0-9a-fA-F]{1,}\}/,C=/\\u\{[0-9a-fA-F]{1,}\}/;function I(e,t){if(C.test(e)&&"u"!==t&&"xu"!==t&&"u_class"!==t)throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var _=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function N(e){return e.replace(RegExp(_,"g"),function(e,t,r,n,i,s,a){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):i?String.fromCodePoint(parseInt(i,16)):s?String.fromCodePoint(parseInt(s,16)):a?String.fromCodePoint(parseInt(a,16)):e})}function L(e,t){return a.options.captureLocations&&(e.loc={source:v.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function O(e,t){return a.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function D(e){"$"===e.type&&M(),f.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function M(){throw SyntaxError("Unexpected end of input.")}e.exports=b},3810(e,t,r){"use strict";var n=r(7e3),i=n.parse.bind(n);n.parse=function(e,t){return i(""+e,t)},n.setOptions({captureLocations:!1}),e.exports=n},7047(e){"use strict";var t={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},r=u(t),n={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"},i=u(n),s={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"},a=u(s),o={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"},l=u(o);function u(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)t[n[i]]=r;else t[n]=r}return t}function c(e){return s.hasOwnProperty(e)||a.hasOwnProperty(e)}function p(e){return o.hasOwnProperty(e)||l.hasOwnProperty(e)}e.exports={isAlias:function(e){return r.hasOwnProperty(e)||i.hasOwnProperty(e)},isValidName:function(e){return t.hasOwnProperty(e)||r.hasOwnProperty(e)||n.hasOwnProperty(e)||i.hasOwnProperty(e)},isValidValue:function(e,t){var r,n;return"General_Category"===(r=e)||"gc"==r?c(t):("Script"===(n=e)||"Script_Extensions"===n||"sc"===n||"scx"===n)&&p(t)},isGeneralCategoryValue:c,isScriptCategoryValue:p,isBinaryPropertyName:function(e){return n.hasOwnProperty(e)||i.hasOwnProperty(e)},getCanonicalName:function(e){return r.hasOwnProperty(e)?r[e]:i.hasOwnProperty(e)?i[e]:null},getCanonicalValue:function(e){return a.hasOwnProperty(e)?a[e]:l.hasOwnProperty(e)?l[e]:i.hasOwnProperty(e)?i[e]:null},NON_BINARY_PROP_NAMES_TO_ALIASES:t,NON_BINARY_ALIASES_TO_PROP_NAMES:r,BINARY_PROP_NAMES_TO_ALIASES:n,BINARY_ALIASES_TO_PROP_NAMES:i,GENERAL_CATEGORY_VALUE_TO_ALIASES:s,GENERAL_CATEGORY_VALUE_ALIASES_TO_VALUES:a,SCRIPT_VALUE_TO_ALIASES:o,SCRIPT_VALUE_ALIASES_TO_VALUE:l}},4676(e,t,r){"use strict";var n=r(9182),i=r(42),s=r(3072),a=r(3810),o=r(2003),l=r(9171),u=r(6734),c=r(1537).RegExpTree;e.exports={parser:a,fa:u,TransformResult:o.TransformResult,parse:function(e,t){return a.parse(""+e,t)},traverse:function(e,t,r){return l.traverse(e,t,r)},transform:function(e,t){return o.transform(e,t)},generate:function(e){return i.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.blacklist;return s.optimize(e,{whitelist:t,blacklist:n})},compatTranspile:function(e,t){return n.transform(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new c(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}}},2003(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(42),s=r(3810),a=r(9171),o=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return n(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=i.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=i.generate(this._ast)),this._string}}]),e}();e.exports={TransformResult:o,transform:function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=s.parse(e,{captureLocations:!0})),a.traverse(r,t),new o(r)}}},3166(e){"use strict";e.exports={disjunctionToList:function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},listToDisjunction:function(e){return e.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}})},increaseQuantifierByOne:function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))}}},9171(e,t,r){"use strict";var n=r(1059);e.exports={traverse:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function i(e,t,r,i){var s=n.getForNode(t);return n.getForNode(e,s,r,i)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),n.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,i=t.post,s=t.skipProperty;!function e(t,a,o,l){if(t&&"string"==typeof t.type){var u=void 0;if(r&&(u=r(t,a,o,l)),!1!==u){for(var c in a&&a[o]&&(t=isNaN(l)?a[o]:a[o][l]),t)if(t.hasOwnProperty(c)){if(s?s(c,t):"$"===c[0])continue;var p=t[c];if(Array.isArray(p)){var h=0;for(n.traversingIndexStack.push(h);h<p.length;)e(p[h],t,c,h),h=n.updateTraversingIndex(1);n.traversingIndexStack.pop()}else e(p,t,c)}}i&&i(t,a,o,l)}}(e,null)}(e,{pre:function(e,n,s,a){var o=void 0;r.asNodes||(o=i(e,n,s,a));var l=!0,u=!1,c=void 0;try{for(var p,h=t[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var d=p.value;if("function"==typeof d["*"])if(o){if(!o.isRemoved()){var f=d["*"](o);if(!1===f)return!1}}else d["*"](e,n,s,a);var m=void 0;if("function"==typeof d[e.type]?m=d[e.type]:"object"==typeof d[e.type]&&"function"==typeof d[e.type].pre&&(m=d[e.type].pre),m)if(o){if(!o.isRemoved()){var y=m.call(d,o);if(!1===y)return!1}}else m.call(d,e,n,s,a)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}},post:function(e,n,s,a){if(e){var o=void 0;r.asNodes||(o=i(e,n,s,a));var l=!0,u=!1,c=void 0;try{for(var p,h=t[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var d=p.value,f=void 0;if("object"==typeof d[e.type]&&"function"==typeof d[e.type].post&&(f=d[e.type].post),f)if(o){if(!o.isRemoved()){var m=f.call(d,o);if(!1===m)return!1}}else f.call(d,e,n,s,a)}}catch(e){u=!0,c=e}finally{try{!l&&h.return&&h.return()}finally{if(u)throw c}}}},skipProperty:function(e){return"loc"===e}})}}},1059(e){"use strict";var t=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r="expressions",n="expression",i=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=n,this.index=i}return t(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=void 0;return null!=i?(s||(s=r),this._enforceProp(s),this.node[s][i]=t,a=e.getForNode(t,this,s,i)):(s||(s=n),this._enforceProp(s),this.node[s]=t,a=e.getForNode(t,this,s,null)),a}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=r),this._enforceProp(t);var n=this.node[t].length;return this.setChild(e,n,t)}},{key:"insertChildAt",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r;this._enforceProp(i),this.node[i].splice(n,0,t),n<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,i)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,r){for(var n=e.getForNode(t),i=0;i<t[r].length;i++)e.getForNode(t[r][i],n,r,i).index=i}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,r,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,n):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,s)===JSON.stringify(e.node,s)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:s,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,n,-1==i?null:i));var s=e.registry.get(t);return null!==r&&(s.parentPath=r,s.parent=s.parentPath.node),null!==n&&(s.property=n),i>=0&&(s.index=i),s}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function s(e,t){if("loc"!==e)return t}i.initRegistry(),i.traversingIndexStack=[],e.exports=i},1379(e){"use strict";e.exports=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r}},4999(e,t,r){"use strict";e.exports=r(4676)},6740(e){"use strict";var t=RegExp(/(^[ \t]*\n)/,"gm");e.exports=function(e){return e.replace(t,"")}},9721(e,t,r){"use strict";var n=r(6556),i=r(4035),s=n("RegExp.prototype.exec"),a=r(9675);e.exports=function(e){if(!i(e))throw new a("`regex` must be a RegExp");return function(t){return null!==s(e,t)}}},6897(e,t,r){"use strict";var n=r(453),i=r(41),s=r(592)(),a=r(5795),o=r(9675),l=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new o("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(u=!1)}return(n||u||!r)&&(s?i(e,"length",t,!0,!0):i(e,"length",t)),e}},1135(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032(e,t,r){"use strict";var n=r(7244),i=r(8184),s=r(5767),a=r(5680);function o(e){return e.call.bind(e)}var l="u">typeof BigInt,u="u">typeof Symbol,c=o(Object.prototype.toString),p=o(Number.prototype.valueOf),h=o(String.prototype.valueOf),d=o(Boolean.prototype.valueOf);if(l)var f=o(BigInt.prototype.valueOf);if(u)var m=o(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===c(e)}function b(e){return"[object Set]"===c(e)}function x(e){return"[object WeakMap]"===c(e)}function S(e){return"[object WeakSet]"===c(e)}function v(e){return"[object ArrayBuffer]"===c(e)}function T(e){return!("u"<typeof ArrayBuffer)&&(v.working?v(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===c(e)}function k(e){return!("u"<typeof DataView)&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"u">typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===s(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===s(e)},t.isUint16Array=function(e){return"Uint16Array"===s(e)},t.isUint32Array=function(e){return"Uint32Array"===s(e)},t.isInt8Array=function(e){return"Int8Array"===s(e)},t.isInt16Array=function(e){return"Int16Array"===s(e)},t.isInt32Array=function(e){return"Int32Array"===s(e)},t.isFloat32Array=function(e){return"Float32Array"===s(e)},t.isFloat64Array=function(e){return"Float64Array"===s(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===s(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===s(e)},g.working="u">typeof Map&&g(new Map),t.isMap=function(e){return!("u"<typeof Map)&&(g.working?g(e):e instanceof Map)},b.working="u">typeof Set&&b(new Set),t.isSet=function(e){return!("u"<typeof Set)&&(b.working?b(e):e instanceof Set)},x.working="u">typeof WeakMap&&x(new WeakMap),t.isWeakMap=function(e){return!("u"<typeof WeakMap)&&(x.working?x(e):e instanceof WeakMap)},S.working="u">typeof WeakSet&&S(new WeakSet),t.isWeakSet=function(e){return S(e)},v.working="u">typeof ArrayBuffer&&v(new ArrayBuffer),t.isArrayBuffer=T,E.working="u">typeof ArrayBuffer&&"u">typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var w="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===c(e)}function P(e){return void 0!==w&&(void 0===A.working&&(A.working=A(new w)),A.working?A(e):e instanceof w)}function C(e){return y(e,p)}function I(e){return y(e,h)}function _(e){return y(e,d)}function N(e){return l&&y(e,f)}function L(e){return u&&y(e,m)}t.isSharedArrayBuffer=P,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=C,t.isStringObject=I,t.isBooleanObject=_,t.isBigIntObject=N,t.isSymbolObject=L,t.isBoxedPrimitive=function(e){return C(e)||I(e)||_(e)||N(e)||L(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(T(e)||P(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},537(e,t,r){var n=r(5606),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},s=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(s,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),o=n[r];r<i;o=n[++r])g(o)||!T(o)?a+=" "+o:a+=" "+u(o);return a},t.deprecate=function(e,r){if(void 0!==n&&!0===n.noDeprecation)return e;if(void 0===n)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var a={},o=/^$/;if(n.env.NODE_DEBUG){var l=n.env.NODE_DEBUG;o=RegExp("^"+(l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function u(e,r){var n={seen:[],stylize:p};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),h(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function p(e,t){return e}function h(e,r,n){if(e.customInspect&&r&&w(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,s,a,o,l,u,c=r.inspect(n,e);return x(c)||(c=h(e,c,n)),c}var p=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,r);if(p)return p;var T=Object.keys(r),A=(l={},T.forEach(function(e,t){l[e]=!0}),l);if(e.showHidden&&(T=Object.getOwnPropertyNames(r)),k(r)&&(T.indexOf("message")>=0||T.indexOf("description")>=0))return d(r);if(0===T.length){if(w(r)){var P=r.name?": "+r.name:"";return e.stylize("[Function"+P+"]","special")}if(v(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return d(r)}var C="",_=!1,N=["{","}"];if(m(r)&&(_=!0,N=["[","]"]),w(r)&&(C=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(C=" "+RegExp.prototype.toString.call(r)),E(r)&&(C=" "+Date.prototype.toUTCString.call(r)),k(r)&&(C=" "+d(r)),0===T.length&&(!_||0==r.length))return N[0]+C+N[1];if(n<0)if(v(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),u=_?function(e,t,r,n,i){for(var s=[],a=0,o=t.length;a<o;++a)I(t,String(a))?s.push(f(e,t,r,n,String(a),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(f(e,t,r,n,i,!0))}),s}(e,r,n,A,T):T.map(function(t){return f(e,r,n,A,t,_)}),e.seen.pop(),i=u,s=C,a=N,o=0,i.reduce(function(e,t){return o++,t.indexOf("\n")>=0&&o++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===s?"":s+"\n ")+" "+i.join(",\n ")+" "+a[1]:a[0]+s+" "+i.join(", ")+" "+a[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i,s){var a,o,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),I(n,i)||(a="["+i+"]"),!o&&(0>e.seen.indexOf(l.value)?(o=g(r)?h(e,l.value,null):h(e,l.value,r-1)).indexOf("\n")>-1&&(o=s?o.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),S(a)){if(s&&i.match(/^\d+$/))return o;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+o}function m(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return"number"==typeof e}function x(e){return"string"==typeof e}function S(e){return void 0===e}function v(e){return T(e)&&"[object RegExp]"===A(e)}function T(e){return"object"==typeof e&&null!==e}function E(e){return T(e)&&"[object Date]"===A(e)}function k(e){return T(e)&&("[object Error]"===A(e)||e instanceof Error)}function w(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()])if(o.test(e)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(9032),t.isArray=m,t.isBoolean=y,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=x,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=v,t.types.isRegExp=v,t.isObject=T,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(1135);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),C[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6698),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var _="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(_&&e[_]){var t=e[_];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,_,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),_&&Object.defineProperty(t,_,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=_,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var s=this,a=function(){return i.apply(s,arguments)};e.apply(this,t).then(function(e){n.nextTick(a.bind(null,null,e))},function(e){n.nextTick(N.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},5767(e,t,r){"use strict";var n=r(2682),i=r(9209),s=r(487),a=r(6556),o=r(5795),l=r(3628),u=a("Object.prototype.toString"),c=r(9092)(),p="u"<typeof globalThis?r.g:globalThis,h=i(),d=a("String.prototype.slice"),f=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},m={__proto__:null};c&&o&&l?n(h,function(e){var t=new p[e];if(Symbol.toStringTag in t&&l){var r=l(t),n=o(r,Symbol.toStringTag);if(!n&&r&&(n=o(l(r),Symbol.toStringTag)),n&&n.get){var i=s(n.get);m["$"+e]=i}}}):n(h,function(e){var t=new p[e],r=t.slice||t.set;if(r){var n=s(r);m["$"+e]=n}}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t,r,i=d(u(e),8,-1);return f(h,i)>-1?i:"Object"===i&&(r=!1,n(m,function(t,n){if(!r)try{t(e),r=d(n,1)}catch(e){}}),r)}return o?(t=!1,n(m,function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(e){}}),t):null}},6587(e){e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach(function(e){n[e]=i[e]}),n}}},9317(e){"use strict";let t=e=>(...t)=>(...r)=>e(...t,...r);e.exports=(e,...r)=>((function(e){if("function"!=typeof e)throw Error("fn should be a function!")})(e),r.length)?t(e)(...r):t(e)},8020(){},9992(){},5279(e,t,r){"use strict";let n=r(3519)(()=>{let{Parser:e}=r(8630),t=r(9175),n=r(1078).A;return e.extend(n(),t)});e.exports.q=e=>{let t=n(),r={locations:!0,comment:!0,ecmaVersion:2023,sourceType:"module",allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowImportExportEverywhere:!0,preserveParens:!0},i=Array.from(t.tokenizer(e,r));return{...t.parse(e,r),tokens:i}}},5668(e,t,r){"use strict";let n=r(3519)(()=>r(6600));e.exports.q=e=>{let{parse:t}=n();return t(e,{loc:!0,tokens:!0,comment:!0,ecmaVersion:2023,sourceType:"module",ecmaFeatures:{jsx:!0}})}},8246(e,t,r){"use strict";let n=r(3519)(()=>r(Object(function(){var e=Error("Cannot find module 'hermes-parser'");throw e.code="MODULE_NOT_FOUND",e}())));e.exports.q=e=>n().parse(e,{babel:!0,allowReturnOutsideFunction:!0,flow:"detect",locations:!0,tokens:!0})},9209(e,t,r){"use strict";var n=r(6578),i="u"<typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},3078(e,t){"use strict";let r={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(r))Object.freeze(r[e]);Object.freeze(r);let n=new Set(["parent","leadingComments","trailingComments"]);function i(e){return!n.has(e)&&"_"!==e[0]}t.KEYS=r,t.getKeys=function(e){return Object.keys(e).filter(i)},t.unionWith=function(e){let t=Object.assign({},r);for(let r of Object.keys(e))if(Object.hasOwn(t,r)){let n=new Set(e[r]);for(let e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}},6600(e,t,r){"use strict";var n,i=r(8630),s=r(9214),a=r(3078),o=(n=Object.create(null),i&&Object.keys(i).forEach(function(e){if("default"!==e){var t=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return i[e]}})}}),n.default=i,Object.freeze(n));let l="Keyword",u="JSXText";class c{constructor(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}translate(e,t){let r=e.type,n=this._acornTokTypes;if(r===n.name)e.type="Identifier","value"in e&&"static"===e.value&&(e.type=l),t.ecmaVersion>5&&"value"in e&&("yield"===e.value||"let"===e.value)&&(e.type=l);else if(r===n.privateId)e.type="PrivateIdentifier";else if(r===n.semi||r===n.comma||r===n.parenL||r===n.parenR||r===n.braceL||r===n.braceR||r===n.dot||r===n.bracketL||r===n.colon||r===n.question||r===n.bracketR||r===n.ellipsis||r===n.arrow||r===n.jsxTagStart||r===n.incDec||r===n.starstar||r===n.jsxTagEnd||r===n.prefix||r===n.questionDot||"binop"in r&&r.binop&&!r.keyword||"isAssign"in r&&r.isAssign)e.type="Punctuator",e.value=this._code.slice(e.start,e.end);else if(r===n.jsxName)e.type="JSXIdentifier";else if("jsxText"===r.label||r===n.jsxAttrValueToken)e.type=u;else if(r.keyword)"true"===r.keyword||"false"===r.keyword?e.type="Boolean":"null"===r.keyword?e.type="Null":e.type=l;else if(r===n.num)e.type="Numeric",e.value=this._code.slice(e.start,e.end);else if(r===n.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=u):e.type="String",e.value=this._code.slice(e.start,e.end);else if(r===n.regexp){e.type="RegularExpression";let t="value"in e&&e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e}onToken(e,t){let r=this._acornTokTypes,n=t.tokens,i=this._tokens,s=()=>{var e,t;let r,i,s;n.push((e=this._tokens,t=this._code,r=e[0],i=e.at(-1),s={type:"Template",value:t.slice(r.start,i.end)},r.loc&&(s.loc={start:r.loc.start,end:i.loc.end}),r.range&&(s.start=r.range[0],s.end=i.range[1],s.range=[s.start,s.end]),s)),this._tokens=[]};if(e.type===r.eof){this._curlyBrace&&n.push(this.translate(this._curlyBrace,t));return}if(e.type===r.backQuote){this._curlyBrace&&(n.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(e),i.length>1&&s();return}if(e.type===r.dollarBraceL){i.push(e),s();return}if(e.type===r.braceR){this._curlyBrace&&n.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===r.template||e.type===r.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(e);return}this._curlyBrace&&(n.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),n.push(this.translate(e,t))}}let p=[3,5,6,7,8,9,10,11,12,13,14,15,16,17],h=p.at(-1),d=Symbol("espree's internal state"),f=Symbol("espree's esprimaFinishNode");var m=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,r){("object"!=typeof e||null===e)&&(e={}),"string"==typeof r||r instanceof String||(r=String(r));let n=e.sourceType,i=function(e){let t=function(e=5){let t="latest"===e?h:e;if("number"!=typeof t)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!p.includes(t))throw Error("Invalid ecmaVersion.");return t}(e.ecmaVersion),r=function(e="script"){if("script"===e||"module"===e||"commonjs"===e)return e;throw Error("Invalid sourceType.")}(e.sourceType),n=!0===e.range,i=!0===e.loc;if(3!==t&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(void 0!==e.allowReserved&&"boolean"!=typeof e.allowReserved)throw Error("`allowReserved`, when present, must be `true` or `false`");let s=3===t&&(e.allowReserved||"never"),a=e.ecmaFeatures||{},o="commonjs"===e.sourceType||!!a.globalReturn;if("module"===r&&t<6)throw Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:r,ranges:n,locations:i,allowReserved:s,allowReturnOutsideFunction:o})}(e),s=i.ecmaFeatures||{},a=!0===i.tokens?new c(t,r):null,o={originalSourceType:n||i.sourceType,tokens:a?[]:null,comments:!0===i.comment?[]:null,impliedStrict:!0===s.impliedStrict&&i.ecmaVersion>=5,ecmaVersion:i.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReserved:i.allowReserved,allowReturnOutsideFunction:i.allowReturnOutsideFunction,onToken(e){a&&a.onToken(e,o),e.type!==t.eof&&(o.lastToken=e)},onComment(e,t,n,i,s,a){if(o.comments){var l;let u,c=(l=r,u={type:e?"Block":"#!"===l.slice(n,n+2)?"Hashbang":"Line",value:t},"number"==typeof n&&(u.start=n,u.end=i,u.range=[n,i]),"object"==typeof s&&(u.loc={start:s,end:a}),u);o.comments.push(c)}}},r),this[d]=o}tokenize(){do this.next();while(this.type!==t.eof)this.next();let e=this[d],r=e.tokens;return e.comments&&(r.comments=e.comments),r}finishNode(e,t){let r=super.finishNode(e,t);return this[f](r)}finishNodeAt(e,t,r,n){let i=super.finishNodeAt(e,t,r,n);return this[f](i)}parse(){let e=this[d],t=super.parse();return t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),this[d].templateElements.forEach(e=>{let t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)}),t}parseTopLevel(e){return this[d].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,r){let n=e.acorn.getLineInfo(this.input,t),i=SyntaxError(r);throw i.index=t,i.lineNumber=n.line,i.column=n.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){let r=super.jsx_readString(e);return this.type===t.string&&(this[d].jsxAttrValueToken=!0),r}[f](e){return"TemplateElement"===e.type&&this[d].templateElements.push(e),!e.type.includes("Function")||"generator"in e||(e.generator=!1),e}}};let y={_regular:null,_jsx:null,get regular(){if(null===this._regular){let e=m();this._regular=o.Parser.extend(e)}return this._regular},get jsx(){if(null===this._jsx){let e=m(),t=s();this._jsx=o.Parser.extend(t,e)}return this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}},g=function(){let e,t={};for(e in"function"==typeof Object.create&&(t=Object.create(null)),a.KEYS)Object.hasOwn(a.KEYS,e)&&(t[e]=e);return"function"==typeof Object.freeze&&Object.freeze(t),t}(),b=[...p];Object.defineProperty(t,"VisitorKeys",{enumerable:!0,get:function(){return a.KEYS}}),t.Syntax=g,t.latestEcmaVersion=h,t.name="espree",t.parse=function(e,t){return new(y.get(t))(t,e).parse()},t.supportedEcmaVersions=b,t.tokenize=function(e,t){let r=y.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new r(t,e).tokenize()},t.version="11.2.0"},2960(e){"use strict";e.exports=(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}}},5638(e){"use strict";e.exports.S=e=>{let t=[],r=[],n=[];for(let i of e){if("ImportDefaultSpecifier"===i.type){t.push(i);continue}if("ImportNamespaceSpecifier"===i.type){r.push(i);continue}if("ImportSpecifier"===i.type){n.push(i);continue}}return{defaults:t,namespaces:r,imports:n}}},5811(e,t,r){"use strict";function n(e){if("function"!=typeof e)throw TypeError("Argument to promisify must be a function");var t=e["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],r=n.Promise||Promise;if("function"!=typeof r)throw Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];return new r((r,n)=>{i.push(function(e){if(e)return n(e);for(var i=arguments.length,s=Array(1<i?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];if(1===s.length||!t)return r(s[0]);var o={};s.forEach((e,r)=>{var n=t[r];n&&(o[n]=e)}),r(o)}),e.apply(this,i)})}}n.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",n.Promise=void 0,r.d(t,{F:()=>n})},8328(e,t,r){"use strict";function n(e){let t={value:e};return(...e)=>{let[r]=e;return e.length?(t.value=r,r):t.value}}r.d(t,{p:()=>n})},9098(e,t,r){"use strict";function n(e){let t=0,{length:r}=e;for(;t<r&&" "===e[t];)++t;return t}r.d(t,{},{l:(e,...t)=>{let r=(function(e,t){let r=[],n=e.length+t.length,i=0;for(let s=0;s<n;s++){let n=s%2?t.shift():e[i++];r.push(n)}return r.join("")})(e,t).split("\n").slice(1,-1);if(!r.length)return"";let[i]=r,s=n(i),a=[];for(let e of r){let t=n(e);if(t<s){a.push(e.slice(t));continue}a.push(e.slice(s))}return a.join("\n")}})},4492(e,t,r){"use strict";let n=e=>()=>e,{keys:i}=Object;r.d(t,{},{n:(e,t,r=null)=>{var s=e,a=t;if("string"!=typeof s)throw Error("template should be a string!");if("object"!=typeof a)throw Error("values should be an object!");let o=e;for(let s of r?e.match(/{{(.*?)}}/g):i(t)){let[e,i]=function(e,t,r){if(!r)return[`{{ ${e} }}`,t[e]];let n=e.replaceAll("{{","").replaceAll("}}","").replaceAll(" ",""),i=t[n]||"";if(!n.includes("|"))return[e,i];let[s,a]=n.split("|"),o=r[a],l=t[s];return o?[e,o(l)]:[e,l]}(s,t,r),a=n(i);for(;o.includes(e);)o=o.replace(e,a)}return o.includes("{{")&&(o=o.replace(/{{.*?}}/g,"")),o}})},6921(e,t,r){"use strict";var n=r(4492),i=r(6424);let s=e=>"object"==typeof e,{entries:a}=Object;r.d(t,{A:()=>function e(t,r,o,l=""){let u="";for(let[c,p]of(l&&(l+="."),a(t))){let t,a="",h="",d="",f=l+c;s(p)?(a=(0,n.n)(i.Q,{items:e(p,r,o,f)}),h=" menu-submenu",d=' data-menu="js-submenu"'):r[f]=p,o.icon&&(t=c.replace(/[()]/g,"").replace(/\s/g,"-").toLowerCase(),h+=` icon icon-${t}`),u+=(0,n.n)(i.U,{name:c,subitems:a,className:h,attribute:d,path:f})}return u}})},2130(e,t,r){"use strict";class n{getItem(e){return this.isName(e)?e.parentElement:e}getName(e){return e?this.isName(e)?e:e.querySelector("[data-menu-path]"):null}isName(e){return!!e&&e.hasAttribute("data-menu-path")}isItem(e){return this.checkElementsName(e,"js-menu-item")}isMenu(e){return this.checkElementsName(e,"js-menu")}checkElementsName(e,t,r){return r||(r="data-name"),!!e&&e.getAttribute(r)===t||!1}isSubMenu(e){let t=this.getItem(e);return this.checkElementsName(t,"js-submenu","data-menu")}}r.d(t,{A:()=>n})},6416(e,t,r){"use strict";var n=r(407),i=r(6921),s=r(2130);let a=(e,...t)=>e?.(...t);function o(e,t,r){var l;let u,c,p,h;if(!(this instanceof o))return new o(e,t,r);let d=new s.A,f={};r?(h=u=e,f=t):t?(h=u=e,r=t):(u=document.body,h=window,r=e);let m={},y=(l=r,n("ul",{dataName:"js-menu",className:"menu menu-hidden",innerHTML:(0,i.A)(l,m,f),parent:u,uniq:!1}));function g(e,t){let r=d.getItem(e),n=d.isName(r),i=d.isItem(r),s=d.isSubMenu(r);return n&&i||(r=document.elementFromPoint(t.x,t.y),s=d.isSubMenu(r),n=d.isName(r),i=d.isItem(r)),{name:n,item:i,sub:s}}function b(e,t){var r;let n;e.stopPropagation();let{afterClick:i,beforeClick:s,beforeHide:o,afterHide:l,name:u}=f,c=e.target,p=t||g(c,{x:e.clientX,y:e.clientY}),h=a(s,u);if(p.sub)return e.preventDefault();a(o),v(),a(l),!h&&(p.name||p.item)&&(a((r=c,(n=d.getName(r))?m[n.getAttribute("data-menu-path")]:null)),a(i))}function x(e){e.preventDefault();let t=e.target,r=e.clientX,n=e.clientY,i=g(t,{x:r,y:n});if(i.name||i.item||i.sub)return b(e,i);v(),S(r,n)}function S(e,t){var r,n;let i,s,o,l,u,{name:h,beforeShow:d,afterShow:m}=f,g={x:e,y:t,name:h},b=a(d,g);(b||!1!==b)&&(y.classList.remove("menu-hidden"),r=g.x,n=g.y,i="number"==typeof r,s="number"==typeof n,o=function(){if(!c){let{height:e}=getComputedStyle(y);c=parseInt(e,10)}return c}(),l=function(){if(!p){let{width:e}=getComputedStyle(y);p=parseInt(e,10)}return p}(),u=globalThis.innerHeight,globalThis.innerWidth<l+r&&(r-=l)<0&&(r=0),u<o+n&&(n-=o)<0&&(n=0),i&&(y.style.left=`${r}px`),s&&(y.style.top=n-14+"px"),a(m,g))}function v(){a(f.beforeClose)||y.classList.add("menu-hidden")}h.addEventListener("click",b),this.show=S,this.hide=v,this.addContextMenuListener=()=>{h.addEventListener("contextmenu",x)},this.removeContextMenuListener=()=>{h.addEventListener("contextmenu",x)},this.remove=function(){h.removeEventListener("click",b),h.removeEventListener("contextmenu",x),u.removeChild(y)}}r.d(t,{n:()=>o})},6424(e,t,r){"use strict";r.d(t,{},{Q:'<ul data-name="js-menu" class="menu menu-hidden">{{ items }}</ul>',U:'<li data-name="js-menu-item" class="menu-item{{ className }}"{{ attribute }}><label data-menu-path="{{ path }}">{{ name }}</label>{{ subitems }}</li>'})},3932(e,t,r){"use strict";r.d(t,{},{T:(e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}}})},980(e,t,r){"use strict";let n=async(e,...t)=>{var r=e;if("function"!=typeof r)throw Error("fn should be a function!");try{return[null,await e(...t)]}catch(e){return[e]}};r.d(t,{},{Y:n})},9175(e,t,r){"use strict";r.r(t),r.d(t,{},{default:{parse:()=>null},parse:()=>null})},6462(e,t,r){"use strict";r.d(t,{alert:()=>g});var n=r(4299),i=r(407),s=r(8328);let a=n(function(e,t,r,n){let i={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:s}=n,a=n.target,o=f(e,["ok","cancel","input"]).map(c);switch(s){case i.ENTER:h(a,e,t,r),n.preventDefault();break;case i.ESC:m(e),r();break;case i.TAB:n.shiftKey&&p(e,o),p(e,o),n.preventDefault();break;default:["left","right","up","down"].filter(e=>s===i[e.toUpperCase()]).forEach(()=>{var t=e,r=o;let n=c(document.activeElement),i=/ok|cancel/.test(n),s=r.length-1;if("input"!==n&&s&&i)for(let e of f(t,["cancel"===n?"ok":"cancel"]))e.focus()})}n.stopPropagation()}),o={ok:"OK"},l=(0,s.p)(100),u=(e,t,r)=>(function(e,t,r,o){var u;let c,p,d,m=(0,s.p)(),y=(0,s.p)(),g=new Promise((e,t)=>{let r=o&&"boolean"==typeof o.cancel&&!o.cancel;m(e),y(r?()=>{}:()=>t(Error()))}),b=i("div",{innerHTML:(d=t.replace(/\n/g,"<br>"),`<div class="page">
2
+ <div data-name="js-close" class="close-button"></div>
3
+ <header>${e}</header>
4
+ <div class="content-area">${d}</div>
5
+ <div class="action-area">
6
+ <div class="button-strip">
7
+ ${c=Object.keys(u=r),p=n((e,t,r)=>`<button
8
+ tabindex=${r}
9
+ data-name="js-${t.toLowerCase()}">
10
+ ${e[t]}
11
+ </button>`),c.map(p(u)).join("")}
12
+ </div>
13
+ </div>
14
+ </div>`),className:"smalltalk",style:`z-index: ${l(l()+1)}`});for(let e of f(b,["ok","input"]))e.focus();for(let e of f(b,["input"]))e.setSelectionRange(0,0);for(let e of(function(e,t,r,n){for(let i of f(t,r))i.addEventListener(e,n)}("click",b,["cancel","close","ok"],e=>{h(e.target,b,m(),y())}),["click","contextmenu"]))b.addEventListener(e,e=>{for(let t of(e.stopPropagation(),f(b,["ok","input"])))t.focus()});return b.addEventListener("keydown",a(b,m(),y())),Object.assign(g,{dialog:b,ok:m})})(e,t,function(e={}){let{buttons:t}=e;return t||null}(r)||o,r);function c(e){return e.getAttribute("data-name").replace("js-","")}function p(e,t){let r=c(document.activeElement),n=t.length-1,i=t.indexOf(r);for(let r of f(e,[t[i===n?0:i+1]]))r.focus()}function h(e,t,r,n){let i=e.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(i)){n(),m(t);return}let s=null;for(let e of f(t,["input"]))({value:s}=e);r(s),m(t)}let d=n((e,t)=>e.querySelector(`[data-name="js-${t}"]`));function f(e,t){return t.map(d(e)).filter(Boolean)}function m(e){let{parentElement:t}=e;t&&t.removeChild(e)}let y="Cloud Commander",g=(...e)=>u(y,...e,{cancel:!1});g.noFiles=()=>u(y,"No files selected!",{cancel:!1})},6226(e,t,r){"use strict";var n=r(407);let i="loading",s="hidden",a="error",o=()=>!function(){let e=document.createElementNS;if(!e)return!1;let t=e.bind(document)("http://www.w3.org/2000/svg","animate").toString();return/SVGAnimate/.test(t)}()?"-gif":"-svg";function l(){return n("span",{id:"js-status-image",className:"icon",dataName:"progress",notAppend:!0})}function u(e,t){let r,n=h.loading(),i=n.parentElement,s=DOM.getRefreshButton(t);return r="top"===e?s.parentElement:(r=DOM.getCurrentFile())?DOM.getByDataName("js-name",r):s.parentElement,(!i||i&&i!==r)&&r.appendChild(n),DOM.show(n),n}function c(){let e=h.get();return DOM.hide(e),h}u.load=u,u.error=e=>{let t=h.error();return DOM.show(t),t.title=e,t};let p=()=>{let e=h.get();return e&&(e.setAttribute("data-progress",""),e.title=""),h},h={clearProgress:p,setProgress:(e,t)=>{let r=h.get();return r&&(r.setAttribute("data-progress",`${e}%`),t&&(r.title=t)),h},show:u,hide:c,get:l,error:()=>{let e=l(),{classList:t}=e,r=i+o();return t.add(a),t.remove(s,i,r),e},loading:()=>{let e=l(),{classList:t}=e,r=i+o();return t.add(i,r),t.remove(a,s),e}};r.d(t,{hide:()=>c,show:()=>u},{clearProgress:p})},343(e,t,r){"use strict";r.d(t,{Config:()=>S,Markdown:()=>v,copy:()=>m,createDirectory:()=>d,extract:()=>g,move:()=>b,pack:()=>y,patch:()=>p,read:()=>f,remove:()=>c,rename:()=>x,write:()=>h});var n=r(5700),i=r(5811),s=r(6226),a=r(8576);let o=(0,i.F)((e,t)=>{let{prefixURL:r}=CloudCmd;e.url=r+e.url,e.url=encodeURI(e.url),e.url=e.url.replace(/#/g,"%23"),a.ajax({method:e.method,url:e.url,data:e.data,dataType:e.dataType,error:e=>{let r=e.responseText,{statusText:n,status:i}=e;t(Error(404===i?r:n))},success:r=>{s.hide(),e.notLog||CloudCmd.log(r),t(null,r)}})}),{assign:l}=Object,u={top:!0},c=async(e,t,r={})=>{let{sendRequest:i=o}=r,s={method:"DELETE",url:n.FS+e,imgPosition:{top:!!t}};return t&&l(s,{data:t,url:`${s.url}?files`}),await i(s)},p=async(e,t)=>await o({method:"PATCH",url:n.FS+e,data:t,imgPosition:u}),h=async(e,t)=>await o({method:"PUT",url:n.FS+e,data:t,imgPosition:u}),d=async(e,t={})=>{let{sendRequest:r=o}=t;return await r({method:"PUT",url:`${n.FS}${e}?dir`,imgPosition:u})},f=async(e,t="text")=>{let r=!e.includes("?");return await o({method:"GET",url:n.FS+e,notLog:r,dataType:t})},m=async(e,t,r)=>await o({method:"PUT",url:"/copy",data:{from:e,to:t,names:r},imgPosition:u}),y=async e=>await o({method:"PUT",url:"/pack",data:e}),g=async e=>await o({method:"PUT",url:"/extract",data:e}),b=async(e,t,r)=>await o({method:"PUT",url:"/move",data:{from:e,to:t,names:r},imgPosition:u}),x=async(e,t)=>await o({method:"PUT",url:"/rename",data:{from:e,to:t},imgPosition:u}),S={read:async()=>await o({method:"GET",url:"/config",imgPosition:u,notLog:!0}),write:async e=>await o({method:"PATCH",url:"/config",data:e,imgPosition:u})},v={read:async e=>await o({method:"GET",url:`/markdown${e}`,imgPosition:u,notLog:!0}),render:async e=>await o({method:"PUT",url:"/markdown",data:e,imgPosition:u,notLog:!0})}},8576(e,t,r){"use strict";var n=r(2515),i=r(1115);r(7411);var s=r(9168),a=r(6226);function o(e){if(!n.string(e))return;e.includes(":")&&(e+="-join");let t=e.lastIndexOf("/")+1,r=e.substr(e,t);return e.replace(r,"").replace(/\./g,"-")}r.d(t,{getIdBySrc:()=>o},{ajax:e=>{let t,r=n.object(e.data),o=n.array(e.data),l="arraybuffer"===n(e.data),u=e.type||e.method||"GET",{headers:c={}}=e,p=new XMLHttpRequest;for(let t of(p.open(u,e.url,!0),Object.keys(c))){let e=c[t];p.setRequestHeader(t,e)}e.responseType&&(p.responseType=e.responseType),!l&&r||o?t=i.A(e.data):{data:t}=e,p.onreadystatechange=t=>{let r=t.target;if(r.readyState!==r.DONE)return;a.clearProgress();let n=r.getResponseHeader("content-type");if(200!==r.status)return s(e.error,r);let o="text"!==e.dataType,l=n.includes("application/json"),u=r.response;n&&l&&o&&(u=i.q(r.response)||r.response),s(e.success,u,r.statusText,r)},p.send(t)}})},6550(e,t,r){"use strict";var n=r(980),i=r(6462),s=r(6226),a=r(9460),o=r(343);let l=e=>async(...t)=>{let[r,o]=await (0,n.Y)(e,...t);if(!r)return[r,o];let l=(0,a.l)(r.message);return s.show.error(l),i.alert(l),[r,o]};l(o.remove),l(o.patch);let u=l(o.write);l(o.createDirectory),l(o.read),l(o.copy),l(o.pack),l(o.extract),l(o.move),l(o.rename),l(o.Config.read),l(o.Config.write),l(o.Markdown.read),l(o.Markdown.render),r.d(t,{},{write:u})},2734(e,t,r){"use strict";let n,i,s,a,o,l,u,c,p,h,d,f,m,y,g,b,x,S,v,T,E,k,w,A,P,C,I,_,N,L,O,D,M,F,j,B;var R,$,U,V,q,K,J,z,W,X,H,G,Y,Q,Z,ee,et,er,en,ei,es,ea,eo,el,eu={};r.r(eu),r.d(eu,{ArrayExpression:()=>BS,ArrayPattern:()=>BE,ArrowFunctionExpression:()=>DS,AssignmentExpression:()=>Fx,AssignmentPattern:()=>Bk,AwaitExpression:()=>DX,BigIntLiteral:()=>$8,BinaryExpression:()=>BL,BlockStatement:()=>RZ,BooleanLiteral:()=>Ue,BreakStatement:()=>B5,CallExpression:()=>Ma,CatchClause:()=>RO,ClassAccessorProperty:()=>BX,ClassDeclaration:()=>D8,ClassExpression:()=>D6,ClassMethod:()=>DU,ClassPrivateMethod:()=>DV,ClassPrivateProperty:()=>Bz,ClassProperty:()=>BJ,ConditionalExpression:()=>BB,ContinueStatement:()=>BZ,DebuggerStatement:()=>RI,Decorator:()=>$0,Directive:()=>$7,DirectiveLiteral:()=>$4,DoWhileStatement:()=>B3,EmptyStatement:()=>BY,ExportAllDeclaration:()=>Rm,ExportDefaultDeclaration:()=>Re,ExportDefaultSpecifier:()=>RE,ExportNamedDeclaration:()=>Rk,ExportNamespaceSpecifier:()=>RT,ExportSpecifier:()=>Rv,ExpressionStatement:()=>$X,ForInStatement:()=>Rr,ForOfStatement:()=>R0,ForStatement:()=>RC,FunctionDeclaration:()=>DP,FunctionExpression:()=>DK,Identifier:()=>$Z,IfStatement:()=>$e,ImportAttribute:()=>Rd,ImportDeclaration:()=>RP,ImportExpression:()=>B$,InterpreterDirective:()=>$G,JSXAttribute:()=>VO,JSXClosingElement:()=>VK,JSXClosingFragment:()=>Vj,JSXElement:()=>VL,JSXEmptyExpression:()=>VR,JSXExpressionContainer:()=>V$,JSXFragment:()=>VM,JSXIdentifier:()=>VU,JSXMemberExpression:()=>VV,JSXOpeningElement:()=>VD,JSXOpeningFragment:()=>VF,JSXSpreadAttribute:()=>Vq,JSXText:()=>VB,LabeledStatement:()=>BQ,LogicalExpression:()=>BM,MemberExpression:()=>DQ,MetaProperty:()=>Ur,NewExpression:()=>Mc,NullLiteral:()=>Ut,NumericLiteral:()=>$9,ObjectExpression:()=>MD,ObjectMethod:()=>Dq,ObjectPattern:()=>Fm,ObjectProperty:()=>MB,OptionalCallExpression:()=>Mo,OptionalMemberExpression:()=>DZ,ParenthesizedExpression:()=>BV,PrivateName:()=>BW,Program:()=>B1,RegExpLiteral:()=>$6,RestElement:()=>Bw,ReturnStatement:()=>RB,SequenceExpression:()=>BC,SpreadElement:()=>BA,StaticBlock:()=>BR,StringLiteral:()=>$1,Super:()=>Un,SwitchStatement:()=>Ru,TSAnyKeyword:()=>Vf,TSArrayType:()=>Vs,TSAsExpression:()=>UN,TSBigIntKeyword:()=>U6,TSBooleanKeyword:()=>Vu,TSCallSignatureDeclaration:()=>UV,TSClassImplements:()=>Vx,TSConditionalType:()=>Ug,TSConstructSignatureDeclaration:()=>Uq,TSConstructorType:()=>UU,TSDeclareFunction:()=>Ux,TSDeclareMethod:()=>US,TSEnumDeclaration:()=>Uj,TSEnumMember:()=>UB,TSExportAssignment:()=>UW,TSExpressionWithTypeArguments:()=>VS,TSExternalModuleReference:()=>VE,TSFunctionType:()=>UF,TSImportEqualsDeclaration:()=>UC,TSImportType:()=>Uz,TSIndexSignature:()=>Vb,TSIndexedAccessType:()=>Vh,TSInferType:()=>UH,TSInstantiationExpression:()=>U5,TSInterfaceBody:()=>UL,TSInterfaceDeclaration:()=>UP,TSInterfaceHeritage:()=>Vv,TSIntersectionType:()=>UO,TSLiteralType:()=>Vr,TSMappedType:()=>Uy,TSMethodSignature:()=>UK,TSModuleBlock:()=>UE,TSModuleDeclaration:()=>UT,TSNamedTupleMember:()=>U$,TSNeverKeyword:()=>U7,TSNonNullExpression:()=>Ui,TSNullKeyword:()=>U8,TSNumberKeyword:()=>Vp,TSObjectKeyword:()=>Vt,TSOptionalType:()=>U4,TSParameterProperty:()=>UY,TSParenthesizedType:()=>U2,TSPropertySignature:()=>UD,TSQualifiedName:()=>Vy,TSRestType:()=>Vn,TSSatisfiesExpression:()=>Vc,TSStringKeyword:()=>Vd,TSSymbolKeyword:()=>U9,TSTemplateLiteralType:()=>U3,TSThisType:()=>Vk,TSTupleType:()=>UR,TSTypeAliasDeclaration:()=>Uf,TSTypeAnnotation:()=>Vg,TSTypeAssertion:()=>Vo,TSTypeLiteral:()=>Us,TSTypeOperator:()=>Va,TSTypeParameter:()=>Ub,TSTypeParameterDeclaration:()=>U0,TSTypeParameterInstantiation:()=>Vi,TSTypePredicate:()=>VT,TSTypeQuery:()=>U1,TSTypeReference:()=>UX,TSUndefinedKeyword:()=>Vl,TSUnionType:()=>UJ,TSUnknownKeyword:()=>Ve,TSVoidKeyword:()=>Vm,TaggedTemplateExpression:()=>BI,TemplateLiteral:()=>$Q,ThisExpression:()=>BH,ThrowStatement:()=>DG,TryStatement:()=>RN,UnaryExpression:()=>Dz,UpdateExpression:()=>DW,VariableDeclaration:()=>$w,VoidPattern:()=>$5,WhileStatement:()=>Rh,WithStatement:()=>BG,YieldExpression:()=>DH});var ec={};r.r(ec),r.d(ec,{allowImportExportEverywhere:()=>qH,allowReturnOutsideFunction:()=>qW,allowUndeclaredExports:()=>qX});var ep={};r.r(ep),r.d(ep,{fix:()=>Hd,report:()=>Hu,traverse:()=>Hm});var eh={};r.r(eh),r.d(eh,{fix:()=>Hk,report:()=>HE,traverse:()=>Hw});var ed={};r.r(ed),r.d(ed,{branch:()=>ZT,files:()=>Zv,find:()=>ZE,merge:()=>Zk});var ef={};r.r(ef),r.d(ef,{branch:()=>etK,files:()=>etq,find:()=>etJ,merge:()=>etz});var em={};r.r(em),r.d(em,{attentionMarkers:()=>enC,contentInitial:()=>enT,disable:()=>enI,document:()=>env,flow:()=>enk,flowInitial:()=>enE,insideSpan:()=>enP,string:()=>enw,text:()=>enA});var ey={};r.r(ey),r.d(ey,{branch:()=>eoN,files:()=>eoC,find:()=>eoI,fix:()=>eo_,merge:()=>eoL});var eg={};r.r(eg),r.d(eg,{branch:()=>eoj,files:()=>eoF,merge:()=>eoB});var eb={};r.r(eb),r.d(eb,{ek:()=>eo3,Up:()=>eo2,z8:()=>eo1});var ex={};r.r(ex),r.d(ex,{ek:()=>eo6,Up:()=>eo5,z8:()=>eo4});var eS={};r.r(eS),r.d(eS,{__docker:()=>qi,__docker_name:()=>V3,__filesystem:()=>qs,__filesystem_name:()=>V6,__ignore:()=>qa,__ignore_name:()=>V8,__json:()=>qt,__json_name:()=>V2,__markdown:()=>qo,__markdown_name:()=>V9,__sql:()=>qe,__sql_name:()=>V7,__toml:()=>qn,__toml_name:()=>V5,__wasm:()=>H9,__wasm_name:()=>H8,__yaml:()=>qr,__yaml_name:()=>V4,addArgs:()=>GT,addAttribute:()=>HH,addAttributeValue:()=>HX,addClassName:()=>HQ,addParens:()=>elp,compare:()=>Wk,compareAll:()=>WA,compareAny:()=>Ww,compute:()=>function e(t){let{node:r}=t;if(!t.evaluate)throw Error("☝️ Looks like argument of 'compute' is not 'path'");let{confident:n,value:i}=t.evaluate();if(n)return[!0,i];if(t.isBinaryExpression())return function(t){let{operator:r}=t.node,n=t.get("left"),i=t.get("right"),[s,a]=e(n);if(!s)return[!1];let[o,l]=e(i);if(!o)return[!1];let u=`return a ${r} b`;return[!0,(FW[r]||FW.init(r,Function("a","op","b",u)))(a,r,l)]}(t);if(Fz(t))return[!0,FJ(r)];let s=function(e){var t;let r,{node:n}=e;return e.isIdentifier()?FE(e,FJ(n)):(r=(t=e).get("object"),t.isMemberExpression()&&!t.node.computed&&r.isIdentifier())?FE(e,FJ(n.object)):null}(t);if(!s)return[!1];let a=s.get("init");return a.isObjectExpression()&&t.isMemberExpression()?function(t,r){let n=FJ(t.node.property);for(let t of r.get("properties")){let r=t.get("key");if(!Fz(r))break;if(FJ(r)!==n)continue;let[i,s]=e(t.get("value"));if(!i)break;return[!0,s]}return[!1]}(t,a):[!1]},contains:()=>XL,containsClassName:()=>H1,copyFile:()=>X1,crawlDirectory:()=>XJ,createDirectory:()=>X6,createFile:()=>X3,createNestedDirectory:()=>X7,createTypeChecker:()=>elq,declare:()=>Xl,extract:()=>FJ,findBinding:()=>jL,findFile:()=>Xz,findFileUp:()=>elm,findVarsWays:()=>Wd,fromBase64:()=>XV,fromJS:()=>qc,getAttributeNode:()=>Hz,getAttributePath:()=>HJ,getAttributeValue:()=>HW,getBinding:()=>FT,getBindingPath:()=>FE,getClassName:()=>HZ,getExportDefault:()=>FZ,getFile:()=>Ht,getFileContent:()=>XG,getFileType:()=>XH,getFilename:()=>XX,getLiteralRaw:()=>ji,getParentDirectory:()=>XK,getPathAfterImports:()=>jO,getPathAfterRequires:()=>F5,getProperties:()=>jr,getProperty:()=>jn,getRootDirectory:()=>He,getStringFromRegExp:()=>Gl,getTemplateValues:()=>Wh,getValues:()=>Wf,hasAttributeValue:()=>H3,hasDataName:()=>H2,hasParens:()=>elf,hasTagName:()=>HK,ignore:()=>elr,insertAfter:()=>j_,insertBefore:()=>jI,isConditionKeyword:()=>GF,isDeclarationKeyword:()=>GD,isDocker:()=>qd,isESM:()=>jD,isJSON:()=>qp,isJSONGroup:()=>qf,isKeyword:()=>GO,isLegacyKeyword:()=>GR,isModuleDeclarationKeyword:()=>GM,isModuleExports:()=>jN,isSQL:()=>qm,isSimple:()=>FI,isSimpleRegExp:()=>Gs,isStatementKeyword:()=>Gj,isTOML:()=>qh,isTSKeyword:()=>GB,isTemplate:()=>zk,matchFiles:()=>eoG,moveFile:()=>X0,parseTemplate:()=>zz,readDirectory:()=>X5,readFileContent:()=>X8,remove:()=>FH,removeAttributeValue:()=>HG,removeClassName:()=>H0,removeEmptyDirectory:()=>XZ,removeFile:()=>XQ,removeFiles:()=>elF,removeParens:()=>elh,rename:()=>F1,renameFile:()=>XY,renameFiles:()=>eo9,renameProperties:()=>elB,renameProperty:()=>F0,replaceWith:()=>jv,replaceWithMultiple:()=>jb,setAttributeValue:()=>HY,setLiteralValue:()=>F4,setValues:()=>Wy,sortIgnore:()=>elb,sortProperties:()=>elw,superTraverse:()=>X_,toBase64:()=>XU,toExpression:()=>jf,toJS:()=>qu,transformRegExp:()=>Ga,traverse:()=>XI,traverseProperties:()=>F9,unwrapNamespace:()=>Gr,wrapInNamespace:()=>Gt,writeFileContent:()=>X9});var ev={};r.r(ev),r.d(ev,{codeframe:()=>elK,findPlaces:()=>G$,findPlacesAsync:()=>GU,generate:()=>q6,operator:()=>eS,parse:()=>q4,print:()=>qw,putoutAsync:()=>HB,template:()=>Kp,transform:()=>HF,transformAsync:()=>Hj,traverse:()=>Le,types:()=>e5});var eT={};r.r(eT),r.d(eT,{fix:()=>elH,report:()=>elX,traverse:()=>elG});var eE={};r.r(eE),r.d(eE,{fix:()=>el2,report:()=>el1,traverse:()=>el3});var ek={};r.r(ek),r.d(ek,{fix:()=>eue,report:()=>el7,traverse:()=>eut});var ew={};r.r(ew),r.d(ew,{fix:()=>euu,report:()=>eul,traverse:()=>euc});var eA={};r.r(eA),r.d(eA,{fix:()=>euS,report:()=>eux,traverse:()=>euv});var eP={};r.r(eP),r.d(eP,{fix:()=>euD,report:()=>euC,traverse:()=>euM});var eC={};r.r(eC),r.d(eC,{fix:()=>euV,report:()=>euU,traverse:()=>euq});var eI={};r.r(eI),r.d(eI,{fix:()=>eu1,report:()=>eu0,traverse:()=>eu2});var e_={};r.r(e_),r.d(e_,{fix:()=>ece,report:()=>eu7,traverse:()=>ect});var eN={};r.r(eN),r.d(eN,{events:()=>ecg,filter:()=>ecx,listener:()=>ecS,preventDefault:()=>ecb});var eL={};r.r(eL),r.d(eL,{keys:()=>ecv,listener:()=>ecT});var eO={};r.r(eO),r.d(eO,{filter:()=>ecA,keys:()=>eck,listener:()=>ecP,preventDefault:()=>ecw});var eD={};r.r(eD),r.d(eD,{filter:()=>ec_,keys:()=>ecC,listener:()=>ecN,preventDefault:()=>ecI});var eM={};r.r(eM),r.d(eM,{filter:()=>ecM,keys:()=>ecO,listener:()=>ecF,preventDefault:()=>ecD});var eF={};r.r(eF),r.d(eF,{filter:()=>ecB,keys:()=>ecj,listener:()=>ecU,preventDefault:()=>ec$,stopPropagation:()=>ecR});var ej={};r.r(ej),r.d(ej,{filter:()=>ecK,keys:()=>ecV,listener:()=>ecJ,preventDefault:()=>ecq});var eB={};r.r(eB),r.d(eB,{filter:()=>ecW,keys:()=>ecz,listener:()=>ecH,preventDefault:()=>ecX});var eR={};r.r(eR),r.d(eR,{commands:()=>ecY,filter:()=>ecG,listener:()=>ecQ});var e$={};r.r(e$),r.d(e$,{commands:()=>ec0,filter:()=>ecZ,listener:()=>ec1});var eU={};r.r(eU),r.d(eU,{commands:()=>ec3,filter:()=>ec2,listener:()=>ec4});var eV=r(9168),eq=r(9317),eK=r(407),eJ=r(8576),ez=r(6550),eW=r(5700),eX=r(6416),eH=r(537),eG=r.t(eH,2),eY=r(5606),eQ=Object.create,eZ=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,e1=Object.getOwnPropertyNames,e2=Object.getPrototypeOf,e3=Object.prototype.hasOwnProperty,e4=(o={"node_modules/jsesc/jsesc.js"(e,t){var r={},n=r.hasOwnProperty,i=(e,t)=>{for(let r in e)n.call(e,r)&&t(r,e[r])},s=e=>"\\u"+("0000"+e).slice(-4),a=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},o=r.toString,l=Array.isArray,u={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},c=/[\\\b\f\n\r\t]/,p=/[0-9]/,h=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,f=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,m=(e,t)=>{let r,n,y=()=>{E=T,++t.indentLevel,T=t.indent.repeat(t.indentLevel)},g={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},b=t&&t.json;b&&(g.quotes="double",g.wrap=!0),"single"!=(!(L=t)||i(L,(e,t)=>{g[e]=t}),t=g).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let x="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",S=t.compact,v=t.lowercaseHex,T=t.indent.repeat(t.indentLevel),E="",k=t.__inline1__,w=t.__inline2__,A=S?"":"\n",P=!0,C="binary"==t.numbers,I="octal"==t.numbers,_="decimal"==t.numbers,N="hexadecimal"==t.numbers;if(b&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),"string"!=typeof(n=e)&&"[object String]"!=o.call(n)){let n,s,a,u,c;if(n=e,"[object Map]"==o.call(n))return 0==e.size?"new Map()":(S||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+m(Array.from(e),t)+")");if(s=e,"[object Set]"==o.call(s))return 0==e.size?"new Set()":"new Set("+m(Array.from(e),t)+")";if(a=e,"function"==typeof Buffer&&Buffer.isBuffer(a))return 0==e.length?"Buffer.from([])":"Buffer.from("+m(Array.from(e),t)+")";if(l(e)){r=[],t.wrap=!0,k&&(t.__inline1__=!1,t.__inline2__=!0),w||y();var L,O,D=e;let n=D.length,i=-1;for(;++i<n;)O=D[i],P=!1,w&&(t.__inline2__=!1),r.push((S||w?"":T)+m(O,t));return P?"[]":w?"["+r.join(", ")+"]":"["+A+r.join(","+A)+A+(S?"":E)+"]"}if("number"==typeof(u=e)||"[object Number]"==o.call(u)||"bigint"==typeof e){let t;if(b)return JSON.stringify(Number(e));if(_)t=String(e);else if(N){let r=e.toString(16);v||(r=r.toUpperCase()),t="0x"+r}else C?t="0b"+e.toString(2):I&&(t="0o"+e.toString(8));return"bigint"==typeof e?t+"n":t}if("bigint"==typeof e)return b?JSON.stringify(Number(e)):e+"n";return(c=e,"[object Object]"==o.call(c))?(r=[],t.wrap=!0,y(),i(e,(e,n)=>{P=!1,r.push((S?"":T)+m(e,t)+":"+(S?"":" ")+m(n,t))}),P)?"{}":"{"+A+r.join(","+A)+A+(S?"":E)+"}":b?JSON.stringify(e)||"null":String(e)}let M=t.escapeEverything?d:f;return r=e.replace(M,(e,r,n,i,o,l)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+a((e-55296)*1024+n-56320+65536,v)+"}":s(a(e,v))+s(a(n,v))}if(n)return s(a(n.charCodeAt(0),v));if("\0"==e&&!b&&!p.test(l.charAt(o+1)))return"\\0";if(i)return i==x||t.escapeEverything?"\\"+i:i;if(c.test(e))return u[e];if(t.minimal&&!h.test(e))return e;let d=a(e.charCodeAt(0),v);return b||d.length>2?s(d):"\\x"+("00"+d).slice(-2)}),"`"==x&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,b?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=x+r+x),r};m.version="3.0.2",t.exports=m}},function(){return l||(0,o[e1(o)[0]])((l={exports:{}}).exports,l),l.exports}),e5={},e6={ACCESSOR_TYPES:()=>vp,ALIAS_KEYS:()=>aC,ASSIGNMENT_OPERATORS:()=>av,AnyTypeAnnotation:()=>hQ,ArgumentPlaceholder:()=>fl,ArrayExpression:()=>pC,ArrayPattern:()=>hy,ArrayTypeAnnotation:()=>hZ,ArrowFunctionExpression:()=>hg,AssignmentExpression:()=>pI,AssignmentPattern:()=>hm,AwaitExpression:()=>hR,BINARY_OPERATORS:()=>aS,BINARY_TYPES:()=>SL,BLOCKPARENT_TYPES:()=>SD,BLOCK_TYPES:()=>SM,BOOLEAN_BINARY_OPERATORS:()=>ab,BOOLEAN_NUMBER_BINARY_OPERATORS:()=>am,BOOLEAN_UNARY_OPERATORS:()=>aT,BUILDER_KEYS:()=>aN,BigIntLiteral:()=>hV,BigIntLiteralTypeAnnotation:()=>dx,BinaryExpression:()=>p_,BindExpression:()=>fu,BlockStatement:()=>pD,BooleanLiteral:()=>p1,BooleanLiteralTypeAnnotation:()=>h1,BooleanTypeAnnotation:()=>h0,BreakStatement:()=>pM,CLASS_TYPES:()=>S8,COMMENT_KEYS:()=>ah,COMPARISON_BINARY_OPERATORS:()=>ag,COMPLETIONSTATEMENT_TYPES:()=>SB,CONDITIONAL_TYPES:()=>SR,CallExpression:()=>pF,CatchClause:()=>pj,ClassAccessorProperty:()=>fc,ClassBody:()=>hb,ClassDeclaration:()=>hS,ClassExpression:()=>hx,ClassImplements:()=>h3,ClassMethod:()=>hN,ClassPrivateMethod:()=>hX,ClassPrivateProperty:()=>hW,ClassProperty:()=>hz,ConditionalExpression:()=>pB,ContinueStatement:()=>pR,DECLARATION_TYPES:()=>SX,DEPRECATED_ALIASES:()=>oE,DEPRECATED_KEYS:()=>aL,DebuggerStatement:()=>p$,DeclareClass:()=>h4,DeclareExportAllDeclaration:()=>dn,DeclareExportDeclaration:()=>dr,DeclareFunction:()=>h5,DeclareInterface:()=>h6,DeclareModule:()=>h8,DeclareModuleExports:()=>h9,DeclareOpaqueType:()=>de,DeclareTypeAlias:()=>h7,DeclareVariable:()=>dt,DeclaredPredicate:()=>di,Decorator:()=>fp,Directive:()=>pL,DirectiveLiteral:()=>pO,DoExpression:()=>fh,DoWhileStatement:()=>pU,ENUMBODY_TYPES:()=>vo,ENUMMEMBER_TYPES:()=>vl,EQUALITY_BINARY_OPERATORS:()=>ay,EXPORTDECLARATION_TYPES:()=>S7,EXPRESSIONWRAPPER_TYPES:()=>SV,EXPRESSION_TYPES:()=>SN,EmptyStatement:()=>pV,EmptyTypeAnnotation:()=>dy,EnumBooleanBody:()=>dJ,EnumBooleanMember:()=>dH,EnumDeclaration:()=>dK,EnumDefaultedMember:()=>dQ,EnumNumberBody:()=>dz,EnumNumberMember:()=>dG,EnumStringBody:()=>dW,EnumStringMember:()=>dY,EnumSymbolBody:()=>dX,ExistsTypeAnnotation:()=>ds,ExportAllDeclaration:()=>hv,ExportDefaultDeclaration:()=>hT,ExportDefaultSpecifier:()=>fd,ExportNamedDeclaration:()=>hE,ExportNamespaceSpecifier:()=>hq,ExportSpecifier:()=>hk,ExpressionStatement:()=>pq,FLATTENABLE_KEYS:()=>ac,FLIPPED_ALIAS_KEYS:()=>aI,FLOWBASEANNOTATION_TYPES:()=>vi,FLOWDECLARATION_TYPES:()=>vs,FLOWPREDICATE_TYPES:()=>va,FLOWTYPE_TYPES:()=>vn,FLOW_TYPES:()=>vr,FORXSTATEMENT_TYPES:()=>SK,FOR_INIT_KEYS:()=>ap,FOR_TYPES:()=>Sq,FUNCTIONPARAMETER_TYPES:()=>SH,FUNCTIONPARENT_TYPES:()=>Sz,FUNCTION_TYPES:()=>SJ,File:()=>pK,ForInStatement:()=>pJ,ForOfStatement:()=>hw,ForStatement:()=>pz,FunctionDeclaration:()=>pW,FunctionExpression:()=>pX,FunctionTypeAnnotation:()=>da,FunctionTypeParam:()=>dl,GenericTypeAnnotation:()=>du,IMMUTABLE_TYPES:()=>S0,IMPORTOREXPORTDECLARATION_TYPES:()=>S9,INHERIT_KEYS:()=>aA,Identifier:()=>pH,IfStatement:()=>pG,Import:()=>hU,ImportAttribute:()=>hY,ImportDeclaration:()=>hA,ImportDefaultSpecifier:()=>hP,ImportExpression:()=>h$,ImportNamespaceSpecifier:()=>hC,ImportSpecifier:()=>hI,IndexedAccessType:()=>dZ,InferredPredicate:()=>dc,InterfaceDeclaration:()=>dh,InterfaceExtends:()=>dp,InterfaceTypeAnnotation:()=>dd,InterpreterDirective:()=>pN,IntersectionTypeAnnotation:()=>df,JSXAttribute:()=>d1,JSXClosingElement:()=>d2,JSXClosingFragment:()=>fs,JSXElement:()=>d3,JSXEmptyExpression:()=>d4,JSXExpressionContainer:()=>d5,JSXFragment:()=>fn,JSXIdentifier:()=>d8,JSXMemberExpression:()=>d9,JSXNamespacedName:()=>d7,JSXOpeningElement:()=>fe,JSXOpeningFragment:()=>fi,JSXSpreadAttribute:()=>ft,JSXSpreadChild:()=>d6,JSXText:()=>fr,JSX_TYPES:()=>vu,LITERAL_TYPES:()=>SZ,LOGICAL_OPERATORS:()=>ad,LOOP_TYPES:()=>S$,LVAL_TYPES:()=>SY,LabeledStatement:()=>pY,LogicalExpression:()=>p3,METHOD_TYPES:()=>S2,MISCELLANEOUS_TYPES:()=>vc,MODULEDECLARATION_TYPES:()=>vy,MODULESPECIFIER_TYPES:()=>ve,MemberExpression:()=>p4,MetaProperty:()=>h_,MixedTypeAnnotation:()=>dm,ModuleExpression:()=>ff,NODE_FIELDS:()=>a_,NODE_PARENT_VALIDATIONS:()=>aO,NODE_UNION_SHAPES__PRIVATE:()=>aD,NUMBER_BINARY_OPERATORS:()=>ax,NUMBER_UNARY_OPERATORS:()=>aE,NewExpression:()=>p5,NullLiteral:()=>p0,NullLiteralTypeAnnotation:()=>h2,NullableTypeAnnotation:()=>dg,NumberLiteralTypeAnnotation:()=>db,NumberTypeAnnotation:()=>dS,NumericLiteral:()=>pZ,OBJECTMEMBER_TYPES:()=>S3,ObjectExpression:()=>p8,ObjectMethod:()=>p9,ObjectPattern:()=>hL,ObjectProperty:()=>p7,ObjectTypeAnnotation:()=>dv,ObjectTypeCallProperty:()=>dE,ObjectTypeIndexer:()=>dk,ObjectTypeInternalSlot:()=>dT,ObjectTypeProperty:()=>dw,ObjectTypeSpreadProperty:()=>dA,OpaqueType:()=>dP,OptionalCallExpression:()=>hJ,OptionalIndexedAccessType:()=>d0,OptionalMemberExpression:()=>hK,PATTERNLIKE_TYPES:()=>SG,PATTERN_TYPES:()=>S6,PLACEHOLDERS:()=>oc,PLACEHOLDERS_ALIAS:()=>op,PLACEHOLDERS_FLIPPED_ALIAS:()=>oh,PRIVATE_TYPES:()=>vt,PROPERTY_TYPES:()=>S4,PUREISH_TYPES:()=>SW,ParenthesizedExpression:()=>hn,Placeholder:()=>fa,PrivateName:()=>hH,Program:()=>p6,QualifiedTypeIdentifier:()=>dC,RegExpLiteral:()=>p2,RestElement:()=>he,ReturnStatement:()=>ht,SCOPABLE_TYPES:()=>SO,STANDARDIZED_TYPES:()=>S_,STATEMENT_OR_BLOCK_KEYS:()=>au,STATEMENT_TYPES:()=>SF,STRING_UNARY_OPERATORS:()=>ak,SequenceExpression:()=>hr,SpreadElement:()=>hO,StaticBlock:()=>hG,StringLiteral:()=>pQ,StringLiteralTypeAnnotation:()=>dI,StringTypeAnnotation:()=>d_,Super:()=>hD,SwitchCase:()=>hi,SwitchStatement:()=>hs,SymbolTypeAnnotation:()=>dN,TERMINATORLESS_TYPES:()=>Sj,TSAnyKeyword:()=>fA,TSArrayType:()=>fz,TSAsExpression:()=>mn,TSBASETYPE_TYPES:()=>vm,TSBigIntKeyword:()=>fC,TSBooleanKeyword:()=>fP,TSCallSignatureDeclaration:()=>fv,TSClassImplements:()=>f8,TSConditionalType:()=>fZ,TSConstructSignatureDeclaration:()=>fT,TSConstructorType:()=>fU,TSDeclareFunction:()=>fb,TSDeclareMethod:()=>fx,TSENTITYNAME_TYPES:()=>SQ,TSEnumBody:()=>ma,TSEnumDeclaration:()=>mo,TSEnumMember:()=>ml,TSExportAssignment:()=>mm,TSExternalModuleReference:()=>md,TSFunctionType:()=>f$,TSImportEqualsDeclaration:()=>mh,TSImportType:()=>mp,TSIndexSignature:()=>fw,TSIndexedAccessType:()=>f3,TSInferType:()=>f0,TSInstantiationExpression:()=>mr,TSInterfaceBody:()=>me,TSInterfaceDeclaration:()=>f7,TSInterfaceHeritage:()=>f9,TSIntersectionType:()=>fQ,TSIntrinsicKeyword:()=>fI,TSLiteralType:()=>f6,TSMappedType:()=>f4,TSMethodSignature:()=>fk,TSModuleBlock:()=>mc,TSModuleDeclaration:()=>mu,TSNamedTupleMember:()=>fG,TSNamespaceExportDeclaration:()=>my,TSNeverKeyword:()=>f_,TSNonNullExpression:()=>mf,TSNullKeyword:()=>fN,TSNumberKeyword:()=>fL,TSObjectKeyword:()=>fO,TSOptionalType:()=>fX,TSParameterProperty:()=>fg,TSParenthesizedType:()=>f1,TSPropertySignature:()=>fE,TSQualifiedName:()=>fS,TSRestType:()=>fH,TSSatisfiesExpression:()=>mi,TSStringKeyword:()=>fD,TSSymbolKeyword:()=>fM,TSTYPEELEMENT_TYPES:()=>vd,TSTYPE_TYPES:()=>vf,TSTemplateLiteralType:()=>f5,TSThisType:()=>fR,TSTupleType:()=>fW,TSTypeAliasDeclaration:()=>mt,TSTypeAnnotation:()=>mg,TSTypeAssertion:()=>ms,TSTypeLiteral:()=>fJ,TSTypeOperator:()=>f2,TSTypeParameter:()=>mS,TSTypeParameterDeclaration:()=>mx,TSTypeParameterInstantiation:()=>mb,TSTypePredicate:()=>fq,TSTypeQuery:()=>fK,TSTypeReference:()=>fV,TSUndefinedKeyword:()=>fF,TSUnionType:()=>fY,TSUnknownKeyword:()=>fj,TSVoidKeyword:()=>fB,TYPES:()=>ok,TYPESCRIPT_TYPES:()=>vh,TaggedTemplateExpression:()=>hM,TemplateElement:()=>hF,TemplateLiteral:()=>hj,ThisExpression:()=>ha,ThisTypeAnnotation:()=>dL,ThrowStatement:()=>ho,TopicReference:()=>fm,TryStatement:()=>hl,TupleTypeAnnotation:()=>dO,TypeAlias:()=>dM,TypeAnnotation:()=>dF,TypeCastExpression:()=>dj,TypeParameter:()=>dB,TypeParameterDeclaration:()=>dR,TypeParameterInstantiation:()=>d$,TypeofTypeAnnotation:()=>dD,UNARYLIKE_TYPES:()=>S5,UNARY_OPERATORS:()=>aw,UPDATE_OPERATORS:()=>af,USERWHITESPACABLE_TYPES:()=>S1,UnaryExpression:()=>hu,UnionTypeAnnotation:()=>dU,UpdateExpression:()=>hc,V8IntrinsicIdentifier:()=>fo,VISITOR_KEYS:()=>aP,VariableDeclaration:()=>hp,VariableDeclarator:()=>hh,Variance:()=>dV,VoidPattern:()=>fy,VoidTypeAnnotation:()=>dq,WHILE_TYPES:()=>SU,WhileStatement:()=>hd,WithStatement:()=>hf,YieldExpression:()=>hB,__internal__deprecationWarning:()=>tg,addComment:()=>SE,addComments:()=>ST,anyTypeAnnotation:()=>l0,appendToMemberExpression:()=>vO,argumentPlaceholder:()=>cu,arrayExpression:()=>o_,arrayPattern:()=>lb,arrayTypeAnnotation:()=>l1,arrowFunctionExpression:()=>lx,assertAccessor:()=>x8,assertAnyTypeAnnotation:()=>yX,assertArgumentPlaceholder:()=>bn,assertArrayExpression:()=>mk,assertArrayPattern:()=>yh,assertArrayTypeAnnotation:()=>yH,assertArrowFunctionExpression:()=>yd,assertAssignmentExpression:()=>mw,assertAssignmentPattern:()=>yp,assertAwaitExpression:()=>yM,assertBigIntLiteral:()=>yB,assertBigIntLiteralTypeAnnotation:()=>gf,assertBinary:()=>xb,assertBinaryExpression:()=>mA,assertBindExpression:()=>bi,assertBlock:()=>xv,assertBlockParent:()=>xS,assertBlockStatement:()=>m_,assertBooleanLiteral:()=>mY,assertBooleanLiteralTypeAnnotation:()=>yY,assertBooleanTypeAnnotation:()=>yG,assertBreakStatement:()=>mN,assertCallExpression:()=>mL,assertCatchClause:()=>mO,assertClass:()=>xW,assertClassAccessorProperty:()=>bs,assertClassBody:()=>yf,assertClassDeclaration:()=>yy,assertClassExpression:()=>ym,assertClassImplements:()=>yZ,assertClassMethod:()=>yP,assertClassPrivateMethod:()=>yK,assertClassPrivateProperty:()=>yq,assertClassProperty:()=>yV,assertCompletionStatement:()=>xk,assertConditional:()=>xw,assertConditionalExpression:()=>mD,assertContinueStatement:()=>mM,assertDebuggerStatement:()=>mF,assertDeclaration:()=>xD,assertDeclareClass:()=>y0,assertDeclareExportAllDeclaration:()=>y7,assertDeclareExportDeclaration:()=>y9,assertDeclareFunction:()=>y1,assertDeclareInterface:()=>y2,assertDeclareModule:()=>y3,assertDeclareModuleExports:()=>y4,assertDeclareOpaqueType:()=>y6,assertDeclareTypeAlias:()=>y5,assertDeclareVariable:()=>y8,assertDeclaredPredicate:()=>ge,assertDecorator:()=>ba,assertDirective:()=>mC,assertDirectiveLiteral:()=>mI,assertDoExpression:()=>bo,assertDoWhileStatement:()=>mj,assertEmptyStatement:()=>mB,assertEmptyTypeAnnotation:()=>gp,assertEnumBody:()=>x3,assertEnumBooleanBody:()=>g$,assertEnumBooleanMember:()=>gK,assertEnumDeclaration:()=>gR,assertEnumDefaultedMember:()=>gW,assertEnumMember:()=>x4,assertEnumNumberBody:()=>gU,assertEnumNumberMember:()=>gJ,assertEnumStringBody:()=>gV,assertEnumStringMember:()=>gz,assertEnumSymbolBody:()=>gq,assertExistsTypeAnnotation:()=>gt,assertExportAllDeclaration:()=>yg,assertExportDeclaration:()=>xH,assertExportDefaultDeclaration:()=>yb,assertExportDefaultSpecifier:()=>bl,assertExportNamedDeclaration:()=>yx,assertExportNamespaceSpecifier:()=>yR,assertExportSpecifier:()=>yS,assertExpression:()=>xg,assertExpressionStatement:()=>mR,assertExpressionWrapper:()=>xC,assertFile:()=>m$,assertFlow:()=>xQ,assertFlowBaseAnnotation:()=>x0,assertFlowDeclaration:()=>x1,assertFlowPredicate:()=>x2,assertFlowType:()=>xZ,assertFor:()=>xI,assertForInStatement:()=>mU,assertForOfStatement:()=>yv,assertForStatement:()=>mV,assertForXStatement:()=>x_,assertFunction:()=>xN,assertFunctionDeclaration:()=>mq,assertFunctionExpression:()=>mK,assertFunctionParameter:()=>xM,assertFunctionParent:()=>xL,assertFunctionTypeAnnotation:()=>gr,assertFunctionTypeParam:()=>gn,assertGenericTypeAnnotation:()=>gi,assertIdentifier:()=>mJ,assertIfStatement:()=>mz,assertImmutable:()=>x$,assertImport:()=>yj,assertImportAttribute:()=>yW,assertImportDeclaration:()=>yT,assertImportDefaultSpecifier:()=>yE,assertImportExpression:()=>yF,assertImportNamespaceSpecifier:()=>yk,assertImportOrExportDeclaration:()=>xX,assertImportSpecifier:()=>yw,assertIndexedAccessType:()=>gX,assertInferredPredicate:()=>gs,assertInterfaceDeclaration:()=>go,assertInterfaceExtends:()=>ga,assertInterfaceTypeAnnotation:()=>gl,assertInterpreterDirective:()=>mP,assertIntersectionTypeAnnotation:()=>gu,assertJSX:()=>x5,assertJSXAttribute:()=>gG,assertJSXClosingElement:()=>gY,assertJSXClosingFragment:()=>be,assertJSXElement:()=>gQ,assertJSXEmptyExpression:()=>gZ,assertJSXExpressionContainer:()=>g0,assertJSXFragment:()=>g9,assertJSXIdentifier:()=>g2,assertJSXMemberExpression:()=>g3,assertJSXNamespacedName:()=>g4,assertJSXOpeningElement:()=>g5,assertJSXOpeningFragment:()=>g7,assertJSXSpreadAttribute:()=>g6,assertJSXSpreadChild:()=>g1,assertJSXText:()=>g8,assertLVal:()=>xj,assertLabeledStatement:()=>mW,assertLiteral:()=>xR,assertLogicalExpression:()=>mZ,assertLoop:()=>xA,assertMemberExpression:()=>m0,assertMetaProperty:()=>yA,assertMethod:()=>xV,assertMiscellaneous:()=>x6,assertMixedTypeAnnotation:()=>gc,assertModuleDeclaration:()=>Sa,assertModuleExpression:()=>bu,assertModuleSpecifier:()=>xG,assertNewExpression:()=>m1,assertNode:()=>mT,assertNullLiteral:()=>mG,assertNullLiteralTypeAnnotation:()=>yQ,assertNullableTypeAnnotation:()=>gh,assertNumberLiteral:()=>Sr,assertNumberLiteralTypeAnnotation:()=>gd,assertNumberTypeAnnotation:()=>gm,assertNumericLiteral:()=>mH,assertObjectExpression:()=>m3,assertObjectMember:()=>xq,assertObjectMethod:()=>m4,assertObjectPattern:()=>yC,assertObjectProperty:()=>m5,assertObjectTypeAnnotation:()=>gy,assertObjectTypeCallProperty:()=>gb,assertObjectTypeIndexer:()=>gx,assertObjectTypeInternalSlot:()=>gg,assertObjectTypeProperty:()=>gS,assertObjectTypeSpreadProperty:()=>gv,assertOpaqueType:()=>gT,assertOptionalCallExpression:()=>yU,assertOptionalIndexedAccessType:()=>gH,assertOptionalMemberExpression:()=>y$,assertParenthesizedExpression:()=>m7,assertPattern:()=>xz,assertPatternLike:()=>xF,assertPlaceholder:()=>bt,assertPrivate:()=>xY,assertPrivateName:()=>yJ,assertProgram:()=>m2,assertProperty:()=>xK,assertPureish:()=>xO,assertQualifiedTypeIdentifier:()=>gE,assertRegExpLiteral:()=>mQ,assertRegexLiteral:()=>Sn,assertRestElement:()=>m6,assertRestProperty:()=>Si,assertReturnStatement:()=>m8,assertScopable:()=>xx,assertSequenceExpression:()=>m9,assertSpreadElement:()=>yI,assertSpreadProperty:()=>Ss,assertStandardized:()=>xy,assertStatement:()=>xT,assertStaticBlock:()=>yz,assertStringLiteral:()=>mX,assertStringLiteralTypeAnnotation:()=>gk,assertStringTypeAnnotation:()=>gw,assertSuper:()=>y_,assertSwitchCase:()=>ye,assertSwitchStatement:()=>yt,assertSymbolTypeAnnotation:()=>gA,assertTSAnyKeyword:()=>bv,assertTSArrayType:()=>bU,assertTSAsExpression:()=>b9,assertTSBaseType:()=>St,assertTSBigIntKeyword:()=>bE,assertTSBooleanKeyword:()=>bT,assertTSCallSignatureDeclaration:()=>by,assertTSClassImplements:()=>b2,assertTSConditionalType:()=>bX,assertTSConstructSignatureDeclaration:()=>bg,assertTSConstructorType:()=>bF,assertTSDeclareFunction:()=>bd,assertTSDeclareMethod:()=>bf,assertTSEntityName:()=>xB,assertTSEnumBody:()=>xt,assertTSEnumDeclaration:()=>xr,assertTSEnumMember:()=>xn,assertTSExportAssignment:()=>xc,assertTSExternalModuleReference:()=>xl,assertTSFunctionType:()=>bM,assertTSImportEqualsDeclaration:()=>xo,assertTSImportType:()=>xa,assertTSIndexSignature:()=>bS,assertTSIndexedAccessType:()=>bQ,assertTSInferType:()=>bH,assertTSInstantiationExpression:()=>b8,assertTSInterfaceBody:()=>b5,assertTSInterfaceDeclaration:()=>b4,assertTSInterfaceHeritage:()=>b3,assertTSIntersectionType:()=>bW,assertTSIntrinsicKeyword:()=>bk,assertTSLiteralType:()=>b1,assertTSMappedType:()=>bZ,assertTSMethodSignature:()=>bx,assertTSModuleBlock:()=>xs,assertTSModuleDeclaration:()=>xi,assertTSNamedTupleMember:()=>bJ,assertTSNamespaceExportDeclaration:()=>xp,assertTSNeverKeyword:()=>bw,assertTSNonNullExpression:()=>xu,assertTSNullKeyword:()=>bA,assertTSNumberKeyword:()=>bP,assertTSObjectKeyword:()=>bC,assertTSOptionalType:()=>bq,assertTSParameterProperty:()=>bh,assertTSParenthesizedType:()=>bG,assertTSPropertySignature:()=>bb,assertTSQualifiedName:()=>bm,assertTSRestType:()=>bK,assertTSSatisfiesExpression:()=>b7,assertTSStringKeyword:()=>bI,assertTSSymbolKeyword:()=>b_,assertTSTemplateLiteralType:()=>b0,assertTSThisType:()=>bD,assertTSTupleType:()=>bV,assertTSType:()=>Se,assertTSTypeAliasDeclaration:()=>b6,assertTSTypeAnnotation:()=>xh,assertTSTypeAssertion:()=>xe,assertTSTypeElement:()=>x7,assertTSTypeLiteral:()=>b$,assertTSTypeOperator:()=>bY,assertTSTypeParameter:()=>xm,assertTSTypeParameterDeclaration:()=>xf,assertTSTypeParameterInstantiation:()=>xd,assertTSTypePredicate:()=>bB,assertTSTypeQuery:()=>bR,assertTSTypeReference:()=>bj,assertTSUndefinedKeyword:()=>bN,assertTSUnionType:()=>bz,assertTSUnknownKeyword:()=>bL,assertTSVoidKeyword:()=>bO,assertTaggedTemplateExpression:()=>yN,assertTemplateElement:()=>yL,assertTemplateLiteral:()=>yO,assertTerminatorless:()=>xE,assertThisExpression:()=>yr,assertThisTypeAnnotation:()=>gP,assertThrowStatement:()=>yn,assertTopicReference:()=>bc,assertTryStatement:()=>yi,assertTupleTypeAnnotation:()=>gC,assertTypeAlias:()=>g_,assertTypeAnnotation:()=>gN,assertTypeCastExpression:()=>gL,assertTypeParameter:()=>gO,assertTypeParameterDeclaration:()=>gD,assertTypeParameterInstantiation:()=>gM,assertTypeScript:()=>x9,assertTypeofTypeAnnotation:()=>gI,assertUnaryExpression:()=>ys,assertUnaryLike:()=>xJ,assertUnionTypeAnnotation:()=>gF,assertUpdateExpression:()=>ya,assertUserWhitespacable:()=>xU,assertV8IntrinsicIdentifier:()=>br,assertVariableDeclaration:()=>yo,assertVariableDeclarator:()=>yl,assertVariance:()=>gj,assertVoidPattern:()=>bp,assertVoidTypeAnnotation:()=>gB,assertWhile:()=>xP,assertWhileStatement:()=>yu,assertWithStatement:()=>yc,assertYieldExpression:()=>yD,assignmentExpression:()=>oN,assignmentPattern:()=>lg,awaitExpression:()=>lU,bigIntLiteral:()=>lK,bigIntLiteralTypeAnnotation:()=>uS,binaryExpression:()=>oL,bindExpression:()=>cc,blockStatement:()=>oF,booleanLiteral:()=>o3,booleanLiteralTypeAnnotation:()=>l3,booleanTypeAnnotation:()=>l2,breakStatement:()=>oj,buildMatchMemberExpression:()=>an,buildUndefinedNode:()=>Sp,callExpression:()=>oB,catchClause:()=>oR,classAccessorProperty:()=>cp,classBody:()=>lS,classDeclaration:()=>lT,classExpression:()=>lv,classImplements:()=>l5,classMethod:()=>lO,classPrivateMethod:()=>lG,classPrivateProperty:()=>lH,classProperty:()=>lX,clone:()=>Sb,cloneDeep:()=>Sx,cloneDeepWithoutLoc:()=>SS,cloneNode:()=>Sm,cloneWithoutLoc:()=>Sv,conditionalExpression:()=>o$,continueStatement:()=>oU,createFlowUnionType:()=>Su,createTSUnionType:()=>Sc,createTypeAnnotationBasedOnTypeof:()=>So,createUnionTypeAnnotation:()=>Su,debuggerStatement:()=>oV,declareClass:()=>l6,declareExportAllDeclaration:()=>us,declareExportDeclaration:()=>ui,declareFunction:()=>l8,declareInterface:()=>l9,declareModule:()=>l7,declareModuleExports:()=>ue,declareOpaqueType:()=>ur,declareTypeAlias:()=>ut,declareVariable:()=>un,declaredPredicate:()=>ua,decorator:()=>ch,directive:()=>oD,directiveLiteral:()=>oM,doExpression:()=>cd,doWhileStatement:()=>oq,emptyStatement:()=>oK,emptyTypeAnnotation:()=>ug,ensureBlock:()=>vb,enumBooleanBody:()=>uz,enumBooleanMember:()=>uG,enumDeclaration:()=>uJ,enumDefaultedMember:()=>uZ,enumNumberBody:()=>uW,enumNumberMember:()=>uY,enumStringBody:()=>uX,enumStringMember:()=>uQ,enumSymbolBody:()=>uH,existsTypeAnnotation:()=>uo,exportAllDeclaration:()=>lE,exportDefaultDeclaration:()=>lk,exportDefaultSpecifier:()=>cf,exportNamedDeclaration:()=>lw,exportNamespaceSpecifier:()=>lJ,exportSpecifier:()=>lA,expressionStatement:()=>oJ,file:()=>oz,forInStatement:()=>oW,forOfStatement:()=>lP,forStatement:()=>oX,functionDeclaration:()=>oH,functionExpression:()=>oG,functionTypeAnnotation:()=>ul,functionTypeParam:()=>uu,genericTypeAnnotation:()=>uc,getAssignmentIdentifiers:()=>vF,getBindingIdentifiers:()=>vj,getFunctionName:()=>v$,getOuterBindingIdentifiers:()=>vB,identifier:()=>oY,ifStatement:()=>oQ,import:()=>lq,importAttribute:()=>lZ,importDeclaration:()=>lC,importDefaultSpecifier:()=>lI,importExpression:()=>lV,importNamespaceSpecifier:()=>l_,importSpecifier:()=>lN,indexedAccessType:()=>u0,inferredPredicate:()=>up,inheritInnerComments:()=>Sw,inheritLeadingComments:()=>SA,inheritTrailingComments:()=>SP,inherits:()=>vD,inheritsComments:()=>SC,interfaceDeclaration:()=>ud,interfaceExtends:()=>uh,interfaceTypeAnnotation:()=>uf,interpreterDirective:()=>oO,intersectionTypeAnnotation:()=>um,is:()=>ao,isAccessor:()=>s2,isAnyTypeAnnotation:()=>rV,isArgumentPlaceholder:()=>n8,isArrayExpression:()=>tb,isArrayPattern:()=>ra,isArrayTypeAnnotation:()=>rq,isArrowFunctionExpression:()=>ro,isAssignmentExpression:()=>tx,isAssignmentPattern:()=>rs,isAwaitExpression:()=>rI,isBigIntLiteral:()=>rL,isBigIntLiteralTypeAnnotation:()=>nl,isBinary:()=>sf,isBinaryExpression:()=>tS,isBindExpression:()=>n9,isBinding:()=>vV,isBlock:()=>sg,isBlockParent:()=>sy,isBlockScoped:()=>vK,isBlockStatement:()=>tk,isBooleanLiteral:()=>tJ,isBooleanLiteralTypeAnnotation:()=>rJ,isBooleanTypeAnnotation:()=>rK,isBreakStatement:()=>tw,isCallExpression:()=>tA,isCatchClause:()=>tP,isClass:()=>sV,isClassAccessorProperty:()=>n7,isClassBody:()=>rl,isClassDeclaration:()=>rc,isClassExpression:()=>ru,isClassImplements:()=>rW,isClassMethod:()=>rv,isClassPrivateMethod:()=>rB,isClassPrivateProperty:()=>rj,isClassProperty:()=>rF,isCompletionStatement:()=>sS,isConditional:()=>sv,isConditionalExpression:()=>tC,isContinueStatement:()=>tI,isDebuggerStatement:()=>t_,isDeclaration:()=>s_,isDeclareClass:()=>rX,isDeclareExportAllDeclaration:()=>r3,isDeclareExportDeclaration:()=>r2,isDeclareFunction:()=>rH,isDeclareInterface:()=>rG,isDeclareModule:()=>rY,isDeclareModuleExports:()=>rQ,isDeclareOpaqueType:()=>r0,isDeclareTypeAlias:()=>rZ,isDeclareVariable:()=>r1,isDeclaredPredicate:()=>r4,isDecorator:()=>ie,isDirective:()=>tT,isDirectiveLiteral:()=>tE,isDoExpression:()=>it,isDoWhileStatement:()=>tN,isEmptyStatement:()=>tL,isEmptyTypeAnnotation:()=>ns,isEnumBody:()=>sQ,isEnumBooleanBody:()=>nD,isEnumBooleanMember:()=>nB,isEnumDeclaration:()=>nO,isEnumDefaultedMember:()=>nU,isEnumMember:()=>sZ,isEnumNumberBody:()=>nM,isEnumNumberMember:()=>nR,isEnumStringBody:()=>nF,isEnumStringMember:()=>n$,isEnumSymbolBody:()=>nj,isExistsTypeAnnotation:()=>r5,isExportAllDeclaration:()=>rp,isExportDeclaration:()=>sK,isExportDefaultDeclaration:()=>rh,isExportDefaultSpecifier:()=>ir,isExportNamedDeclaration:()=>rd,isExportNamespaceSpecifier:()=>rO,isExportSpecifier:()=>rf,isExpression:()=>sd,isExpressionStatement:()=>tO,isExpressionWrapper:()=>sk,isFile:()=>tD,isFlow:()=>sW,isFlowBaseAnnotation:()=>sH,isFlowDeclaration:()=>sG,isFlowPredicate:()=>sY,isFlowType:()=>sX,isFor:()=>sw,isForInStatement:()=>tM,isForOfStatement:()=>rm,isForStatement:()=>tF,isForXStatement:()=>sA,isFunction:()=>sP,isFunctionDeclaration:()=>tj,isFunctionExpression:()=>tB,isFunctionParameter:()=>sN,isFunctionParent:()=>sC,isFunctionTypeAnnotation:()=>r6,isFunctionTypeParam:()=>r8,isGenericTypeAnnotation:()=>r9,isIdentifier:()=>tR,isIfStatement:()=>t$,isImmutable:()=>vJ,isImport:()=>rN,isImportAttribute:()=>rU,isImportDeclaration:()=>ry,isImportDefaultSpecifier:()=>rg,isImportExpression:()=>r_,isImportNamespaceSpecifier:()=>rb,isImportOrExportDeclaration:()=>sq,isImportSpecifier:()=>rx,isIndexedAccessType:()=>nV,isInferredPredicate:()=>r7,isInterfaceDeclaration:()=>nt,isInterfaceExtends:()=>ne,isInterfaceTypeAnnotation:()=>nr,isInterpreterDirective:()=>tv,isIntersectionTypeAnnotation:()=>nn,isJSX:()=>s0,isJSXAttribute:()=>nK,isJSXClosingElement:()=>nJ,isJSXClosingFragment:()=>n4,isJSXElement:()=>nz,isJSXEmptyExpression:()=>nW,isJSXExpressionContainer:()=>nX,isJSXFragment:()=>n2,isJSXIdentifier:()=>nG,isJSXMemberExpression:()=>nY,isJSXNamespacedName:()=>nQ,isJSXOpeningElement:()=>nZ,isJSXOpeningFragment:()=>n3,isJSXSpreadAttribute:()=>n0,isJSXSpreadChild:()=>nH,isJSXText:()=>n1,isLVal:()=>sO,isLabeledStatement:()=>tU,isLet:()=>vq,isLiteral:()=>sM,isLogicalExpression:()=>tW,isLoop:()=>sT,isMemberExpression:()=>tX,isMetaProperty:()=>rS,isMethod:()=>sj,isMiscellaneous:()=>s1,isMixedTypeAnnotation:()=>ni,isModuleDeclaration:()=>at,isModuleExpression:()=>ii,isModuleSpecifier:()=>sJ,isNewExpression:()=>tH,isNode:()=>mv,isNodesEquivalent:()=>function e(t,r){if("object"!=typeof t||"object"!=typeof r||null==t||null==r)return t===r;if(t.type!==r.type)return!1;let n=Object.keys(a_[t.type]||t.type),i=aP[t.type];for(let s of n){let n=t[s],a=r[s];if(typeof n!=typeof a)return!1;if(null!=n||null!=a){if(null==n||null==a)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let t=0;t<n.length;t++)if(!e(n[t],a[t]))return!1;continue}if("object"==typeof n&&!i?.includes(s)){for(let e of Object.keys(n))if(n[e]!==a[e])return!1;continue}if(!e(n,a))return!1}}return!0},isNullLiteral:()=>tK,isNullLiteralTypeAnnotation:()=>rz,isNullableTypeAnnotation:()=>na,isNumberLiteral:()=>s8,isNumberLiteralTypeAnnotation:()=>no,isNumberTypeAnnotation:()=>nu,isNumericLiteral:()=>tq,isObjectExpression:()=>tY,isObjectMember:()=>sB,isObjectMethod:()=>tQ,isObjectPattern:()=>rT,isObjectProperty:()=>tZ,isObjectTypeAnnotation:()=>nc,isObjectTypeCallProperty:()=>nh,isObjectTypeIndexer:()=>nd,isObjectTypeInternalSlot:()=>np,isObjectTypeProperty:()=>nf,isObjectTypeSpreadProperty:()=>nm,isOpaqueType:()=>ny,isOptionalCallExpression:()=>rM,isOptionalIndexedAccessType:()=>nq,isOptionalMemberExpression:()=>rD,isParenthesizedExpression:()=>t3,isPattern:()=>sU,isPatternLike:()=>sL,isPlaceholder:()=>n5,isPlaceholderType:()=>aa,isPrivate:()=>sz,isPrivateName:()=>rR,isProgram:()=>tG,isProperty:()=>sR,isPureish:()=>sI,isQualifiedTypeIdentifier:()=>ng,isReferenced:()=>vz,isRegExpLiteral:()=>tz,isRegexLiteral:()=>s9,isRestElement:()=>t0,isRestProperty:()=>s7,isReturnStatement:()=>t1,isScopable:()=>sm,isScope:()=>vW,isSequenceExpression:()=>t2,isSpecifierDefault:()=>vX,isSpreadElement:()=>rE,isSpreadProperty:()=>ae,isStandardized:()=>sh,isStatement:()=>sb,isStaticBlock:()=>r$,isStringLiteral:()=>tV,isStringLiteralTypeAnnotation:()=>nb,isStringTypeAnnotation:()=>nx,isSuper:()=>rk,isSwitchCase:()=>t4,isSwitchStatement:()=>t5,isSymbolTypeAnnotation:()=>nS,isTSAnyKeyword:()=>ig,isTSArrayType:()=>ij,isTSAsExpression:()=>i4,isTSBaseType:()=>s6,isTSBigIntKeyword:()=>ix,isTSBooleanKeyword:()=>ib,isTSCallSignatureDeclaration:()=>ip,isTSClassImplements:()=>iQ,isTSConditionalType:()=>iK,isTSConstructSignatureDeclaration:()=>ih,isTSConstructorType:()=>iL,isTSDeclareFunction:()=>il,isTSDeclareMethod:()=>iu,isTSEntityName:()=>sD,isTSEnumBody:()=>i8,isTSEnumDeclaration:()=>i9,isTSEnumMember:()=>i7,isTSExportAssignment:()=>sa,isTSExternalModuleReference:()=>si,isTSFunctionType:()=>iN,isTSImportEqualsDeclaration:()=>sn,isTSImportType:()=>sr,isTSIndexSignature:()=>iy,isTSIndexedAccessType:()=>iX,isTSInferType:()=>iJ,isTSInstantiationExpression:()=>i3,isTSInterfaceBody:()=>i1,isTSInterfaceDeclaration:()=>i0,isTSInterfaceHeritage:()=>iZ,isTSIntersectionType:()=>iq,isTSIntrinsicKeyword:()=>iS,isTSLiteralType:()=>iY,isTSMappedType:()=>iH,isTSMethodSignature:()=>im,isTSModuleBlock:()=>st,isTSModuleDeclaration:()=>se,isTSNamedTupleMember:()=>iU,isTSNamespaceExportDeclaration:()=>so,isTSNeverKeyword:()=>iv,isTSNonNullExpression:()=>ss,isTSNullKeyword:()=>iT,isTSNumberKeyword:()=>iE,isTSObjectKeyword:()=>ik,isTSOptionalType:()=>iR,isTSParameterProperty:()=>io,isTSParenthesizedType:()=>iz,isTSPropertySignature:()=>id,isTSQualifiedName:()=>ic,isTSRestType:()=>i$,isTSSatisfiesExpression:()=>i5,isTSStringKeyword:()=>iw,isTSSymbolKeyword:()=>iA,isTSTemplateLiteralType:()=>iG,isTSThisType:()=>i_,isTSTupleType:()=>iB,isTSType:()=>s5,isTSTypeAliasDeclaration:()=>i2,isTSTypeAnnotation:()=>sl,isTSTypeAssertion:()=>i6,isTSTypeElement:()=>s4,isTSTypeLiteral:()=>iF,isTSTypeOperator:()=>iW,isTSTypeParameter:()=>sp,isTSTypeParameterDeclaration:()=>sc,isTSTypeParameterInstantiation:()=>su,isTSTypePredicate:()=>iD,isTSTypeQuery:()=>iM,isTSTypeReference:()=>iO,isTSUndefinedKeyword:()=>iP,isTSUnionType:()=>iV,isTSUnknownKeyword:()=>iC,isTSVoidKeyword:()=>iI,isTaggedTemplateExpression:()=>rw,isTemplateElement:()=>rA,isTemplateLiteral:()=>rP,isTerminatorless:()=>sx,isThisExpression:()=>t6,isThisTypeAnnotation:()=>nv,isThrowStatement:()=>t8,isTopicReference:()=>is,isTryStatement:()=>t9,isTupleTypeAnnotation:()=>nT,isType:()=>as,isTypeAlias:()=>nk,isTypeAnnotation:()=>nw,isTypeCastExpression:()=>nA,isTypeParameter:()=>nP,isTypeParameterDeclaration:()=>nC,isTypeParameterInstantiation:()=>nI,isTypeScript:()=>s3,isTypeofTypeAnnotation:()=>nE,isUnaryExpression:()=>t7,isUnaryLike:()=>s$,isUnionTypeAnnotation:()=>n_,isUpdateExpression:()=>re,isUserWhitespacable:()=>sF,isV8IntrinsicIdentifier:()=>n6,isValidES3Identifier:()=>vG,isValidIdentifier:()=>al,isVar:()=>vY,isVariableDeclaration:()=>rt,isVariableDeclarator:()=>rr,isVariance:()=>nN,isVoidPattern:()=>ia,isVoidTypeAnnotation:()=>nL,isWhile:()=>sE,isWhileStatement:()=>rn,isWithStatement:()=>ri,isYieldExpression:()=>rC,jsxAttribute:()=>u2,jsxClosingElement:()=>u3,jsxClosingFragment:()=>ca,jsxElement:()=>u4,jsxEmptyExpression:()=>u5,jsxExpressionContainer:()=>u6,jsxFragment:()=>ci,jsxIdentifier:()=>u9,jsxMemberExpression:()=>u7,jsxNamespacedName:()=>ce,jsxOpeningElement:()=>ct,jsxOpeningFragment:()=>cs,jsxSpreadAttribute:()=>cr,jsxSpreadChild:()=>u8,jsxText:()=>cn,labeledStatement:()=>oZ,logicalExpression:()=>o5,matchesPattern:()=>ar,memberExpression:()=>o6,metaProperty:()=>lL,mixedTypeAnnotation:()=>uy,moduleExpression:()=>cm,newExpression:()=>o8,nullLiteral:()=>o2,nullLiteralTypeAnnotation:()=>l4,nullableTypeAnnotation:()=>ub,numberLiteral:()=>pT,numberLiteralTypeAnnotation:()=>ux,numberTypeAnnotation:()=>uv,numericLiteral:()=>o1,objectExpression:()=>o7,objectMethod:()=>le,objectPattern:()=>lD,objectProperty:()=>lt,objectTypeAnnotation:()=>uT,objectTypeCallProperty:()=>uk,objectTypeIndexer:()=>uw,objectTypeInternalSlot:()=>uE,objectTypeProperty:()=>uA,objectTypeSpreadProperty:()=>uP,opaqueType:()=>uC,optionalCallExpression:()=>lW,optionalIndexedAccessType:()=>u1,optionalMemberExpression:()=>lz,parenthesizedExpression:()=>ls,placeholder:()=>co,prependToMemberExpression:()=>vM,privateName:()=>lY,program:()=>o9,qualifiedTypeIdentifier:()=>uI,react:()=>vQ,regExpLiteral:()=>o4,regexLiteral:()=>pE,removeComments:()=>SI,removeProperties:()=>vC,removePropertiesDeep:()=>vI,removeTypeDuplicates:()=>Sl,restElement:()=>lr,restProperty:()=>pk,returnStatement:()=>ln,sequenceExpression:()=>li,shallowEqual:()=>tf,spreadElement:()=>lM,spreadProperty:()=>pw,staticBlock:()=>lQ,stringLiteral:()=>o0,stringLiteralTypeAnnotation:()=>u_,stringTypeAnnotation:()=>uN,super:()=>lF,switchCase:()=>la,switchStatement:()=>lo,symbolTypeAnnotation:()=>uL,taggedTemplateExpression:()=>lj,templateElement:()=>lB,templateLiteral:()=>lR,thisExpression:()=>ll,thisTypeAnnotation:()=>uO,throwStatement:()=>lu,toBindingIdentifierName:()=>vS,toBlock:()=>vg,toComputedKey:()=>vv,toExpression:()=>vT,toIdentifier:()=>vx,toKeyAlias:()=>v_,toStatement:()=>vN,topicReference:()=>cy,traverse:()=>vU,traverseFast:()=>vw,tryStatement:()=>lc,tsAnyKeyword:()=>cP,tsArrayType:()=>cW,tsAsExpression:()=>pi,tsBigIntKeyword:()=>cI,tsBooleanKeyword:()=>cC,tsCallSignatureDeclaration:()=>cT,tsClassImplements:()=>c9,tsConditionalType:()=>c0,tsConstructSignatureDeclaration:()=>cE,tsConstructorType:()=>cV,tsDeclareFunction:()=>cx,tsDeclareMethod:()=>cS,tsEnumBody:()=>po,tsEnumDeclaration:()=>pl,tsEnumMember:()=>pu,tsExportAssignment:()=>py,tsExternalModuleReference:()=>pf,tsFunctionType:()=>cU,tsImportEqualsDeclaration:()=>pd,tsImportType:()=>ph,tsIndexSignature:()=>cA,tsIndexedAccessType:()=>c4,tsInferType:()=>c1,tsInstantiationExpression:()=>pn,tsInterfaceBody:()=>pt,tsInterfaceDeclaration:()=>pe,tsInterfaceHeritage:()=>c7,tsIntersectionType:()=>cZ,tsIntrinsicKeyword:()=>c_,tsLiteralType:()=>c8,tsMappedType:()=>c5,tsMethodSignature:()=>cw,tsModuleBlock:()=>pp,tsModuleDeclaration:()=>pc,tsNamedTupleMember:()=>cY,tsNamespaceExportDeclaration:()=>pg,tsNeverKeyword:()=>cN,tsNonNullExpression:()=>pm,tsNullKeyword:()=>cL,tsNumberKeyword:()=>cO,tsObjectKeyword:()=>cD,tsOptionalType:()=>cH,tsParameterProperty:()=>cb,tsParenthesizedType:()=>c2,tsPropertySignature:()=>ck,tsQualifiedName:()=>cv,tsRestType:()=>cG,tsSatisfiesExpression:()=>ps,tsStringKeyword:()=>cM,tsSymbolKeyword:()=>cF,tsTemplateLiteralType:()=>c6,tsThisType:()=>c$,tsTupleType:()=>cX,tsTypeAliasDeclaration:()=>pr,tsTypeAnnotation:()=>pb,tsTypeAssertion:()=>pa,tsTypeLiteral:()=>cz,tsTypeOperator:()=>c3,tsTypeParameter:()=>pv,tsTypeParameterDeclaration:()=>pS,tsTypeParameterInstantiation:()=>px,tsTypePredicate:()=>cK,tsTypeQuery:()=>cJ,tsTypeReference:()=>cq,tsUndefinedKeyword:()=>cj,tsUnionType:()=>cQ,tsUnknownKeyword:()=>cB,tsVoidKeyword:()=>cR,tupleTypeAnnotation:()=>uD,typeAlias:()=>uF,typeAnnotation:()=>uj,typeCastExpression:()=>uB,typeParameter:()=>uR,typeParameterDeclaration:()=>u$,typeParameterInstantiation:()=>uU,typeofTypeAnnotation:()=>uM,unaryExpression:()=>lp,unionTypeAnnotation:()=>uV,updateExpression:()=>lh,v8IntrinsicIdentifier:()=>cl,validate:()=>ow,valueToNode:()=>function e(t){if(void 0===t)return oY("undefined");if(!0===t||!1===t)return o3(t);if(null===t)return o2();if("string"==typeof t)return o0(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=o1(Math.abs(t));else e=oL("/",Number.isNaN(t)?o1(0):o1(1),o1(0));return(t<0||Object.is(t,-0))&&(e=lp("-",e)),e}if("bigint"==typeof t)if(t<0)return lp("-",lK(-t));else return lK(t);if("[object RegExp]"===vL(t))return o4(t.source,/\/([a-z]*)$/.exec(t.toString())[1]);if(Array.isArray(t))return o_(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){let r=[];for(let n of Object.keys(t)){let i,s=!1;al(n)?"__proto__"===n?(s=!0,i=o0(n)):i=oY(n):i=o0(n),r.push(lt(i,e(t[n]),s))}return o7(r)}throw Error("don't know how to turn this value into a node")},variableDeclaration:()=>ld,variableDeclarator:()=>lf,variance:()=>uq,voidPattern:()=>cg,voidTypeAnnotation:()=>uK,whileStatement:()=>lm,withStatement:()=>ly,yieldExpression:()=>l$};for(var e8 in e6)eZ(e5,e8,{get:e6[e8],enumerable:!0});var e9=/[\p{ID_Start}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d]/u,e7=/[\p{ID_Continue}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d\u05c8\u05c9\u0b53\u0b54\u1acf-\u1af0]/u,te=[1979,4,385,25,1388,2,18,21,3100,0,678,43,22,0,1662,0,6,10,209,310,18458,24,3,24,287,4,6146,7,1239,4,47,23,96,114,14,913,15,50,8017,5,64,0,9534,0,2169,5,7,86,15,6,55,50,1729,30,2,2,2,1,2,6,3,4,10,1,53307,5,223,0,5764,11,21763,4297,39815,11327],tt=[3787,4,33,11,3173,7,633,9,7,0,45879,1,296,2,9,1,3,0,33,1,5218,0,3,0,8,1,6,0];function tr(e,t){let r=65536;for(let n=0,i=t.length;n<i&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function tn(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&e7.test(String.fromCharCode(e)):!isNaN(e)&&e<=1114111&&(e7.test(String.fromCodePoint(e))||tr(e,te)||tr(e,tt)))))}var ti=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ts=new Set(["implements","interface","let","package","private","protected","public","static","yield"]);function ta(e,t){return t&&"await"===e||"enum"===e}function to(e,t){return ta(e,t)||ts.has(e)}var tl={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},tu=e=>48===e||49===e,tc=e=>e>=48&&e<=55,tp=e=>e>=48&&e<=57,th=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function td(e,t,r,n,i,s,a,o){let l,u=t;return{n:l,pos:t}=function(e,t,r,n,i,s,a,o,l){let u=t,c=(0,tl.hex),p=th,h=!1,d=0;for(let u=0,f=null==i?1/0:i;u<f;++u){let i,u=e.charCodeAt(t);if(95===u&&"bail"!==a){let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(a){if(Number.isNaN(s)||!p(s)||c.has(i)||c.has(s)){if(l)return{n:null,pos:t};o.unexpectedNumericSeparator(t,r,n)}}else{if(l)return{n:null,pos:t};o.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(u>=97)i=u-97+10;else if(u>=65)i=u-65+10;else i=u>=48&&u<=57?u-48:1/0;if(i>=16)if(i<=9){if(l)return{n:null,pos:t};o.invalidDigit(t,r,n,16),i=0}else if(s)i=0,h=!0;else break;++t,d=16*d+i}return t===u||null!=i&&t-u!==i||h?{n:null,pos:t}:{n:d,pos:t}}(e,t,r,n,i,s,!1,o,!a),null===l&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function tf(e,t){for(let r of Object.keys(t))if(e[r]!==t[r])return!1;return!0}function tm(e,t,r){return t?.type===e&&(null==r||tf(t,r))}var ty=new Set;function tg(e,t,r="",n=e){if(ty.has(n))return;ty.add(n);let{internal:i,trace:s}=function(){let e,{stackTraceLimit:t,prepareStackTrace:r}=Error;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(t,r){e=r},Error().stack,Error.stackTraceLimit=t,Error.prepareStackTrace=r,!e)return{internal:!1,trace:""};let n=e.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(e=>` at ${e}`).join("\n")}}();i||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
15
+ ${s}`)}function tb(e,t){return tm("ArrayExpression",e,t)}function tx(e,t){return tm("AssignmentExpression",e,t)}function tS(e,t){return tm("BinaryExpression",e,t)}function tv(e,t){return tm("InterpreterDirective",e,t)}function tT(e,t){return tm("Directive",e,t)}function tE(e,t){return tm("DirectiveLiteral",e,t)}function tk(e,t){return tm("BlockStatement",e,t)}function tw(e,t){return tm("BreakStatement",e,t)}function tA(e,t){return tm("CallExpression",e,t)}function tP(e,t){return tm("CatchClause",e,t)}function tC(e,t){return tm("ConditionalExpression",e,t)}function tI(e,t){return tm("ContinueStatement",e,t)}function t_(e,t){return tm("DebuggerStatement",e,t)}function tN(e,t){return tm("DoWhileStatement",e,t)}function tL(e,t){return tm("EmptyStatement",e,t)}function tO(e,t){return tm("ExpressionStatement",e,t)}function tD(e,t){return tm("File",e,t)}function tM(e,t){return tm("ForInStatement",e,t)}function tF(e,t){return tm("ForStatement",e,t)}function tj(e,t){return tm("FunctionDeclaration",e,t)}function tB(e,t){return tm("FunctionExpression",e,t)}function tR(e,t){return tm("Identifier",e,t)}function t$(e,t){return tm("IfStatement",e,t)}function tU(e,t){return tm("LabeledStatement",e,t)}function tV(e,t){return tm("StringLiteral",e,t)}function tq(e,t){return tm("NumericLiteral",e,t)}function tK(e,t){return tm("NullLiteral",e,t)}function tJ(e,t){return tm("BooleanLiteral",e,t)}function tz(e,t){return tm("RegExpLiteral",e,t)}function tW(e,t){return tm("LogicalExpression",e,t)}function tX(e,t){return tm("MemberExpression",e,t)}function tH(e,t){return tm("NewExpression",e,t)}function tG(e,t){return tm("Program",e,t)}function tY(e,t){return tm("ObjectExpression",e,t)}function tQ(e,t){return tm("ObjectMethod",e,t)}function tZ(e,t){return tm("ObjectProperty",e,t)}function t0(e,t){return tm("RestElement",e,t)}function t1(e,t){return tm("ReturnStatement",e,t)}function t2(e,t){return tm("SequenceExpression",e,t)}function t3(e,t){return tm("ParenthesizedExpression",e,t)}function t4(e,t){return tm("SwitchCase",e,t)}function t5(e,t){return tm("SwitchStatement",e,t)}function t6(e,t){return tm("ThisExpression",e,t)}function t8(e,t){return tm("ThrowStatement",e,t)}function t9(e,t){return tm("TryStatement",e,t)}function t7(e,t){return tm("UnaryExpression",e,t)}function re(e,t){return tm("UpdateExpression",e,t)}function rt(e,t){return tm("VariableDeclaration",e,t)}function rr(e,t){return tm("VariableDeclarator",e,t)}function rn(e,t){return tm("WhileStatement",e,t)}function ri(e,t){return tm("WithStatement",e,t)}function rs(e,t){return tm("AssignmentPattern",e,t)}function ra(e,t){return tm("ArrayPattern",e,t)}function ro(e,t){return tm("ArrowFunctionExpression",e,t)}function rl(e,t){return tm("ClassBody",e,t)}function ru(e,t){return tm("ClassExpression",e,t)}function rc(e,t){return tm("ClassDeclaration",e,t)}function rp(e,t){return tm("ExportAllDeclaration",e,t)}function rh(e,t){return tm("ExportDefaultDeclaration",e,t)}function rd(e,t){return tm("ExportNamedDeclaration",e,t)}function rf(e,t){return tm("ExportSpecifier",e,t)}function rm(e,t){return tm("ForOfStatement",e,t)}function ry(e,t){return tm("ImportDeclaration",e,t)}function rg(e,t){return tm("ImportDefaultSpecifier",e,t)}function rb(e,t){return tm("ImportNamespaceSpecifier",e,t)}function rx(e,t){return tm("ImportSpecifier",e,t)}function rS(e,t){return tm("MetaProperty",e,t)}function rv(e,t){return tm("ClassMethod",e,t)}function rT(e,t){return tm("ObjectPattern",e,t)}function rE(e,t){return tm("SpreadElement",e,t)}function rk(e,t){return tm("Super",e,t)}function rw(e,t){return tm("TaggedTemplateExpression",e,t)}function rA(e,t){return tm("TemplateElement",e,t)}function rP(e,t){return tm("TemplateLiteral",e,t)}function rC(e,t){return tm("YieldExpression",e,t)}function rI(e,t){return tm("AwaitExpression",e,t)}function r_(e,t){return tm("ImportExpression",e,t)}function rN(e,t){return tm("Import",e,t)}function rL(e,t){return tm("BigIntLiteral",e,t)}function rO(e,t){return tm("ExportNamespaceSpecifier",e,t)}function rD(e,t){return tm("OptionalMemberExpression",e,t)}function rM(e,t){return tm("OptionalCallExpression",e,t)}function rF(e,t){return tm("ClassProperty",e,t)}function rj(e,t){return tm("ClassPrivateProperty",e,t)}function rB(e,t){return tm("ClassPrivateMethod",e,t)}function rR(e,t){return tm("PrivateName",e,t)}function r$(e,t){return tm("StaticBlock",e,t)}function rU(e,t){return tm("ImportAttribute",e,t)}function rV(e,t){return tm("AnyTypeAnnotation",e,t)}function rq(e,t){return tm("ArrayTypeAnnotation",e,t)}function rK(e,t){return tm("BooleanTypeAnnotation",e,t)}function rJ(e,t){return tm("BooleanLiteralTypeAnnotation",e,t)}function rz(e,t){return tm("NullLiteralTypeAnnotation",e,t)}function rW(e,t){return tm("ClassImplements",e,t)}function rX(e,t){return tm("DeclareClass",e,t)}function rH(e,t){return tm("DeclareFunction",e,t)}function rG(e,t){return tm("DeclareInterface",e,t)}function rY(e,t){return tm("DeclareModule",e,t)}function rQ(e,t){return tm("DeclareModuleExports",e,t)}function rZ(e,t){return tm("DeclareTypeAlias",e,t)}function r0(e,t){return tm("DeclareOpaqueType",e,t)}function r1(e,t){return tm("DeclareVariable",e,t)}function r2(e,t){return tm("DeclareExportDeclaration",e,t)}function r3(e,t){return tm("DeclareExportAllDeclaration",e,t)}function r4(e,t){return tm("DeclaredPredicate",e,t)}function r5(e,t){return tm("ExistsTypeAnnotation",e,t)}function r6(e,t){return tm("FunctionTypeAnnotation",e,t)}function r8(e,t){return tm("FunctionTypeParam",e,t)}function r9(e,t){return tm("GenericTypeAnnotation",e,t)}function r7(e,t){return tm("InferredPredicate",e,t)}function ne(e,t){return tm("InterfaceExtends",e,t)}function nt(e,t){return tm("InterfaceDeclaration",e,t)}function nr(e,t){return tm("InterfaceTypeAnnotation",e,t)}function nn(e,t){return tm("IntersectionTypeAnnotation",e,t)}function ni(e,t){return tm("MixedTypeAnnotation",e,t)}function ns(e,t){return tm("EmptyTypeAnnotation",e,t)}function na(e,t){return tm("NullableTypeAnnotation",e,t)}function no(e,t){return tm("NumberLiteralTypeAnnotation",e,t)}function nl(e,t){return tm("BigIntLiteralTypeAnnotation",e,t)}function nu(e,t){return tm("NumberTypeAnnotation",e,t)}function nc(e,t){return tm("ObjectTypeAnnotation",e,t)}function np(e,t){return tm("ObjectTypeInternalSlot",e,t)}function nh(e,t){return tm("ObjectTypeCallProperty",e,t)}function nd(e,t){return tm("ObjectTypeIndexer",e,t)}function nf(e,t){return tm("ObjectTypeProperty",e,t)}function nm(e,t){return tm("ObjectTypeSpreadProperty",e,t)}function ny(e,t){return tm("OpaqueType",e,t)}function ng(e,t){return tm("QualifiedTypeIdentifier",e,t)}function nb(e,t){return tm("StringLiteralTypeAnnotation",e,t)}function nx(e,t){return tm("StringTypeAnnotation",e,t)}function nS(e,t){return tm("SymbolTypeAnnotation",e,t)}function nv(e,t){return tm("ThisTypeAnnotation",e,t)}function nT(e,t){return tm("TupleTypeAnnotation",e,t)}function nE(e,t){return tm("TypeofTypeAnnotation",e,t)}function nk(e,t){return tm("TypeAlias",e,t)}function nw(e,t){return tm("TypeAnnotation",e,t)}function nA(e,t){return tm("TypeCastExpression",e,t)}function nP(e,t){return tm("TypeParameter",e,t)}function nC(e,t){return tm("TypeParameterDeclaration",e,t)}function nI(e,t){return tm("TypeParameterInstantiation",e,t)}function n_(e,t){return tm("UnionTypeAnnotation",e,t)}function nN(e,t){return tm("Variance",e,t)}function nL(e,t){return tm("VoidTypeAnnotation",e,t)}function nO(e,t){return tm("EnumDeclaration",e,t)}function nD(e,t){return tm("EnumBooleanBody",e,t)}function nM(e,t){return tm("EnumNumberBody",e,t)}function nF(e,t){return tm("EnumStringBody",e,t)}function nj(e,t){return tm("EnumSymbolBody",e,t)}function nB(e,t){return tm("EnumBooleanMember",e,t)}function nR(e,t){return tm("EnumNumberMember",e,t)}function n$(e,t){return tm("EnumStringMember",e,t)}function nU(e,t){return tm("EnumDefaultedMember",e,t)}function nV(e,t){return tm("IndexedAccessType",e,t)}function nq(e,t){return tm("OptionalIndexedAccessType",e,t)}function nK(e,t){return tm("JSXAttribute",e,t)}function nJ(e,t){return tm("JSXClosingElement",e,t)}function nz(e,t){return tm("JSXElement",e,t)}function nW(e,t){return tm("JSXEmptyExpression",e,t)}function nX(e,t){return tm("JSXExpressionContainer",e,t)}function nH(e,t){return tm("JSXSpreadChild",e,t)}function nG(e,t){return tm("JSXIdentifier",e,t)}function nY(e,t){return tm("JSXMemberExpression",e,t)}function nQ(e,t){return tm("JSXNamespacedName",e,t)}function nZ(e,t){return tm("JSXOpeningElement",e,t)}function n0(e,t){return tm("JSXSpreadAttribute",e,t)}function n1(e,t){return tm("JSXText",e,t)}function n2(e,t){return tm("JSXFragment",e,t)}function n3(e,t){return tm("JSXOpeningFragment",e,t)}function n4(e,t){return tm("JSXClosingFragment",e,t)}function n5(e,t){return tm("Placeholder",e,t)}function n6(e,t){return tm("V8IntrinsicIdentifier",e,t)}function n8(e,t){return tm("ArgumentPlaceholder",e,t)}function n9(e,t){return tm("BindExpression",e,t)}function n7(e,t){return tm("ClassAccessorProperty",e,t)}function ie(e,t){return tm("Decorator",e,t)}function it(e,t){return tm("DoExpression",e,t)}function ir(e,t){return tm("ExportDefaultSpecifier",e,t)}function ii(e,t){return tm("ModuleExpression",e,t)}function is(e,t){return tm("TopicReference",e,t)}function ia(e,t){return tm("VoidPattern",e,t)}function io(e,t){return tm("TSParameterProperty",e,t)}function il(e,t){return tm("TSDeclareFunction",e,t)}function iu(e,t){return tm("TSDeclareMethod",e,t)}function ic(e,t){return tm("TSQualifiedName",e,t)}function ip(e,t){return tm("TSCallSignatureDeclaration",e,t)}function ih(e,t){return tm("TSConstructSignatureDeclaration",e,t)}function id(e,t){return tm("TSPropertySignature",e,t)}function im(e,t){return tm("TSMethodSignature",e,t)}function iy(e,t){return tm("TSIndexSignature",e,t)}function ig(e,t){return tm("TSAnyKeyword",e,t)}function ib(e,t){return tm("TSBooleanKeyword",e,t)}function ix(e,t){return tm("TSBigIntKeyword",e,t)}function iS(e,t){return tm("TSIntrinsicKeyword",e,t)}function iv(e,t){return tm("TSNeverKeyword",e,t)}function iT(e,t){return tm("TSNullKeyword",e,t)}function iE(e,t){return tm("TSNumberKeyword",e,t)}function ik(e,t){return tm("TSObjectKeyword",e,t)}function iw(e,t){return tm("TSStringKeyword",e,t)}function iA(e,t){return tm("TSSymbolKeyword",e,t)}function iP(e,t){return tm("TSUndefinedKeyword",e,t)}function iC(e,t){return tm("TSUnknownKeyword",e,t)}function iI(e,t){return tm("TSVoidKeyword",e,t)}function i_(e,t){return tm("TSThisType",e,t)}function iN(e,t){return tm("TSFunctionType",e,t)}function iL(e,t){return tm("TSConstructorType",e,t)}function iO(e,t){return tm("TSTypeReference",e,t)}function iD(e,t){return tm("TSTypePredicate",e,t)}function iM(e,t){return tm("TSTypeQuery",e,t)}function iF(e,t){return tm("TSTypeLiteral",e,t)}function ij(e,t){return tm("TSArrayType",e,t)}function iB(e,t){return tm("TSTupleType",e,t)}function iR(e,t){return tm("TSOptionalType",e,t)}function i$(e,t){return tm("TSRestType",e,t)}function iU(e,t){return tm("TSNamedTupleMember",e,t)}function iV(e,t){return tm("TSUnionType",e,t)}function iq(e,t){return tm("TSIntersectionType",e,t)}function iK(e,t){return tm("TSConditionalType",e,t)}function iJ(e,t){return tm("TSInferType",e,t)}function iz(e,t){return tm("TSParenthesizedType",e,t)}function iW(e,t){return tm("TSTypeOperator",e,t)}function iX(e,t){return tm("TSIndexedAccessType",e,t)}function iH(e,t){return tm("TSMappedType",e,t)}function iG(e,t){return tm("TSTemplateLiteralType",e,t)}function iY(e,t){return tm("TSLiteralType",e,t)}function iQ(e,t){return tm("TSClassImplements",e,t)}function iZ(e,t){return tm("TSInterfaceHeritage",e,t)}function i0(e,t){return tm("TSInterfaceDeclaration",e,t)}function i1(e,t){return tm("TSInterfaceBody",e,t)}function i2(e,t){return tm("TSTypeAliasDeclaration",e,t)}function i3(e,t){return tm("TSInstantiationExpression",e,t)}function i4(e,t){return tm("TSAsExpression",e,t)}function i5(e,t){return tm("TSSatisfiesExpression",e,t)}function i6(e,t){return tm("TSTypeAssertion",e,t)}function i8(e,t){return tm("TSEnumBody",e,t)}function i9(e,t){return tm("TSEnumDeclaration",e,t)}function i7(e,t){return tm("TSEnumMember",e,t)}function se(e,t){return tm("TSModuleDeclaration",e,t)}function st(e,t){return tm("TSModuleBlock",e,t)}function sr(e,t){return tm("TSImportType",e,t)}function sn(e,t){return tm("TSImportEqualsDeclaration",e,t)}function si(e,t){return tm("TSExternalModuleReference",e,t)}function ss(e,t){return tm("TSNonNullExpression",e,t)}function sa(e,t){return tm("TSExportAssignment",e,t)}function so(e,t){return tm("TSNamespaceExportDeclaration",e,t)}function sl(e,t){return tm("TSTypeAnnotation",e,t)}function su(e,t){return tm("TSTypeParameterInstantiation",e,t)}function sc(e,t){return tm("TSTypeParameterDeclaration",e,t)}function sp(e,t){return tm("TSTypeParameter",e,t)}function sh(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"ImportExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||tf(e,t)}function sd(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"MetaProperty":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"ImportExpression":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"ModuleExpression":case"TopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||tf(e,t)}function sf(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||tf(e,t)}function sm(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sy(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sg(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sb(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||tf(e,t)}function sx(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||tf(e,t)}function sS(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||tf(e,t)}function sv(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||tf(e,t)}function sT(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||tf(e,t)}function sE(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||tf(e,t)}function sk(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||tf(e,t)}function sw(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||tf(e,t)}function sA(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||tf(e,t)}function sP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||tf(e,t)}function sC(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||tf(e,t)}function sI(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function s_(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sN(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sL(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||tf(e,t)}function sO(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||tf(e,t)}function sD(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"ThisExpression":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sM(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sF(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||tf(e,t)}function sj(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||tf(e,t)}function sB(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||tf(e,t)}function sR(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassPrivateProperty":case"ClassAccessorProperty":break;default:return!1}return null==t||tf(e,t)}function s$(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||tf(e,t)}function sU(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||tf(e,t)}function sV(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||tf(e,t)}function sq(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||tf(e,t)}function sK(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||tf(e,t)}function sJ(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||tf(e,t)}function sz(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||tf(e,t)}function sW(){}function sX(){}function sH(){}function sG(){}function sY(){}function sQ(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||tf(e,t)}function sZ(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||tf(e,t)}function s0(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||tf(e,t)}function s1(e,t){if(!e)return!1;switch(e.type){case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||tf(e,t)}function s2(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||tf(e,t))}function s3(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSClassImplements":case"TSInterfaceHeritage":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return null==t||tf(e,t)}function s4(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||tf(e,t)}function s5(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSClassImplements":case"TSInterfaceHeritage":case"TSImportType":break;default:return!1}return null==t||tf(e,t)}function s6(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||tf(e,t)}function s8(e,t){return tg("isNumberLiteral","isNumericLiteral"),tm("NumberLiteral",e,t)}function s9(e,t){return tg("isRegexLiteral","isRegExpLiteral"),tm("RegexLiteral",e,t)}function s7(e,t){return tg("isRestProperty","isRestElement"),tm("RestProperty",e,t)}function ae(e,t){return tg("isSpreadProperty","isSpreadElement"),tm("SpreadProperty",e,t)}function at(e,t){return tg("isModuleDeclaration","isImportOrExportDeclaration"),sq(e,t)}function ar(e,t,r){var n;let i;if(!(tX(e)||rS(e)))return!1;let s=Array.isArray(t)?t:t.split("."),a=[];for(i=e;tX(n=i)||rS(n);i=i.object??i.meta)a.push(i.property);if(a.push(i),a.length<s.length||!r&&a.length>s.length)return!1;for(let e=0,t=a.length-1;e<s.length;e++,t--){let r,n=a[t];if(tR(n))r=n.name;else if(tV(n))r=n.value;else if(t6(n))r="this";else if(rk(n))r="super";else{if(!rR(n))return!1;r="#"+n.id.name}if(s[e]!==r)return!1}return!0}function an(e,t){let r=e.split(".");return e=>ar(e,r,t)}var ai=an("React.Component");function as(e,t){if(e===t)return!0;if(null==e||aC[t])return!1;let r=aI[t];return!!r?.includes(e)}function aa(e,t){if(e===t)return!0;let r=op[e];return!!r?.includes(t)}function ao(e,t,r){return!!t&&(as(t.type,e)?void 0===r||tf(t,r):!r&&"Placeholder"===t.type&&e in aI&&aa(t.expectedNode,e))}function al(e,t=!0){return"string"==typeof e&&!(t&&(ti.has(e)||to(e,!0)))&&function(e){let t=!0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);if((64512&i)==55296&&n+1<e.length){let t=e.charCodeAt(++n);(64512&t)==56320&&(i=65536+((1023&i)<<10)+(1023&t))}if(t){var r;if(t=!1,!((r=i)<65?36===r:r<=90||(r<97?95===r:r<=122||(r<=65535?r>=170&&e9.test(String.fromCharCode(r)):!isNaN(r)&&r<=1114111&&(e9.test(String.fromCodePoint(r))||tr(r,te))))))return!1}else if(!tn(i))return!1}return!t}(e)}var au=["consequent","body","alternate"],ac=["body","expressions"],ap=["left","init"],ah=["leadingComments","trailingComments","innerComments"],ad=["||","&&","??"],af=["++","--"],am=[">","<",">=","<="],ay=["==","===","!=","!=="],ag=[...ay,"in","instanceof"],ab=[...ag,...am],ax=["-","/","%","*","**","&","|",">>",">>>","<<","^"],aS=["+",...ax,...ab,"|>"],av=["=","+=",...ax.map(e=>e+"="),...ad.map(e=>e+"=")],aT=["delete","!"],aE=["+","-","~"],ak=["typeof"],aw=["void","throw",...aT,...aE,...ak],aA={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},aP={},aC={},aI={},a_={},aN={},aL={},aO={},aD={};function aM(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function aF(e,...t){return Object.assign(e,...t)}function aj(e){return{validate:e}}function aB(...e){return aj(aX(...e))}function aR(e){return{validate:e,optional:!0}}function a$(e,t){return{validate:e,default:t,optional:!1}}function aU(...e){return{validate:aX(...e),optional:!0}}function aV(e){return aZ(aG("array"),aJ(e))}function aq(...e){return aV(aX(...e))}function aK(...e){return aj(aq(...e))}function aJ(e){let t=oP;function r(r,n,i){if(!Array.isArray(i))return;let s=0,a={toString:()=>`${n}[${s}]`};for(;s<i.length;s++){let n=i[s];e(r,a,n),t(r,a,n)}}return r.each=e,r}function az(...e){function t(t,r,n){if(!e.includes(n))throw TypeError(`Property ${r} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`)}return t.oneOf=e,t}var aW=[];function aX(...e){let t=new Set;function r(r,n,i){let s=i?.type;if(null!=s){if(t.has(s))return void oP(r,n,i);if("Placeholder"===s){for(let t of e)if(ao(t,i))return void oP(r,n,i)}}throw TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s)}`)}return aW.push({types:e,set:t}),r.oneOfNodeTypes=e,r}function aH(...e){function t(t,r,n){let i=aM(n);for(let s of e)if(i===s||ao(s,n))return void oP(t,r,n);throw TypeError(`Property ${r} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(n?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function aG(e){function t(t,r,n){if(aM(n)!==e)throw TypeError(`Property ${r} expected type of ${e} but got ${aM(n)}`)}return t.type=e,t}function aY(e){let t=Object.keys(e);function r(r,n,i){let s=[];for(let n of t)try{oA(r,n,i[n],e[n])}catch(e){if(e instanceof TypeError){s.push(e.message);continue}throw e}if(s.length)throw TypeError(`Property ${n} of ${r.type} expected to have the following:
16
+ ${s.join("\n")}`)}return r.shapeOf=e,r}function aQ(){return function(e){let t=e;for(;e;){let{type:e}=t;if("OptionalCallExpression"===e){if(t.optional)return;t=t.callee;continue}if("OptionalMemberExpression"===e){if(t.optional)return;t=t.object;continue}break}throw TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${t?.type}`)}}function aZ(...e){function t(...r){for(let t of e)t(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var a0=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),a1=new Set(["default","optional","deprecated","validate"]),a2={};function a3(...e){return(t,r={})=>{let n=r.aliases;n||(r.inherits&&(n=a2[r.inherits].aliases?.slice()),r.aliases=n??=[]);let i=e.filter(e=>!n.includes(e));n.unshift(...i),a4(t,r)}}function a4(e,t={}){let r=t.inherits&&a2[t.inherits]||{},n=t.visitor||r.visitor||[],i=t.aliases||r.aliases||[],s=t.builder||r.builder||t.visitor||[],a=t.fields;if(!a&&(a={},r.fields))for(let e of Object.getOwnPropertyNames(r.fields)){let t=r.fields[e],n=t.default;if(Array.isArray(n)?n.length>0:n&&"object"==typeof n)throw Error("field defaults can only be primitives or empty arrays currently");a[e]={default:Array.isArray(n)?[]:n,optional:t.optional,deprecated:t.deprecated,validate:t.validate}}for(let r of Object.keys(t))if(!a0.has(r))throw Error(`Unknown type option "${r}" on ${e}`);for(let r of(t.deprecatedAlias&&(aL[t.deprecatedAlias]=e),n.concat(s)))a[r]=a[r]||{};for(let t of Object.keys(a)){let r=a[t];for(let n of(null===r.default&&(r.optional??=!0),void 0===r.default?(r.default=null,r.optional??=!1):r.validate||null==r.default||(r.validate=aG(aM(r.default))),Object.keys(r)))if(!a1.has(n))throw Error(`Unknown field key "${n}" on ${e}.${t}`)}aP[e]=t.visitor=n,aN[e]=t.builder=s,a_[e]=t.fields=a,aC[e]=t.aliases=i,i.forEach(t=>{aI[t]=aI[t]||[],aI[t].push(e)}),t.validate&&(aO[e]=t.validate),t.unionShape&&(aD[e]=t.unionShape),a2[e]=t}var a5=Object.defineProperty({__proto__:null,ALIAS_KEYS:aC,BUILDER_KEYS:aN,DEPRECATED_KEYS:aL,FLIPPED_ALIAS_KEYS:aI,NODE_FIELDS:a_,NODE_PARENT_VALIDATIONS:aO,NODE_UNION_SHAPES__PRIVATE:aD,VISITOR_KEYS:aP,allExpandedTypes:aW,arrayOf:aV,arrayOfType:aq,assertEach:aJ,assertNodeOrValueType:aH,assertNodeType:aX,assertOneOf:az,assertOptionalChainStart:aQ,assertShape:aY,assertValueType:aG,chain:aZ,combine:aF,default:a4,defineAliasedType:a3,validate:aj,validateArrayOfType:aK,validateDefault:a$,validateOptional:aR,validateOptionalType:aU,validateType:aB},Symbol.toStringTag,{value:"Module"}),a6=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:aX("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}}),a8={unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:aX("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:aX("Identifier","PrivateName")}}}]}},a9=a3("Standardized");a9("ArrayExpression",{fields:{elements:{validate:aV(aH("null","Expression","SpreadElement")),default:void 0}},visitor:["elements"],aliases:["Expression"]}),a9("AssignmentExpression",{fields:{operator:{validate:aF((u=az(...av),c=az("="),function(e,t,r){(ao("Pattern",e.left)?c:u)(e,t,r)}),{oneOf:av})},left:{validate:aX("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:aX("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),a9("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:az(...aS)},left:{validate:(p=aX("Expression"),h=aX("Expression","PrivateName"),aF(function(e,t,r){("in"===e.operator?h:p)(e,t,r)},{oneOfNodeTypes:["Expression","PrivateName"]}))},right:{validate:aX("Expression")}},unionShape:{discriminator:"operator",shapes:[{name:"in",value:["in"],properties:{left:{validate:aX("Expression","PrivateName")}}},{name:"notIn",value:aS.filter(e=>"in"!==e),properties:{left:{validate:aX("Expression")}}}]},visitor:["left","right"],aliases:["Binary","Expression"]}),a9("InterpreterDirective",{builder:["value"],fields:{value:{validate:aG("string")}}}),a9("Directive",{visitor:["value"],fields:{value:{validate:aX("DirectiveLiteral")}}}),a9("DirectiveLiteral",{builder:["value"],fields:{value:{validate:aG("string")}}}),a9("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:aq("Directive"),default:[]},body:aK("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),a9("BreakStatement",{visitor:["label"],fields:{label:{validate:aX("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a9("CallExpression",{visitor:["callee","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:aX("Expression","Super","Import","V8IntrinsicIdentifier")},arguments:aK("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a9("CatchClause",{visitor:["param","body"],fields:{param:{validate:aX("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:aX("BlockStatement")}},aliases:["Scopable","BlockParent"]}),a9("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:aX("Expression")},consequent:{validate:aX("Expression")},alternate:{validate:aX("Expression")}},aliases:["Expression","Conditional"]}),a9("ContinueStatement",{visitor:["label"],fields:{label:{validate:aX("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),a9("DebuggerStatement",{aliases:["Statement"]}),a9("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:aX("Expression")},body:{validate:aX("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),a9("EmptyStatement",{aliases:["Statement"]}),a9("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:aX("Expression")}},aliases:["Statement","ExpressionWrapper"]}),a9("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:aX("Program")},comments:{validate:aJ(aX("CommentBlock","CommentLine")),optional:!0},tokens:{validate:aJ(Object.assign(()=>{},{type:"any"})),optional:!0}}}),a9("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:aX("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:aX("Expression")},body:{validate:aX("Statement")}}}),a9("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:aX("VariableDeclaration","Expression"),optional:!0},test:{validate:aX("Expression"),optional:!0},update:{validate:aX("Expression"),optional:!0},body:{validate:aX("Statement")}}});var a7=()=>({params:aK("FunctionParameter"),generator:{default:!1},async:{default:!1}}),oe=()=>({returnType:{validate:aX("TypeAnnotation","TSTypeAnnotation"),optional:!0},typeParameters:{validate:aX("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0}}),ot=()=>({...a7(),declare:{validate:aG("boolean"),optional:!0},id:{validate:aX("Identifier"),optional:!0}});a9("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:{...ot(),...oe(),body:{validate:aX("BlockStatement")},predicate:{validate:aX("FlowPredicate"),optional:!0}},aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:(d=aX("Identifier"),function(e,t,r){ao("ExportDefaultDeclaration",e)||d(r,"id",r.id)})}),a9("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{...a7(),...oe(),id:{validate:aX("Identifier"),optional:!0},body:{validate:aX("BlockStatement")},predicate:{validate:aX("FlowPredicate"),optional:!0}}});var or=()=>({typeAnnotation:{validate:aX("TypeAnnotation","TSTypeAnnotation"),optional:!0},optional:{validate:aG("boolean"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0}});a9("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:{...or(),name:{validate:aZ(aG("string"),aF(function(e,t,r){if(!al(r,!1))throw TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}},validate:function(e,t,r){var n;let i=/\.(\w+)$/.exec(t.toString());if(!i)return;let[,s]=i,a={computed:!1};if("property"===s){if(ao("MemberExpression",e,a)||ao("OptionalMemberExpression",e,a))return}else if("key"===s){if(ao("Property",e,a)||ao("Method",e,a))return}else if("exported"===s){if(ao("ExportSpecifier",e))return}else if("imported"===s){if(ao("ImportSpecifier",e,{imported:r}))return}else if("meta"===s&&ao("MetaProperty",e,{meta:r}))return;if(n=r.name,(ti.has(n)||ta(r.name,!1))&&"this"!==r.name)throw TypeError(`"${r.name}" is not a valid identifier`)}}),a9("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:aX("Expression")},consequent:{validate:aX("Statement")},alternate:{optional:!0,validate:aX("Statement")}}}),a9("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:aX("Identifier")},body:{validate:aX("Statement")}}}),a9("StringLiteral",{builder:["value"],fields:{value:{validate:aG("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a9("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:aZ(aG("number"),aF(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let e=Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`);if(!Error().stack.includes("regenerator"))throw e}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),a9("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),a9("BooleanLiteral",{builder:["value"],fields:{value:{validate:aG("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a9("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:aG("string")},flags:{validate:aZ(aG("string"),aF(function(e,t,r){let n=/[^dgimsuvy]/.exec(r);if(n)throw TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}}),a9("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:az(...ad)},left:{validate:aX("Expression")},right:{validate:aX("Expression")}}}),a9("MemberExpression",{builder:["object","property","computed"],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],...a8,fields:{object:{validate:aX("Expression","Super")},property:{validate:(f=aX("Identifier","PrivateName"),m=aX("Expression"),aF(function(e,t,r){(e.computed?m:f)(e,t,r)},{oneOfNodeTypes:["Expression","Identifier","PrivateName"]}))},computed:{default:!1}}}),a9("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:aX("Expression","V8IntrinsicIdentifier")},arguments:aK("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a9("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:az("script","module"),default:"script"},interpreter:{validate:aX("InterpreterDirective"),default:null,optional:!0},directives:{validate:aq("Directive"),default:[]},body:aK("Statement")},aliases:["Scopable","BlockParent","Block"]}),a9("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:aK("ObjectMethod","ObjectProperty","SpreadElement")}}),a9("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],...a6(),fields:{...a7(),...oe(),kind:{validate:az("method","get","set")},computed:{default:!1},key:{validate:(y=aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),g=aX("Expression"),aF(function(e,t,r){(e.computed?g:y)(e,t,r)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"]}))},decorators:{validate:aq("Decorator"),optional:!0},body:{validate:aX("BlockStatement")}},aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),a9("ObjectProperty",{builder:["key","value","computed","shorthand"],...a6(!0),fields:{computed:{default:!1},key:{validate:(b=aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),x=aX("Expression"),aF(function(e,t,r){(e.computed?x:b)(e,t,r)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"]}))},value:{validate:aX("Expression","PatternLike")},shorthand:{validate:aZ(aG("boolean"),aF(function(e,t,r){if(r){if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!ao("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})),default:!1},decorators:{validate:aq("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:(S=aX("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),v=aX("Expression"),function(e,t,r){(ao("ObjectPattern",e)?S:v)(r,"value",r.value)})}),a9("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike"],deprecatedAlias:"RestProperty",fields:{...or(),argument:{validate:aX("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}},validate:function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw Error("Internal Babel error: malformed key.");let[,n,i]=r;if(e[n].length>+i+1)throw TypeError(`RestElement must be last element of ${n}`)}}),a9("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:aX("Expression"),optional:!0}}}),a9("SequenceExpression",{visitor:["expressions"],fields:{expressions:aK("Expression")},aliases:["Expression"]}),a9("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:aX("Expression")}}}),a9("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:aX("Expression"),optional:!0},consequent:aK("Statement")}}),a9("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:aX("Expression")},cases:aK("SwitchCase")}}),a9("ThisExpression",{aliases:["Expression","TSEntityName"]}),a9("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:aX("Expression")}}}),a9("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:aZ(aX("BlockStatement"),aF(function(e){if(!e.handler&&!e.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:aX("CatchClause")},finalizer:{optional:!0,validate:aX("BlockStatement")}}}),a9("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:aX("Expression")},operator:{validate:az(...aw)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),a9("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:aX("Identifier","MemberExpression")},operator:{validate:az(...af)}},visitor:["argument"],aliases:["Expression"]}),a9("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:aG("boolean"),optional:!0},kind:{validate:az("var","let","const","using","await using")},declarations:aK("VariableDeclarator")},validate:(T=aX("Identifier","Placeholder"),E=aX("Identifier","ArrayPattern","ObjectPattern","Placeholder"),k=aX("Identifier","VoidPattern","Placeholder"),function(e,t,r){let{kind:n,declarations:i}=r,s=ao("ForXStatement",e,{left:r});if(s&&1!==i.length)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`);for(let e of i)"const"===n||"let"===n||"var"===n?s||e.init?E(e,"id",e.id):T(e,"id",e.id):k(e,"id",e.id)})}),a9("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:aX("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:!0,validate:aG("boolean")},init:{optional:!0,validate:aX("Expression")}}}),a9("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:aX("Expression")},body:{validate:aX("Statement")}}}),a9("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:aX("Expression")},body:{validate:aX("Statement")}}}),a9("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike"],fields:{...or(),left:{validate:aX("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:aX("Expression")}}}),a9("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:{...or(),elements:{validate:aZ(aG("array"),aJ(aH("null","PatternLike")))}}}),a9("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{...a7(),generator:{default:null,optional:!0,validate:aF((e,t,r)=>{if(r)throw TypeError("ArrowFunctionExpression cannot be a generator")},{type:"boolean"})},...oe(),expression:{optional:!0,validate:aG("boolean")},body:{validate:aX("BlockStatement","Expression")},predicate:{validate:aX("FlowPredicate"),optional:!0}}}),a9("ClassBody",{visitor:["body"],fields:{body:aK("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),a9("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:aX("Identifier"),optional:!0},typeParameters:{validate:aX("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:aX("ClassBody")},superClass:{optional:!0,validate:aX("Expression")},superTypeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:aq("TSClassImplements","ClassImplements"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0},mixins:{validate:aX("InterfaceExtends"),optional:!0}}}),a9("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:aX("Identifier"),optional:!0},typeParameters:{validate:aX("TypeParameterDeclaration","TSTypeParameterDeclaration"),optional:!0},body:{validate:aX("ClassBody")},superClass:{optional:!0,validate:aX("Expression")},superTypeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:aq("TSClassImplements","ClassImplements"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0},mixins:{validate:aX("InterfaceExtends"),optional:!0},declare:{validate:aG("boolean"),optional:!0},abstract:{validate:aG("boolean"),optional:!0}},validate:(w=aX("Identifier"),function(e,t,r){ao("ExportDefaultDeclaration",e)||w(r,"id",r.id)})});var on={attributes:{optional:!0,validate:aq("ImportAttribute")}};a9("ExportAllDeclaration",{visitor:["source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:aX("StringLiteral")},exportKind:aR(az("type","value")),...on}}),a9("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:aB("FunctionDeclaration","ClassDeclaration","Expression","TSDeclareFunction","TSInterfaceDeclaration","EnumDeclaration"),exportKind:aR(az("value"))}}),a9("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:aZ(aX("Declaration"),aF(function(e,t,r){if(r&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["VariableDeclaration","FunctionDeclaration","ClassDeclaration","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSTypeAliasDeclaration","EnumDeclaration","InterfaceDeclaration","OpaqueType","TypeAlias"]}))},...on,specifiers:{default:[],validate:aV((A=aX("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),P=aX("ExportSpecifier"),aF(function(e,t,r){(e.source?A:P)(e,t,r)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})))},source:{validate:aX("StringLiteral"),optional:!0},exportKind:aR(az("type","value"))}}),a9("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:aX("Identifier","StringLiteral")},exported:{validate:aX("Identifier","StringLiteral")},exportKind:{validate:az("type","value"),optional:!0}}}),a9("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(C=aX("VariableDeclaration"),I=aX("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"),aF(function(e,t,r){ao("VariableDeclaration",r)?C(e,t,r):I(e,t,r)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]}))},right:{validate:aX("Expression")},body:{validate:aX("Statement")},await:{default:!1}}}),a9("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{...on,module:{optional:!0,validate:aG("boolean")},phase:{default:null,validate:az("source","defer")},specifiers:aK("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:aX("StringLiteral")},importKind:{validate:az("type","typeof","value"),optional:!0}}}),a9("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:aX("Identifier")}}}),a9("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:aX("Identifier")}}}),a9("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:aX("Identifier")},imported:{validate:aX("Identifier","StringLiteral")},importKind:{validate:az("type","typeof","value"),optional:!0}}}),a9("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:aZ(aX("Identifier"),aF(function(e,t,r){let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta"}if(!ao("Identifier",e.property,{name:n}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:aX("Identifier")}}});var oi=()=>{let e,t;return{abstract:{validate:aG("boolean"),default:!1,optional:!0},accessibility:{validate:az("public","private","protected"),optional:!0},static:{default:!1},override:{optional:!0,validate:aG("boolean"),default:!1},computed:{default:!1},optional:{validate:aG("boolean"),optional:!0},key:{validate:aZ((e=aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=aX("Expression","PrivateName"),function(r,n,i){(r.computed?t:e)(r,n,i)}),aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))}}},os=(e=!0)=>({...a7(),...oi(),params:aK("FunctionParameter","TSParameterProperty"),kind:{validate:az("get","set","method","constructor"),default:"method"},access:{validate:aZ(aG("string"),az("public","private","protected")),optional:!0},...e?{decorators:{validate:aq("Decorator"),optional:!0}}:{}});a9("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],...a6(),fields:{...os(),...oe(),body:{validate:aX("BlockStatement")}}}),a9("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:{...or(),properties:aK("RestElement","ObjectProperty")}}),a9("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:aX("Expression")}}}),a9("Super"),a9("TaggedTemplateExpression",{visitor:["tag","typeArguments","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:aX("Expression")},quasi:{validate:aX("TemplateLiteral")},typeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a9("TemplateElement",{builder:["value","tail"],fields:{value:{validate:aZ(aY({raw:{validate:aG("string")},cooked:{validate:aG("string"),optional:!0}}),function(e){let t=e.value.raw,r=!1,n=()=>{throw Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:s}=function(e,t,r,n,i,s){let a=r,o=n,l=i,u="",c=null,p=r,{length:h}=t;for(;;){var d,f,m,y;if(r>=h){s.unterminated(a,o,l),u+=t.slice(p,r);break}let g=t.charCodeAt(r);if(d=e,f=g,m=t,y=r,"template"===d?96===f||36===f&&123===m.charCodeAt(y+1):f===("double"===d?34:39)){u+=t.slice(p,r);break}if(92===g){u+=t.slice(p,r);let a=function(e,t,r,n,i,s){let a=!i;t++;let o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return{code:i,pos:t}=td(e,t,r,n,2,!1,a,s),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=function(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=td(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,null!==a&&a>1114111)if(!i)return{code:null,pos:t};else s.invalidCodePoint(t,r,n)}else({code:a,pos:t}=td(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}(e,t,r,n,a,s),o(null===i?null:String.fromCodePoint(i))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let a=t-1,l=/^[0-7]+/.exec(e.slice(a,t+2))[0],u=parseInt(l,8);u>255&&(u=parseInt(l=l.slice(0,-1),8)),t+=l.length-1;let c=e.charCodeAt(t);if("0"!==l||56===c||57===c)if(i)return o(null);else s.strictNumericEscape(a,r,n);return o(String.fromCharCode(u))}return o(String.fromCharCode(l))}}(t,r,n,i,"template"===e,s);null!==a.ch||c?u+=a.ch:c={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),p=r}else 8232===g||8233===g?(++r,++i,n=r):10===g||13===g?"template"===e?(u+=t.slice(p,r)+"\n",++r,13===g&&10===t.charCodeAt(r)&&++r,++i,p=n=r):s.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:i}}("template",t,0,0,0,{unterminated(){r=!0},strictNumericEscape:n,invalidEscapeSequence:n,numericSeparatorInEscapeSequence:n,unexpectedNumericSeparator:n,invalidDigit:n,invalidCodePoint:n});if(!r)throw Error("Invalid raw");e.value.cooked=s?null:i})},tail:{default:!1}}}),a9("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:aK("TemplateElement"),expressions:{validate:aZ(aG("array"),aJ(aX("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
17
+ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}}),a9("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:aZ(aG("boolean"),aF(function(e,t,r){if(r&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:aX("Expression")}}}),a9("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:aX("Expression")}}}),a9("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:az("source","defer")},source:{validate:aX("Expression")},options:{validate:aX("Expression"),optional:!0}}}),a9("Import"),a9("BigIntLiteral",{builder:["value"],fields:{value:{validate:aG("bigint")}},aliases:["Expression","Pureish","Literal","Immutable"]}),a9("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:aX("Identifier","StringLiteral")}}}),a9("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],...a8,fields:{object:{validate:aX("Expression")},property:{validate:(_=aX("Identifier","PrivateName"),N=aX("Expression"),aF(function(e,t,r){(e.computed?N:_)(e,t,r)},{oneOfNodeTypes:["Expression","PrivateName"]}))},computed:{default:!1},optional:{validate:aZ(aG("boolean"),aQ())}}}),a9("OptionalCallExpression",{visitor:["callee","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:aX("Expression")},arguments:aK("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:aZ(aG("boolean"),aQ())},typeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),a9("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],...a6(),fields:{...oi(),value:{validate:aX("Expression"),optional:!0},definite:{validate:aG("boolean"),optional:!0},typeAnnotation:{validate:aX("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0},readonly:{validate:aG("boolean"),optional:!0},declare:{validate:aG("boolean"),optional:!0},variance:{validate:aX("Variance"),optional:!0}}}),a9("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:aX("PrivateName")},value:{validate:aX("Expression"),optional:!0},typeAnnotation:{validate:aX("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0},static:{validate:aG("boolean"),default:!1},readonly:{validate:aG("boolean"),optional:!0},optional:{validate:aG("boolean"),optional:!0},definite:{validate:aG("boolean"),optional:!0},variance:{validate:aX("Variance"),optional:!0}}}),a9("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:{...os(),...oe(),kind:{validate:az("get","set","method"),default:"method"},key:{validate:aX("PrivateName")},body:{validate:aX("BlockStatement")}}}),a9("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:aX("Identifier")}}}),a9("StaticBlock",{visitor:["body"],fields:{body:aK("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),a9("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:aX("Identifier","StringLiteral")},value:{validate:aX("StringLiteral")}}});var oa=a3("Flow"),oo=e=>{let t="DeclareClass"===e;oa(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier"),typeParameters:aU("TypeParameterDeclaration"),extends:aR(aq("InterfaceExtends")),...t?{mixins:aR(aq("InterfaceExtends")),implements:aR(aq("ClassImplements"))}:{},body:aB("ObjectTypeAnnotation")}})};oa("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:aB("FlowType")}}),oa("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aj(aG("boolean"))}}),oa("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("ClassImplements",{visitor:["id","typeParameters"],fields:{id:aB("Identifier"),typeParameters:aU("TypeParameterInstantiation")}}),oo("DeclareClass"),oa("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier"),predicate:aU("FlowPredicate")}}),oo("DeclareInterface"),oa("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier","StringLiteral"),body:aB("BlockStatement"),kind:aR(az("CommonJS","ES"))}}),oa("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:aB("TypeAnnotation")}}),oa("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier"),typeParameters:aU("TypeParameterDeclaration"),right:aB("FlowType")}}),oa("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier"),typeParameters:aU("TypeParameterDeclaration"),supertype:aU("FlowType"),impltype:aU("FlowType")}}),oa("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier")}}),oa("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:aU("Flow"),specifiers:aR(aq("ExportSpecifier","ExportNamespaceSpecifier")),source:aU("StringLiteral"),default:aR(aG("boolean")),...on}}),oa("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:aB("StringLiteral"),exportKind:aR(az("type","value")),...on}}),oa("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:aB("Expression")}}),oa("ExistsTypeAnnotation",{aliases:["FlowType"]}),oa("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:aU("TypeParameterDeclaration"),params:aK("FunctionTypeParam"),rest:aU("FunctionTypeParam"),this:aU("FunctionTypeParam"),returnType:aB("FlowType")}}),oa("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:aU("Identifier"),typeAnnotation:aB("FlowType"),optional:aR(aG("boolean"))}}),oa("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:aB("Identifier","QualifiedTypeIdentifier"),typeParameters:aU("TypeParameterInstantiation")}}),oa("InferredPredicate",{aliases:["FlowPredicate"]}),oa("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:aB("Identifier","QualifiedTypeIdentifier"),typeParameters:aU("TypeParameterInstantiation")}}),oo("InterfaceDeclaration"),oa("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:aR(aq("InterfaceExtends")),body:aB("ObjectTypeAnnotation")}}),oa("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:aj(aq("FlowType"))}}),oa("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:aB("FlowType")}}),oa("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aj(aG("number"))}}),oa("BigIntLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aj(aG("bigint"))}}),oa("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:aj(aq("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:aq("ObjectTypeIndexer"),optional:!1,default:[]},callProperties:{validate:aq("ObjectTypeCallProperty"),optional:!1,default:[]},internalSlots:{validate:aq("ObjectTypeInternalSlot"),optional:!1,default:[]},exact:{validate:aG("boolean"),default:!1},inexact:aR(aG("boolean"))}}),oa("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:aB("Identifier"),value:aB("FlowType"),optional:aj(aG("boolean")),static:aj(aG("boolean")),method:aj(aG("boolean"))}}),oa("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:aB("FlowType"),static:a$(aG("boolean"),!1)}}),oa("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:aU("Identifier"),key:aB("FlowType"),value:aB("FlowType"),static:a$(aG("boolean"),!1),variance:aU("Variance")}}),oa("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:aB("Identifier","StringLiteral","NumericLiteral"),value:aB("FlowType"),kind:{validate:az("init","get","set"),default:"init",optional:!1},static:a$(aG("boolean"),!1),proto:a$(aG("boolean"),!1),optional:a$(aG("boolean"),!1),variance:aU("Variance"),method:a$(aG("boolean"),!1)}}),oa("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:aB("FlowType")}}),oa("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier"),typeParameters:aU("TypeParameterDeclaration"),supertype:aU("FlowType"),impltype:aB("FlowType")}}),oa("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:aB("Identifier"),qualification:aB("Identifier","QualifiedTypeIdentifier")}}),oa("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:aj(aG("string"))}}),oa("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:aj(aq("FlowType"))}}),oa("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:aB("FlowType","Identifier")}}),oa("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:aB("Identifier"),typeParameters:aU("TypeParameterDeclaration"),right:aB("FlowType")}}),oa("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:aB("FlowType","Identifier")}}),oa("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:aB("Expression"),typeAnnotation:aB("TypeAnnotation")}}),oa("TypeParameter",{builder:["name","bound","default","variance"],visitor:["bound","default","variance"],fields:{name:aj(aG("string")),bound:aU("TypeAnnotation"),default:aU("FlowType"),variance:aU("Variance")}}),oa("TypeParameterDeclaration",{visitor:["params"],fields:{params:aj(aq("TypeParameter"))}}),oa("TypeParameterInstantiation",{visitor:["params"],fields:{params:aj(aq("FlowType"))}}),oa("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:aj(aq("FlowType"))}}),oa("Variance",{builder:["kind"],fields:{kind:aj(az("minus","plus"))}}),oa("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),oa("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:aB("Identifier"),body:aB("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});var ol={explicitType:a$(aG("boolean"),!1),hasUnknownMembers:a$(aG("boolean"),!1)};oa("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{...ol,members:aK("EnumBooleanMember")}}),oa("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{...ol,members:aK("EnumNumberMember")}}),oa("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{...ol,members:aK("EnumStringMember","EnumDefaultedMember")}}),oa("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:aK("EnumDefaultedMember"),hasUnknownMembers:a$(aG("boolean"),!1)}}),oa("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:aB("Identifier"),init:aB("BooleanLiteral")}}),oa("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:aB("Identifier"),init:aB("NumericLiteral")}}),oa("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:aB("Identifier"),init:aB("StringLiteral")}}),oa("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:aB("Identifier")}}),oa("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:aB("FlowType"),indexType:aB("FlowType")}}),oa("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:aB("FlowType"),indexType:aB("FlowType"),optional:a$(aG("boolean"),!1)}});var ou=a3("JSX");ou("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:aX("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:aX("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),ou("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:aX("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),ou("JSXElement",{builder:["openingElement","closingElement","children"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:{openingElement:{validate:aX("JSXOpeningElement")},closingElement:{optional:!0,validate:aX("JSXClosingElement")},children:aK("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),ou("JSXEmptyExpression",{}),ou("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:aX("Expression","JSXEmptyExpression")}}}),ou("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:aX("Expression")}}}),ou("JSXIdentifier",{builder:["name"],fields:{name:{validate:aG("string")}}}),ou("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:aX("JSXMemberExpression","JSXIdentifier")},property:{validate:aX("JSXIdentifier")}}}),ou("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:aX("JSXIdentifier")},name:{validate:aX("JSXIdentifier")}}}),ou("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeArguments","attributes"],aliases:["Immutable"],fields:{name:{validate:aX("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:aK("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:aX("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),ou("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:aX("Expression")}}}),ou("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:aG("string")}}}),ou("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:aX("JSXOpeningFragment")},closingFragment:{validate:aX("JSXClosingFragment")},children:aK("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),ou("JSXOpeningFragment",{aliases:["Immutable"]}),ou("JSXClosingFragment",{aliases:["Immutable"]});var oc=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],op={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of oc){let t=aC[e];t?.length&&(op[e]=t)}var oh={};Object.keys(op).forEach(e=>{op[e].forEach(t=>{Object.hasOwn(oh,t)||(oh[t]=[]),oh[t].push(e)})});var od=a3("Miscellaneous");od("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:aX("Identifier")},expectedNode:{validate:az(...oc)},...or()}}),od("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:aG("string")}}}),a4("ArgumentPlaceholder",{}),a4("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{object:{validate:aH("null","Expression")},callee:{validate:aX("Expression")}}}),a4("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],...a6(!0),fields:{...oi(),key:{validate:aZ((L=aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),O=aX("Expression"),function(e,t,r){(e.computed?O:L)(e,t,r)}),aX("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:aX("Expression"),optional:!0},definite:{validate:aG("boolean"),optional:!0},typeAnnotation:{validate:aX("TypeAnnotation","TSTypeAnnotation"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0},readonly:{validate:aG("boolean"),optional:!0},declare:{validate:aG("boolean"),optional:!0},variance:{validate:aX("Variance"),optional:!0}}}),a4("Decorator",{visitor:["expression"],fields:{expression:{validate:aX("Expression")}}}),a4("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:aX("BlockStatement")},async:{validate:aG("boolean"),default:!1}}}),a4("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:aX("Identifier")}}}),a4("ModuleExpression",{visitor:["body"],fields:{body:{validate:aX("Program")}},aliases:["Expression"]}),a4("TopicReference",{aliases:["Expression"]}),a4("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]});var of=a3("TypeScript"),om=aG("boolean"),oy=()=>({returnType:{validate:aX("TSTypeAnnotation"),optional:!0},typeParameters:{validate:aX("TSTypeParameterDeclaration"),optional:!0}});of("TSParameterProperty",{aliases:[],visitor:["parameter"],fields:{accessibility:{validate:az("public","private","protected"),optional:!0},readonly:{validate:aG("boolean"),optional:!0},parameter:{validate:aX("Identifier","AssignmentPattern")},override:{validate:aG("boolean"),optional:!0},decorators:{validate:aq("Decorator"),optional:!0}}}),of("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:{...ot(),...oy()}}),of("TSDeclareMethod",{visitor:["key","typeParameters","params","returnType"],...a6(!0),fields:{...os(!1),...oy()}}),of("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:aB("TSEntityName"),right:aB("Identifier")}});var og=()=>({typeParameters:aU("TSTypeParameterDeclaration"),params:aK("ArrayPattern","Identifier","ObjectPattern","RestElement"),returnType:aU("TSTypeAnnotation")}),ob={aliases:["TSTypeElement"],visitor:["typeParameters","params","returnType"],fields:og()};of("TSCallSignatureDeclaration",ob),of("TSConstructSignatureDeclaration",ob);var ox=()=>({key:aB("Expression"),computed:{default:!1},optional:aR(om)});for(let e of(of("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:{...ox(),readonly:aR(om),typeAnnotation:aU("TSTypeAnnotation"),kind:{optional:!0,validate:az("get","set")}}}),of("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","params","returnType"],fields:{...og(),...ox(),kind:{validate:az("method","get","set"),default:"method"}}}),of("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:aR(om),static:aR(om),parameters:aK("Identifier"),typeAnnotation:aU("TSTypeAnnotation")}}),["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"]))of(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});of("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var oS={aliases:["TSType"],visitor:["typeParameters","params","returnType"]};of("TSFunctionType",{...oS,fields:og()}),of("TSConstructorType",{...oS,fields:{...og(),abstract:aR(om)}}),of("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeArguments"],fields:{typeName:aB("TSEntityName"),typeArguments:aU("TSTypeParameterInstantiation")}}),of("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:aB("Identifier","TSThisType"),typeAnnotation:aU("TSTypeAnnotation"),asserts:aR(om)}}),of("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeArguments"],fields:{exprName:aB("TSEntityName","TSImportType"),typeArguments:aU("TSTypeParameterInstantiation")}}),of("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:aK("TSTypeElement")}}),of("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:aB("TSType")}}),of("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:aK("TSType","TSNamedTupleMember")}}),of("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:aB("TSType")}}),of("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:aB("TSType")}}),of("TSNamedTupleMember",{aliases:["TSType"],visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:aB("Identifier"),optional:{validate:om,default:!1},elementType:aB("TSType")}});var ov={aliases:["TSType"],visitor:["types"],fields:{types:aK("TSType")}};of("TSUnionType",ov),of("TSIntersectionType",ov),of("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:aB("TSType"),extendsType:aB("TSType"),trueType:aB("TSType"),falseType:aB("TSType")}}),of("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:aB("TSTypeParameter")}}),of("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:aB("TSType")}}),of("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:az("keyof","readonly","unique"),default:void 0},typeAnnotation:aB("TSType")}}),of("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:aB("TSType"),indexType:aB("TSType")}}),of("TSMappedType",{aliases:["TSType"],visitor:["key","constraint","nameType","typeAnnotation"],builder:["key","constraint","nameType","typeAnnotation"],fields:{key:aB("Identifier"),constraint:aB("TSType"),readonly:aR(az(!0,!1,"+","-")),optional:aR(az(!0,!1,"+","-")),typeAnnotation:aU("TSType"),nameType:aU("TSType")}}),of("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:aK("TemplateElement"),types:{validate:aZ(aG("array"),aJ(aX("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
18
+ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}}),of("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(D=aX("NumericLiteral","BigIntLiteral"),M=az("-"),F=aX("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),aF(function(e,t,r){ao("UnaryExpression",r)?(M(r,"operator",r.operator),D(r,"argument",r.argument)):F(e,t,r)},{oneOfNodeTypes:["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"]}))}}}),of("TSClassImplements",{aliases:["TSType"],visitor:["expression","typeArguments"],fields:{expression:aB("Expression"),typeArguments:aU("TSTypeParameterInstantiation")}}),of("TSInterfaceHeritage",{aliases:["TSType"],visitor:["expression","typeArguments"],fields:{expression:aB("Expression"),typeArguments:aU("TSTypeParameterInstantiation")}}),of("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:aR(om),id:aB("Identifier"),typeParameters:aU("TSTypeParameterDeclaration"),extends:aR(aq("TSInterfaceHeritage")),body:aB("TSInterfaceBody")}}),of("TSInterfaceBody",{visitor:["body"],fields:{body:aK("TSTypeElement")}}),of("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:aR(om),id:aB("Identifier"),typeParameters:aU("TSTypeParameterDeclaration"),typeAnnotation:aB("TSType")}}),of("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeArguments"],fields:{expression:aB("Expression"),typeArguments:aU("TSTypeParameterInstantiation")}});var oT={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:aB("Expression"),typeAnnotation:aB("TSType")}};of("TSAsExpression",oT),of("TSSatisfiesExpression",oT),of("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:aB("TSType"),expression:aB("Expression")}}),of("TSEnumBody",{visitor:["members"],fields:{members:aK("TSEnumMember")}}),of("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:aR(om),const:aR(om),id:aB("Identifier"),body:aB("TSEnumBody")}}),of("TSEnumMember",{visitor:["id","initializer"],fields:{id:aB("Identifier","StringLiteral"),initializer:aU("Expression")}}),of("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{kind:{validate:az("global","namespace","module"),default:"namespace"},declare:aR(om),id:{validate:aZ(aX("TSEntityName","StringLiteral"),aF(function(e,t,r){if("namespace"===e.kind&&ao("StringLiteral",r))throw TypeError("TSModuleDeclaration of kind 'namespace' cannot have a StringLiteral id.")},{oneOfNodeTypes:["TSEntityName","StringLiteral"]}))},body:aB("TSModuleBlock")}}),of("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:aK("Statement")}}),of("TSImportType",{aliases:["TSType"],builder:["source","qualifier","typeArguments"],visitor:["source","options","qualifier","typeArguments"],fields:{source:aB("StringLiteral"),qualifier:aU("TSEntityName"),typeArguments:aU("TSTypeParameterInstantiation"),options:{validate:aX("ObjectExpression"),optional:!0}}}),of("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:{id:aB("Identifier"),moduleReference:aB("TSEntityName","TSExternalModuleReference"),importKind:{validate:az("type","value"),optional:!0}}}),of("TSExternalModuleReference",{visitor:["expression"],fields:{expression:aB("StringLiteral")}}),of("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:aB("Expression")}}),of("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:aB("Expression")}}),of("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:aB("Identifier")}}),of("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:aX("TSType")}}}),of("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:aK("TSType")}}),of("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:aK("TSTypeParameter")}}),of("TSTypeParameter",{builder:["constraint","default","name"],visitor:["name","constraint","default"],fields:{name:{validate:aX("Identifier")},in:{validate:aG("boolean"),optional:!0},out:{validate:aG("boolean"),optional:!0},const:{validate:aG("boolean"),optional:!0},constraint:{validate:aX("TSType"),optional:!0},default:{validate:aX("TSType"),optional:!0}}});var oE={ModuleDeclaration:"ImportOrExportDeclaration"};for(let{types:e,set:t}of(Object.keys(oE).forEach(e=>{aI[e]=aI[oE[e]]}),aW))for(let r of e){let e=aI[r];e?e.forEach(t.add,t):t.add(r)}var ok=[].concat(Object.keys(aP),Object.keys(aI),Object.keys(aL));function ow(e,t,r){if(!e)return;let n=a_[e.type];if(!n)return;let i=n[t];oA(e,t,r,i),oP(e,t,r)}function oA(e,t,r,n){!n?.validate||n.optional&&null==r||n.validate(e,t,r)}function oP(e,t,r){let n=r?.type;null!=n&&aO[n]?.(e,t,r)}var{validateInternal:oC}=Object.defineProperty({__proto__:null,default:ow,validateChild:oP,validateField:oA,validateInternal:function(e,t,r,n,i){if(e?.validate&&(!e.optional||null!=n)&&(e.validate(t,r,n),i)){let e=n.type;if(null!=e)aO[e]?.(t,r,n)}}},Symbol.toStringTag,{value:"Module"}),{NODE_FIELDS:oI}=a5;function o_(e){let t={type:"ArrayExpression",elements:e};return oC(oI.ArrayExpression.elements,t,"elements",e,1),t}function oN(e,t,r){let n={type:"AssignmentExpression",operator:e,left:t,right:r},i=oI.AssignmentExpression;return oC(i.operator,n,"operator",e),oC(i.left,n,"left",t,1),oC(i.right,n,"right",r,1),n}function oL(e,t,r){let n={type:"BinaryExpression",operator:e,left:t,right:r},i=oI.BinaryExpression;return oC(i.operator,n,"operator",e),oC(i.left,n,"left",t,1),oC(i.right,n,"right",r,1),n}function oO(e){let t={type:"InterpreterDirective",value:e};return oC(oI.InterpreterDirective.value,t,"value",e),t}function oD(e){let t={type:"Directive",value:e};return oC(oI.Directive.value,t,"value",e,1),t}function oM(e){let t={type:"DirectiveLiteral",value:e};return oC(oI.DirectiveLiteral.value,t,"value",e),t}function oF(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},n=oI.BlockStatement;return oC(n.body,r,"body",e,1),oC(n.directives,r,"directives",t,1),r}function oj(e=null){let t={type:"BreakStatement",label:e};return oC(oI.BreakStatement.label,t,"label",e,1),t}function oB(e,t){let r={type:"CallExpression",callee:e,arguments:t},n=oI.CallExpression;return oC(n.callee,r,"callee",e,1),oC(n.arguments,r,"arguments",t,1),r}function oR(e=null,t){let r={type:"CatchClause",param:e,body:t},n=oI.CatchClause;return oC(n.param,r,"param",e,1),oC(n.body,r,"body",t,1),r}function o$(e,t,r){let n={type:"ConditionalExpression",test:e,consequent:t,alternate:r},i=oI.ConditionalExpression;return oC(i.test,n,"test",e,1),oC(i.consequent,n,"consequent",t,1),oC(i.alternate,n,"alternate",r,1),n}function oU(e=null){let t={type:"ContinueStatement",label:e};return oC(oI.ContinueStatement.label,t,"label",e,1),t}function oV(){return{type:"DebuggerStatement"}}function oq(e,t){let r={type:"DoWhileStatement",test:e,body:t},n=oI.DoWhileStatement;return oC(n.test,r,"test",e,1),oC(n.body,r,"body",t,1),r}function oK(){return{type:"EmptyStatement"}}function oJ(e){let t={type:"ExpressionStatement",expression:e};return oC(oI.ExpressionStatement.expression,t,"expression",e,1),t}function oz(e,t=null,r=null){let n={type:"File",program:e,comments:t,tokens:r},i=oI.File;return oC(i.program,n,"program",e,1),oC(i.comments,n,"comments",t,1),oC(i.tokens,n,"tokens",r),n}function oW(e,t,r){let n={type:"ForInStatement",left:e,right:t,body:r},i=oI.ForInStatement;return oC(i.left,n,"left",e,1),oC(i.right,n,"right",t,1),oC(i.body,n,"body",r,1),n}function oX(e=null,t=null,r=null,n){let i={type:"ForStatement",init:e,test:t,update:r,body:n},s=oI.ForStatement;return oC(s.init,i,"init",e,1),oC(s.test,i,"test",t,1),oC(s.update,i,"update",r,1),oC(s.body,i,"body",n,1),i}function oH(e=null,t,r,n=!1,i=!1){let s={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:i},a=oI.FunctionDeclaration;return oC(a.id,s,"id",e,1),oC(a.params,s,"params",t,1),oC(a.body,s,"body",r,1),oC(a.generator,s,"generator",n),oC(a.async,s,"async",i),s}function oG(e=null,t,r,n=!1,i=!1){let s={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:i},a=oI.FunctionExpression;return oC(a.id,s,"id",e,1),oC(a.params,s,"params",t,1),oC(a.body,s,"body",r,1),oC(a.generator,s,"generator",n),oC(a.async,s,"async",i),s}function oY(e){let t={type:"Identifier",name:e};return oC(oI.Identifier.name,t,"name",e),t}function oQ(e,t,r=null){let n={type:"IfStatement",test:e,consequent:t,alternate:r},i=oI.IfStatement;return oC(i.test,n,"test",e,1),oC(i.consequent,n,"consequent",t,1),oC(i.alternate,n,"alternate",r,1),n}function oZ(e,t){let r={type:"LabeledStatement",label:e,body:t},n=oI.LabeledStatement;return oC(n.label,r,"label",e,1),oC(n.body,r,"body",t,1),r}function o0(e){let t={type:"StringLiteral",value:e};return oC(oI.StringLiteral.value,t,"value",e),t}function o1(e){let t={type:"NumericLiteral",value:e};return oC(oI.NumericLiteral.value,t,"value",e),t}function o2(){return{type:"NullLiteral"}}function o3(e){let t={type:"BooleanLiteral",value:e};return oC(oI.BooleanLiteral.value,t,"value",e),t}function o4(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},n=oI.RegExpLiteral;return oC(n.pattern,r,"pattern",e),oC(n.flags,r,"flags",t),r}function o5(e,t,r){let n={type:"LogicalExpression",operator:e,left:t,right:r},i=oI.LogicalExpression;return oC(i.operator,n,"operator",e),oC(i.left,n,"left",t,1),oC(i.right,n,"right",r,1),n}function o6(e,t,r=!1){let n={type:"MemberExpression",object:e,property:t,computed:r},i=oI.MemberExpression;return oC(i.object,n,"object",e,1),oC(i.property,n,"property",t,1),oC(i.computed,n,"computed",r),n}function o8(e,t){let r={type:"NewExpression",callee:e,arguments:t},n=oI.NewExpression;return oC(n.callee,r,"callee",e,1),oC(n.arguments,r,"arguments",t,1),r}function o9(e,t=[],r="script",n=null){let i={type:"Program",body:e,directives:t,sourceType:r,interpreter:n},s=oI.Program;return oC(s.body,i,"body",e,1),oC(s.directives,i,"directives",t,1),oC(s.sourceType,i,"sourceType",r),oC(s.interpreter,i,"interpreter",n,1),i}function o7(e){let t={type:"ObjectExpression",properties:e};return oC(oI.ObjectExpression.properties,t,"properties",e,1),t}function le(e,t,r,n,i=!1,s=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:i,generator:s,async:a},l=oI.ObjectMethod;return oC(l.kind,o,"kind",e),oC(l.key,o,"key",t,1),oC(l.params,o,"params",r,1),oC(l.body,o,"body",n,1),oC(l.computed,o,"computed",i),oC(l.generator,o,"generator",s),oC(l.async,o,"async",a),o}function lt(e,t,r=!1,n=!1){let i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n},s=oI.ObjectProperty;return oC(s.key,i,"key",e,1),oC(s.value,i,"value",t,1),oC(s.computed,i,"computed",r),oC(s.shorthand,i,"shorthand",n),i}function lr(e){let t={type:"RestElement",argument:e};return oC(oI.RestElement.argument,t,"argument",e,1),t}function ln(e=null){let t={type:"ReturnStatement",argument:e};return oC(oI.ReturnStatement.argument,t,"argument",e,1),t}function li(e){let t={type:"SequenceExpression",expressions:e};return oC(oI.SequenceExpression.expressions,t,"expressions",e,1),t}function ls(e){let t={type:"ParenthesizedExpression",expression:e};return oC(oI.ParenthesizedExpression.expression,t,"expression",e,1),t}function la(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},n=oI.SwitchCase;return oC(n.test,r,"test",e,1),oC(n.consequent,r,"consequent",t,1),r}function lo(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},n=oI.SwitchStatement;return oC(n.discriminant,r,"discriminant",e,1),oC(n.cases,r,"cases",t,1),r}function ll(){return{type:"ThisExpression"}}function lu(e){let t={type:"ThrowStatement",argument:e};return oC(oI.ThrowStatement.argument,t,"argument",e,1),t}function lc(e,t=null,r=null){let n={type:"TryStatement",block:e,handler:t,finalizer:r},i=oI.TryStatement;return oC(i.block,n,"block",e,1),oC(i.handler,n,"handler",t,1),oC(i.finalizer,n,"finalizer",r,1),n}function lp(e,t,r=!0){let n={type:"UnaryExpression",operator:e,argument:t,prefix:r},i=oI.UnaryExpression;return oC(i.operator,n,"operator",e),oC(i.argument,n,"argument",t,1),oC(i.prefix,n,"prefix",r),n}function lh(e,t,r=!1){let n={type:"UpdateExpression",operator:e,argument:t,prefix:r},i=oI.UpdateExpression;return oC(i.operator,n,"operator",e),oC(i.argument,n,"argument",t,1),oC(i.prefix,n,"prefix",r),n}function ld(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},n=oI.VariableDeclaration;return oC(n.kind,r,"kind",e),oC(n.declarations,r,"declarations",t,1),r}function lf(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},n=oI.VariableDeclarator;return oC(n.id,r,"id",e,1),oC(n.init,r,"init",t,1),r}function lm(e,t){let r={type:"WhileStatement",test:e,body:t},n=oI.WhileStatement;return oC(n.test,r,"test",e,1),oC(n.body,r,"body",t,1),r}function ly(e,t){let r={type:"WithStatement",object:e,body:t},n=oI.WithStatement;return oC(n.object,r,"object",e,1),oC(n.body,r,"body",t,1),r}function lg(e,t){let r={type:"AssignmentPattern",left:e,right:t},n=oI.AssignmentPattern;return oC(n.left,r,"left",e,1),oC(n.right,r,"right",t,1),r}function lb(e){let t={type:"ArrayPattern",elements:e};return oC(oI.ArrayPattern.elements,t,"elements",e,1),t}function lx(e,t,r=!1){let n={type:"ArrowFunctionExpression",params:e,body:t,async:r},i=oI.ArrowFunctionExpression;return oC(i.params,n,"params",e,1),oC(i.body,n,"body",t,1),oC(i.async,n,"async",r),n}function lS(e){let t={type:"ClassBody",body:e};return oC(oI.ClassBody.body,t,"body",e,1),t}function lv(e=null,t=null,r,n=null){let i={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n},s=oI.ClassExpression;return oC(s.id,i,"id",e,1),oC(s.superClass,i,"superClass",t,1),oC(s.body,i,"body",r,1),oC(s.decorators,i,"decorators",n,1),i}function lT(e=null,t=null,r,n=null){let i={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n},s=oI.ClassDeclaration;return oC(s.id,i,"id",e,1),oC(s.superClass,i,"superClass",t,1),oC(s.body,i,"body",r,1),oC(s.decorators,i,"decorators",n,1),i}function lE(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},n=oI.ExportAllDeclaration;return oC(n.source,r,"source",e,1),oC(n.attributes,r,"attributes",t,1),r}function lk(e){let t={type:"ExportDefaultDeclaration",declaration:e};return oC(oI.ExportDefaultDeclaration.declaration,t,"declaration",e,1),t}function lw(e=null,t=[],r=null,n=null){let i={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:n},s=oI.ExportNamedDeclaration;return oC(s.declaration,i,"declaration",e,1),oC(s.specifiers,i,"specifiers",t,1),oC(s.source,i,"source",r,1),oC(s.attributes,i,"attributes",n,1),i}function lA(e,t){let r={type:"ExportSpecifier",local:e,exported:t},n=oI.ExportSpecifier;return oC(n.local,r,"local",e,1),oC(n.exported,r,"exported",t,1),r}function lP(e,t,r,n=!1){let i={type:"ForOfStatement",left:e,right:t,body:r,await:n},s=oI.ForOfStatement;return oC(s.left,i,"left",e,1),oC(s.right,i,"right",t,1),oC(s.body,i,"body",r,1),oC(s.await,i,"await",n),i}function lC(e,t,r=null){let n={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},i=oI.ImportDeclaration;return oC(i.specifiers,n,"specifiers",e,1),oC(i.source,n,"source",t,1),oC(i.attributes,n,"attributes",r,1),n}function lI(e){let t={type:"ImportDefaultSpecifier",local:e};return oC(oI.ImportDefaultSpecifier.local,t,"local",e,1),t}function l_(e){let t={type:"ImportNamespaceSpecifier",local:e};return oC(oI.ImportNamespaceSpecifier.local,t,"local",e,1),t}function lN(e,t){let r={type:"ImportSpecifier",local:e,imported:t},n=oI.ImportSpecifier;return oC(n.local,r,"local",e,1),oC(n.imported,r,"imported",t,1),r}function lL(e,t){let r={type:"MetaProperty",meta:e,property:t},n=oI.MetaProperty;return oC(n.meta,r,"meta",e,1),oC(n.property,r,"property",t,1),r}function lO(e="method",t,r,n,i=!1,s=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:i,static:s,generator:a,async:o},u=oI.ClassMethod;return oC(u.kind,l,"kind",e),oC(u.key,l,"key",t,1),oC(u.params,l,"params",r,1),oC(u.body,l,"body",n,1),oC(u.computed,l,"computed",i),oC(u.static,l,"static",s),oC(u.generator,l,"generator",a),oC(u.async,l,"async",o),l}function lD(e){let t={type:"ObjectPattern",properties:e};return oC(oI.ObjectPattern.properties,t,"properties",e,1),t}function lM(e){let t={type:"SpreadElement",argument:e};return oC(oI.SpreadElement.argument,t,"argument",e,1),t}function lF(){return{type:"Super"}}function lj(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},n=oI.TaggedTemplateExpression;return oC(n.tag,r,"tag",e,1),oC(n.quasi,r,"quasi",t,1),r}function lB(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},n=oI.TemplateElement;return oC(n.value,r,"value",e),oC(n.tail,r,"tail",t),r}function lR(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},n=oI.TemplateLiteral;return oC(n.quasis,r,"quasis",e,1),oC(n.expressions,r,"expressions",t,1),r}function l$(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},n=oI.YieldExpression;return oC(n.argument,r,"argument",e,1),oC(n.delegate,r,"delegate",t),r}function lU(e){let t={type:"AwaitExpression",argument:e};return oC(oI.AwaitExpression.argument,t,"argument",e,1),t}function lV(e,t=null){let r={type:"ImportExpression",source:e,options:t},n=oI.ImportExpression;return oC(n.source,r,"source",e,1),oC(n.options,r,"options",t,1),r}function lq(){return{type:"Import"}}function lK(e){let t={type:"BigIntLiteral",value:e};return oC(oI.BigIntLiteral.value,t,"value",e),t}function lJ(e){let t={type:"ExportNamespaceSpecifier",exported:e};return oC(oI.ExportNamespaceSpecifier.exported,t,"exported",e,1),t}function lz(e,t,r=!1,n){let i={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n},s=oI.OptionalMemberExpression;return oC(s.object,i,"object",e,1),oC(s.property,i,"property",t,1),oC(s.computed,i,"computed",r),oC(s.optional,i,"optional",n),i}function lW(e,t,r){let n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},i=oI.OptionalCallExpression;return oC(i.callee,n,"callee",e,1),oC(i.arguments,n,"arguments",t,1),oC(i.optional,n,"optional",r),n}function lX(e,t=null,r=null,n=null,i=!1,s=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s},o=oI.ClassProperty;return oC(o.key,a,"key",e,1),oC(o.value,a,"value",t,1),oC(o.typeAnnotation,a,"typeAnnotation",r,1),oC(o.decorators,a,"decorators",n,1),oC(o.computed,a,"computed",i),oC(o.static,a,"static",s),a}function lH(e,t=null,r=null,n=!1){let i={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n},s=oI.ClassPrivateProperty;return oC(s.key,i,"key",e,1),oC(s.value,i,"value",t,1),oC(s.decorators,i,"decorators",r,1),oC(s.static,i,"static",n),i}function lG(e="method",t,r,n,i=!1){let s={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:i,async:!1,computed:!1,generator:!1},a=oI.ClassPrivateMethod;return oC(a.kind,s,"kind",e),oC(a.key,s,"key",t,1),oC(a.params,s,"params",r,1),oC(a.body,s,"body",n,1),oC(a.static,s,"static",i),s}function lY(e){let t={type:"PrivateName",id:e};return oC(oI.PrivateName.id,t,"id",e,1),t}function lQ(e){let t={type:"StaticBlock",body:e};return oC(oI.StaticBlock.body,t,"body",e,1),t}function lZ(e,t){let r={type:"ImportAttribute",key:e,value:t},n=oI.ImportAttribute;return oC(n.key,r,"key",e,1),oC(n.value,r,"value",t,1),r}function l0(){return{type:"AnyTypeAnnotation"}}function l1(e){let t={type:"ArrayTypeAnnotation",elementType:e};return oC(oI.ArrayTypeAnnotation.elementType,t,"elementType",e,1),t}function l2(){return{type:"BooleanTypeAnnotation"}}function l3(e){let t={type:"BooleanLiteralTypeAnnotation",value:e};return oC(oI.BooleanLiteralTypeAnnotation.value,t,"value",e),t}function l4(){return{type:"NullLiteralTypeAnnotation"}}function l5(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},n=oI.ClassImplements;return oC(n.id,r,"id",e,1),oC(n.typeParameters,r,"typeParameters",t,1),r}function l6(e,t=null,r=null,n){let i={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n},s=oI.DeclareClass;return oC(s.id,i,"id",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.extends,i,"extends",r,1),oC(s.body,i,"body",n,1),i}function l8(e){let t={type:"DeclareFunction",id:e};return oC(oI.DeclareFunction.id,t,"id",e,1),t}function l9(e,t=null,r=null,n){let i={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n},s=oI.DeclareInterface;return oC(s.id,i,"id",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.extends,i,"extends",r,1),oC(s.body,i,"body",n,1),i}function l7(e,t,r=null){let n={type:"DeclareModule",id:e,body:t,kind:r},i=oI.DeclareModule;return oC(i.id,n,"id",e,1),oC(i.body,n,"body",t,1),oC(i.kind,n,"kind",r),n}function ue(e){let t={type:"DeclareModuleExports",typeAnnotation:e};return oC(oI.DeclareModuleExports.typeAnnotation,t,"typeAnnotation",e,1),t}function ut(e,t=null,r){let n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},i=oI.DeclareTypeAlias;return oC(i.id,n,"id",e,1),oC(i.typeParameters,n,"typeParameters",t,1),oC(i.right,n,"right",r,1),n}function ur(e,t=null,r=null){let n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},i=oI.DeclareOpaqueType;return oC(i.id,n,"id",e,1),oC(i.typeParameters,n,"typeParameters",t,1),oC(i.supertype,n,"supertype",r,1),n}function un(e){let t={type:"DeclareVariable",id:e};return oC(oI.DeclareVariable.id,t,"id",e,1),t}function ui(e=null,t=null,r=null,n=null){let i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:n},s=oI.DeclareExportDeclaration;return oC(s.declaration,i,"declaration",e,1),oC(s.specifiers,i,"specifiers",t,1),oC(s.source,i,"source",r,1),oC(s.attributes,i,"attributes",n,1),i}function us(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},n=oI.DeclareExportAllDeclaration;return oC(n.source,r,"source",e,1),oC(n.attributes,r,"attributes",t,1),r}function ua(e){let t={type:"DeclaredPredicate",value:e};return oC(oI.DeclaredPredicate.value,t,"value",e,1),t}function uo(){return{type:"ExistsTypeAnnotation"}}function ul(e=null,t,r=null,n){let i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n},s=oI.FunctionTypeAnnotation;return oC(s.typeParameters,i,"typeParameters",e,1),oC(s.params,i,"params",t,1),oC(s.rest,i,"rest",r,1),oC(s.returnType,i,"returnType",n,1),i}function uu(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},n=oI.FunctionTypeParam;return oC(n.name,r,"name",e,1),oC(n.typeAnnotation,r,"typeAnnotation",t,1),r}function uc(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},n=oI.GenericTypeAnnotation;return oC(n.id,r,"id",e,1),oC(n.typeParameters,r,"typeParameters",t,1),r}function up(){return{type:"InferredPredicate"}}function uh(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},n=oI.InterfaceExtends;return oC(n.id,r,"id",e,1),oC(n.typeParameters,r,"typeParameters",t,1),r}function ud(e,t=null,r=null,n){let i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},s=oI.InterfaceDeclaration;return oC(s.id,i,"id",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.extends,i,"extends",r,1),oC(s.body,i,"body",n,1),i}function uf(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},n=oI.InterfaceTypeAnnotation;return oC(n.extends,r,"extends",e,1),oC(n.body,r,"body",t,1),r}function um(e){let t={type:"IntersectionTypeAnnotation",types:e};return oC(oI.IntersectionTypeAnnotation.types,t,"types",e,1),t}function uy(){return{type:"MixedTypeAnnotation"}}function ug(){return{type:"EmptyTypeAnnotation"}}function ub(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e};return oC(oI.NullableTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function ux(e){let t={type:"NumberLiteralTypeAnnotation",value:e};return oC(oI.NumberLiteralTypeAnnotation.value,t,"value",e),t}function uS(e){let t={type:"BigIntLiteralTypeAnnotation",value:e};return oC(oI.BigIntLiteralTypeAnnotation.value,t,"value",e),t}function uv(){return{type:"NumberTypeAnnotation"}}function uT(e,t=[],r=[],n=[],i=!1){let s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:i},a=oI.ObjectTypeAnnotation;return oC(a.properties,s,"properties",e,1),oC(a.indexers,s,"indexers",t,1),oC(a.callProperties,s,"callProperties",r,1),oC(a.internalSlots,s,"internalSlots",n,1),oC(a.exact,s,"exact",i),s}function uE(e,t,r,n,i){let s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:i},a=oI.ObjectTypeInternalSlot;return oC(a.id,s,"id",e,1),oC(a.value,s,"value",t,1),oC(a.optional,s,"optional",r),oC(a.static,s,"static",n),oC(a.method,s,"method",i),s}function uk(e){let t={type:"ObjectTypeCallProperty",value:e,static:!1};return oC(oI.ObjectTypeCallProperty.value,t,"value",e,1),t}function uw(e=null,t,r,n=null){let i={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:!1},s=oI.ObjectTypeIndexer;return oC(s.id,i,"id",e,1),oC(s.key,i,"key",t,1),oC(s.value,i,"value",r,1),oC(s.variance,i,"variance",n,1),i}function uA(e,t,r=null){let n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:"init",method:!1,optional:!1,proto:!1,static:!1},i=oI.ObjectTypeProperty;return oC(i.key,n,"key",e,1),oC(i.value,n,"value",t,1),oC(i.variance,n,"variance",r,1),n}function uP(e){let t={type:"ObjectTypeSpreadProperty",argument:e};return oC(oI.ObjectTypeSpreadProperty.argument,t,"argument",e,1),t}function uC(e,t=null,r=null,n){let i={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n},s=oI.OpaqueType;return oC(s.id,i,"id",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.supertype,i,"supertype",r,1),oC(s.impltype,i,"impltype",n,1),i}function uI(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},n=oI.QualifiedTypeIdentifier;return oC(n.id,r,"id",e,1),oC(n.qualification,r,"qualification",t,1),r}function u_(e){let t={type:"StringLiteralTypeAnnotation",value:e};return oC(oI.StringLiteralTypeAnnotation.value,t,"value",e),t}function uN(){return{type:"StringTypeAnnotation"}}function uL(){return{type:"SymbolTypeAnnotation"}}function uO(){return{type:"ThisTypeAnnotation"}}function uD(e){let t={type:"TupleTypeAnnotation",types:e};return oC(oI.TupleTypeAnnotation.types,t,"types",e,1),t}function uM(e){let t={type:"TypeofTypeAnnotation",argument:e};return oC(oI.TypeofTypeAnnotation.argument,t,"argument",e,1),t}function uF(e,t=null,r){let n={type:"TypeAlias",id:e,typeParameters:t,right:r},i=oI.TypeAlias;return oC(i.id,n,"id",e,1),oC(i.typeParameters,n,"typeParameters",t,1),oC(i.right,n,"right",r,1),n}function uj(e){let t={type:"TypeAnnotation",typeAnnotation:e};return oC(oI.TypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function uB(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},n=oI.TypeCastExpression;return oC(n.expression,r,"expression",e,1),oC(n.typeAnnotation,r,"typeAnnotation",t,1),r}function uR(e,t=null,r=null,n=null){let i={type:"TypeParameter",name:e,bound:t,default:r,variance:n},s=oI.TypeParameter;return oC(s.name,i,"name",e),oC(s.bound,i,"bound",t,1),oC(s.default,i,"default",r,1),oC(s.variance,i,"variance",n,1),i}function u$(e){let t={type:"TypeParameterDeclaration",params:e};return oC(oI.TypeParameterDeclaration.params,t,"params",e,1),t}function uU(e){let t={type:"TypeParameterInstantiation",params:e};return oC(oI.TypeParameterInstantiation.params,t,"params",e,1),t}function uV(e){let t={type:"UnionTypeAnnotation",types:e};return oC(oI.UnionTypeAnnotation.types,t,"types",e,1),t}function uq(e){let t={type:"Variance",kind:e};return oC(oI.Variance.kind,t,"kind",e),t}function uK(){return{type:"VoidTypeAnnotation"}}function uJ(e,t){let r={type:"EnumDeclaration",id:e,body:t},n=oI.EnumDeclaration;return oC(n.id,r,"id",e,1),oC(n.body,r,"body",t,1),r}function uz(e){let t={type:"EnumBooleanBody",members:e,explicitType:!1,hasUnknownMembers:!1};return oC(oI.EnumBooleanBody.members,t,"members",e,1),t}function uW(e){let t={type:"EnumNumberBody",members:e,explicitType:!1,hasUnknownMembers:!1};return oC(oI.EnumNumberBody.members,t,"members",e,1),t}function uX(e){let t={type:"EnumStringBody",members:e,explicitType:!1,hasUnknownMembers:!1};return oC(oI.EnumStringBody.members,t,"members",e,1),t}function uH(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:!1};return oC(oI.EnumSymbolBody.members,t,"members",e,1),t}function uG(e,t){let r={type:"EnumBooleanMember",id:e,init:t},n=oI.EnumBooleanMember;return oC(n.id,r,"id",e,1),oC(n.init,r,"init",t,1),r}function uY(e,t){let r={type:"EnumNumberMember",id:e,init:t},n=oI.EnumNumberMember;return oC(n.id,r,"id",e,1),oC(n.init,r,"init",t,1),r}function uQ(e,t){let r={type:"EnumStringMember",id:e,init:t},n=oI.EnumStringMember;return oC(n.id,r,"id",e,1),oC(n.init,r,"init",t,1),r}function uZ(e){let t={type:"EnumDefaultedMember",id:e};return oC(oI.EnumDefaultedMember.id,t,"id",e,1),t}function u0(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},n=oI.IndexedAccessType;return oC(n.objectType,r,"objectType",e,1),oC(n.indexType,r,"indexType",t,1),r}function u1(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:!1},n=oI.OptionalIndexedAccessType;return oC(n.objectType,r,"objectType",e,1),oC(n.indexType,r,"indexType",t,1),r}function u2(e,t=null){let r={type:"JSXAttribute",name:e,value:t},n=oI.JSXAttribute;return oC(n.name,r,"name",e,1),oC(n.value,r,"value",t,1),r}function u3(e){let t={type:"JSXClosingElement",name:e};return oC(oI.JSXClosingElement.name,t,"name",e,1),t}function u4(e,t=null,r){let n={type:"JSXElement",openingElement:e,closingElement:t,children:r},i=oI.JSXElement;return oC(i.openingElement,n,"openingElement",e,1),oC(i.closingElement,n,"closingElement",t,1),oC(i.children,n,"children",r,1),n}function u5(){return{type:"JSXEmptyExpression"}}function u6(e){let t={type:"JSXExpressionContainer",expression:e};return oC(oI.JSXExpressionContainer.expression,t,"expression",e,1),t}function u8(e){let t={type:"JSXSpreadChild",expression:e};return oC(oI.JSXSpreadChild.expression,t,"expression",e,1),t}function u9(e){let t={type:"JSXIdentifier",name:e};return oC(oI.JSXIdentifier.name,t,"name",e),t}function u7(e,t){let r={type:"JSXMemberExpression",object:e,property:t},n=oI.JSXMemberExpression;return oC(n.object,r,"object",e,1),oC(n.property,r,"property",t,1),r}function ce(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},n=oI.JSXNamespacedName;return oC(n.namespace,r,"namespace",e,1),oC(n.name,r,"name",t,1),r}function ct(e,t,r=!1){let n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},i=oI.JSXOpeningElement;return oC(i.name,n,"name",e,1),oC(i.attributes,n,"attributes",t,1),oC(i.selfClosing,n,"selfClosing",r),n}function cr(e){let t={type:"JSXSpreadAttribute",argument:e};return oC(oI.JSXSpreadAttribute.argument,t,"argument",e,1),t}function cn(e){let t={type:"JSXText",value:e};return oC(oI.JSXText.value,t,"value",e),t}function ci(e,t,r){let n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},i=oI.JSXFragment;return oC(i.openingFragment,n,"openingFragment",e,1),oC(i.closingFragment,n,"closingFragment",t,1),oC(i.children,n,"children",r,1),n}function cs(){return{type:"JSXOpeningFragment"}}function ca(){return{type:"JSXClosingFragment"}}function co(e,t){let r={type:"Placeholder",expectedNode:e,name:t},n=oI.Placeholder;return oC(n.expectedNode,r,"expectedNode",e),oC(n.name,r,"name",t,1),r}function cl(e){let t={type:"V8IntrinsicIdentifier",name:e};return oC(oI.V8IntrinsicIdentifier.name,t,"name",e),t}function cu(){return{type:"ArgumentPlaceholder"}}function cc(e,t){let r={type:"BindExpression",object:e,callee:t},n=oI.BindExpression;return oC(n.object,r,"object",e,1),oC(n.callee,r,"callee",t,1),r}function cp(e,t=null,r=null,n=null,i=!1,s=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:i,static:s},o=oI.ClassAccessorProperty;return oC(o.key,a,"key",e,1),oC(o.value,a,"value",t,1),oC(o.typeAnnotation,a,"typeAnnotation",r,1),oC(o.decorators,a,"decorators",n,1),oC(o.computed,a,"computed",i),oC(o.static,a,"static",s),a}function ch(e){let t={type:"Decorator",expression:e};return oC(oI.Decorator.expression,t,"expression",e,1),t}function cd(e,t=!1){let r={type:"DoExpression",body:e,async:t},n=oI.DoExpression;return oC(n.body,r,"body",e,1),oC(n.async,r,"async",t),r}function cf(e){let t={type:"ExportDefaultSpecifier",exported:e};return oC(oI.ExportDefaultSpecifier.exported,t,"exported",e,1),t}function cm(e){let t={type:"ModuleExpression",body:e};return oC(oI.ModuleExpression.body,t,"body",e,1),t}function cy(){return{type:"TopicReference"}}function cg(){return{type:"VoidPattern"}}function cb(e){let t={type:"TSParameterProperty",parameter:e};return oC(oI.TSParameterProperty.parameter,t,"parameter",e,1),t}function cx(e=null,t=null,r,n=null){let i={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n,async:!1,generator:!1},s=oI.TSDeclareFunction;return oC(s.id,i,"id",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.params,i,"params",r,1),oC(s.returnType,i,"returnType",n,1),i}function cS(e,t=null,r,n=null){let i={type:"TSDeclareMethod",key:e,typeParameters:t,params:r,returnType:n,async:!1,computed:!1,generator:!1,kind:"method",static:!1},s=oI.TSDeclareMethod;return oC(s.key,i,"key",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.params,i,"params",r,1),oC(s.returnType,i,"returnType",n,1),i}function cv(e,t){let r={type:"TSQualifiedName",left:e,right:t},n=oI.TSQualifiedName;return oC(n.left,r,"left",e,1),oC(n.right,r,"right",t,1),r}function cT(e=null,t,r=null){let n={type:"TSCallSignatureDeclaration",typeParameters:e,params:t,returnType:r},i=oI.TSCallSignatureDeclaration;return oC(i.typeParameters,n,"typeParameters",e,1),oC(i.params,n,"params",t,1),oC(i.returnType,n,"returnType",r,1),n}function cE(e=null,t,r=null){let n={type:"TSConstructSignatureDeclaration",typeParameters:e,params:t,returnType:r},i=oI.TSConstructSignatureDeclaration;return oC(i.typeParameters,n,"typeParameters",e,1),oC(i.params,n,"params",t,1),oC(i.returnType,n,"returnType",r,1),n}function ck(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t,computed:!1},n=oI.TSPropertySignature;return oC(n.key,r,"key",e,1),oC(n.typeAnnotation,r,"typeAnnotation",t,1),r}function cw(e,t=null,r,n=null){let i={type:"TSMethodSignature",key:e,typeParameters:t,params:r,returnType:n,computed:!1,kind:"method"},s=oI.TSMethodSignature;return oC(s.key,i,"key",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.params,i,"params",r,1),oC(s.returnType,i,"returnType",n,1),i}function cA(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},n=oI.TSIndexSignature;return oC(n.parameters,r,"parameters",e,1),oC(n.typeAnnotation,r,"typeAnnotation",t,1),r}function cP(){return{type:"TSAnyKeyword"}}function cC(){return{type:"TSBooleanKeyword"}}function cI(){return{type:"TSBigIntKeyword"}}function c_(){return{type:"TSIntrinsicKeyword"}}function cN(){return{type:"TSNeverKeyword"}}function cL(){return{type:"TSNullKeyword"}}function cO(){return{type:"TSNumberKeyword"}}function cD(){return{type:"TSObjectKeyword"}}function cM(){return{type:"TSStringKeyword"}}function cF(){return{type:"TSSymbolKeyword"}}function cj(){return{type:"TSUndefinedKeyword"}}function cB(){return{type:"TSUnknownKeyword"}}function cR(){return{type:"TSVoidKeyword"}}function c$(){return{type:"TSThisType"}}function cU(e=null,t,r=null){let n={type:"TSFunctionType",typeParameters:e,params:t,returnType:r},i=oI.TSFunctionType;return oC(i.typeParameters,n,"typeParameters",e,1),oC(i.params,n,"params",t,1),oC(i.returnType,n,"returnType",r,1),n}function cV(e=null,t,r=null){let n={type:"TSConstructorType",typeParameters:e,params:t,returnType:r},i=oI.TSConstructorType;return oC(i.typeParameters,n,"typeParameters",e,1),oC(i.params,n,"params",t,1),oC(i.returnType,n,"returnType",r,1),n}function cq(e,t=null){let r={type:"TSTypeReference",typeName:e,typeArguments:t},n=oI.TSTypeReference;return oC(n.typeName,r,"typeName",e,1),oC(n.typeArguments,r,"typeArguments",t,1),r}function cK(e,t=null,r=null){let n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},i=oI.TSTypePredicate;return oC(i.parameterName,n,"parameterName",e,1),oC(i.typeAnnotation,n,"typeAnnotation",t,1),oC(i.asserts,n,"asserts",r),n}function cJ(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeArguments:t},n=oI.TSTypeQuery;return oC(n.exprName,r,"exprName",e,1),oC(n.typeArguments,r,"typeArguments",t,1),r}function cz(e){let t={type:"TSTypeLiteral",members:e};return oC(oI.TSTypeLiteral.members,t,"members",e,1),t}function cW(e){let t={type:"TSArrayType",elementType:e};return oC(oI.TSArrayType.elementType,t,"elementType",e,1),t}function cX(e){let t={type:"TSTupleType",elementTypes:e};return oC(oI.TSTupleType.elementTypes,t,"elementTypes",e,1),t}function cH(e){let t={type:"TSOptionalType",typeAnnotation:e};return oC(oI.TSOptionalType.typeAnnotation,t,"typeAnnotation",e,1),t}function cG(e){let t={type:"TSRestType",typeAnnotation:e};return oC(oI.TSRestType.typeAnnotation,t,"typeAnnotation",e,1),t}function cY(e,t,r=!1){let n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},i=oI.TSNamedTupleMember;return oC(i.label,n,"label",e,1),oC(i.elementType,n,"elementType",t,1),oC(i.optional,n,"optional",r),n}function cQ(e){let t={type:"TSUnionType",types:e};return oC(oI.TSUnionType.types,t,"types",e,1),t}function cZ(e){let t={type:"TSIntersectionType",types:e};return oC(oI.TSIntersectionType.types,t,"types",e,1),t}function c0(e,t,r,n){let i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n},s=oI.TSConditionalType;return oC(s.checkType,i,"checkType",e,1),oC(s.extendsType,i,"extendsType",t,1),oC(s.trueType,i,"trueType",r,1),oC(s.falseType,i,"falseType",n,1),i}function c1(e){let t={type:"TSInferType",typeParameter:e};return oC(oI.TSInferType.typeParameter,t,"typeParameter",e,1),t}function c2(e){let t={type:"TSParenthesizedType",typeAnnotation:e};return oC(oI.TSParenthesizedType.typeAnnotation,t,"typeAnnotation",e,1),t}function c3(e,t){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},n=oI.TSTypeOperator;return oC(n.typeAnnotation,r,"typeAnnotation",e,1),oC(n.operator,r,"operator",t),r}function c4(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},n=oI.TSIndexedAccessType;return oC(n.objectType,r,"objectType",e,1),oC(n.indexType,r,"indexType",t,1),r}function c5(e,t,r=null,n=null){let i={type:"TSMappedType",key:e,constraint:t,nameType:r,typeAnnotation:n},s=oI.TSMappedType;return oC(s.key,i,"key",e,1),oC(s.constraint,i,"constraint",t,1),oC(s.nameType,i,"nameType",r,1),oC(s.typeAnnotation,i,"typeAnnotation",n,1),i}function c6(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},n=oI.TSTemplateLiteralType;return oC(n.quasis,r,"quasis",e,1),oC(n.types,r,"types",t,1),r}function c8(e){let t={type:"TSLiteralType",literal:e};return oC(oI.TSLiteralType.literal,t,"literal",e,1),t}function c9(e,t=null){let r={type:"TSClassImplements",expression:e,typeArguments:t},n=oI.TSClassImplements;return oC(n.expression,r,"expression",e,1),oC(n.typeArguments,r,"typeArguments",t,1),r}function c7(e,t=null){let r={type:"TSInterfaceHeritage",expression:e,typeArguments:t},n=oI.TSInterfaceHeritage;return oC(n.expression,r,"expression",e,1),oC(n.typeArguments,r,"typeArguments",t,1),r}function pe(e,t=null,r=null,n){let i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},s=oI.TSInterfaceDeclaration;return oC(s.id,i,"id",e,1),oC(s.typeParameters,i,"typeParameters",t,1),oC(s.extends,i,"extends",r,1),oC(s.body,i,"body",n,1),i}function pt(e){let t={type:"TSInterfaceBody",body:e};return oC(oI.TSInterfaceBody.body,t,"body",e,1),t}function pr(e,t=null,r){let n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},i=oI.TSTypeAliasDeclaration;return oC(i.id,n,"id",e,1),oC(i.typeParameters,n,"typeParameters",t,1),oC(i.typeAnnotation,n,"typeAnnotation",r,1),n}function pn(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeArguments:t},n=oI.TSInstantiationExpression;return oC(n.expression,r,"expression",e,1),oC(n.typeArguments,r,"typeArguments",t,1),r}function pi(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},n=oI.TSAsExpression;return oC(n.expression,r,"expression",e,1),oC(n.typeAnnotation,r,"typeAnnotation",t,1),r}function ps(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},n=oI.TSSatisfiesExpression;return oC(n.expression,r,"expression",e,1),oC(n.typeAnnotation,r,"typeAnnotation",t,1),r}function pa(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},n=oI.TSTypeAssertion;return oC(n.typeAnnotation,r,"typeAnnotation",e,1),oC(n.expression,r,"expression",t,1),r}function po(e){let t={type:"TSEnumBody",members:e};return oC(oI.TSEnumBody.members,t,"members",e,1),t}function pl(e,t){let r={type:"TSEnumDeclaration",id:e,body:t},n=oI.TSEnumDeclaration;return oC(n.id,r,"id",e,1),oC(n.body,r,"body",t,1),r}function pu(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},n=oI.TSEnumMember;return oC(n.id,r,"id",e,1),oC(n.initializer,r,"initializer",t,1),r}function pc(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:"namespace"},n=oI.TSModuleDeclaration;return oC(n.id,r,"id",e,1),oC(n.body,r,"body",t,1),r}function pp(e){let t={type:"TSModuleBlock",body:e};return oC(oI.TSModuleBlock.body,t,"body",e,1),t}function ph(e,t=null,r=null){let n={type:"TSImportType",source:e,qualifier:t,typeArguments:r},i=oI.TSImportType;return oC(i.source,n,"source",e,1),oC(i.qualifier,n,"qualifier",t,1),oC(i.typeArguments,n,"typeArguments",r,1),n}function pd(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t},n=oI.TSImportEqualsDeclaration;return oC(n.id,r,"id",e,1),oC(n.moduleReference,r,"moduleReference",t,1),r}function pf(e){let t={type:"TSExternalModuleReference",expression:e};return oC(oI.TSExternalModuleReference.expression,t,"expression",e,1),t}function pm(e){let t={type:"TSNonNullExpression",expression:e};return oC(oI.TSNonNullExpression.expression,t,"expression",e,1),t}function py(e){let t={type:"TSExportAssignment",expression:e};return oC(oI.TSExportAssignment.expression,t,"expression",e,1),t}function pg(e){let t={type:"TSNamespaceExportDeclaration",id:e};return oC(oI.TSNamespaceExportDeclaration.id,t,"id",e,1),t}function pb(e){let t={type:"TSTypeAnnotation",typeAnnotation:e};return oC(oI.TSTypeAnnotation.typeAnnotation,t,"typeAnnotation",e,1),t}function px(e){let t={type:"TSTypeParameterInstantiation",params:e};return oC(oI.TSTypeParameterInstantiation.params,t,"params",e,1),t}function pS(e){let t={type:"TSTypeParameterDeclaration",params:e};return oC(oI.TSTypeParameterDeclaration.params,t,"params",e,1),t}function pv(e=null,t=null,r){let n={type:"TSTypeParameter",constraint:e,default:t,name:r},i=oI.TSTypeParameter;return oC(i.constraint,n,"constraint",e,1),oC(i.default,n,"default",t,1),oC(i.name,n,"name",r,1),n}function pT(e){return tg("NumberLiteral","NumericLiteral","The node type "),o1(e)}function pE(e,t=""){return tg("RegexLiteral","RegExpLiteral","The node type "),o4(e,t)}function pk(e){return tg("RestProperty","RestElement","The node type "),lr(e)}function pw(e){return tg("SpreadProperty","SpreadElement","The node type "),lM(e)}var pA=Object.defineProperty({__proto__:null,anyTypeAnnotation:l0,argumentPlaceholder:cu,arrayExpression:o_,arrayPattern:lb,arrayTypeAnnotation:l1,arrowFunctionExpression:lx,assignmentExpression:oN,assignmentPattern:lg,awaitExpression:lU,bigIntLiteral:lK,bigIntLiteralTypeAnnotation:uS,binaryExpression:oL,bindExpression:cc,blockStatement:oF,booleanLiteral:o3,booleanLiteralTypeAnnotation:l3,booleanTypeAnnotation:l2,breakStatement:oj,callExpression:oB,catchClause:oR,classAccessorProperty:cp,classBody:lS,classDeclaration:lT,classExpression:lv,classImplements:l5,classMethod:lO,classPrivateMethod:lG,classPrivateProperty:lH,classProperty:lX,conditionalExpression:o$,continueStatement:oU,debuggerStatement:oV,declareClass:l6,declareExportAllDeclaration:us,declareExportDeclaration:ui,declareFunction:l8,declareInterface:l9,declareModule:l7,declareModuleExports:ue,declareOpaqueType:ur,declareTypeAlias:ut,declareVariable:un,declaredPredicate:ua,decorator:ch,directive:oD,directiveLiteral:oM,doExpression:cd,doWhileStatement:oq,emptyStatement:oK,emptyTypeAnnotation:ug,enumBooleanBody:uz,enumBooleanMember:uG,enumDeclaration:uJ,enumDefaultedMember:uZ,enumNumberBody:uW,enumNumberMember:uY,enumStringBody:uX,enumStringMember:uQ,enumSymbolBody:uH,existsTypeAnnotation:uo,exportAllDeclaration:lE,exportDefaultDeclaration:lk,exportDefaultSpecifier:cf,exportNamedDeclaration:lw,exportNamespaceSpecifier:lJ,exportSpecifier:lA,expressionStatement:oJ,file:oz,forInStatement:oW,forOfStatement:lP,forStatement:oX,functionDeclaration:oH,functionExpression:oG,functionTypeAnnotation:ul,functionTypeParam:uu,genericTypeAnnotation:uc,identifier:oY,ifStatement:oQ,import:lq,importAttribute:lZ,importDeclaration:lC,importDefaultSpecifier:lI,importExpression:lV,importNamespaceSpecifier:l_,importSpecifier:lN,indexedAccessType:u0,inferredPredicate:up,interfaceDeclaration:ud,interfaceExtends:uh,interfaceTypeAnnotation:uf,interpreterDirective:oO,intersectionTypeAnnotation:um,jsxAttribute:u2,jsxClosingElement:u3,jsxClosingFragment:ca,jsxElement:u4,jsxEmptyExpression:u5,jsxExpressionContainer:u6,jsxFragment:ci,jsxIdentifier:u9,jsxMemberExpression:u7,jsxNamespacedName:ce,jsxOpeningElement:ct,jsxOpeningFragment:cs,jsxSpreadAttribute:cr,jsxSpreadChild:u8,jsxText:cn,labeledStatement:oZ,logicalExpression:o5,memberExpression:o6,metaProperty:lL,mixedTypeAnnotation:uy,moduleExpression:cm,newExpression:o8,nullLiteral:o2,nullLiteralTypeAnnotation:l4,nullableTypeAnnotation:ub,numberLiteral:pT,numberLiteralTypeAnnotation:ux,numberTypeAnnotation:uv,numericLiteral:o1,objectExpression:o7,objectMethod:le,objectPattern:lD,objectProperty:lt,objectTypeAnnotation:uT,objectTypeCallProperty:uk,objectTypeIndexer:uw,objectTypeInternalSlot:uE,objectTypeProperty:uA,objectTypeSpreadProperty:uP,opaqueType:uC,optionalCallExpression:lW,optionalIndexedAccessType:u1,optionalMemberExpression:lz,parenthesizedExpression:ls,placeholder:co,privateName:lY,program:o9,qualifiedTypeIdentifier:uI,regExpLiteral:o4,regexLiteral:pE,restElement:lr,restProperty:pk,returnStatement:ln,sequenceExpression:li,spreadElement:lM,spreadProperty:pw,staticBlock:lQ,stringLiteral:o0,stringLiteralTypeAnnotation:u_,stringTypeAnnotation:uN,super:lF,switchCase:la,switchStatement:lo,symbolTypeAnnotation:uL,taggedTemplateExpression:lj,templateElement:lB,templateLiteral:lR,thisExpression:ll,thisTypeAnnotation:uO,throwStatement:lu,topicReference:cy,tryStatement:lc,tsAnyKeyword:cP,tsArrayType:cW,tsAsExpression:pi,tsBigIntKeyword:cI,tsBooleanKeyword:cC,tsCallSignatureDeclaration:cT,tsClassImplements:c9,tsConditionalType:c0,tsConstructSignatureDeclaration:cE,tsConstructorType:cV,tsDeclareFunction:cx,tsDeclareMethod:cS,tsEnumBody:po,tsEnumDeclaration:pl,tsEnumMember:pu,tsExportAssignment:py,tsExternalModuleReference:pf,tsFunctionType:cU,tsImportEqualsDeclaration:pd,tsImportType:ph,tsIndexSignature:cA,tsIndexedAccessType:c4,tsInferType:c1,tsInstantiationExpression:pn,tsInterfaceBody:pt,tsInterfaceDeclaration:pe,tsInterfaceHeritage:c7,tsIntersectionType:cZ,tsIntrinsicKeyword:c_,tsLiteralType:c8,tsMappedType:c5,tsMethodSignature:cw,tsModuleBlock:pp,tsModuleDeclaration:pc,tsNamedTupleMember:cY,tsNamespaceExportDeclaration:pg,tsNeverKeyword:cN,tsNonNullExpression:pm,tsNullKeyword:cL,tsNumberKeyword:cO,tsObjectKeyword:cD,tsOptionalType:cH,tsParameterProperty:cb,tsParenthesizedType:c2,tsPropertySignature:ck,tsQualifiedName:cv,tsRestType:cG,tsSatisfiesExpression:ps,tsStringKeyword:cM,tsSymbolKeyword:cF,tsTemplateLiteralType:c6,tsThisType:c$,tsTupleType:cX,tsTypeAliasDeclaration:pr,tsTypeAnnotation:pb,tsTypeAssertion:pa,tsTypeLiteral:cz,tsTypeOperator:c3,tsTypeParameter:pv,tsTypeParameterDeclaration:pS,tsTypeParameterInstantiation:px,tsTypePredicate:cK,tsTypeQuery:cJ,tsTypeReference:cq,tsUndefinedKeyword:cj,tsUnionType:cQ,tsUnknownKeyword:cB,tsVoidKeyword:cR,tupleTypeAnnotation:uD,typeAlias:uF,typeAnnotation:uj,typeCastExpression:uB,typeParameter:uR,typeParameterDeclaration:u$,typeParameterInstantiation:uU,typeofTypeAnnotation:uM,unaryExpression:lp,unionTypeAnnotation:uV,updateExpression:lh,v8IntrinsicIdentifier:cl,variableDeclaration:ld,variableDeclarator:lf,variance:uq,voidPattern:cg,voidTypeAnnotation:uK,whileStatement:lm,withStatement:ly,yieldExpression:l$},Symbol.toStringTag,{value:"Module"});function pP(e){return function(){return tg(e.replace(/^(?:ts|jsx|[a-z])/,e=>e.toUpperCase()),e,"Usage of builders starting with an uppercase letter such as ","uppercase builders"),pA[e](...arguments)}}var pC=pP("arrayExpression"),pI=pP("assignmentExpression"),p_=pP("binaryExpression"),pN=pP("interpreterDirective"),pL=pP("directive"),pO=pP("directiveLiteral"),pD=pP("blockStatement"),pM=pP("breakStatement"),pF=pP("callExpression"),pj=pP("catchClause"),pB=pP("conditionalExpression"),pR=pP("continueStatement"),p$=pP("debuggerStatement"),pU=pP("doWhileStatement"),pV=pP("emptyStatement"),pq=pP("expressionStatement"),pK=pP("file"),pJ=pP("forInStatement"),pz=pP("forStatement"),pW=pP("functionDeclaration"),pX=pP("functionExpression"),pH=pP("identifier"),pG=pP("ifStatement"),pY=pP("labeledStatement"),pQ=pP("stringLiteral"),pZ=pP("numericLiteral"),p0=pP("nullLiteral"),p1=pP("booleanLiteral"),p2=pP("regExpLiteral"),p3=pP("logicalExpression"),p4=pP("memberExpression"),p5=pP("newExpression"),p6=pP("program"),p8=pP("objectExpression"),p9=pP("objectMethod"),p7=pP("objectProperty"),he=pP("restElement"),ht=pP("returnStatement"),hr=pP("sequenceExpression"),hn=pP("parenthesizedExpression"),hi=pP("switchCase"),hs=pP("switchStatement"),ha=pP("thisExpression"),ho=pP("throwStatement"),hl=pP("tryStatement"),hu=pP("unaryExpression"),hc=pP("updateExpression"),hp=pP("variableDeclaration"),hh=pP("variableDeclarator"),hd=pP("whileStatement"),hf=pP("withStatement"),hm=pP("assignmentPattern"),hy=pP("arrayPattern"),hg=pP("arrowFunctionExpression"),hb=pP("classBody"),hx=pP("classExpression"),hS=pP("classDeclaration"),hv=pP("exportAllDeclaration"),hT=pP("exportDefaultDeclaration"),hE=pP("exportNamedDeclaration"),hk=pP("exportSpecifier"),hw=pP("forOfStatement"),hA=pP("importDeclaration"),hP=pP("importDefaultSpecifier"),hC=pP("importNamespaceSpecifier"),hI=pP("importSpecifier"),h_=pP("metaProperty"),hN=pP("classMethod"),hL=pP("objectPattern"),hO=pP("spreadElement"),hD=pP("super"),hM=pP("taggedTemplateExpression"),hF=pP("templateElement"),hj=pP("templateLiteral"),hB=pP("yieldExpression"),hR=pP("awaitExpression"),h$=pP("importExpression"),hU=pP("import"),hV=pP("bigIntLiteral"),hq=pP("exportNamespaceSpecifier"),hK=pP("optionalMemberExpression"),hJ=pP("optionalCallExpression"),hz=pP("classProperty"),hW=pP("classPrivateProperty"),hX=pP("classPrivateMethod"),hH=pP("privateName"),hG=pP("staticBlock"),hY=pP("importAttribute"),hQ=pP("anyTypeAnnotation"),hZ=pP("arrayTypeAnnotation"),h0=pP("booleanTypeAnnotation"),h1=pP("booleanLiteralTypeAnnotation"),h2=pP("nullLiteralTypeAnnotation"),h3=pP("classImplements"),h4=pP("declareClass"),h5=pP("declareFunction"),h6=pP("declareInterface"),h8=pP("declareModule"),h9=pP("declareModuleExports"),h7=pP("declareTypeAlias"),de=pP("declareOpaqueType"),dt=pP("declareVariable"),dr=pP("declareExportDeclaration"),dn=pP("declareExportAllDeclaration"),di=pP("declaredPredicate"),ds=pP("existsTypeAnnotation"),da=pP("functionTypeAnnotation"),dl=pP("functionTypeParam"),du=pP("genericTypeAnnotation"),dc=pP("inferredPredicate"),dp=pP("interfaceExtends"),dh=pP("interfaceDeclaration"),dd=pP("interfaceTypeAnnotation"),df=pP("intersectionTypeAnnotation"),dm=pP("mixedTypeAnnotation"),dy=pP("emptyTypeAnnotation"),dg=pP("nullableTypeAnnotation"),db=pP("numberLiteralTypeAnnotation"),dx=pP("bigIntLiteralTypeAnnotation"),dS=pP("numberTypeAnnotation"),dv=pP("objectTypeAnnotation"),dT=pP("objectTypeInternalSlot"),dE=pP("objectTypeCallProperty"),dk=pP("objectTypeIndexer"),dw=pP("objectTypeProperty"),dA=pP("objectTypeSpreadProperty"),dP=pP("opaqueType"),dC=pP("qualifiedTypeIdentifier"),dI=pP("stringLiteralTypeAnnotation"),d_=pP("stringTypeAnnotation"),dN=pP("symbolTypeAnnotation"),dL=pP("thisTypeAnnotation"),dO=pP("tupleTypeAnnotation"),dD=pP("typeofTypeAnnotation"),dM=pP("typeAlias"),dF=pP("typeAnnotation"),dj=pP("typeCastExpression"),dB=pP("typeParameter"),dR=pP("typeParameterDeclaration"),d$=pP("typeParameterInstantiation"),dU=pP("unionTypeAnnotation"),dV=pP("variance"),dq=pP("voidTypeAnnotation"),dK=pP("enumDeclaration"),dJ=pP("enumBooleanBody"),dz=pP("enumNumberBody"),dW=pP("enumStringBody"),dX=pP("enumSymbolBody"),dH=pP("enumBooleanMember"),dG=pP("enumNumberMember"),dY=pP("enumStringMember"),dQ=pP("enumDefaultedMember"),dZ=pP("indexedAccessType"),d0=pP("optionalIndexedAccessType"),d1=pP("jsxAttribute"),d2=pP("jsxClosingElement"),d3=pP("jsxElement"),d4=pP("jsxEmptyExpression"),d5=pP("jsxExpressionContainer"),d6=pP("jsxSpreadChild"),d8=pP("jsxIdentifier"),d9=pP("jsxMemberExpression"),d7=pP("jsxNamespacedName"),fe=pP("jsxOpeningElement"),ft=pP("jsxSpreadAttribute"),fr=pP("jsxText"),fn=pP("jsxFragment"),fi=pP("jsxOpeningFragment"),fs=pP("jsxClosingFragment"),fa=pP("placeholder"),fo=pP("v8IntrinsicIdentifier"),fl=pP("argumentPlaceholder"),fu=pP("bindExpression"),fc=pP("classAccessorProperty"),fp=pP("decorator"),fh=pP("doExpression"),fd=pP("exportDefaultSpecifier"),ff=pP("moduleExpression"),fm=pP("topicReference"),fy=pP("voidPattern"),fg=pP("tsParameterProperty"),fb=pP("tsDeclareFunction"),fx=pP("tsDeclareMethod"),fS=pP("tsQualifiedName"),fv=pP("tsCallSignatureDeclaration"),fT=pP("tsConstructSignatureDeclaration"),fE=pP("tsPropertySignature"),fk=pP("tsMethodSignature"),fw=pP("tsIndexSignature"),fA=pP("tsAnyKeyword"),fP=pP("tsBooleanKeyword"),fC=pP("tsBigIntKeyword"),fI=pP("tsIntrinsicKeyword"),f_=pP("tsNeverKeyword"),fN=pP("tsNullKeyword"),fL=pP("tsNumberKeyword"),fO=pP("tsObjectKeyword"),fD=pP("tsStringKeyword"),fM=pP("tsSymbolKeyword"),fF=pP("tsUndefinedKeyword"),fj=pP("tsUnknownKeyword"),fB=pP("tsVoidKeyword"),fR=pP("tsThisType"),f$=pP("tsFunctionType"),fU=pP("tsConstructorType"),fV=pP("tsTypeReference"),fq=pP("tsTypePredicate"),fK=pP("tsTypeQuery"),fJ=pP("tsTypeLiteral"),fz=pP("tsArrayType"),fW=pP("tsTupleType"),fX=pP("tsOptionalType"),fH=pP("tsRestType"),fG=pP("tsNamedTupleMember"),fY=pP("tsUnionType"),fQ=pP("tsIntersectionType"),fZ=pP("tsConditionalType"),f0=pP("tsInferType"),f1=pP("tsParenthesizedType"),f2=pP("tsTypeOperator"),f3=pP("tsIndexedAccessType"),f4=pP("tsMappedType"),f5=pP("tsTemplateLiteralType"),f6=pP("tsLiteralType"),f8=pP("tsClassImplements"),f9=pP("tsInterfaceHeritage"),f7=pP("tsInterfaceDeclaration"),me=pP("tsInterfaceBody"),mt=pP("tsTypeAliasDeclaration"),mr=pP("tsInstantiationExpression"),mn=pP("tsAsExpression"),mi=pP("tsSatisfiesExpression"),ms=pP("tsTypeAssertion"),ma=pP("tsEnumBody"),mo=pP("tsEnumDeclaration"),ml=pP("tsEnumMember"),mu=pP("tsModuleDeclaration"),mc=pP("tsModuleBlock"),mp=pP("tsImportType"),mh=pP("tsImportEqualsDeclaration"),md=pP("tsExternalModuleReference"),mf=pP("tsNonNullExpression"),mm=pP("tsExportAssignment"),my=pP("tsNamespaceExportDeclaration"),mg=pP("tsTypeAnnotation"),mb=pP("tsTypeParameterInstantiation"),mx=pP("tsTypeParameterDeclaration"),mS=pP("tsTypeParameter");function mv(e){return!!(e&&aP[e.type])}function mT(e){if(!mv(e)){let t=e?.type??JSON.stringify(e);throw TypeError(`Not a valid node of type "${t}"`)}}function mE(e,t,r){if(!ao(e,t,r))throw Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function mk(e,t){mE("ArrayExpression",e,t)}function mw(e,t){mE("AssignmentExpression",e,t)}function mA(e,t){mE("BinaryExpression",e,t)}function mP(e,t){mE("InterpreterDirective",e,t)}function mC(e,t){mE("Directive",e,t)}function mI(e,t){mE("DirectiveLiteral",e,t)}function m_(e,t){mE("BlockStatement",e,t)}function mN(e,t){mE("BreakStatement",e,t)}function mL(e,t){mE("CallExpression",e,t)}function mO(e,t){mE("CatchClause",e,t)}function mD(e,t){mE("ConditionalExpression",e,t)}function mM(e,t){mE("ContinueStatement",e,t)}function mF(e,t){mE("DebuggerStatement",e,t)}function mj(e,t){mE("DoWhileStatement",e,t)}function mB(e,t){mE("EmptyStatement",e,t)}function mR(e,t){mE("ExpressionStatement",e,t)}function m$(e,t){mE("File",e,t)}function mU(e,t){mE("ForInStatement",e,t)}function mV(e,t){mE("ForStatement",e,t)}function mq(e,t){mE("FunctionDeclaration",e,t)}function mK(e,t){mE("FunctionExpression",e,t)}function mJ(e,t){mE("Identifier",e,t)}function mz(e,t){mE("IfStatement",e,t)}function mW(e,t){mE("LabeledStatement",e,t)}function mX(e,t){mE("StringLiteral",e,t)}function mH(e,t){mE("NumericLiteral",e,t)}function mG(e,t){mE("NullLiteral",e,t)}function mY(e,t){mE("BooleanLiteral",e,t)}function mQ(e,t){mE("RegExpLiteral",e,t)}function mZ(e,t){mE("LogicalExpression",e,t)}function m0(e,t){mE("MemberExpression",e,t)}function m1(e,t){mE("NewExpression",e,t)}function m2(e,t){mE("Program",e,t)}function m3(e,t){mE("ObjectExpression",e,t)}function m4(e,t){mE("ObjectMethod",e,t)}function m5(e,t){mE("ObjectProperty",e,t)}function m6(e,t){mE("RestElement",e,t)}function m8(e,t){mE("ReturnStatement",e,t)}function m9(e,t){mE("SequenceExpression",e,t)}function m7(e,t){mE("ParenthesizedExpression",e,t)}function ye(e,t){mE("SwitchCase",e,t)}function yt(e,t){mE("SwitchStatement",e,t)}function yr(e,t){mE("ThisExpression",e,t)}function yn(e,t){mE("ThrowStatement",e,t)}function yi(e,t){mE("TryStatement",e,t)}function ys(e,t){mE("UnaryExpression",e,t)}function ya(e,t){mE("UpdateExpression",e,t)}function yo(e,t){mE("VariableDeclaration",e,t)}function yl(e,t){mE("VariableDeclarator",e,t)}function yu(e,t){mE("WhileStatement",e,t)}function yc(e,t){mE("WithStatement",e,t)}function yp(e,t){mE("AssignmentPattern",e,t)}function yh(e,t){mE("ArrayPattern",e,t)}function yd(e,t){mE("ArrowFunctionExpression",e,t)}function yf(e,t){mE("ClassBody",e,t)}function ym(e,t){mE("ClassExpression",e,t)}function yy(e,t){mE("ClassDeclaration",e,t)}function yg(e,t){mE("ExportAllDeclaration",e,t)}function yb(e,t){mE("ExportDefaultDeclaration",e,t)}function yx(e,t){mE("ExportNamedDeclaration",e,t)}function yS(e,t){mE("ExportSpecifier",e,t)}function yv(e,t){mE("ForOfStatement",e,t)}function yT(e,t){mE("ImportDeclaration",e,t)}function yE(e,t){mE("ImportDefaultSpecifier",e,t)}function yk(e,t){mE("ImportNamespaceSpecifier",e,t)}function yw(e,t){mE("ImportSpecifier",e,t)}function yA(e,t){mE("MetaProperty",e,t)}function yP(e,t){mE("ClassMethod",e,t)}function yC(e,t){mE("ObjectPattern",e,t)}function yI(e,t){mE("SpreadElement",e,t)}function y_(e,t){mE("Super",e,t)}function yN(e,t){mE("TaggedTemplateExpression",e,t)}function yL(e,t){mE("TemplateElement",e,t)}function yO(e,t){mE("TemplateLiteral",e,t)}function yD(e,t){mE("YieldExpression",e,t)}function yM(e,t){mE("AwaitExpression",e,t)}function yF(e,t){mE("ImportExpression",e,t)}function yj(e,t){mE("Import",e,t)}function yB(e,t){mE("BigIntLiteral",e,t)}function yR(e,t){mE("ExportNamespaceSpecifier",e,t)}function y$(e,t){mE("OptionalMemberExpression",e,t)}function yU(e,t){mE("OptionalCallExpression",e,t)}function yV(e,t){mE("ClassProperty",e,t)}function yq(e,t){mE("ClassPrivateProperty",e,t)}function yK(e,t){mE("ClassPrivateMethod",e,t)}function yJ(e,t){mE("PrivateName",e,t)}function yz(e,t){mE("StaticBlock",e,t)}function yW(e,t){mE("ImportAttribute",e,t)}function yX(e,t){mE("AnyTypeAnnotation",e,t)}function yH(e,t){mE("ArrayTypeAnnotation",e,t)}function yG(e,t){mE("BooleanTypeAnnotation",e,t)}function yY(e,t){mE("BooleanLiteralTypeAnnotation",e,t)}function yQ(e,t){mE("NullLiteralTypeAnnotation",e,t)}function yZ(e,t){mE("ClassImplements",e,t)}function y0(e,t){mE("DeclareClass",e,t)}function y1(e,t){mE("DeclareFunction",e,t)}function y2(e,t){mE("DeclareInterface",e,t)}function y3(e,t){mE("DeclareModule",e,t)}function y4(e,t){mE("DeclareModuleExports",e,t)}function y5(e,t){mE("DeclareTypeAlias",e,t)}function y6(e,t){mE("DeclareOpaqueType",e,t)}function y8(e,t){mE("DeclareVariable",e,t)}function y9(e,t){mE("DeclareExportDeclaration",e,t)}function y7(e,t){mE("DeclareExportAllDeclaration",e,t)}function ge(e,t){mE("DeclaredPredicate",e,t)}function gt(e,t){mE("ExistsTypeAnnotation",e,t)}function gr(e,t){mE("FunctionTypeAnnotation",e,t)}function gn(e,t){mE("FunctionTypeParam",e,t)}function gi(e,t){mE("GenericTypeAnnotation",e,t)}function gs(e,t){mE("InferredPredicate",e,t)}function ga(e,t){mE("InterfaceExtends",e,t)}function go(e,t){mE("InterfaceDeclaration",e,t)}function gl(e,t){mE("InterfaceTypeAnnotation",e,t)}function gu(e,t){mE("IntersectionTypeAnnotation",e,t)}function gc(e,t){mE("MixedTypeAnnotation",e,t)}function gp(e,t){mE("EmptyTypeAnnotation",e,t)}function gh(e,t){mE("NullableTypeAnnotation",e,t)}function gd(e,t){mE("NumberLiteralTypeAnnotation",e,t)}function gf(e,t){mE("BigIntLiteralTypeAnnotation",e,t)}function gm(e,t){mE("NumberTypeAnnotation",e,t)}function gy(e,t){mE("ObjectTypeAnnotation",e,t)}function gg(e,t){mE("ObjectTypeInternalSlot",e,t)}function gb(e,t){mE("ObjectTypeCallProperty",e,t)}function gx(e,t){mE("ObjectTypeIndexer",e,t)}function gS(e,t){mE("ObjectTypeProperty",e,t)}function gv(e,t){mE("ObjectTypeSpreadProperty",e,t)}function gT(e,t){mE("OpaqueType",e,t)}function gE(e,t){mE("QualifiedTypeIdentifier",e,t)}function gk(e,t){mE("StringLiteralTypeAnnotation",e,t)}function gw(e,t){mE("StringTypeAnnotation",e,t)}function gA(e,t){mE("SymbolTypeAnnotation",e,t)}function gP(e,t){mE("ThisTypeAnnotation",e,t)}function gC(e,t){mE("TupleTypeAnnotation",e,t)}function gI(e,t){mE("TypeofTypeAnnotation",e,t)}function g_(e,t){mE("TypeAlias",e,t)}function gN(e,t){mE("TypeAnnotation",e,t)}function gL(e,t){mE("TypeCastExpression",e,t)}function gO(e,t){mE("TypeParameter",e,t)}function gD(e,t){mE("TypeParameterDeclaration",e,t)}function gM(e,t){mE("TypeParameterInstantiation",e,t)}function gF(e,t){mE("UnionTypeAnnotation",e,t)}function gj(e,t){mE("Variance",e,t)}function gB(e,t){mE("VoidTypeAnnotation",e,t)}function gR(e,t){mE("EnumDeclaration",e,t)}function g$(e,t){mE("EnumBooleanBody",e,t)}function gU(e,t){mE("EnumNumberBody",e,t)}function gV(e,t){mE("EnumStringBody",e,t)}function gq(e,t){mE("EnumSymbolBody",e,t)}function gK(e,t){mE("EnumBooleanMember",e,t)}function gJ(e,t){mE("EnumNumberMember",e,t)}function gz(e,t){mE("EnumStringMember",e,t)}function gW(e,t){mE("EnumDefaultedMember",e,t)}function gX(e,t){mE("IndexedAccessType",e,t)}function gH(e,t){mE("OptionalIndexedAccessType",e,t)}function gG(e,t){mE("JSXAttribute",e,t)}function gY(e,t){mE("JSXClosingElement",e,t)}function gQ(e,t){mE("JSXElement",e,t)}function gZ(e,t){mE("JSXEmptyExpression",e,t)}function g0(e,t){mE("JSXExpressionContainer",e,t)}function g1(e,t){mE("JSXSpreadChild",e,t)}function g2(e,t){mE("JSXIdentifier",e,t)}function g3(e,t){mE("JSXMemberExpression",e,t)}function g4(e,t){mE("JSXNamespacedName",e,t)}function g5(e,t){mE("JSXOpeningElement",e,t)}function g6(e,t){mE("JSXSpreadAttribute",e,t)}function g8(e,t){mE("JSXText",e,t)}function g9(e,t){mE("JSXFragment",e,t)}function g7(e,t){mE("JSXOpeningFragment",e,t)}function be(e,t){mE("JSXClosingFragment",e,t)}function bt(e,t){mE("Placeholder",e,t)}function br(e,t){mE("V8IntrinsicIdentifier",e,t)}function bn(e,t){mE("ArgumentPlaceholder",e,t)}function bi(e,t){mE("BindExpression",e,t)}function bs(e,t){mE("ClassAccessorProperty",e,t)}function ba(e,t){mE("Decorator",e,t)}function bo(e,t){mE("DoExpression",e,t)}function bl(e,t){mE("ExportDefaultSpecifier",e,t)}function bu(e,t){mE("ModuleExpression",e,t)}function bc(e,t){mE("TopicReference",e,t)}function bp(e,t){mE("VoidPattern",e,t)}function bh(e,t){mE("TSParameterProperty",e,t)}function bd(e,t){mE("TSDeclareFunction",e,t)}function bf(e,t){mE("TSDeclareMethod",e,t)}function bm(e,t){mE("TSQualifiedName",e,t)}function by(e,t){mE("TSCallSignatureDeclaration",e,t)}function bg(e,t){mE("TSConstructSignatureDeclaration",e,t)}function bb(e,t){mE("TSPropertySignature",e,t)}function bx(e,t){mE("TSMethodSignature",e,t)}function bS(e,t){mE("TSIndexSignature",e,t)}function bv(e,t){mE("TSAnyKeyword",e,t)}function bT(e,t){mE("TSBooleanKeyword",e,t)}function bE(e,t){mE("TSBigIntKeyword",e,t)}function bk(e,t){mE("TSIntrinsicKeyword",e,t)}function bw(e,t){mE("TSNeverKeyword",e,t)}function bA(e,t){mE("TSNullKeyword",e,t)}function bP(e,t){mE("TSNumberKeyword",e,t)}function bC(e,t){mE("TSObjectKeyword",e,t)}function bI(e,t){mE("TSStringKeyword",e,t)}function b_(e,t){mE("TSSymbolKeyword",e,t)}function bN(e,t){mE("TSUndefinedKeyword",e,t)}function bL(e,t){mE("TSUnknownKeyword",e,t)}function bO(e,t){mE("TSVoidKeyword",e,t)}function bD(e,t){mE("TSThisType",e,t)}function bM(e,t){mE("TSFunctionType",e,t)}function bF(e,t){mE("TSConstructorType",e,t)}function bj(e,t){mE("TSTypeReference",e,t)}function bB(e,t){mE("TSTypePredicate",e,t)}function bR(e,t){mE("TSTypeQuery",e,t)}function b$(e,t){mE("TSTypeLiteral",e,t)}function bU(e,t){mE("TSArrayType",e,t)}function bV(e,t){mE("TSTupleType",e,t)}function bq(e,t){mE("TSOptionalType",e,t)}function bK(e,t){mE("TSRestType",e,t)}function bJ(e,t){mE("TSNamedTupleMember",e,t)}function bz(e,t){mE("TSUnionType",e,t)}function bW(e,t){mE("TSIntersectionType",e,t)}function bX(e,t){mE("TSConditionalType",e,t)}function bH(e,t){mE("TSInferType",e,t)}function bG(e,t){mE("TSParenthesizedType",e,t)}function bY(e,t){mE("TSTypeOperator",e,t)}function bQ(e,t){mE("TSIndexedAccessType",e,t)}function bZ(e,t){mE("TSMappedType",e,t)}function b0(e,t){mE("TSTemplateLiteralType",e,t)}function b1(e,t){mE("TSLiteralType",e,t)}function b2(e,t){mE("TSClassImplements",e,t)}function b3(e,t){mE("TSInterfaceHeritage",e,t)}function b4(e,t){mE("TSInterfaceDeclaration",e,t)}function b5(e,t){mE("TSInterfaceBody",e,t)}function b6(e,t){mE("TSTypeAliasDeclaration",e,t)}function b8(e,t){mE("TSInstantiationExpression",e,t)}function b9(e,t){mE("TSAsExpression",e,t)}function b7(e,t){mE("TSSatisfiesExpression",e,t)}function xe(e,t){mE("TSTypeAssertion",e,t)}function xt(e,t){mE("TSEnumBody",e,t)}function xr(e,t){mE("TSEnumDeclaration",e,t)}function xn(e,t){mE("TSEnumMember",e,t)}function xi(e,t){mE("TSModuleDeclaration",e,t)}function xs(e,t){mE("TSModuleBlock",e,t)}function xa(e,t){mE("TSImportType",e,t)}function xo(e,t){mE("TSImportEqualsDeclaration",e,t)}function xl(e,t){mE("TSExternalModuleReference",e,t)}function xu(e,t){mE("TSNonNullExpression",e,t)}function xc(e,t){mE("TSExportAssignment",e,t)}function xp(e,t){mE("TSNamespaceExportDeclaration",e,t)}function xh(e,t){mE("TSTypeAnnotation",e,t)}function xd(e,t){mE("TSTypeParameterInstantiation",e,t)}function xf(e,t){mE("TSTypeParameterDeclaration",e,t)}function xm(e,t){mE("TSTypeParameter",e,t)}function xy(e,t){mE("Standardized",e,t)}function xg(e,t){mE("Expression",e,t)}function xb(e,t){mE("Binary",e,t)}function xx(e,t){mE("Scopable",e,t)}function xS(e,t){mE("BlockParent",e,t)}function xv(e,t){mE("Block",e,t)}function xT(e,t){mE("Statement",e,t)}function xE(e,t){mE("Terminatorless",e,t)}function xk(e,t){mE("CompletionStatement",e,t)}function xw(e,t){mE("Conditional",e,t)}function xA(e,t){mE("Loop",e,t)}function xP(e,t){mE("While",e,t)}function xC(e,t){mE("ExpressionWrapper",e,t)}function xI(e,t){mE("For",e,t)}function x_(e,t){mE("ForXStatement",e,t)}function xN(e,t){mE("Function",e,t)}function xL(e,t){mE("FunctionParent",e,t)}function xO(e,t){mE("Pureish",e,t)}function xD(e,t){mE("Declaration",e,t)}function xM(e,t){mE("FunctionParameter",e,t)}function xF(e,t){mE("PatternLike",e,t)}function xj(e,t){mE("LVal",e,t)}function xB(e,t){mE("TSEntityName",e,t)}function xR(e,t){mE("Literal",e,t)}function x$(e,t){mE("Immutable",e,t)}function xU(e,t){mE("UserWhitespacable",e,t)}function xV(e,t){mE("Method",e,t)}function xq(e,t){mE("ObjectMember",e,t)}function xK(e,t){mE("Property",e,t)}function xJ(e,t){mE("UnaryLike",e,t)}function xz(e,t){mE("Pattern",e,t)}function xW(e,t){mE("Class",e,t)}function xX(e,t){mE("ImportOrExportDeclaration",e,t)}function xH(e,t){mE("ExportDeclaration",e,t)}function xG(e,t){mE("ModuleSpecifier",e,t)}function xY(e,t){mE("Private",e,t)}function xQ(e,t){mE("Flow",e,t)}function xZ(e,t){mE("FlowType",e,t)}function x0(e,t){mE("FlowBaseAnnotation",e,t)}function x1(e,t){mE("FlowDeclaration",e,t)}function x2(e,t){mE("FlowPredicate",e,t)}function x3(e,t){mE("EnumBody",e,t)}function x4(e,t){mE("EnumMember",e,t)}function x5(e,t){mE("JSX",e,t)}function x6(e,t){mE("Miscellaneous",e,t)}function x8(e,t){mE("Accessor",e,t)}function x9(e,t){mE("TypeScript",e,t)}function x7(e,t){mE("TSTypeElement",e,t)}function Se(e,t){mE("TSType",e,t)}function St(e,t){mE("TSBaseType",e,t)}function Sr(e,t){tg("assertNumberLiteral","assertNumericLiteral"),mE("NumberLiteral",e,t)}function Sn(e,t){tg("assertRegexLiteral","assertRegExpLiteral"),mE("RegexLiteral",e,t)}function Si(e,t){tg("assertRestProperty","assertRestElement"),mE("RestProperty",e,t)}function Ss(e,t){tg("assertSpreadProperty","assertSpreadElement"),mE("SpreadProperty",e,t)}function Sa(e,t){tg("assertModuleDeclaration","assertImportOrExportDeclaration"),mE("ModuleDeclaration",e,t)}function So(e){switch(e){case"string":return uN();case"number":return uv();case"undefined":return uK();case"boolean":return l2();case"function":return uc(oY("Function"));case"object":return uc(oY("Object"));case"symbol":return uc(oY("Symbol"));case"bigint":return l0()}throw Error("Invalid typeof value: "+e)}function Sl(e){let t=Array.from(e),r=new Map,n=new Map,i=new Set,s=[];for(let e=0;e<t.length;e++){let a=t[e];if(a&&!s.includes(a)){if(rV(a))return[a];if(sH()){n.set(a.type,a);continue}if(n_(a)){i.has(a.types)||(t.push(...a.types),i.add(a.types));continue}if(r9(a)){let e=function e(t){return tR(t)?t.name:`${t.id.name}.${e(t.qualification)}`}(a.id);if(r.has(e)){let t=r.get(e).typeParameters;t&&a.typeParameters&&(t.params.push(...a.typeParameters.params),t.params=Sl(t.params))}else r.set(e,a);continue}s.push(a)}}for(let[,e]of n)s.push(e);for(let[,e]of r)s.push(e);return s}function Su(e){let t=Sl(e);return 1===t.length?t[0]:uV(t)}function Sc(e){let t=function e(t){let r=Array.from(t),n=new Map,i=new Map,s=new Set,a=[];for(let t=0;t<r.length;t++){let o=r[t];if(!o||a.includes(o))continue;if(ig(o))return[o];if(s6(o)){i.set(o.type,o);continue}if(iV(o)){s.has(o.types)||(r.push(...o.types),s.add(o.types));continue}let l="typeArguments";if(iO(o)&&o[l]){let t=o[l],r=function e(t){return tR(t)?t.name:t6(t)?"this":`${t.right.name}.${e(t.left)}`}(o.typeName);if(n.has(r)){let i=n.get(r)[l];i&&(i.params.push(...t.params),i.params=e(i.params))}else n.set(r,o);continue}a.push(o)}for(let[,e]of i)a.push(e);for(let[,e]of n)a.push(e);return a}(e.map(e=>sl(e)?e.typeAnnotation:e));return 1===t.length?t[0]:cQ(t)}function Sp(){return lp("void",o1(0),!0)}var{hasOwn:Sh}=Object;function Sd(e,t,r,n){return e&&"string"==typeof e.type?Sy(e,t,r,n):e}function Sf(e,t,r,n){return Array.isArray(e)?e.map(e=>Sd(e,t,r,n)):Sd(e,t,r,n)}function Sm(e,t=!0,r=!1){return e?Sy(e,t,r,new Map):e}function Sy(e,t=!0,r=!1,n){if(!e)return e;let{type:i}=e,s={type:e.type};if(tR(e))s.name=e.name,Sh(e,"optional")&&"boolean"==typeof e.optional&&(s.optional=e.optional),Sh(e,"typeAnnotation")&&(s.typeAnnotation=t?Sf(e.typeAnnotation,!0,r,n):e.typeAnnotation),Sh(e,"decorators")&&(s.decorators=t?Sf(e.decorators,!0,r,n):e.decorators);else if(Sh(a_,i))for(let a of Object.keys(a_[i]))Sh(e,a)&&(t?s[a]=tD(e)&&"comments"===a?Sg(e.comments,t,r,n):Sf(e[a],!0,r,n):s[a]=e[a]);else throw Error(`Unknown node type: "${i}"`);return Sh(e,"loc")&&(r?s.loc=null:s.loc=e.loc),Sh(e,"leadingComments")&&(s.leadingComments=Sg(e.leadingComments,t,r,n)),Sh(e,"innerComments")&&(s.innerComments=Sg(e.innerComments,t,r,n)),Sh(e,"trailingComments")&&(s.trailingComments=Sg(e.trailingComments,t,r,n)),Sh(e,"extra")&&(s.extra={...e.extra}),s}function Sg(e,t,r,n){return e&&t?e.map(e=>{let t=n.get(e);if(t)return t;let{type:i,value:s,loc:a}=e,o={type:i,value:s,loc:a};return r&&(o.loc=void 0),n.set(e,o),o}):e}function Sb(e){return Sm(e,!1)}function Sx(e){return Sm(e)}function SS(e){return Sm(e,!0,!0)}function Sv(e){return Sm(e,!1,!0)}function ST(e,t,r){if(!r||!e)return e;let n=`${t}Comments`;return e[n]?"leading"===t?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}function SE(e,t,r,n){return ST(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}function Sk(e,t,r){if(t&&r){let n=r[e];if(!n)return;let i=t[e];t[e]=Array.from(i?new Set([...i,...n].filter(Boolean)):n)}}function Sw(e,t){Sk("innerComments",e,t)}function SA(e,t){Sk("leadingComments",e,t)}function SP(e,t){Sk("trailingComments",e,t)}function SC(e,t){return SP(e,t),SA(e,t),Sw(e,t),e}function SI(e){return ah.forEach(t=>{e[t]=null}),e}var S_=aI.Standardized,SN=aI.Expression,SL=aI.Binary,SO=aI.Scopable,SD=aI.BlockParent,SM=aI.Block,SF=aI.Statement,Sj=aI.Terminatorless,SB=aI.CompletionStatement,SR=aI.Conditional,S$=aI.Loop,SU=aI.While,SV=aI.ExpressionWrapper,Sq=aI.For,SK=aI.ForXStatement,SJ=aI.Function,Sz=aI.FunctionParent,SW=aI.Pureish,SX=aI.Declaration,SH=aI.FunctionParameter,SG=aI.PatternLike,SY=aI.LVal,SQ=aI.TSEntityName,SZ=aI.Literal,S0=aI.Immutable,S1=aI.UserWhitespacable,S2=aI.Method,S3=aI.ObjectMember,S4=aI.Property,S5=aI.UnaryLike,S6=aI.Pattern,S8=aI.Class,S9=aI.ImportOrExportDeclaration,S7=aI.ExportDeclaration,ve=aI.ModuleSpecifier,vt=aI.Private,vr=aI.Flow,vn=aI.FlowType,vi=aI.FlowBaseAnnotation,vs=aI.FlowDeclaration,va=aI.FlowPredicate,vo=aI.EnumBody,vl=aI.EnumMember,vu=aI.JSX,vc=aI.Miscellaneous,vp=aI.Accessor,vh=aI.TypeScript,vd=aI.TSTypeElement,vf=aI.TSType,vm=aI.TSBaseType,vy=S9;function vg(e,t){let r;return tk(e)?e:(tL(e)?r=[]:(sb(e)||(e=sP(t)?ln(e):oJ(e)),r=[e]),oF(r))}function vb(e,t="body"){let r=vg(e[t],e);return e[t]=r,r}function vx(e){let t="";for(let r of e+="")t+=tn(r.codePointAt(0))?r:"-";return al(t=(t=t.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""}))||(t=`_${t}`),t||"_"}function vS(e){return("eval"===(e=vx(e))||"arguments"===e)&&(e="_"+e),e}function vv(e,t=e.key||e.property){return!e.computed&&tR(t)&&(t=o0(t.name)),t}function vT(e){if(tO(e)&&(e=e.expression),sd(e))return e;if(sV(e)?(e.type="ClassExpression",e.abstract=!1):sP(e)&&(e.type="FunctionExpression"),!sd(e))throw Error(`cannot turn ${e.type} to an expression`);return e}var vE=Symbol(),vk=Symbol();function vw(e,t,r){if(!e)return!1;let n=aP[e.type];if(!n)return!1;let i=t(e,r=r||{});if(void 0!==i)switch(i){case vE:return!1;case vk:return!0}for(let i of n){let n=e[i];if(n){if(Array.isArray(n)){for(let e of n)if(vw(e,t,r))return!0}else if(vw(n,t,r))return!0}}return!1}vw.skip=vE,vw.stop=vk;var vA=["tokens","start","end","loc","raw","rawValue"],vP=[...ah,"comments",...vA];function vC(e,t={}){for(let r of t.preserveComments?vA:vP)null!=e[r]&&(e[r]=void 0);for(let t of Object.keys(e))t.startsWith("_")&&null!=e[t]&&(e[t]=void 0);for(let t of Object.getOwnPropertySymbols(e))e[t]=null}function vI(e,t){return vw(e,vC,t),e}function v_(e,t=e.key){let r;return"method"===e.kind?v_.increment()+"":(r=tR(t)?t.name:tV(t)?JSON.stringify(t.value):JSON.stringify(vI(Sm(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}function vN(e,t){let r;if(sb(e))return e;let n=!1;if(sV(e))n=!0,r="ClassDeclaration";else if(sP(e))n=!0,r="FunctionDeclaration";else if(tx(e))return oJ(e);if(n&&!e.id&&(r=!1),!r)if(t)return!1;else throw Error(`cannot turn ${e.type} to a statement`);return e.type=r,e}v_.uid=0,v_.increment=function(){return v_.uid>=Number.MAX_SAFE_INTEGER?v_.uid=0:v_.uid++};var vL=Function.call.bind(Object.prototype.toString);function vO(e,t,r=!1){return e.object=o6(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}function vD(e,t){if(!e||!t)return e;for(let r of aA.optional)null==e[r]&&(e[r]=t[r]);for(let r of Object.keys(t))r.startsWith("_")&&"__clone"!==r&&(e[r]=t[r]);for(let r of aA.force)e[r]=t[r];return SC(e,t),e}function vM(e,t){if(rk(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=o6(t,e.object),e}function vF(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":r[e.name]=e}}return r}function vj(e,t,r,n){let i=[].concat(e),s=Object.create(null);for(;i.length;){let e=i.shift();if(!e||n&&(tx(e)||t7(e)||re(e)))continue;if(tR(e)){t?(s[e.name]=s[e.name]||[]).push(e):s[e.name]=e;continue}if(sK(e)&&!rp(e)){s_(e.declaration)&&i.push(e.declaration);continue}if(r){if(tj(e)){i.push(e.id);continue}if(tB(e)||ru(e))continue}let a=vj.keys[e.type];if(a)for(let t=0;t<a.length;t++){let r=e[a[t]];r&&(Array.isArray(r)?i.push(...r):i.push(r))}}return s}function vB(e,t){return vj(e,t,!0)}function vR(e){return!e.computed||sM(e.key)?e.key:null}function v$(e,t){var r;let n;if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let i="";if(tZ(t,{value:e})?n=vR(t):tQ(e)||rv(e)?(n=vR(e),"get"===e.kind?i="get ":"set"===e.kind&&(i="set ")):rr(t)&&t.init===e?n=t.id:tx(t,{operator:"=",right:e})&&(n=t.left),!n)return null;let s=sM(n)?tK(r=n)?"null":tz(r)?`/${r.pattern}/${r.flags}`:rP(r)?r.quasis.map(e=>e.value.raw).join(""):void 0!==r.value?String(r.value):null:tR(n)?n.name:rR(n)?n.id.name:null;return null==s?null:{name:i+s,originalNode:n}}function vU(e,t,r){"function"==typeof t&&(t={enter:t});let{enter:n,exit:i}=t;!function e(t,r,n,i,s){let a=aP[t.type];if(a){for(let o of(r&&r(t,s,i),a)){let a=t[o];if(Array.isArray(a))for(let l=0;l<a.length;l++){let u=a[l];u&&(s.push({node:t,key:o,index:l}),e(u,r,n,i,s),s.pop())}else a&&(s.push({node:t,key:o}),e(a,r,n,i,s),s.pop())}n&&n(t,s,i)}}(e,n,i,r,[])}function vV(e,t,r){if(r&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===r.type)return!1;let n=vj.keys[t.type];if(n)for(let r=0;r<n.length;r++){let i=t[n[r]];if(Array.isArray(i)){if(i.includes(e))return!0}else if(i===e)return!0}return!1}function vq(e){return rt(e)&&"var"!==e.kind}function vK(e){return tj(e)||rc(e)||vq(e)}function vJ(e){return!!(as(e.type,"Immutable")||tR(e)&&"undefined"===e.name)||!1}function vz(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return r?.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":if(t.key===e)return!!t.computed;break;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":if(r?.source)return!1;return t.local===e;case"TSEnumMember":return t.id!==e}return!0}function vW(e,t){return!(tk(e)&&(sP(t)||tP(t)))&&(!!(sU(e)&&(sP(t)||tP(t)))||sm(e))}function vX(e){return rg(e)||tR(e.imported||e.exported,{name:"default"})}vj.keys={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};var vH=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function vG(e){return al(e)&&!vH.has(e)}function vY(e){return rt(e)&&"var"===e.kind}var vQ={isReactComponent:ai,isCompatTag:function(e){return!!e&&/^[a-z]/.test(e)},buildChildren:function(e){let t=[];for(let r=0;r<e.children.length;r++){let n=e.children[r];if(n1(n)){!function(e,t){let r=e.value.split(/\r\n|\n|\r/),n=0;for(let e=0;e<r.length;e++)/[^ \t]/.exec(r[e])&&(n=e);let i="";for(let e=0;e<r.length;e++){let t=r[e],s=0===e,a=e===r.length-1,o=e===n,l=t.replace(/\t/g," ");s||(l=l.replace(/^ +/,"")),a||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),i+=l)}i&&t.push(vD(o0(i),e))}(n,t);continue}nX(n)&&(n=n.expression),nW(n)||t.push(n)}return t}},vZ=class{constructor(e,t,r){this.line=void 0,this.column=void 0,void 0!==r&&(this.index=void 0),this.line=e,this.column=t,void 0!==r&&(this.index=r)}},v0=class{start;end;filename;identifierName;constructor(e,t){this.start=e,this.end=t}};function v1(e,t){let{line:r,column:n,index:i}=e;return new vZ(r,n+t,i+t)}var v2="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",v3={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},v4=e=>"UpdateExpression"===e.type?v3.UpdateExpression[`${e.prefix}`]:v3[e.type],v5=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);function v6(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function v8(e,t){if(Array.isArray(e))return t=>v8(t,e[0]);let r={};for(let n of Object.keys(e)){let i=e[n],{message:s,...a}="string"==typeof i?{message:()=>i}:"function"==typeof i?{message:i}:i,o="string"==typeof s?()=>s:s;r[n]=function({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let i="MissingPlugin"===r||"MissingOneOfPlugins"===r;return function s(a,o,l){let u=SyntaxError();return u.code=t,u.reasonCode=r,u.loc=a,u.pos=o,u.syntaxPlugin=n,i&&(u.missingPlugin=l.missingPlugin),v6(u,"clone",function(e={}){let{line:t,column:r,index:n=o}=e.loc??a;return s(new vZ(t,r),n,{...l,...e.details})}),v6(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let t=`${e(l)} (${a.line}:${a.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),u}}({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:o,...t?{syntaxPlugin:t}:{},...a})}return r}var v9={...v8({ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:v2},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:v2}}),...v8({AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
19
+ - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
20
+ - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:({phase:e})=>`\`import${e?`.${e}`:""}()\` requires exactly one or two arguments.`,ImportCallNotNewExpression:({phase:e})=>`Cannot use new with import${e?`.${e}`:""}().`,ImportCallSpreadArgument:({phase:e})=>`\`...\` is not allowed in \`import${e?`.${e}`:""}()\`.`,IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${v4(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${v4(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${v4(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."}),...v8({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),...v8({ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`}),...v8`pipelineOperator`({PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${v4({type:e})}; please wrap it in parentheses.`,PipelineUnparenthesized:"Cannot mix binary operator with solo-await F#-style pipeline. Please wrap the pipeline in parentheses."}),...v8`functionBind`({UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."})};function v7(e){let{start:t,end:r}=e.loc;return e.loc.start=new vZ(t.line,t.column),e.loc.end=new vZ(r.line,r.column),e}var Te=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(e,t={}){this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null}},Tt=new Map;function Tr(e,t={}){t.keyword=e;let r=Tp(e,t);return Tt.set(e,r),r}function Tn(e,t){return Tp(e,{beforeExpr:!0,binop:t})}var Ti=-1,Ts=[],Ta=[],To=[],Tl=[],Tu=[],Tc=[];function Tp(e,t={}){return++Ti,Ta.push(e),To.push(t.binop??-1),Tl.push(t.beforeExpr??!1),Tu.push(t.startsExpr??!1),Tc.push(t.prefix??!1),Ts.push(new Te(e,t)),Ti}function Th(e,t={}){return++Ti,Tt.set(e,Ti),Ta.push(e),To.push(t.binop??-1),Tl.push(t.beforeExpr??!1),Tu.push(t.startsExpr??!1),Tc.push(t.prefix??!1),Ts.push(new Te("name",t)),Ti}var Td={bracketL:Tp("[",{beforeExpr:!0,startsExpr:!0}),bracketR:Tp("]"),braceL:Tp("{",{beforeExpr:!0,startsExpr:!0}),braceBarL:Tp("{|",{beforeExpr:!0,startsExpr:!0}),braceR:Tp("}"),braceBarR:Tp("|}"),parenL:Tp("(",{beforeExpr:!0,startsExpr:!0}),parenR:Tp(")"),comma:Tp(",",{beforeExpr:!0}),semi:Tp(";",{beforeExpr:!0}),colon:Tp(":",{beforeExpr:!0}),doubleColon:Tp("::",{beforeExpr:!0}),dot:Tp("."),question:Tp("?",{beforeExpr:!0}),questionDot:Tp("?."),arrow:Tp("=>",{beforeExpr:!0}),template:Tp("template"),ellipsis:Tp("...",{beforeExpr:!0}),backQuote:Tp("`",{startsExpr:!0}),dollarBraceL:Tp("${",{beforeExpr:!0,startsExpr:!0}),templateTail:Tp("...`",{startsExpr:!0}),templateNonTail:Tp("...${",{beforeExpr:!0,startsExpr:!0}),at:Tp("@"),hash:Tp("#",{startsExpr:!0}),interpreterDirective:Tp("#!..."),eq:Tp("=",{beforeExpr:!0,isAssign:!0}),assign:Tp("_=",{beforeExpr:!0,isAssign:!0}),slashAssign:Tp("_=",{beforeExpr:!0,isAssign:!0}),xorAssign:Tp("_=",{beforeExpr:!0,isAssign:!0}),moduloAssign:Tp("_=",{beforeExpr:!0,isAssign:!0}),incDec:Tp("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),bang:Tp("!",{beforeExpr:!0,prefix:!0,startsExpr:!0}),tilde:Tp("~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),doubleCaret:Tp("^^",{startsExpr:!0}),doubleAt:Tp("@@",{startsExpr:!0}),pipeline:Tn("|>",0),nullishCoalescing:Tn("??",1),logicalOR:Tn("||",1),logicalAND:Tn("&&",2),bitwiseOR:Tn("|",3),bitwiseXOR:Tn("^",4),bitwiseAND:Tn("&",5),equality:Tn("==/!=/===/!==",6),lt:Tn("</>/<=/>=",7),gt:Tn("</>/<=/>=",7),relational:Tn("</>/<=/>=",7),bitShift:Tn("<</>>/>>>",8),bitShiftL:Tn("<</>>/>>>",8),bitShiftR:Tn("<</>>/>>>",8),plusMin:Tp("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Tp("%",{binop:10,startsExpr:!0}),star:Tp("*",{binop:10}),slash:Tn("/",10),exponent:Tp("**",{beforeExpr:!0,binop:11,rightAssociative:!0}),_in:Tr("in",{beforeExpr:!0,binop:7}),_instanceof:Tr("instanceof",{beforeExpr:!0,binop:7}),_break:Tr("break"),_case:Tr("case",{beforeExpr:!0}),_catch:Tr("catch"),_continue:Tr("continue"),_debugger:Tr("debugger"),_default:Tr("default",{beforeExpr:!0}),_else:Tr("else",{beforeExpr:!0}),_finally:Tr("finally"),_function:Tr("function",{startsExpr:!0}),_if:Tr("if"),_return:Tr("return",{beforeExpr:!0}),_switch:Tr("switch"),_throw:Tr("throw",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_try:Tr("try"),_var:Tr("var"),_const:Tr("const"),_with:Tr("with"),_new:Tr("new",{beforeExpr:!0,startsExpr:!0}),_this:Tr("this",{startsExpr:!0}),_super:Tr("super",{startsExpr:!0}),_class:Tr("class",{startsExpr:!0}),_extends:Tr("extends",{beforeExpr:!0}),_export:Tr("export"),_import:Tr("import",{startsExpr:!0}),_null:Tr("null",{startsExpr:!0}),_true:Tr("true",{startsExpr:!0}),_false:Tr("false",{startsExpr:!0}),_typeof:Tr("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Tr("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Tr("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_do:Tr("do",{isLoop:!0,beforeExpr:!0}),_for:Tr("for",{isLoop:!0}),_while:Tr("while",{isLoop:!0}),_as:Th("as",{startsExpr:!0}),_assert:Th("assert",{startsExpr:!0}),_async:Th("async",{startsExpr:!0}),_await:Th("await",{startsExpr:!0}),_defer:Th("defer",{startsExpr:!0}),_from:Th("from",{startsExpr:!0}),_get:Th("get",{startsExpr:!0}),_let:Th("let",{startsExpr:!0}),_meta:Th("meta",{startsExpr:!0}),_of:Th("of",{startsExpr:!0}),_sent:Th("sent",{startsExpr:!0}),_set:Th("set",{startsExpr:!0}),_source:Th("source",{startsExpr:!0}),_static:Th("static",{startsExpr:!0}),_using:Th("using",{startsExpr:!0}),_yield:Th("yield",{startsExpr:!0}),_asserts:Th("asserts",{startsExpr:!0}),_checks:Th("checks",{startsExpr:!0}),_exports:Th("exports",{startsExpr:!0}),_global:Th("global",{startsExpr:!0}),_implements:Th("implements",{startsExpr:!0}),_intrinsic:Th("intrinsic",{startsExpr:!0}),_infer:Th("infer",{startsExpr:!0}),_is:Th("is",{startsExpr:!0}),_mixins:Th("mixins",{startsExpr:!0}),_proto:Th("proto",{startsExpr:!0}),_require:Th("require",{startsExpr:!0}),_satisfies:Th("satisfies",{startsExpr:!0}),_keyof:Th("keyof",{startsExpr:!0}),_readonly:Th("readonly",{startsExpr:!0}),_unique:Th("unique",{startsExpr:!0}),_abstract:Th("abstract",{startsExpr:!0}),_declare:Th("declare",{startsExpr:!0}),_enum:Th("enum",{startsExpr:!0}),_module:Th("module",{startsExpr:!0}),_namespace:Th("namespace",{startsExpr:!0}),_interface:Th("interface",{startsExpr:!0}),_type:Th("type",{startsExpr:!0}),_opaque:Th("opaque",{startsExpr:!0}),name:Tp("name",{startsExpr:!0}),placeholder:Tp("%%",{startsExpr:!0}),string:Tp("string",{startsExpr:!0}),num:Tp("num",{startsExpr:!0}),bigint:Tp("bigint",{startsExpr:!0}),regexp:Tp("regexp",{startsExpr:!0}),privateName:Tp("#name",{startsExpr:!0}),eof:Tp("eof"),jsxName:Tp("jsxName"),jsxText:Tp("jsxText",{beforeExpr:!0}),jsxTagStart:Tp("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Tp("jsxTagEnd")};function Tf(e){return e>=89&&e<=129}function Tm(e){return e>=54&&e<=129}function Ty(e){return e>=54&&e<=88}function Tg(e){return e>=35&&e<=55}function Tb(e){return e>=20&&e<=21}var Tx=class{constructor(e,t){this.token=e,this.preserveSpace=!!t}token;preserveSpace},TS={brace:new Tx("{"),j_oTag:new Tx("<tag"),j_cTag:new Tx("</tag"),j_expr:new Tx("<tag>...</tag>",!0)},Tv=/[\p{ID_Start}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d]/u,TT=/[\p{ID_Continue}\u0558\u058b\u058c\u088f\u0c5c\u0cdc\u208f\u209d-\u209f\ua7ce\ua7cf\ua7d2\ua7d4\ua7dd\ua7e2\ua7f1\uab6c\uab6d\u05c8\u05c9\u0b53\u0b54\u1acf-\u1af0]/u,TE=[1979,4,385,25,1388,2,18,21,3100,0,678,43,22,0,1662,0,6,10,209,310,18458,24,3,24,287,4,6146,7,1239,4,47,23,96,114,14,913,15,50,8017,5,64,0,9534,0,2169,5,7,86,15,6,55,50,1729,30,2,2,2,1,2,6,3,4,10,1,53307,5,223,0,5764,11,21763,4297,39815,11327],Tk=[3787,4,33,11,3173,7,633,9,7,0,45879,1,296,2,9,1,3,0,33,1,5218,0,3,0,8,1,6,0];function Tw(e,t){let r=65536;for(let n=0,i=t.length;n<i&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function TA(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&Tv.test(String.fromCharCode(e)):!isNaN(e)&&e<=1114111&&(Tv.test(String.fromCodePoint(e))||Tw(e,TE))))}function TP(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&TT.test(String.fromCharCode(e)):!isNaN(e)&&e<=1114111&&(TT.test(String.fromCodePoint(e))||Tw(e,TE)||Tw(e,Tk)))))}var TC=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),TI=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),T_=new Set(["eval","arguments"]);function TN(e,t){return t&&"await"===e||"enum"===e}function TL(e,t){return TN(e,t)||TI.has(e)}function TO(e,t){return TL(e,t)||T_.has(e)}var TD=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]),TM=class{flags=0;names=new Map;firstLexicalName="";constructor(e){this.flags=e}},TF=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(e,t){this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(64&e)>0&&(2&e)==0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(128&t)return!0;if(3779&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new TM(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){let n=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(n,e,t,r);let i=n.names.get(e)||0;16&t?i|=4:(n.firstLexicalName||(n.firstLexicalName=e),i|=2),n.names.set(e,i),8&t&&this.maybeExportDefined(n,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(n=this.scopeStack[i],this.checkRedeclarationInScope(n,e,t,r),n.names.set(e,1|(n.names.get(e)||0)),this.maybeExportDefined(n,e),!(3715&n.flags));--i);this.parser.inModule&&1&n.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,n){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(v9.VarRedeclaration,n,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);let n=e.names.get(t)||0;return 16&r?(2&n)>0||!this.treatFunctionsAsVarInScope(e)&&(1&n)>0:(2&n)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&n)>0}checkLocalExport(e){let{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(3715&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(3779&t&&!(4&t))return t}}},Tj={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},TB=/\r\n|[\r\n\u2028\u2029]/g;function TR(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function T$(e,t,r){for(let n=t;n<r;n++)if(TR(e.charCodeAt(n)))return!0;return!1}var TU=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,TV=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Tq=v8`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function TK(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function TJ(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return TJ(e.object)+"."+TJ(e.property);throw Error("Node had unexpected type: "+e.type)}var Tz=class extends TM{tsNames=new Map},TW=class extends TF{get inTSNamespace(){let e=this.scopeStack;return e.length>=2&&0===e[e.length-1].flags&&(2048&e[e.length-2].flags)>0}importsStack=[];createScope(e){return this.importsStack.push(new Set),new Tz(e)}enter(e){3072&e&&this.importsStack.push(new Set),super.enter(e)}exit(){let e=super.exit();return 3072&e&&this.importsStack.pop(),e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1){for(let t=0;t<r-1;t++)if(this.importsStack[t].has(e))return!0}return!1}declareName(e,t,r){if(4096&t){this.hasImport(e,!0)&&this.parser.raise(v9.VarRedeclaration,r,{identifierName:e}),this.importsStack[this.importsStack.length-1].add(e);return}let n=this.currentScope(),i=n.tsNames.get(e)||0;if(1024&t){this.maybeExportDefined(n,e),n.tsNames.set(e,16|i);return}super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(n,e,t,r),this.maybeExportDefined(n,e)),i|=1),256&t&&(i|=2),512&t&&(i|=4),128&t&&(i|=8),i&&n.tsNames.set(e,i)}isRedeclaredInScope(e,t,r){let n=e.tsNames.get(t);if((2&n)>0)return!(256&r)||(512&r)>0!=(4&n)>0;if(128&r&&(8&n)>0)if(2&e.names.get(t))return!!(1&r);else return!1;return!!(2&r)&&(1&n)>0||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let e=r-1;e>=0;e--){let r=this.scopeStack[e].tsNames.get(t);if((1&r)>0||(16&r)>0)return}super.checkLocalExport(e)}},TX=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{let[t,r]=e;if(!this.hasPlugin(t))return!1;let n=this.plugins.get(t);for(let e of Object.keys(r))if(n?.[e]!==r[e])return!1;return!0}}getPluginOption(e,t){return this.plugins.get(e)?.[t]}};function TH(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function TG(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function TY(e,t,r){let n=null,i=t.length;for(;null===n&&i>0;)n=t[--i];null===n||n.start>r.start?TG(e,r.comments):TH(n,r.comments)}var TQ=class extends TX{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(0===r)return;let n=r-1,i=t[n];i.start===e.end&&(i.leadingNode=e,n--);let s=e.start;for(;n>=0;n--){let r=t[n],i=r.end;if(i>s)r.containingNode=e,this.finalizeComment(r),t.splice(n,1);else{i===s&&(r.trailingNode=e);break}}}finalizeComment(e){let{comments:t}=e;if(null!==e.leadingNode||null!==e.trailingNode){var r;null!==e.leadingNode&&TH(e.leadingNode,t),null!==e.trailingNode&&(r=e.trailingNode,void 0===r.leadingComments?r.leadingComments=t:r.leadingComments.unshift(...t))}else{let r=e.containingNode,n=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(n)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":TY(r,r.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":TY(r,r.arguments,e);break;case"ImportExpression":TY(r,[r.source,r.options??null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":TY(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":TY(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":TY(r,r.specifiers,e);break;case"TSEnumBody":TY(r,r.members,e);break;case"TSInterfaceBody":TY(r,r.body,e);break;default:TG(r,t)}else TG(r,t)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(0===r)return;let n=t[r-1];n.leadingNode===e&&(n.leadingNode=null)}takeSurroundingComments(e,t,r){let{commentStack:n}=this.state,i=n.length;if(0===i)return;let s=i-1;for(;s>=0;s--){let i=n[s],a=i.end;if(i.start===r)i.leadingNode=e;else if(a===t)i.trailingNode=e;else if(a<t)break}}},TZ=class e{flags=2048;get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:e,sourceType:t,startIndex:r,startLine:n,startColumn:i}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=r,this.curLine=n,this.lineStart=-i,this.startLoc=this.endLoc=new vZ(n,i,r)}errors=[];noArrowAt=[];noArrowParamsConversionAt=[];get canStartArrow(){return(2&this.flags)>0}set canStartArrow(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get inConditionalConsequent(){return(256&this.flags)>0}set inConditionalConsequent(e){e?this.flags|=256:this.flags&=-257}get inHackPipelineBody(){return(512&this.flags)>0}set inHackPipelineBody(e){e?this.flags|=512:this.flags&=-513}get seenTopicReference(){return(1024&this.flags)>0}set seenTopicReference(e){e?this.flags|=1024:this.flags&=-1025}labels=[];commentsLen=0;commentStack=[];pos=0;type=135;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[TS.brace];get canStartJSXElement(){return(2048&this.flags)>0}set canStartJSXElement(e){e?this.flags|=2048:this.flags&=-2049}get containsEsc(){return(4096&this.flags)>0}set containsEsc(e){e?this.flags|=4096:this.flags&=-4097}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(8192&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=8192:this.flags&=-8193}strictErrors=new Map;tokensLength=0;curPosition(){return new vZ(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},T0={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},T1=e=>48===e||49===e,T2=e=>e>=48&&e<=55,T3=e=>e>=48&&e<=57,T4=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102;function T5(e,t,r,n,i,s){let a=r,o=n,l=i,u="",c=null,p=r,{length:h}=t;for(;;){var d,f,m,y;if(r>=h){s.unterminated(a,o,l),u+=t.slice(p,r);break}let g=t.charCodeAt(r);if(d=e,f=g,m=t,y=r,"template"===d?96===f||36===f&&123===m.charCodeAt(y+1):f===("double"===d?34:39)){u+=t.slice(p,r);break}if(92===g){u+=t.slice(p,r);let a=function(e,t,r,n,i,s){let a=!i;t++;let o=e=>({pos:t,ch:e,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let i;return{code:i,pos:t}=T6(e,t,r,n,2,!1,a,s),o(null===i?null:String.fromCharCode(i))}case 117:{let i;return{code:i,pos:t}=T9(e,t,r,n,a,s),o(null===i?null:String.fromCodePoint(i))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);s.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let a=t-1,l=/^[0-7]+/.exec(e.slice(a,t+2))[0],u=parseInt(l,8);u>255&&(u=parseInt(l=l.slice(0,-1),8)),t+=l.length-1;let c=e.charCodeAt(t);if("0"!==l||56===c||57===c)if(i)return o(null);else s.strictNumericEscape(a,r,n);return o(String.fromCharCode(u))}return o(String.fromCharCode(l))}}(t,r,n,i,"template"===e,s);null!==a.ch||c?u+=a.ch:c={pos:r,lineStart:n,curLine:i},({pos:r,lineStart:n,curLine:i}=a),p=r}else 8232===g||8233===g?(++r,++i,n=r):10===g||13===g?"template"===e?(u+=t.slice(p,r)+"\n",++r,13===g&&10===t.charCodeAt(r)&&++r,++i,p=n=r):s.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:i}}function T6(e,t,r,n,i,s,a,o){let l,u=t;return{n:l,pos:t}=T8(e,t,r,n,16,i,s,!1,o,!a),null===l&&(a?o.invalidEscapeSequence(u,r,n):t=u-1),{code:l,pos:t}}function T8(e,t,r,n,i,s,a,o,l,u){let c=t,p=16===i?T0.hex:T0.decBinOct,h=16===i?T4:10===i?T3:8===i?T2:T1,d=!1,f=0;for(let c=0,m=null==s?1/0:s;c<m;++c){let s,c=e.charCodeAt(t);if(95===c&&"bail"!==o){let i=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!h(s)||p.has(i)||p.has(s)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(c>=97)s=c-97+10;else if(c>=65)s=c-65+10;else s=c>=48&&c<=57?c-48:1/0;if(s>=i)if(s<=9){if(u)return{n:null,pos:t};l.invalidDigit(t,r,n,i),s=0}else if(a)s=0,d=!0;else break;++t,f=f*i+s}return t===c||null!=s&&t-c!==s||d?{n:null,pos:t}:{n:f,pos:t}}function T9(e,t,r,n,i,s){let a;if(123===e.charCodeAt(t)){if(++t,{code:a,pos:t}=T6(e,t,r,n,e.indexOf("}",t)-t,!0,i,s),++t,null!==a&&a>1114111)if(!i)return{code:null,pos:t};else s.invalidCodePoint(t,r,n)}else({code:a,pos:t}=T6(e,t,r,n,4,!1,i,s));return{code:a,pos:t}}function T7(e,t,r){return new vZ(r,e-t,e)}var Ee=new Set([103,109,115,105,121,117,100,118]),Et=class{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new v0(e.startLoc,e.endLoc)}},Er=class extends TQ{isLookahead;tokens=[];constructor(e,t){super(),this.state=new TZ,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1,(!R||R.length<(this.length+1)*2)&&(R=new Uint32Array((this.length+1)*2)),this.locData=R}setLoc(e){let t=this.offsetToSourcePos(e.index);this.locData[2*t]=e.line,this.locData[2*t+1]=e.column}getLoc(e){let t=this.offsetToSourcePos(e);return new vZ(this.locData[2*t],this.locData[2*t+1],e)}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),512&this.optionFlags&&this.pushToken(new Et(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return TU.lastIndex=e,TU.test(this.input)?TU.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return TV.lastIndex=e,TV.test(this.input)?TV.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((64512&t)==55296&&++e<this.input.length){let r=this.input.charCodeAt(e);(64512&r)==56320&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([e,t])=>this.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length)?this.finishToken(135):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(-1===n)throw this.raise(v9.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,TB.lastIndex=r+2;TB.test(this.input)&&TB.lastIndex<=n;)++this.state.curLine,this.state.lineStart=TB.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new v0(t,this.state.curPosition())};return 512&this.optionFlags&&this.pushToken(i),i}skipLineComment(e){let t,r=this.state.pos;this.isLookahead||(t=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!TR(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,s={type:"CommentLine",value:this.input.slice(r+e,i),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i),loc:new v0(t,this.state.curPosition())};return 512&this.optionFlags&&this.pushToken(s),s}skipSpace(){let e,t=this.state.pos,r=(8192&this.optionFlags)>0;r:for(;this.state.pos<this.length;){let n=this.input.charCodeAt(this.state.pos);switch(n){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let t=this.skipBlockComment("*/");void 0!==t&&(this.addComment(t),r&&(e??=[]).push(t));break}case 47:{let t=this.skipLineComment(2);void 0!==t&&(this.addComment(t),r&&(e??=[]).push(t));break}default:break r}break;default:if(function(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}(n))++this.state.pos;else if(45===n&&!this.inModule&&16384&this.optionFlags){let n=this.state.pos;if(45===this.input.charCodeAt(n+1)&&62===this.input.charCodeAt(n+2)&&(0===t||this.state.lineStart>t)){let t=this.skipLineComment(3);void 0!==t&&(this.addComment(t),r&&(e??=[]).push(t))}else break r}else if(60===n&&!this.inModule&&16384&this.optionFlags){let t=this.state.pos;if(33===this.input.charCodeAt(t+1)&&45===this.input.charCodeAt(t+2)&&45===this.input.charCodeAt(t+3)){let t=this.skipLineComment(4);void 0!==t&&(this.addComment(t),r&&(e??=[]).push(t))}else break r}else break r}}if(e?.length){let r=this.state.pos,n={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(r),comments:e,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(v9.UnexpectedDigitAfterHash,this.state.curPosition());TA(t)?(++this.state.pos,this.finishToken(134,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(134,this.readWord1())):this.finishOp(23,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(17)):(++this.state.pos,this.finishToken(12))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(27,2):this.finishOp(52,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;let t=this.state.pos;for(this.state.pos+=1;!TR(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(24,r),!0}readToken_mult_modulo(e){let t=42===e?51:50,r=1,n=this.input.charCodeAt(this.state.pos+1);42===e&&42===n&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=53),61!==n||this.state.inType||(r++,t=37===e?29:26),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);t===e?61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(26,3):this.finishOp(124===e?37:38,2):124===e&&62===t?this.finishOp(35,2):61===t?this.finishOp(26,2):this.finishOp(124===e?39:41,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(33,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(40,1):this.finishOp(28,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(34,2):this.finishOp(22,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);t===e?this.finishOp(30,2):61===t?this.finishOp(26,2):this.finishOp(49,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);60===t?61===this.input.charCodeAt(e+2)?this.finishOp(26,3):this.finishOp(47,2):61===t?this.finishOp(45,2):this.finishOp(43,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){let t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(26,t+1):void this.finishOp(48,t)}61===t?this.finishOp(45,2):this.finishOp(44,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(61===t)return void this.finishOp(42,61===this.input.charCodeAt(this.state.pos+2)?3:2);if(61===e&&62===t){this.state.pos+=2,this.finishToken(15);return}this.finishOp(61===e?25:31,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(26,3):this.finishOp(36,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(13)):(this.state.pos+=2,this.finishToken(14))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(6);return;case 41:++this.state.pos,this.finishToken(7);return;case 59:++this.state.pos,this.finishToken(9);return;case 44:++this.state.pos,this.finishToken(8);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(1);return;case 123:++this.state.pos,this.finishToken(2);return;case 125:++this.state.pos,this.finishToken(4);return;case 58:this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(11,2):(++this.state.pos,this.finishToken(10));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(32,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(TA(e))return void this.readWord(e)}throw this.raise(v9.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e,t,r=this.state.startLoc,n=this.state.start+1,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(v9.UnterminatedRegExp,v1(r,1));let n=this.input.charCodeAt(i);if(TR(n))throw this.raise(v9.UnterminatedRegExp,v1(r,1));if(e)e=!1;else{if(91===n)t=!0;else if(93===n&&t)t=!1;else if(47===n&&!t)break;e=92===n}}let s=this.input.slice(n,i);++i;let a="",o=()=>v1(r,i+2-n);for(;i<this.length;){let e=this.codePointAtPos(i),t=String.fromCharCode(e);if(Ee.has(e))118===e?a.includes("u")&&this.raise(v9.IncompatibleRegExpUVFlags,o()):117===e&&a.includes("v")&&this.raise(v9.IncompatibleRegExpUVFlags,o()),a.includes(t)&&this.raise(v9.DuplicateRegExpFlags,o());else if(TP(e)||92===e)this.raise(v9.MalformedRegExpFlags,o());else break;++i,a+=t}this.state.pos=i,this.finishToken(133,{pattern:s,flags:a})}readInt(e,t,r=!1,n=!0){let{n:i,pos:s}=T8(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=s,i}readRadixNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1;this.state.pos+=2;let i=this.readInt(e);if(null==i&&this.raise(v9.InvalidDigit,v1(r,2),{radix:e}),110===this.input.charCodeAt(this.state.pos)&&(++this.state.pos,n=!0),TA(this.codePointAtPos(this.state.pos)))throw this.raise(v9.NumberIdentifier,this.state.curPosition());if(n){let e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(132,e);return}this.finishToken(131,i)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,i=!1,s=!1;e||null!==this.readInt(10)||this.raise(v9.InvalidNumber,this.state.curPosition());let a=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(a){let e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(v9.StrictOctalLiteral,r),!this.state.strict){let t=e.indexOf("_");t>0&&this.raise(v9.ZeroDigitNumericSeparator,v1(r,t))}s=a&&!/[89]/.test(e)}let o=this.input.charCodeAt(this.state.pos);46!==o||s||(++this.state.pos,this.readInt(10),n=!0,o=this.input.charCodeAt(this.state.pos)),69!==o&&101!==o||s||((43===(o=this.input.charCodeAt(++this.state.pos))||45===o)&&++this.state.pos,null===this.readInt(10)&&this.raise(v9.InvalidOrMissingExponent,r),n=!0,o=this.input.charCodeAt(this.state.pos));let l=this.input.slice(t,this.state.pos).replaceAll("_","");if(110===o&&((n||a)&&this.raise(v9.InvalidBigIntLiteral,r),++this.state.pos,i=!0),TA(this.codePointAtPos(this.state.pos)))throw this.raise(v9.NumberIdentifier,this.state.curPosition());if(i)return void this.finishToken(132,l);let u=s?parseInt(l,8):parseFloat(l);this.finishToken(131,u)}readCodePoint(e){let{code:t,pos:r}=T9(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:i}=T5(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=n,this.finishToken(130,t)}readTemplateContinuation(){this.match(4)||this.unexpected(null,4),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:i,lineStart:s}=T5("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=i,r&&(this.state.firstInvalidTemplateEscapePos=new vZ(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),96===this.input.codePointAt(n)?this.finishToken(20,r?null:e+t+"`"):(this.state.pos++,this.finishToken(21,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let e=this.codePointAtPos(this.state.pos);if(TP(e))this.state.pos+=e<=65535?1:2;else if(92===e){this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let e=this.state.curPosition(),i=this.state.pos===r?TA:TP;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(v9.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;let s=this.readCodePoint(!0);null!==s&&(i(s)||this.raise(v9.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),n=this.state.pos}else break}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=Tt.get(t);void 0!==r?this.finishToken(r,Ta[r]):this.finishToken(128,t)}checkKeywordEscapes(){let{type:e}=this.state;Ty(e)&&this.state.containsEsc&&this.raise(v9.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Ta[e]})}raise(e,t,r={}){let n=t instanceof vZ?t:"number"==typeof t?this.getLoc(t):256&this.optionFlags?t.loc.start:this.getLoc(t.start),i=t instanceof vZ?n.index:"number"==typeof t?t:t.start,s=e(n,i,r);if(!(4096&this.optionFlags))throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(e,t,r={}){let n=t instanceof vZ?t:256&this.optionFlags?t.loc.start:this.getLoc(t.start),i=t instanceof vZ?n.index:t.start,s=this.state.errors;for(let t=s.length-1;t>=0;t--){let a=s[t];if(a.pos===i)return s[t]=e(n,i,r);if(a.pos<i)break}return this.raise(e,n,r)}updateContext(){}unexpected(e,t){throw this.raise(v9.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?Ta[t]:null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(v9.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(e=>this.hasPlugin(e)))throw this.raise(v9.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,T7(t,r,n))}}errorHandlers_readInt={invalidDigit:(e,t,r,n)=>{this.raise(v9.InvalidDigit,T7(e,t,r),{radix:n})},numericSeparatorInEscapeSequence:this.errorBuilder(v9.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(v9.UnexpectedNumericSeparator)};errorHandlers_readCodePoint={...this.errorHandlers_readInt,invalidEscapeSequence:this.errorBuilder(v9.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(v9.InvalidCodePoint)};errorHandlers_readStringContents_string={...this.errorHandlers_readCodePoint,strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(v9.StrictNumericEscape,T7(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(v9.UnterminatedString,T7(e-1,t,r))}};errorHandlers_readStringContents_template={...this.errorHandlers_readCodePoint,strictNumericEscape:this.errorBuilder(v9.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(v9.UnterminatedTemplate,T7(e,t,r))}}},En=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},Ei=class{parser;stack=[];constructor(e){this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new En)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,n]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,n):this.parser.raise(v9.InvalidPrivateFieldResolution,n,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:n,loneAccessors:i,undefinedPrivateNames:s}=this.current(),a=n.has(e);if(3&t){let r=a&&i.get(e);if(r){let n=4&t;(a=(3&r)==(3&t)||(4&r)!==n)||i.delete(e)}else a||i.set(e,t)}a&&this.parser.raise(v9.PrivateNameRedeclaration,r,{identifierName:e}),n.add(e),s.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(v9.InvalidPrivateFieldResolution,t,{identifierName:e})}},Es=class{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}},Ea=class extends Es{declarationErrors=new Map;constructor(e){super(e)}recordDeclarationError(e,t){this.declarationErrors.set(t,e)}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}},Eo=class{parser;stack=[new Es];constructor(e){this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let{stack:r}=this,n=r.length-1,i=r[n];for(;!i.isCertainlyParameterDeclaration();){if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,t),i=r[--n]}this.parser.raise(e,t)}recordArrowParameterBindingError(e,t){let{stack:r}=this,n=r[r.length-1],i=t.start;if(n.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!n.canBeArrowParameterDeclaration())return;n.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,n=t[r];for(;n.canBeArrowParameterDeclaration();)2===n.type&&n.recordDeclarationError(v9.AwaitBindingIdentifier,e),n=t[--r]}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t,r)=>{this.parser.raise(t,r);let n=e.length-2,i=e[n];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(r),i=e[--n]})}},El=class{stacks=[];enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}get inFSharpPipelineDirectBody(){return(16&this.currentFlags())==0}};function Eu(e,t){return 2*!!e|!!t}var Ec=class extends Er{addExtra(e,t,r,n=!0){if(!e)return;let{extra:i}=e;null==i&&(e.extra=i={}),n?i[t]=r:Object.defineProperty(i,t,{enumerable:n,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(TP(r)||(64512&r)==55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(135)||this.match(4)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return T$(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return T$(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(9)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(9))||this.raise(v9.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let n=e((e=null)=>{throw r.node=e,r});if(this.state.errors.length>t.errors.length){let e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:n,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:n,error:null,thrown:!1,aborted:!1,failState:null}}catch(n){let e=this.state;if(this.state=t,n instanceof SyntaxError)return{node:null,error:n,thrown:!0,aborted:!1,failState:e};if(n===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:e};throw n}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:n,privateKeyLoc:i,optionalParametersLoc:s,voidPatternLoc:a}=e,o=!!r||!!n||!!s||!!i||!!a;if(!t)return o;null!=r&&this.raise(v9.InvalidCoverInitializedName,r),null!=n&&this.raise(v9.DuplicateProto,n),null!=i&&this.raise(v9.UnexpectedPrivateField,i),null!=s&&this.unexpected(s),null!=a&&this.raise(v9.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){var e;return(e=this.state.type)>=54&&e<=132}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let n=this.inModule;this.inModule=e;let i=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);let a=this.prodParam;this.prodParam=new El;let o=this.classScope;this.classScope=new Ei(this);let l=this.expressionScope;return this.expressionScope=new Eo(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=n,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);let t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let r=t?514:1;4&this.optionFlags&&(r|=512),16&this.optionFlags&&(r|=48),this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}},Ep=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},Eh=class{constructor(e,t,r,n){this.start=r,this.end=0,void 0!==n&&(this.loc=new v0(n)),128&e&&(this.range=[r,0]),void 0!==n&&t&&(this.loc.filename=t)}type=""},Ed=Eh.prototype,Ef=class extends Ec{createPosition(e){return e}startNode(){let{startLoc:e}=this.state;return this.setLoc(e),this.startNodeAt(e)}startNodeAt(e){let{optionFlags:t,filename:r}=this;return 256&t?new Eh(t,r,e.index,this.createPosition(e)):new Eh(t,r,e.index)}startNodeAtNode(e){let{optionFlags:t,filename:r}=this;return 256&t?new Eh(t,r,e.start,e.loc.start):new Eh(t,r,e.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){e.type=t,e.end=r.index;let{optionFlags:n}=this;return 256&n&&(e.loc.end=this.createPosition(r)),128&n&&(e.range[1]=r.index),8192&n&&this.processComment(e),e}finishNodeAtNode(e,t,r){e.type=t,e.end=r.end;let{optionFlags:n}=this;return 256&n&&(e.loc.end=r.loc.end),128&n&&(e.range[1]=e.end),8192&n&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index;let{optionFlags:r}=this;256&r&&(e.loc.start=this.createPosition(t)),128&r&&(e.range[0]=t.index)}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index;let{optionFlags:r}=this;256&r&&(e.loc.end=this.createPosition(t)),128&r&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){e.start=t.start;let{optionFlags:r}=this;256&r&&(e.loc.start=t.loc.start),128&r&&(e.range[0]=t.start)}resetEndLocationFromNode(e,t){e.end=t.end;let{optionFlags:r}=this;256&r&&(e.loc.end=t.loc.end),128&r&&(e.range[1]=t.end)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:n,loc:i,range:s,name:a}=e,o=Object.create(Ed);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){let{type:t,start:r,end:n,loc:i,range:s,extra:a}=e,o=Object.create(Ed);return o.type=t,o.start=r,o.end=n,o.loc=i,o.range=s,o.extra=a,o.value=e.value,o}},Em=e=>"ParenthesizedExpression"===e.type?Em(e.expression):e,Ey=class extends Ef{toAssignable(e,t=!1){let r;switch(("ParenthesizedExpression"===e.type||e.extra?.parenthesized)&&(r=Em(e),t?"Identifier"===r.type?this.expressionScope.recordArrowParameterBindingError(v9.InvalidParenthesizedAssignment,e):"CallExpression"!==r.type&&"MemberExpression"!==r.type&&!this.isOptionalMemberExpression(r)&&this.raise(v9.InvalidParenthesizedAssignment,e):this.raise(v9.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let r=0,n=e.properties.length,i=n-1;r<n;r++){let n=e.properties[r],s=r===i;this.toAssignableObjectExpressionProp(n,s,t),s&&"RestElement"===n.type&&e.extra?.trailingCommaLoc&&this.raise(v9.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.start),this.toAssignable(n,t);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,e.extra?.trailingCommaLoc,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(v9.MissingEqInAssignment,256&this.optionFlags?e.left.loc.end:e.left),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(v9.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(r,t)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?v9.PatternHasAccessor:v9.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");let n=e.argument;this.checkToRestConversion(n,!1),this.toAssignable(n,r),t||this.raise(v9.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){let n=e.length-1;for(let i=0;i<=n;i++){let s=e[i];s&&(this.toAssignableListItem(e,i,r),"RestElement"===s.type&&(i<n?this.raise(v9.RestTrailingComma,s):t&&this.raise(v9.RestTrailingComma,t)))}}toAssignableListItem(e,t,r){let n=e[t];if("SpreadElement"===n.type){this.castNodeTo(n,"RestElement");let e=n.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,r)}else this.toAssignable(n,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let t=e.properties.length-1;return e.properties.every((e,r)=>"ObjectMethod"!==e.type&&(r===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e){return e}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(v9.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(1,93,1),this.finishNode(e,"ArrayPattern")}case 2:return this.parseObjectLike(4,!0);case 84:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){let n=1&r,i=[],s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(8),n&&this.match(8))i.push(null);else if(this.eat(e))break;else if(this.match(17)){let n=this.parseRestBinding();if(2&r&&(n=this.parseFunctionParamType(n)),i.push(n),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let e=[];if(2&r)for(this.match(22)&&this.hasPlugin("decorators")&&this.raise(v9.UnsupportedParameterDecorator,this.state.startLoc);this.match(22);)e.push(this.parseDecorator());i.push(this.parseBindingElement(r,e))}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(84)?(e.argument=this.parseVoidPattern(null),this.raise(v9.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(17===e)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();return 134===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){let{startLoc:r}=this.state,n=this.parseMaybeDefault();return 2&e&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(r,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e??=this.state.startLoc,t=t??this.parseBindingAtom(),!this.eat(25))return t;let r=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(v9.VoidPatternInitializer,t),r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&16384&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,r=64,n=!1,i=!1,s=!1,a=!1){let o,l,u=e.type;if(this.isObjectMethod(e))return;let c=this.isOptionalMemberExpression(e);if(c||"MemberExpression"===u){c&&(this.expectPlugin("optionalChainingAssign",e.start),"AssignmentExpression"!==t.type&&this.raise(v9.InvalidLhsOptionalChaining,e,{ancestor:t})),64!==r&&this.raise(v9.InvalidPropertyBindingPattern,e);return}if("Identifier"===u){this.checkIdentifier(e,r,i);let{name:t}=e;n&&(n.has(t)?this.raise(v9.ParamDupe,e):n.add(t));return}"VoidPattern"===u&&"CatchClause"===t.type&&this.raise(v9.VoidPatternCatchClauseParam,e);let p=Em(e);a||="CallExpression"===p.type&&("Import"===p.callee.type||"Super"===p.callee.type);let h=this.isValidLVal(u,a,!(s||e.extra?.parenthesized)&&"AssignmentExpression"===t.type,r);if(!0===h)return;if(!1===h){let n=64===r?v9.InvalidLhs:v9.InvalidLhsBinding;this.raise(n,e,{ancestor:t});return}"string"==typeof h?(o=h,l="ParenthesizedExpression"===u):[o,l]=h;let d="ArrayPattern"===u||"ObjectPattern"===u?{type:u}:t,f=e[o];if(Array.isArray(f))for(let e of f)e&&this.checkLVal(e,d,r,n,i,l,!0);else f&&this.checkLVal(f,d,r,n,i,l,a)}checkIdentifier(e,t,r=!1){var n;this.state.strict&&(r?TO(e.name,this.inModule):(n=e.name,T_.has(n)))&&(64===t?this.raise(v9.StrictEvalArguments,e,{referenceName:e.name}):this.raise(v9.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(v9.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(v9.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(8)&&(this.raise(this.lookaheadCharCode()===e?v9.RestTrailingComma:v9.ElementAfterRest,this.state.startLoc),!0)}},Eg=class extends Ey{checkProto(e,t,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return t;let n=e.key;return"__proto__"===("Identifier"===n.type?n.name:n.value)?(t&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=this.getLoc(n.start)):this.raise(v9.DuplicateProto,n)),!0):t}shouldExitDescending(e){return"ArrowFunctionExpression"===e.type&&!e.extra?.parenthesized}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(135))throw this.raise(v9.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(135))throw this.raise(v9.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,512&this.optionFlags&&(e.tokens=ET(this.tokens)),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(8)){let n=this.startNodeAt(t);for(n.expressions=[r];this.eat(8);)n.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(n.expressions),this.finishNode(n,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e){return this.disallowInAnd(()=>this.parseMaybeAssign(e))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){var r;let n,i=this.state.startLoc,s=this.isContextual(104);if(s&&this.prodParam.hasYield){this.next();let e=this.parseYield(i);return t&&(e=this.parseParenItem(e,i)),e}e?n=!1:(e=new Ep,n=!0),this.state.canStartArrow=!0;let a=this.parseMaybeConditional(e);if(t&&(a=this.parseParenItem(a,i)),(r=this.state.type)>=25&&r<=29){let t=this.startNodeAt(i),r=this.state.value;if(t.operator=r,this.match(25)){this.toAssignable(a,!0),t.left=a;let r=i.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=r&&(e.voidPatternLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===r||"&&="===r||"??="===r),t}if(n&&this.checkExpressionErrors(e,!0),s){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?Tu[e]:Tu[e]&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v9.YieldNotInGeneratorFunction,i),this.parseYield(i)}return a}parseMaybeConditional(e){let t=this.state.startLoc,r=this.parseExprOps(e);return this.shouldExitDescending(r)?r:this.parseConditional(r,t,e)}parseConditional(e,t){if(this.eat(13)){let r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(10),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(134)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r)?r:(this.state.canStartArrow=!1,this.parseExprOp(r,t,-1))}parseExprOp(e,t,r){if(this.isPrivateName(e)){let n=this.getPrivateNameSV(e);!(r>=To[54])&&this.prodParam.hasIn&&this.match(54)||this.raise(v9.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t)}let n=this.state.type;if(Tg(n)&&(this.prodParam.hasIn||!this.match(54))){let i=To[n];if(i>r){if(35===n&&(this.expectPlugin("pipelineOperator"),this.prodParam.inFSharpPipelineDirectBody))return e;let s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;let a=37===n||38===n,o=36===n;o&&(i=To[38]),this.next(),s.right=this.parseExprOpRightExpr(n,i);let l=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(o&&(37===u||38===u)||a&&36===u)throw this.raise(v9.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){if(35===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.parseFSharpPipelineBody(t)}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,53===e?t-1:t)}parseHackPipeBody(){let{startLoc:e}=this.state,t=this.parseMaybeAssign();return v5.has(t.type)&&!t.extra?.parenthesized&&this.raise(v9.PipeUnparenthesizedBody,e,{type:t.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(v9.PipeTopicUnused,e),t}checkExponentialAfterUnary(e){this.match(53)&&this.raise(v9.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,n=this.isContextual(92);if(n&&this.recordAwaitIfAllowed()){this.next();let e=this.parseAwait(r);return t||this.checkExponentialAfterUnary(e),e}let i=this.match(30),s=this.startNode();if(Tc[this.state.type]){s.operator=this.state.value,s.prefix=!0,this.state.canStartArrow=!1,this.match(68)&&this.expectPlugin("throwExpressions");let r=this.match(85);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&r){let e=s.argument;"Identifier"===e.type?this.raise(v9.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(v9.DeletePrivateField,s)}if(!i)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}let a=this.parseUpdate(s,i,e);if(n){let{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?Tu[e]:Tu[e]&&!this.match(50))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(v9.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let t=this.finishNode(e,"UpdateExpression");return this.checkLVal(t.argument,t),t}let n=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;for(;30===this.state.type&&!this.canInsertSemicolon();){let e=this.startNodeAt(n);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){let t=this.state.startLoc;this.setLoc(t);let r=this.parseExprAtom(e);return this.shouldExitDescending(r)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,r){let n={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,r,n),n.maybeAsyncArrow=!1;while(!n.stop)return e}parseSubscript(e,t,r,n){let{type:i}=this.state;if(!r&&11===i)return this.parseBind(e,t,n);if(Tb(i))return this.parseTaggedTemplateExpression(e,t,n);let s=!1;if(14===i){if(r&&(this.raise(v9.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,n);n.optionalChainMember=s=!0,this.next()}if(!r&&this.match(6))return this.parseCoverCallAndAsyncArrowHead(e,t,n,s);{let r=this.eat(0);return r||s||this.eat(12)?this.parseMember(e,t,n,r,s):this.stopParseSubscript(e,n)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,n,i){let s=this.startNodeAt(t);return(s.object=e,s.computed=n,n?(s.property=this.parseExpression(),this.expect(1)):this.match(134)?("Super"===e.type&&this.raise(v9.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),r.optionalChainMember)?(s.optional=i,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,r){let n=this.startNodeAt(t);n.object=e,this.next();let i=this.parseNoCallExpr(e=>{throw this.raise(v9.UnsupportedBindRHS,e)});if("Super"===i.type||"Import"===i.type)throw this.raise(v9.UnsupportedBindRHS,i);return n.callee=i,r.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,!1)}parseCoverCallAndAsyncArrowHead(e,t,r,n){let i=null;this.next();let s=this.startNodeAt(t);s.callee=e;let{maybeAsyncArrow:a,optionalChainMember:o}=r;a&&(this.expressionScope.enter(new Ea(2)),i=new Ep),o&&(s.optional=n),n?s.arguments=this.parseCallExpressionArguments():s.arguments=this.parseCallExpressionArguments("Super"!==e.type,s,i);let l=this.finishCallExpression(s,o);return a&&this.shouldParseAsyncArrow()&&!n?(r.stop=!0,this.checkDestructuringPrivate(i),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(a&&(this.checkExpressionErrors(i,!0),this.expressionScope.exit()),this.toReferencedList(s.arguments)),l}parseTaggedTemplateExpression(e,t,r){let n=this.startNodeAt(t);return n.tag=e,n.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(v9.OptionalChainingNoTemplate,t),this.finishNode(n,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.state.canStartArrow}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(v9.ImportCallArity,e);else for(let t of e.arguments)"SpreadElement"===t.type&&this.raise(v9.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let n=[],i=!0;for(;!this.eat(7);){if(i)i=!1;else if(this.expect(8),this.match(7)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}n.push(this.parseExprListItem(7,!1,r,e))}return n}shouldParseAsyncArrow(){return this.match(15)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){return this.resetPreviousNodeTrailingComments(t),this.expect(15),this.parseArrowExpression(e,t.arguments,!0,t.extra?.trailingCommaLoc),t.innerComments&&TG(e,t.innerComments),t.callee.trailingComments&&TG(e,t.callee.trailingComments),e}parseNoCallExpr(e){let t=this.state.startLoc,r=this.match(79),n=this.parseExprAtom();return r&&"ImportExpression"===n.type&&e(n),this.parseSubscripts(n,t,!0)}parseExprAtom(e){let t,r=null,{type:n}=this.state;switch(n){case 75:return this.parseSuper();case 79:if(t=this.startNode(),this.next(),this.match(12))return this.parseImportMetaPropertyOrPhaseCall(t);if(!this.match(6))return this.raise(v9.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");if(1024&this.optionFlags)return this.parseImportCall(t);return this.finishNode(t,"Import");case 74:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 86:return this.parseDo(this.startNode(),!1);case 52:case 27:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 131:return this.parseNumericLiteral(this.state.value);case 132:return this.parseBigIntLiteral(this.state.value);case 130:return this.parseStringLiteral(this.state.value);case 80:return this.parseNullLiteral();case 81:return this.parseBooleanLiteral(!0);case 82:return this.parseBooleanLiteral(!1);case 6:return this.parseParenAndDistinguishExpression(this.state.canStartArrow);case 0:return this.parseArrayLike(1,e);case 2:return this.parseObjectLike(4,!1,e);case 64:return this.parseFunctionOrFunctionSent();case 22:r=this.parseDecorators();case 76:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 73:return this.parseNewOrNewTarget();case 21:case 20:return this.parseTemplate(!1);case 11:{t=this.startNode(),this.next(),t.object=null;let e=t.callee=this.parseNoCallExpr(e=>{throw this.raise(v9.UnsupportedBind,e)});if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(v9.UnsupportedBind,e)}case 134:return this.raise(v9.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 29:return this.parseTopicReferenceThenEqualsSign(50,"%");case 28:return this.parseTopicReferenceThenEqualsSign(40,"^");case 33:case 34:return this.parseTopicReference("hack");case 40:case 50:case 23:{let e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 43:{let e=this.input.codePointAt(this.nextTokenStart());if(TA(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(Tf(n)){if(this.isContextual(123)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();let{canStartArrow:e,containsEsc:t}=this.state,r=this.parseIdentifier();if(!t&&"async"===r.name&&!this.canInsertSemicolon()){let{type:t}=this.state;if(64===t)return this.resetPreviousNodeTrailingComments(r),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(r));if(Tf(t))if(e&&61===this.lookaheadCharCode())return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r));else return r;if(86===t)return this.resetPreviousNodeTrailingComments(r),this.parseDo(this.startNodeAtNode(r),!0)}if(e&&this.match(15)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(r),[r],!1);return r}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=v1(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,n=this.state.type;return this.next(),this.finishTopicReference(t,r,e,n)}finishTopicReference(e,t,r,n){if(this.testTopicReferenceConfiguration(r,t,n))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(v9.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference");throw this.raise(v9.PipeTopicUnconfiguredToken,t,{token:Ta[n]})}testTopicReferenceConfiguration(e,t,r){if("hack"===e)return this.hasPlugin(["pipelineOperator",{topicToken:Ta[r]}]);throw this.raise(v9.PipeTopicRequiresHackPipes,t)}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Eu(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(v9.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(15),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();let r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();return this.next(),this.match(6)&&!this.scope.allowDirectSuper?this.raise(v9.SuperNotAllowed,e):this.scope.allowSuper||this.raise(v9.UnexpectedSuper,e),this.match(6)||this.match(0)||this.match(12)||this.raise(v9.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(v1(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(12)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(99)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let n=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||n)&&this.raise(v9.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(101)||this.isContextual(93)){let t=this.isContextual(101);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(97)&&(this.inModule||this.raise(v9.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}return this.parseLiteral(t,"BigIntLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t,r,n,i=this.state.startLoc;this.next(),this.expressionScope.enter(new Ea(1));let s=this.state.startLoc,a=[],o=new Ep,l=!0;for(;!this.match(7);){if(l)l=!1;else if(this.expect(8,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(7)){n=this.state.startLoc;break}if(this.match(17)){let e=this.state.startLoc;if(r=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(7,o,!0))}let u=this.state.lastTokEndLoc;this.expect(7);let c=this.startNodeAt(i);return e&&this.shouldParseArrow(a)&&(c=this.parseArrow(c))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(c,a,!1),c):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),n&&this.unexpected(n),r&&this.unexpected(r),this.checkExpressionErrors(o,!0),this.toReferencedList(a,!0),a.length>1?((t=this.startNodeAt(s)).expressions=a,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,u)):t=a[0],this.wrapParenthesis(i,t))}wrapParenthesis(e,t){if(!(2048&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(15))return e}parseParenItem(e){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(12)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(v9.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(6)){let t=this.parseExprList(7);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.parseNoCallExpr(e=>{this.raise(v9.ImportCallNotNewExpression,e,e)});e.callee=t,"Import"===t.type&&this.raise(v9.ImportCallNotNewExpression,t),"Super"===t.type&&this.raise(v9.SuperCallNotNewExpression,t)}parseTemplateElement(e){let{start:t,startLoc:r,end:n,value:i}=this.state,s=this.startNodeAt(v1(r,1));null!==i||e||this.raise(v9.InvalidEscapeSequenceTemplate,v1(this.state.firstInvalidTemplateEscapePos,1));let a=this.match(20),o=a?-1:-2,l=n+o;s.value={raw:this.input.slice(t+1,l).replace(/\r\n?/g,"\n"),cooked:null===i?null:i.slice(1,o)},s.tail=a,this.next();let u=this.finishNode(s,"TemplateElement");return this.resetEndLocation(u,v1(this.state.lastTokEndLoc,o)),u}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),n=[r],i=[];for(;!r.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(e));return t.expressions=i,t.quasis=n,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r){let n=!1,i=!0,s=this.startNode();for(s.properties=[],this.next();!this.match(e);){let a;if(i)i=!1;else if(this.expect(8),this.match(e)){this.addTrailingCommaExtraToNode(s);break}t?a=this.parseBindingProperty():(a=this.parsePropertyDefinition(r),n=this.checkProto(a,n,r)),s.properties.push(a)}return this.next(),this.finishNode(s,t?"ObjectPattern":"ObjectExpression")}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(51))}parsePropertyDefinition(e){let t,r=[];if(this.match(22))for(this.hasPlugin("decorators")&&this.raise(v9.UnsupportedPropertyDecorator,this.state.startLoc);this.match(22);)r.push(this.parseDecorator());let n=this.startNode(),i=!1,s=!1;if(this.match(17))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r),n.method=!1,e&&(t=this.state.startLoc);let a=this.eat(51);this.parsePropertyNamePrefixOperator(n);let o=this.state.containsEsc;if(this.parsePropertyName(n,e),!a&&!o&&this.maybeAsyncOrAccessorProp(n)){let{key:e}=n,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(51),this.parsePropertyName(n)),("get"===t||"set"===t)&&(s=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(51)&&(a=!0,this.raise(v9.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,t,a,i,!1,s,e)}getGetterSetterExpectedParamCount(e){return+("get"!==e.kind)}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){let t=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==t&&this.raise("get"===e.kind?v9.BadGetterArity:v9.BadSetterArity,e),"set"===e.kind&&r[r.length-1]?.type==="RestElement"&&this.raise(v9.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,n,i){if(i){let r=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(r),r}if(r||t||this.match(6))return n&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,n){if(e.shorthand=!1,this.eat(10))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(4,n),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(25)){let r=this.state.startLoc;null!=n?null===n.shorthandAssignLoc&&(n.shorthandAssignLoc=r):this.raise(v9.InvalidCoverInitializedName,r),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,n,i,s,a){let o=this.parseObjectMethod(e,r,n,i,s)||this.parseObjectProperty(e,t,i,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(1);else{let r,{type:n,value:i}=this.state;if(Tm(n))r=this.parseIdentifier(!0);else switch(n){case 131:r=this.parseNumericLiteral(i);break;case 130:r=this.parseStringLiteral(i);break;case 132:r=this.parseBigIntLiteral(i);break;case 134:{let e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(v9.UnexpectedPrivateField,e),r=this.parsePrivateName();break}default:throw this.unexpected()}e.key=r,134!==n&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,n,i,s,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|576*!!a|32*!!i),this.prodParam.enter(Eu(r,e.generator)),this.parseFunctionParams(e,n);let o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t){let r=this.startNode();return this.next(),r.elements=this.parseExprList(e,!0,t,r),this.finishNode(r,"ArrayExpression")}parseArrowExpression(e,t,r,n){this.scope.enter(518);let i=Eu(r,!1);return this.match(2)||(i|=24&this.prodParam.currentFlags()),this.prodParam.enter(i),this.initFunction(e,r),t&&this.setArrowFunctionParameters(e,t,n),this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){let n=t&&!this.match(2);if(this.expressionScope.enter(new Es),n)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let n=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{let s=!this.isSimpleParamList(e.params);i&&s&&this.raise(v9.IllegalLanguageModeDirective,("method"===e.kind||"constructor"===e.kind)&&e.key?256&this.optionFlags?e.key.loc.end:e.key:e);let a=!n&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!s,t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,n=!0){let i=!t&&new Set,s={type:"FormalParameters"};for(let t of e.params)this.checkLVal(t,s,5,i,n)}parseExprList(e,t,r,n){let i=[],s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(8),this.match(e)){n&&this.addTrailingCommaExtraToNode(n),this.next();break}i.push(this.parseExprListItem(e,t,r))}return i}parseExprListItem(e,t,r,n){let i;if(this.match(8))t||this.raise(v9.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(17)){let e=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),e)}else if(this.match(13)){this.expectPlugin("partialApplication"),n||this.raise(v9.UnexpectedArgumentPlaceholder,this.state.startLoc);let e=this.startNode();this.next(),i=this.finishNode(e,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,r,!0);return i}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,256&this.optionFlags&&(e.loc.identifierName=t),this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){return e.name=t,256&this.optionFlags&&(e.loc.identifierName=t),this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t,{start:r,type:n}=this.state;Tm(n)?t=this.state.value:this.unexpected();let i=n<=88;return e?i&&this.replaceToken(128):this.checkReservedWord(t,this.sourceToOffsetPos(r),i,!1),this.next(),t}checkReservedWord(e,t,r,n){if(!(e.length>10)){if(TD.has(e)){if(r&&TC.has(e))return void this.raise(v9.UnexpectedKeyword,t,{keyword:e});if((this.state.strict?n?TO:TL:TN)(e,this.inModule))return void this.raise(v9.UnexpectedReservedWord,t,{reservedWord:e});if("yield"===e){if(this.prodParam.hasYield)return void this.raise(v9.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(v9.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(v9.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(v9.ArgumentsInClass,t)}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e,t){let r=e.index;this.setLoc(e);let n=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(v9.AwaitExpressionFormalParameter,r),this.eat(51)&&this.raise(v9.ObsoleteAwaitStar,e),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),t||(n.argument=this.parseMaybeUnary(null,!0)),this.finishNode(n,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return 49===e||6===e||0===e||Tb(e)||98===e&&!this.state.containsEsc||133===e||52===e||this.hasPlugin("v8intrinsic")&&50===e}parseYield(e){this.setLoc(e);let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(v9.YieldInParameter,e.index);let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(51),this.state.type){case 9:case 135:case 4:case 7:case 1:case 5:case 10:case 8:if(!r)break;default:n=this.parseMaybeAssign()}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(e){this.next();let t=this.parseCallExpressionArguments();if(0===t.length||t.length>2)this.raise(v9.ImportCallArity,e,e);else for(let r of t)"SpreadElement"===r.type&&this.raise(v9.ImportCallSpreadArgument,r,e);return e.source=t[0],e.options=t[1]??null,this.finishNode(e,"ImportExpression")}withTopicBindingContext(e){let t=this.state.inHackPipelineBody;this.state.inHackPipelineBody=!0;let r=this.state.seenTopicReference;this.state.seenTopicReference=!1;try{return e()}finally{this.state.inHackPipelineBody=t,this.state.seenTopicReference=r}}allowInAnd(e){let t=this.prodParam.currentFlags();if(24&~t){this.prodParam.enter(8|t|16);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t||16&~t){this.prodParam.enter(-9&t|16);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.seenTopicReference=!0}topicReferenceIsAllowedInCurrentContext(){return this.state.inHackPipelineBody}topicReferenceWasUsedInCurrentContext(){return this.state.seenTopicReference}parseFSharpPipelineBody(e){let t,r=this.state.startLoc;if(this.prodParam.enter(-17&this.prodParam.currentFlags()),this.isContextual(92)&&this.recordAwaitIfAllowed()){this.next(),t=this.parseAwait(r,!0);let e=this.state.type;Tg(e)&&35!==e&&(this.prodParam.hasIn||54!==e)&&this.raise(v9.PipelineUnparenthesized,r)}else this.state.canStartArrow=!0,t=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,e);return this.prodParam.exit(),t}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();this.next(),this.match(2)||this.unexpected(null,2);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,4,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(null!=t&&this.match(84)){let r=this.lookaheadCharCode();if(44===r||r===(1===e?93:4===e?125:41)||61===r)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(){}},Eb={kind:1},Ex={kind:2},ES=/[\uD800-\uDFFF]/u,Ev=/in(?:stanceof)?/y;function ET(e){for(let t=0;t<e.length;t++){let r=e[t],{type:n}=r;"number"==typeof n&&(r.type=Ts[n])}return e}var EE=class extends Eg{parseTopLevel(e,t){return e.program=this.parseProgram(t,135,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,512&this.optionFlags&&(e.tokens=ET(this.tokens)),this.finishNode(e,"File")}parseProgram(e,t,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(let[e,t]of Array.from(this.scope.undefinedExports))this.raise(v9.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}return 135===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",v1(this.state.startLoc,-1))}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),n=r.value,i=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),s=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",s),this.addExtra(r,"expressionValue",n),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(24))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(96)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(103)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(103))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!!(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(92))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(TA(e)){if(Ev.lastIndex=t,Ev.test(this.input)){let e=this.codePointAtPos(Ev.lastIndex);if(!TP(e)&&92!==e)return!1}return!0}return 92===e||!1}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(22)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,n=this.startNode(),i=!!(2&e),s=!!(4&e),a=1&e;switch(r){case 56:return this.parseBreakContinueStatement(n,!0);case 59:return this.parseBreakContinueStatement(n,!1);case 60:return this.parseDebuggerStatement(n);case 86:return this.parseDoWhileStatement(n);case 87:return this.parseForStatement(n);case 64:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?v9.StrictFunction:this.options.annexB?v9.SloppyFunctionAnnexB:v9.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(n,!1,!i&&s);case 76:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,n),!0);case 65:return this.parseIfStatement(n);case 66:return this.parseReturnStatement(n);case 67:return this.parseSwitchStatement(n);case 68:return this.parseThrowStatement(n);case 69:return this.parseTryStatement(n);case 92:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(v9.AwaitUsingNotInAsyncContext,n):this.raise(v9.UnexpectedLexicalDeclaration,n):this.raise(v9.UnexpectedUsingDeclaration,n),this.next(),this.parseVarStatement(n,"await using");break;case 103:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(v9.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(v9.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(n,"using");case 96:{if(this.state.containsEsc)break;let e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(t,e)&&123!==t))break}case 71:i||this.raise(v9.UnexpectedLexicalDeclaration,this.state.startLoc);case 70:{let e=this.state.value;return this.parseVarStatement(n,e)}case 88:return this.parseWhileStatement(n);case 72:return this.parseWithStatement(n);case 2:return this.parseBlock();case 9:return this.parseEmptyStatement(n);case 79:{let e=this.lookaheadCharCode();if(40===e||46===e)break}case 78:{let e;return 8&this.optionFlags||a||this.raise(v9.UnexpectedImportExport,this.state.startLoc),this.next(),e=79===r?this.parseImport(n):this.parseExport(n,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(v9.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(n,!0,!i&&s)}let o=this.state.value,l=this.parseExpression();return Tf(r)&&"Identifier"===l.type&&this.eat(10)?this.parseLabeledStatement(n,o,l,e):this.parseExpressionStatement(n,l)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(v9.ImportOutsideModule,e)}maybeTakeDecorators(e,t,r){return e&&(t.decorators?.length?(this.raise(v9.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t)),t}canHaveLeadingDecorator(){return this.match(76)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(22))if(this.match(78))e||this.unexpected();else if(!this.canHaveLeadingDecorator())throw this.raise(v9.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t,r=this.state.startLoc;if(this.match(6)){let r=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(7),t=this.wrapParenthesis(r,t);let n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t,r),e.expression!==t&&this.raise(v9.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(12);){let e=this.startNodeAt(r);e.object=t,this.match(134)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,t=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t,r)}}else this.state.canStartArrow=!1,e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(6)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let n=this.state.labels[r];if((null==e.label||n.name===e.label.name)&&(null!=n.kind&&(t||1===n.kind)||e.label&&t))break}r===this.state.labels.length&&this.raise(v9.IllegalBreakContinue,e,{type:t?"BreakStatement":"ContinueStatement"})}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(6);let e=this.parseExpression();return this.expect(7),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(Eb),e.body=this.parseStatement(),this.state.labels.pop(),this.expect(88),e.test=this.parseHeaderExpression(),this.eat(9),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(Eb);let t=null;if(this.isContextual(92)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(6),this.match(9))return null!==t&&this.unexpected(t),this.parseFor(e,null);let r=this.isContextual(96),n=this.isAwaitUsing(),i=n||this.isForUsing(),s=r&&this.hasFollowingBindingAtom()||i;if(this.match(70)||this.match(71)||s){let r,s=this.startNode();n?(r="await using",this.recordAwaitIfAllowed()||this.raise(v9.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):r=this.state.value,this.next(),this.parseVar(s,!0,r);let a=this.finishNode(s,"VariableDeclaration"),o=this.match(54);return(o&&i&&this.raise(v9.ForInUsing,a),(o||this.isContextual(98))&&1===a.declarations.length)?this.parseForX(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}let a=this.isContextual(91),o=new Ep,l=this.parseExpression(!0,o),u=this.isContextual(98);return(u&&(r&&this.raise(v9.ForOfLet,l),null===t&&a&&"Identifier"===l.type&&this.raise(v9.ForOfAsync,l)),u||this.match(54))?(this.checkDestructuringPrivate(o),this.toAssignable(l,!0),this.checkLVal(l,{type:u?"ForOfStatement":"ForInStatement"}),this.parseForX(e,l,t)):(this.checkExpressionErrors(o,!0),null!==t&&this.unexpected(t),this.parseFor(e,l))}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|2*!!r|8*!!t)}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(62)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(v9.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){let t,r;this.next(),e.discriminant=this.parseHeaderExpression();let n=e.cases=[];for(this.expect(2),this.state.labels.push(Ex),this.scope.enter(256);!this.match(4);)if(this.match(57)||this.match(61)){let e=this.match(57);t&&this.finishNode(t,"SwitchCase"),n.push(t=this.startNode()),t.consequent=[],this.next(),e?t.test=this.parseExpression():(r&&this.raise(v9.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),r=!0,t.test=null),this.expect(10)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(v9.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(58)){let t=this.startNode();this.next(),this.match(6)?(this.expect(6),t.param=this.parseCatchClauseParam(),this.expect(7)):(t.param=null,this.scope.enter(0)),t.body=this.parseBlock(!1,!1),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(63)?this.parseBlock():null,e.handler||e.finalizer||this.raise(v9.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Eb),e.body=this.parseStatement(),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(v9.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.parseStatement(),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,n){var i;for(let e of this.state.labels)e.name===t&&this.raise(v9.LabelRedeclaration,r,{labelName:t});let s=(i=this.state.type)>=86&&i<=88?1:this.match(67)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){let r=this.state.labels[t];if(r.statementStart===e.start)r.statementStart=this.sourceToOffsetPos(this.state.start),r.kind=s;else break}return this.state.labels.push({name:t,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&n?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){let n=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(2),t&&this.scope.enter(0),this.parseBlockBody(n,e,!1,4,r),t&&this.scope.exit(),this.finishNode(n,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,n,i){let s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,r,n,i)}parseBlockOrModuleBlockBody(e,t,r,n,i){let s=this.state.strict,a=!1,o=!1;for(;!this.match(n);){let n=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(n)){let e=this.stmtToDirective(n);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(n)}i?.call(this,a),s||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(9)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(7)?null:this.parseExpression(),this.expect(7),e.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForX(e,t,r){let n=this.match(54);return this.next(),n?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||n&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(v9.ForInOfLoopInitializer,t,{type:n?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(v9.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(7),e.body=this.parseStatement(),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,n=!1){let i=e.declarations=[];for(e.kind=r;;){let e=this.startNode();if(this.parseVarId(e,r),e.init=this.eat(25)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null===e.init&&!n&&("Identifier"===e.id.type||t&&(this.match(54)||this.isContextual(98))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(54)||this.isContextual(98)||this.raise(v9.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(v9.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(8))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();"using"===t||"await using"===t?("ArrayPattern"===r.type||"ObjectPattern"===r.type)&&this.raise(v9.UsingDeclarationHasBindingPattern,r):"VoidPattern"===r.type&&this.raise(v9.UnexpectedVoidPattern,r),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=2&t,n=!!(1&t),i=!!(8&t);return this.initFunction(e,i),this.match(51)&&(r&&this.raise(v9.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),n&&(e.id=this.parseFunctionId(n&&!(4&t))),this.scope.enter(514),this.prodParam.enter(Eu(i,e.generator)),n||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.parseFunctionBodyAndFinish(e,n?"FunctionDeclaration":"FunctionExpression"),this.prodParam.exit(),this.scope.exit(),n&&!r&&this.registerFunctionStatementId(e),e}parseFunctionId(e){return e||Tf(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(6),this.expressionScope.enter(new Es(3)),e.params=this.parseBindingList(7,41,2|4*!!t),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.start)}parseClass(e,t,r){this.next();let n=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,n),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(25)||this.match(9)||this.match(4)}isClassMethod(){return this.match(6)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},n=[],i=this.startNode();for(i.body=[],this.expect(2);!this.match(4);){if(this.eat(9)){if(n.length>0)throw this.raise(v9.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(22)){n.push(this.parseDecorator());continue}let e=this.startNode();n.length&&(e.decorators=n,this.resetStartLocationFromNode(e,n[0]),n=[]),this.parseClassMember(i,e,r)}if(this.state.strict=t,this.next(),n.length)throw this.raise(v9.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);return this.isClassMethod()?(t.kind="method",t.computed=!1,t.key=r,t.static=!1,this.pushClassMethod(e,t,!1,!1,!1,!1),!0):this.isClassProperty()?(t.computed=!1,t.key=r,t.static=!1,e.body.push(this.parseClassProperty(t)),!0):(this.resetPreviousNodeTrailingComments(r),!1)}parseClassMember(e,t,r){let n=this.isContextual(102);if(n){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(2))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,n)}parseClassMemberWithIsStatic(e,t,r,n){if(t.static=n,this.parsePropertyNamePrefixOperator(t),this.eat(51)){t.kind="method";let r=this.match(134);return(this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),r)?void this.pushClassPrivateMethod(e,t,!0,!1):(this.isNonstaticConstructor(t)&&this.raise(v9.ConstructorIsGenerator,t.key),void this.pushClassMethod(e,t,!0,!1,!1,!1))}let i=!this.state.containsEsc&&Tf(this.state.type),s=this.parseClassElementName(t),a=i?s.name:null,o=this.isPrivateName(s),l=this.state.startLoc;if(this.parsePostMemberNameModifiers(t),this.isClassMethod()){if(t.kind="method",o)return void this.pushClassPrivateMethod(e,t,!1,!1);let n=this.isNonstaticConstructor(t),i=!1;n&&(t.kind="constructor",t.decorators&&t.decorators.length>0&&this.raise(v9.DecoratorConstructor,t),r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(v9.DuplicateConstructor,s),n&&this.hasPlugin("typescript")&&t.override&&this.raise(v9.OverrideOnConstructor,s),r.hadConstructor=!0,i=r.hadSuperClass),this.pushClassMethod(e,t,!1,!1,n,i)}else if(this.isClassProperty())o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t);else if("async"!==a||this.isLineTerminator())if("get"!==a&&"set"!==a||this.match(51)&&this.isLineTerminator())if("accessor"!==a||this.isLineTerminator())this.isLineTerminator()?o?this.pushClassPrivateProperty(e,t):this.pushClassProperty(e,t):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(s);let r=this.match(134);this.parseClassElementName(t),this.pushClassAccessorProperty(e,t,r)}else{this.resetPreviousNodeTrailingComments(s),t.kind=a;let r=this.match(134);this.parseClassElementName(t),r?this.pushClassPrivateMethod(e,t,!1,!1):(this.isNonstaticConstructor(t)&&this.raise(v9.ConstructorIsAccessor,t.key),this.pushClassMethod(e,t,!1,!1,!1,!1)),this.checkGetterSetterParams(t)}else{this.resetPreviousNodeTrailingComments(s);let r=this.eat(51);t.optional&&this.unexpected(l),t.kind="method";let n=this.match(134);this.parseClassElementName(t),this.parsePostMemberNameModifiers(t),n?this.pushClassPrivateMethod(e,t,r,!0):(this.isNonstaticConstructor(t)&&this.raise(v9.ConstructorIsAsync,t.key),this.pushClassMethod(e,t,r,!0,!1,!1))}}parseClassElementName(e){let{type:t,value:r}=this.state;if((128===t||130===t)&&e.static&&"prototype"===r&&this.raise(v9.StaticPrototype,this.state.startLoc),134===t){"constructor"===r&&this.raise(v9.ConstructorClassPrivateField,this.state.startLoc);let t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){this.scope.enter(720);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,4),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),t.decorators?.length&&this.raise(v9.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(v9.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.start)}pushClassAccessorProperty(e,t,r){!r&&!t.computed&&this.nameIsConstructor(t.key)&&this.raise(v9.ConstructorClassField,t.key);let n=this.parseClassAccessorProperty(t);e.body.push(n),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.start)}pushClassMethod(e,t,r,n,i,s){e.body.push(this.parseMethod(t,r,n,i,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,n){let i=this.parseMethod(t,r,n,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let s="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,s)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.start)}parsePostMemberNameModifiers(){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(new Es),this.prodParam.enter(0),e.value=this.eat(25)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,n=8331){if(Tf(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,n);else if(r||!t)e.id=null;else throw this.raise(v9.MissingClassName,this.state.startLoc)}parseClassSuper(e){this.eat(77)?(this.state.canStartArrow=!1,e.superClass=this.parseExprSubscripts()):e.superClass=null}parseExport(e,t){let r,n=this.parseMaybeImportPhase(e,!0),i=this.maybeParseExportDefaultSpecifier(e,n),s=!i||this.eat(8),a=s&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),l=s&&(!o||this.eat(8)),u=i||a;if(a&&!o){if(i&&this.unexpected(),t)throw this.raise(v9.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(e);if(i&&s&&!a&&!c&&this.unexpected(null,2),o&&l&&this.unexpected(null,94),u||c){if(r=!1,t)throw this.raise(v9.UnsupportedDecoratorExport,e);this.parseExportFrom(e,u)}else r=this.maybeParseExportDeclaration(e);if(u||c||r){if(this.checkNamedExport(e,!!e.source),e.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(t,e.declaration,e);else if(t)throw this.raise(v9.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(61)){let r=this.parseExportDefaultExpression();if(e.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,e);else if(t)throw this.raise(v9.UnsupportedDecoratorExport,e);return this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")&&"Identifier"===r.type&&"from"===r.name&&r.end-r.start==4&&!r.extra?.parenthesized&&this.raise(v9.ExportDefaultFromAsIdentifier,r),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportDefaultDeclaration")}throw this.unexpected(null,2)}eatExportStar(){return this.eat(51)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t?.start);let r=t||this.parseIdentifier(!0),n=this.startNodeAtNode(r);return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(89)){e.specifiers??=[];let t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(2)){e.specifiers||(e.specifiers=[]);let t="type"===e.exportKind;return e.specifiers.push(...this.parseExportSpecifiers(t)),e.source=null,e.attributes=[],e.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(91))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(64))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(76))return this.parseClass(e,!0,!0);if(this.match(22))return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(71)||this.match(70)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(v9.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(){return this.match(76)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Tf(e)){if(91===e&&!this.state.containsEsc||96===e)return!1;if((126===e||125===e)&&!this.state.containsEsc){let e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(61))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||Tf(this.state.type)&&r)return!0;if(this.match(61)&&r){let e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(94)?(e.source=this.parseImportSource(),this.maybeParseImportAttributes(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;return!!(22===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")))||(this.isUsing()||this.isAwaitUsing()?(this.raise(v9.UsingDeclarationExport,this.state.startLoc),!0):70===e||71===e||64===e||76===e||this.isLet()||this.isAsyncFunction())}checkNamedExport(e,t){if(e.specifiers?.length)for(let r of e.specifiers){let{exported:e}=r,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(r,n),!t&&"ExportSpecifier"===r.type){let{local:e}=r;"Identifier"!==e.type?this.raise(v9.ExportBindingIsString,r,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){let t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){let{id:r}=t;if(!r)throw Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if("VariableDeclaration"===t.type)for(let e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(let t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(let t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(v9.DuplicateDefaultExport,e):this.raise(v9.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;for(this.expect(2);!this.eat(4);){if(r)r=!1;else if(this.expect(8),this.eat(4))break;let n=this.isContextual(126),i=this.match(130),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,i,e,n))}return t}parseExportSpecifier(e,t){return this.eatContextual(89)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(130)){let e=this.parseStringLiteral(this.state.value),t=ES.exec(e.value);return t&&this.raise(v9.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}checkImportPhase(e){let{specifiers:t}=e,r=1===t.length?t[0].type:null;"source"===e.phase?"ImportDefaultSpecifier"!==r&&this.raise(v9.SourcePhaseImportRequiresDefault,t[0]):"defer"===e.phase&&"ImportNamespaceSpecifier"!==r&&this.raise(v9.DeferImportRequiresNamespace,t[0])}isPotentialImportPhase(e){return!e&&(this.isContextual(101)||this.isContextual(93))}applyImportPhase(e,t,r,n){!t&&("source"===r?(this.expectPlugin("sourcePhaseImports",n),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",n),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let r=this.startNode(),n=this.parseIdentifierName(!0),{type:i}=this.state;return(Tm(i)?94!==i||102===this.lookaheadCharCode():8!==i)?(this.applyImportPhase(e,t,n,r.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,n))}isPrecedingIdImportPhase(){let{type:e}=this.state;return Tf(e)?94!==e||102===this.lookaheadCharCode():8!==e}parseImport(e){return this.match(130)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(8),n=r&&this.maybeParseStarImportSpecifier(e);return r&&!n&&this.parseNamedImportSpecifiers(e),this.expectContextual(94),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return e.specifiers??=[],e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportPhase(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(130)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(2);let e=[],t=new Set;do{if(this.match(4))break;let r=this.startNode(),n=this.state.value;if(t.has(n)&&this.raise(v9.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:n}),t.add(n),this.match(130)?r.key=this.parseStringLiteral(n):r.key=this.parseIdentifier(!0),this.expect(10),!this.match(130))throw this.raise(v9.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(8))return this.expect(4),e}maybeParseImportAttributes(e){let t;if(this.match(72)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),t=this.parseImportAttributes()}else t=[];e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!Tm(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(51)){let t=this.startNode();return this.next(),this.expectContextual(89),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(2);!this.eat(4);){if(t)t=!1;else{if(this.eat(10))throw this.raise(v9.DestructureNamedImport,this.state.startLoc);if(this.expect(8),this.eat(4))break}let r=this.startNode(),n=this.match(130),i=this.isContextual(126);r.imported=this.parseModuleExportName();let s=this.parseImportSpecifier(r,n,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,r,n,i){if(this.eatContextual(89))e.local=this.parseIdentifier();else{let{imported:r}=e;if(t)throw this.raise(v9.ImportBindingIsString,e,{importName:r.value});this.checkReservedWord(r.name,e.start,!0,!0),e.local||(e.local=this.cloneIdentifier(r))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}},Ek=/in(?:stanceof)?|as|satisfies/y;function Ew(e){if(!e)throw Error("Assert fail")}var EA=v8`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclaratorDefiniteAssertionRequiresTypeAnnotation:"Declarations with definite assignment assertions must also have type annotations.",DeclaratorDefiniteAssertionWithInitializer:"Declarations with initializers cannot also have definite assignment assertions.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DecoratorAbstractMethod:({kind:e})=>`Decorators can't be used with ${e.startsWith("a")?"an":"a"} ${e}.`,DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyNamespaceName:"Namespace must be given a name.",EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ExportAssignmentInTSNamespace:"An export assignment cannot be used in a namespace.",ExportInTSNamespace:"Export declarations are not permitted in a namespace.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportInTSNamespace:"Import declarations in a namespace cannot reference a module.",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InlineModuleDeclarationMustUseString:"`module ... {}` declarations must have a string name. Use `namespace ... {}` instead.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidNamespaceName:e=>`Namespace name cannot be '${e}'.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NamespaceExportInTSNamespace:"Global module exports may only appear at top level.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterInitializer:"A parameter initializer is only allowed in a function or constructor implementation.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnexpectedTypeDeclaration:e=>`'${e}' declarations can only be declared inside a block.`,UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function EP(e){return"private"===e||"public"===e||"protected"===e}var EC=ED(["declare","private","public","protected","override","abstract","readonly","static"],["in","out"]),EI=ED(["readonly"],["declare","abstract","private","protected","public","static","override"]),E_=ED(["public","private","protected","override","readonly"]),EN=ED(["private","public","protected"]),EL=e=>class extends e{getScopeHandler(){return TW}tsIsIdentifier(){return Tf(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(2)||this.match(51)||this.match(17)||this.match(134)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(102)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,r){if(!Tf(this.state.type)&&54!==this.state.type&&71!==this.state.type)return;let n=this.state.value;if(e.has(n)){if(r&&this.match(102)||t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}tsParseModifiers(e,t=EA.InvalidModifierOnTypeMember,r,n=!1){let i=(e,t,n,i)=>{t===n&&r[i]&&this.raise(EA.InvalidModifiersOrder,e,{orderedModifiers:[n,i]})},s=(e,t,n,i)=>{(r[n]&&t===i||r[i]&&t===n)&&this.raise(EA.IncompatibleModifiers,e,{modifiers:[n,i]})};for(;;){let{startLoc:a}=this.state,o=this.tsParseModifier(e,n,r.static);if(!o)break;if(EP(o))r.accessibility?this.raise(EA.DuplicateAccessibilityModifier,a,{modifier:o}):(i(a,o,o,"override"),i(a,o,o,"static"),i(a,o,o,"readonly"),r.accessibility=o);else"in"===o||"out"===o?(r[o]&&this.raise(EA.DuplicateModifier,a,{modifier:o}),r[o]=!0,i(a,o,"in","out")):(Object.hasOwn(r,o)?this.raise(EA.DuplicateModifier,a,{modifier:o}):(i(a,o,"static","readonly"),i(a,o,"static","override"),i(a,o,"override","readonly"),i(a,o,"abstract","override"),s(a,o,"declare","override"),s(a,o,"static","abstract")),r[o]=!0);e.get(o)||this.raise(t,a,{modifier:o})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(4);case"HeritageClauseElement":return this.match(2);case"TupleElementTypes":return this.match(1);case"TypeParametersOrArguments":return this.match(44)}}tsParseList(e,t){let r=[];for(;!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){var n=this.tsParseDelimitedListWorker(e,t,!0,r);if(null==n)throw Error(`Unexpected ${n} value.`);return n}tsParseDelimitedListWorker(e,t,r,n){let i=[],s=-1;for(;!this.tsIsListTerminator(e);){s=-1;let n=t();if(null==n)return;if(i.push(n),this.eat(8)){s=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e))break;r&&this.expect(8);return}return n&&(n.value=s),i}tsParseBracketedList(e,t,r,n,i){n||(r?this.expect(0):this.expect(43));let s=this.tsParseDelimitedList(e,t,i);return r?this.expect(1):this.expect(44),s}tsParseImportType(){let e=this.startNode();return this.expect(79),this.expect(6),this.match(130)?e.source=this.parseStringLiteral(this.state.value):(this.raise(EA.UnsupportedImportTypeArgument,this.state.startLoc),e.source=this.tsParseNonConditionalType()),this.eat(8)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(7),this.eat(12)&&(e.qualifier=this.tsParseEntityName(3)),this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){let e=this.startNode();this.expect(2);let t=this.startNode();return this.isContextual(72)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,72),this.expect(10),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(8),this.expect(4),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let e=this.startNode(),t=[];for(this.expect(2);!this.match(4);){let e=this.state.type;Tf(e)||130===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(8)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(74))if(2&e)t=this.parseIdentifier(!0);else{let e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(12);){let r=this.startNodeAtNode(t);r.left=t,r.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){let e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();let t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){let e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){let e=this.startNode();return this.expect(83),this.match(79)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(43)&&(e.typeArguments=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,ED(["in","out"],["const","public","private","protected","readonly","declare","abstract","override"]),EA.InvalidModifierOnTypeParameter);tsParseConstModifier=this.tsParseModifiers.bind(this,ED(["const"],["in","out"]),EA.InvalidModifierOnTypeParameterPositions);tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,ED(["in","out","const"],["public","private","protected","readonly","declare","abstract","override"]),EA.InvalidModifierOnTypeParameter);tsParseTypeParameter(e){let t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(77),t.default=this.tsEatThenParseType(25),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(43))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){let t=this.startNode();this.match(43)||this.match(138)?this.next():this.unexpected();let r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(EA.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){let r=15===e,n="returnType";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(6),t.params=this.tsParseBindingListForSignature(),r?t[n]=this.tsParseTypeOrTypePredicateAnnotation(e):this.match(e)&&(t[n]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){let e=super.parseBindingList(7,41,2);for(let t of e){let{type:e}=t;("AssignmentPattern"===e||"TSParameterProperty"===e)&&this.raise(EA.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(8)||this.isLineTerminator()||this.expect(9)}tsParseSignatureMember(e,t){return this.tsFillSignature(10,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!Tf(this.state.type)&&(this.next(),this.match(10))}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(1),e.parameters=[t];let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(13)&&(e.optional=!0),this.match(6)||this.match(43)){if(t&&this.raise(EA.ReadonlyForMethodSignature,e),e.kind&&this.match(43)&&this.raise(EA.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(10,e),this.tsParseTypeMemberSemicolon(),"get"===e.kind)e.params.length>0&&(this.raise(v9.BadGetterArity,this.state.curPosition()),this.isThisParam(e.params[0])&&this.raise(EA.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===e.kind){if(1!==e.params.length)this.raise(v9.BadSetterArity,this.state.curPosition());else{let t=e.params[0];this.isThisParam(t)&&this.raise(EA.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===t.type&&t.optional&&this.raise(EA.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===t.type&&this.raise(EA.SetAccessorCannotHaveRestParameter,this.state.curPosition())}e.returnType&&this.raise(EA.SetAccessorCannotHaveReturnType,e.returnType)}else e.kind="method";return this.finishNode(e,"TSMethodSignature")}{t&&(e.readonly=!0);let r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSPropertySignature")}}tsParseTypeMember(){let e=this.startNode();if(this.match(6)||this.match(43))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(73)){let t=this.startNode();return(this.next(),this.match(6)||this.match(43))?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers(EI,void 0,e);let t=this.tsTryParseIndexSignature(e);return t||(super.parsePropertyName(e),!e.computed&&"Identifier"===e.key.type&&("get"===e.key.name||"set"===e.key.name)&&this.tsTokenCanFollowModifier()&&(e.kind=e.key.name,super.parsePropertyName(e),this.match(6)||this.match(43)||this.unexpected(null,6)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){let e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(2);let e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(4),e}tsIsStartOfMappedType(){return(this.next(),this.eat(49))?this.isContextual(118):(this.isContextual(118)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(54))))}tsParseMappedType(){let e=this.startNode();return this.expect(2),this.match(49)?(e.readonly=this.state.value,this.next(),this.expectContextual(118)):this.eatContextual(118)&&(e.readonly=!0),this.expect(0),e.key=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(54),e.nameType=this.eatContextual(89)?this.tsParseType():null,this.expect(1),this.match(49)?(e.optional=this.state.value,this.next(),this.expect(13)):this.eat(13)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(4),this.finishNode(e,"TSMappedType")}tsParseTupleType(){let e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{let{type:r}=e;t&&"TSRestType"!==r&&"TSOptionalType"!==r&&!("TSNamedTupleMember"===r&&e.optional)&&this.raise(EA.OptionalTypeBeforeRequired,e),t||="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){let e,t,r,n,i=this.state.startLoc,s=this.eat(17),{startLoc:a}=this.state,o=Tm(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(10),n=this.tsParseType();else if(63===o){r=!0;let i=this.state.value,s=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(a),i),this.expect(13),this.expect(10),n=this.tsParseType()):(e=!1,n=s,this.expect(13))}else n=this.tsParseType(),r=this.eat(13),e=this.eat(10);if(e){let e;t?((e=this.startNodeAt(a)).optional=r,e.label=t,e.elementType=n,this.eat(13)&&(e.optional=!0,this.raise(EA.TupleOptionalAfterType,this.state.lastTokStartLoc))):((e=this.startNodeAt(a)).optional=r,this.raise(EA.InvalidTupleMemberLabel,n),e.label=n,e.elementType=this.tsParseType()),n=this.finishNode(e,"TSNamedTupleMember")}else if(r){let e=this.startNodeAt(a);e.typeAnnotation=n,n=this.finishNode(e,"TSOptionalType")}if(s){let e=this.startNodeAt(i);e.typeAnnotation=n,n=this.finishNode(e,"TSRestType")}return n}tsParseParenthesizedType(){let e=this.startNode();return this.expect(6),e.typeAnnotation=this.tsParseType(),this.expect(7),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){let r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(15,r)),this.finishNode(r,e)}tsParseLiteralTypeNode(){let e=this.startNode();switch(this.state.type){case 131:case 132:case 130:case 81:case 82:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){let e=this.state.startLoc,t=this.parseTemplateElement(!1),r=[t];if(t.tail){let t=this.startNodeAt(e),n=this.startNodeAt(e);return n.expressions=[],n.quasis=r,t.literal=this.finishNode(n,"TemplateLiteral"),this.finishNode(t,"TSLiteralType")}{let n=[];for(;!t.tail;)n.push(this.tsParseType()),this.readTemplateContinuation(),r.push(t=this.parseTemplateElement(!1));let i=this.startNodeAt(e);return i.types=n,i.quasis=r,this.finishNode(i,"TSTemplateLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let e=this.tsParseThisTypeNode();return this.isContextual(112)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 130:case 131:case 132:case 81:case 82:return this.tsParseLiteralTypeNode();case 49:if("-"===this.state.value){let e=this.startNode(),t=this.lookahead();return 131!==t.type&&132!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 74:return this.tsParseThisTypeOrThisTypePredicate();case 83:return this.tsParseTypeQuery();case 79:return this.tsParseImportType();case 2:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 6:if(!(2048&this.optionFlags)){let e=this.state.startLoc;this.next();let t=this.tsParseType();return this.expect(7),this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),t}return this.tsParseParenthesizedType();case 21:case 20:return this.tsParseTemplateLiteralType();default:{let{type:e}=this.state;if(Tf(e)||84===e||80===e){let t=84===e?"TSVoidKeyword":80===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:e}=this.state,t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(1)){let r=this.startNodeAt(e);r.elementType=t,this.expect(1),t=this.finishNode(r,"TSArrayType")}else{let r=this.startNodeAt(e);r.objectType=t,r.indexType=this.tsParseType(),this.expect(1),t=this.finishNode(r,"TSIndexedAccessType")}return t}tsParseTypeOperator(){let e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(EA.UnexpectedReadonly,e)}}tsParseInferType(){let e=this.startNode();this.expectContextual(111);let t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(77)){let e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(13))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=117&&e<=119&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(111)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,r){let n=this.startNode(),i=this.eat(r),s=[];do s.push(t());while(this.eat(r))return 1!==s.length||i?(n.types=s,this.finishNode(n,e)):s[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),41)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),39)}tsIsStartOfFunctionType(){return!!this.match(43)||this.match(6)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Tf(this.state.type)||this.match(74))return this.next(),!0;if(this.match(2)){let{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(4,!0),e.length===t}catch{return!1}}if(this.match(0)){this.next();let{errors:e}=this.state,t=e.length;try{return super.parseBindingList(1,93,1),e.length===t}catch{}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(7)||this.match(17))return!0;if(this.tsSkipParameterStart()&&(this.match(10)||this.match(8)||this.match(13)||this.match(25)||this.match(7)&&(this.next(),this.match(15))))return!0;return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{let t=this.startNode();this.expect(e);let r=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(74)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(r.parameterName=e,r.asserts=!0,r.typeAnnotation=null,e=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(e,r),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return n?(r.parameterName=this.parseIdentifier(),r.asserts=n,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);let s=this.tsParseTypeAnnotation(!1);return r.parameterName=i,r.typeAnnotation=s,r.asserts=n,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(10))return this.tsParseTypeOrTypePredicateAnnotation(10)}tsTryParseTypeAnnotation(){if(this.match(10))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(10)}tsParseTypePredicatePrefix(){let e=this.parseIdentifier();if(this.isContextual(112)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(105!==this.state.type)return!1;let e=this.state.containsEsc;return this.next(),(!!Tf(this.state.type)||!!this.match(74))&&(e&&this.raise(v9.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(10),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){Ew(this.state.inType);let e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(77))return e;let t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(13),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(10),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(120)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(73)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(EA.ReservedTypeAssertion,this.state.startLoc);let e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71)?this.tsParseTypeReference():this.tsParseType())),this.expect(44),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){let t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",()=>{let t=(this.state.canStartArrow=!1,super.parseExprSubscripts());!function e(t){if(t.extra?.parenthesized)return!1;switch(t.type){case"Identifier":return!0;case"MemberExpression":return!t.computed&&e(t.object);case"TSInstantiationExpression":return e(t.expression);default:return!1}}(t)&&this.raise(EA.InvalidHeritageClauseType,t.start,{token:e});let r="extends"===e?"TSInterfaceHeritage":"TSClassImplements";if("TSInstantiationExpression"===t.type)return t.type=r,t;let n=this.startNodeAtNode(t);return n.expression=t,(this.match(43)||this.match(47))&&(n.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(n,r)});return r.length||this.raise(EA.EmptyHeritageClauseType,t,{token:e}),r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(125),t.declare&&(e.declare=!0),Tf(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(EA.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(77)&&(e.extends=this.tsParseHeritageClause("extends"));let r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(25),this.isContextual(110)&&46!==this.lookaheadCharCode()){let e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===TS.brace)return e();{let t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){let t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){let t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let e=this.startNode();return e.id=this.match(130)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(25)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(122),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),e.body=this.tsParseEnumBody(),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){let e=this.startNode();return this.expect(2),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(4),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(e){let t=this.startNode();return e||this.scope.enter(0),this.expect(2),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,4),e||this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseNamespaceDeclaration(e){return e.id=this.tsParseEntityName(0),"Identifier"===e.id.type&&this.checkIdentifier(e.id,1024),this.scope.enter(2048),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(!1),this.prodParam.exit(),this.scope.exit(),this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){let t=this.isContextual(108);if(t)e.kind="global",e.id=this.parseIdentifier();else{e.kind="module";let{type:t,value:r}=this.state;130===t?e.id=super.parseStringLiteral(r):Tf(t)?(this.raise(EA.InlineModuleDeclarationMustUseString,this.state.startLoc),e.id=this.tsParseEntityName(0)):2===t?this.raise(EA.EmptyNamespaceName,this.state.startLoc):(this.raise(EA.InvalidNamespaceName,this.state.startLoc,r),e.id=super.parseExprAtom())}return this.match(2)?(t||this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(t),this.prodParam.exit(),t||this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t){e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(25);let r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(EA.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(115)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let e=this.startNode();return this.expectContextual(115),this.expect(6),this.match(130)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(7),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){let t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){let t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){let t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;let t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 64:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 76:return e.declare=!0,this.parseClass(e,!0,!1);case 122:return this.tsParseEnumDeclaration(e,{declare:!0});case 108:return this.tsParseAmbientExternalModuleDeclaration(e);case 96:if(this.state.containsEsc)return;case 71:case 70:if(!this.match(71)||!this.isLookaheadContextual("enum"))return e.declare=!0,this.parseVarStatement(e,this.state.value,!0);return this.expect(71),this.tsParseEnumDeclaration(e,{const:!0,declare:!0});case 103:if(this.isUsing())return this.raise(EA.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 92:if(this.isAwaitUsing())return this.raise(EA.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 125:{let t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(Tf(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,r,n){switch(t){case 120:if(this.tsCheckLineTerminator(r)&&(this.match(76)||Tf(this.state.type)))return this.tsParseAbstractDeclaration(e,n);break;case 123:if(this.tsCheckLineTerminator(r))return this.tsParseAmbientExternalModuleDeclaration(e);break;case 124:if(this.tsCheckLineTerminator(r)&&Tf(this.state.type))return e.kind="namespace",this.tsParseNamespaceDeclaration(e);break;case 126:if(this.tsCheckLineTerminator(r)&&Tf(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(43))return;let t=this.tsTryParseAndCatch(()=>{let t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(15),t});if(t)return super.parseArrowExpression(t,null,!0)}tsParseTypeArgumentsInExpression(){if(43===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){let e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(43),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(EA.EmptyTypeArguments,e):this.state.inType||this.curContext()!==TS.brace||this.reScan_lt_gt(),this.expect(44),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){var e;return(e=this.state.type)>=120&&e<=126}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){let r=t.length?null:this.state.startLoc,n={};this.tsParseModifiers(E_,void 0,n);let i=n.accessibility,s=n.override,a=n.readonly;!(4&e)&&(i||a||s)&&this.raise(EA.UnexpectedParameterModifier,r||t[0]);let o=this.state.startLoc,l=this.parseMaybeDefault(o);2&e&&this.parseFunctionParamType(l);let u=this.parseMaybeDefault(o,l);if(i||a||s){let e=r?this.startNodeAt(r):this.startNodeAtNode(t[0]);return t.length?e.decorators=t:this.setLoc(r),i&&(e.accessibility=i),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==u.type&&"AssignmentPattern"!==u.type&&this.raise(EA.UnsupportedParameterPropertyKind,r||t[0]),e.parameter=u,this.finishNode(e,"TSParameterProperty")}return t.length&&(l.decorators=t),u}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(let t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(EA.PatternIsOptional,t)}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=!1){this.match(10)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(10));let n="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;if(n&&!this.match(2)&&this.isLineTerminator()){if("TSDeclareMethod"===n&&"constructor"===e.kind)for(let t of e.params)"TSParameterProperty"===t.type?this.raise(EA.UnexpectedParameterModifier,t):"AssignmentPattern"===t.type&&this.raise(EA.UnexpectedParameterInitializer,t);else for(let t of e.params)"AssignmentPattern"===t.type&&this.raise(EA.UnexpectedParameterInitializer,t);return this.finishNode(e,n)}return n&&this.state.isAmbientContext&&(this.raise(EA.DeclareFunctionHasImplementation,this.state.startLoc),"TSDeclareFunction"===n&&e.declare)?super.parseFunctionBodyAndFinish(e,n,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{e?.type==="TSTypeCastExpression"&&this.raise(EA.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t){let r=super.parseArrayLike(e,t);return"ArrayExpression"===r.type&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,r,n){if(!this.hasPrecedingLineBreak()&&this.match(31)){this.state.canStartJSXElement=!1,this.next();let r=this.startNodeAt(t);return r.expression=e,this.finishNode(r,"TSNonNullExpression")}let i=!1;if(this.match(14)&&60===this.lookaheadCharCode()){if(r)return n.stop=!0,e;n.optionalChainMember=i=!0,this.next()}if(this.match(43)||this.match(47)){let s,a=this.tsTryParseAndCatch(()=>{if(!r&&this.atPossibleAsyncArrow(e)){let e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return n.stop=!0,e}let a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(i&&!this.match(6)){s=this.state.curPosition();return}if(Tb(this.state.type)){let r=super.parseTaggedTemplateExpression(e,t,n);return r.typeArguments=a,r}if(!r&&this.eat(6)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(r.arguments),r.typeArguments=a,n.optionalChainMember&&(r.optional=i),this.finishCallExpression(r,n.optionalChainMember)}let o=this.state.type;if(44===o||48===o||6!==o&&89!==o&&116!==o&&Tu[o]&&!this.hasPrecedingLineBreak())return;let l=this.startNodeAt(t);return l.expression=e,l.typeArguments=a,this.finishNode(l,"TSInstantiationExpression")});if(s&&this.unexpected(s,6),a)return"TSInstantiationExpression"===a.type&&((this.match(12)||this.match(14)&&40!==this.lookaheadCharCode())&&this.raise(EA.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(12)||this.match(14)||(a.expression=super.stopParseSubscript(e,n))),a}return super.parseSubscript(e,t,r,n)}parseNewCallee(e){super.parseNewCallee(e);let{callee:t}=e;"TSInstantiationExpression"!==t.type||t.extra?.parenthesized||(e.typeArguments=t.typeArguments,e.callee=t.expression)}parseExprOp(e,t,r){let n;if(To[54]>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(89)||(n=this.isContextual(116)))){let i=this.startNodeAt(t);i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(71))?(n&&this.raise(v9.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType());let s=this.finishNode(i,n?"TSSatisfiesExpression":"TSAsExpression");return this.reScan_lt_gt(),this.parseExprOp(s,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,n){this.state.isAmbientContext||super.checkReservedWord(e,t,r,n)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(126)){let t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(83)}applyImportPhase(e,t,r,n){super.applyImportPhase(e,t,r,n),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){let t;if(this.match(130))return e.importKind="value",this.scope.inTSNamespace&&this.raise(EA.ImportInTSNamespace,e),super.parseImport(e);if(Tf(this.state.type)&&61===this.lookaheadCharCode()){e.importKind="value";let t=this.tsParseImportEqualsDeclaration(e);return this.scope.inTSNamespace&&"TSExternalModuleReference"===t.moduleReference.type&&this.raise(EA.ImportInTSNamespace,e),t}if(this.isContextual(126)){let r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.scope.inTSNamespace&&this.raise(EA.ImportInTSNamespace,e),this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type?this.raise(EA.TypeImportCannotSpecifyDefaultAndNamed,t):this.scope.inTSNamespace&&this.raise(EA.ImportInTSNamespace,t),t}parseExport(e,t){if(this.match(79)){let t=this.startNode();this.next();let r=null;this.isContextual(126)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(t,!1):t.importKind="value";let n=this.tsParseImportEqualsDeclaration(t,r);return e.attributes=[],e.declaration=n,e.exportKind="value",e.source=null,e.specifiers=[],this.finishNode(e,"ExportNamedDeclaration")}if(this.eat(25))return e.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.scope.inTSNamespace&&this.raise(EA.ExportAssignmentInTSNamespace,e),this.finishNode(e,"TSExportAssignment");if(this.eatContextual(89))return this.expectContextual(124),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,8201),this.semicolon(),this.scope.inTSNamespace&&this.raise(EA.NamespaceExportInTSNamespace,e),this.finishNode(e,"TSNamespaceExportDeclaration");{let r=super.parseExport(e,t);return this.scope.inTSNamespace&&("ExportNamedDeclaration"!==r.type||r.source||!r.declaration&&!this.state.isAmbientContext)&&this.raise(EA.ExportInTSNamespace,r),r}}isAbstractClass(){return this.isContextual(120)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(125)){let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=!1){let{isAmbientContext:n}=this.state,i=super.parseVarStatement(e,t,r||n);if(n&&!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(EA.UsingDeclarationInAmbientContext,e,t),i;for(let e of i.declarations){let{id:r,init:i,definite:s}=e;s&&(i?this.raise(EA.DeclaratorDefiniteAssertionWithInitializer,r):r.typeAnnotation||this.raise(EA.DeclaratorDefiniteAssertionRequiresTypeAnnotation,r)),n&&i&&("var"===t||"let"===t||r.typeAnnotation?this.raise(EA.InitializerNotAllowedInAmbientContext,i):!function(e,t){let{type:r}=e;if(e.extra?.parenthesized)return!1;if(t){if("Literal"===r){let{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!!(EO(e,t)||function(e,t){if("UnaryExpression"===e.type){let{operator:r,argument:n}=e;if("-"===r&&EO(n,t))return!0}return!1}(e,t)||"TemplateLiteral"===r&&0===e.expressions.length||function(e){if("MemberExpression"!==e.type)return!1;let{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||"TemplateLiteral"===r.type&&!(r.expressions.length>0))&&function e(t){return"Identifier"===t.type||"MemberExpression"===t.type&&!t.computed&&e(t.object)}(e.object)}(e))}(i,this.hasPlugin("estree"))&&this.raise(EA.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,i))}return i}parseStatementContent(e,t){let r=!!(2&e);if(!this.state.containsEsc)switch(this.state.type){case 71:if(this.isLookaheadContextual("enum")){let e=this.startNode();return this.next(),this.tsParseEnumDeclaration(e,{const:!0})}break;case 120:case 121:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let e=this.state.type,r=this.startNode();this.next();let n=121===e?this.tsTryParseDeclare(r):this.tsParseAbstractDeclaration(r,t);if(n)return 121===e&&(n.declare=!0),n;return r.expression=this.createIdentifier(this.startNodeAtNode(r),121===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(r,"ExpressionStatement")}break;case 122:return this.tsParseEnumDeclaration(this.startNode());case 108:if(123===this.lookaheadCharCode()){let e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 125:{let e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return r||this.raise(EA.UnexpectedTypeDeclaration,e,"interface"),e;break}case 123:if(this.nextTokenIsStringLiteralOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,123,!1,t)}if(this.nextTokenIsIdentifierOnSameLine()){this.raise(EA.InlineModuleDeclarationMustUseString,this.state.startLoc);let e=this.startNode();return this.next(),this.tsParseDeclaration(e,124,!1,t)}break;case 124:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return this.next(),this.tsParseDeclaration(e,124,!1,t)}break;case 126:if(this.nextTokenIsIdentifierOnSameLine()){let e=this.startNode();return r||this.raise(EA.UnexpectedTypeDeclaration,e,"type"),this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(EN)}tsHasSomeModifiers(e,t){return t.some(t=>EP(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(102)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){this.tsParseModifiers(EC,EA.InvalidModifierOnTypeParameterPositions,t,!0);let n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,["declare","private","public","protected","override","abstract","readonly","static"])&&this.raise(EA.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(n):n(),t.decorators&&t.decorators.length>0&&!this.hasPlugin("decorators-legacy")&&("TSAbstractMethodDefinition"===t.type||"TSDeclareMethod"===t.type?this.raise(EA.DecoratorAbstractMethod,t,{kind:"abstract method"}):("ClassProperty"===t.type&&t.abstract||"ClassProperty"===t.type&&t.declare||"TSAbstractPropertyDefinition"===t.type||"PropertyDefinition"===t.type&&t.declare)&&this.raise(EA.DecoratorAbstractMethod,t,{kind:t.declare?"declare field":"abstract field"}))}parseClassMemberWithIsStatic(e,t,r,n){let i=this.tsTryParseIndexSignature(t);if(i){e.body.push(i),t.abstract&&this.raise(EA.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(EA.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(EA.IndexSignatureHasDeclare,t),t.override&&this.raise(EA.IndexSignatureHasOverride,t);return}!this.state.inAbstractClass&&t.abstract&&this.raise(EA.NonAbstractClassHasAbstractMethod,t),t.override&&!r.hadSuperClass&&this.raise(EA.OverrideNotInSubClass,t),super.parseClassMemberWithIsStatic(e,t,r,n)}parsePostMemberNameModifiers(e){this.eat(13)&&(e.optional=!0),e.readonly&&this.match(6)&&this.raise(EA.ClassMethodHasReadonly,e),e.declare&&this.match(6)&&this.raise(EA.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(13))return e;if(null!=r){let t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(r),e}this.next();let n=this.startNodeAt(t);n.test=e;let i=this.state.inConditionalConsequent;return this.state.inConditionalConsequent=!0,n.consequent=this.parseMaybeAssignAllowIn(),this.state.inConditionalConsequent=i,this.expect(10),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}parseParenItem(e,t){let r=super.parseParenItem(e,t);if(this.eat(13)&&(r.optional=!0,this.resetEndLocation(e)),this.match(10)){let r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(121))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));let t=this.state.startLoc,r=this.eatContextual(121);if(r&&(this.isContextual(121)||!this.shouldParseExportDeclaration()))throw this.raise(EA.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let n=Tf(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return n?(("TSInterfaceDeclaration"===n.type||"TSTypeAliasDeclaration"===n.type||r)&&(e.exportKind="type"),r&&"TSImportEqualsDeclaration"!==n.type&&(this.resetStartLocation(n,t),n.declare=!0),n):null}parseClassId(e,t,r){if((!t||r)&&this.isContextual(109)){e.id=null;return}super.parseClassId(e,t,r,e.declare?1024:8331);let n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}parseClassPropertyAnnotation(e){!e.optional&&(this.eat(31)?e.definite=!0:this.eat(13)&&(e.optional=!0));let t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t),e.definite&&(this.match(25)?this.raise(EA.DeclaratorDefiniteAssertionWithInitializer,e):t||this.raise(EA.DeclaratorDefiniteAssertionRequiresTypeAnnotation,e))}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(25)&&this.raise(EA.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(25)){let{key:t}=e;this.raise(EA.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(EA.PrivateElementHasAbstract,e),e.accessibility&&this.raise(EA.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(EA.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,n,i,s){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&i&&this.raise(EA.ConstructorHasTypeParameters,a);let{declare:o=!1,kind:l}=t;o&&("get"===l||"set"===l)&&this.raise(EA.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,r,n,i,s)}pushClassPrivateMethod(e,t,r,n){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,r,n)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"===e.type||("MethodDefinition"!==e.type||null!=e.value.body)&&super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if("TSInstantiationExpression"===e.superClass.type){let t=e.superClass,r=t.expression;this.takeSurroundingComments(r,r.start,r.end);let n=t.typeArguments;this.takeSurroundingComments(n,n.start,n.end),e.superClass=r,e.superTypeArguments=n}else(this.match(43)||this.match(47))&&(e.superTypeArguments=this.tsParseTypeArgumentsInExpression());this.eatContextual(109)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,n,i,s,a){let o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,n,i,s,a)}parseFunctionParams(e,t){let r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(31)&&(e.definite=!0);let r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(10)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){let r,n,i,s;if(this.hasPlugin("jsx")&&(this.match(138)||this.match(43))){if(r=this.state.clone(),!(n=this.tryParse(()=>super.parseMaybeAssign(e,t),r)).error)return n.node;let{context:i}=this.state,s=i[i.length-1];(s===TS.j_oTag||s===TS.j_expr)&&i.pop()}if(!n?.error&&!this.match(43))return super.parseMaybeAssign(e,t);r&&r!==this.state||(r=this.state.clone());let a=this.tryParse(r=>{s=this.tsParseTypeParameters(this.tsParseConstModifier);let n=super.parseMaybeAssign(e,t);if(("ArrowFunctionExpression"!==n.type||n.extra?.parenthesized)&&r(),s?.params.length!==0&&this.resetStartLocationFromNode(n,s),n.typeParameters=s,this.hasPlugin("jsx")&&1===n.typeParameters.params.length&&!n.typeParameters.extra?.trailingComma){let e=n.typeParameters.params[0];e.constraint||this.raise(EA.SingleTypeParameterWithoutTrailingComma,256&this.optionFlags?v1(e.loc.end,1):e,{typeParameterName:e.name.name})}return n},r);if(!a.error&&!a.aborted)return s&&this.reportReservedArrowTypeParam(s),a.node;if(!n&&(Ew(!this.hasPlugin("jsx")),!(i=this.tryParse(()=>super.parseMaybeAssign(e,t),r)).error))return i.node;if(n?.node)return this.state=n.failState,n.node;if(a.node)return this.state=a.failState,s&&this.reportReservedArrowTypeParam(s),a.node;if(i?.node)return this.state=i.failState,i.node;throw n?.error||a.error||i?.error}reportReservedArrowTypeParam(e){1===e.params.length&&!e.params[0].constraint&&!e.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(EA.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(43)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(10)){let t=this.tryParse(e=>{let t=this.tsParseTypeOrTypePredicateAnnotation(10);return(this.canInsertSemicolon()||!this.match(15))&&e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(13)&&(e.optional=!0);let t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(EA.UnexpectedTypeCastInParameter,e):this.raise(EA.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r,n){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==n||!r)&&["expression",!0];default:return super.isValidLVal(e,t,r,n)}}parseBindingAtom(){return 74===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(43)||this.match(47)){let r=this.tsParseTypeArgumentsInExpression();if(this.match(6)){let n=super.parseMaybeDecoratorArguments(e,t);return n.typeArguments=r,n}this.unexpected(null,6)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(8)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(43)||super.isClassMethod()}isClassProperty(){return this.match(31)||this.match(10)||super.isClassProperty()}parseMaybeDefault(e,t){let r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(EA.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(44,1);if(60===e)return void this.finishOp(43,1)}super.getTokenFromCode(e)}reScan_lt_gt(){let{type:e}=this.state;43===e?(this.state.pos-=1,this.readToken_lt()):44===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:e}=this.state;return 47===e?(this.state.pos-=2,this.finishOp(43,1),43):e}toAssignableListItem(e,t,r){let n=e[t];"TSTypeCastExpression"===n.type&&(e[t]=this.typeCastToParameter(n)),super.toAssignableListItem(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocationFromNode(e.expression,e.typeAnnotation),e.expression}shouldParseArrow(e){return this.match(10)?e.every(e=>this.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(10)?!this.state.inConditionalConsequent:super.shouldParseAsyncArrow()}parseParenAndDistinguishExpression(e){let t=this.state.inConditionalConsequent;this.state.inConditionalConsequent=!1;let r=super.parseParenAndDistinguishExpression(e);return this.state.inConditionalConsequent=t,r}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(43)||this.match(47)){let t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeArguments=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){let t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){let e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){let{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=r}}parseClass(e,t,r){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(e,t){if(this.match(76))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(125))if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(EA.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e);else return null;throw this.unexpected(null,76)}parseMethod(e,t,r,n,i,s,a){let o=super.parseMethod(e,t,r,n,i,s,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){let{key:e}=o;this.raise(EA.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return o}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyExportSpecifier(e,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,n))}parseImportSpecifier(e,t,r,n){return!t&&n?(this.parseTypeOnlyImportSpecifier(e,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,n,r?4098:4096))}parseTypeOnlyImportSpecifier(e,t){let r=e.imported,n=!1;if(this.isContextual(89)){let t=this.parseIdentifier();if(this.isContextual(89)){let i=this.parseIdentifier();Tm(this.state.type)?(n=!0,r=t,e.local=this.parseIdentifier()):e.local=i}else Tm(this.state.type)?e.local=this.parseIdentifier():(n=!0,r=t)}else Tm(this.state.type)&&(n=!0,r=this.parseIdentifier(!0),this.isContextual(89)||this.checkReservedWord(r.name,r.start,!0,!0));n&&t&&this.raise(EA.TypeModifierIsUsedInTypeImports,e.imported),e.imported=r,e.importKind=n?"type":"value",this.checkIdentifier(e.local??=this.eatContextual(89)?this.parseIdentifier():this.cloneIdentifier(e.imported),n?4098:4096)}parseTypeOnlyExportSpecifier(e,t){let r=e.local,n=!1;if(this.isContextual(89)){let t=this.parseIdentifier();if(this.isContextual(89)){let r=this.parseIdentifier();Tm(this.state.type)?(n=!0,e.local=t,e.exported=this.parseModuleExportName()):e.exported=r}else Tm(this.state.type)?e.exported=this.parseModuleExportName():(n=!0,e.local=t)}else Tm(this.state.type)&&(n=!0,e.local=this.parseModuleExportName());n&&t&&this.raise(EA.TypeModifierIsUsedInTypeExports,r),e.exportKind=n?"type":"value",e.exported??=this.eatContextual(89)?this.parseModuleExportName():this.cloneIdentifier(e.local)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ImportDeclaration":e.phase??=null;return;case"ExpressionStatement":e.directive??=void 0;return;case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":e.decorators??=[],e.optional??=!1,e.typeAnnotation??=void 0;return;case"TSParameterProperty":e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.readonly??=!1,e.static??=!1;return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":e.declare??=!1,e.returnType??=void 0,e.typeParameters??=void 0;return;case"Property":e.optional??=!1;return;case"TSMethodSignature":case"TSPropertySignature":e.optional??=!1;case"TSIndexSignature":e.accessibility??=void 0,e.readonly??=!1,e.static??=!1;return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":e.declare??=!1,e.definite??=!1,e.readonly??=!1,e.typeAnnotation??=void 0;case"TSAbstractMethodDefinition":case"MethodDefinition":e.accessibility??=void 0,e.decorators??=[],e.override??=!1,e.optional??=!1;return;case"ClassExpression":e.id??=null;case"ClassDeclaration":e.abstract??=!1,e.declare??=!1,e.decorators??=[],e.implements??=[],e.superTypeArguments??=void 0,e.typeParameters??=void 0;return;case"TSTypeAliasDeclaration":case"VariableDeclaration":e.declare??=!1;return;case"VariableDeclarator":e.definite??=!1;return;case"TSEnumDeclaration":e.const??=!1,e.declare??=!1;return;case"TSEnumMember":e.computed??=!1;return;case"TSImportType":e.qualifier??=null,e.options??=null,e.typeArguments??=null;return;case"TSInterfaceDeclaration":e.declare??=!1,e.extends??=[];return;case"TSMappedType":e.optional??=!1,e.readonly??=void 0;return;case"TSModuleDeclaration":e.declare??=!1,e.global??="global"===e.kind;return;case"TSTypeParameter":e.const??=!1,e.in??=!1,e.out??=!1;return}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(TA(e)){if(Ek.lastIndex=t,Ek.test(this.input)){let e=this.codePointAtPos(Ek.lastIndex);if(!TP(e)&&92!==e)return!1}return!0}return 92===e||!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsStringLiteralOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 34===t||39===t}};function EO(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function ED(e,t=[]){let r=new Map;for(let t of e)r.set(t,!0);for(let e of t)r.set(e,!1);return r}var EM=v8`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),EF=["fsharp","hack"],Ej=["^^","@@","^","%","#"],EB={estree:e=>class extends e{createPosition(e){return new vZ(e.line,e.column)}parse(){let e=super.parse();return 512&this.optionFlags&&(e.tokens=e.tokens.map(v7)),v7(e)}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch{}let n=this.estreeParseLiteral(r);return n.regex={pattern:e,flags:t},n}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch{t=null}let r=this.estreeParseLiteral(t);return r.bigint=null!==r.value?String(r.value):e,r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){let r=this.startNodeAtNode(e);return r.expression=e,this.finishNodeAtNode(r,"ChainExpression",t)}directiveToStmt(e){let t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;let r=this.castNodeTo(e,"ExpressionStatement");return r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}fillOptionalPropertiesForTSESLint(){}cloneEstreeStringLiteral(e){let{start:t,end:r,loc:n,range:i,raw:s,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=r,o.loc=n,o.range=i,o.raw=s,o.value=a,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!e.expression.extra?.parenthesized}parseBlockBody(e,t,r,n,i){super.parseBlockBody(e,t,r,n,i);let s=e.directives.map(e=>this.directiveToStmt(e));e.body=s.concat(e.body),delete e.directives}parsePrivateName(){let e=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){let t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return"PrivateIdentifier"===e.type}getPrivateNameSV(e){return e.name}parseLiteral(e,t){let r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t,r=!1){super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,n,i,s,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,r,n,i,s,a),delete o.kind;let{typeParameters:l}=e;return(l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l)),e.value=this.castNodeTo(o,this.hasPlugin("typescript")&&!o.body?"TSEmptyBodyFunctionExpression":"FunctionExpression"),"ClassPrivateMethod"===s&&(e.computed=!1),this.hasPlugin("typescript")&&e.abstract)?(delete e.abstract,this.finishNode(e,"TSAbstractMethodDefinition")):"ObjectMethod"===s?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){let t=super.parseClassProperty(...e);return t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractPropertyDefinition")):this.castNodeTo(t,"PropertyDefinition"),t}parseClassPrivateProperty(...e){let t=super.parseClassPrivateProperty(...e);return t.abstract&&this.hasPlugin("typescript")?this.castNodeTo(t,"TSAbstractPropertyDefinition"):this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t}parseClassAccessorProperty(e){let t=super.parseClassAccessorProperty(e);return t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t}parseObjectProperty(e,t,r,n){let i=super.parseObjectProperty(e,t,r,n);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,r,n){return"Property"===e?"value":super.isValidLVal(e,t,r,n)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){let{key:r,value:n}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.start),this.toAssignable(n,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"Property"===e.type&&("get"===e.kind||"set"===e.kind)?this.raise(v9.PatternHasAccessor,e.key):"Property"===e.type&&e.method?this.raise(v9.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r)}finishCallExpression(e,t){let r=super.finishCallExpression(e,t);return"Import"===r.callee.type?(this.castNodeTo(r,"ImportExpression"),r.source=r.arguments[0],r.options=r.arguments[1]??null,delete r.arguments,delete r.callee):"OptionalCallExpression"===r.type?this.castNodeTo(r,"CallExpression"):r.optional=!1,r}parseExport(e,t){let r=this.state.lastTokStartLoc,n=super.parseExport(e,t);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":1===n.specifiers.length&&"ExportNamespaceSpecifier"===n.specifiers[0].type&&(this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{let{declaration:e}=n;e?.type==="ClassDeclaration"&&e.decorators?.length>0&&e.start===n.start&&this.resetStartLocation(n,r)}}return n}stopParseSubscript(e,t){let r=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(r,e):r}parseMember(e,t,r,n,i){let s=super.parseMember(e,t,r,n,i);return"OptionalMemberExpression"===s.type?this.castNodeTo(s,"MemberExpression"):s.optional=!1,s}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){let r=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneIdentifier(e){let t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,r){return v7(super.finishNodeAt(e,t,r))}finishNodeAtNode(e,t,r){return v7(super.finishNodeAtNode(e,t,r))}finishNode(e,t){let r=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}resetStartLocation(e,t){super.resetStartLocation(e,t),v7(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),v7(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Tq.UnterminatedJsxContent,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start)return void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(138)):super.getTokenFromCode(r));e+=this.input.slice(t,this.state.pos),this.finishToken(137,e);return;case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;case 62:case 125:this.raise(Tq.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:125===r?"&rbrace;":"&gt;"});default:TR(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){let t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){let t="",r=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(v9.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):TR(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(130,t)}jsxReadEntity(){let e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);let t=this.readInt(e,void 0,!1,"bail");if(null!==t&&t<=1114111&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,r=!1;for(;t++<10&&this.state.pos<this.length&&!(r=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(r){let t=Tj[this.input.slice(e,this.state.pos)];if(++this.state.pos,t)return t}}return this.state.pos=e,"&"}jsxReadWord(){let e,t=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(TP(e)||45===e)this.finishToken(136,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(136)?e.name=this.state.value:Ty(this.state.type)?e.name=Ta[this.state.type]:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(10))return t;let r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(12);){let r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 2:return e=this.startNode(),this.setContext(TS.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,TS.j_oTag)).expression.type&&this.raise(Tq.AttributeIsEmpty,e),e;case 138:case 130:return this.parseExprAtom();default:throw this.raise(Tq.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(TS.j_expr),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(4))e.expression=this.jsxParseEmptyExpression();else{let t=this.parseExpression();"SequenceExpression"!==t.type||t.extra?.parenthesized||this.raise(Tq.UnexpectedSequenceExpression,t.expressions[1]),e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){if(this.match(2)){let e=this.startNode();return this.setContext(TS.brace),this.next(),this.expect(17),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(TS.j_oTag),this.state.canStartJSXElement=!0,this.expect(4),this.finishNode(e,"JSXSpreadAttribute")}let e=this.startNode();return e.name=this.jsxParseNamespacedName(),e.value=this.eat(25)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){if(this.eat(139)){let t=this.startNodeAt(e);return this.finishNode(t,"JSXOpeningFragment")}let t=this.startNodeAt(e);return t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t)}jsxParseOpeningElementAfterName(e){let t=[];for(;!this.match(52)&&!this.match(139);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(52),this.expect(139),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){if(this.eat(139)){let t=this.startNodeAt(e);return this.finishNode(t,"JSXClosingFragment")}let t=this.startNodeAt(e);return t.name=this.jsxParseElementName(),this.expect(139),this.finishNode(t,"JSXClosingElement")}jsxParseElementAt(e){let t=this.startNodeAt(e),r=[],n=this.jsxParseOpeningElementAt(e),i=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 138:if(e=this.state.startLoc,this.next(),this.eat(52)){this.setLoc(e),i=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 137:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 2:{let e=this.startNode();this.setContext(TS.brace),this.next(),this.match(17)?r.push(this.jsxParseSpreadChild(e)):r.push(this.jsxParseExpressionContainer(e,TS.j_expr));break}default:this.unexpected()}TK(n)&&!TK(i)&&null!==i?this.raise(Tq.MissingClosingTagFragment,i):!TK(n)&&TK(i)?this.raise(Tq.MissingClosingTagElement,i,{openingTagName:TJ(n.name)}):TK(n)||TK(i)||TJ(i.name)===TJ(n.name)||this.raise(Tq.MissingClosingTagElement,i,{openingTagName:TJ(n.name)})}if(TK(n)?(t.openingFragment=n,t.closingFragment=i):(t.openingElement=n,t.closingElement=i),t.children=r,this.match(43))throw this.raise(Tq.UnwrappedAdjacentJSXElements,this.state.startLoc);return TK(n)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){let e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){let{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(138)?this.jsxParseElement():this.match(43)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(138),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){let t=this.curContext();if(t===TS.j_expr)return void this.jsxReadToken();if(t===TS.j_oTag||t===TS.j_cTag){if(TA(e))return void this.jsxReadWord();if(62===e){++this.state.pos,this.finishToken(139);return}if((34===e||39===e)&&t===TS.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1)){++this.state.pos,this.finishToken(138);return}super.getTokenFromCode(e)}updateContext(e){let{context:t,type:r}=this.state;if(52===r&&138===e)t.splice(-2,2,TS.j_cTag),this.state.canStartJSXElement=!1;else if(138===r)t.push(TS.j_oTag);else if(139===r){let r=t[t.length-1];r===TS.j_oTag&&52===e||r===TS.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===TS.j_expr):(this.setContext(TS.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=Tl[r]}},typescript:EL,v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(50)){let e=this.state.startLoc,t=this.startNode();if(this.next(),Tf(this.state.type)){let e=this.parseIdentifierName(),r=this.createIdentifier(t,e);if(this.castNodeTo(r,"V8IntrinsicIdentifier"),this.match(6))return r}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(129)){let t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(129),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(129,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,n){void 0!==e&&super.checkReservedWord(e,t,r,n)}cloneIdentifier(e){let t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r,n){return"Placeholder"===e||super.isValidLVal(e,t,r,n)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;let r=this.nextTokenStart();return 37===this.input.charCodeAt(r)&&37===this.input.charCodeAt(r+1)}verifyBreakContinue(e,t){e.label?.type!=="Placeholder"&&super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){return"Placeholder"!==t.type||t.extra?.parenthesized?super.parseExpressionStatement(e,t):this.match(10)?(e.label=this.finishPlaceholder(t,"Identifier"),this.next(),e.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(e,"LabeledStatement")):(this.semicolon(),e.name=t.name,this.finishPlaceholder(e,"Statement"))}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){let n=t?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,s=this.parsePlaceholder("Identifier");if(s)if(this.match(77)||this.match(129)||this.match(2))e.id=s;else if(r||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,n);else throw this.raise(EM.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,n)}parseExport(e,t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);if(!this.isContextual(94)&&!this.match(8))return e.specifiers=[],e.source=null,e.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(e,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let n=this.startNode();return n.exported=r,e.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(e,t)}isExportDefaultSpecifier(){if(this.match(61)){let e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Ta[129],this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){return!!e.specifiers?.length||super.maybeParseExportDefaultSpecifier(e,t)}checkNamedExport(){}parseImport(e){let t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(94)&&!this.match(8))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(8)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(94),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(EM.UnexpectedSpace,this.state.lastTokEndLoc)}}},ER=Object.keys(EB),E$=class extends EE{constructor(e,t,r){let n=function(e){let t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,locations:!0,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))null!=e[r]&&(t[r]=e[r]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(null==e.startColumn||null==e.startIndex)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(n,t),this.options=n,this.initializeScopes(),this.plugins=r,this.filename=n.sourceFilename,this.startIndex=n.startIndex;let i=0;n.allowAwaitOutsideFunction&&(i|=1),n.allowReturnOutsideFunction&&(i|=2),n.allowImportExportEverywhere&&(i|=8),n.allowSuperOutsideMethod&&(i|=16),n.allowUndeclaredExports&&(i|=64),n.allowNewTargetOutsideFunction&&(i|=4),n.allowYieldOutsideFunction&&(i|=32),n.ranges&&(i|=128),!0===n.locations&&(i|=256),n.tokens&&(i|=512),n.createImportExpressions&&(i|=1024),n.createParenthesizedExpressions&&(i|=2048),n.errorRecovery&&(i|=4096),n.attachComment&&(i|=8192),n.annexB&&(i|=16384),this.optionFlags=i}getScopeHandler(){return TF}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=[];let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}};function EU(e,t){if(t?.sourceType!=="unambiguous")return EV(t,e).parse();t={...t};try{t.sourceType="module";let r=EV(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",EV(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",EV(t,e).parse()}catch{}throw r}}function EV(e,t){let r=E$,n=new Map;if(e?.plugins){for(let t of e.plugins){let e,r;"string"==typeof t?e=t:[e,r]=t,n.has(e)||n.set(e,r||{})}!function(e){if(e.has("decorators")&&e.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");if(e.has("flow")&&e.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){let t=e.get("pipelineOperator").proposal;if(!EF.includes(t)){let e=EF.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===t){if(e.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let t=e.get("pipelineOperator").topicToken;if(!Ej.includes(t)){let e=Ej.map(e=>`"${e}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}}}if(e.has("moduleAttributes"))throw Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw Error("`importAssertions` has been removed in Babel 8, please use import attributes instead.");if(e.has("deprecatedImportAssert")?console.warn("`deprecatedImportAssert` has been removed in Babel 8, please use import attributes instead."):e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&console.warn("The 'importAttributes' plugin has been removed in Babel 8. Please migrate any usage of `assert`-style attributes to `with`."),e.has("recordAndTuple"))throw Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let e=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");if(e.has("decimal"))throw Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}(n),r=function(e){let t=[];for(let r of ER)e.has(r)&&t.push(r);let r=t.join("|"),n=EJ.get(r);if(!n){for(let e of(n=E$,t))n=EB[e](n);EJ.set(r,n)}return n}(n)}return new r(e,t,n)}var Eq=Td;let EK={};for(let e of Object.keys(Eq))EK[e]=Ts[Eq[e]];var EJ=new Map,Ez=/\r\n|[\n\r\u2028\u2029]/;let{styleText:EW=(e,t)=>t}=eG;function EX(e){return t=>EW(e,String(t??""),{validateStream:!1})}Z=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,Q=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,U=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,et=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,Y=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,er=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,es=/[\t\v\f\ufeff\p{Zs}]+/yu,H=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,ee=/\/\/.*/y,$=/^#!.*/,q=/[<>.:={}]|\/(?![\/*])/y,V=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,K=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,J=/[^<>{}]+/y,ei=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,en=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,z=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,W=/^(?:return|throw|yield)$/,G=RegExp((X=/\r?\n|[\r\u2028\u2029]/y).source),ea=function*(e,{jsx:t=!1}={}){var r,n,i,s,a,o,l,u,c,p,h,d,f,m;for({length:o}=e,s=0,a="",m=[{tag:"JS"}],r=[],h=0,d=!1,(l=$.exec(e))&&(yield{type:"HashbangComment",value:l[0]},s=l[0].length);s<o;){switch((u=m[m.length-1]).tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if("/"===e[s]&&(ei.test(a)||z.test(a))&&(Z.lastIndex=s,l=Z.exec(e))){s=Z.lastIndex,a=l[0],d=!0,yield{type:"RegularExpressionLiteral",value:l[0],closed:void 0!==l[1]&&"\\"!==l[1]};continue}if(Q.lastIndex=s,l=Q.exec(e)){switch(f=l[0],c=Q.lastIndex,p=f,f){case"(":"?NonExpressionParenKeyword"===a&&m.push({tag:"JSNonExpressionParen",nesting:h}),h++,d=!1;break;case")":h--,d=!0,"JSNonExpressionParen"===u.tag&&h===u.nesting&&(m.pop(),p="?NonExpressionParenEnd",d=!1);break;case"{":Q.lastIndex=0,i=!en.test(a)&&(ei.test(a)||z.test(a)),r.push(i),d=!1;break;case"}":switch(u.tag){case"InterpolationInTemplate":if(r.length===u.nesting){er.lastIndex=s,l=er.exec(e),s=er.lastIndex,a=l[0],"${"===l[1]?(a="?InterpolationInTemplate",d=!1,yield{type:"TemplateMiddle",value:l[0]}):(m.pop(),d=!0,yield{type:"TemplateTail",value:l[0],closed:"`"===l[1]});continue}break;case"InterpolationInJSX":if(r.length===u.nesting){m.pop(),s+=1,a="}",yield{type:"JSXPunctuator",value:"}"};continue}}p=(d=r.pop())?"?ExpressionBraceEnd":"}";break;case"]":d=!0;break;case"++":case"--":p=d?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(t&&(ei.test(a)||z.test(a))){m.push({tag:"JSXTag"}),s+=1,a="<",yield{type:"JSXPunctuator",value:f};continue}d=!1;break;default:d=!1}s=c,a=p,yield{type:"Punctuator",value:f};continue}if(U.lastIndex=s,l=U.exec(e)){switch(s=U.lastIndex,p=l[0],l[0]){case"for":case"if":case"while":case"with":"."!==a&&"?."!==a&&(p="?NonExpressionParenKeyword")}a=p,d=!z.test(l[0]),yield{type:"#"===l[1]?"PrivateIdentifier":"IdentifierName",value:l[0]};continue}if(et.lastIndex=s,l=et.exec(e)){s=et.lastIndex,a=l[0],d=!0,yield{type:"StringLiteral",value:l[0],closed:void 0!==l[2]};continue}if(Y.lastIndex=s,l=Y.exec(e)){s=Y.lastIndex,a=l[0],d=!0,yield{type:"NumericLiteral",value:l[0]};continue}if(er.lastIndex=s,l=er.exec(e)){s=er.lastIndex,a=l[0],"${"===l[1]?(a="?InterpolationInTemplate",m.push({tag:"InterpolationInTemplate",nesting:r.length}),d=!1,yield{type:"TemplateHead",value:l[0]}):(d=!0,yield{type:"NoSubstitutionTemplate",value:l[0],closed:"`"===l[1]});continue}break;case"JSXTag":case"JSXTagEnd":if(q.lastIndex=s,l=q.exec(e)){switch(s=q.lastIndex,p=l[0],l[0]){case"<":m.push({tag:"JSXTag"});break;case">":m.pop(),"/"===a||"JSXTagEnd"===u.tag?(p="?JSX",d=!0):m.push({tag:"JSXChildren"});break;case"{":m.push({tag:"InterpolationInJSX",nesting:r.length}),p="?InterpolationInJSX",d=!1;break;case"/":"<"===a&&(m.pop(),"JSXChildren"===m[m.length-1].tag&&m.pop(),m.push({tag:"JSXTagEnd"}))}a=p,yield{type:"JSXPunctuator",value:l[0]};continue}if(V.lastIndex=s,l=V.exec(e)){s=V.lastIndex,a=l[0],yield{type:"JSXIdentifier",value:l[0]};continue}if(K.lastIndex=s,l=K.exec(e)){s=K.lastIndex,a=l[0],yield{type:"JSXString",value:l[0],closed:void 0!==l[2]};continue}break;case"JSXChildren":if(J.lastIndex=s,l=J.exec(e)){s=J.lastIndex,a=l[0],yield{type:"JSXText",value:l[0]};continue}switch(e[s]){case"<":m.push({tag:"JSXTag"}),s++,a="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":m.push({tag:"InterpolationInJSX",nesting:r.length}),s++,a="?InterpolationInJSX",d=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(es.lastIndex=s,l=es.exec(e)){s=es.lastIndex,yield{type:"WhiteSpace",value:l[0]};continue}if(X.lastIndex=s,l=X.exec(e)){s=X.lastIndex,d=!1,W.test(a)&&(a="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:l[0]};continue}if(H.lastIndex=s,l=H.exec(e)){s=H.lastIndex,G.test(l[0])&&(d=!1,W.test(a)&&(a="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:l[0],closed:void 0!==l[1]};continue}if(ee.lastIndex=s,l=ee.exec(e)){s=ee.lastIndex,d=!1,yield{type:"SingleLineComment",value:l[0]};continue}n=String.fromCodePoint(e.codePointAt(s)),s+=n.length,a=n,d=!1,yield{type:u.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:n}}};var EH={keyword:EX("cyan"),capitalized:EX("yellow"),jsxIdentifier:EX("yellow"),punctuator:EX("yellow"),number:EX("magenta"),string:EX("green"),regex:EX("magenta"),comment:EX("gray"),invalid:EX(["white","bgRed","bold"]),gutter:EX("gray"),marker:EX(["red","bold"]),message:EX(["red","bold"]),reset:EX("reset")},EG=new Set(["as","async","from","get","of","set"]),EY=/\r\n|[\n\r\u2028\u2029]/,EQ=/^[()[\]{}]$/,EZ=function(e){if("IdentifierName"===e.type){let t=e.value;if(ti.has(t)||to(t,!0)||EG.has(t))return"keyword";let r=t.charCodeAt(0);if(r<128){if(r>=65&&r<=90)return"capitalized"}else{let e=String.fromCodePoint(t.codePointAt(0));if(e!==e.toLowerCase())return"capitalized"}}if("Punctuator"===e.type&&EQ.test(e.value))return"uncolored";if("Invalid"===e.type&&"@"===e.value)return"punctuator";switch(e.type){case"NumericLiteral":return"number";case"StringLiteral":case"JSXString":case"NoSubstitutionTemplate":return"string";case"RegularExpressionLiteral":return"regex";case"Punctuator":case"JSXPunctuator":return"punctuator";case"MultiLineComment":case"SingleLineComment":return"comment";case"Invalid":case"JSXInvalid":return"invalid";case"JSXIdentifier":return"jsxIdentifier";default:return"uncolored"}};function E0(e){if(""===e)return"";let t="";for(let{type:r,value:n}of function*(e){for(let t of ea(e,{jsx:!0}))switch(t.type){case"TemplateHead":yield{type:"string",value:t.value.slice(0,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateMiddle":yield{type:"punctuator",value:"}"},yield{type:"string",value:t.value.slice(1,-2)},yield{type:"punctuator",value:"${"};break;case"TemplateTail":yield{type:"punctuator",value:"}"},yield{type:"string",value:t.value.slice(1)};break;default:yield{type:EZ(t),value:t.value}}}(e))r in EH?t+=n.split(EY).map(e=>EH[r](e)).join("\n"):t+=n;return t}function E1(e,t,r={}){let n=r.forceColor||"-"!==EW("red","-")&&r.highlightCode;return function(e,t,r={},n){let{defs:i,highlight:s}=n||{defs:{gutter:String,marker:String,message:String,reset:String},highlight:String},a=(r.startLine||1)-1,{start:o,end:l,markerLines:u}=function(e,t,r,n){let i={column:null,line:-1,...e.start},s={...i,...e.end},{linesAbove:a=2,linesBelow:o=3}=r||{},l=i.line-n,u=i.column,c=s.line-n,p=s.column,h=Math.max(l-(a+1),0),d=Math.min(t.length,c+o);-1===l&&(h=0),-1===c&&(d=t.length);let f=c-l,m={};if(f)for(let e=0;e<=f;e++){let r=e+l;if(null==u)m[r]=!0;else if(0===e){let e=t[r-1].length;m[r]=[u,e-u]}else if(e===f)m[r]=[0,p];else{let e=t[r-1].length;m[r]=[0,e]}}else if(u===p)null!=u?m[l]=[u,0]:m[l]=!0;else{let e=u??0,t=p??e;m[l]=[e,t-e]}return{start:h,end:d,markerLines:m}}(t,e.split(Ez),r,a),c=t.start&&"number"==typeof t.start.column,p=String(l+a).length,h=s(e).split(Ez,l).slice(o,l).map((e,t)=>{let n=o+1+t,s=` ${n+a}`.slice(-p),l=` ${s} |`,c=u[n],h=!u[n+1];if(!c)return` ${i.gutter(l)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(c)){let n=e.slice(0,c[0]).replace(/[^\t]/g," "),s=c[1]||1;t=["\n ",i.gutter(l.replace(/\d/g," "))," ",n,i.marker("^").repeat(s)].join(""),h&&r.message&&(t+=" "+i.message(r.message))}return[i.marker(">"),i.gutter(l),e.length>0?` ${e}`:"",t].join("")}}).join("\n");return r.message&&!c&&(h=`${" ".repeat(p+1)}${r.message}
21
+ ${h}`),i.reset(h)}(e,t,r,n?{defs:EH,highlight:E0}:void 0)}var{assertExpressionStatement:E2}=e5;function E3(e){return{code:e=>`/* @babel/template */;
22
+ ${e}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var E4=E3(e=>e.length>1?e:e[0]),E5=E3(e=>e),E6=E3(e=>{if(0===e.length)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]}),E8={code:e=>`(
23
+ ${e}
24
+ )`,validate:e=>{if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(0===E8.unwrap(e).start)throw Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return E2(t),t.expression}};function E9(e,t){let{placeholderAllowlist:r=e.placeholderAllowlist,placeholderPattern:n=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:s=e.syntacticPlaceholders}=t;return{parser:{...e.parser,...t.parser},placeholderAllowlist:r,placeholderPattern:n,preserveComments:i,syntacticPlaceholders:s}}function E7(e){if(null!=e&&"object"!=typeof e)throw Error("Unknown template options.");if(null!=e&&Object.hasOwn(e,"placeholderWhitelist")&&!Object.hasOwn(e,"placeholderAllowlist"))throw Error("The 'placeholderWhitelist' option has been renamed to 'placeholderAllowlist'. Please update your configuration.");let{placeholderAllowlist:t,placeholderPattern:r,preserveComments:n,syntacticPlaceholders:i,...s}=e||{};if(null!=t&&!(t instanceof Set))throw Error("'.placeholderAllowlist' must be a Set, null, or undefined");if(null!=r&&!(r instanceof RegExp)&&!1!==r)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=n&&"boolean"!=typeof n)throw Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=i&&"boolean"!=typeof i)throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===i&&(null!=t||null!=r))throw Error("'.placeholderAllowlist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:s,placeholderAllowlist:t||void 0,placeholderPattern:null==r?void 0:r,preserveComments:null==n?void 0:n,syntacticPlaceholders:null==i?void 0:i}}function ke(e){if(Array.isArray(e))return e.reduce((e,t,r)=>(e["$"+r]=t,e),{});if("object"==typeof e||null==e)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")}var{isCallExpression:kt,isExpressionStatement:kr,isFunction:kn,isIdentifier:ki,isJSXIdentifier:ks,isNewExpression:ka,isPlaceholder:ko,isStatement:kl,isStringLiteral:ku,removePropertiesDeep:kc,traverse:kp}=e5,kh=/^[_$A-Z0-9]+$/;function kd(e,t,r){let{placeholderAllowlist:n,placeholderPattern:i,preserveComments:s=!1,syntacticPlaceholders:a}=r,o=function(e,t,r){let n=(t.plugins||[]).slice();!1!==r&&n.push("placeholders"),t={allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module",...t,plugins:n};try{return EU(e,t)}catch(r){let t=r.loc;throw t&&(r.message+="\n"+E1(e,{start:t}),r.code="BABEL_TEMPLATE_PARSE_ERROR"),r}}(t,r.parser,a);kc(o,{preserveComments:s}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderAllowlist:n,placeholderPattern:i,syntacticPlaceholders:a};return kp(o,kf,l),{ast:o,...l.syntactic.placeholders.length?l.syntactic:l.legacy}}function kf(e,t,r){let n,i,s=r.syntactic.placeholders.length>0;if(ko(e)){if(!1===r.syntacticPlaceholders)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");n=e.name.name,s=!0}else if(s||r.syntacticPlaceholders)return;else if(ki(e)||ks(e))n=e.name;else{if(!ku(e))return;n=e.value}if(s&&(null!=r.placeholderPattern||null!=r.placeholderAllowlist))throw Error("'.placeholderAllowlist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!s&&(!1===r.placeholderPattern||!(r.placeholderPattern||kh).test(n))&&!r.placeholderAllowlist?.has(n))return;let{node:a,key:o}=(t=t.slice())[t.length-1];ku(e)||ko(e,{expectedNode:"StringLiteral"})?i="string":ka(a)&&"arguments"===o||kt(a)&&"arguments"===o||kn(a)&&"params"===o?i="param":kr(a)&&!ko(e)?(i="statement",t=t.slice(0,-1)):i=kl(e)&&ko(e)?"statement":"other";let{placeholders:l,placeholderNames:u}=s?r.syntactic:r.legacy;l.push({name:n,type:i,resolve:e=>(function(e,t){let r=e;for(let e=0;e<t.length-1;e++){let{key:n,index:i}=t[e];r=void 0===i?r[n]:r[n][i]}let{key:n,index:i}=t[t.length-1];return{parent:r,key:n,index:i}})(e,t),isDuplicate:u.has(n)}),u.add(n)}var{blockStatement:km,cloneNode:ky,emptyStatement:kg,expressionStatement:kb,identifier:kx,isStatement:kS,isStringLiteral:kv,stringLiteral:kT,validate:kE}=e5;function kk(e,t){let r=ky(e.ast);return t&&(e.placeholders.forEach(e=>{if(!Object.hasOwn(t,e.name)){let t=e.name;throw Error(`Error: No substitution given for "${t}". If this is not meant to be a
25
+ placeholder you may want to consider passing one of the following options to @babel/template:
26
+ - { placeholderPattern: false, placeholderAllowlist: new Set(['${t}'])}
27
+ - { placeholderPattern: /^${t}$/ }`)}}),Object.keys(t).forEach(t=>{if(!e.placeholderNames.has(t))throw Error(`Unknown substitution "${t}" given`)})),e.placeholders.slice().reverse().forEach(e=>{try{!function(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(e=>ky(e)):"object"==typeof r&&(r=ky(r)));let{parent:n,key:i,index:s}=e.resolve(t);if("string"===e.type){if("string"==typeof r&&(r=kT(r)),!r||!kv(r))throw Error("Expected string substitution")}else if("statement"===e.type)void 0===s?r?Array.isArray(r)?r=km(r):"string"==typeof r?r=kb(kx(r)):kS(r)||(r=kb(r)):r=kg():r&&!Array.isArray(r)&&("string"==typeof r&&(r=kx(r)),kS(r)||(r=kb(r)));else if("param"===e.type){if("string"==typeof r&&(r=kx(r)),void 0===s)throw Error("Assertion failure.")}else if("string"==typeof r&&(r=kx(r)),Array.isArray(r))throw Error("Cannot replace single expression with an array.");function a(e,t,r){let n=e[t];e[t]=r,("Identifier"===n.type||"Placeholder"===n.type)&&(n.typeAnnotation&&(r.typeAnnotation=n.typeAnnotation),n.optional&&(r.optional=n.optional),n.decorators&&(r.decorators=n.decorators))}if(void 0===s)kE(n,i,r),a(n,i,r);else{let t=n[i].slice();"statement"===e.type||"param"===e.type?null==r?t.splice(s,1):Array.isArray(r)?t.splice(s,1,...r):a(t,s,r):a(t,s,r),kE(n,i,t),n[i]=t}}(e,r,(t&&t[e.name])??null)}catch(t){throw t.message=`@babel/template placeholder "${e.name}": ${t.message}`,t}}),r}function kw(e,t,r){let n;return t=e.code(t),i=>{let s=ke(i);return n||(n=kd(e,t,r)),e.unwrap(kk(n,s))}}function kA(e,t,r){let{metadata:n,names:i}=function(e,t,r){let n="BABEL_TPL$",i=t.join("");do n="$$"+n;while(i.includes(n))let{names:s,code:a}=function(e,t){let r=[],n=e[0];for(let i=1;i<e.length;i++){let s=`${t}${i-1}`;r.push(s),n+=s+e[i]}return{names:r,code:n}}(t,n);return{metadata:kd(e,e.code(a),{parser:r.parser,placeholderAllowlist:new Set(s.concat(r.placeholderAllowlist?Array.from(r.placeholderAllowlist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:s}}(e,t,r);return t=>{let r={};return t.forEach((e,t)=>{r[i[t]]=e}),t=>{let i=ke(t);return i&&Object.keys(i).forEach(e=>{if(Object.hasOwn(r,e))throw Error("Unexpected replacement overlap.")}),e.unwrap(kk(n,i?Object.assign(i,r):r))}}}var kP=E7({placeholderPattern:!1});function kC(e,t){let r=new WeakMap,n=new WeakMap,i=t||E7(null);return Object.assign((t,...n)=>{if("string"==typeof t){if(n.length>1)throw Error("Unexpected extra params.");return kI(kw(e,t,E9(i,E7(n[0]))))}if(Array.isArray(t)){let s=r.get(t);return s||(s=kA(e,t,i),r.set(t,s)),kI(s(n))}if("object"==typeof t&&t){if(n.length>0)throw Error("Unexpected extra params.");return kC(e,E9(i,E7(t)))}throw Error(`Unexpected template param ${typeof t}`)},{ast:(t,...r)=>{if("string"==typeof t){if(r.length>1)throw Error("Unexpected extra params.");return kw(e,t,E9(E9(i,E7(r[0])),kP))()}if(Array.isArray(t)){let s=n.get(t);return s||(s=kA(e,t,E9(i,kP)),n.set(t,s)),s(r)()}throw Error(`Unexpected template param ${typeof t}`)}})}function kI(e){let t=Error();return r=>{try{return e(r)}catch(e){throw e.stack+=`
28
+ =============
29
+ ${t.stack.split("\n").slice(3).join("\n")}`,e}}}var k_=kC(E4),kN=kC(E6),kL=kC(E5),kO=kC(E8),kD=kC({code:e=>e,validate:()=>{},unwrap:e=>e.program}),kM=Object.assign(k_.bind(void 0),{smart:k_,statement:kN,statements:kL,expression:kO,program:kD,ast:k_.ast}),kF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kj=new Uint8Array(64),kB=new Uint8Array(128);for(let e=0;e<kF.length;e++){let t=kF.charCodeAt(e);kj[e]=t,kB[t]=e}function kR(e){let t=0,r=0,n=0;do t|=(31&(n=kB[e.next()]))<<r,r+=5;while(32&n)return t}function k$(e){return 1&e?-0x80000000|-(e>>>1):e>>>1}function kU(e,t){do{let r=31&t;(t>>>=5)>0&&(r|=32),e.write(kj[r])}while(t>0)}function kV(e){return e<0?-e<<1|1:e<<1}function kq(e,t){return!(e.pos>=t)&&44!==e.peek()}var kK="u">typeof TextDecoder?new TextDecoder:"u">typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},kJ=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(16384)}write(e){let{buffer:t}=this;t[this.pos++]=e,16384===this.pos&&(this.out+=kK.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+kK.decode(e.subarray(0,r)):t}},kz=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:r}=this,n=t.indexOf(e,r);return -1===n?t.length:n}};function kW(e,t){return e[0]-t[0]}var kX=/^[\w+.-]+:\/\//,kH=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,kG=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function kY(e){return e.startsWith("/")}function kQ(e){return/^[.?#]/.test(e)}function kZ(e){let t=kH.exec(e);return k0(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function k0(e,t,r,n,i,s,a){return{scheme:e,user:t,host:r,port:n,path:i,query:s,hash:a,type:7}}function k1(e){if(e.startsWith("//")){let t=kZ("http:"+e);return t.scheme="",t.type=6,t}if(kY(e)){let t=kZ("http://foo.com"+e);return t.scheme="",t.host="",t.type=5,t}if(e.startsWith("file:")){let t,r;return r=(t=kG.exec(e))[2],k0("file:","",t[1]||"","",kY(r)?r:"/"+r,t[3]||"",t[4]||"")}if(kX.test(e))return kZ(e);let t=kZ("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function k2(e,t){let r=t<=4,n=e.path.split("/"),i=1,s=0,a=!1;for(let e=1;e<n.length;e++){let t=n[e];if(!t){a=!0;continue}if(a=!1,"."!==t){if(".."===t){s?(a=!0,s--,i--):r&&(n[i++]=t);continue}n[i++]=t,s++}}let o="";for(let e=1;e<i;e++)o+="/"+n[e];o&&(!a||o.endsWith("/.."))||(o+="/"),e.path=o}function k3(e,t){for(let r=t;r<e.length;r++)if(!function(e){for(let t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}(e[r]))return r;return e.length}function k4(e,t){return e[0]-t[0]}var k5=!1,k6=class{constructor(e,t){let r,n,i="string"==typeof e;if(!i&&e._decodedMemo)return e;let s="string"==typeof e?JSON.parse(e):e,{version:a,file:o,names:l,sourceRoot:u,sources:c,sourcesContent:p}=s;this.version=a,this.file=o,this.names=l||[],this.sourceRoot=u,this.sources=c,this.sourcesContent=p,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;let h=(r=function(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}(t),n=u?u+"/":"",e=>(function(e,t){if(!e&&!t)return"";let r=k1(e),n=r.type;if(t&&7!==n){let e=k1(t),i=e.type;switch(n){case 1:r.hash=e.hash;case 2:r.query=e.query;case 3:case 4:k2(e,e.type),"/"===r.path?r.path=e.path:r.path=function(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}(e.path)+r.path;case 5:r.user=e.user,r.host=e.host,r.port=e.port;case 6:r.scheme=e.scheme}i>n&&(n=i)}k2(r,n);let i=r.query+r.hash;switch(n){case 2:case 3:return i;case 4:{let n=r.path.slice(1);if(!n)return i||".";if(kQ(t||e)&&!kQ(n))return"./"+n+i;return n+i}case 5:return r.path+i;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+i}})(n+(e||""),r));this.resolvedSources=c.map(h);let{mappings:d}=s;if("string"==typeof d)this._encoded=d,this._decoded=void 0;else if(Array.isArray(d))this._encoded=void 0,this._decoded=function(e,t){let r=k3(e,0);if(r===e.length)return e;t||(e=e.slice());for(let i=r;i<e.length;i=k3(e,i+1)){var n;e[i]=(n=e[i],t||(n=n.slice()),n.sort(k4))}return e}(d,i);else if(s.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(s)}`);this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function k8(e,t){var r,n,i,s,a,o;let l,{line:u,column:c,bias:p}=t;if(--u<0)throw Error("`line` must be greater than 0 (lines start at line 1)");if(c<0)throw Error("`column` must be greater than or equal to 0 (columns start at column 0)");let h=(r=e)._decoded||(r._decoded=function(e){let{length:t}=e,r=new kz(e),n=[],i=0,s=0,a=0,o=0,l=0;do{let e=r.indexOf(";"),t=[],u=!0,c=0;for(i=0;r.pos<e;){let n;(i+=k$(kR(r)))<c&&(u=!1),c=i,kq(r,e)?(s+=k$(kR(r)),a+=k$(kR(r)),o+=k$(kR(r)),kq(r,e)?(l+=k$(kR(r)),n=[i,s,a,o,l]):n=[i,s,a,o]):n=[i],t.push(n),r.pos++}u||t.sort(kW),n.push(t),r.pos=e+1}while(r.pos<=t)return n}(r._encoded));if(u>=h.length)return k9(null,null,null,null);let d=h[u],f=(n=d,i=e._decodedMemo,s=u,a=c,o=p||1,l=function(e,t,r,n){let{lastKey:i,lastNeedle:s,lastIndex:a}=r,o=0,l=e.length-1;if(n===i){if(t===s)return k5=-1!==a&&e[a][0]===t,a;t>=s?o=-1===a?0:a:l=a}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=function(e,t,r,n){for(;r<=n;){let i=r+(n-r>>1),s=e[i][0]-t;if(0===s)return k5=!0,i;s<0?r=i+1:n=i-1}return k5=!1,r-1}(e,t,o,l)}(n,a,i,s),(k5?l=(-1===o?function(e,t,r){for(let n=r+1;n<e.length&&e[n][0]===t;r=n++);return r}:function(e,t,r){for(let n=r-1;n>=0&&e[n][0]===t;r=n--);return r})(n,a,l):-1===o&&l++,-1===l||l===n.length)?-1:l);if(-1===f)return k9(null,null,null,null);let m=d[f];if(1===m.length)return k9(null,null,null,null);let{names:y,resolvedSources:g}=e;return k9(g[m[1]],m[2]+1,m[3],5===m.length?y[m[4]]:null)}function k9(e,t,r,n){return{source:e,line:t,column:r,name:n}}var k7=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function we(e,t){var r,n;let i=(r=e,n=t,r._indexes[n]);if(void 0!==i)return i;let{array:s,_indexes:a}=e,o=s.push(t);return a[t]=o-1}var wt=class{constructor({file:e,sourceRoot:t}={}){this._names=new k7,this._sources=new k7,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new k7,this._rangeMappings=[]}};function wr(e,t,r){let{_sources:n,_sourcesContent:i}=e;i[we(n,t)]=r}function wn(e){let{_mappings:t,_sources:r,_sourcesContent:n,_names:i,_ignoreList:{array:s},_rangeMappings:a}=e;return wu(t),wu(a),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:s.length>0?s:void 0,rangeMappings:a.length>0?a:void 0}}function wi(e,t,r,n,i,s,a,o,l){let{_mappings:u,_sources:c,_sourcesContent:p,_names:h,_rangeMappings:d}=t,f=ws(u,r),m=wa(f,n);if(!i){var y,g;if(e&&(y=f,0===(g=m)||1===y[g-1].length)&&!wo(u,d,r,m-1))return;m<f.length&&wp(d,r,m),wl(f,m,[n]);return}let b=we(c,i),x=o?we(h,o):-1;b===p.length&&(p[b]=null!=l?l:null),(!(e&&function(e,t,r,n,i,s){if(0===t)return!1;let a=e[t-1];return 1!==a.length&&r===a[1]&&n===a[2]&&i===a[3]&&s===(5===a.length?a[4]:-1)}(f,m,b,s,a,x))||wo(u,d,r,m-1))&&(m<f.length&&wp(d,r,m),wl(f,m,o?[n,b,s,a,x]:[n,b,s,a]))}function ws(e,t){for(let r=e.length;r<=t;r++)e[r]=[];return e[t]}function wa(e,t){for(let r=e.length;r>0;r--)if(t>=e[r-1][0])return r;return 0}function wo(e,t,r,n){if(0===t.length)return!1;if(n<0)for(;--r>=0;){let t=e[r];if(t.length>0){n=t.length-1;break}}return!(r<0)&&!(r>=t.length)&&wc(t[r],n)>=0}function wl(e,t,r){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=r}function wu(e){for(let t=e.length-1;t>=0&&!(e[t].length>0);t--)e.pop()}function wc(e,t){for(let r=e.length;r>0;r--){let n=e[r-1];if(n===t)return r-1;if(n<t)return~r}return -1}function wp(e,t,r){if(t>=e.length)return;let n=e[t];for(let e=n.length-1;e>=0&&!(n[e]<r);e--)n[e]++}var wh=((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of e1(t))e3.call(e,n)||void 0===n||eZ(e,n,{get:()=>t[n],enumerable:!(r=e0(t,n))||r.enumerable});return e})(eZ(null!=(j=e4())?eQ(e2(j)):{},"default",{value:j,enumerable:!0}),j),wd=class{_map;_rawMappings;_sourceFileName;_lastGenLine=0;_lastSourceLine=0;_lastSourceColumn=0;_inputMap=null;constructor(e,t){let r=this._map=new wt({sourceRoot:e.sourceRoot});if(this._sourceFileName=e.sourceFileName?.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new k6(e.inputSourceMap);let t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++)wr(r,t[e],this._inputMap.sourcesContent?.[e])}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(let e of Object.keys(t))wr(r,e.replace(/\\/g,"/"),t[e])}else wr(r,this._sourceFileName,t)}get(){let e,t=((e=wn(this._map)).mappings=function(e){let t=new kJ,r=0,n=0,i=0,s=0;for(let a=0;a<e.length;a++){let o=e[a];if(a>0&&t.write(59),0===o.length)continue;let l=0;for(let e=0;e<o.length;e++){let a=o[e];e>0&&t.write(44),kU(t,kV(a[0]-l)),l=a[0],1!==a.length&&(kU(t,kV(a[1]-r)),kU(t,kV(a[2]-n)),kU(t,kV(a[3]-i)),r=a[1],n=a[2],i=a[3],4!==a.length&&(kU(t,kV(a[4]-s)),s=a[4]))}}return t.flush()}(e.mappings),e.rangeMappings&&(e.rangeMappings=function(e){if(0===e.length)return"";let t=new kJ;for(let r=0;r<e.length;r++){let n=e[r];r>0&&t.write(59);let i=0;for(let e=0;e<n.length;e++){let r=n[e];kU(t,r-i),i=r}}return t.flush()}(e.rangeMappings)),e);return t.ignoreList??=[],t}getDecoded(){let e=wn(this._map);return e.ignoreList??=[],e}getRawMappings(){return this._rawMappings||=function(e){let t=[],{_mappings:r,_sources:{array:n},_names:{array:i}}=e;for(let e=0;e<r.length;e++){let s=r[e];for(let r=0;r<s.length;r++){let a,o,l,u=s[r],c={line:e+1,column:u[0]};1!==u.length&&(a=n[u[1]],o={line:u[2]+1,column:u[3]},5===u.length&&(l=i[u[4]])),t.push({generated:c,source:a,original:o,name:l})}}return t}(this._map)}mark(e,t,r,n,i,s,a){let o;if(this._rawMappings=void 0,null!=r)if(this._inputMap){if((o=k8(this._inputMap,{line:r,column:n})).name&&(s||null!=i&&o.column===n))i=o.name;else if(s){let e=k8(this._inputMap,s);e.name&&(i=e.name)}}else o={name:null,source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:n};null!=i&&i===t&&(i=null),!function(e,t,r){let{generated:n,source:i,original:s,name:a,content:o,isRange:l}=r;i?wi(e,t,n.line-1,n.column,i,s.line-1,s.column,a,o):wi(e,t,n.line-1,n.column,null,null,null,null,null),l&&function(e,t,r,n=!0){let{_mappings:i,_rangeMappings:s}=e,a=wa(ws(i,t),r)-1,o=ws(s,t),l=wc(o,a);if(n){if(l>=0)return;wl(o,~l,a)}else{if(l<0)return;o.splice(l,1)}}(t,n.line-1,n.column)}(!0,this._map,{name:i,generated:e,source:o?.source,original:o})}},wf=[];for(let e=0;e<32;e++)wf.push(" ".repeat(2*e));var wm=class{constructor(e,t){this._map=e,this._indentChar=t}_map=null;_buf="";_str="";_appendCount=0;_last=0;_canMarkIdName=!0;_indentChar="";_queuedChar=0;_position={line:1,column:0};_sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0};get(){let{_map:e,_last:t}=this;32!==this._queuedChar&&this._flush();let r=10===t?(this._buf+this._str).trimRight():this._buf+this._str;if(null===e)return{code:r,decodedMap:void 0,map:null,rawMappings:void 0};let n={code:r,decodedMap:e.getDecoded(),get map(){let t=e.get();return n.map=t,t},set map(e){Object.defineProperty(n,"map",{value:e,writable:!0})},get rawMappings(){let t=e.getRawMappings();return n.rawMappings=t,t},set rawMappings(e){Object.defineProperty(n,"rawMappings",{value:e,writable:!0})}};return n}append(e,t,r=!1){this._flush(),this._append(e,t,r)}appendChar(e){this._flush(),this._appendChar(e,1,!0)}queue(e){this._flush(),this._queuedChar=e}_flush(){let e=this._queuedChar;0!==e&&(this._appendChar(e,1,!0),this._queuedChar=0)}_appendChar(e,t,r){if(this._last=e,-1===e){let e=t>=64?this._indentChar.repeat(t):wf[t/2];this._str+=e}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);let n=32===e,i=this._position;if(10!==e){if(this._map){let e=this._sourcePosition;r&&e?(this._map.mark(i,null,e.line,e.column,n?void 0:e.identifierName,n?void 0:e.identifierNamePos,e.filename),!n&&this._canMarkIdName&&(e.identifierName=void 0,e.identifierNamePos=void 0)):this._map.mark(i,null)}i.column+=t}else i.line++,i.column=0}_append(e,t,r){let n=e.length,i=this._position,s=this._sourcePosition;this._last=-1,++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e;let a=!r&&null!==this._map;if(!t&&!a){i.column+=n;return}let{column:o,identifierName:l,identifierNamePos:u,filename:c}=s,p=s.line;(null!=l||null!=u)&&this._canMarkIdName&&(s.identifierName=void 0,s.identifierNamePos=void 0);let h=e.indexOf("\n"),d=0;for(a&&0!==h&&this._map.mark(i,e,p,o,l,u,c);-1!==h;)i.line++,i.column=0,(d=h+1)<n&&void 0!==p&&(p++,a&&this._map.mark(i,e,p,0,void 0,void 0,c)),h=e.indexOf("\n",d);i.column+=n-d}removeLastSemicolon(){59===this._queuedChar&&(this._queuedChar=0)}getLastChar(e){if(!e)return this._last;let t=this._queuedChar;return 0!==t?t:this._last}getNewlineCount(){return+(0===this._queuedChar&&10===this._last)}hasContent(){return 0!==this._last}exactSource(e,t){if(!this._map)return void t();this.source("start",e);let r=e.identifierName,n=this._sourcePosition;null!=r&&(this._canMarkIdName=!1,n.identifierName=r),t(),null!=r&&(this._canMarkIdName=!0,n.identifierName=void 0,n.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){this._map&&this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){this._flush();let n=t[e];n&&(this.setSourcePosition(n.line,Math.max(n.column+r,0)),this._sourcePosition.filename=t.filename)}setSourcePosition(e,t){let r=this._sourcePosition;r.line=e,r.column=t}getCurrentColumn(){return this._position.column+ +!!this._queuedChar}getCurrentLine(){return this._position.line}},{isMemberExpression:wy,isOptionalMemberExpression:wg,isYieldExpression:wb,isStatement:wx}=e5,wS=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function wv(e){return 154===e||199===e||207===e}var wT=(e,t,r)=>(22===r||23===r)&&t.superClass===e,wE=(e,t,r)=>{switch(r){case 109:case 133:return t.object===e;case 18:case 131:case 113:return t.callee===e;case 220:return t.tag===e;case 189:return!0}return!1};function wk(e,t,r,n){let i;if(wT(e,t,r)||wE(e,t,r)||236===r||143===r||8===r)return!0;switch(r){case 11:case 108:i=wS.get(t.operator);break;case 154:case 199:i=7}if(void 0!==i){let s=2===n?7:wS.get(e.operator);if(i>s||i===s&&11===r&&(11===s?t.left===e:t.right===e)||1===n&&108===r&&(1===s&&1!==i||1===i&&1!==s))return!0}return!1}function ww(e,t,r){switch(r){case 4:case 116:case 91:case 237:return!0}return!1}function wA(e,t,r){return(6===r||7===r)&&t.left===e||11===r&&("|"===t.operator||"&"===t.operator)&&e===t.left||wk(e,t,r,2)}function wP(e,t,r){switch(r){case 179:case 209:case 153:case 193:return!0;case 173:return t.objectType===e}return!1}function wC(e,t,r){switch(r){case 153:case 193:return!0;case 173:if(t.objectType===e)return!0}return!1}function wI(e,t,r){return!!wP(e,t,r)||217===r||159===r&&(t.checkType===e||t.extendsType===e)}function w_(e,t,r){return 11===r||108===r||236===r||143===r||wE(e,t,r)||8===r&&wb(e)||29===r&&e===t.test||wT(e,t,r)||wv(r)}function wN(e,t,r){return wE(e,t,r)||11===r&&"**"===t.operator&&t.left===e||wT(e,t,r)}function wL(e,t,r){switch(r){case 236:case 143:case 11:case 108:case 8:return!0;case 29:if(t.test===e)return!0}return!!wv(r)||wN(e,t,r)}function wO(e,t,r){switch(r){case 18:return t.callee===e;case 109:return t.object===e}return!1}var wD=Object.defineProperty({__proto__:null,ArrowFunctionExpression:wL,AssignmentExpression:function(e,t,r,n){return(3&n)>0&&"ObjectPattern"===e.left.type||wL(e,t,r)},AwaitExpression:w_,BinaryExpression:function(e,t,r,n){return!!wk(e,t,r,0)||(128&n)>0&&"in"===e.operator},ClassExpression:function(e,t,r,n){return(5&n)>0},ConditionalExpression:wL,DoExpression:function(e,t,r,n){return(1&n)>0&&!e.async},FunctionExpression:function(e,t,r,n){return(5&n)>0},FunctionTypeAnnotation:function(e,t,r,n){return 237===r||91===r||4===r||(8&n)>0},Identifier:function(e,t,r,n,i){if(i&&i(e)!==e.name)return!1;if(6===r&&e.extra?.parenthesized&&t.left===e){let e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(64&n||(109===r||133===r)&&49&n)&&"let"===e.name?!!(wy(t,{object:e,computed:!0})||wg(t,{object:e,computed:!0,optional:!1}))&&!!(49&n)||(64&n)>0:69===r&&t.left===e&&"async"===e.name&&!t.await},IntersectionTypeAnnotation:ww,LogicalExpression:function(e,t,r){return wk(e,t,r,1)},NullableTypeAnnotation:function(e,t,r){return 4===r},ObjectExpression:function(e,t,r,n){return(3&n)>0},OptionalCallExpression:wO,OptionalIndexedAccessType:function(e,t,r){return 85===r&&t.objectType===e},OptionalMemberExpression:wO,SequenceExpression:function(e,t,r){return 142!==r&&134!==r&&(109!==r||t.property!==e)&&(133!==r||t.property!==e)&&222!==r&&(22===r||(69===r?t.right===e:61===r||!wx(t)))},SpreadElement:wN,TSAsExpression:wA,TSConditionalType:function(e,t,r){switch(r){case 153:case 193:case 209:case 210:case 179:case 217:return!0;case 173:return t.objectType===e;case 159:return t.checkType===e||t.extendsType===e}return!1},TSConstructorType:wI,TSFunctionType:wI,TSInferType:function(e,t,r){return!!wC(e,t,r)||(179===r||217===r)&&null!=e.typeParameter.constraint},TSInstantiationExpression:function(e,t,r){switch(r){case 18:case 131:case 113:case 175:return null!=t.typeArguments}return!1},TSIntersectionType:function(e,t,r){return 209===r||wC(e,t,r)},TSSatisfiesExpression:wA,TSTypeAssertion:wN,TSTypeOperator:wC,TSUnionType:wP,UnaryExpression:wN,UnionTypeAnnotation:ww,UpdateExpression:function(e,t,r){return wE(e,t,r)||wT(e,t,r)},YieldExpression:w_},Symbol.toStringTag,{value:"Module"});function wM(e,t){let r=e.quasis,n="`";for(let e=0;e<r.length-1;e++)n+=r[e].value.raw,this.token(n+"${",!0),this.print(t[e]),n="}";n+=r[r.length-1].value.raw,this.token(n+"`",!0)}var{isCallExpression:wF,isLiteral:wj,isMemberExpression:wB,isNewExpression:wR,isPattern:w$}=e5;function wU(e){this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function wV(e){return"number"==typeof e.start&&e.start===e.declaration.start}function wq(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}var{isFor:wK,isIfStatement:wJ,isStatement:wz,isVoidPattern:wW}=e5;function wX(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function wH(e){this.tokenChar(44,e),this.newline()}var{isIdentifier:wG}=e5;function wY(e,t,r,n){if(this.print(e.typeParameters),void 0!==r||void 0!==n){let e=w6.call(this,r,n);e&&this.sourceIdentifierName(e.name,e.pos)}this.tokenChar(40),wQ.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function wQ(e,t){let r=this.enterDelimited(),n=this.shouldPrintTrailingComma(t),i=e.length;for(let t=0;t<i;t++)wZ.call(this,e[t]),(n||t<i-1)&&(this.tokenChar(44,t),this.space());this.tokenChar(t),this._noLineTerminatorAfterNode=r}function wZ(e){this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation,void 0,!0)}function w0(e){let t=e.kind,r=e.key;("get"===t||"set"===t)&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),("method"===t||"init"===t)&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._buf._map?wY.call(this,e,!1,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key):wY.call(this,e,!1)}function w1(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function w2(e,t,r){e.async&&(this.word("async"),this.format.preserveFormat||(this._innerCommentsState=0),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._innerCommentsState=0),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._buf._map?wY.call(this,e,!1,e.id,t):wY.call(this,e,!1),r&&w1.call(this,e)}function w3(e,t){w2.call(this,e,t,!0),this.space(),this.print(e.body)}function w4(e){if(1!==e.params.length||e.typeParameters||e.returnType||e.predicate)return!0;let t=e.params[0];if(!wG(t)||t.typeAnnotation||t.optional||t.leadingComments?.length||t.trailingComments?.length)return!0;if(this.tokenMap){if(null==e.loc||null!==this.tokenMap.findMatching(e,"("))return!0;let t=this.tokenMap.findMatching(e,"=>");return t?.loc==null||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function w5(e){return!!e.loc?.identifierName&&e.loc.identifierName!==e.name}function w6(e,t){let r,n=e;if(!n&&t){let e=t.type;"VariableDeclarator"===e?n=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?n=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(n=t.key):("ClassPrivateProperty"===e||"ClassAccessorProperty"===e)&&(n=t.key)}if(n?.loc){if("Identifier"===n.type){if(!w5(n))return;r={pos:n.loc.start,name:n.loc.identifierName}}else if("PrivateName"===n.type){if(!w5(n.id))return;r={pos:n.loc.start,name:"#"+n.id.loc.identifierName}}else"StringLiteral"===n.type&&(r={pos:n.loc.start,name:n.value});return r}}function w8(e,t){this.tokenChar(60);let r="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(r&&=!!this.tokenMap.find(e,e=>this.tokenMap.matchesOriginal(e,",")),r||=this.shouldPrintTrailingComma(">")),this.printList(e.params,r),this.tokenChar(62)}function w9(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function w7(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function Ae(e){let{typeParameters:t}=e,r=e.params;this.print(t),this.tokenChar(40),wQ.call(this,r,41),this.space();let n=e.returnType;this.print(n)}function At(e,t,r){let n=0;e.tokenMap?.startMatches(t,r)&&(n=1,e.token(r)),e.printJoin(t.types,void 0,void 0,function(e){this.space(),this.token(r,void 0,e+n),this.space()})}function Ar(e,t){!0!==t&&e.token(t)}function An(e){this.print(e.expression),this.print(e.typeArguments)}function Ai(e){let{typeParameters:t}=e,r=e.params;this.print(t),this.tokenChar(40),wQ.call(this,r,41),this.print(e.returnType)}function As(e){let t="ClassPrivateProperty"===e.type,r="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;Ao(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),Ao(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function Aa(e,t,r){e.token("{");let n=e.enterDelimited();r(),e._noLineTerminatorAfterNode=n,e.rightBrace(t)}function Ao(e,t,r){let n=new Set;for(let e of r)e&&n.add(e);for(let r of(e.tokenMap?.find(t,t=>!!n.has(t.value)&&(e.token(t.value),e.space(),n.delete(t.value),0===n.size)),n))e.word(r),e.space()}var{isClassDeclaration:Al,isExportDefaultSpecifier:Au,isExportNamespaceSpecifier:Ac,isImportDefaultSpecifier:Ap,isImportNamespaceSpecifier:Ah,isStatement:Ad}=e5;function Af(e,t){let{attributes:r}=e;this.word("with"),this.space();let n=+!!t;this.token("{",void 0,n),this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,n)}function Am(e){this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),e.attributes?.length?(this.print(e.source,!0),this.space(),Af.call(this,e,!1)):this.print(e.source),this.semicolon()}function Ay(e,t){Al(t.declaration)&&wV.call(e,t)&&e.printJoin(t.declaration.decorators)}var{isAssignmentPattern:Ag,isIdentifier:Ab}=e5,Ax="";function AS(e){let{name:t}=e,r=this.tokenMap.find(e,e=>e.value===t);return Ax=r?this._originalCode.slice(r.start,r.end):e.name}function Av(e){this.token("..."),this.print(e.argument)}function AT(e){let t=e.properties;if(this.tokenChar(123),t.length){let e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=e}this.rightBrace(e)}function AE(e){let t=e.elements,r=t.length;this.tokenChar(91);let n=this.enterDelimited();for(let e=0;e<t.length;e++){let n=t[e];n?(e>0&&this.space(),this.print(n,void 0,!0),(e<r-1||this.shouldPrintTrailingComma("]"))&&this.tokenChar(44,e)):this.tokenChar(44,e)}this._noLineTerminatorAfterNode=n,this.tokenChar(93)}function Ak(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,n=e.value,i=n+"";r.numbers?this.number((0,wh.default)(n,r),n):null==t?this.number(i,n):this.format.minified?this.number(t.length<i.length?t:i,n):this.number(t,n)}function Aw(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let r=(0,wh.default)(e.value,this.format.jsescOption);this.token(r)}function AA(e){let t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)}var AP=new Set(["^^","@@","^","%","#"]),{isDeclareExportDeclaration:AC}=e5;function AI(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function A_(e,t){let{members:r}=t;for(let t of(e.token("{"),e.indent(),e.newline(),r))e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function AN(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function AL(e){this.print(e.id),this.print(e.typeParameters,!0)}function AO(e){this.print(e.id),this.print(e.typeParameters),e.extends?.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),"DeclareClass"===e.type&&(e.mixins?.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),e.implements?.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))),this.space(),this.print(e.body)}function AD(e){let t=e.variance?.kind;null!=t&&("plus"===t?this.tokenChar(43):"minus"===t&&this.tokenChar(45))}function AM(e){this.word("interface"),this.space(),AO.call(this,e)}function AF(e){this.space(),this.token("&",!1,e),this.space()}function Aj(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function AB(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function AR(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function A$(e){this.space(),this.token("|",!1,e),this.space()}var{isExportDefaultDeclaration:AU,isExportNamedDeclaration:AV}=e5;function Aq(e,t){(AU(t)||AV(t))&&wV.call(this,t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeArguments)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function AK(e,t=!0){if(t&&this.printJoin(e.decorators),!this.format.preserveFormat){let t=e.key.loc?.end?.line;t&&this.catchUp(t)}As.call(this,e),w0.call(this,e)}var AJ=/(?:^|[^\\])(?:\\\\)*'/,Az=/(?:^|[^\\])(?:\\\\)*"/;function AW(){this.space()}var AX=Object.defineProperty({__proto__:null,AnyTypeAnnotation:function(){this.word("any")},ArgumentPlaceholder:function(){this.tokenChar(63)},ArrayExpression:AE,ArrayPattern:AE,ArrayTypeAnnotation:function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},ArrowFunctionExpression:function(e,t){e.async&&(this.word("async",!0),this.space()),w4.call(this,e)?wY.call(this,e,!0,void 0,this._buf._map?t:void 0):this.print(e.params[0],!0),w1.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=2,this.print(e.body)},AssignmentExpression:wq,AssignmentPattern:function(e){this.print(e.left),("Identifier"===e.left.type||w$(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},AwaitExpression:function(e){this.word("await"),this.space(),this.print(e.argument)},BigIntLiteral:AA,BigIntLiteralTypeAnnotation:AA,BinaryExpression:function(e){this.print(e.left),this.space();let{operator:t}=e;105===t.charCodeAt(0)?this.word(t):(this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1))),this.space(),this.print(e.right)},BindExpression:function(e){this.print(e.object),this.token("::"),this.print(e.callee)},BlockStatement:function(e){this.tokenChar(123);let t=this.enterDelimited(),r=e.directives?.length;if(r){let t=e.body.length?2:1;this.printSequence(e.directives,!0,!0,t),e.directives[r-1].trailingComments?.length||this.newline(t)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=t,this.rightBrace(e)},BooleanLiteral:function(e){this.word(e.value?"true":"false")},BooleanLiteralTypeAnnotation:function(e){this.word(e.value?"true":"false")},BooleanTypeAnnotation:function(){this.word("boolean")},BreakStatement:function(e){this.word("break"),wX(this,e.label)},CallExpression:function(e){this.print(e.callee),this.print(e.typeArguments),wU.call(this,e)},CatchClause:function(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)},ClassAccessorProperty:function(e){this.printJoin(e.decorators);let t=e.key.loc?.end?.line;t&&this.catchUp(t),As.call(this,e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(AD.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ClassBody:function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{let t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1,i=0,s=0,a=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return a(),o=>{let l;s<=o&&(s=o+1,a());let u=s===t.body.length?t.end:t.body[s].start;for(;n<r.length&&e.tokenMap.matchesOriginal(l=e._tokens[r[n]],";")&&l.start<u;)e.tokenChar(59,i++),n++}}(this,e);t?.(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,this.endsWith(10)||this.newline(),this.rightBrace(e)}},ClassDeclaration:Aq,ClassExpression:Aq,ClassImplements:AL,ClassMethod:function(e){AK.call(this,e),this.space(),this.print(e.body)},ClassPrivateMethod:function(e){AK.call(this,e),this.space(),this.print(e.body)},ClassPrivateProperty:function(e){this.printJoin(e.decorators),As.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ClassProperty:function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){let t=e.key.loc?.end?.line;t&&this.catchUp(t)}As.call(this,e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(AD.call(this,e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()},ConditionalExpression:function(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)},ContinueStatement:function(e){this.word("continue"),wX(this,e.label)},DebuggerStatement:function(){this.word("debugger"),this.semicolon()},DeclareClass:function(e,t){AC(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),AO.call(this,e)},DeclareExportAllDeclaration:function(e){this.word("declare"),this.space(),Am.call(this,e)},DeclareExportDeclaration:function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space())},DeclareFunction:function(e,t){AC(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation?.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()},DeclareInterface:function(e){this.word("declare"),this.space(),AM.call(this,e)},DeclareModule:function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},DeclareModuleExports:function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},DeclareOpaqueType:function(e,t){AC(t)||(this.word("declare"),this.space()),AR.call(this,e)},DeclareTypeAlias:function(e){this.word("declare"),this.space(),Aj.call(this,e)},DeclareVariable:function(e,t){AC(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},DeclaredPredicate:function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},Decorator:function(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()},Directive:function(e){this.print(e.value),this.semicolon()},DirectiveLiteral:function(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);let{value:r}=e;if(Az.test(r))if(AJ.test(r))throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");else this.token(`'${r}'`);else this.token(`"${r}"`)},DoExpression:function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},DoWhileStatement:function(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()},EmptyStatement:function(){this.semicolon(!0)},EmptyTypeAnnotation:function(){this.word("empty")},EnumBooleanBody:function(e){let{explicitType:t}=e;AI(this,"boolean",t),A_(this,e)},EnumBooleanMember:function(e){AN(this,e)},EnumDeclaration:function(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)},EnumDefaultedMember:function(e){let{id:t}=e;this.print(t),this.tokenChar(44)},EnumNumberBody:function(e){let{explicitType:t}=e;AI(this,"number",t),A_(this,e)},EnumNumberMember:function(e){AN(this,e)},EnumStringBody:function(e){let{explicitType:t}=e;AI(this,"string",t),A_(this,e)},EnumStringMember:function(e){AN(this,e)},EnumSymbolBody:function(e){AI(this,"symbol",!0),A_(this,e)},ExistsTypeAnnotation:function(){this.tokenChar(42)},ExportAllDeclaration:Am,ExportDefaultDeclaration:function(e){Ay(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=4;let t=e.declaration;this.print(t),Ad(t)||this.semicolon()},ExportDefaultSpecifier:function(e){this.print(e.exported)},ExportNamedDeclaration:function(e){if(Ay(this,e),this.word("export"),this.space(),e.declaration){let t=e.declaration;this.print(t),Ad(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());let t=e.specifiers.slice(0),r=!1;for(;;){let e=t[0];if(Au(e)||Ac(e))r=!0,this.print(t.shift()),t.length&&(this.tokenChar(44),this.space());else break}let n=!1;!t.length&&(t.length||r)||(n=!0,this.tokenChar(123),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source&&(this.space(),this.word("from"),this.space(),e.attributes?.length?(this.print(e.source,!0),this.space(),Af.call(this,e,n)):this.print(e.source)),this.semicolon()}},ExportNamespaceSpecifier:function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},ExportSpecifier:function(e){"type"===e.exportKind&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))},ExpressionStatement:function(e){this.tokenContext|=1,this.print(e.expression),this.semicolon()},File:function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},ForInStatement:function(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=160,this.print(e.left),this.tokenContext=0,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)},ForOfStatement:function(e){this.word("for"),this.space(),e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=64,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)},ForStatement:function(e){this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=144,this.print(e.init),this.tokenContext=0,this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e.body)},FunctionDeclaration:w3,FunctionExpression:w3,FunctionTypeAnnotation:function(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},FunctionTypeParam:function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},GenericTypeAnnotation:AL,Identifier:function(e){this._buf._map&&e.loc?.identifierName&&e.loc.identifierName!==e.name&&this.sourceIdentifierName(e.loc.identifierName),this.word(this.tokenMap?Ax:e.name)},IfStatement:function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&wJ(function e(t){let{body:r}=t;return!1===wz(r)?t:e(r)}(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))},Import:function(){this.word("import")},ImportAttribute:function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},ImportDeclaration:function(e){this.word("import"),this.space();let t="type"===e.importKind||"typeof"===e.importKind;t?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let r=e.specifiers.slice(0),n=!!r.length;for(;n;){let e=r[0];if(Ap(e)||Ah(e))this.print(r.shift()),r.length&&(this.tokenChar(44),this.space());else break}let i=!1;r.length?(i=!0,this.tokenChar(123),this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):t&&!n&&(i=!0,this.tokenChar(123),this.tokenChar(125)),(n||t)&&(this.space(),this.word("from"),this.space()),e.attributes?.length?(this.print(e.source,!0),this.space(),Af.call(this,e,i)):this.print(e.source),this.semicolon()},ImportDefaultSpecifier:function(e){this.print(e.local)},ImportExpression:function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)},ImportNamespaceSpecifier:function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},ImportSpecifier:function(e){("type"===e.importKind||"typeof"===e.importKind)&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))},IndexedAccessType:function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},InferredPredicate:function(){this.tokenChar(37),this.word("checks")},InterfaceDeclaration:AM,InterfaceExtends:AL,InterfaceTypeAnnotation:function(e){this.word("interface"),e.extends?.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)},InterpreterDirective:function(e){this.token(`#!${e.value}`),this._newline()},IntersectionTypeAnnotation:function(e){this.printJoin(e.types,void 0,void 0,AF)},JSXAttribute:function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},JSXClosingElement:function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},JSXClosingFragment:function(){this.token("</"),this.tokenChar(62)},JSXElement:function(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){for(let t of(this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingElement)}},JSXEmptyExpression:function(){this.printInnerComments()},JSXExpressionContainer:function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},JSXFragment:function(e){for(let t of(this.print(e.openingFragment),this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingFragment)},JSXIdentifier:function(e){this.word(e.name)},JSXMemberExpression:function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},JSXNamespacedName:function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},JSXOpeningElement:function(e){this.tokenChar(60),this.print(e.name),this.print(e.typeArguments),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,AW)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},JSXOpeningFragment:function(){this.tokenChar(60),this.tokenChar(62)},JSXSpreadAttribute:function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},JSXSpreadChild:function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},JSXText:function(e){let t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)},LabeledStatement:function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},LogicalExpression:wq,MemberExpression:function(e){if(this.print(e.object),!e.computed&&wB(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(wj(e.property)&&"number"==typeof e.property.value&&(t=!0),t){let t=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=t}else this.tokenChar(46),this.print(e.property)},MetaProperty:function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},MixedTypeAnnotation:function(){this.word("mixed")},ModuleExpression:function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},NewExpression:function(e,t){this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!wF(t,{callee:e})&&!wB(t)&&!wR(t)||(this.print(e.typeArguments),(0!==e.arguments.length||!this.tokenMap||this.tokenMap.endMatches(e,")"))&&wU.call(this,e))},NullLiteral:function(){this.word("null")},NullLiteralTypeAnnotation:function(){this.word("null")},NullableTypeAnnotation:function(e){this.tokenChar(63),this.print(e.typeAnnotation)},NumberLiteralTypeAnnotation:Ak,NumberTypeAnnotation:function(){this.word("number")},NumericLiteral:Ak,ObjectExpression:AT,ObjectMethod:function(e){this.printJoin(e.decorators),w0.call(this,e),this.space(),this.print(e.body)},ObjectPattern:AT,ObjectProperty:function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(Ag(e.value)&&Ab(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&Ab(e.key)&&Ab(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},ObjectTypeAnnotation:function(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{(1!==t.length||e.inexact)&&(this.tokenChar(44),this.space())},!0),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)},ObjectTypeCallProperty:function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},ObjectTypeIndexer:function(e){e.static&&(this.word("static"),this.space()),AD.call(this,e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)},ObjectTypeInternalSlot:function(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},ObjectTypeProperty:function(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),("get"===e.kind||"set"===e.kind)&&(this.word(e.kind),this.space()),AD.call(this,e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)},ObjectTypeSpreadProperty:function(e){this.token("..."),this.print(e.argument)},OpaqueType:AR,OptionalCallExpression:function(e){this.print(e.callee),e.optional&&this.token("?."),this.print(e.typeArguments),wU.call(this,e)},OptionalIndexedAccessType:function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},OptionalMemberExpression:function(e){let{computed:t}=e,{optional:r,property:n}=e;if(this.print(e.object),!t&&wB(n))throw TypeError("Got a MemberExpression for MemberExpression property");wj(n)&&"number"==typeof n.value&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n))},ParenthesizedExpression:function(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)},Placeholder:function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},PrivateName:function(e){this.tokenChar(35),this.print(e.id)},Program:function(e){this.printInnerComments(!1);let t=e.directives?.length;if(t){let r=e.body.length?2:1;this.printSequence(e.directives,void 0,void 0,r),e.directives[t-1].trailingComments?.length||this.newline(r)}this.printSequence(e.body)},QualifiedTypeIdentifier:function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},RegExpLiteral:function(e){this.word(`/${e.pattern}/${e.flags}`,!1)},RestElement:Av,ReturnStatement:function(e){this.word("return"),wX(this,e.argument)},SequenceExpression:function(e){this.printList(e.expressions)},SpreadElement:Av,StaticBlock:function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},StringLiteral:Aw,StringLiteralTypeAnnotation:Aw,StringTypeAnnotation:function(){this.word("string")},Super:function(){this.word("super")},SwitchCase:function(e){e.test?(this.word("case"),this.space(),this.print(e.test)):this.word("default"),this.tokenChar(58),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))},SwitchStatement:function(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)},SymbolTypeAnnotation:function(){this.word("symbol")},TSAnyKeyword:function(){this.word("any")},TSArrayType:function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},TSAsExpression:function(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)},TSBigIntKeyword:function(){this.word("bigint")},TSBooleanKeyword:function(){this.word("boolean")},TSCallSignatureDeclaration:function(e){Ai.call(this,e),w9(this,e)},TSClassImplements:An,TSConditionalType:function(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)},TSConstructSignatureDeclaration:function(e){this.word("new"),this.space(),Ai.call(this,e),w9(this,e)},TSConstructorType:function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),Ae.call(this,e)},TSDeclareFunction:function(e,t){e.declare&&(this.word("declare"),this.space()),w2.call(this,e,t,!1),this.semicolon()},TSDeclareMethod:function(e){AK.call(this,e,!1),this.semicolon()},TSEnumBody:function(e){Aa(this,e,()=>this.printList(e.members,this.shouldPrintTrailingComma("}")??!1,!0,!0,void 0,!0))},TSEnumDeclaration:function(e){let{declare:t,const:r,id:n}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n),this.space(),this.print(e.body)},TSEnumMember:function(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))},TSExportAssignment:function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},TSExternalModuleReference:function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},TSFunctionType:function(e){Ae.call(this,e)},TSImportEqualsDeclaration:function(e){let{id:t,moduleReference:r}=e;this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()},TSImportType:function(e){let{qualifier:t,options:r}=e;this.word("import"),this.tokenChar(40),this.print(e.source),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),t&&(this.tokenChar(46),this.print(t));let n=e.typeArguments;n&&this.print(n)},TSIndexSignature:function(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),wQ.call(this,e.parameters,93),this.print(e.typeAnnotation),w9(this,e)},TSIndexedAccessType:function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},TSInferType:function(e){this.word("infer"),this.print(e.typeParameter)},TSInstantiationExpression:function(e){this.print(e.expression),this.print(e.typeArguments)},TSInterfaceBody:function(e){Aa(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))},TSInterfaceDeclaration:function(e){let{declare:t,id:r,typeParameters:n,extends:i,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(n),i?.length&&(this.space(),this.word("extends"),this.space(),this.printList(i)),this.space(),this.print(s)},TSInterfaceHeritage:An,TSIntersectionType:function(e){At(this,e,"&")},TSIntrinsicKeyword:function(){this.word("intrinsic")},TSLiteralType:function(e){this.print(e.literal)},TSMappedType:function(e){let{nameType:t,optional:r,readonly:n,typeAnnotation:i}=e;this.tokenChar(123);let s=this.enterDelimited();this.space(),n&&(Ar(this,n),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.key.name),this.space(),this.word("in"),this.space(),this.print(e.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t,void 0,!0)),this.tokenChar(93),r&&(Ar(this,r),this.tokenChar(63)),i&&(this.tokenChar(58),this.space(),this.print(i,void 0,!0)),this.space(),this._noLineTerminatorAfterNode=s,this.tokenChar(125)},TSMethodSignature:function(e){let{kind:t}=e;("set"===t||"get"===t)&&(this.word(t),this.space()),w7.call(this,e),Ai.call(this,e),w9(this,e)},TSModuleBlock:function(e){Aa(this,e,()=>this.printSequence(e.body,!0,!0))},TSModuleDeclaration:function(e){let{declare:t,kind:r}=e;(t&&(this.word("declare"),this.space()),"global"!==r&&(this.word(r),this.space()),this.print(e.id),e.body)?(this.space(),this.print(e.body)):this.semicolon()},TSNamedTupleMember:function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},TSNamespaceExportDeclaration:function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},TSNeverKeyword:function(){this.word("never")},TSNonNullExpression:function(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)},TSNullKeyword:function(){this.word("null")},TSNumberKeyword:function(){this.word("number")},TSObjectKeyword:function(){this.word("object")},TSOptionalType:function(e){this.print(e.typeAnnotation),this.tokenChar(63)},TSParameterProperty:function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),wZ.call(this,e.parameter)},TSParenthesizedType:function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},TSPropertySignature:function(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),w7.call(this,e),this.print(e.typeAnnotation),w9(this,e)},TSQualifiedName:function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},TSRestType:function(e){this.token("..."),this.print(e.typeAnnotation)},TSSatisfiesExpression:function(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)},TSStringKeyword:function(){this.word("string")},TSSymbolKeyword:function(){this.word("symbol")},TSTemplateLiteralType:function(e){wM.call(this,e,e.types)},TSThisType:function(){this.word("this")},TSTupleType:function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},TSTypeAliasDeclaration:function(e){let{declare:t,id:r,typeParameters:n,typeAnnotation:i}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(n),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()},TSTypeAnnotation:function(e,t){this.token(("TSFunctionType"===t.type||"TSConstructorType"===t.type)&&t.returnType===e?"=>":":"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},TSTypeAssertion:function(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)},TSTypeLiteral:function(e){Aa(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))},TSTypeOperator:function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},TSTypeParameter:function(e){e.const&&(this.word("const"),this.space()),e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},TSTypeParameterDeclaration:w8,TSTypeParameterInstantiation:w8,TSTypePredicate:function(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))},TSTypeQuery:function(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeArguments;t&&this.print(t)},TSTypeReference:function(e){let t=e.typeArguments;this.print(e.typeName,!!t),this.print(t)},TSUndefinedKeyword:function(){this.word("undefined")},TSUnionType:function(e){At(this,e,"|")},TSUnknownKeyword:function(){this.word("unknown")},TSVoidKeyword:function(){this.word("void")},TaggedTemplateExpression:function(e){this.print(e.tag),this.print(e.typeArguments),this.print(e.quasi)},TemplateElement:function(){throw Error("TemplateElement printing is handled in TemplateLiteral")},TemplateLiteral:function(e){wM.call(this,e,e.expressions)},ThisExpression:function(){this.word("this")},ThisTypeAnnotation:function(){this.word("this")},ThrowStatement:function(e){this.word("throw"),wX(this,e.argument)},TopicReference:function(){let{topicToken:e}=this.format;if(AP.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(AP,e=>JSON.stringify(e));throw Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}},TryStatement:function(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))},TupleTypeAnnotation:function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},TypeAlias:Aj,TypeAnnotation:function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=8:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},TypeCastExpression:function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},TypeParameter:function(e){AD.call(this,e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))},TypeParameterDeclaration:AB,TypeParameterInstantiation:AB,TypeofTypeAnnotation:function(e){this.word("typeof"),this.space(),this.print(e.argument)},UnaryExpression:function(e){let{operator:t}=e,r=t.charCodeAt(0);r>=97&&r<=122?(this.word(t),this.space()):this.tokenChar(r),this.print(e.argument)},UnionTypeAnnotation:function(e){this.printJoin(e.types,void 0,void 0,A$)},UpdateExpression:function(e){e.prefix?(this.token(e.operator,!1,0,!0),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator,!1,0,!0))},V8IntrinsicIdentifier:function(e){this.tokenChar(37),this.word(e.name)},VariableDeclaration:function(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let n=!1;if(!wK(t)){for(let t of e.declarations)if(t.init){n=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,n?wH:void 0),null!=t)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()},VariableDeclarator:function(e){this.print(e.id),e.definite&&this.tokenChar(33),wW(e.id)||this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))},Variance:function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},VoidPattern:function(){this.word("void")},VoidTypeAnnotation:function(){this.word("void")},WhileStatement:function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)},WithStatement:function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)},YieldExpression:function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},_classMethodHead:AK,_functionHead:w2,_getRawIdentifier:AS,_interfaceish:AO,_methodHead:w0,_param:wZ,_parameters:wQ,_params:wY,_predicate:w1,_printAttributes:Af,_printTemplate:wM,_shouldPrintArrowParamsParens:w4,_shouldPrintDecoratorsBeforeExport:wV,_tsPrintClassMemberModifiers:As,_variance:AD},Symbol.toStringTag,{value:"Module"}),AH=new Map,AG=0;for(let e of Object.keys(AX).sort())e.startsWith("_")||AH.set(e,[AX[e],AG++,void 0]);var{VISITOR_KEYS:AY}=e5;for(let e of Object.keys(wD)){let t=wD[e];AH.has(e)&&(AH.get(e)[2]=t)}function AQ(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&AQ(e.object);default:return!1}}var{traverseFast:AZ,VISITOR_KEYS:A0}=e5,A1=class{_tokens;_source;_nodesToTokenIndexes=new Map;_nodesOccurrencesCountCache=new Map;_tokensCache=new Map;constructor(e,t,r){this._tokens=t,this._source=r,AZ(e,e=>{let t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){let r=this._nodesToTokenIndexes.get(e);if(r)for(let e=0;e<r.length;e++){let n=r[e],i=this._tokens[n];if(t(i,n))return i}return null}findLastIndex(e,t){let r=this._nodesToTokenIndexes.get(e);if(r)for(let e=r.length-1;e>=0;e--){let n=r[e];if(t(this._tokens[n],n))return n}return -1}findMatching(e,t,r=0){let n=this._nodesToTokenIndexes.get(e);if(n){"number"==typeof t&&(t=String.fromCharCode(t));let i=0,s=r;if(s>1){let n=this._nodesOccurrencesCountCache.get(e);n?.test===t&&n.count<s&&(i=n.i+1,r-=n.count+1)}for(;i<n.length;i++){let a=this._tokens[n[i]];if(this.matchesOriginal(a,t)){if(0===r)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i}),a;r--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let n=this._tokens[r[0]];return n.start===e.start&&this.matchesOriginal(n,t)}endMatches(e,t){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let n=this._tokens[r[r.length-1]];return n.end===e.end&&this.matchesOriginal(n,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];let{first:t,last:r}=this._findTokensOfNode(e,0,this._tokens.length-1),n=t,i=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}for(let t of A0[e.type]){let r=e[t];r&&(Array.isArray(r)?yield*r:yield r)}}(e);("ExportNamedDeclaration"===e.type||"ExportDefaultDeclaration"===e.type)&&e.declaration?.type==="ClassDeclaration"&&i.next();let s=[];for(let e of i){if(null==e||null==e.start||null==e.end)continue;let t=this._findTokensOfNode(e,n,r),i=t.first;for(let e=n;e<i;e++)s.push(e);n=t.last+1}for(let e=n;e<=r;e++)s.push(e);return s}_findTokensOfNode(e,t,r){let n=this._tokensCache.get(e);if(n)return n;let i=this._findFirstTokenOfNode(e.start,t,r),s=this._findLastTokenOfNode(e.end,i,r);return this._tokensCache.set(e,{first:i,last:s}),{first:i,last:s}}_findFirstTokenOfNode(e,t,r){for(;t<=r;){let n=r+t>>1;if(e<this._tokens[n].start)r=n-1;else{if(!(e>this._tokens[n].start))return n;t=n+1}}return t}_findLastTokenOfNode(e,t,r){for(;t<=r;){let n=r+t>>1;if(e<this._tokens[n].end)r=n-1;else{if(!(e>this._tokens[n].end))return n;t=n+1}}return r}},{isExpression:A2,isFunction:A3,isStatement:A4,isClassBody:A5,isTSInterfaceBody:A6,isTSEnumMember:A8}=e5,A9=/e/i,A7=/\.0+$/,Pe=/[\n\r\u2028\u2029]/,Pt=/[\n\r\u2028\u2029]|\*\//;function Pr(e){return"CommentLine"===e.type||Pe.test(e.value)}var Pn=class{constructor(e,t,r=null,n=null){this.format=e,this._tokens=r,this._originalCode=n,this._indentRepeat=e.indent.style.length,this._inputMap=t?._inputMap||null,this._buf=new wm(t,e.indent.style[0]);let{preserveFormat:i,compact:s,concise:a,retainLines:o,retainFunctionParens:l}=e;i&&(this._flags|=1),s&&(this._flags|=2),a&&(this._flags|=4),o&&(this._flags|=8),l&&(this._flags|=16),(e.auxiliaryCommentBefore||e.auxiliaryCommentAfter)&&(this._flags|=32)}enterDelimited(){let e=this._noLineTerminatorAfterNode;return null!==e&&(this._noLineTerminatorAfterNode=null),e}tokenContext=0;_tokens=null;_originalCode=null;_currentNode=null;_currentTypeId=null;_indent=0;_indentRepeat=0;_insideAux=!1;_noLineTerminator=!1;_noLineTerminatorAfterNode=null;_printAuxAfterOnNextUserNode=!1;_printedComments=new Set;_lastCommentLine=0;_innerCommentsState=0;_flags=0;tokenMap=null;_boundGetRawIdentifier=null;generate(e){return this.format.preserveFormat&&(this.tokenMap=new A1(e,this._tokens,this._originalCode),this._boundGetRawIdentifier=AS.bind(this)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(e=this._flags){7&e||(this._indent+=this._indentRepeat)}dedent(e=this._flags){7&e||(this._indent-=this._indentRepeat)}_printSemicolonBeforeNextNode=-1;_printSemicolonBeforeNextToken=-1;semicolon(e=!1){let t=this._flags;if(32&t&&this._maybeAddAuxComment(),1&t){let e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.length-1]].loc.start)}}e?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(!(3&this._flags))if(e)this._space();else{let e=this.getLastChar(!0);0!==e&&32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=128,this._maybePrintInnerComments(e);let r=this._flags;32&r&&this._maybeAddAuxComment(),1&r&&this._catchUpToCurrentToken(e);let n=this.getLastChar();(-2===n||-3===n||47===n&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this.setLastChar(-3),this._noLineTerminator=t}number(e,t){this.word(e),!Number.isInteger(t)||function(e){if(e.length>2&&48===e.charCodeAt(0)){let t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)||A9.test(e)||A7.test(e)||46===e.charCodeAt(e.length-1)||this.setLastChar(-2)}token(e,t=!1,r=0,n=!1){this.tokenContext&=128,this._maybePrintInnerComments(e,r);let i=this._flags;if(32&i&&this._maybeAddAuxComment(),1&i&&this._catchUpToCurrentToken(e,r),n){let t=e.charCodeAt(0);((45===t&&"--"===e||61===t)&&33===this.getLastChar()||43===t&&43===this.getLastChar()||45===t&&45===this.getLastChar()||46===t&&-2===this.getLastChar())&&this._space()}this._append(e,t),this._noLineTerminator=!1}tokenChar(e,t=0){this.tokenContext&=128,this._maybePrintInnerComments(e,t);let r=this._flags;32&r&&this._maybeAddAuxComment(),1&r&&this._catchUpToCurrentToken(e,t),(43===e&&43===this.getLastChar()||45===e&&45===this.getLastChar()||46===e&&-2===this.getLastChar())&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t=this._flags){if(!(e<=0)&&!(10&t)){if(4&t)return void this.space();e>2&&(e=2),e-=this._buf.getNewlineCount();for(let t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar(!0)===e}getLastChar(e){return this._buf.getLastChar(e)}setLastChar(e){this._buf._last=e}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,r){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;let r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){32===this._buf._queuedChar&&(this._buf._queuedChar=0),this._appendChar(10,!0)}_catchUpToCurrentToken(e,t=0){let r=this.tokenMap.findMatching(this._currentNode,e,t);r&&this._catchUpTo(r.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&this._appendChar(59,!0),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(),this._buf.append(e,t)}_appendChar(e,t){t||this._maybeIndent(),this._buf.appendChar(e)}_queue(e){this._buf.queue(e),this.setLastChar(-1)}_maybeIndent(){let e=this._shouldIndent();e>0&&this._buf._appendChar(-1,e,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(e){if(!this.format.retainLines)return;let t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){let r=this._flags;if((1&r)==0){8&r&&t?.[e]&&this.catchUp(t[e].line);return}let n=t?.[e];null!=n&&this._catchUpTo(n)}_catchUpTo({line:e,column:t,index:r}){let n=e-this._buf.getCurrentLine();if(n>0&&this._noLineTerminator)return;for(let e=0;e<n;e++)this._newline();let i=n>0?t:t-this._buf.getCurrentColumn();if(i>0){let n=this._originalCode?this._originalCode.slice(r-i,r).replace(/[^\t\v\f\uFEFF\p{Space_Separator}]/gu," "):" ".repeat(i);this._buf.append(n,!1,!0),this._buf.setSourcePosition(e,t),this.setLastChar(32)}}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,r=!1,n){let i,s;if(!e)return;this._innerCommentsState=0;let{type:a,loc:o,extra:l}=e,u=this._flags,c=!1;e._compact&&(this._flags|=4,c=!0);let p=AH.get(a);if(void 0===p)throw ReferenceError(`unknown node of type ${JSON.stringify(a)} with constructor ${JSON.stringify(e.constructor.name)}`);let[h,d,f]=p,m=this._currentNode,y=this._currentTypeId;this._currentNode=e,this._currentTypeId=d,1&u&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode),32&u&&(i=this._insideAux,this._insideAux=null==o,this._maybeAddAuxComment(this._insideAux&&!i));let g=0;r&&(128&(g=this.tokenContext)?this.tokenContext=0:g=0);let b=null!=l&&l.parenthesized,x=b&&1&u||b&&16&u&&72===d||m&&(function(e,t,r){switch(r){case 113:if(t.callee===e){let t=e;for(;;)switch(t.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":t=t.object;break;case"TaggedTemplateExpression":t=t.tag;break;case"TSInstantiationExpression":case"TSNonNullExpression":t=t.expression;break;default:return!1}return}break;case 220:if(t.tag===e){let t=e;for(;;)switch(t.type){case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"TSInstantiationExpression":case"TSNonNullExpression":t=t.expression;break;default:return!1}return}break;case 43:return!AQ(e)&&!("CallExpression"===e.type&&AQ(e.callee))&&"ParenthesizedExpression"!==e.type}return!1}(e,m,y)||null!=f&&f(e,m,y,this.tokenContext,1&u?this._boundGetRawIdentifier:void 0));if(!x&&b&&e.leadingComments?.length&&"CommentBlock"===e.leadingComments[0].type)switch(y){case 66:case 241:case 6:case 141:break;case 18:case 131:case 113:if(m.callee!==e)break;default:x=!0}let S=!1;!x&&this._noLineTerminator&&(e.leadingComments?.some(Pr)||8&u&&o&&o.start.line>this._buf.getCurrentLine())&&(x=!0,S=!0),!x&&(t||=!!m&&this._noLineTerminatorAfterNode===m&&function(e,t){let r=AY[e.type];for(let n=r.length-1;n>=0;n--){let i=e[r[n]];if(i===t)return!0;if(Array.isArray(i)){let e=i.length-1;for(;e>=0&&null===i[e];)e--;return e>=0&&i[e]===t}if(i)break}return!1}(m,e))&&(e.trailingComments?.some(Pr)?A2(e)&&(x=!0):(s=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e)),x&&(this.tokenChar(40),S&&this.indent(),this._innerCommentsState=0,r||(g=this.tokenContext),128&g&&(this.tokenContext=0),s=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._printLeadingComments(e,m),this.exactSource(137===d||67===d?null:o,h.bind(this,e,m)),x?(this._printTrailingComments(e,m),S&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,m)):this._printTrailingComments(e,m,n),g&&(this.tokenContext=g),this._currentNode=m,this._currentTypeId=y,c&&(this._flags=u),32&u&&(this._insideAux=i),null!=s&&(this._noLineTerminatorAfterNode=s),this._innerCommentsState=0}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let t=e.extra;if(t?.raw!=null&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r,n,i,s,a){if(!e?.length)return;let o=this._flags;if(null==r&&8&o){let t=e[0].loc?.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent(o);let l=e.length;for(let r=0;r<l;r++){let u=e[r];if(u&&(t&&0===r&&this._buf.hasContent()&&this.newline(1,o),this.print(u,!1,s,a||0),null!=n&&(r<l-1?n.call(this,r,!1):i&&n.call(this,r,!0)),t))if(r+1===l)this.newline(1,o);else{let t=this._lastCommentLine;if(t>0){let n=(e[r+1].loc?.start.line||0)-t;if(n>=0){this.newline(n||1,o);continue}}this.newline(1,o)}}r&&this.dedent(o)}printAndIndentOnComments(e){let t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){"EmptyStatement"!==e.type&&this.space(),this.print(e)}_printTrailingComments(e,t,r){let{innerComments:n,trailingComments:i}=e;n?.length&&this._printComments(2,n,e,t,r),i?.length?this._printComments(2,i,e,t,r):this._lastCommentLine=0}_printLeadingComments(e,t){let r=e.leadingComments;r?.length&&this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){let r=this._innerCommentsState;switch(3&r){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((4&r)>0,this.tokenMap?.findMatching(this._currentNode,e,t))}}printInnerComments(e=!0,t){let r=this._currentNode,n=r.innerComments;if(!n?.length){this._innerCommentsState=2;return}let i=this.endsWith(32);switch(e&&this.indent(),this._printComments(1,n,r,void 0,void 0,t)){case 2:this._innerCommentsState=2;case 1:i&&this.space()}e&&this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(e,t,r,n){this.printJoin(e,!0,t??!1,void 0,void 0,r,n)}printList(e,t,r,n,i,s){this.printJoin(e,r,n,i??Pi,t,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let t=this.tokenMap.findLastIndex(this._currentNode,t=>this.tokenMap.matchesOriginal(t,"number"==typeof e?String.fromCharCode(e):e));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_shouldPrintComment(e,t){if(e.ignore||this._printedComments.has(e))return 0;if(this._noLineTerminator&&Pt.test(e.value))return 2;if(t&&this.tokenMap){let r=this.tokenMap.find(this._currentNode,t=>t.value===e.value);if(r&&r.start>t.start)return 2}return+(this._printedComments.add(e),!!this.format.shouldPrintComment(e.value))}_printComment(e,t){let r,n=this._noLineTerminator,i="CommentBlock"===e.type,s=i&&1!==t&&!n;switch(s&&this._buf.hasContent()&&2!==t&&this.newline(1),this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}if(i){if(r=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){let t=e.loc?.start.column;if(t){let e=RegExp("\\n\\s{1,"+t+"}","g");r=r.replace(e,"\n")}if(4&this._flags)r=r.replace(/\n(?!$)/g,`
30
+ `);else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent()||this.format.retainLines)&&(e+=this._indent),r=r.replace(/\n(?!$)/g,`
31
+ ${" ".repeat(e)}`)}}}else r=n?`/*${e.value}*/`:`//${e.value}`;this.source("start",e.loc),this._append(r,i),i||n||this._newline(),s&&3!==t&&this.newline(1)}_printComments(e,t,r,n,i=0,s){let a=r.loc,o=t.length,l=!!a,u=l?a.start.line:0,c=l?a.end.line:0,p=0,h=0,{_noLineTerminator:d,_flags:f}=this;for(let a=0;a<o;a++){let m=t[a],y=this._shouldPrintComment(m,s);if(2===y)return+(0!==a);if(l&&m.loc&&1===y){let t=m.loc.start.line,r=m.loc.end.line;if(0===e){let e=0;if(0===a?this._buf.hasContent()&&("CommentLine"===m.type||t!==r)&&(e=h=1):e=t-p,p=r,e>0&&!d&&this.newline(e,f),this._printComment(m,1),a+1===o){let e=Math.max(u-p,h);e>0&&!d&&this.newline(e,f),p=u}}else if(1===e){let e=t-(0===a?u:p);if(p=r,e>0&&!d&&this.newline(e,f),this._printComment(m,1),a+1===o){let e=Math.min(1,c-p);e>0&&!d&&this.newline(e,f),p=c}}else{let e=t-(0===a?c-i:p);p=r,e>0&&!d&&this.newline(e,f),this._printComment(m,1)}}else{if(l=!1,1!==y)continue;if(1===o){let t=m.loc?m.loc.start.line===m.loc.end.line:!Pe.test(m.value),i=t&&!A4(r)&&!A5(n)&&!A6(n)&&!A8(r);0===e?this._printComment(m,i&&"ObjectExpression"!==r.type||t&&A3(n)&&n.body===r?1:0):i&&2===e?this._printComment(m,1):this._printComment(m,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(m,0):this._printComment(m,0===a?2:3*(a===o-1))}}return 2===e&&l&&p&&(this._lastCommentLine=p),2}};function Pi(e,t){this.tokenChar(44,e),t||this.space()}function Ps(e,t={},r){return new Pn(function(e,t,r){if(t.experimental_preserveFormat){if("string"!=typeof e)throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:{quotes:"double",wrap:!0,minimal:!0,...t.jsescOption},topicToken:t.topicToken};n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve")),"auto"===n.compact&&(n.compact="string"==typeof e&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:s,shouldPrintComment:a}=n;return i&&!a(i)&&(n.auxiliaryCommentBefore=void 0),s&&!a(s)&&(n.auxiliaryCommentAfter=void 0),n}(r,t,e),t.sourceMaps?new wd(t,r):null,e.tokens,"string"==typeof r?r:null).generate(e)}var Pa=[],Po=[],Pl={};try{eY.env.DEBUG,Pl=eY.env}catch{}for(let e of(Pa=[],Po=[],(Pl.DEBUG||"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===e[0]?Po.push(e.slice(1)):Pa.push(e);var Pu=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],Pc=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"],Pp=Object.defineProperty({__proto__:null,BindingIdentifier:["Identifier"],BlockScoped:["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],ExistentialTypeParam:["ExistsTypeAnnotation"],Expression:["Expression"],Flow:["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],ForAwaitStatement:["ForOfStatement"],Generated:null,NumericLiteralTypeAnnotation:["NumberLiteralTypeAnnotation"],Pure:null,Referenced:null,ReferencedIdentifier:["Identifier","JSXIdentifier"],ReferencedMemberExpression:["MemberExpression"],RestProperty:["RestElement"],Scope:["Scopable","Pattern"],SpreadProperty:["RestElement"],Statement:["Statement"],User:null,Var:["VariableDeclaration"]},Symbol.toStringTag,{value:"Module"}),Ph=class{constructor(e,t){this.state=t,this.opts=e}queue=null;priorityQueue=null;maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}},{VISITOR_KEYS:Pd}=e5;function Pf(e,t){e.queue=t,e.priorityQueue=[];let r=new Set,n=!1,i=0;for(;i<t.length;){let s=t[i];if(i++,N0.call(s),(0===s.contexts.length||s.contexts[s.contexts.length-1]!==e)&&N2.call(s,e),null===s.key)continue;let{node:a}=s;if(!r.has(a)){if(a&&r.add(a),function(e,t){let r=t.node;if(!r)return!1;let n=e.opts,i=n.denylist;return!(i?.includes(r.type)||n.shouldSkip?.(t))&&(t.shouldSkip||NY.call(t,n.enter)||t.node&&NY.call(t,n[r.type]?.enter)||(t.shouldStop=Pm(t.node,n,t.scope,e.state,t,t.skipKeys),t.node&&NY.call(t,n.exit)||t.node&&NY.call(t,n[r.type]?.exit)),t.shouldStop)}(e,s)){n=!0;break}if(e.priorityQueue.length&&(n=Pf(e,e.priorityQueue),e.priorityQueue=[],e.queue=t,n))break}}for(let e=0;e<i;e++)N1.call(t[e]);return e.queue=null,n}function Pm(e,t,r,n,i,s,a){let o=Pd[e.type];if(!o?.length)return!1;let l=new Ph(t,n);if(a)return!s?.[i.parentKey]&&Pf(l,[i]);let u=null==i?"Program"===e.type||"File"===e.type?new N6:void 0:i.hub;for(let t of o){if(s?.[t])continue;let r=e[t];if(r){if(Array.isArray(r)){if(!r.length)continue;let n=[];for(let s=0;s<r.length;s++){let a=NG.get({parentPath:i,parent:e,container:r,key:s,listKey:t,hub:u});n.push(a)}if(Pf(l,n))return!0}else if(Pf(l,[NG.get({parentPath:i,parent:e,container:e,key:t,listKey:null,hub:u})]))return!0}}return!1}var{isBinding:Py,isBlockScoped:Pg,isExportDeclaration:Pb,isExpression:Px,isFlow:PS,isForStatement:Pv,isForXStatement:PT,isIdentifier:PE,isImportDeclaration:Pk,isImportSpecifier:Pw,isJSXIdentifier:PA,isJSXMemberExpression:PP,isMemberExpression:PC,isRestElement:PI,isReferenced:P_,isScope:PN,isStatement:PL,isVar:PO,isVariableDeclaration:PD,react:PM,isForOfStatement:PF}=e5,{isCompatTag:Pj}=PM,PB=Object.defineProperty({__proto__:null,isBindingIdentifier:function(){let{node:e,parent:t}=this,r=this.parentPath.parent;return PE(e)&&Py(e,t,r)},isBlockScoped:function(){return Pg(this.node)},isExpression:function(){return this.isIdentifier()?this.isReferencedIdentifier():Px(this.node)},isFlow:function(){let{node:e}=this;return!!PS(e)||(Pk(e)?"type"===e.importKind||"typeof"===e.importKind:Pb(e)?"type"===e.exportKind:!!Pw(e)&&("type"===e.importKind||"typeof"===e.importKind))},isForAwaitStatement:function(){return PF(this.node,{await:!0})},isGenerated:function(){return!this.isUser()},isPure:function(e){return this.scope.isPure(this.node,e)},isReferenced:function(){return P_(this.node,this.parent)},isReferencedIdentifier:function(e){let{node:t,parent:r}=this;return PE(t,e)?P_(t,r,this.parentPath.parent):!!PA(t,e)&&!(!PP(r)&&Pj(t.name))&&P_(t,r,this.parentPath.parent)},isReferencedMemberExpression:function(){let{node:e,parent:t}=this;return PC(e)&&P_(e,t)},isRestProperty:function(){return PI(this.node)&&this.parentPath?.isObjectPattern()},isScope:function(){return PN(this.node,this.parent)},isSpreadProperty:function(){return PI(this.node)&&this.parentPath?.isObjectExpression()},isStatement:function(){let{node:e,parent:t}=this;return!(!PL(e)||PD(e)&&(PT(t,{left:e})||Pv(t,{init:e})))&&!0},isUser:function(){return!!this.node?.loc},isVar:function(){return PO(this.node)}},Symbol.toStringTag,{value:"Module"}),{DEPRECATED_KEYS:PR,DEPRECATED_ALIASES:P$,FLIPPED_ALIAS_KEYS:PU,TYPES:PV,__internal__deprecationWarning:Pq}=e5;function PK(e){return e?._exploded}function PJ(e){if(PK(e))return e;if(e._exploded=!0,Object.hasOwn(e,"blacklist")){if(!Object.hasOwn(e,"denylist"))throw Error("The 'blacklist' visitor option has been renamed to 'denylist'. Please update your configuration.");delete e.blacklist}for(let t of Object.keys(e)){if(PY(t))continue;let r=t.split("|");if(1===r.length)continue;let n=e[t];for(let i of(delete e[t],r))e[i]=n}for(let t of(Pz(e),delete e.__esModule,function(e){for(let t of Object.keys(e)){if(PY(t))continue;let r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(e),PG(e),Object.keys(e))){if(PY(t)||!(t in Pp))continue;let r=e[t];for(let e of Object.keys(r))r[e]=function(e,t){let r=PB[`is${e}`],n=function(e){if(r.call(e))return t.apply(this,arguments)};return n.toString=()=>t.toString(),n}(t,r[e]);delete e[t];let n=Pp[t];if(null!==n)for(let t of n)e[t]??={},PQ(e[t],r);else PQ(e,r)}for(let t of Object.keys(e)){if(PY(t))continue;let r=PU[t];if(t in PR){let e=PR[t];Pq(t,e,"Visitor "),r=[e]}else if(t in P$){let e=P$[t];Pq(t,e,"Visitor "),r=PU[e]}if(!r)continue;let n=e[t];for(let i of(delete e[t],r)){let t=e[i];t?PQ(t,n):e[i]={...n}}}for(let t of Object.keys(e))PY(t)||PG(e[t]);return e}function Pz(e){if(!e._verified){if("function"==typeof e)throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if(("enter"===t||"exit"===t)&&PW(t,e[t]),PY(t))continue;if(!PV.includes(t))throw Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 8.0.6`);let r=e[t];if("object"==typeof r)for(let e of Object.keys(r))if("enter"===e||"exit"===e)PW(`${t}.${e}`,r[e]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${e}`)}e._verified=!0}}function PW(e,t){for(let r of[].concat(t))if("function"!=typeof r)throw TypeError(`Non-function found defined in ${e} with type ${typeof r}`)}function PX(e,t=[],r){let n={_verified:!0,_exploded:!0};for(let i=0;i<e.length;i++){let s=PJ(e[i]),a=t[i],o=s;for(let e of((a||r)&&(o=PH(o,a,r)),PQ(n,o),Object.keys(s))){if(PY(e))continue;let t=s[e];(a||r)&&(t=PH(t,a,r)),PQ(n[e]||={},t)}}return n}function PH(e,t,r){let n={};for(let i of["enter","exit"]){let s=e[i];Array.isArray(s)&&(s=s.map(function(e){let n=e;return t&&(n=function(r){e.call(t,r,t)}),r&&(n=r(t?.key,i,n)),n!==e&&(n.toString=()=>e.toString()),n}),n[i]=s)}return n}function PG(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function PY(e){if(e.startsWith("_")||"enter"===e||"exit"===e||"shouldSkip"===e||"denylist"===e||"noScope"===e||"skipKeys"===e)return!0;if("blacklist"===e)throw Error("The 'blacklist' visitor option has been renamed to 'denylist'. Please update your configuration.");return!1}function PQ(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var PZ={FunctionParent(e){!e.isArrowFunctionExpression()&&(e.skip(),e.isMethod()&&e.requeueComputedKeyAndDecorators())},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators())}};function P0(e){return PX([PZ,e])}var P1=Object.defineProperty({__proto__:null,environmentVisitor:P0,explode:PJ,isExplodedVisitor:PK,merge:PX,verify:Pz},Symbol.toStringTag,{value:"Module"}),{getAssignmentIdentifiers:P2}=e5,P3=class{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){let t=e.parentPath;if(t.isExportDeclaration()){if(t.isExportDefaultDeclaration()){let{declaration:e}=t.node;if(s_(e)&&!e.id)return}t.isExportAllDeclaration()||t.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:t,newName:r}=this,{scope:n,path:i}=e,s=i.find(e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression());s&&s.getOuterBindingIdentifiers()[t]===e.identifier&&this.maybeConvertFromExportDeclaration(s);let a=n.block,o={discriminant:!0};sj(a)&&(a.computed&&(o.key=!0),tQ(a)||(o.decorators=!0)),Pm(a,eo??=PJ({ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)&&(e.skip(),e.isMethod()&&e.requeueComputedKeyAndDecorators(),e.isSwitchStatement()&&e.context.maybeQueue(e.get("discriminant")))},ObjectProperty({node:e,scope:t},r){let{name:n}=e.key;e.shorthand&&(n===r.oldName||n===r.newName)&&t.getBindingIdentifier(n)===r.binding.identifier&&(e.shorthand=!1)},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?P2(e.node):e.getOuterBindingIdentifiers();for(let e in r)e===t.oldName&&(r[e].name=t.newName)}}),n,this,n.path,o),n.removeOwnBinding(t),n.bindings[r]=e,this.binding.identifier.name=r,s&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))}},{VISITOR_KEYS:P4}=e5,P5=class{identifier;scope;path;kind;constructor({identifier:e,scope:t,path:r,kind:n}){this.identifier=e,this.scope=t,this.path=r,this.kind=n,("var"===n||"hoisted"===n)&&function(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:n}=e;r&&!r.isFunctionParent();{parentPath:r,key:n}=r)if("left"===n&&r.isForXStatement()||t&&"body"===n&&r.isLoop())return!0;return!1}(r)&&this.reassign(r),this.clearValue()}constantViolations=[];constant=!0;referencePaths=[];referenced=!1;references=0;deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}},P6=new WeakMap,P8=new WeakMap;function P9(){P6=new WeakMap}function P7(){P8=new WeakMap}function Ce(e){let{parent:t,parentPath:r}=e;return r?r._store:P6.get(t)}function Ct(e,t){if(t)return t._store||=new Map;let r=P6.get(e);return r||P6.set(e,r=new Map),r}var Cr=Object.defineProperty({__proto__:null,clear:function(){P9(),P7()},clearPath:P9,clearScope:P7,getCachedPaths:Ce,getOrCreateCachedPaths:Ct,get path(){return P6},get scope(){return P8}},Symbol.toStringTag,{value:"Module"}),{assignmentExpression:Cn,cloneNode:Ci,getBindingIdentifiers:Cs,identifier:Ca,isArrayExpression:Co,isBinary:Cl,isCallExpression:Cu,isClass:Cc,isClassBody:Cp,isClassDeclaration:Ch,isExportAllDeclaration:Cd,isExportDefaultDeclaration:Cf,isExportNamedDeclaration:Cm,isFunctionDeclaration:Cy,isIdentifier:Cg,isImportDeclaration:Cb,isLiteral:Cx,isMemberExpression:CS,isMethod:Cv,isModuleSpecifier:CT,isNullLiteral:CE,isObjectExpression:Ck,isProperty:Cw,isPureish:CA,isRegExpLiteral:CP,isSuper:CC,isTaggedTemplateExpression:CI,isTemplateLiteral:C_,isThisExpression:CN,isUnaryExpression:CL,isVariableDeclaration:CO,expressionStatement:CD,matchesPattern:CM,toIdentifier:CF,variableDeclaration:Cj,variableDeclarator:CB,isObjectProperty:CR,isTopicReference:C$,isMetaProperty:CU,isPrivateName:CV,isExportDeclaration:Cq,sequenceExpression:CK}=e5;function CJ(e){"Program"===e.path.type&&(e.referencesSet=new Set,e.uidsSet=new Set),e.bindings=Object.create(null),e.globals=Object.create(null)}var Cz={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){ic(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:t}=e;(t.getFunctionParent()||t.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Cd(t))return;let n=t.declaration;if(Ch(n)||Cy(n)){let t=n.id;if(!t)return;let i=r.getBinding(t.name);i?.reference(e)}else if(CO(n))for(let t of n.declarations)for(let n of Object.keys(Cs(t))){let t=r.getBinding(n);t?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let t=e.node.id.name;e.scope.bindings[t]=e.scope.parent.getBinding(t)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){for(let t of e.get("params"))e.scope.registerBinding("param",t);e.isFunctionExpression()&&e.node.id&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},CW=0,CX=class e{uid;path;block;inited;labels;bindings;referencesSet;globals;uidsSet;data;crawling;constructor(e){let{node:t}=e,r=P8.get(t);if(r?.path===e)return r;P8.set(t,this),this.uid=CW++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1}static globals=[...Pu,...Pc];static contextVariables=["arguments","undefined","Infinity","NaN"];get parent(){let e,t=this.path;do{let r="key"===t.key||"decorators"===t.listKey;t=t.parentPath,r&&t.isMethod()&&(t=t.parentPath),t?.isScope()&&(e=t)}while(t&&!e)return e?.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let t=this.generateUidIdentifier(e);return this.push({id:t}),Ci(t)}generateUidIdentifier(e){return Ca(this.generateUid(e))}generateUid(e="temp"){let t;e=CF(e).replace(/^_+/,"").replace(/\d+$/g,"");let r=0;do t=`_${e}`,r>=11?t+=r-1:r>=9?t+=r-9:r>=1&&(t+=r+1),r++;while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t))let n=this.getProgramParent();return n.referencesSet.add(t),n.uidsSet.add(t),t}generateUidBasedOnNode(e,t){let r=[];!function e(t,r){switch(t?.type){default:if(Cb(t)||Cq(t))if((Cd(t)||Cm(t)||Cb(t))&&t.source)e(t.source,r);else if((Cm(t)||Cb(t))&&t.specifiers?.length)for(let n of t.specifiers)e(n,r);else(Cf(t)||Cm(t))&&t.declaration&&e(t.declaration,r);else CT(t)?e(t.local,r):!Cx(t)||CE(t)||CP(t)||C_(t)||r.push(t.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":e(t.object,r),e(t.property,r);break;case"Identifier":case"JSXIdentifier":r.push(t.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":e(t.callee,r);break;case"ObjectExpression":case"ObjectPattern":for(let n of t.properties)e(n,r);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":e(t.argument,r);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":e(t.key,r);break;case"ThisExpression":r.push("this");break;case"Super":r.push("super");break;case"Import":case"ImportExpression":r.push("import");break;case"DoExpression":r.push("do");break;case"YieldExpression":r.push("yield"),e(t.argument,r);break;case"AwaitExpression":r.push("await"),e(t.argument,r);break;case"AssignmentExpression":e(t.left,r);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":e(t.id,r);break;case"ParenthesizedExpression":e(t.expression,r);break;case"MetaProperty":e(t.meta,r),e(t.property,r);break;case"JSXElement":e(t.openingElement,r);break;case"JSXOpeningElement":e(t.name,r);break;case"JSXFragment":e(t.openingFragment,r);break;case"JSXOpeningFragment":r.push("Fragment");break;case"JSXNamespacedName":e(t.namespace,r),e(t.name,r)}}(e,r);let n=r.join("$");return n=n.replace(/^_/,"")||t||"ref",this.generateUid(n.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return Ca(this.generateUidBasedOnNode(e,t))}isStatic(e){if(CN(e)||CC(e)||C$(e))return!0;if(Cg(e)){let t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;{let r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),Ci(r))}}checkBlockScopedCollisions(e,t,r){if("param"!==t&&"local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t))throw Error(`Duplicate declaration '${r}'`,TypeError)}rename(e,t){let r=this.getBinding(e);r&&(t||=this.generateUidIdentifier(e).name,new P3(r,e,t).rename())}dump(){let e="-".repeat(60);console.log(e);let t=this;do for(let e of(console.log("#",t.block.type),Object.keys(t.bindings))){let r=t.bindings[e];console.log(" -",e,{constant:r.constant,references:r.references,violations:r.constantViolations.length,kind:r.kind})}while(t=t.parent)console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let t=e.get("declarations"),{kind:r}=e.node;for(let e of t)this.registerBinding("using"===r||"await using"===r?"const":r,e)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let t="type"===e.node.importKind||"typeof"===e.node.importKind;for(let r of e.get("specifiers")){let e=t||r.isImportSpecifier()&&("type"===r.node.importKind||"typeof"===r.node.importKind);this.registerBinding(e?"unknown":"module",r)}}else if(e.isExportDeclaration()){let t=e.get("declaration");(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())&&this.registerDeclaration(t)}else this.registerBinding("unknown",e)}registerConstantViolation(e){for(let t of Object.keys(e.getAssignmentIdentifiers()))this.getBinding(t)?.reassign(e)}registerBinding(e,t,r=t){if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){for(let r of t.get("declarations"))this.registerBinding(e,r);return}let n=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(let t of Object.keys(i))for(let s of(n.referencesSet.add(t),i[t])){let n=this.getOwnBinding(t);if(n){if(n.identifier===s)continue;this.checkBlockScopedCollisions(n,e,t,s)}n?n.reassign(r):this.bindings[t]=new P5({identifier:s,scope:this,path:r,kind:e})}}addGlobal(e){this.globals[e.name]=e}hasUid(e){return this.getProgramParent().uidsSet.has(e)}hasGlobal(e){let t=this;do if(t.globals[e])return!0;while(t=t.parent)return!1}hasReference(e){return this.getProgramParent().referencesSet.has(e)}isPure(e,t){if(Cg(e)){let r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(CN(e)||CU(e)||C$(e)||CV(e))return!0;if(Cc(e))return!(e.superClass&&!this.isPure(e.superClass,t)||e.decorators?.length>0)&&this.isPure(e.body,t);if(Cp(e)){for(let r of e.body)if(!this.isPure(r,t))return!1;return!0}if(Cl(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);else if(Co(e)){for(let r of e.elements)if(null!==r&&!this.isPure(r,t))return!1;return!0}else if(Ck(e)){for(let r of e.properties)if(!this.isPure(r,t))return!1;return!0}else if(Cv(e))return!(e.computed&&!this.isPure(e.key,t)||e.decorators?.length>0);else if(Cw(e))return!(e.computed&&!this.isPure(e.key,t)||e.decorators?.length>0||(CR(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t));else if(CL(e))return this.isPure(e.argument,t);else if(C_(e)){for(let r of e.expressions)if(!this.isPure(r,t))return!1;return!0}else if(CI(e))return CM(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(CS(e))return!e.computed&&Cg(e.object)&&"Symbol"===e.object.name&&Cg(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0});else if(Cu(e))return CM(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&tV(e.arguments[0]);else return CA(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{let r=t.data[e];if(null!=r)return r}while(t=t.parent)}removeData(e){let t=this;do null!=t.data[e]&&(t.data[e]=null);while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let e=this.path;CJ(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent)let r=t,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,el||=Le.visitors.merge([{Scope(e){CJ(e.scope)}},Cz]),"Program"!==e.type){let t=el[e.type];if(t)for(let r of t.enter)r.call(n,e,n)}let i=PJ(el);if(i.enter||i.exit)throw Error("Should not be used with enter/exit visitors.");for(let t of(function e(t,r,s,a,o,l,u,c){if(!s)return;let p=c||NG.get({hub:u,parentPath:t,parent:r,container:a,listKey:l,key:o});NQ.call(p);let h=i[s.type];if(h?.enter)for(let e of h.enter)e.call(n,p,n);if(p.shouldSkip)return;let d=P4[s.type];if(d?.length){for(let t of d){let r=s[t];if(r)if(Array.isArray(r))for(let n=0;n<r.length;n++)e(p,s,r[n],r,n,t);else e(p,s,r,s,t,null)}if(h?.exit)for(let e of h.exit)e.call(n,p,n)}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e),this.crawling=!1,n.assignments)){let e=t.getAssignmentIdentifiers();for(let n of Object.keys(e))t.scope.getBinding(n)||r.addGlobal(e[n]);t.scope.registerConstantViolation(t)}for(let e of n.references){let t=e.scope.getBinding(e.node.name);t?t.reference(e):r.addGlobal(e.node)}for(let e of n.constantViolations)e.scope.registerConstantViolation(e)}push(e){var t;let r=this.path;r.isPattern()?r=this.getPatternParent().path:r.isBlockStatement()||r.isProgram()||(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:n,unique:i,kind:s="var",id:a}=e;if(!n&&!i&&("var"===s||"let"===s)&&((t=r).isFunctionExpression()&&!t.node.id||t.isArrowFunctionExpression())&&Cu(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&Cg(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=null==e._blockHoist?2:e._blockHoist,l=`declaration:${s}:${o}`,u=!i&&r.getData(l);if(!u){let e=Cj(s,[]);e._blockHoist=o,[u]=r.unshiftContainer("body",[e]),i||r.setData(l,u)}let c=CB(a,n),p=u.node.declarations.push(c);r.scope.registerBinding(s,u.get("declarations")[p-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent)throw Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent)return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent)throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent)throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),t=this;do{for(let r of Object.keys(t.bindings))r in e==!1&&(e[r]=t.bindings[r]);t=t.parent}while(t)return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t,r=this;do{let n=r.getOwnBinding(e);if(n){if(!t?.isPattern()||"param"===n.kind||"local"===n.kind)return n}else if(!n&&"arguments"===e&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;t=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){return this.getBinding(e)?.identifier}getOwnBindingIdentifier(e){let t=this.bindings[e];return t?.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(t,r){let n,i,s;if(!t)return!1;"object"==typeof r?(n=r.noGlobals,i=r.noUids,s=r.upToScope):"boolean"==typeof r&&(n=r);let a=this;do{if(s===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent)return!!(!i&&this.hasUid(t)||!n&&e.globals.includes(t)||!n&&e.contextVariables.includes(t))}parentHasBinding(e,t){return this.parent?.hasBinding(e,t)}moveBindingTo(e,t){let r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){this.getBinding(e)?.scope.removeOwnBinding(e),this.getProgramParent().uidsSet.delete(e)}hoistVariables(e=e=>this.push({id:e})){this.crawl();let t=new Set;for(let r of Object.keys(this.bindings)){let n,i=this.bindings[r];if(!i)continue;let{path:s}=i;if(!s.isVariableDeclarator())continue;let{parent:a,parentPath:o}=s;if("var"!==a.kind||t.has(a))continue;t.add(s.parent);let l=[];for(let t of a.declarations)for(let r of(n??=t.id,t.init&&l.push(Cn("=",t.id,t.init)),Object.keys(Cs(t,!1,!0,!0))))e(Ca(r),null!=t.init);if(o.parentPath.isForXStatement({left:a}))o.replaceWith(n);else if(0===l.length)o.remove();else{let e=1===l.length?l[0]:CK(l);o.parentPath.isForStatement({init:a})?o.replaceWith(e):o.replaceWith(CD(e))}}}},{VISITOR_KEYS:CH}=e5,{createFlowUnionType:CG,createTSUnionType:CY,isFlowType:CQ,isTSType:CZ}=e5;function C0(e){return e.every(e=>CQ(e))?CG(e):e.every(e=>CZ(e))?CY(e):void 0}var{BOOLEAN_NUMBER_BINARY_OPERATORS:C1,createTypeAnnotationBasedOnTypeof:C2,numberTypeAnnotation:C3,voidTypeAnnotation:C4}=e5;function C5(e,t,r){let n=e.constantViolations.slice();return n.unshift(e.path),n.filter(e=>{let n=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===n&&r.push(e),"before"===n})}var{BOOLEAN_BINARY_OPERATORS:C6,BOOLEAN_UNARY_OPERATORS:C8,NUMBER_BINARY_OPERATORS:C9,NUMBER_UNARY_OPERATORS:C7,STRING_UNARY_OPERATORS:Ie,anyTypeAnnotation:It,arrayTypeAnnotation:Ir,booleanTypeAnnotation:In,buildMatchMemberExpression:Ii,genericTypeAnnotation:Is,identifier:Ia,nullLiteralTypeAnnotation:Io,numberTypeAnnotation:Il,stringTypeAnnotation:Iu,tupleTypeAnnotation:Ic,unionTypeAnnotation:Ip,voidTypeAnnotation:Ih,isIdentifier:Id}=e5;function If(e){return e.typeAnnotation}function Im(e){return e.typeAnnotation}function Iy(){return Is(Ia("Array"))}function Ig(){return Iy()}function Ib(){return Is(Ia("Function"))}If.validParent=!0,Im.validParent=!0,Ig.validParent=!0;var Ix=Ii("Array.from"),IS=Ii("Object.keys"),Iv=Ii("Object.values"),IT=Ii("Object.entries");function IE(e){if((e=e.resolve()).isFunction()){let{node:t}=e;if(t.async)if(t.generator)return Is(Ia("AsyncIterator"));else return Is(Ia("Promise"));if(t.generator)return Is(Ia("Iterator"));if(e.node.returnType)return e.node.returnType}}var Ik=Object.defineProperty({__proto__:null,ArrayExpression:Iy,ArrowFunctionExpression:Ib,AssignmentExpression:function(){return this.get("right").getTypeAnnotation()},BinaryExpression:function(e){let t=e.operator;if(C9.includes(t))return Il();if(C6.includes(t))return In();if("+"===t){let e=this.get("right"),t=this.get("left");return t.isBaseType("number")&&e.isBaseType("number")?Il():t.isBaseType("string")||e.isBaseType("string")?Iu():Ip([Iu(),Il()])}},BooleanLiteral:function(){return In()},CallExpression:function(){let{callee:e}=this.node;return IS(e)?Ir(Iu()):Ix(e)||Iv(e)||Id(e,{name:"Array"})?Ir(It()):IT(e)?Ir(Ic([Iu(),It()])):IE(this.get("callee"))},ClassDeclaration:Ib,ClassExpression:Ib,ConditionalExpression:function(){return C0([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},FunctionDeclaration:Ib,FunctionExpression:Ib,Identifier:function(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)if(t.identifier.typeAnnotation)return t.identifier.typeAnnotation;else return function(e,t,r){let n=[],i=[],s=C5(e,t,i),a=function e(t,r,n){let i=function(e,t,r){let n;for(;n=t.parentPath;){if(n.isIfStatement()||n.isConditionalExpression()){if("test"===t.key)return;return n}if(n.isFunction()&&(null==r||n.parentPath.scope.getBinding(r)!==e))return;t=n}}(t,r,n);if(!i)return;let s=[i.get("test")],a=[];for(let e=0;e<s.length;e++){let t=s[e];if(t.isLogicalExpression())"&&"===t.node.operator&&(s.push(t.get("left")),s.push(t.get("right")));else if(t.isBinaryExpression()){let e=function(e,t){let r,n,i,s=t.node.operator,a=t.get("right").resolve(),o=t.get("left").resolve();if(o.isIdentifier({name:e})?r=a:a.isIdentifier({name:e})&&(r=o),r)return"==="===s?r.getTypeAnnotation():C1.includes(s)?C3():void 0;if("==="!==s&&"=="!==s||(o.isUnaryExpression({operator:"typeof"})?(n=o,i=a):a.isUnaryExpression({operator:"typeof"})&&(n=a,i=o),!n||!n.get("argument").isIdentifier({name:e})||!(i=i.resolve()).isLiteral()))return;let l=i.node.value;if("string"==typeof l)return C2(l)}(n,t);e&&a.push(e)}}return a.length?{typeAnnotation:C0(a),ifStatement:i}:e(t,i,n)}(e,t,r);if(a){let t=C5(e,a.ifStatement);s=s.filter(e=>!t.includes(e)),n.push(a.typeAnnotation)}if(s.length)for(let e of(s.push(...i),s))n.push(e.getTypeAnnotation());if(n.length)return C0(n)}(t,this,e.name);return"undefined"===e.name?C4():"NaN"===e.name||"Infinity"===e.name?C3():void e.name},LogicalExpression:function(){return C0([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},NewExpression:function(e){if("Identifier"===e.callee.type)return Is(e.callee)},NullLiteral:function(){return Io()},NumericLiteral:function(){return Il()},ObjectExpression:function(){return Is(Ia("Object"))},ParenthesizedExpression:function(){return this.get("expression").getTypeAnnotation()},RegExpLiteral:function(){return Is(Ia("RegExp"))},RestElement:Ig,SequenceExpression:function(){return this.get("expressions").pop().getTypeAnnotation()},StringLiteral:function(){return Iu()},TSAsExpression:Im,TSNonNullExpression:function(){return this.get("expression").getTypeAnnotation()},TaggedTemplateExpression:function(){return IE(this.get("tag"))},TemplateLiteral:function(){return Iu()},TypeCastExpression:If,UnaryExpression:function(e){let t=e.operator;return"void"===t?Ih():C7.includes(t)?Il():Ie.includes(t)?Iu():C8.includes(t)?In():void 0},UpdateExpression:function(e){let t=e.operator;if("++"===t||"--"===t)return Il()},VariableDeclarator:function(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}},Symbol.toStringTag,{value:"Module"}),{anyTypeAnnotation:Iw,isAnyTypeAnnotation:IA,isArrayTypeAnnotation:IP,isBooleanTypeAnnotation:IC,isEmptyTypeAnnotation:II,isFlowBaseAnnotation:I_,isGenericTypeAnnotation:IN,isIdentifier:IL,isMixedTypeAnnotation:IO,isNumberTypeAnnotation:ID,isStringTypeAnnotation:IM,isTSArrayType:IF,isTSTypeAnnotation:Ij,isTSTypeReference:IB,isTupleTypeAnnotation:IR,isTypeAnnotation:I$,isUnionTypeAnnotation:IU,isVoidTypeAnnotation:IV,stringTypeAnnotation:Iq,voidTypeAnnotation:IK}=e5,IJ=new WeakSet;function Iz(){let e=this.node;if(!e)if(!("init"===this.key&&this.parentPath.isVariableDeclarator()))return;else{let e=this.parentPath.parentPath,t=e.parentPath;return"left"===e.key&&t.isForInStatement()?Iq():"left"===e.key&&t.isForOfStatement()?Iw():IK()}if(e.typeAnnotation)return e.typeAnnotation;if(!IJ.has(e)){IJ.add(e);try{let t=Ik[e.type];if(t)return t.call(this,e);if(t=Ik[this.parentPath.type],t?.validParent)return this.parentPath.getTypeAnnotation()}finally{IJ.delete(e)}}}function IW(e,t,r){if("string"===e)return IM(t);if("number"===e)return ID(t);if("boolean"===e)return IC(t);if("any"===e)return IA(t);if("mixed"===e)return IO(t);else if("empty"===e)return II(t);else if("void"===e)return IV(t);else if(r)return!1;else throw Error(`Unknown base type ${e}`)}var IX=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&2===t.node.expressions.length)return t.replaceWith(t.node.expressions[+(0===e.key)]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}];function IH(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}var{arrowFunctionExpression:IG,assertExpression:IY,assignmentExpression:IQ,blockStatement:IZ,callExpression:I0,cloneNode:I1,expressionStatement:I2,isAssignmentExpression:I3,isCallExpression:I4,isExportNamedDeclaration:I5,isExpression:I6,isIdentifier:I8,isSequenceExpression:I9,isSuper:I7,thisExpression:_e}=e5;function _t(e,t){_s.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){let t=e+n,i=this.getSibling(t);r.push(i),this.context?.queue&&N2.call(i,this.context)}let n=N5.call(this);for(let e of r)for(let t of(NZ.call(e),e.debug("Inserted."),n))t.maybeQueue(e,!0);return r}function _r(e){return _t.call(this,this.key,e)}function _n(e){return _t.call(this,this.key+1,e)}var _i=e=>e[e.length-1];function _s(e,t){if(!this.parent)return;let r=Ce(this);if(r)for(let[,n]of r)"number"==typeof n.key&&n.container===this.container&&n.key>=e&&(n.key+=t)}function _a(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r,n=e[t];if(n?"object"!=typeof n?r="contains a non-object node":n.type?n instanceof NG&&(r="has a NodePath when it expected a raw object"):r="without a type":r="has falsy node",r){let e=Array.isArray(n)?"array":typeof n;throw Error(`Node list ${r} with the index of ${t} and type of ${e}`)}}return e}var{FUNCTION_TYPES:_o,arrowFunctionExpression:_l,assignmentExpression:_u,awaitExpression:_c,blockStatement:_p,buildUndefinedNode:_h,callExpression:_d,cloneNode:_f,conditionalExpression:_m,expressionStatement:_y,getBindingIdentifiers:_g,identifier:_b,inheritLeadingComments:_x,inheritTrailingComments:_S,inheritsComments:_v,isBlockStatement:_T,isEmptyStatement:_E,isExpression:_k,isExpressionStatement:_w,isIfStatement:_A,isProgram:_P,isStatement:_C,isVariableDeclaration:_I,removeComments:__,returnStatement:_N,sequenceExpression:_L,validate:_O,yieldExpression:_D}=e5;function _M(e){if(!this.container)throw ReferenceError("Container is falsy");this.inList?_O(this.parent,this.key,[e]):_O(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),Ce(this)?.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}var _F=["Number","String","Math"],_j=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","btoa","atob"],_B=["random"];function _R(e){return _F.includes(e)}function _$(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var _U=new Map([["undefined",void 0],["Infinity",1/0],["NaN",0/0]]);function _V(e,t){let{node:r}=e,{seen:n}=t;if(n.has(r)){let i=n.get(r);return i.resolved?i.value:void _$(e,t)}{let i={resolved:!1};n.set(r,i);let s=function(e,t){if(t.confident){if(e.isSequenceExpression()){let r=e.get("expressions");return _V(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return _q(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let r=e.get("tag.object"),{node:{name:n}}=r,i=e.get("tag.property");if(r.isIdentifier()&&"String"===n&&!e.scope.getBinding(n)&&i.isIdentifier()&&"raw"===i.node.name)return _q(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let r=_V(e.get("test"),t);return t.confident?r?_V(e.get("consequent"),t):_V(e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return _V(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let r=e.get("property"),n=e.get("object");if(n.isLiteral()){let i=n.node.value,s=typeof i,a=null;if(e.node.computed){if(a=_V(r,t),!t.confident)return}else r.isIdentifier()&&(a=r.node.name);if(("number"===s||"string"===s)&&null!=a&&("number"==typeof a||"string"==typeof a))return i[a]}}if(e.isReferencedIdentifier()){let r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end)return void _$(r.path,t);let n=r.path.scope;if("var"===r.kind&&n!==r.scope){let i=!n.path.parentPath.isBlockStatement();for(let s=n.parent;s;s=s.parent){if(s===e.scope){if(i)return void _$(r.path,t);break}s.path.parentPath?.isBlockStatement()&&(i=!0)}}if(r.hasValue)return r.value}let n=e.node.name;if(_U.has(n))return r?void _$(r.path,t):_U.get(n);if(!r)return void _$(e,t);let i=r.path;if(!i.isVariableDeclarator())return void _$(i,t);let s=i.get("init"),a=_V(s,t);return"object"==typeof a&&null!==a&&r.references>1?void _$(s,t):a}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;let r=e.get("argument");if("typeof"===e.node.operator&&(r.isFunction()||r.isClass()))return"function";let n=_V(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!n;case"+":return+n;case"-":return-n;case"~":return~n;case"typeof":return typeof n}}if(e.isArrayExpression()){let r=[];for(let n of e.get("elements")){let e=n.evaluate();if(!e.confident)return void _$(e.deopt,t);r.push(e.value)}return r}if(e.isObjectExpression()){let r={};for(let n of e.get("properties")){let e;if(n.isObjectMethod()||n.isSpreadElement())return void _$(n,t);let i=n.get("key");if(n.node.computed){if(!(e=i.evaluate()).confident)return void _$(e.deopt,t);e=e.value}else e=i.isIdentifier()?i.node.name:i.node.value;let s=n.get("value").evaluate();if(!s.confident)return void _$(s.deopt,t);s=s.value,r[e]=s}return r}if(e.isLogicalExpression()){let r=t.confident,n=_V(e.get("left"),t),i=t.confident;t.confident=r;let s=_V(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":if(t.confident=i&&(!!n||a),!t.confident)return;return n||s;case"&&":if(t.confident=i&&(!n||a),!t.confident)return;return n&&s;case"??":if(t.confident=i&&(null!=n||a),!t.confident)return;return n??s}}if(e.isBinaryExpression()){let r=_V(e.get("left"),t);if(!t.confident)return;let n=_V(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-n;case"+":return r+n;case"/":return r/n;case"*":return r*n;case"%":return r%n;case"**":return r**n;case"<":return r<n;case">":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<<n;case">>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){var r,n;let i,s,a=e.get("callee");if(a.isIdentifier()&&!e.scope.getBinding(a.node.name)&&(_R(a.node.name)||(r=a.node.name,_j.includes(r)))&&(s=global[a.node.name]),a.isMemberExpression()){let t=a.get("object"),r=a.get("property");if(t.isIdentifier()&&r.isIdentifier()&&_R(t.node.name)&&(n=r.node.name,!_B.includes(n))&&!e.scope.getBinding(t.node.name)){i=global[t.node.name];let e=r.node.name;Object.hasOwn(i,e)&&(s=i[e])}if(t.isLiteral()&&r.isIdentifier()){let e=typeof t.node.value;("string"===e||"number"===e)&&(s=(i=t.node.value)[r.node.name])}}if(s){let r=e.get("arguments").map(e=>_V(e,t));if(!t.confident)return;return s.apply(i,r)}}_$(e,t)}}(e,t);return t.confident&&(i.resolved=!0,i.value=s),s}}function _q(e,t,r,n=!1){let i="",s=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let e of t){if(!r.confident)break;i+=n?e.value.raw:e.value.cooked;let t=a[s++];t&&(i+=String(_V(t,r)))}if(r.confident)return i}var{arrowFunctionExpression:_K,assignmentExpression:_J,binaryExpression:_z,blockStatement:_W,callExpression:_X,conditionalExpression:_H,expressionStatement:_G,identifier:_Y,jsxIdentifier:_Q,logicalExpression:_Z,LOGICAL_OPERATORS:_0,memberExpression:_1,metaProperty:_2,numericLiteral:_3,objectExpression:_4,restElement:_5,returnStatement:_6,sequenceExpression:_8,spreadElement:_9,stringLiteral:_7,super:Ne,thisExpression:Nt,toExpression:Nr,unaryExpression:Nn,toBindingIdentifierName:Ni,isFunction:Ns,isAssignmentPattern:Na,isRestElement:No,getFunctionName:Nl,cloneNode:Nu,variableDeclaration:Nc,variableDeclarator:Np,exportNamedDeclaration:Nh,exportSpecifier:Nd,inherits:Nf,buildUndefinedNode:Nm}=e5,Ny=P0({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function Ng(e,t=!0,r=!0,n=!0){var i,s,a;let o,l,u,c,p,h,d,f=e.findParent(e=>e.isArrowFunctionExpression()?(h??=e,!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1})),m=f.isClassMethod({kind:"constructor"});if(f.isClassProperty()||f.isClassPrivateProperty())if(h)f=h;else if(r)e=(f=e.replaceWith(_X(_K([],Nr(e.node)),[]))[0].get("callee")).get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:y,argumentsPaths:g,newTargetPaths:b,superProps:x,superCalls:S}=(o=[],l=[],u=[],c=[],p=[],e.traverse(Nv,{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:c,superCalls:p}),{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:c,superCalls:p});if(m&&S.length>0){if(!r)throw S[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!n)throw S[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let e=[];f.traverse(Ny,{allSuperCalls:e});let t=NS(i=f,"supercall",()=>{let e=i.scope.generateUidIdentifier("args");return _K([_5(e)],_X(Ne(),[_9(_Y(e.name))]))});e.forEach(e=>{let r=_Y(t);r.loc=e.node.callee.loc,e.get("callee").replaceWith(r)})}if(g.length>0){let e=NS(f,"arguments",()=>f.scope.path.isProgram()?_H(_z("===",Nn("typeof",_Y("arguments")),_7("undefined")),Nm(),_Y("arguments")):_Y("arguments"));g.forEach(t=>{let r=_Y(e);r.loc=t.node.loc,t.replaceWith(r)})}if(b.length>0){let e=NS(f,"newtarget",()=>_2(_Y("new"),_Y("target")));b.forEach(t=>{let r=_Y(e);r.loc=t.node.loc,t.replaceWith(r)})}if(x.length>0){if(!r)throw x[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");x.reduce((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){let r=e.parentPath,n=r.node.operator.slice(0,-1),i=r.node.right,s=_0.includes(n);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(_1(o,_J("=",a,l),!0)),r.get("right").replaceWith(t(s?"=":n,_1(o,_Y(a.name),!0),i))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(_1(a,o)),r.get("right").replaceWith(t(s?"=":n,_1(a,_Y(o.name)),i))}return s?r.replaceWith(_Z(n,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){let t=e.parentPath,r=e.scope.generateDeclaredUidIdentifier("tmp"),n=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[_J("=",r,_1(e.node.object,n?_J("=",n,e.node.property):e.node.property,e.node.computed)),_J("=",_1(e.node.object,n?_Y(n.name):e.node.property,e.node.computed),_z(e.parentPath.node.operator[0],_Y(r.name),_3(1)))];e.parentPath.node.prefix||i.push(_Y(r.name));let s=t.replaceWith(_8(i))[0];return[s.get("expressions.0.right"),s.get("expressions.1.left")]}return[e];function t(e,t,r){return"="===e?_J("=",t,r):_z(e,t,r)}}(t)),[]).forEach(e=>{var t,r,n;let i=e.node.computed?"":e.get("property").node.name,s=e.parentPath,a=s.isAssignmentExpression({left:e.node}),o=s.isCallExpression({callee:e.node}),l=s.isTaggedTemplateExpression({tag:e.node}),u=(t=f,r=a,n=i,NS(t,`superprop_${r?"set":"get"}:${n||""}`,()=>{let e,i=[];if(n)e=_1(Ne(),_Y(n));else{let r=t.scope.generateUidIdentifier("prop");i.unshift(r),e=_1(Ne(),_Y(r.name),!0)}if(r){let r=t.scope.generateUidIdentifier("value");i.push(r),e=_J("=",e,_Y(r.name))}return _K(i,e)})),c=[];if(e.node.computed&&c.push(e.get("property").node),a){let e=s.node.right;c.push(e)}let p=_X(_Y(u),c);o?(s.unshiftContainer("arguments",Nt()),e.replaceWith(_1(p,_Y("call"))),y.push(s.get("arguments.0"))):a?s.replaceWith(p):l?y.push(e.replaceWith(_X(_1(p,_Y("bind"),!1),[Nt()]))[0].get("arguments.0")):e.replaceWith(p)})}return(y.length>0||!t)&&(s=f,a=m,d=NS(s,"this",e=>{if(!a||!Nb(s))return Nt();s.traverse(Nx,{supers:new WeakSet,thisBinding:e})}),(t||m&&Nb(f))&&(y.forEach(e=>{let t=e.isJSX()?_Q(d):_Y(d);t.loc=e.node.loc,e.replaceWith(t)}),t||(d=null))),{thisBinding:d,fnPath:e}}function Nb(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var Nx=P0({CallExpression(e,{supers:t,thisBinding:r}){!e.get("callee").isSuper()||t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,_J("=",_Y(r),_Y("this"))]))}});function NS(e,t,r){let n="binding:"+t,i=e.getData(n);if(!i){let s=e.scope.generateUidIdentifier(t);i=s.name,e.setData(n,i),e.scope.push({id:s,init:r(i)})}return i}var Nv=P0({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){"this"!==e.node.name||(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&t.push(e)},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments"))return void r.rename("arguments");if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent)t.push(e)},MetaProperty(e,{newTargetPaths:t}){!e.get("meta").isIdentifier({name:"new"})||e.get("property").isIdentifier({name:"target"})&&t.push(e)}}),{STATEMENT_OR_BLOCK_KEYS:NT,VISITOR_KEYS:NE,isBlockStatement:Nk,isExpression:Nw,isIdentifier:NA,isLiteral:NP,isStringLiteral:NC,isType:NI,matchesPattern:N_,toComputedKey:NN}=e5;function NL(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function NO(e,t){for(let r=0;r<t;r++){let t=e[r];if(function(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}(t.parent.type,t.parentKey))return!0}return!1}var ND=Symbol(),{getAssignmentIdentifiers:NM,getBindingIdentifiers:NF,getOuterBindingIdentifiers:Nj,buildUndefinedNode:NB}=e5;function NR(e,t,r){return e&&t.push(...NV(e,r)),t}function N$(e,t){e.forEach(e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(NB()):e.path.remove())})}function NU(e,t){let r=[];if(t.canHaveBreak){let n=[];for(let i=0;i<e.length;i++){let s=e[i],a={...t,inCaseClause:!1};s.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=NV(s,a);if(o.length>0&&o.every(e=>1===e.type)){n.length>0&&o.every(e=>e.path.isBreakStatement({label:null}))?(n.forEach(e=>{e.type=1}),r.push(...n),n.some(e=>e.path.isDeclaration())&&(r.push(...o),t.shouldPreserveBreak||N$(o,!0)),t.shouldPreserveBreak||N$(o,!1)):(r.push(...o),t.shouldPopulateBreak||t.shouldPreserveBreak||N$(o,!0));break}if(i===e.length-1)r.push(...o);else{n=[];for(let e=0;e<o.length;e++){let t=o[e];1===t.type&&r.push(t),0===t.type&&n.push(t)}}}}else if(e.length)for(let n=e.length-1;n>=0;n--){let i=NV(e[n],t);if(i.length>1||1===i.length&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){r.push(...i);break}}return r}function NV(e,t){let r=[];if(e.isIfStatement())r=NR(e.get("consequent"),r,t),r=NR(e.get("alternate"),r,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return NR(e.get("body"),r,t);else if(e.isProgram()||e.isBlockStatement())return NU(e.get("body"),t);else if(e.isFunction())return NV(e.get("body"),t);else if(e.isTryStatement())r=NR(e.get("block"),r,t),r=NR(e.get("handler"),r,t);else{if(e.isCatchClause())return NR(e.get("body"),r,t);if(e.isSwitchStatement())return function(e,t,r){let n=[];for(let i=0;i<e.length;i++){let s=NV(e[i],r),a=[],o=[];for(let e of s)0===e.type&&a.push(e),1===e.type&&o.push(e);a.length&&(n=a),t.push(...o)}return t.push(...n),t}(e.get("cases"),r,t);if(e.isSwitchCase())return NU(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push({type:1,path:e}):r.push({type:0,path:e})}return r}function Nq(e,t){let r=this.node,n=r[e];return Array.isArray(n)?n.map((i,s)=>NG.get({listKey:e,parentPath:this,parent:r,container:n,key:s}).setContext(t)):NG.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function NK(e,t){let r=this;for(let n of e)r="."===n?r.parentPath:Array.isArray(r)?r[n]:r.get(n,t);return r}var{addComment:NJ,addComments:Nz}=e5;function NW(e,t){if(!t?.length)return e;let r=new Set(t);return e.filter(e=>!r.has(e))}var{validate:NX}=e5,NH=(Object.assign({useColors:void 0,formatArgs:function(){},formatters:{o(e){return this.inspectOpts.colors=this.useColors,inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},O(e){return this.inspectOpts.colors=this.useColors,inspect(e,this.inspectOpts)}},inspectOpts:{},log:function(...e){eY.stderr.write(`${formatWithOptions(this.inspectOpts,...e)}
32
+ `)},humanize:function(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`}},{color:function(e,t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return e[Math.abs(r)%e.length]}([],"babel")},void 0),{enabled:!1}),NG=class e{constructor(e,t){this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}contexts=[];state=null;_traverseFlags=0;get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}skipKeys=null;parentPath=null;container=null;listKey=null;key=null;node=null;type=null;_store=null;static get({hub:t,parentPath:r,parent:n,container:i,listKey:s,key:a}){if(!t&&r&&(t=r.hub),!n)throw Error("To get a node path the parent needs to exist");let o=i[a],l=Ct(n,r),u=l.get(o);return!u&&(u=new e(t,n),o&&l.set(o,u)),N3.call(u,r,i,s,a),u}getScope(e){return this.isScope()?new CX(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));let r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}hasNode(){return null!=this.node}buildCodeFrameError(e,t=SyntaxError){return this.hub.buildError(this.node,e,t)}traverse(e,t){Le(this.node,e,this.scope,t,this)}set(e,t){NX(this.node,e,t),this.node[e]=t}getPathLocation(){let e=[],t=this;do{let r=t.key;t.inList&&(r=`${t.listKey}[${r}]`),e.unshift(r)}while(t=t.parentPath)return e.join(".")}debug(e){NH.enabled&&NH(`${this.getPathLocation()} ${this.type}: ${e}`)}toString(){return Ps(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}};for(let e of(Object.assign(NG.prototype,{findParent:function(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null},find:function(e){let t=this;do if(e(t))return t;while(t=t.parentPath)return null},getFunctionParent:function(){return this.findParent(e=>e.isFunction())},getStatementParent:function(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e)if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e},getEarliestCommonAncestorFrom:function(e){return this.getDeepestCommonAncestorFrom(e,function(e,t,r){let n,i=CH[e.type];for(let e of r){let r=e[t+1];if(!n||r.listKey&&n.listKey===r.listKey&&r.key<n.key){n=r;continue}i.indexOf(n.parentKey)>i.indexOf(r.parentKey)&&(n=r)}return n})},getDeepestCommonAncestorFrom:function(e,t){let r,n;if(!e.length)return this;if(1===e.length)return e[0];let i=1/0,s=e.map(e=>{let t=[];do t.unshift(e);while((e=e.parentPath)&&e!==this)return t.length<i&&(i=t.length),t}),a=s[0];i:for(let e=0;e<i;e++){let t=a[e];for(let r of s)if(r[e]!==t)break i;r=e,n=t}if(n)if(t)return t(n,r,s);else return n;throw Error("Couldn't find intersection")},getAncestry:function(){let e=this,t=[];do t.push(e);while(e=e.parentPath)return t},isAncestor:function(e){return e.isDescendant(this)},isDescendant:function(e){return!!this.findParent(t=>t===e)},inType:function(...e){let t=this;for(;t;){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1},getTypeAnnotation:function(){let e=this.getData("typeAnnotation");return null!=e||((I$(e=Iz.call(this)||Iw())||Ij(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},isBaseType:function(e,t){return IW(e,this.getTypeAnnotation(),t)},couldBeBaseType:function(e){let t=this.getTypeAnnotation();if(IA(t))return!0;if(!IU(t))return IW(e,t,!0);for(let r of t.types)if(IA(r)||IW(e,r,!0))return!0;return!1},baseTypeStrictlyMatches:function(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!!(!IA(t)&&I_(t))&&r.type===t.type},isGenericType:function(e){let t=this.getTypeAnnotation();return!!("Array"===e&&(IF(t)||IP(t)||IR(t)))||IN(t)&&IL(t.id,{name:e})||IB(t)&&IL(t.typeName,{name:e})},replaceWithMultiple:function(e){N0.call(this);let t=_a.call(this,e);_x(t[0],this.node),_S(t[t.length-1],this.node),Ce(this)?.delete(this.node),this.node=this.container[this.key]=null;let r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r},replaceWithSourceString:function(e){let t;N0.call(this);try{e=`(${e})`,t=EU(e)}catch(r){let t=r.loc;throw t&&(r.message+=" - make sure this is an expression.\n"+E1(e,{start:{line:t.line,column:t.column}}),r.code="BABEL_REPLACE_SOURCE_ERROR"),r}let r=t.program.body[0].expression;return Le.removeProperties(r),this.replaceWith(r)},replaceWith:function(e){if(N0.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let t=e instanceof NG?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!_P(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if("string"==typeof t)throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&_k(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=_y(t),r="expression"),this.isNodeType("Expression")&&_C(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let n=this.node;return n&&(_v(t,n),__(n)),_M.call(this,t),this.type=t.type,NZ.call(this),this.requeue(),[r?this.get(r):this]},replaceExpressionWithStatements:function(e){N0.call(this);let t=[],r=function e(t,r){let n=[],i=!0;for(let s of t)if(_E(s)||(i=!1),_k(s))n.push(s);else if(_w(s))n.push(s.expression);else if(_I(s)){if("var"!==s.kind)return;for(let e of s.declarations){let t=_g(e);for(let e of Object.keys(t))r.push(_f(t[e]));e.init&&n.push(_u("=",e.id,e.init))}i=!0}else if(_A(s)){let t=s.consequent?e([s.consequent],r):_h(),i=s.alternate?e([s.alternate],r):_h();if(!t||!i)return;n.push(_m(s.test,t,i))}else if(_T(s)){let t=e(s.body,r);if(!t)return;n.push(t)}else{if(!_E(s))return;0===t.indexOf(s)&&(i=!0)}return(i&&n.push(_h()),1===n.length)?n[0]:_L(n)}(e,t);if(r){for(let e of t)this.scope.push({id:e});return this.replaceWith(r)[0].get("expressions")}let n=this.getFunctionParent(),i=n?.node.async,s=n?.node.generator,a=_l([],_p(e));this.replaceWith(_d(a,[]));let o=this.get("callee");for(let e of(o.get("body").scope.hoistVariables(e=>this.scope.push({id:e})),o.getCompletionRecords())){if(!e.isExpressionStatement())continue;let t=e.findParent(e=>e.isLoop());if(t){let r=t.getData("expressionReplacementReturnUid");r?r=_b(r.name):(r=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",_N(_f(r))),t.setData("expressionReplacementReturnUid",r)),e.get("expression").replaceWith(_u("=",_f(r),e.node.expression))}else e.replaceWith(_N(e.node.expression))}o.arrowFunctionToExpression();let l=i&&Le.hasType(o.node.body,"AwaitExpression",_o),u=s&&Le.hasType(o.node.body,"YieldExpression",_o);return l&&(o.set("async",!0),u||this.replaceWith(_c(this.node))),u&&(o.set("generator",!0),this.replaceWith(_D(this.node,!0))),o.get("body.body")},replaceInline:function(e){if(N0.call(this),!Array.isArray(e))return this.replaceWith(e);if(!Array.isArray(this.container))return this.replaceWithMultiple(e);{e=_a.call(this,e);let t=_n.call(this,e);return this.remove(),t}},evaluateTruthy:function(){let e=this.evaluate();if(e.confident)return!!e.value},evaluate:function(){let e={confident:!0,deoptPath:null,seen:new Map},t=_V(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}},ensureBlock:function(){let e,t,r=this.get("body"),n=r.node;if(Array.isArray(r))throw Error("Can't convert array path to a block statement");if(!n)throw Error("Can't convert node without a body");if(r.isBlockStatement())return n;let i=[],s="body";r.isStatement()?(t="body",e=0,i.push(r.node)):(s+=".body.0",this.isFunction()?(e="argument",i.push(_6(r.node))):(e="expression",i.push(_G(r.node)))),this.node.body=_W(i);let a=this.get(s);return N3.call(r,a,t?a.node[t]:a.node,t,e),this.node},unwrapFunctionEnvironment:function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");Ng(this)},arrowFunctionToExpression:function({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!0}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let n=this;r||(n=n.ensureFunctionName(!1)??n);let{thisBinding:i,fnPath:s}=Ng(n,r,e,t);if(s.ensureBlock(),s.node.type="FunctionExpression",!r){let e=i?null:s.scope.generateUidIdentifier("arrowCheckId");return e&&s.parentPath.scope.push({id:e,init:_4([])}),s.get("body").unshiftContainer("body",_G(_X(this.hub.addHelper("newArrowCheck"),[Nt(),e?_Y(e.name):_Y(i)]))),s.replaceWith(_X(_1(s.node,_Y("bind")),[e?_Y(e.name):Nt()]))[0].get("callee.object")}return s},splitExportDeclaration:function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),n=e.isScope()?e.scope.parent:e.scope,i=e.node.id,s=!1;i?r&&n.hasBinding(i.name)&&(s=!0,i=n.generateUidIdentifier(i.name)):(s=!0,i=n.generateUidIdentifier("default"),(t||r)&&(e.node.id=Nu(i)));let a=t?e.node:Nc("var",[Np(Nu(i),e.node)]),o=Nh(null,[Nd(Nu(i),_Y("default"))]);return this.insertAfter(o),this.replaceWith(a),s&&n.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let t=Nh(null,Object.keys(e.getOuterBindingIdentifiers()).map(e=>Nd(_Y(e),_Y(e))));return this.insertAfter(t),this.replaceWith(e.node),this},ensureFunctionName:function(e){var t;let r;if(this.node.id)return this;let n=Nl(this.node,this.parent);if(null==n)return this;let{name:i}=n;if(!e&&/[\uD800-\uDFFF]/.test(i)||i.startsWith("get ")||i.startsWith("set "))return null;let s=_Y(i=Ni(i.replace(/[/ ]/g,"_")));Nf(s,n.originalNode);let a={needsRename:!1,name:i},{scope:o}=this,l=o.getOwnBinding(i);if(l?"param"===l.kind&&(a.needsRename=!0):(o.parent.hasBinding(i)||o.hasGlobal(i))&&this.traverse(PJ({"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}}),a),!a.needsRename)return this.node.id=s,o.getProgramParent().referencesSet.add(s.name),this;if(o.hasBinding(s.name)&&!o.hasGlobal(s.name))return o.rename(s.name),this.node.id=s,o.getProgramParent().referencesSet.add(s.name),this;if(!Ns(this.node))return null;let u=o.generateUidIdentifier(s.name),c=[];for(let e=0,n=-1===(r=(t=this.node).params.findIndex(e=>Na(e)||No(e)))?t.params.length:r;e<n;e++)c.push(o.generateUidIdentifier("x"));let p=kM.expression.ast`
33
+ (function (${u}) {
34
+ function ${s}(${c}) {
35
+ return ${Nu(u)}.apply(this, arguments);
36
+ }
6
37
 
7
- // The require function
8
- function __webpack_require__(moduleId) {
38
+ ${Nu(s)}.toString = function () {
39
+ return ${Nu(u)}.toString();
40
+ }
9
41
 
10
- // Check if module is in cache
11
- var cachedModule = __webpack_module_cache__[moduleId];
12
- if (cachedModule !== undefined) {
13
- return cachedModule.exports;
14
- }
15
- // Create a new module (and put it into the cache)
16
- var module = (__webpack_module_cache__[moduleId] = {
17
- exports: {}
18
- });
19
- // Execute the module function
20
- __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
42
+ return ${Nu(s)};
43
+ })(${Nr(this.node)})
44
+ `;return this.replaceWith(p)[0].get("arguments.0")},matchesPattern:function(e,t){return N_(this.node,e,t)},isStatic:function(){return this.scope.isStatic(this.node)},isNodeType:function(e){return NI(this.type,e)},canHaveVariableDeclarationOrExpression:function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},canSwapBetweenExpressionAndStatement:function(e){return"body"===this.key&&!!this.parentPath.isArrowFunctionExpression()&&(this.isExpression()?Nk(e):!!this.isBlockStatement()&&Nw(e))},isCompletionRecord:function(e){let t=this,r=!0;do{let{type:n,container:i}=t;if(!r&&(t.isFunction()||"StaticBlock"===n))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression())return!0},isStatementOrBlock:function(){return!(this.parentPath.isLabeledStatement()||Nk(this.container))&&NT.includes(this.key)},referencesImport:function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?NC(this.node.property,{value:t}):this.node.property.name===t)){let t=this.get("object");return t.isReferencedIdentifier()&&t.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(r?.kind!=="module")return!1;let n=r.path,i=n.parentPath;return!!i.isImportDeclaration()&&i.node.source.value===e&&(!t||!!(n.isImportDefaultSpecifier()&&"default"===t||n.isImportNamespaceSpecifier()&&"*"===t||n.isImportSpecifier()&&NA(n.node.imported,{name:t})))},getSource:function(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},willIMaybeExecuteBefore:function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},_guessExecutionStatusRelativeTo:function(e){return function e(t,r,n){let i,s={this:NL(t),target:NL(r)};if(s.target.node!==s.this.node)return function(t,r,n){let i,s=n.get(t.node);if(s){if(i=s.get(r.node))return i===ND?"unknown":i}else n.set(t.node,s=new Map);s.set(r.node,ND);let a=function(t,r,n){let i;if(!r.isFunctionDeclaration())return"before"===e(t,r,n)?"before":"unknown";if(r.parentPath.isExportDeclaration())return"unknown";let s=r.scope.getBinding(r.node.id.name);if(!s.references)return"before";for(let a of s.referencePaths){if(a.find(e=>e.node===r.node))continue;if("callee"!==a.key||!a.parentPath.isCallExpression())return"unknown";let s=e(t,a,n);if(i&&i!==s)return"unknown";i=s}return i}(t,r,n);return s.set(r.node,a),a}(t,s.target,n);let a={target:r.getAncestry(),this:t.getAncestry()};if(a.target.includes(t))return"after";if(a.this.includes(r))return"before";let o={target:0,this:0};for(;!i&&o.this<a.this.length;){let e=a.this[o.this];o.target=a.target.indexOf(e),o.target>=0?i=e:o.this++}if(!i)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(NO(a.this,o.this-1)||NO(a.target,o.target-1))return"unknown";let l={this:a.this[o.this-1],target:a.target[o.target-1]};if(l.target.listKey&&l.this.listKey&&l.target.container===l.this.container)return l.target.key>l.this.key?"before":"after";let u=NE[i.type],c={this:u.indexOf(l.this.parentKey),target:u.indexOf(l.target.parentKey)};return c.target>c.this?"before":"after"}(this,e,new Map)},resolve:function(e,t){if(t?.includes(this))return this;if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let r=this.scope.getBinding(this.node.name);if(!r||!r.constant||"module"===r.kind)return this;if(r.path!==this){let n=r.path.resolve(e,t);return this.find(e=>e.node===n.node)?this:n}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){let r=NN(this.node);if(!NP(r))return this;let n=r.value,i=this.get("object").resolve(e,t);if(i.isObjectExpression())for(let r of i.get("properties")){if(!r.isProperty())continue;let i=r.get("key"),s=r.isnt("computed")&&i.isIdentifier({name:n});if(s=s||i.isLiteral({value:n}))return r.get("value").resolve(e,t)}else if(i.isArrayExpression()&&!isNaN(+n)){let r=i.get("elements")[n];if(r)return r.resolve(e,t)}}return this},isConstantExpression:function(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every(e=>e.isConstantExpression()));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return"in"!==e&&"instanceof"!==e&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):!!this.isCallExpression()&&1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral()},isInStrictMode:function(){return!!(this.isProgram()?this:this.parentPath).find(e=>{let t;if(e.isProgram({sourceType:"module"})||e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(let e of t.directives)if("use strict"===e.value.value)return!0;return!1})},isDenylisted:function(){return!!this.opts.denylist?.includes(this.node.type)},skip:function(){this.shouldSkip=!0},skipKey:function(e){null==this.skipKeys&&(this.skipKeys={}),this.skipKeys[e]=!0},stop:function(){this._traverseFlags|=6},setContext:function(e){return null!=this.skipKeys&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),NZ.call(this),this},requeue:function(e=this){if(!e.removed)for(let t of(e.shouldSkip=!1,this.contexts))t.maybeQueue(e)},requeueComputedKeyAndDecorators:function(){let{context:e,node:t}=this;if(!sz(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let t of this.get("decorators"))e.maybeQueue(t)},remove:function(){IH.call(this),N0.call(this),this.parentPath&&IX.some(e=>e(this,this.parentPath))||(this.node&&!this.opts?.noScope&&Object.keys(vj(this.node,!1,!1,!0)).forEach(e=>this.scope.removeBinding(e)),this.shareCommentsWithSiblings(),Array.isArray(this.container)?(this.container.splice(this.key,1),_s.call(this,this.key,-1)):_M.call(this,null)),this._traverseFlags|=5,this.parent&&Ce(this)?.delete(this.node),this.node=null},insertBefore:function(e){IH.call(this);let t=_a.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||I5(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return _r.call(this,t);if(this.isStatementOrBlock()){let e=this.node,r=e&&(!this.isExpressionStatement()||null!=e.expression),[n]=this.replaceWith(IZ(r?[e]:[]));return n.unshiftContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},insertAfter:function(e){if(IH.call(this),this.isSequenceExpression())return _i(this.get("expressions")).insertAfter(e);let t=_a.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||I5(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(e=>I6(e)?I2(e):e));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&"init"===this.key){if(this.node){let e=this.node,{scope:n}=this;if(n.path.isPattern())return IY(e),this.replaceWith(I0(IG([],e),[])),this.get("callee.body").insertAfter(t),[this];if(function e(t){return I9(t.parent)&&(_i(t.parent.expressions)!==t.node||e(t.parentPath))}(this))t.unshift(e);else if(I4(e)&&I7(e.callee))t.unshift(e),t.push(_e());else if(function(e,t){if(!I3(e)||!I8(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}(e,n))t.unshift(e),t.push(I1(e.left));else if(n.isPure(e,!0))t.push(e);else{r.isMethod({computed:!0,key:e})&&(n=n.parent);let i=n.generateDeclaredUidIdentifier();t.unshift(I2(IQ("=",I1(i),e))),t.push(I2(I1(i)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return _n.call(this,t);if(this.isStatementOrBlock()){let e=this.node,r=e&&(!this.isExpressionStatement()||null!=e.expression),[n]=this.replaceWith(IZ(r?[e]:[]));return n.pushContainer("body",t)}throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")},unshiftContainer:function(e,t){IH.call(this);let r=_a.call(this,t),n=this.node[e],i=NG.get({parentPath:this,parent:this.node,container:n,listKey:e,key:0}).setContext(this.context);return _r.call(i,r)},pushContainer:function(e,t){IH.call(this);let r=_a.call(this,t),n=this.node[e];return NG.get({parentPath:this,parent:this.node,container:n,listKey:e,key:n.length}).setContext(this.context).replaceWithMultiple(r)},getOpposite:function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):null},getCompletionRecords:function(e=!1){return NV(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map(e=>e.path)},getSibling:function(e){return NG.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)},getPrevSibling:function(){return this.getSibling(this.key-1)},getNextSibling:function(){return this.getSibling(this.key+1)},getAllNextSiblings:function(){let e=this.key;if(!Number.isInteger(e))return[];let t=[],r=this.container.length;for(let n=e+1;n<r;n++)t.push(this.getSibling(n));return t},getAllPrevSiblings:function(){let e=this.key;if(!Number.isInteger(e))return[];let t=[];for(let r=e-1;r>=0;r--)t.push(this.getSibling(r));return t},get:function(e,t=!0){!0===t&&(t=this.context);let r=e.split(".");return 1===r.length?Nq.call(this,e,t):NK.call(this,r,t)},getAssignmentIdentifiers:function(){return NM(this.node)},getBindingIdentifiers:function(e){return NF(this.node,e)},getOuterBindingIdentifiers:function(e){return Nj(this.node,e)},getBindingIdentifierPaths:function(e=!1,t=!1){let r=[this],n=Object.create(null);for(;r.length;){let i=r.shift();if(!i||!i.node)continue;let s=NF.keys[i.node.type];if(i.isIdentifier()){e?(n[i.node.name]=n[i.node.name]||[]).push(i):n[i.node.name]=i;continue}if(i.isExportDeclaration()){let e=i.get("declaration");e.isDeclaration()&&r.push(e);continue}if(t){if(i.isFunctionDeclaration()){r.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(s)for(let e=0;e<s.length;e++){let t=s[e],n=i.get(t);Array.isArray(n)?r.push(...n):n.node&&r.push(n)}}return n},getOuterBindingIdentifierPaths:function(e=!1){return this.getBindingIdentifierPaths(e,!0)},shareCommentsWithSiblings:function(){if("string"==typeof this.key)return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let n=this.getSibling(this.key-1),i=this.getSibling(this.key+1),s=!!n.node,a=!!i.node;s&&(r&&n.addComments("trailing",NW(r,n.node.trailingComments)),t&&!a&&n.addComments("trailing",t)),a&&(t&&i.addComments("leading",NW(t,i.node.leadingComments)),r&&!s&&i.addComments("leading",r))},addComment:function(e,t,r){NJ(this.node,e,t,r)},addComments:function(e,t){Nz(this.node,e,t)}}),ok)){let t=`is${e}`,r=e5[t];NG.prototype[t]=function(e){return r(this.node,e)},NG.prototype[`assert${e}`]=function(t){if(!r(this.node,t))throw TypeError(`Expected node path of type ${e}`)}}for(let e of(Object.assign(NG.prototype,PB),Object.keys(Pp)))!e.startsWith("_")&&(ok.includes(e)||ok.push(e));function NY(e){if(!e)return!1;for(let t of e){if(!t)continue;let e=this.node;if(!e)return!0;let r=t.call(this.state,this,this.state);if(r&&"object"==typeof r&&"function"==typeof r.then)throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(r)throw Error(`Unexpected return value from visitor method ${t}`);if(this.node!==e||this._traverseFlags>0)return!0}return!1}function NQ(){let e,t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;)e=t.scope,t=t.parentPath;this.scope=this.getScope(e),this.scope?.init()}function NZ(){let e;if(this.opts?.noScope)return;let t=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&t.isMethod()||"discriminant"===this.key&&t.isSwitchStatement())&&(t=t.parentPath);t&&!e;){if(t.opts?.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope?.init()}function N0(){if(!this.removed){if(this.parentPath&&(this.parent=this.parentPath.node),this.parent&&this.inList){let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}if(this.container&&this.node!==this.container[this.key]){let e=-1;if(Array.isArray(this.container))e=this.container.indexOf(this.node);else for(e of Object.keys(this.container))if(this.container[e]===this.node)break;-1===e?this.key=null:N4.call(this,e)}}}function N1(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function N2(e){this.contexts.push(e),this.setContext(e)}function N3(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,N4.call(this,n)}function N4(e){this.key=e,this.node=this.container[this.key],this.type=this.node?.type??null}function N5(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath);)t=e.contexts;return t}var N6=class{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}},{VISITOR_KEYS:N8,removeProperties:N9,traverseFast:N7}=e5;function Le(e,t={},r,n,i,s){if(e){if(!t.noScope&&!r&&"Program"!==e.type&&"File"!==e.type)throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!i&&s)throw Error("visitSelf can only be used when providing a NodePath.");N8[e.type]&&(PJ(t),Pm(e,t,r,n,i,void 0,s))}}Le.visitors=P1,Le.verify=Pz,Le.explode=PJ,Le.cheap=function(e,t){N7(e,t)},Le.node=function(e,t,r,n,i,s){Pm(e,t,r,n,i,s)},Le.clearNode=function(e,t){N9(e,t)},Le.removeProperties=function(e,t){return N7(e,Le.clearNode,t),e},Le.hasType=function(e,t,r){return!r?.includes(e.type)&&(e.type===t||N7(e,function(e){return r?.includes(e.type)?N7.skip:e.type===t?N7.stop:void 0}))},Le.cache=Cr;var Lt=r(4492);let Lr=e=>void 0===e;function Ln(e,t,r){if(r||(r=t,t="."),function(e,t){if("string"!=typeof e)throw Error("selector should be string!");if("object"!=typeof t)throw Error("obj should be object!")}(e,r),!e)return r;if(!Object.keys(r).length)return;let n=e.split(t).filter(Boolean);for(let[e,i]of n.entries()){let s=n.slice(e).join(t);if(!Lr(r[s])){r=r[s];break}if(!r[i]){r=void 0;break}r=r[i]}return r}var Li=r(5606);let Ls=new Map,La=(e,t,r={})=>{let{env:n=Li.env,coverage:i=Ls,instrumentName:s="TYPE_CHECK"}=r,a=(({stack:e})=>e.split("\n")[3])(Error()),o=n[s],l=new Set;return o&&!a.includes("type-checker.spec.js")&&i.set(a,{covered:l,typeNames:e}),(e,r)=>{let[n,i]=t(e,r);return o&&1/0!==n&&l.add(n),i}};function Lo(e){let t=e.split(" "),r=t.pop(),n=r.split("!"),i=t.join(" ");return"+"===r?[`${i} `,Boolean]:"-"===r?[`${i} !`,Boolean]:1===n.length?[`${i} `,r]:[`${i} !`,n[1]]}let Ll=e=>"string"==typeof e,{isArray:Lu}=Array,Lc=e=>{let[t,r]=e.split(":"),n=Lp(t);if(!r)return[n,"",""];let[i,s]=r.split(/ ->\s?/);if(s&&"!"!==s)throw Error(`☝️Looks like not: '${s}', it must be empty or '!' in checker: '${e}'`);return[n,i.trim(),s]},Lp=e=>"+"===e,Lh=e=>t=>(r,...n)=>"function"==typeof t?e(t(r,...n),r):e(t,r),Ld={"=":Lh((e,t)=>t===e),">":Lh((e,t)=>t>e),"<":Lh((e,t)=>t<e),">=":Lh((e,t)=>t>=e),"<=":Lh((e,t)=>t<=e)},Lf=(e,t)=>e?!t:t,Lm=(e,t,r)=>{if(!t)return Lf(e,!1);let{type:n}=t;return"string"==typeof r&&Lf(e,n===r)},Ly=(e,t,r,n)=>{if("function"!=typeof e)return!1;let i=function(e,t,r){let{name:n}=e;return e5[n]===e?e(t):e(t,r)}(e,r,n);return t?!i:i},Lg=[1/0,!1],Lb=(e,t={})=>{let{instrumentCoverage:r=La}=t,n=function(e){let t=[];for(let r of e){if(Lu(r)&&1===r.length){let[e]=r,n=Lo(e);t.push(n);continue}if(Lu(r)){t.push(function(e){if(3===e.length){let[t,r,n]=e;return[t,Ld[r](n)]}return e}(r));continue}if(Ll(r)&&r.includes(" -> ")){let e=Lo(r);t.push(e);continue}t.push(["+",r])}return t}(e),i=[],s=new Set;for(let[e,t]of n){let[r,n,a]=Lc(e);s.add(r),i.push({result:r,selector:n,not:a,typeName:t})}return function(e){if(!e.has(!0))throw Error("☝️Looks like type checker missing successful route ('+'), it will always fail")}(s),function(e){for(let{typeName:t}of e.filter(Lx))if(t.includes(":"))throw Error("☝️Looks like typeName includes ':', most likely you forget the arrow: ' -> '")}(i),r(e,(e,t)=>{for(let[r,{result:n,selector:s,typeName:a,not:o}]of i.entries()){let i=e;if(s&&(i=Ln(s,e)),Lm(o,i,a)||Ly(a,o,i,t))return[r,n]}return Lg},t)},Lx=({typeName:e})=>"string"==typeof e,{isStringLiteral:LS,isIdentifier:Lv,isIfStatement:LT,isStatement:LE,isForOfStatement:Lk,isVariableDeclaration:Lw,isMemberExpression:LA,isArrayExpression:LP,isObjectExpression:LC,isLabeledStatement:LI,isTryStatement:L_,isProgram:LN,isBlockStatement:LL,isTSModuleBlock:LO,isSwitchCase:LD,isExpressionStatement:LM,isExportDeclaration:LF}=e5,Lj=e=>LN(e.parentPath),LB=e=>LL(e.parentPath),LR=({node:e,parentPath:t})=>e===t.node.body,L$=e=>LP(e.parentPath),LU=({parentPath:e})=>e.isCallExpression(),LV=({parentPath:e})=>e.isReturnStatement(),Lq=e=>t=>e(t.getNextSibling()),LK=e=>t=>e(t.getPrevSibling()),LJ=e=>t=>e(t.parentPath),Lz=Lq(e=>!!e.node&&!e.isEmptyStatement()),LW=e=>Lz(e.parentPath),LX=e=>Lj(e)&&!Lz(e),LH=e=>e.node===e.parentPath.node.body?.[0];function LG(e){let t=e.node?.loc?.start?.line;return e.node?.loc?.end?.line!==t}let LY=e=>e.node;function LQ(e){let{elements:t}=e.node,[r,n]=t;return LS(r)&&Lv(n)}let LZ=e=>{let t,r=e.get("elements"),[n]=r;return(!n||!!["Identifier","SpreadElement","ArrayExpression","CallExpression","NewExpression"].includes(n.type))&&(LC(t=r.at(-1))||(t=r.at(-2)),!!LC(t)&&t.node.properties.length)},L0=e=>{let{elements:t}=e.node;if(2!==t.length)return;let[r,n]=t;return Lv(r)&&Lv(n)},L1=e=>{let t=e.get("elements");if(2!==t.length)return!1;let[r,n]=t;return!!LS(r)&&!!LP(n)&&!LQ(n)},L2=e=>LT(e)||LE(e),L3=e=>Lk(e)||LE(e),L4=e=>{let t=e.find(L3);return!!Lk(t)||!!Lw(t)&&Lk(t.parentPath)},L5=e=>e.parentPath?.isIfStatement(),L6=e=>{let t=e.node?.loc?.end?.line,r=e.getNextSibling().node?.loc?.start?.line;return!!r&&r-t>1},L8=({parentPath:e})=>LI(e),L9=e=>t=>{for(let r of e)if(r(t))return!0;return!1},L7=e=>{let t=e.node||e;return t.trailingComments?.length},Oe=e=>{let{decorators:t}=e.node;return!!t&&t.length},Ot=e=>e.node?.leadingComments?.length,Or=e=>!e.node.trailingComments?.length,On=Lb([["-: parentPath -> !CallExpression"],["+",({node:e,parentPath:t})=>{let[r]=t.node.arguments;return e===r}]]),Oi=Lb([["-: parentPath -> !CallExpression"],["+",function({node:e,parentPath:t}){return e===t.node.arguments.at(-1)}]]),Os=e=>L9(e?.()||[]),{isProgram:Oa,isFile:Oo,isStatement:Ol,expressionStatement:Ou,program:Oc,file:Op}=e5,Oh=(e,t,r)=>{if(e)throw Error((0,Lt.n)(r,{path:t,type:t.type}))},Od=(e,t,r,n)=>"function"==typeof e?e(t,r,n):function(e,t,r,n){let{print:i,split:s,condition:a,before:o=s,beforeIf:l=a,after:u=s,afterIf:c=a}=(e=>{if(!e.afterSatisfy&&!e.beforeSatisfy&&!e.satisfy)return e;let{satisfy:t,afterSatisfy:r=t,beforeSatisfy:n=t}=e;return{afterIf:Os(r),beforeIf:Os(n),...e}})(e);l?.(t,r,n)&&o(t,r,n),i(t,r,n),c?.(t,r,n)&&u(t,r,n)}(e,t,r,n);var Of=r(8328);let Om="__putout_newline_after",Oy=(e,t)=>e&&Ob(t);function Og(e){e.__putout_newline_before=!0}function Ob(e){e[Om]=!0}let Ox=e=>e.getPrevSibling()[Om],OS=(e,{print:t,indent:r})=>{e&&(r.inc(),r.inc(),t.breakline(),r.dec(),r.dec())},Ov=(e,t)=>()=>e(`//${t}`),OT=(e,t)=>()=>e(`/*${t}*/
45
+ `),OE=e=>"CommentBlock"===e.type,Ok=e=>"CommentLine"===e.type;function Ow(e,t){let{node:r}=e;return!!r.loc&&r.loc.start.line===t.start.line}let{isArrowFunctionExpression:OA,isObjectProperty:OP,isVariableDeclarator:OC,isClassProperty:OI,isTSPropertySignature:O_,isSpreadElement:ON,isClassBody:OL,isBinaryExpression:OO,isClassMethod:OD,isDecorator:OM}=e5,OF=L9([OP,OC,OI,O_,ON]),Oj=e=>{let{parentPath:t}=e;return!!OC(t)&&e===t.get("init")||!!OA(t)&&OC(t.parentPath)},OB=e=>{let{parentPath:t}=e;return e===t.get("properties")[0]||!!(OL(t)&&OI(e))&&e===t.get("body")[0]},OR=(e,t,r,{currentTraverse:n={}}={})=>{let{print:i,maybe:s,indent:a}=t;if(!r.comments)return;let{leadingComments:o}=e.node;if(!o?.length)return;if((e=>{let{printLeadingCommentLine:t,printLeadingCommentBlock:r}=e;return!!t||!!r})(n))return((e,t,r,{currentTraverse:n})=>{let{print:i}=t,{leadingComments:s=[]}=e.node,{printLeadingCommentLine:a,printLeadingCommentBlock:o}=n,l=s.length-1;for(let[n,u]of s.entries()){let{value:s}=u;if(Ok(u)){a?.(e,t,r,{index:n,printComment:Ov(i,s),isLast:n===l});continue}OE(u)&&o?.(e,t,r,{index:n,printComment:OT(i,s)})}})(e,t,r,{currentTraverse:n});if(e?.parentPath.node?.decorators)return;let l=e.isSwitchCase();if(!l&&L7(e.getPrevSibling()))return;let u=(e.parentPath.isFunction()||e.parentPath.isTSDeclareMethod())&&!e.isTSTypeParameterDeclaration(),c=OF(e),p=OB(e)||!l&&!e.isClassMethod()&&!u&&!c,h=o.length-1;for(let[t,{type:r,value:n}]of o.entries()){if("CommentLine"===r){!t&&(e.isClassProperty()||e.isBinaryExpression())||s.indent(p),OS(u,{print:i,indent:a}),function(e){let{loc:t,leadingComments:r}=e.node;if(!OF(e))return!1;let[n]=r,{line:i}=n.loc.start;return!function(e){let[t]=e.node.leadingComments,{line:r}=t.loc.start;return e.getPrevSibling().node?.loc.start.line===r}(e)&&i<=t.start.line-1}(e)?s.print.breakline(!OB(e)):s.print.space(c&&!e.isClassProperty()),i(`//${n}`),t===h?(s.print.breakline(c),s.print.newline(!c),OD(e)?a():(OO(e)||OM(e))&&(a.inc(),a(),a.dec())):i.newline(),Oj(e)&&(a.inc(),a(),a.dec());continue}if("CommentBlock"===r){s.indent(p);let t=e.isClassMethod(),r=e.isDirective(),a=e.isObjectProperty();a&&i.breakline(),i(`/*${n}*/`),(e.isStatement()||e.isTSEnumMember()||r||t||a||l)&&(i.newline(),Og(e),s.indent(t||a||l));continue}}},{isCallExpression:O$,isMemberExpression:OU}=e5,{assign:OV}=Object,Oq=Lb([["-: parentPath -> !CallExpression"],["+",function({node:e,parentPath:t}){return e===t.node.callee}]]);function OK(e){let t={type:e.type};if(O$(e)){let{callee:r}=e.node;OV(t,{args:e.node.arguments.length}),OU(r)&&OV(t,{name:r.property.name})}return t}let OJ=()=>({type:"CommentLine"}),{isCallExpression:Oz}=e5,OW=Lb([["-: length -> !","=",2],["+: 0.name -> -"]]),OX=Lb([["-",OW],["+: length",">",1]]),{isIfStatement:OH}=e5,OG=({type:e})=>"CommentLine"===e,OY=Lb([["-: 0 -> !CallExpression"],["-: 0.name -> !","=","get"],["+: 0.args ->","=",1]]),OQ=Lb(["+: -> UnaryExpression","+: -> IfStatement"]),OZ=Lb([["-: node.object -> !Identifier"],["-: node.property -> !Identifier"],["+",Oi],["+: parentPath.parentPath -> CallExpression"]]),O0=e=>(t,{properties:r})=>e(r),O1=e=>{let t,[r,n]=[(t=[...function(e){var t;let r=[],n=e.get("object");for(;!n.isIdentifier()&&(r.unshift(OK(n)),(n=(t=n).isCallExpression()?t.get("callee"):t).isMemberExpression());)n=n.get("object");return r}(e),...function(e){let t=[];for(;e.isMemberExpression()&&(L7(e.get("object"))&&t.push(OJ()),OU(e=function(e,t){let r=e.parentPath;return Oq(e)?(t.push(OK(r)),r.parentPath):r}(e,t))););return t.push({type:e.type}),t}(e)]).pop(),t];return O2(e,{root:r,properties:n})},O2=Lb([["-",OZ],["-",(e,{root:t})=>OQ(t)],["-",O0(OY)],["+",O0(e=>e.find(OG))],["-",e=>e.find(O3)],["-",On],["+",(e,{properties:t})=>OX(t.filter(Oz))]]),O3=e=>{let t=e.find(OH),r=!1;return t&&t.get("test").traverse({MemberExpression(t){e===t&&(r=!0,e.stop())}}),r},{isDecorator:O4,isMemberExpression:O5,isCallExpression:O6}=e5,O8=e=>!!e.isTSModuleDeclaration()||e.node.body?.length,O9=e=>{let{parentPath:t}=e;return!!t.isFunction()&&t.get("params").includes(e)};function O7(e,t){return e.node.loc?.start.line===t.start.line||e.node.loc?.end.line===t.end.line}let De=e=>{let{parentPath:t}=e;if(O4(e)){let{loc:t}=e.node.trailingComments[0];return!O7(e,t)}return!O5(t)&&!LX(e)},Dt=({node:e})=>!e.body.length,Dr=(e,{write:t,maybe:r},n)=>{if(!n.comments)return;let i=e.node.comments||e.node.innerComments;if(!i)return;let s=i.length-1,a=e.isProgram();for(let[n,{type:o,value:l}]of i.entries()){if("CommentLine"===o){if(r.write.breakline(Lz(e)||!a),t("//"),t(l),a&&Dt(e)){r.write.newline(n<s);continue}t.newline();continue}"CommentBlock"===o&&(t("/*"),t(l),t("*/"))}};var Dn=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,Di=/[A-Z\u00C0-\u00D6\u00D9-\u00DD]/g;let{stringify:Ds}=JSON,{LOG:Da,LOG_ALL:Do,LOG_TOKENS:Dl,LOG_TERM:Du,LOG_DEBUG:Dc}=Li.env;function Dp(){let e=[];return(...t)=>{let[r]=t;if(t.length)return void e.push(r);let n=e.join("");return e=[],n}}let Dh=e=>e.node.extra?.parenthesized,Dd=e=>"function"==typeof e?Df(e):Dm(e),Df=e=>({condition:Dh,before(e,{write:t}){t("(")},print:e,after(e,{write:t}){t(")")}}),Dm=({print:e,condition:t,checkParens:r=!0,...n})=>({...Df(e),...n,condition:(e,n,i)=>{let s=t?.(e,n,i);return r?s||Dh(e):s}}),Dy=()=>{},Dg=(e,t,r,n={})=>{let{extra:i,typeParameters:s}=e.node,{print:a,maybe:o,traverse:l}=t,{params:u=e.get("params"),braceOpen:c="(",braceClose:p=")",printSpace:h=a.space,printAfterOpen:d=Dy,printBeforeClose:f=Dy,printAfterClose:m=Dy}=n;s&&l(e.get("typeParameters")),function(e,{print:t,braceOpen:r},n){(!Db(e)||n.roundBraces.arrow)&&t(r)}(e,{print:a,braceOpen:c},r),Dr(e,t,r),d();let y=u.length-1;for(let e=0;e<=y;e++){let t=e===y;l(u[e]),t||(a(","),h())}o.print(i?.trailingComma,","),f(),function(e,{print:t,braceClose:r},n){(!Db(e)||n.roundBraces.arrow)&&t(r)}(e,{print:a,braceClose:p},r),m()};function Db(e){if("ArrowFunctionExpression"!==e.type)return!1;let{params:t}=e.node,[r]=t;return 1===t.length&&"Identifier"===r.type}let Dx=(e,t)=>{let{print:r}=t,{returnType:n}=e.node;n&&(r(":"),r.space(),r("__returnType"))},DS=Dd((e,t,r)=>{let{print:n,maybe:i}=t,{async:s}=e.node;i.print(s,"async "),Dg(e,t,r),Dx(e,t),n.space(),n("=>");let a=e.get("body").isJSXElement();i.print.space(!a),n("__body")}),{isExpressionStatement:Dv,isFunctionDeclaration:DT}=e5,DE=({node:e})=>e.body.body.length,Dk=Lb([["+",Lq(DT)],["+",Lz],["-: -> !",Lq(Dv)]]),Dw=Lb([["+: parentPath -> !ExportDefaultDeclaration"],["+: -> !",DE]]),DA=Lb([["+: parentPath.parentPath -> TSModuleBlock"],["-: parentPath -> !BlockStatement"],["+: -> !",DE]]),DP={beforeIf:Lb(["+: parentPath -> !ExportNamedDeclaration"]),before:(e,{indent:t})=>{t()},print(e,t,r){let{print:n,maybe:i}=t,{async:s,generator:a}=e.node;i.print(s,"async "),n("function"),a?(n("*"),n.space()):n(" "),n("__id"),Dg(e,t,r),Dx(e,t),n.space(),n("__body")},afterSatisfy:()=>[Lz,LW,DA],after(e,{indent:t,maybe:r}){Dk(e)&&t(),r.write.newline(Dw(e)),Ob(e)}},{isExportDeclaration:DC,isClassDeclaration:DI}=e5,D_=e=>{let t=e.getPrevSibling();return!!t.node&&(t.isClassProperty()||t.isClassAccessorProperty())},DN=e=>t=>e(t.get("declaration")),DL=Lb([["-: -> !",LK(DC)],["+",DN(Oe)]]),DO=Lb([["-: -> !ExportNamedDeclaration"],["+",DN(DI)]]),DD=e=>(t,r,n,i)=>{let{parentPath:s}=t,{print:a}=r;if(DC(s))return Od(e,t,r,n);if(DO(t)){let i=t.get("declaration");return DL(t)&&a.newline(),DM(i,r),Od(e,t,r,n)}DM(t,r),Od(e,t,r,n)};function DM(e,t){let{maybe:r,traverse:n,write:i}=t,{decorators:s}=e.node;if(!s)return[];for(let t of e.get("decorators"))r.write.breakline(D_(e)),n(t),i.breakline()}let DF=(e,t,{maybe:r,traverse:n})=>{let{computed:i}=e.node;r.write(i,"["),n(t),r.write(i,"]")},Dj=(e,t)=>{let r=e.get("key");DF(e,r,t)},DB=(e,{write:t})=>{let{kind:r,generator:n}=e.node;"get"===r||"set"===r?t(`${r} `):n&&t("*")},DR=({isNewline:e,printer:t})=>()=>{let{print:r}=t;if(!e)return r.space();r.breakline()},D$=e=>!L7(e)&&Lz(e),DU={print:DD((e,t,r)=>{let n,i,s,a,o,{print:l}=t,{node:u}=e,{accessibility:c}=u;c&&(l(c),l(" ")),u.static&&(l("static"),l(" ")),u.override&&(l("override"),l(" ")),u.async&&(l("async"),l(" ")),DB(e,t),Dj(e,t),n=e.get("params").filter(Oe).length,i=(e=>{let t=e.get("params"),r=0,n=0;for(let e of t){let t=e.get("decorators");if(!t.length)continue;let[i]=t;++n,Ot(i)&&++r}return r===n})(e),s=DR({isNewline:n,printer:t}),a=(({isNewline:e,isAllHasComments:t,printer:r,type:n})=>()=>{if(!e)return;let{indent:i,print:s}=r;t||i[n](),s.breakline()})({type:"inc",printer:t,isNewline:n,isAllHasComments:i}),o=(({isNewline:e,printer:t,isAllHasComments:r,type:n})=>()=>{if(!e)return;let{indent:i,print:s}=t;r||i[n](),s.breakline()})({type:"dec",printer:t,isNewline:n,isAllHasComments:i}),Dg(e,t,r,{printAfterOpen:a,printSpace:s,printBeforeClose:o}),Dx(e,t),l.space(),l("__body")}),afterSatisfy:()=>[D$],after(e,{print:t}){t.linebreak()}},DV=DU,Dq={beforeIf:e=>e.node.async,before(e,{write:t}){t("async ")},print(e,t,r){let{trailingComma:n}=r,{print:i}=t;DB(e,t),Dj(e,t),Dg(e,t,r),Dx(e,t),i.space(),i("__body"),(Lz(e)||n)&&i(","),i.newline(),Ob(e)},afterIf:e=>L6(e),after(e,{print:t}){t.linebreak()}},DK=Dd((e,t,r)=>{let{print:n,maybe:i,write:s,traverse:a}=t,{node:o}=e,{generator:l,async:u}=o;i.write(u,"async "),s("function"),i.write(l,"*");let c=e.get("id");LY(c)&&(s(" "),a(c)),Dg(e,t,r),Dx(e,t),n.space(),n("__body")}),DJ=Dd((e,t)=>{let{maybe:r,traverse:n}=t,{prefix:i,operator:s}=e.node,a=e.get("argument");r.print(i,s),r.print(/^(delete|typeof|void|throw)$/.test(s)," "),n(a),r.print(!i,s)}),Dz=DJ,DW=DJ,DX=Dd((e,{print:t})=>{DY("await",{print:t})}),DH=Dd((e,{print:t,maybe:r})=>{let{delegate:n}=e.node;t("yield"),r.print(n,"*"),t(" "),t("__argument")}),DG=(e,{print:t,indent:r,maybe:n})=>{r(),DY("throw",{print:t}),t(";"),n.print.newline(!LX(e)),n.print.breakline(Lz(e))};function DY(e,{print:t}){t(`${e} `),t("__argument")}let DQ=Dd({condition:Lb(["-: node.object -> !ObjectExpression","+: parentPath -> ArrowFunctionExpression"]),print:(e,t)=>{let{print:r,maybe:n,traverse:i}=t,s=e.get("object"),a=e.get("property"),{computed:o}=e.node,l=O1(e);if(i(s),o)return DF(e,a,t);n.indent.inc(l),n.print.breakline(l),r("."),r("__property"),n.indent.dec(l)}}),DZ=Dd((e,{print:t,maybe:r})=>{let{computed:n,optional:i}=e.node;if(t("__object"),r.print(i,"?."),r.print(!i&&!n,"."),n){t("["),t("__property"),t("]");return}t("__property")}),D0=e=>(t,r,n)=>{let{maybe:i}=r,{declare:s}=t.node;i.print(s,"declare "),e(t,r,n)},D1=e=>D3(e.parentPath.parentPath),D2=Lb([["+",D1],["+",Lz],["+: parentPath.parentPath -> TSModuleBlock"]]),{isFunction:D3}=e5,D4=Lb([["+: node.typeParameters -> -"],["+: node.typeParameters.params.length","<",2]]),D5=DD((e,t,r)=>{let{node:n}=e,{id:i,abstract:s,superClass:a}=n,{print:o,indent:l,maybe:u,traverse:c}=t;if(u.print(s,"abstract "),o("class"),u.print(i||a," "),o("__id"),o("__typeParameters"),n.superClass&&(u.print(i," "),o("extends "),o("__superClass"),o("__superTypeArguments")),n.implements){D4(e)&&o(" "),o("implements ");let t=e.get("implements"),r=t.length-1;for(let[e,n]of t.entries())o(n),u.print(e<r,", ")}o.space(),o("{"),(({node:e})=>e.body.body.length)(e)&&o.newline(),l.inc();let p=e.get("body");for(let e of p.get("body"))l(),c(e);(({node:e})=>e.body.body.length)(e)||Dr(p,t,r),l.dec(),(({node:e})=>e.body.body.length)(e)&&l(),o("}")}),D6=D5,D8={beforeIf:Lb([["+: -> !",({parentPath:e})=>LF(e)]]),before:(e,{indent:t})=>{t()},print:D0((e,t,r)=>{D5(e,t,r)}),afterIf:D2,after(e,{write:t}){t.newline(),!D1(e)&&(({node:e})=>e.body.body.length)(e)&&(t.newline(),Ob(e))}},{isIdentifier:D9,isObjectExpression:D7,isArrayExpression:Me}=e5,{isArray:Mt}=Array,Mr=e=>{let t=e.get("arguments");return Mt(t)?t:[]},Mn=Lb([["-",e=>Me(e.node?.arguments?.[0])],["+: node.arguments.length",">=",(e,{maxArgsInOneLine:t})=>t]]),Mi=Lb(["-: -> !CallExpression","-: node.callee -> !MemberExpression","+: node.callee.object -> CallExpression"]),Ms=Lb([["+",e=>Mi(e.get("arguments")[0])],["-: -> !",function(e){for(let t of Mr(e))if(D9(t)&&t.node.name.length>10)return!0;return!1}],["+",LU]]),Ma=Dd((e,t,r)=>{let{print:n,maybe:i}=t,s=Mr(e);n("__callee"),n("__typeArguments"),i.print(e.node.optional,"?."),n("(");let a=Mn(e,r),o=a||Ms(e,r);(function(e,t,{maxArgs:r,multiline:n}){let{indent:i,print:s,maybe:a}=t,o=e.length-1;for(let[t,i]of(a.indent.inc(n),e.entries())){if(n&&(r&&Me(i)?s.space():(o||r&&!D7(i)||Mi(i))&&s.breakline()),s(i),n&&(o||r)){s(",");continue}(Mi(i)||t<o)&&s(","),t<o&&s.space()}n&&(i.dec(),a.print.breakline(o||r||Mi(e[0])))})(s,t,{maxArgs:a,multiline:o}),n(")")}),Mo=Ma,{isMemberExpression:Ml,isClassDeclaration:Mu}=e5,Mc=Dd({print(e,t,r){let{print:n,maybe:i}=t,s=e.parentPath.getPrevSibling();i.print.breakline(Mu(s)),n("new "),n("__callee"),n("__typeArguments");let a=e.get("arguments");Mp("(",e,t,r);let o=a.length-1;for(let[e,t]of a.entries())n(t),i.print(e<o,", ");Mp(")",e,t,r)}});function Mp(e,t,r,n){let{maybe:i,print:s}=r,{roundBraces:a}=n,{length:o}=t.node.arguments;if(o||(({parentPath:e})=>Ml(e))(t))return s(e);i.print(a.new,e)}let{isArrayExpression:Mh}=e5,Md=["NullLiteral","NumericLiteral","BigIntLiteral"],Mf=e=>{let{parentPath:t}=e;if(!Mh(t))return!1;let[r,n]=t.node.elements;return n===e.node&&Md.includes(r.type)},{isStringLiteral:Mm,isObjectExpression:My}=e5,Mg=(e,{multiline:t})=>t,Mb=(e,{isLast:t})=>t,Mx=(e,{trailingComma:t})=>t,MS=Lb([["+: -> !",({node:e,parentPath:t})=>e===t.node.properties.at(-1)],["-: -> !",Mg],["+",Mx]]),Mv=Lb([["-: -> !SpreadElement"],["+",MS]]),MT=Lb([["-: -> SpreadElement"],["-",Lq(Ot)],["+",L6]]),ME=Lb([["-: -> !",Mg],["+: -> SpreadElement"],["+: -> !",Lq(Ot)]]),{isMemberExpression:Mk,isAssignmentExpression:Mw,isArrowFunctionExpression:MA}=e5,MP=Lb([["-",LJ(Mw)],["+",LJ(MA)],["+",({parentPath:e})=>LM(e)]]),MC=e=>t=>e(t.get("callee")),MI=Lb([["-: parentPath -> !CallExpression"],["-: parentPath -> !",MC(Mk)],["+: parentPath",MC(O1)]]),M_=Lb([["+",Mf],["-: parentPath -> !ArrayExpression"],["-: parentPath.parentPath -> !ArrayExpression"],["+: parentPath.parentPath",LU]]),MN=Lb([["+",Mf],["+: parentPath.parentPath.node.elements.0 -> StringLiteral"]]),ML=Lb([["-",e=>!e.node.properties.length],["-: parentPath -> ForOfStatement"],["-",e=>{let{parentPath:t}=e;return!(!t.isCallExpression()||LG(e))&&e!==t.get("arguments").at(-1)}],["-",L4],["-",e=>LT(e.find(L2))],["+: node.properties.0 -> SpreadElement"],["+",LG],["+",e=>e.node.properties[0].value]]),MO=Lb([["-: -> !",Mg],["+: -> !",Ot]]),MD=Dd({checkParens:!1,condition:MP,print:(e,t,r)=>{let{trailingComma:n}=r,{print:i,maybe:s,indent:a}=t,o=M_(e);s.indent.inc(!o);let l=e.get("properties"),u=ML(e);i("{"),Dr(e,t,r),s.print.newline(u);let c=MI(e);for(let e of(s.indent.inc(c),l))MO(e,{multiline:u})&&a(),i(e),e.isObjectMethod()||!L7(e)&&(s.print(Mv(e,{multiline:u,trailingComma:n}),","),ME(e,{multiline:u})&&i.newline(),MT(e)&&i.linebreak());a.dec(),MM(e,{multiline:u})&&a(),o&&a.inc(),i("}"),s.indent.dec(c)}}),MM=Lb([["+",MN],["-: -> !",Mg],["+: -> !",M_]]),MF=Lb([["-: parentPath -> ReturnStatement"],["-: node.operator -> !",e=>"+"===e],["-: node.loc",function(e){return e?.start.line===e?.end.line}],["+: -> BinaryExpression"]]),Mj=Lb([["-",Mg],["+: -> !",({node:e,parentPath:t})=>e===t.node.properties.at(-1)]]),MB=(e,t,r)=>{let{trailingComma:n}=r,{shorthand:i}=e.node,{maybe:s,traverse:a,write:o}=t,l=e.get("value"),u=ML(e.parentPath);Dj(e,t),i||(o(":"),s.write.space(!MF(l)),a(l)),MS(e,{multiline:u,trailingComma:n})&&o(","),Mj(e,{multiline:u})&&o.space()},MR=({computed:e,isAssign:t,keyPath:r,valuePath:n})=>!e&&!t&&r.node.name!==n.node.name,{isMemberExpression:M$,isSequenceExpression:MU}=e5,MV=e=>(t,r,n)=>{e(t,r,n),Mq(t,r)};function Mq(e,t){let{parentPath:r,node:n}=e,{typeAnnotation:i}=n,{write:s,traverse:a}=t;MU(r)||!M$(r)&&i&&(s(":"),s.space(),a(e.get("typeAnnotation")))}let{isAssignmentPattern:MK,isObjectPattern:MJ}=e5;function Mz(e){for(let{value:t}of e.node.properties)if(MJ(t))return!0;return!1}function MW(e){for(let{value:t}of e.node.properties)if(MK(t))return!0;return!1}let{isFunction:MX,isVariableDeclarator:MH,isObjectProperty:MG}=e5,MY=(e,{is:t})=>t,MQ=e=>!!MX(e.parentPath)||MX(e.parentPath.parentPath),MZ=({path:e,valuePath:t,property:r})=>{if(!LG(t)||LY(r.getPrevSibling()))return!1;let{parentPath:n}=e;return(!MH(n)||!!MW(e))&&!MG(n)},M0=Lb(["-: node.value -> !AssignmentPattern","+: node.value.right -> ObjectExpression"]),M1=LK(M0),M2=Lq(M0),M3=Lb([["-: ->",(e,{couple:t})=>t],["+: node.value -> AssignmentPattern"],["+: -> !",M2]]),M4=Lb([["-: ->",M3],["+: node.key.name.length -> !",(e,{semantics:t})=>{let{maxPropertiesLengthInOneLine:r}=t;return e>r}]]),M5=(e,{print:t})=>{let r=e=>t(`//${e}`),n=e=>t(`/*${e}*/`),{leadingComments:i}=e.node;if(i)for(let{type:e,value:s}of i)"CommentLine"===e?r(s):n(s),t.breakline()},{isAssignmentPattern:M6,isIdentifier:M8}=e5,M9=e=>e.value,M7=Lb([["-: node.properties.length",">",(e,{maxPropertiesInOneLine:t})=>t],["-",(e,{maxPropertiesLengthInOneLine:t})=>{let{properties:r}=e.node;for(let{key:e,value:n}of r){if(M6(n)){let{left:e,right:r}=n;if((M8(e)&&M8(r)?e.name.length+r.name.length:e.name.length)>=t)return!0}if(M8(e)){let{name:r}=e;if(r.length>=t)return!0}}return!1}],["+: parentPath -> VariableDeclarator"]]),{isIdentifier:Fe,isAssignmentPattern:Ft,isObjectProperty:Fr,isFunction:Fn}=e5,Fi=LJ(Lb([["+",Fn],["-: -> !AssignmentPattern"],["+: parentPath",Fn]])),Fs=Lb([["-",Fi],["-",L4],["-: node.properties.length","=",1],["+",function(e){for(let t of e.node.properties.map(M9).filter(Fe))if(t.name.length>4)return!0;return!1}]]),Fa=Lb([["-",Fi],["+",MW]]),Fo=Lb([["+",function(e){return!Fi(e)&&e.node.properties.filter(Fr).map(M9).filter(Ft).length>1}],["+",function(e){for(let t of e.node.properties)if(t.leadingComments)return!0;return!1}],["+",function(e){for(let{computed:t}of e.node.properties)if(t)return!0;return!1}],["+",Mz],["-",M7],["+",Fa],["+",Fs],["+: parentPath -> ObjectProperty"]]),{isForOfStatement:Fl,isAssignmentPattern:Fu}=e5,Fc=(e,{couple:t})=>t,Fp=Lb([["+",Fc],["+",MY],["+",M2],["+",M1],["+",Lq(e=>e.node)],["-: key -> -"],["-",function(e){return Fu(e.getPrevSibling().node.value)}],["-: parentPath",function({parentPath:e}){return Fl(e.parentPath.parentPath)}],["+: node.value.right -> ObjectExpression"]]),Fh=Lb([["+",MY],["+",M1],["+",Fc],["+",M2],["-: key -> -"],["+: node.value.right -> ObjectExpression"]]),Fd=Lb([["-",MQ],["+",M1],["+",MY]]),Ff=Lb([["-: node.value -> AssignmentPattern"],["+",M2]]),Fm={print:MV((e,t,r)=>{let n=!e.parentPath.isArrayPattern(),{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}=r,{print:a,maybe:o,indent:l}=t;o.indent.inc(n),a("{");let u=e.get("properties"),c=u.length-1,p=Fo(e,{maxPropertiesInOneLine:i,maxPropertiesLengthInOneLine:s}),h=c&&Mz(e),d=!MQ(e);for(let[n,i]of(o.print.newline(p&&d),u.entries())){if(Fd(i,{is:p})&&l(),i.isRestElement()){let e=p||h;a(i),o.print.newline(e);continue}let s=i.get("value"),u=i.get("key"),d=s.isAssignmentPattern(),{shorthand:f,computed:m}=i.node,y=MZ({path:e,property:i,valuePath:s});if(M4(i,{couple:y,semantics:r})&&a.breakline(),M5(i,{print:a}),Dj(i,t),!f||MR({computed:m,isAssign:d,keyPath:u,valuePath:s})?(a(":"),a.space(),a(s)):d&&a(s),Fp(i,{is:p,couple:y})&&a(","),Fh(i,{is:p,couple:y})){a.newline(),Ff(i)&&l();continue}n<c&&a.space()}l.dec(),o.indent(p||function(e){let t=e.get("properties"),r=t.length;for(let e of t)if(M0(e))return r>1;return!1}(e)),o.indent.inc(!n),a("}")})},{isAssignmentExpression:Fy,isExpressionStatement:Fg}=e5,{isReturnStatement:Fb}=e5,Fx=Dd({checkParens:!1,printLeadingCommentLine:(e,t,r,{printComment:n,isLast:i})=>{let{parentPath:s}=e,{print:a,maybe:o}=t;Fb(s)||(o.print.breakline(!i),n(),a.breakline())},printLeadingCommentBlock:(e,t,r,{printComment:n})=>{let{parentPath:i}=e,{print:s}=t;Fb(i)||(n(),s.indent())},condition:(e,t,r)=>{let{parentPath:n}=e,{type:i}=n,{roundBraces:s}=r;return"ObjectPattern"===e.node.left.type||"MemberExpression"===n.type||"LogicalExpression"===i||"BinaryExpression"===i||"UnaryExpression"===i||(!!s.assign||!!Ot(e))&&Dh(e)},print(e,t){let{print:r}=t,{operator:n}=e.node;((e,{print:t,indent:r})=>{let{parentPath:n}=e;if(Fb(n)&&Ot(e)){r.inc();let{leadingComments:n}=e.node;for(let{type:e,value:r}of(t.breakline(),n))t("CommentLine"===e?`//${r}`:`/*${r}*/`),t.breakline()}})(e,t),r("__left"),r.space(),r(n),((e,{print:t})=>{!function(e){let{right:t}=e.node;return!!e.parentPath.find(Fg)&&Fy(t)}(e)?t.space():t.breakline()})(e,t),r("__right"),(LB(e)||Lj(e))&&(r(";"),r.breakline()),((e,{print:t,indent:r})=>{let{parentPath:n}=e;Fb(n)&&Ot(e)&&(r.dec(),t.breakline())})(e,t)}}),{isIdentifier:FS,isMemberExpression:Fv}=e5;function FT(e,t){!function(e){if(!(e&&"object"==typeof e))throw Error(`☝️ Looks like 'path' not object but '${typeof e}'`)}(e);let r=Fk(t);return e.scope.getAllBindings()[r]}let FE=(e,t)=>FT(e,t)?.path,Fk=e=>"string"==typeof e?e:FS(e)?e.name:Fv(e)?Fk(e.object):"",{isOptionalMemberExpression:Fw,isMemberExpression:FA,isIdentifier:FP,isLiteral:FC}=e5,FI=e=>!!(FC(e)||FP(e)||FA(e))||Fw(e),{isArrayExpression:F_,isLiteral:FN,isIdentifier:FL,isMemberExpression:FO,isTemplateElement:FD,isRegExpLiteral:FM,isClassMethod:FF,isTemplateLiteral:Fj,isJSXText:FB,isJSXAttribute:FR,isJSXIdentifier:F$,isTSTypeReference:FU,isTSTypeParameter:FV,isTSAsExpression:Fq,isTSLiteralType:FK}=e5;function FJ(e){if(FL(e=e.node||e)||F$(e))return e.name;if(FM(e))return e.pattern;if(Fj(e))return FJ(e.quasis[0]);if(FN(e))return e.value;if(FD(e))return e.value.raw;if(FO(e))return`${FJ(e.object)}.${FJ(e.property)}`;if(F_(e))return function e(t,r=[]){for(let n of t.elements){if(F_(n)){e(n,r);continue}r.push(FJ(n))}return r.join(",")}(e);if(FB(e))return e.value;if(FR(e))return e.name.name;if(FF(e))return FJ(e.key);if(FU(e))return FJ(e.typeName);if(FV(e))return FJ(e.name);if(Fq(e))return FJ(e.expression);if(FK(e))return FJ(e.literal);throw Error(`'operator.extract(node)' understands only Literals, Identifiers, TemplateLiteral, TemplateElement, RegExpLiteral, ArrayExpression, MemberExpression, JSXIdentifier, JSXAttribute, JSXText, TSTypeParameter, TSAsExpression, TSLiteralType and TSTypeReference🤷, found: ${e.type}`)}function Fz(e){let{parentPath:t}=e;return(!!e.isIdentifier()||!!e.isLiteral())&&!!t.isObjectProperty({computed:!1})&&!function(e){let[t]=Object.keys(function(e){let{referencesSet:t}=e.scope;return t?Object.fromEntries(t.entries()):{}}(e)),r=e.scope.bindings[t];if(!r)return!1;let{referencePaths:n}=r;for(let e of n)if(e.parentPath.parentPath?.isAssignmentExpression())return!0;return!1}(e)}let FW={init:(e,t)=>FW[e]=t},{entries:FX}=Object,FH=e=>{if(!e.node)return;let{scope:t}=e,r=FY(e),n=FQ(e);if(t&&!n.node){let n=t.getProgramParent().block;t.block!==n||r.node||(n.comments=FG(e))}if(!e.parentPath.isArrayPattern())return void e.remove();let i=e.parentPath.get("elements"),s=i.length-1;for(let[t,r]of FX(i))if(r===e){if(!Number(t)&&s){e.parentPath.node.elements[t]=null;break}e.remove();break}},FG=e=>{let{leadingComments:t}=e.node;if(t?.length)return t;let{parentPath:r}=e;return e.isVariableDeclarator()&&(({node:e})=>1===e.declarations.length)(r)?r.node.leadingComments:[]},FY=e=>e.isVariableDeclarator()?e.parentPath.getPrevSibling():e.getPrevSibling(),FQ=e=>e.isVariableDeclarator()?e.parentPath.getNextSibling():e.getNextSibling(),FZ=e=>{for(let t of e.scope.getProgramParent().path.get("body"))if(t.isExportDefaultDeclaration())return t;return null},F0=(e,t,r)=>{e.traverse({ObjectProperty(e){let{node:n}=e,{key:i,value:s}=n;i.name!==s.name||i.name===t&&(i.name=r,s.name=r,n.shorthand=!0,e.stop())}})},F1=(e,t,r)=>{let n=e.scope.getAllBindings()[t];if(!n)return;let i=n.path;F0(i,t,r),i.scope.rename(t,r)},{isNumericLiteral:F2,isStringLiteral:F3}=e5,F4=(e,t)=>{var r,n;let i,s=e.node||e;F2(s)?(r=s,i=String(n=t),r.value=n,r.raw=i,r.extra.rawValue=n,r.extra.raw=i):F3(s)&&function(e,t){let{raw:r,extra:n,value:i}=e;if(e.value=String(t),'""'===r){e.raw=r.replace(r,`"${t}"`);return}if(r||!i){e.raw="'"+String.raw`${t}`+"'";return}n&&(e.raw=n.raw.replace(i,t),e.extra.rawValue=i)}(s,t)},F5=e=>{let t;for(t of e)if(!function(e){if(!e.isVariableDeclaration())return!1;let t=e.get("declarations.0.init");return!!t.isCallExpression()&&t.get("callee").isIdentifier({name:"require"})}(t))break;return t},{isCallExpression:F6,isObjectExpression:F8}=e5,F9=(e,t,{firstLevel:r=!1}={})=>{let n=[],i=function(e){if(!F8(e))return e.node||e;return F6(e.parentPath)?e.parentPath.node:{type:"ExpressionStatement",expression:e.node||e}}(e),s=F7({name:t,collector:n});return r?s(e):Le(i,{noScope:!0,ObjectExpression:s}),n},F7=({name:e,collector:t})=>r=>{for(let n of r.get("properties")){if(n.isSpreadElement()||n.isRestElement())continue;let r=n.get("key");r.isConditionalExpression()||e===FJ(r)&&t.push(n)}},{isObjectExpression:je,isObjectPattern:jt}=e5,jr=(e,t)=>{let r={};for(let n of e.get("properties")){if(n.isSpreadElement())continue;let e=FJ(n.get("key"));if(t.includes(e)){r[`${e}Path`]=n;continue}}return r},jn=(e,t)=>{if(!je(e)&&!jt(e))throw Error(`☝️Looks like path is not 'ObjectExpression | ObjectPattern', but: '${e.type}' for path: ${e}`);for(let r of e.get("properties"))if(FJ(r.get("key"))===t)return r;return null},ji=e=>{var t;let{raw:r,extra:n,value:i}=e.node||e;if("string"==typeof r)return r;return n&&"string"==typeof n.raw?n.raw:`'${(t=i).includes("\\'")?t:t.replaceAll("'","\\'")}'`},{isArrowFunctionExpression:js,isStatement:ja,isBlockStatement:jo,blockStatement:jl,expressionStatement:ju}=e5,jc=(e,t)=>{let{parentPath:r}=e;return t&&!ja(t)||jo(t)||!js(r)?{currentPath:e}:(r.node.body=jl([ju(e.node)]),{currentPath:r.get("body.body.0")})},{isExpression:jp,toStatement:jh,expressionStatement:jd}=e5,jf=e=>{let{type:t}=e;return["ObjectProperty"].includes(t)?e:jp(e)?jd(e):jh(e)},{isSequenceExpression:jm,isArrayExpression:jy}=e5,jg=e=>e.node||e,jb=(e,t)=>{let{node:r}=e,{trailingComments:n,comments:i,leadingComments:s}=r;delete e.node.trailingComments;let a=e.parentPath.node.comments,o=t.filter(Boolean).map(jg).map(jf);var l=o;for(let e of l)for(let t of l)e!==t&&e.leadingComments===t.leadingComments&&delete t.leadingComments;let{currentPath:u}=jc(e),c=u.replaceWithMultiple(o);if(!c.length)return c;s||jm(e)||delete c[0].node.leadingComments;let p=c.at(0),h=c.at(-1);p.node.comments=i||a,h.node.trailingComments=n;let d=p.parentPath;if(jm(d)&&jy(d.parentPath)){let{parentPath:e,key:t,node:r}=d;e.node.elements.splice(t,1,...r.expressions)}return c},{isExpressionStatement:jx}=e5,{assign:jS}=Object,jv=(e,t)=>{var r,n;(function(e){if(!e)throw Error("☝️ Looks like 'path' is empty in 'replaceWith()'")})(e),t=(r=(n=r=t).__putout_replaced_with?n.__putout_replaced_with:n).node?r.node:r,jx(e.parentPath)&&(e.__putout_replaced_with=t,e=e.parentPath);let{comments:i,loc:s}=e.node,{currentPath:a}=jc(e,t);return a.replaceWith(t),jS(a.node,{comments:i,loc:s}),a},{matchesPattern:jT,isArrayExpression:jE,isImportDeclaration:jk,isExportDeclaration:jw,isStatement:jA,isSequenceExpression:jP,expressionStatement:jC}=e5,jI=(e,t)=>{if(e.insertBefore(t),jP(e)&&jE(e.parentPath)){let{key:t}=e;e.parentPath.node.elements.splice(t,1,...e.node.expressions)}},j_=(e,t)=>{let{comments:r}=e.node;e.node.trailingComments?.length&&e.getNextSibling()?.node?.leadingComments&&delete e.node.trailingComments,t.trailingComments&&delete t.trailingComments,jA(e)&&!jA(t)?e.insertAfter(jC(t)):jE(e.parentPath)?e.parentPath.node.elements.splice(e.key,1,e.node,t):e.insertAfter(t),e.node.comments=r},jN=e=>jT(e.node||e,"module.exports"),jL=(e,t)=>{let r=e.findParent(e=>e.scope.bindings[t]);return r?r.scope.bindings[t]:null},jO=e=>{let t=e.length,r=0;for(;r<t-1&&jk(e[r]);)++r;return e[r]},jD=e=>{for(let t of e.scope.getProgramParent().path.node.body)if(jk(t)||jw(t))return!0;return!1},{isStringLiteral:jM,isArrayExpression:jF,isObjectExpression:jj,isTemplateLiteral:jB,isBooleanLiteral:jR}=e5,j$=Lb([["-: parentPath.parentPath -> ObjectProperty"],["-: node.elements.0 -> !StringLiteral"],["-: parentPath -> !ArrayExpression"],["-: parentPath.node.elements.length","=",2],["+",e=>{let t=e.node.elements.filter(jM).length;return e.node.elements.length===t}]]),jU=Lb([["-: -> !",LU],["+: parentPath.parentPath -> ForOfStatement"]]),jV=Lb([["-: node.elements.length -> -"],["+",e=>{let[t,r]=e.node.elements;return jR(t)&&jj(r)}],["-",jU],["+: node.elements.0 -> ObjectExpression"],["-: node.elements.1 -> SpreadElement"],["+",e=>{let{elements:t}=e.node,r=t.at(0),n=t.at(-1);return jM(r)&&jj(n)}]]),jq=Lb([["-",function(e){if(!e.isArrayExpression()||!e.parentPath.isArrayExpression())return!1;let t=e.parentPath.node.elements,r=t.filter(jF).length,n=!jF(t.at(-1));if(r&&n)return!1;let{length:i}=t;return i<=3&&1!==i}],["-",e=>{let[t,r]=e.node.elements;return!!t&&!!r&&!!jj(r)&&(!!jM(t)||jB(t))}],["+: -> !",e=>{let[t,r]=e.node.elements;return!!jM(t)&&!!jM(r)&&t.value.length>20}],["+: -> !",L$]]),jK=Lb([["+",j$],["-: -> !",jq],["+: -> !",jV]]),jJ=Lb([["-: -> !",L$],["-: parentPath -> !",L1],["+: parentPath.node.elements.length","=",2]]),jz=Lb([["-: -> !",Mg],["+",(e,{needsToHideIndent:t})=>t],["+: -> !",({node:e})=>jj(e.elements.at(-1))]]),{isObjectExpression:jW,isObjectProperty:jX,isCallExpression:jH,isAwaitExpression:jG,isBooleanLiteral:jY,isNullLiteral:jQ,isStringLiteral:jZ,isSpreadElement:j0,isIdentifier:j1,isNumericLiteral:j2,isArrayExpression:j3}=e5,j4=Lb([["-: node.elements -> !",function(e){for(let t of e)if(j2(t))return!0;return!1}],["+: -> !",e=>e.find(jX)]]),j5=Lb([["-: -> !",e=>{let{elements:t}=e.node,[r,n]=t;return jZ(r)&&jZ(n)}],["-: -> !",L$],["+: parentPath.node.elements.0 -> ArrayExpression"]]),{round:j6}=Math,j8=(e,{maxElementLengthInOneLine:t})=>{let{elements:r}=e.node;for(let e of r.filter(jZ))if(e.value.length>=t)return!0;return!1},j9=Lb([["-: node.elements.length","<",2],["+",(e,{maxElementLengthInOneLine:t})=>{let{elements:r}=e.node,n=3*t;for(let e of r.filter(jZ))if(e.value.length>=n)return!0;return!1}],["-: -> !",LU],["-",e=>{let{elements:t}=e.node;return t.filter(jW).length}],["+",j8],["+",(e,{maxElementLengthInOneLine:t})=>{let[r]=e.node.elements;return!!j1(r)&&r.name.length>t}]]),j7=Lb([["-: node.elements.0 -> ObjectExpression"],["+",e=>{let{elements:t}=e.node;return t.length>3}]]),Be=Lb([["-: node.elements.0 -> !StringLiteral"],["+",(e,{maxElementsInOneLine:t})=>{let{elements:r}=e.node;return r.length>t}]]),Bt=Lb([["-: node.elements.length -> !","=",1],["+",({node:e,parentPath:t})=>e===t.node.body]]),Br=e=>{let{elements:t}=e.node,{length:r}=t.filter(jZ);return t.length===r},Bn=Lb([["-: parentPath -> !ArrayExpression"],["-: -> !",Br],["-",j8],["+: node.elements.length",(e,{maxElementsInOneLine:t})=>e<=t]]),Bi=Lb([["-: node.elements.length -> -"],["-",e=>{let t=e.get("elements");return!!My(t.at(-1))&&t.filter(Mm).length===t.length-1}],["-",Bn],["+",function(e){let[t]=e.node.elements;return jH(t)}],["+",(e,{maxElementLengthInOneLine:t})=>{let r=e.get("elements").filter(j3),{length:n}=r;if(!n||jX(e.parentPath))return!1;for(let e of r){if(j8(e,{maxElementLengthInOneLine:t}))break;if(Br(e))return!0}return!1}],["+",Bt],["+",j9],["+",Be],["+",j7],["+",LZ],["-",function(e){let t=e.get("elements");if(1!==t.length)return!1;let[r]=t;return(!r.isStringLiteral()||!(r.node.value.length>10))&&(!!(!r.isIdentifier()&&FI(r))||r.isMemberExpression())}],["-",e=>{let{elements:t}=e.node;if(t.length>1)return!1;let[r]=t;return j0(r)}],["-",L0],["-",jV],["-",function(e){return e.parentPath.isForOfStatement()}],["-",e=>{let{elements:t}=e.node,[r,n]=t;return jY(r)&&FI(n)}],["-",e=>{let{elements:t}=e.node,[r,n]=t;return jQ(r)&&FI(n)}],["-",e=>{let{elements:t}=e.node,[r,n]=t;if(FI(r))return jH(n)||jG(n)}],["-",(e,{maxElementsInOneLine:t})=>{let{node:r,parentPath:n}=e,{elements:i}=r,{length:s}=i,[a,o]=i;return!!n.isCallExpression()&&!!jZ(a)&&!!jZ(o)&&s<t}],["-",function(e){let{elements:t}=e.node,[r,n]=t;if(t.length>2||!jZ(r)||!jZ(n))return!1;let i=r.value.length;return j6(n.value.length/i)>2}],["-",e=>{let{node:t,parentPath:r}=e,{elements:n}=t,{length:i}=n,[s,a]=n;return!(i>2)&&!!r.isObjectProperty()&&!!jZ(s)&&!!jZ(a)&&!LG(e)}],["-",L1],["-",e=>{let{elements:t}=e.node,[r,n]=t;return LS(r)&&LA(n)}],["-",LQ],["-",e=>{let{elements:t}=e.node,[r,n]=t;return Lv(r)&&LS(n)}],["-",e=>{let{elements:t}=e.node,[r,n]=t;return FI(r)&&jW(n)}],["-",e=>!!e.getNextSibling().isArrayExpression()||e.getPrevSibling().isArrayExpression()],["-",j5],["-",j4],["+",function(e,{maxElementLengthInOneLine:t}){if(e.get("elements").length<2)return!1;for(let r of e.get("elements"))if(r.isStringLiteral()&&r.node.value.length>t)return!0;return!1}],["+",LG]]),Bs=Lb([["-: -> !",Mg],["+: -> SpreadElement"],["+: -> !ObjectExpression"]]),Ba=({parentPath:e})=>{let{elements:t}=e.node;return 1===t.length},Bo=Lb([["-: -> !",L$],["-: parentPath ->",LG],["+",L0],["+",Ba]]),Bl=Lb([["-: parentPath -> !ArrayExpression"],["-: parentPath ->",LG],["+",L0],["+",Ba]]),{isSpreadElement:Bu,isCallExpression:Bc}=e5,Bp=e=>t=>e(t.at(-1)),Bh=Lb([["-: -> !",LZ],["-: node.elements",Bp(Bu)],["+: node.elements -> !",Bp(Bc)]]),{isObjectExpression:Bd}=e5,Bf=Lb([["+: -> !",Mb],["-: -> !",(e,{needsIndentBeforeElement:t})=>t],["+",Mx]]),Bm=Lb([["+",Bf],["+",Bh]]),By=Lb([["-: -> !",Mg],["-",Lq(Bd)],["+: -> !ObjectExpression"]]),Bg=Lb([["+",Lq(Bd)],["-: -> SpreadElement"],["-: -> Identifier"],["+: -> !CallExpression"]]),Bb=Lb([["-",Mb],["+",Lq(Bg)],["+: -> !ObjectExpression"]]),{isObjectExpression:Bx}=e5,BS={beforeIf:Bo,before(e,{print:t}){t.breakline()},print(e,t,r){let{print:n,maybe:i,indent:s}=t,{maxElementsInOneLine:a,trailingComma:o,maxElementLengthInOneLine:l}=r,u=jK(e),c=Bi(e,{maxElementsInOneLine:a,maxElementLengthInOneLine:l}),p=e.get("elements");n("["),i.indent.inc(u),i.print.newline(c);let h=p.length-1;for(let[t,r]of p.entries()){let a=t===h,l=Bs(r,{multiline:c});if(BT(r)&&n.newline(),l&&s(),n(r),i.print(Bm(e,{trailingComma:o,isLast:a,needsIndentBeforeElement:l}),","),By(r,{multiline:c})){n.newline();continue}Bb(r,{isLast:a})&&n.space()}i.indent.dec(u),function(e,t,r){let{maybe:n,indent:i}=t,{multiline:s}=r,a=jJ(e);jz(e,{multiline:s,needsToHideIndent:a})&&(n.indent.dec(a),i(),n.indent.inc(a))}(e,t,{multiline:c}),Bh(e)&&n.breakline(),n("]")},afterIf:Bl,after(e,{print:t,indent:r}){r.dec(),t.breakline(),r.inc()}},Bv=Lb(["-: -> SpreadElement","-: -> Identifier","+: -> !CallExpression"]),BT=Lb([["-",Bv],["-",Lq(Bx)],["+",LK(Bx)]]),BE=MV((e,{indent:t,maybe:r,print:n},i)=>{let{maxElementsInOneLine:s}=i;n("[");let a=e.get("elements");t.inc();let o=!(({parentPath:e})=>e.parentPath.parentPath?.isForOfStatement())(e)&&a.length>s,l=a.length-1;for(let[e,t]of(r.print(o&&a.length,"\n"),a.entries()))r.indent(o),n(t),o?n(",\n"):e<l&&(n(","),n.space());t.dec(),r.indent(a.length&&o),n("]")}),Bk=(e,{print:t,maybe:r})=>{r.print(function(e){let{parentPath:t}=e;return!!t.isObjectProperty()&&!t.node.shorthand||!!(e.parentPath.isFunction()||t.isTSParameterProperty())||t.isArrayPattern()}(e),"__left"),t.space(),t("="),t.space(),t("__right")},Bw=MV((e,{print:t})=>{t("..."),t("__argument")}),BA=(e,t)=>{let{print:r}=t;r("..."),r("__argument"),L7(e)&&r(",")},BP=()=>{},BC=Dd({checkParens:!1,condition:(e,t,r)=>{let{parentPath:n}=e,{type:i}=n,{roundBraces:s}=r;return"ArrowFunctionExpression"===i||"ConditionalExpression"===i&&e!==n.get("test")||"LogicalExpression"===i||s.sequence},print(e,t){let{write:r,traverse:n,indent:i,maybe:s}=t,a=e.get("expressions"),o=a.length-1,l=Ot(e);for(let[u,c]of(l&&(i.inc(),r.breakline(),((e,{print:t})=>{if(Ot(e)){let{leadingComments:r}=e.node;for(let{type:e,value:n}of r)t("CommentLine"===e?`//${n}`:`/*${n}*/`),t.breakline()}})(e,t)),a.entries()))n(c),u<o&&(r(","),s.write.space(!l),s.print.breakline(l));l&&(i.dec(),r.breakline())}});BC.printLeadingCommentLine=BP,BC.printLeadingCommentBlock=BP;let BI=Dd({print:(e,t)=>{let{print:r}=t;r("__tag"),r("__quasi")}}),{isBinaryExpression:B_}=e5,BN=(B=(e,{print:t})=>{t("__left"),t.space(),t("+"),t.breakline(),t("__right")},(e,t,r)=>{let{indent:n,print:i}=t,s=(({parentPath:e})=>B_(e))(e);s||(n.inc(),i.breakline()),B(e,t),s||n.dec()}),BL=Dd((e,{print:t,indent:r,maybe:n})=>{let{operator:i}=e.node;if("in"===i||"instanceof"===i){t("__left"),t(" "),t(i),t(" "),t("__right");return}if(MF(e))return BN(e,{print:t,indent:r,maybe:n});t("__left"),t.space(),t(e.node.operator),((e,{print:t})=>{let{right:r}=e.node;return"UnaryExpression"===r.type&&"+"===r.operator?t(" "):t.space()})(e,{print:t}),t("__right")}),{isLogicalExpression:BO}=e5,BD=Lb(["+: -> ReturnStatement","+: -> VariableDeclarator"]),BM=Dd({condition:Lb(["+: parentPath -> UnaryExpression","+: parentPath -> AwaitExpression"]),print(e,{print:t,maybe:r},n){let{operator:i}=e.node;t("__left");let s=BF(e,n);r.indent.inc(s),s?t.breakline():t.space(),r.indent.dec(s),t(i),t.space(),t("__right")}}),BF=Lb([["-: -> !",(e,{maxLogicalsInOneLine:t})=>{let[r,n]=(e=>{let[t]=function e(t){let r=0;do{++r;let n=t.get("right");if(BO(n)&&(r+=e(n)[0]),!function(e){let{operator:t}=e.node;return"||"===t||"&&"===t}(t=t.get("left")))break}while(t.isLogicalExpression())return[r]}(e),[r,n]=function(e){let t=0;do++t,e=e.parentPath;while(e.isLogicalExpression())return[t,{type:e.type}]}(e);return[n,t+r,t,r]})(e);return!!BD(r)&&n>t}],["+: node.operator ->","=","||"],["+: node.operator ->","=","&&"]]),Bj=Lb([["-: node.alternate -> ObjectExpression"],["-: node.consequent -> ObjectExpression"],["-: parentPath -> CallExpression"],["+",LG]]),BB=Dd((e,t)=>{let{print:r}=t;Bj(e)?(({print:e,indent:t})=>{e("__test"),e.space(),e("?"),t.inc(),e.breakline(),e("__consequent"),e.space(),e(":"),e.breakline(),t.dec(),e("__alternate")})(t):(r("__test"),r.space(),r("?"),r.space(),r("__consequent"),r.space(),r(":"),r.space(),r("__alternate"))}),BR=(e,{print:t,traverse:r})=>{for(let n of(t("static "),t("{"),t.breakline(),e.get("body")))r(n);t.indent(),t("}"),t.newline()},B$=Dd({print:(e,t)=>{let{print:r,maybe:n}=t,{options:i}=e.node;r("import("),r("__source"),n.print(i,","),n.print.space(i),r("__options"),r(")")}}),{isJSXElement:BU}=e5,BV={before(e,{print:t}){t("(")},condition:e=>{let{expression:t}=e.node;return!BU(t)},print(e,{print:t}){t("__expression")},after(e,{print:t}){t(")")}},{isClassAccessorProperty:Bq}=e5,BK=DD((e,t)=>{let{node:r}=e,{accessibility:n,declare:i,optional:s,definite:a}=r,{print:o,maybe:l}=t;Bq(e)&&o("accessor ");let u=e.get("value");l.print(i,"declare "),l.print(n,`${n} `),l.print(r.static,"static "),l.print(r.readonly,"readonly "),DB(e,t),Dj(e,t),l.print(s,"?"),l.print(a,"!"),Mq(e,t),LY(u)&&(o.space(),o("="),o.space(),o("__value")),o(";"),o.newline()}),BJ=BK,Bz=BK,BW=(e,{print:t})=>{t("#"),t("__id")},BX=(e,t,r)=>{BK(e,t,r)},BH=(e,{write:t})=>{t("this")},BG={print(e,{print:t,indent:r}){if(r(),t("with"),t.space(),t("("),t("__object"),t(")"),e.node.body.body){t.space(),t("__body");return}r.inc(),t.newline(),t("__body"),r.dec()},afterIf:e=>Lz(e),after(e,{print:t}){t.linebreak(),Ob(e)}},BY=(e,{write:t,maybe:r})=>{let{parentPath:n}=e;t(";"),r.write.newline(!LX(e)&&!LX(n))},BQ=(e,{print:t,maybe:r})=>{r.indent(!L8(e)),t("__label"),t(":"),t.space(),t("__body")},BZ=(e,{print:t,maybe:r,write:n})=>{let{label:i}=e.node;r.indent(!L8(e)),t("continue"),r.print.space(i),t("__label"),n(";"),t.newline()},B0=e=>e.node.directives?e.get("directives"):[],B1=(e,t,r)=>{let n,i,{body:s}=e.node,{traverse:a,maybe:o,write:l}=t;a(e.get("interpreter")),Dr(e,t,r);let u=B0(e);for(let e of u)a(e),o.write.newline(s.length);e.get("body").forEach(a),(!u.length||s.length)&&(s.length&&(i=(n=s.at(-1)).node||n,i?.trailingComments?.length>1)||l.endOfFile())},B2=e=>!LX(e),B3={beforeIf:(...e)=>!L8(...e),before:(e,{indent:t})=>{t()},print(e,{print:t}){t("do"),t.space(),t("__body"),t.space(),t("while"),t.space(),t("("),t("__test"),t(")"),t(";")},afterSatisfy:()=>[B2],after(e,{print:t}){t.newline()}},B4=e=>e.parentPath.isSwitchCase(),B5={split(e,{print:t}){t.newline()},print(e,{print:t,maybe:r}){let{label:n}=e.node;r.indent(!L8(e)),t("break"),r.print.space(n),t("__label"),t(";")},afterSatisfy:()=>[LB,LW,B4,L5]},{isVariableDeclaration:B6,isFunction:B8,isBlockStatement:B9}=e5,B7=Lb(["-: -> ClassDeclaration","+: -> !FunctionDeclaration"]),Re={print(e,{print:t,traverse:r,maybe:n}){let i=e.get("declaration");t.indent(),t("export default "),r(i),n.print(B7(i),";")},afterIf:Lb([LJ(B9),Lz]),after(e,{print:t}){t.newline(),Rt(e)&&t.newline()}},Rt=Lb([["-: parentPath -> BlockStatement"],["+: -> !",Lq(B6)],["+: node.declaration -> !",B8]]),Rr=(e,{print:t,indent:r})=>{r(),t("for"),t.space(),t("("),t("__left"),t(" in "),t("__right"),t(")"),e.get("body").isBlockStatement()&&t.space(),t("__body")},Rn=(e,{print:t},r)=>{let{roundBraces:n}=r,{node:i}=e;if(i){if(Ro(e,{roundBraces:n}))return void t.space();t(" ")}},Ri=Lb([["-: -> !SequenceExpression"],["+",(e,{roundBraces:t})=>t.sequence]]),Rs=Lb([["-: -> !ArrowFunctionExpression"],["+",(e,{roundBraces:t})=>t.arrow]]),Ra=Lb([["-: -> !UnaryExpression"],["+: node.operator",e=>"!"===e]]),Ro=Lb([["+: -> StringLiteral"],["+: -> TemplateLiteral"],["+: -> ArrayExpression"],["+: -> ObjectExpression"],["+",Ra],["+",Ri],["+",Rs]]),{isBlockStatement:Rl}=e5,Ru={print(e,t,r){let{print:n,maybe:i,indent:s,traverse:a}=t;s(),n("switch"),n("("),n("__discriminant"),n(")"),n.space(),n("{"),n.newline();let o=e.get("cases"),l=o.length-1;for(let[e,u]of o.entries()){let o=u.get("test"),c=e===l;s(),OR(u,t,r),LY(o)?(n("case"),Rn(o,t,r),a(o)):n("default"),n(":"),Rp(u)&&n.newline();let p=u.get("consequent"),[h]=p,d=Rl(h);for(let e of(i.indent.inc(!d),p))Rl(e)&&n.space(),n(e);i.indent.dec(!d),i.print.linebreak(!c)}n.indent(),n("}"),Rc(e)&&n.newline()},afterSatisfy:()=>[Lz],after(e,{print:t}){t.breakline(),t.newline()}},Rc=Lb([["-",Lz],["+: -> !",LX]]),Rp=Lb(["-: node.consequent.length -> -","+: node.consequent.0 -> !BlockStatement"]),Rh={printTrailingCommentBlock:(e,t,r,{printComment:n})=>{let{maybe:i}=t,s=Lz(e);i.print.breakline(!s),n()},printTrailingCommentLine:(e,t,r,{printComment:n})=>{let{print:i}=t;i.indent(),n(),i.newline()},beforeIf:(...e)=>!L8(...e),before:(e,{indent:t})=>{t()},print(e,{print:t,indent:r}){if(t("while"),t.space(),t("("),t("__test"),t(")"),e.node.body.body){t.space(),t("__body");return}r.inc(),t.newline(),t("__body"),r.dec()},afterIf:e=>Lz(e),after(e,{print:t}){t.linebreak(),Ob(e)}},Rd=(e,{print:t})=>{t("__key"),t(":"),t.space(),t("__value"),t(",")},Rf=(e,{write:t,traverse:r,indent:n})=>{let i=e.get("attributes");if(i.length){for(let e of(t.space(),t("with"),t.space(),t("{"),t.breakline(),n.inc(),i))n(),r(e),t.newline();n.dec(),t("}")}},Rm=(e,t)=>{let{print:r}=t,{exportKind:n}=e.node;r("export "),"type"===n&&r("type "),r("* from "),r("__source"),Rf(e,t),r(";"),r.newline()},{isExportNamespaceSpecifier:Ry,isVariableDeclaration:Rg,isExportNamedDeclaration:Rb,isExportDefaultSpecifier:Rx}=e5,RS={maxOneLineSpecifiers:2},Rv=(e,{print:t})=>{let{local:r,exported:n}=e.node;t("__local"),n.name!==r.name&&(t(" as "),t("__exported"))},RT=(e,{print:t})=>{t("* as "),t("__exported")},RE=(e,{print:t})=>{t("__exported")},Rk=DD({beforeIf(e){let t=e.getPrevSibling();return!Ox(e)&&Rg(t)},before(e,{print:t}){t.linebreak()},print(e,t,r){let{print:n,traverse:i,indent:s,maybe:a}=t,{trailingComma:o}=r,{exportKind:l}=e.node,u=e.get("specifiers"),{maxOneLineSpecifiers:c}=RS,p=e.get("source");if(s(),n("export"),"type"===l&&u.length&&n(" type"),Ry(u[0])){n(" "),n(u[0]),n(" from "),n("__source"),Rf(e,t),n(";"),a.print.newline(!LX(e));return}let h=u.length,d=!LY(p)||h>c;if(u&&!e.node.declaration){n.space();let[r,...l]=u;if(u.length)if(Rx(r)&&!l.length)i(r);else{Rx(r)?(i(r),n(","),n.space()):l.unshift(r),n("{"),s.inc(),a.print.newline(d);let e=h-1;for(let[t,r]of l.entries()){let s="type"===r.node.exportKind,l=t<e;a.indent(d),a.print(s,"type "),i(r),l&&!d?n(", "):d&&a.print(l||o,","),a.print.newline(d)}s.dec(),s(),n("}")}else n("{}");let c=e.get("source");LY(c)&&(n(" from "),i(c),Rf(e,t)),n(";"),a.print.newline(Lz(e)||e.parentPath.isTSModuleBlock());return}n(" "),n("__declaration")},afterIf:e=>!(LX(e)||e.get("declaration")[Om])&&(!!L6(e)||LB(e)),after(e,{print:t,indent:r}){Rb(e.getNextSibling())&&r(),t.newline(),Ob(e)}});var Rw=r(5638);let{isExportDeclaration:RA}=e5,RP={print(e,t,r){let{print:n,maybe:i,write:s,traverse:a,indent:o}=t,{phase:l}=e.node,u="type"===e.node.importKind,c=e.get("specifiers");o(),s("import"),i.write(u," type"),i.write(l,` ${l}`);let p=!1,h=c.length-1,{defaults:d,namespaces:f,imports:m}=(0,Rw.S)(c);for(let e of(i.write(c.length," "),d))a(e.get("local")),i.write(h,","),i.write.space(h);for(let e of f)s("* as "),a(e.get("local"));let y=function(e,t){let{maxSpecifiersInOneLine:r,maxPropertiesLengthInOneLine:n}=t;for(let{node:t}of e)if(t.imported.name!==t.local.name||t.imported.name.length>=n)return 1;return r}(m,r),g=m.length-1;for(let[e,t]of m.entries()){let r=e===g,n=!r,{imported:l,local:u}=t.node;if(o.inc(),i.write(!p,"{"),i.write.breakline(g>=y),p=!0,"type"===t.node.importKind&&s("type "),a(t.get("imported")),l.name!==u.name&&(s(" as "),s(u.name)),g<y&&n&&(i.write(h,","),i.write.space(h)),g>=y){i.write(h,",");let t=e===h,r=e===h-1;i.write.newline(r&&d.length),i.write.newline(t)}o.dec(),i.write(r,"}")}i.write(c.length," from"),n.space(),n("__source"),Rf(e,t),n(";"),Lz(e)&&n.newline()},afterIf:e=>!LX(e)&&!e.getNextSibling().isImportDeclaration(),after(e,{print:t}){t.newline(),Ob(e)}};RP.printTrailingCommentBlock=(e,t,r,{printComment:n})=>{let{maybe:i}=t,s=e.getNextSibling();i.print.breakline(!RA(s)),n()},RP.printTrailingCommentLine=(e,t,r,{printComment:n})=>{let{print:i}=t;n(),i.breakline()};let RC={print(e,{print:t,maybe:r}){let{test:n,update:i,body:s}=e.node;if(r.indent(!L8(e)),t("for"),t.space(),t("("),t("__init"),t(";"),r.print.space(n),t("__test"),t(";"),r.print.space(i),t("__update"),t(")"),s.body){t.space(),t("__body");return}let a=!e.get("body").isEmptyStatement();r.print.newline(a),r.indent.inc(a),t("__body"),r.indent.dec(a)},afterIf:Lq(LY),after(e,{print:t}){t.linebreak(),Ob(e)}},RI={print(e,{print:t,indent:r}){r(),t("debugger;")},afterSatisfy:()=>[Lz,LB,L5],after(e,{print:t}){t.newline()}},{isExpressionStatement:R_}=e5,RN={print(e,{print:t,maybe:r}){let n=e.get("finalizer");t.indent(),t("try"),t.space(),t("__block"),t("__handler"),n.node&&(t.space(),t("finally"),t.space(),t(n),r.print.newline(!Lz(e)))},afterSatisfy:()=>[Lz],after(e,{print:t}){t.newline(),(RL(e)||L_(e.getNextSibling()))&&t.breakline()}},RL=e=>R_(e.getNextSibling()),RO=(e,{print:t,maybe:r})=>{let{parentPath:n}=e,i=e.get("param"),s=e.get("body");t.space(),t("catch"),i.node&&(t("("),t(i),t(")")),t.space(),t(s),r.print.newline(LB(n))},{isTryStatement:RD,isBlockStatement:RM}=e5,RF=Lb([["+",LK(RD)],["-: ->",Ox],["+: ->",({parentPath:e})=>e.node?.body?.length>2],["+: ->",LK(RM)]]),Rj=Lb(["-: parentPath -> !IfStatement","+: parentPath.node.alternate -> +"]),RB={beforeIf:RF,before(e,{print:t}){t.linebreak()},print(e,t,r){let{maybe:n,print:i}=t;if(n.indent(!L8(e)),i("return"),Rn(e.get("argument"),t,r),RR(e)){i("("),i.breakline(),i("__argument"),i(");");return}i("__argument"),i(";")},afterIf:Lb([["+",Rj],["-",LX],["-: parentPath",LX],["+",Or]]),after(e,{print:t}){t.newline()}},RR=Lb(["-: node.argument -> !JSXElement","+: node.argument.leadingComments -> +"]),{isCallExpression:R$}=e5,RU=Lb(["-: -> !MemberExpression","+: parentPath.parentPath -> ExpressionStatement"]),RV=Lb(["-: -> !CallExpression","+: parentPath -> ReturnStatement","+: parentPath -> ExpressionStatement"]),{isFunctionDeclaration:Rq,isExportDeclaration:RK,isDoWhileStatement:RJ}=e5,Rz=Lb(["ArrowFunctionExpression","ObjectMethod"]),RW=Lb([["-: -> !",({parentPath:e})=>!!e.isIfStatement()&&!e.node.alternate],["+",e=>e.find(Rz)]]),RX=Lb([["+",LB],["-",L9([({parentPath:e})=>RJ(e),e=>!Lz(e)&&!Lz(e.parentPath)&&Lj(e.parentPath),e=>!!e.parentPath.isIfStatement()&&!!e.parentPath.parentPath.isIfStatement()&&!LY(e.parentPath?.parentPath.getNextSibling())])],["+",RW],["-",e=>{let{parentPath:t}=e;return t.isStatement()&&!e.node.body.length&&!Lz(t)}],["-",function({parentPath:e}){return!!e.isTryStatement()||e.parentPath?.isTryStatement()}],["-",({parentPath:e})=>/FunctionExpression/.test(e.type)],["-",LX],["-",function(e){return!!Rq(e.parentPath)&&!!RK(e.parentPath?.parentPath)&&!Lz(e.parentPath?.parentPath)}],["-: parentPath -> ObjectMethod"],["+: -> !",function(e){let{parentPath:t}=e;if(!t.isIfStatement())return!1;let r=t.get("alternate");return e!==r&&LY(r)}]]),RH=Lb([["-: parentPath.parentPath -> !ArrayExpression"],["+: parentPath.parentPath.node.elements.length","=",3]]),RG=e=>B0(e).length,RY=Lb([["+",RG],["+: node.body.length -> +"]]),RQ=Lb([["-: node.body.length -> -"],["+",RG]]),RZ={beforeIf:LB,before:(e,{indent:t})=>{t()},print(e,t,r){let{indent:n,maybe:i,write:s,traverse:a}=t,o=e.get("body"),l=B0(e),u=RH(e);for(let t of(i.indent.inc(!u),s("{"),RY(e)&&s.newline(),l))a(t);RQ(e)&&s.linebreak();let c=(e=>{if(!R$(e.parentPath.parentPath))return!1;let t=e.find(RU);if(t)return O1(t);let r=e.find(RV);return!!r&&O1(r.get("callee"))})(e);for(let e of(i.indent.inc(c),o))a(e);Dr(e,t,r),n.dec(),i.indent(o.length),i.indent.inc(u),s("}"),i.indent.dec(c)},afterIf:RX,after(e,{write:t}){t.newline(),Ob(e.parentPath)}},R0={beforeIf(e){let{parentPath:t}=e;return!(!t.isBlockStatement()&&t.isStatement())&&!LH(e)&&!Ox(e)},before(e,{print:t}){t.linebreak(),Og(e)},print(e,{indent:t,print:r,maybe:n,traverse:i}){let{node:s}=e;t(),r("for"),n.print(s.await," await"),r.space(),r("("),r("__left"),r(" of "),r("__right"),r(")");let a=e.get("body");if(a.isBlockStatement()){r.space(),r("__body");let{length:t}=a.node.body;n.print.newline(!t&&!LX(e)&&!Lz(e));return}t.inc(),r.newline(),i(a),t.dec(),n.markAfter(a[Om],e)},afterIf:Lz,after(e,{print:t}){t.linebreak(),Ob(e)}},{isBlockStatement:R1}=e5,{isBlockStatement:R2,isStatement:R3,isExpressionStatement:R4,isReturnStatement:R5,isContinueStatement:R6}=e5,R8=e=>!(R2(e)||R5(e)||R6(e))&&!R4(e),R9=Lb([["-: -> !",LB],["+: parentPath.parentPath -> BlockStatement"]]),R7=Lb([["-: -> !",LB],["-: -> !",e=>R2(e.node.consequent)],["-",e=>e.node.consequent.body.length],["+: parentPath.parentPath -> FunctionDeclaration"]]),$e={printTrailingCommentBlock:(e,t,r,{printComment:n})=>{let{maybe:i}=t,s=Lz(e);i.print.breakline(!s),n()},printTrailingCommentLine:(e,t,r,{printComment:n})=>{let i=Lz(e),{consequent:s}=e.node,a=R1(s),{print:o}=t;o.indent(),i||a||o.space(),n(),(i||LB(e))&&o.newline()},print:(e,{indent:t,print:r,maybe:n,write:i,traverse:s})=>{let{parentPath:a}=e,o=a.get("alternate");e!==o&&t(),r("if"),r.space(),r("("),r("__test"),r(")");let l=e.get("consequent"),u=e.get("alternate"),c=l.isBlockStatement(),p=l.isVariableDeclaration();if(c)r.space(),r(l),(L5(e.parentPath)||R9(e))&&n.print.newline(!l.node.body.length);else{let t=!e.get("consequent").isEmptyStatement();n.print.newline(t),n.indent.inc(t),n.indent(p),r(l),n.indent.dec(t)}if(u.isBlockStatement()?(i.space(),i("else"),i.space(),s(u)):u.isIfStatement()?(u.get("consequent").isBlockStatement()?i.space():(n.write.newline(R8(l)),t()),i("else "),s(u)):LY(u)&&(n.write.newline(p||R8(l)),n.indent(!c),n.write.space(c),i("else"),i.splitter(),t.inc(),s(u),t.dec()),!Lz(e)&&!l.isBlockStatement())return;let h=e.parentPath.getNextSibling();e!==o||(({parentPath:e})=>e.parentPath.isProgram())(e)||R3(h)||r.newline(),R7(e)&&r.newline()},afterSatisfy:()=>[Lz],after:(e,{print:t})=>{t.linebreak(),Ob(e)}},$t=LJ(Lb(["Program","BlockStatement","ExportNamedDeclaration","LabeledStatement"])),$r=Lb([["+: parentPath -> SwitchCase"],["-: -> !",$t],["-: -> !",Lz],["+",Or],["+",L6]]),$n=(e,{maxVariablesInOneLine:t})=>{let{length:r}=e.node.declarations;return r>t},$i=(e,{maxVariablesInOneLine:t})=>{let{length:r}=e.node.declarations;return r<=t},{isIfStatement:$s,isFunctionDeclaration:$a,isVariableDeclaration:$o,isExpressionStatement:$l,isAssignmentExpression:$u}=e5,$c=e=>{let t=e.getPrevSibling();return e.node.loc?.start.line===t.node?.loc?.start?.line+2},$p=Lb([["-: parentPath -> !BlockStatement"],["+: parentPath.node.body.length",e=>e<3]]),$h=Lb([["-: -> !",LK(LY)],["-",$c],["-",LX],["-: -> !",LK($o)],["+: -> !",Lq($o)]]),$d=Lb([["-: ->",LK(LY)],["+",Lq($o)]]),$f=Lb([["-",$d],["-",$c],["+",Lq(LG)]]),$m=Lb([["-",Lz],["+",LB]]),$y=Lb([["-",LX],["+",LG]]),$g=Lb([["-: -> !",Lq($l)],["-",$p],["+",Lq(e=>$u(e.node.expression))]]),$b=Lb([["-: parentPath -> !",LX],["+: -> !",LB]]),$x=Lb([["-",$b],["+",Lq($s)],["+",Lq($a)],["+",$m],["+",$y],["+",$g],["+",$f],["+",$h],["+",L6],["+: parentPath -> ExportNamedDeclaration"],["+: parentPath -> TSModuleBlock"]]),$S=Lb([["-: -> !",$r],["+",$x]]),{isBlockStatement:$v}=e5,$T=Lb([["-",LH],["-",Ox],["-: parentPath ->",Ox],["+",LK($v)]]),$E=Lb([Lj,LB,({parentPath:e})=>LO(e),e=>LD(e.parentPath),LR]),$k=Lb([["+",$t],["+: parentPath -> SwitchCase"],["+",e=>e.parentPath.isTSModuleBlock()],["+",L5],["+",LR]]),$w={beforeIf:$T,before(e,{print:t}){t.breakline()},print:D0((e,t,r)=>{let{kind:n}=e.node,{maybe:i,write:s,traverse:a,indent:o}=t,{maxVariablesInOneLine:l}=r;$E(e)&&o(),s(n),((e,{write:t})=>{let{declarations:r}=e.node;if(!r.length)return;let{id:n}=r[0];if("ArrayPattern"===n.type||"ObjectPattern"===n.type)return t.space();t(" ")})(e,{write:s});let u=e.get("declarations"),c=u.length-1;for(let[n,o]of(i.indent.inc(c),u.entries())){let p=o.get("id"),h=o.get("init"),d=n===c;if(a(p),LY(h)&&(s.space(),s("="),i.write.space(!MF(h)),a(h)),d)continue;let f=u[n+1];if(s(","),Ot(f)){OR(f,t,r);continue}if($n(e,{maxVariablesInOneLine:l})){s.breakline();continue}$i(e,{maxVariablesInOneLine:l})&&s.space()}i.indent.dec(c),$k(e)&&s(";"),$r(e)&&s.newline(),$S(e)&&(o(),Ob(e))}),afterIf:$x,after(e,{print:t}){t.newline()}},{isCallExpression:$A,isAssignmentExpression:$P,isExpressionStatement:$C,isStatement:$I}=e5,$_=Lb([["-: parentPath -> !IfStatement"],["-: parentPath.parentPath -> !IfStatement"],["-: parentPath.parentPath.parentPath -> !IfStatement"],["+: parentPath.parentPath.parentPath",LX]]),$N=L9([function(e){return!LX(e)&&!LX(e.parentPath)},LB,Lz,e=>e.findParent(Lz)]),$L=Lb([["-: parentPath -> !IfStatement"],["-",({node:e,parentPath:t})=>e!==t.node.consequent],["+: parentPath.node.alternate -> +"]]),$O=Lb([["-",LV],["-",$_],["+",e=>{let t=e.getNextSibling();if(!LY(t)||!e.node.trailingComments)return!1;if($I(t)&&LG(e))return!0;if(!$C(t))return!1;let{expression:r}=e.node;return!!$A(r)||$A(t.get("expression"))}],["+",function(e){let{expression:t}=e.node;return!!$P(t)&&L7(e)}],["-: node.trailingComments.length -> +"],["+",$N],["+",$L]]),$D=Lb([["-",LV],["+: -> !",L8]]),{isBlockStatement:$M,isProgram:$F,isIfStatement:$j}=e5,$B=Lq(Lb(["+: node.expression -> StringLiteral","+: node.expression -> TemplateLiteral","+: node.expression -> ArrayExpression","+: node.expression -> BooleanLiteral"])),{isIfStatement:$R}=e5,$$=Lb(["+: node.expression -> CallExpression"]),$U=Lb([["-: node.expression -> AssignmentExpression"],["+",Lq($$)]]),$V=Lb([["-: node.trailingComments.length -> -"],["-: -> !",Ot],["+",$J]]),$q=Lb([["+: node.expression -> ArrayExpression"],["-",Lq($V)],["-",$B],["+",L6],["+",Lq($R)]]),$K=Lb([Or,Lq($R),$U]);function $J(e){let{node:t}=e,[r]=e.node.trailingComments;return!!t.loc&&t.loc.start.line===r.loc.start.line}let $z=Lb([["-: -> !",L7],["+",$J]]),$W=Lb([["-",$z],["-: node.expression -> !AssignmentExpression"],["+",Lq(Ot)]]),$X={printLeadingCommentLine:(e,t,r,{index:n,isLast:i,printComment:s})=>{let{print:a,indent:o}=t,l=e.getPrevSibling(),{parentPath:u}=e;!L7(l)&&(!n&&!l.node&&($j(u)||$M(u))&&o(),s(),a.newline(),i||e.parentPath.isIfStatement()||a.indent())},printLeadingCommentBlock:(e,t,r,{printComment:n})=>{let{indent:i}=t;L7(e.getPrevSibling())||($M(e.parentPath)&&!$F(e.parentPath.parentPath)&&i(),n())},printTrailingCommentLine:(e,t,r,{isSameLine:n,printComment:i})=>{let{print:s}=t;n?s.space():s.breakline(),i(),(Lz(e)||LB(e))&&s.newline()},printTrailingCommentBlock:(e,t,r,{printComment:n,isSameLine:i})=>{let{maybe:s,print:a}=t;Lz(e)&&a.breakline(),s.print.space(i),n()},beforeIf:$D,before(e,{indent:t}){t()},print(e,{print:t,maybe:r,store:n}){t("__expression"),r.print(!LV(e),";"),Lz(e)&&$q(e)&&(t.newline(),r.indent($K(e)),n(!0))},afterIf:$O,after(e,{print:t,maybe:r,store:n}){r.indent($W(e)),$H(e)&&t.newline(),r.markAfter(n(),e)}},$H=Lb([["+: -> !",L7]]),$G=(e,{print:t})=>{t(`#!${e.node.value}
46
+ `),t.newline()},$Y=(e,t,{write:r,traverse:n})=>{r("`");let i=0;for(let s of e){r(s.node.value.raw);let e=t[i++];e&&(r("${"),n(e),r("}"))}r("`")},$Q=(e,t)=>{let r=e.get("expressions");$Y(e.get("quasis"),r,t)},$Z=Dd(MV((e,t)=>{let{write:r,maybe:n,traverse:i,print:s}=t,{node:a}=e,{name:o,optional:l}=a;for(let t of e.node.decorators?e.get("decorators"):[])i(t),s(" ");r(o),n.write(l,"?")})),$0=(e,{print:t})=>{t("@"),t("__expression")};$0.printLeadingCommentLine=(e,t,r,{printComment:n})=>{let{print:i}=t;n(),i.breakline()};let $1=(e,{write:t},r)=>{let{value:n,raw:i=`'${n}'`}=e.node;if(e.parentPath.isJSXAttribute())return void t(`"${n}"`);let s=i.slice(1,-1);t.quote(),t($2(s,r)),t.quote()},$2=(e,{escapeDoubleQuote:t,escapeSingleQuote:r})=>{let n=e.split("");return r?$3(n,{slash:"\\",quote:"'"}):t?$3(n,{slash:"\\",quote:'"'}):e},$3=(e,{slash:t,quote:r})=>{let n=[];for(let[i,s]of e.entries()){let a=e[i-1];if(s===r&&a!==t){n.push(`${t}${s}`);continue}n.push(s)}return n.join("")},$4=(e,{write:t})=>{t.indent(),t(e.node.raw||`'${e.node.value}'`),t(";"),t.newline()},$5=(e,{write:t})=>{t("void")},$6=(e,{print:t})=>{let{raw:r,pattern:n}=e.node;t(r||`/${n}/`)},$8=(e,{write:t})=>{t(e.node.raw)},$9=(e,{write:t})=>{let{raw:r,extra:n,value:i}=e.node;t(r||n?.raw||i)},$7=(e,{print:t,maybe:r})=>{r.print.breakline(e.node.leadingComments?.length),t("__value")},Ue=(e,{write:t})=>{t(e.node.value)},Ut=(e,{write:t})=>{t("null")},Ur=(e,{write:t})=>{t("import.meta")},Un=(e,{write:t})=>{t("super")},Ui=Dd((e,{print:t})=>{t("__expression"),t("!")}),Us=(e,{indent:t,traverse:r,write:n})=>{let i=e.get("members");n("{");let s=function(e){let{parentPath:t}=e,{length:r}=e.get("members");return!!r&&(r>1||!t.isTSTypeParameterInstantiation())}(e);for(let e of(s&&(n.newline(),t.inc()),i))t(),r(e);s&&(t.dec(),n.indent()),n("}")},{isTSTypeAliasDeclaration:Ua,isExportDeclaration:Uo,isTSConditionalType:Ul}=e5,Uu=Lq(Ua),Uc=Lq(Uo),Up=Lb(["+: parentPath -> !ExportNamedDeclaration"]),Uh=Lb([["-",Lz],["+: parentPath -> !",Lz]]),Ud=Lb([["-",(e,{store:t})=>t()],["-",Uh],["+: -> !",Uu]]),Uf={beforeIf:Up,before:(e,{indent:t})=>{t()},print:D0((e,{print:t,maybe:r,store:n})=>{let i=Ul(e.get("typeAnnotation"));t("type "),t("__id"),t("__typeParameters"),t.space(),t("="),r.print.space(!i),t("__typeAnnotation"),t(";");let s=n(LX(e)||LX(e.parentPath));r.print.newline(!s)}),afterIf:Ud,after(e,{print:t,maybe:r}){r.indent(Uc(e)),t.newline(),Ob(e)}},{isTSConditionalType:Um}=e5,Uy=(e,{print:t,indent:r,maybe:n})=>{let{readonly:i,optional:s,nameType:a,typeAnnotation:o}=e.node;t("{"),t.newline(),r.inc(),r(),i&&(n.print("-"===i,"-"),t("readonly ")),t("["),t("__key"),t(" "),t("in"),t(" "),t("__constraint"),a&&(t(" as"),n.space(!Um(a)),t("__nameType")),t("]"),s&&(n.print("+"===s,"+"),n.print("-"===s,"-"),t("?")),o&&(t(":"),t.space(),t("__typeAnnotation")),t(";"),r.dec(),t.breakline(),t("}")},Ug=Dd((e,{print:t,indent:r})=>{r.inc(),t.breakline(),t("__checkType"),t(" extends "),t("__extendsType"),r.inc(),t.breakline(),t("? "),t("__trueType"),t.breakline(),t(": "),t("__falseType"),r.dec(),r.dec(),Dh(e)&&t.breakline()}),Ub=(e,{write:t,traverse:r})=>{let n=e.get("constraint");e.node.in?t("in "):e.node.out?t("out "):e.node.const&&t("const "),t(e.node.name.name),LY(n)&&(t(" extends "),r(n));let i=e.get("default");LY(i)&&(t.space(),t("="),t.space(),r(i))},Ux={beforeIf:e=>!e.parentPath.isExportNamedDeclaration(),before:(e,{indent:t})=>{t()},print:D0((e,t,r)=>{let{print:n}=t;n("function "),n("__id"),Dg(e,t,r);let{returnType:i}=e.node;i&&(n(":"),n.space(),n("__returnType"))}),afterIf:e=>!e.parentPath.isExportDefaultDeclaration(),after:(e,{print:t})=>{t(";"),(Lz(e)||Lz(e.parentPath)||e.parentPath.isExportNamedDeclaration())&&t.newline()}},US=(e,t,r)=>{let{print:n}=t,{accessibility:i,abstract:s,returnType:a}=e.node;i&&(n(i),n(" ")),s&&(n("abstract"),n(" ")),n("__key"),Dg(e,t,r),a&&(n(":"),n.space(),n("__returnType")),n(";"),n.newline()},Uv=LJ(Lz),UT={print:D0((e,{print:t})=>{let{kind:r}=e.node;e.get("id").isStringLiteral()?t("module "):"namespace"===r&&t("namespace "),t("__id"),t.space(),t("__body"),Uv(e)&&t.newline()}),afterSatisfy:()=>[Lz],after(e,{print:t}){t.newline(),t.newline()}},UE=(e,{print:t,traverse:r,indent:n})=>{for(let i of(t("{"),t.breakline(),n.inc(),e.get("body")))r(i);n.dec(),t("}")},{isTSTypeAliasDeclaration:Uk,isExportNamedDeclaration:Uw,isTSModuleBlock:UA}=e5,UP={print:D0((e,{print:t,maybe:r})=>{let{node:n}=e,{typeParameters:i}=n;if(r.indent(!Uw(e.parentPath)),t("interface "),t("__id"),t("__typeParameters"),n.extends){(!i||i.length<2)&&t(" "),t("extends ");let n=e.get("extends"),s=n.length-1;for(let[e,i]of n.entries())t(i),r.print(e<s,", ")}t("__body")}),afterSatisfy:()=>[Lz,LW],after(e,{print:t}){t.linebreak();let r=Uw(e.parentPath);r&&UA(e.parentPath.parentPath)&&Ob(e),r||Uk(e)||t.newline()}},UC=(e,{print:t,maybe:r})=>{r.print(e.node.isExport,"export "),t("import "),t("__id"),t.space(),t("="),t.space(),t("__moduleReference"),t(";"),LX(e)||LX(e.parentPath)||t.newline()},{isCallExpression:UI,isVariableDeclarator:U_}=e5,UN=Dd({condition:Lb([["-",LJ(UI)],["-",LJ(U_)],["+: node.expression -> ObjectExpression"]]),print:(e,{print:t})=>{t("__expression"),t(" as "),t("__typeAnnotation")}}),UL=(e,t,r)=>{var n;let i=e.get("body"),{traverse:s,write:a,indent:o,maybe:l}=t;for(let[n,u]of(a.space(),a("{"),l.write.newline(function(e){let{body:t}=e.node;if(!t.length)return!1;let[r]=t,{leadingComments:n}=r;return!n}(e)),o.inc(),Dr(e,t,r),i.entries()))(n||!u.node.leadingComments)&&o(),s(u);o.dec(),o(),a("}"),l.write.newline(!!(n=e).parentPath.parentPath.isTSModuleBlock()||n.parentPath.parentPath.parentPath?.isTSModuleBlock())},UO=(e,{traverse:t,write:r})=>{let n=e.get("types"),i=n.length-1;for(let[e,s]of n.entries()){let n=e===i;t(s),n||(r.space(),r("&"),r.space())}},UD=(e,t)=>{let{maybe:r,write:n}=t,{optional:i,readonly:s}=e.node;r.print(s,"readonly "),Dj(e,t),r.print(i,"?"),Mq(e,t),!function({parentPath:e}){return!!e.parentPath.isTSTypeParameterInstantiation()&&1===e.node.members.length}(e)&&(n(";"),n.newline()),Lz(e)&&L7(e)&&n.newline()};UD.printLeadingCommentLine=(e,t,r,{printComment:n})=>{let{print:i}=t;i.breakline(),n(),i.breakline()},UD.printLeadingCommentBlock=(e,t,r,{printComment:n})=>{let{print:i,maybe:s}=t;s.print.breakline(!e.getPrevSibling().node),n(),i.indent()},UD.printTrailingCommentBlock=()=>{};let UM=(e,{traverse:t})=>{t(e.get("returnType"))},UF=Dd((e,t,r)=>{let{print:n}=t;Dg(e,t,r),n.space(),n("=>"),n.space(),UM(e,t)}),Uj={beforeIf:e=>e.node.const,before(e,{print:t}){t("const ")},print(e,{print:t,traverse:r,indent:n}){for(let i of(t("enum "),t("__id"),t(" "),t("{"),n.inc(),t.newline(),e.get("body.members")))r(i),t(","),t.newline();n.dec(),n(),t("}"),LX(e)||(t.newline(),Ob(e))},afterSatisfy:()=>[Lz,LW],after(e,{print:t}){t.linebreak()}},UB=(e,{print:t,indent:r})=>{let{initializer:n}=e.node;r(),t("__id"),n&&(t.space(),t("="),t.space(),t("__initializer"))},UR=(e,{write:t,traverse:r,indent:n,maybe:i})=>{let s=e.get("elementTypes");t("["),n.inc();let a=function(e){let t;for(let r of e){if(t&&r.type!==t)return!1;({type:t}=r)}return!0}(s);i.write.newline(a&&s.length);let o=s.length-1;for(let[e,t]of s.entries())i.indent(a),r(t),i.write(e<o||a,","),i.write.newline(a),i.write.space(e<o&&!a);n.dec(),i.indent(a&&s.length),t("]")},U$=(e,{print:t})=>{t("__label"),t(":"),t.space(),t("__elementType")},UU=(e,t,r)=>{let{print:n}=t;n("new"),n(" "),Dg(e,t,r),n.space(),n("=>"),n.space(),UM(e,t)},UV=(e,t,r)=>{let{print:n}=t;Dg(e,t,r),n(":"),n.space(),UM(e,t),n(";"),n.newline()},Uq=(e,t,r)=>{let{write:n}=t;n("new"),Dg(e,t,r),e.node.returnType&&(n(":"),n.space(),UM(e,t)),n(";"),n.newline()},UK=(e,t,r)=>{let{write:n,maybe:i}=t,{optional:s}=e.node;DB(e,t),Dj(e,t),i.print(s,"?"),Dg(e,t,r),e.node.returnType&&(n(":"),n.space(),UM(e,t)),n(";"),n.newline()},UJ=Dd({condition:e=>e.parentPath.isTSArrayType(),print:(e,t,{maxTypesInOneLine:r})=>{let n=e.get("types"),{length:i}=n;!(({parentPath:e})=>e.isTSTypeAliasDeclaration())(e)||i<=r?function(e,{traverse:t,write:r}){let n=e.length-1;for(let[i,s]of e.entries())t(s),i<n&&(r.space(),r("|"),r.space())}(n,t):function(e,{traverse:t,write:r,indent:n}){for(let i of(n.inc(),e))r.breakline(),r("|"),r.space(),t(i);n.dec()}(n,t)}}),Uz=B$,UW={print:(e,{print:t})=>{t("export = "),t("__expression"),t(";")},afterSatisfy:()=>[Lz],after:(e,{print:t})=>{t.newline()}},UX=(e,{print:t})=>{t("__typeName"),t("__typeArguments")},UH=Dd((e,{print:t})=>{t("infer "),t("__typeParameter")}),UG=Lb([["-",Ot],["+",e=>L7(e.get("decorators").at(-1))]]),UY=(e,{print:t,maybe:r,indent:n})=>{let{decorators:i,readonly:s,accessibility:a}=e.node,o=i?.length>1;if(r.print.breakline(o),i){for(let n of e.get("decorators"))r.indent(o),t(n);r.print.breakline(o),UG(e)?n():t(" ")}a&&(t(a),t.space()),s&&(t("readonly"),t.space()),t("__parameter"),Ot(e)&&!e.node.decorators&&t.breakline()};UY.printLeadingCommentLine=(e,t,r,{printComment:n})=>{let{indent:i,print:s}=t;if(e.node.decorators){n(),s.breakline();return}if(e.parentPath.isClassMethod()){i.inc(),s.breakline(),n(),s.breakline(),i.dec();return}};let{isTSUnionType:UQ}=e5,UZ=()=>{},U0=(e,t,r)=>{let{print:n,indent:i}=t,s=function({node:e}){let{params:t}=e;for(let{constraint:e}of t)if(UQ(e))return!0;return!1}(e),a=DR({isNewline:s,printer:t}),o=s?()=>{i.inc(),n.breakline()}:UZ,l=s?()=>{n.breakline()}:UZ;Dg(e,t,r,{printSpace:a,braceOpen:"<",braceClose:">",printAfterOpen:o,printBeforeClose:s?()=>{i.dec(),n.breakline()}:UZ,printAfterClose:l})},U1=Dd((e,{print:t})=>{t("typeof "),t("__exprName")}),U2=(e,{print:t})=>{t("("),t("__typeAnnotation"),t(")")},U3=(e,t)=>{$Y(e.get("quasis"),e.get("types"),t)},U4=(e,{print:t})=>{t("__typeAnnotation"),t("?")},U5=Dd((e,{print:t})=>{t("__expression"),t("__typeArguments")}),U6=(e,{write:t})=>{t("bigint")},U8=(e,{write:t})=>{t("null")},U9=(e,{write:t})=>{t("symbol")},U7=(e,{write:t})=>{t("never")},Ve=(e,{write:t})=>{t("unknown")},Vt=(e,{write:t})=>{t("object")},Vr=(e,{print:t})=>{t("__literal")},Vn=(e,{print:t})=>{t("..."),t("__typeAnnotation")},Vi=(e,t,r)=>{Dg(e,t,r,{braceOpen:"<",braceClose:">"})},Vs=(e,{print:t})=>{t("__elementType"),t("[]")},Va=(e,{write:t,print:r})=>{let{operator:n}=e.node;t(`${n} `),r("__typeAnnotation")},Vo=(e,{print:t})=>{t("<"),t("__typeAnnotation"),t(">"),t("__expression")},Vl=(e,{write:t})=>{t("undefined")},Vu=(e,{write:t})=>{t("boolean")},Vc=(e,{print:t})=>{t("__expression"),t(" satisfies "),t("__typeAnnotation")},Vp=(e,{write:t})=>{t("number")},Vh=(e,{print:t})=>{t("__objectType"),t("["),t("__indexType"),t("]")},Vd=(e,{write:t})=>{t("string")},Vf=(e,{write:t})=>{t("any")},Vm=(e,{write:t})=>{t("void")},Vy=(e,{print:t})=>{t("__left"),t("."),t("__right")},Vg=(e,{print:t})=>{t("__typeAnnotation")},Vb=(e,t)=>{let{print:r}=t;r("["),r("__parameters.0"),r("]"),Mq(e,t),r(";"),r.newline()},Vx=(e,{print:t})=>{t("__expression"),t("__typeArguments")},VS=Vx,Vv=(e,{print:t})=>{t("__expression"),t("__typeArguments")},VT=(e,{print:t})=>{t("__parameterName"),t(" is "),t("__typeAnnotation")},VE=(e,{print:t})=>{t("require("),t("__expression"),t(")")},Vk=(e,{print:t})=>{t("this")},{isFunction:Vw}=e5,VA=Lb([["-",function(e){let t=e.get("openingElement.attributes");if(t.length>4)return!0;for(let e of t)if(VP(e))return!0;return!1}],["+: parentPath -> JSXElement"],["+: parentPath -> CallExpression"],["-: parentPath.parentPath -> !CallExpression"],["+: parentPath -> ArrowFunctionExpression"]]),VP=Lb([["+: -> JSXSpreadAttribute"],["-: node.value -> !JSXExpressionContainer"],["+: parentPath.node.attributes.length",">",1],["+: node.value.expression",Vw]]),VC=Lb(["+: node.extra.parenthesized -> +","+: parentPath -> ReturnStatement","+: parentPath -> ParenthesizedExpression","+: parentPath -> ArrowFunctionExpression","+: parentPath -> VariableDeclarator"]),{isJSXElement:VI,isArrowFunctionExpression:V_}=e5,VN=Lb([["-: parentPath -> !CallExpression"],["+: parentPath.node.arguments.length","=",1]]),VL={condition:VC,before(e,{write:t,indent:r,maybe:n}){let{leadingComments:i}=e.node,s=i?.length;n.write.space(!s&&(({parentPath:e})=>V_(e))(e)),r.inc(),s||(t("("),t.newline())},print(e,{print:t,traverse:r,maybe:n}){let i=VA(e),s=VN(e);n.indent.inc(i),n.print.breakline(s),t("__openingElement"),e.get("children").map(r),t("__closingElement"),n.indent.dec(i),n.print.breakline(s)},after(e,{write:t,indent:r,maybe:n}){let{leadingComments:i}=e.node;(({parentPath:e})=>VI(e.parentPath?.parentPath?.parentPath))(e)?(t.breakline(),r.dec()):(r.dec(),t.breakline()),n.write(!i?.length,")")}},VO={condition:e=>LG(e.parentPath),before(e,{print:t,indent:r}){r.inc(),t.breakline()},print(e,{print:t,maybe:r}){let{value:n}=e.node;t("__name"),r.print(n,"="),t("__value")},after(e,{indent:t}){t.dec()}},VD=(e,{print:t,maybe:r})=>{r.indent((({parentPath:e})=>{let t=e.parentPath;return!(t.isObjectProperty()||t.isCallExpression()||t.isJSXElement()||t.isJSXExpressionContainer()||t.isJSXFragment())&&!t.isLogicalExpression()})(e)),t("<"),t("__name");let n=LG(e),i=!n,s=n&&e.parentPath.parentPath.isJSXElement();for(let n of(r.indent.inc(s),e.get("attributes")))r.print.space(i),t(n);LG(e)&&t.breakline(),e.node.selfClosing&&t("/"),t(">"),r.indent.dec(s)},VM={condition:function(e){return!!e.parentPath.isReturnStatement()||e.parentPath.isVariableDeclarator()},before(e,{write:t,indent:r}){t("("),r.inc(),t.breakline()},print(e,{print:t,traverse:r}){t("__openingFragment"),e.get("children").map(r),t("__closingFragment")},after(e,{write:t,indent:r}){r.dec(),t.breakline(),t(")")}},VF=(e,{write:t})=>{t("<>")},Vj=(e,{write:t})=>{t("</>")},VB=(e,{write:t,indent:r})=>{let{node:n}=e,{value:i,extra:s}=n,a=/^\s+$/.test(i),o=Lz(e);if(s?.raw.includes("&"))return t(s.raw);if(a&&o){r.inc(),t.breakline(),r.dec();return}a?t.breakline():t(i)},VR=(e,t,r)=>{Dr(e,t,r)},V$=(e,{print:t})=>{t("{"),t("__expression"),t("}")},VU=(e,{write:t})=>{t(e.node.name)},VV=(e,{print:t})=>{t("__object"),t("."),t("__property")},Vq=(e,{print:t,maybe:r})=>{let n=LG(e.parentPath);r.indent.inc(n),r.print.breakline(n),t("{"),t("..."),t("__argument"),t("}"),r.indent.dec(n)},VK=(e,{print:t})=>{t("</"),t("__name"),t(">")},VJ={arrow:!0,sequence:!0,assign:!1,new:!0},Vz={arrow:!0,sequence:!0,assign:!0,new:!0},VW={arrow:!1,sequence:!1,assign:!1,new:!1},{assign:VX}=Object,{freeze:VH,assign:VG}=Object,VY=(e,{traverse:t,write:r})=>{let n=n=>{if(n===e)return null;let i=VQ(e,n);return i&&"object"==typeof i?t(i):r(i)};return VG(n,r),n},VQ=(e,t)=>{if("string"==typeof t&&t.startsWith("__"))return e.get(t.replace("__",""));return t,t},VZ=e=>t=>t&&e(),V0=e=>e.slice(0,e.indexOf("(")),V1=e=>e.includes("(")?`${V0(e)}(`:`${e}(`,V2="__putout_processor_json",V3="__putout_processor_docker",V4="__putout_processor_yaml",V5="__putout_processor_toml",V6="__putout_processor_filesystem",V8="__putout_processor_ignore",V9="__putout_processor_markdown",V7="__putout_processor_sql",qe=`${V7}(__object)`,qt=`${V2}(__object)`,qr=`${V4}(__object)`,qn=`${V5}(__object)`,qi=`${V3}(__array)`,qs=`${V6}(__object)`,qa=`${V8}(__array)`,qo=`${V9}(__array)`,ql=[V2,V3,V5,V4,V6,V8],qu=(e,t=qt)=>{let r=V1(t);return e.endsWith(";\n")&&(e=e.slice(0,-2)),`${r}${e});
47
+ `},qc=(e,t=qt)=>{let r;e=e.trimEnd()+"\n";let n=V0(t);e=e.slice(e.indexOf(n));let i=V1(t),s=e.length-3;return"\n"===(r=e.slice(i.length,s)).at(-1)?r:`${r}
48
+ `},qp=e=>!e.indexOf(V2),qh=e=>!e.indexOf(V5),qd=e=>!e.indexOf(V3),qf=e=>{for(let t of ql)if(!e.indexOf(t))return!0;return!1},qm=e=>!e.indexOf(V7),{isCallExpression:qy,isIdentifier:qg}=e5,qb=(e,t)=>!function(e){let{program:t}=e;if(!t)return!1;let{body:r}=e.program;if(!r.length)return!1;let{expression:n}=e.program.body[0];if(!qy(n))return!1;let{callee:i}=n;return!!qg(i)&&qf(i.name)}(e)?t:{...t,format:{...t?.format,quote:'"'},semantics:{...t?.semantics,trailingComma:!1,escapeSingleQuote:!1,escapeDoubleQuote:!0}},{isCallExpression:qx,isIdentifier:qS}=e5,qv=(e,t)=>!function(e){let{program:t}=e;if(!t)return!1;let{body:r}=e.program;if(!r.length)return!1;let{expression:n}=e.program.body[0];if(!qx(n))return!1;let{callee:i}=n;return!!qS(i)&&qm(i.name)}(e)?t:{...t,semantics:{...t?.semantics,maxArgsInOneLine:1}},qT=(e,t={})=>{let r=t;for(let t of(function(e){if("object"!=typeof e)throw Error("☝️Looks like ast not an object")}(e),[qb,qv]))r=t(e,r);return(e=>{let t=[];for(let{value:r}of e)t.push(r);return t})(((e,t)=>{let{getTokens:r,traverse:n}=(e=>{var t;let r,n,i,s=[],{format:a,semantics:o,visitors:l}=((e={})=>{let{format:t,semantics:r,visitors:n}=e,i={indent:" ",newline:"\n",space:" ",splitter:"\n",quote:"'",endOfFile:"\n",...t};return{format:i,semantics:((e,t={})=>({comments:!0,maxPropertiesInOneLine:2,maxPropertiesLengthInOneLine:15,maxSpecifiersInOneLine:2,maxElementsInOneLine:3,maxElementLengthInOneLine:15,maxLogicalsInOneLine:3,maxVariablesInOneLine:4,maxTypesInOneLine:3,maxArgsInOneLine:100,trailingComma:!0,...(({quote:e})=>'"'===e?{escapeSingleQuote:!1,escapeDoubleQuote:!0}:{escapeSingleQuote:!0,escapeDoubleQuote:!1})(e),...t,roundBraces:(({roundBraces:e})=>e&&"object"==typeof e?{...VJ,...e}:"boolean"==typeof e&&e?Vz:"boolean"!=typeof e||e?VJ:VW)(t)}))(i,r),visitors:n}})(e),u=(t=s,r=(({newline:e="\n",store:t=Dp()}={})=>({type:r,value:n})=>{if(Dl)return void console.log(E1(Ds({type:r,value:n}),{},{highlightCode:!0}));if(Do)return void console.log(E1(n,{},{highlightCode:!0}));if(Da){if(n===e)return void console.log(E1(t(),{},{highlightCode:!0}));t(n)}Du&&Li.stdout.write(n)})(),e=>{r(e),t.push(e)}),c=e=>{Dc&&s.push({type:"Debug",value:`/*__${e.replace(Di,function(e){return" "+(e.toLowerCase()||e)}).trim().split(Dn).join("_")}*/`})},p=(n=u,e=>{n({type:"Token",value:e})}),h=(({format:e,addToken:t})=>{let r=0,n=()=>{t({type:"Indent",value:function(e,t){let r="";for(++e;--e>0;)r+=t;return r}(r,e.indent)})};return VX(n,{inc:()=>++r,dec:()=>--r,getLevel:()=>r}),n})({format:a,addToken:u}),d=(({format:e,addToken:t})=>()=>{t({type:"Newline",value:e.newline})})({format:a,addToken:u}),f=(({newline:e,indent:t})=>()=>{e(),t()})({newline:d,indent:h}),m=(({indent:e,newline:t})=>()=>{e(),t()})({indent:h,newline:d}),y=(({format:e,addToken:t})=>()=>{t({type:"Space",value:e.space})})({format:a,addToken:u}),g=(({format:e,addToken:t})=>()=>{t({type:"Splitter",value:e.splitter})})({format:a,addToken:u}),b=(({format:e,addToken:t})=>()=>{t({type:"EndOfFile",value:e.endOfFile})})({format:a,addToken:u}),x=(({addToken:e,format:t})=>()=>{e({type:"Quote",value:t.quote})})({addToken:u,format:a});VG(p,{indent:h,newline:d,linebreak:m,breakline:f,space:y,splitter:g,quote:x,endOfFile:b});let S=VZ(f),v=VZ(d),T=VZ(m),E=VZ(y),k=(({write:e})=>(t,r)=>t&&e(r))({write:p});VG(k,{newline:v,breakline:S,linebreak:T,space:E});let w={indent:VZ(h),markAfter:Oy,write:k,space:E},A=VZ(h.inc),P=VZ(h.dec);VG(w.indent,{inc:A,dec:P});let C=(i={maybeNewline:v,maybeLinebreak:T,maybeSpace:E,maybeBreakline:S,indent:h,write:p,debug:c,semantics:o,visitors:l,getMainPrinter:()=>I},function e(t){let{write:r,debug:n,maybeLinebreak:s,maybeSpace:a,maybeBreakline:o,maybeNewline:l,indent:u,semantics:c,visitors:p,getMainPrinter:h}=i,d=h(),f={...eu,...p},{type:m}=t,y=f[m];if(!t.node)return;let g=VY(t,{write:r,traverse:e}),b={...d,traverse:e,print:g},x=(e,t)=>e&&g(t);VG(x,{newline:l,breakline:o,linebreak:s,space:a}),VG(b.maybe,{print:x}),Oh(!y,t,"☝️ Node type '{{ type }}' is not supported yet by @putout/printer: '{{ path }}'");let S=u.getLevel();OR(t,b,c,{currentTraverse:y}),Od(y,t,b,c),((e,t,r,{currentTraverse:n}={})=>{let{parentPath:i}=e,{write:s,maybe:a,indent:o}=t;if(!r.comments)return;let{trailingComments:l}=e.node;if(!l?.length)return;if((e=>{let{printTrailingCommentBlock:t,printTrailingCommentLine:r}=e;return!!t||!!r})(n))return((e,t,r,{currentTraverse:n})=>{let{print:i}=t,{trailingComments:s=[]}=e.node,{printTrailingCommentLine:a,printTrailingCommentBlock:o}=n,l=s.length-1;for(let[n,u]of s.entries()){let{loc:s,value:c}=u;if(Ok(u)){a?.(e,t,r,{index:n,printComment:Ov(i,c),isLast:n===l,isSameLine:Ow(e,s)});continue}OE(u)&&o?.(e,t,r,{index:n,printComment:OT(i,c),isLast:n===l,isSameLine:Ow(e,s)})}})(e,t,r,{currentTraverse:n});if(e.isDirective())return;let u=l.length-1,c=O1(i);for(let{type:t,value:r,loc:n}of l){let i=O7(e,n),l=function(e){let{node:t}=e,{loc:r,trailingComments:n}=t;if(e.isClassMethod()||e.node.trailingComments===e.getNextSibling().node?.leadingComments||e.isThrowStatement())return!1;let[i]=n,{line:s}=i.loc.start,a=e.getNextSibling();if(a.node&&s<a.node.loc?.start.line)return!1;if(!r)return!0;let o=r.start.line,l=r.end.line;return s===o+1&&s===l+1||s===o+2&&s===l+2}(e);if("CommentLine"===t){let t=l&&c,n=!i&&!l;a.write.breakline(l),a.write.space(i),(n||t)&&(a.indent.inc(t),o(),a.indent.dec(t)),O8(e)&&(a.write.breakline(!Lz(e)),a.write.breakline(!u)),s(`//${r}`),a.write.newline(De(e));continue}"CommentBlock"===t&&(a.write.space(i),a.indent(!i),a.print.breakline(function(e){let{expression:t}=e.node;return O6(t)}(e)),s(`/*${r}*/`),a.write.newline(!i||!O9(e)&&LG(e.parentPath)))}})(t,b,c,{currentTraverse:y}),Oh(u.getLevel()!==S,t,"☝️Looks like indent level changed after token visitor: '{{ type }}', for code: '{{ path }}'"),n(t.type)}),I=VH({indent:h,write:p,debug:c,maybe:w,quote:x,store:(0,Of.p)(),traverse:C});return{getTokens:()=>s,traverse:C}})(t);if(e.parentPath){var i,s;i=e,s=n,i.parentPath.traverse({enter(e){e===i&&(s(e),e.stop())}})}else Le(Oo(e)?e:Op(Oa(e)?e:Oc([Ol(e)?e:Ou(e)])),{Program(e){n(e),e.stop()}});return r()})(e,r)).join("")},qE={alignSpaces:!0},{isArray:qk}=Array,qw=(e,t={})=>{let r,[n="putout",i]=qk(r=t.printer)?r:[r,{}];return"babel"===n?((e,t)=>{let{source:r,alignSpaces:n}={...qE,...t},{code:i}=Ps(e,r&&{experimental_preserveFormat:!0,retainLines:!0},r);if("\n"===i[0]&&(i=i.trimStart()),i+="\n",!n)return i;var s=i,a=s;if("string"!=typeof a)throw Error("str should be a string!");let o=s.split("\n"),l=o.length-1;for(let e=0;e<l;e++){let t=o[e];!e||function(e){let t=e.length;if(!t)return!1;for(;--t>-1;)if(" "!==e[t])return!0;return!1}(t)||(o[e]=function(e){let t="";for(let r=0;r<e.length&&" "===e[r];r++)t+=" ";return t}(o[e+1]))}return o.join("\n")})(e,{...t,...i}):qT(e,i)},{isFunctionExpression:qA,objectMethod:qP}=e5,{assign:qC}=Object,{classPrivateMethod:qI,classMethod:q_,privateName:qN,identifier:qL}=e5,{assign:qO}=Object,{identifier:qD}=e5,{directive:qM,directiveLiteral:qF}=e5,{assign:qj}=Object,qB=({type:e})=>`Comment${e}`,qR=e=>({type:"PrivateName",id:{...e,type:"Identifier"},loc:e.loc}),{isObjectExpression:q$,isExportDeclaration:qU}=e5,qV={convertParens:!0};function qq(e){let{raw:t}=e;e.raw=t||e.extra?.raw,e.extra=e.extra||{raw:t}}var qK=r(9992),qJ=r(5279);let qz=["importMeta","importAttributes","dynamicImport","bigInt","classProperties","decorators-legacy","decoratorAutoAccessors","destructuringPrivate","exportDefaultFrom","throwExpressions","deferredImportEvaluation",["discardBinding",{syntaxType:"void"}],"sourcePhaseImports",["optionalChainingAssign",{version:"2023-07"}]],qW=!0,qX=!0,qH=!0,{assign:qG}=Object;var qY=r(5668),qQ=r(9175),qZ=r(8246),q0=r(3932);let q1=["has already been declared"];function q2(e,{parser:t,printer:r,isTS:n,isJSX:i,isRecovery:s}){return"babel"===t?((e,t)=>{let{sourceFileName:r,isTS:n,isJSX:i=!0,isFlow:s=!e.indexOf("// @flow"),isRecovery:a,printer:o}=t,l={sourceFileName:r,sourceType:"module",...ec,errorRecovery:a,plugins:[...qz,...function({isTS:e,isFlow:t,isJSX:r}){let n=[r&&"jsx"];return e||t?n.concat(["typescript"]):n}({isTS:n,isFlow:s,isJSX:i})].filter(Boolean)};"babel"===o&&qG(l,{createParenthesizedExpressions:!0,tokens:!0});let u=EU(e,l);return u.program.extra.__putout_printer=o,u})(e,{isTS:n,isJSX:i,isRecovery:s,printer:r}):"object"==typeof t?t.parse(e,{isJSX:i,isTS:n}):"espree"===t?qY.q(e):"acorn"===t?qJ.q(e):"esprima"===t||"tenko"===t?qQ.parse(e):"hermes"===t?qZ.q(e):qK.createRequire("file:///Users/coderaiser/cloudcmd/node_modules/@putout/engine-parser/lib/custom-parser.js")(t).parse(e)}let{assign:q3}=Object,q4=(e,t)=>{var r=e;if("string"!=typeof r)throw Error(`☝️ Looks like type of 'source' is not 'string', but '${typeof r}'`);let{parser:n,printer:i="putout",isTS:s,isJSX:a}=t||{},{parse:o}=q5({printer:i,parser:n,isTS:s,isJSX:a});return((e,...t)=>{let[r,n]=(0,q0.T)(e,...t);if(r)throw r.reason="parse",r;return n})(o,e)},q5=({parser:e="babel",isTS:t,isJSX:r,printer:n})=>({parse(i){var s;let a,o,l={};return"babel"===n&&q3(l,{convertParens:!1}),s=((e,t,{isTS:r,isJSX:n,printer:i})=>{let s={parser:t,printer:i,isTS:r,isJSX:n},a={...s,isJSX:!1},o={...s,isRecovery:!0};return((e,t,r,n)=>{let[i,...s]=n,[a,o]=(0,q0.T)(e,t,i);if(!a)return o;if(function(e,t){for(let r of t)if(e.message.includes(r))return!0;return!1}(a,r))throw a;for(let r of s){let[n,i]=(0,q0.T)(e,t,r);if(!n)return i}throw a})(q2,e,q1,[s,a,o])})(i,e,{isTS:t,isJSX:r,printer:n}),a=(e=>{if("File"===e.type)return e;let{comments:t=[],tokens:r,...n}=e;return{type:"File",program:{...n,directives:[]},comments:(e=>{for(let t of e)t.type=qB(t);return e})(t),tokens:r}})(s),Le(a,{noScope:!0,ParenthesizedExpression:(({convertParens:e})=>t=>{if(!e)return;let{expression:r}=t.node;r.extra=r.extra||{},r.extra.parenthesized=!0,t.replaceWith(r)})(o={...qV,...l}),TSParenthesizedType:(({convertParens:e})=>t=>{if(!e)return;let{typeAnnotation:r}=t.node;r.extra=r.extra||{},r.extra.parenthesized=!0,t.replaceWith(r)})(o),enter(e){let{type:t,node:r}=e;if(t.endsWith("Literal"))return(e=>{let{type:t,value:r}=e;if("Literal"===t){if(null===r){e.type="NullLiteral";return}if("string"==typeof r){e.type="StringLiteral";return}if("number"==typeof r){e.type="NumericLiteral";return}if("boolean"==typeof r){e.type="BooleanLiteral";return}if(e.regex){var n=e;for(let e of(n.type="RegExpLiteral",Object.keys(n.regex)))n[e]=n.regex[e];delete n.regex;return}}})(r),qq(r);if("JSXText"===t)return qq(r);if("BlockStatement"===t||"Program"===t)return(e=>{let{node:t}=e;if(!t.directives)for(let r of(t.directives=[],e.get("body"))){if("ExpressionStatement"!==r.type)continue;let e=r.node;if(!("directive"in e)||!e.directive)continue;let n=qM(qF(e.directive));t.directives.push(n),r.remove()}})(e);if("Property"===t)return void(r.type="ObjectProperty");if("MethodDefinition"===t)return(e=>{let{node:t}=e,{key:r,kind:n,computed:i,loc:s}=t,{body:a,params:o,expression:l,generator:u}=t.value,c=function({kind:e,key:t,params:r,body:n,computed:i,nodeStatic:s}){return(({type:e})=>"PrivateIdentifier"===e)(t)?qI(e,qN(qL(t.name)),r,n,i):q_(e,t,r,n,i,s)}({kind:n,key:r,params:o,body:a,computed:i,nodeStatic:t.static});e.replaceWith(c),qO(e.node,{loc:s,expression:l,generator:u})})(e);if("FieldDefinition"===t)return void(e.node.type="ClassPrivateProperty");if("PrivateName"===t)return(({node:e})=>{e.name&&(e.id=qD(e.name),e.id.loc={start:{line:e.loc.start.line,column:e.loc.start.column+1},end:e.loc.end},delete e.name)})(e);if("ImportDeclaration"===t)return(e=>{let{attributes:t=[]}=e.node;e.node.attributes=t})(e);if(qU(e))return(e=>{let{attributes:t=[]}=e.node;qj(e.node,{attributes:t})})(e);if("ChainExpression"===t)return(e=>{let t=e.get("expression"),{expression:r}=e.node;if(t.isCallExpression()){let e=t.get("callee");r.type="OptionalCallExpression",e.isMemberExpression()&&(r.callee.type="OptionalMemberExpression")}else r.type="OptionalMemberExpression";e.replaceWith(r)})(e);if("TSAbstractMethodDefinition"===t)return(e=>{let{node:t}=e,{generator:r,async:n,params:i,id:s,returnType:a}=t.value,o={...t,abstract:!0,generator:r,async:n,params:i,id:s,returnType:a,type:"TSDeclareMethod"};delete o.value,e.replaceWith(o)})(e);if("TSInterfaceHeritage"===t)return(e=>{let{expression:t}=e.node;for(;"MemberExpression"===t.type;){let{object:e,property:r}=t;t.type="TSQualifiedName",t.left=e,t.right=r,delete t.object,delete t.property,t=e}})(e);if("PropertyDefinition"===t)return(e=>{let{node:t}=e;if("PrivateIdentifier"===t.key.type){let{key:e}=t;t.type="ClassPrivateProperty",t.key=qR(e);return}e.node.type="ClassProperty"})(e);if("PrivateIdentifier"===t)return void e.replaceWith(qR(e.node))},exit(e){let{node:t}=e;if((e=>{let{comments:t}=e;if(t)for(let r of(delete e.comments,e.leadingComments=void 0,e.trailingComments=void 0,e.innerComments=void 0,t)){let t=function({trailing:e,leading:t}){return e?"trailingComments":t?"leadingComments":"innerComments"}(r);e[t]||(e[t]=[]),delete r.leading,delete r.trailing,r.type=qB(r),e[t].push(r)}})(t),q$(t)){for(let t of e.get("properties")){var r,n;let{computed:e,key:i,method:s,value:a}=t.node;s&&qA(a)&&(t.replaceWith(qP("method",i,a.params,a.body,e)),qC(t.node,{id:null,method:!0,generator:a.generator,loc:(r=i,n=a,r.loc&&n.loc?{start:r.loc.start,end:n.loc.end}:null),async:a.async,type:"ObjectMethod"}))}return}}}),a}}),q6=(e,t,r)=>Ps(e,{comments:!1,...t},r);function q8(e,t){t||(t={});var r,n,i,s,a,o=t.vargs||(n=(r=e+"").indexOf("..."))>=0&&(n<r.indexOf(")")||r.indexOf("arguments")>=0),l=[],u=new Map,c=t.maxAge>0&&t.maxAge<1/0?function(e){return s=setTimeout(function(){i?u.delete(e):l.splice(e,1)},t.maxAge)}:0,p=t.equals?t.equals:0,h=t.maxArgs,d=t.serializer;return 1!==e.length||t.equals||o?a=p?function(){for(var t=h||arguments.length,r=l.length,n=-1;++n<r;)if(l[n].length===t){for(var i=-1;++i<t&&p(arguments[i],l[n][i]););if(i===t)return l[n].val}return l[n]=arguments,c&&c(n),arguments.val=e.apply(this,l[n])}:function(){for(var t=h||arguments.length,r=l.length,n=-1;++n<r;)if(l[n].length===t){for(var i=-1;++i<t&&arguments[i]===l[n][i];);if(i===t)return l[n].val}return l[n]=arguments,c&&c(n),arguments.val=e.apply(this,l[n])}:(a=function(t){var r;return d&&(t=d(t)),u.get(t)||(c&&c(t),u.set(t,r=e.call(this,t)),r)},i=1),a.clear=function(){s&&clearTimeout(s),u.clear(),l=[]},a.keys=function(){return i?[...u.keys()]:l.slice()},a.values=function(){return i?[...u.values()]:l.map(e=>e.val)},a}let{entries:q9}=Object,{isArray:q7}=Array,{isProgram:Ke}=e5,Kt="__putout_runner_replace";function Kr({path:e,program:t}){e.node&&(e.node[Kt]=e.node[Kt]||new Set),t.node[Kt]=t.node[Kt]||new Set}function Kn({path:e,program:t,watermark:r,highWatermark:n}){Kr({path:e,program:t}),e?.node[Kt].add(r),t.node[Kt].add(n)}let Ki=e=>{delete e?.[Kt]};function Ks({path:e,program:t,watermark:r,highWatermark:n}){let{node:i}=e,{loc:s}=i;return!!(i?.[Kt].has(r)||e.findParent(e=>e.node?.[Kt]?.has(r))&&!s)||t.node[Kt].has(n)}let{nanomemoize:Ka=q8}=q8,Ko={errorRecovery:!0,...ec,plugins:[...qz,"typescript","jsx"]},{isExpressionStatement:Kl,isTSExternalModuleReference:Ku}=e5,Kc=e=>Kl(e)||Ku(e)?e.expression:e,Kp=Ka((e,t)=>{let r=kM(e,{...Ko,...t});return(...e)=>Kc(r(...e))});Kp.extractExpression=Kc;let Kh=Ka((e,t)=>Kc(kM.ast(e,{...Ko,...t})));Kp.ast=(...e)=>{let t=Kh(...e);return Ki(t),t},Kp.program=Ka((e,t)=>kM.program(e,{...Ko,...t})),Kp.program.ast=Ka((e,t)=>kM.program.ast(e,{...Ko,...t})),Kp.ast.fresh=(e,t)=>Kc(kM.ast(e,{...Ko,...t}));var Kd=r(7975),Kf=r(980),Km=r(8020);let Ky=()=>{},Kg=(e,t={})=>{let{module:r=Km}=t,{createRequire:n=()=>Ky}=r;return n(e)},Kb=async e=>{let t=await r(8253)(e);return t.default||t},Kx=Kg("file:///Users/coderaiser/cloudcmd/node_modules/@putout/engine-loader/lib/load/async-loader.js"),{assign:KS}=Object;async function Kv(e,t){let r,n,{simpleImport:i,require:s}=t;for(let t of e){if([r,n]=await (0,Kf.Y)(i,t),!r)return n;if("ERR_UNSUPPORTED_DIR_IMPORT"===r.code){let e=s.resolve(t);if([r,n]=await (0,Kf.Y)(i,e),!r)return n}if("ERR_MODULE_NOT_FOUND"!==r.code)throw KS(r,{message:`${t}: ${r.message}`}),r}throw KS(r,{message:r.message.replace(/\simported.*/,"")}),r}function KT(e){let t=Li.env.PUTOUT_LOAD_DIR;if(!t)return[e];let r=(0,Kd.join)(t,e);return[r,`${r}.js`]}let KE=e=>"string"==typeof e,{isArray:Kk}=Array,{entries:Kw}=Object,KA=e=>{let t=[];for(let r of e){if(KE(r)){t.push([r]);continue}if(Kk(r)){let[e,n]=r;t.push([e,n]);continue}t.push(...Kw(r))}return t},{keys:KP}=Object,KC=e=>e.includes("/")?e.split("/").shift():e,KI=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),K_=e=>{if(!e||"object"!=typeof e)throw Error("options should be an object!")},KN=e=>{if("string"!=typeof e)throw Error(`☝️ Looks like plugin name type is not 'string', but: '${typeof e}'`)},{entries:KL}=Object,{isArray:KO}=Array,{stringify:KD}=JSON,KM=e=>"boolean"==typeof e,KF=e=>{K_(e);let{pluginNames:t=[],rules:r={}}=e;(({items:e,rules:t})=>{for(let r of KP(t)){let t=!1,n=!1,i=!1;for(let[s,a={}]of e){let e=KI(s);if(t=e===r,n=e===KC(r),i=r.includes(e),t&&a.rules)throw Error(`Rule '${r}' cannot be applied to nested plugin '${s}'`);if(t||n||i)break}if(!t&&!n&&!i)throw Error(`No plugin found for a rule: '${r}'`)}})({rules:r,items:KA(t)}),function(e){for(let[,t]of KL(e)){if(!KO(t))continue;let[e]=t;if(!/^(on|off)$/.test(e)&&!KM(e))throw Error(`☝️ Looks like 'state' not 'boolean | 'on' | 'off', but: '${KD(e)}'`)}}(r)},Kj=(e,t)=>{for(let{rule:r,state:n}of t)if(r===e)return n;for(let{rule:r,state:n}of t)if(r.includes("/")&&e.startsWith(r))return n;for(let{rule:r,state:n}of t)if(e.startsWith(`${r}/`))return n;return!0},{isArray:KB}=Array,KR=e=>"boolean"==typeof e,K$=e=>"string"==typeof e,KU=e=>"object"==typeof e,{entries:KV}=Object,{stringify:Kq}=JSON,KK=e=>Error(`☝️ Rule format not supported ${e}: ${typeof e}`),KJ=e=>Error(`☝️ Looks like you need to change "rules" to "match" for ${Kq(e)}`),Kz=()=>Object.create(null),KW=(e,t)=>((function(e,t){if(!(KR(t)||/^(on|off)$/.test(t)||KU(t)))throw(({rule:e,value:t})=>Error(`☝️ ${e}: state option can be "on" or "off" only, when used as string, received: "${t}"`))({rule:e,value:t})})(e,t),"on"===t||"off"!==t&&t),KX=e=>{let t=[];for(let[r,n]of(function(e){if(KB(e))throw Error("☝️Looks like type of 'rules' passed to @putout/engine-loader is 'array', expected: 'object'.")}(e),KV(e))){if(K$(n)){t.push({rule:r,state:KW(r,n),plugin:null,msg:"",options:Kz()});continue}if(KR(n)){t.push({rule:r,state:n,plugin:null,msg:"",options:Kz()});continue}if(KB(n)&&n.length){t.push(function(e,t){let[r]=t,n=KW(e,r);if(3===t.length){let[,r,i]=t;return{rule:e,state:n,plugin:null,msg:r,options:i}}let[,i=""]=t;return{rule:e,state:n,plugin:null,msg:"",options:i}}(r,n));continue}if(KU(n))throw KJ(n);throw KK(n)}return t},{entries:KH,fromEntries:KG}=Object,KY=e=>e.split("/")[0],KQ=({rules:e,pluginNames:t})=>{let r=(e=>{let t=[];for(let r of e){let{rule:e}=r;e.includes("/")||t.push(r)}return t})(KX((e=>{let t=new Map;for(let[r,n]of KH(e))t.has(r)||(r.includes("/")&&KW(r,n)&&t.set(KY(r),"on"),t.set(r,n));return KG(t)})(e)));return{items:KA(t),loadedRules:r,cookedRules:KX(e)}},KZ=["find","traverse","replace","include","exclude","rules","declare","scan"],K0=({plugin:e,rule:t})=>{let r=Object.keys(e);for(let e of KZ)if(r.includes(e))return;throw Error(`☝️ Cannot determine type of plugin '${t}'. Here is list of supported plugins: https://git.io/JqcMn`)},K1=([e,t],r)=>{for(let n of r){if(n.rule!==e)continue;let{msg:r,options:i}=n;return{rule:e,plugin:t,msg:r,options:i}}return{rule:e,plugin:t,msg:"",options:Object.create(null)}},{isArray:K2}=Array,K3=e=>K2(e)?e:["on",e],K4=({plugins:e,cookedRules:t})=>{let r=[];for(let[n,i]of e){if(!Kj(n,t))continue;let[e,s]=K3(i);(function(e,t,r){if("on"===t)return!0;for(let{rule:t,state:n}of r)if(t.includes("/")&&e.startsWith(t))return n;return!1})(n,e,t)&&r.push(K1([n,s],t))}return r},K5=((e,t={})=>{let{simpleImport:r=Kb}=t;return async t=>{if("none"===t)return()=>{};if(t.startsWith("import:")){let e=t.replace("import:","");return await Kv([Kx.resolve(e)],{simpleImport:r,require:Kx})}let n=[`@putout/${e}-${t}`,`putout-${e}-${t}`],i=n.flatMap(KT),s=Array.from(new Set([...n,...i]));return await Kv(s,{simpleImport:r,require:Kx})}})("plugin"),K6=async e=>{K_(e);let{pluginNames:t=[],rules:r={}}=e,{items:n,loadedRules:i,cookedRules:s}=KQ({rules:r,pluginNames:t});return K4({plugins:await K9({items:n,loadedRules:i}),cookedRules:s})},K8=e=>[e,"putout"];async function K9({items:e,loadedRules:t}){let r=[],n=[];for(let[s,a]of e){var i;if(!Kj(s,t))continue;KN(s);let[e]=K8(s),o=a||await K5(e);r.push((i=s).startsWith("import:")?(0,Kd.basename)(i.replace("import:","")).replace("plugin-",""):i),n.push(o)}let s=[];for(let[e,t]of r.entries()){let r=n[e];K0({plugin:r,rule:t});let{rules:i}=r;if(i){s.push(...function(e,t){let r=[];for(let[n,i]of Object.entries(t))r.push([`${e}/${n}`,i]);return r}(t,i));continue}s.push([t,r])}return s}let{isArray:K7}=Array,Je=e=>{K_(e);let{pluginNames:t=[],rules:r={}}=e,{items:n,loadedRules:i,cookedRules:s}=KQ({rules:r,pluginNames:t});return K4({plugins:function({items:e,loadedRules:t}){let r=[];for(let[n,i]of e){if(KN(n),!Kj(n,t))continue;let e=Jr(n),[s,a]=Jt(n),o=Jn(i)||function({name:e,namespace:t}){let{loadPlugin:r}=Kg("file:///Users/coderaiser/cloudcmd/node_modules/@putout/engine-loader/lib/plugins/load-plugins.js")("../load/load.js");return r({name:e,namespace:t})}({name:s,namespace:a});K0({plugin:o,rule:n});let{rules:l}=o;if(l){r.push(...function(e,t){let r=[];for(let[n,i]of Object.entries(t))r.push([`${e}/${n}`,i]);return r}(e,l));continue}r.push([e,o])}return r}({items:n,loadedRules:i}),cookedRules:s})},Jt=e=>[e,"putout"],Jr=e=>e.replace("import:@putout/plugin-","").replace("@putout/plugin-",""),Jn=e=>K7(e)?e[1]:e;var Ji=r(3519);function Js(e,t){let r=0,n=0,i=-1,s=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,s=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++s}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}let Ja="",Jo=[],Jl=[];var Ju=r(5606);let Jc=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],Jp={useColors:!0,formatArgs:function(e,t){let{useColors:r}=this;if(t[0]=`${(r?"%c":"")+this.namespace+(r?" %c":" ")+t[0]+(r?"%c ":" ")}+${this.humanize(e)}`,!r)return;let n=`color: ${this.color}`;t.splice(1,0,n,"color: inherit");let i=0,s=0;t[0].replace(/%[a-z%]/gi,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,n)},formatters:{j(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: ${e.message}`}}},inspectOpts:{},humanize:function(e){return e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`},log:console.debug||console.log||(()=>{})};function Jh(e,t){var r;let n=null!=(r=t&&t.color)?r:function(e,t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return e[Math.abs(r)%e.length]}(Jc,e);return function e(t,r){let n,i,s,a,o=(...e)=>{var t;if(!o.enabled)return;let i=Date.now(),s=i-(n||i);n=i,e[0]=(t=e[0])instanceof Error?t.stack||t.message:t,"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-z%])/gi,(t,n)=>{if("%%"===t)return"%";a++;let i=r.formatters[n];if("function"==typeof i){let r=e[a];t=i.call(o,r),e.splice(a,1),a--}return t}),r.formatArgs.call(o,s,e),o.log(...e)};return o.extend=function(t,r=":"){return e(this.namespace+r+t,{useColors:this.useColors,color:this.color,formatArgs:this.formatArgs,formatters:this.formatters,inspectOpts:this.inspectOpts,log:this.log,humanize:this.humanize})},Object.assign(o,r),o.namespace=t,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!=i?i:(s!==Ja&&(s=Ja,a=function(e){for(let t of Jl)if(Js(e,t))return!1;for(let t of Jo)if(Js(e,t))return!0;return!1}(t)),a),set:e=>{i=e}}),o}(e,Object.assign(Jp,{color:n},t))}var Jd=function(){let e;try{e=localStorage.getItem("debug")||localStorage.getItem("DEBUG")}catch(e){}return!e&&void 0!==Ju&&"env"in Ju&&(e=Ju.env.DEBUG),e||""}();for(let e of(Jo=[],Jl=[],(Ja=Jd).trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===e[0]?Jl.push(e.slice(1)):Jo.push(e);let Jf=e=>new Proxy(Jh(e,{useColors:!0}),{apply:(t,r,n)=>(globalThis.__putout_debug?.(e,...n),t(...n)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]}),{stringify:Jm}=JSON,Jy=Jf("putout:runner:fix"),Jg=(e,t,{path:r,pathOptions:n,rule:i,position:s,options:a})=>{e&&(Jy.enabled&&Jy(`${i}:`,s,(r.path||r).toString()),function(e){if("function"!=typeof e)throw Error(`☝️ Looks like 'fix' is not a 'function' but '${typeof e}' with value: '${Jm(e)}'. More on writing 🐊Putout Plugins: https://git.io/JqcMn`)}(t),((e,{path:t,pathOptions:r,position:n,options:i})=>{let[s]=(0,q0.T)(e,...(({path:e,pathOptions:t,options:r})=>[e,{options:r,...t}])({path:t,pathOptions:r,options:i})),{scope:a}=t.path||t;if(!s&&a&&a.getProgramParent().crawl(),s)throw s.loc=s.loc||n,s.reason="fix",s})(t,{path:r,pathOptions:n,position:s,options:a}))},Jb=e=>e.path||e[0]||e,Jx=e=>{let t=Jb(e);var r=t;if(!r.node)throw Error("☝️ Looks like 'push' called without a 'path' argument.");let{node:n}=t,{loc:i}=n;if(!i)return{line:1,column:1};let{line:s,column:a}=n.loc.start;return{line:s,column:a}},{isArray:JS}=Array,Jv=e=>e?JS(e)?e:[e]:[],{stringify:JT}=JSON,{isArray:JE}=Array,Jk=(e,t)=>{if("include-items"===e){if(!JE(t))throw Error("☝️ Looks like 'include' does not return an 'array'. More on using Includer: https://git.io/JqcMn");return}if("function"!=typeof t)throw Error(`☝️ Looks like '${e}' is not a 'function' but '${typeof t}' with value: '${JT(t)}'. More on using Includer: https://git.io/JqcMn`)},{values:Jw,entries:JA,assign:JP}=Object,JC=e=>e.node,JI=e=>Array.from(e).filter(JC),J_=e=>e,JN=Jj(),JL=Jj(JI),JO=JF({get:e=>Jw(e),set(e,t,r){e[t]=r}}),JD=JF({get:e=>Jw(e),set(e,t,r){e[t]=e[t]||{},JP(e[t],r)}}),JM=JF({get:e=>Jw(e).map(JI),set(e,t,r){e[t]=e[t]||new Set,e[t].add(r)}});function JF({set:e,get:t}){return (r={})=>{let n=(...n)=>{if(!n.length)return t(r);let[i,s]=n;if(1===n.length)return r[i];e(r,i,s)};return n.clear=()=>{r={}},n.entries=()=>JA(r),n}}function Jj(e=J_){return (t=new Set)=>{let r=(...r)=>{if(!r.length)return e(Array.from(t));let[n]=r;t.add(n)};return r.clear=()=>{let r=t;return t=new Set,e(Array.from(r))},r}}let{merge:JB}=Le.visitors,{assign:JR}=Object,J$=(e,t,r)=>{let n=[];return t[e]&&(Jk(e,t[e]),n.push(...Jv(t[e]()))),r[e]&&n.push(...Jv(r[e])),n},JU=(e,{fix:t,template:r})=>{let n=[],i={};for(let{rule:s,plugin:a,msg:o,options:l}of e){let{push:e,pull:u,store:c,upstore:p,listStore:h,pathStore:d,uplist:f}=function(e,{fix:t,rule:r,msg:n,options:i}){let s=JO(),a=JN(),o=JD(),l=JN(),u=JM(),c=JL();return{push:(s,a)=>{let o=Jx(s);l({message:n||e.report(s,{options:i,...a}),position:o}),Jg(t,e.fix,{path:s,pathOptions:a,rule:r,position:o,options:i})},pull:()=>(s.clear(),a.clear(),o.clear(),u.clear(),c.clear(),l.clear()),store:s,listStore:a,upstore:o,uplist:u,pathStore:c}}(a,{fix:t,rule:s,msg:o,options:l});i[s]=u;let m=a.traverse({push:e,store:c,listStore:h,pathStore:d,upstore:p,uplist:f,generate:q6,options:l});if(!m)throw Error(`☝️ Visitors cannot be empty in "${s}"`);JR(l,{include:J$("include",a,l),exclude:J$("exclude",a,l)}),n.push(...r({rule:s,visitor:m,options:l}))}return{entries:Object.entries(i),visitor:JB(n)}},{merge:JV}=Le.visitors;function Jq({rule:e,find:t,ast:r,options:n,template:i,traverse:s=Le}){let a=[],o=t(r,{traverse:JK({rule:e,options:n,template:i,traverse:s}),generate:q6,types:e5,push:e=>{a.push(e)},options:n});return[...a,...o||[]]}let JK=({rule:e,options:t,template:r,traverse:n})=>(i,s)=>n(i,JV(r({rule:e,visitor:s,options:t}))),JJ=new Proxy(Jh("putout:compare"),{apply:(e,t,r)=>(globalThis.__putout_debug?.("putout:compare",...r),e(...r)),get:(e,t)=>!!globalThis.__putout_debug?.[t]||e[t]}),{isArray:Jz}=Array;function JW(e){if(Jz(e)&&e[0]){let[{type:t,name:r,value:n}]=e;return`${t}: ["${r||n}"]`}if(e&&"object"==typeof e){let{type:t,name:r,value:n}=e;return`${t}: "${r||n}"`}return`${typeof e}: "${e}"`}let{isIdentifier:JX,isLiteral:JH,isStringLiteral:JG,isTemplateElement:JY,isTSTypeReference:JQ,isJSXText:JZ,isJSXIdentifier:J0}=e5,{isBlockStatement:J1,isTSModuleBlock:J2,isBooleanLiteral:J3,isIdentifier:J4,isLiteral:J5,isTemplateElement:J6,isFunction:J8,isImportDefaultSpecifier:J9,isExportSpecifier:J7,isExportDefaultSpecifier:ze,isRegExpLiteral:zt,isJSXText:zr,isJSXIdentifier:zn,isJSXAttribute:zi,isTSTypeReference:zs,isTSTypeParameterDeclaration:za}=e5,{isArray:zo}=Array,zl="__object",zu="__array",zc="__args",zp="__type_params",zh="__imports",zd="__exports",zf="__body",zm="__jsx_children",zy="__jsx_attributes",zg="__identifier",zb="__bool",zx=/^__[a-z]$/,zS=/__args__[a-z]$/,zv=/^__identifier__[a-z]$/,zT=/^__bool__[a-z]$/,zE=[zl,zu,zc,zp,zb,zm,zy,zh,zd,zf,"__",zg,zx,zS,zv,zT],zk=e=>/[(;={.\s]/.test(e)||!/^[A-Z]/.test(e),zw=(e,t=zE)=>{for(let i of t){var r,n;if(r=e,"string"==typeof(n=i)?r===n:n.test(r))return!0}return!1},zA=e=>e===zh,zP=e=>e===zd,zC=e=>e===zc||zS.test(e),zI=e=>e===zp,z_=e=>e===zm,zN=e=>e===zy,zL=e=>e===zf,zO=e=>J4(e,{name:zf}),zD=(e,t)=>!!J4(t,{name:zg})&&J4(e),zM=(e,t)=>!!J4(t)&&!!zv.test(t.name)&&J4(e),zF=(e,t)=>!!zt(t)&&!!zx.test(t.pattern)&&zt(e),zj=e=>!(!e||zo(e))&&"object"==typeof e,zB=(e,t)=>!!zo(e)&&!!zo(t)&&e.length===t.length,zR="ObjectPattern|ObjectExpression",z$="ArrayPattern|ArrayExpression",zU=(e,t)=>{if(!e||!J4(t,{name:zu}))return!1;let{type:r}=e;return z$.includes(r)},zV=(e,t)=>{if(!e)return!1;let{type:r}=e;return!!J4(t,{name:zl})&&zR.includes(r)},zq=(e,t)=>!!e&&!!zO(t)&&"BlockStatement"===e.type,zK=(e,t)=>{if(!J4(t,{name:"__nop"})||!J8(e))return!1;let{body:r}=e;return!!J1(r)&&!r.body.length},zJ=e=>!!(J4(e)&&zx.test(e.name)||J5(e)&&zx.test(e.value)||zr(e)&&zx.test(e.value)||zn(e)&&zx.test(e.name)||J6(e)&&zx.test(e.value.raw))||zs(e)&&zx.test(e.typeName.name),zz=(e,{program:t}={})=>{let r=(t?Kp.program.ast:Kp.ast)(e)||Kp.ast.fresh(e);if(e===zl)return[r,zR];if(e===zu)return[r,z$];let{type:n}=r;return[r,n]},zW=(e,t)=>("object"!=typeof t||null===t)&&!zw(t)&&t===e,{isIdentifier:zX}=e5,{isClassBody:zH,isBlock:zG,isJSXText:zY,isTemplateElement:zQ}=e5,zZ=e=>(t,r)=>e(r),z0=[zW,function(e,t){if(!zQ(e)||!zQ(t))return!1;let r=e.value.raw===t.value.raw,n=e.value.cooked===t.value.cooked,i=e.tail===t.tail;return r&&n&&i},function(e,t){return!!zY(e)&&!!zY(t)&&/^\s+$/.test(t.value)&&/^\s+$/.test(e.value)},function(e,t){return"__"===t},zZ(zH),zZ(e=>zG(e)&&!e.body.length),zZ(e=>!!J4(e,{name:"__"})||zr(e,{value:"__"})),zD,(e,t)=>!!J4(t,{name:zb})&&J3(e),zU,zV,zq,(e,t)=>{if(!e||!(zO(t)||(J1(t)||J2(t))&&zO(t.body[0].expression)))return!1;let{type:r}=e;return/BlockStatement|TSModuleBlock/.test(r)},zK,(e,t)=>!!e&&!!(e=>{if(!za(e))return!1;let{params:t}=e,{name:r}=t[0];return J4(r,{name:zp})})(t)&&e.type===t.type,zF,function(e,t,{add:r,templateStore:n}){let i;return!!(e&&(zJ(t)||J4(i=zo(t)?t[0]:t)&&zS.test(i.name)||zM(e,t)||J4(t)&&zT.test(t.name)&&J3(e)))&&(({add:e,value:t,nodeValue:r,templateStore:n})=>{let i=(e=>{let{name:t,value:r}=e=e[0]||e;if(JX(e)||J0(e))return t;if(JH(e))return r;if(JY(e))return e.value.cooked;if(JQ(e))return e.typeName.name;if(JZ(e))return e.value;throw Error(`☝️ Looks like type of node '${e.type}' not supported by 'compare -> link -> parseName()'`)})(t);return(!JG(t)||!!JG(r))&&(n[i]?!!(JX(n[i])&&JQ(r))||(e(n[i],r,{plain:!0}),!0):(n[i]=r,!0))})({add:r,value:t,nodeValue:e,templateStore:n})},(e,t)=>!!J5(t,{value:"__"})&&e.type===t.type,zZ(e=>{let t=zo(e)?e[0]:e;return!!J9(t)&&J4(t.local,{name:zh})}),zZ(e=>{let t=zo(e)?e[0]:e;return J7(t)?J4(t.local,{name:zd}):!!ze(t)&&J4(t.exported,{name:zd})}),zZ(e=>J4(zo(e)?e[0]:e,{name:zc})),zZ(e=>zr(zo(e)?e[0]:e,{value:zm})),zZ(e=>{let t=zo(e)?e[0]:e;return!!zi(t)&&zn(t.name,{name:zy})}),function(e,t,{add:r}){let n=zj(t);return n&&r(e,t),n},function(e,t,{add:r}){let n=zB(e,t);return n&&r(e,t),n}],z1=(e,t,{add:r,templateStore:n,plain:i})=>{let s=-1,a=z0.length;if(((e,t)=>{if(!JJ.enabled)return;let r=JW(e),n=JW(t);return JJ(`${r} = ${n}`)})(t,e),i)return((e,t,{add:r})=>!e&&e===t||!!e&&(!!(zW(e,t)||zX(e)&&e.name===t.name)||!!(zj(t)&&!Array.isArray(t)||zB(e,t))&&r(e,t,{plain:!0})))(e,t,{add:r});for(;++s<a;)if((0,z0[s])(e,t,{add:r,templateStore:n}))return!0;return!1},{isIdentifier:z2,isStringLiteral:z3}=e5,z4=[zV,zU,zK,function(e,t){return z2(e)&&zJ(t)},function(e,t){return z3(e)&&zJ(t)},zM,zF,zq],z5=(e,t=Number(e))=>!Number.isNaN(t)&&"number"==typeof t,z6=e=>/__proto__|prototype/.test(e);function z8(e,t,r,n){n||(n=r||{},r=".");let i=n;var s=e;if("string"!=typeof s)throw Error("selector should be string!");let a=e.split(r).filter(Boolean),o=a.length-1;for(let[e,r]of a.entries())if(!z6(r)){if(e===o)n[r]=t;else if(!n[r]){let t=a[e+1];n[r]=z5(t)?[]:{}}n=n[r]}return i}let z9=/\.body\.0\.expression$/,z7=/\.body\.0\.key$/,We=/\.body\.0$/,Wt=e=>e.replace(z9,"").replace(z7,"").replace(We,""),{isIdentifier:Wr,isStatement:Wn,isJSXElement:Wi,isJSXAttribute:Ws,isStringLiteral:Wa,isTemplateLiteral:Wo,templateElement:Wl}=e5,{extractExpression:Wu}=Kp,{entries:Wc}=Object,{stringify:Wp}=JSON,Wh=(e,t)=>{let r,n;if("string"!=typeof t)throw Error(`☝️ Looks like argument 'template' of 'getTemplateValues(node, template)': is not a string, but '${Wp(t)}'`);return Wf({node:e=(n=e=(r=e).node||r).expression||n,waysFrom:Wd(Kp.ast(t))})};function Wd(e){if(Wr(e)&&zw(e.name))return{[e.name]:[""]};let t={};return Le(e,{noScope:!0,"Identifier|JSXIdentifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference|TSTypeParameter"(e){if(e.isIdentifier()&&e.parentPath?.isTSTypeReference()||e.isIdentifier()&&e.parentPath?.isTSTypeParameter())return;let{node:r}=e;if(Ws(e.parentPath)&&e.parentPath.node.name===r)return;let n=[],i=FJ(r);zw(i)&&(e.find(({key:e,listKey:t})=>{"number"==typeof e?n.unshift(`${t}.${e}`):n.unshift(e)}),t[i]=t[i]||[],t[i].push(n.join(".")))}}),t}function Wf({waysFrom:e,node:t}){let r={};for(let[n,i]of Wc(e))for(let e of i)zA(n)?e=e.replace(/\.0.local$/,""):zP(n)?e=e.replace(/\.0.(local|exported)$/,""):(zC(n)||z_(n)||zN(n)||zI(n))&&(e=e.replace(/\.0$/,"")),Wi(t)||(e=e.replace(/\.expression$/,"")),zL(n)&&(e=Wt(e)),r[n]=r[n]||Wu(Ln(e,t));return r}let Wm=e=>e.replace("`","\\`");function Wy({waysTo:e,values:t,path:r}){let n=Wu(r.node);for(let[i,s]of Wc(e))for(let e of s){if(!e){jv(r,t[i]);continue}if(zA(i)?e=e.replace(/\.0.local$/,""):zP(i)&&(e=e.replace(/\.0.(local|exported)$/,"")),(zC(i)||z_(i)||zN(i))&&(e=e.replace(/\.0$/,"")),Wn(t[i])&&(e=e.replace(/\.expression$/,"")),Wa(t[i])&&Wo(n)){let{value:r}=t[i];z8(e,Wl({raw:Wm(r)}),n);continue}zL(i)&&(e=Wt(e));let{extra:s}=Ln(e,n);if(s){let e=t[i].extra;t[i].extra={...s,...e}}z8(e,t[i],n)}}let{extractExpression:Wg}=Kp,{keys:Wb}=Object,{isArray:Wx}=Array,WS=()=>{},Wv=e=>Wx(e)&&!e.length,WT=e=>Wx(e)?e:[e];function WE(e){return"string"==typeof e?Kp.ast(e):e.node?e.node:e}function Wk(e,t,r={},n=WS){let{findUp:i=!0}=r;if(!e&&!t)return!0;if(!e||!t)return!1;let s=Wg(WE(e)),a=Wg(WE(t));if(n(s,a),zD(s,a)||s.type===t||((e,t)=>{let r=-1,n=z4.length;for(;++r<n;)if((0,z4[r])(e,t))return!0;return!1})(s,a))return!0;if(i&&e.node&&s.type!==a.type){let t,{type:r}=a;return WC((t=e.findParent(e=>e.type===r))?t.node:null,a)}return WC(s,a)}let Ww=(e,t,r)=>{for(let n of t=WT(t))if(Wk(e,n,r))return!0;return!1},WA=(e,t,r)=>{for(let n of t=WT(t))if(!Wk(e,n,r))return!1;return!0},WP=["loc","start","end","directives","extra","raw","comments","leadingComments","innerComments","parent","phase","range","trailingComments","importKind","exportKind","__putout_runner_replace"];function WC(e,t){let r=[e,t],n=[r],i={},s=(e,t,r={})=>n.push([e,t,r]);for(;r=n.pop();){let[e,t,{plain:n}={}]=r;if(!e||Wv(e)&&!Wv(t))return!1;for(let r of Wb(t)){if(!WP.includes(r)){if(!z1(Wg(e[r]),Wg(t[r]),{add:s,templateStore:i,plain:n}))return!1}}}return!0}let WI=Jf("putout:runner:template"),{entries:W_}=Object,{stringify:WN}=JSON,WL=({rule:e,tmpl:t,fn:r,nodesExclude:n})=>"function"==typeof r&&n.length?{[t]:WD({rule:e,fn:r,nodesExclude:n,nodesInclude:[]})}:{[t]:r},WO=({rule:e,visitor:t,options:r})=>{let n=[],i=Jv(r.exclude),s=Jv(r.include);for(let[r,a]of W_(t)){if(!r)continue;if(!zk(r)){n.push(WL({rule:e,tmpl:r,fn:a,nodesExclude:i}));continue}let[t,o]=zz(r),l=WD({rule:e,fn:a,nodesExclude:i,nodesInclude:[t,...s]});n.push({[o]:l})}return n},WD=({rule:e,nodesInclude:t,nodesExclude:r,fn:n})=>i=>{if(WI.enabled&&WI(e,i.toString()),r.length&&Ww(i,r)||t.length&&!WA(i,t))return;if("function"!=typeof n)throw Error(`☝️ Looks like provided visitor is not a function: ${WN(n)}. More on using Traverser: https://git.io/JqcMn`);let[s]=(0,q0.T)(n,i);if(s)throw s.rule=e,s};var WM=r(7007);let WF=()=>{let e=0,t=0,r=new WM.EventEmitter;return r.reset=()=>{t=0,e=0},r.file=({i:e,n:t,percent:n,rule:i})=>{r.emit("file",{i:e,n:t,rule:i,percent:n})},r.inc=()=>{++e},r.start=n=>{++t,r.emit("start",{pluginsIndex:t,pluginsCount:e,rule:n})},r.push=n=>{r.emit("push",{pluginsIndex:t,pluginsCount:e,rule:n})},r.end=n=>{r.emit("end",{rule:n,pluginsIndex:t,pluginsCount:e})},r},Wj=(e,...t)=>{let[r,n]=(0,q0.T)(e,...t);if(r)throw r.reason??="traverse",r;return n},WB=Jf("putout:runner:include"),WR=()=>[],W$=()=>!0,WU=({rule:e,plugin:t,msg:r,options:n})=>{let{fix:i,report:s,include:a,exclude:o=WR,filter:l=W$}=t;Jk("include",a),Jk("report",s),Jk("include-items",a());let u=WV(a(),l,e);return{rule:e,msg:r,options:{...n,exclude:[...o(),...Jv(n.exclude)]},plugin:{report:s,fix:i,traverse:u}}},WV=(e,t,r)=>({push:n,options:i})=>{let s={},a=(({rule:e,filter:t,push:r,options:n})=>i=>{WB(e),t(i,{options:n})&&r(i)})({rule:r,filter:t,push:n,options:i});for(let t of e)s[t]=a;return s},Wq=Jf("putout:runner:replace"),WK=(e,t)=>{Wq.enabled&&Wq(`${e} -> ${t}
49
+ `)},{isExpression:WJ,isStatement:Wz,isExpressionStatement:WW}=e5,WX={printer:["putout",{format:{newline:"",indent:"",splitter:" ",endOfFile:""}}]},{keys:WH,entries:WG}=Object,{stringify:WY}=JSON,WQ=()=>[],WZ=({rule:e,plugin:t,msg:r,options:n})=>{let i=(t.match||(()=>({})))({options:n}),{report:s,exclude:a=WQ,replace:o,filter:l=W2(i)}=t,u=o({options:n}),c=W1(u,i),p=()=>WH(u);return{rule:e,msg:r,options:{...n,exclude:[...a(),...Jv(n.exclude)]},plugin:{report:s,fix:c,filter:l,include:p}}},W0=(e,t,r)=>{let n=Kp.ast(e),i=((e,t,r)=>{var n,i,s;let a,o,{watermark:l,highWatermark:u}=(n=e,i=t,s=r,a=`${n} -> ${i}`,o=`${(e=>{let t={parentPath:e},r=[];for(;t=t.parentPath;)r.unshift(function(e,t){let r,n,{node:i}=e;for([r,n]of q9(t)){if(q7(n)){let e=n.indexOf(i);if(e>=0)return`${r}.${e}`;continue}if(n===i)break}return r}(t,t.parent));return r.join(".")})(s)}: ${a}`,{watermark:a,highWatermark:o}),c={watermark:l,highWatermark:u,program:r.findParent(Ke),path:r};return{init:eq(Kr,c),has:eq(Ks,c),add:eq(Kn,c)}})(e,t,r);if(i.init(),i.has())return;let s=Wd(n),a=Wf({waysFrom:s,node:((e,{node:t})=>e.type!==t.type&&WW(t)?t.expression:t)(n,r)}),o=function(e,t,r){let n="function"==typeof e?e(t,r):e;if(!n)return null;if("object"==typeof n&&n.type)return n.__putout_replace_cooked=!0,n;if("string"!=typeof n)throw Error(`☝️ Looks like you passed 'replace' value with a wrong type. Allowed: 'string', 'node' and 'path'. Received: '${typeof n}' with value '${n}'.`);return Kp.ast.fresh(n)}(t,a,r);if(!o)return WK(e,"''"),FH(r);var l=n,u=o,c=r;if(!(!WJ(l)||!Wz(u)||WW(u))&&!(WW(c)||WW(c.parentPath)))throw Error(`☝️ Looks like a try to put Statement in place of Expression, use 'match' to filter out such cases: '${qw(l,WX)} -> ${qw(u,WX)}'. For code: '${c}'`);let p=Wd(o),h=jv(r,o);o.__putout_replace_cooked||(W4(p,s),Wy({waysTo:p,values:a,path:h})),i.add(),r.scope.getBlockParent().crawl(),WK(e,h)},W1=(e,t)=>r=>{for(let[n,i]of WG(e)){let e=Kp.ast(n);if(Wk(r,e,{findUp:!1})){let s=t[n];(!s||W3(r,e,s))&&W0(n,i,r)}}},W2=e=>t=>{for(let[r,n]of WG(e)){let e=Kp.ast(r);if(Wk(t.node,e,{findUp:!1}))return W3(t,e,n)}return!0};function W3(e,t,r){let n=Wd(t),{node:i}=e,s=Wf({waysFrom:n,node:i});return function(e){if("function"!=typeof e)throw Error(`☝️ Looks like 'match' property value is not a 'function', but '${typeof e}' with value '${e}'.`)}(r),r(s,e)}let W4=(e,t)=>{for(let r of WH(e))if(!t[r])throw Error(`☝️ Looks like template values not linked: ${WY(WH(t))} -> ${WY(WH(e))}`)},W5="__putout_declare",W6=e=>e.scope.getProgramParent().path,W8=(e,t)=>t[e]=t[e]||{},W9=(e,t)=>{let r=W6(t);return W8(W5,r),r[W5].__putout_module_type=e,e},W7=e=>{let t=W6(e);return W8(W5,t),t[W5].__putout_module_type},{isImportDeclaration:Xe,isVariableDeclaration:Xt,isFunction:Xr,isTSParameterProperty:Xn}=e5,{keys:Xi}=Object,{isArray:Xs}=Array,Xa=e=>e.node.source.value.includes("."),Xo=["TSMethodSignature","TSFunctionType","TSDeclareMethod","TSDeclareFunction","TSParameterProperty","TSTypeAliasDeclaration","TSQualifiedName"],Xl=e=>({report:Xu,fix:Xp(e),traverse:Xc(e)}),Xu=e=>{let{name:t}=e.node,r=t.split(".").shift();return`Declare '${r}', it referenced but not defined`},Xc=e=>({push:t,options:r})=>({ReferencedIdentifier:function n(i){let s,{parentPath:a,scope:o,node:l}=i;if(Xn(a)&&a.node.decorators){for(let e of a.get("decorators")){let t=e.get("expression");Wk(t,"__a(__b)")&&n(t.get("callee"))}return}if(Xo.includes(a.type))return!1;let{dismiss:u=[],type:c}=r,p={...e,...r.declarations},h=Xi(p),{name:d}=l;if(!h.includes(d)||u.includes(d)||o.hasBinding(d)||(W8(W5,s=W6(i)),s[W5][d]))return!1;Xd(function(e,t){if(t)return W9(t,e);let r=W7(e);return r?r:W9(jD(e)?"esm":"commonjs",e)}(i,c),p[d])&&t(i)}}),Xp=e=>(t,{options:r})=>{let n,i=W7(t),s={...e,...r.declarations},{name:a}=t.node,o=s[a],l=Xd(i,o),u=Xh(t,o);!function(e,t,r){let n=function(e,t,r){let n=Xm(t),i=t.filter(Xt).pop();return Xs(r)&&r[1].top?t[0]:Xt(e)&&n||(Xe(e)||Xf(e))&&n?n:Xt(e)&&i&&t.at(-1)!==i?i:null}(e,t,r),[i]=t;Xt(e)&&Xe(n)||Xf(n)?j_(n,e):Xt(e)?Xf(i)?i.insertAfter(e):i.insertBefore(e):n?n.isImportDeclaration()&&Xa(n)?n.insertBefore(e):j_(n,e):i.insertBefore(e)}(Kp.ast.fresh(l),u,o),W8(W5,n=W6(t)),n[W5][a]=!0},Xh=(e,t)=>{if(Xs(t)&&t[1].nearby){let t=e.find(Xr);if(t)return t.get("body.body")}return e.scope.getProgramParent().path.get("body")},Xd=(e,t)=>"string"==typeof t?t:Xs(t)?t[0]:t[e],Xf=e=>Wk(e,"const __a = require(__b)"),Xm=e=>{let t=[],r=[];for(let n of e)if(n.isImportDeclaration()){if(Xa(n)){r.push(n);continue}t.push(n)}return t.pop()||r.pop()},{stringify:Xy}=JSON,Xg=({rule:e,plugin:t,msg:r,options:n})=>((function(e){if("function"!=typeof e)throw Error(`☝️ Looks like 'declare' property value is not a 'function', but '${typeof e}' with value '${Xy(e)}'.`)})(t.declare),{rule:e,plugin:Xl(t.declare()),msg:r,options:n}),Xb=(0,Of.p)(),{assign:Xx}=Object,XS=()=>{},Xv={renameFile:XS,removeFile:XS,createDirectory:XS,readFileContent:()=>"",writeFileContent:XS,copyFile:XS},XT=Xx({},Xv),XE=(e,t)=>{XT.renameFile(e,t)},{isFile:Xk,isProgram:Xw}=e5,{merge:XA}=Le.visitors,{entries:XP}=Object,XC=([e])=>e;function XI(e,t){let r=(e=>{if(e.node)return e.traverse.bind(e);let t=!Xk(e)&&!Xw(e);return r=>{Le(e,{noScope:t,...r})}})(e),n=[],i=XP(t);if(!i.map(XC).find(zk))return r(t);for(let[e,t]of i){if(!zk(e)){n.push({[e]:t});continue}let[r,i]=zz(e),s=XN({fn:t,node:r,tmpl:e});n.push({[i]:s})}r(XA(n))}let X_=XI,XN=({fn:e,node:t,tmpl:r})=>n=>{Wk(n,t)&&e(n,Wh(n.node,r))},XL=(e,t)=>{let r=!1,n=e=>{r=!0,e.stop()},i={};for(let e of t)i[e]=n;return XI(e,i),r},{arrayExpression:XO,stringLiteral:XD,objectProperty:XM}=e5;function XF(e,t){return XM(XD(e),t)}let{isProgram:Xj,objectExpression:XB}=e5,{isArray:XR}=Array,X$=e=>XR(e)?e:[e],XU=e=>{let[t,r]=(0,q0.T)(btoa,e);return t?btoa(encodeURIComponent(e).replaceAll("%","+")):r},XV=e=>{if(e.includes(" "))return e;let[t,r]=(0,q0.T)(atob,e);if(!t)return!r.includes(" ")&&r.includes("+")?decodeURIComponent(r.replaceAll("+","%")):r;return e},Xq=e=>{let t=e.replace(/\./g,"\\.").replace(/\*/g,".*").replace("?",".?");return RegExp(`^${t}$`)};function XK(e){if(!e.parentPath)return null;let{parentPath:t}=e.parentPath.parentPath;return Xj(t)?null:t}let XJ=e=>F9(e,"filename");function Xz(e,t,r){let n,{exclude:i=[],crawled:s=XJ(e)}=(a=r)?XR(a)?{exclude:a}:"function"==typeof a?{exclude:a}:a:{excluded:[]};var a,o=t;if("string"!=typeof o&&!XR(o)&&!(o instanceof Set))throw Error("☝️ Looks like you forget to pass the 'name' of a file to 'findFile(filePath: Path|FilePath, name: string | string[] | Set<string>): FilePath'");let l=new Set,u=(n=t)instanceof Set?Array.from(n):X$(n);for(let e of s){let{value:t}=e.node.value,r=(0,Kd.basename)(t);for(let n of u)if(t===n||Xq(n).test(r)){let t=e.parentPath;if(function({path:e,name:t,base:r,exclude:n}){if("function"==typeof n)return n(e);for(let e of n)if(t===e||Xq(e).test(r))return!0;return!1}({path:t,name:n,base:r,exclude:i}))continue;l.add(t)}}return Array.from(l)}function XW(e){return jn(e,"filename").get("value")}function XX(e){let{value:t}=XW(e).node;return t}function XH(e){return jn(e,"type").node.value.value}function XG(e){let t=jn(e,"content");return[!!t,t?.node.value.value]}let XY=(e,t)=>{if("string"!=typeof t)throw Error("☝️ Looks like you forget to pass the 'name' of a file to 'renameFile(filePath: FilePath, name: string)'");let r=XX(e),n=XW(e),i=r.split("/").pop(),s=t.split("/").pop(),a=r.replace(i,s);F4(n,a),XE(r,a)};function XQ(e){let t=XX(e);XK(e)&&(e.remove(),XT.removeFile(t))}let XZ=e=>{if("directory"!==XH(e))return;let t=e;for(;!X5(e).length&&"/"!==XX(e)&&(t=XK(e));)XQ(e),e=t},X0=(e,t)=>{if(e===t)return;let r=XX(t),n=XX(e),i=X4(t),s=jn(e,"filename"),a=n.split("/").pop(),o=(0,Kd.join)(r,a);X2(t,o),F4(s.get("value"),o),i.node.value.elements.push(e.node),e.remove(),XE(n,o)},X1=(e,t)=>{let r=XX(t),n=XX(e),i=n.split("/").pop(),s=(0,Kd.join)(r,i),[a,o]=XG(e),l=XB([XF("type",XD("file")),XF("filename",XD(s)),a&&XF("content",XD(o))].filter(Boolean));X2(t,s),X4(t).node.value.elements.push(l),XT.copyFile(n,s)};function X2(e,t){let r=XH(e);if("directory"!==r){let t=XX(e);throw Error(`☝️ Looks like '${t}' is not a directory, but: '${r}'. Rename to '${t}/'`)}let[n]=Xz(jn(e,"files"),(0,Kd.join)(XX(e),(0,Kd.basename)(t)));n&&n.remove()}let X3=(e,t,r)=>{X2(e,t);let n=X4(e),i=XX(e),s=(0,Kd.join)(i,t),a=[XF("type",XD("file")),XF("filename",XD(s)),r&&XF("content",XD(r))].filter(Boolean);n.node.value.elements.push(XB(a));let o=n.get("value.elements").at(-1);return"string"==typeof r&&X9(o,r),o},X4=e=>jn(e,"files");function X5(e){return"directory"!==XH(e)?[]:X4(e).get("value.elements")}function X6(e,t){let[r]=Ht(e,t);if(r){if("directory"===XH(r))return r;XQ(r)}let n=X4(e),i=XX(e),s=(0,Kd.join)(i,t),a=XF("type",XD("directory")),o=XF("files",XO([])),l=XF("filename",XD(s));return n.node.value.elements.push(XB([a,l,o])),XT.createDirectory(s),n.get("value.elements").at(-1)}let X8=e=>{let t;if("directory"===XH(e))return"";let[r,n]=XG(e);if(r)return XV(n);let i=(t=XX(e),XT.readFileContent(t)),s=XF("content",XD(XU(i)));return e.node.properties.push(s),i};function X9(e,t){var r;if("directory"===XH(e))return;r=XX(e),XT.writeFileContent(r,t);let n=jn(e,"content");if(n)return void F4(n.node.value,XU(t));let i=XF("content",XD(XU(t)));e.node.properties.push(i)}let X7=(e,t)=>{let r=He(e);if((0,Kd.dirname)(t)===XX(e))return X6(e,(0,Kd.basename)(t));let n=t,i=XX(r),s=[],a=n;for(;n!==i;)if(s.unshift(n),a=n,(n=(0,Kd.dirname)(n))===a){for(let[e,t]of(n=i,s.entries()))s[e]=(0,Kd.join)(i,t);s.shift();break}let o=Xz(r,s).at(-1)||r,l=XX(o),u=s.length,c=s.indexOf(l)+1;for(;c<u;c++)o=X6(o,(0,Kd.basename)(s[c]));return o};function He(e){if(e.program){let t;return XI(e,{[`${V6}(__)`](e){t=e.get("arguments.0")}}),t}let t=XK(e);if(!t)return e;let r=t;for(;t=XK(t);)r=t;return r}function Ht(e,t,{type:r}={}){let n=X$(t),i=new Map,s=0;for(let e of n)i.set(e,null);for(let t of X5(e)){let e=XX(t),a=(0,Kd.basename)(e);if(n.includes(a)&&(!r||r===XH(t))&&(i.set(a,t),++s,n.length===s))break}return i.values()}let{objectExpression:Hr,arrayExpression:Hn,stringLiteral:Hi,isArrayExpression:Hs,isStringLiteral:Ha,isTemplateLiteral:Ho,objectProperty:Hl}=e5,Hu=()=>"Convert Simple Filesystem to Filesystem",Hc=e=>{let t=e.endsWith("/")?"directory":"file";return Hl(Hi("type"),Hi(t))},Hp=e=>Hl(Hi("filename"),Hi(e)),Hh=e=>Hl(Hi("content"),Hi(e)),Hd=e=>{let t=Hn([]);for(let r of e.get("elements")){if(Hb(r)){let[e]=r.node.elements;t.elements.push(Hf(e));continue}if(Hg(r)){let[e,n]=r.node.elements,{value:i}=e,s=function(e,t){if(Ha(e))return e.value;if(Ho(e))return XU(e.quasis[0].value.cooked);throw Error(`☝️ Looks like wrong content type: '${e.type}' from file: '${t}'`)}(n,r);t.elements.push(Hr([Hc(i),Hp(i),Hh(s)]));continue}if(Ha(r)){let e=Hf(r);t.elements.push(e);continue}throw Error(`☝️ Looks like file '${r}' has wrong type: '${r.type}' expected: 'string | array'`)}!function(e,t){let[r,...n]=Xz(t,"*");for(let e of n){let t=XX(e);var i=t;if(!i.includes("/"))throw Error(`☝️ Looks like directory path is missing: '${i}'`);let n=XH(e),s=(0,Kd.dirname)(t),a=(0,Kd.basename)(t),[o]=Xz(r,s);if(!o||"directory"!==XH(o))throw Error(`☝️ Looks like directory '${s}/' is missing`);if("directory"===n){X6(o,a);continue}jn(o,"files").node.value.elements.push(e.node)}jv(e,r)}(e,t)};function Hf(e){let{value:t}=e.node||e;return Hr([Hc(t),Hp(Hy(t)),t.endsWith("/")?Hl(Hi("files"),Hn([])):null].filter(Boolean))}let Hm=({push:e})=>({[`${V6}(__array)`]:t=>{e(t.get("arguments.0"))}}),Hy=e=>"/"===e?e:e.endsWith("/")?e.slice(0,-1):e,Hg=e=>{if(!Hs(e))return!1;let{elements:t}=e.node;return 2===t.length},Hb=e=>{if(!Hs(e))return!1;let{elements:t}=e.node;return 1===t.length},{stringLiteral:Hx,arrayExpression:HS}=e5,{isArray:Hv}=Array,HT=e=>"/"===e?e:`${e}/`,HE=()=>"Convert Filesystem to Simple Filesystem",Hk=(e,{files:t})=>{let r=[];for(let e of t){let t=XX(e),n=XH(e),i=jn(e,"content"),s=i?.node?.value;if(s){r.push([t,s.value]);continue}if("directory"===n){r.push(HT(t));continue}r.push(t)}let n=[];for(let e of r){if(Hv(e)){n.push(HS([Hx(e[0]),Hx(e[1])]));continue}n.push(Hx(e))}jv(e,HS(n))},Hw=({push:e})=>({[`${V6}(__object)`]:t=>{let r=t.get("arguments.0"),n=Xz(r,"*");e(r,{files:n})}}),HA=Jf("putout:runner:scanner"),HP=({rule:e,plugin:t,msg:r,options:n},{progress:i})=>{let{scan:s,report:a,fix:o}=t;i.inc();let l=HC({scan:s,rule:e,progress:i});return{rule:e,msg:r,options:n,plugin:{report:a,fix:o,traverse:l}}},HC=({scan:e,rule:t,progress:r})=>({push:n,options:i})=>({[`${V6}(__)`](s){HA(t),r.start(t);let a=s.get("arguments.0"),o=(0,Of.p)(!1);HI(ep,{shouldConvert:!0,path:s,rootPath:a,isSimple:o});let l=(({rule:e,progress:t})=>({i:r,n})=>{++r;let i=`${Math.round(r/n*100)}%`;t.file({i:r,n,percent:i,rule:e})})({rule:t,progress:r}),u=XJ(a),c=(({fileProgress:e,crawled:t})=>function*(...r){let n=Xz(...r,{crawled:t}),i=n.length;for(let[t,r]of n.entries())e({i:t,n:i}),yield r})({fileProgress:l,crawled:u});e(a,{crawlFile:(...e)=>Xz(...e,{crawled:u}),push:(({push:e,rule:t,progress:r})=>(...n)=>{r.push(t),e(...n)})({push:n,rule:t,progress:r}),progress:l,trackFile:c,options:i}),HI(eh,{shouldConvert:o(),path:s,rootPath:a,isSimple:o}),r.end(t)}});function HI(e,{path:t,isSimple:r,shouldConvert:n=!0}){var i;let s,a,{traverse:o,fix:l}=e;if(!n)return;let[u,c]=(s=(i=o({push:(({fix:e,isSimple:t})=>(...r)=>(t(!0),e(...r)))({fix:l,isSimple:r})}))[`${V6}(__object)`],a=i[`${V6}(__array)`],s?[s,`${V6}(__object)`]:[a,`${V6}(__array)`]);Wk(t,c)&&(Xb(XT),Xx(XT,Xv),u(t),Xx(XT,Xb()))}let H_=Jf("putout:runner:find"),HN=e=>e?.removed,HL=({ast:e,fix:t,fixCount:r=2,plugins:n,progress:i=WF(),traverse:s=Le})=>{let a=[],o=Ji(JU),{pluginsFind:l,pluginsTraverse:u}=function(e,{progress:t}){let r=[],n=[];for(let i of e){let{plugin:e}=i;if(e.find){r.push(i);continue}if(e.traverse){n.push(i);continue}if(e.replace){n.push(WU(WZ(i)));continue}if(e.declare){n.push(Xg(i));continue}if(e.include){n.push(WU(i));continue}if(e.scan){n.push(HP(i,{progress:t}));continue}}return{pluginsFind:r,pluginsTraverse:n}}(n,{progress:i});for(let n=0;n<r&&(a=HO({ast:e,fix:t,pluginsFind:l,pluginsTraverse:u,merge:o,template:WO,traverse:s}),i.reset(),t&&a.length);n++){let{program:t}=e;Ki(t)}return a},HO=({ast:e,fix:t,pluginsFind:r,pluginsTraverse:n,template:i,merge:s,traverse:a})=>[...function({ast:e,fix:t,template:r,pluginsFind:n,traverse:i}){let s=[];for(let{rule:a,plugin:o,msg:l,options:u}of n){H_(`find: ${a}`);let{report:n,find:c}=o,p=Wj(Jq,{rule:a,find:c,ast:e,options:u,fix:t,template:r,traverse:i});if(p.length)for(let e of p){let r=l||n(e),{parentPath:i}=Jb(e),c=Jx(e);s.push({rule:a,message:r,position:c}),HN(i)||Jg(t,o.fix,{path:e,rule:a,position:c,options:u})}}return s}({ast:e,fix:t,template:i,pluginsFind:r,traverse:a}),...function({ast:e,fix:t,template:r,pluginsTraverse:n,merge:i,traverse:s}){let{entries:a,visitor:o}=i(n,{fix:t,template:r});Wj(s,e,o);let l=[];for(let[e,t]of a)for(let{message:r,position:n}of t())l.push({rule:e,message:r,position:n});return l}({ast:e,fix:t,template:i,pluginsTraverse:n,merge:s,traverse:a})],HD=(e={})=>{let{parser:t="babel",printer:r=e.printer||"putout",fix:n=!0,fixCount:i=4,loadPlugins:s=Je,loadPluginsAsync:a=K6,runPlugins:o=HL,progress:l=WF()}=e;return{...e,parser:t,printer:r,fix:n,fixCount:i,loadPlugins:s,loadPluginsAsync:a,runPlugins:o,progress:l}},HM=e=>e?((e,t="parser")=>{let{line:r,column:n}=e.loc||{line:1,column:1};return[{rule:e.rule?`${e.rule} (parser)`:t,message:e.message.replace(/\s\(\d:\d+\)/,""),position:{line:r,column:n}}]})(e,"loader"):[],HF=(e,t)=>{let{plugins:r,rules:n,fix:i,fixCount:s,loadPlugins:a,runPlugins:o,progress:l}=t=HD(t),[u]=(0,q0.T)(KF,{rules:n,pluginNames:r}),c=o({ast:e,fix:i,fixCount:s,plugins:a({pluginNames:r,rules:n}),progress:l});return[...HM(u),...c]},Hj=async(e,t)=>{let{plugins:r,rules:n,fix:i,fixCount:s,loadPluginsAsync:a,runPlugins:o,progress:l}=t=HD(t),[u]=(0,q0.T)(KF,{rules:n,pluginNames:r}),c=o({ast:e,fix:i,fixCount:s,plugins:await a({pluginNames:r,rules:n}),progress:l});return[...HM(u),...c]},HB=async(e,t)=>{HR(e);let{parser:r,isTS:n,isJSX:i,printer:s}=t=HD(t),a=q4(e,{parser:r,isTS:n,isJSX:i,printer:s}),o=await Hj(a,t);return t.fix?{code:qw(a,{printer:s}),places:o}:{code:e,places:o}};function HR(e){if("string"!=typeof e)throw Error(`☝️ Looks like 'source' has type '${typeof e}', expected: 'string'`)}let{isJSXElement:H$,jsxAttribute:HU,jsxIdentifier:HV,stringLiteral:Hq}=e5,HK=(e,t)=>{let r=e.node||e;return!!H$(e)&&r.openingElement.name.name===t},HJ=(e,t)=>{for(let r of e.get("openingElement.attributes"))if(r.node.name.name===t)return r;return null};function Hz(e,t){let r=null,{attributes:n}=(e.node||e).openingElement;for(let e of n)if(e.name.name===t){r=e;break}return r}function HW(e,t){let r=Hz(e,t);return r?r.value.value:""}function HX(e,t,r){let n=Hz(e,t);if(!n)return HH(e,t,r);n.value.value.includes(r)||F4(n.value,`${n.value.value} ${r}`)}function HH(e,t,r){let n=e.node||e,i=Hz(n,t);i||(i=HU(HV(t),Hq(r)),n.openingElement.attributes.push(i))}function HG(e,t,r){if(!e)return;let n=Hz(e.node||e,t),{value:i}=n.value;if(!i.includes(r))return;let s=i.replace(RegExp(`\\s?${r}`),"").trim();F4(n.value,s)}let HY=(e,t,r)=>{let n=Hz(e,t);if(!n)return HH(e,t,r);F4(n.value,r)},HQ=(e,t)=>{HX(e,"className",t)};function HZ(e){return HW(e,"className")}let H0=(e,t)=>{HG(e,"className",t)},H1=(e,t)=>HZ(e).includes(t),H2=(e,t="")=>HW(e,"data-name")===t,H3=(e,t,r="")=>HW(e,t)===r;var H4=r(9098);let H5=e=>e.slice(0,e.indexOf("{")),H6=e=>e.startsWith("namespace")?`${H5(e)}{
50
+ `:`namespace ${e} {
51
+ `,H8="__putout_processor_wasm",H9=(0,H4.l)`
52
+ namespace ${H8} {
53
+ __body
54
+ }
55
+ `,H7=e=>e.replace(" ",""),Ge=e=>` ${e}`,Gt=(e,t=H9)=>{let r=H6(t),n=e.split("\n").map(Ge).join("\n");return`${r}${n}
56
+ }`},Gr=(e,t=H9)=>{if(!e.startsWith("namespace"))return e;let r=H5(t);e=e.slice(e.indexOf(r));let n=H6(t),i=e.length-2;return e.slice(n.length,i).split("\n").map(H7).join("\n")};var Gn=r(4999);let Gi=({type:e,kind:t})=>"Char"!==e||"simple"!==t,Gs=e=>{let t=!1,r=Gn.parse(e);return"Alternative"===r.body.type&&(Gn.traverse(r,{RegExp({node:e}){let{expressions:r}=e.body;t=!!r.find(Gi)}}),!t)},Ga=(e,t)=>{var r=t;if(!r)throw Error("☝️ Looks like RegExpTransformer is missing");let{report:n,traverse:i,fix:s}=t,a=Gn.parse(e,{captureLocations:!0}),o=[];return Gn.traverse(a,i({push:e=>{let{start:t}=(e.path||e).node.loc;o.push({position:t,message:n(e)}),s(e)}})),[Gn.generate(a),o]};var Go=r(7159);function Gl({pattern:e}){return Go(e,{quotes:"single",escapeseq:!0})}let{isArray:Gu}=Array,{isBlockStatement:Gc,isFunction:Gp,isLabeledStatement:Gh,isObjectPattern:Gd,isCallExpression:Gf,isSequenceExpression:Gm,objectPattern:Gy,objectProperty:Gg}=e5,{entries:Gb}=Object,Gx=e=>e.isCallExpression()||e.isStatement(),GS=e=>Gf(e.find(Gx)),Gv=({name:e})=>`Argument '${e}' is missing`,GT=e=>({report:Gv,fix:GE,traverse:Gk(e)}),GE=({declaration:e,pattern:t,params:r,index:n})=>{let i=Kp.ast.fresh(e);if(Gm(i)){let{expressions:e}=i;r.push(...e.slice(r.length));return}if(Gc(i)){let e=function(e){if(!Gh(e)){let{expression:t}=e;return Gg(t,t,!1,!0)}let{label:t,body:r}=e;return Gg(t,r.expression,!1,!0)}(i.body[0]);return(t.properties.push(e),Gd(r[n]))?void 0:r.push(t)}r.push(i)},Gk=e=>({push:t,options:r})=>{let n={...r.args,...e};return{ReferencedIdentifier(e){for(let[r,i]of Gb(n)){let[n,s,a,o]=function(e){let[t,r,n]=e;if(Gu(r)||"string"==typeof r)return[t,"",r,n];let{type:i="",include:s,exclude:a}=r;return[t,i,s,a]}(i);if(e.node.name!==r||e.scope.hasBinding(r)||"call"===s&&!GS(e))continue;let l=e.find(Gp);if(!l||!Ww(e.scope.path,a)||Ww(e.scope.path,o))continue;let{params:u}=l.node,[c,p]=function(e){for(let[t,r]of e.entries())if(Gd(r))return[t,r];return[-1,null]}(u);if(Gd(p))return void t({name:r,index:c,declaration:n,path:e,params:u,pattern:p});if(u.length>=3)return;t({name:r,index:c,declaration:n,path:e,params:u,pattern:Gy([])})}}}},Gw=["import","export","with"],GA=["assert"],GP=["const","var","let"],GC=["if"],GI=["readonly","implements","declare","module","type","namespace"],G_=["interface","static"],GN=[...GC,...GP,...Gw,...G_,"async","break","continue","debugger","for","else","from","return","throw","of","while","class","extends","default"],GL=[...GN,"as","await","new","yield","typeof","function","instanceof"],GO=e=>GL.includes(e),GD=e=>GP.includes(e),GM=e=>Gw.includes(e),GF=e=>GC.includes(e),Gj=e=>GN.includes(e),GB=e=>{let t=GI.includes(e),r=G_.includes(e);return t||r},GR=e=>GA.includes(e),G$=(e,t)=>HF(e,{...t,fix:!1}),GU=async(e,t)=>await Hj(e,{...t,fix:!1});var GV=r(9708);let Gq=e=>!e.indexOf("!"),GK=e=>e.replace(/^!/,""),GJ=(e,t,r={})=>{let n=(0,Kd.relative)(e,t),i=GV(),s=function(e){for(let[t,r]of e.entries()){let n=e.indexOf(GK(r));Gq(r)&&n>t&&(e[n]=r)}return Array.from(new Set(e))}(r.ignore||[]);return i.add(s),e&&i.ignores(n)};var Gz=/[\s\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,\-.\/:;<=>?@\[\]^_`{|}~]+/,GW=/[A-ZÀ-Ý\u00C0-\u00D6\u00D9-\u00DD][a-zà-ÿ]/g,GX=/[A-ZÀ-Ý\u00C0-\u00D6\u00D9-\u00DD]+/g;let GH=Symbol.for("yaml.alias"),GG=Symbol.for("yaml.document"),GY=Symbol.for("yaml.map"),GQ=Symbol.for("yaml.pair"),GZ=Symbol.for("yaml.scalar"),G0=Symbol.for("yaml.seq"),G1=Symbol.for("yaml.node.type"),G2=e=>!!e&&"object"==typeof e&&e[G1]===GH,G3=e=>!!e&&"object"==typeof e&&e[G1]===GG,G4=e=>!!e&&"object"==typeof e&&e[G1]===GY,G5=e=>!!e&&"object"==typeof e&&e[G1]===GQ,G6=e=>!!e&&"object"==typeof e&&e[G1]===GZ,G8=e=>!!e&&"object"==typeof e&&e[G1]===G0;function G9(e){if(e&&"object"==typeof e)switch(e[G1]){case GY:case G0:return!0}return!1}function G7(e){if(e&&"object"==typeof e)switch(e[G1]){case GH:case GY:case GZ:case G0:return!0}return!1}let Ye=e=>(G6(e)||G9(e))&&!!e.anchor,Yt=Symbol("break visit"),Yr=Symbol("skip children"),Yn=Symbol("remove node");function Yi(e,t){let r=Yl(t);G3(e)?Ys(null,e.contents,r,Object.freeze([e]))===Yn&&(e.contents=null):Ys(null,e,r,Object.freeze([]))}function Ys(e,t,r,n){let i=Yu(e,t,r,n);if(G7(i)||G5(i))return Yc(e,n,i),Ys(e,i,r,n);if("symbol"!=typeof i){if(G9(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let i=Ys(e,t.items[e],r,n);if("number"==typeof i)e=i-1;else{if(i===Yt)return Yt;i===Yn&&(t.items.splice(e,1),e-=1)}}}else if(G5(t)){n=Object.freeze(n.concat(t));let e=Ys("key",t.key,r,n);if(e===Yt)return Yt;e===Yn&&(t.key=null);let i=Ys("value",t.value,r,n);if(i===Yt)return Yt;i===Yn&&(t.value=null)}}return i}async function Ya(e,t){let r=Yl(t);G3(e)?await Yo(null,e.contents,r,Object.freeze([e]))===Yn&&(e.contents=null):await Yo(null,e,r,Object.freeze([]))}async function Yo(e,t,r,n){let i=await Yu(e,t,r,n);if(G7(i)||G5(i))return Yc(e,n,i),Yo(e,i,r,n);if("symbol"!=typeof i){if(G9(t)){n=Object.freeze(n.concat(t));for(let e=0;e<t.items.length;++e){let i=await Yo(e,t.items[e],r,n);if("number"==typeof i)e=i-1;else{if(i===Yt)return Yt;i===Yn&&(t.items.splice(e,1),e-=1)}}}else if(G5(t)){n=Object.freeze(n.concat(t));let e=await Yo("key",t.key,r,n);if(e===Yt)return Yt;e===Yn&&(t.key=null);let i=await Yo("value",t.value,r,n);if(i===Yt)return Yt;i===Yn&&(t.value=null)}}return i}function Yl(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Yu(e,t,r,n){return"function"==typeof r?r(e,t,n):G4(t)?r.Map?.(e,t,n):G8(t)?r.Seq?.(e,t,n):G5(t)?r.Pair?.(e,t,n):G6(t)?r.Scalar?.(e,t,n):G2(t)?r.Alias?.(e,t,n):void 0}function Yc(e,t,r){let n=t[t.length-1];if(G9(n))n.items[e]=r;else if(G5(n))"key"===e?n.key=r:n.value=r;else if(G3(n))n.contents=r;else{let e=G2(n)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}Yi.BREAK=Yt,Yi.SKIP=Yr,Yi.REMOVE=Yn,Ya.BREAK=Yt,Ya.SKIP=Yr,Ya.REMOVE=Yn;let Yp={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Yh=e=>e.replace(/[!,[\]{}]/g,e=>Yp[e]);class Yd{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Yd.defaultYaml,e),this.tags=Object.assign({},Yd.defaultTags,t)}clone(){let e=new Yd(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new Yd(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Yd.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Yd.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Yd.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Yd.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),n=r.shift();switch(n){case"%TAG":{if(2!==r.length&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;let[e,n]=r;return this.tags[e]=n,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==r.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=r;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let r=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,r),!1}}default:return t(0,`Unknown directive ${n}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let r=e.slice(2,-1);return"!"===r||"!!"===r?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),r)}let[,r,n]=e.match(/^(.*!)([^!]*)$/s);n||t(`The ${e} tag has no suffix`);let i=this.tags[r];if(i)try{return i+decodeURIComponent(n)}catch(e){return t(String(e)),null}return"!"===r?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+Yh(e.substring(r.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);if(e&&n.length>0&&G7(e.contents)){let r={};Yi(e.contents,(e,t)=>{G7(t)&&t.tag&&(r[t.tag]=!0)}),t=Object.keys(r)}else t=[];for(let[i,s]of n)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!e||t.some(e=>e.startsWith(s)))&&r.push(`%TAG ${i} ${s}`);return r.join("\n")}}function Yf(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function Ym(e){let t=new Set;return Yi(e,{Value(e,r){r.anchor&&t.add(r.anchor)}}),t}function Yy(e,t){for(let r=1;;++r){let n=`${e}${r}`;if(!t.has(n))return n}}function Yg(e,t,r,n){if(n&&"object"==typeof n)if(Array.isArray(n))for(let t=0,r=n.length;t<r;++t){let r=n[t],i=Yg(e,n,String(t),r);void 0===i?delete n[t]:i!==r&&(n[t]=i)}else if(n instanceof Map)for(let t of Array.from(n.keys())){let r=n.get(t),i=Yg(e,n,t,r);void 0===i?n.delete(t):i!==r&&n.set(t,i)}else if(n instanceof Set)for(let t of Array.from(n)){let r=Yg(e,n,t,t);void 0===r?n.delete(t):r!==t&&(n.delete(t),n.add(r))}else for(let[t,r]of Object.entries(n)){let i=Yg(e,n,t,r);void 0===i?delete n[t]:i!==r&&(n[t]=i)}return e.call(t,r,n)}function Yb(e,t,r){if(Array.isArray(e))return e.map((e,t)=>Yb(e,String(t),r));if(e&&"function"==typeof e.toJSON){if(!r||!Ye(e))return e.toJSON(t,r);let n={aliasCount:0,count:1,res:void 0};r.anchors.set(e,n),r.onCreate=e=>{n.res=e,delete r.onCreate};let i=e.toJSON(t,r);return r.onCreate&&r.onCreate(i),i}return"bigint"!=typeof e||r?.keep?e:Number(e)}Yd.defaultYaml={explicit:!1,version:"1.2"},Yd.defaultTags={"!!":"tag:yaml.org,2002:"};class Yx{constructor(e){Object.defineProperty(this,G1,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:n,reviver:i}={}){if(!G3(e))throw TypeError("A document argument is required");let s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},a=Yb(this,"",s);if("function"==typeof n)for(let{count:e,res:t}of s.anchors.values())n(t,e);return"function"==typeof i?Yg(i,{"":a},"",a):a}}class YS extends Yx{constructor(e){super(GH),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let r,n;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?r=t.aliasResolveCache:(r=[],Yi(e,{Node:(e,t)=>{(G2(t)||Ye(t))&&r.push(t)}}),t&&(t.aliasResolveCache=r)),r)){if(i===this)break;i.anchor===this.source&&(n=i)}if(n&&t){let{anchors:e,doc:r,maxAliasCount:i}=t,s=e.get(n);if(s||(Yb(n,null,t),s=e.get(n)),s?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(s.count+=1,0===s.aliasCount&&(s.aliasCount=function e(t,r,n){if(G2(r)){let e=r.resolve(t),i=n&&e&&n.get(e);return i?i.count*i.aliasCount:0}if(G9(r)){let i=0;for(let s of r.items){let r=e(t,s,n);r>i&&(i=r)}return i}return G5(r)?Math.max(e(t,r.key,n),e(t,r.value,n)):1}(r,n,e)),s.count*s.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return n}toJSON(e,t){if(!t)return{source:this.source};let r=this.resolve(t.doc,t);if(!r)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);return t.anchors.get(r).res}toString(e,t,r){let n=`*${this.source}`;if(e){if(Yf(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${n} `}return n}}let Yv=e=>!e||"function"!=typeof e&&"object"!=typeof e;class YT extends Yx{constructor(e){super(GZ),this.value=e}toJSON(e,t){return t?.keep?this.value:Yb(this.value,e,t)}toString(){return String(this.value)}}function YE(e,t,r){let n;if(G3(e)&&(e=e.contents),G7(e))return e;if(G5(e)){let t=r.schema[GY].createNode?.(r.schema,null,r);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:a,schema:o,sourceObjects:l}=r;if(i&&e&&"object"==typeof e){if(n=l.get(e))return n.anchor??(n.anchor=s(e)),new YS(n.anchor);n={anchor:null,node:null},l.set(e,n)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,r){if(t){let e=r.filter(e=>e.tag===t),n=e.find(e=>!e.format)??e[0];if(!n)throw Error(`Tag ${t} not found`);return n}return r.find(t=>t.identify?.(e)&&!t.format)}(e,t,o.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new YT(e);return n&&(n.node=t),t}u=e instanceof Map?o[GY]:Symbol.iterator in Object(e)?o[G0]:o[GY]}a&&(a(u),delete r.onTagObj);let c=u?.createNode?u.createNode(r.schema,e,r):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(r.schema,e,r):new YT(e);return t?c.tag=t:u.default||(c.tag=u.tag),n&&(n.node=c),c}function Yk(e,t,r){let n=r;for(let e=t.length-1;e>=0;--e){let r=t[e];if("number"==typeof r&&Number.isInteger(r)&&r>=0){let e=[];e[r]=n,n=e}else n=new Map([[r,n]])}return YE(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}YT.BLOCK_FOLDED="BLOCK_FOLDED",YT.BLOCK_LITERAL="BLOCK_LITERAL",YT.PLAIN="PLAIN",YT.QUOTE_DOUBLE="QUOTE_DOUBLE",YT.QUOTE_SINGLE="QUOTE_SINGLE";let Yw=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class YA extends Yx{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>G7(t)||G5(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Yw(e))this.add(t);else{let[r,...n]=e,i=this.get(r,!0);if(G9(i))i.addIn(n,t);else if(void 0===i&&this.schema)this.set(r,Yk(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}deleteIn(e){let[t,...r]=e;if(0===r.length)return this.delete(t);let n=this.get(t,!0);if(G9(n))return n.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...n]=e,i=this.get(r,!0);return 0===n.length?!t&&G6(i)?i.value:i:G9(i)?i.getIn(n,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!G5(t))return!1;let r=t.value;return null==r||e&&G6(r)&&null==r.value&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(0===r.length)return this.has(t);let n=this.get(t,!0);return!!G9(n)&&n.hasIn(r)}setIn(e,t){let[r,...n]=e;if(0===n.length)this.set(r,t);else{let e=this.get(r,!0);if(G9(e))e.setIn(n,t);else if(void 0===e&&this.schema)this.set(r,Yk(this.schema,n,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}}}let YP=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function YC(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let YI=(e,t,r)=>e.endsWith("\n")?YC(r,t):r.includes("\n")?"\n"+YC(r,t):(e.endsWith(" ")?"":" ")+r,Y_="block",YN="quoted";function YL(e,t,r="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:o}={}){let l,u,c;if(!i||i<0)return e;i<s&&(s=0);let p=Math.max(1+s,1+i-t.length);if(e.length<=p)return e;let h=[],d={},f=i-t.length;"number"==typeof n&&(n>i-Math.max(2,s)?h.push(0):f=i-n);let m=!1,y=-1,g=-1,b=-1;for(r===Y_&&-1!==(y=YO(e,y,t.length))&&(f=y+p);c=e[y+=1];){if(r===YN&&"\\"===c){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===c)r===Y_&&(y=YO(e,y,t.length)),f=y+t.length+p,l=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(l=y)}if(y>=f)if(l)h.push(l),f=l+p,l=void 0;else if(r===YN){for(;" "===u||" "===u;)u=c,c=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(d[t])return e;h.push(t),d[t]=!0,f=t+p,l=void 0}else m=!0}u=c}if(m&&o&&o(),0===h.length)return e;a&&a();let x=e.slice(0,h[0]);for(let n=0;n<h.length;++n){let i=h[n],s=h[n+1]||e.length;0===i?x=`
57
+ ${t}${e.slice(0,s)}`:(r===YN&&d[i]&&(x+=`${e[i]}\\`),x+=`
58
+ ${t}${e.slice(i+1,s)}`)}return x}function YO(e,t,r){let n=t,i=t+1,s=e[i];for(;" "===s||" "===s;)if(t<i+r)s=e[++t];else{do s=e[++t];while(s&&"\n"!==s)n=t,s=e[i=t+1]}return n}let YD=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function YM(e,t){let r=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return r;let{implicitKey:n}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),a="",o=0;for(let e=0,t=r[e];t;t=r[++e])if(" "===t&&"\\"===r[e+1]&&"n"===r[e+2]&&(a+=r.slice(o,e)+"\\ ",e+=1,o=e,t="\\"),"\\"===t)switch(r[e+1]){case"u":{a+=r.slice(o,e);let t=r.substr(e+2,4);switch(t){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:"00"===t.substr(0,2)?a+="\\x"+t.substr(2):a+=r.substr(e,6)}e+=5,o=e+1}break;case"n":if(n||'"'===r[e+2]||r.length<i)e+=1;else{for(a+=r.slice(o,e)+"\n\n";"\\"===r[e+2]&&"n"===r[e+3]&&'"'!==r[e+4];)a+="\n",e+=2;a+=s," "===r[e+2]&&(a+="\\"),e+=1,o=e+1}break;default:e+=1}return a=o?a+r.slice(o):r,n?a:YL(a,s,"quoted",YD(t,!1))}function YF(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return YM(e,t);let r=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),n="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
59
+ ${r}`)+"'";return t.implicitKey?n:YL(n,r,"flow",YD(t,!1))}function Yj(e,t){let r,{singleQuote:n}=t.options;if(!1===n)r=YM;else{let t=e.includes('"'),i=e.includes("'");r=t&&!i?YF:i&&!t?YM:n?YF:YM}return r(e,t)}try{n=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{n=/\n+(?!\n|$)/g}function YB({comment:e,type:t,value:r},i,s,a){let o,l,u,c,{blockQuote:p,commentString:h,lineWidth:d}=i.options;if(!p||/\n[\t ]+$/.test(r))return Yj(r,i);let f=i.indent||(i.forceBlockIndent||(c=r,/^(%|---|\.\.\.)/m.test(c))?" ":""),m="literal"===p||"folded"!==p&&t!==YT.BLOCK_FOLDED&&(t===YT.BLOCK_LITERAL||!function(e,t,r){if(!t||t<0)return!1;let n=t-r,i=e.length;if(i<=n)return!1;for(let t=0,r=0;t<i;++t)if("\n"===e[t]){if(t-r>n)return!0;if(i-(r=t+1)<=n)return!1}return!0}(r,d,f.length));if(!r)return m?"|\n":">\n";for(l=r.length;l>0;--l){let e=r[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let y=r.substring(l),g=y.indexOf("\n");-1===g?o="-":r===y||g!==y.length-1?(o="+",a&&a()):o="",y&&(r=r.slice(0,-y.length),"\n"===y[y.length-1]&&(y=y.slice(0,-1)),y=y.replace(n,`$&${f}`));let b=!1,x=-1;for(u=0;u<r.length;++u){let e=r[u];if(" "===e)b=!0;else if("\n"===e)x=u;else break}let S=r.substring(0,x<u?x+1:u);S&&(r=r.substring(S.length),S=S.replace(/\n+/g,`$&${f}`));let v=f?"2":"1",T=(b?v:"")+o;if(e&&(T+=" "+h(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!m){let e=r.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${f}`),n=!1,s=YD(i,!0);"folded"!==p&&t!==YT.BLOCK_FOLDED&&(s.onOverflow=()=>{n=!0});let a=YL(`${S}${e}${y}`,f,"block",s);if(!n)return`>${T}
60
+ ${f}${a}`}return r=r.replace(/\n+/g,`$&${f}`),`|${T}
61
+ ${f}${S}${r}${y}`}function YR(e,t,r,n){let{implicitKey:i,inFlow:s}=t,a="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:o}=e;o!==YT.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=YT.QUOTE_DOUBLE);let l=e=>{switch(e){case YT.BLOCK_FOLDED:case YT.BLOCK_LITERAL:return i||s?Yj(a.value,t):YB(a,t,r,n);case YT.QUOTE_DOUBLE:return YM(a.value,t);case YT.QUOTE_SINGLE:return YF(a.value,t);case YT.PLAIN:return function(e,t,r,n){let{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:l,indentStep:u,inFlow:c}=t;if(o&&s.includes("\n")||c&&/[[\]{},]/.test(s))return Yj(s,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||c||!s.includes("\n")?Yj(s,t):YB(e,t,r,n);if(!o&&!c&&i!==YT.PLAIN&&s.includes("\n"))return YB(e,t,r,n);if(/^(%|---|\.\.\.)/m.test(s)){if(""===l)return t.forceBlockIndent=!0,YB(e,t,r,n);else if(o&&l===u)return Yj(s,t)}let p=s.replace(/\n+/g,`$&
62
+ ${l}`);if(a){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(p),{compat:r,tags:n}=t.doc.schema;if(n.some(e)||r?.some(e))return Yj(s,t)}return o?p:YL(p,l,"flow",YD(t,!1))}(a,t,r,n);default:return null}},u=l(o);if(null===u){let{defaultKeyType:e,defaultStringType:r}=t.options,n=i&&e||r;if(null===(u=l(n)))throw Error(`Unsupported default string type ${n}`)}return u}function Y$(e,t){let r,n=Object.assign({blockQuote:!0,commentString:YP,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof n.indent?" ".repeat(n.indent):" ",inFlow:r,options:n}}function YU(e,t,r,n){let i;if(G5(e))return e.toString(t,r,n);if(G2(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s=G7(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??(i=function(e,t){let r,n;if(t.tag){let r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)??r[0]}if(G6(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(null===r?"null":typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}(t.doc.schema.tags,s));let a=function(e,t,{anchors:r,doc:n}){if(!n.directives)return"";let i=[],s=(G6(e)||G9(e))&&e.anchor;s&&Yf(s)&&(r.add(s),i.push(`&${s}`));let a=e.tag??(t.default?null:t.tag);return a&&i.push(n.directives.tagString(a)),i.join(" ")}(s,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);let o="function"==typeof i.stringify?i.stringify(s,t,r,n):G6(s)?YR(s,t,r,n):s.toString(t,r,n);return a?G6(s)||"{"===o[0]||"["===o[0]?`${a} ${o}`:`${a}
63
+ ${t.indent}${o}`:o}function YV(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let Yq={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new YT(Symbol("<<")),{addToJSMap:YK}),stringify:()=>"<<"};function YK(e,t,r){let n=Yz(e,r);if(G8(n))for(let r of n.items)YJ(e,t,r);else if(Array.isArray(n))for(let r of n)YJ(e,t,r);else YJ(e,t,n)}function YJ(e,t,r){let n=Yz(e,r);if(!G4(n))throw Error("Merge sources must be maps or map aliases");for(let[r,i]of n.toJSON(null,e,Map))t instanceof Map?t.has(r)||t.set(r,i):t instanceof Set?t.add(r):Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function Yz(e,t){return e&&G2(t)?t.resolve(e.doc,e):t}function YW(e,t,{key:r,value:n}){if(G7(r)&&r.addToJSMap)r.addToJSMap(e,t,n);else if((Yq.identify(r)||G6(r)&&(!r.type||r.type===YT.PLAIN)&&Yq.identify(r.value))&&e?.doc.schema.tags.some(e=>e.tag===Yq.tag&&e.default))YK(e,t,n);else{let i=Yb(r,"",e);if(t instanceof Map)t.set(i,Yb(n,i,e));else if(t instanceof Set)t.add(i);else{let s=function(e,t,r){if(null===t)return"";if("object"!=typeof t)return String(t);if(G7(e)&&r?.doc){let t=Y$(r.doc,{});for(let e of(t.anchors=new Set,r.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let n=e.toString(t);if(!r.mapKeyWarned){let e=JSON.stringify(n);e.length>40&&(e=e.substring(0,36)+'..."'),YV(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return n}return JSON.stringify(t)}(r,i,e),a=Yb(n,s,e);s in t?Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[s]=a}}return t}function YX(e,t,r){return new YH(YE(e,void 0,r),YE(t,void 0,r))}class YH{constructor(e,t=null){Object.defineProperty(this,G1,{value:GQ}),this.key=e,this.value=t}clone(e){let{key:t,value:r}=this;return G7(t)&&(t=t.clone(e)),G7(r)&&(r=r.clone(e)),new YH(t,r)}toJSON(e,t){let r=t?.mapAsMap?new Map:{};return YW(t,r,this)}toString(e,t,r){return e?.doc?function({key:e,value:t},r,n,i){let s,a,o,{allNullValues:l,doc:u,indent:c,indentStep:p,options:{commentString:h,indentSeq:d,simpleKeys:f}}=r,m=G7(e)&&e.comment||null;if(f){if(m)throw Error("With simple keys, key nodes cannot have comments");if(G9(e)||!G7(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let y=!f&&(!e||m&&null==t&&!r.inFlow||G9(e)||(G6(e)?e.type===YT.BLOCK_FOLDED||e.type===YT.BLOCK_LITERAL:"object"==typeof e));r=Object.assign({},r,{allNullValues:!1,implicitKey:!y&&(f||!l),indent:c+p});let g=!1,b=!1,x=YU(e,r,()=>g=!0,()=>b=!0);if(!y&&!r.inFlow&&x.length>1024){if(f)throw Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(r.inFlow){if(l||null==t)return g&&n&&n(),""===x?"?":y?`? ${x}`:x}else if(l&&!f||null==t&&y)return x=`? ${x}`,m&&!g?x+=YI(x,r.indent,h(m)):b&&i&&i(),x;g&&(m=null),y?(m&&(x+=YI(x,r.indent,h(m))),x=`? ${x}
64
+ ${c}:`):(x=`${x}:`,m&&(x+=YI(x,r.indent,h(m)))),G7(t)?(s=!!t.spaceBefore,a=t.commentBefore,o=t.comment):(s=!1,a=null,o=null,t&&"object"==typeof t&&(t=u.createNode(t))),r.implicitKey=!1,!y&&!m&&G6(t)&&(r.indentAtStart=x.length+1),b=!1,!(!d&&p.length>=2&&!r.inFlow&&!y&&G8(t))||t.flow||t.tag||t.anchor||(r.indent=r.indent.substring(2));let S=!1,v=YU(t,r,()=>S=!0,()=>b=!0),T=" ";if(m||s||a){if(T=s?"\n":"",a){let e=h(a);T+=`
65
+ ${YC(e,r.indent)}`}""!==v||r.inFlow?T+=`
66
+ ${r.indent}`:"\n"===T&&o&&(T="\n\n")}else if(!y&&G9(t)){let e=v[0],n=v.indexOf("\n"),i=-1!==n,s=r.inFlow??t.flow??0===t.items.length;if(i||!s){let t=!1;if(i&&("&"===e||"!"===e)){let r=v.indexOf(" ");"&"===e&&-1!==r&&r<n&&"!"===v[r+1]&&(r=v.indexOf(" ",r+1)),(-1===r||n<r)&&(t=!0)}t||(T=`
67
+ ${r.indent}`)}}else(""===v||"\n"===v[0])&&(T="");return x+=T+v,r.inFlow?S&&n&&n():o&&!S?x+=YI(x,r.indent,h(o)):b&&i&&i(),x}(this,e,t,r):JSON.stringify(this)}}function YG(e,t,r){return(t.inFlow??e.flow?function({items:e},t,{flowChars:r,itemIndent:n}){let{indent:i,indentStep:s,flowCollectionPadding:a,options:{commentString:o}}=t,l=Object.assign({},t,{indent:n+=s,inFlow:!0,type:null}),u=!1,c=0,p=[];for(let r=0;r<e.length;++r){let i=e[r],s=null;if(G7(i))i.spaceBefore&&p.push(""),YY(t,p,i.commentBefore,!1),i.comment&&(s=i.comment);else if(G5(i)){let e=G7(i.key)?i.key:null;e&&(e.spaceBefore&&p.push(""),YY(t,p,e.commentBefore,!1),e.comment&&(u=!0));let r=G7(i.value)?i.value:null;r?(r.comment&&(s=r.comment),r.commentBefore&&(u=!0)):null==i.value&&e?.comment&&(s=e.comment)}s&&(u=!0);let a=YU(i,l,()=>s=null);u||(u=p.length>c||a.includes("\n")),r<e.length-1?a+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(u||(u=p.reduce((e,t)=>e+t.length+2,2)+(a.length+2)>t.options.lineWidth)),u&&(a+=",")),s&&(a+=YI(a,n,o(s))),p.push(a),c=p.length}let{start:h,end:d}=r;if(0===p.length)return h+d;if(!u){let e=p.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${h}${a}${p.join(" ")}${a}${d}`;{let e=h;for(let t of p)e+=t?`
68
+ ${s}${i}${t}`:"\n";return`${e}
69
+ ${i}${d}`}}:function({comment:e,items:t},r,{blockItemPrefix:n,flowChars:i,itemIndent:s,onChompKeep:a,onComment:o}){let l,{indent:u,options:{commentString:c}}=r,p=Object.assign({},r,{indent:s,type:null}),h=!1,d=[];for(let e=0;e<t.length;++e){let i=t[e],a=null;if(G7(i))!h&&i.spaceBefore&&d.push(""),YY(r,d,i.commentBefore,h),i.comment&&(a=i.comment);else if(G5(i)){let e=G7(i.key)?i.key:null;e&&(!h&&e.spaceBefore&&d.push(""),YY(r,d,e.commentBefore,h))}h=!1;let o=YU(i,p,()=>a=null,()=>h=!0);a&&(o+=YI(o,s,c(a))),h&&a&&(h=!1),d.push(n+o)}if(0===d.length)l=i.start+i.end;else{l=d[0];for(let e=1;e<d.length;++e){let t=d[e];l+=t?`
70
+ ${u}${t}`:"\n"}}return e?(l+="\n"+YC(c(e),u),o&&o()):h&&a&&a(),l})(e,t,r)}function YY({indent:e,options:{commentString:t}},r,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let i=YC(t(n),e);r.push(i.trimStart())}}function YQ(e,t){let r=G6(t)?t.value:t;for(let n of e)if(G5(n)&&(n.key===t||n.key===r||G6(n.key)&&n.key.value===r))return n}class YZ extends YA{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(GY,e),this.items=[]}static from(e,t,r){let{keepUndefined:n,replacer:i}=r,s=new this(e),a=(e,a)=>{if("function"==typeof i)a=i.call(t,e,a);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==a||n)&&s.items.push(YX(e,a,r))};if(t instanceof Map)for(let[e,r]of t)a(e,r);else if(t&&"object"==typeof t)for(let e of Object.keys(t))a(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){let r;r=G5(e)?e:e&&"object"==typeof e&&"key"in e?new YH(e.key,e.value):new YH(e,e?.value);let n=YQ(this.items,r.key),i=this.schema?.sortMapEntries;if(n){if(!t)throw Error(`Key ${r.key} already set`);G6(n.value)&&Yv(r.value)?n.value.value=r.value:n.value=r.value}else if(i){let e=this.items.findIndex(e=>0>i(r,e));-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}delete(e){let t=YQ(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let r=YQ(this.items,e),n=r?.value;return(!t&&G6(n)?n.value:n)??void 0}has(e){return!!YQ(this.items,e)}set(e,t){this.add(new YH(e,t),!0)}toJSON(e,t,r){let n=r?new r:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(n),this.items))YW(t,n,e);return n}toString(e,t,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!G5(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),YG(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}}let Y0={collection:"map",default:!0,nodeClass:YZ,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(G4(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,r)=>YZ.from(e,t,r)};class Y1 extends YA{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(G0,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Y2(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let r=Y2(e);if("number"!=typeof r)return;let n=this.items[r];return!t&&G6(n)?n.value:n}has(e){let t=Y2(e);return"number"==typeof t&&t<this.items.length}set(e,t){let r=Y2(e);if("number"!=typeof r)throw Error(`Expected a valid index, not ${e}.`);let n=this.items[r];G6(n)&&Yv(t)?n.value=t:this.items[r]=t}toJSON(e,t){let r=[];t?.onCreate&&t.onCreate(r);let n=0;for(let e of this.items)r.push(Yb(e,String(n++),t));return r}toString(e,t,r){return e?YG(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){let{replacer:n}=r,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let s of t){if("function"==typeof n){let r=t instanceof Set?s:String(e++);s=n.call(t,r,s)}i.items.push(YE(s,void 0,r))}}return i}}function Y2(e){let t=G6(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let Y3={collection:"seq",default:!0,nodeClass:Y1,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(G8(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,r)=>Y1.from(e,t,r)},Y4={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,r,n)=>YR(e,t=Object.assign({actualString:!0},t),r,n)},Y5={identify:e=>null==e,createNode:()=>new YT(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new YT(null),stringify:({source:e},t)=>"string"==typeof e&&Y5.test.test(e)?e:t.options.nullStr},Y6={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new YT("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},r)=>e&&Y6.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?r.options.trueStr:r.options.falseStr};function Y8({format:e,minFractionDigits:t,tag:r,value:n}){if("bigint"==typeof n)return String(n);let i="number"==typeof n?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=Object.is(n,-0)?"-0":JSON.stringify(n);if(!e&&t&&(!r||"tag:yaml.org,2002:float"===r)&&/^-?\d/.test(s)&&!s.includes("e")){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let r=t-(s.length-e-1);for(;r-- >0;)s+="0"}return s}let Y9={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?0/0:"-"===e[0]?-1/0:1/0,stringify:Y8},Y7={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Y8(e)}},Qe={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new YT(parseFloat(e)),r=e.indexOf(".");return -1!==r&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-r-1),t},stringify:Y8},Qt=e=>"bigint"==typeof e||Number.isInteger(e),Qr=(e,t,r,{intAsBigInt:n})=>n?BigInt(e):parseInt(e.substring(t),r);function Qn(e,t,r){let{value:n}=e;return Qt(n)&&n>=0?r+n.toString(t):Y8(e)}let Qi={identify:e=>Qt(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,r)=>Qr(e,2,8,r),stringify:e=>Qn(e,8,"0o")},Qs={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,r)=>Qr(e,0,10,r),stringify:Y8},Qa={identify:e=>Qt(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,r)=>Qr(e,2,16,r),stringify:e=>Qn(e,16,"0x")},Qo=[Y0,Y3,Y4,Y5,Y6,Qi,Qs,Qa,Y9,Y7,Qe];function Ql(e){return"bigint"==typeof e||Number.isInteger(e)}let Qu=({value:e})=>JSON.stringify(e),Qc=[Y0,Y3].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Qu},{identify:e=>null==e,createNode:()=>new YT(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Qu},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:Qu},{identify:Ql,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:r})=>r?BigInt(e):parseInt(e,10),stringify:({value:e})=>Ql(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Qu}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Qp={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let e=0;e<t.length;++e)r[e]=t.charCodeAt(e);return r}},stringify({comment:e,type:t,value:r},n,i,s){let a;if(!r)return"";if("function"==typeof btoa){let e="";for(let t=0;t<r.length;++t)e+=String.fromCharCode(r[t]);a=btoa(e)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=YT.BLOCK_LITERAL),t!==YT.QUOTE_DOUBLE){let e=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),r=Math.ceil(a.length/e),i=Array(r);for(let t=0,n=0;t<r;++t,n+=e)i[t]=a.substr(n,e);a=i.join(t===YT.BLOCK_LITERAL?"\n":" ")}return YR({comment:e,type:t,value:a},n,i,s)}};function Qh(e,t){if(G8(e))for(let r=0;r<e.items.length;++r){let n=e.items[r];if(!G5(n)){if(G4(n)){n.items.length>1&&t("Each pair must have its own sequence indicator");let e=n.items[0]||new YH(new YT(null));if(n.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${n.commentBefore}
71
+ ${e.key.commentBefore}`:n.commentBefore),n.comment){let t=e.value??e.key;t.comment=t.comment?`${n.comment}
72
+ ${t.comment}`:n.comment}n=e}e.items[r]=G5(n)?n:new YH(n)}}else t("Expected a sequence for this tag");return e}function Qd(e,t,r){let{replacer:n}=r,i=new Y1(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let a,o;if("function"==typeof n&&(e=n.call(t,String(s++),e)),Array.isArray(e))if(2===e.length)a=e[0],o=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)o=e[a=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else a=e;i.items.push(YX(a,o,r))}return i}let Qf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qh,createNode:Qd};class Qm extends Y1{constructor(){super(),this.add=YZ.prototype.add.bind(this),this.delete=YZ.prototype.delete.bind(this),this.get=YZ.prototype.get.bind(this),this.has=YZ.prototype.has.bind(this),this.set=YZ.prototype.set.bind(this),this.tag=Qm.tag}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;for(let e of(t?.onCreate&&t.onCreate(r),this.items)){let n,i;if(G5(e)?(n=Yb(e.key,"",t),i=Yb(e.value,n,t)):n=Yb(e,"",t),r.has(n))throw Error("Ordered maps must not include duplicate keys");r.set(n,i)}return r}static from(e,t,r){let n=Qd(e,t,r),i=new this;return i.items=n.items,i}}Qm.tag="tag:yaml.org,2002:omap";let Qy={collection:"seq",identify:e=>e instanceof Map,nodeClass:Qm,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let r=Qh(e,t),n=[];for(let{key:e}of r.items)G6(e)&&(n.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):n.push(e.value));return Object.assign(new Qm,r)},createNode:(e,t,r)=>Qm.from(e,t,r)};function Qg({value:e,source:t},r){return t&&(e?Qb:Qx).test.test(t)?t:e?r.options.trueStr:r.options.falseStr}let Qb={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new YT(!0),stringify:Qg},Qx={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new YT(!1),stringify:Qg},QS=e=>"bigint"==typeof e||Number.isInteger(e);function Qv(e,t,r,{intAsBigInt:n}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),n){switch(r){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let s=parseInt(e,r);return"-"===i?-1*s:s}function QT(e,t,r){let{value:n}=e;if(QS(n)){let e=n.toString(t);return n<0?"-"+r+e.substr(1):r+e}return Y8(e)}class QE extends YZ{constructor(e){super(e),this.tag=QE.tag}add(e){let t;t=G5(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new YH(e.key,null):new YH(e,null),YQ(this.items,t.key)||this.items.push(t)}get(e,t){let r=YQ(this.items,e);return!t&&G5(r)?G6(r.key)?r.key.value:r.key:r}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=YQ(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new YH(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw Error("Set items must all have null values")}static from(e,t,r){let{replacer:n}=r,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof n&&(e=n.call(t,e,e)),i.items.push(YX(e,null,r));return i}}QE.tag="tag:yaml.org,2002:set";let Qk={collection:"map",identify:e=>e instanceof Set,nodeClass:QE,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,r)=>QE.from(e,t,r),resolve(e,t){if(G4(e))if(e.hasAllNullValues(!0))return Object.assign(new QE,e);else t("Set items must all have null values");else t("Expected a mapping for this tag");return e}};function Qw(e,t){let r=e[0],n="-"===r||"+"===r?e.substring(1):e,i=e=>t?BigInt(e):Number(e),s=n.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===r?i(-1)*s:s}function QA(e){let{value:t}=e,r=e=>e;if("bigint"==typeof t)r=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Y8(e);let n="";t<0&&(n="-",t*=r(-1));let i=r(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),n+s.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let QP={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>Qw(e,r),stringify:QA},QC={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Qw(e,!1),stringify:QA},QI={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(QI.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,r,n,i,s,a,o]=t.map(Number),l=Date.UTC(r,n-1,i,s||0,a||0,o||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=Qw(u,!1);30>Math.abs(e)&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},Q_=[Y0,Y3,Y4,Y5,Qb,Qx,{identify:QS,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,r)=>Qv(e,2,2,r),stringify:e=>QT(e,2,"0b")},{identify:QS,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,r)=>Qv(e,1,8,r),stringify:e=>QT(e,8,"0")},{identify:QS,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,r)=>Qv(e,0,10,r),stringify:Y8},{identify:QS,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,r)=>Qv(e,2,16,r),stringify:e=>QT(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?0/0:"-"===e[0]?-1/0:1/0,stringify:Y8},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Y8(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new YT(parseFloat(e.replace(/_/g,""))),r=e.indexOf(".");if(-1!==r){let n=e.substring(r+1).replace(/_/g,"");"0"===n[n.length-1]&&(t.minFractionDigits=n.length)}return t},stringify:Y8},Qp,Yq,Qy,Qf,Qk,QP,QC,QI],QN=new Map([["core",Qo],["failsafe",[Y0,Y3,Y4]],["json",Qc],["yaml11",Q_],["yaml-1.1",Q_]]),QL={binary:Qp,bool:Y6,float:Qe,floatExp:Y7,floatNaN:Y9,floatTime:QC,int:Qs,intHex:Qa,intOct:Qi,intTime:QP,map:Y0,merge:Yq,null:Y5,omap:Qy,pairs:Qf,seq:Y3,set:Qk,timestamp:QI},QO={"tag:yaml.org,2002:binary":Qp,"tag:yaml.org,2002:merge":Yq,"tag:yaml.org,2002:omap":Qy,"tag:yaml.org,2002:pairs":Qf,"tag:yaml.org,2002:set":Qk,"tag:yaml.org,2002:timestamp":QI};function QD(e,t,r){let n=QN.get(t);if(n&&!e)return r&&!n.includes(Yq)?n.concat(Yq):n.slice();let i=n;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(QN.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return r&&(i=i.concat(Yq)),i.reduce((e,t)=>{let r="string"==typeof t?QL[t]:t;if(!r){let e=JSON.stringify(t),r=Object.keys(QL).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${r}`)}return e.includes(r)||e.push(r),e},[])}let QM=(e,t)=>e.key<t.key?-1:+(e.key>t.key);class QF{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:n,schema:i,sortMapEntries:s,toStringDefaults:a}){this.compat=Array.isArray(e)?QD(e,"compat"):e?QD(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=n?QO:{},this.tags=QD(t,this.name,r),this.toStringOptions=a??null,Object.defineProperty(this,GY,{value:Y0}),Object.defineProperty(this,GZ,{value:Y4}),Object.defineProperty(this,G0,{value:Y3}),this.sortMapEntries="function"==typeof s?s:!0===s?QM:null}clone(){let e=Object.create(QF.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class Qj{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,G1,{value:GG});let n=null;"function"==typeof t||Array.isArray(t)?n=t:void 0===r&&t&&(r=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:s}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new Yd({version:s}),this.setSchema(s,r),this.contents=void 0===e?null:this.createNode(e,n,r)}clone(){let e=Object.create(Qj.prototype,{[G1]:{value:GG}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=G7(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){QB(this.contents)&&this.contents.add(e)}addIn(e,t){QB(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let r=Ym(this);e.anchor=!t||r.has(t)?Yy(t||"a",r):t}return new YS(e.anchor)}createNode(e,t,r){var n,i;let s,a,o,l;if("function"==typeof t)e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),s=t}else void 0===r&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:u,anchorPrefix:c,flow:p,keepUndefined:h,onTagObj:d,tag:f}=r??{},{onAnchor:m,setAnchors:y,sourceObjects:g}=(n=this,i=c||"a",a=[],o=new Map,l=null,{onAnchor:e=>{a.push(e),l??(l=Ym(n));let t=Yy(i,l);return l.add(t),t},setAnchors:()=>{for(let e of a){let t=o.get(e);if("object"==typeof t&&t.anchor&&(G6(t.node)||G9(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:o}),b={aliasDuplicateObjects:u??!0,keepUndefined:h??!1,onAnchor:m,onTagObj:d,replacer:s,schema:this.schema,sourceObjects:g},x=YE(e,f,b);return p&&G9(x)&&(x.flow=!0),y(),x}createPair(e,t,r={}){return new YH(this.createNode(e,null,r),this.createNode(t,null,r))}delete(e){return!!QB(this.contents)&&this.contents.delete(e)}deleteIn(e){return Yw(e)?null!=this.contents&&(this.contents=null,!0):!!QB(this.contents)&&this.contents.deleteIn(e)}get(e,t){return G9(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Yw(e)?!t&&G6(this.contents)?this.contents.value:this.contents:G9(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!G9(this.contents)&&this.contents.has(e)}hasIn(e){return Yw(e)?void 0!==this.contents:!!G9(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=Yk(this.schema,[e],t):QB(this.contents)&&this.contents.set(e,t)}setIn(e,t){Yw(e)?this.contents=t:null==this.contents?this.contents=Yk(this.schema,Array.from(e),t):QB(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let r;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Yd({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Yd({version:e}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new QF(Object.assign(r,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:n,onAnchor:i,reviver:s}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===r,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=Yb(this.contents,t??"",a);if("function"==typeof i)for(let{count:e,res:t}of a.anchors.values())i(t,e);return"function"==typeof s?Yg(s,{"":o},"",o):o}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let r=[],n=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(r.push(t),n=!0):e.directives.docStart&&(n=!0)}n&&r.push("---");let i=Y$(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==r.length&&r.unshift("");let t=s(e.commentBefore);r.unshift(YC(t,""))}let a=!1,o=null;if(e.contents){if(G7(e.contents)){if(e.contents.spaceBefore&&n&&r.push(""),e.contents.commentBefore){let t=s(e.contents.commentBefore);r.push(YC(t,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}let t=o?void 0:()=>a=!0,l=YU(e.contents,i,()=>o=null,t);o&&(l+=YI(l,"",s(o))),("|"===l[0]||">"===l[0])&&"---"===r[r.length-1]?r[r.length-1]=`--- ${l}`:r.push(l)}else r.push(YU(e.contents,i));if(e.directives?.docEnd)if(e.comment){let t=s(e.comment);t.includes("\n")?(r.push("..."),r.push(YC(t,""))):r.push(`... ${t}`)}else r.push("...");else{let t=e.comment;t&&a&&(t=t.replace(/^\n+/,"")),t&&((!a||o)&&""!==r[r.length-1]&&r.push(""),r.push(YC(s(t),"")))}return r.join("\n")+"\n"}(this,e)}}function QB(e){if(G9(e))return!0;throw Error("Expected a YAML collection as document contents")}class QR extends Error{constructor(e,t,r,n){super(),this.name=e,this.code=r,this.message=n,this.pos=t}}class Q$ extends QR{constructor(e,t,r){super("YAMLParseError",e,t,r)}}class QU extends QR{constructor(e,t,r){super("YAMLWarning",e,t,r)}}let QV=(e,t)=>r=>{if(-1===r.pos[0])return;r.linePos=r.pos.map(e=>t.linePos(e));let{line:n,col:i}=r.linePos[0];r.message+=` at line ${n}, column ${i}`;let s=i-1,a=e.substring(t.lineStarts[n-1],t.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){let e=Math.min(s-39,a.length-79);a="…"+a.substring(e),s-=e-1}if(a.length>80&&(a=a.substring(0,79)+"…"),n>1&&/^ *$/.test(a.substring(0,s))){let r=e.substring(t.lineStarts[n-2],t.lineStarts[n-1]);r.length>80&&(r=r.substring(0,79)+"…\n"),a=r+a}if(/[^ ]/.test(a)){let e=1,t=r.linePos[1];t?.line===n&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));let o=" ".repeat(s)+"^".repeat(e);r.message+=`:
21
73
 
22
- // Return the exports of the module
23
- return module.exports;
24
-
25
- }
26
-
27
- // expose the modules object (__webpack_modules__)
28
- __webpack_require__.m = __webpack_modules__;
29
-
30
- // webpack/runtime/define_property_getters
31
- (() => {
32
- __webpack_require__.d = (exports, getters, values) => {
33
- var define = (defs, kind) => {
34
- for(var key in defs) {
35
- if(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {
36
- Object.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });
37
- }
38
- }
39
- };
40
- define(getters, "get");
41
- define(values, "value");
42
- };
43
- })();
44
- // webpack/runtime/ensure_chunk
45
- (() => {
46
- // The chunk loading function for additional chunks
47
- // Since all referenced chunks are already included
48
- // in this file, this function is empty here.
49
- __webpack_require__.e = () => (Promise.resolve())
50
- })();
51
- // webpack/runtime/global
52
- (() => {
53
- __webpack_require__.g = (() => {
54
- if (typeof globalThis === 'object') return globalThis;
55
- try {
56
- return this || new Function('return this')();
57
- } catch (e) {
58
- if (typeof window === 'object') return window;
59
- }
60
- })();
61
- })();
62
- // webpack/runtime/has_own_property
63
- (() => {
64
- __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
65
- })();
66
- // webpack/runtime/make_namespace_object
67
- (() => {
68
- // define __esModule on exports
69
- __webpack_require__.r = (exports) => {
70
- if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
71
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
72
- }
73
- Object.defineProperty(exports, '__esModule', { value: true });
74
- };
75
- })();
76
- // webpack/runtime/on_chunk_loaded
77
- (() => {
78
- var deferred = [];
79
- __webpack_require__.O = (result, chunkIds, fn, priority) => {
80
- if (chunkIds) {
81
- priority = priority || 0;
82
- for (var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--)
83
- deferred[i] = deferred[i - 1];
84
- deferred[i] = [chunkIds, fn, priority];
85
- return;
86
- }
87
- var notFulfilled = Infinity;
88
- for (var i = 0; i < deferred.length; i++) {
89
- var [chunkIds, fn, priority] = deferred[i];
90
- var fulfilled = true;
91
- for (var j = 0; j < chunkIds.length; j++) {
92
- if (
93
- (priority & (1 === 0) || notFulfilled >= priority) &&
94
- Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))
95
- ) {
96
- chunkIds.splice(j--, 1);
97
- } else {
98
- fulfilled = false;
99
- if (priority < notFulfilled) notFulfilled = priority;
100
- }
101
- }
102
- if (fulfilled) {
103
- deferred.splice(i--, 1);
104
- var r = fn();
105
- if (r !== undefined) result = r;
106
- }
107
- }
108
- return result;
109
- };
110
-
111
- })();
112
- // webpack/runtime/runtime_id
113
- (() => {
114
- __webpack_require__.j = "854";
115
- })();
116
- // webpack/runtime/jsonp_chunk_loading
117
- (() => {
118
-
119
- // object to store loaded and loading chunks
120
- // undefined = chunk not loaded, null = chunk preloaded/prefetched
121
- // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
122
- var jsonpInstalledChunks = {854: 0,};
123
- __webpack_require__.O.j = (chunkId) => (jsonpInstalledChunks[chunkId] === 0);
124
- // install a JSONP callback for chunk loading
125
- var __rspack_jsonp = (parentChunkLoadingFunction, data) => {
126
- var [chunkIds, moreModules, runtime] = data;
127
- // add "moreModules" to the modules object,
128
- // then flag all "chunkIds" as loaded and fire callback
129
- var moduleId, chunkId, i = 0;
130
- if (chunkIds.some((id) => (jsonpInstalledChunks[id] !== 0))) {
131
- for (moduleId in moreModules) {
132
- if (__webpack_require__.o(moreModules, moduleId)) {
133
- __webpack_require__.m[moduleId] = moreModules[moduleId];
134
- }
135
- }
136
- if (runtime) var result = runtime(__webpack_require__);
137
- }
138
- if (parentChunkLoadingFunction) parentChunkLoadingFunction(data);
139
- for (; i < chunkIds.length; i++) {
140
- chunkId = chunkIds[i];
141
- if (
142
- __webpack_require__.o(jsonpInstalledChunks, chunkId) &&
143
- jsonpInstalledChunks[chunkId]
144
- ) {
145
- jsonpInstalledChunks[chunkId][0]();
146
- }
147
- jsonpInstalledChunks[chunkId] = 0;
148
- }
149
-
150
- return __webpack_require__.O(result);
151
-
152
- };
153
-
154
- var jsonpChunkLoadingGlobal = globalThis["rspackChunkcloudcmd"] ||= [];
155
- jsonpChunkLoadingGlobal.forEach(__rspack_jsonp.bind(null, 0));
156
- jsonpChunkLoadingGlobal.push = __rspack_jsonp.bind(null, jsonpChunkLoadingGlobal.push.bind(jsonpChunkLoadingGlobal));
157
-
158
- })();
159
- // module factories are used so entry inlining is disabled
160
- // startup
161
- // Load entry module and return exports
162
- var __webpack_exports__ = __webpack_require__.O(undefined, ["136"], () => __webpack_require__(347));
163
- __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
164
- })()
165
- ;
74
+ ${a}
75
+ ${o}
76
+ `}};function Qq(e,{flow:t,indicator:r,next:n,offset:i,onError:s,parentIndent:a,startOnNewline:o}){let l=!1,u=o,c=o,p="",h="",d=!1,f=!1,m=null,y=null,g=null,b=null,x=null,S=null,v=null;for(let i of e)switch(f&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&s(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),f=!1),m&&(u&&"comment"!==i.type&&"newline"!==i.type&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!t&&("doc-start"!==r||n?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),c=!0;break;case"comment":{c||s(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";p?p+=h+e:p=e,h="",u=!1;break}case"newline":u?p?p+=i.source:S&&"seq-item-ind"===r||(l=!0):h+=i.source,u=!0,d=!0,(y||g)&&(b=i),c=!0;break;case"anchor":y&&s(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&s(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=i,v??(v=i.offset),u=!1,c=!1,f=!0;break;case"tag":g&&s(i,"MULTIPLE_TAGS","A node can have at most one tag"),g=i,v??(v=i.offset),u=!1,c=!1,f=!0;break;case r:(y||g)&&s(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),S&&s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),S=i,u="seq-item-ind"===r||"explicit-key-ind"===r,c=!1;break;case"comma":if(t){x&&s(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),x=i,u=!1,c=!1;break}default:s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),u=!1,c=!1}let T=e[e.length-1],E=T?T.offset+T.source.length:i;return f&&n&&"space"!==n.type&&"newline"!==n.type&&"comma"!==n.type&&("scalar"!==n.type||""!==n.source)&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=a||n?.type==="block-map"||n?.type==="block-seq")&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:x,found:S,spaceBefore:l,comment:p,hasNewline:d,anchor:y,tag:g,newlineAfterProp:b,end:E,start:v??E}}function QK(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(QK(t.key)||QK(t.value))return!0}return!1;default:return!0}}function QJ(e,t,r){if(t?.type==="flow-collection"){let n=t.end[0];n.indent===e&&("]"===n.source||"}"===n.source)&&QK(t)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Qz(e,t,r){let{uniqueKeys:n}=e.options;if(!1===n)return!1;let i="function"==typeof n?n:(e,t)=>e===t||G6(e)&&G6(t)&&e.value===t.value;return t.some(e=>i(e.key,r))}let QW="All mapping items must start at the same column";function QX(e,t,r,n){let i="";if(e){let s=!1,a="";for(let o of e){let{source:e,type:l}=o;switch(l){case"space":s=!0;break;case"comment":{r&&!s&&n(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=a+t:i=t,a="";break}case"newline":i&&(a+=e),s=!0;break;default:n(o,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{comment:i,offset:t}}let QH="Block collections are not allowed within flow collections",QG=e=>e&&("block-map"===e.type||"block-seq"===e.type);function QY(e,t,r,n,i,s){let a="block-map"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,i,s){let a=new(s?.nodeClass??YZ)(r.schema);r.atRoot&&(r.atRoot=!1);let o=n.offset,l=null;for(let s of n.items){let{start:u,key:c,sep:p,value:h}=s,d=Qq(u,{indicator:"explicit-key-ind",next:c??p?.[0],offset:o,onError:i,parentIndent:n.indent,startOnNewline:!0}),f=!d.found;if(f){if(c&&("block-seq"===c.type?i(o,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==n.indent&&i(o,"BAD_INDENT",QW)),!d.anchor&&!d.tag&&!p){l=d.end,d.comment&&(a.comment?a.comment+="\n"+d.comment:a.comment=d.comment);continue}(d.newlineAfterProp||QK(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==n.indent&&i(o,"BAD_INDENT",QW);r.atKey=!0;let m=d.end,y=c?e(r,c,d,i):t(r,m,u,null,d,i);r.schema.compat&&QJ(n.indent,c,i),r.atKey=!1,Qz(r,a.items,y)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let g=Qq(p??[],{indicator:"map-value-ind",next:h,offset:y.range[2],onError:i,parentIndent:n.indent,startOnNewline:!c||"block-scalar"===c.type});if(o=g.end,g.found){f&&(h?.type!=="block-map"||g.hasNewline||i(o,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&d.start<g.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let l=h?e(r,h,g,i):t(r,o,p,null,g,i);r.schema.compat&&QJ(n.indent,h,i),o=l.range[2];let u=new YH(y,l);r.options.keepSourceTokens&&(u.srcToken=s),a.items.push(u)}else{f&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);let e=new YH(y);r.options.keepSourceTokens&&(e.srcToken=s),a.items.push(e)}}return l&&l<o&&i(l,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,o,l??o],a}(e,t,r,n,s):"block-seq"===r.type?function({composeNode:e,composeEmptyNode:t},r,n,i,s){let a=new(s?.nodeClass??Y1)(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let o=n.offset,l=null;for(let{start:s,value:u}of n.items){let c=Qq(s,{indicator:"seq-item-ind",next:u,offset:o,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!c.found)if(c.anchor||c.tag||u)u?.type==="block-seq"?i(c.end,"BAD_INDENT","All sequence items must start at the same column"):i(o,"MISSING_CHAR","Sequence item without - indicator");else{l=c.end,c.comment&&(a.comment=c.comment);continue}let p=u?e(r,u,c,i):t(r,c.end,s,null,c,i);r.schema.compat&&QJ(n.indent,u,i),o=p.range[2],a.items.push(p)}return a.range=[n.offset,o,l??o],a}(e,t,r,n,s):function({composeNode:e,composeEmptyNode:t},r,n,i,s){let a="{"===n.start.source,o=a?"flow map":"flow sequence",l=new(s?.nodeClass??(a?YZ:Y1))(r.schema);l.flow=!0;let u=r.atRoot;u&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let c=n.offset+n.start.source.length;for(let s=0;s<n.items.length;++s){let u=n.items[s],{start:p,key:h,sep:d,value:f}=u,m=Qq(p,{flow:o,indicator:"explicit-key-ind",next:h??d?.[0],offset:c,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!m.found){if(!m.anchor&&!m.tag&&!d&&!f){0===s&&m.comma?i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):s<n.items.length-1&&i(m.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),m.comment&&(l.comment?l.comment+="\n"+m.comment:l.comment=m.comment),c=m.end;continue}!a&&r.options.strict&&QK(h)&&i(h,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(0===s)m.comma&&i(m.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(m.comma||i(m.start,"MISSING_CHAR",`Missing , between ${o} items`),m.comment){let e="";r:for(let t of p)switch(t.type){case"comma":case"space":break;case"comment":e=t.source.substring(1);break r;default:break r}if(e){let t=l.items[l.items.length-1];G5(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,m.comment=m.comment.substring(e.length+1)}}if(a||d||m.found){r.atKey=!0;let s=m.end,y=h?e(r,h,m,i):t(r,s,p,null,m,i);QG(h)&&i(y.range,"BLOCK_IN_FLOW",QH),r.atKey=!1;let g=Qq(d??[],{flow:o,indicator:"map-value-ind",next:f,offset:y.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(g.found){if(!a&&!m.found&&r.options.strict){if(d)for(let e of d){if(e===g.found)break;if("newline"===e.type){i(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}m.start<g.found.offset-1024&&i(g.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else f&&("source"in f&&f.source?.[0]===":"?i(f,"MISSING_CHAR",`Missing space after : in ${o}`):i(g.start,"MISSING_CHAR",`Missing , or : between ${o} items`));let b=f?e(r,f,g,i):g.found?t(r,g.end,d,null,g,i):null;b?QG(f)&&i(b.range,"BLOCK_IN_FLOW",QH):g.comment&&(y.comment?y.comment+="\n"+g.comment:y.comment=g.comment);let x=new YH(y,b);if(r.options.keepSourceTokens&&(x.srcToken=u),a)Qz(r,l.items,y)&&i(s,"DUPLICATE_KEY","Map keys must be unique"),l.items.push(x);else{let e=new YZ(r.schema);e.flow=!0,e.items.push(x);let t=(b??y).range;e.range=[y.range[0],t[1],t[2]],l.items.push(e)}c=b?b.range[2]:g.end}else{let n=f?e(r,f,m,i):t(r,m.end,d,null,m,i);l.items.push(n),c=n.range[2],QG(f)&&i(n.range,"BLOCK_IN_FLOW",QH)}}let p=a?"}":"]",[h,...d]=n.end,f=c;if(h?.source===p)f=h.offset+h.source.length;else{let e=o[0].toUpperCase()+o.substring(1),t=u?`${e} must end with a ${p}`:`${e} in block collection must be sufficiently indented and end with a ${p}`;i(c,u?"MISSING_CHAR":"BAD_INDENT",t),h&&1!==h.source.length&&d.unshift(h)}if(d.length>0){let e=QX(d,f,r.options.strict,i);e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),l.range=[n.offset,f,e.offset]}else l.range=[n.offset,f,f];return l}(e,t,r,n,s),o=a.constructor;return"!"===i||i===o.tagName?a.tag=o.tagName:i&&(a.tag=i),a}function QQ(e){let t,r,n=/(.*?)\r?\n/sy,i=n.exec(e);if(!i)return e;try{t=RegExp("(?<![ ])[ ]+$"),r=RegExp("^[ ]+|(?<![ ])[ ]+$","g")}catch{t=/[ \t]+$/,r=/^[ \t]+|[ \t]+$/g}let s=i[1].replace(t,""),a=" ",o=n.lastIndex;for(;i=n.exec(e);){let e=i[1].replace(r,"");""===e?"\n"===a?s+=a:a="\n":(s+=a+e,a=" "),o=n.lastIndex}let l=/[ \t]*(.*)/sy;return l.lastIndex=o,i=l.exec(e),s+a+(i?.[1]??"")}let QZ={0:"\0",a:"\x07",b:"\b",e:"\x1b",f:"\f",n:"\n",r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Q0(e,t,r,n){let i,s,{value:a,type:o,comment:l,range:u}="block-scalar"===t.type?function(e,t,r){let n=t.offset,i=function({offset:e,props:t},r,n){if("block-scalar-header"!==t[0].type)return n(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],s=i[0],a=0,o="",l=-1;for(let t=1;t<i.length;++t){let r=i[t];if(o||"-"!==r&&"+"!==r){let n=Number(r);!a&&n?a=n:-1===l&&(l=e+t)}else o=r}-1!==l&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let u=!1,c="",p=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case"space":u=!0;case"newline":p+=i.source.length;break;case"comment":r&&!u&&n(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=i.source.length,c=i.source.substring(1);break;case"error":n(i,"UNEXPECTED_TOKEN",i.message),p+=i.source.length;break;default:{let e=`Unexpected token in block scalar header: ${i.type}`;n(i,"UNEXPECTED_TOKEN",e);let t=i.source;t&&"string"==typeof t&&(p+=t.length)}}}return{mode:s,indent:a,chomp:o,comment:c,length:p}}(t,e.options.strict,r);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let s=">"===i.mode?YT.BLOCK_FOLDED:YT.BLOCK_LITERAL,a=t.source?function(e){let t=e.split(/\n( *)/),r=t[0],n=r.match(/^( *)/),i=[n?.[1]?[n[1],r.slice(n[1].length)]:["",r]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}(t.source):[],o=a.length;for(let e=a.length-1;e>=0;--e){let t=a[e][1];if(""===t||"\r"===t)o=e;else break}if(0===o){let e="+"===i.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):"",r=n+i.length;return t.source&&(r+=t.source.length),{value:e,type:s,comment:i.comment,range:[n,r,r]}}let l=t.indent+i.indent,u=t.offset+i.length,c=0;for(let t=0;t<o;++t){let[n,s]=a[t];if(""===s||"\r"===s)0===i.indent&&n.length>l&&(l=n.length);else{n.length<l&&r(u+n.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),0===i.indent&&(l=n.length),c=t,0!==l||e.atRoot||r(u,"BAD_INDENT","Block scalar values in collections must be indented");break}u+=n.length+s.length+1}for(let e=a.length-1;e>=o;--e)a[e][0].length>l&&(o=e+1);let p="",h="",d=!1;for(let e=0;e<c;++e)p+=a[e][0].slice(l)+"\n";for(let e=c;e<o;++e){let[t,n]=a[e];u+=t.length+n.length+1;let o="\r"===n[n.length-1];if(o&&(n=n.slice(0,-1)),n&&t.length<l){let e=i.indent?"explicit indentation indicator":"first line",s=`Block scalar lines must not be less indented than their ${e}`;r(u-n.length-(o?2:1),"BAD_INDENT",s),t=""}s===YT.BLOCK_LITERAL?(p+=h+t.slice(l)+n,h="\n"):t.length>l||" "===n[0]?(" "===h?h="\n":d||"\n"!==h||(h="\n\n"),p+=h+t.slice(l)+n,h="\n",d=!0):""===n?"\n"===h?p+="\n":h="\n":(p+=h+n,h=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let e=o;e<a.length;++e)p+="\n"+a[e][0].slice(l);"\n"!==p[p.length-1]&&(p+="\n");break;default:p+="\n"}let f=n+i.length+t.source.length;return{value:p,type:s,comment:i.comment,range:[n,f,f]}}(e,t,n):function(e,t,r){let n,i,{offset:s,type:a,source:o,end:l}=e,u=(e,t,n)=>r(s+e,t,n);switch(a){case"scalar":n=YT.PLAIN,i=function(e,t){let r="";switch(e[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":r=`block scalar indicator ${e[0]}`;break;case"@":case"`":r=`reserved character ${e[0]}`}return r&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),QQ(e)}(o,u);break;case"single-quoted-scalar":var c,p;n=YT.QUOTE_SINGLE,c=o,p=u,("'"!==c[c.length-1]||1===c.length)&&p(c.length,"MISSING_CHAR","Missing closing 'quote"),i=QQ(c.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":n=YT.QUOTE_DOUBLE,i=function(e,t){let r="";for(let n=1;n<e.length-1;++n){let i=e[n];if("\r"!==i||"\n"!==e[n+1])if("\n"===i){let{fold:t,offset:i}=function(e,t){let r="",n=e[t+1];for(;(" "===n||" "===n||"\n"===n||"\r"===n)&&("\r"!==n||"\n"===e[t+2]);)"\n"===n&&(r+="\n"),t+=1,n=e[t+1];return r||(r=" "),{fold:r,offset:t}}(e,n);r+=t,n=i}else if("\\"===i){let i=e[++n],s=QZ[i];if(s)r+=s;else if("\n"===i)for(i=e[n+1];" "===i||" "===i;)i=e[++n+1];else if("\r"===i&&"\n"===e[n+1])for(i=e[++n+1];" "===i||" "===i;)i=e[++n+1];else if("x"===i||"u"===i||"U"===i){let s="x"===i?2:"u"===i?4:8;r+=function(e,t,r,n){let i=e.substr(t,r),s=i.length===r&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):0/0;try{return String.fromCodePoint(s)}catch{let i=e.substr(t-2,r+2);return n(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}}(e,n+1,s,t),n+=s}else{let i=e.substr(n-1,2);t(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),r+=i}}else if(" "===i||" "===i){let t=n,s=e[n+1];for(;" "===s||" "===s;)s=e[++n+1];"\n"!==s&&("\r"!==s||"\n"!==e[n+2])&&(r+=n>t?e.slice(t,n+1):i)}else r+=i}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),r}(o,u);break;default:return r(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${a}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}let h=s+o.length,d=QX(l,h,t,r);return{value:i,type:n,comment:d.comment,range:[s,h,d.offset]}}(t,e.options.strict,n),c=r?e.directives.tagName(r.source,e=>n(r,"TAG_RESOLVE_FAILED",e)):null;i=e.options.stringKeys&&e.atKey?e.schema[GZ]:c?function(e,t,r,n,i){if("!"===r)return e[GZ];let s=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(!t.default||!t.test)return t;else s.push(t);for(let e of s)if(e.test?.test(t))return e;let a=e.knownTags[r];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,"tag:yaml.org,2002:str"!==r),e[GZ])}(e.schema,a,c,r,n):"scalar"===t.type?function({atKey:e,directives:t,schema:r},n,i,s){let a=r.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(n))||r[GZ];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(n))??r[GZ];if(a.tag!==e.tag){let r=t.tagString(a.tag),n=t.tagString(e.tag);s(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${r} or ${n}`,!0)}}return a}(e,a,t,n):e.schema[GZ];try{let o=i.resolve(a,e=>n(r??t,"TAG_RESOLVE_FAILED",e),e.options);s=G6(o)?o:new YT(o)}catch(e){n(r??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),s=new YT(a)}return s.range=u,s.source=a,o&&(s.type=o),c&&(s.tag=c),i.format&&(s.format=i.format),l&&(s.comment=l),s}let Q1={composeNode:Q2,composeEmptyNode:Q3};function Q2(e,t,r,n){let i,s=e.atKey,{spaceBefore:a,comment:o,anchor:l,tag:u}=r,c=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:r,end:n},i){let s=new YS(r.substring(1));""===s.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let a=t+r.length,o=QX(n,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}(e,t,n),(l||u)&&n(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=Q0(e,t,u,n),l&&(i.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{i=function(e,t,r,n,i){let s=n.tag,a=s?t.directives.tagName(s.source,e=>i(s,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===r.type){let{anchor:e,newlineAfterProp:t}=n,r=e&&s?e.offset>s.offset?e:s:e??s;r&&(!t||t.offset<r.offset)&&i(r,"MISSING_CHAR","Missing newline after block sequence props")}let o="block-map"===r.type?"map":"block-seq"===r.type?"seq":"{"===r.start.source?"map":"seq";if(!s||!a||"!"===a||a===YZ.tagName&&"map"===o||a===Y1.tagName&&"seq"===o)return QY(e,t,r,i,a);let l=t.schema.tags.find(e=>e.tag===a&&e.collection===o);if(!l){let n=t.schema.knownTags[a];if(n?.collection!==o)return n?i(s,"BAD_COLLECTION_TYPE",`${n.tag} used for ${o} collection, but expects ${n.collection??"scalar"}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),QY(e,t,r,i,a);t.schema.tags.push(Object.assign({},n,{default:!1})),l=n}let u=QY(e,t,r,i,a,l),c=l.resolve?.(u,e=>i(s,"TAG_RESOLVE_FAILED",e),t.options)??u,p=G7(c)?c:new YT(c);return p.range=u.range,p.tag=a,l?.format&&(p.format=l.format),p}(Q1,e,t,r,n),l&&(i.anchor=l.source.substring(1))}catch(e){n(t,"RESOURCE_EXHAUSTION",e instanceof Error?e.message:String(e))}break;default:{let e="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;n(t,"UNEXPECTED_TOKEN",e),c=!1}}return i??(i=Q3(e,t.offset,void 0,null,r,n)),l&&""===i.anchor&&n(l,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!G6(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&n(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),a&&(i.spaceBefore=!0),o&&("scalar"===t.type&&""===t.source?i.comment=o:i.commentBefore=o),e.options.keepSourceTokens&&c&&(i.srcToken=t),i}function Q3(e,t,r,n,{spaceBefore:i,comment:s,anchor:a,tag:o,end:l},u){let c=Q0(e,{type:"scalar",offset:function(e,t,r){if(t){r??(r=t.length);for(let n=r-1;n>=0;--n){let r=t[n];switch(r.type){case"space":case"comment":case"newline":e-=r.source.length;continue}for(r=t[++n];r?.type==="space";)e+=r.source.length,r=t[++n];break}}return e}(t,r,n),indent:-1,source:""},o,u);return a&&(c.anchor=a.source.substring(1),""===c.anchor&&u(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=l),c}function Q4(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:r}=e;return[t,t+("string"==typeof r?r.length:1)]}function Q5(e){let t="",r=!1,n=!1;for(let i=0;i<e.length;++i){let s=e[i];switch(s[0]){case"#":t+=(""===t?"":n?"\n\n":"\n")+(s.substring(1)||" "),r=!0,n=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),r=!1;break;default:r||(n=!0),r=!1}}return{comment:t,afterEmptyLine:n}}class Q6{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,r,n)=>{let i=Q4(e);n?this.warnings.push(new QU(i,t,r)):this.errors.push(new Q$(i,t,r))},this.directives=new Yd({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:r,afterEmptyLine:n}=Q5(this.prelude);if(r){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
77
+ ${r}`:r;else if(n||e.directives.docStart||!i)e.commentBefore=r;else if(G9(i)&&!i.flow&&i.items.length>0){let e=i.items[0];G5(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${r}
78
+ ${t}`:r}else{let e=i.commentBefore;i.commentBefore=e?`${r}
79
+ ${e}`:r}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Q5(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(let t of e)yield*this.next(t);yield*this.end(t,r)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,r,n)=>{let i=Q4(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",r,n)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:r,start:n,value:i,end:s},a){let o=new Qj(void 0,Object.assign({_directives:t},e)),l={atKey:!1,atRoot:!0,directives:o.directives,options:o.options,schema:o.schema},u=Qq(n,{indicator:"doc-start",next:i??s?.[0],offset:r,onError:a,parentIndent:0,startOnNewline:!0});u.found&&(o.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!u.hasNewline&&a(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),o.contents=i?Q2(l,i,u,a):Q3(l,u.end,n,null,u,a);let c=o.contents.range[2],p=QX(s,c,!1,a);return p.comment&&(o.comment=p.comment),o.range=[r,c,p.offset],o}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new Q$(Q4(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){this.errors.push(new Q$(Q4(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=QX(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}
80
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Q$(Q4(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new Qj(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}let Q8=Symbol("break visit"),Q9=Symbol("skip children"),Q7=Symbol("remove item");function Ze(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,r,n){let i=n(r,t);if("symbol"==typeof i)return i;for(let s of["key","value"]){let a=r[s];if(a&&"items"in a){for(let r=0;r<a.items.length;++r){let i=e(Object.freeze(t.concat([[s,r]])),a.items[r],n);if("number"==typeof i)r=i-1;else{if(i===Q8)return Q8;i===Q7&&(a.items.splice(r,1),r-=1)}}"function"==typeof i&&"key"===s&&(i=i(r,t))}}return"function"==typeof i?i(r,t):i}(Object.freeze([]),e,t)}function Zt(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}Ze.BREAK=Q8,Ze.SKIP=Q9,Ze.REMOVE=Q7,Ze.itemAtPath=(e,t)=>{let r=e;for(let[e,n]of t){let t=r?.[e];if(!t||!("items"in t))return;r=t.items[n]}return r},Ze.parentCollection=(e,t)=>{let r=Ze.itemAtPath(e,t.slice(0,-1)),n=t[t.length-1][0],i=r?.[n];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let Zr=new Set("0123456789ABCDEFabcdef"),Zn=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Zi=new Set(",[]{}"),Zs=new Set(" ,[]{}\n\r "),Za=e=>!e||Zs.has(e);class Zo{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;" "===t;)t=this.buffer[++r+e];if("\r"===t){let t=this.buffer[r+e+1];if("\n"===t||!t&&!this.atEnd)return e+r+1}return"\n"!==t&&!(r>=this.indentNext)&&(t||this.atEnd)?-1:e+r}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&&Zt(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),this.lineEndPos=e),-1===e)?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(null===e)return this.setNext("stream");if("\uFEFF"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){let t=e.length,r=e.indexOf("#");for(;-1!==r;){let n=e[r-1];if(" "===n||" "===n){t=r-1;break}r=e.indexOf("#",r+1)}for(;;){let r=e[t-1];if(" "===r||" "===r)t-=1;else break}let n=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-n),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield"\x02",yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if("-"===e||"."===e){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let e=this.peek(3);if(("---"===e||"..."===e)&&Zt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"---"===e?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Zt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&&Zt(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Za),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0)let n=this.getLine();if(null===n)return this.setNext("flow");if((-1!==r&&r<this.indentNext&&"#"!==n[0]||0===r&&(n.startsWith("---")||n.startsWith("..."))&&Zt(n[3]))&&(r!==this.indentNext-1||1!==this.flowLevel||"]"!==n[0]&&"}"!==n[0]))return this.flowLevel=0,yield"\x18",yield*this.parseLineStart();let i=0;for(;","===n[i];)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(n[i+=yield*this.pushIndicators()]){case void 0:return"flow";case"#":return yield*this.pushCount(n.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Za),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let e=this.charAt(1);if(this.flowKey||Zt(e)||","===e)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if("'"===e)for(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break;t=this.buffer.indexOf('"',t+1)}let r=this.buffer.substring(0,t),n=r.indexOf("\n",this.pos);if(-1!==n){for(;-1!==n;){let e=this.continueScalar(n+1);if(-1===e)break;n=r.indexOf("\n",e)}-1!==n&&(t=n-("\r"===r[n-1]?2:1))}if(-1===t){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if("+"===t)this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>Zt(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,r=0;r:for(let n=this.pos;e=this.buffer[n];++n)switch(e){case" ":r+=1;break;case"\n":t=n,r=0;break;case"\r":{let e=this.buffer[n+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break r}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=r:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t)if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let n=t+1;for(e=this.buffer[n];" "===e;)e=this.buffer[++n];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++n];t=n-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,n=this.buffer[e];"\r"===n&&(n=this.buffer[--e]);let i=e;for(;" "===n;)n=this.buffer[--e];if("\n"===n&&e>=this.pos&&e+1+r>i)t=e;else break}return yield"\x1f",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e,t=this.flowLevel>0,r=this.pos-1,n=this.pos-1;for(;e=this.buffer[++n];)if(":"===e){let e=this.buffer[n+1];if(Zt(e)||t&&Zi.has(e))break;r=n}else if(Zt(e)){let i=this.buffer[n+1];if("\r"===e&&("\n"===i?(n+=1,e="\n",i=this.buffer[n+1]):r=n),"#"===i||t&&Zi.has(i))break;if("\n"===e){let e=this.continueScalar(n+1);if(-1===e)break;n=Math.max(n,e-2)}}else{if(t&&Zi.has(e))break;r=n}return e||this.atEnd?(yield"\x1f",yield*this.pushToIndex(r+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield""),0)}*pushIndicators(){let e=0;for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue;case"&":e+=yield*this.pushUntil(Za),e+=yield*this.pushSpaces(!0);continue;case"-":case"?":case":":{let t=this.flowLevel>0,r=this.charAt(1);if(Zt(r)||t&&Zi.has(r)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue}}}break}return e}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!Zt(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Zn.has(t))t=this.buffer[++e];else if("%"===t&&Zr.has(this.buffer[e+1])&&Zr.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,r=this.pos-1;do t=this.buffer[++r];while(" "===t||e&&" "===t)let n=r-this.pos;return n>0&&(yield this.buffer.substr(this.pos,n),this.pos=r),n}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}function Zl(e,t){for(let r=0;r<e.length;++r)if(e[r].type===t)return!0;return!1}function Zu(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return -1}function Zc(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Zp(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function Zh(e){if(0===e.length)return[];let t=e.length;r:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break r}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function Zd(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let r=0;r<t.length;++r)e.push(t[r])}function Zf(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||Zl(t.start,"explicit-key-ind")||Zl(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,Zc(t.value)?t.value.end?Zd(t.value.end,t.sep):t.value.end=t.sep:Zd(t.start,t.sep),delete t.sep)}class Zm{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Zo,this.onNewLine=e}*parse(e,t=!1){for(let r of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(r);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=function(e){switch(e){case"\uFEFF":return"byte-order-mark";case"\x02":return"doc-mode";case"\x18":return"flow-error-end";case"\x1f":return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}(e);if(t)if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t)if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&Zf(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let r=e.items[e.items.length-1];if(r.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(r.sep)r.value=t;else{Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{let r=e.items[e.items.length-1];r.value?e.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{let r=e.items[e.items.length-1];!r||r.value?e.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&-1===Zu(r.start)&&(0===t.indent||r.start.every(e=>"comment"!==e.type||e.indent<t.indent))&&("document"===e.type?e.end=r.start:e.items.push({start:r.start}),t.items.splice(-1,1))}}else yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};"doc-start"===this.type&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":-1!==Zu(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return;case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if("map-value-ind"===this.type){let t,r=Zh(Zp(this.peek(2)));e.end?((t=e.end).push(this.sourceToken),delete e.end):t=[this.sourceToken];let n={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:t}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=n}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;n?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n)){Zd(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let r=!this.onKeyLine&&this.indent===e.indent,n=r&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(n&&t.sep&&!t.value){let r=[];for(let n=0;n<t.sep.length;++n){let i=t.sep[n];switch(i.type){case"newline":r.push(n);break;case"space":break;case"comment":i.indent>e.indent&&(r.length=0);break;default:r.length=0}}r.length>=2&&(i=t.sep.splice(r[1]))}switch(this.type){case"anchor":case"tag":n||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?n||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Zl(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(Zc(t.key)&&!Zl(t.sep,"newline")){let e=Zh(t.start),r=t.key,n=t.sep;n.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:r,sep:n}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(Zl(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=Zh(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||n?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Zl(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);n||t.value?(e.items.push({start:i,key:r,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(r):(Object.assign(t,{key:r,sep:[]}),this.onKeyLine=!0);return}default:{let n=this.startBlockValue(e);if(n){if("block-seq"===n.type){if(!t.explicitKey&&t.sep&&!Zl(t.sep,"newline"))return void(yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source}))}else r&&e.items.push({start:i});this.stack.push(n);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let r="end"in t.value?t.value.end:void 0,n=Array.isArray(r)?r[r.length-1]:void 0;n?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let r=e.items[e.items.length-2],n=r?.value?.end;if(Array.isArray(n)){Zd(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Zl(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e?.type==="flow-collection")}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let r=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep))if("map-value-ind"===this.type&&"flow-collection"!==t.type){let r=Zh(Zp(t));Zf(e);let n=e.end.splice(1,e.end.length);n.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e);else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Zh(Zp(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Zh(Zp(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}class Zy{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){let n=t+r>>1;this.lineStarts[n]<e?t=n+1:r=n}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(0===t)return{line:0,col:e};let n=this.lineStarts[t-1];return{line:t,col:e-n+1}}}}function Zg(e,t,r){let n;"function"==typeof t?n=t:void 0===r&&t&&"object"==typeof t&&(r=t);let i=function(e,t={}){let r,{lineCounter:n,prettyErrors:i}=(r=!1!==t.prettyErrors,{lineCounter:t.lineCounter||r&&new Zy||null,prettyErrors:r}),s=new Zm(n?.addNewLine),a=new Q6(t),o=null;for(let t of a.compose(s.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new Q$(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return i&&n&&(o.errors.forEach(QV(e,n)),o.warnings.forEach(QV(e,n))),o}(e,r);if(!i)return null;if(i.warnings.forEach(e=>YV(i.options.logLevel,e)),i.errors.length>0)if("silent"!==i.options.logLevel)throw i.errors[0];else i.errors=[];return i.toJS(Object.assign({reviver:n},r))}let Zb=e=>!e.indexOf(V4),{stringify:Zx,parse:ZS}=JSON,Zv=["*.yml","*.yaml"],ZT=e=>{let t=[],[r,n]=(0,q0.T)(Zg,e);return r?[]:(t.push({source:qu(Zx(n,null,2),qr),extension:"json"}),t)},ZE=e=>{let[t]=(0,q0.T)(Zg,e);return function({error:e}){if(!e)return[];let{message:t,linePos:r}=e,[n]=String(e).split(":");return[{message:function(e){let[t]=e.split("\n");return t.replace(/\sat.*/g,"")}(t),rule:`${n.replace("YAML","Yaml").replace(GW,function(e){return" "+(e[0].toLowerCase()||e[0])+e[1]}).replace(GX,function(e){return" "+e.toLowerCase()}).trim().split(Gz).join("-").replace(/^-/,"").replace(/-\s*$/,"")} (yaml)`,position:function(e){let[{line:t,col:r}]=e;return{line:t,column:r}}(r)}]}({error:t})},Zk=(e,t)=>{let[r]=t.filter(Zb);return function(e,t){let r=null;if(Array.isArray(null)&&(r=null),"string"==typeof t&&(t=t.length),"number"==typeof t){let e=Math.round(t);t=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=t??null??{};if(!e)return}return G3(e)&&!r?e.toString(t):new Qj(e,r,t).toString(t)}(ZS(qc(r,qr)),{indent:2,lineWidth:1/0})};function Zw(e){return"Document"===e.type}function ZA(e){return"Table"===e.type}function ZP(e){return"TableArray"===e.type}function ZC(e){return"KeyValue"===e.type}function ZI(e){return"InlineArray"===e.type}function Z_(e){return"InlineItem"===e.type}function ZN(e){return"InlineTable"===e.type}function ZL(e){return"Comment"===e.type}function ZO(e){return Zw(e)||ZA(e)||ZP(e)||ZN(e)||ZI(e)}function ZD(e){return{lines:e.end.line-e.start.line+1,columns:e.end.column-e.start.column}}function ZM(e,t){let r=Array.isArray(e)?e:Zj(e);if(0===r.length)return{line:1,column:t};let n=0,i=r.length-1;for(;n<i;){let e=n+i>>>1;r[e]<t?n=e+1:i=e}r[n]<t&&n++;let s=n+1;return{line:s,column:t-(r[s-2]+1||0)}}function ZF(e,t){let r=Zj(e),n=void 0===r[t.line-2]?0:r[t.line-2]+1,i=r[t.line-1]||e.length;return e.substring(n,i)}function Zj(e){let t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);10===n?t.push(r):13===n&&(10===e.charCodeAt(r+1)?(t.push(r+1),r++):t.push(r))}return t.push(e.length),t}function ZB(e){return{line:e.line,column:e.column}}function ZR(e){return{start:ZB(e.start),end:ZB(e.end)}}function Z$(){return{line:1,column:0}}var ZU=class extends Error{line;column;constructor(e,t,r){let n=`Error parsing TOML (${t.line}, ${t.column+1}):
81
+ `;if(e){let r=ZF(e,t),i=`${function(e,t=" "){return t.repeat(e)}(t.column)}^`;r&&(n+=`${r}
82
+ ${i}
83
+ `)}super(n+=r),this.line=t.line,this.column=t.column}};let ZV=/^[\w-]+$/,Zq=/[\w,\d,",',+,\-,_]/;function ZK(e,t,r){if(!r||e[t]!==r||e[t+1]!==r||e[t+2]!==r)return!1;if("'"===r)return r;let n=0,i=t-1;for(;i>=0&&"\\"===e[i];)n++,i--;return(0===n||n%2==0)&&r}let ZJ=new Int8Array(128);ZJ.fill(-1);for(let e=0;e<10;e++)ZJ[48+e]=e;for(let e=0;e<6;e++)ZJ[65+e]=10+e,ZJ[97+e]=10+e;function Zz(e){let t=e.charCodeAt(0);return t<128&&-1!==ZJ[t]}function ZW(e){return e.startsWith("'''")?ZH(e.slice(3,e.length-3)):e.startsWith("'")?e.slice(1,e.length-1):e.startsWith('"""')?ZX(ZH(e.slice(3,e.length-3)),!0):e.startsWith('"')?ZX(e.slice(1,e.length-1),!1):e}function ZX(e,t){let r=e.length;if(!t&&-1===e.indexOf("\\"))return e;let n=[],i=0;for(let a=0;a<r;a++){if("\\"!==e[a])continue;if(a>i&&n.push(e.slice(i,a)),++a>=r)throw Error("Trailing backslash");let o=e[a];switch(o){case"b":n.push("\b");break;case"t":n.push(" ");break;case"n":n.push(`
84
+ `);break;case"f":n.push("\f");break;case"r":n.push(`\r`);break;case'"':n.push('"');break;case"\\":n.push("\\");break;case"e":n.push("\x1b");break;case"u":{var s;if(a+4>r||!Zz(e[a+1])||!Zz(e[a+2])||!Zz(e[a+3])||!Zz(e[a+4]))throw Error(`Invalid Unicode escape: \\u${e.slice(a+1,a+5)}`);let t=(s=a+1,ZJ[e.charCodeAt(s)]<<12|ZJ[e.charCodeAt(s+1)]<<8|ZJ[e.charCodeAt(s+2)]<<4|ZJ[e.charCodeAt(s+3)]);if(t>=55296&&t<=57343)throw Error(`Invalid \\u${e.slice(a+1,a+5)}: surrogates not allowed`);n.push(String.fromCharCode(t)),a+=4;break}case"U":{if(a+8>r)throw Error(`Invalid Unicode escape: \\U${e.slice(a+1,a+9)}`);for(let t=1;t<=8;t++)if(!Zz(e[a+t]))throw Error(`Invalid Unicode escape: \\U${e.slice(a+1,a+9)}`);let t=parseInt(e.slice(a+1,a+9),16);if(t>=55296&&t<=57343)throw Error(`Invalid \\U${e.slice(a+1,a+9)}: surrogates not allowed`);n.push(String.fromCodePoint(t)),a+=8;break}case"x":{if(a+2>r||!Zz(e[a+1])||!Zz(e[a+2]))throw Error(`Invalid hex escape: \\x${e.slice(a+1,a+3)}`);let t=ZJ[e.charCodeAt(a+1)]<<4|ZJ[e.charCodeAt(a+2)];n.push(String.fromCharCode(t)),a+=2;break}default:if(t&&(o===`
85
+ `||o===`\r`||" "===o||" "===o)){let t=o===`
86
+ `||o===`\r`,n=a;for(;n<r&&(" "===e[n]||" "===e[n]||e[n]===`
87
+ `||e[n]===`\r`);)(e[n]===`
88
+ `||e[n]===`\r`)&&(t=!0),n++;if(!t)throw Error(`Invalid escape sequence: \\${o}`);a=n-1;break}throw Error(`Invalid escape sequence: \\${o}`)}i=a+1}return 0===i?e:(i<r&&n.push(e.slice(i)),n.join(""))}function ZH(e){return 10===e.charCodeAt(0)?e.slice(1):13===e.charCodeAt(0)&&10===e.charCodeAt(1)?e.slice(2):e}var ZG=class{iterator;index;value;done;peeked;constructor(e){this.iterator=e,this.index=-1,this.value=void 0,this.done=!1,this.peeked=null}next(){if(this.done)return ZY;let e=this.peeked||this.iterator.next();return this.index+=1,this.value=e.value,this.done=e.done??!1,this.peeked=null,e}peek(){return this.done?ZY:(this.peeked||=this.iterator.next(),this.peeked)}[Symbol.iterator](){return this}};let ZY=Object.freeze({value:void 0,done:!0}),ZQ=new WeakMap,ZZ=new WeakMap,Z0=new WeakMap,Z1=new WeakSet,Z2=new WeakMap;function Z3(e,t){return(e[t.line-1]??e[e.length-1])+t.column}function Z4(e){return ZC(e)?[e.key,e.value]:Z_(e)?[e.item]:ZA(e)||ZP(e)?[e.key,...e.items]:ZO(e)?e.items:[]}function Z5(e){Object.defineProperty(e,"dirty",{configurable:!0,enumerable:!1,value:!0,writable:!0})}function Z6(e,t,r){(function(e){if(Z1.has(e))return;let t=[e];for(;t.length>0;){let e=t.pop();for(let r of Z4(e))Z0.set(r,e),t.push(r)}Z1.add(e)})(e),r&&(Z0.set(r,t),function(e){let t=[e];for(;t.length>0;){let e=t.pop();for(let r of(Z5(e),Z4(e)))t.push(r)}}(r));let n=t;for(;n;)Z5(n),n=Z0.get(n)}function Z8(e){return{year:String(e.getUTCFullYear()).padStart(4,"0"),month:String(e.getUTCMonth()+1).padStart(2,"0"),day:String(e.getUTCDate()).padStart(2,"0"),hours:String(e.getUTCHours()).padStart(2,"0"),minutes:String(e.getUTCMinutes()).padStart(2,"0"),seconds:String(e.getUTCSeconds()).padStart(2,"0"),ms:e.getUTCMilliseconds()}}function Z9(e,t,r=/\.(\d+)\s*$/){if(t&&t.includes(".")){let n=t.match(r),i=n?n[1].length:3;return"."+String(e).padStart(3,"0").slice(0,i)}return e>0?"."+String(e).padStart(3,"0").replace(/0+$/,""):""}function Z7(e){if("Z"===e)return 0;let t="+"===e[0]?1:-1,[r,n]=e.slice(1).split(":");return t*(60*parseInt(r)+parseInt(n))}var eee=class e{static IS_DATE_ONLY=/^\d{4}-\d{2}-\d{2}$/;static IS_TIME_ONLY=/^\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;static IS_LOCAL_DATETIME_T=/^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;static IS_LOCAL_DATETIME_SPACE=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;static IS_OFFSET_DATETIME_T=/^\d{4}-\d{2}-\d{2}[Tt]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})$/;static IS_OFFSET_DATETIME_SPACE=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})$/;static IS_FULL_DATE=/(\d{4})-(\d+)-(\d+)/;static IS_FULL_TIME=/(\d+):(\d+)(?::(\d+))?/;static createDateWithOriginalFormat(t,r){if(e.IS_DATE_ONLY.test(r)){if(0!==t.getUTCHours()||0!==t.getUTCMinutes()||0!==t.getUTCSeconds()||0!==t.getUTCMilliseconds()){if(t instanceof eei)return t;let e=t.toISOString().replace("Z","");return new een(e=e.replace(/\.000$/,""),!1)}return new eet(t.toISOString().split("T")[0])}if(e.IS_TIME_ONLY.test(r)){if(t instanceof eer)return t;{let e=Z8(t),n=Z9(e.ms,r);return new eer(`${e.hours}:${e.minutes}:${e.seconds}${n}`,r)}}if(e.IS_LOCAL_DATETIME_T.test(r)){let e=Z8(t),n=Z9(e.ms,r);return new een(`${e.year}-${e.month}-${e.day}T${e.hours}:${e.minutes}:${e.seconds}${n}`,!1,r)}if(e.IS_LOCAL_DATETIME_SPACE.test(r)){let e=Z8(t),n=Z9(e.ms,r);return new een(`${e.year}-${e.month}-${e.day} ${e.hours}:${e.minutes}:${e.seconds}${n}`,!0,r)}if(e.IS_OFFSET_DATETIME_T.test(r)||e.IS_OFFSET_DATETIME_SPACE.test(r)){let n=r.match(/([+-]\d{2}:\d{2}|[Zz])$/),i=n?"z"===n[1]?"Z":n[1]:"Z",s=e.IS_OFFSET_DATETIME_SPACE.test(r),a=Z8(new Date(t.getTime()+6e4*Z7(i))),o=s?" ":"T",l=Z9(a.ms,r,/\.(\d+)(?:[Zz]|[+-]\d{2}:\d{2})\s*$/);return new eei(`${a.year}-${a.month}-${a.day}${o}${a.hours}:${a.minutes}:${a.seconds}${l}${i}`,s)}return t}},eet=class extends Date{constructor(e){super(e)}toISOString(){let e=Z8(this);return`${e.year}-${e.month}-${e.day}`}},eer=class extends Date{originalFormat;constructor(e,t){let r=e;/:\d{2}:\d{2}/.test(e)||(r=e+":00"),super(`0000-01-01T${r}Z`),this.originalFormat=t}toISOString(){let e=Z8(this);return`${e.hours}:${e.minutes}:${e.seconds}${Z9(e.ms,this.originalFormat)}`}},een=class extends Date{useSpaceSeparator=!1;originalFormat;constructor(e,t=!1,r){let n=e;/\d{2}:\d{2}:\d{2}/.test(e)||(n=e.replace(/(\d{2}:\d{2})([\s\-+TZ]|$)/,"$1:00$2")),super(n.replace(" ","T")+"Z"),this.useSpaceSeparator=t,this.originalFormat=r||e}toISOString(){let e=Z8(this),t=this.useSpaceSeparator?" ":"T";return`${e.year}-${e.month}-${e.day}${t}${e.hours}:${e.minutes}:${e.seconds}${Z9(e.ms,this.originalFormat)}`}},eei=class extends Date{useSpaceSeparator=!1;originalOffset;originalFormat;constructor(e,t=!1){let r=e;/\d{2}:\d{2}:\d{2}/.test(e)||(r=e.replace(/(\d{2}:\d{2})([\s\-+TZ]|$)/,"$1:00$2")),super(r.replace(" ","T")),this.useSpaceSeparator=t,this.originalFormat=e;let n=e.match(/([+-]\d{2}:\d{2}|[Zz])$/);n&&(this.originalOffset="z"===n[1]?"Z":n[1])}toISOString(){if(this.originalOffset){let e=Z8(new Date(this.getTime()+6e4*Z7(this.originalOffset))),t=this.useSpaceSeparator?" ":"T",r=Z9(e.ms,this.originalFormat,/\.(\d+)(?:[Zz]|[+-]\d{2}:\d{2})\s*$/);return`${e.year}-${e.month}-${e.day}${t}${e.hours}:${e.minutes}:${e.seconds}${r}${this.originalOffset}`}let e=super.toISOString();return this.useSpaceSeparator?e.replace("T"," "):e}};let ees="true",eea=/e/i,eeo=/_/g,eel=/^[+-]?inf$/,eeu=/^[+-]?nan$/,eec=/^[+-]?0x/i,eep=/^[+-]?0o/i,eeh=/^[+-]?0b/i;function eed(e,t,r){for(let i=0;i<e.length;i++){var n;if(!((n=e.charCodeAt(i))>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||95===n||45===n))throw new ZU(t,{line:r.line,column:r.column+i},`Invalid bare key char '${e[i]}'`)}}function eef(e,t,r){if(e.startsWith('"""')||e.startsWith("'''"))throw new ZU(t,r,"Multiline strings cannot be keys")}function eem(e,t,r){try{return ZW(e)}catch(e){throw new ZU(t,r,e.message)}}function eey(e,t,r,n=!0){if(e.endsWith("_")||(n?/^[+-]?_/.test(e):e.startsWith("_")))throw new ZU(t,r,"Underscore must be between digits");if(/__/.test(e))throw new ZU(t,r,"Consecutive underscores not allowed")}function eeg(e,t,r,n){let i=e.replace(eeo,"");if(/^[+-]?0\d/.test(i)&&!eec.test(e)&&!eep.test(e)&&!eeh.test(e))throw new ZU(t,r,`Leading zeros are not allowed in ${n}`)}function eeb(e,t,r,n){if(/_[eE]/.test(e))throw new ZU(r,n,"Underscore before exponent is not allowed");if(/[eE][+-]?_/.test(e))throw new ZU(r,n,"Underscore at start of exponent is not allowed");if(/[eE][+-]?$/.test(e))throw new ZU(r,n,`Invalid float "${t}": incomplete exponent`);if(/[eE][+-]?.*\./.test(e))throw new ZU(r,n,`Invalid float "${t}": decimal point not allowed in exponent`)}function eex(e,t,r,n,i,s){if(2!==e.length)throw new ZU(i,s,`"${n}": hour must be 2 digits`);if(2!==t.length)throw new ZU(i,s,`"${n}": minute must be 2 digits`);if(r&&2!==r.length)throw new ZU(i,s,`"${n}": second must be 2 digits`)}function eeS(e,t,r,n,i,s){if(void 0!==e){let t=parseInt(e,10);if(t<0||t>23)throw new ZU(i,s,`"${n}": hour must be 00-23`)}if(void 0!==t){let e=parseInt(t,10);if(e<0||e>59)throw new ZU(i,s,`"${n}": minute must be 00-59`)}if(void 0!==r){let e=parseInt(r,10);if(e<0||e>60)throw new ZU(i,s,`"${n}": second must be 00-60`)}}function eev(e,t,r,n,i,s,a){if(RegExp("^[+\\-]?"+(n[0]+n[1].toUpperCase()).replace(/([[\]])/g,"\\$1")).test(e))throw new ZU(t,r,`${s} prefix must be lowercase "${n}"`);if(RegExp("^[+\\-]?"+n+"_","i").test(e))throw new ZU(t,r,"Underscore must be between digits");let o=RegExp("^[+\\-]?"+n,"i"),l=e.replace(o,"");if(!l||"_"===l||l.startsWith("_"))throw new ZU(t,r,`Incomplete ${s.toLowerCase()} number`);let u=l.replace(/_/g,"");if(!i.test(u))throw new ZU(t,r,a??`Invalid ${s.toLowerCase()} digits`);if(/^[+-]/.test(e))throw new ZU(t,r,`${s} numbers cannot have a sign prefix`)}function*eeT(e,t){let r=new ZG(function*(e,t){let r=e.length,n=0,i=t??{reference:null,mixed:!1},s=[],a=(e,t)=>({start:ZM(s,e),end:ZM(s,t)});for(;n<r;){let t=e.charCodeAt(n);if((t<=31||127===t)&&9!==t&&13!==t&&10!==t)throw new ZU(e,ZM(s,n),`Control char 0x${t.toString(16).toUpperCase().padStart(2,"0")} not allowed`);if(13===t&&(n+1>=r||10!==e.charCodeAt(n+1)))throw new ZU(e,ZM(s,n),"Standalone CR; must be CRLF or LF");if(32!==t&&9!==t&&13!==t)if(10===t)o(n);else if(91===t||93===t)yield{type:"Bracket",raw:e[n],loc:a(n,n+1)};else if(123===t||125===t)yield{type:"Curly",raw:e[n],loc:a(n,n+1)};else if(61===t)yield{type:"Equal",raw:"=",loc:a(n,n+1)};else if(44===t)yield{type:"Comma",raw:",",loc:a(n,n+1)};else if(46===t)yield{type:"Dot",raw:".",loc:a(n,n+1)};else if(35===t)yield function(){let t=n;for(;n+1<r;){let t=e.charCodeAt(n+1);if(10===t||13===t)break;n++;let r=e.charCodeAt(n);if((r<=31||127===r)&&9!==r)throw new ZU(e,ZM(s,n),`Control char 0x${r.toString(16).toUpperCase().padStart(2,"0")} not allowed`)}return{type:"Comment",raw:e.slice(t,n+1),loc:a(t,n+1)}}();else{let t=ZK(e,n,"'")||ZK(e,n,'"');t?yield function(t){let i=n,l=t+t+t;for(n+=3;n<r;){if(ZK(e,n,t)){let r=3;for(;e[n+r]===t;)r++;if(r>=6)throw new ZU(e,ZM(s,n),`Invalid multiline string: ${r} consecutive ${t} characters`);if(3===r){n+=2;break}n+=r-3+2;break}let i=e.charCodeAt(n);if(13===i&&(n+1>=r||10!==e.charCodeAt(n+1)))throw new ZU(e,ZM(s,n),"Standalone CR in multiline string; must be CRLF or LF");if((i<=31||127===i)&&9!==i&&10!==i&&13!==i){let r='"'===t?"multiline basic strings":"multiline literal strings",a=`0x${i.toString(16).toUpperCase().padStart(2,"0")}`,o="";0===i?o="Null":127===i&&(o="DEL");let l=o?`${o} (${a}) not allowed in ${r}`:`Control char ${a} not allowed in ${r}`;throw new ZU(e,ZM(s,n),l)}10===i&&o(n),n++}if(n>=r){if('"'===t){let t=0,i=r-1;for(;i>=0&&"\\"===e[i];)t++,i--;if(t>0&&t%2!=0)throw new ZU(e,ZM(s,n),`Unterminated multiline ${l} (possible escape issue)`)}throw new ZU(e,ZM(s,n),`Unterminated multiline ${l}`)}return{type:"Literal",raw:e.slice(i,n+1),loc:a(i,n+1)}}(t):yield function(){let t=e[n];if(!Zq.test(t))throw new ZU(e,ZM(s,n),`Unexpected char "${t}"`);let i=n,o='"'===t,l="'"===t;for(;n<r&&!(n+1>=r);){let t=e.charCodeAt(n+1);if(!(o||l)&&(32===t||9===t||10===t||13===t||44===t||46===t||93===t||125===t||61===t||35===t))break;if(n++,!(o||l)){let t=e.charCodeAt(n);if(t<=31||127===t)throw new ZU(e,ZM(s,n),`Control char 0x${t.toString(16).toUpperCase().padStart(2,"0")} not allowed in unquoted value`)}if(o||l){let t=e.charCodeAt(n);if((t<=31||127===t)&&9!==t){let r=o?"basic strings":"literal strings",i=`0x${t.toString(16).toUpperCase().padStart(2,"0")}`,a="";10===t?a="Newline":13===t?a="Carriage return":0===t?a="Null":127===t&&(a="DEL");let l=a?`${a} (${i}) not allowed in ${r}`:`Control char ${i} not allowed in ${r}`;throw new ZU(e,ZM(s,n),l)}}let i=e[n];if('"'!==i||l||(o=!o),"'"!==i||o||(l=!l),n+1>=r)break;if(o&&"\\"===i){let t=e[n+1];('"'===t||"\\"===t)&&n++}}if(o||l)throw new ZU(e,ZM(s,i),`Expected close of string with ${o?'"':"'"}`);return{type:"Literal",raw:e.slice(i,n+1),loc:a(i,n+1)}}()}n++}function o(t){s.push(t);let r=t>0&&13===e.charCodeAt(t-1)?`\r
89
+ `:`
90
+ `;null===i.reference?i.reference=r:i.reference!==r&&(i.mixed=!0)}}(e,t)),n=function(e){let t=[0];for(let r=0;r<e.length;r++)10===e.charCodeAt(r)&&t.push(r+1);return r=>{let n=[r];for(;n.length>0;){let r=n.pop(),i=[Z3(t,r.loc.start),Z3(t,r.loc.end)];if(Object.defineProperty(r,"range",{configurable:!0,enumerable:!1,value:i}),ZZ.set(r,e),Z2.set(r,Z4(r).slice()),ZC(r))n.push(r.value),n.push(r.key);else if(Z_(r))n.push(r.item);else if(ZA(r)||ZP(r)){n.push(r.key);let e=r.items;for(let t=e.length-1;t>=0;t--)n.push(e[t])}else if(ZO(r)){let e=r.items;for(let t=e.length-1;t>=0;t--)n.push(e[t])}}}}(e);for(;!r.next().done;)for(let t of eek(r,e))n(t),yield t}function eeE(e){return{type:"Comment",loc:e.value.loc,raw:e.value.raw}}function eek(e,t){if("Comment"===e.value.type)return[eeE(e)];if("Bracket"===e.value.type)return[function(e,t){let r,n=e.peek().done||"Bracket"!==e.peek().value.type?"Table":"TableArray",i="Table"===n;if(i&&"["!==e.value.raw)throw new ZU(t,e.value.loc.start,`Expected table opening "[", found ${e.value.raw}`);if(!i){let r=e.peek();if(r.done)throw new ZU(t,e.value.loc.start,'Expected "[[" for Array of Tables, found end of input');if("["!==e.value.raw||"["!==r.value.raw)throw new ZU(t,e.value.loc.start,`Expected "[[", found ${e.value.raw+r.value.raw}`);let n=e.value,i=r.value;if(n.loc.end.line!==i.loc.start.line||n.loc.end.column!==i.loc.start.column)throw new ZU(t,n.loc.start,'"[[" brackets must be adjacent (no whitespace)')}let s=i?{type:"TableKey",loc:e.value.loc}:{type:"TableArrayKey",loc:e.value.loc};if(e.next(),"TableArray"===n&&e.next(),e.done)throw new ZU(t,s.loc.start,"Expected table key, reached end of file");if("Bracket"===e.value.type&&"]"===e.value.raw)throw new ZU(t,e.value.loc.start,"TableArray"===n?"Array of Tables header [[]] requires a table name":"Table header [] requires a table name");let a=e.value.raw;for(eef(a,t,e.value.loc.start),a.startsWith('"')||a.startsWith("'")||eed(a,t,e.value.loc.start),r=[eem(e.value.raw,t,e.value.loc.start)],s.item={type:"Key",loc:e.value.loc,raw:e.value.raw,value:r};!e.peek().done&&"Dot"===e.peek().value.type;){e.next();let r=e.value;e.next();let n=e.value.raw;n.startsWith('"')||n.startsWith("'")||eed(n,t,e.value.loc.start);let i=" ".repeat(r.loc.start.column-s.item.loc.end.column),a=" ".repeat(e.value.loc.start.column-r.loc.end.column);s.item.loc.end=e.value.loc.end,s.item.raw+=`${i}.${a}${e.value.raw}`;try{s.item.value.push(ZW(e.value.raw))}catch(r){throw new ZU(t,e.value.loc.start,r.message)}}if(e.next(),!e.done){let r=s.loc.start.line;if(e.value.loc.start.line!==r)throw new ZU(t,e.value.loc.start,i?"Table header must be single-line":"Array of Tables header must be single-line")}if(i&&(e.done||"]"!==e.value.raw))throw new ZU(t,e.done?s.item.loc.end:e.value.loc.start,`Expected table closing "]", found ${e.done?"end of file":e.value.raw}`);if(!i&&(e.done||e.peek().done||"]"!==e.value.raw||"]"!==e.peek().value.raw))throw new ZU(t,e.done||e.peek().done?s.item.loc.end:e.value.loc.start,`Expected "]]" closing, found ${e.done||e.peek().done?"end of file":e.value.raw+e.peek().value.raw}`);if(!i){let r=e.value,n=e.peek().value;if(r.loc.end.line!==n.loc.start.line||r.loc.end.column!==n.loc.start.column)throw new ZU(t,r.loc.start,'"]]" brackets must be adjacent (no whitespace)')}if(i||e.next(),s.loc.end=e.value.loc.end,!e.peek().done){let r=e.peek().value;if(r.loc.start.line===s.loc.end.line&&"Comment"!==r.type)throw new ZU(t,r.loc.start,`Extra content after ${i?"table":"Array of Tables"} header`)}let o=[];for(;!e.peek().done&&"Bracket"!==e.peek().value.type;){e.next();let r=eek(e,t);for(let e=0;e<r.length;e++)o.push(r[e])}return{type:i?"Table":"TableArray",loc:{start:ZB(s.loc.start),end:o.length?ZB(o[o.length-1].loc.end):ZB(s.loc.end)},key:s,items:o}}(e,t)];if("Literal"===e.value.type)return function(e,t){let r,n=e.value.raw;if(n.endsWith(":"))throw new ZU(t,{line:e.value.loc.start.line,column:e.value.loc.start.column+[...n].length-1},"Use '=' to separate keys and values, not ':'");eef(n,t,e.value.loc.start),n.startsWith('"')||n.startsWith("'")||eed(n,t,e.value.loc.start),r=[eem(e.value.raw,t,e.value.loc.start)];let i={type:"Key",loc:e.value.loc,raw:e.value.raw,value:r};for(;!e.peek().done&&"Dot"===e.peek().value.type;){e.next();let r=e.value;e.next();let n=e.value.raw;eef(n,t,e.value.loc.start),n.startsWith('"')||n.startsWith("'")||eed(n,t,e.value.loc.start);let s=ZF(t,i.loc.end),a=ZF(t,r.loc.end),o=s.slice(i.loc.end.column,r.loc.start.column),l=a.slice(r.loc.end.column,e.value.loc.start.column);i.loc.end=e.value.loc.end,i.raw+=`${o}.${l}${e.value.raw}`,i.value.push(eem(e.value.raw,t,e.value.loc.start))}if(e.next(),!e.done&&e.value.loc.start.line!==i.loc.end.line)throw new ZU(t,e.value.loc.start,'"=" must be on same line as key');if(e.done||"Equal"!==e.value.type)throw e.done||":"!==e.value.raw?new ZU(t,e.done?i.loc.end:e.value.loc.start,'Expected "=" for key-value'):new ZU(t,e.value.loc.start,"Use '=' to separate keys and values, not ':'");let s=e.value.loc.start.column,a=e.value.loc.start.line;if(e.next(),e.done)throw new ZU(t,i.loc.start,"Expected value, reached EOF");if(e.value.loc.start.line!==a)throw new ZU(t,e.value.loc.start,"Value must be on same line as '='");if(e.done)throw new ZU(t,i.loc.start,"Expected value for key-value");let o=function e(t,r){if("Literal"===t.value.type){let e,n=t.value.raw;return'"'===n[0]||"'"===n[0]?[(e=eem(t.value.raw,r,t.value.loc.start),{type:"String",loc:t.value.loc,raw:t.value.raw,value:e})]:n===ees||"false"===n?[{type:"Boolean",loc:t.value.loc,value:t.value.raw===ees}]:/^\d/.test(n)&&(/^\d{1,}-\d{1,}/.test(n)||/^\d{1,}:\d{1,}/.test(n))?[function(e,t){let r=e.value.loc,n=e.value.raw,i;if(!e.peek().done&&"Literal"===e.peek().value.type&&eee.IS_FULL_DATE.test(n)&&/^\d/.test(e.peek().value.raw)&&eee.IS_FULL_TIME.test(e.peek().value.raw)){let t=r.start;e.next(),r={start:t,end:e.value.loc.end},n+=` ${e.value.raw}`}if(!e.peek().done&&"Dot"===e.peek().value.type){let i=r.start;if(e.next(),e.peek().done||"Literal"!==e.peek().value.type)throw new ZU(t,e.value.loc.end,"Expected fractional value for DateTime");e.next(),r={start:i,end:e.value.loc.end},n+=`.${e.value.raw}`}if(function(e,t,r){if(/\.([Zz]|[+-])/.test(e))throw new ZU(t,r,`"${e}": fractional seconds needs digit after dot`);if(/[+-]$/.test(e))throw new ZU(t,r,`"${e}": offset needs HH:MM`);let n=/\d{2}:\d{2}/.test(e)?e.match(/([+-])(\d+)(:?)(\d*)$/):null;if(n){let e=n[0],i=n[2],s=n[3],a=n[4];if(":"!==s)throw new ZU(t,r,`Offset "${e}": missing colon separator`);if(2!==i.length)throw new ZU(t,r,`Offset "${e}": hour must be 2 digits`);if(!a||0===a.length)throw new ZU(t,r,`Offset "${e}": minute required`);if(2!==a.length)throw new ZU(t,r,`Offset "${e}": minute must be 2 digits`);let o=parseInt(i,10);if(o<0||o>23)throw new ZU(t,r,`Offset "${e}": hour must be 00-23`);let l=parseInt(a,10);if(l<0||l>59)throw new ZU(t,r,`Offset "${e}": minute must be 00-59`)}if(!/^\d{4}-\d{2}-\d{2}(?:[Tt ]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:[Zz]|[+-]\d{2}:\d{2})?)?$/.test(e)&&!/^\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/.test(e))throw/^\d{4}-\d{2}-\d{2}T$/.test(e)?new ZU(t,r,`"${e}": 'T' requires time component`):/^\d{4}-\d{2}-\d{2}[a-su-zA-SU-Z]/.test(e)?new ZU(t,r,`Invalid date "${e}": unexpected character after date`):/^\d{4}-\d{2}-\d{2}\d{2}:\d{2}/.test(e)?new ZU(t,r,`"${e}": missing 'T' or space separator`):new ZU(t,r,`Invalid datetime "${e}"`);let i=e.match(/^(\d+)-/);if(i&&4!==i[1].length)throw new ZU(t,r,`"${e}": year must be 4 digits`);let s=e.match(/^(\d+)-(\d+)-(\d+)/);if(s){let[,,n,i]=s;if(2!==n.length)throw new ZU(t,r,`"${e}": month must be 2 digits`);if(2!==i.length)throw new ZU(t,r,`"${e}": day must be 2 digits`)}let a=e.match(/[T ](\d+):(\d+)(?::(\d+))?/);if(a){let[,n,i,s]=a;eex(n,i,s,e,t,r)}let o=e.match(/^(\d+):(\d+)(?::(\d+))?/);if(o&&!s){let[,n,i,s]=o;eex(n,i,s,e,t,r)}let l=e.match(/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2}))?)?/),u=e.match(/^(\d{2}):(\d{2})(?::(\d{2}))?/);if(l){var c;let[,n,i,s,a,o,u]=l,p=parseInt(i,10);if(p<1||p>12)throw new ZU(t,r,`"${e}": month must be 01-12`);let h=parseInt(s,10);if(h<1||h>31)throw new ZU(t,r,`"${e}": day must be 01-31`);if(h>(c=parseInt(n,10),2===p?c%4==0&&c%100!=0||c%400==0?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][p-1]))throw new ZU(t,r,`"${e}": day ${s} invalid for ${n}-${i}`);eeS(a,o,u,e,t,r)}else if(u){let[,n,i,s]=u;eeS(n,i,s,e,t,r)}}(n,t,r.start),eee.IS_FULL_DATE.test(n))i=eee.IS_DATE_ONLY.test(n)?new eet(n):eee.IS_LOCAL_DATETIME_T.test(n)?new een(n,!1):eee.IS_LOCAL_DATETIME_SPACE.test(n)?new een(n,!0):eee.IS_OFFSET_DATETIME_T.test(n)?new eei(n,!1):eee.IS_OFFSET_DATETIME_SPACE.test(n)?new eei(n,!0):new Date(n.replace(" ","T"));else if(eee.IS_TIME_ONLY.test(n))i=new eer(n,n);else{let[e]=new Date().toISOString().split("T");i=new Date(`${e}T${n}`)}return{type:"DateTime",loc:r,raw:n,value:i}}(t,r)]:!t.peek().done&&"Dot"===t.peek().value.type||eel.test(n)||eeu.test(n)||eea.test(n)&&!eec.test(n)?[function(e,t){let r=e.value.loc,n=e.value.raw,i;if(eel.test(n))i=n.startsWith("-")?-1/0:1/0;else if(eeu.test(n)){let e=new Float64Array(1),t=new DataView(e.buffer);n.startsWith("-")?(t.setUint32(0,0,!0),t.setUint32(4,0xfff80000,!0)):(t.setUint32(0,0,!0),t.setUint32(4,0x7ff80000,!0)),i=e[0];let s=n.startsWith("+")?"+":n.startsWith("-")?"-":void 0;return{type:"Float",loc:r,raw:n,value:i,nanSign:s}}else if(e.peek().done||"Dot"!==e.peek().value.type){if(eey(n,t,r.start),eeb(n,n,t,r.start),!e.peek().done&&"Dot"===e.peek().value.type)throw new ZU(t,e.peek().value.loc.start,`Float "${n}.": dot after exponent`);eeg(n,t,r.start,"the integer part of a float"),i=Number(n.replace(eeo,""))}else{let s=r.start;{if(eea.test(n)&&!eec.test(n))throw new ZU(t,r.start,`Float "${n}": dot after exponent`);let e=n;eeg(e,t,r.start,"the integer part of a float");let i=e.replace(/^[+-]/,"");if(""===i||"_"===i)throw new ZU(t,r.start,"Float: digit required before dot");eey(e,t,r.start)}if(e.next(),e.peek().done||"Literal"!==e.peek().value.type)throw new ZU(t,e.value.loc.end,"Expected fraction value for Float");e.next(),n+=`.${e.value.raw}`,r={start:s,end:e.value.loc.end};{let r=e.value.raw;if(!/^\d/.test(r))throw new ZU(t,e.value.loc.start,`Float: fraction must start with digit, found "${r}"`);eey(r,t,e.value.loc.start,!1),eeb(r,n,t,e.value.loc.start)}i=Number(n.replace(eeo,""))}if(Number.isNaN(i)&&!eeu.test(n))throw new ZU(t,r.start,`Invalid float "${n}"`);return{type:"Float",loc:r,raw:n,value:i}}(t,r)]:[function(e,t){let r=e.value.raw,n=e.value.loc;if(/^\d{1,}-\d{1,}/.test(r)||/^\d{1,}:\d{1,}/.test(r)||/^\d{6}-\d{2}$/.test(r))throw new ZU(t,n.start,`Invalid integer "${r}"`);if("-0"===r||"+0"===r)return{type:"Integer",loc:n,raw:r,value:0};if(/^[+-]{2,}/.test(r))throw new ZU(t,n.start,"Double sign is not allowed in integers");eeg(r,t,n.start,"decimal integers"),eey(r,t,n.start),function(e,t,r){if(eec.test(e)||eep.test(e)||eeh.test(e))return;let n=e.replace(/^[+-]/,"").replace(/_/g,"");if(!/^[0-9]+$/.test(n))throw new ZU(t,r,`Invalid integer "${e}"`)}(r,t,n.start);let i=10;eec.test(r)?(i=16,eev(r,t,n.start,"0x",/^[0-9a-fA-F]+$/,"Hexadecimal")):eep.test(r)?(i=8,eev(r,t,n.start,"0o",/^[0-7]+$/,"Octal","Invalid octal digits (must be 0-7)")):eeh.test(r)&&(i=2,eev(r,t,n.start,"0b",/^[01]+$/,"Binary","Invalid binary digits (must be 0 or 1)"));let s=parseInt(r.replace(eeo,"").replace(eep,"").replace(eeh,""),i);if(Number.isNaN(s))throw new ZU(t,n.start,`Invalid integer "${r}"`);return{type:"Integer",loc:n,raw:r,value:s}}(t,r)]}if("Curly"===t.value.type){let[e,n]=function(e,t){if("{"!==e.value.raw)throw new ZU(t,e.value.loc.start,'Expected "{" for inline table');let r={type:"InlineTable",loc:e.value.loc,items:[]},n=[];for(e.next();!e.done&&("Curly"!==e.value.type||"}"!==e.value.raw);){if("Comment"===e.value.type){n.push(eeE(e)),e.next();continue}if("Comma"===e.value.type){let n=r.items[r.items.length-1];if(!n)throw new ZU(t,e.value.loc.start,"Leading comma in inline table");if(n.comma)throw new ZU(t,e.value.loc.start,"Consecutive commas in inline table");n.comma=!0,n.loc.end=e.value.loc.start,e.next();continue}let i=r.items[r.items.length-1];if(i&&!i.comma)throw new ZU(t,e.value.loc.start,"Missing comma between inline table items");let s=eek(e,t),a=s[0];if("KeyValue"===a.type){r.items.push({type:"InlineItem",loc:ZR(a.loc),item:a,comma:!1});for(let e=1;e<s.length;e++)n.push(s[e])}e.next()}if(e.done||"Curly"!==e.value.type||"}"!==e.value.raw)throw new ZU(t,e.done?r.loc.start:e.value.loc.start,'Expected "}"');r.loc.end=e.value.loc.end;{let e=eew(r.items);void 0!==e&&ZQ.set(r,e)}return[r,n]}(t,r);return[e,...n]}if("Bracket"===t.value.type){let[n,i]=function(t,r){if("["!==t.value.raw)throw new ZU(r,t.value.loc.start,'Expected "[" for inline array');let n={type:"InlineArray",loc:t.value.loc,items:[]},i=[];for(t.next();!t.done&&("Bracket"!==t.value.type||"]"!==t.value.raw);){if("Comma"===t.value.type){let e=n.items[n.items.length-1];if(!e)throw new ZU(r,t.value.loc.start,"Leading comma in array");if(e.comma)throw new ZU(r,t.value.loc.start,"Consecutive commas in array");e.comma=!0,e.loc.end=t.value.loc.start}else if("Comment"===t.value.type)i.push(eeE(t));else{let s=n.items[n.items.length-1];if(s&&!s.comma)throw new ZU(r,t.value.loc.start,"Missing comma between array elements");let a=e(t,r),o=a[0];n.items.push({type:"InlineItem",loc:ZR(o.loc),item:o,comma:!1});for(let e=1;e<a.length;e++)i.push(a[e])}t.next()}if(t.done||"Bracket"!==t.value.type||"]"!==t.value.raw)throw new ZU(r,t.done?n.loc.start:t.value.loc.start,'Expected "]"');n.loc.end=t.value.loc.end;{let e=eew(n.items);void 0!==e&&ZQ.set(n,e)}return[n,i]}(t,r);return[n,...i]}throw"Dot"===t.value.type?new ZU(r,t.value.loc.start,"Number cannot start with a dot"):new ZU(r,t.value.loc.start,"Unrecognized token type")}(e,t),l=o[0];if(!e.peek().done){let r=e.peek().value;if("Dot"===r.type&&r.loc.start.line===l.loc.end.line&&("Float"===l.type||"Integer"===l.type))throw new ZU(t,r.loc.start,"Invalid number: multiple decimal points not allowed");if(("Literal"===r.type||"Bracket"===r.type)&&r.loc.start.line===l.loc.end.line)throw new ZU(t,r.loc.start,"Key/value pairs must be separated by a newline")}return o[0]={type:"KeyValue",key:i,value:l,loc:{start:ZB(i.loc.start),end:ZB(l.loc.end)},equals:s},o}(e,t);throw"Equal"===e.value.type?new ZU(t,e.value.loc.start,"Missing key before '='"):new ZU(t,e.value.loc.start,`Unexpected token "${e.value.type}"`)}function eew(e){for(let t=1;t<e.length;t++){let r=e[t-1],n=e[t];if(r.loc.end.line===n.loc.start.line){let e=n.loc.start.column-r.loc.end.column;if(e>=1)return e}}}function eeA(e){return e[e.length-1]}function eeP(){return Object.create(null)}function eeC(e){return"number"==typeof e&&e%1==0&&isFinite(e)&&!Object.is(e,-0)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff}function eeI(e){return"[object Date]"===Object.prototype.toString.call(e)}let ee_=new Set(["Temporal.PlainDate","Temporal.PlainTime","Temporal.PlainDateTime","Temporal.ZonedDateTime","PlainDate","PlainTime","PlainDateTime","ZonedDateTime"]);function eeN(e){var t;return"object"==typeof e&&!!e&&ee_.has(null==(t=e.constructor)?void 0:t.name)&&"function"==typeof e.equals}function eeL(e){var t;let r=(null==(t=e.constructor)?void 0:t.name)??"";if("Temporal.ZonedDateTime"===r||"ZonedDateTime"===r){let t=e.toString(),r=t.match(/\[(.+)\]$/);if(r&&!/^[+-]\d{2}:\d{2}$/.test(r[1]))throw Error(`ZonedDateTime with IANA timezone "${t}" cannot be represented in TOML. TOML only supports offset-based timezones (+05:30, Z).`);return t.replace(/\[.*\]$/,"").replace(/(\+00:00)$/,"Z")}let n=e.toString();if(/\[.*\]/.test(n))throw Error(`Temporal value contains unsupported annotation: "${n}". TOML only supports ISO 8601 calendar.`);return n}function eeO(e){return null!=e&&"function"==typeof e[Symbol.iterator]}let eeD="function"==typeof String.prototype.isWellFormed?String.prototype.isWellFormed:void 0;function eeM(e,t){if(void 0!==eeD&&eeD.call(e))return;let r=function(e){for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(!(r<55296||r>57343)){if(r<=56319){let r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){t++;continue}}return{index:t,code:r}}}}(e);if(!r)return;let n=r.code.toString(16).toUpperCase().padStart(4,"0");throw Error(`${t} contains a lone surrogate (U+${n}) at index ${r.index}. Unpaired surrogates are not Unicode scalar values and cannot be encoded as TOML.`)}function eeF(e,t){function r(e,t){for(let r of e)n(r,t)}function n(e,i){let s=t[e.type];switch(s&&"function"==typeof s&&s(e,i),s&&s.enter&&s.enter(e,i),e.type){case"Document":case"InlineArray":case"InlineTable":r(e.items,e);break;case"Table":case"TableArray":n(e.key,e),r(e.items,e);break;case"TableKey":case"TableArrayKey":case"InlineItem":n(e.item,e);break;case"KeyValue":n(e.key,e),n(e.value,e);break;case"Key":case"String":case"Integer":case"Float":case"Boolean":case"DateTime":case"Comment":break;default:throw Error(`Unrecognized node type "${e.type}"`)}s&&s.exit&&s.exit(e,i)}eeO(e)?r(e,null):n(e,null)}function eej(e){return 65279===e.charCodeAt(0)}function eeB(e){return eej(e)?e.slice(1):e}let eeR="auto",ee$="auto";function eeU(e){let t=0;for(;t<e.length&&" "===e[t];)t++;return t}let eeV=new Map([[`
91
+ `,`
92
+ `],[`\r
93
+ `,`\r
94
+ `],["\\n",`
95
+ `],["\\r\\n",`\r
96
+ `],["LF",`
97
+ `],["CRLF",`\r
98
+ `],["UNIX",`
99
+ `],["DOS",`\r
100
+ `]]);function eeq(e){let t=eeV.get(e)??eeV.get(e.toUpperCase());if(void 0===t)throw TypeError("Invalid newLine value: expected LF or CRLF");return t}var eeK=class e{newLine;trailingNewline;trailingComma;bracketSpacing;leadingBom;inlineTableStart;truncateZeroTimeInDates;useTabsForIndentation;indentWidth;minimumDecimals;updateOrder;multilineTable;multilineArray;constructor(e,t,r,n,i,s,a,o,l,u,c,p,h){this.newLine=null==e?`
101
+ `:eeq(e),this.trailingNewline=t??1,this.trailingComma=r??!1,this.bracketSpacing=n??!0,this.inlineTableStart=i??1,this.truncateZeroTimeInDates=s??!1,this.useTabsForIndentation=a??!1,this.indentWidth=this.useTabsForIndentation?1:c??2,this.minimumDecimals=o??0,this.leadingBom=l??!1,this.updateOrder=u??!1,this.multilineTable=p??"auto",this.multilineArray=h??"auto"}static default(){return new e(`
102
+ `,1,!1,!0,1,!1,!1,0,!1,!1,2,eeR,ee$)}static autoDetectFormat(t){return e.autoDetectFormatWithCst(t)}static autoDetectFormatWithCst(t,r){let n,i=e.default();i.leadingBom=eej(t);let s=eeB(t),a=[];i.newLine=(n=s.indexOf(`
103
+ `))>0&&s[n-1]===`\r`?`\r
104
+ `:`
105
+ `,i.trailingNewline=function(e){let t=0,r=e.length;for(;r>0&&e[r-1]===`
106
+ `;)t++,--r>0&&e[r-1]===`\r`&&r--;return t}(s);try{a=Array.isArray(r)?r:Array.from(r??eeT(s)),i.trailingComma=function(e){for(let t of e){let e=function e(t){if(!t||"object"!=typeof t)return null;if("InlineArray"===t.type&&t.items&&Array.isArray(t.items)||"InlineTable"===t.type&&t.items&&Array.isArray(t.items))return function(e){if(0===e.length)return null;let t=e[e.length-1];return!!t&&"object"==typeof t&&"comma"in t&&!0===t.comma}(t.items);if("KeyValue"===t.type&&t.value)return e(t.value);if(t.items&&Array.isArray(t.items))for(let r of t.items){let t=e(r);if(null!==t)return t}return null}(t);if(null!==e)return e}return!1}(a),i.bracketSpacing=function(e,t){for(let r of t){let t=function e(t,r){if(!t||"object"!=typeof t)return null;if(("InlineArray"===t.type||"InlineTable"===t.type)&&t.loc){let e=function(e,t){if(!e||!e.start||!e.end)return null;let r=t.split(/\r?\n/),n=e.start.line-1,i=e.end.line-1,s=e.start.column,a=e.end.column,o="";if(n===i){var l;o=(null==(l=r[n])?void 0:l.substring(s,a+1))||""}else{r[n]&&(o+=r[n].substring(s));for(let e=n+1;e<i;e++)o+=`
107
+ `+(r[e]||"");r[i]&&(o+=`
108
+ `+r[i].substring(0,a+1))}let u=o.match(/^\[(\s*)/),c=o.match(/^\{(\s*)/);return u?u[1].length>0:c?c[1].length>0:null}(t.loc,r);if(null!==e)return e}if(t.items&&Array.isArray(t.items))for(let n of t.items){let t=e(n,r);if(null!==t)return t;if(n.item){let t=e(n.item,r);if(null!==t)return t}}for(let n of["value","key","item"])if(t[n]){let i=e(t[n],r);if(null!==i)return i}return null}(r,e);if(null!==t)return t}return!0}(s,a)}catch{i.trailingComma=!1,i.bracketSpacing=!0}return i.useTabsForIndentation=function(e){let t=e.split(/\r?\n/),r=0,n=0;for(let e of t)if(0!==e.length&&(" "===e[0]?r++:" "===e[0]&&n++,r+n>=5))break;return r>0&&r>=n}(s),i.indentWidth=i.useTabsForIndentation?1:function(e,t){let r=e.split(/\r?\n/),n=[],i=new Set(["Table","TableArray","InlineTable","InlineArray"]),s=new Set(["Table","TableArray","InlineTable","InlineArray","KeyValue","InlineItem","Comment"]),a=(e,t)=>{var o,l,u;if(!e||"object"!=typeof e)return;if(void 0!==t&&s.has(e.type)&&(null==(o=e.loc)||null==(o=o.start)?void 0:o.line)>t){let t=eeU(r[e.loc.start.line-1]??"");t>0&&n.push(t)}let c=i.has(e.type)&&(null==(l=e.loc)||null==(l=l.end)?void 0:l.line)>(null==(u=e.loc)||null==(u=u.start)?void 0:u.line)?e.loc.start.line:t;if(Array.isArray(e.items))for(let t of e.items)a(t,c);e.item&&a(e.item,c),e.value&&a(e.value,c)};for(let e of Array.isArray(t)?t:Array.from(t??[]))a(e);if(n.length>0)return Math.min(...n);let o=r.filter(e=>e.trim().length>0&&!e.trimStart().startsWith("#")).map(eeU).filter(e=>e>0);return o.length>0?Math.min(...o):2}(s,a),i.inlineTableStart=1,i.truncateZeroTimeInDates=!1,i.minimumDecimals=0,i.updateOrder=!1,i.multilineTable=eeR,i.multilineArray=ee$,i}static autoDetectFormatWithAst(t,r){return e.autoDetectFormatWithCst(t,r)}};let eeJ=new WeakMap,eez=new WeakSet,eeW=(new WeakSet,new WeakSet,new WeakSet);function eeX(e,t,r,n){let i="array"===e?n.multilineArray:n.multilineTable;return"boolean"==typeof i?i:"number"==typeof i?t>=i:"parent"===i&&r}function eeH(e,t){eeJ.set(e,t),t&&0===e.items.length&&(e.loc.end.line=e.loc.start.line+1,e.loc.end.column=e.loc.start.column+1)}function eeG(e){return eeJ.get(e)}let eeY=new WeakSet,eeQ=new WeakSet,eeZ=new WeakMap,ee0=new WeakMap,ee1=new WeakMap,ee2=new WeakSet,ee3=new WeakSet,ee4=new WeakMap,ee5=e=>(ee4.has(e)||ee4.set(e,new WeakMap),ee4.get(e)),ee6=new WeakMap;function ee8(e){return ee6.has(e)||ee6.set(e,new WeakMap),ee6.get(e)}function ee9(e,t,r,n,i,s,a,o=!1){var l,u,c;let p,h,d;if(!ZO(t))throw Error(`Unsupported parent type "${t.type}" for insert`);n=null!=n&&"number"==typeof n?n:t.items.length,ZI(t)||ZN(t)?{shift:p,offset:h}=function(e,t,r,n){if(!Z_(t))throw Error(`Incompatible child type "${t.type}"`);let i=ett(e),s=null==r?eeA(e.items):e.items[r-1],a=null==r||r===e.items.length,o=null==r?void 0:e.items[r];e.items.splice(r,0,t);let l=!!s,u=!a;return l&&(s.comma=!0),u&&(t.comma=!0),ete(e,t,r,{useNewLine:etl(e,t)&&!(s&&o&&o.loc.start.line===s.loc.end.line&&o.loc.start.column>=s.loc.end.column)&&!(!0!==eeG(e)&&ZN(e)&&!o&&s&&s.loc.end.line===e.loc.end.line),skipCommaSpace:i,hasCommaHandling:!0,isLastElement:a,hasSeparatingCommaBefore:l,hasSeparatingCommaAfter:u,hasTrailingComma:a&&!0===t.comma,indentWidth:n})}(t,r,n,eeZ.get(e)??2):i&&Zw(t)?{shift:p,offset:h}=(d=ete(l=t,u=r,c=n,{useNewLine:!1,hasCommaHandling:!1}),l.items.splice(c,0,u),d):{shift:p,offset:h}=function(e,t,r,n,i){let s;if(!(ZC(r)||ZA(r)||ZP(r)||ZL(r)))throw Error(`Incompatible child type "${r.type}"`);let a=t.items[n-1],o=Zw(t)&&!t.items.length,l=Zw(t)&&!o&&void 0===a;if(t.items.splice(n,0,r),void 0!==a)if(eeQ.has(e))s=a;else{let e=!1;for(let r=0;r<n;r++)if(ZL(t.items[r])){e=!0;break}if(e){let e=-1,r=-1;for(let i=0;i<n;i++){let n=t.items[i],a=n.loc.end;(a.line>e||a.line===e&&a.column>r)&&(e=a.line,r=a.column,s=n)}}else s=a}let u=s?{line:s.loc.end.line,column:ZL(s)?t.loc.start.column:s.loc.start.column}:ZB(t.loc.start),c=ZA(r)||ZP(r),p=0;void 0===i?o||l||(p=c?2:1):p=i,u.line+=p;let h={lines:u.line-r.loc.start.line,columns:u.column-r.loc.start.column},d=ZD(r.loc),f=!eeQ.has(e)&&void 0===a&&(ZA(t)||ZP(t)||Zw(t))&&ee1.has(t),m=f&&!ee2.has(t);f&&(ee1.delete(t),ee2.delete(t));let y=f&&!m,g=0;if(y){let r=ZA(t)||ZP(t)?ee8(e).get(t.key):ee5(e).get(t);g=r?-r.lines:1}let b=m||y?p-2:p-1,x={lines:l?d.lines+1:d.lines+b,columns:d.columns};return{shift:{lines:h.lines+g,columns:h.columns},offset:x}}(e,t,r,n,a),eto(r,p,{first_line_only:o});let f=t.items[n-1],m=f&&ee8(e).get(f);if(m&&(h.lines+=m.lines,h.columns+=m.columns,ee8(e).delete(f)),(ZN(t)||ZI(t))&&0!==h.lines&&(s||ZO(e))&&e!==t){let n=r.loc.start.line,i=s??e.items,a=ee7(t,i);for(let e=0;e<i.length;e++){let t=i[e];if(!ZL(t))continue;let r=t.loc.start.line;r<a.loc.start.line||r>a.loc.end.line||r<n&&(t.loc.start.line-=h.lines,t.loc.end.line-=h.lines)}}ee8(e).set(r,h),Z6(e,t,r),eeY.add(e)}function ee7(e,t){for(let r of t){if(!ZC(r))continue;let t=r.value;if(!ZI(t)&&!ZN(t))continue;let n=!1,i=t=>{t===e&&(n=!0)};if(eeF(t,{InlineArray:i,InlineTable:i}),n)return t}return e}function ete(e,t,r,n={}){let{useNewLine:i=!1,skipCommaSpace:s=2,skipBracketSpace:a=1,hasCommaHandling:o=!1,isLastElement:l=!1,hasSeparatingCommaBefore:u=!1,hasSeparatingCommaAfter:c=!1,hasTrailingComma:p=!1,indentWidth:h=2}=n,d=r>0?e.items[r-1]:void 0,f=d?{line:d.loc.end.line,column:i?ZL(d)?e.loc.start.column:d.loc.start.column:d.loc.end.column}:ZB(e.loc.start);if(!d&&i){let t=e.items.find((e,t)=>t>r&&!ZL(e));t?f.column=t.loc.start.column:e.loc.end.line>e.loc.start.line&&(f.column=(ZI(e)||ZN(e)?ee0.get(e):void 0)??e.loc.end.column-1+h)}let m=0;if(i)m=1;else{let e=u||!o&&!!d;e&&o?f.column+=s:(e||o&&!d)&&(f.column+=a)}f.line+=m;let y={lines:f.line-t.loc.start.line,columns:f.column-t.loc.start.column},g=ZD(t.loc);if(!o)return{shift:y,offset:{lines:g.lines+(m-1),columns:g.columns}};let b=0;u&&p&&!c&&l&&(b=-1);let x=g.columns+(u||c?s:0)+(p?1+b:0);return i&&l&&d&&e.loc.end.line===d.loc.end.line&&(x=g.columns-(d.loc.end.column-d.loc.start.column)),{shift:y,offset:{lines:g.lines+(m-1),columns:x}}}function ett(e){return ZQ.get(e)??2}function etr(e,t,r,n){var i;let s,a;if(!ZO(t))throw Error(`Unsupported parent type "${t.type}" for remove`);Z6(e,t);let o=t.items.indexOf(r);if(o<0){if((o=t.items.findIndex(e=>{var t;return("TableKey"===(t=e).type||"TableArrayKey"===t.type||Z_(t))&&e.item===r}))<0)throw Error("Node not found in parent for removal");r=t.items[o]}let l=t.items[o-1],u=t.items[o+1];t.items.splice(o,1);let c=ZD(r.loc);u&&ZL(u)&&u.loc.start.line===r.loc.end.line&&(c=ZD({start:r.loc.start,end:u.loc.end}),u=t.items[o+1],t.items.splice(o,1));let p=l&&Z_(l)||u&&Z_(u),h=l?ee8(e).get(l):void 0,d=l&&l.loc.end.line===r.loc.start.line+((null==h?void 0:h.lines)??0),f=u&&u.loc.start.line===r.loc.end.line,m=p&&(d||f),y={lines:-(c.lines-!!m),columns:m?-c.columns:0};if((Zw(t)||ZA(t)||ZP(t))&&u&&!m&&u.loc.start.line>r.loc.end.line){let n=ZA(r)||ZP(r),i=ZA(u)||ZP(u),s=-1;for(let e=0;e<o;e++){let r=t.items[e].loc.end.line;r>s&&(s=r)}let a=l?ee8(e).get(l):void 0,c=ee8(e).get(r),p=l?n?r.loc.start.line+((null==a?void 0:a.lines)??0)-s-1:0:i?u.loc.start.line+((null==c?void 0:c.lines)??0)-r.loc.end.line-1:0;p>0&&(y.lines-=p)}let g=(ZN(t)||ZI(t))&&t.loc.end.line>t.loc.start.line,b=g&&r.loc.start.line===t.loc.start.line;g&&!b&&void 0===l&&void 0===u&&r.loc.start.line>t.loc.start.line&&t.loc.end.line>r.loc.end.line&&eeW.add(t),void 0===l&&void 0===u&&(!g||b)&&(y.lines=0,y.columns=0,(ZN(t)||ZI(t))&&ee3.add(t),(ZA(t)||ZP(t)||Zw(t))&&ee1.set(t,!0)),(void 0!==l||void 0!==u)&&(ZA(t)||ZP(t)||Zw(t))&&ee2.add(t);let x=ZI(t)||ZN(t)?ett(t):2;if(p&&d&&(y.columns-=x),p&&!l&&u&&(etl(t)||(y.columns-=x)),p&&l&&!u&&(l.comma=!!r.comma,d)){let t=l?(null==(i=ee8(e).get(l))?void 0:i.columns)??0:0;y.columns=l.loc.end.column-r.loc.end.column-t}l?(s=l,a=ee8(e)):(ZA(t)||ZP(t))&&"key"in t?(s=t.key,a=ee8(e)):(s=t,a=ee5(e));let S=ee8(e),v=a.get(s);v&&(y.lines+=v.lines,y.columns+=v.columns);let T=S.get(r);if(T&&(y.lines+=T.lines,m&&(y.columns+=T.columns)),a.set(s,y),eeY.add(e),g&&(n||ZO(e))&&e!==t){let i=r.loc.start.line,s=n??e.items,a=ee7(t,s),o=[];for(let e=0;e<s.length;e++){let r=s[e];if(!ZL(r))continue;let n=r.loc.start.line;n<a.loc.start.line||n>a.loc.end.line||(n===i&&(n<t.loc.end.line||r.loc.start.column<t.loc.end.column)?o.push(e):0!==y.lines&&n<i&&(r.loc.start.line-=y.lines,r.loc.end.line-=y.lines))}for(let e=o.length-1;e>=0;e--)s.splice(o[e],1)}}function etn(e){let t=e.loc.start.line,r=e.loc.start.column;if("key"in e){let n=e.key.loc.end;(n.line>t||n.line===t&&n.column>r)&&(t=n.line,r=n.column)}for(let n=0;n<e.items.length;n++){let i=e.items[n].loc.end;(i.line>t||i.line===t&&i.column>r)&&(t=i.line,r=i.column)}e.loc.end={line:t,column:r}}function eti(e,t,r=!0){if(!r||!t.items.length)return;etu({lines:0,columns:1},ee5(e),t);let n=eeA(t.items);etu({lines:0,columns:1},ee8(e),n),eeY.add(e)}function ets(e,t,r=!1){if(!r||!t.items.length)return;let n=eeA(t.items);n.comma=!0,etu({lines:0,columns:1},ee8(e),n),eeY.add(e)}function eta(e){if(!eeY.has(e))return;let t=ee5(e),r=ee8(e),n=0,i={};function s(e){e.loc.start.line+=n;let r=i[e.loc.start.line]||0;e.loc.start.column+=r;let s=t.get(e);s&&(n+=s.lines,i[e.loc.start.line]=(i[e.loc.start.line]||0)+s.columns)}function a(e){e.loc.end.line+=n;let t=i[e.loc.end.line]||0;e.loc.end.column+=t;let s=r.get(e);s&&(n+=s.lines,i[e.loc.end.line]=(i[e.loc.end.line]||0)+s.columns)}function o(e){e.loc.start.line+=n,e.loc.start.column+=i[e.loc.start.line]||0}function l(e){e.loc.end.line+=n,e.loc.end.column+=i[e.loc.end.line]||0}(function e(u){switch(u.type){case"Document":s(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u),etn(u);break;case"Table":s(u),e(u.key);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u),etn(u);break;case"TableArray":s(u),e(u.key);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u),etn(u);break;case"TableKey":case"TableArrayKey":case"InlineItem":s(u),e(u.item),a(u);break;case"KeyValue":{let t=u.loc.start.line+n,o=r.get(u.key);u.equals+=(i[t]||0)+(o?o.columns:0),s(u),e(u.key),e(u.value),a(u);break}case"InlineArray":if(!t.get(u)&&!r.get(u)){o(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);l(u);break}s(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u);break;case"InlineTable":if(!t.get(u)&&!r.get(u)){o(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);l(u);break}s(u);for(let t=0;t<u.items.length;t++)e(u.items[t]);a(u);break;case"Key":case"String":case"Integer":case"Float":case"Boolean":case"DateTime":case"Comment":s(u),a(u);break;default:throw Error(`Unrecognized node type "${u.type}"`)}})(e),eeY.delete(e),ee4.delete(e),ee6.delete(e)}function eto(e,t,r={}){let{lines:n,columns:i}=t;if(0===n&&0===i)return e;let{first_line_only:s=!1,shift_generated_multiline_end:a=!1}=r,o=e.loc.start.line,l=e.type;if("Key"===l||"String"===l||"Integer"===l||"Float"===l||"Boolean"===l||"DateTime"===l||"Comment"===l)return s&&e.loc.start.line!==o||(e.loc.start.column+=i,e.loc.end.line===e.loc.start.line&&(e.loc.end.column+=i)),e.loc.start.line+=n,e.loc.end.line+=n,e;if("KeyValue"===l){let t=e.value.type;if("String"===t||"Integer"===t||"Float"===t||"Boolean"===t||"DateTime"===t){let t=!s||e.loc.start.line===o;t&&(e.loc.start.column+=i,e.loc.end.line===e.loc.start.line&&(e.loc.end.column+=i)),e.loc.start.line+=n,e.loc.end.line+=n,t&&(e.equals+=i);let r=e.key;s&&r.loc.start.line!==o||(r.loc.start.column+=i,r.loc.end.column+=i),r.loc.start.line+=n,r.loc.end.line+=n;let a=e.value;return s&&a.loc.start.line!==o||(a.loc.start.column+=i,a.loc.end.line===a.loc.start.line&&(a.loc.end.column+=i)),a.loc.start.line+=n,a.loc.end.line+=n,e}}let u=e=>{if(!s||e.loc.start.line===o){var t,r;e.loc.start.column+=i;let n=(!s||a)&&e.loc.end.line!==e.loc.start.line&&((ZI(e)||ZN(e))&&void 0!==eeG(e)&&!eez.has(e)||Z_(e)&&((ZI(e.item)||ZN(e.item))&&void 0!==eeG(e.item)&&(t=e.item,!eez.has(t))||ZC(e.item)&&(ZI(e.item.value)||ZN(e.item.value))&&void 0!==eeG(e.item.value)&&(r=e.item.value,!eez.has(r)))||ZC(e)&&(ZI(e.value)||ZN(e.value))&&void 0!==eeG(e.value));(e.loc.end.line===e.loc.start.line||n)&&(e.loc.end.column+=i)}e.loc.start.line+=n,e.loc.end.line+=n};return eeF(e,{Table:u,TableKey:u,TableArray:u,TableArrayKey:u,KeyValue(e){let t=!s||e.loc.start.line===o;u(e),t&&(e.equals+=i)},Key:u,String:u,Integer:u,Float:u,Boolean:u,DateTime:u,InlineArray:u,InlineItem:u,InlineTable:u,Comment:u}),e}function etl(e,t){let r=eeG(e);if(!0===r)return!0;if(void 0!==r||!e.items.length)return!1;let n=t?e.items.filter(e=>e!==t):e.items;return n.length?e.loc.end.line>e.loc.start.line&&n.every((e,t)=>0===t||e.loc.start.line>n[t-1].loc.start.line):e.loc.end.line>e.loc.start.line}function etu(e,t,r,n){let i=t.get(n||r);i&&(e.lines+=i.lines,e.columns+=i.columns),t.set(r,e)}function etc(e,t,r){let n=function(e){let t=new Map;for(let r=0;r<e.length;r++){if("\\"!==e[r])continue;let n=e[r+1];if(!n)continue;let i=function(e){switch(e){case"b":return"\b";case"t":return" ";case"n":return`
109
+ `;case"f":return"\f";case"r":return`\r`;case'"':return'"';case"\\":return"\\";default:return null}}(n);if(null!==i){i===`
110
+ `||i===`\r`||t.has(i)||t.set(i,"\\"+n),r+=1;continue}if("x"===n&&/^[0-9A-Fa-f]{2}$/.test(e.slice(r+2,r+4))){let n=e.slice(r,r+4),i=String.fromCharCode(Number.parseInt(e.slice(r+2,r+4),16));t.has(i)||t.set(i,n),r+=3;continue}if("u"===n&&/^[0-9A-Fa-f]{4}$/.test(e.slice(r+2,r+6))){let n=e.slice(r,r+6),i=String.fromCodePoint(Number.parseInt(e.slice(r+2,r+6),16));t.has(i)||t.set(i,n),r+=5;continue}if("U"===n&&/^[0-9A-Fa-f]{8}$/.test(e.slice(r+2,r+10))){let n=e.slice(r,r+10),i=String.fromCodePoint(Number.parseInt(e.slice(r+2,r+10),16));t.has(i)||t.set(i,n),r+=9;continue}}return t}(t);if(0===n.size&&"singleline-basic"===r)return JSON.stringify(e).slice(1,-1).replace(/\x7f/g,"\\u007F");let i=function(e,t,r){let n="";for(let i of e){let e=t.get(i);if(e){n+=e;continue}n+=function(e,t){switch(e){case"\\":return"\\\\";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case'"':return"singleline-basic"===t?'\\"':'"';case`
111
+ `:return"singleline-basic"===t?"\\n":`
112
+ `;case`\r`:return"singleline-basic"===t?"\\r":`\r`;default:{let r=e.charCodeAt(0);return("singleline-basic"===t?r<=31||127===r:r>=0&&r<=7||11===r||r>=14&&r<=31||127===r)?`\\u${r.toString(16).padStart(4,"0").toUpperCase()}`:e}}}(i,r)}return n}(e,n,r);return"multiline-basic"===r?i.replace(/"""/g,'""\\"'):i}function etp(){return{type:"Document",loc:{start:Z$(),end:Z$()},items:[]}}function eth(e){var t;let r,n=(r=etf(t=e),{type:"TableKey",loc:{start:Z$(),end:{line:1,column:r.length+2}},item:{type:"Key",loc:{start:{line:1,column:1},end:{line:1,column:r.length+1}},value:t,raw:r}});return{type:"Table",loc:ZR(n.loc),key:n,items:[]}}function etd(e){return JSON.stringify(e).replace(/\x7f/g,"\\u007f")}function etf(e){return e.map(e=>(eeM(e,`Key ${JSON.stringify(e)}`),ZV.test(e)?e:etd(e))).join(".")}function etm(e){let t=e.toString();return{type:"Integer",loc:{start:Z$(),end:{line:1,column:t.length}},raw:t,value:e}}function ety(e,t=1){let r,n;if(1/0===e)r="inf";else if(-1/0===e)r="-inf";else if(Number.isNaN(e)){let t=!!(0x80000000&new DataView(new Float64Array([e]).buffer).getUint32(4,!0));n=t?"-":void 0,r=t?"-nan":"nan"}else if(Object.is(e,-0))r="-0."+"0".repeat(Math.max(t,1));else{let n=(r=e.toString()).search(/[eE]/);if(-1!==n){let e=r.slice(0,n),i=r.slice(n),s=e.indexOf(".");if(-1===s)r=`${e}.${"0".repeat(Math.max(t,1))}${i}`;else{let n=e.length-s-1;r=n<t?`${e}${"0".repeat(t-n)}${i}`:`${e}${i}`}}else{let e=r.indexOf(".");if(-1===e)r+="."+"0".repeat(Math.max(t,1));else{let n=r.length-e-1;n<t&&(r+="0".repeat(t-n))}}}return{type:"Float",loc:{start:Z$(),end:{line:1,column:r.length}},raw:r,value:e,...void 0===n?{}:{nanSign:n}}}function etg(e){return{type:"InlineItem",loc:ZR(e.loc),item:e,comma:!1}}function etb(e,t){let r=eth(e.key.value);for(let t of e.value.items)ee9(r,r,t.item,void 0,void 0,void 0,void 0,!0);return eta(r),etv(r,1,t),r}function etx(e){let t=eeG(e);return void 0===t?e.items.length?e.items.some((t,r)=>{let n=e.items[r-1];return t.loc.start.line>((null==n?void 0:n.loc.end.line)??e.loc.start.line)}):e.loc.end.line>e.loc.start.line:t}function etS(e){return Math.max(e,2)}function etv(e,t,r=!0){for(let n of ZC(e)?[e]:e.items)ZC(n)&&(ZI(n.value)||ZN(n.value))&&function e(t,r,n,i=!0){let s=etx(t),a=!1;if(s){let s=r+n;for(let r of t.items)eto(r,{lines:0,columns:s-r.loc.start.column}),Z_(r)&&(ZI(r.item)||ZN(r.item)?e(r.item,r.item.loc.start.column,etS(n),i)&&(r.loc.end={...r.item.loc.end},a=!0):ZC(r.item)&&(ZI(r.item.value)||ZN(r.item.value))&&e(r.item.value,r.item.loc.start.column,n,i)&&(r.item.loc.end={...r.item.value.loc.end},r.loc.end={...r.item.loc.end},a=!0));t.loc.end.column=r+1,a=!0}for(let r of t.items)if(Z_(r)){if(ZI(r.item)||ZN(r.item))e(r.item,r.item.loc.start.column,etS(n),i)&&(r.loc.end={...r.item.loc.end},a=!0);else if(ZC(r.item)&&(ZI(r.item.value)||ZN(r.item.value))){let t=r.item.value,s=r.item.loc.start.column,o=etx(t);e(t,s,n,i)&&(o&&(t.loc.end.column=s+1),r.item.loc.end={...t.loc.end},r.loc.end={...r.item.loc.end},a=!0)}}let o=ZQ.get(t)??2;for(let e=1;e<t.items.length;e++){let r=t.items[e-1],n=t.items[e];r.loc.end.line===n.loc.start.line&&eto(n,{lines:0,columns:r.loc.end.column+(r.comma?o:1)-n.loc.start.column})}if(a&&!s&&t.items.length>0){let e=t.items[t.items.length-1];t.loc.end={line:e.loc.end.line,column:e.loc.end.column+ +!!e.comma+(i?2:1)}}return a}(n.value,n.loc.start.column,t,r)}function etT(e){return Math.max(0,e.length-1)}function etE(e,t,r){let n=[];for(let t=0;t<e.items.length;t++){let i=e.items[t];if(ZC(i)&&ZN(i.value)){let t=[...e.key.item.value,...i.key.value];etT(t)<(r.inlineTableStart??1)&&n.push({item:i,nestedTableKey:t})}}for(let{item:i,nestedTableKey:s}of n){let n=eth(s);for(let e of i.value.items)ee9(n,n,e.item);eta(n),etr(e,e,i),function(e){if(e.items.length>0){let t=e.items[e.items.length-1];e.loc.end.line=t.loc.end.line,e.loc.end.column=t.loc.end.column}else e.loc.end.line=e.key.loc.end.line,e.loc.end.column=e.key.loc.end.column}(e),t.push({table:n,parent:e}),etE(n,t,r)}n.length>0&&eta(e)}function etk(e){return e.items.length>0&&e.loc.end.line-e.loc.start.line+1>e.items.length}function etw(e){return ZI(e)||ZN(e)}function*etA(e,t,r=0,n=!1){for(let i of Object.keys(e)){let s=e[i];if(void 0===s)continue;let a=etP(s);void 0!==a&&(yield function(e,t,r=!1){let n=function(e){let t=etf(e);return{type:"Key",loc:{start:Z$(),end:{line:1,column:t.length}},raw:t,value:e}}(e),{column:i}=n.loc.end;return eto(t,{lines:1-t.loc.start.line,columns:i+3-t.loc.start.column},{first_line_only:!0,shift_generated_multiline_end:r}),{type:"KeyValue",loc:{start:ZB(n.loc.start),end:ZB(t.loc.end)},key:n,equals:i+1,value:t}}([i],function e(t,r,n,i){var s;let a,o=r.minimumDecimals??0;if(null===t)throw Error('"null" values are not supported');if(void 0===t)throw Error('"undefined" values are not supported inside arrays');return"string"==typeof t?(eeM(t,"String value"),s=t,a="",a=etd(s),{type:"String",loc:{start:Z$(),end:{line:1,column:a.length}},raw:a,value:s}):"bigint"==typeof t?etm(t):eeC(t)?o>0?ety(t,o):etm(t):"number"==typeof t&&(!eeC(t)||!isFinite(t)||Object.is(t,-0))?ety(t,Math.max(o,1)):"boolean"==typeof t?{type:"Boolean",loc:{start:Z$(),end:{line:1,column:t?4:5}},value:t}:eeN(t)?function(e,t=!1){var r;let n=(null==(r=e.constructor)?void 0:r.name)??"",i;if("Temporal.PlainDate"===n||"PlainDate"===n)i=eeL(e);else if("Temporal.PlainTime"===n||"PlainTime"===n)i=eeL(e);else if("Temporal.PlainDateTime"===n||"PlainDateTime"===n){if(t){let t=globalThis.Temporal;if(!t)throw Error("Temporal API is not available in this runtime. Set temporal: false or use a runtime with Temporal support.");let r=t.PlainDate.from(e.toString().split("T")[0]);if(r.toString()+"T00:00:00"===e.toString().slice(0,19))return i=eeL(r),{type:"DateTime",loc:{start:Z$(),end:{line:1,column:i.length}},raw:i,value:r}}i=eeL(e)}else i=eeL(e);return{type:"DateTime",loc:{start:Z$(),end:{line:1,column:i.length}},raw:i,value:e}}(t,r.truncateZeroTimeInDates):eeI(t)?function(e,t=!1){!t||e instanceof eer||0!==e.getUTCHours()||0!==e.getUTCMinutes()||0!==e.getUTCSeconds()||0!==e.getUTCMilliseconds()||(e=new eet(e.toISOString().split("T")[0]));let r=e.toISOString();return{type:"DateTime",loc:{start:Z$(),end:{line:1,column:r.length}},raw:r,value:e}}(t,r.truncateZeroTimeInDates):Array.isArray(t)?function(t,r,n,i){var s;let a={type:"InlineArray",loc:{start:Z$(),end:{line:1,column:2}},items:[]},o=!(0===t.length&&n>0)&&eeX("array",n,i,r);for(let i of(eeH(a,o),s=r.indentWidth,eeZ.set(a,s),t)){let t=e(i,r,n+1,o),s=etg(t);o||"InlineArray"!==t.type&&"InlineTable"!==t.type||!0!==eeG(t)||eez.add(t),function(e,t,r){if(!Z_(t)||!etw(t.item)||!etk(e))return;let n=e.items.find(e=>etw(e.item)&&e.item.type===t.item.type&&etk(e.item));if(!n||!etw(n.item))return;let i=t.item,s=n.item,a=s.items.length>0?s.items[0].loc.start.column-s.loc.start.column:r,o=s.items.length>0?s.items[0].loc.start.line-s.loc.start.line:1,l=s.items.length>0?s.loc.end.line-s.items[s.items.length-1].loc.end.line:1,u=i.loc.start.line,c=i.loc.start.column,p=u+o;for(let e of i.items)eto(e,{lines:p-e.loc.start.line,columns:c+a-e.loc.start.column}),p=e.loc.end.line+1;i.loc.end={line:p-1+l,column:s.loc.end.column},eez.add(i),t.loc={start:ZB(i.loc.start),end:ZB(i.loc.end)}}(a,s,r.indentWidth),ee9(a,a,s)}return eti(a,a,r.bracketSpacing),ets(a,a,r.trailingComma),eta(a),a}(t,r,n,i):function(t,r,n,i){var s,a;if(!((s=t=etP(t))&&"object"==typeof s&&!eeI(s)&&!eeN(s)&&!Array.isArray(s)))return e(t,r,n,i);let o={type:"InlineTable",loc:{start:Z$(),end:{line:1,column:2}},items:[]},l=!(0===Object.keys(t).length&&n>0)&&eeX("table",n,i,r);for(let e of(eeH(o,l),a=r.indentWidth,eeZ.set(o,a),etA(t,r,n+1,l)))ee9(o,o,etg(e));return eti(o,o,r.bracketSpacing),ets(o,o,r.trailingComma),eta(o),o}(t,r,n,i)}(a,t,r,n),r>0&&!n))}}function etP(e){return!e||eeI(e)||eeN(e)?e:"function"==typeof e.toJSON?e.toJSON():e}let etC=/(\r\n|\n)/g;function etI(e,t,r){if(t.start.line===t.end.line){let n=etN(e,t.start.line),i=n.substring(0,t.start.column),s=i.length<t.start.column?i.padEnd(t.start.column," "):i,a=n.substring(t.end.column);e[t.start.line-1]=s+r+a;return}let n=r.split(etC).filter(e=>e!==`
113
+ `&&e!==`\r
114
+ `),i=t.end.line-t.start.line+1;if(n.length!==i)throw Error(`Mismatch between location and raw string, expected ${i} lines for "${r}"`);for(let r=t.start.line;r<=t.end.line;r++){let i=etN(e,r),s=r===t.start.line,a=r===t.end.line,o="";if(s){let e=i.substring(0,t.start.column);o=e.length<t.start.column?e.padEnd(t.start.column," "):e}let l=a?i.substring(t.end.column):"";e[r-1]=o+n[r-t.start.line]+l}}function et_(e,t,r,n){let i=etN(e,t),s=i.length<r?i.padEnd(r," "):i.substring(0,r),a=i.substring(r+1);e[t-1]=s+n+a}function etN(e,t){if(!e[t-1])for(let r=0;r<t;r++)e[r]||(e[r]="");return e[t-1]}function etL(e,t,r,n,i){let s=t.length>0?[...t]:[],a=Array(r.length),o=Array(r.length);for(let e=0;e<r.length;e++)s.push(r[e]),a[e]=etF(s),o[e]=etj(s);let l=a[r.length-1],u=o[r.length-1];if("KeyValue"===n&&r.length>1)for(let e=1;e<r.length;e++){let t=a[e-1];if(i.inline_tables.has(o[e-1]))throw Error(`Cannot extend inline table at ${t}`)}if(("Table"===n||"TableArray"===n)&&i.inline_tables.has(u))throw Error(`Cannot extend inline table at ${l}`);if("Table"===n||"TableArray"===n)for(let e=1;e<r.length;e++){let t=a[e-1];if(i.inline_tables.has(o[e-1]))throw Error(`Cannot extend inline table at ${t}`)}if("KeyValue"===n&&r.length>1)for(let e=1;e<r.length;e++){let t=a[e-1];if(i.table_arrays.has(o[e-1]))throw Error(`Cannot traverse Array of Tables at ${t}`)}if(("Table"===n||"TableArray"===n)&&i.implicit_tables.has(u))throw Error(`Implicit table already defined: ${l}`);if("KeyValue"===n&&i.implicit_tables.has(u))throw Error(`Table already defined: ${l}`);if("KeyValue"===n&&r.length>1)for(let e=1;e<=r.length;e++){let t=a[e-1];if(i.tables.has(o[e-1]))throw Error(`Cannot extend explicit table ${t} with dotted keys`)}let c=0;for(let t of r){if(!(t in e))return;if(etM(e[t]))throw Error(`Value already defined for ${a[c]}`);let n=a[c];if(Array.isArray(e[t])&&!i.table_arrays.has(o[c]))throw Error(`Cannot add to static array at ${n}`);let s=c++<r.length-1;e=Array.isArray(e[t])&&s?eeA(e[t]):e[t]}if(e&&"Table"===n&&i.defined.has(u)||e&&"KeyValue"===n&&1===r.length&&i.defined.has(u)&&!etM(e))throw Error(`Table already defined: ${l}`);if(e&&"TableArray"===n&&!i.table_arrays.has(u))throw Error(`Cannot add Array of Tables to table at ${l}`)}function etO(e,t){let r=etD(e,t.slice(0,-1)),n=eeA(t);return r[n]||(r[n]=eeP()),r[n]}function etD(e,t){return t.reduce((e,t)=>(e[t]||(e[t]=eeP()),Array.isArray(e[t])?eeA(e[t]):e[t]),e)}function etM(e){return"object"!=typeof e&&!eeI(e)}function etF(e){return e.join(".")}function etj(e){return JSON.stringify(e)}let etB=String.raw`(?:[\w-]+|"[^"]*"|'[^']*')`,etR=(new RegExp(String.raw`^#\s*${etB}(?:\s*\.\s*${etB})*\s*=`),String.raw`(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|"""[\s\S]*?"""|'''[\s\S]*?'''|[^\s#]+)`);function et$(e,t){let r=eeB("string"==typeof e?e:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0}).decode(e));return function(e,t="",r={}){let{integersAsBigInt:n="asNeeded",temporal:i=!1}=r,s=eeP(),a=new Set,o=new Set,l=new Set,u=new Set,c=new Set,p=s,h=[],d={tables:a,table_arrays:o,defined:l,implicit_tables:u,inline_tables:c};for(let r of e)switch(r.type){case"Table":for(let e of(function(e){let r=e.key.item.value;try{etL(s,[],r,e.type,d)}catch(r){throw new ZU(t,e.key.loc.start,r.message)}let n=etj(r);a.add(n),l.add(n),p=etO(s,r),h=r}(r),r.items))"KeyValue"===e.type&&f(e);break;case"TableArray":for(let e of(function(e){let r=e.key.item.value;try{etL(s,[],r,e.type,d)}catch(r){throw new ZU(t,e.key.loc.start,r.message)}let n=etj(r);o.add(n),l.add(n),p=function(e,t){let r=etD(e,t.slice(0,-1)),n=eeA(t);r[n]||(r[n]=[]);let i=eeP();return r[eeA(t)].push(i),i}(s,r),h=r}(r),r.items))"KeyValue"===e.type&&f(e);break;case"KeyValue":f(r)}return s;function f(e){let r,s=e.key.value;try{etL(p,h,s,e.type,d)}catch(r){throw new ZU(t,e.key.loc.start,r.message)}if(s.length>1)for(let e=1;e<s.length;e++){let t=etj(h.concat(s.slice(0,e)));u.add(t),l.add(t)}try{r=function e(t,r={}){let{integersAsBigInt:n="asNeeded",temporal:i=!1}=r;switch(t.type){case"InlineTable":let s=eeP(),a=new Set,o=new Map;return t.items.forEach(({item:t})=>{let r=t.key.value,l=e(t.value,{integersAsBigInt:n,temporal:i}),u=etF(r),c=etj(r);if(a.has(c))throw Error(`Duplicate key "${u}" in inline table`);for(let e=1;e<r.length;e++){let t=etF(r.slice(0,e));if(a.has(etj(r.slice(0,e))))throw Error(`Key "${u}" conflicts with key: "${t}"`)}if(o.has(c)){let e=o.get(c);throw Error(`Key "${u}" conflicts with key: "${e}"`)}a.add(c);for(let e=1;e<r.length;e++){let t=etj(r.slice(0,e));o.has(t)||o.set(t,u)}(r.length>1?etO(s,r.slice(0,-1)):s)[eeA(r)]=l}),s;case"InlineArray":return t.items.map(t=>e(t.item,{integersAsBigInt:n,temporal:i}));case"DateTime":if(i){if(void 0===globalThis.Temporal)throw Error("Temporal API is not available in this runtime. Set temporal: false or use a runtime with Temporal support.");return function(e){var t,r,n,i,s,a;if(null!=(t=e.constructor)&&null!=(t=t.name)&&null!=(r=t.startsWith)&&r.call(t,"Temporal.")||(null==(n=e.constructor)?void 0:n.name)==="PlainDate"||(null==(i=e.constructor)?void 0:i.name)==="PlainTime"||(null==(s=e.constructor)?void 0:s.name)==="PlainDateTime"||(null==(a=e.constructor)?void 0:a.name)==="ZonedDateTime")return e;let o=globalThis.Temporal;if(e instanceof eet)return o.PlainDate.from(e.toISOString());if(e instanceof eer)return o.PlainTime.from(e.toISOString());if(e instanceof een)return o.PlainDateTime.from(e.toISOString().replace(" ","T"));if(e instanceof eei){let t=e.toISOString().replace(" ","T"),r=t.match(/([+-]\d{2}:\d{2}|Z)$/),n=r?r[1]:"Z",i=t.replace(/([+-]\d{2}:\d{2}|Z)$/,"");return o.ZonedDateTime.from(`${i}${n}[${"Z"===n?"+00:00":n}]`)}return o.PlainDateTime.from(e.toISOString().replace("Z",""))}(t.value)}return t.value;case"String":case"Float":case"Boolean":return t.value;case"Integer":return function(e,t="asNeeded"){let r,n=e.replace(/_/g,""),i=n;if(/^[+-]?0x/i.test(n)||/^[+-]?0o/i.test(n)||/^[+-]?0b/i.test(n)){let e="+"===n[0]||"-"===n[0]?n[0]:"";i=e+n.slice(+!!e).toLowerCase()}try{r=BigInt(i)}catch{return Number(n)}return!0===t?r:!1===t||r>=BigInt(-0x1fffffffffffff)&&r<=BigInt(0x1fffffffffffff)?Number(r):r}(t.raw,n);default:throw Error(`Unrecognized value type "${t.type}"`)}}(e.value,{integersAsBigInt:n,temporal:i})}catch(r){throw new ZU(t,e.value.loc.start,r.message)}if("InlineTable"===e.value.type){let t=h.concat(s);c.add(etj(t)),function e(t,r,n){for(let i of t.items){let t=i.item;if("InlineTable"===t.value.type){let i=r.concat(t.key.value);n.add(etj(i)),e(t.value,i,n)}}}(e.value,t,c)}(s.length>1?etO(p,s.slice(0,-1)):p)[eeA(s)]=r,l.add(etj(h.concat(s)))}}(eeT(r),r,{integersAsBigInt:(null==t?void 0:t.integersAsBigInt)??"asNeeded",temporal:(null==t?void 0:t.temporal)??!1})}new RegExp(String.raw`^#\s*${etB}(?:\s*\.\s*${etB})*\s*=\s*${etR}\s*$`),new RegExp(String.raw`^#\s*\[\[?\s*${etB}(?:\s*\.\s*${etB})*\s*\]\]?\s*$`),new WeakMap,new WeakMap;let{stringify:etU,parse:etV}=JSON,etq=["*.toml"],etK=e=>{let t=[],[r,n]=(0,q0.T)(et$,e);return r?[]:(t.push({source:qu(etU(n,null,4),qn),extension:"json"}),t)},etJ=e=>{let[t]=(0,q0.T)(et$,e);return function({error:e}){if(!e)return[];let{message:t,line:r,column:n}=e;return[{message:t.split("\n").pop(),rule:"toml-parse-error (toml)",position:{line:r,column:n}}]}({error:t})},etz=(e,t)=>{let r,n,[i]=t.filter(qh);return n=function(e,t){let r=[],n=e=>{let t={line:e.loc.end.line,column:e.loc.end.column-1},r=e.items[e.items.length-1];return r&&(r.loc.end.line>t.line||r.loc.end.line===t.line&&r.loc.end.column>t.column)&&(t.line=r.loc.end.line,t.column=r.loc.end.column+ +!!r.comma),t};function i(e){switch(e.type){case"Document":for(let t=0;t<e.items.length;t++)i(e.items[t]);break;case"Table":i(e.key);for(let t=0;t<e.items.length;t++)i(e.items[t]);break;case"TableKey":etI(r,e.loc,"["+e.item.raw+"]");break;case"TableArray":i(e.key);for(let t=0;t<e.items.length;t++)i(e.items[t]);break;case"TableArrayKey":etI(r,e.loc,"[["+e.item.raw+"]]");break;case"KeyValue":et_(r,e.loc.start.line,e.equals,"="),i(e.key),i(e.value);break;case"Key":case"String":case"Integer":case"Float":case"DateTime":case"Comment":etI(r,e.loc,e.raw);break;case"Boolean":etI(r,e.loc,e.value.toString());break;case"InlineArray":{let{start:t}=e.loc,s=n(e);et_(r,t.line,t.column,"["),et_(r,s.line,s.column,"]");for(let t=0;t<e.items.length;t++)i(e.items[t]);break}case"InlineTable":{let{start:t}=e.loc,s=n(e);et_(r,t.line,t.column,"{"),et_(r,s.line,s.column,"}");for(let t=0;t<e.items.length;t++)i(e.items[t]);break}case"InlineItem":if(i(e.item),e.comma){let t=e.loc.end;et_(r,t.line,t.column,",")}break;default:{let t=e.type;throw Error(`toTOML: Unrecognized node type: ${String(t)}`)}}}if(eeO(e))for(let t of e)i(t);else i(e);if(t.useTabsForIndentation){let t=new Set,n=e=>{if("String"===e.type&&e.loc.end.line>e.loc.start.line)for(let r=e.loc.start.line+1;r<=e.loc.end.line;r++)t.add(r);if(ZO(e))for(let t of e.items)n(t);ZC(e)&&n(e.value),Z_(e)&&n(e.item)};if(eeO(e))for(let t of e)n(t);else n(e);for(let e=0;e<r.length;e++){if(t.has(e+1))continue;let n=r[e],i=n.match(/^( +)/);if(i){let t=i[1],s=" ".repeat(t.length);r[e]=s+n.substring(t.length)}}}return r.join(t.newLine)+t.newLine.repeat(t.trailingNewline)}(function(e,t=eeK.default(),r=0,n=!1){var i;e=etP(e);let s=etp();for(let a of(eeQ.add(s),i=t.indentWidth,eeZ.set(s,i),etA(e,t,r,n)))ee9(s,s,a);for(let e of(eta(s),0===t.inlineTableStart||(s.items.filter(e=>{if(!ZC(e))return!1;let r=ZN(e.value),n=ZI(e.value)&&e.value.items.length>0&&e.value.items.every(e=>ZN(e.item));if(r||n){let r=etT(e.key.value);return void 0===t.inlineTableStart||r<t.inlineTableStart}return!1}).forEach(e=>{etr(s,s,e),ZN(e.value)?0===e.value.items.length?ee9(s,s,eth(e.key.value)):ee9(s,s,etb(e,t.bracketSpacing)):(function(e,t){let r=etp();for(let t of e.value.items){let n=function(e){let t=function(e){let t=etf(e);return{type:"TableArrayKey",loc:{start:Z$(),end:{line:1,column:t.length+4}},item:{type:"Key",loc:{start:{line:1,column:2},end:{line:1,column:t.length+2}},value:e,raw:t}}}(e);return{type:"TableArray",loc:ZR(t.loc),key:t,items:[]}}(e.key.value);for(let e of(ee9(r,r,n),t.item.items))ee9(r,n,e.item,void 0,void 0,void 0,void 0,!0)}for(let e of(eta(r),r.items))(ZA(e)||ZP(e))&&etv(e,1,t);return r.items})(e,t.bracketSpacing).forEach(e=>{ee9(s,s,e)})}),eta(s)),function(e,t){if(void 0===t.inlineTableStart||0===t.inlineTableStart)return;let r=[];for(let n of e.items)if(ZC(n)&&ZN(n.value)){if(etT(n.key.value)<t.inlineTableStart){let i=etb(n,t.bracketSpacing);etr(e,e,n),ee9(e,e,i),etE(i,r,t)}}else("Table"===n.type||ZP(n))&&etE(n,r,t);let n=new Map;for(let{table:t,parent:i}of r){let r=e.items.indexOf(i),s=(n.get(i)??0)+1;n.set(i,s),ee9(e,e,t,r+s)}eta(e)}(s,t),s.items))("Table"===e.type||"TableArray"===e.type||ZC(e)&&(ZI(e.value)||ZN(e.value)))&&etv(e,t.indentWidth,t.bracketSpacing);let a=0,o=0;for(let e of s.items)0===o&&e.loc.start.line>1?a=1-e.loc.start.line:e.loc.start.line+a>o+2&&(a+=o+2-(e.loc.start.line+a)),eto(e,{lines:a,columns:0}),o=e.loc.end.line;return s}(etV(qc(i,qn)),r=function(e,t){if(e){if(e instanceof eeK)return e;{let r=function(e){if(!e||"object"!=typeof e)return{};let t=e=>"boolean"==typeof e?null:`expected boolean, got ${typeof e}`,r=e=>null==e||"boolean"==typeof e||"auto"===e||"parent"===e||"number"==typeof e&&Number.isInteger(e)&&e>=0?null:`expected boolean, non-negative integer, "auto" or "parent", got ${typeof e}`,n={newLine:e=>"string"==typeof e?null:`expected string, got ${typeof e}`,trailingNewline:e=>"boolean"==typeof e||"number"==typeof e?null:`expected boolean or number, got ${typeof e}`,trailingComma:t,bracketSpacing:t,leadingBom:t,inlineTableStart:e=>null==e||"number"==typeof e&&Number.isInteger(e)&&e>=0?null:`expected non-negative integer or undefined, got ${typeof e}`,truncateZeroTimeInDates:t,useTabsForIndentation:t,indentWidth:e=>null==e||"number"==typeof e&&Number.isInteger(e)&&e>0?null:`expected positive integer or undefined, got ${typeof e}`,minimumDecimals:e=>null==e||"number"==typeof e&&Number.isInteger(e)&&e>=0?null:`expected non-negative integer or undefined, got ${typeof e}`,updateOrder:t,multilineTable:r,multilineArray:r},i={},s=[],a=[];for(let t in e){let r=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0;if(r){let n=e[t],s=r(n);s?a.push(`${t} (${s})`):i[t]=n}else Object.prototype.hasOwnProperty.call(e,t)&&s.push(t)}if(s.length>0&&console.warn(`toml-patch: Ignoring unsupported format properties: ${s.join(", ")}. Supported properties are: ${Object.keys(n).join(", ")}`),a.length>0)throw TypeError(`Invalid types for format properties: ${a.join(", ")}`);return"newLine"in i&&(i.newLine=eeq(i.newLine)),i}(e);return new eeK(r.newLine??t.newLine,r.trailingNewline??t.trailingNewline,r.trailingComma??t.trailingComma,r.bracketSpacing??t.bracketSpacing,"inlineTableStart"in r?r.inlineTableStart:t.inlineTableStart,r.truncateZeroTimeInDates??t.truncateZeroTimeInDates,r.useTabsForIndentation??t.useTabsForIndentation,r.minimumDecimals??t.minimumDecimals,r.leadingBom??t.leadingBom,r.updateOrder??t.updateOrder,r.indentWidth??t.indentWidth,r.multilineTable??t.multilineTable,r.multilineArray??t.multilineArray)}}return t}({bracketSpacing:!1},eeK.default())).items,r),r.leadingBom?`\uFEFF${n}`:n};function etW(e){if(e)throw e}var etX=r(2849);function etH(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function etG(e,t){let r;return function(...t){let s,a=e.length>t.length;a&&t.push(n);try{s=e.apply(this,t)}catch(e){if(a&&r)throw e;return n(e)}a||(s&&s.then&&"function"==typeof s.then?s.then(i,n):s instanceof Error?n(s):i(s))};function n(e,...i){r||(r=!0,t(e,...i))}function i(e){n(null,e)}}function etY(e){return e&&"object"==typeof e?"position"in e||"type"in e?etZ(e.position):"start"in e||"end"in e?etZ(e):"line"in e||"column"in e?etQ(e):"":""}function etQ(e){return et0(e&&e.line)+":"+et0(e&&e.column)}function etZ(e){return etQ(e&&e.start)+"-"+etQ(e&&e.end)}function et0(e){return e&&"number"==typeof e?e:1}class et1 extends Error{constructor(e,t,r){super(),"string"==typeof t&&(r=t,t=void 0);let n="",i={},s=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?n=e:!i.cause&&e&&(s=!0,n=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof r){let e=r.indexOf(":");-1===e?i.ruleId=r:(i.source=r.slice(0,e),i.ruleId=r.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=a?a.line:void 0,this.name=etY(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}et1.prototype.file="",et1.prototype.name="",et1.prototype.reason="",et1.prototype.message="",et1.prototype.stack="",et1.prototype.column=void 0,et1.prototype.line=void 0,et1.prototype.ancestors=void 0,et1.prototype.cause=void 0,et1.prototype.fatal=void 0,et1.prototype.place=void 0,et1.prototype.ruleId=void 0,et1.prototype.source=void 0;let et2=function(e,t){let r;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');et6(e);let n=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(r){n=s+1;break}}else i<0&&(r=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(r){n=s+1;break}}else a<0&&(r=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(i=s):(o=-1,i=a));return n===i?i=a:i<0&&(i=e.length),e.slice(n,i)},et3=function(e){let t;if(et6(e),0===e.length)return".";let r=-1,n=e.length;for(;--n;)if(47===e.codePointAt(n)){if(t){r=n;break}}else t||(t=!0);return r<0?47===e.codePointAt(0)?"/":".":1===r&&47===e.codePointAt(0)?"//":e.slice(0,r)},et4=function(e){let t;et6(e);let r=e.length,n=-1,i=0,s=-1,a=0;for(;r--;){let o=e.codePointAt(r);if(47===o){if(t){i=r+1;break}continue}n<0&&(t=!0,n=r+1),46===o?s<0?s=r:1!==a&&(a=1):s>-1&&(a=-1)}return s<0||n<0||0===a||1===a&&s===n-1&&s===i+1?"":e.slice(s,n)},et5=function(...e){var t;let r,n,i,s=-1;for(;++s<e.length;)et6(e[s]),e[s]&&(i=void 0===i?e[s]:i+"/"+e[s]);return void 0===i?".":(et6(t=i),r=47===t.codePointAt(0),0!==(n=function(e,t){let r,n,i="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)r=e.codePointAt(l);else if(47===r)break;else r=47;if(47===r){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(i.length<2||2!==s||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((n=i.lastIndexOf("/"))!==i.length-1){n<0?(i="",s=0):s=(i=i.slice(0,n)).length-1-i.lastIndexOf("/"),a=l,o=0;continue}}else if(i.length>0){i="",s=0,a=l,o=0;continue}}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===r&&o>-1?o++:o=-1}return i}(t,!r)).length||r||(n="."),n.length>0&&47===t.codePointAt(t.length-1)&&(n+="/"),r?"/"+n:n)};function et6(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function et8(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let et9=["history","path","basename","stem","extname","dirname"];class et7{constructor(e){var t;let r,n;r=e?et8(e)?{path:e}:"string"==typeof e||(t=e)&&"object"==typeof t&&"byteLength"in t&&"byteOffset"in t?{value:e}:e:{},this.cwd="cwd"in r?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<et9.length;){let e=et9[i];e in r&&void 0!==r[e]&&null!==r[e]&&(this[e]="history"===e?[...r[e]]:r[e])}for(n in r)et9.includes(n)||(this[n]=r[n])}get basename(){return"string"==typeof this.path?et2(this.path):void 0}set basename(e){ert(e,"basename"),ere(e,"basename"),this.path=et5(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?et3(this.path):void 0}set dirname(e){err(this.basename,"dirname"),this.path=et5(e||"",this.basename)}get extname(){return"string"==typeof this.path?et4(this.path):void 0}set extname(e){if(ere(e,"extname"),err(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=et5(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){et8(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!et8(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,r=-1;for(;++r<t.length;)if(37===t.codePointAt(r)&&50===t.codePointAt(r+1)){let e=t.codePointAt(r+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),ert(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?et2(this.path,this.extname):void 0}set stem(e){ert(e,"stem"),ere(e,"stem"),this.path=et5(this.dirname||"",e+(this.extname||""))}fail(e,t,r){let n=this.message(e,t,r);throw n.fatal=!0,n}info(e,t,r){let n=this.message(e,t,r);return n.fatal=void 0,n}message(e,t,r){let n=new et1(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ere(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function ert(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function err(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let ern=function(e){let t=this.constructor.prototype,r=t[e],n=function(){return r.apply(n,arguments)};return Object.setPrototypeOf(n,t),n},eri={}.hasOwnProperty,ers=new class e extends ern{constructor(){let e,t;super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=(e=[],t={run:function(...t){let r=-1,n=t.pop();if("function"!=typeof n)throw TypeError("Expected function as last argument, not "+n);!function i(s,...a){let o=e[++r],l=-1;if(s)return void n(s);for(;++l<t.length;)(null===a[l]||void 0===a[l])&&(a[l]=t[l]);t=a,o?etG(o,i)(...a):n(null,...a)}(null,...t)},use:function(r){if("function"!=typeof r)throw TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}})}copy(){let t=new e,r=-1;for(;++r<this.attachers.length;){let e=this.attachers[r];t.use(...e)}return t.data(etX(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(erl("data",this.frozen),this.namespace[e]=t,this):eri.call(this.namespace,e)&&this.namespace[e]||void 0:e?(erl("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let r=e.call(this,...t);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=erp(e),r=this.parser||this.Parser;return era("parse",r),r(String(t),t)}process(e,t){let r=this;return this.freeze(),era("process",this.parser||this.Parser),ero("process",this.compiler||this.Compiler),t?n(void 0,t):new Promise(n);function n(n,i){let s=erp(e),a=r.parse(s);function o(e,r){e||!r?i(e):n?n(r):t(void 0,r)}r.run(a,s,function(e,t,n){var i,s;if(e||!t||!n)return o(e);let a=r.stringify(t,n);"string"==typeof(i=a)||(s=i)&&"object"==typeof s&&"byteLength"in s&&"byteOffset"in s?n.value=a:n.result=a,o(e,n)})}}processSync(e){let t,r=!1;return this.freeze(),era("processSync",this.parser||this.Parser),ero("processSync",this.compiler||this.Compiler),this.process(e,function(e,n){r=!0,etW(e),t=n}),erc("processSync","process",r),t}run(e,t,r){eru(e),this.freeze();let n=this.transformers;return r||"function"!=typeof t||(r=t,t=void 0),r?i(void 0,r):new Promise(i);function i(i,s){let a=erp(t);n.run(e,a,function(t,n,a){let o=n||e;t?s(t):i?i(o):r(void 0,o,a)})}}runSync(e,t){let r,n=!1;return this.run(e,t,function(e,t){etW(e),r=t,n=!0}),erc("runSync","run",n),r}stringify(e,t){this.freeze();let r=erp(t),n=this.compiler||this.Compiler;return ero("stringify",n),eru(e),n(e,r)}use(e,...t){let r=this.attachers,n=this.namespace;if(erl("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else if("object"==typeof e)Array.isArray(e)?s(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(n.settings=etX(!0,n.settings,e.settings))}function s(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)a(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...r]=e;a(t,r)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function a(e,t){let n=-1,i=-1;for(;++n<r.length;)if(r[n][0]===e){i=n;break}if(-1===i)r.push([e,...t]);else if(t.length>0){let[n,...s]=t,a=r[i][1];etH(a)&&etH(n)&&(n=etX(!0,a,n)),r[i]=[e,n,...s]}}}}().freeze();function era(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function ero(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function erl(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function eru(e){if(!etH(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function erc(e,t,r){if(!r)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function erp(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new et7(e)}let erh={};function erd(e,t){let r=t||erh;return erf(e,"boolean"!=typeof r.includeImageAlt||r.includeImageAlt,"boolean"!=typeof r.includeHtml||r.includeHtml)}function erf(e,t,r){var n;if((n=e)&&"object"==typeof n){if("value"in e)return"html"!==e.type||r?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return erm(e.children,t,r)}return Array.isArray(e)?erm(e,t,r):""}function erm(e,t,r){let n=[],i=-1;for(;++i<e.length;)n[i]=erf(e[i],t,r);return n.join("")}function ery(e,t,r,n){let i,s=e.length,a=0;if(t=t<0?-t>s?0:s+t:t>s?s:t,r=r>0?r:0,n.length<1e4)(i=Array.from(n)).unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a<n.length;)(i=n.slice(a,a+1e4)).unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function erg(e,t){return e.length>0?(ery(e,e.length,0,t),e):t}class erb{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let r=null==t?1/0:t;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){this.setCursor(Math.trunc(e));let n=this.right.splice(this.right.length-(t||0),1/0);return r&&erx(this.left,r),n.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),erx(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),erx(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);erx(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);erx(this.left,t.reverse())}}}function erx(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function erS(e){let t,r,n,i,s,a,o,l={},u=-1,c=new erb(e);for(;++u<c.length;){for(;u in l;)u=l[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((n=0)<(a=t[1]._tokenizer.events).length&&"lineEndingBlank"===a[n][1].type&&(n+=2),n<a.length&&"content"===a[n][1].type))for(;++n<a.length&&"content"!==a[n][1].type;)"chunkText"===a[n][1].type&&(a[n][1]._isInFirstContentOfListItem=!0,n++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let r,n,i=e.get(t)[1],s=e.get(t)[2],a=t-1,o=[],l=i._tokenizer;!l&&(l=s.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let u=l.events,c=[],p={},h=-1,d=i,f=0,m=0,y=[0];for(;d;){for(;e.get(++a)[1]!==d;);o.push(a),!d._tokenizer&&(r=s.sliceStream(d),d.next||r.push(null),n&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(r),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),n=d,d=d.next}for(d=i;++h<u.length;)"exit"===u[h][0]&&"enter"===u[h-1][0]&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(m=h+1,y.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),h=y.length;h--;){let t=u.slice(y[h],y[h+1]),r=o.pop();c.push([r,r+t.length-1]),e.splice(r,2,t)}for(c.reverse(),h=-1;++h<c.length;)p[f+c[h][0]]=f+c[h][1],f+=c[h][1]-c[h][0]-1;return p}(c,u)),u=l[u],o=!0);else if(t[1]._container){for(n=u,r=void 0;n--;)if("lineEnding"===(i=c.get(n))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=n);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;r&&(t[1].end={...c.get(r)[1].start},(s=c.slice(r,u)).unshift(t),c.splice(r,u-r+1,s))}}return ery(e,0,1/0,c.slice(0)),!o}let erv={}.hasOwnProperty;function erT(e){let t={},r=-1;for(;++r<e.length;)!function(e,t){let r;for(r in t){let n,i=(erv.call(e,r)?e[r]:void 0)||(e[r]={}),s=t[r];if(s)for(n in s){erv.call(i,n)||(i[n]=[]);let e=s[n];!function(e,t){let r=-1,n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);ery(e,0,0,n)}(i[n],Array.isArray(e)?e:e?[e]:[])}}}(t,e[r]);return t}let erE=erM(/[A-Za-z]/),erk=erM(/[\dA-Za-z]/),erw=erM(/[#-'*+\--9=?A-Z^-~]/);function erA(e){return null!==e&&(e<32||127===e)}let erP=erM(/\d/),erC=erM(/[\dA-Fa-f]/),erI=erM(/[!-/:-@[-`{-~]/);function er_(e){return null!==e&&e<-2}function erN(e){return null!==e&&(e<0||32===e)}function erL(e){return -2===e||-1===e||32===e}let erO=erM(/\p{P}|\p{S}/u),erD=erM(/\s/);function erM(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function erF(e,t,r,n){let i=n?n-1:1/0,s=0;return function(n){return erL(n)?(e.enter(r),function n(a){return erL(a)&&s++<i?(e.consume(a),n):(e.exit(r),t(a))}(n)):t(n)}}let erj={tokenize:function(e){let t,r=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),erF(e,r,"linePrefix"))},function(r){return e.enter("paragraph"),function r(n){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(n){if(null===n){e.exit("chunkText"),e.exit("paragraph"),e.consume(n);return}return er_(n)?(e.consume(n),e.exit("chunkText"),r):(e.consume(n),t)}(n)}(r)});return r}},erB={tokenize:function(e){let t,r,n,i=this,s=[],a=0;return o;function o(t){if(a<s.length){let r=s[a];return i.containerState=r[1],e.attempt(r[0].continuation,l,u)(t)}return u(t)}function l(e){if(a++,i.containerState._closeFlow){let r;i.containerState._closeFlow=void 0,t&&g();let n=i.events.length,s=n;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){r=i.events[s][1].end;break}y(a);let o=n;for(;o<i.events.length;)i.events[o][1].end={...r},o++;return ery(i.events,s+1,0,i.events.slice(n)),i.events.length=o,u(e)}return o(e)}function u(r){if(a===s.length){if(!t)return h(r);if(t.currentConstruct&&t.currentConstruct.concrete)return f(r);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(erR,c,p)(r)}function c(e){return t&&g(),y(a),h(e)}function p(e){return i.parser.lazy[i.now().line]=a!==s.length,n=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(erR,d,f)(t)}function d(e){return a++,s.push([i.currentConstruct,i.containerState]),h(e)}function f(n){if(null===n){t&&g(),y(0),e.consume(n);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:r}),function t(r){if(null===r){m(e.exit("chunkFlow"),!0),y(0),e.consume(r);return}return er_(r)?(e.consume(r),m(e.exit("chunkFlow")),a=0,i.interrupt=void 0,o):(e.consume(r),t)}(n)}function m(e,s){let o=i.sliceStream(e);if(s&&o.push(null),e.previous=r,r&&(r.next=e),r=e,t.defineSkip(e.start),t.write(o),i.parser.lazy[e.start.line]){let e,r,s=t.events.length;for(;s--;)if(t.events[s][1].start.offset<n&&(!t.events[s][1].end||t.events[s][1].end.offset>n))return;let o=i.events.length,l=o;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){r=i.events[l][1].end;break}e=!0}for(y(a),s=o;s<i.events.length;)i.events[s][1].end={...r},s++;ery(i.events,l+1,0,i.events.slice(o)),i.events.length=s}}function y(t){let r=s.length;for(;r-- >t;){let t=s[r];i.containerState=t[1],t[0].exit.call(i,e)}s.length=t}function g(){t.write([null]),r=void 0,t=void 0,i.containerState._closeFlow=void 0}}},erR={tokenize:function(e,t,r){return erF(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},er$={partial:!0,tokenize:function(e,t,r){return function(t){return erL(t)?erF(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||er_(e)?t(e):r(e)}}},erU={resolve:function(e){return erS(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?i(t):er_(t)?e.check(erV,s,i)(t):(e.consume(t),n)}function i(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function s(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}},erV={partial:!0,tokenize:function(e,t,r){let n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),erF(e,i,"linePrefix")};function i(i){if(null===i||er_(i))return r(i);let s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,r,t)(i)}}},erq={tokenize:function(e){let t=this,r=e.attempt(er$,function(n){return null===n?void e.consume(n):(e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r)},e.attempt(this.parser.constructs.flowInitial,n,erF(e,e.attempt(this.parser.constructs.flow,n,e.attempt(erU,n)),"linePrefix")));return r;function n(n){return null===n?void e.consume(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r)}}},erK={resolveAll:erX()},erJ=erW("string"),erz=erW("text");function erW(e){return{resolveAll:erX("text"===e?erH:void 0),tokenize:function(t){let r=this,n=this.parser.constructs[e],i=t.attempt(n,s,a);return s;function s(e){return l(e)?i(e):a(e)}function a(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),o)}function o(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;let t=n[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}}}}function erX(e){return function(t,r){let n,i=-1;for(;++i<=t.length;)void 0===n?t[i]&&"data"===t[i][1].type&&(n=i,i++):t[i]&&"data"===t[i][1].type||(i!==n+2&&(t[n][1].end=t[i-1][1].end,t.splice(n+2,i-n-2),i=n+2),n=void 0);return e?e(t,r):t}}function erH(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){let n,i=e[r-1][1],s=t.sliceStream(i),a=s.length,o=-1,l=0;for(;a--;){let e=s[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)n=!0,l++;else if(-1===e);else{a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){let s={type:r===e.length||n||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?o:i.start._bufferIndex+o,_index:i.start._index+a,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...s.start},i.start.offset===i.end.offset?Object.assign(i,s):(e.splice(r,0,["enter",s,t],["exit",s,t]),r+=2)}r++}return e}let erG={name:"thematicBreak",tokenize:function(e,t,r){let n,i=0;return function(s){var a;return e.enter("thematicBreak"),n=a=s,function s(a){return a===n?(e.enter("thematicBreakSequence"),function t(r){return r===n?(e.consume(r),i++,t):(e.exit("thematicBreakSequence"),erL(r)?erF(e,s,"whitespace")(r):s(r))}(a)):i>=3&&(null===a||er_(a))?(e.exit("thematicBreak"),t(a)):r(a)}(a)}}},erY={continuation:{tokenize:function(e,t,r){let n=this;return n.containerState._closeFlow=void 0,e.check(er$,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,erF(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){return n.containerState.furtherBlankLines||!erL(r)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(r)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(erZ,t,i)(r))});function i(i){return n.containerState._closeFlow=!0,n.interrupt=void 0,erF(e,e.attempt(erY,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){let n=this,i=n.events[n.events.length-1],s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!n.containerState.marker||t===n.containerState.marker:erP(t)){if(n.containerState.type||(n.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(erG,r,o)(t):o(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return erP(i)&&++a<10?(e.consume(i),t):(!n.interrupt||a<2)&&(n.containerState.marker?i===n.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),o(i)):r(i)}(t)}return r(t)};function o(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(er$,n.interrupt?r:l,e.attempt(erQ,c,u))}function l(e){return n.containerState.initialBlankLine=!0,s++,c(e)}function u(t){return erL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):r(t)}function c(r){return n.containerState.size=s+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},erQ={partial:!0,tokenize:function(e,t,r){let n=this;return erF(e,function(e){let i=n.events[n.events.length-1];return!erL(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},erZ={partial:!0,tokenize:function(e,t,r){let n=this;return erF(e,function(e){let i=n.events[n.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)}},er0={continuation:{tokenize:function(e,t,r){let n=this;return function(t){return erL(t)?erF(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(n){return e.attempt(er0,t,r)(n)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){let n=this;return function(t){if(62===t){let r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return r(t)};function i(r){return erL(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}};function er1(e,t,r,n,i,s,a,o,l){let u=l||1/0,c=0;return function(t){return 60===t?(e.enter(n),e.enter(i),e.enter(s),e.consume(t),e.exit(s),p):null===t||32===t||41===t||erA(t)?r(t):(e.enter(n),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),f(t))};function p(r){return 62===r?(e.enter(s),e.consume(r),e.exit(s),e.exit(i),e.exit(n),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(r))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(o),p(t)):null===t||60===t||er_(t)?r(t):(e.consume(t),92===t?d:h)}function d(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!c&&(null===i||41===i||erN(i))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(n),t(i)):c<u&&40===i?(e.consume(i),c++,f):41===i?(e.consume(i),c--,f):null===i||32===i||40===i||erA(i)?r(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function er2(e,t,r,n,i,s){let a,o=this,l=0;return function(t){return e.enter(n),e.enter(i),e.consume(t),e.exit(i),e.enter(s),u};function u(p){return l>999||null===p||91===p||93===p&&!a||94===p&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(p):93===p?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):er_(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||er_(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!erL(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function er3(e,t,r,n,i,s){let a;return function(t){return 34===t||39===t||40===t?(e.enter(n),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,o):r(t)};function o(r){return r===a?(e.enter(i),e.consume(r),e.exit(i),e.exit(n),t):(e.enter(s),l(r))}function l(t){return t===a?(e.exit(s),o(a)):null===t?r(t):er_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),erF(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||er_(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function er4(e,t){let r;return function n(i){return er_(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):erL(i)?erF(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}function er5(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let er6={partial:!0,tokenize:function(e,t,r){return function(t){return erN(t)?er4(e,n)(t):r(t)};function n(t){return er3(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return erL(t)?erF(e,s,"whitespace")(t):s(t)}function s(e){return null===e||er_(e)?t(e):r(e)}}},er8={name:"codeIndented",tokenize:function(e,t,r){let n=this;return function(t){return e.enter("codeIndented"),erF(e,i,"linePrefix",5)(t)};function i(t){let i=n.events[n.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(r){return null===r?s(r):er_(r)?e.attempt(er9,t,s)(r):(e.enter("codeFlowValue"),function r(n){return null===n||er_(n)?(e.exit("codeFlowValue"),t(n)):(e.consume(n),r)}(r))}(t):r(t)}function s(r){return e.exit("codeIndented"),t(r)}}},er9={partial:!0,tokenize:function(e,t,r){let n=this;return i;function i(t){return n.parser.lazy[n.now().line]?r(t):er_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):erF(e,s,"linePrefix",5)(t)}function s(e){let s=n.events[n.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):er_(e)?i(e):r(e)}}},er7={name:"setextUnderline",resolveTo:function(e,t){let r,n,i,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){r=s;break}"paragraph"===e[s][1].type&&(n=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);let a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",i?(e.splice(n,0,["enter",a,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=a,e.push(["exit",a,t]),e},tokenize:function(e,t,r){let n,i=this;return function(t){var a;let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),n=t,a=t,e.enter("setextHeadingLineSequence"),function t(r){return r===n?(e.consume(r),t):(e.exit("setextHeadingLineSequence"),erL(r)?erF(e,s,"lineSuffix")(r):s(r))}(a)):r(t)};function s(n){return null===n||er_(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}},ene=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ent=["pre","script","style","textarea"],enr={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(er$,t,r)}}},enn={partial:!0,tokenize:function(e,t,r){let n=this;return function(t){return er_(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):r(t)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},eni={partial:!0,tokenize:function(e,t,r){let n=this;return function(t){return null===t?r(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},ens={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){let n,i=this,s={partial:!0,tokenize:function(e,t,r){let s=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),erL(t)?erF(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===n?(e.enter("codeFencedFenceSequence"),function t(i){return i===n?(s++,e.consume(i),t):s>=o?(e.exit("codeFencedFenceSequence"),erL(i)?erF(e,u,"whitespace")(i):u(i)):r(i)}(t)):r(t)}function u(n){return null===n||er_(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}},a=0,o=0;return function(t){var s;let u;return s=t,a=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,n=s,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===n?(o++,e.consume(i),t):o<3?r(i):(e.exit("codeFencedFenceSequence"),erL(i)?erF(e,l,"whitespace")(i):l(i))}(s)};function l(s){return null===s||er_(s)?(e.exit("codeFencedFence"),i.interrupt?t(s):e.check(eni,c,f)(s)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||er_(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):erL(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),erF(e,u,"whitespace")(i)):96===i&&i===n?r(i):(e.consume(i),t)}(s))}function u(t){return null===t||er_(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||er_(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===n?r(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(s,f,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return a>0&&erL(t)?erF(e,d,"linePrefix",a+1)(t):d(t)}function d(t){return null===t||er_(t)?e.check(eni,c,f)(t):(e.enter("codeFlowValue"),function t(r){return null===r||er_(r)?(e.exit("codeFlowValue"),d(r)):(e.consume(r),t)}(t))}function f(r){return e.exit("codeFenced"),t(r)}}},ena=document.createElement("i");function eno(e){let t="&"+e+";";ena.innerHTML=t;let r=ena.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}let enl={name:"characterReference",tokenize:function(e,t,r){let n,i,s=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),n=31,i=erk,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),n=6,i=erC,u):(e.enter("characterReferenceValue"),n=7,i=erP,u(t))}function u(o){if(59===o&&a){let n=e.exit("characterReferenceValue");return i!==erk||eno(s.sliceSerialize(n))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(o)}return i(o)&&a++<n?(e.consume(o),u):r(o)}}},enu={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return erI(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}},enc={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),erF(e,t,"linePrefix")}}};function enp(e,t,r){let n=[],i=-1;for(;++i<e.length;){let s=e[i].resolveAll;s&&!n.includes(s)&&(t=s(t,r),n.push(s))}return t}let enh={name:"labelEnd",resolveAll:function(e){let t=-1,r=[];for(;++t<e.length;){let n=e[t][1];if(r.push(e[t]),"labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type){let e="labelImage"===n.type?4:2;n.type="data",t+=e}}return e.length!==r.length&&ery(e,0,e.length,r),e},resolveTo:function(e,t){let r,n,i,s,a=e.length,o=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){o=2;break}}else"labelEnd"===r.type&&(i=a);let l={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[n][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[n+o+2][1].end},end:{...e[i-2][1].start}};return s=erg(s=[["enter",l,t],["enter",u,t]],e.slice(n+1,n+o+3)),s=erg(s,[["enter",c,t]]),s=erg(s,enp(t.parser.constructs.insideSpan.null,e.slice(n+o+4,i-3),t)),s=erg(s,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),s=erg(s,e.slice(i+1)),s=erg(s,[["exit",l,t]]),ery(e,n,e.length,s),e},tokenize:function(e,t,r){let n,i,s=this,a=s.events.length;for(;a--;)if(("labelImage"===s.events[a][1].type||"labelLink"===s.events[a][1].type)&&!s.events[a][1]._balanced){n=s.events[a][1];break}return function(t){return n?n._inactive?c(t):(i=s.parser.defined.includes(er5(s.sliceSerialize({start:n.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):r(t)};function o(t){return 40===t?e.attempt(end,u,i?u:c)(t):91===t?e.attempt(enf,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(enm,u,c)(t)}function u(e){return t(e)}function c(e){return n._balanced=!0,r(e)}}},end={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return erN(t)?er4(e,i)(t):i(t)}function i(t){return 41===t?u(t):er1(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return erN(t)?er4(e,o)(t):u(t)}function a(e){return r(e)}function o(t){return 34===t||39===t||40===t?er3(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return erN(t)?er4(e,u)(t):u(t)}function u(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},enf={tokenize:function(e,t,r){let n=this;return function(t){return er2.call(n,e,i,s,"reference","referenceMarker","referenceString")(t)};function i(e){return n.parser.defined.includes(er5(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function s(e){return r(e)}}},enm={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}},eny={name:"labelStartImage",resolveAll:enh.resolveAll,tokenize:function(e,t,r){let n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):r(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}};function eng(e){return null===e||erN(e)||erD(e)?1:erO(e)?2:void 0}let enb={name:"attention",resolveAll:function(e,t){let r,n,i,s,a,o,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(r=c;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[r][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let p={...e[r][1].end},h={...e[c][1].start};enx(p,-o),enx(h,o),s={type:o>1?"strongSequence":"emphasisSequence",start:p,end:{...e[r][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:h},i={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[c][1].start}},n={type:o>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[c][1].start={...a.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=erg(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=erg(l,[["enter",n,t],["enter",s,t],["exit",s,t],["enter",i,t]]),l=erg(l,enp(t.parser.constructs.insideSpan.null,e.slice(r+1,c),t)),l=erg(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=erg(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,ery(e,r-1,c-r+3,l),c=r+l.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let r,n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=eng(i);return function(a){return r=a,e.enter("attentionSequence"),function a(o){if(o===r)return e.consume(o),a;let l=e.exit("attentionSequence"),u=eng(o),c=!u||2===u&&s||n.includes(o),p=!s||2===s&&u||n.includes(i);return l._open=!!(42===r?c:c&&(s||!p)),l._close=!!(42===r?p:p&&(u||!c)),t(o)}(a)}}};function enx(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let enS={name:"labelStartLink",resolveAll:enh.resolveAll,tokenize:function(e,t,r){let n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}},env={42:erY,43:erY,45:erY,48:erY,49:erY,50:erY,51:erY,52:erY,53:erY,54:erY,55:erY,56:erY,57:erY,62:er0},enT={91:{name:"definition",tokenize:function(e,t,r){let n,i=this;return function(t){var n;return e.enter("definition"),n=t,er2.call(i,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(n)};function s(t){return(n=er5(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):r(t)}function a(t){return erN(t)?er4(e,o)(t):o(t)}function o(t){return er1(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(er6,u,u)(t)}function u(t){return erL(t)?erF(e,c,"whitespace")(t):c(t)}function c(s){return null===s||er_(s)?(e.exit("definition"),i.parser.defined.push(n),t(s)):r(s)}}}},enE={[-2]:er8,[-1]:er8,32:er8},enk={35:{name:"headingAtx",resolve:function(e,t){let r,n,i=e.length-2,s=3;return"whitespace"===e[3][1].type&&(s+=2),i-2>s&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4),i>s&&(r={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},n={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},ery(e,s,i-s+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]])),e},tokenize:function(e,t,r){let n=0;return function(i){var s;return e.enter("atxHeading"),s=i,e.enter("atxHeadingSequence"),function i(s){return 35===s&&n++<6?(e.consume(s),i):null===s||erN(s)?(e.exit("atxHeadingSequence"),function r(n){return 35===n?(e.enter("atxHeadingSequence"),function t(n){return 35===n?(e.consume(n),t):(e.exit("atxHeadingSequence"),r(n))}(n)):null===n||er_(n)?(e.exit("atxHeading"),t(n)):erL(n)?erF(e,r,"whitespace")(n):(e.enter("atxHeadingText"),function t(n){return null===n||35===n||erN(n)?(e.exit("atxHeadingText"),r(n)):(e.consume(n),t)}(n))}(s)):r(s)}(s)}}},42:erG,45:[er7,erG],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,r){let n,i,s,a,o,l=this;return function(t){var r;return r=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(r),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,d):63===a?(e.consume(a),n=3,l.interrupt?t:L):erE(a)?(e.consume(a),s=String.fromCharCode(a),f):r(a)}function c(i){return 45===i?(e.consume(i),n=2,p):91===i?(e.consume(i),n=5,a=0,h):erE(i)?(e.consume(i),n=4,l.interrupt?t:L):r(i)}function p(n){return 45===n?(e.consume(n),l.interrupt?t:L):r(n)}function h(n){let i="CDATA[";return n===i.charCodeAt(a++)?(e.consume(n),a===i.length)?l.interrupt?t:k:h:r(n)}function d(t){return erE(t)?(e.consume(t),s=String.fromCharCode(t),f):r(t)}function f(a){if(null===a||47===a||62===a||erN(a)){let o=47===a,u=s.toLowerCase();return!o&&!i&&ent.includes(u)?(n=1,l.interrupt?t(a):k(a)):ene.includes(s.toLowerCase())?(n=6,o)?(e.consume(a),m):l.interrupt?t(a):k(a):(n=7,l.interrupt&&!l.parser.lazy[l.now().line]?r(a):i?function t(r){return erL(r)?(e.consume(r),t):T(r)}(a):y(a))}return 45===a||erk(a)?(e.consume(a),s+=String.fromCharCode(a),f):r(a)}function m(n){return 62===n?(e.consume(n),l.interrupt?t:k):r(n)}function y(t){return 47===t?(e.consume(t),T):58===t||95===t||erE(t)?(e.consume(t),g):erL(t)?(e.consume(t),y):T(t)}function g(t){return 45===t||46===t||58===t||95===t||erk(t)?(e.consume(t),g):b(t)}function b(t){return 61===t?(e.consume(t),x):erL(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),o=t,S):erL(t)?(e.consume(t),x):function t(r){return null===r||34===r||39===r||47===r||60===r||61===r||62===r||96===r||erN(r)?b(r):(e.consume(r),t)}(t)}function S(t){return t===o?(e.consume(t),o=null,v):null===t||er_(t)?r(t):(e.consume(t),S)}function v(e){return 47===e||62===e||erL(e)?y(e):r(e)}function T(t){return 62===t?(e.consume(t),E):r(t)}function E(t){return null===t||er_(t)?k(t):erL(t)?(e.consume(t),E):r(t)}function k(t){return 45===t&&2===n?(e.consume(t),C):60===t&&1===n?(e.consume(t),I):62===t&&4===n?(e.consume(t),O):63===t&&3===n?(e.consume(t),L):93===t&&5===n?(e.consume(t),N):er_(t)&&(6===n||7===n)?(e.exit("htmlFlowData"),e.check(enr,D,w)(t)):null===t||er_(t)?(e.exit("htmlFlowData"),w(t)):(e.consume(t),k)}function w(t){return e.check(enn,A,D)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||er_(t)?w(t):(e.enter("htmlFlowData"),k(t))}function C(t){return 45===t?(e.consume(t),L):k(t)}function I(t){return 47===t?(e.consume(t),s="",_):k(t)}function _(t){if(62===t){let r=s.toLowerCase();return ent.includes(r)?(e.consume(t),O):k(t)}return erE(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),_):k(t)}function N(t){return 93===t?(e.consume(t),L):k(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===n?(e.consume(t),L):k(t)}function O(t){return null===t||er_(t)?(e.exit("htmlFlowData"),D(t)):(e.consume(t),O)}function D(r){return e.exit("htmlFlow"),t(r)}}},61:er7,95:erG,96:ens,126:ens},enw={38:enl,92:enu},enA={[-5]:enc,[-4]:enc,[-3]:enc,33:eny,38:enl,42:enb,60:[{name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return erE(t)?(e.consume(t),s):64===t?r(t):o(t)}function s(t){return 43===t||45===t||46===t||erk(t)?(n=1,function t(r){return 58===r?(e.consume(r),n=0,a):(43===r||45===r||46===r||erk(r))&&n++<32?(e.consume(r),t):(n=0,o(r))}(t)):o(t)}function a(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||erA(n)?r(n):(e.consume(n),a)}function o(t){return 64===t?(e.consume(t),l):erw(t)?(e.consume(t),o):r(t)}function l(i){return erk(i)?function i(s){return 46===s?(e.consume(s),n=0,l):62===s?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(s),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(s){if((45===s||erk(s))&&n++<63){let r=45===s?t:i;return e.consume(s),r}return r(s)}(s)}(i):r(i)}}},{name:"htmlText",tokenize:function(e,t,r){let n,i,s,a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),S):63===t?(e.consume(t),b):erE(t)?(e.consume(t),T):r(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,d):erE(t)?(e.consume(t),g):r(t)}function u(t){return 45===t?(e.consume(t),h):r(t)}function c(t){return null===t?r(t):45===t?(e.consume(t),p):er_(t)?(s=c,_(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),h):c(t)}function h(e){return 62===e?I(e):45===e?p(e):c(e)}function d(t){let n="CDATA[";return t===n.charCodeAt(i++)?(e.consume(t),i===n.length?f:d):r(t)}function f(t){return null===t?r(t):93===t?(e.consume(t),m):er_(t)?(s=f,_(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),y):f(t)}function y(t){return 62===t?I(t):93===t?(e.consume(t),y):f(t)}function g(t){return null===t||62===t?I(t):er_(t)?(s=g,_(t)):(e.consume(t),g)}function b(t){return null===t?r(t):63===t?(e.consume(t),x):er_(t)?(s=b,_(t)):(e.consume(t),b)}function x(e){return 62===e?I(e):b(e)}function S(t){return erE(t)?(e.consume(t),v):r(t)}function v(t){return 45===t||erk(t)?(e.consume(t),v):function t(r){return er_(r)?(s=t,_(r)):erL(r)?(e.consume(r),t):I(r)}(t)}function T(t){return 45===t||erk(t)?(e.consume(t),T):47===t||62===t||erN(t)?E(t):r(t)}function E(t){return 47===t?(e.consume(t),I):58===t||95===t||erE(t)?(e.consume(t),k):er_(t)?(s=E,_(t)):erL(t)?(e.consume(t),E):I(t)}function k(t){return 45===t||46===t||58===t||95===t||erk(t)?(e.consume(t),k):function t(r){return 61===r?(e.consume(r),w):er_(r)?(s=t,_(r)):erL(r)?(e.consume(r),t):E(r)}(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),n=t,A):er_(t)?(s=w,_(t)):erL(t)?(e.consume(t),w):(e.consume(t),P)}function A(t){return t===n?(e.consume(t),n=void 0,C):null===t?r(t):er_(t)?(s=A,_(t)):(e.consume(t),A)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||erN(t)?E(t):(e.consume(t),P)}function C(e){return 47===e||62===e||erN(e)?E(e):r(e)}function I(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function _(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),N}function N(t){return erL(t)?erF(e,L,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),s(t)}}}],91:enS,92:[{name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return er_(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}},enu],93:enh,95:enb,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,r,n=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[n][1].type||"space"===e[n][1].type)){for(t=i;++t<n;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[n][1].type="codeTextPadding",i+=2,n-=2;break}}for(t=i-1,n++;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):(t===n||"lineEnding"===e[t][1].type)&&(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},tokenize:function(e,t,r){let n,i,s=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(r){return 96===r?(e.consume(r),s++,t):(e.exit("codeTextSequence"),a(r))}(t)};function a(l){return null===l?r(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),n=0,function r(a){return 96===a?(e.consume(a),n++,r):n===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",o(a))}(l)):er_(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),o(l))}function o(t){return null===t||32===t||96===t||er_(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),o)}}}},enP={null:[enb,erK]},enC={null:[42,95]},enI={null:[]},en_=/[\0\t\n\r]/g;function enN(e,t){let r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(65535&r)==65535||(65535&r)==65534||r>1114111?"�":String.fromCodePoint(r)}let enL=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function enO(e){return e.replace(enL,enD)}function enD(e,t,r){if(t)return t;if(35===r.charCodeAt(0)){let e=r.charCodeAt(1),t=120===e||88===e;return enN(r.slice(t?2:1),t?16:10)}return eno(r)||e}let enM={}.hasOwnProperty;function enF(e){return{line:e.line,column:e.column,offset:e.offset}}function enj(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+etY({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+etY({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+etY({start:t.start,end:t.end})+") is still open")}function enB(e){let t=this;t.parser=function(r){var n,i;let s,a,o,l;return"object"==typeof(n={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=n,n=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:n(g),autolinkProtocol:u,autolinkEmail:u,atxHeading:n(f),blockQuote:n(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:n(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:n(d,i),codeText:n(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:n(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:n(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:n(m),hardBreakTrailing:n(m),htmlFlow:n(y,i),htmlFlowData:u,htmlText:n(y,i),htmlTextData:u,image:n(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:n(g),listItem:n(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:n(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:n(b),paragraph:n(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:n(f),strong:n(function(){return{type:"strong",children:[]}}),thematicBreak:n(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t,r=this.sliceSerialize(e),n=this.data.characterReferenceType;n?(t=enN(r,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):t=eno(r);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=enF(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=er5(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(p),hardBreakTrailing:a(p),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),r=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===r.type?r.children=e.children:r.alt=t},labelText:function(e){let t=this.sliceSerialize(e),r=this.stack[this.stack.length-2];r.label=enO(t),r.identifier=er5(t).toLowerCase()},lineEnding:function(e){let r=this.stack[this.stack.length-1];if(this.data.atHardBreak){r.children[r.children.length-1].position.end=enF(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(r.type)&&(u.call(this,e),c.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.label=t,r.identifier=er5(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,r){let n=-1;for(;++n<r.length;){let i=r[n];Array.isArray(i)?e(t,i):function(e,t){let r;for(r in t)if(enM.call(t,r))switch(r){case"canContainEols":{let n=t[r];n&&e[r].push(...n);break}case"transforms":{let n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{let n=t[r];n&&Object.assign(e[r],n)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let r={};return function(e){let n={type:"root",children:[]},a={stack:[n],tokenStack:[],config:t,enter:s,exit:o,buffer:i,resume:l,data:r},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,r){let n,i,s,a,o=t-1,l=-1,u=!1;for(;++o<=r;){let t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!n||a||l||s||(s=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(n){let a=o;for(i=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=a}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}s&&(!i||s<i)&&(n._spread=!0),n.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||o,0,["exit",n,t[2]]),o++,r++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};n=i,e.splice(o,0,["enter",i,t[2]]),o++,r++,s=void 0,a=!0}}}return e[t][1]._spread=u,r}(e,u.pop(),c));for(c=-1;++c<e.length;){let r=t[e[c][0]];enM.call(r,e[c][1].type)&&r[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},a),e[c][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||enj).call(a,void 0,e[0])}for(n.position={start:enF(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:enF(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)n=t.transforms[c](n)||n;return n};function n(e,t){return function(r){s.call(this,e(r),r),t&&t.call(this,r)}}function i(){this.stack.push({type:"fragment",children:[]})}function s(e,t,r){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,r||void 0]),e.position={start:enF(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),o.call(this,t)}}function o(e,t){let r=this.stack.pop(),n=this.tokenStack.pop();if(n)n[0].type!==e.type&&(t?t.call(this,e,n[0]):(n[1]||enj).call(this,e,n[0]));else throw Error("Cannot close `"+e.type+"` ("+etY({start:e.start,end:e.end})+"): it’s not open");r.position.end=enF(e.end)}function l(){return erd(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,r=t[t.length-1];r&&"text"===r.type||((r={type:"text",value:""}).position={start:enF(e.start),end:void 0},t.push(r)),this.stack.push(r)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=enF(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function d(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function y(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!erS(e););return e}((function(e){let t={constructs:erT([em,...(e||{}).extensions||[]]),content:r(erj),defined:[],document:r(erB),flow:r(erq),lazy:{},string:r(erJ),text:r(erz)};return t;function r(e){return function(r){return function(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0},i={},s=[],a=[],o=[],l={attempt:f(function(e,t){m(e,t.from)}),check:f(d),consume:function(e){er_(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=e},enter:function(e,t){let r=t||{};return r.type=e,r.start=h(),u.events.push(["enter",r,u]),o.push(r),r},exit:function(e){let t=o.pop();return t.end=h(),u.events.push(["exit",t,u]),t},interrupt:f(d,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,y()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let r,n=-1,i=[];for(;++n<e.length;){let s,a=e[n];if("string"==typeof a)s=a;else switch(a){case -5:s="\r";break;case -4:s="\n";break;case -3:s="\r\n";break;case -2:s=t?" ":" ";break;case -1:if(!t&&r)continue;s=" ";break;default:s=String.fromCharCode(a)}r=-2===a,i.push(s)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(a=erg(a,e),function(){let e;for(;n._index<a.length;){let r=a[n._index];if("string"==typeof r)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<r.length;){var t;t=r.charCodeAt(n._bufferIndex),c=c(t)}else c=c(r)}}(),null!==a[a.length-1])?[]:(m(t,0),u.events=enp(s,u.events,u),u.events)}},c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function p(e){return function(e,t){let r,n=t.start._index,i=t.start._bufferIndex,s=t.end._index,a=t.end._bufferIndex;if(n===s)r=[e[n].slice(i,a)];else{if(r=e.slice(n,s),i>-1){let e=r[0];"string"==typeof e?r[0]=e.slice(i):r.shift()}a>0&&r.push(e[s].slice(0,a))}return r}(a,e)}function h(){let{_bufferIndex:e,_index:t,line:r,column:i,offset:s}=n;return{_bufferIndex:e,_index:t,line:r,column:i,offset:s}}function d(e,t){t.restore()}function f(e,t){return function(r,i,s){var a;let c,p,d,f;return Array.isArray(r)?m(r):"tokenize"in r?m([r]):(a=r,function(e){let t=null!==e&&a[e],r=null!==e&&a.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)});function m(e){return(c=e,p=0,0===e.length)?s:g(e[p])}function g(e){return function(r){let i,s,a,c,p;return(i=h(),s=u.previous,a=u.currentConstruct,c=u.events.length,p=Array.from(o),f={from:c,restore:function(){n=i,u.previous=s,u.currentConstruct=a,u.events.length=c,o=p,y()}},d=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(r):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,b,x)(r)}}function b(t){return e(d,f),i}function x(e){return(f.restore(),++p<c.length)?g(c[p]):s}}}function m(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&ery(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function y(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}(t,e,r)}}})(i).document().write((a=1,o="",l=!0,function(e,t,r){let n,i,u,c,p,h=[];for(e=o+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,o="",l&&(65279===e.charCodeAt(0)&&u++,l=void 0);u<e.length;){if(en_.lastIndex=u,c=(n=en_.exec(e))&&void 0!==n.index?n.index:e.length,p=e.charCodeAt(c),!n){o=e.slice(u);break}if(10===p&&u===c&&s)h.push(-3),s=void 0;else switch(s&&(h.push(-5),s=void 0),u<c&&(h.push(e.slice(u,c)),a+=c-u),p){case 0:h.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),h.push(-2);a++<i;)h.push(-1);break;case 10:h.push(-4),a=1;break;default:s=!0,a=1}u=c+1}return r&&(s&&h.push(-5),o&&h.push(o),h.push(null)),h})(r,n,!0))))}}function enR(e,t){let r=String(e);if("string"!=typeof t)throw TypeError("Expected character");let n=0,i=r.indexOf(t);for(;-1!==i;)n++,i=r.indexOf(t,i+t.length);return n}let en$=function(e){var t,r;if(null==e)return enV;if("function"==typeof e)return enU(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],r=-1;for(;++r<e.length;)t[r]=en$(e[r]);return enU(function(...e){let r=-1;for(;++r<t.length;)if(t[r].apply(this,e))return!0;return!1})}(e):(t=e,enU(function(e){let r;for(r in t)if(e[r]!==t[r])return!1;return!0}))}if("string"==typeof e){return r=e,enU(function(e){return e&&e.type===r})}throw Error("Expected function, string, or object as test")};function enU(e){return function(t,r,n){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof r?r:void 0,n||void 0))}}function enV(){return!0}let enq=[];function enK(e,t,r,n){let i;"function"==typeof t&&"function"!=typeof r?(n=r,r=t):i=t;let s=en$(i),a=n?-1:1;(function e(i,o,l){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,p,h,d=enq;if((!t||s(i,o,l[l.length-1]||void 0))&&!1===(d=Array.isArray(u=r(i,l))?u:"number"==typeof u?[!0,u]:null==u?enq:[u])[0])return d;if("children"in i&&i.children&&i.children&&"skip"!==d[0])for(p=(n?i.children.length:-1)+a,h=l.concat(i);p>-1&&p<i.children.length;){if(!1===(c=e(i.children[p],p,h)())[0])return c;p="number"==typeof c[1]?c[1]:p+a}return d}})(e,void 0,[])()}let enJ="phrasing",enz=["autolink","link","image","label"];function enW(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function enX(e){this.config.enter.autolinkProtocol.call(this,e)}function enH(e){this.config.exit.autolinkProtocol.call(this,e)}function enG(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function enY(e){this.config.exit.autolinkEmail.call(this,e)}function enQ(e){this.exit(e)}function enZ(e){!function(e,t,r){let n=en$((r||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let r=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<r.length;){var i;let e=r[n];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),s=-1;for(;++s<i.length;)enK(e,"text",a);function a(e,t){let r,a=-1;for(;++a<t.length;){let e=t[a],i=r?r.children:void 0;if(n(e,i?i.indexOf(e):void 0,r))return;r=e}if(r)return function(e,t){let r=t[t.length-1],n=i[s][0],a=i[s][1],o=0,l=r.children.indexOf(e),u=!1,c=[];n.lastIndex=0;let p=n.exec(e.value);for(;p;){let r=p.index,i={index:p.index,input:p.input,stack:[...t,e]},s=a(...p,i);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?n.lastIndex=r+1:(o!==r&&c.push({type:"text",value:e.value.slice(o,r)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=r+p[0].length,u=!0),!n.global)break;p=n.exec(e.value)}return u?(o<e.value.length&&c.push({type:"text",value:e.value.slice(o)}),r.children.splice(l,1,...c)):c=[e],l+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,en0],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,en1]],{ignore:["link","linkReference"]})}function en0(e,t,r,n,i){let s,a="";if(!en2(i))return!1;if(/^w/i.test(t)&&(r=t+r,t="",a="http://"),(s=r.split(".")).length<2||s[s.length-1]&&(/_/.test(s[s.length-1])||!/[a-zA-Z\d]/.test(s[s.length-1]))||s[s.length-2]&&(/_/.test(s[s.length-2])||!/[a-zA-Z\d]/.test(s[s.length-2])))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")"),i=enR(e,"("),s=enR(e,")");for(;-1!==n&&i>s;)e+=r.slice(0,n+1),n=(r=r.slice(n+1)).indexOf(")"),s++;return[e,r]}(r+n);if(!o[0])return!1;let l={type:"link",title:null,url:a+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function en1(e,t,r,n){return!(!en2(n,!0)||/[-\d_]$/.test(r))&&{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function en2(e,t){let r=e.input.charCodeAt(e.index-1);return(0===e.index||erD(r)||erO(r))&&(!t||47!==r)}function en3(){this.buffer()}function en4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function en5(){this.buffer()}function en6(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function en8(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=er5(this.sliceSerialize(e)).toLowerCase(),r.label=t}function en9(e){this.exit(e)}function en7(e){let t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=er5(this.sliceSerialize(e)).toLowerCase(),r.label=t}function eie(e){this.exit(e)}function eit(e,t,r,n){let i=r.createTracker(n),s=i.move("[^"),a=r.enter("footnoteReference"),o=r.enter("reference");return s+=i.move(r.safe(r.associationId(e),{after:"]",before:s})),o(),a(),s+=i.move("]")}function eir(e,t,r){return 0===t?e:ein(e,t,r)}function ein(e,t,r){return(r?"":" ")+e}eit.peek=function(){return"["};let eii=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function eis(e){this.enter({type:"delete",children:[]},e)}function eia(e){this.exit(e)}function eio(e,t,r,n){let i=r.createTracker(n),s=r.enter("strikethrough"),a=i.move("~~");return a+=r.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function eil(e){return e.length}function eiu(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}function eic(e,t,r){return">"+(r?"":" ")+e}function eip(e,t){return eih(e,t.inConstruct,!0)&&!eih(e,t.notInConstruct,!1)}function eih(e,t,r){if("string"==typeof t&&(t=[t]),!t||0===t.length)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function eid(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if("\n"===r.unsafe[i].character&&eip(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return"\\\n"}function eif(e,t){return!!(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function eim(e,t,r){return(r?"":" ")+e}function eiy(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function eig(e){return"&#x"+e.toString(16).toUpperCase()+";"}function eib(e,t,r){let n=eng(e),i=eng(t);return void 0===n?void 0===i?"_"===r?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===n?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function eix(e,t,r,n){let i=function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(r),s=r.enter("emphasis"),a=r.createTracker(n),o=a.move(i),l=a.move(r.containerPhrasing(e,{after:i,before:o,...a.current()})),u=l.charCodeAt(0),c=eib(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=eig(u)+l.slice(1));let p=l.charCodeAt(l.length-1),h=eib(n.after.charCodeAt(0),p,i);h.inside&&(l=l.slice(0,-1)+eig(p));let d=a.move(i);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+d}function eiS(e,t,r,n){let i,s,a;"function"==typeof t&&"function"!=typeof r?(s=void 0,a=t,i=r):(s=t,a=r,i=n),enK(e,s,function(e,t){let r=t[t.length-1],n=r?r.children.indexOf(e):void 0;return a(e,n,r)},i)}function eiv(e,t){let r=!1;return eiS(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,!1}),!!((!e.depth||e.depth<3)&&erd(e)&&(t.options.setext||r))}function eiT(e){return e.value||""}function eiE(e,t,r,n){let i=eiy(r),s='"'===i?"Quote":"Apostrophe",a=r.enter("image"),o=r.enter("label"),l=r.createTracker(n),u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),a(),u}function eik(e,t,r,n){let i=e.referenceType,s=r.enter("imageReference"),a=r.enter("label"),o=r.createTracker(n),l=o.move("!["),u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();let c=r.stack;r.stack=[],a=r.enter("reference");let p=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return a(),r.stack=c,s(),"full"!==i&&u&&u===p?"shortcut"===i?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(p+"]"),l}function eiw(e,t,r){let n=e.value||"",i="`",s=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++s<r.unsafe.length;){let e,t=r.unsafe[s],i=r.compilePattern(t);if(t.atBreak)for(;e=i.exec(n);){let t=e.index;10===n.charCodeAt(t)&&13===n.charCodeAt(t-1)&&t--,n=n.slice(0,t)+" "+n.slice(e.index+1)}}return i+n+i}function eiA(e,t){let r=erd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function eiP(e,t,r,n){let i,s,a=eiy(r),o='"'===a?"Quote":"Apostrophe",l=r.createTracker(n);if(eiA(e,r)){let t=r.stack;r.stack=[],i=r.enter("autolink");let n=l.move("<");return n+=l.move(r.containerPhrasing(e,{before:n,after:">",...l.current()})),n+=l.move(">"),i(),r.stack=t,n}i=r.enter("link"),s=r.enter("label");let u=l.move("[");return u+=l.move(r.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=r.enter(`title${o}`),u+=l.move(" "+a),u+=l.move(r.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),i(),u}function eiC(e,t,r,n){let i=e.referenceType,s=r.enter("linkReference"),a=r.enter("label"),o=r.createTracker(n),l=o.move("["),u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();let c=r.stack;r.stack=[],a=r.enter("reference");let p=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return a(),r.stack=c,s(),"full"!==i&&u&&u===p?"shortcut"===i?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(p+"]"),l}function eiI(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ei_(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}eio.peek=function(){return"~"},eix.peek=function(e,t,r){return r.options.emphasis||"*"},eiT.peek=function(){return"<"},eiE.peek=function(){return"!"},eik.peek=function(){return"!"},eiw.peek=function(){return"`"},eiP.peek=function(e,t,r){return eiA(e,r)?"<":"["},eiC.peek=function(){return"["};let eiN=en$(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function eiL(e,t,r,n){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(r),s=r.enter("strong"),a=r.createTracker(n),o=a.move(i+i),l=a.move(r.containerPhrasing(e,{after:i,before:o,...a.current()})),u=l.charCodeAt(0),c=eib(n.before.charCodeAt(n.before.length-1),u,i);c.inside&&(l=eig(u)+l.slice(1));let p=l.charCodeAt(l.length-1),h=eib(n.after.charCodeAt(0),p,i);h.inside&&(l=l.slice(0,-1)+eig(p));let d=a.move(i+i);return s(),r.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+d}eiL.peek=function(e,t,r){return r.options.strong||"*"};let eiO={blockquote:function(e,t,r,n){let i=r.enter("blockquote"),s=r.createTracker(n);s.move("> "),s.shift(2);let a=r.indentLines(r.containerFlow(e,s.current()),eic);return i(),a},break:eid,code:function(e,t,r,n){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(r),s=e.value||"",a="`"===i?"GraveAccent":"Tilde";if(eif(e,r)){let e=r.enter("codeIndented"),t=r.indentLines(s,eim);return e(),t}let o=r.createTracker(n),l=i.repeat(Math.max(function(e,t){let r=String(e),n=r.indexOf(t),i=n,s=0,a=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==n;)n===i?++s>a&&(a=s):s=1,i=n+t.length,n=r.indexOf(t,i);return a}(s,i)+1,3)),u=r.enter("codeFenced"),c=o.move(l);if(e.lang){let t=r.enter(`codeFencedLang${a}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=r.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:"\n",encode:["`"],...o.current()})),t()}return c+=o.move("\n"),s&&(c+=o.move(s+"\n")),c+=o.move(l),u(),c},definition:function(e,t,r,n){let i=eiy(r),s='"'===i?"Quote":"Apostrophe",a=r.enter("definition"),o=r.enter("label"),l=r.createTracker(n),u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),o(),e.title&&(o=r.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(r.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),a(),u},emphasis:eix,hardBreak:eid,heading:function(e,t,r,n){let i=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(n);if(eiv(e,r)){let t=r.enter("headingSetext"),n=r.enter("phrasing"),a=r.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return n(),t(),a+"\n"+(1===i?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}let a="#".repeat(i),o=r.enter("headingAtx"),l=r.enter("phrasing");s.move(a+" ");let u=r.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(u)&&(u=eig(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,r.options.closeAtx&&(u+=" "+a),l(),o(),u},html:eiT,image:eiE,imageReference:eik,inlineCode:eiw,link:eiP,linkReference:eiC,list:function(e,t,r,n){let i=r.enter("list"),s=r.bulletCurrent,a=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(r):eiI(r),o=e.ordered?"."===a?")":".":function(e){let t=eiI(e),r=e.options.bulletOther;if(!r)return"*"===t?"-":"*";if("*"!==r&&"+"!==r&&"-"!==r)throw Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}(r),l=!!t&&!!r.bulletLastUsed&&a===r.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==r.stack[r.stack.length-1]||"listItem"!==r.stack[r.stack.length-2]||"list"!==r.stack[r.stack.length-3]||"listItem"!==r.stack[r.stack.length-4]||0!==r.indexStack[r.indexStack.length-1]||0!==r.indexStack[r.indexStack.length-2]||0!==r.indexStack[r.indexStack.length-3]||(l=!0),ei_(r)===a&&t){let t=-1;for(;++t<e.children.length;){let r=e.children[t];if(r&&"listItem"===r.type&&r.children&&r.children[0]&&"thematicBreak"===r.children[0].type){l=!0;break}}}}l&&(a=o),r.bulletCurrent=a;let u=r.containerFlow(e,n);return r.bulletLastUsed=a,r.bulletCurrent=s,i(),u},listItem:function(e,t,r,n){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(r),s=r.bulletCurrent||eiI(r);t&&"list"===t.type&&t.ordered&&(s=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===r.options.incrementListMarker?0:t.children.indexOf(e))+s);let a=s.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let o=r.createTracker(n);o.move(s+" ".repeat(a-s.length)),o.shift(a);let l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,o.current()),function(e,t,r){return t?(r?"":" ".repeat(a))+e:(r?s:s+" ".repeat(a-s.length))+e});return l(),u},paragraph:function(e,t,r,n){let i=r.enter("paragraph"),s=r.enter("phrasing"),a=r.containerPhrasing(e,n);return s(),i(),a},root:function(e,t,r,n){return(e.children.some(function(e){return eiN(e)})?r.containerPhrasing:r.containerFlow).call(r,e,n)},strong:eiL,text:function(e,t,r,n){return r.safe(e.value,n)},thematicBreak:function(e,t,r){let n=(ei_(r)+(r.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(r));return r.options.ruleSpaces?n.slice(0,-1):n}};function eiD(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function eiM(e){this.exit(e),this.data.inTable=void 0}function eiF(e){this.enter({type:"tableRow",children:[]},e)}function eij(e){this.exit(e)}function eiB(e){this.enter({type:"tableCell",children:[]},e)}function eiR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,ei$));let r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function ei$(e,t){return"|"===t?t:e}function eiU(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function eiV(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let r=e.children[0];if(r&&"text"===r.type){let n,i=t.children,s=-1;for(;++s<i.length;){let e=i[s];if("paragraph"===e.type){n=e;break}}n===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function eiq(e,t,r,n){let i=e.children[0],s="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",o=r.createTracker(n);s&&o.move(a);let l=eiO.listItem(e,t,r,{...n,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}let eiK={tokenize:function(e,t,r){let n=0;return function t(s){return(87===s||119===s)&&n<3?(n++,e.consume(s),t):46===s&&3===n?(e.consume(s),i):r(s)};function i(e){return null===e?r(e):t(e)}},partial:!0},eiJ={tokenize:function(e,t,r){let n,i,s;return a;function a(t){return 46===t||95===t?e.check(eiW,l,o)(t):null===t||erN(t)||erD(t)||45!==t&&erO(t)?l(t):(s=!0,e.consume(t),a)}function o(t){return 95===t?n=!0:(i=n,n=void 0),e.consume(t),a}function l(e){return i||n||!s?r(e):t(e)}},partial:!0},eiz={tokenize:function(e,t){let r=0,n=0;return i;function i(a){return 40===a?(r++,e.consume(a),i):41===a&&n<r?s(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(eiW,t,s)(a):null===a||erN(a)||erD(a)?t(a):(e.consume(a),i)}function s(t){return 41===t&&n++,e.consume(t),i}},partial:!0},eiW={tokenize:function(e,t,r){return n;function n(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),n):38===a?(e.consume(a),s):93===a?(e.consume(a),i):60===a||null===a||erN(a)||erD(a)?t(a):r(a)}function i(e){return null===e||40===e||91===e||erN(e)||erD(e)?t(e):n(e)}function s(t){return erE(t)?function t(i){return 59===i?(e.consume(i),n):erE(i)?(e.consume(i),t):r(i)}(t):r(t)}},partial:!0},eiX={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return erk(e)?r(e):t(e)}},partial:!0},eiH={name:"wwwAutolink",tokenize:function(e,t,r){let n=this;return function(t){return 87!==t&&119!==t||!ei0.call(n,n.previous)||ei4(n.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eiK,e.attempt(eiJ,e.attempt(eiz,i),r),r)(t))};function i(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:ei0},eiG={name:"protocolAutolink",tokenize:function(e,t,r){let n=this,i="",s=!1;return function(t){return(72===t||104===t)&&ei1.call(n,n.previous)&&!ei4(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a):r(t)};function a(t){if(erE(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){let r=i.toLowerCase();if("http"===r||"https"===r)return e.consume(t),o}return r(t)}function o(t){return 47===t?(e.consume(t),s)?l:(s=!0,o):r(t)}function l(t){return null===t||erA(t)||erN(t)||erD(t)||erO(t)?r(t):e.attempt(eiJ,e.attempt(eiz,u),r)(t)}function u(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:ei1},eiY={name:"emailAutolink",tokenize:function(e,t,r){let n,i,s=this;return function(t){return!ei3(t)||!ei2.call(s,s.previous)||ei4(s.events)?r(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(n){return ei3(n)?(e.consume(n),t):64===n?(e.consume(n),a):r(n)}(t))};function a(t){return 46===t?e.check(eiX,l,o)(t):45===t||95===t||erk(t)?(i=!0,e.consume(t),a):l(t)}function o(t){return e.consume(t),n=!0,a}function l(a){return i&&n&&erE(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):r(a)}},previous:ei2},eiQ={},eiZ=48;for(;eiZ<123;)eiQ[eiZ]=eiY,58==++eiZ?eiZ=65:91===eiZ&&(eiZ=97);function ei0(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||erN(e)}function ei1(e){return!erE(e)}function ei2(e){return!(47===e||ei3(e))}function ei3(e){return 43===e||45===e||46===e||95===e||erk(e)}function ei4(e){let t=e.length,r=!1;for(;t--;){let n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}eiQ[43]=eiY,eiQ[45]=eiY,eiQ[46]=eiY,eiQ[95]=eiY,eiQ[72]=[eiY,eiG],eiQ[104]=[eiY,eiG],eiQ[87]=[eiY,eiH],eiQ[119]=[eiY,eiH];let ei5={tokenize:function(e,t,r){let n=this;return erF(e,function(e){let i=n.events[n.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ei6(e,t,r){let n,i=this,s=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;s--;){let e=i.events[s][1];if("labelImage"===e.type){n=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(s){if(!n||!n._balanced)return r(s);let o=er5(i.sliceSerialize({start:n.end,end:i.now()}));return 94===o.codePointAt(0)&&a.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s)):r(s)}}function ei8(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";let n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...o),e}function ei9(e,t,r){let n,i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(a>999||93===o&&!n||null===o||91===o||erN(o))return r(o);if(93===o){e.exit("chunkString");let n=e.exit("gfmFootnoteCallString");return s.includes(er5(i.sliceSerialize(n)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(o)}return erN(o)||(n=!0),a++,e.consume(o),92===o?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function ei7(e,t,r){let n,i,s=this,a=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):r(t)}function u(t){if(o>999||93===t&&!i||null===t||91===t||erN(t))return r(t);if(93===t){e.exit("chunkString");let r=e.exit("gfmFootnoteDefinitionLabelString");return n=er5(s.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return erN(t)||(i=!0),o++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(n)||a.push(n),erF(e,h,"gfmFootnoteDefinitionWhitespace")):r(t)}function h(e){return t(e)}}function ese(e,t,r){return e.check(er$,t,e.attempt(ei5,t,r))}function est(e){e.exit("gfmFootnoteDefinition")}class esr{constructor(){this.map=[],this.index=new Map}add(e,t,r){!function(e,t,r,n){if(0===r&&0===n.length)return;let i=e.index.get(t);if(i){i[1]+=r,i[2].push(...n);return}let s=[t,r,n];e.map.push(s),e.index.set(t,s)}(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push(e.slice()),e.length=0;let n=r.pop();for(;n;){for(let t of n)e.push(t);n=r.pop()}this.map.length=0,this.index.clear()}}function esn(e,t,r){let n,i=this,s=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let{type:e}=i.events[t][1];if("lineEnding"===e||"linePrefix"===e)t--;else break}let n=t>-1?i.events[t][1].type:null,s="tableHead"===n||"tableRow"===n?b:o;return s===b&&i.parser.lazy[i.now().line]?r(e):s(e)};function o(t){var r;return e.enter("tableHead"),e.enter("tableRow"),124===(r=t)||(n=!0,a+=1),l(r)}function l(t){return null===t?r(t):er_(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):r(t):erL(t)?erF(e,l,"whitespace")(t):(a+=1,n&&(n=!1,s+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),n=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||erN(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function p(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?r(t):(e.enter("tableDelimiterRow"),n=!1,erL(t))?erF(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(n=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):r(t)}function d(t){return erL(t)?erF(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(a+=1,n=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||er_(t)?g(t):r(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(r){return 45===r?(e.consume(r),t):58===r?(n=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(r),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(r))}(t)):r(t)}function y(t){return erL(t)?erF(e,g,"whitespace")(t):g(t)}function g(i){if(124===i)return h(i);if(null===i||er_(i))return n&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):r(i);return r(i)}function b(t){return e.enter("tableRow"),x(t)}function x(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),x):null===r||er_(r)?(e.exit("tableRow"),t(r)):erL(r)?erF(e,x,"whitespace")(r):(e.enter("data"),S(r))}function S(t){return null===t||124===t||erN(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?v:S)}function v(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function esi(e,t){let r,n,i,s=-1,a=!0,o=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,p=0,h=new esr;for(;++s<e.length;){let d=e[s],f=d[1];"enter"===d[0]?"tableHead"===f.type?(c=!1,0!==p&&(esa(h,t,p,r,n),n=void 0,p=0),r={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(s,0,[["enter",r,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,i=void 0,l=[0,0,0,0],u=[0,s+1,0,0],c&&(c=!1,n={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(s,0,[["enter",n,t]])),o="tableDelimiterRow"===f.type?2:n?3:1):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(a=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],i=ess(h,t,l,o,void 0,i),l=[0,0,0,0]),u[2]=s)):"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(u[0]=u[1],i=ess(h,t,l,o,void 0,i)),u=[(l=u)[1],s,0,0])):"tableHead"===f.type?(c=!0,p=s):"tableRow"===f.type||"tableDelimiterRow"===f.type?(p=s,0!==l[1]?(u[0]=u[1],i=ess(h,t,l,o,s,i)):0!==u[1]&&(i=ess(h,t,u,o,s,i)),o=0):o&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(u[3]=s)}for(0!==p&&esa(h,t,p,r,n),h.consume(t.events),s=-1;++s<t.events.length;){let e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let r=!1,n=[];for(;t<e.length;){let i=e[t];if(r){if("enter"===i[0])"tableContent"===i[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(r=!0);t+=1}return n}(t.events,s))}return e}function ess(e,t,r,n,i,s){0!==r[0]&&(s.end=Object.assign({},eso(t.events,r[0])),e.add(r[0],0,[["exit",s,t]]));let a=eso(t.events,r[1]);if(s={type:1===n?"tableHeader":2===n?"tableDelimiter":"tableData",start:Object.assign({},a),end:Object.assign({},a)},e.add(r[1],0,[["enter",s,t]]),0!==r[2]){let i=eso(t.events,r[2]),s=eso(t.events,r[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},s)};if(e.add(r[2],0,[["enter",a,t]]),2!==n){let n=t.events[r[2]],i=t.events[r[3]];if(n[1].end=Object.assign({},i[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){let t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",a,t]])}return void 0!==i&&(s.end=Object.assign({},eso(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function esa(e,t,r,n,i){let s=[],a=eso(t.events,r);i&&(i.end=Object.assign({},a),s.push(["exit",i,t])),n.end=Object.assign({},a),s.push(["exit",n,t]),e.add(r+1,0,s)}function eso(e,t){let r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}let esl={name:"tasklistCheck",tokenize:function(e,t,r){let n=this;return function(t){return null===n.previous&&n._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):r(t)};function i(t){return erN(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):r(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(t)}function a(n){return er_(n)?t(n):erL(n)?e.check({tokenize:esu},t,r)(n):r(n)}}};function esu(e,t,r){return erF(e,function(e){return null===e?r(e):t(e)},"whitespace")}let esc={};function esp(e){let t,r,n,i=e||esc,s=this.data(),a=s.micromarkExtensions||(s.micromarkExtensions=[]),o=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),l=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);a.push(erT([{text:eiQ},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ei7,continuation:{tokenize:ese},exit:est}},text:{91:{name:"gfmFootnoteCall",tokenize:ei9},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ei6,resolveTo:ei8}}},(t=(i||{}).singleTilde,r={name:"strikethrough",tokenize:function(e,r,n){let i=this.previous,s=this.events,a=0;return function(o){return 126===i&&"characterEscape"!==s[s.length-1][1].type?n(o):(e.enter("strikethroughSequenceTemporary"),function s(o){let l=eng(i);if(126===o)return a>1?n(o):(e.consume(o),a++,s);if(a<2&&!t)return n(o);let u=e.exit("strikethroughSequenceTemporary"),c=eng(o);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,r(o)}(o))}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset==e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},s={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&ery(a,a.length,0,enp(o,e.slice(n+1,r),t)),ery(a,a.length,0,[["exit",s,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",i,t]]),ery(e,n-1,r-n+3,a),r=n+a.length-2;break}}for(r=-1;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}},null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:esn,resolveAll:esi}}},{text:{91:esl}}])),o.push([{transforms:[enZ],enter:{literalAutolink:enW,literalAutolinkEmail:enX,literalAutolinkHttp:enX,literalAutolinkWww:enX},exit:{literalAutolink:enQ,literalAutolinkEmail:enY,literalAutolinkHttp:enH,literalAutolinkWww:enG}},{enter:{gfmFootnoteCallString:en3,gfmFootnoteCall:en4,gfmFootnoteDefinitionLabelString:en5,gfmFootnoteDefinition:en6},exit:{gfmFootnoteCallString:en8,gfmFootnoteCall:en9,gfmFootnoteDefinitionLabelString:en7,gfmFootnoteDefinition:eie}},{canContainEols:["delete"],enter:{strikethrough:eis},exit:{strikethrough:eia}},{enter:{table:eiD,tableData:eiB,tableHeader:eiB,tableRow:eiF},exit:{codeText:eiR,table:eiM,tableData:eij,tableHeader:eij,tableRow:eij}},{exit:{taskListCheckValueChecked:eiU,taskListCheckValueUnchecked:eiU,paragraph:eiV}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:enJ,notInConstruct:enz},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:enJ,notInConstruct:enz},{character:":",before:"[ps]",after:"\\/",inConstruct:enJ,notInConstruct:enz}]},(n=!1,i&&i.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:function(e,t,r,i){let s=r.createTracker(i),a=s.move("[^"),o=r.enter("footnoteDefinition"),l=r.enter("label");return a+=s.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=s.move("]:"),e.children&&e.children.length>0&&(s.shift(4),a+=s.move((n?"\n":" ")+r.indentLines(r.containerFlow(e,s.current()),n?ein:eir))),o(),a},footnoteReference:eit},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:eii}],handlers:{delete:eio}},function(e){let t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,r){let n=eiO.inlineCode(e,t,r);return r.stack.includes("tableCell")&&(n=n.replace(/\|/g,"\\$&")),n},table:function(e,t,r,n){return o(function(e,t,r){let n=e.children,i=-1,s=[],a=t.enter("table");for(;++i<n.length;)s[i]=l(n[i],t,r);return a(),s}(e,r,n),e.align)},tableCell:a,tableRow:function(e,t,r,n){let i=o([l(e,r,n)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,r,n){let i=r.enter("tableCell"),a=r.enter("phrasing"),o=r.containerPhrasing(e,{...n,before:s,after:s});return a(),i(),o}function o(e,t){return function(e,t){let r=t||{},n=(r.align||[]).concat(),i=r.stringLength||eil,s=[],a=[],o=[],l=[],u=0,c=-1;for(;++c<e.length;){let t=[],n=[],s=-1;for(e[c].length>u&&(u=e[c].length);++s<e[c].length;){var p;let a=null==(p=e[c][s])?"":String(p);if(!1!==r.alignDelimiters){let e=i(a);n[s]=e,(void 0===l[s]||e>l[s])&&(l[s]=e)}t.push(a)}a[c]=t,o[c]=n}let h=-1;if("object"==typeof n&&"length"in n)for(;++h<u;)s[h]=eiu(n[h]);else{let e=eiu(n);for(;++h<u;)s[h]=e}h=-1;let d=[],f=[];for(;++h<u;){let e=s[h],t="",n="";99===e?(t=":",n=":"):108===e?t=":":114===e&&(n=":");let i=!1===r.alignDelimiters?1:Math.max(1,l[h]-t.length-n.length),a=t+"-".repeat(i)+n;!1!==r.alignDelimiters&&((i=t.length+i+n.length)>l[h]&&(l[h]=i),f[h]=i),d[h]=a}a.splice(1,0,d),o.splice(1,0,f),c=-1;let m=[];for(;++c<a.length;){let e=a[c],t=o[c];h=-1;let n=[];for(;++h<u;){let i=e[h]||"",a="",o="";if(!1!==r.alignDelimiters){let e=l[h]-(t[h]||0),r=s[h];114===r?a=" ".repeat(e):99===r?e%2?(a=" ".repeat(e/2+.5),o=" ".repeat(e/2-.5)):o=a=" ".repeat(e/2):o=" ".repeat(e)}!1===r.delimiterStart||h||n.push("|"),!1!==r.padding&&(!1!==r.alignDelimiters||""!==i)&&(!1!==r.delimiterStart||h)&&n.push(" "),!1!==r.alignDelimiters&&n.push(a),n.push(i),!1!==r.alignDelimiters&&n.push(o),!1!==r.padding&&n.push(" "),(!1!==r.delimiterEnd||h!==u-1)&&n.push("|")}m.push(!1===r.delimiterEnd?n.join("").replace(/ +$/,""):n.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:n,padding:r,stringLength:i})}function l(e,t,r){let n=e.children,i=-1,s=[],o=t.enter("tableRow");for(;++i<n.length;)s[i]=a(n[i],e,t,r);return o(),s}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eiq}}]})}var esh=r(6311);let esd=Object.assign(esf(Error),{eval:esf(EvalError),range:esf(RangeError),reference:esf(ReferenceError),syntax:esf(SyntaxError),type:esf(TypeError),uri:esf(URIError)});function esf(e){return t.displayName=e.displayName||e.name,t;function t(r,...n){return new e(r?esh(r,...n):r)}}let esm={}.hasOwnProperty,esy={yaml:"-",toml:"+"};function esg(e){let t=[],r=-1,n=Array.isArray(e)?e:e?[e]:["yaml"];for(;++r<n.length;)t[r]=function(e){let t=e;if("string"==typeof t){if(!esm.call(esy,t))throw esd("Missing matter definition for `%s`",t);t={type:t,marker:esy[t]}}else if("object"!=typeof t)throw esd("Expected matter to be an object, not `%j`",t);if(!esm.call(t,"type"))throw esd("Missing `type` in matter `%j`",t);if(!esm.call(t,"fence")&&!esm.call(t,"marker"))throw esd("Missing `marker` or `fence` in matter `%j`",t);return t}(n[r]);return t}function esb(e){let t=this.resume(),r=this.stack[this.stack.length-1];this.exit(e),r.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function esx(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function esS(e,t){return e.marker?esv(e.marker,t).repeat(3):esv(e.fence,t)}function esv(e,t){return"string"==typeof e?e:e[t]}function esT(e,t){return e.marker?esE(e.marker,t).repeat(3):esE(e.fence,t)}function esE(e,t){return"string"==typeof e?e:e[t]}function esk(e){let t=e||"yaml",r=this.data(),n=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);n.push(function(e){let t=esg(e),r={},n=-1;for(;++n<t.length;){let e=t[n],i=esT(e,"open").charCodeAt(0),s=function(e){let t,r=e.anywhere,n=e.type,i=n+"Fence",s=i+"Sequence",a=n+"Value",o={tokenize:function(e,r,n){let a=0;return function(r){return r===t.charCodeAt(a)?(e.enter(i),e.enter(s),function r(i){return a===t.length?(e.exit(s),erL(i))?(e.enter("whitespace"),function t(r){return erL(r)?(e.consume(r),t):(e.exit("whitespace"),o(r))}(i)):o(i):i===t.charCodeAt(a++)?(e.consume(i),r):n(i)}(r)):n(r)};function o(t){return null===t||er_(t)?(e.exit(i),r(t)):n(t)}},partial:!0},l=0;return{tokenize:function(u,c,p){let h=this;return function(a){let o=h.now();return 1===o.column&&(1===o.line||r)&&(t=esT(e,"open"),l=0,a===t.charCodeAt(l))?(u.enter(n),u.enter(i),u.enter(s),function e(r){return l===t.length?(u.exit(s),erL(r))?(u.enter("whitespace"),function e(t){return erL(t)?(u.consume(t),e):(u.exit("whitespace"),d(t))}(r)):d(r):r===t.charCodeAt(l++)?(u.consume(r),e):p(r)}(a)):p(a)};function d(r){return er_(r)?(u.exit(i),u.enter("lineEnding"),u.consume(r),u.exit("lineEnding"),t=esT(e,"close"),l=0,u.attempt(o,y,f)):p(r)}function f(e){return null===e||er_(e)?m(e):(u.enter(a),function e(t){return null===t||er_(t)?(u.exit(a),m(t)):(u.consume(t),e)}(e))}function m(e){return null===e?p(e):(u.enter("lineEnding"),u.consume(e),u.exit("lineEnding"),u.attempt(o,y,f))}function y(e){return u.exit(n),c(e)}},concrete:!0}}(e),a=r[i];Array.isArray(a)?a.push(s):r[i]=[s]}return{flow:r}}(t)),i.push(function(e){let t=esg(e),r={},n={},i=-1;for(;++i<t.length;){let e=t[i];r[e.type]=function(e){return function(t){this.enter({type:e.type,value:""},t),this.buffer()}}(e),n[e.type]=esb,n[e.type+"Value"]=esx}return{enter:r,exit:n}}(t)),s.push(function(e){let t=[],r={},n=esg(e),i=-1;for(;++i<n.length;){let e=n[i];r[e.type]=function(e){let t=esS(e,"open"),r=esS(e,"close");return function(e){return t+(e.value?"\n"+e.value:"")+"\n"+r}}(e);let s=esS(e,"open");t.push({atBreak:!0,character:s.charAt(0),after:function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(s.charAt(1))})}return{unsafe:t,handlers:r}}(t))}let{stringLiteral:esw,templateLiteral:esA,templateElement:esP}=e5,esC=e=>{if(!e.includes("\n"))return esw(e);let t=((e,t=4)=>{let r=e.split("\n"),n=[""],i=" ".repeat(2*t),s=" ".repeat(t);for(let e of r)n.push(`${i}${e}`);return n.push(s),n.join("\n")})(e);return esA([esP({raw:t.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replaceAll("${","\\${"),cooked:t})],[])},{stringLiteral:esI,identifier:es_,callExpression:esN}=e5,{identifier:esL,callExpression:esO}=e5,{identifier:esD,callExpression:esM,stringLiteral:esF}=e5,{stringLiteral:esj,identifier:esB,callExpression:esR}=e5,{identifier:es$,callExpression:esU,stringLiteral:esV}=e5,{identifier:esq,callExpression:esK}=e5,{identifier:esJ,callExpression:esz,stringLiteral:esW}=e5,esX=e=>{let{type:t}=e,r=esH[t];return r?r(e):esW("")},esH={text:e=>esC(e.value),strong:e=>esO(esL("bold"),e.children.map(esX)),emphasis:e=>esz(esJ("italic"),e.children.map(esX)),delete:e=>esz(esJ("strike"),e.children.map(esX)),inlineCode:({value:e})=>{let t=e.includes("`")?` ${e} `:e;return esK(esq("code"),[esC(t)])},link:e=>{let t=e.children.map(esX),[r]=t,n=[];return 1===t.length?n.push(r):n.push(esM(esD("paragraph"),t)),n.push(esF(e.url)),e.title&&n.push(esF(e.title)),esM(esD("link"),n)},image:e=>{let t=[esV(e.alt||""),esV(e.url)];return e.title&&t.push(esV(e.title)),esU(es$("image"),t)},linkReference:e=>{let t=[...e.children.map(esX),esj(e.label)];return esR(esB("linkReference"),t)},imageReference:e=>{let{alt:t="",label:r}=e;return esN(es_("imageReference"),[esI(t),esI(r)])},break:()=>esz(esJ("br"),[]),html:e=>esz(esJ("html"),[esW(e.value)])},{templateLiteral:esG,templateElement:esY,identifier:esQ,callExpression:esZ}=e5,{stringLiteral:es0,identifier:es1,callExpression:es2}=e5,{identifier:es3,callExpression:es4}=e5,es5=e=>es4(es3("paragraph"),e.children.map(esX)),{identifier:es6,callExpression:es8}=e5,es9=e=>es8(es6("blockquote"),function(e){let t=[];for(let r of e){if("blockquote"===r.type){t.push(es9(r));continue}if("list"===r.type){t.push(eab(r));continue}t.push(es5(r))}return t}(e.children)),{identifier:es7,callExpression:eae}=e5,{identifier:eat,callExpression:ear,numericLiteral:ean}=e5,{identifier:eai,callExpression:eas,stringLiteral:eaa}=e5,{arrayExpression:eao,identifier:eal,callExpression:eau,stringLiteral:eac}=e5,eap=e=>e||"",{identifier:eah,callExpression:ead,arrayExpression:eaf}=e5,{identifier:eam,callExpression:eay,booleanLiteral:eag}=e5;function eab(e){let{type:t}=e,r=eaT[t];return r?r(e):eax(eaS("raw"),[eav(e.type)])}let{callExpression:eax,identifier:eaS,stringLiteral:eav}=e5,eaT={heading:e=>{let{depth:t}=e;return ear(eat("heading"),[ean(t),...e.children.map(esX)])},paragraph:es5,blockquote:es9,list:e=>eax(eaS(e.ordered?"ol":"ul"),e.children.map(eab)),listItem:e=>{let{children:t}=e,r=[];for(let e of t){if("list"===e.type){r.push(eab(e));continue}if(e.children){r.push(...e.children.map(esX));continue}r.push(eab(e))}return"boolean"==typeof e.checked&&r.push(eag(e.checked)),eay(eam("li"),r)},code:e=>{let{value:t}=e,r=e.lang||"";return es2(es1("codeblock"),[es0(r),esC(t)])},thematicBreak:()=>eax(eaS("hr"),[]),html:e=>eae(es7("html"),[esC(e.value)]),table:e=>{let t=[eac(e.align.map(eap).join(",")),eao(e.children.map(eab))];return eau(eal("table"),t)},tableRow:e=>ead(eah("tr"),[eaf(e.children.map(eab))]),tableCell:e=>eax(eaS("td"),e.children.map(esX)),definition:e=>{let t=[eaa(e.label),eaa(e.url)];return e.title&&t.push(eaa(e.title)),eas(eai("definition"),t)},yaml:({value:e})=>{let t=esY({raw:e,cooked:e},!0);return esZ(esQ("yaml"),[esG([t],[])])}},{arrayExpression:eaE,expressionStatement:eak,file:eaw,program:eaA}=e5,{isCallExpression:eaP,isStringLiteral:eaC}=e5,eaI=e=>{let t=e.node.arguments,r=0;for(let e of t)r+=ea_(e);return r},ea_=e=>{if(eaC(e))return e.value.length;if(eaP(e)){let{name:t}=e.callee;if("code"===t)return 2+ea_(e.arguments[0]);if("bold"===t)return 4+ea_(e.arguments[0]);if("italic"===t)return 2+ea_(e.arguments[0]);if("strike"===t)return 4+ea_(e.arguments[0])}return 0},{isStringLiteral:eaN}=e5,eaL=e=>(t,{write:r,traverse:n})=>{let i=t.get("arguments");for(let t of(r(e),i))n(t);r(e)},eaO=Lb([["-: -> !CallExpression"],["-",e=>{let{name:t}=e.node.callee;return"heading"===t}],["-",e=>{let{name:t}=e.node.callee;return"table"===t}],["+: -> !",e=>{let{name:t}=e.node.callee;return"paragraph"===t}]]),{isCallExpression:eaD,isIdentifier:eaM}=e5;function eaF(e){let t=0,r=e.parentPath;for(;r;){if(eaD(r)&&r.node.callee){let{name:e}=r.node.callee;("ul"===e||"ol"===e)&&++t}r=r.parentPath}return t}let eaj=(e,t=4)=>{let r=[],n=e.split("\n").slice(1,-1),i=2*t;for(let e of n)r.push(e.slice(i));return r.join("\n")},{isIdentifier:eaB,isTemplateLiteral:eaR}=e5,ea$=e=>eaB(e,{name:"ul"});function eaU(e){if(!e||!eaR(e))return!1;let[t]=e.node.quasis;return"\n"===eaj(t.value.cooked)}let{isStringLiteral:eaV}=e5,{isStringLiteral:eaq}=e5,{isTemplateLiteral:eaK}=e5,eaJ=Lb([["-: -> !CallExpression"],["+: node.callee.name","=","paragraph"]]),{isCallExpression:eaz}=e5,{isCallExpression:eaW,isStringLiteral:eaX}=e5,eaH=eaL("`"),{isCallExpression:eaG}=e5,eaY={blockquote:(e,{maybe:t,write:r,traverse:n})=>{let i=e.get("arguments"),s=i.length-1;for(let[a,o]of(t.write.newline(e.getPrevSibling().node),i.entries())){let{callee:e}=o.node;if(r("> "),e&&"paragraph"===e.name){let e=o.get("arguments");for(let[t,i]of e.entries())!eaU(i)&&(n(i),eaU(e[t+1])&&(r.newline(),r("> ")))}else n(o);ea$(o)||t.write.newline(a<s),a<s&&(r(">"),r.newline())}t.write.newline(Lz(e))},bold:eaL("**"),italic:eaL("*"),strike:eaL("~~"),code:eaH,heading:function(e,{write:t,traverse:r}){let n=e.getPrevSibling(),[i,...s]=e.get("arguments");for(let e of(eaO(n)&&t.newline(),t("#".repeat(i.node.value)+" "),s))r(e);Lz(e)&&t.newline()},br(e,{write:t}){t(" \n")},html:(e,{write:t,maybe:r})=>{r.write.newline(e.getPrevSibling().node);let{node:n}=e.get("arguments")[0];if(eaV(n)){t(n.value),t.newline();return}let{quasis:i}=n,[s]=i,{cooked:a}=s.value;t(eaj(a)),t.newline()},link:(e,{write:t,traverse:r})=>{let n=e.get("arguments"),i=n.length,s=n.at(-1),a=i>=2&&n.at(-2),o=i-1,l=-1;eaq(s)&&eaq(a)&&i>=3&&(o=i-2,l=i-1);let u=n[o].node.value,c=l>=0?n[l].node.value:"";for(let e of(t("["),n.slice(0,o)))r(e);t(c?`](${u} "${c}")`:`](${u})`)},linkReference:(e,{write:t,traverse:r})=>{let n=e.get("arguments"),i=n.at(-1).node.value;for(let e of(t("["),n.slice(0,-1)))r(e);t(`][${i}]`)},imageReference:(e,{write:t})=>{let r=e.get("arguments"),n=r[0].node.value,i=r[1].node.value;t(`![${n}][${i}]`)},image:(e,{write:t})=>{let[r,n="",i=""]=(e=>{let t=[];for(let r of e)t.push(r.node.value);return t})(e.get("arguments"));t(i?`![${r}](${n} "${i}")`:`![${r}](${n})`)},definition:(e,{write:t})=>{let r=e.get("arguments"),n=r[0].node.value,i=r[1].node.value,s=r.length>=3?r[2].node.value:"";t(s?`[${n}]: ${i} "${s}"`:`[${n}]: ${i}`)},paragraph:(e,{print:t,traverse:r})=>{for(let t of e.get("arguments"))r(t);eaz(e.parentPath)||Lz(e)&&t.newline()},hr(e,{write:t}){t("---")},li(e,{write:t,traverse:r}){let n=e.get("arguments"),i=n.at(-1);if(i&&"BooleanLiteral"===i.node.type){for(let e of(t(i.node.value?"[x] ":"[ ] "),n.slice(0,-1)))r(e);return}for(let e of n)eaG(e)&&("ul"===e.node.callee.name||"ol"===e.node.callee.name)&&t.newline(),r(e)},ul:(e,{write:t,traverse:r,maybe:n})=>{let i=e.get("arguments"),s=eaF(e),a=" ".repeat(s),o=(e=>{let{callee:t}=e.parentPath.node;return eaM(t,{name:"blockquote"})})(e),{length:l}=i,u=l-1;for(let[e,s]of i.entries())n.write(e&&o,"> "),t(`${a}- `),r(s),(!o||e<u)&&t.newline()},ol:(e,{write:t,traverse:r})=>{let n=e.get("arguments"),i=eaF(e),s=" ".repeat(i),a=1;for(let e of n)t(`${s}${a++}. `),r(e),t.newline()},codeblock:(e,{write:t,maybe:r})=>{let[n,i]=e.get("arguments"),s=function(e){if(eaK(e)){let{quasis:t}=e.node,[r]=t;return eaj(r.value.cooked)}return e.node.value}(i);t("```"+n.node.value+"\n"+s+"\n```");let a=e.getNextSibling();r.print.newline(eaJ(a))},table:(e,{write:t,traverse:r,store:n,maybe:i})=>{let s=e.get("arguments"),a=[],o=0,[l]=s;if(l&&eaN(l)){let e=s[0].node.value;if(e)for(let t of e.split(","))a.push(t||null);o=1}let u=s[o].get("elements"),c=function(e){let t=[];for(let r of e){let[e]=r.get("arguments"),n=e.get("elements");for(let e=0;e<n.length;e++){let r=eaI(n[e]);(!t[e]||r>t[e])&&(t[e]=r)}}return t}(u);n(c);for(let e=0;e<u.length;e++)r(u[e]),!e&&a.length>0&&function(e,t,r){for(let[n,i]of(r("|"),e.entries())){let e=Math.max(t[n]+2,3);switch(i){case"left":r(":"),r("-".repeat(e));break;case"center":r(":"),r("-".repeat(e-1)),r(":");break;case"right":r("-".repeat(e)),r(":");break;default:r("-".repeat(e))}r("|")}r("\n")}(a,c,t);i.write.newline(Lz(e))},tr:(e,{write:t,traverse:r,store:n,maybe:i})=>{let[s]=e.get("arguments"),a=s.get("elements"),o=n();for(let[e,n]of(t("|"),a.entries())){if(t(" "),r(n),o){let r=function(e){let t=e.node.arguments,r=0;for(let e of t)r+=function e(t){if(eaX(t))return t.value.length;if(eaW(t)){let{name:r}=t.callee,[n]=t.arguments;if("code"===r)return 2+e(n);if("bold"===r)return 4+e(n);if("italic"===r)return 2+e(n);if("strike"===r)return 4+e(n);if("link"===r||"image"===r)return 1/0}return 0}(e);return r}(n),i=o[e]-r;i>0&&t(" ".repeat(i))}t(" |")}i.write.newline(Lz(e))},td:(e,{traverse:t})=>{for(let r of e.get("arguments"))t(r)},raw(e,{write:t}){t(e.get("arguments")[0].node.value)},yaml(e,{write:t}){let r=e.get("arguments")[0].node.quasis[0].value.raw;t("---\n"),t(r),t("\n---")}},eaQ={ArrayExpression:(e,{write:t,traverse:r})=>{let n=e.get("elements"),i=n.length-1;for(let[e,s]of n.entries())r(s),e<i&&t("\n")},CallExpression:(e,t)=>{let{name:r}=e.node.callee;if(!eaY[r])throw Error(`${r} not supported yet`);eaY[r](e,t)},StringLiteral:(e,{write:t})=>{t(e.node.value)},ExpressionStatement:(e,{print:t})=>{t("__expression")},TemplateLiteral:(e,{write:t})=>{for(let r of e.node.quasis)t(eaj(r.value.cooked))}},eaZ={}.hasOwnProperty,ea0={}.hasOwnProperty,ea1=[function(e,t,r,n){if("code"===t.type&&eif(t,n)&&("list"===e.type||e.type===t.type&&eif(e,n)))return!1;if("spread"in r&&"boolean"==typeof r.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&eiv(t,n)))return;return+!!r.spread}}],ea2=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],ea3=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:ea2},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:ea2},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ \r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:ea2},{atBreak:!0,character:"+",after:"(?:[ \r\n])"},{atBreak:!0,character:"-",after:"(?:[ \r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ \r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:ea2},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:ea2},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:ea2},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:ea2},{atBreak:!0,character:"~"}];function ea4(e){return e.label||!e.identifier?e.label||"":enO(e.identifier)}function ea5(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}let ea6=/\r?\n|\r/g;function ea8(e,t){let r,n=[],i=0,s=0;for(;r=ea6.exec(e);)a(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,s++;return a(e.slice(i)),n.join("");function a(e){n.push(t(e,s,!e))}}function ea9(e,t){return e-t}function ea7(e,t){let r,n=/\\(?=[!-/:-@[-`{-~])/g,i=[],s=[],a=e+t,o=-1,l=0;for(;r=n.exec(a);)i.push(r.index);for(;++o<i.length;)l!==i[o]&&s.push(e.slice(l,i[o])),s.push("\\"),l=i[o];return s.push(e.slice(l)),s.join("")}function eoe(e){let t=e||{},r=t.now||{},n=t.lineShift||0,i=r.line||1,s=r.column||1;return{move:function(e){let t=e||"",r=t.split(/\r?\n|\r/g),a=r[r.length-1];return i+=r.length-1,s=1===r.length?s+a.length:1+a.length+n,t},current:function(){return{now:{line:i,column:s},lineShift:n}},shift:function(e){n+=e}}}function eot(e){throw Error("Cannot handle value `"+e+"`, expected node")}function eor(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function eon(e,t){if("definition"===e.type&&e.type===t.type)return 0}function eoi(e,t){return function(e,t,r){let n,i=t.indexStack,s=e.children||[],a=[],o=-1,l=r.before;i.push(-1);let u=t.createTracker(r);for(;++o<s.length;){let c,p=s[o];if(i[i.length-1]=o,o+1<s.length){let r=t.handle.handlers[s[o+1].type];r&&r.peek&&(r=r.peek),c=r?r(s[o+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else c=r.after;a.length>0&&("\r"===l||"\n"===l)&&"html"===p.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),l=" ",(u=t.createTracker(r)).move(a.join("")));let h=t.handle(p,e,t,{...u.current(),after:c,before:l});n&&n===h.slice(0,1)&&(h=eig(n.charCodeAt(0))+h.slice(1));let d=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,n=void 0,d&&(a.length>0&&d.before&&l===a[a.length-1].slice(-1)&&(a[a.length-1]=a[a.length-1].slice(0,-1)+eig(l.charCodeAt(0))),d.after&&(n=c)),u.move(h),a.push(h),l=h.slice(-1)}return i.pop(),a.join("")}(e,this,t)}function eos(e,t){return function(e,t,r){let n=t.indexStack,i=e.children||[],s=t.createTracker(r),a=[],o=-1;for(n.push(-1);++o<i.length;){let r=i[o];n[n.length-1]=o,a.push(s.move(t.handle(r,e,t,{before:"\n",after:"\n",...s.current()}))),"list"!==r.type&&(t.bulletLastUsed=void 0),o<i.length-1&&a.push(s.move(function(e,t,r,n){let i=n.join.length;for(;i--;){let s=n.join[i](e,t,r,n);if(!0===s||1===s)break;if("number"==typeof s)return"\n".repeat(1+s);if(!1===s)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}(r,i[o+1],e,t)))}return n.pop(),a.join("")}(e,this,t)}function eoa(e,t){return function(e,t,r){let n=(r.before||"")+(t||"")+(r.after||""),i=[],s=[],a={},o=-1;for(;++o<e.unsafe.length;){let t,r=e.unsafe[o];if(!eip(e.stack,r))continue;let s=e.compilePattern(r);for(;t=s.exec(n);){let e="before"in r||!!r.atBreak,n="after"in r,s=t.index+(e?t[1].length:0);i.includes(s)?(a[s].before&&!e&&(a[s].before=!1),a[s].after&&!n&&(a[s].after=!1)):(i.push(s),a[s]={before:e,after:n})}}i.sort(ea9);let l=r.before?r.before.length:0,u=n.length-(r.after?r.after.length:0);for(o=-1;++o<i.length;){let e=i[o];!(e<l)&&!(e>=u)&&(!(e+1<u)||i[o+1]!==e+1||!a[e].after||a[e+1].before||a[e+1].after)&&(i[o-1]!==e-1||!a[e].before||a[e-1].before||a[e-1].after)&&(l!==e&&s.push(ea7(n.slice(l,e),"\\")),l=e,!/[!-/:-@[-`{-~]/.test(n.charAt(e))||r.encode&&r.encode.includes(n.charAt(e))?(s.push(eig(n.charCodeAt(e))),l++):s.push("\\"))}return s.push(ea7(n.slice(l,u),r.after)),s.join("")}(this,e,t)}function eoo(e){let t=this;t.compiler=function(r){var n;let i,s;return n={...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]},!function e(t,r){var n,i,s,a;let o,l=-1;if(r.extensions)for(;++l<r.extensions.length;)e(t,r.extensions[l]);for(o in r)if(ea0.call(r,o))switch(o){case"extensions":break;case"unsafe":case"join":n=t[o],(i=r[o])&&n.push(...i);break;case"handlers":s=t[o],(a=r[o])&&Object.assign(s,a);break;default:t.options[o]=r[o]}return t}(i={associationId:ea4,containerPhrasing:eoi,containerFlow:eos,createTracker:eoe,compilePattern:ea5,enter:function(e){return i.stack.push(e),function(){i.stack.pop()}},handlers:{...eiO},handle:void 0,indentLines:ea8,indexStack:[],join:[...ea1],options:{},safe:eoa,stack:[],unsafe:[...ea3]},n||{}),i.options.tightDefinitions&&i.join.push(eon),i.handle=function(e,t){let r=t||{};function n(t,...r){let i=n.invalid,s=n.handlers;if(t&&eaZ.call(t,e)){let r=String(t[e]);i=eaZ.call(s,r)?s[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}("type",{invalid:eot,unknown:eor,handlers:i.handlers}),(s=i.handle(r,void 0,i,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0}))&&10!==s.charCodeAt(s.length-1)&&13!==s.charCodeAt(s.length-1)&&(s+="\n"),s}}let eol=/\s*([a-zA-Z\d-]+)(\s+([\s\S]*))?\s*/,eou=RegExp("(\\s*\\/\\*"+eol.source+"\\*\\/\\s*)"),eoc=RegExp("(\\s*\x3c!--"+eol.source+"--\x3e\\s*)");function eop(e){var t,r;if((t=e)&&"object"==typeof t&&"type"in t&&("html"===e.type||"mdxFlowExpression"===e.type||"mdxTextExpression"===e.type)){let t=e.value.match("html"===e.type?eoc:eou);if(t&&t[0].length===e.value.length){let n,i=(r=t[3]||"",n={},r.replace(/\s+([-\w]+)(?:=(?:"((?:\\[\s\S]|[^"])*)"|'((?:\\[\s\S]|[^'])*)'|((?:\\[\s\S]|[^"'\s])+)))?/gi,function(e,t,r,i,s){let a=void 0===r?void 0===i?s:i:r,o=Number(a);return"true"===a||void 0===a?a=!0:"false"===a?a=!1:a.trim()&&!Number.isNaN(o)&&(a=o),n[t]=a,""}).replace(/\s+/g,"")?void 0:n);if(i)return{name:t[2],attributes:(t[4]||"").trim(),parameters:i,node:e}}}}function eoh(e,t){let r=e.indexOf("\r",t),n=e.indexOf("\n",t);return -1===n?r:-1===r||r+1===n?n:r<n?r:n}let eod={}.hasOwnProperty,eof=["comment","html","mdxFlowExpression","mdxTextExpression"];function eom(){var e;return e={name:"lint",source:"remark-lint"},function(t,r){!function(e,t){let r,n;if(!t||"object"!=typeof t)throw Error("Expected `options`");let{file:i,marker:s,name:a,test:o}=t,{enable:l,disable:u,known:c,reset:p,source:h}=t;if(l||(l=[]),u||(u=[]),!i)throw Error("Expected `file` in `options`");if(!s)throw Error("Expected `marker` in `options`");if(!a)throw Error("Expected `name` in `options`");let d="string"==typeof h?[h]:h||[a],f=(r=String(i),n=[],{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],t=eoh(r,e),i=-1===t?r.length+1:t+1;if(e===i)break;n.push(i)}let t=(e.line>1?n[e.line-2]:0)+e.column-1;if(t<n[e.line-1])return t}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=r.length){let t=0;for(;;){let i=n[t];if(void 0===i){let e=eoh(r,n[t-1]);i=-1===e?r.length+1:e+1,n[t]=i}if(i>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e};t++}}}}).toOffset,m=!p,y=function(e){let t=e&&e.position&&e.position.end&&e.position.end.offset,r=0,n=!1,i=[];return eiS(e,function(e){s(e.position&&e.position.start&&e.position.start.offset),"children"in e||s(e.position&&e.position.end&&e.position.end.offset)}),"number"==typeof t&&r!==t&&(s(),s(t)),i;function s(e){null==e?n=!0:r<e&&(n&&(i.push([r,e]),n=!1),r=e)}}(e),g={},b=[];function x(e,t,r){r&&(T(e,!1,t),T(r,!0,t))}function S(e,t){T(e,!1,t),t||(p=!0)}function v(e,t){T(e,!0,t),t||(p=!1)}function T(e,t,r){var n;let i,s=r?g[r]||(g[r]=[]):b;if(((i=(n=r)?g[n]:b)&&i.length>0?i[i.length-1].state:n?p?l.includes(n):!u.includes(n):!p)!==t&&s.push({state:t,point:e}),!r)for(r in g)eod.call(g,r)&&T(e,t,r)}function E(e,t,r){if(e.line&&e.column&&t&&t.length>0){let r=t.length;for(;r--;){let n=t[r];if(n.point&&(n.point.line<e.line||n.point.line===e.line&&n.point.column<=e.column))return!0===n.state}}return r?(e.ruleId,p?l.includes(e.ruleId):!u.includes(e.ruleId)):!!(m||p)}eiS(e,o,function(e,t,r){let n,o=e.position&&e.position.start,l=s(e);if(!o||!l||l.name!==a)return;let u=(n=String(l.attributes||"").trim())?n.split(/[ \t\n\r\f]+/g):[],p=u.shift(),h="enable"===p?v:"disable"===p?S:"ignore"===p?x:void 0;h||i.fail("Unknown keyword `"+p+"`: expected `'enable'`, `'disable'`, or `'ignore'`",e);let d=r&&void 0!==t&&r.children[t+1]||void 0,f=d&&d.position&&d.position.end;if(0===u.length)h(o,void 0,f);else{let t=-1;for(;++t<u.length;){let r=u[t];(function(e,t,r){let n=!c||c.includes(e);return n||i.message("Cannot "+t+" `'"+e+"'`, it’s not known",{ancestors:[r],place:r.position,ruleId:"known",source:"unified-message-control"}),n})(r,p,e)&&h(o,r,f)}}}),i.messages=i.messages.filter(function(e){var t=e;let r=y.length;if(!t.source||!d.includes(t.source))return!0;t.line||(t.line=1),t.column||(t.column=1);let n=f(t);for(;r--;)if(y[r][0]<=n&&y[r][1]>n)return!1;return(!t.ruleId||E(t,g[t.ruleId],!0))&&E(t,b,!1)})}(t,{...e,file:r,marker:eop,test:eof})}}var eoy=r(5127);function eog(e,t){let r="string"==typeof e?e:e.origin,n="string"==typeof e?void 0:e.url,i=r.split(":"),s=i[1]?i[0]:void 0,a=i[1];return Object.defineProperty(o,"name",{value:r}),o;function o(e){let[r,i]=function(e,t){if(Array.isArray(t)){let[r,n]=t;switch(r){case!1:case 0:case"off":return[0,n];case!0:case 1:case"on":case"warn":return[1,n];case 2:case"error":return[2,n];default:if("number"==typeof r)throw Error("Incorrect severity `"+r+"` for `"+e+"`, expected 0, 1, or 2")}}return[1,t]}(a,e),o=2===r;if(r)return function(e,r,l){let u=r.messages.length-1;etG(t,function(e){let t=r.messages;if(e&&!t.includes(e))try{r.fail(e)}catch{}for(;++u<t.length;)Object.assign(t[u],{fatal:o,ruleId:a,source:s,url:n});l()})(e,r,i)}}}let eob=eoS("end"),eox=eoS("start");function eoS(e){return function(t){let r=t&&t.position&&t.position[e]||{};if("number"==typeof r.line&&r.line>0&&"number"==typeof r.column&&r.column>0)return{line:r.line,column:r.column,offset:"number"==typeof r.offset&&r.offset>-1?r.offset:void 0}}}function eov(e,t){return e<3?"atx":"atx"===t||"setext"===t?t:void 0}function eoT(e){return"atx"===e?"ATX":"atx-closed"===e?"ATX (closed)":"setext"}function eoE(e){return'"'===e?'`"`':"'"===e?"`'`":"`'('` and `')'`"}let eok={plugins:[function(){this.use(eom)},[eog({origin:"remark-lint:blockquote-indentation",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-blockquote-indentation#readme"},function(e,t,r){let n;null==r||"consistent"===r||("number"==typeof r?n=r:t.fail("Unexpected value `"+r+"` for `options`, expected `number` or `'consistent'`")),enK(e,function(e,r){if(eiN(e))return"skip";if("blockquote"!==e.type)return;let i=eox(e),s=eox(e.children[0]);if(s&&i){let a=s.column-i.column;if(n){let i=n-a,o=Math.abs(i);0!==i&&t.message("Unexpected `"+a+"` "+eoy("space",a)+" between block quote marker and content, expected `"+n+"` "+eoy("space",n)+", "+(i>0?"add":"remove")+" `"+o+"` "+eoy("space",o),{ancestors:[...r,e],place:s})}else n=a}})}),"consistent"],[eog({origin:"remark-lint:checkbox-character-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-checkbox-character-style#readme"},function(e,t,r){let n,i,s,a,o=String(t);null==r||"consistent"===r||("object"==typeof r?("X"===r.checked||"x"===r.checked?n=r.checked:r.checked&&"consistent"!==r.checked&&t.fail("Unexpected value `"+r.checked+"` for `options.checked`, expected `'X'`, `'x'`, or `'consistent'`")," "===r.unchecked||" "===r.unchecked?s=r.unchecked:r.unchecked&&"consistent"!==r.unchecked&&t.fail("Unexpected value `"+r.unchecked+"` for `options.unchecked`, expected `'\\t'`, `' '`, or `'consistent'`")):t.fail("Unexpected value `"+r+"` for `options`, expected an object or `'consistent'`")),enK(e,function(e,r){if(eiN(e))return"skip";if("listItem"!==e.type)return;let l=e.children[0],u=eox(l);if(!l||!u||"boolean"!=typeof e.checked||"number"!=typeof u.offset)return;u.offset-=2,u.column-=2;let c=/\[([\t Xx])]/.exec(o.slice(u.offset-2,u.offset+1));if(!c)return;let p=c[1],h=" "===p?"\\t":p,d=e.checked?n:s;if(d)p!==d&&t.message("Unexpected "+(e.checked?"":"un")+"checked checkbox value `"+h+"`, expected `"+(" "===d?"\\t":d)+"`",{ancestors:[...r,e],cause:e.checked?i:a,place:u});else{let t=new et1((e.checked?"C":"Unc")+"hecked checkbox style `'"+h+"'` first defined for `'consistent'` here",{ancestors:[...r,e],place:u,ruleId:"checkbox-character-style",source:"remark-lint"});e.checked?(n=p,i=t):(s=p,a=t)}})}),"consistent"],[eog({origin:"remark-lint:code-block-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-code-block-style#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("indented"===r||"fenced"===r?i=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'fenced'`, `'indented'`, or `'consistent'`")),enK(e,function(e,r){if(eiN(e))return"skip";if("code"!==e.type)return;let a=eob(e),o=eox(e);if(!o||!a||"number"!=typeof o.offset||"number"!=typeof a.offset)return;let l=e.lang||/^ {0,3}([`~])/.test(s.slice(o.offset,a.offset))?"fenced":"indented";i?i!==l&&t.message("Unexpected "+l+" code block, expected "+i+" code blocks",{ancestors:[...r,e],cause:n,place:{start:o,end:a}}):(i=l,n=new et1("Code block style `'"+l+"'` first defined for `'consistent'` here",{ancestors:[...r,e],place:{start:o,end:a},source:"remark-lint",ruleId:"code-block-style"}))})}),"consistent"],[eog({origin:"remark-lint:emphasis-marker",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-emphasis-marker#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("*"===r||"_"===r?i=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'*'`, `'_'`, or `'consistent'`")),enK(e,"emphasis",function(e,r){let a=eox(e);if(a&&"number"==typeof a.offset){let o=s.charAt(a.offset);if("*"!==o&&"_"!==o)return;i?o!==i&&t.message("Unexpected emphasis marker `"+o+"`, expected `"+i+"`",{ancestors:[...r,e],cause:n,place:e.position}):(i=o,n=new et1("Emphasis marker style `'"+o+"'` first defined for `'consistent'` here",{ancestors:[...r,e],place:e.position,ruleId:"emphasis-marker",source:"remark-lint"}))}})}),"consistent"],[eog({origin:"remark-lint:fenced-code-marker",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-marker#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("`"===r||"~"===r?i=r:t.fail("Unexpected value `"+r+"` for `options`, expected ``'`'``, `'~'`, or `'consistent'`")),enK(e,function(e,r){if(eiN(e))return"skip";if("code"!==e.type)return;let a=eox(e);if(a&&"number"==typeof a.offset){let o=s.slice(a.offset,a.offset+4).replace(/^\s+/,"").charAt(0);if("`"!==o&&"~"!==o)return;i?o!==i&&t.message("Unexpected fenced code marker "+("~"===o?"`~`":"`` ` ``")+", expected "+("~"===i?"`~`":"`` ` ``"),{ancestors:[...r,e],cause:n,place:e.position}):(i=o,n=new et1("Fenced code marker style "+("~"===o?"`'~'`":"``'`'``")+" first defined for `'consistent'` here",{ancestors:[...r,e],place:e.position,ruleId:"fenced-code-marker",source:"remark-lint"}))}})}),"consistent"],[eog({origin:"remark-lint:heading-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-heading-style#readme"},function(e,t,r){let n,i;null==r||"consistent"===r||("atx"===r||"atx-closed"===r||"setext"===r?i=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'atx'`, `'atx-closed'`, `'setext'`, or `'consistent'`")),enK(e,function(e,r){if(eiN(e))return"skip";if("heading"!==e.type)return;let s=function(e){let t=eox(e),r=eob(e);if(t&&r)return{start:t,end:r}}(e),a=function(e,t){let r=e.children[e.children.length-1],n=e.depth,i=e.position&&e.position.end,s=r&&r.position&&r.position.end;if(i)return r?s&&s.line+1===i.line?"setext":s&&s.column+n<i.column?"atx-closed":eov(n,t):i.column-1<=2*n?eov(n,t):"atx-closed"}(e,i);a&&(i?s&&a!==i&&t.message("Unexpected "+eoT(a)+" heading, expected "+eoT(i),{ancestors:[...r,e],cause:n,place:s}):n=new et1("Heading style "+eoT(i=a)+" first defined for `'consistent'` here",{ancestors:[...r,e],place:s,ruleId:"heading-style",source:"remark-lint"}))})}),"consistent"],[eog({origin:"remark-lint:link-title-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-link-title-style#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("("===r?n="()":'"'===r||"'"===r||"()"===r?n=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'\"'`, `\"'\"`, `'()'`, or `'consistent'`")),enK(e,function(e,r){if("definition"===e.type||"image"===e.type||"link"===e.type){if(!e.title)return;let a=eob(e),o=a?a.offset:void 0;if(!o)return;"definition"!==e.type&&o--;let l=s.charCodeAt(o-1);for(;9===l||32===l;)o--,l=s.charCodeAt(o-1);let u=34===l?'"':39===l?"'":41===l?"()":void 0;u&&(n?u!==n&&t.message("Unexpected title markers "+eoE(u)+", expected "+eoE(n),{ancestors:[...r,e],cause:i,place:e.position}):i=new et1("Title marker style "+eoE(n=u)+" first defined for `'consistent'` here",{ancestors:[...r,e],place:e.position,ruleId:"link-title-style",source:"remark-lint"}))}})}),"consistent"],eog({origin:"remark-lint:list-item-content-indent",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-list-item-content-indent#readme"},function(e,t){let r,n=String(t);enK(e,function(e,i){let s;if(eiN(e))return"skip";if("listItem"!==e.type)return;let a=-1;for(;++a<e.children.length;){let o=e.children[a],l=eox(o);if(!l||"number"!=typeof l.offset)continue;let u=l.column;if(0===a&&"boolean"==typeof e.checked){let e=l.offset-1;for(;e>0&&91!==n.charCodeAt(e);)e--;u-=l.offset-e}if(s){if(u!==s){let n=s-u,a=Math.abs(n);t.message("Unexpected unaligned list item child, expected to align with first child, "+(n>0?"add":"remove")+" `"+a+"` "+eoy("space",a),{ancestors:[...i,e,o],cause:r,place:l})}}else s=u,r=new et1("Alignment of first child first defined here",{ancestors:[...i,e,o],place:l,ruleId:"list-item-content-indent",source:"remark-lint"})}})}),[eog({origin:"remark-lint:ordered-list-marker-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-style#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("."===r||")"===r?n=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'.'`, `')'`, or `'consistent'`")),enK(e,function(e,r){if(eiN(e))return"skip";if("listItem"!==e.type)return;let a=r.at(-1);if(!a||"list"!==a.type||!a.ordered)return;let o=eox(e);if(o&&"number"==typeof o.offset){let a=o.offset,l=s.charCodeAt(a);for(;erP(l);)a++,l=s.charCodeAt(a);let u=41===l?")":46===l?".":void 0;if(!u)return;let c={line:o.line,column:o.column+(a-o.offset),offset:o.offset+(a-o.offset)};n?u!==n&&t.message("Unexpected ordered list marker `"+u+"`, expected `"+n+"`",{ancestors:[...r,e],cause:i,place:c}):i=new et1("Ordered list marker style `"+(n=u)+"` first defined for `'consistent'` here",{ancestors:[...r,e],place:c,ruleId:"ordered-list-marker-style",source:"remark-lint"})}})}),"consistent"],[eog({origin:"remark-lint:ordered-list-marker-value",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-ordered-list-marker-value#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("one"===r||"ordered"===r||"single"===r?n=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'one'`, `'ordered'`, `'single'`, or `'consistent'`"));let a=[];if(enK(e,function(e,t){if(eiN(e))return"skip";if("list"!==e.type||!e.ordered)return;let r=[];for(let t of e.children){let e,n=eox(t);if(n&&"number"==typeof n.offset){let t=n.offset,r=s.charCodeAt(t);for(;erP(r);)t++,r=s.charCodeAt(t);e=s.slice(n.offset,t)}r.push(e)}a.push({ancestors:[...t,e],counters:r})}),!n)for(let e of a){let[t,r]=e.counters;if(t&&r){let s=r===String(Number(t)+1)?"ordered":r===t?"single":void 0;if(s){let t=e.ancestors.at(-1);t.type,i=new et1("Ordered list marker style `"+(n=s)+"` first defined for `'consistent'` here",{ancestors:e.ancestors,place:t.position,ruleId:"ordered-list-marker-value",source:"remark-lint"})}break}}for(let e of(n||(n="ordered",i=new et1("Ordered list marker style `ordered` assumed for `'consistent'`",{ruleId:"ordered-list-marker-value",source:"remark-lint"})),a)){let r="one"===n?1:e.counters[0],s=e.ancestors.at(-1);if(s.type,!r)continue;let a=Number(r),o=-1;for(;++o<e.counters.length;){let r=s.children[o],l=e.counters[o];if(!l)continue;let u=eox(r);u.offset;let c=String("one"===n?1:"single"===n?a:a+o);l!==c&&t.message("Unexpected ordered list item value `"+l+"`, expected `"+c+"`",{ancestors:[...e.ancestors,r],cause:i,place:{line:u.line,column:u.column+l.length,offset:u.offset+l.length}})}}}),"consistent"],[eog({origin:"remark-lint:rule-style",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-rule-style#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||(/[^-_* ]/.test(r)||" "===r.at(0)||" "===r.at(-1)||r.replaceAll(" ","").length<3?t.fail("Unexpected value `"+r+"` for `options`, expected thematic rule or `'consistent'`"):n=r),enK(e,function(e,r){if(eiN(e))return"skip";if("thematicBreak"!==e.type)return;let a=eob(e),o=eox(e);if(o&&a&&"number"==typeof o.offset&&"number"==typeof a.offset){let l={start:o,end:a},u=s.slice(o.offset,a.offset);n?u!==n&&t.message("Unexpected thematic rule `"+u+"`, expected `"+n+"`",{ancestors:[...r,e],cause:i,place:l}):i=new et1("Thematic rule style `"+(n=u)+"` first defined for `'consistent'` here",{ancestors:[...r,e],place:l,ruleId:"rule-style",source:"remark-lint"})}})}),"consistent"],[eog({origin:"remark-lint:strong-marker",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-strong-marker#readme"},function(e,t,r){let n,i,s=String(t);null==r||"consistent"===r||("*"===r||"_"===r?i=r:t.fail("Unexpected value `"+r+"` for `options`, expected `'*'`, `'_'`, or `'consistent'`")),enK(e,"strong",function(e,r){let a=eox(e);if(a&&"number"==typeof a.offset){let o=s.charAt(a.offset);if("*"!==o&&"_"!==o)return;i?o!==i&&t.message("Unexpected strong marker `"+o+"`, expected `"+i+"`",{ancestors:[...r,e],cause:n,place:e.position}):(i=o,n=new et1("Strong marker style `'"+o+"'` first defined for `'consistent'` here",{ancestors:[...r,e],place:e.position,ruleId:"strong-marker",source:"remark-lint"}))}})}),"consistent"],[eog({origin:"remark-lint:table-cell-padding",url:"https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-table-cell-padding#readme"},function(e,t,r){let n,i,s,a,o=String(t);function l(e,r,s){if(!r.size)return;let a=r.size[e];if(void 0===a)return;let o=s[r.column]-r.size.middle,l=+("compact"!==n),u=l;if("center"===r.align?u+=Math.ceil(o/2):("right"===r.align?"left"===e:"right"===e)&&(u+=o),0===r.size.middle){if("right"===e)return;u=Math.max(u,s[r.column]+2*l)}if(a<l||a>u){let n=l-a,s=Math.abs(n),o=u-a,c=Math.abs(o);t.message("Unexpected `"+a+"` "+eoy("space",a)+" between cell "+("left"===e?"edge":"content")+" and "+("left"===e?"content":"edge")+", expected "+(l===u?"":"between `"+l+"` (unaligned) and ")+"`"+u+"` "+(l===u?"":"(aligned) ")+eoy("space",u)+", "+(n<0?"remove":"add")+(n===o?"":" between `"+c+"` and")+" `"+s+"` "+eoy("space",s),{ancestors:r.ancestors,cause:i,place:"left"===e?r.size.leftPoint:r.size.rightPoint})}}function u(e,t,r){if(t&&e&&"number"==typeof t.offset&&"number"==typeof e.offset){let n,i,a=e.offset;if(124===o.charCodeAt(a))for(n=0,a++;32===o.charCodeAt(a);)n++,a++;let l=t.offset;if(r){for(;32===o.charCodeAt(l-1);)l--;l>a&&124===o.charCodeAt(l-1)?l--:l=t.offset}let u=l;if(124===o.charCodeAt(l))for(i=0;l-1>a&&32===o.charCodeAt(l-1);)i++,l--;let c=s?s(o.slice(a,l)):l-a;return{left:n,leftPoint:{line:e.line,column:e.column+(a-e.offset),offset:a},middle:c,right:i,rightPoint:{line:t.line,column:t.column-(t.offset-u),offset:u}}}}r&&"object"==typeof r?(s=r.stringLength,a=r.style):a=r,null==a||"consistent"===a||("compact"===a||"padded"===a?n=a:t.fail("Unexpected value `"+a+"` for `style`, expected `'compact'`, `'padded'`, or `'consistent'`")),enK(e,function(e,t){if(eiN(e))return"skip";if("table"!==e.type)return;let r=function(e){let t=e.at(-1);t.type;let r=t.align||[],n=[],i=-1;for(;++i<t.children.length;){let s=t.children[i],a=-1;for(;++a<s.children.length;){let t=s.children[a];n.push({align:r[a],ancestors:[...e,s,t],column:a,size:u(eox(t),eob(t),a===s.children.length-1)})}if(0===i){let t=function(e,t){let r=e.at(-1);r.type;let n=eob(r.children[0]);if(!n||"number"!=typeof n.offset)return;let i=n.offset;if(13===o.charCodeAt(i)&&i++,10!==o.charCodeAt(i))return;i++;let s=[],a=n.line+1,l=o.charCodeAt(i);for(;9===l||32===l||62===l;)i++,l=o.charCodeAt(i);if(45!==l&&58!==l&&124!==l)return;let c=o.indexOf("\n",i);-1===c&&(c=o.length),13===o.charCodeAt(c-1)&&c--;let p=0,h=i,d=o.indexOf("|",i+ +(124===l));for((-1===d||d>c)&&(d=c);h!==d;){let r=o.indexOf("|",d+1);if((-1===r||r>c)&&(r=c),r===c){let e=c,t=o.charCodeAt(e-1);for(;9===t||32===t;)e--,t=o.charCodeAt(e-1);d+1===e&&(d=c)}s.push({align:t[p],ancestors:e,column:p,size:u({line:a,column:h-i+1,offset:h},{line:a,column:d-i+1,offset:d},d===c)}),h=d,d=r,p++}return s}(e,r);t&&n.push(...t)}}return n}([...t,e]),s=[];for(let e of r)e.size&&(void 0===s[e.column]||e.size.middle>s[e.column])&&(s[e.column]=e.size.middle);if(!n){for(let e of r)if(e.size&&e.size.middle&&e.size.middle===s[e.column]){let t=e.ancestors.at(-1);i=new et1("Cell padding style `'"+(n=e.size.left?"padded":"compact")+"'` first defined for `'consistent'` here",{ancestors:e.ancestors,place:t.position,ruleId:"table-cell-padding",source:"remark-lint"})}}if(n){for(let e of r)l("left",e,s),l("right",e,s);return"skip"}})}),"consistent"]]},eow=eog("remark-lint:run",(e,t,r)=>{for(let{fix:n,traverse:i,report:s,name:a}of r.plugins){let o=[];for(let l of(i(e,{push:o.push.bind(o)}),o)){if(r.fix){n(l,e);continue}let i=s(l);t.message(`putout: ${a}: ${i}`,l)}}});function eoA({reason:e,line:t,column:r,source:n,ruleId:i}){let{message:s,rule:a}=function({reason:e,ruleId:t,source:r}){let[n,i,s]=e.split(": ");return"putout"===n?{rule:`${i} (${r})`,message:s}:{message:e,rule:`${t} (${r})`}}({reason:e,ruleId:i,source:n});return{message:s,rule:a,position:{line:t,column:r}}}let eoP={bullet:"-",listItemIndent:"one",fences:!0,tightDefinitions:!0,handlers:{text:({value:e})=>e}},eoC=["*.md"],eoI=async(e,t={})=>{let{plugins:r=[]}=t;if(!e.length)return[];let{messages:n}=await ers().use(enB).use(eok).use(eow,{fix:!1,plugins:r}).use(eoo,eoP).use(esk,["yaml","toml"]).process(e);return n.map(eoA)},eo_=async(e,t={})=>{let{plugins:r=[]}=t,{value:n}=await ers().use(enB).use(eok).use(eoo,eoP).use(esk,["yaml","toml"]).use(eow,{fix:!0,plugins:r}).process(e);return n},eoN=e=>{let t=[{startLine:0,source:qu(qT(eaw(eaA([eak(eaE(ers().use(enB).use(esp).use(esk,["yaml"]).parse(e).children.map(eab)))]))),qo),extension:"md"}];return ers().use(enB).use(eoO,{list:t,visit:eiS}).use(eoo).processSync(e),t},eoL=(e,t)=>{let[r,...n]=t,i=qT(EU(qc(r,qo)),{visitors:eaQ}),{value:s}=ers().use(enB).use(eoD,{list:n,rawSource:e,visit:eiS}).use(eoo,eoP).processSync(i);return s},eoO=({list:e,visit:t})=>r=>{t(r,"code",t=>{let{lang:r,value:n}=t,i=t.position.start.line;if(/^(js|javascript)$/.test(r))return void e.push({startLine:i,source:n,extension:"js"});if("jsx"===r)return void e.push({startLine:i,source:n,extension:"jsx"});if(/^(ts|typescript)$/.test(r))return void e.push({startLine:i,source:n,extension:"ts"});if("tsx"===r)return void e.push({startLine:i,source:n,extension:"tsx"});if("json"===r){let t=qu(n);e.push({startLine:i,source:t,extension:"json"})}})},eoD=({list:e,visit:t})=>r=>{t(r,"code",t=>{let{lang:r}=t;if(e.length){if(/^(jsx?|javascript)$/.test(r)||/^(tsx?|typescript)$/.test(r)){t.value=e.shift();return}"json"===r&&(t.value=qc(e.shift()).slice(0,-1))}})};var eoM=r(6740);let eoF=["*.json"],eoj=e=>[{source:qu(e)}],eoB=(e,t)=>{let[r]=t.filter(qp);return eoM(qc(r))},eoR=({source:e})=>e,eo$={json:eoV(eg),yaml:eoV(ed),toml:eoV(ef),markdown:eoV(ey)},eoU=e=>{let t=eo$[e];return t||{branch:eoq,merge:eoK}};function eoV(e){return{branch:t=>{let[r]=e.branch(t).map(eoR);return{ast:q4(r)}},merge:(t,r)=>{let n=qw(t,r);return e.merge("",[n])}}}function eoq(e){return{ast:q4(e,{isTS:!0})}}let eoK=(e,t)=>qw(e,t),eoJ=e=>e.endsWith(".json")?"json":/\.ya?ml$/.test(e)?"yaml":e.endsWith("toml")?"toml":e.endsWith("md")?"markdown":/\.[cm]?ts(x)?$/.test(e)?"typescript":"js",{join:eoz}=Kd,eoW=e=>e&&"object"==typeof e,{entries:eoX}=Object,eoH=(e,{message:t})=>t,eoG=e=>{let{filename:t}=e,r=e.files||e,n=e.exclude||[];return function(e){for(let[,t]of eoX(e))if(!eoW(t))throw Error(`☝️ Looks like provided to 'matchFiles()' typeof of plugin is not an 'object' but '${typeof t}'`)}(r),{fix:eoY,scan:eoQ({defaultFilename:t,files:r,exclude:n}),report:eoH}};function eoY(e,{dirPath:t,matchInputFilename:r,inputFilename:n,outputFilename:i,ast:s,options:a,rawOptions:o}){let[l]=(0,q0.T)(HF,s,a);if(l)throw Error(`${n}: ${l.message}`,{cause:l});let u=function(e,t,r){let{merge:n}=eoU(eoJ(e));return n(t,r)}(i,s,o),c=function({dirPath:e,matchInputFilename:t,outputFilename:r,inputFile:n}){if(t===r)return n;let i=eoz(XX(e),r),[s]=Xz(e,i);return s||X3(e,r)}({dirPath:t,matchInputFilename:r,outputFilename:i,inputFile:e});X9(c,u),e!==c&&XQ(e)}let eoQ=({files:e,exclude:t,defaultFilename:r})=>(n,{push:i,progress:s,options:a})=>{let o=[],l=XX(n);for(let[i,s]of(a.filename=a.filename||r,eoX(e))){let[e]=eoZ(i,a);for(let r of Xz(n,e,t)){let e=XK(r),t=XX(r),[n,u=n]=eoZ(i,{filename:t});GJ(l,t,a)||o.push({dirPath:e,matchInputFilename:n,rawOptions:s,inputFile:r,inputFilename:t,outputFilename:u})}}let u=o.length;for(let[e,t]of o.entries()){var c,p;let{dirPath:r,matchInputFilename:n,inputFile:a,inputFilename:o,outputFilename:l,rawOptions:h}=t;s({i:e,n:u});let{ast:d}=function(e,t){let{branch:r}=eoU(eoJ(e));return r(t)}(o,X8(a)||"{}"),f=(c=o,(p=h).plugins?p:{plugins:[[`match-file: ${c}`,p]]}),[m,y]=(0,q0.T)(G$,d,f);if(m)throw Error(`${o}: ${m.message}`,{cause:m});if(!y.length)continue;let{message:g}=y[0];i(a,{dirPath:r,matchInputFilename:n,inputFilename:o,outputFilename:l,message:g,options:f,rawOptions:h,ast:d})}};function eoZ(e,t){let{filename:r}=t;if(!r)return e.split(" -> ");let{ext:n,name:i}=Kd.parse(r);return(e=(e=e.replaceAll("__name",i)).replaceAll("__ext",n)).split(" -> ")}let{parse:eo0}=JSON,eo1=(e,{from:t,to:r})=>`Rename '${t}' to '${r}'`,eo2=(e,{to:t})=>{XY(e,t)},eo3=({type:e,mask:t,rename:r}={})=>(n,{push:i,trackFile:s})=>{for(let a of s(n,t)){if(e&&!function(e,t){let r=function(e){let t,r=XK(e);do{let e=XX(r);[t]=Xz(r,(0,Kd.join)(e,"package.json"))}while(!t&&(r=XK(r)))return t}(t);if("commonjs"===e&&!r)return!0;if(!r)return!1;let n=X8(r);return!!n&&(eo0(n).type||"commonjs")===e}(e,a))continue;let t=XX(a),n=r(t);i(a,{from:t,to:n})}},eo4=(e,{mask:t,from:r,to:n})=>t?`Rename '${t}' to '${t.replace(r,n)}'`:`Rename '${r}' to '${n}'`,eo5=(e,{from:t,to:r})=>{let n=XX(e).replace(t,r);XY(e,n)},eo6=e=>(t,{push:r,options:n,trackFile:i})=>{let s=n.from||e.from,a=n.to||e.to,o=n.mask||e.mask,l=n.near||e.near,u=l?eo8(l):()=>!0;if(!s||!a)return{};for(let e of i(t,o||s).filter(u))r(e,{from:s,to:a,mask:o})},eo8=e=>t=>{for(let r of X5(XK(t))){if("file"!==XH(r))continue;let t=XX(r);if((0,Kd.basename)(t)===e)return!0}return!1},eo9=({type:e,mask:t,rename:r,from:n,to:i,near:s}={})=>{if(r){let{z8:n,Up:i,ek:s}=eb;return{report:n,fix:i,scan:s({type:e,mask:t,rename:r})}}let{z8:a,Up:o,ek:l}=ex;return{fix:o,report:a,scan:l({mask:t,from:n,to:i,near:s})}};var eo7=r(5157);let{stringLiteral:ele}=e5,elt=({node:e})=>e.value,elr=({name:e,property:t,list:r,type:n=qa})=>({report:eli(e),fix:els,traverse:ela({type:n,property:t,list:r})}),eln=e=>`'${e}'`,eli=e=>({name:t,matchedElements:r})=>{let n="";if(r.length){let e=r.map(elt).map(eln).join(", ");n=` instead of ${e}`}return`Add '${t}'${n} to '${e}'`},els=({path:e,name:t,matchedElements:r})=>{e.node.elements.push(ele(t)),r.map(FH)},ela=({type:e,property:t,list:r})=>({push:n,options:i})=>{let{dismiss:s=[]}=i,a=function(e,t){let r=[];for(let n of e)t.includes(n)||r.push(n);return r}([...r,...i.list||[]],s);return a.length?{[e]:e=>{let[r,i]=function(e,{property:t}){if(!t){let[t]=e.get("arguments");return[t,t.get("elements")]}let[r]=F9(e,t);if(!r)return[null,ell];let n=r.get("value");return[n,n.get("elements")]}(e,{property:t});if(!r)return;let s=i.map(elt);for(let e of new Set(a).difference(new Set(s))){let t=eo7(e),s=[];for(let e of i.filter(elo)){let{value:r}=e.node;t(r)&&s.push(e)}n({path:r,matchedElements:s,elements:i,name:e})}}}:{}},elo=({node:e})=>!!e,ell=[],{parenthesizedExpression:elu,tsParenthesizedType:elc}=e5,elp=e=>{let t=eld(e);if(elf(e,t))return e;if("babel"!==t){let{extra:t={}}=e.node;return t.parenthesized=!0,e.node.extra=t,e}let{node:r}=e;return e.type.startsWith("TS")?e.replaceWith(elc(r)):(e.replaceWith(elu(r)),e)},elh=e=>{let t=eld(e);if(!elf(e,t))return e;if("babel"!==t)return e.node.extra.parenthesized=!1,e;let{node:r}=e;return e.parentPath.replaceWith(r),e};function eld(e){return e.scope.getProgramParent().path.node.extra.__putout_printer}function elf(e,t=eld(e)){if("babel"!==t)return e.node.extra?.parenthesized;let{type:r}=e.parentPath;return/^(TS)?Parenthesized(Expression|Type)?$/.test(r)}let elm=(e,t)=>{let r=XK(e);if(!r)return null;let[n]=Ht(r,t,{type:"file"});return n||elm(r,t)},{stringLiteral:ely,isArrayExpression:elg}=e5,elb=({name:e,property:t,type:r=qa})=>({report:elx({name:e,property:t}),fix:elS,traverse:elv({type:r,property:t})}),elx=({name:e,property:t})=>()=>t?`Sort '${t}' section of '${e}'`:`Sort '${e}'`,elS=({path:e,sortedElements:t})=>{e.node.elements=t},elv=({type:e,property:t})=>({push:r})=>({[e]:e=>{let n=function(e,{property:t}){if(!t){let[t]=e.get("arguments");return t.node.elements?t:null}let[r]=F9(e,t);if(!r)return null;let n=r.get("value");return elg(n)?n:null}(e,{property:t});if(!n)return;let{elements:i}=n.node,s=function(e,{separate:t}){let r=[],n=[];for(let t of e){let{value:e}=t;if(e.startsWith("**/")){r.push(t);continue}n.push(t)}let i=[...elT(r,{separate:t}),...elT(n,{separate:t})];return i.length?i.at(-1).value?i:i.slice(0,-1):e}(i,{separate:!t});for(let[e,{value:t}]of i.entries())if(s[e].value!==t){r({path:n,sortedElements:s});break}}});function elT(e,{separate:t}={}){let r=[],n=[],i=[],s=[],a=[];for(let t of e){let e=elk(t);if(e){if(e.startsWith("*")){r.push(t);continue}if(e.startsWith(".")){n.push(t);continue}if(e.startsWith("!")){a.push(t);continue}if(e.includes(".")){i.push(t);continue}e.startsWith("#")||s.push(t)}}return[r,n,i,s,a].flatMap(elE({separate:t}))}let elE=({separate:e}={})=>t=>e?t.length?[...t,ely("")]:[]:t,elk=({value:e})=>e?e.startsWith("**/")?e.slice(3):e:"",elw=e=>({report:elA,fix:elP,traverse:elC(e)}),elA=({name:e})=>`Sort '${e}'`,elP=({sortedPath:e})=>{e.node.value.properties.sort(elN)},elC=e=>({push:t})=>({[qt]:r=>{let[n]=F9(r,"rules"),i=n.node.value.properties.map(elI),s=i.toSorted(el_);!function(e,t){for(let[r,n]of e.entries())if(n!==t[r])return!1;return!0}(i,s)&&t({name:e,path:r,sortedPath:n})}}),elI=e=>e.key.value,el_=(e,t)=>e.localeCompare(t),elN=(e,t)=>el_(e.key.value,t.key.value),{isArray:elL}=Array,elO=e=>elL(e)?e:[e],elD=e=>`Remove files: '${XX(e)}'`,elM=e=>{XQ(e)},elF=e=>({report:elD,fix:elM,scan:elj(e)}),elj=(e=[])=>(t,{push:r,trackFile:n,options:i})=>{let{names:s,dismiss:a}=i,o=[elO(e),elO(s)],l=o.flat().filter(Boolean);if(l.length){for(let e of n(t,new Set(l).difference(new Set(a))))r(e,{names:o})}},elB=e=>({report:elR,fix:el$,traverse:elU(e)}),elR=({from:e,to:t})=>`Rename property: '${e}' -> '${t}'`,el$=({path:e,to:t})=>{t?F4(e.node.key,t):FH(e)},elU=e=>({push:t})=>({[qt](r){for(let[n,i]of e)for(let e of F9(r,n))t({path:e,from:n,to:i})}}),elV={instrumentName:"PUTOUT_INSTRUMENT"},elq=(e,t={})=>{let{create:r=Lb}=t;return r(e,elV)},elK=({source:e,error:t,highlightCode:r=!0})=>{let{message:n,loc:i}=t;return i?E1(e,{start:i},{highlightCode:r,message:n}):n};Object.assign((e,t)=>{HR(e);let{parser:r,isTS:n,isJSX:i,printer:s}=t=HD(t),a=q4(e,{parser:r,isTS:n,isJSX:i,printer:s}),o=HF(a,t);return t.fix?{code:qw(a,{printer:s,source:e}),places:o}:{code:e,places:o}},ev);let{isJSXElement:elJ}=e5,{hasTagName:elz,removeClassName:elW}=eS,elX=()=>"Unselect all submenu items",elH=e=>{elW(e,"menu-item-selected")},elG=({push:e,options:t})=>({JSXElement(r){let{showSubmenu:n}=t;n||!elz(r,"li")||elJ(r.parentPath.parentPath.parentPath)&&e(r)}}),{getAttributeValue:elY,hasTagName:elQ,removeClassName:elZ,containsClassName:el0}=eS,el1=()=>"Unselect wrongly selected",el2=e=>{elZ(e,"menu-item-selected")},el3=({push:e,options:t})=>({JSXElement(r){let{index:n=1,command:i}=t;"hide"===i||!elQ(r,"li")||elQ(r.parentPath.parentPath,"li")||!el0(r,"menu-item-selected")||n!==Number(elY(r,"data-menu-index"))&&e(r)}}),{hasTagName:el4,removeClassName:el5,hasDataName:el6,containsClassName:el8}=eS,el9="menu-submenu-show",el7=()=>"Hide submenu",eue=e=>{el5(e,el9)},eut=({push:e,options:t})=>({JSXElement(r){let{name:n="menu",showSubmenu:i}=t,{parentPath:s}=r;if(!i&&el4(r,"li")){if(!el6(s,n))return!1;el8(r,el9)&&e(r)}}}),{hasTagName:eur,removeClassName:eun,addClassName:eui,hasDataName:eus,containsClassName:eua}=eS,{isJSXElement:euo}=e5,eul=({insideSubmenu:e})=>`${e?"Show":"Hide"} submenu`,euu=({path:e,prev:t,next:r,insideSubmenu:n})=>{(eup(t),eup(r),n)?eui(e,"menu-item-selected"):eun(e,"menu-item-selected")},euc=({options:e,push:t})=>({JSXElement(r){if(!eur(r,"li")||!euo(r.parentPath))return;let{insideSubmenu:n=!0,submenuIndex:i=1}=e;if(!euo(r.parentPath.parentPath.parentPath)||!eua(r.parentPath.parentPath,"menu-item-selected")||!eus(r.parentPath,"menu"))return;let s=r.parentPath.get("children").filter(euo),a=s[i-1],o=s[i],l=s[i+1];o&&t({path:o,insideSubmenu:n,prev:a,next:l})}});function eup(e){e&&eun(e,"menu-item-selected")}let{setAttributeValue:euh,getAttributeValue:eud,getAttributePath:euf,hasDataName:eum}=eS,{stringLiteral:euy,jsxIdentifier:eug,jsxAttribute:eub}=e5,eux=()=>"Set position",euS=({path:e,attr:t,x:r,y:n})=>{let i=`left: ${r}px; top: ${n}px;`;if(t)return void euh(e,"style",i);let{attributes:s}=e.node.openingElement,a=eub(eug("style"),euy(i));s.push(a)},euv=({options:e,push:t})=>({JSXElement(r){let{name:n="menu",position:i={}}=e,{x:s=0,y:a=20}=i;if(!eum(r,n))return;let o=eud(r,"style");if(!o)return void t({path:r,x:s,y:a});let[l,u]=function(e){let[t,r]=e.split(/;|left|\s|:|top|px/).filter(Boolean);return[Number(t),Number(r)]}(o);if(s===l&&a===u)return;let c=euf(r,"style");t({path:r,attr:c,x:s,y:a})}}),{jsxText:euT}=e5,{setAttributeValue:euE,hasDataName:euk,addClassName:euw}=eS,{entries:euA}=Object,euP=e=>e&&"object"==typeof e,euC=()=>"Build menu",euI=Kp(`
115
+ <li data-name="menu-item" data-menu-index="" className="menu-item" data-menu-path="">
116
+ <label data-menu-path="">NAME</label>
117
+ </li>
118
+ `),eu_=Kp(`
119
+ <ul data-name="menu" className="menu menu-hidden"></ul>
120
+ `),euN={hello:null,world:null},euL=euT("\n"),euO=euT(" "),euD=({path:e,menu:t,icon:r,name:n=""})=>{let{children:i}=e.node,s=0;for(let[a,o]of euA(t)){let t=euI();t.children[1].children[0].value=a,r&&function(e,t){euw(t,`icon ${"icon-"+e.replace(/[()]/g,"").replace(/\s/g,"-").toLowerCase()}`)}(a,t),euE(t,"data-menu-index",s++),euF(a,n,t),euF(a,n,t.children[1]),i.push(euO,t),euP(o)&&(euw(t,"menu-submenu"),t.children.push(eu_()),euD({path:e.get("children").at(-1).get("children.3"),icon:r,menu:o,name:a}))}i.push(euL)},euM=({options:e,push:t})=>({JSXElement(r){let{name:n="menu",menu:i=euN,icon:s=!1}=e;!euk(r,n)||r.node.children.length||t({path:r,menu:i,icon:s})}});function euF(e,t,r){euE(r,"data-menu-path",t?`${t}.${e}`:e)}let{containsClassName:euj,hasDataName:euB,addClassName:euR,removeClassName:eu$}=eS,euU=({command:e})=>{let[t,...r]=e;return`${t.toUpperCase()}${r.join("")} menu`},euV=({path:e,command:t})=>{"show"===t?eu$(e,"menu-hidden"):euR(e,"menu-hidden")},euq=({push:e,options:t})=>({JSXElement(r){let{name:n,command:i}=t;if(!euB(r,n))return;let s=!euj(r,"menu-hidden");("show"===i&&!s||"hide"===i&&s)&&e({command:i,path:r})}}),{isJSXElement:euK}=e5,{hasTagName:euJ,addClassName:euz,hasDataName:euW,removeClassName:euX,hasAttributeValue:euH,containsClassName:euG,getAttributeValue:euY}=eS,euQ="menu-item-selected",euZ="menu-submenu-show",eu0=()=>"Select item",eu1=({path:e,prev:t,next:r,showSubmenu:n})=>{euz(e,euQ),function(e,{showSubmenu:t}){!euY(e,"data-menu-path").includes(".")&&euG(e,"menu-submenu")&&t&&euz(e,euZ)}(e,{showSubmenu:n}),euX(t,euQ),euX(r,euQ),euX(r,euZ),euX(t,euZ)},eu2=({options:e,push:t})=>({JSXElement(r){let{name:n="menu",index:i=1,showSubmenu:s,insideSubmenu:a}=e;if(i<0||!euJ(r,"li"))return;let{parentPath:o}=r;if(!euK(o)||!euW(o,n)||!a&&!euH(r,"data-menu-index",String(i))||!a&&euG(r,"menu-item-selected"))return;let l=o.get("children").filter(euK),u=l[i-1],c=l[i],p=l[i+1];c&&t({path:c,prev:u,next:p,showSubmenu:s})}}),{hasTagName:eu3,removeClassName:eu4,hasDataName:eu5,containsClassName:eu6}=eS,{isJSXElement:eu8}=e5,eu9="menu-item-selected",eu7=()=>"Unselect all",ece=e=>{eu4(e,eu9)},ect=({push:e,options:t})=>({JSXElement(r){let{index:n,name:i="menu",command:s}=t;if("hide"!==s&&-1===n&&eu3(r,"li")&&eu8(r.parentPath)&&eu5(r.parentPath,i))for(let t of r.parentPath.get("children").filter(eu8))eu6(t,eu9)&&e(t)}}),ecr={menu:eC,"build-menu":eP,"set-position":eA,select:eI,"unselect-all":e_,submenu:ew,"hide-submenu":ek,"unselect-wrongly-selected":eE,"unselect-all-submenu-items":eT},{assign:ecn}=Object,{stringify:eci,parse:ecs}=JSON,eca=e=>!Number.isNaN(e)&&"number"==typeof e,eco=(e=[])=>({key:t})=>{if(/F\d/.test(t))return e=[],[""];if("^"===t)return["^"];if("$"===t)return["$"];if(!e.length&&"g"===t)return e.push("g"),[""];if(!e.length&&/\d/.test(t))return e.push(Number(t)),[""];e.length||"j"!==t||e.push(1),e.length||"k"!==t||e.push(1);let[r]=e;return eca(r)&&"j"===t?(e=[],["j",r]):eca(r)&&"k"===t?(e=[],["k",r]):"g"===r&&"g"===t?(e=[],["gg"]):(e=[],[""])},ecl=({name:e})=>document.querySelector(`[data-name="${e}"]`),ecu=({events:e})=>e||["keydown"],ecc=({name:e})=>e,ecp=({options:e,addon:t,readState:r,writeState:n,parseVim:i=eco()})=>s=>{let{preventDefault:a,stopPropagation:o,after:l,afterIf:u}=t,[c,p]=((e,{event:t,parseVim:r})=>{let{keys:n,commands:i}=e;if(n&&!n.includes(t.key))return[!1];let[s,a]=r(t);return i&&!i.includes(s)?[!1]:[!0,a]})(t,{event:s,parseVim:i});if(!c)return!1;let h=r();if(!((e,{state:t,event:r,options:n})=>!e.filter||e.filter({state:t,event:r,options:n}))(t,{event:s,state:h,options:e}))return;a&&s.preventDefault(),o&&s.stopPropagation();let d=((e,{count:t,state:r,event:n,options:i})=>e.listener({count:t,event:n,state:r,options:i}))(t,{count:p,event:s,state:h,options:e});n(d);let f=!u||u({state:d,options:e});l&&f&&requestAnimationFrame(()=>{n(l({event:s,state:d,options:e}))})},ech=["input","img","br","hr","meta","link","col","area","base"],ecd=(e,t,r)=>{let n="";if("string"==typeof t&&t.length>2){let e=t.slice(2).split("")[0];n=e?e.toUpperCase():""}return`on${n}${t&&t.length>3?t.slice(3):""}={${r}}`},ecf=function(e,t){var r;return r=e=e.replace(/<!DOCTYPE html>|<!DOCTYPE>/gi,""),e=(e=(e=(e=(e=(e=(e=(e=(e=`<div>${r}</div>`).replaceAll(RegExp(`<(${ech.join("|")})(?=[s>/])([^>]*)s*/?>`,"gi"),(e,t,r)=>`<${t}${r||""}/>`).replace(/\/\/>/g,"/>")).replaceAll(/(\bon\w+)=['"]([^'"]+)['"]/g,ecd)).replaceAll(/class=/g,"className=")).replaceAll(/<!--[\s\S]*?-->/g,"")).replaceAll("</img>","")).replaceAll(/style\s*=\s*(".*?")/gi,(e,t)=>`style={${function(e){let t=e.replace(/['"]/g,"").trim();if(!t)return"{}";let r=t.split(";").filter(e=>e.trim()).map(e=>{let[t,r]=e.split(":").map(e=>e.trim());if(!t||!r)return"";let n=t.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());return`${n}: "${r}"`}).filter(Boolean);return`{${r.join(", ")}}`}(t)}}`)).replaceAll('xmlns:xlink="http://www.w3.org/1999/xlink"',"")).replace(/for=/gi,"htmlFor=").replace(/\b(autocomplete)\b/gi,"autoComplete").replace(/\b(tabindex)\b/ig,"tabIndex").replace(/\b(stroke-width)\b/ig,"strokeWidth").replace(/\b(stroke-linejoin)\b/ig,"strokeLinejoin").replace(/\b(stroke-linecap)\b/ig,"strokeLinecap")},{entries:ecm}=Object;function ecy(e){let t=document.elementFromPoint(e.clientX,e.clientY),{menuPath:r}=t.dataset;return(r||(t=t.querySelector("[data-menu-path]")),r)?t.dataset.menuPath:""}let ecg=["click"],ecb=!0,ecx=({event:e,state:t,options:r})=>{let{menu:n,getMenuPath:i=ecy}=r;if("hide"===t.command)return!1;let s=i(e);return!s||"function"==typeof Ln(s,n)},ecS=({options:e,state:t})=>(e.beforeHide?.(t),{command:"hide",index:-1,showSubmenu:!1,insideSubmenu:!1}),ecv=["Escape"],ecT=({state:e,options:t})=>(t.beforeHide?.(e),{command:"hide",showSubmenu:!1,index:-1});function ecE({index:e,options:t}){let{menu:r}=t,n=Object.keys(r)[e],i=r[n];return i&&"object"==typeof i?i:{}}let eck=["ArrowDown"],ecw=!0,ecA=({state:e})=>"show"===e.command,ecP=({state:e,options:t})=>{let{index:r,insideSubmenu:n,submenuIndex:i}=e,{menu:s,infiniteScroll:a}=t,o=Object.keys(s).length-1;!n&&(a&&r===o||r<o)&&++r,!n&&a&&r>o&&(r-=o+1);let l=Object.keys(ecE({index:r,options:t})).length-1;return n&&(i<l?++i:a&&i===l&&(i=0)),{index:r,submenuIndex:i,showSubmenu:l>-1}},ecC=["ArrowUp"],ecI=!0,ec_=({state:e})=>"show"===e.command,ecN=({state:e,options:t})=>{let{menu:r,infiniteScroll:n}=t,{index:i,insideSubmenu:s,submenuIndex:a}=e,o=Object.keys(r).length;s&&a>0&&--a,n&&!i?i=o-1:!s&&i>0&&--i,-1===i&&(i=o-1);let l=Object.keys(ecE({index:i,options:t})).length;return{index:i,submenuIndex:a,showSubmenu:l>0}},{values:ecL}=Object,ecO=["ArrowRight","l"],ecD=!0,ecM=({state:e,options:t})=>{let{index:r}=e;return Object.keys(ecE({index:r,options:t})).length},ecF=()=>({submenuIndex:0,insideSubmenu:!0,showSubmenu:!0}),ecj=["Enter"],ecB=({state:e})=>"show"===e.command,ecR=!0,ec$=!0,ecU=({options:e,state:t})=>{let[r]=(({options:e,state:t})=>{let{index:r,submenuIndex:n}=t,{menu:i}=e,s=ecL(i)[r];return s&&"object"==typeof s&&-1===n?[!1]:s&&"object"==typeof s?[!0,setTimeout(ecL(s)[n])]:[!0,setTimeout(s)]})({options:e,state:t});return r?(e.beforeHide?.(t),{command:"hide",index:-1,insideSubmenu:!1}):ecF()},ecV=["ArrowLeft","h"],ecq=!0,ecK=({state:e})=>"show"===e.command,ecJ=()=>({submenuIndex:-1,insideSubmenu:!1,showSubmenu:!1}),ecz=["G","$"],ecW=({state:e})=>"show"===e.command,ecX=!0,ecH=({state:e,options:t})=>{let{menu:r}=t,{index:n,insideSubmenu:i,submenuIndex:s}=e,a=Object.values(r),o=Object.keys(ecE({index:n,options:t})).length;return i?s=o-1:n=a.length-1,{index:n,submenuIndex:s,showSubmenu:o>0}},{filter:ecG}=eD,ecY=["gg","^"];function ecQ({state:e,options:t}){let{insideSubmenu:r,index:n,submenuIndex:i}=e;return ecN({state:{...e,index:r?n:1,submenuIndex:r?1:i},options:t})}let{filter:ecZ}=eO,ec0=["j"];function ec1({count:e,state:t,options:r}){let{menu:n,infiniteScroll:i}=r,{index:s,insideSubmenu:a,submenuIndex:o}=t,l=Object.keys(n).length,u=Object.keys(ecE({index:s,options:r})).length,c=a?s:s+e,p=a?o+e:o;return c>l-1&&(c=i?0:l-1),i&&p===u?p=0:p>u-1&&(p=u-1),{index:c,submenuIndex:p,showSubmenu:u>-1}}let{filter:ec2}=eD,ec3=["k"];function ec4({count:e,state:t,options:r}){let{insideSubmenu:n,index:i,submenuIndex:s}=t,a=n?i:i-e+1,o=n?s-e+1:s,{infiniteScroll:l}=r;return a<=0&&(a=l?-1:0),o<-1&&(o=-1),ecN({state:{...t,index:a,submenuIndex:o},options:r})}let ec5=[eN,eL,eO,eD,eF,ej,eM,eB,eR,e$,eU],ec6=({event:e,state:t,options:r})=>{if("show"!==t.command)return;let{getMenuPath:n=ecy,menu:i}=r;return"function"==typeof Ln(n(e),i)},ec8=({event:e,state:t,options:r})=>{let{menu:n,getMenuPath:i=ecy}=r;return setTimeout(Ln(i(e),n)),r.beforeHide?.(t),{index:-1,command:"hide",showSubmenu:!1}},ec9=["contextmenu"],ec7=({event:e,state:t,options:r})=>{let{beforeShow:n}=r,{x:i,y:s}={x:e.clientX,y:e.clientY};return{command:!n||n?.({...t,position:{x:i,y:s}})?"show":"hide",showSubmenu:!1,position:{x:i,y:s-14}}},epe=({event:e,options:t})=>{let{name:r}=t;return((e,t)=>{let r=document.querySelector(`[data-name="${e}"]`),n=function(e){let{height:t}=getComputedStyle(e);return parseInt(t,10)}(r),i=function(e){let{width:t}=getComputedStyle(e);return parseInt(t,10)}(r),{innerHeight:s,innerWidth:a}=globalThis,{x:o,y:l}=function(e,t){let{clientX:r,clientY:n}=e,{heightMenu:i,widthMenu:s,innerHeight:a,innerWidth:o}=t;return o<s+r+r/2&&(r-=s)<0&&(r=0),a<i+n&&(n-=i)<0&&(n=0),{x:r,y:n-14}}(t,{heightMenu:n,widthMenu:i,innerWidth:a,innerHeight:s});return r.style.left=`${o}px`,r.style.top=`${l}px`,{position:{x:o,y:l}}})(r,e)},ept=({state:e})=>"show"===e.command,{assign:epr}=Object,epn=(e,t,r)=>{t.name=t.name||"menu";let{name:n}=t,i=function(e){let t=epi(e);if(t)return t;let r=document.createElement("section");return r.dataset.name=`aleman-hydrate-${e}`,r.innerHTML=`<ul data-name="${e}" class="menu menu-hidden"></ul>`,document.body.append(r),r}(n);return function(){let e="aleman-menu-style";if(epi(e))return;let t=document.createElement("style");t.dataset.name=e,t.textContent=".menu-hidden {\n display: none;\n}\n\n.menu {\n position : absolute;\n z-index : 2;\n padding : 0;\n font-size : 14px;\n list-style : none;\n color : #222;\n background : rgb(255 255 255 / 90%);\n border-color : rgb(49 123 249 / 40%);\n border-style : solid;\n border-width : 1px;\n border-radius : 5px;\n -webkit-user-select : none;\n -moz-user-select : none;\n -ms-user-select : none;\n user-select : none;\n}\n\n.menu-button {\n background: white;\n border: 0;\n}\n\n.menu-item {\n position: relative;\n padding: 3px 20px;\n white-space: nowrap;\n}\n\n.menu-item::after {\n content: attr(data-key);\n float: right;\n}\n\n.menu-item:hover, .menu-item-selected {\n background-color: #e3f2ff;\n}\n\n.menu-item > .menu {\n top: 0;\n left: 100%;\n display: none;\n}\n\n.menu-submenu-show > .menu, .menu-item:hover > .menu {\n display: block;\n}\n\n.menu-submenu > label::after {\n display: block;\n float: right;\n width: 0;\n height: 0;\n margin-top: 3px;\n margin-right: -10px;\n border-color: transparent;\n border-left-color: rgb(49 123 249);\n border-style: solid;\n border-width: 5px 0 5px 5px;\n content: ' ';\n}",document.head.appendChild(t)}(),function(e){let t=`aleman-state-${e}`;if(epi(t))return;let r=document.createElement("section");r.dataset.name=t,r.classList.add("menu-hidden"),document.body.append(r)}(n),((e,{hydrateElement:t,options:r,menu:n})=>{epr(r,{menu:n});let{name:i}=r,s=(({name:e="menu"})=>({name:e,command:"hide",insideSubmenu:!1,submenuIndex:0,showSubmenu:!1,index:-1,position:{x:0,y:20}}))(r),a={name:e,events:ec9,preventDefault:!0,after:epe,afterIf:ept,listener:ec7},{run:o}=((e,t)=>{let{addons:r,options:n,state:i,rules:s,stateName:a="aleman-state"}=t,o=((e,{options:t,rules:r,type:n})=>{let{ast:i,source:s}=function(e,t){if("jsx"===t)return{ast:q4(e),source:e};let{source:r}={source:ecf(e).trim().slice(5,-6)};return{ast:q4(`<template>${r}</template>`),source:r}}(e,n);return function(e){let a={},o=ecm(r);for(let[r]of o)a[r]=["on",{...e,...t}];let l=G$(i,{rules:a,plugins:o});if(!l.length)return[!1,s,l];HF(i,{rules:a,plugins:o});let u=qw(i,{printer:["putout",{format:{newline:"\n",endOfFile:""}}]});return"jsx"===n?[!0,u,l]:[!0,(([e])=>{var t;return((t=e).endsWith(";\n")?t.slice(0,-2):t).replaceAll("className","class")})([u]).slice(10,-12).trim(),l]}})(e.innerHTML,{options:n,rules:s}),{globalAddons:l,namedAddons:u}=(e=>{let t=[],r=[];for(let n of e){if(ecc(n)){r.push(n);continue}t.push(n)}return{globalAddons:t,namedAddons:r}})(r),{readState:c,writeState:p}=((e,{options:t,listener:r,stateName:n="aleman-state"})=>{let i,s,a,o=document.querySelector(`[data-name="${n}"]`),l=(0,Of.p)(),u=(i=o,()=>ecs(i.textContent)),c=(s=l,a=o,e=>{let t=a.textContent,r=ecs(a.textContent);ecn(r,e);let n=eci(r,null,4);n!==t&&(a.textContent=n,setTimeout(()=>{s(n)}))}),p=((e,{prev:t,options:r,stateElement:n,readState:i,writeState:s})=>()=>{let{textContent:a}=n;if(n.textContent===t())return;let o=i();t(a),s(o),e({state:o,options:r})})(r,{options:t,prev:l,stateElement:o,readState:u,writeState:c}),h=new MutationObserver(p);return o.textContent=eci(e,null,4),globalThis.alemanSync=p,document.addEventListener("keydown",({key:e})=>{"`"===e&&p()}),h.observe(o,{attributes:!0,childList:!0,subtree:!0}),{readState:u,writeState:c}})(i,{stateName:a,listener:()=>{let[t,r]=o(c());t&&(e.innerHTML=r,(({namedAddons:e,options:t,readState:r,writeState:n})=>{for(let i of e){let e=ecl(i);for(let s of ecu(i))e.addEventListener(s,ecp({addon:i,options:t,readState:r,writeState:n}))}})({readState:c,writeState:p,namedAddons:u,options:n}))}});return(({globalAddons:e,options:t,readState:r,writeState:n,document:i=globalThis.document})=>{for(let s of e)for(let e of ecu(s))i.addEventListener(e,ecp({addon:s,options:t,readState:r,writeState:n}))})({readState:c,writeState:p,globalAddons:l,options:n}),{run:(e,t)=>{let r=c(),i=t.listener({state:r,event:e,options:n,writeState:p});p({...r,...i}),t.afterIf?.({state:i,options:n})&&requestAnimationFrame(()=>{p(t.after({event:e,options:n,state:i}))})}}})(t,{options:r,state:s,addons:[a,{name:i,events:["mouseleave"],listener:()=>({index:-1,showSubmenu:!1,insideSubmenu:!1,submenuIndex:0})},{name:i,events:["click"],listener:ec8,filter:ec6,stopPropagation:!0},...ec5],rules:ecr,stateName:`aleman-state-${i}`});return{show:(e,t)=>{o({clientX:e,clientY:t},a)},hide:()=>o({},eN)}})(e,{hydrateElement:i,options:t,menu:r})};function epi(e){return document.querySelector(`[data-name=${e}]`)}let eps=()=>{},{CloudCmd:epa}=globalThis,epo=async(e,t,r)=>{let n="aleman"===epa.config("menu")?epn:epl,i=await n(e,t,r);return i.addContextMenuListener=i.addContextMenuListener||eps,i};function epl(e,t,r){let n=document.querySelector('[data-name="js-fm"]');return(0,eX.n)(n,t,r)}let{CloudCmd:epu,DOM:epc}=globalThis,{config:epp,Key:eph}=epu,{Buffer:epd,Events:epf,Dialog:epm,Images:epy}=epc,epg=epc.CurrentInfo,epb=epm.alert.noFiles,epx=eq(epP);async function epS(){let e,t,{isAuth:r,menuDataFile:n}=(t=epE(e=epu.config("auth")),{isAuth:e,menuDataFile:{...{View:()=>{epu.View.show()},Edit:()=>{epu[epp("vim")?"EditFileVim":"EditFile"].show()},Rename:()=>{setTimeout(epc.renameCurrent,100)},Delete:()=>{epu.Operation.show("delete")},Pack:()=>{epu.Operation.show("pack")},Extract:()=>{epu.Operation.show("extract")},Download:epI,"Upload To Cloud":epx("Cloud"),Cut:()=>{epk(epd.cut,epb)},Copy:()=>{epk(epd.copy,epb)}},...t}}),i=epc.getFM(),o=epE(r),l=epT({type:"context"}),u=epT({type:"file"}),{name:c}=i.dataset;s=await epo(c,l,o),a=await epo(c,u,n),s.addContextMenuListener(),a.addContextMenuListener(),epf.addKey(epN)}function epv(){s.hide(),a.hide()}function epT({type:e}){let t,r;return"context"===e?(t="context",r=eph.unsetBind):"file"===e&&(t="contextFile"),{icon:!0,infiniteScroll:!1,beforeClose:eph.setBind,beforeHide:eph.setBind,beforeShow:eV.with(epw,r),beforeClick:epA,name:t}}function epE(e){let t={Paste:epd.paste,New:{File:epc.promptNewFile,Directory:epc.promptNewDir},Upload:()=>{epu.Upload.show()},"Upload From Cloud":epC,"Toggle File Selection":epc.toggleSelectedFile,"(Un)Select All":epc.toggleAllSelectedFiles};return e&&(t["Log Out"]=epu.logOut),t}function epk(e,t){if(".."!==epg.name)return e();t()}function epw(e,t){var r;eph.unsetBind();let{name:n,position:s={x:t.x,y:t.y}}=t,{x:a,y:o}=s,l="contextFile"!=((r=epc.getCurrentByPosition({x:a,y:o}))&&".."!==epc.getCurrentName(r)?"contextFile":"context");return"contextFile"===t.name&&(l=!l),l&&(i=n),eV(e),l&&(l=function(e,t){let{panel:r}=epg;if(!r)return!1;let n=document.elementFromPoint(e,t),i=r.querySelectorAll('[data-name="js-path"] *');return!~[].indexOf.call(i,n)}(a,o)),l}epu.Menu={init:epS,show:function(e){var t;let{x:r,y:n}=(t=e)?{x:t.x,y:t.y}:ep_();s.show(r,n),a.show(r,n),epy.hide()},hide:epv};let epA=e=>i!==e;async function epP(e){let[t,r]=await epg.getData();if(t)return;let{name:n}=epg;epu.execFromModule(e,"uploadFile",n,r),epu.log(`Uploading to ${n}...`)}function epC(){epy.show.load("top"),epu.execFromModule("Cloud","saveFile",async(e,t)=>{let r=epc.getCurrentDirPath()+e,[n]=await ez.write(r,t);n||await epu.refresh({currentName:e})})}function epI(){!function(e){let{prefixURL:t}=epu,r=Date.now(),n=epc.getActiveFiles();if(!n.length)return epb();for(let i of n){let n=epc.isSelected(i),s=epc.isCurrentIsDir(i),a=epc.getCurrentPath(i);epu.log(`downloading file ${a}...`);let o=encodeURI(a).replace(/#/g,"#"),l=eK("iframe",{id:(0,eJ.getIdBySrc)(a)+"-"+r,async:!1,className:"hidden",src:s?t+"/pack"+o+epc.getPackerExt(e):t+eW.FS+o+"?download"}),{body:u}=document;setTimeout(u.removeChild.bind(u,l),3e4),n&&epc.toggleSelectedFile(i)}}(epp("packer"))}function ep_(){let e=epg.element.getBoundingClientRect();return{x:Math.round(e.left+e.width/3),y:Math.round(e.top)}}function epN(e){let{F9:t,ESC:r}=eph,n=e.keyCode,i=eph.isBind();if(n===r)return eph.setBind(),epv();if(i&&n===t){let t=ep_();s.show(t.x,t.y),e.preventDefault()}}},5700(e,t,r){"use strict";var n=r(4299),i=r(8328);r(9460),n(function(e,t,r){return e!==r||"name"===e&&"asc"===t?r:`${r}${"asc"===t?"↑":"↓"}`}),(0,i.p)()("/"),r.d(t,{},{FS:"/fs"})},9460(e,t,r){"use strict";let n={"&lt;":"<","&gt;":">","&quot;":'"',"&lcub;":"{","&rcub;":"}"},i=Object.keys(n);r.d(t,{},{l:e=>{for(let t of i){let r=RegExp(n[t],"g");e=e.replace(r,t)}return e}})}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e].call(r.exports,r,r.exports,l),r.exports}l.m=a,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(r,n){if(1&n&&(r=this(r)),8&n||"object"==typeof r&&r&&(4&n&&r.__esModule||16&n&&"function"==typeof r.then))return r;var i=Object.create(null);l.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>{s[e]=()=>r[e]});return s.default=()=>r,l.d(i,s),i},l.d=(e,t,r)=>{var n=(t,r)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[r]:t[n]})};n(t,"get"),n(r,"value")},l.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r=[],l.O=(e,t,n,i)=>{if(t){i=i||0;for(var s=r.length;s>0&&r[s-1][2]>i;s--)r[s]=r[s-1];r[s]=[t,n,i];return}for(var a=1/0,s=0;s<r.length;s++){for(var[t,n,i]=r[s],o=!0,u=0;u<t.length;u++)(!1&i||a>=i)&&Object.keys(l.O).every(e=>l.O[e](t[u]))?t.splice(u--,1):(o=!1,i<a&&(a=i));if(o){r.splice(s--,1);var c=n();void 0!==c&&(e=c)}}return e},l.j="854",n={854:0},l.O.j=e=>0===n[e],i=(e,t)=>{var r,i,[s,a,o]=t,u=0;if(s.some(e=>0!==n[e])){for(r in a)l.o(a,r)&&(l.m[r]=a[r]);if(o)var c=o(l)}for(e&&e(t);u<s.length;u++)i=s[u],l.o(n,i)&&n[i]&&n[i][0](),n[i]=0;return l.O(c)},(s=globalThis.rspackChunkcloudcmd||=[]).forEach(i.bind(null,0)),s.push=i.bind(null,s.push.bind(s));var u=l.O(void 0,["136"],()=>l(2734));u=l.O(u)})();
166
121
  //# sourceMappingURL=menu.js.map