@maincode-ai/matilda-code 0.21.6 → 0.21.7-nightly.20260920.d953e31d2
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.
- package/chunks/agent-OW4AMLGE.js +3 -0
- package/chunks/agent-headless-CXL5LO2G.js +3 -0
- package/chunks/{anthropicContentGenerator-EAQDRKHH.js → anthropicContentGenerator-SFJGSZHT.js} +1 -1
- package/chunks/{askUserQuestion-7II3GVHO.js → askUserQuestion-MJ4FTAOQ.js} +1 -1
- package/chunks/{chunk-VB4MJSMC.js → chunk-32PTAACU.js} +1 -1
- package/chunks/{chunk-OXHC3R2R.js → chunk-32T6RWWT.js} +1 -1
- package/chunks/{chunk-QF6BOPQB.js → chunk-34DXSYJZ.js} +2 -2
- package/chunks/chunk-3RD5BHRX.js +34 -0
- package/chunks/{chunk-BH56I7SB.js → chunk-3ZAMYREW.js} +1 -1
- package/chunks/{chunk-YTGWPLEA.js → chunk-5PMMY47S.js} +1 -1
- package/chunks/{chunk-BGZJUBRA.js → chunk-6B5BDE7S.js} +1 -1
- package/chunks/{chunk-IPL3QW4D.js → chunk-7PNIGVSD.js} +1 -1
- package/chunks/{chunk-OVC5Z3EX.js → chunk-B3NVKOSU.js} +1 -1
- package/chunks/{chunk-EU5CK2VJ.js → chunk-BUCTEJSK.js} +509 -509
- package/chunks/{chunk-4Z6HQEVC.js → chunk-DAFUAZBW.js} +2 -2
- package/chunks/{chunk-X4ML2NEE.js → chunk-DCQKJTAX.js} +2 -2
- package/chunks/chunk-EQEQPZLQ.js +8 -0
- package/chunks/{chunk-LNTO3FNQ.js → chunk-FRL6KOLY.js} +1 -1
- package/chunks/chunk-FWIVFCKF.js +8 -0
- package/chunks/chunk-INAZKGGR.js +8 -0
- package/chunks/chunk-LIWYWWOK.js +8 -0
- package/chunks/{chunk-FQ44TPC5.js → chunk-LSDMWVW6.js} +3 -3
- package/chunks/{chunk-AICUGYJK.js → chunk-MQUGY4PQ.js} +1 -1
- package/chunks/chunk-Q2I3ARPJ.js +8 -0
- package/chunks/{chunk-XITA5WMN.js → chunk-QHA3ZBRO.js} +1 -1
- package/chunks/chunk-RJX7DK4Y.js +27 -0
- package/chunks/chunk-ROETRE5J.js +9 -0
- package/chunks/{chunk-O3OUYCSO.js → chunk-S7G6QPEP.js} +1 -1
- package/chunks/chunk-VLYRNOD3.js +36 -0
- package/chunks/{chunk-C7L2FDS6.js → chunk-VPMGPS4S.js} +3 -3
- package/chunks/chunk-VWWEEU4V.js +9 -0
- package/chunks/chunk-VYTYYCBR.js +3 -0
- package/chunks/chunk-XCJYORZX.js +9 -0
- package/chunks/{chunk-UTS2D2OV.js → chunk-YNQQIE2C.js} +11 -11
- package/chunks/{computer-use-X7US5CFC.js → computer-use-75G7W4CF.js} +1 -1
- package/chunks/contextCommand-5AEUXP6K.js +3 -0
- package/chunks/{cron-create-HASFXYQL.js → cron-create-BTTPO3JC.js} +1 -1
- package/chunks/{cron-delete-AW4S5IYT.js → cron-delete-U55RHRID.js} +1 -1
- package/chunks/{cron-list-U5U5GO6A.js → cron-list-J4HRR46K.js} +1 -1
- package/chunks/{edit-CVHLH32T.js → edit-L42KW7KG.js} +1 -1
- package/chunks/{enter-worktree-DOV462JZ.js → enter-worktree-F7L46TR7.js} +1 -1
- package/chunks/{enterPlanMode-4Z32XTSV.js → enterPlanMode-SYIYUOBN.js} +1 -1
- package/chunks/{exit-worktree-SZWLWCNF.js → exit-worktree-44PVOBH5.js} +1 -1
- package/chunks/{exitPlanMode-MG7QZYZ7.js → exitPlanMode-RAZXQ7FT.js} +1 -1
- package/chunks/{geminiContentGenerator-S4NNKSEQ.js → geminiContentGenerator-24YINMHK.js} +1 -1
- package/chunks/glob-3733NSQF.js +22 -0
- package/chunks/{grep-CB6P3VIR.js → grep-X6BSJJ4L.js} +1 -1
- package/chunks/{keychain-token-storage-5MWTIAEL.js → keychain-token-storage-HAFQQIXL.js} +1 -1
- package/chunks/ls-CLDNF3YS.js +15 -0
- package/chunks/{lsp-ELR2BGT4.js → lsp-7SKRKR5Q.js} +1 -1
- package/chunks/{matildaAgentContentGenerator-GHIMPOOE.js → matildaAgentContentGenerator-AAMXNN4G.js} +1 -1
- package/chunks/matildaContentGenerator-ARMO2LGC.js +8 -0
- package/chunks/{matildaOAuth2-5EYRIK66.js → matildaOAuth2-W2DQO2NK.js} +1 -1
- package/chunks/monitor-LJJFUT55.js +32 -0
- package/chunks/notebook-edit-TXRMUCSL.js +17 -0
- package/chunks/{openaiContentGenerator-O5Q5FHFD.js → openaiContentGenerator-QHSC43AC.js} +1 -1
- package/chunks/read-file-J5UBJYDO.js +3 -0
- package/chunks/ripGrep-ET7IOM4A.js +3 -0
- package/chunks/scheduler-KVTQ6P2T.js +8 -0
- package/chunks/{send-message-GFPVOTSZ.js → send-message-XXRROIL7.js} +1 -1
- package/chunks/{serve-VW4UWSX4.js → serve-ABWSIR7B.js} +21 -21
- package/chunks/shell-CLFIQYYM.js +3 -0
- package/chunks/{skill-JFIJEIFA.js → skill-T3MGV3F6.js} +1 -1
- package/chunks/src-3H56WVFR.js +3 -0
- package/chunks/symbol-search-3MVTK4KV.js +19 -0
- package/chunks/{syntheticOutput-XKGS6F2D.js → syntheticOutput-QEUQIVQJ.js} +1 -1
- package/chunks/task-create-AEJQ73GE.js +3 -0
- package/chunks/{task-list-V27WHHHJ.js → task-list-ZEJTNZ2O.js} +1 -1
- package/chunks/{task-stop-NON26GAN.js → task-stop-JO3CXG2K.js} +1 -1
- package/chunks/{task-update-DE7CUGPY.js → task-update-3YY37VFN.js} +1 -1
- package/chunks/{team-create-JEC4ZSNE.js → team-create-KX646U6L.js} +1 -1
- package/chunks/team-delete-4YYLUV23.js +8 -0
- package/chunks/{todoWrite-YIMKFWIL.js → todoWrite-7BZMVNBC.js} +1 -1
- package/chunks/{tool-search-HFOHXFK5.js → tool-search-OWJC3UTX.js} +1 -1
- package/chunks/{update-goal-IDTG4LI6.js → update-goal-CF6G57J7.js} +1 -1
- package/chunks/{web-fetch-EVO7GDEB.js → web-fetch-K575OWZ7.js} +1 -1
- package/chunks/{web-search-SJMJGGPE.js → web-search-F6JRBXFV.js} +1 -1
- package/chunks/{workflow-2H6H2FR4.js → workflow-UE6CXBGG.js} +2 -2
- package/chunks/write-file-OAKHVSC6.js +15 -0
- package/cli.js +444 -441
- package/package.json +2 -2
- package/chunks/agent-OP5PDZKJ.js +0 -3
- package/chunks/agent-headless-GLMZVYOK.js +0 -3
- package/chunks/chunk-2HFKTFO5.js +0 -9
- package/chunks/chunk-5QAKUC2D.js +0 -14
- package/chunks/chunk-EPA3A73R.js +0 -56
- package/chunks/chunk-FW6Z25AA.js +0 -3
- package/chunks/chunk-L5ASITMV.js +0 -9
- package/chunks/chunk-MW3LAIJW.js +0 -8
- package/chunks/chunk-N6BOYL6K.js +0 -27
- package/chunks/chunk-SOKNPND5.js +0 -8
- package/chunks/chunk-SWEYYDZO.js +0 -8
- package/chunks/chunk-U3O6TMV7.js +0 -8
- package/chunks/chunk-UHDKX2CR.js +0 -8
- package/chunks/chunk-VBOVIARK.js +0 -9
- package/chunks/contextCommand-F34RZJU6.js +0 -3
- package/chunks/glob-T2SHBIJY.js +0 -22
- package/chunks/ls-IBIDQ5NV.js +0 -15
- package/chunks/matildaContentGenerator-FI2P7XPI.js +0 -8
- package/chunks/monitor-O46CPAVO.js +0 -32
- package/chunks/notebook-edit-M4XPR4X3.js +0 -17
- package/chunks/read-file-4TZCSTH7.js +0 -3
- package/chunks/ripGrep-FTFD4K7L.js +0 -3
- package/chunks/scheduler-PRAGNX3C.js +0 -8
- package/chunks/shell-YO6J22BF.js +0 -3
- package/chunks/src-EYWD2F72.js +0 -3
- package/chunks/symbol-search-ZV6W6DPK.js +0 -19
- package/chunks/task-create-T43QIG2F.js +0 -3
- package/chunks/team-delete-LIEVUGIX.js +0 -8
- package/chunks/write-file-6A7X7F5R.js +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Force strict mode and setup for ESM
|
|
2
2
|
"use strict";
|
|
3
|
-
import{b as Ae,e as Fr,g as Bi,h as _i,i as Ui,l as Rr}from"./chunk-
|
|
3
|
+
import{b as Ae,e as Fr,g as Bi,h as _i,i as Ui,l as Rr}from"./chunk-7PNIGVSD.js";import{$j as Oi,Cf as Li,L as wi,M as ki,Za as Ti,Zj as Mi,_j as Ni,ab as Ii,bb as Fi,fj as Cl,ji as Pi,pf as Ri}from"./chunk-BUCTEJSK.js";import{Y as Ai}from"./chunk-DAFUAZBW.js";import{e as Gt}from"./chunk-DC7LAFZZ.js";import{da as Ci}from"./chunk-B3NVKOSU.js";import{e as Ei}from"./chunk-EQEQPZLQ.js";import{P as Q,aa as Ce,d as oe,k as jt,w as Be}from"./chunk-VLYRNOD3.js";import{b}from"./chunk-GZPNIYVZ.js";import{a as ht,d as L,f as Xe}from"./chunk-OWGSC52X.js";var Hr=L((Sm,ms)=>{"use strict";b();var qr=Symbol("singleComment"),ps=Symbol("multiComment"),zl=()=>"",Xl=(t,e,r)=>t.slice(e,r).replace(/\S/g," "),Jl=(t,e)=>{let r=e-1,n=0;for(;t[r]==="\\";)r-=1,n+=1;return!!(n%2)};ms.exports=(t,e={})=>{if(typeof t!="string")throw new TypeError(`Expected argument \`jsonString\` to be a \`string\`, got \`${typeof t}\``);let r=e.whitespace===!1?zl:Xl,n=!1,i=!1,u=0,a="";for(let f=0;f<t.length;f++){let p=t[f],m=t[f+1];if(!i&&p==='"'&&(Jl(t,f)||(n=!n)),!n){if(!i&&p+m==="//")a+=t.slice(u,f),u=f,i=qr,f++;else if(i===qr&&p+m===`\r
|
|
4
4
|
`){f++,i=!1,a+=r(t,u,f),u=f;continue}else if(i===qr&&p===`
|
|
5
5
|
`)i=!1,a+=r(t,u,f),u=f;else if(!i&&p+m==="/*"){a+=t.slice(u,f),u=f,i=ps,f++;continue}else if(i===ps&&p+m==="*/"){f++,i=!1,a+=r(t,u,f+1),u=f+1;continue}}}return a+(i?r(t.slice(u)):t.slice(u))}});var Ps=L((yt,sn)=>{b();(function(e,r){typeof yt=="object"&&typeof sn=="object"?sn.exports=r():typeof define=="function"&&define.amd?define([],r):typeof yt=="object"?yt.esprima=r():e.esprima=r()})(yt,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),i=r(3),u=r(8),a=r(15);function f(d,s,o){var l=null,c=function(O,j){o&&o(O,j),l&&l.visit(O,j)},y=typeof o=="function"?c:null,S=!1;if(s){S=typeof s.comment=="boolean"&&s.comment;var D=typeof s.attachComment=="boolean"&&s.attachComment;(S||D)&&(l=new n.CommentHandler,l.attach=D,s.comment=!0,y=c)}var E=!1;s&&typeof s.sourceType=="string"&&(E=s.sourceType==="module");var C;s&&typeof s.jsx=="boolean"&&s.jsx?C=new i.JSXParser(d,s,y):C=new u.Parser(d,s,y);var T=E?C.parseModule():C.parseScript(),F=T;return S&&l&&(F.comments=l.comments),C.config.tokens&&(F.tokens=C.tokens),C.config.tolerant&&(F.errors=C.errorHandler.errors),F}e.parse=f;function p(d,s,o){var l=s||{};return l.sourceType="module",f(d,l,o)}e.parseModule=p;function m(d,s,o){var l=s||{};return l.sourceType="script",f(d,l,o)}e.parseScript=m;function h(d,s,o){var l=new a.Tokenizer(d,s),c;c=[];try{for(;;){var y=l.getNextToken();if(!y)break;o&&(y=o(y)),c.push(y)}}catch(S){l.errorHandler.tolerate(S)}return l.errorHandler.tolerant&&(c.errors=l.errors()),c}e.tokenize=h;var g=r(2);e.Syntax=g.Syntax,e.version="4.0.1"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=function(){function u(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return u.prototype.insertInnerComments=function(a,f){if(a.type===n.Syntax.BlockStatement&&a.body.length===0){for(var p=[],m=this.leading.length-1;m>=0;--m){var h=this.leading[m];f.end.offset>=h.start&&(p.unshift(h.comment),this.leading.splice(m,1),this.trailing.splice(m,1))}p.length&&(a.innerComments=p)}},u.prototype.findTrailingComments=function(a){var f=[];if(this.trailing.length>0){for(var p=this.trailing.length-1;p>=0;--p){var m=this.trailing[p];m.start>=a.end.offset&&f.unshift(m.comment)}return this.trailing.length=0,f}var h=this.stack[this.stack.length-1];if(h&&h.node.trailingComments){var g=h.node.trailingComments[0];g&&g.range[0]>=a.end.offset&&(f=h.node.trailingComments,delete h.node.trailingComments)}return f},u.prototype.findLeadingComments=function(a){for(var f=[],p;this.stack.length>0;){var m=this.stack[this.stack.length-1];if(m&&m.start>=a.start.offset)p=m.node,this.stack.pop();else break}if(p){for(var h=p.leadingComments?p.leadingComments.length:0,g=h-1;g>=0;--g){var d=p.leadingComments[g];d.range[1]<=a.start.offset&&(f.unshift(d),p.leadingComments.splice(g,1))}return p.leadingComments&&p.leadingComments.length===0&&delete p.leadingComments,f}for(var g=this.leading.length-1;g>=0;--g){var m=this.leading[g];m.start<=a.start.offset&&(f.unshift(m.comment),this.leading.splice(g,1))}return f},u.prototype.visitNode=function(a,f){if(!(a.type===n.Syntax.Program&&a.body.length>0)){this.insertInnerComments(a,f);var p=this.findTrailingComments(f),m=this.findLeadingComments(f);m.length>0&&(a.leadingComments=m),p.length>0&&(a.trailingComments=p),this.stack.push({node:a,start:f.start.offset})}},u.prototype.visitComment=function(a,f){var p=a.type[0]==="L"?"Line":"Block",m={type:p,value:a.value};if(a.range&&(m.range=a.range),a.loc&&(m.loc=a.loc),this.comments.push(m),this.attach){var h={comment:{type:p,value:a.value,range:[f.start.offset,f.end.offset]},start:f.start.offset};a.loc&&(h.comment.loc=a.loc),a.type=p,this.leading.push(h),this.trailing.push(h)}},u.prototype.visit=function(a,f){a.type==="LineComment"?this.visitComment(a,f):a.type==="BlockComment"?this.visitComment(a,f):this.attach&&this.visitNode(a,f)},u}();e.CommentHandler=i},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var c in l)l.hasOwnProperty(c)&&(o[c]=l[c])};return function(o,l){s(o,l);function c(){this.constructor=o}o.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=r(4),u=r(5),a=r(6),f=r(7),p=r(8),m=r(13),h=r(14);m.TokenName[100]="JSXIdentifier",m.TokenName[101]="JSXText";function g(s){var o;switch(s.type){case a.JSXSyntax.JSXIdentifier:var l=s;o=l.name;break;case a.JSXSyntax.JSXNamespacedName:var c=s;o=g(c.namespace)+":"+g(c.name);break;case a.JSXSyntax.JSXMemberExpression:var y=s;o=g(y.object)+"."+g(y.property);break;default:break}return o}var d=function(s){n(o,s);function o(l,c,y){return s.call(this,l,c,y)||this}return o.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():s.prototype.parsePrimaryExpression.call(this)},o.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},o.prototype.finishJSX=function(){this.nextToken()},o.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},o.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},o.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},o.prototype.scanXHTMLEntity=function(l){for(var c="&",y=!0,S=!1,D=!1,E=!1;!this.scanner.eof()&&y&&!S;){var C=this.scanner.source[this.scanner.index];if(C===l)break;if(S=C===";",c+=C,++this.scanner.index,!S)switch(c.length){case 2:D=C==="#";break;case 3:D&&(E=C==="x",y=E||i.Character.isDecimalDigit(C.charCodeAt(0)),D=D&&!E);break;default:y=y&&!(D&&!i.Character.isDecimalDigit(C.charCodeAt(0))),y=y&&!(E&&!i.Character.isHexDigit(C.charCodeAt(0)));break}}if(y&&S&&c.length>2){var T=c.substr(1,c.length-2);D&&T.length>1?c=String.fromCharCode(parseInt(T.substr(1),10)):E&&T.length>2?c=String.fromCharCode(parseInt("0"+T.substr(1),16)):!D&&!E&&h.XHTMLEntities[T]&&(c=h.XHTMLEntities[T])}return c},o.prototype.lexJSX=function(){var l=this.scanner.source.charCodeAt(this.scanner.index);if(l===60||l===62||l===47||l===58||l===61||l===123||l===125){var c=this.scanner.source[this.scanner.index++];return{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(l===34||l===39){for(var y=this.scanner.index,S=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index++];if(E===S)break;E==="&"?D+=this.scanXHTMLEntity(S):D+=E}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index}}if(l===46){var C=this.scanner.source.charCodeAt(this.scanner.index+1),T=this.scanner.source.charCodeAt(this.scanner.index+2),c=C===46&&T===46?"...":".",y=this.scanner.index;return this.scanner.index+=c.length,{type:7,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index}}if(l===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(l)&&l!==92){var y=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var E=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(E)&&E!==92)++this.scanner.index;else if(E===45)++this.scanner.index;else break}var F=this.scanner.source.slice(y,this.scanner.index);return{type:100,value:F,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:y,end:this.scanner.index}}return this.scanner.lex()},o.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var l=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(l)),l},o.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var l=this.scanner.index,c="";!this.scanner.eof();){var y=this.scanner.source[this.scanner.index];if(y==="{"||y==="<")break;++this.scanner.index,c+=y,i.Character.isLineTerminator(y.charCodeAt(0))&&(++this.scanner.lineNumber,y==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
6
6
|
`&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var S={type:101,value:c,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:l,end:this.scanner.index};return c.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(S)),S},o.prototype.peekJSXToken=function(){var l=this.scanner.saveState();this.scanner.scanComments();var c=this.lexJSX();return this.scanner.restoreState(l),c},o.prototype.expectJSX=function(l){var c=this.nextJSXToken();(c.type!==7||c.value!==l)&&this.throwUnexpectedToken(c)},o.prototype.matchJSX=function(l){var c=this.peekJSXToken();return c.type===7&&c.value===l},o.prototype.parseJSXIdentifier=function(){var l=this.createJSXNode(),c=this.nextJSXToken();return c.type!==100&&this.throwUnexpectedToken(c),this.finalize(l,new u.JSXIdentifier(c.value))},o.prototype.parseJSXElementName=function(){var l=this.createJSXNode(),c=this.parseJSXIdentifier();if(this.matchJSX(":")){var y=c;this.expectJSX(":");var S=this.parseJSXIdentifier();c=this.finalize(l,new u.JSXNamespacedName(y,S))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var D=c;this.expectJSX(".");var E=this.parseJSXIdentifier();c=this.finalize(l,new u.JSXMemberExpression(D,E))}return c},o.prototype.parseJSXAttributeName=function(){var l=this.createJSXNode(),c,y=this.parseJSXIdentifier();if(this.matchJSX(":")){var S=y;this.expectJSX(":");var D=this.parseJSXIdentifier();c=this.finalize(l,new u.JSXNamespacedName(S,D))}else c=y;return c},o.prototype.parseJSXStringLiteralAttribute=function(){var l=this.createJSXNode(),c=this.nextJSXToken();c.type!==8&&this.throwUnexpectedToken(c);var y=this.getTokenRaw(c);return this.finalize(l,new f.Literal(c.value,y))},o.prototype.parseJSXExpressionAttribute=function(){var l=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var c=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(l,new u.JSXExpressionContainer(c))},o.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},o.prototype.parseJSXNameValueAttribute=function(){var l=this.createJSXNode(),c=this.parseJSXAttributeName(),y=null;return this.matchJSX("=")&&(this.expectJSX("="),y=this.parseJSXAttributeValue()),this.finalize(l,new u.JSXAttribute(c,y))},o.prototype.parseJSXSpreadAttribute=function(){var l=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var c=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(l,new u.JSXSpreadAttribute(c))},o.prototype.parseJSXAttributes=function(){for(var l=[];!this.matchJSX("/")&&!this.matchJSX(">");){var c=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();l.push(c)}return l},o.prototype.parseJSXOpeningElement=function(){var l=this.createJSXNode();this.expectJSX("<");var c=this.parseJSXElementName(),y=this.parseJSXAttributes(),S=this.matchJSX("/");return S&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(l,new u.JSXOpeningElement(c,S,y))},o.prototype.parseJSXBoundaryElement=function(){var l=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var c=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(l,new u.JSXClosingElement(c))}var y=this.parseJSXElementName(),S=this.parseJSXAttributes(),D=this.matchJSX("/");return D&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(l,new u.JSXOpeningElement(y,D,S))},o.prototype.parseJSXEmptyExpression=function(){var l=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(l,new u.JSXEmptyExpression)},o.prototype.parseJSXExpressionContainer=function(){var l=this.createJSXNode();this.expectJSX("{");var c;return this.matchJSX("}")?(c=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),c=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(l,new u.JSXExpressionContainer(c))},o.prototype.parseJSXChildren=function(){for(var l=[];!this.scanner.eof();){var c=this.createJSXChildNode(),y=this.nextJSXText();if(y.start<y.end){var S=this.getTokenRaw(y),D=this.finalize(c,new u.JSXText(y.value,S));l.push(D)}if(this.scanner.source[this.scanner.index]==="{"){var E=this.parseJSXExpressionContainer();l.push(E)}else break}return l},o.prototype.parseComplexJSXElement=function(l){for(var c=[];!this.scanner.eof();){l.children=l.children.concat(this.parseJSXChildren());var y=this.createJSXChildNode(),S=this.parseJSXBoundaryElement();if(S.type===a.JSXSyntax.JSXOpeningElement){var D=S;if(D.selfClosing){var E=this.finalize(y,new u.JSXElement(D,[],null));l.children.push(E)}else c.push(l),l={node:y,opening:D,closing:null,children:[]}}if(S.type===a.JSXSyntax.JSXClosingElement){l.closing=S;var C=g(l.opening.name),T=g(l.closing.name);if(C!==T&&this.tolerateError("Expected corresponding JSX closing tag for %0",C),c.length>0){var E=this.finalize(l.node,new u.JSXElement(l.opening,l.children,l.closing));l=c[c.length-1],l.children.push(E),c.pop()}else break}}return l},o.prototype.parseJSXElement=function(){var l=this.createJSXNode(),c=this.parseJSXOpeningElement(),y=[],S=null;if(!c.selfClosing){var D=this.parseComplexJSXElement({node:l,opening:c,closing:S,children:y});y=D.children,S=D.closing}return this.finalize(l,new u.JSXElement(c,y,S))},o.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var l=this.parseJSXElement();return this.finishJSX(),l},o.prototype.isStartOfExpression=function(){return s.prototype.isStartOfExpression.call(this)||this.match("<")},o}(p.Parser);e.JSXParser=d},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\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\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4]|\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]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\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\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\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-\u1877\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\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\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\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-\uDE33\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]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\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\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\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]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};e.Character={fromCodePoint:function(n){return n<65536?String.fromCharCode(n):String.fromCharCode(55296+(n-65536>>10))+String.fromCharCode(56320+(n-65536&1023))},isWhiteSpace:function(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(n)>=0},isLineTerminator:function(n){return n===10||n===13||n===8232||n===8233},isIdentifierStart:function(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&r.NonAsciiIdentifierStart.test(e.Character.fromCodePoint(n))},isIdentifierPart:function(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&r.NonAsciiIdentifierPart.test(e.Character.fromCodePoint(n))},isDecimalDigit:function(n){return n>=48&&n<=57},isHexDigit:function(n){return n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102},isOctalDigit:function(n){return n>=48&&n<=55}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6),i=function(){function l(c){this.type=n.JSXSyntax.JSXClosingElement,this.name=c}return l}();e.JSXClosingElement=i;var u=function(){function l(c,y,S){this.type=n.JSXSyntax.JSXElement,this.openingElement=c,this.children=y,this.closingElement=S}return l}();e.JSXElement=u;var a=function(){function l(){this.type=n.JSXSyntax.JSXEmptyExpression}return l}();e.JSXEmptyExpression=a;var f=function(){function l(c){this.type=n.JSXSyntax.JSXExpressionContainer,this.expression=c}return l}();e.JSXExpressionContainer=f;var p=function(){function l(c){this.type=n.JSXSyntax.JSXIdentifier,this.name=c}return l}();e.JSXIdentifier=p;var m=function(){function l(c,y){this.type=n.JSXSyntax.JSXMemberExpression,this.object=c,this.property=y}return l}();e.JSXMemberExpression=m;var h=function(){function l(c,y){this.type=n.JSXSyntax.JSXAttribute,this.name=c,this.value=y}return l}();e.JSXAttribute=h;var g=function(){function l(c,y){this.type=n.JSXSyntax.JSXNamespacedName,this.namespace=c,this.name=y}return l}();e.JSXNamespacedName=g;var d=function(){function l(c,y,S){this.type=n.JSXSyntax.JSXOpeningElement,this.name=c,this.selfClosing=y,this.attributes=S}return l}();e.JSXOpeningElement=d;var s=function(){function l(c){this.type=n.JSXSyntax.JSXSpreadAttribute,this.argument=c}return l}();e.JSXSpreadAttribute=s;var o=function(){function l(c,y){this.type=n.JSXSyntax.JSXText,this.value=c,this.raw=y}return l}();e.JSXText=o},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=function(){function x(v){this.type=n.Syntax.ArrayExpression,this.elements=v}return x}();e.ArrayExpression=i;var u=function(){function x(v){this.type=n.Syntax.ArrayPattern,this.elements=v}return x}();e.ArrayPattern=u;var a=function(){function x(v,A,M){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=v,this.body=A,this.generator=!1,this.expression=M,this.async=!1}return x}();e.ArrowFunctionExpression=a;var f=function(){function x(v,A,M){this.type=n.Syntax.AssignmentExpression,this.operator=v,this.left=A,this.right=M}return x}();e.AssignmentExpression=f;var p=function(){function x(v,A){this.type=n.Syntax.AssignmentPattern,this.left=v,this.right=A}return x}();e.AssignmentPattern=p;var m=function(){function x(v,A,M){this.type=n.Syntax.ArrowFunctionExpression,this.id=null,this.params=v,this.body=A,this.generator=!1,this.expression=M,this.async=!0}return x}();e.AsyncArrowFunctionExpression=m;var h=function(){function x(v,A,M){this.type=n.Syntax.FunctionDeclaration,this.id=v,this.params=A,this.body=M,this.generator=!1,this.expression=!1,this.async=!0}return x}();e.AsyncFunctionDeclaration=h;var g=function(){function x(v,A,M){this.type=n.Syntax.FunctionExpression,this.id=v,this.params=A,this.body=M,this.generator=!1,this.expression=!1,this.async=!0}return x}();e.AsyncFunctionExpression=g;var d=function(){function x(v){this.type=n.Syntax.AwaitExpression,this.argument=v}return x}();e.AwaitExpression=d;var s=function(){function x(v,A,M){var ee=v==="||"||v==="&&";this.type=ee?n.Syntax.LogicalExpression:n.Syntax.BinaryExpression,this.operator=v,this.left=A,this.right=M}return x}();e.BinaryExpression=s;var o=function(){function x(v){this.type=n.Syntax.BlockStatement,this.body=v}return x}();e.BlockStatement=o;var l=function(){function x(v){this.type=n.Syntax.BreakStatement,this.label=v}return x}();e.BreakStatement=l;var c=function(){function x(v,A){this.type=n.Syntax.CallExpression,this.callee=v,this.arguments=A}return x}();e.CallExpression=c;var y=function(){function x(v,A){this.type=n.Syntax.CatchClause,this.param=v,this.body=A}return x}();e.CatchClause=y;var S=function(){function x(v){this.type=n.Syntax.ClassBody,this.body=v}return x}();e.ClassBody=S;var D=function(){function x(v,A,M){this.type=n.Syntax.ClassDeclaration,this.id=v,this.superClass=A,this.body=M}return x}();e.ClassDeclaration=D;var E=function(){function x(v,A,M){this.type=n.Syntax.ClassExpression,this.id=v,this.superClass=A,this.body=M}return x}();e.ClassExpression=E;var C=function(){function x(v,A){this.type=n.Syntax.MemberExpression,this.computed=!0,this.object=v,this.property=A}return x}();e.ComputedMemberExpression=C;var T=function(){function x(v,A,M){this.type=n.Syntax.ConditionalExpression,this.test=v,this.consequent=A,this.alternate=M}return x}();e.ConditionalExpression=T;var F=function(){function x(v){this.type=n.Syntax.ContinueStatement,this.label=v}return x}();e.ContinueStatement=F;var O=function(){function x(){this.type=n.Syntax.DebuggerStatement}return x}();e.DebuggerStatement=O;var j=function(){function x(v,A){this.type=n.Syntax.ExpressionStatement,this.expression=v,this.directive=A}return x}();e.Directive=j;var q=function(){function x(v,A){this.type=n.Syntax.DoWhileStatement,this.body=v,this.test=A}return x}();e.DoWhileStatement=q;var z=function(){function x(){this.type=n.Syntax.EmptyStatement}return x}();e.EmptyStatement=z;var De=function(){function x(v){this.type=n.Syntax.ExportAllDeclaration,this.source=v}return x}();e.ExportAllDeclaration=De;var We=function(){function x(v){this.type=n.Syntax.ExportDefaultDeclaration,this.declaration=v}return x}();e.ExportDefaultDeclaration=We;var Ar=function(){function x(v,A,M){this.type=n.Syntax.ExportNamedDeclaration,this.declaration=v,this.specifiers=A,this.source=M}return x}();e.ExportNamedDeclaration=Ar;var wr=function(){function x(v,A){this.type=n.Syntax.ExportSpecifier,this.exported=A,this.local=v}return x}();e.ExportSpecifier=wr;var H=function(){function x(v){this.type=n.Syntax.ExpressionStatement,this.expression=v}return x}();e.ExpressionStatement=H;var ge=function(){function x(v,A,M){this.type=n.Syntax.ForInStatement,this.left=v,this.right=A,this.body=M,this.each=!1}return x}();e.ForInStatement=ge;var Ee=function(){function x(v,A,M){this.type=n.Syntax.ForOfStatement,this.left=v,this.right=A,this.body=M}return x}();e.ForOfStatement=Ee;var ye=function(){function x(v,A,M,ee){this.type=n.Syntax.ForStatement,this.init=v,this.test=A,this.update=M,this.body=ee}return x}();e.ForStatement=ye;var ze=function(){function x(v,A,M,ee){this.type=n.Syntax.FunctionDeclaration,this.id=v,this.params=A,this.body=M,this.generator=ee,this.expression=!1,this.async=!1}return x}();e.FunctionDeclaration=ze;var Se=function(){function x(v,A,M,ee){this.type=n.Syntax.FunctionExpression,this.id=v,this.params=A,this.body=M,this.generator=ee,this.expression=!1,this.async=!1}return x}();e.FunctionExpression=Se;var Rt=function(){function x(v){this.type=n.Syntax.Identifier,this.name=v}return x}();e.Identifier=Rt;var Lt=function(){function x(v,A,M){this.type=n.Syntax.IfStatement,this.test=v,this.consequent=A,this.alternate=M}return x}();e.IfStatement=Lt;var Pt=function(){function x(v,A){this.type=n.Syntax.ImportDeclaration,this.specifiers=v,this.source=A}return x}();e.ImportDeclaration=Pt;var V=function(){function x(v){this.type=n.Syntax.ImportDefaultSpecifier,this.local=v}return x}();e.ImportDefaultSpecifier=V;var ut=function(){function x(v){this.type=n.Syntax.ImportNamespaceSpecifier,this.local=v}return x}();e.ImportNamespaceSpecifier=ut;var Mt=function(){function x(v,A){this.type=n.Syntax.ImportSpecifier,this.local=v,this.imported=A}return x}();e.ImportSpecifier=Mt;var Nt=function(){function x(v,A){this.type=n.Syntax.LabeledStatement,this.label=v,this.body=A}return x}();e.LabeledStatement=Nt;var Ot=function(){function x(v,A){this.type=n.Syntax.Literal,this.value=v,this.raw=A}return x}();e.Literal=Ot;var lt=function(){function x(v,A){this.type=n.Syntax.MetaProperty,this.meta=v,this.property=A}return x}();e.MetaProperty=lt;var Bt=function(){function x(v,A,M,ee,Ir){this.type=n.Syntax.MethodDefinition,this.key=v,this.computed=A,this.value=M,this.kind=ee,this.static=Ir}return x}();e.MethodDefinition=Bt;var _t=function(){function x(v){this.type=n.Syntax.Program,this.body=v,this.sourceType="module"}return x}();e.Module=_t;var Ut=function(){function x(v,A){this.type=n.Syntax.NewExpression,this.callee=v,this.arguments=A}return x}();e.NewExpression=Ut;var ct=function(){function x(v){this.type=n.Syntax.ObjectExpression,this.properties=v}return x}();e.ObjectExpression=ct;var dt=function(){function x(v){this.type=n.Syntax.ObjectPattern,this.properties=v}return x}();e.ObjectPattern=dt;var le=function(){function x(v,A,M,ee,Ir,El){this.type=n.Syntax.Property,this.key=A,this.computed=M,this.value=ee,this.kind=v,this.method=Ir,this.shorthand=El}return x}();e.Property=le;var ce=function(){function x(v,A,M,ee){this.type=n.Syntax.Literal,this.value=v,this.raw=A,this.regex={pattern:M,flags:ee}}return x}();e.RegexLiteral=ce;var se=function(){function x(v){this.type=n.Syntax.RestElement,this.argument=v}return x}();e.RestElement=se;var kr=function(){function x(v){this.type=n.Syntax.ReturnStatement,this.argument=v}return x}();e.ReturnStatement=kr;var Tr=function(){function x(v){this.type=n.Syntax.Program,this.body=v,this.sourceType="script"}return x}();e.Script=Tr;var il=function(){function x(v){this.type=n.Syntax.SequenceExpression,this.expressions=v}return x}();e.SequenceExpression=il;var sl=function(){function x(v){this.type=n.Syntax.SpreadElement,this.argument=v}return x}();e.SpreadElement=sl;var ol=function(){function x(v,A){this.type=n.Syntax.MemberExpression,this.computed=!1,this.object=v,this.property=A}return x}();e.StaticMemberExpression=ol;var al=function(){function x(){this.type=n.Syntax.Super}return x}();e.Super=al;var ul=function(){function x(v,A){this.type=n.Syntax.SwitchCase,this.test=v,this.consequent=A}return x}();e.SwitchCase=ul;var ll=function(){function x(v,A){this.type=n.Syntax.SwitchStatement,this.discriminant=v,this.cases=A}return x}();e.SwitchStatement=ll;var cl=function(){function x(v,A){this.type=n.Syntax.TaggedTemplateExpression,this.tag=v,this.quasi=A}return x}();e.TaggedTemplateExpression=cl;var dl=function(){function x(v,A){this.type=n.Syntax.TemplateElement,this.value=v,this.tail=A}return x}();e.TemplateElement=dl;var hl=function(){function x(v,A){this.type=n.Syntax.TemplateLiteral,this.quasis=v,this.expressions=A}return x}();e.TemplateLiteral=hl;var fl=function(){function x(){this.type=n.Syntax.ThisExpression}return x}();e.ThisExpression=fl;var pl=function(){function x(v){this.type=n.Syntax.ThrowStatement,this.argument=v}return x}();e.ThrowStatement=pl;var ml=function(){function x(v,A,M){this.type=n.Syntax.TryStatement,this.block=v,this.handler=A,this.finalizer=M}return x}();e.TryStatement=ml;var gl=function(){function x(v,A){this.type=n.Syntax.UnaryExpression,this.operator=v,this.argument=A,this.prefix=!0}return x}();e.UnaryExpression=gl;var yl=function(){function x(v,A,M){this.type=n.Syntax.UpdateExpression,this.operator=v,this.argument=A,this.prefix=M}return x}();e.UpdateExpression=yl;var Sl=function(){function x(v,A){this.type=n.Syntax.VariableDeclaration,this.declarations=v,this.kind=A}return x}();e.VariableDeclaration=Sl;var bl=function(){function x(v,A){this.type=n.Syntax.VariableDeclarator,this.id=v,this.init=A}return x}();e.VariableDeclarator=bl;var xl=function(){function x(v,A){this.type=n.Syntax.WhileStatement,this.test=v,this.body=A}return x}();e.WhileStatement=xl;var vl=function(){function x(v,A){this.type=n.Syntax.WithStatement,this.object=v,this.body=A}return x}();e.WithStatement=vl;var Dl=function(){function x(v,A){this.type=n.Syntax.YieldExpression,this.argument=v,this.delegate=A}return x}();e.YieldExpression=Dl},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),i=r(10),u=r(11),a=r(7),f=r(12),p=r(2),m=r(13),h="ArrowParameterPlaceHolder",g=function(){function d(s,o,l){o===void 0&&(o={}),this.config={range:typeof o.range=="boolean"&&o.range,loc:typeof o.loc=="boolean"&&o.loc,source:null,tokens:typeof o.tokens=="boolean"&&o.tokens,comment:typeof o.comment=="boolean"&&o.comment,tolerant:typeof o.tolerant=="boolean"&&o.tolerant},this.config.loc&&o.source&&o.source!==null&&(this.config.source=String(o.source)),this.delegate=l,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new f.Scanner(s,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return d.prototype.throwError=function(s){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];var c=Array.prototype.slice.call(arguments,1),y=s.replace(/%(\d)/g,function(C,T){return n.assert(T<c.length,"Message reference must be in range"),c[T]}),S=this.lastMarker.index,D=this.lastMarker.line,E=this.lastMarker.column+1;throw this.errorHandler.createError(S,D,E,y)},d.prototype.tolerateError=function(s){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];var c=Array.prototype.slice.call(arguments,1),y=s.replace(/%(\d)/g,function(C,T){return n.assert(T<c.length,"Message reference must be in range"),c[T]}),S=this.lastMarker.index,D=this.scanner.lineNumber,E=this.lastMarker.column+1;this.errorHandler.tolerateError(S,D,E,y)},d.prototype.unexpectedTokenError=function(s,o){var l=o||u.Messages.UnexpectedToken,c;if(s?(o||(l=s.type===2?u.Messages.UnexpectedEOS:s.type===3?u.Messages.UnexpectedIdentifier:s.type===6?u.Messages.UnexpectedNumber:s.type===8?u.Messages.UnexpectedString:s.type===10?u.Messages.UnexpectedTemplate:u.Messages.UnexpectedToken,s.type===4&&(this.scanner.isFutureReservedWord(s.value)?l=u.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(s.value)&&(l=u.Messages.StrictReservedWord))),c=s.value):c="ILLEGAL",l=l.replace("%0",c),s&&typeof s.lineNumber=="number"){var y=s.start,S=s.lineNumber,D=this.lastMarker.index-this.lastMarker.column,E=s.start-D+1;return this.errorHandler.createError(y,S,E,l)}else{var y=this.lastMarker.index,S=this.lastMarker.line,E=this.lastMarker.column+1;return this.errorHandler.createError(y,S,E,l)}},d.prototype.throwUnexpectedToken=function(s,o){throw this.unexpectedTokenError(s,o)},d.prototype.tolerateUnexpectedToken=function(s,o){this.errorHandler.tolerate(this.unexpectedTokenError(s,o))},d.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var s=this.scanner.scanComments();if(s.length>0&&this.delegate)for(var o=0;o<s.length;++o){var l=s[o],c=void 0;c={type:l.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(l.slice[0],l.slice[1])},this.config.range&&(c.range=l.range),this.config.loc&&(c.loc=l.loc);var y={start:{line:l.loc.start.line,column:l.loc.start.column,offset:l.range[0]},end:{line:l.loc.end.line,column:l.loc.end.column,offset:l.range[1]}};this.delegate(c,y)}}},d.prototype.getTokenRaw=function(s){return this.scanner.source.slice(s.start,s.end)},d.prototype.convertToken=function(s){var o={type:m.TokenName[s.type],value:this.getTokenRaw(s)};if(this.config.range&&(o.range=[s.start,s.end]),this.config.loc&&(o.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),s.type===9){var l=s.pattern,c=s.flags;o.regex={pattern:l,flags:c}}return o},d.prototype.nextToken=function(){var s=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var o=this.scanner.lex();return this.hasLineTerminator=s.lineNumber!==o.lineNumber,o&&this.context.strict&&o.type===3&&this.scanner.isStrictModeReservedWord(o.value)&&(o.type=4),this.lookahead=o,this.config.tokens&&o.type!==2&&this.tokens.push(this.convertToken(o)),s},d.prototype.nextRegexToken=function(){this.collectComments();var s=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(s))),this.lookahead=s,this.nextToken(),s},d.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},d.prototype.startNode=function(s,o){o===void 0&&(o=0);var l=s.start-s.lineStart,c=s.lineNumber;return l<0&&(l+=o,c--),{index:s.start,line:c,column:l}},d.prototype.finalize=function(s,o){if(this.config.range&&(o.range=[s.index,this.lastMarker.index]),this.config.loc&&(o.loc={start:{line:s.line,column:s.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(o.loc.source=this.config.source)),this.delegate){var l={start:{line:s.line,column:s.column,offset:s.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(o,l)}return o},d.prototype.expect=function(s){var o=this.nextToken();(o.type!==7||o.value!==s)&&this.throwUnexpectedToken(o)},d.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var s=this.lookahead;s.type===7&&s.value===","?this.nextToken():s.type===7&&s.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(s)):this.tolerateUnexpectedToken(s,u.Messages.UnexpectedToken)}else this.expect(",")},d.prototype.expectKeyword=function(s){var o=this.nextToken();(o.type!==4||o.value!==s)&&this.throwUnexpectedToken(o)},d.prototype.match=function(s){return this.lookahead.type===7&&this.lookahead.value===s},d.prototype.matchKeyword=function(s){return this.lookahead.type===4&&this.lookahead.value===s},d.prototype.matchContextualKeyword=function(s){return this.lookahead.type===3&&this.lookahead.value===s},d.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var s=this.lookahead.value;return s==="="||s==="*="||s==="**="||s==="/="||s==="%="||s==="+="||s==="-="||s==="<<="||s===">>="||s===">>>="||s==="&="||s==="^="||s==="|="},d.prototype.isolateCoverGrammar=function(s){var o=this.context.isBindingElement,l=this.context.isAssignmentTarget,c=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var y=s.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=o,this.context.isAssignmentTarget=l,this.context.firstCoverInitializedNameError=c,y},d.prototype.inheritCoverGrammar=function(s){var o=this.context.isBindingElement,l=this.context.isAssignmentTarget,c=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var y=s.call(this);return this.context.isBindingElement=this.context.isBindingElement&&o,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&l,this.context.firstCoverInitializedNameError=c||this.context.firstCoverInitializedNameError,y},d.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},d.prototype.parsePrimaryExpression=function(){var s=this.createNode(),o,l,c;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),o=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(s,new a.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,u.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,l=this.nextToken(),c=this.getTokenRaw(l),o=this.finalize(s,new a.Literal(l.value,c));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,l=this.nextToken(),c=this.getTokenRaw(l),o=this.finalize(s,new a.Literal(l.value==="true",c));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,l=this.nextToken(),c=this.getTokenRaw(l),o=this.finalize(s,new a.Literal(null,c));break;case 10:o=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,o=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":o=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":o=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,l=this.nextRegexToken(),c=this.getTokenRaw(l),o=this.finalize(s,new a.RegexLiteral(l.regex,c,l.pattern,l.flags));break;default:o=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?o=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?o=this.finalize(s,new a.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?o=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),o=this.finalize(s,new a.ThisExpression)):this.matchKeyword("class")?o=this.parseClassExpression():o=this.throwUnexpectedToken(this.nextToken()));break;default:o=this.throwUnexpectedToken(this.nextToken())}return o},d.prototype.parseSpreadElement=function(){var s=this.createNode();this.expect("...");var o=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(s,new a.SpreadElement(o))},d.prototype.parseArrayInitializer=function(){var s=this.createNode(),o=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),o.push(null);else if(this.match("...")){var l=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),o.push(l)}else o.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(s,new a.ArrayExpression(o))},d.prototype.parsePropertyMethod=function(s){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var o=this.context.strict,l=this.context.allowStrictDirective;this.context.allowStrictDirective=s.simple;var c=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&s.firstRestricted&&this.tolerateUnexpectedToken(s.firstRestricted,s.message),this.context.strict&&s.stricted&&this.tolerateUnexpectedToken(s.stricted,s.message),this.context.strict=o,this.context.allowStrictDirective=l,c},d.prototype.parsePropertyMethodFunction=function(){var s=!1,o=this.createNode(),l=this.context.allowYield;this.context.allowYield=!0;var c=this.parseFormalParameters(),y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(o,new a.FunctionExpression(null,c.params,y,s))},d.prototype.parsePropertyMethodAsyncFunction=function(){var s=this.createNode(),o=this.context.allowYield,l=this.context.await;this.context.allowYield=!1,this.context.await=!0;var c=this.parseFormalParameters(),y=this.parsePropertyMethod(c);return this.context.allowYield=o,this.context.await=l,this.finalize(s,new a.AsyncFunctionExpression(null,c.params,y))},d.prototype.parseObjectPropertyKey=function(){var s=this.createNode(),o=this.nextToken(),l;switch(o.type){case 8:case 6:this.context.strict&&o.octal&&this.tolerateUnexpectedToken(o,u.Messages.StrictOctalLiteral);var c=this.getTokenRaw(o);l=this.finalize(s,new a.Literal(o.value,c));break;case 3:case 1:case 5:case 4:l=this.finalize(s,new a.Identifier(o.value));break;case 7:o.value==="["?(l=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):l=this.throwUnexpectedToken(o);break;default:l=this.throwUnexpectedToken(o)}return l},d.prototype.isPropertyKey=function(s,o){return s.type===p.Syntax.Identifier&&s.name===o||s.type===p.Syntax.Literal&&s.value===o},d.prototype.parseObjectProperty=function(s){var o=this.createNode(),l=this.lookahead,c,y=null,S=null,D=!1,E=!1,C=!1,T=!1;if(l.type===3){var F=l.value;this.nextToken(),D=this.match("["),T=!this.hasLineTerminator&&F==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),y=T?this.parseObjectPropertyKey():this.finalize(o,new a.Identifier(F))}else this.match("*")?this.nextToken():(D=this.match("["),y=this.parseObjectPropertyKey());var O=this.qualifiedPropertyName(this.lookahead);if(l.type===3&&!T&&l.value==="get"&&O)c="get",D=this.match("["),y=this.parseObjectPropertyKey(),this.context.allowYield=!1,S=this.parseGetterMethod();else if(l.type===3&&!T&&l.value==="set"&&O)c="set",D=this.match("["),y=this.parseObjectPropertyKey(),S=this.parseSetterMethod();else if(l.type===7&&l.value==="*"&&O)c="init",D=this.match("["),y=this.parseObjectPropertyKey(),S=this.parseGeneratorMethod(),E=!0;else if(y||this.throwUnexpectedToken(this.lookahead),c="init",this.match(":")&&!T)!D&&this.isPropertyKey(y,"__proto__")&&(s.value&&this.tolerateError(u.Messages.DuplicateProtoProperty),s.value=!0),this.nextToken(),S=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))S=T?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),E=!0;else if(l.type===3){var F=this.finalize(o,new a.Identifier(l.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),C=!0;var j=this.isolateCoverGrammar(this.parseAssignmentExpression);S=this.finalize(o,new a.AssignmentPattern(F,j))}else C=!0,S=F}else this.throwUnexpectedToken(this.nextToken());return this.finalize(o,new a.Property(c,y,D,S,E,C))},d.prototype.parseObjectInitializer=function(){var s=this.createNode();this.expect("{");for(var o=[],l={value:!1};!this.match("}");)o.push(this.parseObjectProperty(l)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(s,new a.ObjectExpression(o))},d.prototype.parseTemplateHead=function(){n.assert(this.lookahead.head,"Template literal must start with a template head");var s=this.createNode(),o=this.nextToken(),l=o.value,c=o.cooked;return this.finalize(s,new a.TemplateElement({raw:l,cooked:c},o.tail))},d.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var s=this.createNode(),o=this.nextToken(),l=o.value,c=o.cooked;return this.finalize(s,new a.TemplateElement({raw:l,cooked:c},o.tail))},d.prototype.parseTemplateLiteral=function(){var s=this.createNode(),o=[],l=[],c=this.parseTemplateHead();for(l.push(c);!c.tail;)o.push(this.parseExpression()),c=this.parseTemplateElement(),l.push(c);return this.finalize(s,new a.TemplateLiteral(l,o))},d.prototype.reinterpretExpressionAsPattern=function(s){switch(s.type){case p.Syntax.Identifier:case p.Syntax.MemberExpression:case p.Syntax.RestElement:case p.Syntax.AssignmentPattern:break;case p.Syntax.SpreadElement:s.type=p.Syntax.RestElement,this.reinterpretExpressionAsPattern(s.argument);break;case p.Syntax.ArrayExpression:s.type=p.Syntax.ArrayPattern;for(var o=0;o<s.elements.length;o++)s.elements[o]!==null&&this.reinterpretExpressionAsPattern(s.elements[o]);break;case p.Syntax.ObjectExpression:s.type=p.Syntax.ObjectPattern;for(var o=0;o<s.properties.length;o++)this.reinterpretExpressionAsPattern(s.properties[o].value);break;case p.Syntax.AssignmentExpression:s.type=p.Syntax.AssignmentPattern,delete s.operator,this.reinterpretExpressionAsPattern(s.left);break;default:break}},d.prototype.parseGroupExpression=function(){var s;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),s={type:h,params:[],async:!1};else{var o=this.lookahead,l=[];if(this.match("..."))s=this.parseRestElement(l),this.expect(")"),this.match("=>")||this.expect("=>"),s={type:h,params:[s],async:!1};else{var c=!1;if(this.context.isBindingElement=!0,s=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var y=[];for(this.context.isAssignmentTarget=!1,y.push(s);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var S=0;S<y.length;S++)this.reinterpretExpressionAsPattern(y[S]);c=!0,s={type:h,params:y,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),y.push(this.parseRestElement(l)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var S=0;S<y.length;S++)this.reinterpretExpressionAsPattern(y[S]);c=!0,s={type:h,params:y,async:!1}}else y.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(c)break}c||(s=this.finalize(this.startNode(o),new a.SequenceExpression(y)))}if(!c){if(this.expect(")"),this.match("=>")&&(s.type===p.Syntax.Identifier&&s.name==="yield"&&(c=!0,s={type:h,params:[s],async:!1}),!c)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),s.type===p.Syntax.SequenceExpression)for(var S=0;S<s.expressions.length;S++)this.reinterpretExpressionAsPattern(s.expressions[S]);else this.reinterpretExpressionAsPattern(s);var D=s.type===p.Syntax.SequenceExpression?s.expressions:[s];s={type:h,params:D,async:!1}}this.context.isBindingElement=!1}}}return s},d.prototype.parseArguments=function(){this.expect("(");var s=[];if(!this.match(")"))for(;;){var o=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(s.push(o),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),s},d.prototype.isIdentifierName=function(s){return s.type===3||s.type===4||s.type===1||s.type===5},d.prototype.parseIdentifierName=function(){var s=this.createNode(),o=this.nextToken();return this.isIdentifierName(o)||this.throwUnexpectedToken(o),this.finalize(s,new a.Identifier(o.value))},d.prototype.parseNewExpression=function(){var s=this.createNode(),o=this.parseIdentifierName();n.assert(o.name==="new","New expression must start with `new`");var l;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var c=this.parseIdentifierName();l=new a.MetaProperty(o,c)}else this.throwUnexpectedToken(this.lookahead);else{var y=this.isolateCoverGrammar(this.parseLeftHandSideExpression),S=this.match("(")?this.parseArguments():[];l=new a.NewExpression(y,S),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(s,l)},d.prototype.parseAsyncArgument=function(){var s=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,s},d.prototype.parseAsyncArguments=function(){this.expect("(");var s=[];if(!this.match(")"))for(;;){var o=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(s.push(o),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),s},d.prototype.parseLeftHandSideExpressionAllowCall=function(){var s=this.lookahead,o=this.matchContextualKeyword("async"),l=this.context.allowIn;this.context.allowIn=!0;var c;for(this.matchKeyword("super")&&this.context.inFunctionBody?(c=this.createNode(),this.nextToken(),c=this.finalize(c,new a.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):c=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var y=this.parseIdentifierName();c=this.finalize(this.startNode(s),new a.StaticMemberExpression(c,y))}else if(this.match("(")){var S=o&&s.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var D=S?this.parseAsyncArguments():this.parseArguments();if(c=this.finalize(this.startNode(s),new a.CallExpression(c,D)),S&&this.match("=>")){for(var E=0;E<D.length;++E)this.reinterpretExpressionAsPattern(D[E]);c={type:h,params:D,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var y=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),c=this.finalize(this.startNode(s),new a.ComputedMemberExpression(c,y))}else if(this.lookahead.type===10&&this.lookahead.head){var C=this.parseTemplateLiteral();c=this.finalize(this.startNode(s),new a.TaggedTemplateExpression(c,C))}else break;return this.context.allowIn=l,c},d.prototype.parseSuper=function(){var s=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(s,new a.Super)},d.prototype.parseLeftHandSideExpression=function(){n.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var s=this.startNode(this.lookahead),o=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var l=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),o=this.finalize(s,new a.ComputedMemberExpression(o,l))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var l=this.parseIdentifierName();o=this.finalize(s,new a.StaticMemberExpression(o,l))}else if(this.lookahead.type===10&&this.lookahead.head){var c=this.parseTemplateLiteral();o=this.finalize(s,new a.TaggedTemplateExpression(o,c))}else break;return o},d.prototype.parseUpdateExpression=function(){var s,o=this.lookahead;if(this.match("++")||this.match("--")){var l=this.startNode(o),c=this.nextToken();s=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&s.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(s.name)&&this.tolerateError(u.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(u.Messages.InvalidLHSInAssignment);var y=!0;s=this.finalize(l,new a.UpdateExpression(c.value,s,y)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(s=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&s.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(s.name)&&this.tolerateError(u.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(u.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var S=this.nextToken().value,y=!1;s=this.finalize(this.startNode(o),new a.UpdateExpression(S,s,y))}return s},d.prototype.parseAwaitExpression=function(){var s=this.createNode();this.nextToken();var o=this.parseUnaryExpression();return this.finalize(s,new a.AwaitExpression(o))},d.prototype.parseUnaryExpression=function(){var s;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var o=this.startNode(this.lookahead),l=this.nextToken();s=this.inheritCoverGrammar(this.parseUnaryExpression),s=this.finalize(o,new a.UnaryExpression(l.value,s)),this.context.strict&&s.operator==="delete"&&s.argument.type===p.Syntax.Identifier&&this.tolerateError(u.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?s=this.parseAwaitExpression():s=this.parseUpdateExpression();return s},d.prototype.parseExponentiationExpression=function(){var s=this.lookahead,o=this.inheritCoverGrammar(this.parseUnaryExpression);if(o.type!==p.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var l=o,c=this.isolateCoverGrammar(this.parseExponentiationExpression);o=this.finalize(this.startNode(s),new a.BinaryExpression("**",l,c))}return o},d.prototype.binaryPrecedence=function(s){var o=s.value,l;return s.type===7?l=this.operatorPrecedence[o]||0:s.type===4?l=o==="instanceof"||this.context.allowIn&&o==="in"?7:0:l=0,l},d.prototype.parseBinaryExpression=function(){var s=this.lookahead,o=this.inheritCoverGrammar(this.parseExponentiationExpression),l=this.lookahead,c=this.binaryPrecedence(l);if(c>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var y=[s,this.lookahead],S=o,D=this.isolateCoverGrammar(this.parseExponentiationExpression),E=[S,l.value,D],C=[c];c=this.binaryPrecedence(this.lookahead),!(c<=0);){for(;E.length>2&&c<=C[C.length-1];){D=E.pop();var T=E.pop();C.pop(),S=E.pop(),y.pop();var F=this.startNode(y[y.length-1]);E.push(this.finalize(F,new a.BinaryExpression(T,S,D)))}E.push(this.nextToken().value),C.push(c),y.push(this.lookahead),E.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var O=E.length-1;o=E[O];for(var j=y.pop();O>1;){var q=y.pop(),z=j&&j.lineStart,F=this.startNode(q,z),T=E[O-1];o=this.finalize(F,new a.BinaryExpression(T,E[O-2],o)),O-=2,j=q}}return o},d.prototype.parseConditionalExpression=function(){var s=this.lookahead,o=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var l=this.context.allowIn;this.context.allowIn=!0;var c=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=l,this.expect(":");var y=this.isolateCoverGrammar(this.parseAssignmentExpression);o=this.finalize(this.startNode(s),new a.ConditionalExpression(o,c,y)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return o},d.prototype.checkPatternParam=function(s,o){switch(o.type){case p.Syntax.Identifier:this.validateParam(s,o,o.name);break;case p.Syntax.RestElement:this.checkPatternParam(s,o.argument);break;case p.Syntax.AssignmentPattern:this.checkPatternParam(s,o.left);break;case p.Syntax.ArrayPattern:for(var l=0;l<o.elements.length;l++)o.elements[l]!==null&&this.checkPatternParam(s,o.elements[l]);break;case p.Syntax.ObjectPattern:for(var l=0;l<o.properties.length;l++)this.checkPatternParam(s,o.properties[l].value);break;default:break}s.simple=s.simple&&o instanceof a.Identifier},d.prototype.reinterpretAsCoverFormalsList=function(s){var o=[s],l,c=!1;switch(s.type){case p.Syntax.Identifier:break;case h:o=s.params,c=s.async;break;default:return null}l={simple:!0,paramSet:{}};for(var y=0;y<o.length;++y){var S=o[y];S.type===p.Syntax.AssignmentPattern?S.right.type===p.Syntax.YieldExpression&&(S.right.argument&&this.throwUnexpectedToken(this.lookahead),S.right.type=p.Syntax.Identifier,S.right.name="yield",delete S.right.argument,delete S.right.delegate):c&&S.type===p.Syntax.Identifier&&S.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(l,S),o[y]=S}if(this.context.strict||!this.context.allowYield)for(var y=0;y<o.length;++y){var S=o[y];S.type===p.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(l.message===u.Messages.StrictParamDupe){var D=this.context.strict?l.stricted:l.firstRestricted;this.throwUnexpectedToken(D,l.message)}return{simple:l.simple,params:o,stricted:l.stricted,firstRestricted:l.firstRestricted,message:l.message}},d.prototype.parseAssignmentExpression=function(){var s;if(!this.context.allowYield&&this.matchKeyword("yield"))s=this.parseYieldExpression();else{var o=this.lookahead,l=o;if(s=this.parseConditionalExpression(),l.type===3&&l.lineNumber===this.lookahead.lineNumber&&l.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var c=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(c),s={type:h,params:[c],async:!0}}if(s.type===h||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var y=s.async,S=this.reinterpretAsCoverFormalsList(s);if(S){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var D=this.context.strict,E=this.context.allowStrictDirective;this.context.allowStrictDirective=S.simple;var C=this.context.allowYield,T=this.context.await;this.context.allowYield=!0,this.context.await=y;var F=this.startNode(o);this.expect("=>");var O=void 0;if(this.match("{")){var j=this.context.allowIn;this.context.allowIn=!0,O=this.parseFunctionSourceElements(),this.context.allowIn=j}else O=this.isolateCoverGrammar(this.parseAssignmentExpression);var q=O.type!==p.Syntax.BlockStatement;this.context.strict&&S.firstRestricted&&this.throwUnexpectedToken(S.firstRestricted,S.message),this.context.strict&&S.stricted&&this.tolerateUnexpectedToken(S.stricted,S.message),s=y?this.finalize(F,new a.AsyncArrowFunctionExpression(S.params,O,q)):this.finalize(F,new a.ArrowFunctionExpression(S.params,O,q)),this.context.strict=D,this.context.allowStrictDirective=E,this.context.allowYield=C,this.context.await=T}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(u.Messages.InvalidLHSInAssignment),this.context.strict&&s.type===p.Syntax.Identifier){var z=s;this.scanner.isRestrictedWord(z.name)&&this.tolerateUnexpectedToken(l,u.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(z.name)&&this.tolerateUnexpectedToken(l,u.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(s):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),l=this.nextToken();var De=l.value,We=this.isolateCoverGrammar(this.parseAssignmentExpression);s=this.finalize(this.startNode(o),new a.AssignmentExpression(De,s,We)),this.context.firstCoverInitializedNameError=null}}return s},d.prototype.parseExpression=function(){var s=this.lookahead,o=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var l=[];for(l.push(o);this.lookahead.type!==2&&this.match(",");)this.nextToken(),l.push(this.isolateCoverGrammar(this.parseAssignmentExpression));o=this.finalize(this.startNode(s),new a.SequenceExpression(l))}return o},d.prototype.parseStatementListItem=function(){var s;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,u.Messages.IllegalExportDeclaration),s=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,u.Messages.IllegalImportDeclaration),s=this.parseImportDeclaration();break;case"const":s=this.parseLexicalDeclaration({inFor:!1});break;case"function":s=this.parseFunctionDeclaration();break;case"class":s=this.parseClassDeclaration();break;case"let":s=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:s=this.parseStatement();break}else s=this.parseStatement();return s},d.prototype.parseBlock=function(){var s=this.createNode();this.expect("{");for(var o=[];!this.match("}");)o.push(this.parseStatementListItem());return this.expect("}"),this.finalize(s,new a.BlockStatement(o))},d.prototype.parseLexicalBinding=function(s,o){var l=this.createNode(),c=[],y=this.parsePattern(c,s);this.context.strict&&y.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(y.name)&&this.tolerateError(u.Messages.StrictVarName);var S=null;return s==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),S=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(u.Messages.DeclarationMissingInitializer,"const")):(!o.inFor&&y.type!==p.Syntax.Identifier||this.match("="))&&(this.expect("="),S=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(l,new a.VariableDeclarator(y,S))},d.prototype.parseBindingList=function(s,o){for(var l=[this.parseLexicalBinding(s,o)];this.match(",");)this.nextToken(),l.push(this.parseLexicalBinding(s,o));return l},d.prototype.isLexicalDeclaration=function(){var s=this.scanner.saveState();this.scanner.scanComments();var o=this.scanner.lex();return this.scanner.restoreState(s),o.type===3||o.type===7&&o.value==="["||o.type===7&&o.value==="{"||o.type===4&&o.value==="let"||o.type===4&&o.value==="yield"},d.prototype.parseLexicalDeclaration=function(s){var o=this.createNode(),l=this.nextToken().value;n.assert(l==="let"||l==="const","Lexical declaration must be either let or const");var c=this.parseBindingList(l,s);return this.consumeSemicolon(),this.finalize(o,new a.VariableDeclaration(c,l))},d.prototype.parseBindingRestElement=function(s,o){var l=this.createNode();this.expect("...");var c=this.parsePattern(s,o);return this.finalize(l,new a.RestElement(c))},d.prototype.parseArrayPattern=function(s,o){var l=this.createNode();this.expect("[");for(var c=[];!this.match("]");)if(this.match(","))this.nextToken(),c.push(null);else{if(this.match("...")){c.push(this.parseBindingRestElement(s,o));break}else c.push(this.parsePatternWithDefault(s,o));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(l,new a.ArrayPattern(c))},d.prototype.parsePropertyPattern=function(s,o){var l=this.createNode(),c=!1,y=!1,S=!1,D,E;if(this.lookahead.type===3){var C=this.lookahead;D=this.parseVariableIdentifier();var T=this.finalize(l,new a.Identifier(C.value));if(this.match("=")){s.push(C),y=!0,this.nextToken();var F=this.parseAssignmentExpression();E=this.finalize(this.startNode(C),new a.AssignmentPattern(T,F))}else this.match(":")?(this.expect(":"),E=this.parsePatternWithDefault(s,o)):(s.push(C),y=!0,E=T)}else c=this.match("["),D=this.parseObjectPropertyKey(),this.expect(":"),E=this.parsePatternWithDefault(s,o);return this.finalize(l,new a.Property("init",D,c,E,S,y))},d.prototype.parseObjectPattern=function(s,o){var l=this.createNode(),c=[];for(this.expect("{");!this.match("}");)c.push(this.parsePropertyPattern(s,o)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(l,new a.ObjectPattern(c))},d.prototype.parsePattern=function(s,o){var l;return this.match("[")?l=this.parseArrayPattern(s,o):this.match("{")?l=this.parseObjectPattern(s,o):(this.matchKeyword("let")&&(o==="const"||o==="let")&&this.tolerateUnexpectedToken(this.lookahead,u.Messages.LetInLexicalBinding),s.push(this.lookahead),l=this.parseVariableIdentifier(o)),l},d.prototype.parsePatternWithDefault=function(s,o){var l=this.lookahead,c=this.parsePattern(s,o);if(this.match("=")){this.nextToken();var y=this.context.allowYield;this.context.allowYield=!0;var S=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=y,c=this.finalize(this.startNode(l),new a.AssignmentPattern(c,S))}return c},d.prototype.parseVariableIdentifier=function(s){var o=this.createNode(),l=this.nextToken();return l.type===4&&l.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(l,u.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(l):l.type!==3?this.context.strict&&l.type===4&&this.scanner.isStrictModeReservedWord(l.value)?this.tolerateUnexpectedToken(l,u.Messages.StrictReservedWord):(this.context.strict||l.value!=="let"||s!=="var")&&this.throwUnexpectedToken(l):(this.context.isModule||this.context.await)&&l.type===3&&l.value==="await"&&this.tolerateUnexpectedToken(l),this.finalize(o,new a.Identifier(l.value))},d.prototype.parseVariableDeclaration=function(s){var o=this.createNode(),l=[],c=this.parsePattern(l,"var");this.context.strict&&c.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(c.name)&&this.tolerateError(u.Messages.StrictVarName);var y=null;return this.match("=")?(this.nextToken(),y=this.isolateCoverGrammar(this.parseAssignmentExpression)):c.type!==p.Syntax.Identifier&&!s.inFor&&this.expect("="),this.finalize(o,new a.VariableDeclarator(c,y))},d.prototype.parseVariableDeclarationList=function(s){var o={inFor:s.inFor},l=[];for(l.push(this.parseVariableDeclaration(o));this.match(",");)this.nextToken(),l.push(this.parseVariableDeclaration(o));return l},d.prototype.parseVariableStatement=function(){var s=this.createNode();this.expectKeyword("var");var o=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(s,new a.VariableDeclaration(o,"var"))},d.prototype.parseEmptyStatement=function(){var s=this.createNode();return this.expect(";"),this.finalize(s,new a.EmptyStatement)},d.prototype.parseExpressionStatement=function(){var s=this.createNode(),o=this.parseExpression();return this.consumeSemicolon(),this.finalize(s,new a.ExpressionStatement(o))},d.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(u.Messages.StrictFunction),this.parseStatement()},d.prototype.parseIfStatement=function(){var s=this.createNode(),o,l=null;this.expectKeyword("if"),this.expect("(");var c=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),o=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),o=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),l=this.parseIfClause())),this.finalize(s,new a.IfStatement(c,o,l))},d.prototype.parseDoWhileStatement=function(){var s=this.createNode();this.expectKeyword("do");var o=this.context.inIteration;this.context.inIteration=!0;var l=this.parseStatement();this.context.inIteration=o,this.expectKeyword("while"),this.expect("(");var c=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(s,new a.DoWhileStatement(l,c))},d.prototype.parseWhileStatement=function(){var s=this.createNode(),o;this.expectKeyword("while"),this.expect("(");var l=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),o=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var c=this.context.inIteration;this.context.inIteration=!0,o=this.parseStatement(),this.context.inIteration=c}return this.finalize(s,new a.WhileStatement(l,o))},d.prototype.parseForStatement=function(){var s=null,o=null,l=null,c=!0,y,S,D=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){s=this.createNode(),this.nextToken();var E=this.context.allowIn;this.context.allowIn=!1;var C=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=E,C.length===1&&this.matchKeyword("in")){var T=C[0];T.init&&(T.id.type===p.Syntax.ArrayPattern||T.id.type===p.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(u.Messages.ForInOfLoopInitializer,"for-in"),s=this.finalize(s,new a.VariableDeclaration(C,"var")),this.nextToken(),y=s,S=this.parseExpression(),s=null}else C.length===1&&C[0].init===null&&this.matchContextualKeyword("of")?(s=this.finalize(s,new a.VariableDeclaration(C,"var")),this.nextToken(),y=s,S=this.parseAssignmentExpression(),s=null,c=!1):(s=this.finalize(s,new a.VariableDeclaration(C,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){s=this.createNode();var F=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")s=this.finalize(s,new a.Identifier(F)),this.nextToken(),y=s,S=this.parseExpression(),s=null;else{var E=this.context.allowIn;this.context.allowIn=!1;var C=this.parseBindingList(F,{inFor:!0});this.context.allowIn=E,C.length===1&&C[0].init===null&&this.matchKeyword("in")?(s=this.finalize(s,new a.VariableDeclaration(C,F)),this.nextToken(),y=s,S=this.parseExpression(),s=null):C.length===1&&C[0].init===null&&this.matchContextualKeyword("of")?(s=this.finalize(s,new a.VariableDeclaration(C,F)),this.nextToken(),y=s,S=this.parseAssignmentExpression(),s=null,c=!1):(this.consumeSemicolon(),s=this.finalize(s,new a.VariableDeclaration(C,F)))}}else{var O=this.lookahead,E=this.context.allowIn;if(this.context.allowIn=!1,s=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=E,this.matchKeyword("in"))(!this.context.isAssignmentTarget||s.type===p.Syntax.AssignmentExpression)&&this.tolerateError(u.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(s),y=s,S=this.parseExpression(),s=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||s.type===p.Syntax.AssignmentExpression)&&this.tolerateError(u.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(s),y=s,S=this.parseAssignmentExpression(),s=null,c=!1;else{if(this.match(",")){for(var j=[s];this.match(",");)this.nextToken(),j.push(this.isolateCoverGrammar(this.parseAssignmentExpression));s=this.finalize(this.startNode(O),new a.SequenceExpression(j))}this.expect(";")}}typeof y>"u"&&(this.match(";")||(o=this.parseExpression()),this.expect(";"),this.match(")")||(l=this.parseExpression()));var q;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),q=this.finalize(this.createNode(),new a.EmptyStatement);else{this.expect(")");var z=this.context.inIteration;this.context.inIteration=!0,q=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=z}return typeof y>"u"?this.finalize(D,new a.ForStatement(s,o,l,q)):c?this.finalize(D,new a.ForInStatement(y,S,q)):this.finalize(D,new a.ForOfStatement(y,S,q))},d.prototype.parseContinueStatement=function(){var s=this.createNode();this.expectKeyword("continue");var o=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var l=this.parseVariableIdentifier();o=l;var c="$"+l.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,c)||this.throwError(u.Messages.UnknownLabel,l.name)}return this.consumeSemicolon(),o===null&&!this.context.inIteration&&this.throwError(u.Messages.IllegalContinue),this.finalize(s,new a.ContinueStatement(o))},d.prototype.parseBreakStatement=function(){var s=this.createNode();this.expectKeyword("break");var o=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var l=this.parseVariableIdentifier(),c="$"+l.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,c)||this.throwError(u.Messages.UnknownLabel,l.name),o=l}return this.consumeSemicolon(),o===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(u.Messages.IllegalBreak),this.finalize(s,new a.BreakStatement(o))},d.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(u.Messages.IllegalReturn);var s=this.createNode();this.expectKeyword("return");var o=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,l=o?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(s,new a.ReturnStatement(l))},d.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(u.Messages.StrictModeWith);var s=this.createNode(),o;this.expectKeyword("with"),this.expect("(");var l=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),o=this.finalize(this.createNode(),new a.EmptyStatement)):(this.expect(")"),o=this.parseStatement()),this.finalize(s,new a.WithStatement(l,o))},d.prototype.parseSwitchCase=function(){var s=this.createNode(),o;this.matchKeyword("default")?(this.nextToken(),o=null):(this.expectKeyword("case"),o=this.parseExpression()),this.expect(":");for(var l=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)l.push(this.parseStatementListItem());return this.finalize(s,new a.SwitchCase(o,l))},d.prototype.parseSwitchStatement=function(){var s=this.createNode();this.expectKeyword("switch"),this.expect("(");var o=this.parseExpression();this.expect(")");var l=this.context.inSwitch;this.context.inSwitch=!0;var c=[],y=!1;for(this.expect("{");!this.match("}");){var S=this.parseSwitchCase();S.test===null&&(y&&this.throwError(u.Messages.MultipleDefaultsInSwitch),y=!0),c.push(S)}return this.expect("}"),this.context.inSwitch=l,this.finalize(s,new a.SwitchStatement(o,c))},d.prototype.parseLabelledStatement=function(){var s=this.createNode(),o=this.parseExpression(),l;if(o.type===p.Syntax.Identifier&&this.match(":")){this.nextToken();var c=o,y="$"+c.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,y)&&this.throwError(u.Messages.Redeclaration,"Label",c.name),this.context.labelSet[y]=!0;var S=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),S=this.parseClassDeclaration();else if(this.matchKeyword("function")){var D=this.lookahead,E=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(D,u.Messages.StrictFunction):E.generator&&this.tolerateUnexpectedToken(D,u.Messages.GeneratorInLegacyContext),S=E}else S=this.parseStatement();delete this.context.labelSet[y],l=new a.LabeledStatement(c,S)}else this.consumeSemicolon(),l=new a.ExpressionStatement(o);return this.finalize(s,l)},d.prototype.parseThrowStatement=function(){var s=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(u.Messages.NewlineAfterThrow);var o=this.parseExpression();return this.consumeSemicolon(),this.finalize(s,new a.ThrowStatement(o))},d.prototype.parseCatchClause=function(){var s=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var o=[],l=this.parsePattern(o),c={},y=0;y<o.length;y++){var S="$"+o[y].value;Object.prototype.hasOwnProperty.call(c,S)&&this.tolerateError(u.Messages.DuplicateBinding,o[y].value),c[S]=!0}this.context.strict&&l.type===p.Syntax.Identifier&&this.scanner.isRestrictedWord(l.name)&&this.tolerateError(u.Messages.StrictCatchVariable),this.expect(")");var D=this.parseBlock();return this.finalize(s,new a.CatchClause(l,D))},d.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},d.prototype.parseTryStatement=function(){var s=this.createNode();this.expectKeyword("try");var o=this.parseBlock(),l=this.matchKeyword("catch")?this.parseCatchClause():null,c=this.matchKeyword("finally")?this.parseFinallyClause():null;return!l&&!c&&this.throwError(u.Messages.NoCatchOrFinally),this.finalize(s,new a.TryStatement(o,l,c))},d.prototype.parseDebuggerStatement=function(){var s=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(s,new a.DebuggerStatement)},d.prototype.parseStatement=function(){var s;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:s=this.parseExpressionStatement();break;case 7:var o=this.lookahead.value;o==="{"?s=this.parseBlock():o==="("?s=this.parseExpressionStatement():o===";"?s=this.parseEmptyStatement():s=this.parseExpressionStatement();break;case 3:s=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":s=this.parseBreakStatement();break;case"continue":s=this.parseContinueStatement();break;case"debugger":s=this.parseDebuggerStatement();break;case"do":s=this.parseDoWhileStatement();break;case"for":s=this.parseForStatement();break;case"function":s=this.parseFunctionDeclaration();break;case"if":s=this.parseIfStatement();break;case"return":s=this.parseReturnStatement();break;case"switch":s=this.parseSwitchStatement();break;case"throw":s=this.parseThrowStatement();break;case"try":s=this.parseTryStatement();break;case"var":s=this.parseVariableStatement();break;case"while":s=this.parseWhileStatement();break;case"with":s=this.parseWithStatement();break;default:s=this.parseExpressionStatement();break}break;default:s=this.throwUnexpectedToken(this.lookahead)}return s},d.prototype.parseFunctionSourceElements=function(){var s=this.createNode();this.expect("{");var o=this.parseDirectivePrologues(),l=this.context.labelSet,c=this.context.inIteration,y=this.context.inSwitch,S=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)o.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=l,this.context.inIteration=c,this.context.inSwitch=y,this.context.inFunctionBody=S,this.finalize(s,new a.BlockStatement(o))},d.prototype.validateParam=function(s,o,l){var c="$"+l;this.context.strict?(this.scanner.isRestrictedWord(l)&&(s.stricted=o,s.message=u.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(s.paramSet,c)&&(s.stricted=o,s.message=u.Messages.StrictParamDupe)):s.firstRestricted||(this.scanner.isRestrictedWord(l)?(s.firstRestricted=o,s.message=u.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(l)?(s.firstRestricted=o,s.message=u.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(s.paramSet,c)&&(s.stricted=o,s.message=u.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(s.paramSet,c,{value:!0,enumerable:!0,writable:!0,configurable:!0}):s.paramSet[c]=!0},d.prototype.parseRestElement=function(s){var o=this.createNode();this.expect("...");var l=this.parsePattern(s);return this.match("=")&&this.throwError(u.Messages.DefaultRestParameter),this.match(")")||this.throwError(u.Messages.ParameterAfterRestParameter),this.finalize(o,new a.RestElement(l))},d.prototype.parseFormalParameter=function(s){for(var o=[],l=this.match("...")?this.parseRestElement(o):this.parsePatternWithDefault(o),c=0;c<o.length;c++)this.validateParam(s,o[c],o[c].value);s.simple=s.simple&&l instanceof a.Identifier,s.params.push(l)},d.prototype.parseFormalParameters=function(s){var o;if(o={simple:!0,params:[],firstRestricted:s},this.expect("("),!this.match(")"))for(o.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(o),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:o.simple,params:o.params,stricted:o.stricted,firstRestricted:o.firstRestricted,message:o.message}},d.prototype.matchAsyncFunction=function(){var s=this.matchContextualKeyword("async");if(s){var o=this.scanner.saveState();this.scanner.scanComments();var l=this.scanner.lex();this.scanner.restoreState(o),s=o.lineNumber===l.lineNumber&&l.type===4&&l.value==="function"}return s},d.prototype.parseFunctionDeclaration=function(s){var o=this.createNode(),l=this.matchContextualKeyword("async");l&&this.nextToken(),this.expectKeyword("function");var c=l?!1:this.match("*");c&&this.nextToken();var y,S=null,D=null;if(!s||!this.match("(")){var E=this.lookahead;S=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(E.value)&&this.tolerateUnexpectedToken(E,u.Messages.StrictFunctionName):this.scanner.isRestrictedWord(E.value)?(D=E,y=u.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(E.value)&&(D=E,y=u.Messages.StrictReservedWord)}var C=this.context.await,T=this.context.allowYield;this.context.await=l,this.context.allowYield=!c;var F=this.parseFormalParameters(D),O=F.params,j=F.stricted;D=F.firstRestricted,F.message&&(y=F.message);var q=this.context.strict,z=this.context.allowStrictDirective;this.context.allowStrictDirective=F.simple;var De=this.parseFunctionSourceElements();return this.context.strict&&D&&this.throwUnexpectedToken(D,y),this.context.strict&&j&&this.tolerateUnexpectedToken(j,y),this.context.strict=q,this.context.allowStrictDirective=z,this.context.await=C,this.context.allowYield=T,l?this.finalize(o,new a.AsyncFunctionDeclaration(S,O,De)):this.finalize(o,new a.FunctionDeclaration(S,O,De,c))},d.prototype.parseFunctionExpression=function(){var s=this.createNode(),o=this.matchContextualKeyword("async");o&&this.nextToken(),this.expectKeyword("function");var l=o?!1:this.match("*");l&&this.nextToken();var c,y=null,S,D=this.context.await,E=this.context.allowYield;if(this.context.await=o,this.context.allowYield=!l,!this.match("(")){var C=this.lookahead;y=!this.context.strict&&!l&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(C.value)&&this.tolerateUnexpectedToken(C,u.Messages.StrictFunctionName):this.scanner.isRestrictedWord(C.value)?(S=C,c=u.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(C.value)&&(S=C,c=u.Messages.StrictReservedWord)}var T=this.parseFormalParameters(S),F=T.params,O=T.stricted;S=T.firstRestricted,T.message&&(c=T.message);var j=this.context.strict,q=this.context.allowStrictDirective;this.context.allowStrictDirective=T.simple;var z=this.parseFunctionSourceElements();return this.context.strict&&S&&this.throwUnexpectedToken(S,c),this.context.strict&&O&&this.tolerateUnexpectedToken(O,c),this.context.strict=j,this.context.allowStrictDirective=q,this.context.await=D,this.context.allowYield=E,o?this.finalize(s,new a.AsyncFunctionExpression(y,F,z)):this.finalize(s,new a.FunctionExpression(y,F,z,l))},d.prototype.parseDirective=function(){var s=this.lookahead,o=this.createNode(),l=this.parseExpression(),c=l.type===p.Syntax.Literal?this.getTokenRaw(s).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(o,c?new a.Directive(l,c):new a.ExpressionStatement(l))},d.prototype.parseDirectivePrologues=function(){for(var s=null,o=[];;){var l=this.lookahead;if(l.type!==8)break;var c=this.parseDirective();o.push(c);var y=c.directive;if(typeof y!="string")break;y==="use strict"?(this.context.strict=!0,s&&this.tolerateUnexpectedToken(s,u.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(l,u.Messages.IllegalLanguageModeDirective)):!s&&l.octal&&(s=l)}return o},d.prototype.qualifiedPropertyName=function(s){switch(s.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return s.value==="[";default:break}return!1},d.prototype.parseGetterMethod=function(){var s=this.createNode(),o=!1,l=this.context.allowYield;this.context.allowYield=!o;var c=this.parseFormalParameters();c.params.length>0&&this.tolerateError(u.Messages.BadGetterArity);var y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(s,new a.FunctionExpression(null,c.params,y,o))},d.prototype.parseSetterMethod=function(){var s=this.createNode(),o=!1,l=this.context.allowYield;this.context.allowYield=!o;var c=this.parseFormalParameters();c.params.length!==1?this.tolerateError(u.Messages.BadSetterArity):c.params[0]instanceof a.RestElement&&this.tolerateError(u.Messages.BadSetterRestParameter);var y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(s,new a.FunctionExpression(null,c.params,y,o))},d.prototype.parseGeneratorMethod=function(){var s=this.createNode(),o=!0,l=this.context.allowYield;this.context.allowYield=!0;var c=this.parseFormalParameters();this.context.allowYield=!1;var y=this.parsePropertyMethod(c);return this.context.allowYield=l,this.finalize(s,new a.FunctionExpression(null,c.params,y,o))},d.prototype.isStartOfExpression=function(){var s=!0,o=this.lookahead.value;switch(this.lookahead.type){case 7:s=o==="["||o==="("||o==="{"||o==="+"||o==="-"||o==="!"||o==="~"||o==="++"||o==="--"||o==="/"||o==="/=";break;case 4:s=o==="class"||o==="delete"||o==="function"||o==="let"||o==="new"||o==="super"||o==="this"||o==="typeof"||o==="void"||o==="yield";break;default:break}return s},d.prototype.parseYieldExpression=function(){var s=this.createNode();this.expectKeyword("yield");var o=null,l=!1;if(!this.hasLineTerminator){var c=this.context.allowYield;this.context.allowYield=!1,l=this.match("*"),l?(this.nextToken(),o=this.parseAssignmentExpression()):this.isStartOfExpression()&&(o=this.parseAssignmentExpression()),this.context.allowYield=c}return this.finalize(s,new a.YieldExpression(o,l))},d.prototype.parseClassElement=function(s){var o=this.lookahead,l=this.createNode(),c="",y=null,S=null,D=!1,E=!1,C=!1,T=!1;if(this.match("*"))this.nextToken();else{D=this.match("["),y=this.parseObjectPropertyKey();var F=y;if(F.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(o=this.lookahead,C=!0,D=this.match("["),this.match("*")?this.nextToken():y=this.parseObjectPropertyKey()),o.type===3&&!this.hasLineTerminator&&o.value==="async"){var O=this.lookahead.value;O!==":"&&O!=="("&&O!=="*"&&(T=!0,o=this.lookahead,y=this.parseObjectPropertyKey(),o.type===3&&o.value==="constructor"&&this.tolerateUnexpectedToken(o,u.Messages.ConstructorIsAsync))}}var j=this.qualifiedPropertyName(this.lookahead);return o.type===3?o.value==="get"&&j?(c="get",D=this.match("["),y=this.parseObjectPropertyKey(),this.context.allowYield=!1,S=this.parseGetterMethod()):o.value==="set"&&j&&(c="set",D=this.match("["),y=this.parseObjectPropertyKey(),S=this.parseSetterMethod()):o.type===7&&o.value==="*"&&j&&(c="init",D=this.match("["),y=this.parseObjectPropertyKey(),S=this.parseGeneratorMethod(),E=!0),!c&&y&&this.match("(")&&(c="init",S=T?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),E=!0),c||this.throwUnexpectedToken(this.lookahead),c==="init"&&(c="method"),D||(C&&this.isPropertyKey(y,"prototype")&&this.throwUnexpectedToken(o,u.Messages.StaticPrototype),!C&&this.isPropertyKey(y,"constructor")&&((c!=="method"||!E||S&&S.generator)&&this.throwUnexpectedToken(o,u.Messages.ConstructorSpecialMethod),s.value?this.throwUnexpectedToken(o,u.Messages.DuplicateConstructor):s.value=!0,c="constructor")),this.finalize(l,new a.MethodDefinition(y,D,S,c,C))},d.prototype.parseClassElementList=function(){var s=[],o={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():s.push(this.parseClassElement(o));return this.expect("}"),s},d.prototype.parseClassBody=function(){var s=this.createNode(),o=this.parseClassElementList();return this.finalize(s,new a.ClassBody(o))},d.prototype.parseClassDeclaration=function(s){var o=this.createNode(),l=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var c=s&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),y=null;this.matchKeyword("extends")&&(this.nextToken(),y=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var S=this.parseClassBody();return this.context.strict=l,this.finalize(o,new a.ClassDeclaration(c,y,S))},d.prototype.parseClassExpression=function(){var s=this.createNode(),o=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var l=this.lookahead.type===3?this.parseVariableIdentifier():null,c=null;this.matchKeyword("extends")&&(this.nextToken(),c=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var y=this.parseClassBody();return this.context.strict=o,this.finalize(s,new a.ClassExpression(l,c,y))},d.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var s=this.createNode(),o=this.parseDirectivePrologues();this.lookahead.type!==2;)o.push(this.parseStatementListItem());return this.finalize(s,new a.Module(o))},d.prototype.parseScript=function(){for(var s=this.createNode(),o=this.parseDirectivePrologues();this.lookahead.type!==2;)o.push(this.parseStatementListItem());return this.finalize(s,new a.Script(o))},d.prototype.parseModuleSpecifier=function(){var s=this.createNode();this.lookahead.type!==8&&this.throwError(u.Messages.InvalidModuleSpecifier);var o=this.nextToken(),l=this.getTokenRaw(o);return this.finalize(s,new a.Literal(o.value,l))},d.prototype.parseImportSpecifier=function(){var s=this.createNode(),o,l;return this.lookahead.type===3?(o=this.parseVariableIdentifier(),l=o,this.matchContextualKeyword("as")&&(this.nextToken(),l=this.parseVariableIdentifier())):(o=this.parseIdentifierName(),l=o,this.matchContextualKeyword("as")?(this.nextToken(),l=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(s,new a.ImportSpecifier(l,o))},d.prototype.parseNamedImports=function(){this.expect("{");for(var s=[];!this.match("}");)s.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),s},d.prototype.parseImportDefaultSpecifier=function(){var s=this.createNode(),o=this.parseIdentifierName();return this.finalize(s,new a.ImportDefaultSpecifier(o))},d.prototype.parseImportNamespaceSpecifier=function(){var s=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(u.Messages.NoAsAfterImportNamespace),this.nextToken();var o=this.parseIdentifierName();return this.finalize(s,new a.ImportNamespaceSpecifier(o))},d.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(u.Messages.IllegalImportDeclaration);var s=this.createNode();this.expectKeyword("import");var o,l=[];if(this.lookahead.type===8)o=this.parseModuleSpecifier();else{if(this.match("{")?l=l.concat(this.parseNamedImports()):this.match("*")?l.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(l.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?l.push(this.parseImportNamespaceSpecifier()):this.match("{")?l=l.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var c=this.lookahead.value?u.Messages.UnexpectedToken:u.Messages.MissingFromClause;this.throwError(c,this.lookahead.value)}this.nextToken(),o=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(s,new a.ImportDeclaration(l,o))},d.prototype.parseExportSpecifier=function(){var s=this.createNode(),o=this.parseIdentifierName(),l=o;return this.matchContextualKeyword("as")&&(this.nextToken(),l=this.parseIdentifierName()),this.finalize(s,new a.ExportSpecifier(o,l))},d.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(u.Messages.IllegalExportDeclaration);var s=this.createNode();this.expectKeyword("export");var o;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var l=this.parseFunctionDeclaration(!0);o=this.finalize(s,new a.ExportDefaultDeclaration(l))}else if(this.matchKeyword("class")){var l=this.parseClassDeclaration(!0);o=this.finalize(s,new a.ExportDefaultDeclaration(l))}else if(this.matchContextualKeyword("async")){var l=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();o=this.finalize(s,new a.ExportDefaultDeclaration(l))}else{this.matchContextualKeyword("from")&&this.throwError(u.Messages.UnexpectedToken,this.lookahead.value);var l=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),o=this.finalize(s,new a.ExportDefaultDeclaration(l))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var c=this.lookahead.value?u.Messages.UnexpectedToken:u.Messages.MissingFromClause;this.throwError(c,this.lookahead.value)}this.nextToken();var y=this.parseModuleSpecifier();this.consumeSemicolon(),o=this.finalize(s,new a.ExportAllDeclaration(y))}else if(this.lookahead.type===4){var l=void 0;switch(this.lookahead.value){case"let":case"const":l=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":l=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}o=this.finalize(s,new a.ExportNamedDeclaration(l,[],null))}else if(this.matchAsyncFunction()){var l=this.parseFunctionDeclaration();o=this.finalize(s,new a.ExportNamedDeclaration(l,[],null))}else{var S=[],D=null,E=!1;for(this.expect("{");!this.match("}");)E=E||this.matchKeyword("default"),S.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),D=this.parseModuleSpecifier(),this.consumeSemicolon();else if(E){var c=this.lookahead.value?u.Messages.UnexpectedToken:u.Messages.MissingFromClause;this.throwError(c,this.lookahead.value)}else this.consumeSemicolon();o=this.finalize(s,new a.ExportNamedDeclaration(null,S,D))}return o},d}();e.Parser=g},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(n,i){if(!n)throw new Error("ASSERT: "+i)}e.assert=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function n(){this.errors=[],this.tolerant=!1}return n.prototype.recordError=function(i){this.errors.push(i)},n.prototype.tolerate=function(i){if(this.tolerant)this.recordError(i);else throw i},n.prototype.constructError=function(i,u){var a=new Error(i);try{throw a}catch(f){Object.create&&Object.defineProperty&&(a=Object.create(f),Object.defineProperty(a,"column",{value:u}))}return a},n.prototype.createError=function(i,u,a,f){var p="Line "+u+": "+f,m=this.constructError(p,a);return m.index=i,m.lineNumber=u,m.description=f,m},n.prototype.throwError=function(i,u,a,f){throw this.createError(i,u,a,f)},n.prototype.tolerateError=function(i,u,a,f){var p=this.createError(i,u,a,f);if(this.tolerant)this.recordError(p);else throw p},n}();e.ErrorHandler=r},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9),i=r(4),u=r(11);function a(m){return"0123456789abcdef".indexOf(m.toLowerCase())}function f(m){return"01234567".indexOf(m)}var p=function(){function m(h,g){this.source=h,this.errorHandler=g,this.trackComment=!1,this.isModule=!1,this.length=h.length,this.index=0,this.lineNumber=h.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return m.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},m.prototype.restoreState=function(h){this.index=h.index,this.lineNumber=h.lineNumber,this.lineStart=h.lineStart},m.prototype.eof=function(){return this.index>=this.length},m.prototype.throwUnexpectedToken=function(h){return h===void 0&&(h=u.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,h)},m.prototype.tolerateUnexpectedToken=function(h){h===void 0&&(h=u.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,h)},m.prototype.skipSingleLineComment=function(h){var g=[],d,s;for(this.trackComment&&(g=[],d=this.index-h,s={start:{line:this.lineNumber,column:this.index-this.lineStart-h},end:{}});!this.eof();){var o=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(o)){if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart-1};var l={multiLine:!1,slice:[d+h,this.index-1],range:[d,this.index-1],loc:s};g.push(l)}return o===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,g}}if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart};var l={multiLine:!1,slice:[d+h,this.index],range:[d,this.index],loc:s};g.push(l)}return g},m.prototype.skipMultiLineComment=function(){var h=[],g,d;for(this.trackComment&&(h=[],g=this.index-2,d={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(s))s===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(s===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[g+2,this.index-2],range:[g,this.index],loc:d};h.push(o)}return h}++this.index}else++this.index}if(this.trackComment){d.end={line:this.lineNumber,column:this.index-this.lineStart};var o={multiLine:!0,slice:[g+2,this.index],range:[g,this.index],loc:d};h.push(o)}return this.tolerateUnexpectedToken(),h},m.prototype.scanComments=function(){var h;this.trackComment&&(h=[]);for(var g=this.index===0;!this.eof();){var d=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(d))++this.index;else if(i.Character.isLineTerminator(d))++this.index,d===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,g=!0;else if(d===47)if(d=this.source.charCodeAt(this.index+1),d===47){this.index+=2;var s=this.skipSingleLineComment(2);this.trackComment&&(h=h.concat(s)),g=!0}else if(d===42){this.index+=2;var s=this.skipMultiLineComment();this.trackComment&&(h=h.concat(s))}else break;else if(g&&d===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var s=this.skipSingleLineComment(3);this.trackComment&&(h=h.concat(s))}else break;else if(d===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var s=this.skipSingleLineComment(4);this.trackComment&&(h=h.concat(s))}else break;else break}return h},m.prototype.isFutureReservedWord=function(h){switch(h){case"enum":case"export":case"import":case"super":return!0;default:return!1}},m.prototype.isStrictModeReservedWord=function(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},m.prototype.isRestrictedWord=function(h){return h==="eval"||h==="arguments"},m.prototype.isKeyword=function(h){switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try"||h==="let";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}},m.prototype.codePointAt=function(h){var g=this.source.charCodeAt(h);if(g>=55296&&g<=56319){var d=this.source.charCodeAt(h+1);if(d>=56320&&d<=57343){var s=g;g=(s-55296)*1024+d-56320+65536}}return g},m.prototype.scanHexEscape=function(h){for(var g=h==="u"?4:2,d=0,s=0;s<g;++s)if(!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index)))d=d*16+a(this.source[this.index++]);else return null;return String.fromCharCode(d)},m.prototype.scanUnicodeCodePointEscape=function(){var h=this.source[this.index],g=0;for(h==="}"&&this.throwUnexpectedToken();!this.eof()&&(h=this.source[this.index++],!!i.Character.isHexDigit(h.charCodeAt(0)));)g=g*16+a(h);return(g>1114111||h!=="}")&&this.throwUnexpectedToken(),i.Character.fromCodePoint(g)},m.prototype.getIdentifier=function(){for(var h=this.index++;!this.eof();){var g=this.source.charCodeAt(this.index);if(g===92)return this.index=h,this.getComplexIdentifier();if(g>=55296&&g<57343)return this.index=h,this.getComplexIdentifier();if(i.Character.isIdentifierPart(g))++this.index;else break}return this.source.slice(h,this.index)},m.prototype.getComplexIdentifier=function(){var h=this.codePointAt(this.index),g=i.Character.fromCodePoint(h);this.index+=g.length;var d;for(h===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!i.Character.isIdentifierStart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),g=d);!this.eof()&&(h=this.codePointAt(this.index),!!i.Character.isIdentifierPart(h));)d=i.Character.fromCodePoint(h),g+=d,this.index+=d.length,h===92&&(g=g.substr(0,g.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,d=this.scanUnicodeCodePointEscape()):(d=this.scanHexEscape("u"),(d===null||d==="\\"||!i.Character.isIdentifierPart(d.charCodeAt(0)))&&this.throwUnexpectedToken()),g+=d);return g},m.prototype.octalToDecimal=function(h){var g=h!=="0",d=f(h);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(g=!0,d=d*8+f(this.source[this.index++]),"0123".indexOf(h)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(d=d*8+f(this.source[this.index++]))),{code:d,octal:g}},m.prototype.scanIdentifier=function(){var h,g=this.index,d=this.source.charCodeAt(g)===92?this.getComplexIdentifier():this.getIdentifier();if(d.length===1?h=3:this.isKeyword(d)?h=4:d==="null"?h=5:d==="true"||d==="false"?h=1:h=3,h!==3&&g+d.length!==this.index){var s=this.index;this.index=g,this.tolerateUnexpectedToken(u.Messages.InvalidEscapedReservedWord),this.index=s}return{type:h,value:d,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},m.prototype.scanPunctuator=function(){var h=this.index,g=this.source[this.index];switch(g){case"(":case"{":g==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,g="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:g=this.source.substr(this.index,4),g===">>>="?this.index+=4:(g=g.substr(0,3),g==="==="||g==="!=="||g===">>>"||g==="<<="||g===">>="||g==="**="?this.index+=3:(g=g.substr(0,2),g==="&&"||g==="||"||g==="=="||g==="!="||g==="+="||g==="-="||g==="*="||g==="/="||g==="++"||g==="--"||g==="<<"||g===">>"||g==="&="||g==="|="||g==="^="||g==="%="||g==="<="||g===">="||g==="=>"||g==="**"?this.index+=2:(g=this.source[this.index],"<>=!+-*%&|^/".indexOf(g)>=0&&++this.index)))}return this.index===h&&this.throwUnexpectedToken(),{type:7,value:g,lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},m.prototype.scanHexLiteral=function(h){for(var g="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)g+=this.source[this.index++];return g.length===0&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+g,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},m.prototype.scanBinaryLiteral=function(h){for(var g="",d;!this.eof()&&(d=this.source[this.index],!(d!=="0"&&d!=="1"));)g+=this.source[this.index++];return g.length===0&&this.throwUnexpectedToken(),this.eof()||(d=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(d)||i.Character.isDecimalDigit(d))&&this.throwUnexpectedToken()),{type:6,value:parseInt(g,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},m.prototype.scanOctalLiteral=function(h,g){var d="",s=!1;for(i.Character.isOctalDigit(h.charCodeAt(0))?(s=!0,d="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];return!s&&d.length===0&&this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(d,8),octal:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:g,end:this.index}},m.prototype.isImplicitOctalLiteral=function(){for(var h=this.index+1;h<this.length;++h){var g=this.source[h];if(g==="8"||g==="9")return!1;if(!i.Character.isOctalDigit(g.charCodeAt(0)))return!0}return!0},m.prototype.scanNumericLiteral=function(){var h=this.index,g=this.source[h];n.assert(i.Character.isDecimalDigit(g.charCodeAt(0))||g===".","Numeric literal must start with a decimal digit or a decimal point");var d="";if(g!=="."){if(d=this.source[this.index++],g=this.source[this.index],d==="0"){if(g==="x"||g==="X")return++this.index,this.scanHexLiteral(h);if(g==="b"||g==="B")return++this.index,this.scanBinaryLiteral(h);if(g==="o"||g==="O")return this.scanOctalLiteral(g,h);if(g&&i.Character.isOctalDigit(g.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(g,h)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];g=this.source[this.index]}if(g==="."){for(d+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];g=this.source[this.index]}if(g==="e"||g==="E")if(d+=this.source[this.index++],g=this.source[this.index],(g==="+"||g==="-")&&(d+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)d+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(d),lineNumber:this.lineNumber,lineStart:this.lineStart,start:h,end:this.index}},m.prototype.scanStringLiteral=function(){var h=this.index,g=this.source[h];n.assert(g==="'"||g==='"',"String literal must starts with a quote"),++this.index;for(var d=!1,s="";!this.eof();){var o=this.source[this.index++];if(o===g){g="";break}else if(o==="\\")if(o=this.source[this.index++],!o||!i.Character.isLineTerminator(o.charCodeAt(0)))switch(o){case"u":if(this.source[this.index]==="{")++this.index,s+=this.scanUnicodeCodePointEscape();else{var l=this.scanHexEscape(o);l===null&&this.throwUnexpectedToken(),s+=l}break;case"x":var c=this.scanHexEscape(o);c===null&&this.throwUnexpectedToken(u.Messages.InvalidHexEscapeSequence),s+=c;break;case"n":s+=`
|
|
@@ -15,7 +15,7 @@ import{b as Ae,e as Fr,g as Bi,h as _i,i as Ui,l as Rr}from"./chunk-IPL3QW4D.js"
|
|
|
15
15
|
`,i.gutter(y.replace(/\d/g," "))," ",C,i.marker("^").repeat(T)].join(""),D&&r.message&&(E+=" "+i.message(r.message))}return[i.marker(">"),i.gutter(y),s.length>0?` ${s}`:"",E].join("")}else return` ${i.gutter(y)}${s.length>0?` ${s}`:""}`}).join(`
|
|
16
16
|
`);return r.message&&!m&&(d=`${" ".repeat(h+1)}${r.message}
|
|
17
17
|
${d}`),n?i.reset(d):d}function Uh(t,e,r,n={}){if(!Aa){Aa=!0;let u="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(u,"DeprecationWarning");else{let a=new Error(u);a.name="DeprecationWarning",console.warn(new Error(u))}}return r=Math.max(r,0),Ra(t,{start:{column:r,line:e}},n)}Ft.codeFrameColumns=Ra;Ft.default=Uh;Ft.highlight=Fa});var ri=L((py,Ma)=>{"use strict";b();var Hh=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ma.exports=Hh});var ni=L((gy,Na)=>{"use strict";b();var Wh="2.0.0",zh=Number.MAX_SAFE_INTEGER||9007199254740991,Xh=16,Jh=250,Vh=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Na.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Xh,MAX_SAFE_BUILD_LENGTH:Jh,MAX_SAFE_INTEGER:zh,RELEASE_TYPES:Vh,SEMVER_SPEC_VERSION:Wh,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Ba=L((me,Oa)=>{"use strict";b();var{MAX_SAFE_COMPONENT_LENGTH:ii,MAX_SAFE_BUILD_LENGTH:Kh,MAX_LENGTH:Yh}=ni(),Qh=ri();me=Oa.exports={};var Zh=me.re=[],ef=me.safeRe=[],w=me.src=[],tf=me.safeSrc=[],k=me.t={},rf=0,si="[a-zA-Z0-9-]",nf=[["\\s",1],["\\d",Yh],[si,Kh]],sf=t=>{for(let[e,r]of nf)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},P=(t,e,r)=>{let n=sf(e),i=rf++;Qh(t,i,e),k[t]=i,w[i]=e,tf[i]=n,Zh[i]=new RegExp(e,r?"g":void 0),ef[i]=new RegExp(n,r?"g":void 0)};P("NUMERICIDENTIFIER","0|[1-9]\\d*");P("NUMERICIDENTIFIERLOOSE","\\d+");P("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${si}*`);P("MAINVERSION",`(${w[k.NUMERICIDENTIFIER]})\\.(${w[k.NUMERICIDENTIFIER]})\\.(${w[k.NUMERICIDENTIFIER]})`);P("MAINVERSIONLOOSE",`(${w[k.NUMERICIDENTIFIERLOOSE]})\\.(${w[k.NUMERICIDENTIFIERLOOSE]})\\.(${w[k.NUMERICIDENTIFIERLOOSE]})`);P("PRERELEASEIDENTIFIER",`(?:${w[k.NONNUMERICIDENTIFIER]}|${w[k.NUMERICIDENTIFIER]})`);P("PRERELEASEIDENTIFIERLOOSE",`(?:${w[k.NONNUMERICIDENTIFIER]}|${w[k.NUMERICIDENTIFIERLOOSE]})`);P("PRERELEASE",`(?:-(${w[k.PRERELEASEIDENTIFIER]}(?:\\.${w[k.PRERELEASEIDENTIFIER]})*))`);P("PRERELEASELOOSE",`(?:-?(${w[k.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${w[k.PRERELEASEIDENTIFIERLOOSE]})*))`);P("BUILDIDENTIFIER",`${si}+`);P("BUILD",`(?:\\+(${w[k.BUILDIDENTIFIER]}(?:\\.${w[k.BUILDIDENTIFIER]})*))`);P("FULLPLAIN",`v?${w[k.MAINVERSION]}${w[k.PRERELEASE]}?${w[k.BUILD]}?`);P("FULL",`^${w[k.FULLPLAIN]}$`);P("LOOSEPLAIN",`[v=\\s]*${w[k.MAINVERSIONLOOSE]}${w[k.PRERELEASELOOSE]}?${w[k.BUILD]}?`);P("LOOSE",`^${w[k.LOOSEPLAIN]}$`);P("GTLT","((?:<|>)?=?)");P("XRANGEIDENTIFIERLOOSE",`${w[k.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);P("XRANGEIDENTIFIER",`${w[k.NUMERICIDENTIFIER]}|x|X|\\*`);P("XRANGEPLAIN",`[v=\\s]*(${w[k.XRANGEIDENTIFIER]})(?:\\.(${w[k.XRANGEIDENTIFIER]})(?:\\.(${w[k.XRANGEIDENTIFIER]})(?:${w[k.PRERELEASE]})?${w[k.BUILD]}?)?)?`);P("XRANGEPLAINLOOSE",`[v=\\s]*(${w[k.XRANGEIDENTIFIERLOOSE]})(?:\\.(${w[k.XRANGEIDENTIFIERLOOSE]})(?:\\.(${w[k.XRANGEIDENTIFIERLOOSE]})(?:${w[k.PRERELEASELOOSE]})?${w[k.BUILD]}?)?)?`);P("XRANGE",`^${w[k.GTLT]}\\s*${w[k.XRANGEPLAIN]}$`);P("XRANGELOOSE",`^${w[k.GTLT]}\\s*${w[k.XRANGEPLAINLOOSE]}$`);P("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ii}})(?:\\.(\\d{1,${ii}}))?(?:\\.(\\d{1,${ii}}))?`);P("COERCE",`${w[k.COERCEPLAIN]}(?:$|[^\\d])`);P("COERCEFULL",w[k.COERCEPLAIN]+`(?:${w[k.PRERELEASE]})?(?:${w[k.BUILD]})?(?:$|[^\\d])`);P("COERCERTL",w[k.COERCE],!0);P("COERCERTLFULL",w[k.COERCEFULL],!0);P("LONETILDE","(?:~>?)");P("TILDETRIM",`(\\s*)${w[k.LONETILDE]}\\s+`,!0);me.tildeTrimReplace="$1~";P("TILDE",`^${w[k.LONETILDE]}${w[k.XRANGEPLAIN]}$`);P("TILDELOOSE",`^${w[k.LONETILDE]}${w[k.XRANGEPLAINLOOSE]}$`);P("LONECARET","(?:\\^)");P("CARETTRIM",`(\\s*)${w[k.LONECARET]}\\s+`,!0);me.caretTrimReplace="$1^";P("CARET",`^${w[k.LONECARET]}${w[k.XRANGEPLAIN]}$`);P("CARETLOOSE",`^${w[k.LONECARET]}${w[k.XRANGEPLAINLOOSE]}$`);P("COMPARATORLOOSE",`^${w[k.GTLT]}\\s*(${w[k.LOOSEPLAIN]})$|^$`);P("COMPARATOR",`^${w[k.GTLT]}\\s*(${w[k.FULLPLAIN]})$|^$`);P("COMPARATORTRIM",`(\\s*)${w[k.GTLT]}\\s*(${w[k.LOOSEPLAIN]}|${w[k.XRANGEPLAIN]})`,!0);me.comparatorTrimReplace="$1$2$3";P("HYPHENRANGE",`^\\s*(${w[k.XRANGEPLAIN]})\\s+-\\s+(${w[k.XRANGEPLAIN]})\\s*$`);P("HYPHENRANGELOOSE",`^\\s*(${w[k.XRANGEPLAINLOOSE]})\\s+-\\s+(${w[k.XRANGEPLAINLOOSE]})\\s*$`);P("STAR","(<|>)?=?\\s*\\*");P("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");P("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ua=L((by,_a)=>{"use strict";b();var of=Object.freeze({loose:!0}),af=Object.freeze({}),uf=t=>t?typeof t!="object"?of:t:af;_a.exports=uf});var qa=L((vy,$a)=>{"use strict";b();var ja=/^[0-9]+$/,Ga=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=ja.test(t),n=ja.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1},lf=(t,e)=>Ga(e,t);$a.exports={compareIdentifiers:Ga,rcompareIdentifiers:lf}});var za=L((Ey,Wa)=>{"use strict";b();var pr=ri(),{MAX_LENGTH:Ha,MAX_SAFE_INTEGER:mr}=ni(),{safeRe:gr,t:yr}=Ba(),cf=Ua(),{compareIdentifiers:oi}=qa(),ai=class t{constructor(e,r){if(r=cf(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Ha)throw new TypeError(`version is longer than ${Ha} characters`);pr("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=e.trim().match(r.loose?gr[yr.LOOSE]:gr[yr.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>mr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>mr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>mr||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let u=+i;if(u>=0&&u<mr)return u}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(pr("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if(typeof e=="string"&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=e.prerelease[r];if(pr("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return oi(n,i)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{let n=this.build[r],i=e.build[r];if(pr("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return oi(n,i)}while(++r)}inc(e,r,n){if(e.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=`-${r}`.match(this.options.loose?gr[yr.PRERELEASELOOSE]:gr[yr.PRERELEASE]);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let u=[r,i];n===!1&&(u=[r]),oi(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=u):this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Wa.exports=ai});var ui=L((Ay,Ja)=>{"use strict";b();var Xa=za(),df=(t,e,r=!1)=>{if(t instanceof Xa)return t;try{return new Xa(t,e)}catch(n){if(!r)return null;throw n}};Ja.exports=df});var Ka=L((ky,Va)=>{"use strict";b();var hf=ui(),ff=(t,e)=>{let r=hf(t,e);return r?r.version:null};Va.exports=ff});var Qa=L((Iy,Ya)=>{"use strict";b();var pf=ui(),mf=(t,e)=>{let r=pf(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};Ya.exports=mf});var li=L((Ry,gf)=>{gf.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Za=L((Ly,yf)=>{yf.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var eu=L((Py,Sf)=>{Sf.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var ru=L((My,tu)=>{"use strict";b();var bf=[].concat(li()).concat(Za()),xf=eu();tu.exports=function(t){var e=0;function r(){return e<t.length}function n(o){if(o instanceof RegExp){var l=t.slice(e),c=l.match(o);if(c)return e+=c[0].length,c[0]}else if(t.indexOf(o,e)===e)return e+=o.length,o}function i(){n(/[ ]*/)}function u(){for(var o,l=["WITH","AND","OR","(",")",":","+"],c=0;c<l.length&&(o=n(l[c]),!o);c++);if(o==="+"&&e>1&&t[e-2]===" ")throw new Error("Space before `+`");return o&&{type:"OPERATOR",string:o}}function a(){return n(/[A-Za-z0-9-.]+/)}function f(){var o=a();if(!o)throw new Error("Expected idstring at offset "+e);return o}function p(){if(n("DocumentRef-")){var o=f();return{type:"DOCUMENTREF",string:o}}}function m(){if(n("LicenseRef-")){var o=f();return{type:"LICENSEREF",string:o}}}function h(){var o=e,l=a();if(bf.indexOf(l)!==-1)return{type:"LICENSE",string:l};if(xf.indexOf(l)!==-1)return{type:"EXCEPTION",string:l};e=o}function g(){return u()||p()||m()||h()}for(var d=[];r()&&(i(),!!r());){var s=g();if(!s)throw new Error("Unexpected `"+t[e]+"` at offset "+e);d.push(s)}return d}});var iu=L((Oy,nu)=>{"use strict";b();nu.exports=function(t){var e=0;function r(){return e<t.length}function n(){return r()?t[e]:null}function i(){if(!r())throw new Error;e++}function u(l){var c=n();if(c&&c.type==="OPERATOR"&&l===c.string)return i(),c.string}function a(){if(u("WITH")){var l=n();if(l&&l.type==="EXCEPTION")return i(),l.string;throw new Error("Expected exception after `WITH`")}}function f(){var l=e,c="",y=n();if(y.type==="DOCUMENTREF"&&(i(),c+="DocumentRef-"+y.string+":",!u(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(y=n(),y.type==="LICENSEREF")return i(),c+="LicenseRef-"+y.string,{license:c};e=l}function p(){var l=n();if(l&&l.type==="LICENSE"){i();var c={license:l.string};u("+")&&(c.plus=!0);var y=a();return y&&(c.exception=y),c}}function m(){var l=u("(");if(l){var c=s();if(!u(")"))throw new Error("Expected `)`");return c}}function h(){return m()||f()||p()}function g(l,c){return function y(){var S=c();if(S){if(!u(l))return S;var D=y();if(!D)throw new Error("Expected expression");return{left:S,conjunction:l.toLowerCase(),right:D}}}}var d=g("AND",h),s=g("OR",d),o=s();if(!o||r())throw new Error("Syntax error");return o}});var ci=L((_y,su)=>{"use strict";b();var vf=ru(),Df=iu();su.exports=function(t){return Df(vf(t))}});var pu=L((jy,fu)=>{b();var Ef=ci(),Cf=li();function Sr(t){try{return Ef(t),!0}catch{return!1}}function hu(t,e){var r=e[0].length-t[0].length;return r!==0?r:t[0].toUpperCase().localeCompare(e[0].toUpperCase())}var ou=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(hu),Af=0,wf=1,au=[function(t){return t.toUpperCase()},function(t){return t.trim()},function(t){return t.replace(/\./g,"")},function(t){return t.replace(/\s+/g,"")},function(t){return t.replace(/\s+/g,"-")},function(t){return t.replace("v","-")},function(t){return t.replace(/,?\s*(\d)/,"-$1")},function(t){return t.replace(/,?\s*(\d)/,"-$1.0")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(t){return t.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(t){return t[0].toUpperCase()+t.slice(1)},function(t){return t.replace("/","-")},function(t){return t.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(t){return t.indexOf("3.0")!==-1?t+"-or-later":t+"-only"},function(t){return t+"only"},function(t){return t.replace(/(\d)$/,"-$1.0")},function(t){return t.replace(/(-| )?(\d)$/,"-$2-Clause")},function(t){return t.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(t){return t.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(t){return t.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(t){return t.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(t){return t.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(t){return t.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(t){return"CC-"+t},function(t){return"CC-"+t+"-4.0"},function(t){return t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(t){return"CC-"+t.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],di=Cf.map(function(t){var e=/^(.*)-\d+\.\d+$/.exec(t);return e?[e[0],e[1]]:[t,null]}).reduce(function(t,e){var r=e[1];return t[r]=t[r]||[],t[r].push(e[0]),t},{}),kf=Object.keys(di).map(function(e){return[e,di[e]]}).filter(function(e){return e[1].length===1&&e[0]!==null&&e[0]!=="APL"}).map(function(e){return[e[0],e[1][0]]});di=void 0;var uu=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(kf).sort(hu),Tf=0,If=1,lu=function(t){for(var e=0;e<au.length;e++){var r=au[e](t).trim();if(r!==t&&Sr(r))return r}return null},cu=function(t){for(var e=t.toUpperCase(),r=0;r<uu.length;r++){var n=uu[r];if(e.indexOf(n[Tf])>-1)return n[If]}return null},du=function(t,e){for(var r=0;r<ou.length;r++){var n=ou[r],i=n[Af];if(t.indexOf(i)>-1){var u=t.replace(i,n[wf]),a=e(u);if(a!==null)return a}}return null};fu.exports=function(t,e){e=e||{};var r=e.upgrade===void 0?!0:!!e.upgrade;function n(f){return r?Ff(f):f}var i=typeof t=="string"&&t.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(t=t.trim(),Sr(t))return n(t);var u=t.replace(/\+$/,"").trim();if(Sr(u))return n(u);var a=lu(t);return a!==null||(a=du(t,function(f){return Sr(f)?f:lu(f)}),a!==null)||(a=cu(t),a!==null)||(a=du(t,cu),a!==null)?n(a):null};function Ff(t){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(t)!==-1?t+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(t)!==-1?t.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(t)!==-1?t+"-or-later":t}});var Su=L(($y,yu)=>{b();var Rf=ci(),Lf=pu(),mu='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',Pf=/^SEE LICEN[CS]E IN (.+)$/;function gu(t,e){return e.slice(0,t.length)===t}function hi(t){if(t.hasOwnProperty("license")){var e=t.license;return gu("LicenseRef",e)||gu("DocumentRef",e)}else return hi(t.left)||hi(t.right)}yu.exports=function(t){var e;try{e=Rf(t)}catch{var r;if(t==="UNLICENSED"||t==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Pf.exec(t))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[mu]};if(t.trim().length!==0){var i=Lf(t);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return hi(e)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[mu]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var Eu=L(xr=>{"use strict";b();Object.defineProperty(xr,"__esModule",{value:!0});xr.LRUCache=void 0;var st=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,xu=new Set,fi=typeof process=="object"&&process?process:{},vu=(t,e,r,n)=>{typeof fi.emitWarning=="function"?fi.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)},br=globalThis.AbortController,bu=globalThis.AbortSignal;if(typeof br>"u"){bu=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},br=class{constructor(){e()}signal=new bu;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let t=fi.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,vu("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var Mf=t=>!xu.has(t),zy=Symbol("type"),Me=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Du=t=>Me(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ot:null:null,ot=class extends Array{constructor(e){super(e),this.fill(0)}},pi=class t{heap;length;static#n=!1;static create(e){let r=Du(e);if(!r)return[];t.#n=!0;let n=new t(e,r);return t.#n=!1,n}constructor(e,r){if(!t.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},mi=class t{#n;#s;#t;#f;#A;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#y;#o;#i;#e;#d;#p;#c;#u;#S;#l;#b;#x;#m;#v;#T;#h;static unsafeExposeInternals(e){return{starts:e.#x,ttls:e.#m,sizes:e.#b,keyMap:e.#o,keyList:e.#i,valList:e.#e,next:e.#d,prev:e.#p,get head(){return e.#c},get tail(){return e.#u},free:e.#S,isBackgroundFetch:r=>e.#r(r),backgroundFetch:(r,n,i,u)=>e.#M(r,n,i,u),moveToTail:r=>e.#R(r),indexes:r=>e.#D(r),rindexes:r=>e.#E(r),isStale:r=>e.#g(r)}}get max(){return this.#n}get maxSize(){return this.#s}get calculatedSize(){return this.#y}get size(){return this.#a}get fetchMethod(){return this.#A}get memoMethod(){return this.#w}get dispose(){return this.#t}get disposeAfter(){return this.#f}constructor(e){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:u,updateAgeOnGet:a,updateAgeOnHas:f,allowStale:p,dispose:m,disposeAfter:h,noDisposeOnSet:g,noUpdateTTL:d,maxSize:s=0,maxEntrySize:o=0,sizeCalculation:l,fetchMethod:c,memoMethod:y,noDeleteOnFetchRejection:S,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:C,ignoreFetchAbort:T}=e;if(r!==0&&!Me(r))throw new TypeError("max option must be a nonnegative integer");let F=r?Du(r):Array;if(!F)throw new Error("invalid max value: "+r);if(this.#n=r,this.#s=s,this.maxEntrySize=o||this.#s,this.sizeCalculation=l,this.sizeCalculation){if(!this.#s&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#w=y,c!==void 0&&typeof c!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#A=c,this.#T=!!c,this.#o=new Map,this.#i=new Array(r).fill(void 0),this.#e=new Array(r).fill(void 0),this.#d=new F(r),this.#p=new F(r),this.#c=0,this.#u=0,this.#S=pi.create(r),this.#a=0,this.#y=0,typeof m=="function"&&(this.#t=m),typeof h=="function"?(this.#f=h,this.#l=[]):(this.#f=void 0,this.#l=void 0),this.#v=!!this.#t,this.#h=!!this.#f,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!S,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!C,this.ignoreFetchAbort=!!T,this.maxEntrySize!==0){if(this.#s!==0&&!Me(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!Me(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#G()}if(this.allowStale=!!p,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!f,this.ttlResolution=Me(i)||i===0?i:1,this.ttlAutopurge=!!u,this.ttl=n||0,this.ttl){if(!Me(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#N()}if(this.#n===0&&this.ttl===0&&this.#s===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#s){let O="LRU_CACHE_UNBOUNDED";Mf(O)&&(xu.add(O),vu("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,t))}}getRemainingTTL(e){return this.#o.has(e)?1/0:0}#N(){let e=new ot(this.#n),r=new ot(this.#n);this.#m=e,this.#x=r,this.#O=(u,a,f=st.now())=>{if(r[u]=a!==0?f:0,e[u]=a,a!==0&&this.ttlAutopurge){let p=setTimeout(()=>{this.#g(u)&&this.#C(this.#i[u],"expire")},a+1);p.unref&&p.unref()}},this.#I=u=>{r[u]=e[u]!==0?st.now():0},this.#k=(u,a)=>{if(e[a]){let f=e[a],p=r[a];if(!f||!p)return;u.ttl=f,u.start=p,u.now=n||i();let m=u.now-p;u.remainingTTL=f-m}};let n=0,i=()=>{let u=st.now();if(this.ttlResolution>0){n=u;let a=setTimeout(()=>n=0,this.ttlResolution);a.unref&&a.unref()}return u};this.getRemainingTTL=u=>{let a=this.#o.get(u);if(a===void 0)return 0;let f=e[a],p=r[a];if(!f||!p)return 1/0;let m=(n||i())-p;return f-m},this.#g=u=>{let a=r[u],f=e[u];return!!f&&!!a&&(n||i())-a>f}}#I=()=>{};#k=()=>{};#O=()=>{};#g=()=>!1;#G(){let e=new ot(this.#n);this.#y=0,this.#b=e,this.#F=r=>{this.#y-=e[r],e[r]=0},this.#B=(r,n,i,u)=>{if(this.#r(n))return 0;if(!Me(i))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(i=u(n,r),!Me(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#L=(r,n,i)=>{if(e[r]=n,this.#s){let u=this.#s-e[r];for(;this.#y>u;)this.#P(!0)}this.#y+=e[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#y)}}#F=e=>{};#L=(e,r,n)=>{};#B=(e,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#D({allowStale:e=this.allowStale}={}){if(this.#a)for(let r=this.#u;!(!this.#_(r)||((e||!this.#g(r))&&(yield r),r===this.#c));)r=this.#p[r]}*#E({allowStale:e=this.allowStale}={}){if(this.#a)for(let r=this.#c;!(!this.#_(r)||((e||!this.#g(r))&&(yield r),r===this.#u));)r=this.#d[r]}#_(e){return e!==void 0&&this.#o.get(this.#i[e])===e}*entries(){for(let e of this.#D())this.#e[e]!==void 0&&this.#i[e]!==void 0&&!this.#r(this.#e[e])&&(yield[this.#i[e],this.#e[e]])}*rentries(){for(let e of this.#E())this.#e[e]!==void 0&&this.#i[e]!==void 0&&!this.#r(this.#e[e])&&(yield[this.#i[e],this.#e[e]])}*keys(){for(let e of this.#D()){let r=this.#i[e];r!==void 0&&!this.#r(this.#e[e])&&(yield r)}}*rkeys(){for(let e of this.#E()){let r=this.#i[e];r!==void 0&&!this.#r(this.#e[e])&&(yield r)}}*values(){for(let e of this.#D())this.#e[e]!==void 0&&!this.#r(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#E())this.#e[e]!==void 0&&!this.#r(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,r={}){for(let n of this.#D()){let i=this.#e[n],u=this.#r(i)?i.__staleWhileFetching:i;if(u!==void 0&&e(u,this.#i[n],this))return this.get(this.#i[n],r)}}forEach(e,r=this){for(let n of this.#D()){let i=this.#e[n],u=this.#r(i)?i.__staleWhileFetching:i;u!==void 0&&e.call(r,u,this.#i[n],this)}}rforEach(e,r=this){for(let n of this.#E()){let i=this.#e[n],u=this.#r(i)?i.__staleWhileFetching:i;u!==void 0&&e.call(r,u,this.#i[n],this)}}purgeStale(){let e=!1;for(let r of this.#E({allowStale:!0}))this.#g(r)&&(this.#C(this.#i[r],"expire"),e=!0);return e}info(e){let r=this.#o.get(e);if(r===void 0)return;let n=this.#e[r],i=this.#r(n)?n.__staleWhileFetching:n;if(i===void 0)return;let u={value:i};if(this.#m&&this.#x){let a=this.#m[r],f=this.#x[r];if(a&&f){let p=a-(st.now()-f);u.ttl=p,u.start=Date.now()}}return this.#b&&(u.size=this.#b[r]),u}dump(){let e=[];for(let r of this.#D({allowStale:!0})){let n=this.#i[r],i=this.#e[r],u=this.#r(i)?i.__staleWhileFetching:i;if(u===void 0||n===void 0)continue;let a={value:u};if(this.#m&&this.#x){a.ttl=this.#m[r];let f=st.now()-this.#x[r];a.start=Math.floor(Date.now()-f)}this.#b&&(a.size=this.#b[r]),e.unshift([n,a])}return e}load(e){this.clear();for(let[r,n]of e){if(n.start){let i=Date.now()-n.start;n.start=st.now()-i}this.set(r,n.value,n)}}set(e,r,n={}){if(r===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:u,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:f=this.sizeCalculation,status:p}=n,{noUpdateTTL:m=this.noUpdateTTL}=n,h=this.#B(e,r,n.size||0,f);if(this.maxEntrySize&&h>this.maxEntrySize)return p&&(p.set="miss",p.maxEntrySizeExceeded=!0),this.#C(e,"set"),this;let g=this.#a===0?void 0:this.#o.get(e);if(g===void 0)g=this.#a===0?this.#u:this.#S.length!==0?this.#S.pop():this.#a===this.#n?this.#P(!1):this.#a,this.#i[g]=e,this.#e[g]=r,this.#o.set(e,g),this.#d[this.#u]=g,this.#p[g]=this.#u,this.#u=g,this.#a++,this.#L(g,h,p),p&&(p.set="add"),m=!1;else{this.#R(g);let d=this.#e[g];if(r!==d){if(this.#T&&this.#r(d)){d.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:s}=d;s!==void 0&&!a&&(this.#v&&this.#t?.(s,e,"set"),this.#h&&this.#l?.push([s,e,"set"]))}else a||(this.#v&&this.#t?.(d,e,"set"),this.#h&&this.#l?.push([d,e,"set"]));if(this.#F(g),this.#L(g,h,p),this.#e[g]=r,p){p.set="replace";let s=d&&this.#r(d)?d.__staleWhileFetching:d;s!==void 0&&(p.oldValue=s)}}else p&&(p.set="update")}if(i!==0&&!this.#m&&this.#N(),this.#m&&(m||this.#O(g,i,u),p&&this.#k(p,g)),!a&&this.#h&&this.#l){let d=this.#l,s;for(;s=d?.shift();)this.#f?.(...s)}return this}pop(){try{for(;this.#a;){let e=this.#e[this.#c];if(this.#P(!0),this.#r(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#l){let e=this.#l,r;for(;r=e?.shift();)this.#f?.(...r)}}}#P(e){let r=this.#c,n=this.#i[r],i=this.#e[r];return this.#T&&this.#r(i)?i.__abortController.abort(new Error("evicted")):(this.#v||this.#h)&&(this.#v&&this.#t?.(i,n,"evict"),this.#h&&this.#l?.push([i,n,"evict"])),this.#F(r),e&&(this.#i[r]=void 0,this.#e[r]=void 0,this.#S.push(r)),this.#a===1?(this.#c=this.#u=0,this.#S.length=0):this.#c=this.#d[r],this.#o.delete(n),this.#a--,r}has(e,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,u=this.#o.get(e);if(u!==void 0){let a=this.#e[u];if(this.#r(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#g(u))i&&(i.has="stale",this.#k(i,u));else return n&&this.#I(u),i&&(i.has="hit",this.#k(i,u)),!0}else i&&(i.has="miss");return!1}peek(e,r={}){let{allowStale:n=this.allowStale}=r,i=this.#o.get(e);if(i===void 0||!n&&this.#g(i))return;let u=this.#e[i];return this.#r(u)?u.__staleWhileFetching:u}#M(e,r,n,i){let u=r===void 0?void 0:this.#e[r];if(this.#r(u))return u;let a=new br,{signal:f}=n;f?.addEventListener("abort",()=>a.abort(f.reason),{signal:a.signal});let p={signal:a.signal,options:n,context:i},m=(l,c=!1)=>{let{aborted:y}=a.signal,S=n.ignoreFetchAbort&&l!==void 0;if(n.status&&(y&&!c?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,S&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!S&&!c)return g(a.signal.reason);let D=s;return this.#e[r]===s&&(l===void 0?D.__staleWhileFetching?this.#e[r]=D.__staleWhileFetching:this.#C(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(e,l,p.options))),l},h=l=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=l),g(l)),g=l=>{let{aborted:c}=a.signal,y=c&&n.allowStaleOnFetchAbort,S=y||n.allowStaleOnFetchRejection,D=S||n.noDeleteOnFetchRejection,E=s;if(this.#e[r]===s&&(!D||E.__staleWhileFetching===void 0?this.#C(e,"fetch"):y||(this.#e[r]=E.__staleWhileFetching)),S)return n.status&&E.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw l},d=(l,c)=>{let y=this.#A?.(e,u,p);y&&y instanceof Promise&&y.then(S=>l(S===void 0?void 0:S),c),a.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(l(void 0),n.allowStaleOnFetchAbort&&(l=S=>m(S,!0)))})};n.status&&(n.status.fetchDispatched=!0);let s=new Promise(d).then(m,h),o=Object.assign(s,{__abortController:a,__staleWhileFetching:u,__returned:void 0});return r===void 0?(this.set(e,o,{...p.options,status:void 0}),r=this.#o.get(e)):this.#e[r]=o,o}#r(e){if(!this.#T)return!1;let r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof br}async fetch(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:p=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:s=this.ignoreFetchAbort,allowStaleOnFetchAbort:o=this.allowStaleOnFetchAbort,context:l,forceRefresh:c=!1,status:y,signal:S}=r;if(!this.#T)return y&&(y.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:u,status:y});let D={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:u,ttl:a,noDisposeOnSet:f,size:p,sizeCalculation:m,noUpdateTTL:h,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:o,ignoreFetchAbort:s,status:y,signal:S},E=this.#o.get(e);if(E===void 0){y&&(y.fetch="miss");let C=this.#M(e,E,D,l);return C.__returned=C}else{let C=this.#e[E];if(this.#r(C)){let q=n&&C.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",q&&(y.returnedStale=!0)),q?C.__staleWhileFetching:C.__returned=C}let T=this.#g(E);if(!c&&!T)return y&&(y.fetch="hit"),this.#R(E),i&&this.#I(E),y&&this.#k(y,E),C;let F=this.#M(e,E,D,l),j=F.__staleWhileFetching!==void 0&&n;return y&&(y.fetch=T?"stale":"refresh",j&&T&&(y.returnedStale=!0)),j?F.__staleWhileFetching:F.__returned=F}}async forceFetch(e,r={}){let n=await this.fetch(e,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,r={}){let n=this.#w;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:u,...a}=r,f=this.get(e,a);if(!u&&f!==void 0)return f;let p=n(e,f,{options:a,context:i});return this.set(e,p,a),p}get(e,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:a}=r,f=this.#o.get(e);if(f!==void 0){let p=this.#e[f],m=this.#r(p);return a&&this.#k(a,f),this.#g(f)?(a&&(a.get="stale"),m?(a&&n&&p.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?p.__staleWhileFetching:void 0):(u||this.#C(e,"expire"),a&&n&&(a.returnedStale=!0),n?p:void 0)):(a&&(a.get="hit"),m?p.__staleWhileFetching:(this.#R(f),i&&this.#I(f),p))}else a&&(a.get="miss")}#U(e,r){this.#p[r]=e,this.#d[e]=r}#R(e){e!==this.#u&&(e===this.#c?this.#c=this.#d[e]:this.#U(this.#p[e],this.#d[e]),this.#U(this.#u,e),this.#u=e)}delete(e){return this.#C(e,"delete")}#C(e,r){let n=!1;if(this.#a!==0){let i=this.#o.get(e);if(i!==void 0)if(n=!0,this.#a===1)this.#j(r);else{this.#F(i);let u=this.#e[i];if(this.#r(u)?u.__abortController.abort(new Error("deleted")):(this.#v||this.#h)&&(this.#v&&this.#t?.(u,e,r),this.#h&&this.#l?.push([u,e,r])),this.#o.delete(e),this.#i[i]=void 0,this.#e[i]=void 0,i===this.#u)this.#u=this.#p[i];else if(i===this.#c)this.#c=this.#d[i];else{let a=this.#p[i];this.#d[a]=this.#d[i];let f=this.#d[i];this.#p[f]=this.#p[i]}this.#a--,this.#S.push(i)}}if(this.#h&&this.#l?.length){let i=this.#l,u;for(;u=i?.shift();)this.#f?.(...u)}return n}clear(){return this.#j("delete")}#j(e){for(let r of this.#E({allowStale:!0})){let n=this.#e[r];if(this.#r(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#i[r];this.#v&&this.#t?.(n,i,e),this.#h&&this.#l?.push([n,i,e])}}if(this.#o.clear(),this.#e.fill(void 0),this.#i.fill(void 0),this.#m&&this.#x&&(this.#m.fill(0),this.#x.fill(0)),this.#b&&this.#b.fill(0),this.#c=0,this.#u=0,this.#S.length=0,this.#y=0,this.#a=0,this.#h&&this.#l){let r=this.#l,n;for(;n=r?.shift();)this.#f?.(...n)}}};xr.LRUCache=mi});var wu=L((Vy,Au)=>{"use strict";b();var U=(...t)=>t.every(e=>e)?t.join(""):"",W=t=>t?encodeURIComponent(t):"",Cu=t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),Nf={sshtemplate:({domain:t,user:e,project:r,committish:n})=>`git@${t}:${e}/${r}.git${U("#",n)}`,sshurltemplate:({domain:t,user:e,project:r,committish:n})=>`git+ssh://git@${t}/${e}/${r}.git${U("#",n)}`,edittemplate:({domain:t,user:e,project:r,committish:n,editpath:i,path:u})=>`https://${t}/${e}/${r}${U("/",i,"/",W(n||"HEAD"),"/",u)}`,browsetemplate:({domain:t,user:e,project:r,committish:n,treepath:i})=>`https://${t}/${e}/${r}${U("/",i,"/",W(n))}`,browsetreetemplate:({domain:t,user:e,project:r,committish:n,treepath:i,path:u,fragment:a,hashformat:f})=>`https://${t}/${e}/${r}/${i}/${W(n||"HEAD")}/${u}${U("#",f(a||""))}`,browseblobtemplate:({domain:t,user:e,project:r,committish:n,blobpath:i,path:u,fragment:a,hashformat:f})=>`https://${t}/${e}/${r}/${i}/${W(n||"HEAD")}/${u}${U("#",f(a||""))}`,docstemplate:({domain:t,user:e,project:r,treepath:n,committish:i})=>`https://${t}/${e}/${r}${U("/",n,"/",W(i))}#readme`,httpstemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git+https://${U(t,"@")}${e}/${r}/${n}.git${U("#",i)}`,filetemplate:({domain:t,user:e,project:r,committish:n,path:i})=>`https://${t}/${e}/${r}/raw/${W(n||"HEAD")}/${i}`,shortcuttemplate:({type:t,user:e,project:r,committish:n})=>`${t}:${e}/${r}${U("#",n)}`,pathtemplate:({user:t,project:e,committish:r})=>`${t}/${e}${U("#",r)}`,bugstemplate:({domain:t,user:e,project:r})=>`https://${t}/${e}/${r}/issues`,hashformat:Cu},Ne={};Ne.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:e,project:r,committish:n,path:i})=>`https://${U(t,"@")}raw.githubusercontent.com/${e}/${r}/${W(n||"HEAD")}/${i}`,gittemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git://${U(t,"@")}${e}/${r}/${n}.git${U("#",i)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://codeload.${t}/${e}/${r}/tar.gz/${W(n||"HEAD")}`,extract:t=>{let[,e,r,n,i]=t.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=t.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:i}}};Ne.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:e,project:r,committish:n,treepath:i,path:u,editpath:a})=>`https://${t}/${e}/${r}${U("/",i,"/",W(n||"HEAD"),"/",u,a)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/get/${W(n||"HEAD")}.tar.gz`,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}}};Ne.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:e,user:r,project:n,committish:i})=>`git+https://${U(t,"@")}${e}/${r}/${n}.git${U("#",i)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/repository/archive.tar.gz?ref=${W(n||"HEAD")}`,extract:t=>{let e=t.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let r=e.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:t.hash.slice(1)}}};Ne.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:e,committish:r})=>`git@${t}:${e}.git${U("#",r)}`,sshurltemplate:({domain:t,project:e,committish:r})=>`git+ssh://git@${t}/${e}.git${U("#",r)}`,edittemplate:({domain:t,user:e,project:r,committish:n,editpath:i})=>`https://${t}/${e}/${r}${U("/",W(n))}/${i}`,browsetemplate:({domain:t,project:e,committish:r})=>`https://${t}/${e}${U("/",W(r))}`,browsetreetemplate:({domain:t,project:e,committish:r,path:n,hashformat:i})=>`https://${t}/${e}${U("/",W(r))}${U("#",i(n))}`,browseblobtemplate:({domain:t,project:e,committish:r,path:n,hashformat:i})=>`https://${t}/${e}${U("/",W(r))}${U("#",i(n))}`,docstemplate:({domain:t,project:e,committish:r})=>`https://${t}/${e}${U("/",W(r))}`,httpstemplate:({domain:t,project:e,committish:r})=>`git+https://${t}/${e}.git${U("#",r)}`,filetemplate:({user:t,project:e,committish:r,path:n})=>`https://gist.githubusercontent.com/${t}/${e}/raw${U("/",W(r))}/${n}`,shortcuttemplate:({type:t,project:e,committish:r})=>`${t}:${e}${U("#",r)}`,pathtemplate:({project:t,committish:e})=>`${t}${U("#",e)}`,bugstemplate:({domain:t,project:e})=>`https://${t}/${e}`,gittemplate:({domain:t,project:e,committish:r})=>`git://${t}/${e}.git${U("#",r)}`,tarballtemplate:({project:t,committish:e})=>`https://codeload.github.com/gist/${t}/tar.gz/${W(e||"HEAD")}`,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(n!=="raw"){if(!r){if(!e)return;r=e,e=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:e,project:r,committish:t.hash.slice(1)}}},hashformat:function(t){return t&&"file-"+Cu(t)}};Ne.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:e,project:r,committish:n,path:i})=>`https://${t}/${e}/${r}/blob/${W(n)||"HEAD"}/${i}`,httpstemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}.git${U("#",n)}`,tarballtemplate:({domain:t,user:e,project:r,committish:n})=>`https://${t}/${e}/${r}/archive/${W(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:t=>{let[,e,r,n]=t.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!e||!r)))return{user:e,project:r,committish:t.hash.slice(1)}}};for(let[t,e]of Object.entries(Ne))Ne[t]=Object.assign({},Nf,e);Au.exports=Ne});var yi=L((Yy,Tu)=>{b();var Of=ht("url"),gi=(t,e,r)=>{let n=t.indexOf(r);return t.lastIndexOf(e,n>-1?n:1/0)},ku=t=>{try{return new Of.URL(t)}catch{}},Bf=(t,e)=>{let r=t.indexOf(":"),n=t.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(e,n))return t;let i=t.indexOf("@");return i>-1?i>r?`git+ssh://${t}`:t:t.indexOf("//")===r+1?t:`${t.slice(0,r+1)}//${t.slice(r+1)}`},_f=t=>{let e=gi(t,"@","#"),r=gi(t,":","#");return r>e&&(t=t.slice(0,r)+"/"+t.slice(r+1)),gi(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t};Tu.exports=(t,e)=>{let r=e?Bf(t,e):t;return ku(r)||ku(_f(r))}});var Fu=L((Zy,Iu)=>{"use strict";b();var Uf=yi(),jf=t=>{let e=t.indexOf("#"),r=t.indexOf("/"),n=t.indexOf("/",r+1),i=t.indexOf(":"),u=/\s/.exec(t),a=t.indexOf("@"),f=!u||e>-1&&u.index>e,p=a===-1||e>-1&&a>e,m=i===-1||e>-1&&i>e,h=n===-1||e>-1&&n>e,g=r>0,d=e>-1?t[e-1]!=="/":!t.endsWith("/"),s=!t.startsWith(".");return f&&g&&d&&s&&p&&m&&h};Iu.exports=(t,e,{gitHosts:r,protocols:n})=>{if(!t)return;let i=jf(t)?`github:${t}`:t,u=Uf(i,n);if(!u)return;let a=r.byShortcut[u.protocol],f=r.byDomain[u.hostname.startsWith("www.")?u.hostname.slice(4):u.hostname],p=a||f;if(!p)return;let m=r[a||f],h=null;n[u.protocol]?.auth&&(u.username||u.password)&&(h=`${u.username}${u.password?":"+u.password:""}`);let g=null,d=null,s=null,o=null;try{if(a){let l=u.pathname.startsWith("/")?u.pathname.slice(1):u.pathname,c=l.indexOf("@");c>-1&&(l=l.slice(c+1));let y=l.lastIndexOf("/");y>-1?(d=decodeURIComponent(l.slice(0,y)),d||(d=null),s=decodeURIComponent(l.slice(y+1))):s=decodeURIComponent(l),s.endsWith(".git")&&(s=s.slice(0,-4)),u.hash&&(g=decodeURIComponent(u.hash.slice(1))),o="shortcut"}else{if(!m.protocols.includes(u.protocol))return;let l=m.extract(u);if(!l)return;d=l.user&&decodeURIComponent(l.user),s=decodeURIComponent(l.project),g=decodeURIComponent(l.committish),o=n[u.protocol]?.name||u.protocol.slice(0,-1)}}catch(l){if(l instanceof URIError)return;throw l}return[p,d,h,s,g,o,e]}});var Lu=L((tS,Ru)=>{"use strict";b();var{LRUCache:Gf}=Eu(),$f=wu(),qf=Fu(),Hf=yi(),Si=new Gf({max:1e3});function Wf(t){try{let{protocol:e,hostname:r,pathname:n}=new URL(t);if(!r)return null;let i=/(?:git\+)http:$/.test(e)?"http:":"https:",u=n.replace(/\.git$/,"");return`${i}//${r}${u}`}catch{return null}}var vr=class t{constructor(e,r,n,i,u,a,f={}){Object.assign(this,t.#n[e],{type:e,user:r,auth:n,project:i,committish:u,default:a,opts:f})}static#n={byShortcut:{},byDomain:{}};static#s={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(e,r){t.#n[e]=r,t.#n.byDomain[r.domain]=e,t.#n.byShortcut[`${e}:`]=e,t.#s[`${e}:`]={name:e}}static fromUrl(e,r){if(typeof e!="string")return;let n=e+JSON.stringify(r||{});if(!Si.has(n)){let i=qf(e,r,{gitHosts:t.#n,protocols:t.#s});Si.set(n,i?new t(...i):void 0)}return Si.get(n)}static fromManifest(e,r={}){if(!e||typeof e!="object")return;let n=e.repository,i=n&&(typeof n=="string"?n:typeof n=="object"&&typeof n.url=="string"?n.url:null);if(!i)throw new Error("no repository");let u=i&&t.fromUrl(i.replace(/^git\+/,""),r)||null;if(u)return u;let a=Wf(i);return t.fromUrl(a,r)||a}static parseUrl(e){return Hf(e)}#t(e,r){if(typeof e!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=e(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#t(this.sshtemplate,e)}sshurl(e){return this.#t(this.sshurltemplate,e)}browse(e,...r){return typeof e!="string"?this.#t(this.browsetemplate,e):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:e}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:e})}browseFile(e,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:e}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:e})}docs(e){return this.#t(this.docstemplate,e)}bugs(e){return this.#t(this.bugstemplate,e)}https(e){return this.#t(this.httpstemplate,e)}git(e){return this.#t(this.gittemplate,e)}shortcut(e){return this.#t(this.shortcuttemplate,e)}path(e){return this.#t(this.pathtemplate,e)}tarball(e){return this.#t(this.tarballtemplate,{...e,noCommittish:!1})}file(e,r){return this.#t(this.filetemplate,{...r,path:e})}edit(e,r){return this.#t(this.edittemplate,{...r,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}};for(let[t,e]of Object.entries($f))vr.addHost(t,e);Ru.exports=vr});var Mu=L((nS,Pu)=>{b();Pu.exports=zf;function zf(t){if(!t||t==="ERROR: No README data found!")return;t=t.trim().split(`
|
|
18
|
-
`);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let r=t.length,n=e+1;for(;n<r&&t[n].trim();)n++;return t.slice(e,n).join(" ").trim()}});var Nu=L((sS,Xf)=>{Xf.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var Uu=L((oS,_u)=>{b();var{URL:bi}=ht("node:url"),Jf=Ka(),Vf=Qa(),Kf=Su(),Dr=Lu(),{isBuiltin:Yf}=ht("node:module"),Qf=["dependencies","devDependencies","optionalDependencies"],Zf=Mu(),Oe=Nu(),Ou=t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf(".");_u.exports={warn:function(){},fixRepositoryField:function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var r=Dr.fromUrl(e);r&&(e=t.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e)},fixTypos:function(t){Object.keys(Oe.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,Oe.topLevel[e])},this)},fixScriptsField:function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):Oe.script[e]&&!t.scripts[Oe.script[e]]&&this.warn("typo",e,Oe.script[e],"scripts")},this)}},fixFilesField:function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(t){if(t.bin&&typeof t.bin=="string"){var e={},r;(r=t.name.match(/^@[^/]+[/](.*)$/))?e[r[1]]=t.bin:e[t.name]=t.bin,t.bin=e}},fixManField:function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man])},fixBundleDependenciesField:function(t){var e="bundledDependencies",r="bundleDependencies";t[e]&&!t[r]&&(t[r]=t[e],delete t[e]),t[r]&&!Array.isArray(t[r])?(this.warn("nonArrayBundleDependencies"),delete t[r]):t[r]&&(t[r]=t[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),t.dependencies[n]="*"),!0)},this))},fixDependencies:function(t){ap(t,this.warn),sp(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(r){var n=t[e][r];typeof n!="string"&&(this.warn("nonStringDependency",r,JSON.stringify(n)),delete t[e][r]);var i=Dr.fromUrl(t[e][r]);i&&(t[e][r]=i.toString())},this)}},this)},fixModulesField:function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules)},fixKeywordsField:function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(t,e){var r=!e;if(!t.version)return t.version="",!0;if(!Jf(t.version,r))throw new Error('Invalid version: "'+t.version+'"');return t.version=Vf(t.version,r),!0},fixPeople:function(t){Bu(t,np),Bu(t,ip)},fixNameField:function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var r=e.strict;if(!t.name&&!r){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");r||(t.name=t.name.trim()),rp(t.name,r,e.allowLegacyCase),Yf(t.name)&&this.warn("conflictingName",t.name)},fixDescriptionField:function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=Zf(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},fixReadmeField:function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},fixBugsField:function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Dr.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Ou(t.bugs)?t.bugs={email:t.bugs}:bi.canParse(t.bugs)?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{up(t.bugs,this.warn);var r=t.bugs;t.bugs={},r.url&&(bi.canParse(r.url)?t.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Ou(r.email)?t.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Dr.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;bi.canParse(t.homepage)||(t.homepage="http://"+t.homepage)}},fixLicenseField:function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!Kf(e).validForNewPackages)return this.warn("invalidLicense")}};function ep(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}function tp(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}function rp(t,e,r){if(t.charAt(0)==="."||!(ep(t)||tp(t))||e&&!r&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}function Bu(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(t[r])&&(t[r]=t[r].map(e))}),t}function np(t){if(typeof t=="string")return t;var e=t.name||"",r=t.url||t.web,n=r?" ("+r+")":"",i=t.email||t.mail,u=i?" <"+i+">":"";return e+u+n}function ip(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),r=t.match(/\(([^()]+)\)/),n=t.match(/<([^<>]+)>/),i={};return e&&e[0].trim()&&(i.name=e[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function sp(t){var e=t.optionalDependencies;if(e){var r=t.dependencies||{};Object.keys(e).forEach(function(n){r[n]=e[n]}),t.dependencies=r}}function op(t,e,r){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;r("deprecatedArrayDependencies",e);var n={};return t.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var u=i.shift(),a=i.join("");a=a.trim(),a=a.replace(/^@/,""),n[u]=a}),n}function ap(t,e){Qf.forEach(function(r){t[r]&&(t[r]=op(t[r],r,e))})}function up(t,e){t&&Object.keys(t).forEach(function(r){Oe.bugs[r]&&(e("typo",r,Oe.bugs[r],"bugs"),t[Oe.bugs[r]]=t[r],delete t[r])})}});var ju=L((uS,lp)=>{lp.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var qu=L((lS,$u)=>{b();var Gu=ht("util"),xi=ju();$u.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return cp.apply(null,t);var r=xi[e]?xi[e]:e+": '%s'";return t.unshift(r),Gu.format.apply(null,t)};function cp(t,e,r){return r&&(t=r+"['"+t+"']",e=r+"['"+e+"']"),Gu.format(xi.typo,t,e)}});var Xu=L((dS,zu)=>{b();zu.exports=Hu;var vi=Uu();Hu.fixer=vi;var dp=qu(),hp=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],fp=["dependencies","people","typos"],Di=hp.map(function(t){return Wu(t)+"Field"});Di=Di.concat(fp);function Hu(t,e,r){e===!0&&(e=null,r=!0),r||(r=!1),(!e||t.private)&&(e=function(){}),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),vi.warn=function(){e(dp.apply(null,arguments))},Di.forEach(function(n){vi["fix"+Wu(n)](t,r)}),t._id=t.name+"@"+t.version}function Wu(t){return t.charAt(0).toUpperCase()+t.slice(1)}});b();var Lp=1;function Al(t){let e=t?.serverTimestamp;return typeof e=="number"&&Number.isFinite(e)?e:Date.now()}var Lr=class extends Error{limit;constructor(e){super(`EventBus subscriber limit reached (${e})`),this.name="SubscriberLimitExceededError",this.limit=e}},ji=class{constructor(e=8e3,r=64,n){this.ringSize=e;this.maxSubscribers=r;this.compactionEngine=n}nextId=1;ring=[];subs=new Set;closed=!1;snapshotReplay(){return this.compactionEngine?.snapshot()}get lastEventId(){return this.nextId-1}get subscriberCount(){return this.subs.size}publish(e){if(this.closed)return;let r=e._meta,n={id:this.nextId++,v:1,...e,_meta:{...r??{},serverTimestamp:Al(r)}};this.ring.push(n);try{this.compactionEngine?.ingest(n)}catch{}this.ring.length>this.ringSize&&this.ring.shift();for(let i of Array.from(this.subs)){if(i.evicted)continue;if(!i.queue.push(n)){i.evicted=!0;let a={v:1,type:"client_evicted",data:{reason:"queue_overflow",droppedAfter:n.id}};i.queue.forcePush(a),i.queue.close(),i.dispose();continue}let u=i.queue.size;if(!i.warned&&u>=i.warnThreshold){i.warned=!0;let a={v:1,type:"slow_client_warning",data:{queueSize:u,maxQueued:i.maxQueued,lastEventId:n.id}};i.queue.forcePush(a)}else i.warned&&u<=i.warnResetThreshold&&(i.warned=!1)}return n}subscribe(e={}){if(this.closed)return wl();if(this.subs.size>=this.maxSubscribers)throw new Lr(this.maxSubscribers);let r=e.maxQueued??256,n=new Pr(r),i={queue:n,evicted:!1,maxQueued:r,warnThreshold:.75*r,warnResetThreshold:.375*r,warned:!1,dispose:()=>{}};if(this.subs.add(i),e.lastEventId!==void 0){let p=e.lastEventId>=this.nextId;if(p)n.forcePush({v:1,type:"state_resync_required",data:{reason:"epoch_reset",lastDeliveredId:e.lastEventId,earliestAvailableId:this.ring[0]?.id??this.nextId}});else{let d=this.ring[0]?.id;d!==void 0&&d>e.lastEventId+1&&n.forcePush({v:1,type:"state_resync_required",data:{reason:"ring_evicted",lastDeliveredId:e.lastEventId,earliestAvailableId:d}})}let m=p?0:e.lastEventId,h=0,g;for(let d of this.ring)d.id!==void 0&&d.id>m&&(n.forcePush(d),h+=1,g=d.id);n.forcePush({v:1,type:"replay_complete",data:{...g!==void 0?{lastReplayedEventId:g,lastEventId:g}:{},replayedCount:h}})}let u=!1,a=()=>{u||(u=!0,this.subs.delete(i),e.signal?.removeEventListener("abort",f))};i.dispose=a;let f=()=>{n.close({drain:!1}),a()};return e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f,{once:!0})),{[Symbol.asyncIterator]:()=>({async next(){let p=await n.next();return p.done&&a(),p},async return(){return n.close(),a(),{value:void 0,done:!0}}})}}close(){if(!this.closed){this.closed=!0;for(let e of this.subs)e.queue.close();this.subs.clear(),this.compactionEngine?.close()}}};function wl(){return{[Symbol.asyncIterator]:()=>({async next(){return{value:void 0,done:!0}}})}}var Pr=class{constructor(e){this.maxSize=e}buf=[];resolvers=[];closed=!1;liveCount=0;get size(){return this.liveCount}push(e){if(this.closed)return!1;let r=this.resolvers.shift();return r?(r({value:e,done:!1}),!0):this.liveCount>=this.maxSize?!1:(this.buf.push({value:e,forced:!1}),this.liveCount+=1,!0)}forcePush(e){if(this.closed)return;let r=this.resolvers.shift();if(r){r({value:e,done:!1});return}this.buf.push({value:e,forced:!0})}close(e={}){if(!this.closed)for(this.closed=!0,e.drain===!1&&(this.buf.length=0,this.liveCount=0);this.resolvers.length>0;)this.resolvers.shift()({value:void 0,done:!0})}next(){if(this.buf.length>0){let e=this.buf.shift();return e.forced||(this.liveCount-=1),Promise.resolve({value:e.value,done:!1})}return this.closed?Promise.resolve({value:void 0,done:!0}):new Promise(e=>this.resolvers.push(e))}};b();b();b();import{realpathSync as kl}from"node:fs";import*as Gi from"node:path";function Up(t){let e=Gi.resolve(t);try{return kl.native(e)}catch(r){if(r&&typeof r=="object"&&r.code==="ENOENT")return e;throw r}}var Mr=4096;var qp="Not currently generating";function Hp(t){if(!t||typeof t!="object")return!1;let e=t;return $i(e.message)?!0:!e.data||typeof e.data!="object"?!1:$i(e.data.details)}function $i(t){return typeof t=="string"&&/\bnot currently generating\b/i.test(t)}var qi=class extends Error{sessionId;constructor(e,r){super(`No session with id "${e}"`+(r?`. ${r}`:"")),this.name="SessionNotFoundError",this.sessionId=e}},Hi=class extends Error{sessionId;activeAction;requestedAction;constructor(e,r,n){super(`Session "${e}" is already being restored via session/${r}; retry session/${n} after it completes`),this.name="RestoreInProgressError",this.sessionId=e,this.activeAction=r,this.requestedAction=n}},Wi=class extends Error{sessionScope;constructor(e){super(`Invalid sessionScope: ${JSON.stringify(e)}. Expected 'single' or 'thread'.`),this.name="InvalidSessionScopeError",this.sessionScope=e}},zi=class extends Error{limit;constructor(e){super(`Session limit reached (${e})`),this.name="SessionLimitExceededError",this.limit=e}},Xi=class extends Error{limit;pendingCount;sessionId;constructor(e,r,n){super(`Prompt queue full for session "${n}" (${r}/${e} pending)`),this.name="PromptQueueFullError",this.limit=e,this.pendingCount=r,this.sessionId=n}},Ji=class extends Error{bound;requested;constructor(e,r){let n=r.length>Mr?`${r.slice(0,Mr)}\u2026[truncated]`:r;super(`Workspace mismatch: daemon is bound to "${e}" but request asked for "${n}". Each \`matilda serve\` daemon binds to exactly one workspace; start a separate daemon for "${n}" (or route the request to one via an orchestrator).`),this.name="WorkspaceMismatchError",this.bound=e,this.requested=n}},Vi=class extends Error{sessionId;clientId;constructor(e,r){super(`Client id "${r}" is not registered for session ${e}`),this.name="InvalidClientIdError",this.sessionId=e,this.clientId=r}},Ki=class extends Error{constructor(){super("Direct session shell is disabled for this daemon"),this.name="SessionShellDisabledError"}},Yi=class extends Error{constructor(){super("Direct session shell requires a session-bound client id"),this.name="SessionShellClientRequiredError"}},Qi=class extends Error{requestId;optionId;constructor(e,r){super(`Permission ${e}: optionId "${r}" is not in the set of options the agent offered.`),this.name="InvalidPermissionOptionError",this.requestId=e,this.optionId=r}},Zi=class extends Error{field;constructor(e,r){super(`Invalid session metadata: ${e} ${r}`),this.name="InvalidSessionMetadataError",this.field=e}},es=class extends Error{policy;constructor(e){super(`Permission policy "${e}" is declared in the contract but not yet implemented in this daemon build.`),this.name="PermissionPolicyNotImplementedError",this.policy=e}},ts=class extends Error{requestId;sentinel;constructor(e,r){super(`Permission ${e}: agent-declared optionId set contains the cancel-vote sentinel "${r}", which would prevent the daemon from disambiguating cancel intent from a real vote.`),this.name="CancelSentinelCollisionError",this.requestId=e,this.sentinel=r}},rs=class extends Error{requestId;sessionId;reason;constructor(e,r,n){super(`Permission ${e} on session ${r}: vote rejected by policy (${n}).`),this.name="PermissionForbiddenError",this.requestId=e,this.sessionId=r,this.reason=n}},ns=class extends Error{path;existingSize;constructor(e,r){super(`Workspace file ${e} already exists (${r} bytes); pass {force: true} to overwrite.`),this.name="WorkspaceInitConflictError",this.path=e,this.existingSize=r}},is=class extends Error{filename;boundWorkspace;constructor(e,r){super(`Configured workspace context filename ${JSON.stringify(e)} resolves outside the bound workspace ${JSON.stringify(r)}. Refusing to write.`),this.name="WorkspaceInitPathEscapeError",this.filename=e,this.boundWorkspace=r}},ss=class extends Error{target;kind;constructor(e,r,n){super(n),this.name="WorkspaceInitSymlinkError",this.target=e,this.kind=r}},os=class extends Error{target;kind;constructor(e,r,n){super(n),this.name="WorkspaceInitRaceError",this.target=e,this.kind=r}},as=class extends Error{serverName;constructor(e){super(`MCP server not configured: ${JSON.stringify(e)}`),this.name="McpServerNotFoundError",this.serverName=e}},us=class extends Error{serverName;mcpStatus;constructor(e,r){super(`MCP server ${JSON.stringify(e)} did not reach a connected state after restart (status: ${r}).`),this.name="McpServerRestartFailedError",this.serverName=e,this.mcpStatus=r}},ls=class extends Error{sessionId;constructor(e,r){super(r??`Session ${e} is busy (prompt running)`),this.name="SessionBusyError",this.sessionId=e}},cs=class extends Error{sessionId;constructor(e,r){super(r??"Cannot rewind to the requested turn (compressed or does not exist)"),this.name="InvalidRewindTargetError",this.sessionId=e}},ds=class extends Error{sessionId;constructor(e){super(`Cannot branch session ${e}: a prompt is currently active`),this.name="BranchWhilePromptActiveError",this.sessionId=e}};b();var _e=1,Jp=["missing_binary","blocked_egress","auth_env_error","init_timeout","protocol_error","missing_file","parse_error","stat_failed","budget_exhausted","mcp_budget_would_exceed","mcp_server_spawn_failed","invalid_config","prompt_deadline_exceeded","writer_idle_timeout"],Nr=class extends Error{label;timeoutMs;constructor(e,r){super(`AcpSessionBridge ${e} timed out after ${r}ms`),this.name="BridgeTimeoutError",this.label=e,this.timeoutMs=r}},Or=class extends Error{context;constructor(e){super(`agent channel closed ${e}`),this.name="BridgeChannelClosedError",this.context=e}},Br=class extends Error{constructor(){super("Cannot determine CLI entry path for spawning the ACP child: process.argv[1] is empty and MATILDA_CLI_ENTRY is unset. Set MATILDA_CLI_ENTRY to the absolute path of the matilda entry script (e.g. `export MATILDA_CLI_ENTRY=$(which matilda)`) to override."),this.name="MissingCliEntryError"}},Vp={workspaceMcp:"matilda/status/workspace/mcp",workspaceMcpTools:"matilda/status/workspace/mcp/tools",workspaceSkills:"matilda/status/workspace/skills",workspaceTools:"matilda/status/workspace/tools",workspaceProviders:"matilda/status/workspace/providers",workspaceMemory:"matilda/status/workspace/memory",workspaceAgents:"matilda/status/workspace/agents",workspacePreflight:"matilda/status/workspace/preflight",sessionContext:"matilda/status/session/context",sessionContextUsage:"matilda/status/session/context_usage",sessionSupportedCommands:"matilda/status/session/supported_commands",sessionTasks:"matilda/status/session/tasks",sessionStats:"matilda/status/session/stats",sessionRewindSnapshots:"matilda/status/session/rewind_snapshots",workspaceHooks:"matilda/status/workspace/hooks",sessionHooks:"matilda/status/session/hooks",workspaceExtensions:"matilda/status/workspace/extensions"},Kp={sessionClose:"matilda/control/session/close",sessionApprovalMode:"matilda/control/session/approval_mode",sessionBranch:"matilda/control/session/branch",sessionRecap:"matilda/control/session/recap",sessionBtw:"matilda/control/session/btw",sessionShellHistory:"matilda/control/session/shell_history",sessionLanguage:"matilda/control/session/language",sessionRewind:"matilda/control/session/rewind",workspaceMcpRestart:"matilda/control/workspace/mcp/restart",workspaceMcpManage:"matilda/control/workspace/mcp/manage",workspaceAgentGenerate:"matilda/control/workspace/agents/generate",sessionTaskCancel:"matilda/control/session/task/cancel",sessionGoalClear:"matilda/control/session/goal/clear",workspaceMcpRuntimeAdd:"matilda/control/workspace/mcp/runtime-add",workspaceMcpRuntimeRemove:"matilda/control/workspace/mcp/runtime-remove",workspaceReload:"matilda/control/workspace/reload"},Tl={PreToolUse:{description:"Before tool execution",matcherKind:"toolName"},PostToolUse:{description:"After tool execution",matcherKind:"toolName"},PostToolUseFailure:{description:"After tool execution fails",matcherKind:"toolName"},PostToolBatch:{description:"After a batch of tool calls resolves"},Notification:{description:"When notifications are sent",matcherKind:"notificationType"},UserPromptSubmit:{description:"When the user submits a prompt"},UserPromptExpansion:{description:"When a slash command expands into a prompt",matcherKind:"commandName"},SessionStart:{description:"When a new session is started",matcherKind:"sessionTrigger"},Stop:{description:"Right before Matilda Code concludes its response"},SubagentStart:{description:"When a subagent is started",matcherKind:"agentType"},SubagentStop:{description:"Right before a subagent concludes its response",matcherKind:"agentType"},PreCompact:{description:"Before conversation compaction",matcherKind:"trigger"},PostCompact:{description:"After conversation compaction",matcherKind:"trigger"},SessionEnd:{description:"When a session is ending",matcherKind:"sessionTrigger"},PermissionRequest:{description:"When a permission dialog is displayed",matcherKind:"toolName"},PermissionDenied:{description:"When a tool call is denied",matcherKind:"toolName"},StopFailure:{description:"When the turn ends due to an API error",matcherKind:"error"},TodoCreated:{description:"When a new todo item is created"},TodoCompleted:{description:"When a todo item is marked as completed"},InstructionsLoaded:{description:"When an instruction or context file is loaded",matcherKind:"filePath"}};function Yp(t){return{v:_e,workspaceCwd:t,initialized:!1,extensions:[]}}function Qp(t){return{v:_e,workspaceCwd:t,initialized:!1,disabled:!1,hooks:[],events:Tl}}function Zp(t){return{v:_e,workspaceCwd:t,initialized:!1,files:[],totalBytes:0,fileCount:0,ruleCount:0}}function em(t){return{v:_e,workspaceCwd:t,initialized:!1,discoveryState:"not_started",servers:[],clientCount:0,budgetMode:"off",budgets:[]}}function tm(t){return{v:_e,workspaceCwd:t,initialized:!1,skills:[]}}function rm(t){return{v:_e,workspaceCwd:t,initialized:!1,providers:[]}}function nm(t,e){return{v:_e,workspaceCwd:t,initialized:!0,acpChannelLive:e,cells:[]}}var Il=["auth","mcp_discovery","skills","providers","tool_registry","egress"];function im(){return Il.map(t=>({kind:t,status:"not_started",locality:"acp",hint:"spawn a session to populate"}))}var Fl=new Set(["PARSE_ERROR","INVALID_CONFIG","INVALID_NAME"]),Rl=new Set(["FILE_ERROR","NOT_FOUND"]),Ll=new Set(["ENOENT","EACCES","EPERM"]),Pl=new Set(["StrictMissingCredentialsError","StrictMissingModelIdError","MissingApiKeyError","MissingModelError","MissingBaseUrlError","MissingAnthropicBaseUrlEnvError"]);function sm(t){if(t instanceof Nr)return"init_timeout";if(t instanceof Or)return"protocol_error";if(t instanceof Br)return"missing_binary";if(t instanceof Pi||t?.name==="SkillError"){let r=t.code;return r&&Fl.has(r)?"parse_error":r&&Rl.has(r)?"missing_file":void 0}if(t instanceof SyntaxError)return"parse_error";if(!(t instanceof Error))return;if(t.name==="TrustGateError"||Pl.has(t.name))return"auth_env_error";let e=t.code;if(typeof e=="string"&&Ll.has(e))return"missing_file"}b();b();import*as we from"node:fs";import*as qt from"node:path";var Ml="output-language.md",fs="matilda-code:llm-output-language:",Je="Australian English",Nl="auto";function jr(t){return!t||t.toLowerCase()===Nl}function Ol(t){let e=t.trim().toLowerCase();return e==="english"||e==="en"||e==="en-us"||e==="en-au"||e==="en_us"||e==="en_au"||e==="australian english"||e==="australian"?Je:t}var Bl=["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"],_l=["en-AU","en-GB","en-US","pt-BR","pt-PT","zh-Hans","zh-Hant","sr-Latn"],_r=null;function Ul(){if(_r)return _r;let t=new Map,e=(n,i)=>{if(!n)return;let u=n.toLowerCase();t.has(u)||t.set(u,i)},r;try{r=new Intl.DisplayNames(["en"],{type:"language"})}catch{r=void 0}for(let n of[...Bl,..._l]){let i=r?.of(n);if(!i||i.toLowerCase()===n.toLowerCase())continue;let u={tag:n,display:i};e(n,u),e(i,u);try{e(new Intl.DisplayNames([n],{type:"language"}).of(n),u)}catch{}}return _r=t,t}function hs(t){return t.tag.split("-")[0].toLowerCase()==="en"?Je:t.display}function Gr(t){let e=t.trim();if(!e)return null;let r=e.toLowerCase();if(Fr(r))return"English";if(r==="australian"||r===Je.toLowerCase())return Je;let n=Ul(),i=n.get(r);if(i)return hs(i);try{let[u]=Intl.getCanonicalLocales(e),a=u?.split("-")[0]?.toLowerCase(),f=a?n.get(a):void 0;if(f)return hs(f)}catch{}return null}function jl(t){return Gr(t)??Je}function Ur(t){if(jr(t)){let e=Ui();return Fr(e)?"English":Ol(Bi(e))}return jl(t)}function $r(){return qt.join(Q.getGlobalMatildaDir(),Ml)}function Gl(t){return t.replace(/[\r\n]/g," ").replace(/--!?>/g,"").replace(/--/g,"")}function $l(t){let e=Gl(t),n=t.toLowerCase().includes("australian")||t.toLowerCase()==="en-au"?`
|
|
18
|
+
`);let e=0;for(;t[e]&&t[e].trim().match(/^(#|$)/);)e++;let r=t.length,n=e+1;for(;n<r&&t[n].trim();)n++;return t.slice(e,n).join(" ").trim()}});var Nu=L((sS,Xf)=>{Xf.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var Uu=L((oS,_u)=>{b();var{URL:bi}=ht("node:url"),Jf=Ka(),Vf=Qa(),Kf=Su(),Dr=Lu(),{isBuiltin:Yf}=ht("node:module"),Qf=["dependencies","devDependencies","optionalDependencies"],Zf=Mu(),Oe=Nu(),Ou=t=>t.includes("@")&&t.indexOf("@")<t.lastIndexOf(".");_u.exports={warn:function(){},fixRepositoryField:function(t){if(t.repositories&&(this.warn("repositories"),t.repository=t.repositories[0]),!t.repository)return this.warn("missingRepository");typeof t.repository=="string"&&(t.repository={type:"git",url:t.repository});var e=t.repository.url||"";if(e){var r=Dr.fromUrl(e);r&&(e=t.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}e.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",e)},fixTypos:function(t){Object.keys(Oe.topLevel).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&this.warn("typo",e,Oe.topLevel[e])},this)},fixScriptsField:function(t){if(t.scripts){if(typeof t.scripts!="object"){this.warn("nonObjectScripts"),delete t.scripts;return}Object.keys(t.scripts).forEach(function(e){typeof t.scripts[e]!="string"?(this.warn("nonStringScript"),delete t.scripts[e]):Oe.script[e]&&!t.scripts[Oe.script[e]]&&this.warn("typo",e,Oe.script[e],"scripts")},this)}},fixFilesField:function(t){var e=t.files;e&&!Array.isArray(e)?(this.warn("nonArrayFiles"),delete t.files):t.files&&(t.files=t.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(t){if(t.bin&&typeof t.bin=="string"){var e={},r;(r=t.name.match(/^@[^/]+[/](.*)$/))?e[r[1]]=t.bin:e[t.name]=t.bin,t.bin=e}},fixManField:function(t){t.man&&typeof t.man=="string"&&(t.man=[t.man])},fixBundleDependenciesField:function(t){var e="bundledDependencies",r="bundleDependencies";t[e]&&!t[r]&&(t[r]=t[e],delete t[e]),t[r]&&!Array.isArray(t[r])?(this.warn("nonArrayBundleDependencies"),delete t[r]):t[r]&&(t[r]=t[r].filter(function(n){return!n||typeof n!="string"?(this.warn("nonStringBundleDependency",n),!1):(t.dependencies||(t.dependencies={}),Object.prototype.hasOwnProperty.call(t.dependencies,n)||(this.warn("nonDependencyBundleDependency",n),t.dependencies[n]="*"),!0)},this))},fixDependencies:function(t){ap(t,this.warn),sp(t,this.warn),this.fixBundleDependenciesField(t),["dependencies","devDependencies"].forEach(function(e){if(e in t){if(!t[e]||typeof t[e]!="object"){this.warn("nonObjectDependencies",e),delete t[e];return}Object.keys(t[e]).forEach(function(r){var n=t[e][r];typeof n!="string"&&(this.warn("nonStringDependency",r,JSON.stringify(n)),delete t[e][r]);var i=Dr.fromUrl(t[e][r]);i&&(t[e][r]=i.toString())},this)}},this)},fixModulesField:function(t){t.modules&&(this.warn("deprecatedModules"),delete t.modules)},fixKeywordsField:function(t){typeof t.keywords=="string"&&(t.keywords=t.keywords.split(/,\s+/)),t.keywords&&!Array.isArray(t.keywords)?(delete t.keywords,this.warn("nonArrayKeywords")):t.keywords&&(t.keywords=t.keywords.filter(function(e){return typeof e!="string"||!e?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(t,e){var r=!e;if(!t.version)return t.version="",!0;if(!Jf(t.version,r))throw new Error('Invalid version: "'+t.version+'"');return t.version=Vf(t.version,r),!0},fixPeople:function(t){Bu(t,np),Bu(t,ip)},fixNameField:function(t,e){typeof e=="boolean"?e={strict:e}:typeof e>"u"&&(e={});var r=e.strict;if(!t.name&&!r){t.name="";return}if(typeof t.name!="string")throw new Error("name field must be a string.");r||(t.name=t.name.trim()),rp(t.name,r,e.allowLegacyCase),Yf(t.name)&&this.warn("conflictingName",t.name)},fixDescriptionField:function(t){t.description&&typeof t.description!="string"&&(this.warn("nonStringDescription"),delete t.description),t.readme&&!t.description&&(t.description=Zf(t.readme)),t.description===void 0&&delete t.description,t.description||this.warn("missingDescription")},fixReadmeField:function(t){t.readme||(this.warn("missingReadme"),t.readme="ERROR: No README data found!")},fixBugsField:function(t){if(!t.bugs&&t.repository&&t.repository.url){var e=Dr.fromUrl(t.repository.url);e&&e.bugs()&&(t.bugs={url:e.bugs()})}else if(t.bugs){if(typeof t.bugs=="string")Ou(t.bugs)?t.bugs={email:t.bugs}:bi.canParse(t.bugs)?t.bugs={url:t.bugs}:this.warn("nonEmailUrlBugsString");else{up(t.bugs,this.warn);var r=t.bugs;t.bugs={},r.url&&(bi.canParse(r.url)?t.bugs.url=r.url:this.warn("nonUrlBugsUrlField")),r.email&&(typeof r.email=="string"&&Ou(r.email)?t.bugs.email=r.email:this.warn("nonEmailBugsEmailField"))}!t.bugs.email&&!t.bugs.url&&(delete t.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(t){if(!t.homepage&&t.repository&&t.repository.url){var e=Dr.fromUrl(t.repository.url);e&&e.docs()&&(t.homepage=e.docs())}if(t.homepage){if(typeof t.homepage!="string")return this.warn("nonUrlHomepage"),delete t.homepage;bi.canParse(t.homepage)||(t.homepage="http://"+t.homepage)}},fixLicenseField:function(t){let e=t.license||t.licence;if(!e)return this.warn("missingLicense");if(typeof e!="string"||e.length<1||e.trim()==="")return this.warn("invalidLicense");if(!Kf(e).validForNewPackages)return this.warn("invalidLicense")}};function ep(t){if(t.charAt(0)!=="@")return!1;var e=t.slice(1).split("/");return e.length!==2?!1:e[0]&&e[1]&&e[0]===encodeURIComponent(e[0])&&e[1]===encodeURIComponent(e[1])}function tp(t){return!t.match(/[/@\s+%:]/)&&t===encodeURIComponent(t)}function rp(t,e,r){if(t.charAt(0)==="."||!(ep(t)||tp(t))||e&&!r&&t!==t.toLowerCase()||t.toLowerCase()==="node_modules"||t.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(t))}function Bu(t,e){return t.author&&(t.author=e(t.author)),["maintainers","contributors"].forEach(function(r){Array.isArray(t[r])&&(t[r]=t[r].map(e))}),t}function np(t){if(typeof t=="string")return t;var e=t.name||"",r=t.url||t.web,n=r?" ("+r+")":"",i=t.email||t.mail,u=i?" <"+i+">":"";return e+u+n}function ip(t){if(typeof t!="string")return t;var e=t.match(/^([^(<]+)/),r=t.match(/\(([^()]+)\)/),n=t.match(/<([^<>]+)>/),i={};return e&&e[0].trim()&&(i.name=e[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function sp(t){var e=t.optionalDependencies;if(e){var r=t.dependencies||{};Object.keys(e).forEach(function(n){r[n]=e[n]}),t.dependencies=r}}function op(t,e,r){if(!t)return{};if(typeof t=="string"&&(t=t.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(t))return t;r("deprecatedArrayDependencies",e);var n={};return t.filter(function(i){return typeof i=="string"}).forEach(function(i){i=i.trim().split(/(:?[@\s><=])/);var u=i.shift(),a=i.join("");a=a.trim(),a=a.replace(/^@/,""),n[u]=a}),n}function ap(t,e){Qf.forEach(function(r){t[r]&&(t[r]=op(t[r],r,e))})}function up(t,e){t&&Object.keys(t).forEach(function(r){Oe.bugs[r]&&(e("typo",r,Oe.bugs[r],"bugs"),t[Oe.bugs[r]]=t[r],delete t[r])})}});var ju=L((uS,lp)=>{lp.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var qu=L((lS,$u)=>{b();var Gu=ht("util"),xi=ju();$u.exports=function(){var t=Array.prototype.slice.call(arguments,0),e=t.shift();if(e==="typo")return cp.apply(null,t);var r=xi[e]?xi[e]:e+": '%s'";return t.unshift(r),Gu.format.apply(null,t)};function cp(t,e,r){return r&&(t=r+"['"+t+"']",e=r+"['"+e+"']"),Gu.format(xi.typo,t,e)}});var Xu=L((dS,zu)=>{b();zu.exports=Hu;var vi=Uu();Hu.fixer=vi;var dp=qu(),hp=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],fp=["dependencies","people","typos"],Di=hp.map(function(t){return Wu(t)+"Field"});Di=Di.concat(fp);function Hu(t,e,r){e===!0&&(e=null,r=!0),r||(r=!1),(!e||t.private)&&(e=function(){}),t.scripts&&t.scripts.install==="node-gyp rebuild"&&!t.scripts.preinstall&&(t.gypfile=!0),vi.warn=function(){e(dp.apply(null,arguments))},Di.forEach(function(n){vi["fix"+Wu(n)](t,r)}),t._id=t.name+"@"+t.version}function Wu(t){return t.charAt(0).toUpperCase()+t.slice(1)}});b();var Lp=1;function Al(t){let e=t?.serverTimestamp;return typeof e=="number"&&Number.isFinite(e)?e:Date.now()}var Lr=class extends Error{limit;constructor(e){super(`EventBus subscriber limit reached (${e})`),this.name="SubscriberLimitExceededError",this.limit=e}},ji=class{constructor(e=8e3,r=64,n){this.ringSize=e;this.maxSubscribers=r;this.compactionEngine=n}nextId=1;ring=[];subs=new Set;closed=!1;snapshotReplay(){return this.compactionEngine?.snapshot()}get lastEventId(){return this.nextId-1}get subscriberCount(){return this.subs.size}publish(e){if(this.closed)return;let r=e._meta,n={id:this.nextId++,v:1,...e,_meta:{...r??{},serverTimestamp:Al(r)}};this.ring.push(n);try{this.compactionEngine?.ingest(n)}catch{}this.ring.length>this.ringSize&&this.ring.shift();for(let i of Array.from(this.subs)){if(i.evicted)continue;if(!i.queue.push(n)){i.evicted=!0;let a={v:1,type:"client_evicted",data:{reason:"queue_overflow",droppedAfter:n.id}};i.queue.forcePush(a),i.queue.close(),i.dispose();continue}let u=i.queue.size;if(!i.warned&&u>=i.warnThreshold){i.warned=!0;let a={v:1,type:"slow_client_warning",data:{queueSize:u,maxQueued:i.maxQueued,lastEventId:n.id}};i.queue.forcePush(a)}else i.warned&&u<=i.warnResetThreshold&&(i.warned=!1)}return n}subscribe(e={}){if(this.closed)return wl();if(this.subs.size>=this.maxSubscribers)throw new Lr(this.maxSubscribers);let r=e.maxQueued??256,n=new Pr(r),i={queue:n,evicted:!1,maxQueued:r,warnThreshold:.75*r,warnResetThreshold:.375*r,warned:!1,dispose:()=>{}};if(this.subs.add(i),e.lastEventId!==void 0){let p=e.lastEventId>=this.nextId;if(p)n.forcePush({v:1,type:"state_resync_required",data:{reason:"epoch_reset",lastDeliveredId:e.lastEventId,earliestAvailableId:this.ring[0]?.id??this.nextId}});else{let d=this.ring[0]?.id;d!==void 0&&d>e.lastEventId+1&&n.forcePush({v:1,type:"state_resync_required",data:{reason:"ring_evicted",lastDeliveredId:e.lastEventId,earliestAvailableId:d}})}let m=p?0:e.lastEventId,h=0,g;for(let d of this.ring)d.id!==void 0&&d.id>m&&(n.forcePush(d),h+=1,g=d.id);n.forcePush({v:1,type:"replay_complete",data:{...g!==void 0?{lastReplayedEventId:g,lastEventId:g}:{},replayedCount:h}})}let u=!1,a=()=>{u||(u=!0,this.subs.delete(i),e.signal?.removeEventListener("abort",f))};i.dispose=a;let f=()=>{n.close({drain:!1}),a()};return e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f,{once:!0})),{[Symbol.asyncIterator]:()=>({async next(){let p=await n.next();return p.done&&a(),p},async return(){return n.close(),a(),{value:void 0,done:!0}}})}}close(){if(!this.closed){this.closed=!0;for(let e of this.subs)e.queue.close();this.subs.clear(),this.compactionEngine?.close()}}};function wl(){return{[Symbol.asyncIterator]:()=>({async next(){return{value:void 0,done:!0}}})}}var Pr=class{constructor(e){this.maxSize=e}buf=[];resolvers=[];closed=!1;liveCount=0;get size(){return this.liveCount}push(e){if(this.closed)return!1;let r=this.resolvers.shift();return r?(r({value:e,done:!1}),!0):this.liveCount>=this.maxSize?!1:(this.buf.push({value:e,forced:!1}),this.liveCount+=1,!0)}forcePush(e){if(this.closed)return;let r=this.resolvers.shift();if(r){r({value:e,done:!1});return}this.buf.push({value:e,forced:!0})}close(e={}){if(!this.closed)for(this.closed=!0,e.drain===!1&&(this.buf.length=0,this.liveCount=0);this.resolvers.length>0;)this.resolvers.shift()({value:void 0,done:!0})}next(){if(this.buf.length>0){let e=this.buf.shift();return e.forced||(this.liveCount-=1),Promise.resolve({value:e.value,done:!1})}return this.closed?Promise.resolve({value:void 0,done:!0}):new Promise(e=>this.resolvers.push(e))}};b();b();b();import{realpathSync as kl}from"node:fs";import*as Gi from"node:path";function Up(t){let e=Gi.resolve(t);try{return kl.native(e)}catch(r){if(r&&typeof r=="object"&&r.code==="ENOENT")return e;throw r}}var Mr=4096;var qp="Not currently generating";function Hp(t){if(!t||typeof t!="object")return!1;let e=t;return $i(e.message)?!0:!e.data||typeof e.data!="object"?!1:$i(e.data.details)}function $i(t){return typeof t=="string"&&/\bnot currently generating\b/i.test(t)}var qi=class extends Error{sessionId;constructor(e,r){super(`No session with id "${e}"`+(r?`. ${r}`:"")),this.name="SessionNotFoundError",this.sessionId=e}},Hi=class extends Error{sessionId;activeAction;requestedAction;constructor(e,r,n){super(`Session "${e}" is already being restored via session/${r}; retry session/${n} after it completes`),this.name="RestoreInProgressError",this.sessionId=e,this.activeAction=r,this.requestedAction=n}},Wi=class extends Error{sessionScope;constructor(e){super(`Invalid sessionScope: ${JSON.stringify(e)}. Expected 'single' or 'thread'.`),this.name="InvalidSessionScopeError",this.sessionScope=e}},zi=class extends Error{limit;constructor(e){super(`Session limit reached (${e})`),this.name="SessionLimitExceededError",this.limit=e}},Xi=class extends Error{limit;pendingCount;sessionId;constructor(e,r,n){super(`Prompt queue full for session "${n}" (${r}/${e} pending)`),this.name="PromptQueueFullError",this.limit=e,this.pendingCount=r,this.sessionId=n}},Ji=class extends Error{bound;requested;constructor(e,r){let n=r.length>Mr?`${r.slice(0,Mr)}\u2026[truncated]`:r;super(`Workspace mismatch: daemon is bound to "${e}" but request asked for "${n}". Each \`matilda serve\` daemon binds to exactly one workspace; start a separate daemon for "${n}" (or route the request to one via an orchestrator).`),this.name="WorkspaceMismatchError",this.bound=e,this.requested=n}},Vi=class extends Error{sessionId;clientId;constructor(e,r){super(`Client id "${r}" is not registered for session ${e}`),this.name="InvalidClientIdError",this.sessionId=e,this.clientId=r}},Ki=class extends Error{constructor(){super("Direct session shell is disabled for this daemon"),this.name="SessionShellDisabledError"}},Yi=class extends Error{constructor(){super("Direct session shell requires a session-bound client id"),this.name="SessionShellClientRequiredError"}},Qi=class extends Error{requestId;optionId;constructor(e,r){super(`Permission ${e}: optionId "${r}" is not in the set of options the agent offered.`),this.name="InvalidPermissionOptionError",this.requestId=e,this.optionId=r}},Zi=class extends Error{field;constructor(e,r){super(`Invalid session metadata: ${e} ${r}`),this.name="InvalidSessionMetadataError",this.field=e}},es=class extends Error{policy;constructor(e){super(`Permission policy "${e}" is declared in the contract but not yet implemented in this daemon build.`),this.name="PermissionPolicyNotImplementedError",this.policy=e}},ts=class extends Error{requestId;sentinel;constructor(e,r){super(`Permission ${e}: agent-declared optionId set contains the cancel-vote sentinel "${r}", which would prevent the daemon from disambiguating cancel intent from a real vote.`),this.name="CancelSentinelCollisionError",this.requestId=e,this.sentinel=r}},rs=class extends Error{requestId;sessionId;reason;constructor(e,r,n){super(`Permission ${e} on session ${r}: vote rejected by policy (${n}).`),this.name="PermissionForbiddenError",this.requestId=e,this.sessionId=r,this.reason=n}},ns=class extends Error{path;existingSize;constructor(e,r){super(`Workspace file ${e} already exists (${r} bytes); pass {force: true} to overwrite.`),this.name="WorkspaceInitConflictError",this.path=e,this.existingSize=r}},is=class extends Error{filename;boundWorkspace;constructor(e,r){super(`Configured workspace context filename ${JSON.stringify(e)} resolves outside the bound workspace ${JSON.stringify(r)}. Refusing to write.`),this.name="WorkspaceInitPathEscapeError",this.filename=e,this.boundWorkspace=r}},ss=class extends Error{target;kind;constructor(e,r,n){super(n),this.name="WorkspaceInitSymlinkError",this.target=e,this.kind=r}},os=class extends Error{target;kind;constructor(e,r,n){super(n),this.name="WorkspaceInitRaceError",this.target=e,this.kind=r}},as=class extends Error{serverName;constructor(e){super(`MCP server not configured: ${JSON.stringify(e)}`),this.name="McpServerNotFoundError",this.serverName=e}},us=class extends Error{serverName;mcpStatus;constructor(e,r){super(`MCP server ${JSON.stringify(e)} did not reach a connected state after restart (status: ${r}).`),this.name="McpServerRestartFailedError",this.serverName=e,this.mcpStatus=r}},ls=class extends Error{sessionId;constructor(e,r){super(r??`Session ${e} is busy (prompt running)`),this.name="SessionBusyError",this.sessionId=e}},cs=class extends Error{sessionId;constructor(e,r){super(r??"Cannot rewind to the requested turn (compressed or does not exist)"),this.name="InvalidRewindTargetError",this.sessionId=e}},ds=class extends Error{sessionId;constructor(e){super(`Cannot branch session ${e}: a prompt is currently active`),this.name="BranchWhilePromptActiveError",this.sessionId=e}};b();var _e=1,Jp=["missing_binary","blocked_egress","auth_env_error","init_timeout","protocol_error","missing_file","parse_error","stat_failed","budget_exhausted","mcp_budget_would_exceed","mcp_server_spawn_failed","invalid_config","prompt_deadline_exceeded","writer_idle_timeout"],Nr=class extends Error{label;timeoutMs;constructor(e,r){super(`AcpSessionBridge ${e} timed out after ${r}ms`),this.name="BridgeTimeoutError",this.label=e,this.timeoutMs=r}},Or=class extends Error{context;constructor(e){super(`agent channel closed ${e}`),this.name="BridgeChannelClosedError",this.context=e}},Br=class extends Error{constructor(){super("Cannot determine CLI entry path for spawning the ACP child: process.argv[1] is empty and MATILDA_CLI_ENTRY is unset. Set MATILDA_CLI_ENTRY to the absolute path of the matilda entry script (e.g. `export MATILDA_CLI_ENTRY=$(which matilda)`) to override."),this.name="MissingCliEntryError"}},Vp={workspaceMcp:"matilda/status/workspace/mcp",workspaceMcpTools:"matilda/status/workspace/mcp/tools",workspaceSkills:"matilda/status/workspace/skills",workspaceTools:"matilda/status/workspace/tools",workspaceProviders:"matilda/status/workspace/providers",workspaceMemory:"matilda/status/workspace/memory",workspaceAgents:"matilda/status/workspace/agents",workspacePreflight:"matilda/status/workspace/preflight",sessionContext:"matilda/status/session/context",sessionContextUsage:"matilda/status/session/context_usage",sessionSupportedCommands:"matilda/status/session/supported_commands",sessionTasks:"matilda/status/session/tasks",sessionStats:"matilda/status/session/stats",sessionRewindSnapshots:"matilda/status/session/rewind_snapshots",workspaceHooks:"matilda/status/workspace/hooks",sessionHooks:"matilda/status/session/hooks",workspaceExtensions:"matilda/status/workspace/extensions"},Kp={sessionClose:"matilda/control/session/close",sessionRename:"renameSession",sessionApprovalMode:"matilda/control/session/approval_mode",sessionBranch:"matilda/control/session/branch",sessionRecap:"matilda/control/session/recap",sessionBtw:"matilda/control/session/btw",sessionShellHistory:"matilda/control/session/shell_history",sessionLanguage:"matilda/control/session/language",sessionRewind:"matilda/control/session/rewind",workspaceMcpRestart:"matilda/control/workspace/mcp/restart",workspaceMcpManage:"matilda/control/workspace/mcp/manage",workspaceAgentGenerate:"matilda/control/workspace/agents/generate",sessionTaskCancel:"matilda/control/session/task/cancel",sessionGoalClear:"matilda/control/session/goal/clear",workspaceMcpRuntimeAdd:"matilda/control/workspace/mcp/runtime-add",workspaceMcpRuntimeRemove:"matilda/control/workspace/mcp/runtime-remove",workspaceReload:"matilda/control/workspace/reload"},Tl={PreToolUse:{description:"Before tool execution",matcherKind:"toolName"},PostToolUse:{description:"After tool execution",matcherKind:"toolName"},PostToolUseFailure:{description:"After tool execution fails",matcherKind:"toolName"},PostToolBatch:{description:"After a batch of tool calls resolves"},Notification:{description:"When notifications are sent",matcherKind:"notificationType"},UserPromptSubmit:{description:"When the user submits a prompt"},UserPromptExpansion:{description:"When a slash command expands into a prompt",matcherKind:"commandName"},SessionStart:{description:"When a new session is started",matcherKind:"sessionTrigger"},Stop:{description:"Right before Matilda Code concludes its response"},SubagentStart:{description:"When a subagent is started",matcherKind:"agentType"},SubagentStop:{description:"Right before a subagent concludes its response",matcherKind:"agentType"},PreCompact:{description:"Before conversation compaction",matcherKind:"trigger"},PostCompact:{description:"After conversation compaction",matcherKind:"trigger"},SessionEnd:{description:"When a session is ending",matcherKind:"sessionTrigger"},PermissionRequest:{description:"When a permission dialog is displayed",matcherKind:"toolName"},PermissionDenied:{description:"When a tool call is denied",matcherKind:"toolName"},StopFailure:{description:"When the turn ends due to an API error",matcherKind:"error"},TodoCreated:{description:"When a new todo item is created"},TodoCompleted:{description:"When a todo item is marked as completed"},InstructionsLoaded:{description:"When an instruction or context file is loaded",matcherKind:"filePath"}};function Yp(t){return{v:_e,workspaceCwd:t,initialized:!1,extensions:[]}}function Qp(t){return{v:_e,workspaceCwd:t,initialized:!1,disabled:!1,hooks:[],events:Tl}}function Zp(t){return{v:_e,workspaceCwd:t,initialized:!1,files:[],totalBytes:0,fileCount:0,ruleCount:0}}function em(t){return{v:_e,workspaceCwd:t,initialized:!1,discoveryState:"not_started",servers:[],clientCount:0,budgetMode:"off",budgets:[]}}function tm(t){return{v:_e,workspaceCwd:t,initialized:!1,skills:[]}}function rm(t){return{v:_e,workspaceCwd:t,initialized:!1,providers:[]}}function nm(t,e){return{v:_e,workspaceCwd:t,initialized:!0,acpChannelLive:e,cells:[]}}var Il=["auth","mcp_discovery","skills","providers","tool_registry","egress"];function im(){return Il.map(t=>({kind:t,status:"not_started",locality:"acp",hint:"spawn a session to populate"}))}var Fl=new Set(["PARSE_ERROR","INVALID_CONFIG","INVALID_NAME"]),Rl=new Set(["FILE_ERROR","NOT_FOUND"]),Ll=new Set(["ENOENT","EACCES","EPERM"]),Pl=new Set(["StrictMissingCredentialsError","StrictMissingModelIdError","MissingApiKeyError","MissingModelError","MissingBaseUrlError","MissingAnthropicBaseUrlEnvError"]);function sm(t){if(t instanceof Nr)return"init_timeout";if(t instanceof Or)return"protocol_error";if(t instanceof Br)return"missing_binary";if(t instanceof Pi||t?.name==="SkillError"){let r=t.code;return r&&Fl.has(r)?"parse_error":r&&Rl.has(r)?"missing_file":void 0}if(t instanceof SyntaxError)return"parse_error";if(!(t instanceof Error))return;if(t.name==="TrustGateError"||Pl.has(t.name))return"auth_env_error";let e=t.code;if(typeof e=="string"&&Ll.has(e))return"missing_file"}b();b();import*as we from"node:fs";import*as qt from"node:path";var Ml="output-language.md",fs="matilda-code:llm-output-language:",Je="Australian English",Nl="auto";function jr(t){return!t||t.toLowerCase()===Nl}function Ol(t){let e=t.trim().toLowerCase();return e==="english"||e==="en"||e==="en-us"||e==="en-au"||e==="en_us"||e==="en_au"||e==="australian english"||e==="australian"?Je:t}var Bl=["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"],_l=["en-AU","en-GB","en-US","pt-BR","pt-PT","zh-Hans","zh-Hant","sr-Latn"],_r=null;function Ul(){if(_r)return _r;let t=new Map,e=(n,i)=>{if(!n)return;let u=n.toLowerCase();t.has(u)||t.set(u,i)},r;try{r=new Intl.DisplayNames(["en"],{type:"language"})}catch{r=void 0}for(let n of[...Bl,..._l]){let i=r?.of(n);if(!i||i.toLowerCase()===n.toLowerCase())continue;let u={tag:n,display:i};e(n,u),e(i,u);try{e(new Intl.DisplayNames([n],{type:"language"}).of(n),u)}catch{}}return _r=t,t}function hs(t){return t.tag.split("-")[0].toLowerCase()==="en"?Je:t.display}function Gr(t){let e=t.trim();if(!e)return null;let r=e.toLowerCase();if(Fr(r))return"English";if(r==="australian"||r===Je.toLowerCase())return Je;let n=Ul(),i=n.get(r);if(i)return hs(i);try{let[u]=Intl.getCanonicalLocales(e),a=u?.split("-")[0]?.toLowerCase(),f=a?n.get(a):void 0;if(f)return hs(f)}catch{}return null}function jl(t){return Gr(t)??Je}function Ur(t){if(jr(t)){let e=Ui();return Fr(e)?"English":Ol(Bi(e))}return jl(t)}function $r(){return qt.join(Q.getGlobalMatildaDir(),Ml)}function Gl(t){return t.replace(/[\r\n]/g," ").replace(/--!?>/g,"").replace(/--/g,"")}function $l(t){let e=Gl(t),n=t.toLowerCase().includes("australian")||t.toLowerCase()==="en-au"?`
|
|
19
19
|
## Australian English
|
|
20
20
|
Use Australian English spelling and wording by default:
|
|
21
21
|
- colour, organise, favour, behaviour, honour, centre, metre, defence, licence (noun), practice (noun) / practise (verb)
|
|
@@ -46,7 +46,7 @@ Please fix the configuration file(s) and try again.`)}let wr=[...i?[i]:[],...D.m
|
|
|
46
46
|
`,e-1);return{line:r===-1?0:t.slice(0,r+1).match(/\n/g).length,column:e-r-1}}function Zn(t,e,{oneBased:r=!1}={}){if(typeof t!="string")throw new TypeError("Text parameter should be a string");if(!Number.isInteger(e))throw new TypeError("Index parameter should be an integer");if(e<0||e>t.length)throw new RangeError("Index out of bounds");let n=jh(t,e);return r?{line:n.line+1,column:n.column+1}:n}var Gh=t=>`\\u{${t.codePointAt(0).toString(16)}}`,ei=class t extends Error{name="JSONError";fileName;#n;#s;#t;#f;#A;constructor(e){if(typeof e=="string")super(),this.#t=e;else{let{jsonParseError:r,fileName:n,input:i}=e;super(void 0,{cause:r}),this.#n=i,this.#s=r,this.fileName=n}Error.captureStackTrace?.(this,t)}get message(){this.#t??=`${qh(this.#s.message)}${this.#n===""?" while parsing empty string":""}`;let{codeFrame:e}=this;return`${this.#t}${this.fileName?` in ${this.fileName}`:""}${e?`
|
|
47
47
|
|
|
48
48
|
${e}
|
|
49
|
-
`:""}`}set message(e){this.#t=e}#w(e){if(!this.#s)return;let r=this.#n,n=$h(r,this.#s.message);if(n)return(0,Pa.codeFrameColumns)(r,{start:n},{highlightCode:e})}get codeFrame(){return this.#f??=this.#w(!0),this.#f}get rawCodeFrame(){return this.#A??=this.#w(!1),this.#A}},$h=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:i,column:u}=r.groups;return i&&u?{line:Number(i),column:Number(u)}:Zn(t,Number(n),{oneBased:!0})},qh=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,n)=>`"${n}"(${Gh(n)})`);function ti(t,e,r){typeof e=="string"&&(r=e,e=void 0);try{return JSON.parse(t,e)}catch(n){throw new ei({jsonParseError:n,fileName:r,input:t})}}var Vu=Xe(Xu(),1);b();import{fileURLToPath as pp}from"node:url";function Ju(t){return t instanceof URL?pp(t):t}var yp=t=>gp.resolve(Ju(t)??".","package.json"),Sp=(t,e)=>{let r=typeof t=="string"?ti(t):t;return e&&(0,Vu.default)(r),r};async function Ku({cwd:t,normalize:e=!0}={}){let r=await mp.readFile(yp(t),"utf8");return Sp(r,e)}async function Yu(t){let e=await ua("package.json",t);if(e)return{packageJson:await Ku({...t,cwd:bp.dirname(e)}),path:e}}import{fileURLToPath as xp}from"node:url";import vp from"node:path";var Dp=xp(import.meta.url),Ep=vp.dirname(Dp),Er;async function Qu(){if(Er)return Er;let t=await Yu({cwd:Ep});if(t)return Er=t.packageJson,Er}async function Zu(){let t=await Qu();return"0.21.
|
|
49
|
+
`:""}`}set message(e){this.#t=e}#w(e){if(!this.#s)return;let r=this.#n,n=$h(r,this.#s.message);if(n)return(0,Pa.codeFrameColumns)(r,{start:n},{highlightCode:e})}get codeFrame(){return this.#f??=this.#w(!0),this.#f}get rawCodeFrame(){return this.#A??=this.#w(!1),this.#A}},$h=(t,e)=>{let r=e.match(/in JSON at position (?<index>\d+)(?: \(line (?<line>\d+) column (?<column>\d+)\))?$/);if(!r)return;let{index:n,line:i,column:u}=r.groups;return i&&u?{line:Number(i),column:Number(u)}:Zn(t,Number(n),{oneBased:!0})},qh=t=>t.replace(/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,(e,r,n)=>`"${n}"(${Gh(n)})`);function ti(t,e,r){typeof e=="string"&&(r=e,e=void 0);try{return JSON.parse(t,e)}catch(n){throw new ei({jsonParseError:n,fileName:r,input:t})}}var Vu=Xe(Xu(),1);b();import{fileURLToPath as pp}from"node:url";function Ju(t){return t instanceof URL?pp(t):t}var yp=t=>gp.resolve(Ju(t)??".","package.json"),Sp=(t,e)=>{let r=typeof t=="string"?ti(t):t;return e&&(0,Vu.default)(r),r};async function Ku({cwd:t,normalize:e=!0}={}){let r=await mp.readFile(yp(t),"utf8");return Sp(r,e)}async function Yu(t){let e=await ua("package.json",t);if(e)return{packageJson:await Ku({...t,cwd:bp.dirname(e)}),path:e}}import{fileURLToPath as xp}from"node:url";import vp from"node:path";var Dp=xp(import.meta.url),Ep=vp.dirname(Dp),Er;async function Qu(){if(Er)return Er;let t=await Yu({cwd:Ep});if(t)return Er=t.packageJson,Er}async function Zu(){let t=await Qu();return"0.21.7-nightly.20260920.d953e31d2"}b();function jS(t,e){let r=e??xs(t),n=t.forScope(r),i=null,u=null;return{getValue(a){return Ie(t.merged,a)},setValue(a,f){for(let p of a.split("."))if(p==="__proto__"||p==="constructor"||p==="prototype")throw new Error(`Refusing to write settings key with reserved segment: ${a}`);t.setValue(r,a,f)},getModelProviders(){return t.merged.modelProviders??{}},persist(){},backup(){Fs(n.path),i=structuredClone(n.settings),u=structuredClone(n.originalSettings)},restore(){Rs(n.path)||console.error(`[loadedSettingsAdapter] On-disk rollback of ${n.path} failed; in-memory state was restored but the file may be inconsistent. Re-run /auth or inspect the file directly to recover.`),i!==null&&(n.settings=i),u!==null&&(n.originalSettings=u),t.recomputeMerged()},cleanupBackup(){Ls(n.path),i=null,u=null}}}b();var el=t=>{let e=t/1073741824;return t<1048576?`${(t/1024).toFixed(1)} KB`:t<1073741824?`${(t/1048576).toFixed(1)} MB`:`${e.toFixed(2)} GB`},qS=t=>{let r=Date.now()-t,n=Math.floor(r/1e3),i=Math.floor(n/60),u=Math.floor(i/60),a=Math.floor(u/24),f=Math.floor(a/7),p=Math.floor(a/30);return p>0?p===1?"1 month ago":`${p} months ago`:f>0?f===1?"1 week ago":`${f} weeks ago`:a>0?a===1?"1 day ago":`${a} days ago`:u>0?u===1?"1 hour ago":`${u} hours ago`:i>0?i===1?"1 minute ago":`${i} minutes ago`:"just now"},HS=t=>t<1e3?`${t}`:t<1e4?`${(t/1e3).toFixed(1)}k`:`${Math.floor(t/1e3)}k`,WS=(t,e)=>{if(t<=0)return"0s";if(t<1e3)return`${Math.round(t)}ms`;let r=t/1e3;if(r<60){let f=r.toFixed(1);return e?.hideTrailingZeros&&f.endsWith(".0")?`${f.slice(0,-2)}s`:`${f}s`}let n=Math.floor(r/3600),i=Math.floor(r%3600/60),u=Math.floor(r%60),a=[];return n>0&&a.push(`${n}h`),i>0&&a.push(`${i}m`),u>0&&a.push(`${u}s`),a.length===0?n>0?`${n}h`:i>0?`${i}m`:`${u}s`:a.join(" ")};b();var JS="craft/drainMidTurnQueue";b();import at from"node:process";import Cp from"node:os";import{execFile as Ap}from"node:child_process";b();var Cr="40cad081e";var tl=Ce("STATUS"),wp=5e3;function rl(t){return new Promise(e=>{Ap(t,["--version"],{timeout:wp,encoding:"utf-8"},(r,n)=>{if(r){e("unknown");return}e(typeof n=="string"?n.trim():"unknown")})})}async function kp(){return rl("npm")}async function ob(){return rl("git")}async function Tp(t){if(!t.services.config?.getIdeMode())return"";try{return(await Li.getInstance())?.getDetectedIdeDisplayName()??""}catch{return""}}function nl(t=!1){let e=at.env.SANDBOX;return!e||e==="sandbox-exec"?e==="sandbox-exec"?`sandbox-exec (${at.env.SEATBELT_PROFILE||"unknown"})`:"no sandbox":t?e.replace(/^matilda-(?:code-)?/,""):e}async function Ip(t){let e=at.platform,r=at.arch,n=Cp.release(),i=at.version,u=await kp(),a=nl(),f=t.services.config?.getModelDisplayName()||"Unknown",p=await Zu(),m=t.services.config?.getAuthType()||"",h=await Tp(t),g=t.services.config?.getSessionId()||"unknown",d=t.services.config?.getProxy();return{cliVersion:p,osPlatform:e,osArch:r,osRelease:n,nodeVersion:i,npmVersion:u,sandboxEnv:a,modelVersion:f,selectedAuthType:m,ideClient:h,sessionId:g,proxy:d}}async function ab(t){let e=await Ip(t),r=el(at.memoryUsage().rss),n=nl(!0),i=e.selectedAuthType==="openai"||e.selectedAuthType==="anthropic"?t.services.config?.getContentGeneratorConfig():void 0,u=i?.baseUrl,a=i?.apiKeyEnvKey,f=Cr&&!["N/A"].includes(Cr)?Cr:void 0,p=t.services.settings?.merged?.fastModel||void 0,m=Fp(t);return{...e,sandboxEnv:n,memoryUsage:r,baseUrl:u,apiKeyEnvKey:a,gitCommit:f,fastModel:p,lspStatus:m}}function Fp(t){try{let e=t.services.config?.getLspStatusSnapshot?.();return e?(t.services.config?.getDebugMode?.()&&tl.debug("LSP status snapshot for /status:",e),Rp(e)):void 0}catch(e){t.services.config?.getDebugMode?.()&&tl.debug("Unable to read LSP status snapshot for /status:",e);return}}function Rp(t){if(!t.enabled)return"disabled";if(t.initializationError)return`enabled, initialization failed: ${t.initializationError}`;if(t.statusUnavailable)return"enabled, status unavailable";if(t.configuredServers===0)return"enabled, no servers configured";let e=[t.failedServers>0?`${t.failedServers} failed`:"",t.inProgressServers>0?`${t.inProgressServers} starting`:"",t.notStartedServers>0?`${t.notStartedServers} not started`:""].filter(Boolean),r=e.length>0?` (${e.join(", ")})`:"";return`enabled, ${t.readyServers}/${t.configuredServers} ready${r}`}export{Hr as a,vm as b,Dm as c,G as d,N as e,wm as f,Ue as g,km as h,Tm as i,zr as j,Xr as k,ac as l,lc as m,Yr as n,xs as o,Km as p,Nl as q,jr as r,Ur as s,$r as t,Wl as u,pm as v,mm as w,ks as x,fc as y,Zr as z,Ye as A,Ie as B,Cs as C,ig as D,gt as E,$ as F,sg as G,og as H,ag as I,ug as J,lg as K,cg as L,B0 as M,Wn as N,_0 as O,$n as P,qn as Q,vs as R,U0 as S,j0 as T,ah as U,dh as V,G0 as W,hh as X,$0 as Y,ri as Z,ni as _,Ba as $,Ua as aa,qa as ba,za as ca,ui as da,Ka as ea,Qa as fa,Qu as ga,Zu as ha,jS as ia,Lp as ja,Lr as ka,ji as la,Up as ma,Mr as na,qp as oa,Hp as pa,qi as qa,Hi as ra,Wi as sa,zi as ta,Xi as ua,Ji as va,Vi as wa,Ki as xa,Yi as ya,Qi as za,Zi as Aa,es as Ba,ts as Ca,rs as Da,ns as Ea,is as Fa,ss as Ga,os as Ha,as as Ia,us as Ja,ls as Ka,cs as La,ds as Ma,_e as Na,Jp as Oa,Nr as Pa,Or as Qa,Br as Ra,Vp as Sa,Kp as Ta,Tl as Ua,Yp as Va,Qp as Wa,Zp as Xa,em as Ya,tm as Za,rm as _a,nm as $a,Il as ab,im as bb,sm as cb,JS as db,el as eb,qS as fb,HS as gb,WS as hb,kp as ib,ob as jb,ab as kb};
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2025 Matilda Team
|