290 lines
921 KiB
JavaScript
290 lines
921 KiB
JavaScript
![]() |
var XX=Object.create;var xo=Object.defineProperty,KX=Object.defineProperties,QX=Object.getOwnPropertyDescriptor,ZX=Object.getOwnPropertyDescriptors,eK=Object.getOwnPropertyNames,g8=Object.getOwnPropertySymbols,tK=Object.getPrototypeOf,D8=Object.prototype.hasOwnProperty,rK=Object.prototype.propertyIsEnumerable;var y8=(i,s,u)=>s in i?xo(i,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):i[s]=u,ys=(i,s)=>{for(var u in s||(s={}))D8.call(s,u)&&y8(i,u,s[u]);if(g8)for(var u of g8(s))rK.call(s,u)&&y8(i,u,s[u]);return i},ry=(i,s)=>KX(i,ZX(s)),nK=i=>xo(i,"__esModule",{value:!0});var be=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),E8=(i,s)=>{for(var u in s)xo(i,u,{get:s[u],enumerable:!0})},iK=(i,s,u,c)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of eK(s))!D8.call(i,f)&&(u||f!=="default")&&xo(i,f,{get:()=>s[f],enumerable:!(c=QX(s,f))||c.enumerable});return i},kr=(i,s)=>iK(nK(xo(i!=null?XX(tK(i)):{},"default",!s&&i&&i.__esModule?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var rt=(i,s,u)=>new Promise((c,f)=>{var h=x=>{try{C(u.next(x))}catch(I){f(I)}},g=x=>{try{C(u.throw(x))}catch(I){f(I)}},C=x=>x.done?c(x.value):Promise.resolve(x.value).then(h,g);C((u=u.apply(i,s)).next())});var C8=be(b8=>{(function i(s){"use strict";var u,c,f,h,g,C;function x(J){var W={},$,G;for($ in J)J.hasOwnProperty($)&&(G=J[$],typeof G=="object"&&G!==null?W[$]=x(G):W[$]=G);return W}function I(J,W){var $,G,ce,se;for(G=J.length,ce=0;G;)$=G>>>1,se=ce+$,W(J[se])?G=$:(ce=se+1,G-=$+1);return ce}u={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
|
||
|
`,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}}function Rn(E,B){var F="";for(B|=0;B>0;B>>>=1,E+=E)B&1&&(F+=E);return F}function au(E){return/[\r\n]/g.test(E)}function xt(E){var B=E.length;return B&&h.code.isLineTerminator(E.charCodeAt(B-1))}function ac(E,B){var F;for(F in B)B.hasOwnProperty(F)&&(E[F]=B[F]);return E}function Ls(E,B){var F,T;function L(z){return typeof z=="object"&&z instanceof Object&&!(z instanceof RegExp)}for(F in B)B.hasOwnProperty(F)&&(T=B[F],L(T)?L(E[F])?Ls(E[F],T):E[F]=Ls({},T):E[F]=T);return E}function uu(E){var B,F,T,L,z;if(E!==E)throw new Error("Numeric literal whose value is NaN");if(E<0||E===0&&1/E<0)throw new Error("Numeric literal whose value is negative");if(E===1/0)return x?"null":I?"1e400":"1e+400";if(B=""+E,!I||B.length<3)return B;for(F=B.indexOf("."),!x&&B.charCodeAt(0)===48&&F===1&&(F=0,B=B.slice(1)),T=B,B=B.replace("e+","e"),L=0,(z=T.indexOf("e"))>0&&(L=+T.slice(z+1),T=T.slice(0,z)),F>=0&&(L-=T.length-F-1,T=+(T.slice(0,F)+T.slice(F+1))+""),z=0;T.charCodeAt(T.length+z-1)===48;)--z;return z!==0&&(L-=z,T=T.slice(0,z)),L!==0&&(T+="e"+L),(T.length<B.length||N&&E>1e12&&Math.floor(E)===E&&(T="0x"+E.toString(16)).length<B.length)&&+T===E&&(B=T),B}function uc(E,B){return(E&-2)===8232?(B?"u":"\\u")+(E===8232?"2028":"2029"):E===10||E===13?(B?"":"\\")+(E===10?"n":"r"):String.fromCharCode(E)}function Hf(E){var B,F,T,L,z,X,re,me;if(F=E.toString(),E.source){if(B=F.match(/\/([^/]*)$/),!B)return F;for(T=B[1],F="",re=!1,me=!1,L=0,z=E.source.length;L<z;++L)X=E.source.charCodeAt(L),me?(F+=uc(X,me),me=!1):(re?X===93&&(re=!1):X===47?F+="\\":X===91&&(re=!0),F+=uc(X,me),me=X===92);return"/"+F+"/"+T}return F}function Jf(E,B){var F;return E===8?"\\b":E===12?"\\f":E===9?"\\t":(F=E.toString(16).toUpperCase(),x||E>255?"\\u"+"0000".slice(F.length)+F:E===0&&!h.code.isDecimalDigit(B)?"\\0":E===11?"\\x0B":"\\x"+"00".slice(F.length)+F)}function oc(E){if(E===92)return"\\\\";if(E===10)return"\\n";if(E===13)return"\\r";if(E===8232)return"\\u2028";if(E===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function Yf(E){var B,F,T,L;for(L=j==="double"?'"':"'",B=0,F=E.length;B<F;++B)if(T=E.charCodeAt(B),T===39){L='"';break}else if(T===34){L="'";break}else T===92&&++B;return L+E+L}function Xf(E){var B="",F,T,L,z=0,X=0,re,me;for(F=0,T=E.length;F<T;++F){if(L=E.charCodeAt(F),L===39)++z;else if(L===34)++X;else if(L===47&&x)B+="\\";else if(h.code.isLineTerminator(L)||L===92){B+=oc(L);continue}else if(!h.code.isIdentifierPartES5(L)&&(x&&L<32||!x&&!O&&(L<32||L>126))){B+=Jf(L,E.charCodeAt(F+1));continue}B+=String.fromCharCode(L)}if(re=!(j==="double"||j==="auto"&&X<z),me=re?"'":'"',!(re?z:X))return me+B+me;for(E=B,B=me,F=0,T=E.length;F<T;++F)L=E.charCodeAt(F),(L===39&&re||L===34&&!re)&&(B+="\\"),B+=String.fromCharCode(L);return B+me}function ki(E){var B,F,T,L="";for(B=0,F=E.length;B<F;++B)T=E[B],L+=Array.isArray(T)?ki(T):T;return L}function Oe(E,B){if(!W)return Array.isArray(E)?ki(E):E;if(B==null){if(E instanceof c)return E;B={}}return B.loc==null?new c(null,null,W,E,B.name||null):new c(B.loc.start.line,B.loc.start.column,W===!0?B.loc.source||null:W,E,B.name||null)}function St(){return V||" "}function xe(E,B){var F,T,L,z;return F=Oe(E).toString(),F.length===0?[B]:(T=Oe(B).toString(),T.length===0?[E]:(L=F.charCodeAt(F.length-1),z=T.charCodeAt(0),(L===43||L===45)&&L===z||h.code.isIdentifierPartES5(L)&&h.code.isIdentifierPartES5(z)||L===47&&z===105?[E,St(),B]:h.code.isWhiteSpace(L)||h.code.isLineTerminator(L)||h.code.isWhiteSpace(z)||h.code.isLineTerminator(z)?[E,B]:[E,V,B]))}function bt(E){return[g,E]}function lt(E){var B;B=g,g+=C,E(g),g=B}function Kf(E){var B;for(B=E.length-1;B>=0&&!h.code.isLineTerminator(E.charCodeAt(B));--B);return E.length-1-B}function _i(E,B){var F,T,L,z,X,re,me,je;for(F=E.split(/\r\n|[\r\n]/),re=Number.
|
||
|
`)}function Lr(E,B){if(E.type==="Line"){if(xt(E.value))return"//"+E.value;var F="//"+E.value;return G||(F+=`
|
||
|
`),F}return fe.format.indent.adjustMultilineComment&&/[\n\r]/.test(E.value)?_i("/*"+E.value+"*/",B):"/*"+E.value+"*/"}function Ni(E,B){var F,T,L,z,X,re,me,je,mt,Sr,oi,Ms,js,mr;if(E.leadingComments&&E.leadingComments.length>0){if(z=B,G){for(L=E.leadingComments[0],B=[],je=L.extendedRange,mt=L.range,oi=$.substring(je[0],mt[0]),mr=(oi.match(/\n/g)||[]).length,mr>0?(B.push(Rn(`
|
||
|
`,mr)),B.push(bt(Lr(L)))):(B.push(oi),B.push(Lr(L))),Sr=mt,F=1,T=E.leadingComments.length;F<T;F++)L=E.leadingComments[F],mt=L.range,Ms=$.substring(Sr[1],mt[0]),mr=(Ms.match(/\n/g)||[]).length,B.push(Rn(`
|
||
|
`,mr)),B.push(bt(Lr(L))),Sr=mt;js=$.substring(mt[1],je[1]),mr=(js.match(/\n/g)||[]).length,B.push(Rn(`
|
||
|
`,mr))}else for(L=E.leadingComments[0],B=[],ue&&E.type===i.Program&&E.body.length===0&&B.push(`
|
||
|
`),B.push(Lr(L)),xt(Oe(B).toString())||B.push(`
|
||
|
`),F=1,T=E.leadingComments.length;F<T;++F)L=E.leadingComments[F],me=[Lr(L)],xt(Oe(me).toString())||me.push(`
|
||
|
`),B.push(bt(me));B.push(bt(z))}if(E.trailingComments)if(G)L=E.trailingComments[0],je=L.extendedRange,mt=L.range,oi=$.substring(je[0],mt[0]),mr=(oi.match(/\n/g)||[]).length,mr>0?(B.push(Rn(`
|
||
|
`,mr)),B.push(bt(Lr(L)))):(B.push(oi),B.push(Lr(L)));else for(X=!xt(Oe(B).toString()),re=Rn(" ",Kf(Oe([g,B,C]).toString())),F=0,T=E.trailingComments.length;F<T;++F)L=E.trailingComments[F],X?(F===0?B=[B,C]:B=[B,re],B.push(Lr(L,re))):B=[B,bt(Lr(L))],F!==T-1&&!xt(Oe(B).toString())&&(B=[B,`
|
||
|
`]);return B}function Vn(E,B,F){var T,L=0;for(T=E;T<B;T++)$[T]===`
|
||
|
`&&L++;for(T=1;T<L;T++)F.push(R)}function it(E,B,F){return B<F?["(",E,")"]:E}function ou(E){var B,F,T;for(T=E.split(/\r\n|\n/),B=1,F=T.length;B<F;B++)T[B]=R+g+T[B];return T}function cc(E,B){var F,T,L;return F=E[fe.verbatim],typeof F=="string"?T=it(ou(F),s.Sequence,B):(T=ou(F.content),L=F.precedence!=null?F.precedence:s.Sequence,T=it(T,L,B)),Oe(T,E)}function ot(){}ot.prototype.maybeBlock=function(E,B){var F,T,L=this;return T=!fe.comment||!E.leadingComments,E.type===i.BlockStatement&&T?[V,this.generateStatement(E,B)]:E.type===i.EmptyStatement&&T?";":(lt(function(){F=[R,bt(L.generateStatement(E,B))]}),F)},ot.prototype.maybeBlockSuffix=function(E,B){var F=xt(Oe(B).toString());return E.type===i.BlockStatement&&(!fe.comment||!E.leadingComments)&&!F?[B,V]:F?[B,g]:[B,R,g]};function Lt(E){var B=E.name;return E.type===i.PrivateIdentifier&&(B="#"+B),Oe(B,E)}function ui(E,B){return E.async?"async"+(B?St():V):""}function Ii(E){var B=E.generator&&!fe.moz.starlessGenerator;return B?"*"+V:""}function lc(E){var B=E.value,F="";return B.async&&(F+=ui(B,!E.computed)),B.generator&&(F+=Ii(B)?"*":""),F}ot.prototype.generatePattern=function(E,B,F){return E.type===i.Identifier?Lt(E):this.generateExpression(E,B,F)},ot.prototype.generateFunctionParams=function(E){var B,F,T,L;if(L=!1,E.type===i.ArrowFunctionExpression&&!E.rest&&(!E.defaults||E.defaults.length===0)&&E.params.length===1&&E.params[0].type===i.Identifier)T=[ui(E,!0),Lt(E.params[0])];else{for(T=E.type===i.ArrowFunctionExpression?[ui(E,!1)]:[],T.push("("),E.defaults&&(L=!0),B=0,F=E.params.length;B<F;++B)L&&E.defaults[B]?T.push(this.generateAssignment(E.params[B],E.defaults[B],"=",s.Assignment,le)):T.push(this.generatePattern(E.params[B],s.Assignment,le)),B+1<F&&T.push(","+V);E.rest&&(E.params.length&&T.push(","+V),T.push("..."),T.push(Lt(E.rest))),T.push(")")}return T},ot.prototype.generateFunctionBody=function(E){var B,F;return B=this.generateFunctionParams(E),E.type===i.ArrowFunctionExpression&&(B.push(V),B.push("=>")),E.expression?(B.push(V),F=this.generateExpression(E.body,s.Assignment,le),F.toString().charAt(0)==="{"&&(F=["(",F,")"]),B.push(F)):B.push(this.maybeBlock(E.body,ic)),B},ot.prototype.generateIterationForStatement=function(E,B,F){var T=["for"+(B.await?St()+"await":"")+V+"("],L=this;return lt(function(){B.left.type===i.VariableDeclaration?lt(function(){T.push(B.left.kind+St()),T.push(L.generateStatement(B.left.declarations[0],Os))}):T.push(L.generateExpression(B.left,s.Call,le)),T=xe(T,E),T=[xe(T,L.generateExpression(B.right,s.Assignment,le)),")"]}),T.push(this.maybeBlock(B.body,F)),T},ot.prototype.generatePropertyKey=function(E,B){var F=[];return B&&F.push("["),F.push(this.generateExpression(E,s.Assignment,le)),B&&F.push("]"),F},ot.prototype.generateAssignment=function(E,B,F,T,L){return s.Assignment<T&&(L|=K),it([this.generateExpression(E,s.Call,L),V+F+V,this.generateExpression(B,s.Assignment,L)],s.Assignment,T)},ot.prototype.semicolon=function(E){return!Z&&E&we?"":";"},ot.Statement={BlockStatement:function(E,B){var F,T,L=["{",R],z=this;return lt(function(){E.body.length===0&&G&&(F=E.range,F[1]-F[0]>2&&(T=$.substring(F[0]+1,F[1]-1),T[0]===`
|
||
|
`&&(L=["{"]),L.push(T)));var X,re,me,je;for(je=Le,B&Pe&&(je|=Ne),X=0,re=E.body.length;X<re;++X)G&&(X===0&&(E.body[0].leadingComments&&(F=E.body[0].leadingComments[0].extendedRange,T=$.substring(F[0],F[1]),T[0]===`
|
||
|
`&&(L=["{"])),E.body[0].leadingComments||Vn(E.range[0],E.body[0].range[0],L)),X>0&&!E.body[X-1].trailingComments&&!E.body[X].leadingComments&&Vn(E.body[X-1].range[1],E.body[X].range[0],L)),X===re-1&&(je|=we),E.body[X].leadingComments&&G?me=z.generateStatement(E.body[X],je):me=bt(z.generateStatement(E.body[X],je)),L.push(me),xt(Oe(me).toString())||G&&X<re-1&&E.body[X+1].leadingComments||L.push(R),G&&X===re-1&&(E.body[X].trailingComments||Vn(E.body[X].range[1],E.range[1],L))}),L.push(bt("}")),L},BreakStatement:function(E,B){return E.label?"break "+E.label.name+this.semicolon(B):"break"+this.semicolon(B)},ContinueStatement:function(E,B){return E.label?"continue "+E.label.name+this.semicolon(B):"continue"+this.semicolon(B)},ClassBody:function(E,B){var F=["{",R],T=this;return lt(function(L){var z,X;for(z=0,X=E.body.length;z<X;++z)F.push(L),F.push(T.generateExpression(E.body[z],s.Sequence,le)),z+1<X&&F.push(R)}),xt(Oe(F).toString())||F.push(R),F.push(g),F.push("}"),F},ClassDeclaration:function(E,B){var F,T;return F=["class"],E.id&&(F=xe(F,this.generateExpression(E.id,s.Sequence,le))),E.superClass&&(T=xe("extends",this.generateExpression(E.superClass,s.Unary,le)),F=xe(F,T)),F.push(V),F.push(this.generateStatement(E.body,Et)),F},DirectiveStatement:function(E,B){return fe.raw&&E.raw?E.raw+this.semicolon(B):Yf(E.directive)+this.semicolon(B)},DoWhileStatement:function(E,B){var F=xe("do",this.maybeBlock(E.body,Le));return F=this.maybeBlockSuffix(E.body,F),xe(F,["while"+V+"(",this.generateExpression(E.test,s.Sequence,le),")"+this.semicolon(B)])},CatchClause:function(E,B){var F,T=this;return lt(function(){var L;E.param?(F=["catch"+V+"(",T.generateExpression(E.param,s.Sequence,le),")"],E.guard&&(L=T.generateExpression(E.guard,s.Sequence,le),F.splice(2,0," if ",L))):F=["catch"]}),F.push(this.maybeBlock(E.body,Le)),F},DebuggerStatement:function(E,B){return"debugger"+this.semicolon(B)},EmptyStatement:function(E,B){return";"},ExportDefaultDeclaration:function(E,B){var F=["export"],T;return T=B&we?Et:Le,F=xe(F,"default"),ie(E.declaration)?F=xe(F,this.generateStatement(E.declaration,T)):F=xe(F,this.generateExpression(E.declaration,s.Assignment,le)+this.semicolon(B)),F},ExportNamedDeclaration:function(E,B){var F=["export"],T,L=this;return T=B&we?Et:Le,E.declaration?xe(F,this.generateStatement(E.declaration,T)):(E.specifiers&&(E.specifiers.length===0?F=xe(F,"{"+V+"}"):E.specifiers[0].type===i.ExportBatchSpecifier?F=xe(F,this.generateExpression(E.specifiers[0],s.Sequence,le)):(F=xe(F,"{"),lt(function(z){var X,re;for(F.push(R),X=0,re=E.specifiers.length;X<re;++X)F.push(z),F.push(L.generateExpression(E.specifiers[X],s.Sequence,le)),X+1<re&&F.push(","+R)}),xt(Oe(F).toString())||F.push(R),F.push(g+"}")),E.source?F=xe(F,["from"+V,this.generateExpression(E.source,s.Sequence,le),this.semicolon(B)]):F.push(this.semicolon(B))),F)},ExportAllDeclaration:function(E,B){var F=["export"+V,"*"+V];return E.exported&&F.push("as "+E.exported.name+" "),F=xe(F,["from"+V,this.generateExpression(E.source,s.Sequence,le),this.semicolon(B)]),F},ExpressionStatement:function(E,B){var F,T;function L(re){var me;return re.slice(0,5)!=="class"?!1:(me=re.charCodeAt(5),me===123||h.code.isWhiteSpace(me)||h.code.isLineTerminator(me))}function z(re){var me;return re.slice(0,8)!=="function"?!1:(me=re.charCodeAt(8),me===40||h.code.isWhiteSpace(me)||me===42||h.code.isLineTerminator(me))}function X(re){var me,je,mt;if(re.slice(0,5)!=="async"||!h.code.isWhiteSpace(re.charCodeAt(5)))return!1;for(je=6,mt=re.length;je<mt&&h.code.isWhiteSpace(re.charCodeAt(je));++je);return je===mt||re.slice(je,je+8)!=="function"?!1:(me=re.charCodeAt(je+8),me===40||h.code.isWhiteSpace(me)||me===42||h.code.isLineTerminator(me))}return F=[this.generateExpression(E.expression,s.Sequence,le)],T=Oe(F).toString(),T.charCodeAt(0)===123||L(T)||z(T)||X(T)||oe&&B&Ne&&E.expression.type===i.Literal&&typeof E.expression.value=="string"?F=["(",F,")"+this.semicolon(B)]:F.push(this.semicolon(B)),F},ImportDeclaration:function(E,B){var F,T,L=this;return E.specifiers.length===0?["import",V,this.generateExpression(E.source,s
|
||
|
`),F.push(bt(re.generateStatement(z,X)))):(F.push(St()),F.push(re.generateStatement(z,X))),T=1,L=E.declarations.length;T<L;++T)z=E.declarations[T],fe.comment&&z.leadingComments?(F.push(","+R),F.push(bt(re.generateStatement(z,X)))):(F.push(","+V),F.push(re.generateStatement(z,X)))}return E.declarations.length>1?lt(me):me(),F.push(this.semicolon(B)),F},StaticBlock:function(E,B){return["static"+V,this.BlockStatement(E,B)]},ThrowStatement:function(E,B){return[xe("throw",this.generateExpression(E.argument,s.Sequence,le)),this.semicolon(B)]},TryStatement:function(E,B){var F,T,L,z;if(F=["try",this.maybeBlock(E.block,Le)],F=this.maybeBlockSuffix(E.block,F),E.handlers)for(T=0,L=E.handlers.length;T<L;++T)F=xe(F,this.generateStatement(E.handlers[T],Le)),(E.finalizer||T+1!==L)&&(F=this.maybeBlockSuffix(E.handlers[T].body,F));else{for(z=E.guardedHandlers||[],T=0,L=z.length;T<L;++T)F=xe(F,this.generateStatement(z[T],Le)),(E.finalizer||T+1!==L)&&(F=this.maybeBlockSuffix(z[T].body,F));if(E.handler)if(Array.isArray(E.handler))for(T=0,L=E.handler.length;T<L;++T)F=xe(F,this.generateStatement(E.handler[T],Le)),(E.finalizer||T+1!==L)&&(F=this.maybeBlockSuffix(E.handler[T].body,F));else F=xe(F,this.generateStatement(E.handler,Le)),E.finalizer&&(F=this.maybeBlockSuffix(E.handler.body,F))}return E.finalizer&&(F=xe(F,["finally",this.maybeBlock(E.finalizer,Le)])),F},SwitchStatement:function(E,B){var F,T,L,z,X,re=this;if(lt(function(){F=["switch"+V+"(",re.generateExpression(E.discriminant,s.Sequence,le),")"+V+"{"+R]}),E.cases)for(X=Le,L=0,z=E.cases.length;L<z;++L)L===z-1&&(X|=we),T=bt(this.generateStatement(E.cases[L],X)),F.push(T),xt(Oe(T).toString())||F.push(R);return F.push(bt("}")),F},SwitchCase:function(E,B){var F,T,L,z,X,re=this;return lt(function(){for(E.test?F=[xe("case",re.generateExpression(E.test,s.Sequence,le)),":"]:F=["default:"],L=0,z=E.consequent.length,z&&E.consequent[0].type===i.BlockStatement&&(T=re.maybeBlock(E.consequent[0],Le),F.push(T),L=1),L!==z&&!xt(Oe(F).toString())&&F.push(R),X=Le;L<z;++L)L===z-1&&B&we&&(X|=we),T=bt(re.generateStatement(E.consequent[L],X)),F.push(T),L+1!==z&&!xt(Oe(T).toString())&&F.push(R)}),F},IfStatement:function(E,B){var F,T,L,z=this;return lt(function(){F=["if"+V+"(",z.generateExpression(E.test,s.Sequence,le),")"]}),L=B&we,T=Le,L&&(T|=we),E.alternate?(F.push(this.maybeBlock(E.consequent,Le)),F=this.maybeBlockSuffix(E.consequent,F),E.alternate.type===i.IfStatement?F=xe(F,["else ",this.generateStatement(E.alternate,T)]):F=xe(F,xe("else",this.maybeBlock(E.alternate,T)))):F.push(this.maybeBlock(E.consequent,T)),F},ForStatement:function(E,B){var F,T=this;return lt(function(){F=["for"+V+"("],E.init?E.init.type===i.VariableDeclaration?F.push(T.generateStatement(E.init,Os)):(F.push(T.generateExpression(E.init,s.Sequence,Ze)),F.push(";")):F.push(";"),E.test&&(F.push(V),F.push(T.generateExpression(E.test,s.Sequence,le))),F.push(";"),E.update&&(F.push(V),F.push(T.generateExpression(E.update,s.Sequence,le))),F.push(")")}),F.push(this.maybeBlock(E.body,B&we?Et:Le)),F},ForInStatement:function(E,B){return this.generateIterationForStatement("in",E,B&we?Et:Le)},ForOfStatement:function(E,B){return this.generateIterationForStatement("of",E,B&we?Et:Le)},LabeledStatement:function(E,B){return[E.label.name+":",this.maybeBlock(E.body,B&we?Et:Le)]},Program:function(E,B){var F,T,L,z,X;for(z=E.body.length,F=[ue&&z>0?`
|
||
|
`:""],X=Ut,L=0;L<z;++L)!ue&&L===z-1&&(X|=we),G&&(L===0&&(E.body[0].leadingComments||Vn(E.range[0],E.body[L].range[0],F)),L>0&&!E.body[L-1].trailingComments&&!E.body[L].leadingComments&&Vn(E.body[L-1].range[1],E.body[L].range[0],F)),T=bt(this.generateStatement(E.body[L],X)),F.push(T),L+1<z&&!xt(Oe(T).toString())&&(G&&E.body[L+1].leadingComments||F.push(R)),G&&L===z-1&&(E.body[L].trailingComments||Vn(E.body[L].range[1],E.range[1],F));return F},FunctionDeclaration:function(E,B){return[ui(E,!0),"function",Ii(E)||St(),E.id?Lt(E.id):"",this.generateFunctionBody(E)]},ReturnStatement:function(E,B){return E.argument?[xe("return",this.generateExpression(E.argument,s.Sequence,le)),this.semicolon(B)]:["return"+this.semicolon(B)]},WhileStatement:function(E,B){var F,T=this;return lt(function(){F=["while"+V+"(",T.generateExpression(E.test,s.Sequence,le),")"]}),F.push(this.maybeBlock(E.body,B&we?Et:Le)),F},WithStatement:function(E,B){var F,T=this;return lt(function(){F=["with"+V+"(",T.generateExpression(E.object,s.Sequence,le),")"]}),F.push(this.maybeBlock(E.body,B&we?Et:Le)),F}},ac(ot.prototype,ot.Statement),ot.Expression={SequenceExpression:function(E,B,F){var T,L,z;for(s.Sequence<B&&(F|=K),T=[],L=0,z=E.expressions.length;L<z;++L)T.push(this.generateExpression(E.expressions[L],s.Assignment,F)),L+1<z&&T.push(","+V);return it(T,s.Sequence,B)},AssignmentExpression:function(E,B,F){return this.generateAssignment(E.left,E.right,E.operator,B,F)},ArrowFunctionExpression:function(E,B,F){return it(this.generateFunctionBody(E),s.ArrowFunction,B)},ConditionalExpression:function(E,B,F){return s.Conditional<B&&(F|=K),it([this.generateExpression(E.test,s.LogicalOR,F),V+"?"+V,this.generateExpression(E.consequent,s.Assignment,F),V+":"+V,this.generateExpression(E.alternate,s.Assignment,F)],s.Conditional,B)},LogicalExpression:function(E,B,F){return this.BinaryExpression(E,B,F)},BinaryExpression:function(E,B,F){var T,L,z,X,re,me;switch(X=u[E.operator],L=X,z=X+1,E.operator){case"**":L=s.Postfix,z=X;break;case"??":E.left.type===i.LogicalExpression&&(E.left.operator==="||"||E.left.operator==="&&")&&(L=u[E.left.operator]+1),E.right.type===i.LogicalExpression&&E.right.operator==="&&"&&(z=u[E.right.operator]+1);break;case"||":E.left.type===i.LogicalExpression&&E.left.operator==="??"&&(L=u[E.left.operator]+1);break}return X<B&&(F|=K),re=this.generateExpression(E.left,L,F),me=re.toString(),me.charCodeAt(me.length-1)===47&&h.code.isIdentifierPartES5(E.operator.charCodeAt(0))?T=[re,St(),E.operator]:T=xe(re,E.operator),re=this.generateExpression(E.right,z,F),E.operator==="/"&&re.toString().charAt(0)==="/"||E.operator.slice(-1)==="<"&&re.toString().slice(0,3)==="!--"?(T.push(St()),T.push(re)):T=xe(T,re),E.operator==="in"&&!(F&K)?["(",T,")"]:it(T,X,B)},CallExpression:function(E,B,F){var T,L,z,X;for(T=[this.generateExpression(E.callee,s.Call,vt)],E.optional&&T.push("?."),T.push("("),L=0,z=E.arguments.length;L<z;++L)T.push(this.generateExpression(E.arguments[L],s.Assignment,le)),L+1<z&&T.push(","+V);return T.push(")"),F&ge?(X=E.callee.id===null&&E.callee.params.length===0,X?it(T,B,s.Call):it(T,s.Call,B)):["(",T,")"]},ChainExpression:function(E,B,F){s.OptionalChaining<B&&(F|=ge);var T=this.generateExpression(E.expression,s.OptionalChaining,F);return it(T,s.OptionalChaining,B)},NewExpression:function(E,B,F){var T,L,z,X,re;if(L=E.arguments.length,re=F&Ie&&!Y&&L===0?ln:Gt,T=xe("new",this.generateExpression(E.callee,s.New,re)),!(F&Ie)||Y||L>0){for(T.push("("),z=0,X=L;z<X;++z)T.push(this.generateExpression(E.arguments[z],s.Assignment,le)),z+1<X&&T.push(","+V);T.push(")")}return it(T,s.New,B)},MemberExpression:function(E,B,F){var T,L;return T=[this.generateExpression(E.object,s.Call,F&ge?vt:Gt)],E.computed?(E.optional&&T.push("?."),T.push("["),T.push(this.generateExpression(E.property,s.Sequence,F&ge?le:ln)),T.push("]")):(!E.optional&&E.object.type===i.Literal&&typeof E.object.value=="number"&&(L=Oe(T).toString(),L.indexOf(".")<0&&!/[eExX]/.test(L)&&h.code.isDecimalDigit(L.charCodeAt(L.length-1))&&!(L.length>=2&&L.charCodeAt(0)===48)&&T.push(" ")),T.push(E.optional?"?.":".")
|
||
|
`&&(F=W?Oe(F).replaceRight(/\s+$/,""):T.replace(/\s+$/,"")),Oe(F,E)};function pc(E){var B;if(B=new ot,ie(E))return B.generateStatement(E,Le);if(he(E))return B.generateExpression(E,s.Sequence,le);throw new Error("Unknown node type: "+E.type)}function fc(E,B){var F=sc(),T,L;return B!=null?(typeof B.indent=="string"&&(F.format.indent.style=B.indent),typeof B.base=="number"&&(F.format.indent.base=B.base),B=Ls(F,B),C=B.format.indent.style,typeof B.base=="string"?g=B.base:g=Rn(C,B.format.indent.base)):(B=F,C=B.format.indent.style,g=Rn(C,B.format.indent.base)),x=B.format.json,I=B.format.renumber,N=x?!1:B.format.hexadecimal,j=x?"double":B.format.quotes,O=B.format.escapeless,R=B.format.newline,V=B.format.space,B.format.compact&&(R=V=C=g=""),Y=B.format.parentheses,Z=B.format.semicolons,ue=B.format.safeConcatenation,oe=B.directive,J=x?null:B.parse,W=B.sourceMap,$=B.sourceCode,G=B.format.preserveBlankLines&&$!==null,fe=B,W&&(Zn.browser?c=global.sourceMap.SourceNode:c=K8().SourceNode),T=pc(E),W?(L=T.toStringWithSourceMap({file:B.file,sourceRoot:B.sourceMapRoot}),B.sourceContent&&L.map.setSourceContent(B.sourceMap,B.sourceContent),B.sourceMapWithCode?L:L.map.toString()):(L={code:T.toString(),map:null},B.sourceMapWithCode?L:L.code)}ce={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},se=sc().format,Zn.version=Q8().version,Zn.generate=fc,Zn.attachComments=f.attachComments,Zn.Precedence=Ls({},s),Zn.browser=!1,Zn.FORMAT_MINIFY=ce,Zn.FORMAT_DEFAULTS=se})()});var Iy=be((ore,L5)=>{"use strict";L5.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var s={},u=Symbol("test"),c=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(c)!=="[object Symbol]")return!1;var f=42;s[u]=f;for(u in s)return!1;if(typeof Object.keys=="function"&&Object.keys(s).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(s).length!==0)return!1;var h=Object.getOwnPropertySymbols(s);if(h.length!==1||h[0]!==u||!Object.prototype.propertyIsEnumerable.call(s,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(s,u);if(g.value!==f||g.enumerable!==!0)return!1}return!0}});var Po=be((cre,M5)=>{"use strict";var nQ=Iy();M5.exports=function(){return nQ()&&!!Symbol.toStringTag}});var V5=be((lre,R5)=>{"use strict";var j5=typeof Symbol<"u"&&Symbol,iQ=Iy();R5.exports=function(){return typeof j5!="function"||typeof Symbol!="function"||typeof j5("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:iQ()}});var G5=be((pre,q5)=>{"use strict";var sQ="Function.prototype.bind called on incompatible ",Py=Array.prototype.slice,aQ=Object.prototype.toString,uQ="[object Function]";q5.exports=function(s){var u=this;if(typeof u!="function"||aQ.call(u)!==uQ)throw new TypeError(sQ+u);for(var c=Py.call(arguments,1),f,h=function(){if(this instanceof f){var N=u.apply(this,c.concat(Py.call(arguments)));return Object(N)===N?N:this}else return u.apply(s,c.concat(Py.call(arguments)))},g=Math.max(0,u.length-c.length),C=[],x=0;x<g;x++)C.push("$"+x);if(f=Function("binder","return function ("+C.join(",")+"){ return binder.apply(this,arguments); }")(h),u.prototype){var I=function(){};I.prototype=u.prototype,f.prototype=new I,I.prototype=null}return f}});var Xp=be((fre,U5)=>{"use strict";var oQ=G5();U5.exports=Function.prototype.bind||oQ});var z5=be((hre,W5)=>{"use strict";var cQ=Xp();W5.exports=cQ.call(Function.call,Object.prototype.hasOwnProperty)});var Lo=be((dre,X5)=>{"use strict";var Ge,Ya=SyntaxError,Y5=Function,Ja=TypeError,Oy=function(i){try{return Y5('"use strict"; return ('+i+").constructor;")()}catch{}},vs=Object.getOwnPropertyDescriptor;if(vs)try{vs({},"")}catch{vs=null}var Ly=function(){throw new Ja},lQ=vs?function(){try{return arguments.callee,Ly}catch{try{return vs(arguments,"callee").get}catch{return Ly}}}():Ly,$a=V5()(),jn=Object.getPrototypeOf||function(i){return i.__proto__},Ha={
|
||
|
`)>-1&&(h?C=C.split(`
|
||
|
`).map(function(I){return" "+I}).join(`
|
||
|
`).slice(2):C=`
|
||
|
`+C.split(`
|
||
|
`).map(function(I){return" "+I}).join(`
|
||
|
`))):C=i.stylize("[Circular]","special")),ws(g)){if(h&&f.match(/^\d+$/))return C;g=JSON.stringify(""+f),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.slice(1,-1),g=i.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=i.stylize(g,"string"))}return g+": "+C}function VZ(i,s,u){var c=0,f=i.reduce(function(h,g){return c++,g.indexOf(`
|
||
|
`)>=0&&c++,h+g.replace(/\u001b\[\d\d?m/g,"").length+1},0);return f>60?u[0]+(s===""?"":s+`
|
||
|
`)+" "+i.join(`,
|
||
|
`)+" "+u[1]:u[0]+s+" "+i.join(", ")+" "+u[1]}Ve.types=W6();function Y6(i){return Array.isArray(i)}Ve.isArray=Y6;function a1(i){return typeof i=="boolean"}Ve.isBoolean=a1;function yf(i){return i===null}Ve.isNull=yf;function qZ(i){return i==null}Ve.isNullOrUndefined=qZ;function X6(i){return typeof i=="number"}Ve.isNumber=X6;function Df(i){return typeof i=="string"}Ve.isString=Df;function GZ(i){return typeof i=="symbol"}Ve.isSymbol=GZ;function ws(i){return i===void 0}Ve.isUndefined=ws;function Ro(i){return Za(i)&&u1(i)==="[object RegExp]"}Ve.isRegExp=Ro;Ve.types.isRegExp=Ro;function Za(i){return typeof i=="object"&&i!==null}Ve.isObject=Za;function gf(i){return Za(i)&&u1(i)==="[object Date]"}Ve.isDate=gf;Ve.types.isDate=gf;function Vo(i){return Za(i)&&(u1(i)==="[object Error]"||i instanceof Error)}Ve.isError=Vo;Ve.types.isNativeError=Vo;function df(i){return typeof i=="function"}Ve.isFunction=df;function UZ(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i>"u"}Ve.isPrimitive=UZ;Ve.isBuffer=$6();function u1(i){return Object.prototype.toString.call(i)}function i1(i){return i<10?"0"+i.toString(10):i.toString(10)}var WZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zZ(){var i=new Date,s=[i1(i.getHours()),i1(i.getMinutes()),i1(i.getSeconds())].join(":");return[i.getDate(),WZ[i.getMonth()],s].join(" ")}Ve.log=function(){console.log("%s - %s",zZ(),Ve.format.apply(Ve,arguments))};Ve.inherits=H6();Ve._extend=function(i,s){if(!s||!Za(s))return i;for(var u=Object.keys(s),c=u.length;c--;)i[u[c]]=s[u[c]];return i};function K6(i,s){return Object.prototype.hasOwnProperty.call(i,s)}var Fs=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ve.promisify=function(s){if(typeof s!="function")throw new TypeError('The "original" argument must be of type Function');if(Fs&&s[Fs]){var u=s[Fs];if(typeof u!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(u,Fs,{value:u,enumerable:!1,writable:!1,configurable:!0}),u}function u(){for(var c,f,h=new Promise(function(x,I){c=x,f=I}),g=[],C=0;C<arguments.length;C++)g.push(arguments[C]);g.push(function(x,I){x?f(x):c(I)});try{s.apply(this,g)}catch(x){f(x)}return h}return Object.setPrototypeOf(u,Object.getPrototypeOf(s)),Fs&&Object.defineProperty(u,Fs,{value:u,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(u,J6(s))};Ve.promisify.custom=Fs;function $Z(i,s){if(!i){var u=new Error("Promise was rejected with a falsy value");u.reason=i,i=u}return s(i)}function HZ(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');function s(){for(var u=[],c=0;c<arguments.length;c++)u.push(arguments[c]);var f=u.pop();if(typeof f!="function")throw new TypeError("The last argument must be of type Function");var h=this,g=function(){return f.apply(h,arguments)};i.apply(this,u).then(function(C){process.nextTick(g.bind(null,null,C))},function(C){process.nextTick($Z.bind(null,C,g))})}return Object.setPrototypeOf(s,Object.getPrototypeOf(i)),Object.defineProperties(s,J6(i)),s}Ve.callbackify=HZ});var p1=be((Tre,eB)=>{"use strict";function tu(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tu=function(u){return typeof u}:tu=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},tu(i)}function JZ(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function YZ(i,s){return s&&(tu(s)==="object"||typeof s=="function")?s:XZ(i)}function XZ(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function c1(i){return c1=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},c1(i)}function KZ(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),s&&
|
||
|
`),N=Wo(s).split(`
|
||
|
`),j=0,O="";if(u==="strictEqual"&&tn(i)==="object"&&tn(s)==="object"&&i!==null&&s!==null&&(u="strictEqualObject"),I.length===1&&N.length===1&&I[0]!==N[0]){var R=I[0].length+N[0].length;if(R<=fee){if((tn(i)!=="object"||i===null)&&(tn(s)!=="object"||s===null)&&(i!==0||s!==0))return"".concat(Ts[u],`
|
||
|
|
||
|
`)+"".concat(I[0]," !== ").concat(N[0],`
|
||
|
`)}else if(u!=="strictEqualObject"){var V=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(R<V){for(;I[0][j]===N[0][j];)j++;j>2&&(O=`
|
||
|
`.concat(pee(" ",j),"^"),j=0)}}}for(var Y=I[I.length-1],Z=N[N.length-1];Y===Z&&(j++<2?g=`
|
||
|
`.concat(Y).concat(g):c=Y,I.pop(),N.pop(),!(I.length===0||N.length===0));)Y=I[I.length-1],Z=N[N.length-1];var ue=Math.max(I.length,N.length);if(ue===0){var oe=x.split(`
|
||
|
`);if(oe.length>30)for(oe[26]="".concat(xn,"...").concat(Rt);oe.length>27;)oe.pop();return"".concat(Ts.notIdentical,`
|
||
|
|
||
|
`).concat(oe.join(`
|
||
|
`),`
|
||
|
`)}j>3&&(g=`
|
||
|
`.concat(xn,"...").concat(Rt).concat(g),C=!0),c!==""&&(g=`
|
||
|
`.concat(c).concat(g),c="");var fe=0,J=Ts[u]+`
|
||
|
`.concat(Go,"+ actual").concat(Rt," ").concat(Uo,"- expected").concat(Rt),W=" ".concat(xn,"...").concat(Rt," Lines skipped");for(j=0;j<ue;j++){var $=j-h;if(I.length<j+1)$>1&&j>2&&($>4?(f+=`
|
||
|
`.concat(xn,"...").concat(Rt),C=!0):$>3&&(f+=`
|
||
|
`.concat(N[j-2]),fe++),f+=`
|
||
|
`.concat(N[j-1]),fe++),h=j,c+=`
|
||
|
`.concat(Uo,"-").concat(Rt," ").concat(N[j]),fe++;else if(N.length<j+1)$>1&&j>2&&($>4?(f+=`
|
||
|
`.concat(xn,"...").concat(Rt),C=!0):$>3&&(f+=`
|
||
|
`.concat(I[j-2]),fe++),f+=`
|
||
|
`.concat(I[j-1]),fe++),h=j,f+=`
|
||
|
`.concat(Go,"+").concat(Rt," ").concat(I[j]),fe++;else{var G=N[j],ce=I[j],se=ce!==G&&(!rB(ce,",")||ce.slice(0,-1)!==G);se&&rB(G,",")&&G.slice(0,-1)===ce&&(se=!1,ce+=","),se?($>1&&j>2&&($>4?(f+=`
|
||
|
`.concat(xn,"...").concat(Rt),C=!0):$>3&&(f+=`
|
||
|
`.concat(I[j-2]),fe++),f+=`
|
||
|
`.concat(I[j-1]),fe++),h=j,f+=`
|
||
|
`.concat(Go,"+").concat(Rt," ").concat(ce),c+=`
|
||
|
`.concat(Uo,"-").concat(Rt," ").concat(G),fe+=2):(f+=c,c="",($===1||j===0)&&(f+=`
|
||
|
`.concat(ce),fe++))}if(fe>20&&j<ue-2)return"".concat(J).concat(W,`
|
||
|
`).concat(f,`
|
||
|
`).concat(xn,"...").concat(Rt).concat(c,`
|
||
|
`)+"".concat(xn,"...").concat(Rt)}return"".concat(J).concat(C?W:"",`
|
||
|
`).concat(f).concat(c).concat(g).concat(O)}var dee=function(i){see(s,i);function s(u){var c;if(nee(this,s),tn(u)!=="object"||u===null)throw new lee("options","Object",u);var f=u.message,h=u.operator,g=u.stackStartFn,C=u.actual,x=u.expected,I=Error.stackTraceLimit;if(Error.stackTraceLimit=0,f!=null)c=nu(this,xi(s).call(this,String(f)));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(xn="\x1B[34m",Go="\x1B[32m",Rt="\x1B[39m",Uo="\x1B[31m"):(xn="",Go="",Rt="",Uo="")),tn(C)==="object"&&C!==null&&tn(x)==="object"&&x!==null&&"stack"in C&&C instanceof Error&&"stack"in x&&x instanceof Error&&(C=nB(C),x=nB(x)),h==="deepStrictEqual"||h==="strictEqual")c=nu(this,xi(s).call(this,hee(C,x,h)));else if(h==="notDeepStrictEqual"||h==="notStrictEqual"){var N=Ts[h],j=Wo(C).split(`
|
||
|
`);if(h==="notStrictEqual"&&tn(C)==="object"&&C!==null&&(N=Ts.notStrictEqualObject),j.length>30)for(j[26]="".concat(xn,"...").concat(Rt);j.length>27;)j.pop();j.length===1?c=nu(this,xi(s).call(this,"".concat(N," ").concat(j[0]))):c=nu(this,xi(s).call(this,"".concat(N,`
|
||
|
|
||
|
`).concat(j.join(`
|
||
|
`),`
|
||
|
`)))}else{var O=Wo(C),R="",V=Ts[h];h==="notDeepEqual"||h==="notEqual"?(O="".concat(Ts[h],`
|
||
|
|
||
|
`).concat(O),O.length>1024&&(O="".concat(O.slice(0,1021),"..."))):(R="".concat(Wo(x)),O.length>512&&(O="".concat(O.slice(0,509),"...")),R.length>512&&(R="".concat(R.slice(0,509),"...")),h==="deepEqual"||h==="equal"?O="".concat(V,`
|
||
|
|
||
|
`).concat(O,`
|
||
|
|
||
|
should equal
|
||
|
|
||
|
`):R=" ".concat(h," ").concat(R)),c=nu(this,xi(s).call(this,"".concat(O).concat(R)))}return Error.stackTraceLimit=I,c.generatedMessage=!f,Object.defineProperty(f1(c),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),c.code="ERR_ASSERTION",c.actual=C,c.expected=x,c.operator=h,Error.captureStackTrace&&Error.captureStackTrace(f1(c),g),c.stack,c.name="AssertionError",nu(c)}return iee(s,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:d1.custom,value:function(c,f){return d1(this,tee({},f,{customInspect:!1,depth:0}))}}]),s}(h1(Error));iB.exports=dee});var oB=be((_re,uB)=>{"use strict";function aB(i,s){if(i==null)throw new TypeError("Cannot convert first argument to object");for(var u=Object(i),c=1;c<arguments.length;c++){var f=arguments[c];if(f!=null)for(var h=Object.keys(Object(f)),g=0,C=h.length;g<C;g++){var x=h[g],I=Object.getOwnPropertyDescriptor(f,x);I!==void 0&&I.enumerable&&(u[x]=f[x])}}return u}function mee(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:aB})}uB.exports={assign:aB,polyfill:mee}});var m1=be((Nre,lB)=>{"use strict";var cB=Object.prototype.toString;lB.exports=function(s){var u=cB.call(s),c=u==="[object Arguments]";return c||(c=u!=="[object Array]"&&s!==null&&typeof s=="object"&&typeof s.length=="number"&&s.length>=0&&cB.call(s.callee)==="[object Function]"),c}});var EB=be((Ire,DB)=>{"use strict";var yB;Object.keys||($o=Object.prototype.hasOwnProperty,g1=Object.prototype.toString,pB=m1(),y1=Object.prototype.propertyIsEnumerable,fB=!y1.call({toString:null},"toString"),hB=y1.call(function(){},"prototype"),Ho=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],bf=function(i){var s=i.constructor;return s&&s.prototype===i},dB={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},mB=function(){if(typeof window>"u")return!1;for(var i in window)try{if(!dB["$"+i]&&$o.call(window,i)&&window[i]!==null&&typeof window[i]=="object")try{bf(window[i])}catch{return!0}}catch{return!0}return!1}(),gB=function(i){if(typeof window>"u"||!mB)return bf(i);try{return bf(i)}catch{return!1}},yB=function(s){var u=s!==null&&typeof s=="object",c=g1.call(s)==="[object Function]",f=pB(s),h=u&&g1.call(s)==="[object String]",g=[];if(!u&&!c&&!f)throw new TypeError("Object.keys called on a non-object");var C=hB&&c;if(h&&s.length>0&&!$o.call(s,0))for(var x=0;x<s.length;++x)g.push(String(x));if(f&&s.length>0)for(var I=0;I<s.length;++I)g.push(String(I));else for(var N in s)!(C&&N==="prototype")&&$o.call(s,N)&&g.push(String(N));if(fB)for(var j=gB(s),O=0;O<Ho.length;++O)!(j&&Ho[O]==="constructor")&&$o.call(s,Ho[O])&&g.push(Ho[O]);return g});var $o,g1,pB,y1,fB,hB,Ho,bf,dB,mB,gB;DB.exports=yB});var vB=be((Pre,AB)=>{"use strict";var gee=Array.prototype.slice,yee=m1(),bB=Object.keys,Cf=bB?function(s){return bB(s)}:EB(),CB=Object.keys;Cf.shim=function(){if(Object.keys){var s=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);s||(Object.keys=function(c){return yee(c)?CB(gee.call(c)):CB(c)})}else Object.keys=Cf;return Object.keys||Cf};AB.exports=Cf});var SB=be((Ore,xB)=>{"use strict";var Dee=Lo(),D1=Dee("%Object.defineProperty%",!0),E1=function(){if(D1)try{return D1({},"a",{value:1}),!0}catch{return!1}return!1};E1.hasArrayLengthDefineBug=function(){if(!E1())return null;try{return D1([],"length",{value:1}).length!==1}catch{return!0}};xB.exports=E1});var Jo=be((Lre,TB)=>{"use strict";var Eee=vB(),bee=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Cee=Object.prototype.toString,Aee=Array.prototype.concat,FB=Object.defineProperty,vee=function(i){return typeof i=="function"&&Cee.call(i)==="[object F
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
|
* @license MIT
|
||
|
*/function sT(i,s){if(i===s)return 0;for(var u=i.length,c=s.length,f=0,h=Math.min(u,c);f<h;++f)if(i[f]!==s[f]){u=i[f],c=s[f];break}return u<c?-1:c<u?1:0}var Sf=void 0,Qee=!0,Zee=!1,F1=0,B1=1,aT=2,uT=3;function ete(i,s){return Uee?i.source===s.source&&i.flags===s.flags:RegExp.prototype.toString.call(i)===RegExp.prototype.toString.call(s)}function tte(i,s){if(i.byteLength!==s.byteLength)return!1;for(var u=0;u<i.byteLength;u++)if(i[u]!==s[u])return!1;return!0}function rte(i,s){return i.byteLength!==s.byteLength?!1:sT(new Uint8Array(i.buffer,i.byteOffset,i.byteLength),new Uint8Array(s.buffer,s.byteOffset,s.byteLength))===0}function nte(i,s){return i.byteLength===s.byteLength&&sT(new Uint8Array(i),new Uint8Array(s))===0}function ite(i,s){return KB(i)?KB(s)&&iT(Number.prototype.valueOf.call(i),Number.prototype.valueOf.call(s)):QB(i)?QB(s)&&String.prototype.valueOf.call(i)===String.prototype.valueOf.call(s):ZB(i)?ZB(s)&&Boolean.prototype.valueOf.call(i)===Boolean.prototype.valueOf.call(s):eT(i)?eT(s)&&BigInt.prototype.valueOf.call(i)===BigInt.prototype.valueOf.call(s):Jee(s)&&Symbol.prototype.valueOf.call(i)===Symbol.prototype.valueOf.call(s)}function rn(i,s,u,c){if(i===s)return i!==0?!0:u?iT(i,s):!0;if(u){if(Nr(i)!=="object")return typeof i=="number"&&S1(i)&&S1(s);if(Nr(s)!=="object"||i===null||s===null||Object.getPrototypeOf(i)!==Object.getPrototypeOf(s))return!1}else{if(i===null||Nr(i)!=="object")return s===null||Nr(s)!=="object"?i==s:!1;if(s===null||Nr(s)!=="object")return!1}var f=JB(i),h=JB(s);if(f!==h)return!1;if(Array.isArray(i)){if(i.length!==s.length)return!1;var g=xf(i,Sf),C=xf(s,Sf);return g.length!==C.length?!1:Yo(i,s,u,c,B1,g)}if(f==="[object Object]"&&(!Af(i)&&Af(s)||!vf(i)&&vf(s)))return!1;if(YB(i)){if(!YB(s)||Date.prototype.getTime.call(i)!==Date.prototype.getTime.call(s))return!1}else if(XB(i)){if(!XB(s)||!ete(i,s))return!1}else if($ee(i)||i instanceof Error){if(i.message!==s.message||i.name!==s.name)return!1}else if(zee(i)){if(!u&&(Yee(i)||Xee(i))){if(!tte(i,s))return!1}else if(!rte(i,s))return!1;var x=xf(i,Sf),I=xf(s,Sf);return x.length!==I.length?!1:Yo(i,s,u,c,F1,x)}else{if(vf(i))return!vf(s)||i.size!==s.size?!1:Yo(i,s,u,c,aT);if(Af(i))return!Af(s)||i.size!==s.size?!1:Yo(i,s,u,c,uT);if(Wee(i)){if(!nte(i,s))return!1}else if(Hee(i)&&!ite(i,s))return!1}return Yo(i,s,u,c,F1)}function tT(i,s){return s.filter(function(u){return wf(i,u)})}function Yo(i,s,u,c,f,h){if(arguments.length===5){h=Object.keys(i);var g=Object.keys(s);if(h.length!==g.length)return!1}for(var C=0;C<h.length;C++)if(!Xo(s,h[C]))return!1;if(u&&arguments.length===5){var x=Ff(i);if(x.length!==0){var I=0;for(C=0;C<x.length;C++){var N=x[C];if(wf(i,N)){if(!wf(s,N))return!1;h.push(N),I++}else if(wf(s,N))return!1}var j=Ff(s);if(x.length!==j.length&&tT(s,j).length!==I)return!1}else{var O=Ff(s);if(O.length!==0&&tT(s,O).length!==0)return!1}}if(h.length===0&&(f===F1||f===B1&&i.length===0||i.size===0))return!0;if(c===void 0)c={val1:new Map,val2:new Map,position:0};else{var R=c.val1.get(i);if(R!==void 0){var V=c.val2.get(s);if(V!==void 0)return R===V}c.position++}c.val1.set(i,c.position),c.val2.set(s,c.position);var Y=cte(i,s,u,h,c,f);return c.val1.delete(i),c.val2.delete(s),Y}function rT(i,s,u,c){for(var f=Bf(i),h=0;h<f.length;h++){var g=f[h];if(rn(s,g,u,c))return i.delete(g),!0}return!1}function oT(i){switch(Nr(i)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":i=+i;case"number":if(S1(i))return!1}return!0}function ste(i,s,u){var c=oT(u);return c??(s.has(c)&&!i.has(c))}function ate(i,s,u,c,f){var h=oT(u);if(h!=null)return h;var g=s.get(h);return g===void 0&&!s.has(h)||!rn(c,g,!1,f)?!1:!i.has(h)&&rn(c,g,!1,f)}function ute(i,s,u,c){for(var f=null,h=Bf(i),g=0;g<h.length;g++){var C=h[g];if(Nr(C)==="object"&&C!==null)f===null&&(f=new Set),f.add(C);else if(!s.has(C)){if(u||!ste(i,s,C))return!1;f===null&&(f=new Set),f.add(C)}}if(f!==null){for(var x=Bf(s),I=0;I<x.length;I++){var N=x[I];if(Nr(N)==="object"&&N!==null){if(!rT(f,N,u,c))return!1}else if(!u&&!i.has(N)&&!rT(f,N,u,c))return!1}return f.size===0}return!0}function nT(i,s,u
|
||
|
`)+'Actual message: "'.concat(s&&s.message,'"'),stackStartFn:i})}throw s}}ut.throws=function i(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];vT.apply(void 0,[i,CT(s)].concat(c))};ut.rejects=function i(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];return AT(s).then(function(h){return vT.apply(void 0,[i,h].concat(c))})};ut.doesNotThrow=function i(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];xT.apply(void 0,[i,CT(s)].concat(c))};ut.doesNotReject=function i(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];return AT(s).then(function(h){return xT.apply(void 0,[i,h].concat(c))})};ut.ifError=function i(s){if(s!=null){var u="ifError got unwanted exception: ";Si(s)==="object"&&typeof s.message=="string"?s.message.length===0&&s.constructor?u+=s.constructor.name:u+=s.message:u+=yte(s);var c=new ks({actual:s,expected:null,operator:"ifError",message:u,stackStartFn:i}),f=s.stack;if(typeof f=="string"){var h=f.split(`
|
||
|
`);h.shift();for(var g=c.stack.split(`
|
||
|
`),C=0;C<h.length;C++){var x=g.indexOf(h[C]);if(x!==-1){g=g.slice(0,x);break}}c.stack="".concat(g.join(`
|
||
|
`),`
|
||
|
`).concat(h.join(`
|
||
|
`))}throw c}};function ST(){for(var i=arguments.length,s=new Array(i),u=0;u<i;u++)s[u]=arguments[u];DT.apply(void 0,[ST,s.length].concat(s))}ut.strict=Ete(ST,ut,{equal:ut.strictEqual,deepEqual:ut.deepStrictEqual,notEqual:ut.notStrictEqual,notDeepEqual:ut.notDeepStrictEqual});ut.strict.strict=ut.strict});var ec=be(wT=>{(function i(s){"use strict";var u,c,f,h,g,C;function x(J){var W={},$,G;for($ in J)J.hasOwnProperty($)&&(G=J[$],typeof G=="object"&&G!==null?W[$]=x(G):W[$]=G);return W}function I(J,W){var $,G,ce,se;for(G=J.length,ce=0;G;)$=G>>>1,se=ce+$,W(J[se])?G=$:(ce=se+1,G-=$+1);return ce}u={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",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"},f={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","spe
|
||
|
`),w==="+"?b++:w==="-"?v++:w===" "&&(b++,v++)}if(b||D.newLines!==1||(D.newLines=0),v||D.oldLines!==1||(D.oldLines=0),t.strict){if(b!==D.newLines)throw new Error("Added line count did not match for hunk at line "+(m+1));if(v!==D.oldLines)throw new Error("Removed line count did not match for hunk at line "+(m+1))}return D}for(;o<r.length;)l();return a};var UD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,r,n){var a=!0,o=!1,l=!1,p=1;return function d(){if(a&&!l){if(o?p++:a=!1,t+p<=n)return p;l=!0}if(!o)return l||(a=!0),r<=t-p?-p++:(o=!0,d())}}})(UD),Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.applyPatch=zD,Ec.applyPatches=function(e,t){typeof e=="string"&&(e=(0,WD.parsePatch)(e));var r=0;(function n(){var a=e[r++];if(!a)return t.complete();t.loadFile(a,function(o,l){if(o)return t.complete(o);var p=zD(l,a,t);t.patched(a,p,function(d){if(d)return t.complete(d);n()})})})()};var WD=du,j_=function(e){return e&&e.__esModule?e:{default:e}}(UD);function zD(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string"&&(t=(0,WD.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var n,a,o=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],p=t.hunks,d=r.compareLine||function(Dt,lr,kt,_t){return lr===_t},m=0,y=r.fuzzFactor||0,D=0,b=0;function v(Dt,lr){for(var kt=0;kt<Dt.lines.length;kt++){var _t=Dt.lines[kt],Oa=_t.length>0?_t[0]:" ",_p=_t.length>0?_t.substr(1):_t;if(Oa===" "||Oa==="-"){if(!d(lr+1,o[lr],Oa,_p)&&++m>y)return!1;lr++}}return!0}for(var w=0;w<p.length;w++){for(var S=p[w],k=o.length-S.oldLines,P=0,_=b+S.oldStart-1,M=(0,j_.default)(_,D,k);P!==void 0;P=M())if(v(S,_+P)){S.offset=b+=P;break}if(P===void 0)return!1;D=S.offset+S.oldStart+S.oldLines}for(var U=0,q=0;q<p.length;q++){var H=p[q],Q=H.oldStart+H.offset+U-1;U+=H.newLines-H.oldLines;for(var te=0;te<H.lines.length;te++){var Ee=H.lines[te],ne=Ee.length>0?Ee[0]:" ",pe=Ee.length>0?Ee.substr(1):Ee,Be=H.linedelimiters[te];if(ne===" ")Q++;else if(ne==="-")o.splice(Q,1),l.splice(Q,1);else if(ne==="+")o.splice(Q,0,pe),l.splice(Q,0,Be),Q++;else if(ne==="\\"){var Se=H.lines[te-1]?H.lines[te-1][0]:null;Se==="+"?n=!0:Se==="-"&&(a=!0)}}}if(n)for(;!o[o.length-1];)o.pop(),l.pop();else a&&(o.push(""),l.push(`
|
||
|
`));for(var st=0;st<o.length-1;st++)o[st]=o[st]+l[st];return o.join("")}var bc={},Vi={};Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.structuredPatch=$D,Vi.formatPatch=HD,Vi.createTwoFilesPatch=JD,Vi.createPatch=function(e,t,r,n,a,o){return JD(e,e,t,r,n,a,o)};var R_=Y;function A0(e){return function(t){if(Array.isArray(t))return v0(t)}(e)||function(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,r){if(!!t){if(typeof t=="string")return v0(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v0(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $D(e,t,r,n,a,o,l){l||(l={}),l.context===void 0&&(l.context=4);var p=(0,R_.diffLines)(r,n,l);function d(P){return P.map(function(_){return" "+_})}p.push({value:"",lines:[]});for(var m=[],y=0,D=0,b=[],v=1,w=1,S=function(P){var _=p[P],M=_.lines||_.value.replace(/\n$/,"").split(`
|
||
|
`);if(_.lines=M,_.added||_.removed){var U;if(!y){var q=p[P-1];y=v,D=w,q&&(b=l.context>0?d(q.lines.slice(-l.context)):[],y-=b.length,D-=b.length)}(U=b).push.apply(U,A0(M.map(function(Se){return(_.added?"+":"-")+Se}))),_.added?w+=M.length:v+=M.length}else{if(y)if(M.length<=2*l.context&&P<p.length-2){var H;(H=b).push.apply(H,A0(d(M)))}else{var Q,te=Math.min(M.length,l.context);(Q=b).push.apply(Q,A0(d(M.slice(0,te))));var Ee={oldStart:y,oldLines:v-y+te,newStart:D,newLines:w-D+te,lines:b};if(P>=p.length-2&&M.length<=l.context){var ne=/\n$/.test(r),pe=/\n$/.test(n),Be=M.length==0&&b.length>Ee.oldLines;!ne&&Be&&r.length>0&&b.splice(Ee.oldLines,0,"\\ No newline at end of file"),(ne||Be)&&pe||b.push("\\ No newline at end of file")}m.push(Ee),y=0,D=0,b=[]}v+=M.length,w+=M.length}},k=0;k<p.length;k++)S(k);return{oldFileName:e,newFileName:t,oldHeader:a,newHeader:o,hunks:m}}function HD(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(e.oldHeader===void 0?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(e.newHeader===void 0?"":" "+e.newHeader));for(var r=0;r<e.hunks.length;r++){var n=e.hunks[r];n.oldLines===0&&(n.oldStart-=1),n.newLines===0&&(n.newStart-=1),t.push("@@ -"+n.oldStart+","+n.oldLines+" +"+n.newStart+","+n.newLines+" @@"),t.push.apply(t,n.lines)}return t.join(`
|
||
|
`)+`
|
||
|
`}function JD(e,t,r,n,a,o,l){return HD($D(e,t,r,n,a,o,l))}var Cc={};function YD(e,t){if(t.length>e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.arrayEqual=function(e,t){return e.length!==t.length?!1:YD(e,t)},Cc.arrayStartsWith=YD,Object.defineProperty(bc,"__esModule",{value:!0}),bc.calcLineCount=XD,bc.merge=function(e,t,r){e=KD(e,r),t=KD(t,r);var n={};(e.index||t.index)&&(n.index=e.index||t.index),(e.newFileName||t.newFileName)&&(QD(e)?QD(t)?(n.oldFileName=Ac(n,e.oldFileName,t.oldFileName),n.newFileName=Ac(n,e.newFileName,t.newFileName),n.oldHeader=Ac(n,e.oldHeader,t.oldHeader),n.newHeader=Ac(n,e.newHeader,t.newHeader)):(n.oldFileName=e.oldFileName,n.newFileName=e.newFileName,n.oldHeader=e.oldHeader,n.newHeader=e.newHeader):(n.oldFileName=t.oldFileName||e.oldFileName,n.newFileName=t.newFileName||e.newFileName,n.oldHeader=t.oldHeader||e.oldHeader,n.newHeader=t.newHeader||e.newHeader)),n.hunks=[];for(var a=0,o=0,l=0,p=0;a<e.hunks.length||o<t.hunks.length;){var d=e.hunks[a]||{oldStart:1/0},m=t.hunks[o]||{oldStart:1/0};if(ZD(d,m))n.hunks.push(eE(d,l)),a++,p+=d.newLines-d.oldLines;else if(ZD(m,d))n.hunks.push(eE(m,p)),o++,l+=m.newLines-m.oldLines;else{var y={oldStart:Math.min(d.oldStart,m.oldStart),oldLines:0,newStart:Math.min(d.newStart+l,m.oldStart+p),newLines:0,lines:[]};G_(y,d.oldStart,d.lines,m.oldStart,m.lines),o++,a++,n.hunks.push(y)}}return n};var V_=Vi,q_=du,x0=Cc;function Us(e){return function(t){if(Array.isArray(t))return S0(t)}(e)||function(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,r){if(!!t){if(typeof t=="string")return S0(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S0(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function S0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XD(e){var t=w0(e.lines),r=t.oldLines,n=t.newLines;r!==void 0?e.oldLines=r:delete e.oldLines,n!==void 0?e.newLines=n:delete e.newLines}function KD(e,t){if(typeof e=="string"){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,q_.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,V_.structuredPatch)(void 0,void 0,t,e)}return e}function QD(e){return e.newFileName&&e.newFileName!==e.oldFileName}function Ac(e,t,r){return t===r?t:(e.conflict=!0,{mine:t,theirs:r})}function ZD(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function eE(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function G_(e,t,r,n,a){var o={offset:t,lines:r,index:0},l={offset:n,lines:a,index:0};for(rE(e,o,l),rE(e,l,o);o.index<o.lines.length&&l.index<l.lines.length;){var p=o.lines[o.index],d=l.lines[l.index];if(p[0]!=="-"&&p[0]!=="+"||d[0]!=="-"&&d[0]!=="+")if(p[0]==="+"&&d[0]===" "){var m;(m=e.lines).push.apply(m,Us(qi(o)))}else if(d[0]==="+"&&p[0]===" "){var y;(y=e.lines).push.apply(y,Us(qi(l)))}else p[0]==="-"&&d[0]===" "?tE(e,o,l):d[0]==="-"&&p[0]===" "?tE(e,l,o,!0):p===d?(e.lines.push(p),o.index++,l.index++):F0(e,qi(o),qi(l));else U_(e,o,l)}nE(e,o),nE(e,l),XD(e)}function U_(e,t,r){var n=qi(t),a=qi(r);if(iE(n)&&iE(a)){var o,l;if((0,x0.arrayStartsWith)(n,a)&&sE(r,n,n.length-a.length))return void(o=e.lines).push.apply(o,Us(n));if((0,x0.arrayStartsWith)(a,n)&&sE(t,a,a.length-n.length))return void(l=e.lines).push.apply(l,Us(a))}else if((0,x0.arrayEqual)(n,a)){var p;return void(p=e.lines).push.apply(p,Us(n))}F0(e,n,a)}function tE(e,t,r,n){var a,o=qi(t),l=function(p,d){for(var m=[],y=[],D=0,b=!1,v=!1;D<d.length&&p.index<p.lines.length;){var w=p.lines[p.index],S=d[D];if(S[0]==="+")break;if(b=b||w[0]!==" ",y.push(S),D++,w[0]==="+")for(v=!0;w[0]==="+";)m.push(w),w=p.lines[++p.index];S.substr(1)===w.substr(1)?(m.push(w),p.index++):v=!0}if((d[D]||"")[0]==="+"&&b&&(v=!0),v)return m;for(;D<d.length;)y.push(d[D++]);return{merged:y,changes:m}}(r,o);l.merged?(a=e.lines).push.apply(a,Us(l.merged)):F0(e,n?l:o,n?o:l)}function F0(e,t,r){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:r})}function rE(e,t,r){for(;t.offset<r.offset&&t.index<t.lines.length;){var n=t.lines[t.index++];e.lines.push(n),t.offset++}}function nE(e,t){for(;t.index<t.lines.length;){var r=t.lines[t.index++];e.lines.push(r)}}function qi(e){for(var t=[],r=e.lines[e.index][0];e.index<e.lines.length;){var n=e.lines[e.index];if(r==="-"&&n[0]==="+"&&(r="+"),r!==n[0])break;t.push(n),e.index++}return t}function iE(e){return e.reduce(function(t,r){return t&&r[0]==="-"},!0)}function sE(e,t,r){for(var n=0;n<r;n++){var a=t[t.length-r+n].substr(1);if(e.lines[e.index+n]!==" "+a)return!1}return e.index+=r,!0}function w0(e){var t=0,r=0;return e.forEach(function(n){if(typeof n!="string"){var a=w0(n.mine),o=w0(n.theirs);t!==void 0&&(a.oldLines===o.oldLines?t+=a.oldLines:t=void 0),r!==void 0&&(a.newLines===o.newLines?r+=a.newLines:r=void 0)}else r===void 0||n[0]!=="+"&&n[0]!==" "||r++,t===void 0||n[0]!=="-"&&n[0]!==" "||t++}),{oldLines:t,newLines:r}}var B0={};Object.defineProperty(B0,"__esModule",{value:!0}),B0.convertChangesToDMP=function(e){for(var t,r,n=[],a=0;a<e.length;a++)t=e[a],r=t.added?1:t.removed?-1:0,n.push([r,t.value]);return n};var T0={};function W_(e){var t=e;return t=(t=(t=(t=t.replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">")).replace(/"/g,""")}function vc(e){return{type:"concat",parts:e}}function aE(e){return{type:"indent",contents:e}}function Ws(e,t){return{type:"align",contents:t,n:e}}function uE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}Object.defineProperty(T0,"__esModule",{value:!0}),T0.convertChangesToXML=function(e){for(var
|
||
|
Print (to stderr) where a cursor at the given position would move to after formatting.
|
||
|
This option cannot be used with --range-start and --range-end.
|
||
|
`]))),cliCategory:Bc},endOfLine:{since:"1.15.0",category:Gn,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Js(WE||(WE=zs([`
|
||
|
Maintain existing
|
||
|
(mixed values within one file are normalised by looking at what's used after the first line)
|
||
|
`])))}]},filepath:{since:"1.4.0",category:Wi,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:Tc,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Wi,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:Tc},parser:{since:"0.0.10",category:Gn,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Gn,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:R0},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Gn,description:Js(zE||(zE=zs([`
|
||
|
Custom directory that contains prettier plugins in node_modules subdirectory.
|
||
|
Overrides default behavior when plugins are searched relatively to the location of Prettier.
|
||
|
Multiple values are accepted.
|
||
|
`]))),exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin-search-dir",cliCategory:R0},printWidth:{since:"0.0.0",category:Gn,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Wi,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Js($E||($E=zs([`
|
||
|
Format code ending at a given character offset (exclusive).
|
||
|
The range will extend forwards to the end of the selected statement.
|
||
|
This option cannot be used with --cursor-offset.
|
||
|
`]))),cliCategory:Bc},rangeStart:{since:"1.4.0",category:Wi,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Js(HE||(HE=zs([`
|
||
|
Format code starting at a given character offset.
|
||
|
The range will extend backwards to the start of the first line containing the selected statement.
|
||
|
This option cannot be used with --cursor-offset.
|
||
|
`]))),cliCategory:Bc},requirePragma:{since:"1.7.0",category:Wi,type:"boolean",default:!1,description:Js(JE||(JE=zs([`
|
||
|
Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
||
|
in order for it to be formatted.
|
||
|
`]))),cliCategory:Tc},tabWidth:{type:"int",category:Gn,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Gn,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Gn,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},m4=["cliName","cliCategory","cliDescription"],V0={compare:M0,lt:p4,gte:h4},g4=(e,t)=>Object.entries(e).map(r=>{let[n,a]=r;return Object.assign({[t]:n},a)}),y4=u.version,D4=d4;function E4(e,t,r){let n=new Set(e.choices.map(a=>a.value));for(let a of t)if(a.parsers){for(let o of a.parsers)if(!n.has(o)){n.add(o);let l=r.find(d=>d.parsers&&d.parsers[o]),p=a.name;l&&l.name&&(p+=" (plugin: ".concat(l.name,")")),e.choices.push({value:o,description:p})}}}var q0={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=y4.split("-",1)[0],o=e.flatMap(y=>y.languages||[]).filter(p),l=g4(Object.assign({},...e.map(y=>{let{options:D}=y;return D}),D4),"name").filter(y=>p(y)&&d(y)).sort((y,D)=>y.name===D.name?0:y.name<D.name?-1:1).map(m).map(y=>{y=Object.assign({},y),Array.isArray(y.default)&&(y.default=y.default.length===1?y.default[0].value:y.default.filter(p).sort((b,v)=>V0.compare(v.since,b.since))[0].value),Array.isArray(y.choices)&&(y.choices=y.choices.filter(b=>p(b)&&d(b)),y.name==="parser"&&E4(y,o,e));let D=Object.fromEntries(e.filter(b=>b.defaultOptions&&b.defaultOptions[y.name]!==void 0).map(b=>[b.name,b.defaultOptions[y.name]]));return Object.assign(Object.assign({},y),{},{pluginDefaults:D})});return{languages:o,options:l};function p(y){return t||!("since"in y)||y.since&&V0.gte(a,y.since)}function d(y){return r||!("deprecated"in y)||y.deprecated&&V0.lt(a,y.deprecated)}function m(y){return n?y:P0(y,m4)}}};let b4=N0.exports,YE=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},C4=Mr,{getSupportInfo:A4}=q0,v4=/[^\x20-\x7F]/;function yu(e){return(t,r,n)=>{let a=n&&n.backwards;if(r===!1)return!1;let{length:o}=t,l=r;for(;l>=0&&l<o;){let p=t.charAt(l);if(e instanceof RegExp){if(!e.test(p))return l}else if(!e.includes(p))return l;a?l--:l++}return(l===-1||l===o)&&l}}let x4=yu(/\s/),zi=yu(" "),XE=yu(",; "),KE=yu(/[^\n\r]/);function G0(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}function U0(e,t){return t!==!1&&(e.charAt(t)==="/"&&e.charAt(t+1)==="/"?KE(e,t):t)}function Ys(e,t,r){let n=r&&r.backwards;if(t===!1)return!1;let a=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&a===`
|
||
|
`)return t-2;if(a===`
|
||
|
`||a==="\r"||a==="\u2028"||a==="\u2029")return t-1}else{if(a==="\r"&&e.charAt(t+1)===`
|
||
|
`)return t+2;if(a===`
|
||
|
`||a==="\r"||a==="\u2028"||a==="\u2029")return t+1}return t}function QE(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=zi(e,r.backwards?t-1:t,r),a=Ys(e,n,r);return n!==a}function ZE(e,t){let r=null,n=t;for(;n!==r;)r=n,n=XE(e,n),n=G0(e,n),n=zi(e,n);return n=U0(e,n),n=Ys(e,n),n!==!1&&QE(e,n)}function eb(e,t){let r=null,n=t;for(;n!==r;)r=n,n=zi(e,n),n=G0(e,n),n=U0(e,n),n=Ys(e,n);return n}function tb(e,t,r){return eb(e,r(t))}function rb(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=0;for(let a=r;a<e.length;++a)e[a]===" "?n=n+t-n%t:n++;return n}function nb(e,t){let r={quote:'"',regex:/"/g,escaped:"""},n={quote:"'",regex:/'/g,escaped:"'"},a=t==="'"?n:r,o=a===n?r:n,l=a;return(e.includes(a.quote)||e.includes(o.quote))&&(l=(e.match(a.regex)||[]).length>(e.match(o.regex)||[]).length?o:a),l}function ib(e,t,r){let n=t==='"'?"'":'"',a=e.replace(/\\(.)|(["'])/gs,(o,l,p)=>l===n?l:p===t?"\\"+p:p||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(l)?l:"\\"+l));return t+a+t}function W0(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(r){let n=r.type||r.kind||"(unknown type)",a=String(r.name||r.id&&(typeof r.id=="object"?r.id.name:r.id)||r.key&&(typeof r.key=="object"?r.key.name:r.key)||r.value&&(typeof r.value=="object"?"":String(r.value))||r.operator||"");return a.length>20&&(a=a.slice(0,19)+"\u2026"),n+(a?" "+a:"")}(e)}var ke={inferParserByLanguage:function(e,t){let{languages:r}=A4({plugins:t.plugins}),n=r.find(a=>{let{name:o}=a;return o.toLowerCase()===e})||r.find(a=>{let{aliases:o}=a;return Array.isArray(o)&&o.includes(e)})||r.find(a=>{let{extensions:o}=a;return Array.isArray(o)&&o.includes(".".concat(e))});return n&&n.parsers[0]},getStringWidth:function(e){return e?v4.test(e)?b4(e):e.length:0},getMaxContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(YE(t),")+"),"g"));return r===null?0:r.reduce((n,a)=>Math.max(n,a.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){let r=e.match(new RegExp("(".concat(YE(t),")+"),"g"));if(r===null)return 0;let n=new Map,a=0;for(let o of r){let l=o.length/t.length;n.set(l,!0),l>a&&(a=l)}for(let o=1;o<a;o++)if(!n.get(o))return o;return a+1},getPenultimate:e=>e[e.length-2],getLast:C4,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:eb,getNextNonSpaceNonCommentCharacterIndex:tb,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(tb(e,t,r))},skip:yu,skipWhitespace:x4,skipSpaces:zi,skipToLineEnd:XE,skipEverythingButNewLine:KE,skipInlineComment:G0,skipTrailingComment:U0,skipNewline:Ys,isNextLineEmptyAfterIndex:ZE,isNextLineEmpty:function(e,t,r){return ZE(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=zi(e,n,{backwards:!0}),n=Ys(e,n,{backwards:!0}),n=zi(e,n,{backwards:!0}),n!==Ys(e,n,{backwards:!0})},hasNewline:QE,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
||
|
`)return!0;return!1},hasSpaces:function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return zi(e,r.backwards?t-1:t,r)!==t},getAlignmentSize:rb,getIndentSize:function(e,t){let r=e.lastIndexOf(`
|
||
|
`);return r===-1?0:rb(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:nb,printString:function(e,t){let r=e.slice(1,-1);return ib(r,t.parser==="json"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":nb(r,t.singleQuote?"'":'"').quote,!(t.parser==="css"||t.parser==="less"||t.parser==="scss"||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:ib,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,W0(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),W0(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,W0(e,t)},isFrontMatterNode:function(e){return e&&e.type==="front-matter"},getShebang:function(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
||
|
`);return t===-1?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}},z0={guessEndOfLine:function(e){let t=e.indexOf("\r");return t>=0?e.charAt(t+1)===`
|
||
|
`?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return`\r
|
||
|
`;default:return`
|
||
|
`}},countEndOfLineChars:function(e,t){let r;if(t===`
|
||
|
`)r=/\n/g;else if(t==="\r")r=/\r/g;else{if(t!==`\r
|
||
|
`)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));r=/\r\n/g}let n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,`
|
||
|
`)}};let kc=Mr,{literalline:S4,join:F4}=_0,Xs=e=>Array.isArray(e)||e&&e.type==="concat",Ks=e=>{if(Array.isArray(e))return e;if(e.type!=="concat"&&e.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},sb={};function $0(e,t,r,n){let a=[e];for(;a.length>0;){let o=a.pop();if(o!==sb){if(r&&a.push(o,sb),!t||t(o)!==!1)if(Xs(o)||o.type==="fill"){let l=Ks(o);for(let p=l.length-1;p>=0;--p)a.push(l[p])}else if(o.type==="if-break")o.flatContents&&a.push(o.flatContents),o.breakContents&&a.push(o.breakContents);else if(o.type==="group"&&o.expandedStates)if(n)for(let l=o.expandedStates.length-1;l>=0;--l)a.push(o.expandedStates[l]);else a.push(o.contents);else o.contents&&a.push(o.contents)}else r(a.pop())}}function Du(e,t){let r=new Map;return n(e);function n(a){if(r.has(a))return r.get(a);let o=function(l){if(Array.isArray(l))return t(l.map(n));if(l.type==="concat"||l.type==="fill"){let p=l.parts.map(n);return t(Object.assign(Object.assign({},l),{},{parts:p}))}if(l.type==="if-break"){let p=l.breakContents&&n(l.breakContents),d=l.flatContents&&n(l.flatContents);return t(Object.assign(Object.assign({},l),{},{breakContents:p,flatContents:d}))}if(l.type==="group"&&l.expandedStates){let p=l.expandedStates.map(n),d=p[0];return t(Object.assign(Object.assign({},l),{},{contents:d,expandedStates:p}))}if(l.contents){let p=n(l.contents);return t(Object.assign(Object.assign({},l),{},{contents:p}))}return t(l)}(a);return r.set(a,o),o}}function H0(e,t,r){let n=r,a=!1;return $0(e,function(o){let l=t(o);if(l!==void 0&&(a=!0,n=l),a)return!1}),n}function w4(e){return!(e.type!=="group"||!e.break)||!(e.type!=="line"||!e.hard)||e.type==="break-parent"||void 0}function ab(e){if(e.length>0){let t=kc(e);t.expandedStates||t.break||(t.break="propagated")}return null}function B4(e){return e.type!=="line"||e.hard?e.type==="if-break"?e.flatContents||"":e:e.soft?"":" "}let T4=(e,t)=>e&&e.type==="line"&&e.hard&&t&&t.type==="break-parent";function Eu(e){if(!e)return e;if(Xs(e)||e.type==="fill"){let t=Ks(e);for(;t.length>1&&T4(...t.slice(-2));)t.length-=2;if(t.length>0){let r=Eu(kc(t));t[t.length-1]=r}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let t=Eu(e.contents);return Object.assign(Object.assign({},e),{},{contents:t})}case"if-break":{let t=Eu(e.breakContents),r=Eu(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:t,flatContents:r})}}return e}function ub(e){return Du(e,t=>function(r){switch(r.type){case"fill":if(r.parts.every(a=>a===""))return"";break;case"group":if(!(r.contents||r.id||r.break||r.expandedStates))return"";if(r.contents.type==="group"&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!r.contents)return"";break;case"if-break":if(!r.flatContents&&!r.breakContents)return""}if(!Xs(r))return r;let n=[];for(let a of Ks(r)){if(!a)continue;let[o,...l]=Xs(a)?Ks(a):[a];typeof o=="string"&&typeof kc(n)=="string"?n[n.length-1]+=o:n.push(o),n.push(...l)}return n.length===0?"":n.length===1?n[0]:Array.isArray(r)?n:Object.assign(Object.assign({},r),{},{parts:n})}(t))}function J0(e){let t=[],r=e.filter(Boolean);for(;r.length>0;){let n=r.shift();n&&(Xs(n)?r.unshift(...Ks(n)):t.length>0&&typeof kc(t)=="string"&&typeof n=="string"?t[t.length-1]+=n:t.push(n))}return t}function ob(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S4;return F4(t,e.split(`
|
||
|
`)).parts}function k4(e){if(e.type==="line")return!0}var Y0={isConcat:Xs,getDocParts:Ks,willBreak:function(e){return H0(e,w4,!1)},traverseDoc:$0,findInDoc:H0,mapDoc:Du,propagateBreaks:function(e){let t=new Set,r=[];$0(e,function(n){if(n.type==="break-parent"&&ab(r),n.type==="group"){if(r.push(n),t.has(n))return!1;t.add(n)}},function(n){n.type==="group"&&r.pop().break&&ab(r)},!0)},removeLines:function(e){return Du(e,B4)},stripTrailingHardline:function(e){return Eu(ub(e))},normalizeParts:J0,normalizeDoc:function(e){return Du(e,t=>Array.isArray(t)?J0(t):t.parts?Object.assign(Object.assign({},t),{},{parts:J0(t.parts)}):t)},cleanDoc:ub,replaceTextEndOfLine:ob,replaceEndOfLine:function(e){return Du(e,t=>typeof t=="string"&&t.includes(`
|
||
|
`)?ob(t):t)},canBreak:function(e){return H0(e,k4,!1)}};let{getStringWidth:cb,getLast:fi}=ke,{convertEndOfLineToChars:_4}=z0,{fill:N4,cursor:X0,indent:_c}=_0,{isConcat:lb,getDocParts:pb}=Y0,bu;function fb(e,t){return K0(e,{type:"indent"},t)}function hb(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?K0(e,{type:"dedent"},r):t?t.type==="root"?Object.assign(Object.assign({},e),{},{root:e}):K0(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function K0(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],a="",o=0,l=0,p=0;for(let v of n)switch(v.type){case"indent":y(),r.useTabs?d(1):m(r.tabWidth);break;case"stringAlign":y(),a+=v.n,o+=v.n.length;break;case"numberAlign":l+=1,p+=v.n;break;default:throw new Error("Unexpected type '".concat(v.type,"'"))}return D(),Object.assign(Object.assign({},e),{},{value:a,length:o,queue:n});function d(v){a+=" ".repeat(v),o+=r.tabWidth*v}function m(v){a+=" ".repeat(v),o+=v}function y(){r.useTabs?function(){l>0&&d(l),b()}():D()}function D(){p>0&&m(p),b()}function b(){l=0,p=0}}function Q0(e){if(e.length===0)return 0;let t=0;for(;e.length>0&&typeof fi(e)=="string"&&/^[\t ]*$/.test(fi(e));)t+=e.pop().length;if(e.length>0&&typeof fi(e)=="string"){let r=fi(e).replace(/[\t ]*$/,"");t+=fi(e).length-r.length,e[e.length-1]=r}return t}function Nc(e,t,r,n,a,o){let l=t.length,p=[e],d=[];for(;r>=0;){if(p.length===0){if(l===0)return!0;p.push(t[l-1]),l--;continue}let[m,y,D]=p.pop();if(typeof D=="string")d.push(D),r-=cb(D);else if(lb(D)){let b=pb(D);for(let v=b.length-1;v>=0;v--)p.push([m,y,b[v]])}else switch(D.type){case"indent":p.push([fb(m,n),y,D.contents]);break;case"align":p.push([hb(m,D.n,n),y,D.contents]);break;case"trim":r+=Q0(d);break;case"group":{if(o&&D.break)return!1;let b=D.break?1:y;p.push([m,b,D.expandedStates&&b===1?fi(D.expandedStates):D.contents]),D.id&&(bu[D.id]=b);break}case"fill":for(let b=D.parts.length-1;b>=0;b--)p.push([m,y,D.parts[b]]);break;case"if-break":case"indent-if-break":{let b=D.groupId?bu[D.groupId]:y;if(b===1){let v=D.type==="if-break"?D.breakContents:D.negate?D.contents:_c(D.contents);v&&p.push([m,y,v])}if(b===2){let v=D.type==="if-break"?D.flatContents:D.negate?_c(D.contents):D.contents;v&&p.push([m,y,v])}break}case"line":switch(y){case 2:if(!D.hard){D.soft||(d.push(" "),r-=1);break}return!0;case 1:return!0}break;case"line-suffix":a=!0;break;case"line-suffix-boundary":if(a)return!1;break;case"label":p.push([m,y,D.contents])}}return!1}var I4={printDocToString:function(e,t){bu={};let r=t.printWidth,n=_4(t.endOfLine),a=0,o=[[{value:"",length:0,queue:[]},1,e]],l=[],p=!1,d=[];for(;o.length>0;){let[y,D,b]=o.pop();if(typeof b=="string"){let v=n!==`
|
||
|
`?b.replace(/\n/g,n):b;l.push(v),a+=cb(v)}else if(lb(b)){let v=pb(b);for(let w=v.length-1;w>=0;w--)o.push([y,D,v[w]])}else switch(b.type){case"cursor":l.push(X0.placeholder);break;case"indent":o.push([fb(y,t),D,b.contents]);break;case"align":o.push([hb(y,b.n,t),D,b.contents]);break;case"trim":a-=Q0(l);break;case"group":switch(D){case 2:if(!p){o.push([y,b.break?1:2,b.contents]);break}case 1:{p=!1;let v=[y,2,b.contents],w=r-a,S=d.length>0;if(!b.break&&Nc(v,o,w,t,S))o.push(v);else if(b.expandedStates){let k=fi(b.expandedStates);if(b.break){o.push([y,1,k]);break}for(let P=1;P<b.expandedStates.length+1;P++){if(P>=b.expandedStates.length){o.push([y,1,k]);break}{let _=[y,2,b.expandedStates[P]];if(Nc(_,o,w,t,S)){o.push(_);break}}}}else o.push([y,1,b.contents]);break}}b.id&&(bu[b.id]=fi(o)[1]);break;case"fill":{let v=r-a,{parts:w}=b;if(w.length===0)break;let[S,k]=w,P=[y,2,S],_=[y,1,S],M=Nc(P,[],v,t,d.length>0,!0);if(w.length===1){M?o.push(P):o.push(_);break}let U=[y,2,k],q=[y,1,k];if(w.length===2){M?o.push(U,P):o.push(q,_);break}w.splice(0,2);let H=[y,D,N4(w)];Nc([y,2,[S,k,w[0]]],[],v,t,d.length>0,!0)?o.push(H,U,P):M?o.push(H,q,P):o.push(H,q,_);break}case"if-break":case"indent-if-break":{let v=b.groupId?bu[b.groupId]:D;if(v===1){let w=b.type==="if-break"?b.breakContents:b.negate?b.contents:_c(b.contents);w&&o.push([y,D,w])}if(v===2){let w=b.type==="if-break"?b.flatContents:b.negate?_c(b.contents):b.contents;w&&o.push([y,D,w])}break}case"line-suffix":d.push([y,D,b.contents]);break;case"line-suffix-boundary":d.length>0&&o.push([y,D,{type:"line",hard:!0}]);break;case"line":switch(D){case 2:if(!b.hard){b.soft||(l.push(" "),a+=1);break}p=!0;case 1:if(d.length>0){o.push([y,D,b],...d.reverse()),d=[];break}b.literal?y.root?(l.push(n,y.root.value),a=y.root.length):(l.push(n),a=0):(a-=Q0(l),l.push(n+y.value),a=y.length)}break;case"label":o.push([y,D,b.contents])}o.length===0&&d.length>0&&(o.push(...d.reverse()),d=[])}let m=l.indexOf(X0.placeholder);if(m!==-1){let y=l.indexOf(X0.placeholder,m+1),D=l.slice(0,m).join(""),b=l.slice(m+1,y).join("");return{formatted:D+b+l.slice(y+1).join(""),cursorNodeStart:D.length,cursorNodeText:b}}return{formatted:l.join("")}}};let{isConcat:Z0,getDocParts:db}=Y0;function Un(e){if(!e)return"";if(Z0(e)){let t=[];for(let r of db(e))if(Z0(r))t.push(...Un(r).parts);else{let n=Un(r);n!==""&&t.push(n)}return{type:"concat",parts:t}}return e.type==="if-break"?Object.assign(Object.assign({},e),{},{breakContents:Un(e.breakContents),flatContents:Un(e.flatContents)}):e.type==="group"?Object.assign(Object.assign({},e),{},{contents:Un(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(Un)}):e.type==="fill"?{type:"fill",parts:e.parts.map(Un)}:e.contents?Object.assign(Object.assign({},e),{},{contents:Un(e.contents)}):e}var P4={printDocToDebug:function(e){let t=Object.create(null),r=new Set;return function a(o,l,p){if(typeof o=="string")return JSON.stringify(o);if(Z0(o)){let d=db(o).map(a).filter(Boolean);return d.length===1?d[0]:"[".concat(d.join(", "),"]")}if(o.type==="line"){let d=Array.isArray(p)&&p[l+1]&&p[l+1].type==="break-parent";return o.literal?d?"literalline":"literallineWithoutBreakParent":o.hard?d?"hardline":"hardlineWithoutBreakParent":o.soft?"softline":"line"}if(o.type==="break-parent")return Array.isArray(p)&&p[l-1]&&p[l-1].type==="line"&&p[l-1].hard?void 0:"breakParent";if(o.type==="trim")return"trim";if(o.type==="indent")return"indent("+a(o.contents)+")";if(o.type==="align")return o.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+a(o.contents)+")":o.n<0?"dedent("+a(o.contents)+")":o.n.type==="root"?"markAsRoot("+a(o.contents)+")":"align("+JSON.stringify(o.n)+", "+a(o.contents)+")";if(o.type==="if-break")return"ifBreak("+a(o.breakContents)+(o.flatContents?", "+a(o.flatContents):"")+(o.groupId?(o.flatContents?"":', ""')+", { groupId: ".concat(n(o.groupId)," }"):"")+")";if(o.type==="indent-if-break"){let d=[];o.negate&&d.push("negate: true"),o.groupId&&d.push("groupId: ".concat(n(o.groupId)));let m=d.length>0?", { ".concat(d.join(", ")," }"):"";return"indentIfBreak(".concat(a(o.contents)).concat(m,"
|
||
|
`,arch:nC,platform:iC,tmpdir:sC,tmpDir:yh,networkInterfaces:tC,getNetworkInterfaces:rC,release:eC,type:Zb,cpus:Qb,totalmem:Kb,freemem:Xb,uptime:Yb,loadavg:Jb,hostname:Hb,endianness:$b},Uc=s(Object.freeze({__proto__:null,endianness:$b,hostname:Hb,loadavg:Jb,uptime:Yb,freemem:Xb,totalmem:Kb,cpus:Qb,type:Zb,release:eC,networkInterfaces:tC,getNetworkInterfaces:rC,arch:nC,platform:iC,tmpDir:yh,tmpdir:sC,EOL:`
|
||
|
`,default:mI}));let gI=Uc,fn=(e,t)=>{t=t||et.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n<a)},Wt=et.env,ea;function Dh(e){let t=function(r){if(ea===!1)return 0;if(fn("color=16m")||fn("color=full")||fn("color=truecolor"))return 3;if(fn("color=256"))return 2;if(r&&!r.isTTY&&ea!==!0)return 0;let n=ea?1:0;if(et.platform==="win32"){let a=gI.release().split(".");return Number(et.versions.node.split(".")[0])>=8&&Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Wt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(a=>a in Wt)||Wt.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Wt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Wt.TEAMCITY_VERSION)?1:0;if(Wt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Wt){let a=parseInt((Wt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Wt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Wt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Wt.TERM)||"COLORTERM"in Wt?1:(Wt.TERM,n)}(e);return function(r){return r!==0&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}(t)}fn("no-color")||fn("no-colors")||fn("color=false")?ea=!1:(fn("color")||fn("colors")||fn("color=true")||fn("color=always"))&&(ea=!0),"FORCE_COLOR"in Wt&&(ea=Wt.FORCE_COLOR.length===0||parseInt(Wt.FORCE_COLOR,10)!==0);var yI={supportsColor:Dh,stdout:Dh(et.stdout),stderr:Dh(et.stderr)};let DI=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,aC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,EI=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bI=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,CI=new Map([["n",`
|
||
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function uC(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):CI.get(e)||e}function AI(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n)if(isNaN(o)){if(!(a=o.match(EI)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(bI,(l,p,d)=>p?uC(p):d))}else r.push(Number(o));return r}function vI(e){aC.lastIndex=0;let t=[],r;for(;(r=aC.exec(e))!==null;){let n=r[1];if(r[2]){let a=AI(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function oC(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let a of Object.keys(r))if(Array.isArray(r[a])){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=r[a].length>0?n[a].apply(n,r[a]):n[a]}return n}var xI=(e,t)=>{let r=[],n=[],a=[];if(t.replace(DI,(o,l,p,d,m,y)=>{if(l)a.push(uC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:oC(e,r)(D)),r.push({inverse:p,styles:vI(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(oC(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};(function(e){let t=uI,r=hh.exports,n=yI.stdout,a=xI,o=et.platform==="win32"&&!(et.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],p=new Set(["gray"]),d=Object.create(null);function m(S,k){k=k||{};let P=n?n.level:0;S.level=k.level===void 0?P:k.level,S.enabled="enabled"in k?k.enabled:S.level>0}function y(S){if(!this||!(this instanceof y)||this.template){let k={};return m(k,S),k.template=function(){let P=[].slice.call(arguments);return w.apply(null,[k.template].concat(P))},Object.setPrototypeOf(k,y.prototype),Object.setPrototypeOf(k.template,k),k.template.constructor=y,k.template}m(this,S)}o&&(r.blue.open="\x1B[94m");for(let S of Object.keys(r))r[S].closeRe=new RegExp(t(r[S].close),"g"),d[S]={get(){let k=r[S];return b.call(this,this._styles?this._styles.concat(k):[k],this._empty,S)}};d.visible={get(){return b.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let S of Object.keys(r.color.ansi))p.has(S)||(d[S]={get(){let k=this.level;return function(){let P=r.color[l[k]][S].apply(null,arguments),_={open:P,close:r.color.close,closeRe:r.color.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let S of Object.keys(r.bgColor.ansi))p.has(S)||(d["bg"+S[0].toUpperCase()+S.slice(1)]={get(){let k=this.level;return function(){let P=r.bgColor[l[k]][S].apply(null,arguments),_={open:P,close:r.bgColor.close,closeRe:r.bgColor.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});let D=Object.defineProperties(()=>{},d);function b(S,k,P){let _=function(){return v.apply(_,arguments)};_._styles=S,_._empty=k;let M=this;return Object.defineProperty(_,"level",{enumerable:!0,get:()=>M.level,set(U){M.level=U}}),Object.defineProperty(_,"enabled",{enumerable:!0,get:()=>M.enabled,set(U){M.enabled=U}}),_.hasGrey=this.hasGrey||P==="gray"||P==="grey",_.__proto__=D,_}function v(){let S=arguments,k=S.length,P=String(arguments[0]);if(k===0)return"";if(k>1)for(let M=1;M<k;M++)P+=" "+S[M];if(!this.enabled||this.level<=0||!P)return this._empty?"":P;let _=r.dim.open;o&&this.hasGrey&&(r.dim.open="");for(let M of this._styles.slice().reverse())P=M.open+P.replace(M.closeRe,M.open)+M.close,P=P.replace(/\r?\n/g,"".concat(M.close,"$&").concat(M.open));return r.dim.open=_,P}function w(S,k){if(!Array.isArray(k))return[].slice.call(arguments,1).join(" ");let P=[].slice.call(arguments,2),_=[k.raw[0]];for(let M=1;M<k.length;M++)_.push(String(P[M-1]).replace(/[{}\\]/g,"\\$&")),_.push(String(k.raw[M]));return a(S,_.join(""))}Object.d
|
||
|
`:`
|
||
|
`)+r,a=n+1,n=e.indexOf(`
|
||
|
`,a)}while(n!==-1);return o+=e.substr(a),o}};let s7=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,TC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a7=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,u7=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o7=new Map([["n",`
|
||
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function kC(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o7.get(e)||e}function c7(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n){let l=Number(o);if(Number.isNaN(l)){if(!(a=o.match(a7)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(u7,(p,d,m)=>d?kC(d):m))}else r.push(l)}return r}function l7(e){TC.lastIndex=0;let t=[],r;for(;(r=TC.exec(e))!==null;){let n=r[1];if(r[2]){let a=c7(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function _C(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let[a,o]of Object.entries(r))if(Array.isArray(o)){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=o.length>0?n[a](...o):n[a]}return n}var p7=(e,t)=>{let r=[],n=[],a=[];if(t.replace(s7,(o,l,p,d,m,y)=>{if(l)a.push(kC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:_C(e,r)(D)),r.push({inverse:p,styles:l7(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(_C(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};let xu=AC.exports,{stdout:Lh,stderr:Mh}=n7,{stringReplaceAll:f7,stringEncaseCRLFWithFirstIndex:h7}=i7,{isArray:Yc}=Array,NC=["ansi","ansi","ansi256","ansi16m"],ia=Object.create(null);class d7{constructor(t){return IC(t)}}let IC=e=>{let t={};return function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.level&&!(Number.isInteger(n.level)&&n.level>=0&&n.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let a=Lh?Lh.level:0;r.level=n.level===void 0?a:n.level}(t,e),t.template=function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return LC(t.template,...n)},Object.setPrototypeOf(t,Xc.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=d7,t.template};function Xc(e){return IC(e)}for(let[e,t]of Object.entries(xu))ia[e]={get(){let r=Kc(this,jh(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};ia.visible={get(){let e=Kc(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};let PC=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of PC)ia[e]={get(){let{level:t}=this;return function(){let r=jh(xu.color[NC[t]][e](...arguments),xu.color.close,this._styler);return Kc(this,r,this._isEmpty)}}};for(let e of PC)ia["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(){let r=jh(xu.bgColor[NC[t]][e](...arguments),xu.bgColor.close,this._styler);return Kc(this,r,this._isEmpty)}}};let m7=Object.defineProperties(()=>{},Object.assign(Object.assign({},ia),{},{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),jh=(e,t,r)=>{let n,a;return r===void 0?(n=e,a=t):(n=r.openAll+e,a=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:a,parent:r}},Kc=(e,t,r)=>{let n=function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return Yc(o[0])&&Yc(o[0].raw)?OC(n,LC(n,...o)):OC(n,o.length===1?""+o[0]:o.join(" "))};return Object.setPrototypeOf(n,m7),n._generator=e,n._styler=t,n._isEmpty=r,n},OC=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:a}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=f7(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
||
|
`);return o!==-1&&(t=h7(t,a,n,o)),n+t+a},Rh,LC=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[a]=r;if(!Yc(a)||!Yc(a.raw))return r.join(" ");let o=r.slice(1),l=[a.raw[0]];for(let p=1;p<a.length;p++)l.push(String(o[p-1]).replace(/[{}\\]/g,"\\$&"),String(a.raw[p]));return Rh===void 0&&(Rh=p7),Rh(e,l.join(""))};Object.defineProperties(Xc.prototype,ia);let Qc=Xc();Qc.supportsColor=Lh,Qc.stderr=Xc({level:Mh?Mh.level:0}),Qc.stderr.supportsColor=Mh;var g7=Qc;let y7=["_"],qr=Rb,D7=_h.exports,MC=g7,E7=Mr,Zc={key:e=>e.length===1?"-".concat(e):"--".concat(e),value:e=>qr.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return r===!1?"--no-".concat(t):r===!0?Zc.key(t):r===""?"".concat(Zc.key(t)," without an argument"):"".concat(Zc.key(t),"=").concat(r)}};class b7 extends qr.ChoiceSchema{constructor(t){let{name:r,flags:n}=t;super({name:r,choices:n}),this._flags=[...n].sort()}preprocess(t,r){if(typeof t=="string"&&t.length>0&&!this._flags.includes(t)){let n=this._flags.find(a=>D7(a,t)<3);if(n)return r.logger.warn(["Unknown flag ".concat(MC.yellow(r.descriptor.value(t)),","),"did you mean ".concat(MC.blue(r.descriptor.value(n)),"?")].join(" ")),n}return t}expected(){return"a flag"}}let Vh;function jC(e,t){let{logger:r,isCLI:n=!1,passThrough:a=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a?Array.isArray(a)?(D,b)=>a.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,v)=>{let w=P0(v.schemas,y7);return qr.levenUnknownHandler(D,b,Object.assign(Object.assign({},v),{},{schemas:w}))},l=n?Zc:qr.apiDescriptor,p=C7(t,{isCLI:n}),d=new qr.Normalizer(p,{logger:r,unknown:o,descriptor:l}),m=r!==!1;m&&Vh&&(d._hasDeprecationWarned=Vh);let y=d.normalize(e);return m&&(Vh=d._hasDeprecationWarned),y}function C7(e,t){let{isCLI:r}=t,n=[];r&&n.push(qr.AnySchema.create({name:"_"}));for(let a of e)n.push(A7(a,{isCLI:r,optionInfos:e})),a.alias&&r&&n.push(qr.AliasSchema.create({name:a.alias,sourceName:a.name}));return n}function A7(e,t){let r,{isCLI:n,optionInfos:a}=t,o={name:e.name},l={};switch(e.type){case"int":r=qr.IntegerSchema,n&&(o.preprocess=p=>Number(p));break;case"string":case"path":r=qr.StringSchema;break;case"choice":r=qr.ChoiceSchema,o.choices=e.choices.map(p=>typeof p=="object"&&p.redirect?Object.assign(Object.assign({},p),{},{redirect:{to:{key:e.name,value:p.redirect}}}):p);break;case"boolean":r=qr.BooleanSchema;break;case"flag":r=b7,o.flags=a.flatMap(p=>[p.alias,p.description&&p.name,p.oppositeDescription&&"no-".concat(p.name)].filter(Boolean));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(p,d,m)=>e.exception(p)||d.validate(p,m):o.validate=(p,d,m)=>p===void 0||d.validate(p,m),e.redirect&&(l.redirect=p=>p?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(l.deprecated=!0),n&&!e.array){let p=o.preprocess||(d=>d);o.preprocess=(d,m,y)=>m.preprocess(p(Array.isArray(d)?E7(d):d),y)}return e.array?qr.ArraySchema.create(Object.assign(Object.assign(Object.assign({},n?{preprocess:p=>Array.isArray(p)?p:[p]}:{}),l),{},{valueSchema:r.create(o)})):r.create(Object.assign(Object.assign({},o),l))}var v7={normalizeApiOptions:function(e,t,r){return jC(e,t,r)},normalizeCliOptions:function(e,t,r){return jC(e,t,Object.assign({isCLI:!0},r))}};let{isNonEmptyArray:x7}=ke;function el(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(x7(n))return el(n[0])}return e.range?e.range[0]:e.start}function qh(e){return e.range?e.range[1]:e.end}function RC(e,t){return el(e)===el(t)}var $t={locStart:el,locEnd:qh,hasSameLocStart:RC,hasSameLoc:function(e,t){return RC(e,t)&&function(r,n){return qh(r)===qh(n)}(e,t)}},tl={},Su={},rl={};Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s
|
||
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function XC(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):V7.get(e)||e}function q7(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n)if(isNaN(o)){if(!(a=o.match(j7)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(R7,(l,p,d)=>p?XC(p):d))}else r.push(Number(o));return r}function G7(e){YC.lastIndex=0;let t=[],r;for(;(r=YC.exec(e))!==null;){let n=r[1];if(r[2]){let a=q7(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function KC(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let a of Object.keys(r))if(Array.isArray(r[a])){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=r[a].length>0?n[a].apply(n,r[a]):n[a]}return n}var U7=(e,t)=>{let r=[],n=[],a=[];if(t.replace(M7,(o,l,p,d,m,y)=>{if(l)a.push(XC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:KC(e,r)(D)),r.push({inverse:p,styles:G7(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(KC(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};(function(e){let t=P7,r=hh.exports,n=L7.stdout,a=U7,o=et.platform==="win32"&&!(et.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],p=new Set(["gray"]),d=Object.create(null);function m(S,k){k=k||{};let P=n?n.level:0;S.level=k.level===void 0?P:k.level,S.enabled="enabled"in k?k.enabled:S.level>0}function y(S){if(!this||!(this instanceof y)||this.template){let k={};return m(k,S),k.template=function(){let P=[].slice.call(arguments);return w.apply(null,[k.template].concat(P))},Object.setPrototypeOf(k,y.prototype),Object.setPrototypeOf(k.template,k),k.template.constructor=y,k.template}m(this,S)}o&&(r.blue.open="\x1B[94m");for(let S of Object.keys(r))r[S].closeRe=new RegExp(t(r[S].close),"g"),d[S]={get(){let k=r[S];return b.call(this,this._styles?this._styles.concat(k):[k],this._empty,S)}};d.visible={get(){return b.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let S of Object.keys(r.color.ansi))p.has(S)||(d[S]={get(){let k=this.level;return function(){let P=r.color[l[k]][S].apply(null,arguments),_={open:P,close:r.color.close,closeRe:r.color.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let S of Object.keys(r.bgColor.ansi))p.has(S)||(d["bg"+S[0].toUpperCase()+S.slice(1)]={get(){let k=this.level;return function(){let P=r.bgColor[l[k]][S].apply(null,arguments),_={open:P,close:r.bgColor.close,closeRe:r.bgColor.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});let D=Object.defineProperties(()=>{},d);function b(S,k,P){let _=function(){return v.apply(_,arguments)};_._styles=S,_._empty=k;let M=this;return Object.defineProperty(_,"level",{enumerable:!0,get:()=>M.level,set(U){M.level=U}}),Object.defineProperty(_,"enabled",{enumerable:!0,get:()=>M.enabled,set(U){M.enabled=U}}),_.hasGrey=this.hasGrey||P==="gray"||P==="grey",_.__proto__=D,_}function v(){let S=arguments,k=S.length,P=String(arguments[0]);if(k===0)return"";if(k>1)for(let M=1;M<k;M++)P+=" "+S[M];if(!this.enabled||this.level<=0||!P)return this._empty?"":P;let _=r.dim.open;o&&this.hasGrey&&(r.dim.open="");for(let M of this._styles.slice().reverse())P=M.open+P.replace(M.closeRe,M.open)+M.close,P=P.replace(/\r?\n/g,"".concat(M.close,"$&").concat(M.open));return r.dim.open=_,P}function w(S,k){if(!Array.isArray(k))return[].slice.call(arguments,1).join(" ");let P=[].slice.call(arguments,2),_=[k.raw[0]];for(let M=1;M<k.length;M++)_.push(String(P[M-1]).replace(/[{}\\]/g,"\\$&")),_.push(String(k.raw[M]));return a(S,_.join(""))}Object.d
|
||
|
`):a}return r}function tA(e){return!!zh.supportsColor||e.forceColor}function rA(e){return e.forceColor?new zh.constructor({enabled:!0,level:1}):zh}Object.defineProperty(tl,"__esModule",{value:!0}),tl.codeFrameColumns=sA,tl.default=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!nA){nA=!0;let o="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";et.emitWarning?et.emitWarning(o,"DeprecationWarning"):(new Error(o).name="DeprecationWarning",console.warn(new Error(o)))}let a={start:{column:r=Math.max(r,0),line:t}};return sA(e,a,n)};var $h=Su;let nA=!1;function Y7(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}let iA=/\r\n|[\n\r\u2028\u2029]/;function X7(e,t,r){let n=Object.assign({column:0,line:-1},e.start),a=Object.assign({},n,e.end),{linesAbove:o=2,linesBelow:l=3}=r||{},p=n.line,d=n.column,m=a.line,y=a.column,D=Math.max(p-(o+1),0),b=Math.min(t.length,m+l);p===-1&&(D=0),m===-1&&(b=t.length);let v=m-p,w={};if(v)for(let S=0;S<=v;S++){let k=S+p;if(d)if(S===0){let P=t[k-1].length;w[k]=[d,P-d+1]}else if(S===v)w[k]=[0,y];else{let P=t[k-S].length;w[k]=[0,P]}else w[k]=!0}else w[p]=d===y?!d||[d,0]:[d,y-d];return{start:D,end:b,markerLines:w}}function sA(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=(r.highlightCode||r.forceColor)&&(0,$h.shouldHighlight)(r),a=(0,$h.getChalk)(r),o=Y7(a),l=(S,k)=>n?S(k):k,p=e.split(iA),{start:d,end:m,markerLines:y}=X7(t,p,r),D=t.start&&typeof t.start.column=="number",b=String(m).length,w=(n?(0,$h.default)(e,r):e).split(iA,m).slice(d,m).map((S,k)=>{let P=d+1+k,_=" ".concat(P).slice(-b),M=" ".concat(_," |"),U=y[P],q=!y[P+1];if(U){let H="";if(Array.isArray(U)){let Q=S.slice(0,Math.max(U[0]-1,0)).replace(/[^\t]/g," "),te=U[1]||1;H=[`
|
||
|
`,l(o.gutter,M.replace(/\d/g," "))," ",Q,l(o.marker,"^").repeat(te)].join(""),q&&r.message&&(H+=" "+l(o.message,r.message))}return[l(o.marker,">"),l(o.gutter,M),S.length>0?" ".concat(S):"",H].join("")}return" ".concat(l(o.gutter,M)).concat(S.length>0?" ".concat(S):"")}).join(`
|
||
|
`);return r.message&&!D&&(w="".concat(" ".repeat(b+1)).concat(r.message,`
|
||
|
`).concat(w)),n?a.reset(w):w}let{ConfigError:K7}=Cu,Q7=$t,{locStart:Z7,locEnd:eP}=Q7,tP=Object.getOwnPropertyNames,rP=Object.getOwnPropertyDescriptor;function aA(e){let t={};for(let r of e.plugins)if(r.parsers)for(let n of tP(r.parsers))Object.defineProperty(t,n,rP(r.parsers,n));return t}function uA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:aA(e);if(typeof e.parser=="function")return{parse:e.parser,astFormat:"estree",locStart:Z7,locEnd:eP};if(typeof e.parser=="string"){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new K7(`Couldn't resolve parser "`.concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var Hh={parse:function(e,t){let r=aA(t),n=Object.defineProperties({},Object.fromEntries(Object.keys(r).map(o=>[o,{enumerable:!0,get:()=>r[o].parse}]))),a=uA(t,r);try{return a.preprocess&&(e=a.preprocess(e,t)),{text:e,ast:a.parse(e,n,t)}}catch(o){let{loc:l}=o;if(l){let{codeFrameColumns:p}=tl;throw o.codeFrame=p(e,l,{highlightCode:!0}),o.message+=`
|
||
|
`+o.codeFrame,o}throw o.stack}},resolveParser:uA};let oA=mb,nP=j4,iP=tI,{UndefinedParserError:sP}=Cu,{getSupportInfo:cA}=q0,lA=v7,{resolveParser:aP}=Hh,Jh={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function uP(e){let{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");let r=e.plugins.find(n=>n.printers&&n.printers[t]);if(!r)throw new Error(`Couldn't find plugin for AST format "`.concat(t,'"'));return r}function pA(e,t){let r=nP.basename(e).toLowerCase(),n=cA({plugins:t}).languages.filter(o=>o.since!==null),a=n.find(o=>o.extensions&&o.extensions.some(l=>r.endsWith(l))||o.filenames&&o.filenames.some(l=>l.toLowerCase()===r));if(!a&&!r.includes(".")){let o=function(l){if(typeof l!="string")return"";let p;try{p=oA.openSync(l,"r")}catch{return""}try{let d=new iP(p).next().toString("utf8"),m=d.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(m)return m[1];let y=d.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return y?y[1]:""}catch{return""}finally{try{oA.closeSync(p)}catch{}}}(e);a=n.find(l=>l.interpreters&&l.interpreters.includes(o))}return a&&a.parsers[0]}var fA={normalize:function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Object.assign({},e),n=cA({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,a=Object.assign(Object.assign({},Jh),Object.fromEntries(n.filter(m=>m.default!==void 0).map(m=>[m.name,m.default])));if(!r.parser)if(r.filepath){if(r.parser=pA(r.filepath,r.plugins),!r.parser)throw new sP("No parser could be inferred for file: ".concat(r.filepath))}else(t.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),r.parser="babel";let o=aP(lA.normalizeApiOptions(r,[n.find(m=>m.name==="parser")],{passThrough:!0,logger:!1}));r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let l=uP(r);r.printer=l.printers[r.astFormat];let p=Object.fromEntries(n.filter(m=>m.pluginDefaults&&m.pluginDefaults[l.name]!==void 0).map(m=>[m.name,m.pluginDefaults[l.name]])),d=Object.assign(Object.assign({},a),p);for(let[m,y]of Object.entries(d))r[m]!==null&&r[m]!==void 0||(r[m]=y);return r.parser==="json"&&(r.trailingComma="none"),lA.normalizeApiOptions(r,n,Object.assign({passThrough:Object.keys(Jh)},t))},hiddenDefaults:Jh,inferParser:pA},oP=function e(t,r,n){if(Array.isArray(t))return t.map(p=>e(p,r,n)).filter(Boolean);if(!t||typeof t!="object")return t;let a=r.printer.massageAstNode,o;o=a&&a.ignoredProperties?a.ignoredProperties:new Set;let l={};for(let[p,d]of Object.entries(t))o.has(p)||typeof d=="function"||(l[p]=e(d,r,t));if(a){let p=a(t,l,n);if(p===null)return;if(p)return p}return l},cP=typeof Object.create=="function"?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e};function Yi(e,t){var r={seen:[],stylize:pP};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),hA(t)?r.showHidden=t:t&&fP(r,t),aa(r.showHidden)&&(r.showHidden=!1),aa(r.depth)&&(r.depth=2),aa(r.colors)&&(r.colors=!1),aa(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=lP),nl(r,e,r.depth)}function lP(e,t){var r=Yi.styles[t];return r?"\x1B["+Yi.colors[r][0]+"m"+e+"\x1B["+Yi.colors[r][1]+"m":e}function pP(e,t){return e}function nl(e,t,r){if(e.customInspect&&t&&Bu(t.inspect)&&t.inspect!==Yi&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return mA(n)||(n=nl(e,n,r)),n}var a=function(v,w){if(aa(w))return v.stylize("undefined","undefined");if(mA(w)){var S="'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return v.stylize(S,"string")}if(k=w,typeof k=="number")return v.stylize(""+w,"number");var k;if(hA(w))return v.stylize(""+w,"boolean");if(dA(w))return v.stylize("null","null")}(e,t);if(a)return a;var o=Object.keys(t),l=function(v){var
|
||
|
`),k+P.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?S[0]+(w===""?"":w+`
|
||
|
`)+" "+v.join(`,
|
||
|
`)+" "+S[1]:S[0]+w+" "+v.join(", ")+" "+S[1]}(m,y,b)):b[0]+y+b[1]}function Yh(e){return"["+Error.prototype.toString.call(e)+"]"}function Xh(e,t,r,n,a,o){var l,p,d;if((d=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?p=d.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):d.set&&(p=e.stylize("[Setter]","special")),yA(n,a)||(l="["+a+"]"),p||(e.seen.indexOf(d.value)<0?(p=dA(r)?nl(e,d.value,null):nl(e,d.value,r-1)).indexOf(`
|
||
|
`)>-1&&(p=o?p.split(`
|
||
|
`).map(function(m){return" "+m}).join(`
|
||
|
`).substr(2):`
|
||
|
`+p.split(`
|
||
|
`).map(function(m){return" "+m}).join(`
|
||
|
`)):p=e.stylize("[Circular]","special")),aa(l)){if(o&&a.match(/^\d+$/))return p;(l=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"))}return l+": "+p}function hA(e){return typeof e=="boolean"}function dA(e){return e===null}function mA(e){return typeof e=="string"}function aa(e){return e===void 0}function wu(e){return il(e)&&Kh(e)==="[object RegExp]"}function il(e){return typeof e=="object"&&e!==null}function sl(e){return il(e)&&Kh(e)==="[object Date]"}function al(e){return il(e)&&(Kh(e)==="[object Error]"||e instanceof Error)}function Bu(e){return typeof e=="function"}function gA(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||e===void 0}function Kh(e){return Object.prototype.toString.call(e)}function fP(e,t){if(!t||!il(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function yA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function DA(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,a=0,o=Math.min(r,n);a<o;++a)if(e[a]!==t[a]){r=e[a],n=t[a];break}return r<n?-1:n<r?1:0}Yi.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Yi.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var Qh,hP=Object.prototype.hasOwnProperty,EA=Object.keys||function(e){var t=[];for(var r in e)hP.call(e,r)&&t.push(r);return t},bA=Array.prototype.slice;function CA(){return Qh!==void 0?Qh:Qh=function(){}.name==="foo"}function AA(e){return Object.prototype.toString.call(e)}function vA(e){return!Qs(e)&&typeof jr.ArrayBuffer=="function"&&(typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}function ar(e,t){e||ur(e,!0,t,"==",Tu)}var dP=/\s*function\s+([^\(\s]*)\s*/;function xA(e){if(Bu(e)){if(CA())return e.name;var t=e.toString().match(dP);return t&&t[1]}}function ul(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(p){return SA(FA(p.actual),128)+" "+p.operator+" "+SA(FA(p.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||ur;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,a=xA(t),o=n.indexOf(`
|
||
|
`+a);if(o>=0){var l=n.indexOf(`
|
||
|
`,o+1);n=n.substring(l+1)}this.stack=n}}}function SA(e,t){return typeof e=="string"?e.length<t?e:e.slice(0,t):e}function FA(e){if(CA()||!Bu(e))return Yi(e);var t=xA(e);return"[Function"+(t?": "+t:"")+"]"}function ur(e,t,r,n,a){throw new ul({message:r,actual:e,expected:t,operator:n,stackStartFunction:a})}function Tu(e,t){e||ur(e,!0,t,"==",Tu)}function Zh(e,t,r){e!=t&&ur(e,t,r,"==",Zh)}function ed(e,t,r){e==t&&ur(e,t,r,"!=",ed)}function td(e,t,r){ua(e,t,!1)||ur(e,t,r,"deepEqual",td)}function rd(e,t,r){ua(e,t,!0)||ur(e,t,r,"deepStrictEqual",rd)}function ua(e,t,r,n){if(e===t)return!0;if(Qs(e)&&Qs(t))return DA(e,t)===0;if(sl(e)&&sl(t))return e.getTime()===t.getTime();if(wu(e)&&wu(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(e!==null&&typeof e=="object"||t!==null&&typeof t=="object"){if(vA(e)&&vA(t)&&AA(e)===AA(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return DA(new Uint8Array(e.buffer),new Uint8Array(t.buffer))===0;if(Qs(e)!==Qs(t))return!1;var a=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return a!==-1&&a===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(o,l,p,d){if(o==null||l==null)return!1;if(gA(o)||gA(l))return o===l;if(p&&Object.getPrototypeOf(o)!==Object.getPrototypeOf(l))return!1;var m=wA(o),y=wA(l);if(m&&!y||!m&&y)return!1;if(m)return ua(o=bA.call(o),l=bA.call(l),p);var D,b,v=EA(o),w=EA(l);if(v.length!==w.length)return!1;for(v.sort(),w.sort(),b=v.length-1;b>=0;b--)if(v[b]!==w[b])return!1;for(b=v.length-1;b>=0;b--)if(!ua(o[D=v[b]],l[D],p,d))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function wA(e){return Object.prototype.toString.call(e)=="[object Arguments]"}function nd(e,t,r){ua(e,t,!1)&&ur(e,t,r,"notDeepEqual",nd)}function id(e,t,r){ua(e,t,!0)&&ur(e,t,r,"notDeepStrictEqual",id)}function sd(e,t,r){e!==t&&ur(e,t,r,"===",sd)}function ad(e,t,r){e===t&&ur(e,t,r,"!==",ad)}function BA(e,t){if(!e||!t)return!1;if(Object.prototype.toString.call(t)=="[object RegExp]")return t.test(e);try{if(e instanceof t)return!0}catch{}return!Error.isPrototypeOf(t)&&t.call({},e)===!0}function TA(e,t,r,n){var a;if(typeof t!="function")throw new TypeError('"block" argument must be a function');typeof r=="string"&&(n=r,r=null),a=function(p){var d;try{p()}catch(m){d=m}return d}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!a&&ur(a,r,"Missing expected exception"+n);var o=typeof n=="string",l=!e&&a&&!r;if((!e&&al(a)&&o&&BA(a,r)||l)&&ur(a,r,"Got unwanted exception"+n),e&&a&&r&&!BA(a,r)||!e&&a)throw a}function kA(e,t,r){TA(!0,e,t,r)}function _A(e,t,r){TA(!1,e,t,r)}function NA(e){if(e)throw e}ar.AssertionError=ul,cP(ul,Error),ar.fail=ur,ar.ok=Tu,ar.equal=Zh,ar.notEqual=ed,ar.deepEqual=td,ar.deepStrictEqual=rd,ar.notDeepEqual=nd,ar.notDeepStrictEqual=id,ar.strictEqual=sd,ar.notStrictEqual=ad,ar.throws=kA,ar.doesNotThrow=_A,ar.ifError=NA;var ku=s(Object.freeze({__proto__:null,default:ar,AssertionError:ul,fail:ur,ok:Tu,assert:Tu,equal:Zh,notEqual:ed,deepEqual:td,deepStrictEqual:rd,notDeepEqual:nd,notDeepStrictEqual:id,strictEqual:sd,notStrictEqual:ad,throws:kA,doesNotThrow:_A,ifError:NA}));let IA=ku,{builders:{line:mP,hardline:di,breakParent:gP,indent:yP,lineSuffix:PA,join:OA,cursor:ud}}=ve,{hasNewline:oa,skipNewline:DP,skipSpaces:EP,isPreviousLineEmpty:bP,addLeadingComment:_u,addDanglingComment:od,addTrailingComment:Nu}=ke,cd=new WeakMap;function ld(e,t,r){if(!e)return;let{printer:n,locStart:a,locEnd:o}=t;if(r){if(n.canAttachComment&&n.canAttachComment(e)){let p;for(p=r.length-1;p>=0&&!(a(r[p])<=a(e)&&o(r[p])<=o(e));--p);return void r.splice(p+1,0,e)}}else if(cd.has(e))return cd.get(e);let l=n.getCommentChildNodes&&n.getCommentChildNodes(e,t)||typeof e=="object"&&Object.entries(e).filter(p=>{let[d]=p;return d!=="enclosingNode"&&d!=="precedingNode"&&d!=="followingNode"&&d!=="tokens"&&d!=="comments"}).map(p=>{let[,d]=p;return d});if(l){r||(r=[],cd.set(e,r));for(let p of l)ld(p,t,r);return r}}function LA(e,t,r,n){let{locStart:a,locEnd:o}=r,l=a(t),p=o(t),d=ld(e,r),m,y,D=0,b=d.length;for(;D<b;){let v=D+b>>1
|
||
|
`);r-=p(r),n-=p(n),a-=p(a),e=UP(e)}return{hasBOM:l,text:e,options:ev(e,Object.assign(Object.assign({},t),{},{cursorOffset:r,rangeStart:n,rangeEnd:a,endOfLine:o}))}}function rv(e,t){let r=Pu.resolveParser(t);return!r.hasPragma||r.hasPragma(e)}function nv(e,t){let r,{hasBOM:n,text:a,options:o}=tv(e,Iu(t));return o.rangeStart>=o.rangeEnd&&a!==""||o.requirePragma&&!rv(a,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEnd<a.length?r=function(l,p){let{ast:d,text:m}=Pu.parse(l,p),{rangeStart:y,rangeEnd:D}=XA.calculateRange(m,p,d),b=m.slice(y,D),v=Math.min(y,m.lastIndexOf(`
|
||
|
`,y)+1),w=m.slice(v,y).match(/^\s*/)[0],S=qP(w,p.tabWidth),k=ZA(b,Object.assign(Object.assign({},p),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:p.cursorOffset>y&&p.cursorOffset<=D?p.cursorOffset-y:-1,endOfLine:"lf"}),S),P=k.formatted.trimEnd(),{cursorOffset:_}=p;_>D?_+=P.length-b.length:k.cursorOffset>=0&&(_=k.cursorOffset+y);let M=m.slice(0,y)+P+m.slice(D);if(p.endOfLine!=="lf"){let U=HA(p.endOfLine);_>=0&&U===`\r
|
||
|
`&&(_+=JA(M.slice(0,_),`
|
||
|
`)),M=M.replace(/\n/g,U)}return{formatted:M,cursorOffset:_,comments:k.comments}}(a,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!rv(a,o)&&(a=o.printer.insertPragma(a)),r=ZA(a,o)),n&&(r.formatted="\uFEFF"+r.formatted,r.cursorOffset>=0&&r.cursorOffset++),r)}var zP={formatWithCursor:nv,parse(e,t,r){let{text:n,options:a}=tv(e,Iu(t)),o=Pu.parse(n,a);return r&&(o.ast=WP(o.ast,a)),o},formatAST(e,t){t=Iu(t);let r=gd(e,t);return md(r,t)},formatDoc:(e,t)=>nv(VP(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=Iu(t);let{ast:r,text:n}=Pu.parse(e,t);return QA(n,r,t),gd(r,t)},printDocToString:(e,t)=>md(e,Iu(t))};let{getMaxContinuousCount:$P,getStringWidth:HP,getAlignmentSize:JP,getIndentSize:YP,skip:XP,skipWhitespace:KP,skipSpaces:QP,skipNewline:ZP,skipToLineEnd:eO,skipEverythingButNewLine:tO,skipInlineComment:rO,skipTrailingComment:nO,hasNewline:iO,hasNewlineInRange:sO,hasSpaces:aO,isNextLineEmpty:uO,isNextLineEmptyAfterIndex:oO,isPreviousLineEmpty:cO,getNextNonSpaceNonCommentCharacterIndex:lO,makeString:pO,addLeadingComment:fO,addDanglingComment:hO,addTrailingComment:dO}=ke;var mO={getMaxContinuousCount:$P,getStringWidth:HP,getAlignmentSize:JP,getIndentSize:YP,skip:XP,skipWhitespace:KP,skipSpaces:QP,skipNewline:ZP,skipToLineEnd:eO,skipEverythingButNewLine:tO,skipInlineComment:rO,skipTrailingComment:nO,hasNewline:iO,hasNewlineInRange:sO,hasSpaces:aO,isNextLineEmpty:uO,isNextLineEmptyAfterIndex:oO,isPreviousLineEmpty:cO,getNextNonSpaceNonCommentCharacterIndex:lO,makeString:pO,addLeadingComment:fO,addDanglingComment:hO,addTrailingComment:dO};let gO=["languageId"];var Xi=function(e,t){let{languageId:r}=e,n=P0(e,gO);return Object.assign(Object.assign({linguistLanguageId:r},n),t(e))},cl={},iv={exports:{}};(function(){function e(r){if(r==null)return!1;switch(r.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function t(r){switch(r.type){case"IfStatement":return r.alternate!=null?r.alternate:r.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return r.body}return null}iv.exports={isExpression:function(r){if(r==null)return!1;switch(r.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:e,isIterationStatement:function(r){if(r==null)return!1;switch(r.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(r){return e(r)||r!=null&&r.type==="FunctionDeclaration"},isProblematicIfStatement:function(r){var n;if(r.type!=="IfStatement"||r.alternate==null)return!1;n=r.consequent;do{if(n.type==="IfStatement"&&n.alternate==null)return!0;n=t(n)}while(n);return!1},trailingStatement:t}})();var Dd={exports:{}};(function(){var e,t,r,n,a,o;function l(p){return p<=65535?String.fromCharCode(p):String.fromCharCode(Math.floor((p-65536)/1024)+55296)+String.fromCharCode((p-65536)%1024+56320)}for(t={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\u08
|
||
|
`))}function Dv(e){return e.extra?e.extra.raw:e.raw}let Ev={"==":!0,"!=":!0,"===":!0,"!==":!0},ll={"*":!0,"/":!0,"%":!0},Sd={">>":!0,">>>":!0,"<<":!0},bv={};for(let[e,t]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(let r of t)bv[r]=e;function Fd(e){return bv[e]}let wd=new WeakMap;function Bd(e){if(wd.has(e))return wd.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),wd.set(e,t),t}let Td=new WeakMap;function Cv(e){if(Td.has(e))return Td.get(e);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.attributes&&t.push(e.attributes)),Td.set(e,t),t}function Av(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function kd(e){return e&&(e.prettierIgnore||ca(e,Gr.PrettierIgnore))}let Gr={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},vv=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,a)=>!(e&Gr.Leading&&!r.leading||e&Gr.Trailing&&!r.trailing||e&Gr.Dangling&&(r.leading||r.trailing)||e&Gr.Block&&!Ou(r)||e&Gr.Line&&!pv(r)||e&Gr.First&&n!==0||e&Gr.Last&&n!==a.length-1||e&Gr.PrettierIgnore&&!Av(r)||t&&!t(r))};function ca(e,t,r){if(!e||!Ed(e.comments))return!1;let n=vv(t,r);return!n||e.comments.some(n)}function xv(e,t,r){if(!e||!Array.isArray(e.comments))return[];let n=vv(t,r);return n?e.comments.filter(n):e.comments}function Sv(e){return Ki(e)||e.type==="NewExpression"||e.type==="ImportExpression"}var He={getFunctionParameters:Bd,iterateFunctionParametersPath:function(e,t){let r=e.getValue(),n=0,a=o=>t(o,n++);r.this&&e.call(a,"this"),Array.isArray(r.parameters)?e.each(a,"parameters"):Array.isArray(r.params)&&e.each(a,"params"),r.rest&&e.call(a,"rest")},getCallArguments:Cv,iterateCallArgumentsPath:function(e,t){let r=e.getValue();r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.attributes&&e.call(n=>t(n,1),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;let t=Bd(e);return t.length>0&&av(t).type==="RestElement"},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){let t=e.getParentNode();return e.getName()==="declaration"&&fv(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return e==="+"?"+"+t:e==="-"?"-"+t:t},hasFlowAnnotationComment:function(e){return Ed(e)&&Ou(e[0])&&AO.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Ed(e.trailingComments)&&Ou(e.trailingComments[0])&&CO.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return xd(t)?kd(t):ca(t,Gr.Leading,r=>uv(e,bd(r)))},hasNakedLeftSide:function(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Ki(e)||Qi(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||e.type==="TSAsExpression"||e.type==="TSNonNullExpression"},hasNode:function e(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t))return t.some(a=>e(a,r));let n=r(t);return typeof n=="boolean"?n:Object.values(t).some(a=>e(a,r))},hasIgnoreComment:function(e){return kd(e.getValue())},hasNodeIgnoreComment:kd,identity:function(e){return e},isBinaryish:function(e){return xO.has(e.type)},isBlockComment:Ou,isCallLikeExpression:Sv,isEnabledHackPipeline:function(e){return Boolean(e.__isUsingHackPipeline)},isLineComment:pv,isPrettierIgnoreComment:Av,i
|
||
|
`))&&t.expressions.every(n):t.type==="ObjectExpression"?t.properties.every(o=>!o.computed&&(o.shorthand||o.value&&n(o.value))):t.type==="ArrayExpression"?t.elements.every(o=>o===null||n(o)):Sv(t)?(t.type==="ImportExpression"||e(t.callee,r))&&Cv(t).every(n):Qi(t)?e(t.object,r)&&e(t.property,r):t.type!=="UnaryExpression"||t.operator!=="!"&&t.operator!=="-"?t.type==="TSNonNullExpression"&&e(t.expression,r):e(t.argument,r)))},isMemberish:function(e){return Qi(e)||e.type==="BindExpression"&&Boolean(e.object)},isNumericLiteral:Cd,isSignedNumericLiteral:function(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Cd(e.argument)},isObjectProperty:function(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!e.method&&e.kind==="init")},isObjectType:function(e){return e.type==="ObjectTypeAnnotation"||e.type==="TSTypeLiteral"||e.type==="TSMappedType"},isObjectTypePropertyAFunction:function(e){return!(e.type!=="ObjectTypeProperty"&&e.type!=="ObjectTypeInternalSlot"||e.value.type!=="FunctionTypeAnnotation"||e.static||dv(e))},isSimpleType:function(e){return!!e&&(!(e.type!=="GenericTypeAnnotation"&&e.type!=="TSTypeReference"||e.typeParameters)||!!SO.has(e.type))},isSimpleNumber:gv,isSimpleTemplateLiteral:function(e){let t="expressions";e.type==="TSTemplateLiteralType"&&(t="types");let r=e[t];return r.length!==0&&r.every(n=>{if(ca(n))return!1;if(n.type==="Identifier"||n.type==="ThisExpression")return!0;if(Qi(n)){let a=n;for(;Qi(a);)if(a.property.type!=="Identifier"&&a.property.type!=="Literal"&&a.property.type!=="StringLiteral"&&a.property.type!=="NumericLiteral"||(a=a.object,ca(a)))return!1;return a.type==="Identifier"||a.type==="ThisExpression"}return!1})},isStringLiteral:Ad,isStringPropSafeToUnquote:function(e,t){return t.parser!=="json"&&Ad(e.key)&&Dv(e.key).slice(1,-1)===e.key.value&&(yO(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||gv(e.key.value)&&String(Number(e.key.value))===e.key.value&&(t.parser==="babel"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))},isTemplateOnItsOwnLine:function(e,t){return(e.type==="TemplateLiteral"&&yv(e)||e.type==="TaggedTemplateExpression"&&yv(e.quasi))&&!uv(t,ov(e),{backwards:!0})},isTestCall:function e(t,r){if(t.type!=="CallExpression")return!1;if(t.arguments.length===1){if(vd(t)&&r&&e(r))return Lu(t.arguments[0]);if(function(n){return n.callee.type==="Identifier"&&/^(?:before|after)(?:Each|All)$/.test(n.callee.name)&&n.arguments.length===1}(t))return vd(t.arguments[0])}else if((t.arguments.length===2||t.arguments.length===3)&&(t.callee.type==="Identifier"&&mv.test(t.callee.name)||function(n){return Qi(n.callee)&&n.callee.object.type==="Identifier"&&n.callee.property.type==="Identifier"&&mv.test(n.callee.object.name)&&(n.callee.property.name==="only"||n.callee.property.name==="skip")}(t))&&(function(n){return n.type==="TemplateLiteral"}(t.arguments[0])||Ad(t.arguments[0])))return!(t.arguments[2]&&!Cd(t.arguments[2]))&&((t.arguments.length===2?Lu(t.arguments[1]):function(n){return n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression"&&n.body.type==="BlockStatement"}(t.arguments[1])&&Bd(t.arguments[1]).length<=1)||vd(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if(e.parentParser!=="markdown"&&e.parentParser!=="mdx")return!1;let r=t.getNode();if(!r.expression||!xd(r.expression))return!1;let n=t.getParentNode();return n.type==="Program"&&n.body.length===1},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!(e.type!=="TypeAnnotation"&&e.type!=="TSTypeAnnotation"||e.typeAnnotation.type!=="FunctionTypeAnnotation"||e.static||cv(e,e.typeAnnotation))},isNextLineEmpty:(e,t)=>{let{originalText:r}=t;return EO(r,bd(e))},needsHardlineAfterDanglingComment:function(e){if(!ca(e))return!1;let t=av(xv(e,Gr.Dangling));return t&&!Ou(t)},rawText:Dv,shouldPrintComma:function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return e.trailingComma==="es5"&&t==="es5"||e
|
||
|
`)&&(H.hasLineBreak=!0),b.quasis[q].value.raw.includes(`
|
||
|
`)&&P.push({hasLineBreak:!1,cells:[]})}let _=Math.max(v.length,...P.map(q=>q.cells.length)),M=Array.from({length:_}).fill(0),U=[{cells:v},...P.filter(q=>q.cells.length>0)];for(let{cells:q}of U.filter(H=>!H.hasLineBreak))for(let[H,Q]of q.entries())M[H]=Math.max(M[H],Fv(Q));return S.push(fl,"`",Nd([_d,wv(_d,U.map(q=>wv(" | ",q.cells.map((H,Q)=>q.hasLineBreak?H:H+" ".repeat(M[Q]-Fv(H))))))]),_d,"`"),S}}(e,r,t);if(d)return d}let a="expressions";n.type==="TSTemplateLiteralType"&&(a="types");let o=[],l=e.map(t,a),p=IO(n);return p&&(l=l.map(d=>Tv(d,Object.assign(Object.assign({},r),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),o.push(fl,"`"),e.each(d=>{let m=d.getName();if(o.push(t()),m<l.length){let{tabWidth:y}=r,D=d.getValue(),b=wO(D.value.raw,y),v=l[m];if(!p){let S=n[a][m];(kv(S)||PO(S)||S.type==="ConditionalExpression"||S.type==="SequenceExpression"||S.type==="TSAsExpression"||_O(S))&&(v=[Nd([pl,v]),pl])}let w=b===0&&D.value.raw.endsWith(`
|
||
|
`)?BO(Number.NEGATIVE_INFINITY,v):TO(v,b,y);o.push(Bv(["${",w,fl,"}"]))}},"quasis"),o.push("`"),o},printTemplateExpressions:function(e,t){return e.map(r=>function(n,a){let o=n.getValue(),l=a();return kv(o)&&(l=Bv([Nd([pl,l]),pl])),["${",l,fl,"}"]}(r,t),"expressions")},escapeTemplateCharacters:function(e,t){return kO(e,r=>typeof r=="string"?t?r.replace(/(\\*)`/g,"$1$1\\`"):_v(r):r)},uncookTemplateElementValue:_v};let{builders:{indent:OO,softline:Nv,literalline:LO,dedentToRoot:MO}}=ve,{escapeTemplateCharacters:jO}=la;var RO=function(e,t,r){let n=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(p,d)=>"\\".repeat(d.length/2)+"`"),a=function(p){let d=p.match(/^([^\S\n]*)\S/m);return d===null?"":d[1]}(n),o=a!=="";o&&(n=n.replace(new RegExp("^".concat(a),"gm"),""));let l=jO(r(n,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",o?OO([Nv,l]):[LO,MO(l)],Nv,"`"]};let{isNonEmptyArray:VO}=ke,{builders:{indent:qO,hardline:GO,softline:UO},utils:{mapDoc:WO,replaceEndOfLine:zO,cleanDoc:$O}}=ve,{printTemplateExpressions:HO}=la;var JO=function(e,t,r){let n=e.getValue(),a=n.quasis.map(l=>l.value.raw),o=0;return function(l,p,d){if(p.quasis.length===1&&!p.quasis[0].value.raw.trim())return"``";let m=function(y,D){if(!VO(D))return y;let b=0,v=WO($O(y),w=>typeof w=="string"&&w.includes("@prettier-placeholder")?w.split(/@prettier-placeholder-(\d+)-id/).map((S,k)=>k%2==0?zO(S):(b++,D[S])):w);return D.length===b?v:null}(l,d);if(!m)throw new Error("Couldn't insert all the expressions");return["`",qO([GO,m]),UO,"`"]}(r(a.reduce((l,p,d)=>d===0?p:l+"@prettier-placeholder-"+o+++"-id"+p,""),{parser:"scss"},{stripTrailingHardline:!0}),n,HO(e,t))};let{builders:{indent:YO,join:Iv,hardline:Mu}}=ve,{escapeTemplateCharacters:XO,printTemplateExpressions:KO}=la;function QO(e){let t=[],r=!1,n=e.map(a=>a.trim());for(let[a,o]of n.entries())o!==""&&(n[a-1]===""&&r?t.push([Mu,o]):t.push(o),r=!0);return t.length===0?null:Iv(Mu,t)}var ZO=function(e,t,r){let n=e.getValue(),a=n.quasis.length;if(a===1&&n.quasis[0].value.raw.trim()==="")return"``";let o=KO(e,t),l=[];for(let p=0;p<a;p++){let d=p===0,m=p===a-1,y=n.quasis[p].value.cooked,D=y.split(`
|
||
|
`),b=D.length,v=o[p],w=b>2&&D[0].trim()===""&&D[1].trim()==="",S=b>2&&D[b-1].trim()===""&&D[b-2].trim()==="",k=D.every(_=>/^\s*(?:#[^\n\r]*)?$/.test(_));if(!m&&/#[^\n\r]*$/.test(D[b-1]))return null;let P=null;P=k?QO(D):r(y,{parser:"graphql"},{stripTrailingHardline:!0}),P?(P=XO(P,!1),!d&&w&&l.push(""),l.push(P),!m&&S&&l.push("")):d||m||!w||l.push(""),v&&l.push(v)}return["`",YO([Mu,Iv(Mu,l)]),Mu,"`"]};let{builders:{indent:Pv,line:eL,hardline:tL,group:hl},utils:{mapDoc:rL}}=ve,{printTemplateExpressions:nL,uncookTemplateElementValue:iL}=la,Id=0;var sL=function(e,t,r,n,a){let{parser:o}=a,l=e.getValue(),p=Id;Id=Id+1>>>0;let d=_=>"PRETTIER_HTML_PLACEHOLDER_".concat(_,"_").concat(p,"_IN_JS"),m=l.quasis.map((_,M,U)=>M===U.length-1?_.value.cooked:_.value.cooked+d(M)).join(""),y=nL(e,t);if(y.length===0&&m.trim().length===0)return"``";let D=new RegExp(d("(\\d+)"),"g"),b=0,v=r(m,{parser:o,__onHtmlRoot(_){b=_.children.length}},{stripTrailingHardline:!0}),w=rL(v,_=>{if(typeof _!="string")return _;let M=[],U=_.split(D);for(let q=0;q<U.length;q++){let H=U[q];if(q%2==0){H&&(H=iL(H),n.__embeddedInHtml&&(H=H.replace(/<\/(script)\b/gi,"<\\/$1")),M.push(H));continue}let Q=Number(H);M.push(y[Q])}return M}),S=/^\s/.test(m)?" ":"",k=/\s$/.test(m)?" ":"",P=n.htmlWhitespaceSensitivity==="ignore"?tL:S&&k?eL:null;return hl(P?["`",Pv([P,hl(w)]),P,"`"]:["`",S,b>1?Pv(hl(w)):hl(w),k,"`"])};let{hasComment:aL,CommentCheckFlags:Ov,isObjectProperty:Lv}=He,uL=RO,oL=JO,cL=ZO,lL=sL;function pL(e){return function(t){let r=t.getValue(),n=t.getParentNode(),a=t.getParentNode(1);return a&&r.quasis&&n.type==="JSXExpressionContainer"&&a.type==="JSXElement"&&a.openingElement.name.name==="style"&&a.openingElement.attributes.some(o=>o.name.name==="jsx")||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="Identifier"&&n.tag.name==="css"||n&&n.type==="TaggedTemplateExpression"&&n.tag.type==="MemberExpression"&&n.tag.object.name==="css"&&(n.tag.property.name==="global"||n.tag.property.name==="resolve")}(e)||function(t){let r=t.getParentNode();if(!r||r.type!=="TaggedTemplateExpression")return!1;let n=r.tag.type==="ParenthesizedExpression"?r.tag.expression:r.tag;switch(n.type){case"MemberExpression":return dl(n.object)||jv(n);case"CallExpression":return dl(n.callee)||n.callee.type==="MemberExpression"&&(n.callee.object.type==="MemberExpression"&&(dl(n.callee.object.object)||jv(n.callee.object))||n.callee.object.type==="CallExpression"&&dl(n.callee.object.callee));case"Identifier":return n.name==="css";default:return!1}}(e)||function(t){let r=t.getParentNode(),n=t.getParentNode(1);return n&&r.type==="JSXExpressionContainer"&&n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="css"}(e)||function(t){return t.match(r=>r.type==="TemplateLiteral",(r,n)=>r.type==="ArrayExpression"&&n==="elements",(r,n)=>Lv(r)&&r.key.type==="Identifier"&&r.key.name==="styles"&&n==="value",...Mv)}(e)?"css":function(t){let r=t.getValue(),n=t.getParentNode();return Rv(r,"GraphQL")||n&&(n.type==="TaggedTemplateExpression"&&(n.tag.type==="MemberExpression"&&n.tag.object.name==="graphql"&&n.tag.property.name==="experimental"||n.tag.type==="Identifier"&&(n.tag.name==="gql"||n.tag.name==="graphql"))||n.type==="CallExpression"&&n.callee.type==="Identifier"&&n.callee.name==="graphql")}(e)?"graphql":function(t){return Rv(t.getValue(),"HTML")||t.match(r=>r.type==="TemplateLiteral",(r,n)=>r.type==="TaggedTemplateExpression"&&r.tag.type==="Identifier"&&r.tag.name==="html"&&n==="quasi")}(e)?"html":function(t){return t.match(r=>r.type==="TemplateLiteral",(r,n)=>Lv(r)&&r.key.type==="Identifier"&&r.key.name==="template"&&n==="value",...Mv)}(e)?"angular":function(t){let r=t.getValue(),n=t.getParentNode();return n&&n.type==="TaggedTemplateExpression"&&r.quasis.length===1&&n.tag.type==="Identifier"&&(n.tag.name==="md"||n.tag.name==="markdown")}(e)?"markdown":void 0}let Mv=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function dl(e){retu
|
||
|
`).length;return r>t.length-r?`\r
|
||
|
`:`
|
||
|
`};function Od(){let e=Uc;return Od=function(){return e},e}function Ld(){let e=function(t){return t&&t.__esModule?t:{default:t}}(Pd.exports);return Ld=function(){return e},e}Pd.exports=qv,Pd.exports.graceful=e=>typeof e=="string"&&qv(e)||`
|
||
|
`,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.extract=function(e){let t=e.match(Gv);return t?t[0].trimLeft():""},Zi.strip=function(e){let t=e.match(Gv);return t&&t[0]?e.substring(t[0].length):e},Zi.parse=function(e){return $v(e).pragmas},Zi.parseWithComments=$v,Zi.print=function(e){let{comments:t="",pragmas:r={}}=e,n=(0,Ld().default)(t)||Od().EOL,a=" *",o=Object.keys(r),l=o.map(d=>Hv(d,r[d])).reduce((d,m)=>d.concat(m),[]).map(d=>" * "+d+n).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(r[o[0]])){let d=r[o[0]];return"".concat("/**"," ").concat(Hv(o[0],d)[0]).concat(" */")}}let p=t.split(n).map(d=>"".concat(a," ").concat(d)).join(n)+n;return"/**"+n+(t?p:"")+(t&&o.length?a+n:"")+l+" */"};let gL=/\*\/$/,yL=/^\/\*\*/,Gv=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,DL=/(^|\s+)\/\/([^\r\n]*)/g,Uv=/^(\r?\n)+/,EL=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Wv=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,bL=/(\r?\n|^) *\* ?/g,zv=[];function $v(e){let t=(0,Ld().default)(e)||Od().EOL;e=e.replace(yL,"").replace(gL,"").replace(bL,"$1");let r="";for(;r!==e;)r=e,e=e.replace(EL,"".concat(t,"$1 $2").concat(t));e=e.replace(Uv,"").trimRight();let n=Object.create(null),a=e.replace(Wv,"").replace(Uv,"").trimRight(),o;for(;o=Wv.exec(e);){let l=o[2].replace(DL,"");typeof n[o[1]]=="string"||Array.isArray(n[o[1]])?n[o[1]]=zv.concat(n[o[1]],l):n[o[1]]=l}return{comments:a,pragmas:n}}function Hv(e,t){return zv.concat(t).map(r=>"@".concat(e," ").concat(r).trim())}let{parseWithComments:CL,strip:AL,extract:vL,print:xL}=Zi,{getShebang:SL}=ke,{normalizeEndOfLine:FL}=z0;function Jv(e){let t=SL(e);t&&(e=e.slice(t.length+1));let r=vL(e),{pragmas:n,comments:a}=CL(r);return{shebang:t,text:e,pragmas:n,comments:a}}var Yv={hasPragma:function(e){let t=Object.keys(Jv(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){let{shebang:t,text:r,pragmas:n,comments:a}=Jv(e),o=AL(r),l=xL({pragmas:Object.assign({format:""},n),comments:a.trimStart()});return(t?"".concat(t,`
|
||
|
`):"")+FL(l)+(o.startsWith(`
|
||
|
`)?`
|
||
|
`:`
|
||
|
|
||
|
`)+o}};let{getLast:Xv,hasNewline:wL,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Md,getNextNonSpaceNonCommentCharacter:es,hasNewlineInRange:BL,addLeadingComment:Bt,addTrailingComment:Jt,addDanglingComment:zn,getNextNonSpaceNonCommentCharacterIndex:TL,isNonEmptyArray:jd}=ke,{isBlockComment:Kv,getFunctionParameters:ml,isPrettierIgnoreComment:Rd,isJsxNode:kL,hasFlowShorthandAnnotationComment:_L,hasFlowAnnotationComment:Qv,hasIgnoreComment:NL,isCallLikeExpression:IL,getCallArguments:PL,isCallExpression:Zv,isMemberExpression:OL,isObjectProperty:e2,getComments:t2,CommentCheckFlags:r2}=He,{locStart:n2,locEnd:Ur}=$t;function fa(e,t){let r=(e.body||e.properties).find(n=>{let{type:a}=n;return a!=="EmptyStatement"});r?Bt(r,t):zn(e,t)}function Vd(e,t){e.type==="BlockStatement"?fa(e,t):Bt(e,t)}function LL(e){let{comment:t,followingNode:r}=e;return!(!r||!f2(t))&&(Bt(r,t),!0)}function qd(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e;return!n||n.type!=="IfStatement"||!a?!1:es(o,t,Ur)===")"?(Jt(r,t),!0):r===n.consequent&&a===n.alternate?(r.type==="BlockStatement"?Jt(r,t):zn(n,t),!0):a.type==="BlockStatement"?(fa(a,t),!0):a.type==="IfStatement"?(Vd(a.consequent,t),!0):n.consequent===a&&(Bt(a,t),!0)}function Gd(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e;return!n||n.type!=="WhileStatement"||!a?!1:es(o,t,Ur)===")"?(Jt(r,t),!0):a.type==="BlockStatement"?(fa(a,t),!0):n.body===a&&(Bt(a,t),!0)}function i2(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a}=e;return!(!n||n.type!=="TryStatement"&&n.type!=="CatchClause"||!a)&&(n.type==="CatchClause"&&r?(Jt(r,t),!0):a.type==="BlockStatement"?(fa(a,t),!0):a.type==="TryStatement"?(Vd(a.finalizer,t),!0):a.type==="CatchClause"&&(Vd(a.body,t),!0))}function ML(e){let{comment:t,enclosingNode:r,followingNode:n}=e;return!(!OL(r)||!n||n.type!=="Identifier")&&(Bt(r,t),!0)}function jL(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a,text:o}=e,l=r&&!BL(o,Ur(r),n2(t));return!(r&&l||!n||n.type!=="ConditionalExpression"&&n.type!=="TSConditionalType"||!a)&&(Bt(a,t),!0)}function RL(e){let{comment:t,precedingNode:r,enclosingNode:n}=e;return!(!e2(n)||!n.shorthand||n.key!==r||n.value.type!=="AssignmentPattern")&&(Jt(n.value.left,t),!0)}function s2(e){let{comment:t,precedingNode:r,enclosingNode:n,followingNode:a}=e;if(n&&(n.type==="ClassDeclaration"||n.type==="ClassExpression"||n.type==="DeclareClass"||n.type==="DeclareInterface"||n.type==="InterfaceDeclaration"||n.type==="TSInterfaceDeclaration")){if(jd(n.decorators)&&(!a||a.type!=="Decorator"))return Jt(Xv(n.decorators),t),!0;if(n.body&&a===n.body)return fa(n.body,t),!0;if(a){for(let o of["implements","extends","mixins"])if(n[o]&&a===n[o][0])return!r||r!==n.id&&r!==n.typeParameters&&r!==n.superClass?zn(n,t,o):Jt(r,t),!0}}return!1}function a2(e){let{comment:t,precedingNode:r,enclosingNode:n,text:a}=e;return(n&&r&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&r.type==="Identifier"&&n.key===r&&es(a,r,Ur)!==":"||!(!r||!n||r.type!=="Decorator"||n.type!=="ClassMethod"&&n.type!=="ClassProperty"&&n.type!=="PropertyDefinition"&&n.type!=="TSAbstractPropertyDefinition"&&n.type!=="TSAbstractMethodDefinition"&&n.type!=="TSDeclareMethod"&&n.type!=="MethodDefinition"))&&(Jt(r,t),!0)}function VL(e){let{comment:t,precedingNode:r,enclosingNode:n,text:a}=e;return es(a,t,Ur)==="("&&!(!r||!n||n.type!=="FunctionDeclaration"&&n.type!=="FunctionExpression"&&n.type!=="ClassMethod"&&n.type!=="MethodDefinition"&&n.type!=="ObjectMethod")&&(Jt(r,t),!0)}function qL(e){let{comment:t,enclosingNode:r,text:n}=e;if(!r||r.type!=="ArrowFunctionExpression")return!1;let a=TL(n,t,Ur);return a!==!1&&n.slice(a,a+2)==="=>"&&(zn(r,t),!0)}function GL(e){let{comment:t,enclosingNode:r,text:n}=e;return es(n,t,Ur)===")"&&(r&&(p2(r)&&ml(r).length===0||IL(r)&&PL(r).length===0)?(zn(r,t),!0):!(!r||r.type!=="MethodDefinition"&&r.type!=="TSAbstractMethodDefinition"||ml(r.value).length!==0)&&(zn(r.value,t),!0))}function u2(e){let{comment:t,precedingNode:r,enclosingNode:n,followingN
|
||
|
\r ]+)`),qM=new RegExp(`[^
|
||
|
\r ]`),GM=e=>e.replace(new RegExp("(?:^"+Cl.source+"|"+Cl.source+"$)"),"");function qu(e){return bl(e)&&(qM.test(Vu(e))||!/\n/.test(Vu(e)))}var UM={hasJsxIgnoreComment:function(e){let t=e.getValue(),r=e.getParentNode();if(!(r&&t&&El(t)&&El(r)))return!1;let n=null;for(let a=r.children.indexOf(t);a>0;a--){let o=r.children[a-1];if(o.type!=="JSXText"||qu(o)){n=o;break}}return n&&n.type==="JSXExpressionContainer"&&n.expression.type==="JSXEmptyExpression"&&LM(n.expression)},printJsx:function(e,t,r){let n=e.getValue();if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return function(a,o,l){let p=a.getValue(),d=[];if(d.push(l("name")),p.value){let m;if(Yd(p.value)){let y=Vu(p.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"'),{escaped:D,quote:b,regex:v}=PM(y,o.jsxSingleQuote?"'":'"');y=y.replace(v,D),m=[b,y,b]}else m=l("value");d.push("=",m)}return d}(e,t,r);case"JSXIdentifier":return String(n.name);case"JSXNamespacedName":return L2(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return L2(".",[r("object"),r("property")]);case"JSXSpreadAttribute":return q2(e,t,r);case"JSXSpreadChild":return q2(e,t,r);case"JSXExpressionContainer":return function(a,o,l){let p=a.getValue(),d=a.getParentNode(0),m=p.expression.type==="JSXEmptyExpression"||!Wr(p.expression)&&(p.expression.type==="ArrayExpression"||p.expression.type==="ObjectExpression"||p.expression.type==="ArrowFunctionExpression"||j2(p.expression)||p.expression.type==="FunctionExpression"||p.expression.type==="TemplateLiteral"||p.expression.type==="TaggedTemplateExpression"||p.expression.type==="DoExpression"||El(d)&&(p.expression.type==="ConditionalExpression"||OM(p.expression)));return ts(m?["{",l("expression"),O2,"}"]:["{",rs([Yt,l("expression")]),Yt,O2,"}"])}(e,0,r);case"JSXFragment":case"JSXElement":return VM(e,t,r);case"JSXOpeningElement":return function(a,o,l){let p=a.getValue(),d=p.name&&Wr(p.name)||p.typeParameters&&Wr(p.typeParameters);if(p.selfClosing&&p.attributes.length===0&&!d)return["<",l("name"),l("typeParameters")," />"];if(p.attributes&&p.attributes.length===1&&p.attributes[0].value&&Yd(p.attributes[0].value)&&!p.attributes[0].value.value.includes(`
|
||
|
`)&&!d&&!Wr(p.attributes[0]))return ts(["<",l("name"),l("typeParameters")," ",...a.map(l,"attributes"),p.selfClosing?" />":">"]);let m=p.attributes.length>0&&Wr(Ru(p.attributes),ns.Trailing),y=p.attributes.length===0&&!d||(o.bracketSameLine||o.jsxBracketSameLine)&&(!d||p.attributes.length>0)&&!m,D=p.attributes&&p.attributes.some(b=>b.value&&Yd(b.value)&&b.value.value.includes(`
|
||
|
`));return ts(["<",l("name"),l("typeParameters"),rs(a.map(()=>[Dl,l()],"attributes")),p.selfClosing?Dl:y?">":Yt,p.selfClosing?"/>":y?"":">"],{shouldBreak:D})}(e,t,r);case"JSXClosingElement":return function(a,o,l){let p=a.getValue(),d=[];d.push("</");let m=l("name");return Wr(p.name,ns.Leading|ns.Line)?d.push(rs([pt,m]),pt):Wr(p.name,ns.Leading|ns.Block)?d.push(" ",m):d.push(m),d.push(">"),d}(e,0,r);case"JSXOpeningFragment":case"JSXClosingFragment":return function(a,o){let l=a.getValue(),p=Wr(l),d=Wr(l,ns.Line),m=l.type==="JSXOpeningFragment";return[m?"<":"</",rs([d?pt:p&&!m?" ":"",P2(a,o,!0)]),d?pt:"",">"]}(e,t);case"JSXEmptyExpression":return function(a,o){let l=a.getValue(),p=Wr(l,ns.Line);return[P2(a,o,!p),p?pt:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error("Unknown JSX node type: ".concat(JSON.stringify(n.type),"."))}}},WM=gE,zM=hc,$M=qs,HM=d0,JM=AE;gc({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=zM(this),r=$M(t),n=JM(t,0);return n.length=WM(n,t,t,r,0,e===void 0?1:HM(e)),n}});var Al,YM=TD,XM=g0,KM=Object.keys||function(e){return YM(e,XM)},QM=Rs,ZM=Mi,ej=ki,tj=KM,rj=ge?Object.defineProperties:function(e,t){ZM(e);for(var r,n=ej(t),a=tj(t),o=a.length,l=0;o>l;)QM.f(e,r=a[l++],n[r]);return e},nj=_i("document","documentElement"),ij=Mi,sj=rj,G2=g0,aj=u0,uj=nj,oj=cD,U2=DD("IE_PROTO"),Kd=function(){},W2=function(e){return"<script>"+e+"<\/script>"},z2=function(e){e.write(W2("")),e.close();var t=e.parentWindow.Object;return e=null,t},vl=function(){try{Al=new ActiveXObject("htmlfile")}catch{}vl=typeof document<"u"?document.domain&&Al?z2(Al):function(){var t,r=oj("iframe");return r.style.display="none",uj.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(W2("document.F=Object")),t.close(),t.F}():z2(Al);for(var e=G2.length;e--;)delete vl.prototype[G2[e]];return vl()};aj[U2]=!0;var cj=Object.create||function(e,t){var r;return e!==null?(Kd.prototype=ij(e),r=new Kd,Kd.prototype=null,r[U2]=e):r=vl(),t===void 0?r:sj(r,t)},lj=Rs,Qd=Li("unscopables"),Zd=Array.prototype;Zd[Qd]==null&&lj.f(Zd,Qd,{configurable:!0,value:cj(null)});var pj=function(e){Zd[Qd][e]=!0};pj("flat");let{isNonEmptyArray:fj}=ke,{builders:{indent:hj,join:dj,line:mj}}=ve,{isFlowAnnotationComment:gj}=He;function $2(e,t,r){let n=e.getValue();if(!n.typeAnnotation)return"";let a=e.getParentNode(),o=n.definite||a&&a.type==="VariableDeclarator"&&a.definite,l=a.type==="DeclareFunction"&&a.id===n;return gj(t.originalText,n.typeAnnotation)?[" /*: ",r("typeAnnotation")," */"]:[l?"":o?"!: ":": ",r("typeAnnotation")]}var zr={printOptionalToken:function(e){let t=e.getValue();return!t.optional||t.type==="Identifier"&&t===e.getParentNode().key?"":t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression"&&t.computed?"?.":"?"},printFunctionTypeParameters:function(e,t,r){let n=e.getValue();return n.typeArguments?r("typeArguments"):n.typeParameters?r("typeParameters"):""},printBindExpressionCallee:function(e,t,r){return["::",r("callee")]},printTypeScriptModifiers:function(e,t,r){let n=e.getValue();return fj(n.modifiers)?[dj(" ",e.map(r,"modifiers"))," "]:""},printTypeAnnotation:$2,printRestSpread:function(e,t,r){return["...",r("argument"),$2(e,t,r)]},adjustClause:function(e,t,r){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||r?[" ",t]:hj([mj,t])}};let{printDanglingComments:H2}=gt,{builders:{line:J2,softline:xl,hardline:em,group:tm,indent:yj,ifBreak:Y2,fill:Dj}}=ve,{getLast:Ej,hasNewline:bj}=ke,{shouldPrintComma:Cj,hasComment:Sl,CommentCheckFlags:Gu,isNextLineEmpty:X2,isNumericLiteral:Aj,isSignedNumericLiteral:vj}=He,{locStart:xj}=$t,{printOptionalToken:Sj,printTypeAnnotation:Fj}=zr;function K2(e,t){return e.elements.length>1&&e.elements.every(r=>r&&(Aj(r)||vj(r)&&!Sl(r.argument))&&!Sl(r,Gu.Trailing|Gu.Line,n=>!bj(t.originalText,xj(n),{backwards:!0})))}function Q2(e,t,r,n){let a=[],o=[];return e.each(l=>{a.push(o,tm(n())),o=[",",J2],l.getValue()&&X2(l.getValue(),t)&&o.push(xl)},r),a}function wj(e,t,r,n){let a=[];return e.e
|
||
|
`):kR(e)}function RR(e,t){let r=function(n){return n.typeParameters&&n.typeParameters.params||n.typeArguments&&n.typeArguments.params}(e);if(Hu(r)){if(r.length>1)return!0;if(r.length===1){let a=r[0];if(a.type==="TSUnionType"||a.type==="UnionTypeAnnotation"||a.type==="TSIntersectionType"||a.type==="IntersectionTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(wR(t(n)))return!0}return!1}var Ju={printVariableDeclarator:function(e,t,r){return cm(e,t,r,r("id")," =","init")},printAssignmentExpression:function(e,t,r){let n=e.getValue();return cm(e,t,r,r("left"),[" ",n.operator],"right")},printAssignment:cm,isArrowFunctionVariableDeclarator:vx};let{getNextNonSpaceNonCommentCharacter:VR}=ke,{printDanglingComments:qR}=gt,{builders:{line:GR,hardline:Fx,softline:wx,group:UR,indent:WR,ifBreak:zR},utils:{removeLines:Bx,willBreak:lm}}=ve,{getFunctionParameters:pm,iterateFunctionParametersPath:$R,isSimpleType:HR,isTestCall:JR,isTypeAnnotationAFunction:YR,isObjectType:fm,isObjectTypePropertyAFunction:XR,hasRestParameter:KR,shouldPrintComma:QR,hasComment:ZR,isNextLineEmpty:eV}=He,{locEnd:tV}=$t,{ArgExpansionBailout:rV}=Cu,{printFunctionTypeParameters:nV}=zr;function Tx(e){if(!e)return!1;let t=pm(e);if(t.length!==1)return!1;let[r]=t;return!ZR(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&fm(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&fm(r.typeAnnotation)||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||r.right.type==="ObjectExpression"&&r.right.properties.length===0||r.right.type==="ArrayExpression"&&r.right.elements.length===0))}var Pl={printFunctionParameters:function(e,t,r,n,a){let o=e.getValue(),l=pm(o),p=a?nV(e,r,t):"";if(l.length===0)return[p,"(",qR(e,r,!0,v=>VR(r.originalText,v,tV)===")"),")"];let d=e.getParentNode(),m=JR(d),y=Tx(o),D=[];if($R(e,(v,w)=>{let S=w===l.length-1;S&&o.rest&&D.push("..."),D.push(t()),S||(D.push(","),m||y?D.push(" "):eV(l[w],r)?D.push(Fx,Fx):D.push(GR))}),n){if(lm(p)||lm(D))throw new rV;return UR([Bx(p),"(",Bx(D),")"])}let b=l.every(v=>!v.decorators);return y&&b||m?[p,"(",...D,")"]:(XR(d)||YR(d)||d.type==="TypeAlias"||d.type==="UnionTypeAnnotation"||d.type==="TSUnionType"||d.type==="IntersectionTypeAnnotation"||d.type==="FunctionTypeAnnotation"&&d.returnType===o)&&l.length===1&&l[0].name===null&&o.this!==l[0]&&l[0].typeAnnotation&&o.typeParameters===null&&HR(l[0].typeAnnotation)&&!o.rest?r.arrowParens==="always"?["(",...D,")"]:D:[p,"(",WR([wx,...D]),zR(!KR(o)&&QR(r,"all")?",":""),wx,")"]},shouldHugFunctionParameters:Tx,shouldGroupFunctionParameters:function(e,t){let r=function(a){let o;return a.returnType?(o=a.returnType,o.typeAnnotation&&(o=o.typeAnnotation)):a.typeAnnotation&&(o=a.typeAnnotation),o}(e);if(!r)return!1;let n=e.typeParameters&&e.typeParameters.params;if(n){if(n.length>1)return!1;if(n.length===1){let a=n[0];if(a.constraint||a.default)return!1}}return pm(e).length===1&&(fm(r)||lm(t))}};let{printComments:iV,printDanglingComments:sV}=gt,{getLast:aV,isNonEmptyArray:uV}=ke,{builders:{group:ss,join:kx,line:hm,softline:Ol,indent:as,align:oV,ifBreak:Ll}}=ve,cV=ha,{locStart:_x}=$t,{isSimpleType:lV,isObjectType:Yu,hasLeadingOwnLineComment:Nx,isObjectTypePropertyAFunction:pV,shouldPrintComma:fV}=He,{printAssignment:hV}=Ju,{printFunctionParameters:dV,shouldGroupFunctionParameters:mV}=Pl,{printArrayItems:gV}=Uu;function Ix(e){if(lV(e)||Yu(e))return!0;if(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType"){let t=e.types.filter(n=>n.type==="VoidTypeAnnotation"||n.type==="TSVoidKeyword"||n.type==="NullLiteralTypeAnnotation"||n.type==="TSNullKeyword").length,r=e.types.some(n=>n.type==="ObjectTypeAnnotation"||n.type==="TSTypeLiteral"||n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference");if(e.types.length-1===t&&r)return!0}return!1}var Ml={printOpaqueType:function(e,t,r){let n=t.semi?";":"",a=e.getValue(),o=[];return o.push("opaque typ
|
||
|
`);return l.length>1&&l.every(p=>p.trim()[0]==="*")}(r)){let o=function(l){let p=l.value.split(`
|
||
|
`);return["/*",DU($S,p.map((d,m)=>m===0?d.trimEnd():" "+(m<p.length-1?d.trim():d.trimStart()))),"*/"]}(r);return r.trailing&&!yU(t.originalText,HS(r),{backwards:!0})?[$S,o]:o}let n=JS(r),a=t.originalText.slice(n-3,n)==="*-/";return["/*",EU(r.value),a?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(r))}};let{printString:YS,printNumber:Ql}=ke;function XS(e){return e.toLowerCase()}function KS(e){let{pattern:t,flags:r}=e;return r=[...r].sort().join(""),"/".concat(t,"/").concat(r)}var vU={printLiteral:function(e,t){let r=e.getNode();switch(r.type){case"RegExpLiteral":return KS(r);case"BigIntLiteral":return XS(r.bigint||r.extra.raw);case"NumericLiteral":return Ql(r.extra.raw);case"StringLiteral":return YS(r.extra.raw,t);case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DecimalLiteral":return Ql(r.value)+"m";case"Literal":{if(r.regex)return KS(r.regex);if(r.bigint)return XS(r.raw);if(r.decimal)return Ql(r.decimal)+"m";let{value:n}=r;return typeof n=="number"?Ql(r.raw):typeof n=="string"?YS(r.raw,t):String(n)}}}};let{printDanglingComments:QS}=gt,{hasNewline:ZS}=ke,{builders:{join:eF,line:no,hardline:Dr,softline:Ct,group:ft,indent:Kt},utils:{replaceTextEndOfLine:xU}}=ve,SU=fL,FU=mL,{insertPragma:wU}=Yv,io=h2,BU=ha,TU=E2,{hasFlowShorthandAnnotationComment:kU,hasComment:Ea,CommentCheckFlags:Jm,isTheOnlyJsxElementInMarkdown:_U,isBlockComment:Ym,isLineComment:NU,isNextLineEmpty:tF,needsHardlineAfterDanglingComment:IU,rawText:PU,hasIgnoreComment:OU,isCallExpression:LU,isMemberExpression:MU}=He,{locStart:jU,locEnd:RU}=$t,{printHtmlBinding:VU,isVueEventBindingExpression:qU}=pM,{printAngular:GU}=_M,{printJsx:UU,hasJsxIgnoreComment:WU}=UM,{printFlow:zU}=EG,{printTypescript:$U}=gU,{printOptionalToken:HU,printBindExpressionCallee:JU,printTypeAnnotation:YU,adjustClause:gi,printRestSpread:XU}=zr,{printImportDeclaration:KU,printExportDeclaration:QU,printExportAllDeclaration:ZU,printModuleSpecifier:eW}=hS,{printTernary:tW}=kS,{printTemplateLiteral:rW}=la,{printArray:nW}=Uu,{printObject:iW}=Rm,{printClass:sW,printClassMethod:aW,printClassProperty:uW}=Qu,{printProperty:oW}=Xu,{printFunction:cW,printArrowFunction:lW,printMethod:rF,printReturnStatement:pW,printThrowStatement:fW}=ql,{printCallExpression:hW}=gx,{printVariableDeclarator:dW,printAssignmentExpression:mW}=Ju,{printBinaryishExpression:gW}=Hd,{printSwitchCaseConsequent:yW}=OS,{printMemberExpression:DW}=cx,{printBlock:EW,printBlockBody:bW}=jS,{printComment:CW}=AU,{printLiteral:AW}=vU,{printDecorators:vW}=Am;function nF(e,t){let r=PU(e),n=r.slice(1,-1);if(n.includes('"')||n.includes("'"))return r;let a=t.singleQuote?"'":'"';return a+n+a}var xW={preprocess:TU,print:function(e,t,r,n){let a=function(m,y,D,b){let v=m.getValue(),w=y.semi?";":"";if(!v)return"";if(typeof v=="string")return v;for(let k of[AW,VU,GU,UU,zU,$U]){let P=k(m,y,D);if(P!==void 0)return P}let S=[];switch(v.type){case"JsExpressionRoot":return D("node");case"JsonRoot":return[D("node"),Dr];case"File":return v.program&&v.program.interpreter&&S.push(D(["program","interpreter"])),S.push(D("program")),S;case"Program":return bW(m,y,D);case"EmptyStatement":return"";case"ExpressionStatement":if(v.directive)return[nF(v.expression,y),w];if(y.parser==="__vue_event_binding"){let k=m.getParentNode();if(k.type==="Program"&&k.body.length===1&&k.body[0]===v)return[D("expression"),qU(v.expression)?";":""]}return[D("expression"),_U(y,m)?"":w];case"ParenthesizedExpression":return!Ea(v.expression)&&(v.expression.type==="ObjectExpression"||v.expression.type==="ArrayExpression")?["(",D("expression"),")"]:ft(["(",Kt([Ct,D("expression")]),Ct,")"]);case"AssignmentExpression":return mW(m,y,D);case"VariableDeclarator":return dW(m,y,D);case"BinaryExpression":case"LogicalExpression":return gW(m,y,D);case"AssignmentPattern":return[D("left")," = ",D("right")];case"OptionalMemberExpression":case"MemberExpression":return DW(m,y,D);case"MetaProperty":return[D("meta"),".",D("property")];case"BindExpression":return v.object&&S.push(D("object")),S.push(ft(Kt([Ct,JU(m,y,D)]))),S;case"Identifier":return[v.name,HU(m),YU(m,y
|
||
|
|
||
|
`:"")+fF.insertPragma(r)}};let{isNonEmptyArray:dF}=ke,zW=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]),$W=new Set(["import","use","forward"]);function mF(e,t){let r=Array.isArray(t)?t:[t],n,a=-1;for(;n=e.getParentNode(++a);)if(r.includes(n.type))return a;return-1}function yi(e,t){let r=mF(e,t);return r===-1?null:e.getParentNode(r)}function gF(e){return e.type==="value-operator"&&e.value==="*"}function yF(e){return e.type==="value-operator"&&e.value==="/"}function DF(e){return e.type==="value-operator"&&e.value==="+"}function EF(e){return e.type==="value-operator"&&e.value==="-"}function bF(e){return e.type==="value-operator"&&e.value==="%"}function Qm(e){return e.type==="value-comma_group"&&e.groups&&e.groups[1]&&e.groups[1].type==="value-colon"}function ep(e){return e.type==="value-paren_group"&&e.groups&&e.groups[0]&&Qm(e.groups[0])}function CF(e){return e&&e.type==="value-colon"}var HW={getAncestorCounter:mF,getAncestorNode:yi,getPropOfDeclNode:function(e){let t=yi(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(dF(e)){for(let t=e.length-1;t>0;t--)if(e[t].type==="word"&&e[t].value==="{"&&e[t-1].type==="word"&&e[t-1].value.endsWith("#"))return!0}return!1},hasStringOrFunction:function(e){if(dF(e)){for(let t=0;t<e.length;t++)if(e[t].type==="string"||e[t].type==="func")return!0}return!1},maybeToLowerCase:function(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()},insideValueFunctionNode:function(e,t){let r=yi(e,"value-func");return r&&r.value&&r.value.toLowerCase()===t},insideICSSRuleNode:function(e){let t=yi(e,"css-rule");return t&&t.raws&&t.raws.selector&&(t.raws.selector.startsWith(":import")||t.raws.selector.startsWith(":export"))},insideAtRuleNode:function(e,t){let r=Array.isArray(t)?t:[t],n=yi(e,"css-atrule");return n&&r.includes(n.name.toLowerCase())},insideURLFunctionInImportAtRuleNode:function(e){let t=e.getValue(),r=yi(e,"css-atrule");return r&&r.name==="import"&&t.groups[0].value==="url"&&t.groups.length===2},isKeyframeAtRuleKeywords:function(e,t){let r=yi(e,"css-atrule");return r&&r.name&&r.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())},isWideKeywords:function(e){return["initial","inherit","unset","revert"].includes(e.toLowerCase())},isSCSS:function(e,t){return e==="less"||e==="scss"?e==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(t)},isSCSSVariable:function(e){return Boolean(e&&e.type==="word"&&e.value.startsWith("$"))},isLastNode:function(e,t){let r=e.getParentNode();if(!r)return!1;let{nodes:n}=r;return n&&n.indexOf(t)===n.length-1},isLessParser:function(e){return e.parser==="css"||e.parser==="less"},isSCSSControlDirectiveNode:function(e){return e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)},isDetachedRulesetDeclarationNode:function(e){return!!e.selector&&(typeof e.selector=="string"&&/^@.+:.*$/.test(e.selector)||e.selector.value&&/^@.+:.*$/.test(e.selector.value))},isRelationalOperatorNode:function(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return e.type==="value-word"&&["==","!="].includes(e.value)},isMultiplicationNode:gF,isDivisionNode:yF,isAdditionNode:DF,isSubtractionNode:EF,isModuloNode:bF,isMathOperatorNode:function(e){return gF(e)||yF(e)||DF(e)||EF(e)||bF(e)},isEachKeywordNode:function(e){return e.type==="value-word"&&e.value==="in"},isForKeywordNode:function(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"},isIfElseKeywordNode:function(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&e.value.type==="value-root"&&e.value.group&&e.value.group.type==="value-value"&&e.prop
|
||
|
`,r)+1;return r+e.column},{getLast:JW,skipEverythingButNewLine:YW}=ke;function vF(e,t){return typeof e.sourceIndex=="number"?e.sourceIndex:e.source?AF(e.source.start,t)-1:null}function xF(e,t){if(e.type==="css-comment"&&e.inline)return YW(t,e.source.startOffset);let r=e.nodes&&JW(e.nodes);return r&&e.source&&!e.source.end&&(e=r),e.source&&e.source.end?AF(e.source.end,t):null}function SF(e,t,r){e.source&&(e.source.startOffset=vF(e,r)+t,e.source.endOffset=xF(e,r)+t);for(let n in e){let a=e[n];n!=="source"&&a&&typeof a=="object"&&SF(a,t,r)}}function XW(e){let t=e.source.startOffset;return typeof e.prop=="string"&&(t+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!=="css-atrule"&&e.raws&&typeof e.raws.between=="string"&&(t+=e.raws.between.length),t}var KW={locStart:function(e){return e.source.startOffset},locEnd:function(e){return e.source.endOffset},calculateLoc:function e(t,r){t.source&&(t.source.startOffset=vF(t,r),t.source.endOffset=xF(t,r));for(let n in t){let a=t[n];n!=="source"&&a&&typeof a=="object"&&(a.type==="value-root"||a.type==="value-unknown"?SF(a,XW(t),a.text||a.value):e(a,r))}},replaceQuotesInInlineComments:function(e){let t,r="initial",n="initial",a=!1,o=[];for(let l=0;l<e.length;l++){let p=e[l];switch(r){case"initial":if(p==="'"){r="single-quotes";continue}if(p==='"'){r="double-quotes";continue}if((p==="u"||p==="U")&&e.slice(l,l+4).toLowerCase()==="url("){r="url",l+=3;continue}if(p==="*"&&e[l-1]==="/"){r="comment-block";continue}if(p==="/"&&e[l-1]==="/"){r="comment-inline",t=l-1;continue}continue;case"single-quotes":if(p==="'"&&e[l-1]!=="\\"&&(r=n,n="initial"),p===`
|
||
|
`||p==="\r")return e;continue;case"double-quotes":if(p==='"'&&e[l-1]!=="\\"&&(r=n,n="initial"),p===`
|
||
|
`||p==="\r")return e;continue;case"url":if(p===")"&&(r="initial"),p===`
|
||
|
`||p==="\r")return e;if(p==="'"){r="single-quotes",n="url";continue}if(p==='"'){r="double-quotes",n="url";continue}continue;case"comment-block":p==="/"&&e[l-1]==="*"&&(r="initial");continue;case"comment-inline":p!=='"'&&p!=="'"&&p!=="*"||(a=!0),p!==`
|
||
|
`&&p!=="\r"||(a&&o.push([t,l]),r="initial",a=!1);continue}}for(let[l,p]of o)e=e.slice(0,l)+e.slice(l,p).replace(/["'*]/g," ")+e.slice(p);return e}};let FF=Mr,{printNumber:QW,printString:wF,hasNewline:ZW,isFrontMatterNode:BF,isNextLineEmpty:ez,isNonEmptyArray:tz}=ke,{builders:{join:Ca,line:Er,hardline:cr,softline:Jn,group:gn,fill:Zm,indent:Hr,dedent:tp,ifBreak:TF,breakParent:kF},utils:{removeLines:rz,getDocParts:_F}}=ve,nz=jW,iz=GW,{insertPragma:sz}=WW,{getAncestorNode:eg,getPropOfDeclNode:az,maybeToLowerCase:cs,insideValueFunctionNode:rp,insideICSSRuleNode:uz,insideAtRuleNode:np,insideURLFunctionInImportAtRuleNode:oz,isKeyframeAtRuleKeywords:cz,isWideKeywords:lz,isSCSS:pz,isLastNode:tg,isLessParser:NF,isSCSSControlDirectiveNode:rg,isDetachedRulesetDeclarationNode:fz,isRelationalOperatorNode:hz,isEqualityOperatorNode:dz,isMultiplicationNode:IF,isDivisionNode:ng,isAdditionNode:ls,isSubtractionNode:so,isMathOperatorNode:ig,isEachKeywordNode:mz,isForKeywordNode:gz,isURLFunctionNode:yz,isIfElseKeywordNode:Dz,hasComposesNode:Ez,hasParensAroundNode:bz,hasEmptyRawBefore:Aa,isKeyValuePairNode:Cz,isKeyInValuePairNode:Az,isDetachedRulesetCallNode:PF,isTemplatePlaceholderNode:OF,isTemplatePropNode:vz,isPostcssSimpleVarNode:xz,isSCSSMapItemNode:Sz,isInlineValueCommentNode:LF,isHashNode:sg,isLeftCurlyBraceNode:MF,isRightCurlyBraceNode:ag,isWordNode:ip,isColonNode:jF,isMediaAndSupportsKeywords:Fz,isColorAdjusterFuncNode:wz,lastLineHasInlineComment:ao,isAtWordPlaceholderNode:sp,isConfigurationNode:Bz,isParenGroupNode:RF}=HW,{locStart:Di,locEnd:Yn}=KW;function Tz(e){return e.trailingComma==="es5"||e.trailingComma==="all"}function uo(e,t,r){let n=[];return e.each((a,o,l)=>{let p=l[o-1];if(p&&p.type==="css-comment"&&p.text.trim()==="prettier-ignore"){let d=a.getValue();n.push(t.originalText.slice(Di(d),Yn(d)))}else n.push(r());o!==l.length-1&&(l[o+1].type==="css-comment"&&!ZW(t.originalText,Di(l[o+1]),{backwards:!0})&&!BF(l[o])||l[o+1].type==="css-atrule"&&l[o+1].name==="else"&&l[o].type!=="css-comment"?n.push(" "):(n.push(t.__isHTMLStyleAttribute?Er:cr),ez(t.originalText,a.getValue(),Yn)&&!BF(l[o])&&n.push(cr)))},"nodes"),n}let VF=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,kz=new RegExp(VF.source+"|"+"(".concat(/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source,")?")+"(".concat(/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source,")")+"(".concat(/[A-Za-z]+/g.source,")?"),"g");function Ei(e,t){return e.replace(VF,r=>wF(r,t))}function _z(e,t){let r=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:r+e+r}function oo(e){return e.replace(kz,(t,r,n,a,o)=>!n&&a?qF(a)+cs(o||""):t)}function qF(e){return QW(e).replace(/\.0(?=$|e)/,"")}var Nz={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.type){case"front-matter":return[n.raw,cr];case"css-root":{let a=uo(e,t,r),o=n.raws.after.trim();return[a,o?" ".concat(o):"",_F(a).length>0?cr:""]}case"css-comment":{let a=n.inline||n.raws.inline,o=t.originalText.slice(Di(n),Yn(n));return a?o.trimEnd():o}case"css-rule":return[r("selector"),n.important?" !important":"",n.nodes?[n.selector&&n.selector.type==="selector-unknown"&&ao(n.selector.value)?Er:" ","{",n.nodes.length>0?Hr([cr,uo(e,t,r)]):"",cr,"}",fz(n)?";":""]:";"];case"css-decl":{let a=e.getParentNode(),{between:o}=n.raws,l=o.trim(),p=l===":",d=Ez(n)?rz(r("value")):r("value");return!p&&ao(l)&&(d=Hr([cr,tp(d)])),[n.raws.before.replace(/[\s;]/g,""),uz(e)?n.prop:cs(n.prop),l.startsWith("//")?" ":"",l,n.extend?"":" ",NF(t)&&n.extend&&n.selector?["extend(",r("selector"),")"]:"",d,n.raws.important?n.raws.important.replace(/\s*!\s*important/i," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/i," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/i," !global"):n.scssGlobal?" !global":"",n.nodes?[" {",Hr([Jn,uo(e,t,r)]),Jn,"}"]:vz(n)&&!a.raws.semicolon&&t.originalText[Yn(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&tg(e,n)?TF(";"):";"]}case"css-atrule":{let a=e.getParentNode(),o=OF(n)&&!a.raws.semicolon&&t.originalText[Yn
|
||
|
`).length-1}function lo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(e,2)}).fill(va)}function l3(e,t){let{quote:r,regex:n}=lg(e,t);return[r,e.replace(n,"\\".concat(r)),r]}function t$(e,t){let r=dg(e,t),n=pp(e,t);return n?Br([r,br,In(n)]):r}function p3(e,t){let r=dg(e,t),n=pp(e,t);return n?[Br([r,br,n]),Xn]:r}function dg(e,t){return t("path")}function pp(e,t){let r=e.getValue(),n=[];if(r.params.length>0){let a=e.map(t,"params");n.push(...a)}if(r.hash&&r.hash.pairs.length>0){let a=t("hash");n.push(a)}return n.length===0?"":cg(br,n)}function f3(e){return["as |",e.blockParams.join(" "),"|"]}var r$={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(Jz(e))return t.originalText.slice(co(n),fg(n));let a=t.singleQuote?"'":'"';switch(n.type){case"Block":case"Program":case"Template":return In(e.map(r,"body"));case"ElementNode":{let o=In(function(d,m){let y=d.getValue(),D=["attributes","modifiers","comments"].filter(v=>pg(y[v])),b=D.flatMap(v=>y[v]).sort(Yz);for(let v of D)d.each(w=>{let S=b.indexOf(w.getValue());b.splice(S,1,[br,m()])},v);return pg(y.blockParams)&&b.push(br,f3(y)),["<",y.tag,Br(b),Xz(y)]}(e,r)),l=t.htmlWhitespaceSensitivity==="ignore"&&up(e,["ElementNode"])?Xn:"";if(QF(n))return[o,l];let p=["</",n.tag,">"];return n.children.length===0?[o,Br(p),l]:t.htmlWhitespaceSensitivity==="ignore"?[o,Br(e3(e,t,r)),va,Br(p),l]:[o,Br(In(e3(e,t,r))),Br(p),l]}case"BlockStatement":{let o=e.getParentNode(1);return o&&o.inverse&&o.inverse.body.length===1&&o.inverse.body[0]===n&&o.inverse.body[0].path.parts[0]==="if"?[Zz(e,r),u3(e,r,t),o3(e,r,t)]:[Kz(e,r),In([u3(e,r,t),o3(e,r,t),e$(e,r,t)])]}case"ElementModifierStatement":return In(["{{",p3(e,r),"}}"]);case"MustacheStatement":return In([cp(n),p3(e,r),lp(n)]);case"SubExpression":return In(["(",t$(e,r),Xn,")"]);case"AttrNode":{let o=n.value.type==="TextNode";if(o&&n.value.chars===""&&co(n.value)===fg(n.value))return n.name;let l=o?lg(n.value.chars,a).quote:n.value.type==="ConcatStatement"?lg(n.value.parts.filter(d=>d.type==="TextNode").map(d=>d.chars).join(""),a).quote:"",p=r("value");return[n.name,"=",l,n.name==="class"&&l?In(Br(p)):p,l]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return cg(br,e.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let o=n.chars.replace(/{{/g,"\\{{"),l=function(S){for(let k=0;k<2;k++){let P=S.getParentNode(k);if(P&&P.type==="AttrNode")return P.name.toLowerCase()}}(e);if(l){if(l==="class"){let S=o.trim().split(/\s+/).join(" "),k=!1,P=!1;return op(e,["ConcatStatement"])&&(hg(e,["MustacheStatement"])&&/^\s/.test(o)&&(k=!0),up(e,["MustacheStatement"])&&/\s$/.test(o)&&S!==""&&(P=!0)),[k?br:"",S,P?br:""]}return Wz(o)}let p=/^[\t\n\f\r ]*$/.test(o),d=!Hz(e),m=!$z(e);if(t.htmlWhitespaceSensitivity!=="ignore"){let S=/^[\t\n\f\r ]*/,k=/[\t\n\f\r ]*$/,P=m&&op(e,["Template"]),_=d&&op(e,["Template"]);if(p){if(_||P)return"";let Q=[br],te=Sa(o);return te&&(Q=lo(te)),KF(e)&&(Q=Q.map(Ee=>JF(Ee))),Q}let[M]=o.match(S),[U]=o.match(k),q=[];if(M){q=[br];let Q=Sa(M);Q&&(q=lo(Q)),o=o.replace(S,"")}let H=[];if(U){if(!P){H=[br];let Q=Sa(U);Q&&(H=lo(Q)),KF(e)&&(H=H.map(te=>JF(te)))}o=o.replace(k,"")}return[...q,YF(c3(o)),...H]}let y=Sa(o),D=function(S){return Sa(((S=typeof S=="string"?S:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(o),b=function(S){return Sa(((S=typeof S=="string"?S:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(o);if((d||m)&&p&&op(e,["Block","ElementNode","Template"]))return"";p&&y?(D=Math.min(y,2),b=0):(up(e,["BlockStatement","ElementNode"])&&(b=Math.max(b,1)),hg(e,["BlockStatement","ElementNode"])&&(D=Math.max(D,1)));let v="",w="";return b===0&&up(e,["MustacheStatement"])&&(w=" "),D===0&&hg(e,["MustacheStatement"])&&(v=" "),d&&(D=0,v=""),m&&(b=0,w=""),o=o.replace(/^[\t\n\f\r ]+/g,v).replace(/[\t\n\f\r ]+$/,w),[...lo(D),YF(c3(o)),...lo(b)]}case"MustacheCommentStatement":{let o=co(n),l=fg(n),p=t.originalText.charAt(o+2)==="~",d=t.originalText.charAt(l-3)==="~",m=n.value.includes("}}")?"--":"";return["{{",p?"~":"","!",m,n.value,m,d?"~":"","}}"]}case"PathExpres
|
||
|
|
||
|
`+e}},a$={locStart:function(e){return typeof e.start=="number"?e.start:e.loc&&e.loc.start},locEnd:function(e){return typeof e.end=="number"?e.end:e.loc&&e.loc.end}};let{builders:{join:Tt,hardline:Ue,line:Fa,softline:tt,group:Tr,indent:Qt,ifBreak:yn}}=ve,{isNextLineEmpty:h3,isNonEmptyArray:mg}=ke,{insertPragma:u$}=s$,{locStart:o$,locEnd:d3}=a$;function Zt(e,t,r){if(r.directives.length===0)return"";let n=Tt(Fa,e.map(t,"directives"));return r.kind==="FragmentDefinition"||r.kind==="OperationDefinition"?Tr([Fa,n]):[" ",Tr(Qt([tt,n]))]}function Pn(e,t,r){let n=e.getValue().length;return e.map((a,o)=>{let l=r();return h3(t.originalText,a.getValue(),d3)&&o<n-1?[l,Ue]:l})}function m3(e,t,r){let n=e.getNode(),a=[],{interfaces:o}=n,l=e.map(p=>r(p),"interfaces");for(let p=0;p<o.length;p++){let d=o[p];a.push(l[p]);let m=o[p+1];if(m){let y=t.originalText.slice(d.loc.end,m.loc.start),D=y.includes("#"),b=y.replace(/#.*/g,"").trim();a.push(b===","?",":" &",D?Fa:" ")}}return a}function g3(){}g3.ignoredProperties=new Set(["loc","comments"]);var c$={print:function(e,t,r){let n=e.getValue();if(!n)return"";if(typeof n=="string")return n;switch(n.kind){case"Document":{let a=[];return e.each((o,l,p)=>{a.push(r()),l!==p.length-1&&(a.push(Ue),h3(t.originalText,o.getValue(),d3)&&a.push(Ue))},"definitions"),[...a,Ue]}case"OperationDefinition":{let a=t.originalText[o$(n)]!=="{",o=Boolean(n.name);return[a?n.operation:"",a&&o?[" ",r("name")]:"",a&&!o&&mg(n.variableDefinitions)?" ":"",mg(n.variableDefinitions)?Tr(["(",Qt([tt,Tt([yn("",", "),tt],e.map(r,"variableDefinitions"))]),tt,")"]):"",Zt(e,r,n),n.selectionSet&&(a||o)?" ":"",r("selectionSet")]}case"FragmentDefinition":return["fragment ",r("name"),mg(n.variableDefinitions)?Tr(["(",Qt([tt,Tt([yn("",", "),tt],e.map(r,"variableDefinitions"))]),tt,")"]):""," on ",r("typeCondition"),Zt(e,r,n)," ",r("selectionSet")];case"SelectionSet":return["{",Qt([Ue,Tt(Ue,e.call(a=>Pn(a,t,r),"selections"))]),Ue,"}"];case"Field":return Tr([n.alias?[r("alias"),": "]:"",r("name"),n.arguments.length>0?Tr(["(",Qt([tt,Tt([yn("",", "),tt],e.call(a=>Pn(a,t,r),"arguments"))]),tt,")"]):"",Zt(e,r,n),n.selectionSet?" ":"",r("selectionSet")]);case"Name":case"IntValue":case"FloatValue":case"EnumValue":return n.value;case"StringValue":return n.block?['"""',Ue,Tt(Ue,n.value.replace(/"""/g,"\\$&").split(`
|
||
|
`)),Ue,'"""']:['"',n.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"BooleanValue":return n.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",r("name")];case"ListValue":return Tr(["[",Qt([tt,Tt([yn("",", "),tt],e.map(r,"values"))]),tt,"]"]);case"ObjectValue":return Tr(["{",t.bracketSpacing&&n.fields.length>0?" ":"",Qt([tt,Tt([yn("",", "),tt],e.map(r,"fields"))]),tt,yn("",t.bracketSpacing&&n.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[r("name"),": ",r("value")];case"Directive":return["@",r("name"),n.arguments.length>0?Tr(["(",Qt([tt,Tt([yn("",", "),tt],e.call(a=>Pn(a,t,r),"arguments"))]),tt,")"]):""];case"NamedType":return r("name");case"VariableDefinition":return[r("variable"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",Zt(e,r,n)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[r("description"),n.description?Ue:"",n.kind==="ObjectTypeExtension"?"extend ":"","type ",r("name"),n.interfaces.length>0?[" implements ",...m3(e,t,r)]:"",Zt(e,r,n),n.fields.length>0?[" {",Qt([Ue,Tt(Ue,e.call(a=>Pn(a,t,r),"fields"))]),Ue,"}"]:""];case"FieldDefinition":return[r("description"),n.description?Ue:"",r("name"),n.arguments.length>0?Tr(["(",Qt([tt,Tt([yn("",", "),tt],e.call(a=>Pn(a,t,r),"arguments"))]),tt,")"]):"",": ",r("type"),Zt(e,r,n)];case"DirectiveDefinition":return[r("description"),n.description?Ue:"","directive ","@",r("name"),n.arguments.length>0?Tr(["(",Qt([tt,Tt([yn("",", "),tt],e.call(a=>Pn(a,t,r),"arguments"))]),tt,")"]):"",n.repeatable?" repeatable":""," on ",Tt(" | ",e.map(r,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[r("description"),n.description?Ue:"",n.kind==="EnumTypeExtension"?"extend ":"","enum ",r("name"),Zt(e,r,n),n.values.length>0?[" {",Qt([Ue,Tt(Ue,e.call(a=>Pn(a,t,r),"values"))]),Ue,"}"]:""];case"EnumValueDefinition":return[r("description"),n.description?Ue:"",r("name"),Zt(e,r,n)];case"InputValueDefinition":return[r("description"),n.description?n.description.block?Ue:Fa:"",r("name"),": ",r("type"),n.defaultValue?[" = ",r("defaultValue")]:"",Zt(e,r,n)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[r("description"),n.description?Ue:"",n.kind==="InputObjectTypeExtension"?"extend ":"","input ",r("name"),Zt(e,r,n),n.fields.length>0?[" {",Qt([Ue,Tt(Ue,e.call(a=>Pn(a,t,r),"fields"))]),Ue,"}"]:""];case"SchemaDefinition":return["schema",Zt(e,r,n)," {",n.operationTypes.length>0?Qt([Ue,Tt(Ue,e.call(a=>Pn(a,t,r),"operationTypes"))]):"",Ue,"}"];case"OperationTypeDefinition":return[r("operation"),": ",r("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[r("description"),n.description?Ue:"",n.kind==="InterfaceTypeExtension"?"extend ":"","interface ",r("name"),n.interfaces.length>0?[" implements ",...m3(e,t,r)]:"",Zt(e,r,n),n.fields.length>0?[" {",Qt([Ue,Tt(Ue,e.call(a=>Pn(a,t,r),"fields"))]),Ue,"}"]:""];case"FragmentSpread":return["...",r("name"),Zt(e,r,n)];case"InlineFragment":return["...",n.typeCondition?[" on ",r("typeCondition")]:"",Zt(e,r,n)," ",r("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return Tr([r("description"),n.description?Ue:"",Tr([n.kind==="UnionTypeExtension"?"extend ":"","union ",r("name"),Zt(e,r,n),n.types.length>0?[" =",yn(""," "),Qt([yn([Fa," "]),Tt([Fa,"| "],e.map(r,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[r("description"),n.description?Ue:"",n.kind==="ScalarTypeExtension"?"extend ":"","scalar ",r("name"),Zt(e,r,n)];case"NonNullType":return[r("type"),"!"];case"ListType":return["[",r("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind))}},massageAstNode:g3,hasPrettierIgnore:function(e){let t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some(r=>r.value.trim()==="prettier-ignore")},insertPragma:u$,printComment:function(e){let t=e.getValue();if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&e.kind!=="Comment"}};let l$=c$,p$={bracketSpacin
|
||
|
(`).concat(gg,")"),"g"),"$1$2")).split(/([\t\n ]+)/);for(let[d,m]of l.entries()){if(d%2==1){o.push({type:"whitespace",value:/\n/.test(m)?`
|
||
|
`:" "});continue}if((d===0||d===l.length-1)&&m==="")continue;let y=m.split(new RegExp("(".concat(gg,")")));for(let[D,b]of y.entries())(D!==0&&D!==y.length-1||b!=="")&&(D%2!=0?p(yg.test(b)?{type:"word",value:b,kind:a,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:b,kind:m$.test(b)?"k-letter":n,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):b!==""&&p({type:"word",value:b,kind:r,hasLeadingPunctuation:yg.test(b[0]),hasTrailingPunctuation:yg.test(D3(b))}))}return o;function p(d){let m=D3(o);var y,D;m&&m.type==="word"&&(m.kind===r&&d.kind===n&&!m.hasTrailingPunctuation||m.kind===n&&d.kind===r&&!d.hasLeadingPunctuation?o.push({type:"whitespace",value:" "}):(y=r,D=a,m.kind===y&&d.kind===D||m.kind===D&&d.kind===y||[m.value,d.value].some(b=>/\u3000/.test(b))||o.push({type:"whitespace",value:""}))),o.push(d)}},punctuationPattern:C3,getFencedCodeBlockValue:function(e,t){let{value:r}=e;return e.position.end.offset===t.length&&r.endsWith(`
|
||
|
`)&&t.endsWith(`
|
||
|
`)?r.slice(0,-1):r},getOrderedListItemInfo:fp,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered||e.children.length<2)return!1;let r=Number(fp(e.children[0],t.originalText).numberText),n=Number(fp(e.children[1],t.originalText).numberText);if(r===0&&e.children.length>2){let a=Number(fp(e.children[2],t.originalText).numberText);return n===1&&a===1}return n===1},INLINE_NODE_TYPES:A3,INLINE_NODE_WRAPPER_TYPES:d$,isAutolink:function(e){if(!e||e.type!=="link"||e.children.length!==1)return!1;let t=e.children[0];return t&&E3(e)===E3(t)&&b3(e)===b3(t)}};let{inferParserByLanguage:g$,getMaxContinuousCount:y$}=ke,{builders:{hardline:Eg,markAsRoot:D$},utils:{replaceEndOfLine:E$}}=ve,b$=Km,{getFencedCodeBlockValue:C$}=Dg;var A$=function(e,t,r,n){let a=e.getValue();if(a.type==="code"&&a.lang!==null){let o=g$(a.lang,n);if(o){let l=n.__inJsTemplate?"~":"`",p=l.repeat(Math.max(3,y$(a.value,l)+1)),d={parser:o};a.lang==="tsx"&&(d.filepath="dummy.tsx");let m=r(C$(a,n.originalText),d,{stripTrailingHardline:!0});return D$([p,a.lang,a.meta?" "+a.meta:"",Eg,E$(m),Eg,p])}}switch(a.type){case"front-matter":return b$(a,r);case"importExport":return[r(a.value,{parser:"babel"},{stripTrailingHardline:!0}),Eg];case"jsx":return r("<$>".concat(a.value,"</$>"),{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null};let v3=pF,x3=["format","prettier"];function S3(e){let t="@(".concat(x3.join("|"),")"),r=new RegExp(["<!--\\s*".concat(t,"\\s*-->"),"{\\s*\\/\\*\\s*".concat(t,"\\s*\\*\\/\\s*}"),`<!--.*\r?
|
||
|
[\\s\\S]*(^|
|
||
|
)[^\\S
|
||
|
]*`.concat(t,`[^\\S
|
||
|
]*($|
|
||
|
)[\\s\\S]*
|
||
|
.*-->`)].join("|"),"m"),n=e.match(r);return n&&n.index===0}var F3={startWithPragma:S3,hasPragma:e=>S3(v3(e).content.trimStart()),insertPragma:e=>{let t=v3(e),r="<!-- @".concat(x3[0]," -->");return t.frontMatter?"".concat(t.frontMatter.raw,`
|
||
|
|
||
|
`).concat(r,`
|
||
|
|
||
|
`).concat(t.content):"".concat(r,`
|
||
|
|
||
|
`).concat(t.content)}};let v$=Mr,{getOrderedListItemInfo:w3,mapAst:fs,splitText:x$}=Dg,S$=/^.$/us;function B3(e,t,r){return fs(e,n=>{if(!n.children)return n;let a=n.children.reduce((o,l)=>{let p=v$(o);return p&&t(p,l)?o.splice(-1,1,r(p,l)):o.push(l),o},[]);return Object.assign(Object.assign({},n),{},{children:a})})}var F$=function(e,t){return e=function(r,n){return fs(r,a=>a.type==="text"&&a.value!=="*"&&a.value!=="_"&&S$.test(a.value)&&a.position.end.offset-a.position.start.offset!==a.value.length?Object.assign(Object.assign({},a),{},{value:n.originalText.slice(a.position.start.offset,a.position.end.offset)}):a)}(e,t),e=function(r,n){return fs(r,(a,o,l)=>{if(a.type==="code"){let p=/^\n?(?: {4,}|\t)/.test(n.originalText.slice(a.position.start.offset,a.position.end.offset));if(a.isIndented=p,p)for(let d=0;d<l.length;d++){let m=l[d];if(m.hasIndentedCodeblock)break;m.type==="list"&&(m.hasIndentedCodeblock=!0)}}return a})}(e=function(r){return fs(r,n=>n.type!=="inlineCode"?n:Object.assign(Object.assign({},n),{},{value:n.value.replace(/\s+/g," ")}))}(e=function(r){return B3(r,(n,a)=>n.type==="text"&&a.type==="text",(n,a)=>({type:"text",value:n.value+a.value,position:{start:n.position.start,end:a.position.end}}))}(e)),t),e=function(r,n){return fs(r,(l,p,d)=>{if(l.type==="list"&&l.children.length>0){for(let m=0;m<d.length;m++){let y=d[m];if(y.type==="list"&&!y.isAligned)return l.isAligned=!1,l}l.isAligned=o(l)}return l});function a(l){return l.children.length===0?-1:l.children[0].position.start.column-1}function o(l){if(!l.ordered)return!0;let[p,d]=l.children;if(w3(p,n.originalText).leadingSpaces.length>1)return!0;let m=a(p);return m===-1?!1:l.children.length===1?m%n.tabWidth==0:m!==a(d)?!1:m%n.tabWidth==0?!0:w3(d,n.originalText).leadingSpaces.length>1}}(e,t),e=function(r,n){return fs(r,(a,o,l)=>{let[p]=l;if(a.type!=="text")return a;let{value:d}=a;return p.type==="paragraph"&&(o===0&&(d=d.trimStart()),o===p.children.length-1&&(d=d.trimEnd())),{type:"sentence",position:a.position,children:x$(d,n)}})}(e,t),e=function(r){return B3(r,(n,a)=>n.type==="importExport"&&a.type==="importExport",(n,a)=>({type:"importExport",value:n.value+`
|
||
|
|
||
|
`+a.value,position:{start:n.position.start,end:a.position.end}}))}(e=function(r){return fs(r,n=>n.type!=="import"&&n.type!=="export"?n:Object.assign(Object.assign({},n),{},{type:"importExport"}))}(e))};let{isFrontMatterNode:w$}=ke,{startWithPragma:B$}=F3,T$=new Set(["position","raw"]);function T3(e,t,r){return e.type!=="front-matter"&&e.type!=="code"&&e.type!=="yaml"&&e.type!=="import"&&e.type!=="export"&&e.type!=="jsx"||delete t.value,e.type==="list"&&delete t.isAligned,e.type!=="list"&&e.type!=="listItem"||(delete t.spread,delete t.loose),e.type==="text"?null:(e.type==="inlineCode"&&(t.value=e.value.replace(/[\t\n ]+/g," ")),e.type==="wikiLink"&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),e.type!=="definition"&&e.type!=="linkReference"||(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),e.type!=="definition"&&e.type!=="link"&&e.type!=="image"||!e.title||(t.title=e.title.replace(/\\(["')])/g,"$1")),r&&r.type==="root"&&r.children.length>0&&(r.children[0]===e||w$(r.children[0])&&r.children[1]===e)&&e.type==="html"&&B$(e.value)?null:void 0)}T3.ignoredProperties=T$;var k$=T3;let{getLast:hp,getMinNotPresentContinuousCount:_$,getMaxContinuousCount:N$,getStringWidth:I$,isNonEmptyArray:P$}=ke,{builders:{breakParent:k3,join:_3,line:N3,literalline:I3,markAsRoot:P3,hardline:er,softline:bg,ifBreak:O$,fill:L$,align:wa,indent:M$,group:dp,hardlineWithoutBreakParent:O3},utils:{normalizeDoc:j$,replaceTextEndOfLine:po},printer:{printDocToString:R$}}=ve,V$=A$,{insertPragma:q$}=F3,{locStart:G$,locEnd:U$}=y3,W$=F$,z$=k$,{getFencedCodeBlockValue:$$,hasGitDiffFriendlyOrderedList:H$,splitText:J$,punctuationPattern:L3,INLINE_NODE_TYPES:Y$,INLINE_NODE_WRAPPER_TYPES:X$,isAutolink:M3}=Dg,j3=new Set(["importExport"]),K$=["heading","tableCell","link","wikiLink"],Q$=new Set(["listItem","definition","footnoteDefinition"]);function R3(e,t,r,n){let a=e.getValue(),o=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[o,tr(e,t,r,{processor:(l,p)=>{if(p===0&&l.getValue().type!=="list")return wa(" ".repeat(o.length),r());let d=" ".repeat(function(m,y,D){return m<y?y:m>D?D:m}(t.tabWidth-n.length,0,3));return[d,wa(d,r())]}})]}function V3(e,t){return function(r,n,a){let o=-1;for(let l of n.children)if(l.type===r.type&&a(l)?o++:o=-1,l===r)return o}(e,t,r=>r.ordered===e.ordered)}function q3(e,t){let r=Array.isArray(t)?t:[t],n,a=-1;for(;n=e.getParentNode(++a);)if(r.includes(n.type))return a;return-1}function Cg(e,t){let r=q3(e,t);return r===-1?null:e.getParentNode(r)}function G3(e,t,r){if(r.proseWrap==="preserve"&&t===`
|
||
|
`)return er;let n=r.proseWrap==="always"&&!Cg(e,K$);return t!==""?n?N3:" ":n?bg:""}function Z$(e,t,r){let n=[],a=null,{children:o}=e.getValue();for(let[l,p]of o.entries())switch(Ag(p)){case"start":a===null&&(a={index:l,offset:p.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:l,offset:p.position.start.offset}}),a=null)}return tr(e,t,r,{processor:(l,p)=>{if(n.length>0){let d=n[0];if(p===d.start.index)return[o[d.start.index].value,t.originalText.slice(d.start.offset,d.end.offset),o[d.end.index].value];if(d.start.index<p&&p<d.end.index)return!1;if(p===d.end.index)return n.shift(),!1}return r()}})}function tr(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:a}=n,o=n.processor||(()=>r()),l=e.getValue(),p=[],d;return e.each((m,y)=>{let D=m.getValue(),b=o(m,y);if(b!==!1){let v={parts:p,prevNode:d,parentNode:l,options:t};tH(D,v)&&(p.push(er),d&&j3.has(d.type)||(rH(D,v)||U3(D,v))&&p.push(er),U3(D,v)&&p.push(er)),p.push(b),d=D}},"children"),a?a(p):p}function eH(e){let t=e;for(;P$(t.children);)t=hp(t.children);return t}function Ag(e){let t;if(e.type==="html")t=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let r;e.type==="esComment"?r=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(r=e.children[0]),r&&(t=r.value.match(/^prettier-ignore(?:-(start|end))?$/))}return!!t&&(t[1]?t[1]:"next")}function tH(e,t){let r=t.parts.length===0,n=Y$.includes(e.type),a=e.type==="html"&&X$.includes(t.parentNode.type);return!r&&!n&&!a}function rH(e,t){let r=(t.prevNode&&t.prevNode.type)===e.type&&Q$.has(e.type),n=t.parentNode.type==="listItem"&&!t.parentNode.loose,a=t.prevNode&&t.prevNode.type==="listItem"&&t.prevNode.loose,o=Ag(t.prevNode)==="next",l=e.type==="html"&&t.prevNode&&t.prevNode.type==="html"&&t.prevNode.position.end.line+1===e.position.start.line,p=e.type==="html"&&t.parentNode.type==="listItem"&&t.prevNode&&t.prevNode.type==="paragraph"&&t.prevNode.position.end.line+1===e.position.start.line;return a||!(r||n||o||l||p)}function U3(e,t){let r=t.prevNode&&t.prevNode.type==="list",n=e.type==="code"&&e.isIndented;return r&&n}function vg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[" ",...Array.isArray(t)?t:[t]];return new RegExp(r.map(n=>"\\".concat(n)).join("|")).test(e)?"<".concat(e,">"):e}function mp(e,t){let r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(!e)return"";if(r)return" "+mp(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return"(".concat(e,")");let n=e.split("'").length-1,a=e.split('"').length-1,o=n>a?'"':a>n||t.singleQuote?"'":'"';return e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp("(".concat(o,")"),"g"),"\\$1"),"".concat(o).concat(e).concat(o)}var nH={preprocess:W$,print:function(e,t,r){let n=e.getValue();if(function(a){let o=Cg(a,["linkReference","imageReference"]);return o&&(o.type!=="linkReference"||o.referenceType!=="full")}(e))return J$(t.originalText.slice(n.position.start.offset,n.position.end.offset),t).map(a=>a.type==="word"?a.value:a.value===""?"":G3(e,a.value,t));switch(n.type){case"front-matter":return t.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[j$(Z$(e,t,r)),j3.has(eH(n).type)?"":er];case"paragraph":return tr(e,t,r,{postprocessor:L$});case"sentence":return tr(e,t,r);case"word":{let a=n.value.replace(/\*/g,"\\$&").replace(new RegExp(["(^|".concat(L3,")(_+)"),"(_+)(".concat(L3,"|$)")].join("|"),"g"),(p,d,m,y,D)=>(m?"".concat(d).concat(m):"".concat(y).concat(D)).replace(/_/g,"\\_")),o=(p,d,m)=>p.type==="sentence"&&m===0,l=(p,d,m)=>M3(p.children[m-1]);return a!==n.value&&(e.match(void 0,o,l)||e.match(void 0,o,(p,d,m)=>p.type==="emphasis"&&m===0,l))&&(a=a.replace(/^(\\?[*_])+/,p=>p.replace(/\\/g,""))),a}case"whitespace":{let a=e.getParentNode(),o=a.children.indexOf(n),l=a.children[o+1],p=l&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(l.value)?"never":t.proseWrap;return G3(e,n.value,{proseWrap:p})}case"emphasis":{let a;if(M3(n.children[0]))a=t.originalT
|
||
|
`,"\f","\r"," "]),J3=e=>e.replace(/[\t\n\f\r ]+$/,""),Y3=e=>(t=>t.replace(/^[\t\f\r ]*?\n/g,""))(J3(e)),xH=e=>e.split(/[\t\n\f\r ]+/),SH=e=>e.match(/^[\t\n\f\r ]*/)[0];function X3(e){let t=Object.create(null);for(let r of e)t[r]=!0;return t}function hs(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||gp(e)&&(e.name==="script"||e.name==="style"))}function K3(e){return Sg(e).startsWith("pre")}function Q3(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function Z3(e){return nw(e)||e.type==="element"&&e.fullName==="br"||ew(e)}function ew(e){return tw(e)&&rw(e)}function tw(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function rw(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function nw(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function iw(e){let{type:t,lang:r}=e.attrMap;return t==="module"||t==="text/javascript"||t==="text/babel"||t==="application/javascript"||r==="jsx"?"babel":t==="application/x-typescript"||r==="ts"||r==="tsx"?"typescript":t==="text/markdown"?"markdown":t==="text/html"?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":t==="text/x-handlebars-template"?"glimmer":void 0}function fo(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Ba(e){return Sg(e).startsWith("pre")}function gp(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function Sg(e){return e.type==="element"&&(!e.namespace||gp(e))&&EH[e.name]||bH}function FH(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
|
||
|
`)){if(r.length===0)continue;if(!vH.has(r[0]))return 0;let n=SH(r).length;r.length!==n&&n<t&&(t=n)}return t===Number.POSITIVE_INFINITY?0:t}function sw(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FH(e);return t===0?e:e.split(`
|
||
|
`).map(r=>r.slice(t)).join(`
|
||
|
`)}let wH=new Set(["template","style","script"]);function yp(e,t){return Fg(e,t)&&!wH.has(e.fullName)}function Fg(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function wg(e,t){return Fg(e,t)&&(yp(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}var Ta={HTML_ELEMENT_ATTRIBUTES:AH,HTML_TAGS:CH,htmlTrim:e=>(t=>t.replace(/^[\t\n\f\r ]+/,""))(J3(e)),htmlTrimPreserveIndentation:Y3,hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{let[,t,r,n]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:n,text:r}},canHaveInterpolation:function(e){return e.children&&!hs(e)},countChars:function(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},countParents:function(e,t){let r=0;for(let n=e.stack.length-1;n>=0;n--){let a=e.stack[n];a&&typeof a=="object"&&!Array.isArray(a)&&t(a)&&r++}return r},dedentString:sw,forceBreakChildren:Q3,forceBreakContent:function(e){return Q3(e)||e.type==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>function(r){return r.children&&r.children.some(n=>n.type!=="text")}(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&tw(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||rw(e.lastChild))},forceNextEmptyLine:function(e){return xg(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line},getLastDescendant:function e(t){return t.lastChild?e(t.lastChild):t},getNodeCssStyleDisplay:function(e,t){if(e.prev&&e.prev.type==="comment"){let n=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(n)return n[1]}let r=!1;if(e.type==="element"&&e.namespace==="svg"){if(!function(n,a){let o=n;for(;o;){if(a(o))return!0;o=o.parent}return!1}(e,n=>n.fullName==="svg:foreignObject"))return e.name==="svg"?"inline-block":"block";r=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return t.parser==="vue"&&e.parent&&e.parent.type==="root"?"block":e.type==="element"&&(!e.namespace||r||gp(e))&&yH[e.name]||DH}},getNodeCssStyleWhiteSpace:Sg,hasPrettierIgnore:function(e){return e.type!=="attribute"&&!!e.parent&&typeof e.index=="number"&&e.index!==0&&function(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}(e.parent.children[e.index-1])},inferScriptParser:function(e,t){return e.name!=="script"||e.attrMap.src?e.name==="style"?function(r){let{lang:n}=r.attrMap;return n&&n!=="postcss"&&n!=="css"?n==="scss"?"scss":n==="less"?"less":void 0:"css"}(e):t&&wg(e,t)?iw(e)||!("src"in e.attrMap)&&fH(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?iw(e):"babel"},isVueCustomBlock:yp,isVueNonHtmlBlock:wg,isVueSlotAttribute:function(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){let r=e.parent;if(!Fg(r,t))return!1;let n=r.fullName,a=e.fullName;return n==="script"&&a==="setup"||n==="style"&&a==="vars"},isDanglingSpaceSensitiveNode:function(e){return t=e.cssDisplay,!(fo(t)||t==="inline-block"||hs(e));var t},isIndentationSensitiveNode:K3,isLeadingSpaceSensitiveNode:function(e,t){let r=function(){if(xg(e))return!1;if((e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation"))return!0;if(!e.parent||e.parent.cssDisplay==="none")return!1;if(Ba(e.parent))return!0;if(!e.prev&&(e.parent.type==="root"||Ba(e)&&e.parent||hs(e.parent)||yp(e.parent,t)||(n=e.parent.cssDisplay,fo(n)||n==="inline-block")))return!1;var n;return!(e.prev&&!function(a){return!fo(a)}(e.prev.cssDisplay))}();return r&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?e.type==="interpolation":r},isPreLikeNode:Ba,isScriptLikeTag:hs,isTextLikeNode:function(e){return e.type==="text"||e.type==="comment"},isTrailingSpaceSensitiveNode:function(e,t){return!xg(e)&&(!(e.type!=="text"&&e.type!=="interpolation"||!e.next||e.next.type!=="text"&&e.next.type!=="interpolation")||!(!e.parent||e.parent.cssDisplay==="none")&&(!!B
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(r){return r>=e.$TAB&&r<=e.$SPACE||r==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(r){return r>=e.$a&&r<=e.$z||r>=e.$A&&r<=e.$Z},e.isAsciiHexDigit=function(r){return r>=e.$a&&r<=e.$f||r>=e.$A&&r<=e.$F||t(r)},e.isNewLine=function(r){return r===e.$LF||r===e.$CR},e.isOctalDigit=function(r){return e.$0<=r&&r<=e.$7}})(uw);var ow={},Dp={};/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/Object.defineProperty(Dp,"__esModule",{value:!0});class cw{constructor(t,r,n){this.filePath=t,this.name=r,this.members=n}assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}Dp.StaticSymbol=cw,Dp.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,t,r){let n=(r=r||[]).length?".".concat(r.join(".")):"",a='"'.concat(e,'".').concat(t).concat(n),o=this.cache.get(a);return o||(o=new cw(e,t,r),this.cache.set(a,o)),o}};var yt={};/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/Object.defineProperty(yt,"__esModule",{value:!0});let BH=/-+([a-z0-9])/g;function lw(e,t,r){let n=e.indexOf(t);return n==-1?r:[e.slice(0,n).trim(),e.slice(n+1).trim()]}function Bg(e,t,r){return Array.isArray(e)?t.visitArray(e,r):function(n){return typeof n=="object"&&n!==null&&Object.getPrototypeOf(n)===TH}(e)?t.visitStringMap(e,r):e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"?t.visitPrimitive(e,r):t.visitOther(e,r)}yt.dashCaseToCamelCase=function(e){return e.replace(BH,function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r[1].toUpperCase()})},yt.splitAtColon=function(e,t){return lw(e,":",t)},yt.splitAtPeriod=function(e,t){return lw(e,".",t)},yt.visitValue=Bg,yt.isDefined=function(e){return e!=null},yt.noUndefined=function(e){return e===void 0?null:e},yt.ValueTransformer=class{visitArray(e,t){return e.map(r=>Bg(r,this,t))}visitStringMap(e,t){let r={};return Object.keys(e).forEach(n=>{r[n]=Bg(e[n],this,t)}),r}visitPrimitive(e,t){return e}visitOther(e,t){return e}},yt.SyncAsync={assertSync:e=>{if(Ep(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>Ep(e)?e.then(t):t(e),all:e=>e.some(Ep)?Promise.all(e):e},yt.error=function(e){throw new Error("Internal Error: ".concat(e))},yt.syntaxError=function(e,t){let r=Error(e);return r[pw]=!0,t&&(r[fw]=t),r};let pw="ngSyntaxError",fw="ngParseErrors";yt.isSyntaxError=function(e){return e[pw]},yt.getParseErrors=function(e){return e[fw]||[]},yt.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};let TH=Object.getPrototypeOf({});function Ep(e){return!!e&&typeof e.then=="function"}yt.utf8Encode=function(e){let t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(n>=55296&&n<=56319&&e.length>r+1){let a=e.charCodeAt(r+1);a>=56320&&a<=57343&&(r++,n=(n-55296<<10)+a-56320+65536)}n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(n>>6&31|192,63&n|128):n<=65535?t+=String.fromCharCode(n>>12|224,n>>6&63|128,63&n|128):n<=2097151&&(t+=String.fromCharCode(n>>18&7|240,n>>12&63|128,n>>6&63|128,63&n|128))}return t},yt.stringify=function e(t){if(typeof t=="string")return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";let r=t.toString();if(r==null)return""+r;let n=r.indexOf(`
|
||
|
`);return n===-1?r:r.substring(0,n)},yt.resolveForwardRef=function(e){return typeof e=="function"&&e.hasOwnProperty("__forward_ref__")?e():e},yt.isPromise=Ep,yt.Version=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};let kH=typeof window<"u"&&window,_H=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,NH=i!==void 0&&i||kH||_H;yt.global=NH,function(e){/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/Object.defineProperty(e,"__esModule",{value:!0});let t=Dp,r=yt,n=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function a(b){return b.replace(/\W/g,"_")}e.sanitizeIdentifier=a;let o=0;function l(b){if(!b||!b.reference)return null;let v=b.reference;if(v instanceof t.StaticSymbol)return v.name;if(v.__anonymousType)return v.__anonymousType;let w=r.stringify(v);return w.indexOf("(")>=0?(w="anonymous_".concat(o++),v.__anonymousType=w):w=a(w),w}var p;e.identifierName=l,e.identifierModuleUrl=function(b){let v=b.reference;return v instanceof t.StaticSymbol?v.filePath:"./".concat(r.stringify(v))},e.viewClassName=function(b,v){return"View_".concat(l({reference:b}),"_").concat(v)},e.rendererTypeName=function(b){return"RenderType_".concat(l({reference:b}))},e.hostViewClassName=function(b){return"HostView_".concat(l({reference:b}))},e.componentFactoryName=function(b){return"".concat(l({reference:b}),"NgFactory")},function(b){b[b.Pipe=0]="Pipe",b[b.Directive=1]="Directive",b[b.NgModule=2]="NgModule",b[b.Injectable=3]="Injectable"}(p=e.CompileSummaryKind||(e.CompileSummaryKind={})),e.tokenName=function(b){return b.value!=null?a(b.value):l(b.identifier)},e.tokenReference=function(b){return b.identifier!=null?b.identifier.reference:b.value},e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:b,styles:v,styleUrls:w}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=b||null,this.styles=m(v),this.styleUrls=m(w)}},e.CompileTemplateMetadata=class{constructor(b){let{encapsulation:v,template:w,templateUrl:S,htmlAst:k,styles:P,styleUrls:_,externalStylesheets:M,animations:U,ngContentSelectors:q,interpolation:H,isInline:Q,preserveWhitespaces:te}=b;if(this.encapsulation=v,this.template=w,this.templateUrl=S,this.htmlAst=k,this.styles=m(P),this.styleUrls=m(_),this.externalStylesheets=m(M),this.animations=U?y(U):[],this.ngContentSelectors=q||[],H&&H.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=H,this.isInline=Q,this.preserveWhitespaces=te}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class d{static create(v){let{isHost:w,type:S,isComponent:k,selector:P,exportAs:_,changeDetection:M,inputs:U,outputs:q,host:H,providers:Q,viewProviders:te,queries:Ee,guards:ne,viewQueries:pe,entryComponents:Be,template:Se,componentViewType:st,rendererType:Dt,componentFactory:lr}=v,kt={},_t={},Oa={};H!=null&&Object.keys(H).forEach(En=>{let Kn=H[En],vo=En.match(n);vo===null?Oa[En]=Kn:vo[1]!=null?_t[vo[1]]=Kn:vo[2]!=null&&(kt[vo[2]]=Kn)});let _p={};U!=null&&U.forEach(En=>{let Kn=r.splitAtColon(En,[En,En]);_p[Kn[0]]=Kn[1]});let m8={};return q!=null&&q.forEach(En=>{let Kn=r.splitAtColon(En,[En,En]);m8[Kn[0]]=Kn[1]}),new d({isHost:w,type:S,isComponent:!!k,selector:P,exportAs:_,changeDetection:M,inputs:_p,outputs:m8,hostListeners:kt,hostProperties:_t,hostAttributes:Oa,providers:Q,viewProviders:te,queries:Ee,guards:ne,viewQueries:pe,entryComponents:Be,template:Se,componentViewType:st,rendererType:Dt,componentFactory:lr})}constructor(v){let{isHost:w,type:S,isComponent:k,selector:P,exportAs:_,changeDetection:M,inputs:U,outputs:q,hostListeners:H,hostProperties:Q,hostAttributes:te,providers:Ee,viewProviders:ne,queries:pe,guards:Be,viewQueries:Se,entryComponents:st,template:Dt,componentViewType:lr,rendererType:kt,componentFactory:_t}=v;this.isHost=!!w,this.type=S,this.isComponent=k,this.selector=P,this.exportAs=_,this.changeDetection=M,this.inputs=U,this.outputs=q,this.hostListeners=H,this.hostProperties=Q,this.hostAttributes=te,this.providers=m(Ee),this.viewProviders=m(ne),this.queries=m(pe),this.guards=Be,this.viewQueries=m(Se),this.entryComponents=m(st),this.template=Dt,this.componentViewType=lr,this.rendererType=kt,this.componentFactory=_t}toSummary(){return{summaryKind:p.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAt
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/let t=uw,r=ow;class n{constructor(d,m,y,D){this.file=d,this.offset=m,this.line=y,this.col=D}toString(){return this.offset!=null?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}moveBy(d){let m=this.file.content,y=m.length,D=this.offset,b=this.line,v=this.col;for(;D>0&&d<0;)if(D--,d++,m.charCodeAt(D)==t.$LF){b--;let w=m.substr(0,D-1).lastIndexOf(String.fromCharCode(t.$LF));v=w>0?D-w:D}else v--;for(;D<y&&d>0;){let w=m.charCodeAt(D);D++,d--,w==t.$LF?(b++,v=0):v++}return new n(this.file,D,b,v)}getContext(d,m){let y=this.file.content,D=this.offset;if(D!=null){D>y.length-1&&(D=y.length-1);let b=D,v=0,w=0;for(;v<d&&D>0&&(D--,v++,y[D]!=`
|
||
|
`||++w!=m););for(v=0,w=0;v<d&&b<y.length-1&&(b++,v++,y[b]!=`
|
||
|
`||++w!=m););return{before:y.substring(D,this.offset),after:y.substring(this.offset,b+1)}}return null}}e.ParseLocation=n;class a{constructor(d,m){this.content=d,this.url=m}}e.ParseSourceFile=a;class o{constructor(d,m){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=d,this.end=m,this.details=y}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var l;e.ParseSourceSpan=o,e.EMPTY_PARSE_LOCATION=new n(new a("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new o(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),function(p){p[p.WARNING=0]="WARNING",p[p.ERROR=1]="ERROR"}(l=e.ParseErrorLevel||(e.ParseErrorLevel={})),e.ParseError=class{constructor(p,d){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.ERROR;this.span=p,this.msg=d,this.level=m}contextualMessage(){let p=this.span.start.getContext(100,3);return p?"".concat(this.msg,' ("').concat(p.before,"[").concat(l[this.level]," ->]").concat(p.after,'")'):this.msg}toString(){let p=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(p)}},e.typeSourceSpan=function(p,d){let m=r.identifierModuleUrl(d),y=m!=null?"in ".concat(p," ").concat(r.identifierName(d)," in ").concat(m):"in ".concat(p," ").concat(r.identifierName(d)),D=new a("",y);return new o(new n(D,-1,-1,-1),new n(D,-1,-1,-1))},e.r3JitTypeSourceSpan=function(p,d,m){let y="in ".concat(p," ").concat(d," in ").concat(m),D=new a("",y);return new o(new n(D,-1,-1,-1),new n(D,-1,-1,-1))}}(aw);let{ParseSourceSpan:bi}=aw,IH=Mr,{htmlTrim:PH,getLeadingAndTrailingHtmlWhitespace:OH,hasHtmlWhitespace:LH,canHaveInterpolation:MH,getNodeCssStyleDisplay:jH,isDanglingSpaceSensitiveNode:RH,isIndentationSensitiveNode:VH,isLeadingSpaceSensitiveNode:qH,isTrailingSpaceSensitiveNode:GH,isWhitespaceSensitiveNode:UH}=Ta,WH=[function(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===`
|
||
|
`){let[r,...n]=t.children;t.setChildren(r.value.length===1?n:[r.clone({value:r.value.slice(1)}),...n])}})},function(e){let t=r=>r.type==="element"&&r.prev&&r.prev.type==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&r.firstChild&&r.firstChild.type==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset;e.walk(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let a=[];for(let o=0;o<r.children.length;o++){let l=r.children[o];if(!n[o+1])if(n[o]){let p=l.prev,d=l.firstChild,m=new bi(p.sourceSpan.start,d.sourceSpan.end),y=new bi(m.start,l.sourceSpan.end);a.push(l.clone({condition:p.condition,sourceSpan:y,startSourceSpan:m,children:l.children.slice(1)}))}else a.push(l)}r.setChildren(a)}}})},function(e){return function(t,r,n){t.walk(a=>{if(a.children){let o=a.children.map(r);if(o.some(Boolean)){let l=[];for(let p=0;p<a.children.length;p++){let d=a.children[p];if(d.type!=="text"&&!o[p]){l.push(d);continue}let m=d.type==="text"?d:d.clone({type:"text",value:n(d)});if(l.length===0||IH(l).type!=="text"){l.push(m);continue}let y=l.pop();l.push(y.clone({value:y.value+m.value,sourceSpan:new bi(y.sourceSpan.start,m.sourceSpan.end)}))}a.setChildren(l)}}})}(e,t=>t.type==="cdata",t=>"<![CDATA[".concat(t.value,"]]>"))},function(e,t){if(t.parser==="html")return;let r=/{{(.+?)}}/s;e.walk(n=>{if(!MH(n))return;let a=[];for(let o of n.children){if(o.type!=="text"){a.push(o);continue}let l=o.sourceSpan.start,p=null,d=o.value.split(r);for(let m=0;m<d.length;m++,l=p){let y=d[m];m%2!=0?(p=l.moveBy(y.length+4),a.push({type:"interpolation",sourceSpan:new bi(l,p),children:y.length===0?[]:[{type:"text",value:y,sourceSpan:new bi(l.moveBy(2),p.moveBy(-2))}]})):(p=l.moveBy(y.length),y.length>0&&a.push({type:"text",value:y,sourceSpan:new bi(l,p)}))}}n.setChildren(a)})},function(e){e.walk(t=>{if(!t.children)return;if(t.children.length===0||t.children.length===1&&t.children[0].type==="text"&&PH(t.children[0].value).length===0)return t.hasDanglingSpaces=t.children.length>0,void(t.children=[]);let r=UH(t),n=VH(t);t.setChildren(t.children.flatMap(a=>{if(a.type!=="text"||r)return a;let o=[],{leadingWhitespace:l,text:p,trailingWhitespace:d}=OH(a.value);return l&&o.push(ho),p&&o.push({type:"text",value:p,sourceSpan:new bi(a.sourceSpan.start.moveBy(l.length),a.sourceSpan.end.moveBy(-d.length))}),d&&o.push(ho),o}).map((a,o,l)=>{if(a!==ho)return Object.assign(Object.assign({},a),{},{hasLeadingSpaces:l[o-1]===ho,hasTrailingSpaces:l[o+1]===ho})}).filter(Boolean)),t.isWhitespaceSensitive=r,t.isIndentationSensitive=n})},function(e,t){e.walk(r=>Object.assign(r,{cssDisplay:jH(r,t)}))},function(e){e.walk(t=>Object.assign(t,{isSelfClosing:!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.startSourceSpan===t.endSourceSpan)}))},function(e,t){e.walk(r=>r.type!=="element"?r:Object.assign(r,{hasHtmComponentClosingTag:r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset))}))},function(e,t){e.walk(r=>{r.children&&(r.children.length!==0?r.setChildren(r.children.map(n=>Object.assign(Object.assign({},n),{},{isLeadingSpaceSensitive:qH(n,t),isTrailingSpaceSensitive:GH(n,t)})).map((n,a,o)=>Object.assign(Object.assign({},n),{},{isLeadingSpaceSensitive:(a===0||o[a-1].isTrailingSpaceSensitive)&&n.isLeadingSpaceSensitive,isTrailingSpaceSensitive:(a===o.length-1||o[a+1].isLeadingSpaceSensitive)&&n.isTrailingSpaceSensitive}))):r.isDanglingSpaceSensitive=RH(r))})},function(e){let t=r=>r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!LH(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&r.prev&&r.prev.type==="text"&&r.next&&r.next.type==="text";e.walk(r=>{if(r.children){let n=r.children.map(t);if(n.some(Boolean)){let a=[];for(let o=0;o<r.children.length;o++){let l=r.children[o];if(n[o]){let p=a.pop(),d=r.children[++o],{isTrailingSpaceSensitive:m,has
|
||
|
|
||
|
`+e.replace(/^\s*\n/,"")}},Tg={locStart:function(e){return e.sourceSpan.start.offset},locEnd:function(e){return e.sourceSpan.end.offset}};let hw=ku,{isNonEmptyArray:HH}=ke,{builders:{indent:JH,join:YH,line:kg,softline:XH},utils:{replaceTextEndOfLine:KH}}=ve,{locStart:QH,locEnd:ZH}=Tg,{isTextLikeNode:mo,getLastDescendant:dw,isPreLikeNode:eJ,hasPrettierIgnore:tJ,shouldPreserveContent:rJ}=Ta;function mw(e,t){return e.lastChild&&Ig(e.lastChild)?"":[nJ(e,t),_g(e,t)]}function gw(e,t){return(e.next?Ng(e.next):Cp(e.parent))?"":[bp(e,t),yw(e,t)]}function nJ(e,t){return Cp(e)?bp(e.lastChild,t):""}function yw(e,t){return Ig(e)?_g(e.parent,t):Pg(e)?Og(e.next):""}function _g(e,t){if(hw(!e.isSelfClosing),Dw(e,t))return"";switch(e.type){case"ieConditionalComment":return"<!";case"element":if(e.hasHtmComponentClosingTag)return"<//";default:return"</".concat(e.rawName)}}function bp(e,t){if(Dw(e,t))return"";switch(e.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function Dw(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(tJ(e)||rJ(e.parent,t))}function Ng(e){return e.prev&&e.prev.type!=="docType"&&!mo(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Cp(e){return e.lastChild&&e.lastChild.isTrailingSpaceSensitive&&!e.lastChild.hasTrailingSpaces&&!mo(dw(e.lastChild))&&!eJ(e)}function Ig(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&mo(dw(e))}function Pg(e){return e.next&&!mo(e.next)&&mo(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function Ap(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function iJ(e,t,r){let n=e.getValue();if(!HH(n.attrs))return n.isSelfClosing?" ":"";let a=n.prev&&n.prev.type==="comment"&&function(m){let y=m.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return!!y&&(!y[1]||y[1].split(/\s+/))}(n.prev.value),o=typeof a=="boolean"?()=>a:Array.isArray(a)?m=>a.includes(m.rawName):()=>!1,l=e.map(m=>{let y=m.getValue();return o(y)?KH(t.originalText.slice(QH(y),ZH(y))):r()},"attrs"),p=n.type==="element"&&n.fullName==="script"&&n.attrs.length===1&&n.attrs[0].fullName==="src"&&n.children.length===0,d=[JH([p?" ":kg,YH(kg,l)])];return n.firstChild&&Ap(n.firstChild)||n.isSelfClosing&&Cp(n.parent)||p?d.push(n.isSelfClosing?" ":""):d.push(t.bracketSameLine?n.isSelfClosing?" ":"":n.isSelfClosing?kg:XH),d}function sJ(e){return e.firstChild&&Ap(e.firstChild)?"":Lg(e)}function Ew(e,t){return e.prev&&Pg(e.prev)?"":[bw(e,t),Og(e)]}function bw(e,t){return Ap(e)?Lg(e.parent):Ng(e)?bp(e.prev,t):""}function Og(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return"<!--[if ".concat(e.condition);case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(e.condition)return"<!--[if ".concat(e.condition,"]><!--><").concat(e.rawName);default:return"<".concat(e.rawName)}}function Lg(e){switch(hw(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return"><!--<![endif]-->";default:return">"}}var go={printClosingTag:function(e,t){return[e.isSelfClosing?"":mw(e,t),gw(e,t)]},printClosingTagStart:mw,printClosingTagStartMarker:_g,printClosingTagEndMarker:bp,printClosingTagSuffix:yw,printClosingTagEnd:gw,needsToBorrowLastChildClosingTagEndMarker:Cp,needsToBorrowParentClosingTagStartMarker:Ig,needsToBorrowPrevClosingTagEndMarker:Ng,printOpeningTag:function(e,t,r){let n=e.getValue();return[Ew(n,t),iJ(e,t,r),n.isSelfClosing?"":sJ(n)]},printOpeningTagStart:Ew,printOpeningTagPrefix:bw,printOpeningTagStartMarker:Og,printOpeningTagEndMarker:Lg,needsToBorrowNextOpeningTagStartMarker:Pg,needsToBorrowParentOpeningTagEndMarker:Ap},Cw={exports:{}};(function(e){var t,r;t=i,r=function(){return function(n,a){var o=a&&a.logger||console;function l(te){return te===" "||te===" "||te===`
|
||
|
`||te==="\f"||te==="\r"}function p(te){var Ee,ne=te.exec(n.substring(U));if(ne)return Ee=ne[0],U+=Ee.length,Ee}for(var d,m,y,D,b,v=n.length,w=/^[ \t\n\r\u000c]+/,S=/^[, \t\n\r\u000c]+/,k=/^[^ \t\n\r\u000c]+/,P=/[,]+$/,_=/^\d+$/,M=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,U=0,q=[];;){if(p(S),U>=v)return q;d=p(k),m=[],d.slice(-1)===","?(d=d.replace(P,""),Q()):H()}function H(){for(p(w),y="",D="in descriptor";;){if(b=n.charAt(U),D==="in descriptor")if(l(b))y&&(m.push(y),y="",D="after descriptor");else{if(b===",")return U+=1,y&&m.push(y),void Q();if(b==="(")y+=b,D="in parens";else{if(b==="")return y&&m.push(y),void Q();y+=b}}else if(D==="in parens")if(b===")")y+=b,D="in descriptor";else{if(b==="")return m.push(y),void Q();y+=b}else if(D==="after descriptor"&&!l(b)){if(b==="")return void Q();D="in descriptor",U-=1}U+=1}}function Q(){var te,Ee,ne,pe,Be,Se,st,Dt,lr,kt=!1,_t={};for(pe=0;pe<m.length;pe++)Se=(Be=m[pe])[Be.length-1],st=Be.substring(0,Be.length-1),Dt=parseInt(st,10),lr=parseFloat(st),_.test(st)&&Se==="w"?((te||Ee)&&(kt=!0),Dt===0?kt=!0:te=Dt):M.test(st)&&Se==="x"?((te||Ee||ne)&&(kt=!0),lr<0?kt=!0:Ee=lr):_.test(st)&&Se==="h"?((ne||Ee)&&(kt=!0),Dt===0?kt=!0:ne=Dt):kt=!0;kt?o&&o.error&&o.error("Invalid srcset descriptor found in '"+n+"' at '"+Be+"'."):(_t.url=d,te&&(_t.w=te),Ee&&(_t.d=Ee),ne&&(_t.h=ne),q.push(_t))}}},e.exports?e.exports=r():t.parseSrcset=r()})(Cw);let aJ=Cw.exports,{builders:{ifBreak:uJ,join:oJ,line:cJ}}=ve;var lJ={printImgSrcset:function(e){let t=aJ(e,{logger:{error(b){throw new Error(b)}}}),r=t.some(b=>{let{w:v}=b;return v}),n=t.some(b=>{let{h:v}=b;return v});if(r+n+t.some(b=>{let{d:v}=b;return v})>1)throw new Error("Mixed descriptor in srcset is not supported");let a=r?"w":n?"h":"d",o=r?"w":n?"h":"x",l=b=>Math.max(...b),p=t.map(b=>b.url),d=l(p.map(b=>b.length)),m=t.map(b=>b[a]).map(b=>b?b.toString():""),y=m.map(b=>{let v=b.indexOf(".");return v===-1?b.length:v}),D=l(y);return oJ([",",cJ],p.map((b,v)=>{let w=[b],S=m[v];if(S){let k=d-b.length+1,P=D-y[v],_=" ".repeat(k+P);w.push(uJ(_," "),S+o)}return w}))},printClassNames:function(e){return e.trim().split(/\s+/).join(" ")}};let{builders:{group:pJ}}=ve;var fJ={isVueEventBindingExpression:function(e){let t=e.trim();return/^(?:[\w$]+|\([^)]*?\))\s*=>|^function\s*\(/.test(t)||/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/.test(t)},printVueFor:function(e,t){let{left:r,operator:n,right:a}=function(o){let l=/(.*?)\s+(in|of)\s+(.*)/s,p=/,([^,\]}]*)(?:,([^,\]}]*))?$/,d=/^\(|\)$/g,m=o.match(l);if(!m)return;let y={};y.for=m[3].trim();let D=m[1].trim().replace(d,""),b=D.match(p);return b?(y.alias=D.replace(p,""),y.iterator1=b[1].trim(),b[2]&&(y.iterator2=b[2].trim())):y.alias=D,{left:"".concat([y.alias,y.iterator1,y.iterator2].filter(Boolean).join(",")),operator:m[2],right:y.for}}(e);return[pJ(t("function _(".concat(r,") {}"),{parser:"babel",__isVueForBindingLeft:!0}))," ",n," ",t(a,{parser:"__js_expression"},{stripTrailingHardline:!0})]},printVueBindings:function(e,t){return t("function _(".concat(e,") {}"),{parser:"babel",__isVueBindings:!0})}};let{needsToBorrowParentClosingTagStartMarker:hJ,printClosingTagStartMarker:dJ,needsToBorrowLastChildClosingTagEndMarker:mJ,printClosingTagEndMarker:gJ,needsToBorrowParentOpeningTagEndMarker:yJ,printOpeningTagEndMarker:DJ}=go;var Aw=function(e,t){let r=e.startSourceSpan.end.offset;e.firstChild&&yJ(e.firstChild)&&(r-=DJ(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&hJ(e.lastChild)?n+=dJ(e,t).length:mJ(e)&&(n-=gJ(e.lastChild,t).length),t.originalText.slice(r,n)};let{builders:{breakParent:EJ,group:ka,hardline:vw,indent:Mg,line:vp,fill:bJ,softline:xw},utils:{mapDoc:CJ,replaceTextEndOfLine:Sw}}=ve,AJ=Km,{printClosingTag:vJ,printClosingTagSuffix:Fw,needsToBorrowPrevClosingTagEndMarker:xJ,printOpeningTagPrefix:ww,printOpeningTag:SJ}=go,{printImgSrcset:FJ,printClassNames:wJ}=lJ,{printVueFor:BJ,printVueBindings:TJ,isVueEventBindingExpression:kJ}=fJ,{isScriptLikeTag:Bw,isVueNonHtmlBlock:_J,inferScriptParser:Tw,htmlTrimPreserveIndentation:NJ,dedentString:IJ
|
||
|
|
||
|
`.concat(e)}},OY={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}},LY=function(e,t,r,n){if(e.getValue().type==="root"&&n.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint)rc$/.test(n.filepath))return r(n.originalText,Object.assign(Object.assign({},n),{},{parser:"json"}))};let{getLast:Jr,isNonEmptyArray:Eo}=ke;function zw(e,t){return e&&typeof e.type=="string"&&(!t||t.includes(e.type))}function $w(e){return e.value.trim()==="prettier-ignore"}function $g(e){return e&&Eo(e.leadingComments)}function Hw(e){return e&&Eo(e.middleComments)}function Jw(e){return e&&e.indicatorComment}function Yw(e){return e&&e.trailingComment}function Hg(e){return e&&Eo(e.endComments)}function Xw(e){let t=[],r;for(let n of e.split(/( +)/))n!==" "?r===" "?t.push(n):t.push((t.pop()||"")+n):r===void 0&&t.unshift(""),r=n;return r===" "&&t.push((t.pop()||"")+" "),t[0]===""&&(t.shift(),t.unshift(" "+(t.shift()||""))),t}var _a={getLast:Jr,getAncestorCount:function(e,t){let r=0,n=e.stack.length-1;for(let a=0;a<n;a++){let o=e.stack[a];zw(o)&&t(o)&&r++}return r},isNode:zw,isEmptyNode:function(e){return!Eo(e.children)&&!function(t){return $g(t)||Hw(t)||Jw(t)||Yw(t)||Hg(t)}(e)},isInlineNode:function(e){if(!e)return!0;switch(e.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}},mapNode:function e(t,r,n){return r("children"in t?Object.assign(Object.assign({},t),{},{children:t.children.map(a=>e(a,r,t))}):t,n)},defineShortcut:function(e,t,r){Object.defineProperty(e,t,{get:r,enumerable:!1})},isNextLineEmpty:function(e,t){let r=0,n=t.length;for(let a=e.position.end.offset-1;a<n;a++){let o=t[a];if(o===`
|
||
|
`&&r++,r===1&&/\S/.test(o))return!1;if(r===2)return!0}return!1},isLastDescendantNode:function(e){switch(e.getValue().type){case"tag":case"anchor":case"comment":return!1}let t=e.stack.length;for(let r=1;r<t;r++){let n=e.stack[r],a=e.stack[r-1];if(Array.isArray(a)&&typeof n=="number"&&n!==a.length-1)return!1}return!0},getBlockValueLineContents:function(e,t){let{parentIndent:r,isLastDescendant:n,options:a}=t,o=e.position.start.line===e.position.end.line?"":a.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*?\n(.*)$/s)[1],l=e.indent===null?(m=>m?m[1].length:Number.POSITIVE_INFINITY)(o.match(/^( *)\S/m)):e.indent-1+r,p=o.split(`
|
||
|
`).map(m=>m.slice(l));return a.proseWrap==="preserve"||e.type==="blockLiteral"?d(p.map(m=>m.length===0?[]:[m])):d(p.map(m=>m.length===0?[]:Xw(m)).reduce((m,y,D)=>D!==0&&p[D-1].length>0&&y.length>0&&!/^\s/.test(y[0])&&!/^\s|\s$/.test(Jr(m))?[...m.slice(0,-1),[...Jr(m),...y]]:[...m,y],[]).map(m=>m.reduce((y,D)=>y.length>0&&/\s$/.test(Jr(y))?[...y.slice(0,-1),Jr(y)+" "+D]:[...y,D],[])).map(m=>a.proseWrap==="never"?[m.join(" ")]:m));function d(m){if(e.chomping==="keep")return Jr(m).length===0?m.slice(0,-1):m;let y=0;for(let D=m.length-1;D>=0&&m[D].length===0;D--)y++;return y===0?m:y>=2&&!n?m.slice(0,-(y-1)):m.slice(0,-y)}},getFlowScalarLineContents:function(e,t,r){let n=t.split(`
|
||
|
`).map((a,o,l)=>o===0&&o===l.length-1?a:o!==0&&o!==l.length-1?a.trim():o===0?a.trimEnd():a.trimStart());return r.proseWrap==="preserve"?n.map(a=>a.length===0?[]:[a]):n.map(a=>a.length===0?[]:Xw(a)).reduce((a,o,l)=>l!==0&&n[l-1].length>0&&o.length>0&&(e!=="quoteDouble"||!Jr(Jr(a)).endsWith("\\"))?[...a.slice(0,-1),[...Jr(a),...o]]:[...a,o],[]).map(a=>r.proseWrap==="never"?[a.join(" ")]:a)},getLastDescendantNode:function e(t){return Eo(t.children)?e(Jr(t.children)):t},hasPrettierIgnore:function(e){let t=e.getValue();if(t.type==="documentBody"){let r=e.getParentNode();return Hg(r.head)&&$w(Jr(r.head.endComments))}return $g(t)&&$w(Jr(t.leadingComments))},hasLeadingComments:$g,hasMiddleComments:Hw,hasIndicatorComment:Jw,hasTrailingComment:Yw,hasEndComments:Hg};let{defineShortcut:bo,mapNode:MY}=_a;function jY(e){switch(e.type){case"document":bo(e,"head",()=>e.children[0]),bo(e,"body",()=>e.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":bo(e,"content",()=>e.children[0]);break;case"mappingItem":case"flowMappingItem":bo(e,"key",()=>e.children[0]),bo(e,"value",()=>e.children[1])}return e}var RY=function(e){return MY(e,jY)};let{builders:{softline:VY,align:qY}}=ve,{hasEndComments:GY,isNextLineEmpty:UY,isNode:WY}=_a,Jg=new WeakMap;function Kw(e){return GY(e)&&!WY(e,["documentHead","documentBody","flowMapping","flowSequence"])}var Bp={alignWithSpaces:function(e,t){return qY(" ".repeat(e),t)},shouldPrintEndComments:Kw,printNextEmptyLine:function(e,t){let r=e.getValue(),n=e.stack[0],a;return Jg.has(n)?a=Jg.get(n):(a=new Set,Jg.set(n,a)),a.has(r.position.end.line)||(a.add(r.position.end.line),!UY(r,t)||Kw(e.getParentNode()))?"":VY}};let{builders:{ifBreak:zY,line:Qw,softline:$Y,hardline:Zw,join:HY}}=ve,{isEmptyNode:e8,getLast:JY,hasEndComments:YY}=_a,{printNextEmptyLine:XY,alignWithSpaces:KY}=Bp;function t8(e,t,r){let n=e.getValue(),a=n.type==="flowMapping",o=a?"{":"[",l=a?"}":"]",p=$Y;a&&n.children.length>0&&r.bracketSpacing&&(p=Qw);let d=JY(n.children),m=d&&d.type==="flowMappingItem"&&e8(d.key)&&e8(d.value);return[o,KY(r.tabWidth,[p,QY(e,t,r),r.trailingComma==="none"?"":zY(","),YY(n)?[Zw,HY(Zw,e.map(t,"endComments"))]:""]),m?"":p,l]}function QY(e,t,r){let n=e.getValue();return e.map((a,o)=>[t(),o===n.children.length-1?"":[",",Qw,n.children[o].position.start.line!==n.children[o+1].position.start.line?XY(a,r.originalText):""]],"children")}var ZY={printFlowMapping:t8,printFlowSequence:t8};let{builders:{conditionalGroup:r8,group:n8,hardline:Tp,ifBreak:i8,join:eX,line:tX}}=ve,{hasLeadingComments:Co,hasMiddleComments:Yg,hasTrailingComment:Xg,hasEndComments:kp,isNode:s8,isEmptyNode:a8,isInlineNode:u8}=_a,{alignWithSpaces:ms}=Bp;function Kg(e,t){if(!e)return!0;switch(e.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(t.proseWrap==="preserve")return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case"never":return!e.value.includes(`
|
||
|
`);case"always":return!/[\n ]/.test(e.value);default:return!1}}var rX=function(e,t,r,n,a){let{key:o,value:l}=e,p=a8(o),d=a8(l);if(p&&d)return": ";let m=n("key"),y=function(P){return P.key.content&&P.key.content.type==="alias"}(e)?" ":"";if(d)return e.type==="flowMappingItem"&&t.type==="flowMapping"?m:e.type!=="mappingItem"||!Kg(o.content,a)||Xg(o.content)||t.tag&&t.tag.value==="tag:yaml.org,2002:set"?["? ",ms(2,m)]:[m,y,":"];let D=n("value");if(p)return[": ",ms(2,D)];if(Co(l)||!u8(o.content))return["? ",ms(2,m),Tp,eX("",r.map(n,"value","leadingComments").map(P=>[P,Tp])),": ",ms(2,D)];if(function(P){if(!P)return!0;switch(P.type){case"plain":case"quoteDouble":case"quoteSingle":return P.position.start.line===P.position.end.line;case"alias":return!0;default:return!1}}(o.content)&&!Co(o.content)&&!Yg(o.content)&&!Xg(o.content)&&!kp(o)&&!Co(l.content)&&!Yg(l.content)&&!kp(l)&&Kg(l.content,a))return[m,y,": ",D];let b=Symbol("mappingKey"),v=n8([i8("? "),n8(ms(2,m),{id:b})]),w=[Tp,": ",ms(2,D)],S=[y,":"];Co(l.content)||kp(l)&&l.content&&!s8(l.content,["mapping","sequence"])||t.type==="mapping"&&Xg(o.content)&&u8(l.content)||s8(l.content,["mapping","sequence"])&&l.content.tag===null&&l.content.anchor===null?S.push(Tp):l.content&&S.push(tX),S.push(D);let k=ms(a.tabWidth,S);return!Kg(o.content,a)||Co(o.content)||Yg(o.content)||kp(o)?r8([[v,i8(w,k,{groupId:b})]]):r8([[m,k]])};let{builders:{dedent:nX,dedentToRoot:o8,fill:iX,hardline:Qg,join:sX,line:aX,literalline:c8,markAsRoot:uX},utils:{getDocParts:oX}}=ve,{getAncestorCount:cX,getBlockValueLineContents:lX,hasIndicatorComment:pX,isLastDescendantNode:fX,isNode:hX}=_a,{alignWithSpaces:l8}=Bp;var dX=function(e,t,r){let n=e.getValue(),a=cX(e,m=>hX(m,["sequence","mapping"])),o=fX(e),l=[n.type==="blockFolded"?">":"|"];n.indent!==null&&l.push(n.indent.toString()),n.chomping!=="clip"&&l.push(n.chomping==="keep"?"+":"-"),pX(n)&&l.push(" ",t("indicatorComment"));let p=lX(n,{parentIndent:a,isLastDescendant:o,options:r}),d=[];for(let[m,y]of p.entries())m===0&&d.push(Qg),d.push(iX(oX(sX(aX,y)))),m!==p.length-1?d.push(y.length===0?Qg:uX(c8)):n.chomping==="keep"&&o&&d.push(o8(y.length===0?Qg:c8));return n.indent===null?l.push(nX(l8(r.tabWidth,d))):l.push(o8(l8(n.indent-1+a,d))),l};let{builders:{breakParent:mX,fill:gX,group:yX,hardline:ht,join:Dn,line:DX,lineSuffix:EX,literalline:bX},utils:{getDocParts:CX,replaceTextEndOfLine:AX}}=ve,{isPreviousLineEmpty:vX}=ke,{insertPragma:xX,isPragma:SX}=PY,{locStart:Zg}=OY,FX=LY,{getFlowScalarLineContents:wX,getLastDescendantNode:p8,hasLeadingComments:BX,hasMiddleComments:f8,hasTrailingComment:Na,hasEndComments:ey,hasPrettierIgnore:TX,isLastDescendantNode:kX,isNode:Ia,isInlineNode:_X}=_a,NX=RY,{alignWithSpaces:h8,printNextEmptyLine:IX,shouldPrintEndComments:PX}=Bp,{printFlowMapping:OX,printFlowSequence:LX}=ZY,MX=rX,jX=dX;function d8(e,t){return Na(e)||t&&(t.head.children.length>0||ey(t.head))}function Ao(e,t,r){let n=wX(e,t,r);return Dn(ht,n.map(a=>gX(CX(Dn(DX,a)))))}var RX={preprocess:NX,embed:FX,print:function(e,t,r){let n=e.getValue(),a=[];n.type!=="mappingValue"&&BX(n)&&a.push([Dn(ht,e.map(r,"leadingComments")),ht]);let{tag:o,anchor:l}=n;o&&a.push(r("tag")),o&&l&&a.push(" "),l&&a.push(r("anchor"));let p="";Ia(n,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!kX(e)&&(p=IX(e,t.originalText)),(o||l)&&(Ia(n,["sequence","mapping"])&&!f8(n)?a.push(ht):a.push(" ")),f8(n)&&a.push([n.middleComments.length===1?"":ht,Dn(ht,e.map(r,"middleComments")),ht]);let d=e.getParentNode();return TX(e)?a.push(AX(t.originalText.slice(n.position.start.offset,n.position.end.offset).trimEnd(),bX)):a.push(yX(function(m,y,D,b,v){switch(m.type){case"root":{let{children:w}=m,S=[];D.each((P,_)=>{let M=w[_],U=w[_+1];_!==0&&S.push(ht),S.push(v()),d8(M,U)?(S.push(ht,"..."),Na(M)&&S.push(" ",v("trailingComment"))):U&&!Na(U.head)&&S.push(ht,"---")},"children");let k=p8(m);return Ia(k,["blockLiteral","blockFolded"])&&k.chomping==="keep"||S.push(ht),S}case"document":{let w=[];return function(S,k,P,_){return P.children[0]===S&&/---(?:\s|$)/.test(_.originalText.slice(Zg
|
||
|
Defaulting to 2020, but this will stop working in the future.`)),s.ecmaVersion=11):s.ecmaVersion>=2015&&(s.ecmaVersion-=2009),s.allowReserved==null&&(s.allowReserved=s.ecmaVersion<5),Z8(s.onToken)){var c=s.onToken;s.onToken=function(f){return c.push(f)}}return Z8(s.onComment)&&(s.onComment=PK(s,s.onComment)),s}function PK(i,s){return function(u,c,f,h,g,C){var x={type:u?"Block":"Line",value:c,start:f,end:h};i.locations&&(x.loc=new Ci(this,g,C)),i.ranges&&(x.range=[f,h]),s.push(x)}}var To=1,Ua=2,Sy=4,u5=8,o5=16,c5=32,Fy=64,l5=128,No=256,wy=To|Ua|No;function By(i,s){return Ua|(i?Sy:0)|(s?u5:0)}var Rp=0,Ty=1,ei=2,p5=3,f5=4,h5=5,at=function(s,u,c){this.options=s=IK(s),this.sourceFile=s.sourceFile,this.keywords=bs(SK[s.ecmaVersion>=6?6:s.sourceType==="module"?"5module":5]);var f="";s.allowReserved!==!0&&(f=Dy[s.ecmaVersion>=6?6:s.ecmaVersion===5?5:3],s.sourceType==="module"&&(f+=" await")),this.reservedWords=bs(f);var h=(f?f+" ":"")+Dy.strict;this.reservedWordsStrict=bs(h),this.reservedWordsStrictBind=bs(h+" "+Dy.strictBind),this.input=String(u),this.containsEsc=!1,c?(this.pos=c,this.lineStart=this.input.lastIndexOf(`
|
||
|
`,c-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(pr).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=A.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=s.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&s.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(To),this.regexpState=null,this.privateNameStack=[]},Ln={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};at.prototype.parse=function(){var s=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(s)};Ln.inFunction.get=function(){return(this.currentVarScope().flags&Ua)>0};Ln.inGenerator.get=function(){return(this.currentVarScope().flags&u5)>0&&!this.currentVarScope().inClassFieldInit};Ln.inAsync.get=function(){return(this.currentVarScope().flags&Sy)>0&&!this.currentVarScope().inClassFieldInit};Ln.canAwait.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var s=this.scopeStack[i];if(s.inClassFieldInit||s.flags&No)return!1;if(s.flags&Ua)return(s.flags&Sy)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Ln.allowSuper.get=function(){var i=this.currentThisScope(),s=i.flags,u=i.inClassFieldInit;return(s&Fy)>0||u||this.options.allowSuperOutsideMethod};Ln.allowDirectSuper.get=function(){return(this.currentThisScope().flags&l5)>0};Ln.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Ln.allowNewDotTarget.get=function(){var i=this.currentThisScope(),s=i.flags,u=i.inClassFieldInit;return(s&(Ua|No))>0||u};Ln.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&No)>0};at.extend=function(){for(var s=[],u=arguments.length;u--;)s[u]=arguments[u];for(var c=this,f=0;f<s.length;f++)c=s[f](c);return c};at.parse=function(s,u){return new this(u,s).parse()};at.parseExpressionAt=function(s,u,c){var f=new this(c,s,u);return f.nextToken(),f.parseExpression()};at.tokenizer=function(s,u){return new this(u,s)};Object.defineProperties(at.prototype,Ln);var fr=at.prototype,OK=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;fr.strictDirective=function(i){for(;;){Zr.lastIndex=i,i+=Zr.exec(this.input)[0].length;var s=OK.exec(this.input.slice(i));if(!s)return!1;if((s[1]||s[2])==="use strict"){Zr.lastIndex=i+s[0].length;var u=Zr.exec(this.input),c=u.index+u[0].length,f=this.input.charAt(c);return f===";"||f==="}"||pr.test(u[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(f)||f==="!"&&this.input.charAt(c+1)==="=")}i+=s[0].length,Zr.lastIndex=i,i+=Zr.exec(this.input)[0].length,this.input[i]===";"&&i++}};fr.eat=function(i){return this.type===i?(this.next(),!0):!1};fr.isContextual=function(i){return this.type===A.name&&this.value===i&&!this.containsEsc};fr.eatContextual=function(i){return this.isContextual(i)?(this.next(),!0):!1};fr.expectContextual=function(i){this.eatContextual(i)||this.unexpected()};fr.canInsertSemicolon=function(){return this.type===A.eof||this.type===A.braceR||pr.test(this.input.slice(this.lastTokEnd,this.start))};fr.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};fr.semicolon=function(){!this.eat(A.semi)&&!this.insertSemicolon()&&this.unexpected()};fr.afterTrailingComma=function(i,s){if(this.type===i)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),s||this.next(),!0}
|
||
|
`),cooked:this.value},this.next(),u.tail=this.type===A.backQuote,this.finishNode(u,"TemplateElement")};Me.parseTemplate=function(i){i===void 0&&(i={});var s=i.isTagged;s===void 0&&(s=!1);var u=this.startNode();this.next(),u.expressions=[];var c=this.parseTemplateElement({isTagged:s});for(u.quasis=[c];!c.tail;)this.type===A.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(A.dollarBraceL),u.expressions.push(this.parseExpression()),this.expect(A.braceR),u.quasis.push(c=this.parseTemplateElement({isTagged:s}));return this.next(),this.finishNode(u,"TemplateLiteral")};Me.isAsyncProp=function(i){return!i.computed&&i.key.type==="Identifier"&&i.key.name==="async"&&(this.type===A.name||this.type===A.num||this.type===A.string||this.type===A.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===A.star)&&!pr.test(this.input.slice(this.lastTokEnd,this.start))};Me.parseObj=function(i,s){var u=this.startNode(),c=!0,f={};for(u.properties=[],this.next();!this.eat(A.braceR);){if(c)c=!1;else if(this.expect(A.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(A.braceR))break;var h=this.parseProperty(i,s);i||this.checkPropClash(h,f,s),u.properties.push(h)}return this.finishNode(u,i?"ObjectPattern":"ObjectExpression")};Me.parseProperty=function(i,s){var u=this.startNode(),c,f,h,g;if(this.options.ecmaVersion>=9&&this.eat(A.ellipsis))return i?(u.argument=this.parseIdent(!1),this.type===A.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(u,"RestElement")):(this.type===A.parenL&&s&&(s.parenthesizedAssign<0&&(s.parenthesizedAssign=this.start),s.parenthesizedBind<0&&(s.parenthesizedBind=this.start)),u.argument=this.parseMaybeAssign(!1,s),this.type===A.comma&&s&&s.trailingComma<0&&(s.trailingComma=this.start),this.finishNode(u,"SpreadElement"));this.options.ecmaVersion>=6&&(u.method=!1,u.shorthand=!1,(i||s)&&(h=this.start,g=this.startLoc),i||(c=this.eat(A.star)));var C=this.containsEsc;return this.parsePropertyName(u),!i&&!C&&this.options.ecmaVersion>=8&&!c&&this.isAsyncProp(u)?(f=!0,c=this.options.ecmaVersion>=9&&this.eat(A.star),this.parsePropertyName(u,s)):f=!1,this.parsePropertyValue(u,i,c,f,h,g,s,C),this.finishNode(u,"Property")};Me.parsePropertyValue=function(i,s,u,c,f,h,g,C){if((u||c)&&this.type===A.colon&&this.unexpected(),this.eat(A.colon))i.value=s?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,g),i.kind="init";else if(this.options.ecmaVersion>=6&&this.type===A.parenL)s&&this.unexpected(),i.kind="init",i.method=!0,i.value=this.parseMethod(u,c);else if(!s&&!C&&this.options.ecmaVersion>=5&&!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.type!==A.comma&&this.type!==A.braceR&&this.type!==A.eq){(u||c)&&this.unexpected(),i.kind=i.key.name,this.parsePropertyName(i),i.value=this.parseMethod(!1);var x=i.kind==="get"?0:1;if(i.value.params.length!==x){var I=i.value.start;i.kind==="get"?this.raiseRecoverable(I,"getter should have no params"):this.raiseRecoverable(I,"setter should have exactly one param")}else i.kind==="set"&&i.value.params[0].type==="RestElement"&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!i.computed&&i.key.type==="Identifier"?((u||c)&&this.unexpected(),this.checkUnreserved(i.key),i.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=f),i.kind="init",s?i.value=this.parseMaybeDefault(f,h,this.copyNode(i.key)):this.type===A.eq&&g?(g.shorthandAssign<0&&(g.shorthandAssign=this.start),i.value=this.parseMaybeDefault(f,h,this.copyNode(i.key))):i.value=this.copyNode(i.key),i.shorthand=!0):this.unexpected()};Me.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(A.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(A.bracketR),i.key;i.computed=!1}return i.key=this.type===A.num||this.type===A.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};Me.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),t
|
||
|
`;break;default:i+=String.fromCharCode(u);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),s=this.pos}else++this.pos}};qe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(A.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")};qe.readEscapedChar=function(i){var s=this.input.charCodeAt(++this.pos);switch(++this.pos,s){case 110:return`
|
||
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return $p(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),i){var u=this.pos-1;return this.invalidStringToken(u,"Invalid escape sequence in template string"),null}default:if(s>=48&&s<=55){var c=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],f=parseInt(c,8);return f>255&&(c=c.slice(0,-1),f=parseInt(c,8)),this.pos+=c.length-1,s=this.input.charCodeAt(this.pos),(c!=="0"||s===56||s===57)&&(this.strict||i)&&this.invalidStringToken(this.pos-1-c.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(f)}return Cn(s)?"":String.fromCharCode(s)}};qe.readHexChar=function(i){var s=this.pos,u=this.readInt(16,i);return u===null&&this.invalidStringToken(s,"Bad character escape sequence"),u};qe.readWord1=function(){this.containsEsc=!1;for(var i="",s=!0,u=this.pos,c=this.options.ecmaVersion>=6;this.pos<this.input.length;){var f=this.fullCharCodeAtPos();if(Cs(f,c))this.pos+=f<=65535?1:2;else if(f===92){this.containsEsc=!0,i+=this.input.slice(u,this.pos);var h=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var g=this.readCodePoint();(s?On:Cs)(g,c)||this.invalidStringToken(h,"Invalid Unicode escape"),i+=$p(g),u=this.pos}else break;s=!1}return i+this.input.slice(u,this.pos)};qe.readWord=function(){var i=this.readWord1(),s=A.name;return this.keywords.test(i)&&(s=Up[i]),this.finishToken(s,i)};var P5="8.7.0";at.acorn={Parser:at,version:P5,defaultOptions:Ga,Position:qa,SourceLocation:Ci,getLineInfo:As,Node:ti,TokenType:$e,tokTypes:A,keywordTypes:Up,TokContext:Qr,tokContexts:Xe,isIdentifierChar:Cs,isIdentifierStart:On,Token:za,isNewLine:Cn,lineBreak:pr,lineBreakG:ko,nonASCIIwhitespace:xy};function QK(i,s){return at.parse(i,s)}function ZK(i,s,u){return at.parseExpressionAt(i,s,u)}function eQ(i,s){return at.tokenizer(i,s)}var Ny={};E8(Ny,{LooseParser:()=>Ye,isDummy:()=>Mn,parse:()=>rQ});var Hp="\u2716";function Mn(i){return i.name===Hp}function O5(){}var Ye=function(s,u){if(u===void 0&&(u={}),this.toks=this.constructor.BaseParser.tokenizer(s,u),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:A.eof,start:0,end:0},this.tok.validateRegExpFlags=O5,this.tok.validateRegExpPattern=O5,this.options.locations){var c=this.toks.curPosition();this.tok.loc=new Ci(this.toks,c,c)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};Ye.prototype.startNode=function(){return new ti(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)};Ye.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start};Ye.prototype.startNodeAt=function(s){return this.options.locations?new ti(this.toks,s[0],s[1]):new ti(this.toks,s)};Ye.prototype.finishNode=function(s,u){return s.type=u,s.end=this.last.end,this.options.locations&&(s.loc.end=this.last.loc.end),this.options.ranges&&(s.range[1]=this.last.end),s};Ye.prototype.dummyNode=function(s){var u=this.startNode();return u.type=s,u.end=u.start,this.options.locations&&(u.loc.end=u.loc.start),this.options.ranges&&(u.range[1]=u.start),this.last={type:A.name,start:u.start,end:u.start,loc:u.loc},u};Ye.prototype.dummyIdent=function(){var s=this.dummyNode("Identifier");return s.name=Hp,s};Ye.prototype.dummyString=function(){var s=this.dummyNode("Literal");return s.value=s.raw=Hp,s};Ye.prototype.eat=function(s){return this.tok.type===s?(this.next(),!0):!1};Ye.prototype.isContextual=function(s){return this.tok.type===A.name&&this.tok.value===s};Ye.prototype.eatContextual=function(s){return this.tok.value===s&&this.
|
||
|
`),cooked:this.tok.value},this.next(),i.tail=this.tok.type===A.backQuote,this.finishNode(i,"TemplateElement")};Je.parseTemplate=function(){var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement();for(i.quasis=[s];!s.tail;)this.next(),i.expressions.push(this.parseExpression()),this.expect(A.braceR)?s=this.parseTemplateElement():(s=this.startNode(),s.value={cooked:"",raw:""},s.tail=!0,this.finishNode(s,"TemplateElement")),i.quasis.push(s);return this.expect(A.backQuote),this.finishNode(i,"TemplateLiteral")};Je.parseObj=function(){var i=this.startNode();i.properties=[],this.pushCx();var s=this.curIndent+1,u=this.curLineStart;for(this.eat(A.braceL),this.curIndent+1<s&&(s=this.curIndent,u=this.curLineStart);!this.closes(A.braceR,s,u);){var c=this.startNode(),f=void 0,h=void 0,g=void 0;if(this.options.ecmaVersion>=9&&this.eat(A.ellipsis)){c.argument=this.parseMaybeAssign(),i.properties.push(this.finishNode(c,"SpreadElement")),this.eat(A.comma);continue}if(this.options.ecmaVersion>=6&&(g=this.storeCurrentPos(),c.method=!1,c.shorthand=!1,f=this.eat(A.star)),this.parsePropertyName(c),this.toks.isAsyncProp(c)?(h=!0,f=this.options.ecmaVersion>=9&&this.eat(A.star),this.parsePropertyName(c)):h=!1,Mn(c.key)){Mn(this.parseMaybeAssign())&&this.next(),this.eat(A.comma);continue}if(this.eat(A.colon))c.kind="init",c.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===A.parenL||this.tok.type===A.braceL))c.kind="init",c.method=!0,c.value=this.parseMethod(f,h);else if(this.options.ecmaVersion>=5&&c.key.type==="Identifier"&&!c.computed&&(c.key.name==="get"||c.key.name==="set")&&this.tok.type!==A.comma&&this.tok.type!==A.braceR&&this.tok.type!==A.eq)c.kind=c.key.name,this.parsePropertyName(c),c.value=this.parseMethod(!1);else{if(c.kind="init",this.options.ecmaVersion>=6)if(this.eat(A.eq)){var C=this.startNodeAt(g);C.operator="=",C.left=c.key,C.right=this.parseMaybeAssign(),c.value=this.finishNode(C,"AssignmentExpression")}else c.value=c.key;else c.value=this.dummyIdent();c.shorthand=!0}i.properties.push(this.finishNode(c,"Property")),this.eat(A.comma)}return this.popCx(),this.eat(A.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(i,"ObjectExpression")};Je.parsePropertyName=function(i){if(this.options.ecmaVersion>=6)if(this.eat(A.bracketL)){i.computed=!0,i.key=this.parseExpression(),this.expect(A.bracketR);return}else i.computed=!1;var s=this.tok.type===A.num||this.tok.type===A.string?this.parseExprAtom():this.parseIdent();i.key=s||this.dummyIdent()};Je.parsePropertyAccessor=function(){if(this.tok.type===A.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===A.privateId)return this.parsePrivateIdent()};Je.parseIdent=function(){var i=this.tok.type===A.name?this.tok.value:this.tok.type.keyword;if(!i)return this.dummyIdent();var s=this.startNode();return this.next(),s.name=i,this.finishNode(s,"Identifier")};Je.parsePrivateIdent=function(){var i=this.startNode();return i.name=this.tok.value,this.next(),this.finishNode(i,"PrivateIdentifier")};Je.initFunction=function(i){i.id=null,i.params=[],this.options.ecmaVersion>=6&&(i.generator=!1,i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)};Je.toAssignable=function(i,s){if(!(!i||i.type==="Identifier"||i.type==="MemberExpression"&&!s))if(i.type==="ParenthesizedExpression")this.toAssignable(i.expression,s);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(i.type==="ObjectExpression"){i.type="ObjectPattern";for(var u=0,c=i.properties;u<c.length;u+=1){var f=c[u];this.toAssignable(f,s)}}else if(i.type==="ArrayExpression")i.type="ArrayPattern",this.toAssignableList(i.elements,s);else if(i.type==="Property")this.toAssignable(i.value,s);else if(i.type==="SpreadElement")i.type="RestElement",this.toAssignable(i.argument,s);else if(i.type==="AssignmentExpression")i.type="AssignmentPattern",delete i.operator;else return this.dummyIdent()}return i};Je.toAssignableList=function(i,s){for(var u=0,c=i;u<c.length;u+=1){var f=c[u];this.toAssignable(f,s)}
|
||
|
//!
|
||
|
//! Copyright (C) 2012-2020 by various contributors (see AUTHORS)
|
||
|
//!
|
||
|
//! Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
|
//! of this software and associated documentation files (the "Software"), to deal
|
||
|
//! in the Software without restriction, including without limitation the rights
|
||
|
//! to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
|
//! copies of the Software, and to permit persons to whom the Software is
|
||
|
//! furnished to do so, subject to the following conditions:
|
||
|
//!
|
||
|
//! The above copyright notice and this permission notice shall be included in
|
||
|
//! all copies or substantial portions of the Software.
|
||
|
//!
|
||
|
//! THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
|
//! IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
|
//! FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
|
//! AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
|
//! LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
|
//! OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||
|
//! THE SOFTWARE.
|
||
|
//!
|
||
|
//! ^ https://github.com/acornjs/acorn/blob/49ac049201/AUTHORS
|
||
|
//! ^ https://github.com/acornjs/acorn/blob/49ac049201/acorn-walk/src/index.js
|
||
|
function de(i,s,u,c,f){let h=[],g=u||ae;return function C(x,I,N){let j=N||x.type,O=s[j],R=x!==h[h.length-1];if(R&&h.push(x),g[j](x,I,C),O)try{O(x,I||h,h)}catch(V){console.error(`Caught an error while attempting to run AST visitor!
|
||
|
|
||
|
node =`,x,`
|
||
|
err =`,V)}R&&h.pop()}(i,c,f),i}var $1=class{constructor(s){this.node=s}};function Bi(i,s,u,c){let f=c||ae,h=s[0],g=s[1];try{(function C(x,I,N){let j=N||x.type;if((h==null||x.start<=h)&&(g==null||x.end>=g)&&f[j](x,{},C),(h==null||x.start===h)&&(g==null||x.end===g)&&x.type===u)throw new $1(x)})(i)}catch(C){if(C instanceof $1)return C.node;throw C}}function UT(i){return i.type==="PrivateIdentifier"}function dt(i){return i.type==="Literal"}function ct(i){return dt(i)&&typeof i.value=="string"}function ze(i){return dt(i)&&typeof i.value=="number"}function an(i){return dt(i)&&typeof i.value=="boolean"}function Pr(i){return i.type==="UnaryExpression"}function Nt(i){return Pr(i)&&ze(i.argument)}function Vt(i){return i.type==="ExpressionStatement"}function wn(i){return i.type==="SequenceExpression"}function It(i){return i.type==="AssignmentExpression"}function dr(i){return i.type==="ReturnStatement"}function Pt(i){return i.type==="VariableDeclaration"}function su(i){return i.type==="ArrayExpression"}function ye(i){return i.type==="Identifier"}function WT(i){return i.type==="ArrowFunctionExpression"}function ir(i){return i.type==="FunctionExpression"}function zT(i){return i.type==="UpdateExpression"}function qt(i){return i.type==="CallExpression"}function Ke(i){return i.type==="BlockStatement"}function Ns(i){return i.type==="SwitchStatement"}function sr(i){return i.type==="BinaryExpression"}function un(i){return i.type==="MemberExpression"}function Ti(i){return i.type==="IfStatement"}function $T(i){return i.type==="ForStatement"}function HT(i){return i.type==="ObjectExpression"}function JT(i){return i.type==="LogicalExpression"}function Or(i){return JSON.parse(JSON.stringify(i))}function YT(i){if(!dt(i)&&!ye(i))throw new TypeError("Node is not Literal or Identifier");return dt(i)?i.value.toString():i.name}function cn(i){return i.filter(s=>s.type!=="EmptyStatement")}var Of=class extends Qe{constructor(s){super("ControlFlow",s);this.findStorageNodeAliases=(s,u)=>(de(u,{BlockStatement(c){let f=Yp(c);if(!s.controlFlowStorageNodes[f]||c.body.length===0)return;let h=s.controlFlowStorageNodes[f];de(c,{VariableDeclaration(g){let C=[];for(let x of g.declarations)!x.init||!ye(x.id)||!ye(x.init)||h.aliases.includes(x.init.name)&&(h.aliases.push(x.id.name),C.push(`${x.start}!${x.end}`));g.declarations=g.declarations.filter(x=>!C.includes(`${x.start}!${x.end}`)),g.declarations.length===0&&(g.type="EmptyStatement")}})}}),this);this.replacer=(s,u)=>{let{translateCallExp:c}=this;return de(u,{BlockStatement(f){let h=Yp(f);if(!s.controlFlowStorageNodes[h])return;let g=s.controlFlowStorageNodes[h];de(f,{MemberExpression(C){if(!ye(C.object)||!ye(C.property)||!g.aliases.includes(C.object.name))return;let x=C.property.name,I=-1;(I=g.literals.findIndex(N=>N.identifier===x))!==-1&&Fe(C,{type:"Literal",value:g.literals[I].value})},CallExpression(C){if(!un(C.callee)||!ye(C.callee.object)||!ye(C.callee.property)||!g.aliases.includes(C.callee.object.name))return;let x=C.callee.property.name,I=-1;if((I=g.functions.findIndex(N=>N.identifier===x))!==-1){let N=g.functions[I].node;Fe(C,c(N,C))}}})}}),this}}translateCallExp(s,u){if(!dr(s.body.body[0]))throw new TypeError("Function in CFSN was invalid (not a returnstatement)");if(!s.params.every(C=>ye(C)))throw new TypeError("Function in CFSN was invalid (not ident params)");if(!s.body.body[0].argument)throw new TypeError("Function in CFSN was invalid (void return)");let c=s.params,f={},h=0;for(let C of c)f[C.name]=u.arguments[h],++h;let g=Or(s.body.body[0].argument);return de(g,{Identifier(C){!f[C.name]||Fe(C,f[C.name])}}),g}populateEmptyObjects(s){return de(s.ast,{BlockStatement(u){de(u,{VariableDeclarator(c){if(!ye(c.id)||!c.init||!HT(c.init)||c.init.properties.length!==0)return;let f=c.id.name;de(u,{ExpressionStatement(h){if(!It(h.expression))return;let g=h.expression;if(!un(g.left)||!ye(g.left.object)||!ye(g.left.property)||g.left.object.name!==f)return;let C={type:"Property",start:0,end:0,method:!1,shorthand:!1,computed:!1,key:g.left.property,value:g.right,kind:"init"};c.init.properties.push(C),h.type="Empty
|