UNPKG

@sysce/stomp

Version:
2 lines 972 kB
/*! For license information please see client.js.LICENSE.txt */ (()=>{var e={3913:(e,t,n)=>{!function(){"use strict";var e,r,a,i,s,o,l,u,c,p,h,d,m,f,g,b,y,E,k,A,T,v,C,_;function D(e){return Y.Statement.hasOwnProperty(e.type)}s=n(140),o=n(649),e=s.Syntax,a={"??":(r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,NullishCoalescing:3,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Exponentiation:13,Await:14,Unary:14,Postfix:15,OptionalChaining:16,Call:17,New:18,TaggedTemplate:19,Member:20,Primary:21}).NullishCoalescing,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var w=32,S=33;function x(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function I(e){var t=e.length;return t&&o.code.isLineTerminator(e.charCodeAt(t-1))}function P(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function N(e,t){var n,r;function a(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(a(r=t[n])?a(e[n])?N(e[n],r):e[n]=N({},r):e[n]=r);return e}function L(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function O(e,t){var n;return 8===e?"\\b":12===e?"\\f":9===e?"\\t":(n=e.toString(16).toUpperCase(),c||e>255?"\\u"+"0000".slice(n.length)+n:0!==e||o.code.isDecimalDigit(t)?11===e?"\\x0B":"\\x"+"00".slice(n.length)+n:"\\0")}function F(e){if(92===e)return"\\\\";if(10===e)return"\\n";if(13===e)return"\\r";if(8232===e)return"\\u2028";if(8233===e)return"\\u2029";throw new Error("Incorrectly classified character")}function R(e){var t,n,r,a="";for(t=0,n=e.length;t<n;++t)r=e[t],a+=Array.isArray(r)?R(r):r;return a}function B(e,t){if(!v)return Array.isArray(e)?R(e):e;if(null==t){if(e instanceof i)return e;t={}}return null==t.loc?new i(null,null,v,e,t.name||null):new i(t.loc.start.line,t.loc.start.column,!0===v?t.loc.source||null:v,e,t.name||null)}function M(){return g||" "}function U(e,t){var n,r,a,i;return 0===(n=B(e).toString()).length?[t]:0===(r=B(t).toString()).length?[e]:(a=n.charCodeAt(n.length-1),i=r.charCodeAt(0),(43===a||45===a)&&a===i||o.code.isIdentifierPartES5(a)&&o.code.isIdentifierPartES5(i)||47===a&&105===i?[e,M(),t]:o.code.isWhiteSpace(a)||o.code.isLineTerminator(a)||o.code.isWhiteSpace(i)||o.code.isLineTerminator(i)?[e,t]:[e,g,t])}function H(e){return[l,e]}function j(e){var t;t=l,e(l+=u),l=t}function z(e,t){if("Line"===e.type){if(I(e.value))return"//"+e.value;var n="//"+e.value;return _||(n+="\n"),n}return A.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?function(e,t){var n,r,a,i,s,u,c,p;for(n=e.split(/\r\n|[\r\n]/),u=Number.MAX_VALUE,r=1,a=n.length;r<a;++r){for(i=n[r],s=0;s<i.length&&o.code.isWhiteSpace(i.charCodeAt(s));)++s;u>s&&(u=s)}for(void 0!==t?(c=l,"*"===n[1][u]&&(t+=" "),l=t):(1&u&&--u,c=l),r=1,a=n.length;r<a;++r)p=B(H(n[r].slice(u))),n[r]=v?p.join(""):p;return l=c,n.join("\n")}("/*"+e.value+"*/",t):"/*"+e.value+"*/"}function q(t,n){var r,a,i,s,c,p,h,d,m,f,g,b;if(t.leadingComments&&t.leadingComments.length>0){if(s=n,_){for(n=[],d=(i=t.leadingComments[0]).extendedRange,m=i.range,(b=((g=C.substring(d[0],m[0])).match(/\n/g)||[]).length)>0?(n.push(x("\n",b)),n.push(H(z(i)))):(n.push(g),n.push(z(i))),f=m,r=1,a=t.leadingComments.length;r<a;r++)m=(i=t.leadingComments[r]).range,b=(C.substring(f[1],m[0]).match(/\n/g)||[]).length,n.push(x("\n",b)),n.push(H(z(i))),f=m;b=(C.substring(m[1],d[1]).match(/\n/g)||[]).length,n.push(x("\n",b))}else for(i=t.leadingComments[0],n=[],E&&t.type===e.Program&&0===t.body.length&&n.push("\n"),n.push(z(i)),I(B(n).toString())||n.push("\n"),r=1,a=t.leadingComments.length;r<a;++r)I(B(h=[z(i=t.leadingComments[r])]).toString())||h.push("\n"),n.push(H(h));n.push(H(s))}if(t.trailingComments)if(_)d=(i=t.trailingComments[0]).extendedRange,m=i.range,(b=((g=C.substring(d[0],m[0])).match(/\n/g)||[]).length)>0?(n.push(x("\n",b)),n.push(H(z(i)))):(n.push(g),n.push(z(i)));else for(c=!I(B(n).toString()),p=x(" ",function(e){var t;for(t=e.length-1;t>=0&&!o.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}(B([l,n,u]).toString())),r=0,a=t.trailingComments.length;r<a;++r)i=t.trailingComments[r],c?(n=0===r?[n,u]:[n,p]).push(z(i,p)):n=[n,H(z(i))],r===a-1||I(B(n).toString())||(n=[n,"\n"]);return n}function G(e,t,n){var r,a=0;for(r=e;r<t;r++)"\n"===C[r]&&a++;for(r=1;r<a;r++)n.push(f)}function V(e,t,n){return t<n?["(",e,")"]:e}function W(e){var t,n,r;for(t=1,n=(r=e.split(/\r\n|\n/)).length;t<n;t++)r[t]=f+l+r[t];return r}function Y(){}function Q(t){var n=t.name;return t.type===e.PrivateIdentifier&&(n="#"+n),B(n,t)}function X(e,t){return e.async?"async"+(t?M():g):""}function K(e){return e.generator&&!A.moz.starlessGenerator?"*"+g:""}function $(e){var t=e.value,n="";return t.async&&(n+=X(t,!e.computed)),t.generator&&(n+=K(t)?"*":""),n}Y.prototype.maybeBlock=function(t,n){var r,a,i=this;return a=!A.comment||!t.leadingComments,t.type===e.BlockStatement&&a?[g,this.generateStatement(t,n)]:t.type===e.EmptyStatement&&a?";":(j((function(){r=[f,H(i.generateStatement(t,n))]})),r)},Y.prototype.maybeBlockSuffix=function(t,n){var r=I(B(n).toString());return t.type!==e.BlockStatement||A.comment&&t.leadingComments||r?r?[n,l]:[n,f,l]:[n,g]},Y.prototype.generatePattern=function(t,n,r){return t.type===e.Identifier?Q(t):this.generateExpression(t,n,r)},Y.prototype.generateFunctionParams=function(t){var n,a,i,s;if(s=!1,t.type!==e.ArrowFunctionExpression||t.rest||t.defaults&&0!==t.defaults.length||1!==t.params.length||t.params[0].type!==e.Identifier){for((i=t.type===e.ArrowFunctionExpression?[X(t,!1)]:[]).push("("),t.defaults&&(s=!0),n=0,a=t.params.length;n<a;++n)s&&t.defaults[n]?i.push(this.generateAssignment(t.params[n],t.defaults[n],"=",r.Assignment,7)):i.push(this.generatePattern(t.params[n],r.Assignment,7)),n+1<a&&i.push(","+g);t.rest&&(t.params.length&&i.push(","+g),i.push("..."),i.push(Q(t.rest))),i.push(")")}else i=[X(t,!0),Q(t.params[0])];return i},Y.prototype.generateFunctionBody=function(t){var n,a;return n=this.generateFunctionParams(t),t.type===e.ArrowFunctionExpression&&(n.push(g),n.push("=>")),t.expression?(n.push(g),"{"===(a=this.generateExpression(t.body,r.Assignment,7)).toString().charAt(0)&&(a=["(",a,")"]),n.push(a)):n.push(this.maybeBlock(t.body,9)),n},Y.prototype.generateIterationForStatement=function(t,n,a){var i=["for"+(n.await?M()+"await":"")+g+"("],s=this;return j((function(){n.left.type===e.VariableDeclaration?j((function(){i.push(n.left.kind+M()),i.push(s.generateStatement(n.left.declarations[0],0))})):i.push(s.generateExpression(n.left,r.Call,7)),i=U(i,t),i=[U(i,s.generateExpression(n.right,r.Assignment,7)),")"]})),i.push(this.maybeBlock(n.body,a)),i},Y.prototype.generatePropertyKey=function(e,t){var n=[];return t&&n.push("["),n.push(this.generateExpression(e,r.Assignment,7)),t&&n.push("]"),n},Y.prototype.generateAssignment=function(e,t,n,a,i){return r.Assignment<a&&(i|=1),V([this.generateExpression(e,r.Call,i),g+n+g,this.generateExpression(t,r.Assignment,i)],r.Assignment,a)},Y.prototype.semicolon=function(e){return!y&&e&w?"":";"},Y.Statement={BlockStatement:function(e,t){var n,r,a=["{",f],i=this;return j((function(){var s,o,l,u;for(0===e.body.length&&_&&(n=e.range)[1]-n[0]>2&&("\n"===(r=C.substring(n[0]+1,n[1]-1))[0]&&(a=["{"]),a.push(r)),u=1,8&t&&(u|=16),s=0,o=e.body.length;s<o;++s)_&&(0===s&&(e.body[0].leadingComments&&(n=e.body[0].leadingComments[0].extendedRange,"\n"===(r=C.substring(n[0],n[1]))[0]&&(a=["{"])),e.body[0].leadingComments||G(e.range[0],e.body[0].range[0],a)),s>0&&(e.body[s-1].trailingComments||e.body[s].leadingComments||G(e.body[s-1].range[1],e.body[s].range[0],a))),s===o-1&&(u|=w),l=e.body[s].leadingComments&&_?i.generateStatement(e.body[s],u):H(i.generateStatement(e.body[s],u)),a.push(l),I(B(l).toString())||_&&s<o-1&&e.body[s+1].leadingComments||a.push(f),_&&s===o-1&&(e.body[s].trailingComments||G(e.body[s].range[1],e.range[1],a))})),a.push(H("}")),a},BreakStatement:function(e,t){return e.label?"break "+e.label.name+this.semicolon(t):"break"+this.semicolon(t)},ContinueStatement:function(e,t){return e.label?"continue "+e.label.name+this.semicolon(t):"continue"+this.semicolon(t)},ClassBody:function(e,t){var n=["{",f],a=this;return j((function(t){var i,s;for(i=0,s=e.body.length;i<s;++i)n.push(t),n.push(a.generateExpression(e.body[i],r.Sequence,7)),i+1<s&&n.push(f)})),I(B(n).toString())||n.push(f),n.push(l),n.push("}"),n},ClassDeclaration:function(e,t){var n,a;return n=["class"],e.id&&(n=U(n,this.generateExpression(e.id,r.Sequence,7))),e.superClass&&(a=U("extends",this.generateExpression(e.superClass,r.Unary,7)),n=U(n,a)),n.push(g),n.push(this.generateStatement(e.body,S)),n},DirectiveStatement:function(e,t){return A.raw&&e.raw?e.raw+this.semicolon(t):function(e){var t,n,r,a;for(a="double"===d?'"':"'",t=0,n=e.length;t<n;++t){if(39===(r=e.charCodeAt(t))){a='"';break}if(34===r){a="'";break}92===r&&++t}return a+e+a}(e.directive)+this.semicolon(t)},DoWhileStatement:function(e,t){var n=U("do",this.maybeBlock(e.body,1));return U(n=this.maybeBlockSuffix(e.body,n),["while"+g+"(",this.generateExpression(e.test,r.Sequence,7),")"+this.semicolon(t)])},CatchClause:function(e,t){var n,a=this;return j((function(){var t;e.param?(n=["catch"+g+"(",a.generateExpression(e.param,r.Sequence,7),")"],e.guard&&(t=a.generateExpression(e.guard,r.Sequence,7),n.splice(2,0," if ",t))):n=["catch"]})),n.push(this.maybeBlock(e.body,1)),n},DebuggerStatement:function(e,t){return"debugger"+this.semicolon(t)},EmptyStatement:function(e,t){return";"},ExportDefaultDeclaration:function(e,t){var n,a=["export"];return n=t&w?S:1,a=U(a,"default"),D(e.declaration)?U(a,this.generateStatement(e.declaration,n)):U(a,this.generateExpression(e.declaration,r.Assignment,7)+this.semicolon(t))},ExportNamedDeclaration:function(t,n){var a,i=["export"],s=this;return a=n&w?S:1,t.declaration?U(i,this.generateStatement(t.declaration,a)):(t.specifiers&&(0===t.specifiers.length?i=U(i,"{"+g+"}"):t.specifiers[0].type===e.ExportBatchSpecifier?i=U(i,this.generateExpression(t.specifiers[0],r.Sequence,7)):(i=U(i,"{"),j((function(e){var n,a;for(i.push(f),n=0,a=t.specifiers.length;n<a;++n)i.push(e),i.push(s.generateExpression(t.specifiers[n],r.Sequence,7)),n+1<a&&i.push(","+f)})),I(B(i).toString())||i.push(f),i.push(l+"}")),t.source?i=U(i,["from"+g,this.generateExpression(t.source,r.Sequence,7),this.semicolon(n)]):i.push(this.semicolon(n))),i)},ExportAllDeclaration:function(e,t){var n=["export"+g,"*"+g];return e.exported&&n.push("as "+e.exported.name+" "),U(n,["from"+g,this.generateExpression(e.source,r.Sequence,7),this.semicolon(t)])},ExpressionStatement:function(t,n){var a,i;return 123===(i=B(a=[this.generateExpression(t.expression,r.Sequence,7)]).toString()).charCodeAt(0)||function(e){var t;return"class"===e.slice(0,5)&&(123===(t=e.charCodeAt(5))||o.code.isWhiteSpace(t)||o.code.isLineTerminator(t))}(i)||function(e){var t;return"function"===e.slice(0,8)&&(40===(t=e.charCodeAt(8))||o.code.isWhiteSpace(t)||42===t||o.code.isLineTerminator(t))}(i)||function(e){var t,n,r;if("async"!==e.slice(0,5))return!1;if(!o.code.isWhiteSpace(e.charCodeAt(5)))return!1;for(n=6,r=e.length;n<r&&o.code.isWhiteSpace(e.charCodeAt(n));++n);return n!==r&&"function"===e.slice(n,n+8)&&(40===(t=e.charCodeAt(n+8))||o.code.isWhiteSpace(t)||42===t||o.code.isLineTerminator(t))}(i)||k&&16&n&&t.expression.type===e.Literal&&"string"==typeof t.expression.value?a=["(",a,")"+this.semicolon(n)]:a.push(this.semicolon(n)),a},ImportDeclaration:function(t,n){var a,i,s=this;return 0===t.specifiers.length?["import",g,this.generateExpression(t.source,r.Sequence,7),this.semicolon(n)]:(a=["import"],i=0,t.specifiers[i].type===e.ImportDefaultSpecifier&&(a=U(a,[this.generateExpression(t.specifiers[i],r.Sequence,7)]),++i),t.specifiers[i]&&(0!==i&&a.push(","),t.specifiers[i].type===e.ImportNamespaceSpecifier?a=U(a,[g,this.generateExpression(t.specifiers[i],r.Sequence,7)]):(a.push(g+"{"),t.specifiers.length-i==1?(a.push(g),a.push(this.generateExpression(t.specifiers[i],r.Sequence,7)),a.push(g+"}"+g)):(j((function(e){var n,o;for(a.push(f),n=i,o=t.specifiers.length;n<o;++n)a.push(e),a.push(s.generateExpression(t.specifiers[n],r.Sequence,7)),n+1<o&&a.push(","+f)})),I(B(a).toString())||a.push(f),a.push(l+"}"+g)))),a=U(a,["from"+g,this.generateExpression(t.source,r.Sequence,7),this.semicolon(n)]))},VariableDeclarator:function(e,t){var n=1&t?7:6;return e.init?[this.generateExpression(e.id,r.Assignment,n),g,"=",g,this.generateExpression(e.init,r.Assignment,n)]:this.generatePattern(e.id,r.Assignment,n)},VariableDeclaration:function(e,t){var n,r,a,i,s,o=this;function l(){for(i=e.declarations[0],A.comment&&i.leadingComments?(n.push("\n"),n.push(H(o.generateStatement(i,s)))):(n.push(M()),n.push(o.generateStatement(i,s))),r=1,a=e.declarations.length;r<a;++r)i=e.declarations[r],A.comment&&i.leadingComments?(n.push(","+f),n.push(H(o.generateStatement(i,s)))):(n.push(","+g),n.push(o.generateStatement(i,s)))}return n=[e.kind],s=1&t?1:0,e.declarations.length>1?j(l):l(),n.push(this.semicolon(t)),n},StaticBlock:function(e,t){return["static"+g,this.BlockStatement(e,t)]},ThrowStatement:function(e,t){return[U("throw",this.generateExpression(e.argument,r.Sequence,7)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,a,i;if(n=["try",this.maybeBlock(e.block,1)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,a=e.handlers.length;r<a;++r)n=U(n,this.generateStatement(e.handlers[r],1)),(e.finalizer||r+1!==a)&&(n=this.maybeBlockSuffix(e.handlers[r].body,n));else{for(r=0,a=(i=e.guardedHandlers||[]).length;r<a;++r)n=U(n,this.generateStatement(i[r],1)),(e.finalizer||r+1!==a)&&(n=this.maybeBlockSuffix(i[r].body,n));if(e.handler)if(Array.isArray(e.handler))for(r=0,a=e.handler.length;r<a;++r)n=U(n,this.generateStatement(e.handler[r],1)),(e.finalizer||r+1!==a)&&(n=this.maybeBlockSuffix(e.handler[r].body,n));else n=U(n,this.generateStatement(e.handler,1)),e.finalizer&&(n=this.maybeBlockSuffix(e.handler.body,n))}return e.finalizer&&(n=U(n,["finally",this.maybeBlock(e.finalizer,1)])),n},SwitchStatement:function(e,t){var n,a,i,s,o,l=this;if(j((function(){n=["switch"+g+"(",l.generateExpression(e.discriminant,r.Sequence,7),")"+g+"{"+f]})),e.cases)for(o=1,i=0,s=e.cases.length;i<s;++i)i===s-1&&(o|=w),a=H(this.generateStatement(e.cases[i],o)),n.push(a),I(B(a).toString())||n.push(f);return n.push(H("}")),n},SwitchCase:function(t,n){var a,i,s,o,l,u=this;return j((function(){for(a=t.test?[U("case",u.generateExpression(t.test,r.Sequence,7)),":"]:["default:"],s=0,(o=t.consequent.length)&&t.consequent[0].type===e.BlockStatement&&(i=u.maybeBlock(t.consequent[0],1),a.push(i),s=1),s===o||I(B(a).toString())||a.push(f),l=1;s<o;++s)s===o-1&&n&w&&(l|=w),i=H(u.generateStatement(t.consequent[s],l)),a.push(i),s+1===o||I(B(i).toString())||a.push(f)})),a},IfStatement:function(t,n){var a,i,s=this;return j((function(){a=["if"+g+"(",s.generateExpression(t.test,r.Sequence,7),")"]})),i=1,n&w&&(i|=w),t.alternate?(a.push(this.maybeBlock(t.consequent,1)),a=this.maybeBlockSuffix(t.consequent,a),a=t.alternate.type===e.IfStatement?U(a,["else ",this.generateStatement(t.alternate,i)]):U(a,U("else",this.maybeBlock(t.alternate,i)))):a.push(this.maybeBlock(t.consequent,i)),a},ForStatement:function(t,n){var a,i=this;return j((function(){a=["for"+g+"("],t.init?t.init.type===e.VariableDeclaration?a.push(i.generateStatement(t.init,0)):(a.push(i.generateExpression(t.init,r.Sequence,6)),a.push(";")):a.push(";"),t.test?(a.push(g),a.push(i.generateExpression(t.test,r.Sequence,7)),a.push(";")):a.push(";"),t.update?(a.push(g),a.push(i.generateExpression(t.update,r.Sequence,7)),a.push(")")):a.push(")")})),a.push(this.maybeBlock(t.body,n&w?S:1)),a},ForInStatement:function(e,t){return this.generateIterationForStatement("in",e,t&w?S:1)},ForOfStatement:function(e,t){return this.generateIterationForStatement("of",e,t&w?S:1)},LabeledStatement:function(e,t){return[e.label.name+":",this.maybeBlock(e.body,t&w?S:1)]},Program:function(e,t){var n,r,a,i,s;for(i=e.body.length,n=[E&&i>0?"\n":""],s=17,a=0;a<i;++a)E||a!==i-1||(s|=w),_&&(0===a&&(e.body[0].leadingComments||G(e.range[0],e.body[a].range[0],n)),a>0&&(e.body[a-1].trailingComments||e.body[a].leadingComments||G(e.body[a-1].range[1],e.body[a].range[0],n))),r=H(this.generateStatement(e.body[a],s)),n.push(r),a+1<i&&!I(B(r).toString())&&(_&&e.body[a+1].leadingComments||n.push(f)),_&&a===i-1&&(e.body[a].trailingComments||G(e.body[a].range[1],e.range[1],n));return n},FunctionDeclaration:function(e,t){return[X(e,!0),"function",K(e)||M(),e.id?Q(e.id):"",this.generateFunctionBody(e)]},ReturnStatement:function(e,t){return e.argument?[U("return",this.generateExpression(e.argument,r.Sequence,7)),this.semicolon(t)]:["return"+this.semicolon(t)]},WhileStatement:function(e,t){var n,a=this;return j((function(){n=["while"+g+"(",a.generateExpression(e.test,r.Sequence,7),")"]})),n.push(this.maybeBlock(e.body,t&w?S:1)),n},WithStatement:function(e,t){var n,a=this;return j((function(){n=["with"+g+"(",a.generateExpression(e.object,r.Sequence,7),")"]})),n.push(this.maybeBlock(e.body,t&w?S:1)),n}},P(Y.prototype,Y.Statement),Y.Expression={SequenceExpression:function(e,t,n){var a,i,s;for(r.Sequence<t&&(n|=1),a=[],i=0,s=e.expressions.length;i<s;++i)a.push(this.generateExpression(e.expressions[i],r.Assignment,n)),i+1<s&&a.push(","+g);return V(a,r.Sequence,t)},AssignmentExpression:function(e,t,n){return this.generateAssignment(e.left,e.right,e.operator,t,n)},ArrowFunctionExpression:function(e,t,n){return V(this.generateFunctionBody(e),r.ArrowFunction,t)},ConditionalExpression:function(e,t,n){return r.Conditional<t&&(n|=1),V([this.generateExpression(e.test,r.LogicalOR,n),g+"?"+g,this.generateExpression(e.consequent,r.Assignment,n),g+":"+g,this.generateExpression(e.alternate,r.Assignment,n)],r.Conditional,t)},LogicalExpression:function(e,t,n){return this.BinaryExpression(e,t,n)},BinaryExpression:function(t,n,i){var s,l,u,c,p,h;switch(l=c=a[t.operator],u=c+1,t.operator){case"**":l=r.Postfix,u=c;break;case"??":t.left.type!==e.LogicalExpression||"||"!==t.left.operator&&"&&"!==t.left.operator||(l=a[t.left.operator]+1),t.right.type===e.LogicalExpression&&"&&"===t.right.operator&&(u=a[t.right.operator]+1);break;case"||":t.left.type===e.LogicalExpression&&"??"===t.left.operator&&(l=a[t.left.operator]+1)}return c<n&&(i|=1),s=47===(h=(p=this.generateExpression(t.left,l,i)).toString()).charCodeAt(h.length-1)&&o.code.isIdentifierPartES5(t.operator.charCodeAt(0))?[p,M(),t.operator]:U(p,t.operator),p=this.generateExpression(t.right,u,i),"/"===t.operator&&"/"===p.toString().charAt(0)||"<"===t.operator.slice(-1)&&"!--"===p.toString().slice(0,3)?(s.push(M()),s.push(p)):s=U(s,p),"in"!==t.operator||1&i?V(s,c,n):["(",s,")"]},CallExpression:function(e,t,n){var a,i,s;for(a=[this.generateExpression(e.callee,r.Call,3)],e.optional&&a.push("?."),a.push("("),i=0,s=e.arguments.length;i<s;++i)a.push(this.generateExpression(e.arguments[i],r.Assignment,7)),i+1<s&&a.push(","+g);return a.push(")"),2&n?null===e.callee.id&&0===e.callee.params.length?V(a,t,r.Call):V(a,r.Call,t):["(",a,")"]},ChainExpression:function(e,t,n){return r.OptionalChaining<t&&(n|=2),V(this.generateExpression(e.expression,r.OptionalChaining,n),r.OptionalChaining,t)},NewExpression:function(e,t,n){var a,i,s,o,l;if(i=e.arguments.length,l=4&n&&!b&&0===i?5:1,a=U("new",this.generateExpression(e.callee,r.New,l)),!(4&n)||b||i>0){for(a.push("("),s=0,o=i;s<o;++s)a.push(this.generateExpression(e.arguments[s],r.Assignment,7)),s+1<o&&a.push(","+g);a.push(")")}return V(a,r.New,t)},MemberExpression:function(t,n,a){var i,s;return i=[this.generateExpression(t.object,r.Call,2&a?3:1)],t.computed?(t.optional&&i.push("?."),i.push("["),i.push(this.generateExpression(t.property,r.Sequence,2&a?7:5)),i.push("]")):(t.optional||t.object.type!==e.Literal||"number"!=typeof t.object.value||(s=B(i).toString()).indexOf(".")<0&&!/[eExX]/.test(s)&&o.code.isDecimalDigit(s.charCodeAt(s.length-1))&&!(s.length>=2&&48===s.charCodeAt(0))&&i.push(" "),i.push(t.optional?"?.":"."),i.push(Q(t.property))),V(i,r.Member,n)},MetaProperty:function(e,t,n){var a;return(a=[]).push("string"==typeof e.meta?e.meta:Q(e.meta)),a.push("."),a.push("string"==typeof e.property?e.property:Q(e.property)),V(a,r.Member,t)},UnaryExpression:function(e,t,n){var a,i,s,l,u;return i=this.generateExpression(e.argument,r.Unary,7),""===g?a=U(e.operator,i):(a=[e.operator],e.operator.length>2?a=U(a,i):(u=(l=B(a).toString()).charCodeAt(l.length-1),s=i.toString().charCodeAt(0),(43===u||45===u)&&u===s||o.code.isIdentifierPartES5(u)&&o.code.isIdentifierPartES5(s)?(a.push(M()),a.push(i)):a.push(i))),V(a,r.Unary,t)},YieldExpression:function(e,t,n){var a;return a=e.delegate?"yield*":"yield",e.argument&&(a=U(a,this.generateExpression(e.argument,r.Yield,7))),V(a,r.Yield,t)},AwaitExpression:function(e,t,n){return V(U(e.all?"await*":"await",this.generateExpression(e.argument,r.Await,7)),r.Await,t)},UpdateExpression:function(e,t,n){return e.prefix?V([e.operator,this.generateExpression(e.argument,r.Unary,7)],r.Unary,t):V([this.generateExpression(e.argument,r.Postfix,7),e.operator],r.Postfix,t)},FunctionExpression:function(e,t,n){var r=[X(e,!0),"function"];return e.id?(r.push(K(e)||M()),r.push(Q(e.id))):r.push(K(e)||g),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,n,a){var i,s,o=this;return e.elements.length?(s=!a&&e.elements.length>1,i=["[",s?f:""],j((function(t){var n,a;for(n=0,a=e.elements.length;n<a;++n)e.elements[n]?(i.push(s?t:""),i.push(o.generateExpression(e.elements[n],r.Assignment,7))):(s&&i.push(t),n+1===a&&i.push(",")),n+1<a&&i.push(","+(s?f:g))})),s&&!I(B(i).toString())&&i.push(f),i.push(s?l:""),i.push("]"),i):"[]"},RestElement:function(e,t,n){return"..."+this.generatePattern(e.argument)},ClassExpression:function(e,t,n){var a,i;return a=["class"],e.id&&(a=U(a,this.generateExpression(e.id,r.Sequence,7))),e.superClass&&(i=U("extends",this.generateExpression(e.superClass,r.Unary,7)),a=U(a,i)),a.push(g),a.push(this.generateStatement(e.body,S)),a},MethodDefinition:function(e,t,n){var r,a;return r=e.static?["static"+g]:[],a="get"===e.kind||"set"===e.kind?[U(e.kind,this.generatePropertyKey(e.key,e.computed)),this.generateFunctionBody(e.value)]:[$(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)],U(r,a)},PrivateIdentifier:function(e,t,n){return Q(e)},Property:function(e,t,n){return"get"===e.kind||"set"===e.kind?[e.kind,M(),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:e.shorthand?"AssignmentPattern"===e.value.type?this.AssignmentPattern(e.value,r.Sequence,7):this.generatePropertyKey(e.key,e.computed):e.method?[$(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:[this.generatePropertyKey(e.key,e.computed),":"+g,this.generateExpression(e.value,r.Assignment,7)]},PropertyDefinition:function(e,t,n){var a;return(a=e.static?["static "]:[]).push(this.generatePropertyKey(e.key,e.computed)),e.value&&(a.push(g+"="+g),a.push(this.generateExpression(e.value,r.Assignment,7))),a.push(this.semicolon(n)),a},ObjectExpression:function(e,t,n){var a,i,s,o,u=this;return e.properties.length?(a=e.properties.length>1,j((function(){s=u.generateExpression(e.properties[0],r.Sequence,7)})),a||(o=B(s).toString(),/[\r\n]/g.test(o))?(j((function(t){var n,o;if(i=["{",f,t,s],a)for(i.push(","+f),n=1,o=e.properties.length;n<o;++n)i.push(t),i.push(u.generateExpression(e.properties[n],r.Sequence,7)),n+1<o&&i.push(","+f)})),I(B(i).toString())||i.push(f),i.push(l),i.push("}"),i):["{",g,s,g,"}"]):"{}"},AssignmentPattern:function(e,t,n){return this.generateAssignment(e.left,e.right,"=",t,n)},ObjectPattern:function(t,n,a){var i,s,o,u,c,p=this;if(!t.properties.length)return"{}";if(u=!1,1===t.properties.length)(c=t.properties[0]).type===e.Property&&c.value.type!==e.Identifier&&(u=!0);else for(s=0,o=t.properties.length;s<o;++s)if((c=t.properties[s]).type===e.Property&&!c.shorthand){u=!0;break}return i=["{",u?f:""],j((function(e){var n,a;for(n=0,a=t.properties.length;n<a;++n)i.push(u?e:""),i.push(p.generateExpression(t.properties[n],r.Sequence,7)),n+1<a&&i.push(","+(u?f:g))})),u&&!I(B(i).toString())&&i.push(f),i.push(u?l:""),i.push("}"),i},ThisExpression:function(e,t,n){return"this"},Super:function(e,t,n){return"super"},Identifier:function(e,t,n){return Q(e)},ImportDefaultSpecifier:function(e,t,n){return Q(e.id||e.local)},ImportNamespaceSpecifier:function(e,t,n){var r=["*"],a=e.id||e.local;return a&&r.push(g+"as"+M()+Q(a)),r},ImportSpecifier:function(e,t,n){var r=e.imported,a=[r.name],i=e.local;return i&&i.name!==r.name&&a.push(M()+"as"+M()+Q(i)),a},ExportSpecifier:function(e,t,n){var r=e.local,a=[r.name],i=e.exported;return i&&i.name!==r.name&&a.push(M()+"as"+M()+Q(i)),a},Literal:function(t,n,r){var a;if(t.hasOwnProperty("raw")&&T&&A.raw)try{if((a=T(t.raw).body[0].expression).type===e.Literal&&a.value===t.value)return t.raw}catch(e){}return t.regex?"/"+t.regex.pattern+"/"+t.regex.flags:"string"==typeof t.bigint&&t.raw?t.raw:null===t.value?"null":"string"==typeof t.value?function(e){var t,n,r,a,i,s="",l=0,u=0;for(t=0,n=e.length;t<n;++t){if(39===(r=e.charCodeAt(t)))++l;else if(34===r)++u;else if(47===r&&c)s+="\\";else{if(o.code.isLineTerminator(r)||92===r){s+=F(r);continue}if(!o.code.isIdentifierPartES5(r)&&(c&&r<32||!c&&!m&&(r<32||r>126))){s+=O(r,e.charCodeAt(t+1));continue}}s+=String.fromCharCode(r)}if(i=(a=!("double"===d||"auto"===d&&u<l))?"'":'"',!(a?l:u))return i+s+i;for(e=s,s=i,t=0,n=e.length;t<n;++t)(39===(r=e.charCodeAt(t))&&a||34===r&&!a)&&(s+="\\"),s+=String.fromCharCode(r);return s+i}(t.value):"number"==typeof t.value?t.raw&&-1!==t.raw.indexOf("_")?t.raw:function(e){var t,n,r,a,i;if(e!=e)throw new Error("Numeric literal whose value is NaN");if(e<0||0===e&&1/e<0)throw new Error("Numeric literal whose value is negative");if(e===1/0)return c?"null":p?"1e400":"1e+400";if(t=""+e,!p||t.length<3)return t;for(n=t.indexOf("."),c||48!==t.charCodeAt(0)||1!==n||(n=0,t=t.slice(1)),r=t,t=t.replace("e+","e"),a=0,(i=r.indexOf("e"))>0&&(a=+r.slice(i+1),r=r.slice(0,i)),n>=0&&(a-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),i=0;48===r.charCodeAt(r.length+i-1);)--i;return 0!==i&&(a-=i,r=r.slice(0,i)),0!==a&&(r+="e"+a),(r.length<t.length||h&&e>1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length<t.length)&&+r===e&&(t=r),t}(t.value):"boolean"==typeof t.value?t.value?"true":"false":function(e){var t,n,r,a,i,s,o,l;if(n=e.toString(),e.source){if(!(t=n.match(/\/([^/]*)$/)))return n;for(r=t[1],n="",o=!1,l=!1,a=0,i=e.source.length;a<i;++a)s=e.source.charCodeAt(a),l?(n+=L(s,l),l=!1):(o?93===s&&(o=!1):47===s?n+="\\":91===s&&(o=!0),n+=L(s,l),l=92===s);return"/"+n+"/"+r}return n}(t.value)},GeneratorExpression:function(e,t,n){return this.ComprehensionExpression(e,t,n)},ComprehensionExpression:function(t,n,a){var i,s,o,l,u=this;return i=t.type===e.GeneratorExpression?["("]:["["],A.moz.comprehensionExpressionStartsWithAssignment&&(l=this.generateExpression(t.body,r.Assignment,7),i.push(l)),t.blocks&&j((function(){for(s=0,o=t.blocks.length;s<o;++s)l=u.generateExpression(t.blocks[s],r.Sequence,7),s>0||A.moz.comprehensionExpressionStartsWithAssignment?i=U(i,l):i.push(l)})),t.filter&&(i=U(i,"if"+g),l=this.generateExpression(t.filter,r.Sequence,7),i=U(i,["(",l,")"])),A.moz.comprehensionExpressionStartsWithAssignment||(l=this.generateExpression(t.body,r.Assignment,7),i=U(i,l)),i.push(t.type===e.GeneratorExpression?")":"]"),i},ComprehensionBlock:function(t,n,a){var i;return i=U(i=t.left.type===e.VariableDeclaration?[t.left.kind,M(),this.generateStatement(t.left.declarations[0],0)]:this.generateExpression(t.left,r.Call,7),t.of?"of":"in"),i=U(i,this.generateExpression(t.right,r.Sequence,7)),["for"+g+"(",i,")"]},SpreadElement:function(e,t,n){return["...",this.generateExpression(e.argument,r.Assignment,7)]},TaggedTemplateExpression:function(e,t,n){var a=3;return 2&n||(a=1),V([this.generateExpression(e.tag,r.Call,a),this.generateExpression(e.quasi,r.Primary,4)],r.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,n){var a,i,s;for(a=["`"],i=0,s=e.quasis.length;i<s;++i)a.push(this.generateExpression(e.quasis[i],r.Primary,7)),i+1<s&&(a.push("${"+g),a.push(this.generateExpression(e.expressions[i],r.Sequence,7)),a.push(g+"}"));return a.push("`"),a},ModuleSpecifier:function(e,t,n){return this.Literal(e,t,n)},ImportExpression:function(e,t,n){return V(["import(",this.generateExpression(e.source,r.Assignment,7),")"],r.Call,t)}},P(Y.prototype,Y.Expression),Y.prototype.generateExpression=function(t,n,a){var i,s;return s=t.type||e.Property,A.verbatim&&t.hasOwnProperty(A.verbatim)?function(e,t){var n;return B("string"==typeof(n=e[A.verbatim])?V(W(n),r.Sequence,t):V(W(n.content),null!=n.precedence?n.precedence:r.Sequence,t),e)}(t,n):(i=this[s](t,n,a),A.comment&&(i=q(t,i)),B(i,t))},Y.prototype.generateStatement=function(t,n){var r,a;return r=this[t.type](t,n),A.comment&&(r=q(t,r)),a=B(r).toString(),t.type!==e.Program||E||""!==f||"\n"!==a.charAt(a.length-1)||(r=v?B(r).replaceRight(/\s+$/,""):a.replace(/\s+$/,"")),B(r,t)},n(6638),t.R_=function(e,a){var s,o,w={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=a?("string"==typeof a.indent&&(w.format.indent.style=a.indent),"number"==typeof a.base&&(w.format.indent.base=a.base),a=N(w,a),u=a.format.indent.style,l="string"==typeof a.base?a.base:x(u,a.format.indent.base)):(u=(a=w).format.indent.style,l=x(u,a.format.indent.base)),c=a.format.json,p=a.format.renumber,h=!c&&a.format.hexadecimal,d=c?"double":a.format.quotes,m=a.format.escapeless,f=a.format.newline,g=a.format.space,a.format.compact&&(f=g=u=l=""),b=a.format.parentheses,y=a.format.semicolons,E=a.format.safeConcatenation,k=a.directive,T=c?null:a.parse,v=a.sourceMap,C=a.sourceCode,_=a.format.preserveBlankLines&&null!==C,A=a,v&&(i=t.Xh?n.g.sourceMap.SourceNode:n(9125).SourceNode),s=function(e){var t;if(t=new Y,D(e))return t.generateStatement(e,1);if(function(e){return Y.Expression.hasOwnProperty(e.type)}(e))return t.generateExpression(e,r.Sequence,7);throw new Error("Unknown node type: "+e.type)}(e),v?(o=s.toStringWithSourceMap({file:a.file,sourceRoot:a.sourceMapRoot}),a.sourceContent&&o.map.setSourceContent(a.sourceMap,a.sourceContent),a.sourceMapWithCode?o:o.map.toString()):(o={code:s.toString(),map:null},a.sourceMapWithCode?o:o.code)},s.attachComments,N({},r),t.Xh=!1}()},140:(e,t)=>{!function e(t){"use strict";var n,r,a,i,s,o;function l(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?l(n):n);return r}function u(e,t){this.parent=e,this.key=t}function c(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function p(){}function h(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function m(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}function f(e,t){return(new p).traverse(e,t)}function g(e,t){var n;return n=function(t,n){var r,a,i,s;for(a=t.length,i=0;a;)t[s=i+(r=a>>>1)].range[0]>e.range[0]?a=r:(i=s+1,a-=r+1);return i}(t),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",StaticBlock:"StaticBlock",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",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"},a={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},r={Break:i={},Skip:s={},Remove:o={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,n,r,a;function i(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(a=[],e=2,t=this.__leavelist.length;e<t;++e)i(a,this.__leavelist[e].path);return i(a,this.__current.path),a},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(s)},p.prototype.break=function(){this.notify(i)},p.prototype.remove=function(){this.notify(o)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=a,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var n,r,a,o,l,u,p,f,g,b,y,E;for(this.__initialize(e,t),E={},n=this.__worklist,r=this.__leavelist,n.push(new c(e,null,null,null)),r.push(new c(null,null,null,null));n.length;)if((a=n.pop())!==E){if(a.node){if(u=this.__execute(t.enter,a),this.__state===i||u===i)return;if(n.push(E),r.push(a),this.__state===s||u===s)continue;if(l=(o=a.node).type||a.wrap,!(b=this.__keys[l])){if(!this.__fallback)throw new Error("Unknown node type "+l+".");b=this.__fallback(o)}for(f=b.length;(f-=1)>=0;)if(y=o[p=b[f]])if(Array.isArray(y)){for(g=y.length;(g-=1)>=0;)if(y[g]&&!m(r,y[g])){if(d(l,b[f]))a=new c(y[g],[p,g],"Property",null);else{if(!h(y[g]))continue;a=new c(y[g],[p,g],null,null)}n.push(a)}}else if(h(y)){if(m(r,y))continue;n.push(new c(y,p,null,null))}}}else if(a=r.pop(),u=this.__execute(t.leave,a),this.__state===i||u===i)return},p.prototype.replace=function(e,t){var n,r,a,l,p,m,f,g,b,y,E,k,A;function T(e){var t,r,a,i;if(e.ref.remove())for(r=e.ref.key,i=e.ref.parent,t=n.length;t--;)if((a=n[t]).ref&&a.ref.parent===i){if(a.ref.key<r)break;--a.ref.key}}for(this.__initialize(e,t),E={},n=this.__worklist,r=this.__leavelist,m=new c(e,null,null,new u(k={root:e},"root")),n.push(m),r.push(m);n.length;)if((m=n.pop())!==E){if(void 0!==(p=this.__execute(t.enter,m))&&p!==i&&p!==s&&p!==o&&(m.ref.replace(p),m.node=p),this.__state!==o&&p!==o||(T(m),m.node=null),this.__state===i||p===i)return k.root;if((a=m.node)&&(n.push(E),r.push(m),this.__state!==s&&p!==s)){if(l=a.type||m.wrap,!(b=this.__keys[l])){if(!this.__fallback)throw new Error("Unknown node type "+l+".");b=this.__fallback(a)}for(f=b.length;(f-=1)>=0;)if(y=a[A=b[f]])if(Array.isArray(y)){for(g=y.length;(g-=1)>=0;)if(y[g]){if(d(l,b[f]))m=new c(y[g],[A,g],"Property",new u(y,g));else{if(!h(y[g]))continue;m=new c(y[g],[A,g],null,new u(y,g))}n.push(m)}}else h(y)&&n.push(new c(y,A,null,new u(a,A)))}}else if(m=r.pop(),void 0!==(p=this.__execute(t.leave,m))&&p!==i&&p!==s&&p!==o&&m.ref.replace(p),this.__state!==o&&p!==o||T(m),this.__state===i||p===i)return k.root;return k.root},t.Syntax=n,t.traverse=f,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,n){var a,i,s,o,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(s=0,i=t.length;s<i;s+=1)(a=l(t[s])).extendedRange=[0,e.range[0]],u.push(a);e.leadingComments=u}return e}for(s=0,i=t.length;s<i;s+=1)u.push(g(l(t[s]),n));return o=0,f(e,{enter:function(e){for(var t;o<u.length&&!((t=u[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(o,1)):o+=1;return o===u.length?r.Break:u[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),o=0,f(e,{leave:function(e){for(var t;o<u.length&&(t=u[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),u.splice(o,1)):o+=1;return o===u.length?r.Break:u[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=a,t.VisitorOption=r,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)},3002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655),a=r.__importDefault(n(9661)),i=r.__importDefault(n(1167)),s=r.__importDefault(n(8867));t.default=function(e){e.use(a.default);var t=e.use(i.default),n=e.use(s.default).defaults,r=t.Type.def,o=t.Type.or;r("Noop").bases("Statement").build(),r("DoExpression").bases("Expression").build("body").field("body",[r("Statement")]),r("BindExpression").bases("Expression").build("object","callee").field("object",o(r("Expression"),null)).field("callee",r("Expression")),r("ParenthesizedExpression").bases("Expression").build("expression").field("expression",r("Expression")),r("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",r("Identifier")),r("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",r("Identifier")),r("CommentBlock").bases("Comment").build("value","leading","trailing"),r("CommentLine").bases("Comment").build("value","leading","trailing"),r("Directive").bases("Node").build("value").field("value",r("DirectiveLiteral")),r("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,n["use strict"]),r("InterpreterDirective").bases("Node").build("value").field("value",String),r("BlockStatement").bases("Statement").build("body").field("body",[r("Statement")]).field("directives",[r("Directive")],n.emptyArray),r("Program").bases("Node").build("body").field("body",[r("Statement")]).field("directives",[r("Directive")],n.emptyArray).field("interpreter",o(r("InterpreterDirective"),null),n.null),r("StringLiteral").bases("Literal").build("value").field("value",String),r("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",o(String,null),n.null).field("extra",{rawValue:Number,raw:String},(function(){return{rawValue:this.value,raw:this.value+""}})),r("BigIntLiteral").bases("Literal").build("value").field("value",o(String,Number)).field("extra",{rawValue:String,raw:String},(function(){return{rawValue:String(this.value),raw:this.value+"n"}})),r("NullLiteral").bases("Literal").build().field("value",null,n.null),r("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),r("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,(function(){return new RegExp(this.pattern,this.flags)}));var l=o(r("Property"),r("ObjectMethod"),r("ObjectProperty"),r("SpreadProperty"),r("SpreadElement"));r("ObjectExpression").bases("Expression").build("properties").field("properties",[l]),r("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",o("method","get","set")).field("key",o(r("Literal"),r("Identifier"),r("Expression"))).field("params",[r("Pattern")]).field("body",r("BlockStatement")).field("computed",Boolean,n.false).field("generator",Boolean,n.false).field("async",Boolean,n.false).field("accessibility",o(r("Literal"),null),n.null).field("decorators",o([r("Decorator")],null),n.null),r("ObjectProperty").bases("Node").build("key","value").field("key",o(r("Literal"),r("Identifier"),r("Expression"))).field("value",o(r("Expression"),r("Pattern"))).field("accessibility",o(r("Literal"),null),n.null).field("computed",Boolean,n.false);var u=o(r("MethodDefinition"),r("VariableDeclarator"),r("ClassPropertyDefinition"),r("ClassProperty"),r("ClassPrivateProperty"),r("ClassMethod"),r("ClassPrivateMethod"));r("ClassBody").bases("Declaration").build("body").field("body",[u]),r("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",o(r("Literal"),r("Identifier"),r("Expression"))),r("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",r("PrivateName")),["ClassMethod","ClassPrivateMethod"].forEach((function(e){r(e).field("kind",o("get","set","method","constructor"),(function(){return"method"})).field("body",r("BlockStatement")).field("computed",Boolean,n.false).field("static",o(Boolean,null),n.null).field("abstract",o(Boolean,null),n.null).field("access",o("public","private","protected",null),n.null).field("accessibility",o("public","private","protected",null),n.null).field("decorators",o([r("Decorator")],null),n.null).field("optional",o(Boolean,null),n.null)}));var c=o(r("Property"),r("PropertyPattern"),r("SpreadPropertyPattern"),r("SpreadProperty"),r("ObjectProperty"),r("RestProperty"));r("ObjectPattern").bases("Pattern").build("properties").field("properties",[c]).field("decorators",o([r("Decorator")],null),n.null),r("SpreadProperty").bases("Node").build("argument").field("argument",r("Expression")),r("RestProperty").bases("Node").build("argument").field("argument",r("Expression")),r("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",o(r("VariableDeclaration"),r("Expression"))).field("right",r("Expression")).field("body",r("Statement")),r("Import").bases("Expression").build()},e.exports=t.default},9152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655),a=r.__importDefault(n(3002)),i=r.__importDefault(n(4749));t.default=function(e){e.use(a.default),e.use(i.default)},e.exports=t.default},5464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalOperators=t.AssignmentOperators=t.BinaryOperators=void 0,t.BinaryOperators=["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],t.AssignmentOperators=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],t.LogicalOperators=["||","&&"]},7211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655),a=n(5464),i=r.__importDefault(n(1167)),s=r.__importDefault(n(8867));t.default=function(e){var t=e.use(i.default).Type,n=t.def,r=t.or,o=e.use(s.default),l=o.defaults,u=o.geq;n("Printable").field("loc",r(n("SourceLocation"),null),l.null,!0),n("Node").bases("Printable").field("type",String).field("comments",r([n("Comment")],null),l.null,!0),n("SourceLocation").field("start",n("Position")).field("end",n("Position")).field("source",r(String,null),l.null),n("Position").field("line",u(1)).field("column",u(0)),n("File").bases("Node").build("program","name").field("program",n("Program")).field("name",r(String,null),l.null),n("Program").bases("Node").build("body").field("body",[n("Statement")]),n("Function").bases("Node").field("id",r(n("Identifier"),null),l.null).field("params",[n("Pattern")]).field("body",n("BlockStatement")).field("generator",Boolean,l.false).field("async",Boolean,l.false),n("Statement").bases("Node"),n("EmptyStatement").bases("Statement").build(),n("BlockStatement").bases("Statement").build("body").field("body",[n("Statement")]),n("ExpressionStatement").bases("Statement").build("expression").field("expression",n("Expression")),n("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Statement")).field("alternate",r(n("Statement"),null),l.null),n("LabeledStatement").bases("Statement").build("label","body").field("label",n("Identifier")).field("body",n("Statement")),n("BreakStatement").bases("Statement").build("label").field("label",r(n("Identifier"),null),l.null),n("ContinueStatement").bases("Statement").build("label").field("label",r(n("Identifier"),null),l.null),n("WithStatement").bases("Statement").build("object","body").field("object",n("Expression")).field("body",n("Statement")),n("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",n("Expression")).field("cases",[n("SwitchCase")]).field("lexical",Boolean,l.false),n("ReturnStatement").bases("Statement").build("argument").field("argument",r(n("Expression"),null)),n("ThrowStatement").bases("Statement").build("argument").field("argument",n("Expression")),n("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",n("BlockStatement")).field("handler",r(n("CatchClause"